<havenwood>
necro: you still have bad any_string()s
<necro>
which lines?
<necro>
and where should I be calling translate? after the method is defined?
<havenwood>
23
<havenwood>
necro: yup, it isn't defined until you define it
<necro>
line 23 needs what change?
<nobitanobi>
Hey guys, any suggestions on how to improve this? - https://gist.github.com/novito/af8802f3a8b23d13d299 I am trying to find if there is a matching between any of the combinations and the state
<havenwood>
necro: being not broken
dh64 has joined #ruby
<necro>
sorry I don't udnerstand
<necro>
elsif vowels(any_string) == true
tjr9898 has joined #ruby
<havenwood>
necro: you still have bad any_string()s
<necro>
can you show me what change this line needs ^
<havenwood>
necro: oh, nev
<havenwood>
nvm
<necro>
oh ok
<havenwood>
necro: multi-tasking, i skimmed too fast
bdonnahue has joined #ruby
<necro>
no problem i appreciae your help
<bdonnahue>
hey. im on centos 7 and im trying to gem install fpm
<bdonnahue>
but i get an error
<necro>
the method is sufficiently defined, no?
<bdonnahue>
ERROR: Could not find a valid gem 'fpm' (>= 0), here is why:
tjr9898 has quit [Remote host closed the connection]
einarj has joined #ruby
<havenwood>
bdonnahue: Gist the output from?: ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION' and openssl s_client -showcerts -connect rubygems.org:https
mocfive has quit [Ping timeout: 255 seconds]
<havenwood>
bdonnahue: Network issue?
<necro>
So, havenwood, how can I address the latest error? I am doing a tutorial, if that is of any improtance to my question or as to whether or not translate needs to be called
gregf has joined #ruby
<havenwood>
necro: Just define it before calling it. Or Gist more code.
<havenwood>
i'll be back in a few, but i'm sure plenty of folk around
<necro>
thanks
havenwood has quit []
theo has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
<necro>
can someone take a look at this code and help me understand whats wrong with it or why I am getting an error regarding the number of arguments?
<jhass>
CuriousMind: please use the bot only for demonstration purposes. To share code use gist.github.com, to try things out use your local irb or pry
<mozzarella>
damn, I didn't know about that
<CuriousMind>
jhass: ah ok, sorry. :(
<CuriousMind>
Can't let a monkey swing on a vine. Meh
diegoviola has quit [Remote host closed the connection]
cryptoca_ has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 268 seconds]
io_syl has quit []
ClarusCogitatio has quit [Ping timeout: 276 seconds]
emmesswhy has joined #ruby
<jhass>
btw == true is pretty pointless, just dealer_buys_car && steal_car (note the snake_case too!)
ClarusCogitatio has joined #ruby
<CuriousMind>
Does anyone know for how I can check how many times I pushed to a certain repository?
<CuriousMind>
I have asked in Github already, I'm just asking.
Deele has joined #ruby
cryptoca has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
Mon_Ouie has joined #ruby
<jhass>
I don't think git tracks that
w3pm has quit [Quit: This computer has gone to sleep]
<jhass>
github may
GriffinHeart has quit [Remote host closed the connection]
<jhass>
but looks like only commits
<CuriousMind>
jhass: that's what I am asking
<CuriousMind>
jhass: How do I find out the amount of times I pushed to a repo online through Github?
<Wolland>
do you literally mean "pushed" or do you mean commits?
jgrevich has quit [Quit: jgrevich]
<CuriousMind>
Wolland: push to online Github
JBreit has joined #ruby
w09x has quit [Remote host closed the connection]
<jhass>
what insight do you want from that data?
<Wolland>
commits are tracked of course but pushes are not, only way I can think of is to grep your history but that's limited of course
mikecmpbll has joined #ruby
<CuriousMind>
jhass: just the number of times I pushed to a repo? Is that ok?
<Wolland>
if you push every time you commit, than it would be the same #
jds has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacobat has quit [Ping timeout: 268 seconds]
JBreit has left #ruby [#ruby]
Martxel has joined #ruby
oo_ has quit [Remote host closed the connection]
dcoxall has joined #ruby
oo_ has joined #ruby
PersonX has quit [Remote host closed the connection]
PersonX has joined #ruby
ringarin has joined #ruby
dcoxall has quit [Ping timeout: 272 seconds]
PersonX has quit [Max SendQ exceeded]
ringarin has quit [Client Quit]
arup_r has quit [Ping timeout: 245 seconds]
cryptoca has quit [Ping timeout: 272 seconds]
CuriousMind has quit [Quit: Page closed]
arup_r has joined #ruby
cryptoca has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
tlarevo has joined #ruby
<mozzarella>
GUYS
atmosx has joined #ruby
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
axsuul has joined #ruby
<mozzarella>
how do I modify a value inside a matrix?
eivindml has joined #ruby
Ideosancrasy has joined #ruby
eivindml has quit [Max SendQ exceeded]
lkba has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
Ideosancrasy has quit [Client Quit]
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
<mozzarella>
"A Matrix instance is (by default) immutable."
<mozzarella>
what the fuck man
eivindml has joined #ruby
<jhass>
I guess all modifying operations return a new one then?
nfk has joined #ruby
einarj has joined #ruby
<mozzarella>
"The designer of class Matrix must have been a fan of immutable data structures and functional programming."
<mozzarella>
:di:
<mozzarella>
ಠ_ಠ
<Wolland>
mozzarella: you can't just do matrix[1,1] = 10 ?
oo_ has quit [Remote host closed the connection]
zarul has quit [Ping timeout: 255 seconds]
<mozzarella>
Wolland: no I can't
<Hanmac>
you cant modify the matrix or otherwise you cause devajus ,P
emmesswhy has quit [Quit: This computer has gone to sleep]
<Wolland>
you can if you are The One
<Hanmac>
hm or you are The Other One ;P
jacobat has joined #ruby
<Wolland>
mozzarella: there is a way to patch Matrix and add that method
nucatus has quit [Remote host closed the connection]
banister has joined #ruby
ClarusCogitatio has quit [Ping timeout: 245 seconds]
ClarusCogitatio has joined #ruby
phoo1234567 has joined #ruby
Lewix has joined #ruby
bluOxigen has joined #ruby
fabrice31 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
mijicd has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 276 seconds]
phoo1234567 has joined #ruby
CpuID has joined #ruby
Lewix has quit [Remote host closed the connection]
diegoviola has joined #ruby
mijicd has joined #ruby
mijicd has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 268 seconds]
autochthon has joined #ruby
ghr has joined #ruby
Lewix has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
zettam has joined #ruby
mahtennek has joined #ruby
<mahtennek>
hi is there any way i can uninstall my gems or those that are causing conflicts?
lxsameer has quit [Ping timeout: 272 seconds]
<mahtennek>
i am getting this error while installing azure gem. .rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:69: warning: Insecure world writable dir /usr/local/heroku/bin in PATH, mode 040777
Lewix has quit [Remote host closed the connection]
autochthon has quit [Remote host closed the connection]
<boena>
Hi! I have a JSON which contains a field with the string as an regular expression. Is there some way I can search up the JSON-item from a string that matches that expression? The other way around works but I am unable to use it this way.
Lewix has joined #ruby
<jhass>
boena: make a gist with input and desired output please
<jhass>
mahtennek: seems only to be a warning? though you do probably shouldn't make that directory world writable
zarul has joined #ruby
Lewix has quit [Remote host closed the connection]
<mahtennek>
jhass: i have no idea why i am getting that error though.
<jhass>
mahtennek: because the mentioned directory is world writable
<mahtennek>
it's heroku toolbelt, but i don't think it links to my rubygems anyhow, so i am pretty confused
<mahtennek>
jhass: i see. i guess i will remove this
<Hanmac>
hey have some one many gems installed and may want to see a dependency tree between them?
DrCode has quit [Remote host closed the connection]
<jhass>
mahtennek: chmod og-w
<mahtennek>
jhass: to /usr/local/heroku/bin ? gotcha
DrCode has joined #ruby
shevy has quit [Read error: Connection reset by peer]
<boena>
jhass: I've tried to switch it around too, but still no luck
sameerynho has quit [Ping timeout: 276 seconds]
<mahtennek>
jhass: is there any way to remove this error from showing? it seems to be coming from this ".rvm/gems/ruby-2.0.0-p353/gems/systemu-2.6.4/lib/systemu.rb:34:"
<jhass>
boena: what about .find {|translation| translation['message'].start_with? "'this' is not of expected type" }['id']
<boena>
jhass: What I am trying to accomplish is that I will get a string sent to me. Try to match it against the 'message'-field in the JSON and parse out the ID
<Hanmac>
jhass find may return nil, so you might need to check that too
<jhass>
Hanmac: I know
<boena>
jhass: The problem is that sometimes the line starts with the regex-variable
<Hanmac>
jhass do you currently have many gems installed?
jeroenvisser101 has joined #ruby
<boena>
jhass: like the ID: 15112
rbrs has joined #ruby
<jhass>
boena: so in the message you get the (.+) is replaced with something?
<atmosx>
havenwood: for this to work, the structure must be module Test; class Test1; end; end ?
<a_>
hi guys. When you unit test your database abstraction layer, do you have it communicate with a database?
kenneth has quit [Ping timeout: 260 seconds]
<atmosx>
a_: I never wrote tests for AR or Sequel but I can't image this going otherwise. In test environments DBs are SQLite3s usually... so that's not a big problem as I see it
<havenwood>
atmosx: It'd work that way, but also other ways.
<atmosx>
havenwood: if the module sits in the same file as the class, you can still access it using :: or you have to 'include ModuleName' ?
<havenwood>
atmosx: The namespace doesn't give it any automagic access.
<jhass>
atmosx: in what file or scope the module is defined is basically irrelevant, relevant is if they're instance, singleton methods or module functions
<a_>
atmosx: how about when the production DB would be NoSQL, e.g. MongoDB?
<Blizzy>
the module is in another file.
<Blizzy>
so module is in a.rb. class is in b.rb
cina has quit [Ping timeout: 245 seconds]
<jhass>
Blizzy: are you sure that file is loaded when trying to access it?
diegoviola has quit [Ping timeout: 276 seconds]
<Blizzy>
well I use 'require ./a.rb' at the top of the b.rb file
DaniG2k_ has joined #ruby
<jhass>
Blizzy: show code and real error message
<atmosx>
a_: no idea, I've only setup mongodb and Redis, never actually wrote code for NoSQL so far, so I don't know (although I can't imagine the real diff, these db's are extremely easy to setup for testing envs)
DaniG2k has quit [Ping timeout: 264 seconds]
<atmosx>
havenwood: Hanmac's rapresentation is cool but not practical (at all).
<havenwood>
atmosx: What's impractical about it? I can see I'm missing runtime dep to parser gem since it's a red hexagon!
<havenwood>
atmosx: visualize ftw
<atmosx>
hahaha
<atmosx>
havenwood: I have a hard time following that graph, you can 'see things' ?
DaniG2k_ has quit [Ping timeout: 264 seconds]
<atmosx>
Hanmac: what version of ruby are you use to run gemtree? 2.1.2?
cjk101010 has quit [Ping timeout: 246 seconds]
<Hanmac>
atmosx: but only because i did exlain to him what the different colors and styles does mean ;P ... yeah that file does need a doc
<Hanmac>
atmosx: currently it seems 2.1 ... but i try to backport it to 2.0 and 1.9
<atmosx>
nah don't
<havenwood>
atmosx: i used the Hanmac reference manual :P
<atmosx>
Hanmac: I'm missing something, I only get a sort hash of headers
<atmosx>
digraph inheritance { .. }
OffTheRails has joined #ruby
<atmosx>
ah there are options okay let me check
Mon_Ouie has quit [Ping timeout: 272 seconds]
<Hanmac>
yeah thats the dot graph ... do draw it use something like that: "./gemtree.rb | dot -Tsvg -oout.svg; eog out.svg"
<atmosx>
Hanmac: what package do I need to install for dot? and eog?
<atmosx>
I was on the iMac last time I tried and I installed the software there, but now I'm on the laptop :-P
jottr_ has quit [Ping timeout: 260 seconds]
ARCADIVS has quit [Ping timeout: 252 seconds]
cina has joined #ruby
<atmosx>
jeez!
<atmosx>
I lost the GP lights :-(
* atmosx
got carried away by code refactoring
<Hanmac>
atmosx: "graphviz: /usr/bin/dot" and for eog you can use any other image viewer
DaniG2k has quit [Ping timeout: 252 seconds]
<Hanmac>
(you might swich the T type to png)
w09x has joined #ruby
<a_>
atmosx: I was asking as people tend to say 'unit tests should never touch a DB, otherwise they are unit tests'
<a_>
"they are integration tests"*
<atmosx>
no idea mate
jxs_ has joined #ruby
jottr_ has joined #ruby
j416_ has joined #ruby
j416 has quit [Ping timeout: 245 seconds]
Apocalypse has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
w09x has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
j416_ is now known as j416
sepp2k has joined #ruby
heftig has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<jacobat>
I have a class that takes an IO object to read from, how do I provide it with an unbuffered IO object so that I don't have to press enter to read from the stream?
aspiers has joined #ruby
<jhass>
jacobat: which method do you use to read?
fabrice31 has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
<jhass>
and when you say "press enter", you pass stdin?
zmartAway has quit [Quit: Leaving]
patrick99e99 has joined #ruby
nucatus has joined #ruby
<jacobat>
jhass: Let's say I do "IO.copy_stream STDIN, STDOUT" - how do I get the echo on stdout every time I press a key?
Takle has quit [Remote host closed the connection]
<mahtennek>
hi can someone assist me, i installed 'azure' gem and i have been getting this warning.
<mahtennek>
.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:69: warning: Insecure world writable dir /usr/local in PATH, mode 040777
<mahtennek>
everytime i run a ruby file, this will pop up
<mahtennek>
i tried to chmod og-w but it still shows up.
<mahtennek>
any idea? does it got to do with my rvm?
<jhass>
did you notice that the path changed?
<mahtennek>
jhass: i removed heroku
<mahtennek>
and this was the next
<jhass>
besides why is /usr/local/ in your path
SouL has joined #ruby
<mahtennek>
i have totally no idea. could you advice me
Fire-Dragon-DoL has joined #ruby
<jhass>
well, first let's verify that. What's echo $PATH giving?
<jhass>
hash has the method .keys which returns an Array so you could do hash.keys[0] to get the first key, but the usecases for depending on the order of a hash are very rare
<Rubie>
so [1] does not reference anything
<jhass>
no, not with {} around each pair, instead: {key => value, another_key => another_value}
<Rubie>
so what if im a teacher and I had two johns in my class of students
w09x has quit [Ping timeout: 255 seconds]
<wasamasa>
that's why you have immatriculation numbers
<jhass>
Rubie: you would go to your local CS teacher and he would start babbling something about DBs and assigning each student a unique id because names suck for identifying stuff
w3pm has quit [Quit: This computer has gone to sleep]
sparrovv has joined #ruby
chendry has left #ruby [#ruby]
melik has quit [Quit: Computer has gone to sleep.]
chendry has joined #ruby
benzrf is now known as benzrf|offline
marcus_ has quit [Read error: Connection reset by peer]
jrhorn424 is now known as zz_jrhorn424
troyready has joined #ruby
Scotteh has joined #ruby
Lewix has quit [Remote host closed the connection]
grenierm has joined #ruby
Xaitec has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
w3pm has joined #ruby
carraroj has joined #ruby
lucianosousa has joined #ruby
patrick99e99 has joined #ruby
j_mcnall_ has joined #ruby
teleporting_hams has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
linojon has joined #ruby
lectrick is now known as pmarreck
grokdancer has quit [Quit: Leaving.]
Rubie has quit [K-Lined]
Phrogz has quit [K-Lined]
<pmarreck>
shevy, apeiros, whoever the hell else knows me as "lectrick"... decided to just go non-anonymous for the time being.
Heartbroken has joined #ruby
kotk_ has joined #ruby
Xaitec has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 272 seconds]
carraroj has quit [Quit: Konversation terminated!]
marr has joined #ruby
kotk has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
slester|lunch has quit [Quit: Quitte]
emmesswhy has quit [Quit: This computer has gone to sleep]
britneywright has joined #ruby
grokdancer has joined #ruby
enebo has quit [Quit: enebo]
awkwords has joined #ruby
zmartAzz has quit [Read error: Connection reset by peer]
zmartAway has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
<awkwords>
in rubular this works but adding it to my split method doesnt work.. split([grep|grep_defined]\(['|"](.*?)['|"]
<awkwords>
)
tectonic has quit []
<jhass>
awkwords: you need to surround it in / /
gsd has joined #ruby
<jhass>
rubular prints them outside the form
ghr has joined #ruby
<awkwords>
ah thnks
Adrao has joined #ruby
orolo has joined #ruby
<awkwords>
do i have to escape the special characters?
<jhass>
only if they're special in the current context
zmartAway has quit [Read error: Connection reset by peer]
<jhass>
like you shouldn't need to escape the | in the character classes for example
zmartAzz has joined #ruby
nobitanobi has joined #ruby
<apeiros>
[grep|grep_defined] does not do what you think it does
<jhass>
though maybe you confused character classes and match groups there. ^ faster
<apeiros>
[grep|grep_defined] is a character class and represents a single character
<awkwords>
it does in rubular
<apeiros>
it's equivalent to [grepdfin_|]
<apeiros>
(i.e., all characters occurring in your char class)
<nobitanobi>
guys, given an array of elements, I want just to get that array with (instead of the elements), the indeces as elements. I have done it like this: [9,8,7,6].map.each_with_index { |e,index| index }
robustus has joined #ruby
<jhass>
awkwords: it does but it also matches more
<nobitanobi>
Any suggestions on a better approach?
<apeiros>
awkwords: note the difference between "works" and "works because it does what I think it does"
InhalingPixels has joined #ruby
<apeiros>
yours seems to be the former :-)
<awkwords>
no it def works how i want it, grep and grep_defined have values associated with their keys that need to be parsed
PersonX has quit [Ping timeout: 272 seconds]
<jhass>
nobitanobi: 0..array.size-1 or if you want to iterate just them 0.upto(array.size-1)
ghr has quit [Ping timeout: 252 seconds]
<nobitanobi>
jhass: beautiful
<nobitanobi>
thanks
<apeiros>
awkwords: *shrug*, fine. believe what you want.
mary5030 has joined #ruby
<apeiros>
the better choice would be to scrutinize.
bMalum has quit [Quit: bMalum]
<awkwords>
i keep getting premature end of char class when adding this regex to split method
troyready has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
claymore has quit [Quit: Leaving]
InhalingPixels has quit [Ping timeout: 272 seconds]
tectonic has joined #ruby
bMalum has joined #ruby
t0rc has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
t0rc has quit [Client Quit]
Fire-Dragon-DoL has quit [Ping timeout: 272 seconds]
mweshi has joined #ruby
t0rc has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
orolo has quit [Quit: This computer has gone to sleep]
dapz has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lampd1 has quit [Ping timeout: 260 seconds]
j_mcnall_ is now known as j_mcnally
Kricir has joined #ruby
melik has joined #ruby
seamon has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
luckyruby has joined #ruby
timonv_ has joined #ruby
dcoxall has joined #ruby
Nilium has quit [Ping timeout: 245 seconds]
jdj_dk has joined #ruby
Xeago has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
tlarevo_ has joined #ruby
sagittarian_ has joined #ruby
InhalingPixels has joined #ruby
tlarevo has quit [Ping timeout: 252 seconds]
JohnFord has quit [Ping timeout: 268 seconds]
benzrf|offline is now known as benzrf
lucianosousa has quit [Quit: lucianosousa]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PersonX has joined #ruby
bruno-_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
bruno-_ has quit [Client Quit]
coihue has quit [Ping timeout: 245 seconds]
threesixes has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
mweshi has quit [Quit: ZZZzzz…]
sigurding has joined #ruby
naos has joined #ruby
grokdancer has quit [Quit: Leaving.]
naos has quit [Client Quit]
InhalingPixels has joined #ruby
devoknievo__ has joined #ruby
Takle has joined #ruby
MaciejCzyzewski has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
modernbob has joined #ruby
modernbob has joined #ruby
Aranshada|W has joined #ruby
MaciejCzyzewski has quit [Client Quit]
MaciejCzyzewski has joined #ruby
PersonX has quit [Remote host closed the connection]
MaciejCzyzewski has quit [Client Quit]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grenierm has quit [Quit: grenierm]
ghanima has joined #ruby
MaciejCzyzewski has joined #ruby
Morkel has joined #ruby
<ghanima>
hello all was hoping I could get some advice... anyone have poltergiest headless web kit gem setup to do concurrent session visits
<ghanima>
Haven't been able to find a clear example that shows how one can do this
Morkel has quit [Client Quit]
aspires has joined #ruby
fabrice31 has joined #ruby
siwica has quit [Ping timeout: 276 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Takle has quit [Ping timeout: 246 seconds]
mgorbach has quit [Read error: No route to host]
sdwrage has joined #ruby
mgorbach_ has joined #ruby
mgorbach_ is now known as mgorbach
mijicd has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
KLVTZ has joined #ruby
axsuul has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<MaciejCzyzewski>
Hi all, folks!
Zesty has joined #ruby
shock_one_ is now known as shock_one
<MaciejCzyzewski>
What is the best alternative for activerecord and sequel?
<centrx>
MaciejCzyzewski, Those are the two main alternatives
<centrx>
MaciejCzyzewski, DataMapper is an old reliable standard, but it is fairly old now
emocakes__ has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
<MaciejCzyzewski>
That's why I asked this question ^^
<MaciejCzyzewski>
I think rom can be use like normal ORM...
emocakes has quit [Ping timeout: 276 seconds]
<apeiros>
adequaterecord? :)
<centrx>
MaciejCzyzewski, Yes, but ROM is very new and immature. Last I checked it didn't have proper database support for any databases even
melik has quit [Quit: Computer has gone to sleep.]
tlarevo_ has quit [Remote host closed the connection]
<centrx>
wasamasa, It's supposed to be the successor to DataMapper, but it has been languishing for three years
seamon has quit [Quit: Zzzzzzz]
<apeiros>
MaciejCzyzewski: if that was a question whether I meant that one - yes.
cocotton has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
bMalum has quit [Ping timeout: 245 seconds]
<centrx>
MaciejCzyzewski, AdequateRecord is actually improvements to ActiveRecord that will be included in Rails 4.2
bMalum has joined #ruby
Rollabunna has joined #ruby
decoponio has quit [Quit: Leaving...]
cocotton has quit [Remote host closed the connection]
Aahz has joined #ruby
<MaciejCzyzewski>
Yep. But I am writing something stupidly simple.
<centrx>
MaciejCzyzewski, What's wrong with Sequel or ActiveRecord?
<MaciejCzyzewski>
I don't need big monster like ActiveRecord.
gccostabr has joined #ruby
cocotton has joined #ruby
<apeiros>
why do you bother how big it is? it's still one gem.
axsuul has quit [Ping timeout: 245 seconds]
SouL has joined #ruby
<mozzarella>
and you probably have it already lololol
aspires has quit []
<centrx>
MaciejCzyzewski, The big monsterness of ActiveRecord is really only relevant for performance, which shouldn't make a difference for something stupidly simple?
<centrx>
also why not Sequel
<MaciejCzyzewski>
mhm
Rollabunna has quit [Ping timeout: 246 seconds]
seamon has joined #ruby
VBlizzard has joined #ruby
GriffinHeart has joined #ruby
rippa has quit [Read error: Connection reset by peer]
ht__th has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
rippa has joined #ruby
freerobby has joined #ruby
tkuchiki has joined #ruby
emmesswhy has joined #ruby
flak has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
Blizzy has quit [Ping timeout: 252 seconds]
flak is now known as Guest15021
Guest15021 has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
Aranshada|W has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
Guest15021 has joined #ruby
Guest15021 has quit [Client Quit]
Kricir has joined #ruby
havenwood has joined #ruby
BTRE has joined #ruby
Morkel has joined #ruby
rippa has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
Blizzy has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
Aahz has quit [Read error: Connection reset by peer]
VBlizzard has quit [Ping timeout: 246 seconds]
MCDev has joined #ruby
Kricir has quit [Ping timeout: 276 seconds]
Morkel has quit [Client Quit]
adamski2600 has quit []
LangeOortjes has quit [Remote host closed the connection]
cirn0 has joined #ruby
ExceptionalEngin has joined #ruby
oponder has joined #ruby
JohnFord has joined #ruby
sectionm1 has quit [Ping timeout: 246 seconds]
Hobogrammer has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
anaeem1 has joined #ruby
cirn0 has quit [Ping timeout: 260 seconds]
dcoxall has quit []
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
doritostains has quit [Quit: doritostains]
<wasamasa>
"Basically, this is one of the cases where the normally helpful ORM system is getting in your way."
* wasamasa
shakes fist
* shevy
shakes wasamasa
<wasamasa>
ACTIVERECORRRD!
nobitanobi has joined #ruby
armyriad has quit [Ping timeout: 246 seconds]
Rubie has joined #ruby
armyriad has joined #ruby
Rubie has quit [Client Quit]
<ghanima>
anyone here have any experience with celluloid
CaptainJet has quit [Ping timeout: 260 seconds]
<havenwood>
ghanima: having celluloid issues?
<waxjar>
if not, try #celluloid :)
<ghanima>
havenwood: I think soo but it could be user error on my part. Let me descriibe what I am trying to do
JohnFord has quit [Ping timeout: 245 seconds]
<ghanima>
waxjar: I did try and looks like the channel doesn't exist
mary5030 has quit [Remote host closed the connection]
<ghanima>
havenwood: I have a capybara poltergeist script that is visiting a website
<ghanima>
the script is pretty basic
<waxjar>
it does. perhaps you need to be identified with nickserv to join, i do not know
<ghanima>
it login into a website
Takle has quit [Remote host closed the connection]
dorei has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
<havenwood>
ghanima: #celluloid exists
<ghanima>
waxjar: you are correct I mispelled that
<ghanima>
my bad
Davedo has quit [Ping timeout: 246 seconds]
lampd has joined #ruby
<ghanima>
havenwood: once i get logged into the site I come across a form select list and once you select your option and click submit you a popup appears and you go to another page. Since the pop-up exposes the URL what I am trying to do is take all the values of the list and construct the URL and then visit the URL. I have it working in capybara but the time my problem is that it is taking so long to get a response from each one and
lampd is now known as lampd1
<ghanima>
so now tat you get the gist
<ghanima>
here is my script
tectonic has quit []
anaeem1 has quit [Remote host closed the connection]
<mozzarella>
when is it better to use celluloid instead of eventmachine or normal multithreaded code?
ndrei has quit [Read error: Connection reset by peer]
<mozzarella>
I still don't see the appeal of celluloid
ilteris has joined #ruby
ilteris has quit [Excess Flood]
Takle has joined #ruby
tectonic has joined #ruby
<havenwood>
mozzarella: For example, with Celluloid::IO you can have a Thread pool of Threads that each run a reactor. If one dies it's fault tolerant, will start itself back up. Also the style of using it. You don't have to back bend around callbacks or janky style. Just include Celluloid.
tectonic has quit [Client Quit]
marcus_ has joined #ruby
Inhaling_ has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
<mozzarella>
havenwood: what do you mean "dies"?
<mozzarella>
like raises an error?
<havenwood>
mozzarella: You can choose how your supervisors handle it.
<ghanima>
havenwood: sorry do you still need more context based of of what I posted thus far
AlSquire has joined #ruby
kristofferR has joined #ruby
sigurding has quit [Quit: sigurding]
Davedo has joined #ruby
tectonic has joined #ruby
kaspertidemann has quit []
InhalingPixels has quit [Ping timeout: 245 seconds]
<havenwood>
so you're running an asynchronous method that iterates and takes a while to return?
mkaesz has quit [Remote host closed the connection]
<ghanima>
havenwood: no
<havenwood>
ghanima: the link i pasted above ^ shows how you might create a future for each request, then iterates over those futures' values as they become available
heftig has quit [Ping timeout: 272 seconds]
dorei has joined #ruby
<ghanima>
havenwood: Today was my first attempt to get celluloid working.. before that my script would run snychrounous and would take a while to run. Looking to use celluloid to run async but get this error http://paste.ubuntu.com/8284646/
JohnFord has joined #ruby
britneywright has joined #ruby
jdj_dk has quit [Remote host closed the connection]
<ghanima>
havenwood: in the example you provided the line HTTP.get(url, socket_class: Celluloid::IO::TCPSocket)
<ghanima>
what is socket_class: Celluloid::IO::tcpSocket
bluOxigen has quit [Ping timeout: 255 seconds]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
ghanima: it's telling HTTP to use a Celluloid Actor with an nio4r reactor backed TCPSocket instead of a traditional TCPSocket
<havenwood>
ghanima: so a threaded, evented replacement for TCPSocket
<ghanima>
havenwood: since I am using capybara and the method I am using is visit method would I pass that to the the method or do I have to do that with the driver
niklas123 has joined #ruby
<ghanima>
I have to use a headless browser in this instance because the content that comes back is JSscript and i need to render it in a browser
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
ghanima: No, that wouldn't work (unless it took a provided TCPSocket as that argument, which i'd doubt).
<ghanima>
havenwood: right but in your example where is the loop
<ghanima>
looks like it is iterating over the same content
Xeago has quit [Remote host closed the connection]
<havenwood>
ghanima: right, but do the exact same thing but iterate over different content
<havenwood>
ghanima: then, depending on strategy, get those return values from the futures
gccostabr has quit [Quit: ZZZzzz…]
<havenwood>
ghanima: the example i showed you is quite simple, it iterates then blocks for each future value before moving on to the next
<ghanima>
havenwood: So to be clear the loop done outside of the class
<havenwood>
ghanima: yes
<havenwood>
ghanima: you add the asynchronous ability to the class, then use future in an iterator outside it
<havenwood>
futures*
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devoknievo____ has joined #ruby
heftig has joined #ruby
sectionme has joined #ruby
maoko has joined #ruby
goleldar has joined #ruby
melik has joined #ruby
devoknievo__ has quit [Ping timeout: 268 seconds]
Inhaling_ has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
InhalingPixels has joined #ruby
qualiabyte has joined #ruby
ndrei has joined #ruby
duncannz has joined #ruby
<havenwood>
ghanima: there are various ways to check if the futures are finishes
ghost2060 has quit [Ping timeout: 252 seconds]
<ghanima>
havenwood: so if I read the script properly it looks like it creates a new Capybara Session for each actor, but in my case the problem is that every URL that I am accessing is based off of a previous session i.e logging into a site with username and password
<ghanima>
I am trying to see if I can save the cookie and reuse that the cookie from a previous session when the actor executes
<ghanima>
havenwood: I am somewhat new to capybara so this will take me moment
crdpink has quit [Ping timeout: 246 seconds]
crdprink2 has joined #ruby
jacobat has quit [Ping timeout: 255 seconds]
<havenwood>
ghanima: i probably know less capybara than you do :P
MaciejCzyzewski has joined #ruby
cocotton has quit [Remote host closed the connection]
<havenwood>
mozzarella: i think part of the issue if that it isn't finished yet. some of these things take configuration and will hopefully become a nice automatic default.
<havenwood>
mozzarella: supervision stuff is a work in progress afaik
<havenwood>
but taking neat ideas from akka and erlang
banister has joined #ruby
mary5030 has joined #ruby
benlieb has joined #ruby
hfp has quit [Quit: bye]
axsuul has quit [Ping timeout: 245 seconds]
InhalingPixels has quit []
seamon has quit [Quit: Zzzzzzz]
<benlieb>
Is there a gem I can use to post to a FB page or group from an app?
banister has quit [Client Quit]
DrCode has quit [Ping timeout: 264 seconds]
phrozen77 has quit [Ping timeout: 260 seconds]
banister has joined #ruby
seamon has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
Blue_Ice_ has quit [Ping timeout: 260 seconds]
KingOfKarlsruhe has quit [Ping timeout: 245 seconds]
TheNet has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
Nahra` has quit [Ping timeout: 245 seconds]
BlaDe^ has quit [Remote host closed the connection]
BlaDe^ has joined #ruby
bauruine has quit [Ping timeout: 272 seconds]
drizz has quit [Ping timeout: 272 seconds]
sonOfRa has quit [Ping timeout: 245 seconds]
parus has quit [Ping timeout: 245 seconds]
drizz has joined #ruby
ashleah has joined #ruby
pskosinski has joined #ruby
parus has joined #ruby
banister has quit [Ping timeout: 245 seconds]
Blue_Ice has joined #ruby
Blue_Ice has joined #ruby
Blue_Ice has quit [Changing host]
doodlehaus has joined #ruby
Butthurthead has joined #ruby
timonv_ has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
haasn has quit [Quit: haasn]
doodlehaus has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jhass is now known as jhass|off
perrier_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
ccooke has quit [Ping timeout: 276 seconds]
JohnFord has quit [Ping timeout: 260 seconds]
ccooke has joined #ruby
kalleth_ has quit [Quit: No Ping reply in 180 seconds.]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Royalb15 has quit [Read error: Connection reset by peer]
phrozen77 has joined #ruby
Royalb15 has joined #ruby
Lewix has quit [Remote host closed the connection]
<ghanima>
havenwood: you still online
linduxed has quit [Ping timeout: 240 seconds]
<havenwood>
ghanima: ya
<havenwood>
ghanima: just distracted
JohnFord has joined #ruby
<ghanima>
havenwood: just checking
<ghanima>
havenwood: I thought I did do it correctly looking at the basic usage guide
yfeldblum has quit [Ping timeout: 245 seconds]
linojon has quit [Quit: linojon]
jack_rabbit has joined #ruby
Rollabunna has joined #ruby
linduxed has joined #ruby
charliesome has joined #ruby
ccooke has joined #ruby
OffTheRails has joined #ruby
Cooler_ has joined #ruby
Lewix has joined #ruby
odlox has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
ringarin has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 276 seconds]
Lewix has quit [Remote host closed the connection]
tkuchiki has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
goleldar has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
goleldar has joined #ruby
tectonic has joined #ruby
dorei has quit []
<ghanima>
havenwood: you still have some cycles to help troubleshoot
tkuchiki has quit [Ping timeout: 255 seconds]
jxs_ has quit [Quit: Leaving]
mikepack has joined #ruby
charliesome has quit [Quit: zzz]
PaulePanter has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
goleldar has quit [Ping timeout: 252 seconds]
marcus_ has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Ping timeout: 268 seconds]
sparrovv has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 245 seconds]
sparrovv has joined #ruby
Royalb15 has quit [Quit: Leaving]
davedev24_ has joined #ruby
cirn0 has joined #ruby
yfeldblum has joined #ruby
doodlehaus has joined #ruby
caveat- has joined #ruby
startupality has joined #ruby
sparrovv has quit [Ping timeout: 268 seconds]
cirn0 has quit [Ping timeout: 260 seconds]
sectionme has joined #ruby
drizz has joined #ruby
Bumptious has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 276 seconds]
JohnFord has quit [Ping timeout: 268 seconds]
j_mcnally has joined #ruby
OffTheRails has quit [Ping timeout: 245 seconds]
astav has joined #ruby
astav has quit [Client Quit]
bruno- has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Remote host closed the connection]
sectionme has quit [Ping timeout: 255 seconds]
Kerber0s has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
m8 has quit [Quit: Sto andando via]
Kerber0s has joined #ruby
lpaste has joined #ruby
banister is now known as banisterfiend
geggam has quit [Ping timeout: 268 seconds]
doodlehaus has quit [Remote host closed the connection]
kaspertidemann has quit []
dblessing has quit [Quit: dblessing]
TheNet has quit [Remote host closed the connection]
doodlehaus has joined #ruby
TheNet has joined #ruby
sectionme has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caveat- has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
startupality has joined #ruby
_cake has quit [Ping timeout: 255 seconds]
sectionme has quit [Ping timeout: 255 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
awkwords has quit [Ping timeout: 276 seconds]
ndrst has joined #ruby
caveat- has joined #ruby
starless has joined #ruby
j_mcnally has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
Nilium has joined #ruby
<ghanima>
anyone familiar celluloid
patrick99e99 has quit [Ping timeout: 245 seconds]
dapz has joined #ruby
OffTheRails has joined #ruby
Azure has joined #ruby
qwyeth_ has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
<havenwood>
ghanima: i don't spot the issue right off and am not in a good place at the moment to look closely
doodlehaus has quit [Remote host closed the connection]
<havenwood>
ghanima: i think as detailed a post as you can to #celluloid is a good idea, but may take a bit for a reply since it's weekend
<havenwood>
ghanima: or i'll look when i get to a proper spot
<ghanima>
havenwood: thanks for checking you recommended futures but just curious should I look at implementing supervisor to try to relauch an actor that died
<havenwood>
ghanima: another good question for #celluloid! but yeah, depending on what you're doing quite possibly.
<ghanima>
havenwood: thanks for your help today
<havenwood>
ghanima: no prob, sorry i couldn't be more clear
<ghanima>
ok will post in the celluloid channel and see who bites
<havenwood>
stuff is in flux
<ghanima>
havenwood: no worries :)
KingOfKarlsruhe has joined #ruby
xtruder has quit []
mikecmpbll has quit [Quit: i've nodded off.]
kotk has joined #ruby
sevvie has joined #ruby
Kricir has joined #ruby
ursooperduper has joined #ruby
doodlehaus has joined #ruby
kotk_ has quit [Ping timeout: 268 seconds]
caveat- has quit [Ping timeout: 260 seconds]
kotk_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacobat has joined #ruby
pu22l3r has joined #ruby
gtrak has joined #ruby
caveat- has joined #ruby
Takle has quit [Remote host closed the connection]
kotk has quit [Ping timeout: 268 seconds]
spider-mario has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
GriffinHeart has joined #ruby
chrishough has joined #ruby
Takle has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
niklas123 has quit [Quit: Leaving]
linojon has joined #ruby
dblessing has joined #ruby
j_mcnally has joined #ruby
doodlehaus has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 264 seconds]
aspiers has quit [Ping timeout: 268 seconds]
aspiers has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Takle has quit [Remote host closed the connection]
EasyCo has joined #ruby
Bumptious has joined #ruby
Takle has joined #ruby
Lewix has joined #ruby
fabrice31 has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
caveat- has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
mijicd has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Aahz has joined #ruby
doodlehaus has joined #ruby
TripTastic has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
odlox has joined #ruby
pwh has quit []
odlox_ has joined #ruby
odlox_ has quit [Client Quit]
jhass is now known as jhass|off
davedev24_ has quit [Ping timeout: 276 seconds]
odlox has quit [Ping timeout: 276 seconds]
justjealouse has joined #ruby
davedev24_ has joined #ruby
<justjealouse>
im trying to install mechanize, but I'm getting "you have to install development tools first" error, google's being pretty vague about the solution can someone help
pwh has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
marcus_ has joined #ruby
sylvanica has quit [Quit: Quitte]
<shevy>
justjealouse you must get the exact error
<shevy>
when you install via gem install, the .gem is downloaded
<shevy>
find where the .gem is
<shevy>
extract it via gem unpack name.gem
dblessing has quit [Quit: dblessing]
<shevy>
enter the dir, go to cd ext/ and try again there, via extconf.rb or setup.rb in that directory usually
w09x has joined #ruby
marcus_ has quit [Ping timeout: 245 seconds]
<Hanmac>
justjealouse: what ruby version? installed via system or otherwise? if system did you install the ruby*-dev packages too?
<justjealouse>
Hanmac, I just used the Windows Installer for Ruby 2.0 and now im trying to install mechanize
<Hanmac>
hm ok for windows i have no idea how it works
<justjealouse>
I used gem install if that helps...