<sweeper>
hey don't tempt me. I convinced the guys in #angularjs to try to convert "middle-endian hex-encoded kiloseconds since epoch" to minutes, after someone asked 'how can convert a var foo = "283" to minutes?'
<shevy>
"spawn has bunch of options to specify process attributes:"
<shevy>
"env: hash"
<shevy>
" name => val : set the environment variable"
<shevy>
" name => nil : unset the environment variable"
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<dexkiki>
Ok, thanks shevy
esteban1 has quit [Quit: WeeChat 1.0.1]
<shevy>
\o/
<shevy>
system your spawns all away!
aspires has quit []
dogweather has joined #ruby
aspires has joined #ruby
User4587_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
charliesome has joined #ruby
zorak8 has joined #ruby
<dexkiki>
lolol. What's a process?
jasooon has joined #ruby
<dexkiki>
Process*
hamakn has quit [Ping timeout: 250 seconds]
jdj_dk has joined #ruby
<shevy>
I think a module in core Ruby
<shevy>
like if you must find out the PID of something
<shevy>
Process.ppid
<shevy>
or want to set the effective user id: Process.euid = 505
<shevy>
or fork a process: Process.fork
User458764 has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
jbueza has joined #ruby
iago-x86 has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
arya_ching has joined #ruby
diegovio1 has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
kaspergrubbe has quit [Ping timeout: 258 seconds]
diegoviola has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
muhammadn has joined #ruby
rkalfane has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
jottr has joined #ruby
replay has quit []
davasaurous has joined #ruby
User458764 has joined #ruby
ixti has quit [Quit: WeeChat 1.0.1]
gtrak has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
User4587_ has quit [Ping timeout: 272 seconds]
drocsid has joined #ruby
<drocsid>
I'm trying to use this in a provision script : printf '%s\t %s\n' $(hostname) $(ip -f inet -o addr show eth1 | awk '{ print $4 }' | sed 's/\/16//g') >> /vagrant/hosts it seems to work from a terminal logged into a vagrant host, but only puts the hostname in the file otherwise.
muhammadn_ has joined #ruby
<drocsid>
$provision_script= <<SCRIPT
jottr has quit [Ping timeout: 256 seconds]
davasaurous has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
Photism has joined #ruby
muhammadn has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
aspires has quit []
aspires has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
User4587_ has joined #ruby
VanillaGoat_ has joined #ruby
rshetty has quit [Remote host closed the connection]
diegovio1 is now known as diegoviola
rshetty has joined #ruby
User458764 has quit [Ping timeout: 264 seconds]
jdj_dk has quit [Ping timeout: 256 seconds]
ctooley has joined #ruby
<benzrf>
=<<
<benzrf>
a haskelL!
jimmyhoughjr has joined #ruby
VanillaGoat__ has quit [Ping timeout: 245 seconds]
krz has joined #ruby
<ctooley>
Hello. I’m trying to do something I thought would be exceptionally simple, but apparently is less simple that I expected. How do I create an ActiveRecord object using the contents of an array without explicitly mapping each element to a field? They’re all in the same order, it seems a bit verbose to list them all out.
Takle has quit [Remote host closed the connection]
optiz0r has quit [Ping timeout: 245 seconds]
davasaurous has joined #ruby
nyanz has joined #ruby
<gr33n7007h>
erb or haml? hmm.... haml ftw for sure!!!
ruber has quit [Ping timeout: 258 seconds]
hmsimha has joined #ruby
<ctooley>
:-)
thumpba has joined #ruby
<ericwood>
ctooley: when it comes to attributes there's no notion of "order"
<ericwood>
they're just fields on the model
<ctooley>
I take it that probably means no. :-)
<ericwood>
it's for the best honestly
<ericwood>
but you could create something that maps the array to associated hash values
jenrzzz has joined #ruby
gtrak has quit [Ping timeout: 265 seconds]
rshetty has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
arya_ching has quit [Ping timeout: 265 seconds]
thumpba has quit [Ping timeout: 255 seconds]
mesamoo has joined #ruby
dexkiki has quit [Quit: Page closed]
aspires has quit []
User4587_ has quit [Ping timeout: 245 seconds]
zz_jrhorn424 is now known as jrhorn424
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
sanguisdex has joined #ruby
<sanguisdex>
okay time for a stupid question but I can't figure it out
ramfjord has quit [Ping timeout: 260 seconds]
<ericwood>
fire away
danijoo has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
danijoo has joined #ruby
linojon has joined #ruby
<ericwood>
or not
muhammadn_ has quit [Read error: Connection reset by peer]
<sanguisdex>
how do I return the value of "bar" when it's been entered into a hash via options ={foo =>[{bar => "lorom"}]}
<sanguisdex>
ericwood: it toom me a moment to abstract the hash bits
<ericwood>
yeah no worries
ramfjord has joined #ruby
<sanguisdex>
I have tried options['foo']['bar'] and that does not work
<ericwood>
>> h = {foo: [{bar: 'lorom'}]}; puts h[:foo].first[:bar]
sepp2k has quit [Read error: Connection reset by peer]
<sanguisdex>
ericwood: how would I use the key instead of the .first method, I have multiple values in parallel to bar that I need to return in other bits
jrhorn424 is now known as zz_jrhorn424
<sevenseacat>
well the key is 0, given its an array
djbkd has quit [Remote host closed the connection]
User4587_ has joined #ruby
snath has joined #ruby
Tricon has joined #ruby
<ericwood>
I'm confused, are you trying to find the first hash inside of the foo array that has the key bar?
doug1 has joined #ruby
vanderh0ff has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
vanderh0ff has joined #ruby
<sanguisdex>
ericwood: 1 the hash is created via a YAML.load_file. I am trying to return values from the third tier of the hash via their key
<sevenseacat>
there is only two levels of ash there, not three
<ericwood>
arrays don't have keys, so the only way I could get the inner hash was with .first :(
<sevenseacat>
hash
User458764 has quit [Ping timeout: 264 seconds]
<shevy>
I have eight layers of ash
<shevy>
cat ash
<ericwood>
ah okay you gave me weird input
<sevenseacat>
!fake
<helpa>
Please do not use fake values, as they can be confusing or misleading. Sometimes both.
<ericwood>
>> h = {options: {foo: {bar: 'lorom'}}}; puts h[:options][:foo][:bar]
<sanguisdex>
okay here is something I know I am missing, when writing a gem, I don't feel should need to run rake install between ever test. point me to the documentation I missed?
ghr has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
User4587_ has joined #ruby
<shevy>
I don't even have rake to test stuff
<Lewix>
is there someone here who buy most ruby books
<shevy>
my tests are only .rb files that reside in test/ of the respective gem
<Lewix>
who's like the go to person for new ruby books
User458764 has quit [Ping timeout: 244 seconds]
<shevy>
the only way to learn ruby is by writing a lot of ruby code
eka has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eka has quit [Client Quit]
<Lewix>
shevy: hope you're not talking to me
jerius has joined #ruby
braincra- has joined #ruby
<eam>
don't listen to shevy he's a php developer
<shevy>
I left php behind
msmith has joined #ruby
<shevy>
just as eam abandoned perl
<Lewix>
ruby is so dead
<Lewix>
=)
jdj_dk has quit [Ping timeout: 260 seconds]
coderwill has quit [Quit: leaving]
<Lewix>
there was a time when rubyist used to be proud
jgrevich has quit [Read error: Connection reset by peer]
<shevy>
this time is still here
* Lewix
is looking for a book in particular
jgrevich has joined #ruby
<shevy>
go read the pickaxe
braincrash has quit [Ping timeout: 256 seconds]
<Lewix>
done
msmith has quit [Remote host closed the connection]
<shevy>
then you know enough ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<Lewix>
I'm looking for a specific book but I have plans
o0oo0o has joined #ruby
<shevy>
we all have plans
niko has quit [Ping timeout: 612 seconds]
<Lewix>
but I want to borrow it
<Lewix>
^^
<Lewix>
I don't have no money to buy that ish right now
<eam>
I hear books can be obtained for free on the internet
niko has joined #ruby
<shevy>
Lewix is a curious person
User458764 has joined #ruby
diegovio1 has joined #ruby
IceDragon has quit [Quit: Space~~~]
diegoviola is now known as Guest9165
doug1 has quit [Read error: Connection reset by peer]
diegovio1 is now known as diegoviola
Guest9165 has quit [Ping timeout: 244 seconds]
doug1 has joined #ruby
<Lewix>
shevy: by the way something funny, I had a discussion with the writer of effective ruby about whether ruby is pass by value or by reference
magic_ has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lewix>
he was convinced it was pass by reference
<Lewix>
eam: not that one, and I'm black belt at googling
duncannz has quit [Remote host closed the connection]
<sevenseacat>
if you want books, you should buy them.
<Lewix>
eam: the other alternative, is we kill two birds with one stone - you buy it, read it and send it to me
User4587_ has quit [Ping timeout: 256 seconds]
<Lewix>
sevenseacat: oh please..i love you but not today
* Lewix
is not in the mood
duncannz has joined #ruby
<sevenseacat>
i'm not in the mood for pirates either.
<Lewix>
sevenseacat: I'm not a pirate until proven guilty
<shevy>
how about pirate cats
luriv has quit [Ping timeout: 245 seconds]
<Lewix>
sevenseacat: have you ever downloaded anything free from the internet?
<shevy>
a ship vessel would be an ideal location for a cat - if it likes fish
<eam>
sevenseacat: don't be so anti-sharing
matchaw has quit [Ping timeout: 245 seconds]
<sevenseacat>
sure, i download free things like software all the time.
danijoo has quit [Read error: Connection reset by peer]
thumpba has quit [Remote host closed the connection]
User4587_ has quit [Ping timeout: 245 seconds]
n_blownapart has joined #ruby
Kricir has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
mikepack_ has quit [Remote host closed the connection]
duncannz has joined #ruby
<ctooley>
OK, am I on crack or did rails used to be able to take a database DSN and generate some basic CRUD pages for the tables in the the schema?
jusmyth has joined #ruby
Kricir has joined #ruby
<havenwood>
ctooley: might have better luck with rails in #rubyonrails, nick registration required
n_blownapart has quit [Client Quit]
<ctooley>
havenwood: cool, thanks
kohgpat has quit [Ping timeout: 255 seconds]
zorak8 has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
oo_ has joined #ruby
kireevco has quit [Max SendQ exceeded]
michaeldeol has joined #ruby
kireevco has joined #ruby
patrick99e99 has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
kohgpat has joined #ruby
User4587_ has joined #ruby
kyb3r_ has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
duncannz has quit [Remote host closed the connection]
koderok has quit [Ping timeout: 244 seconds]
ctooley has quit [Quit: ctooley]
duncannz has joined #ruby
charliesome has joined #ruby
kp666 has joined #ruby
msmith has joined #ruby
dogweather has quit [Remote host closed the connection]
User458764 has joined #ruby
jdj_dk has joined #ruby
msmith has quit [Ping timeout: 258 seconds]
speakingcode has quit [Ping timeout: 245 seconds]
User4587_ has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
et09 has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
ndrei__ has joined #ruby
<et09>
i have kind of a design question - how do i start an arbitrary number of threads, and not close out of the calling function, or continue executing code in that function, until they've completed?
<et09>
in other words i want the threads to operate as a block until all of them have finished executing
mattmcclure has quit [Quit: Connection closed for inactivity]
User4587_ has quit [Ping timeout: 250 seconds]
jdj_dk has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
byprdct has quit []
fabrice31 has quit [Ping timeout: 264 seconds]
callumacrae has joined #ruby
sinequanon has joined #ruby
boombadaroomba has joined #ruby
ghr has joined #ruby
JoshGlzBrk has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
User4587_ has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
kohgpat has joined #ruby
omosoj has joined #ruby
<omosoj>
anyone here use treat?
emmesswhy has joined #ruby
govg has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 265 seconds]
AlexRussia has joined #ruby
mikepack has joined #ruby
dseitz has joined #ruby
govg has joined #ruby
j_mcnally has joined #ruby
mistermocha has quit [Read error: Connection timed out]
Joufflu has quit [Read error: Connection reset by peer]
Joufflu has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
tokik_ has joined #ruby
Morkel has joined #ruby
Spami has joined #ruby
User458764 has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
User4587_ has quit [Ping timeout: 265 seconds]
learning has joined #ruby
jdj_dk has joined #ruby
<learning>
I am using redmine and upgraded it to 2.6.0 . But after restarting thin, it doesn't seem to load. I see the following in the log: http://pastebin.com/aQLzPjR2
jenrzzz has joined #ruby
thumpba has joined #ruby
<pontiki>
from the redmine.org home page: "For getting help or discussing about Redmine, you can browse the Redmine forums hosted right here in Redmine. We also have a fairly active chatroom - join #redmine on the freenode IRC network. Some more information about IRC is here"
<learning>
pontiki: Do you think it is really related to redmine?
<pentanol>
learning that why I want keep using 2.3.0 version
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
jcdesimp has joined #ruby
<learning>
pentanol: Thats advice is ok but why there is issue when upgraded
tlarevo has joined #ruby
thumpba has quit [Ping timeout: 265 seconds]
User4587_ has joined #ruby
maestrojed has joined #ruby
<maestrojed>
anyone wanna try to explain a ruby project to a dinosaur (me)? I want this. https://github.com/voxmedia/meme. I have no idea how to use this :)
<maestrojed>
I can follow the instructions. after running this middleman thing I can use this in am local browser. So I guess everything they talk about is "working". However I have no idea how to incorporate this into a website or get it to work outside of this "middleman" thing.
User458764 has quit [Ping timeout: 244 seconds]
arescorpio has quit [Excess Flood]
aewffwea has joined #ruby
dkb20k has joined #ruby
tokik has joined #ruby
robbyoconnor has joined #ruby
tokik_ has quit [Ping timeout: 255 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jcdesimp_ has joined #ruby
<aewffwea>
What are ruby most important concepts?
User458764 has joined #ruby
<theotherstupidgu>
aewffwea, just start with ruby object model
<theotherstupidgu>
aewffwea, Dave Thomas talks are the easiest way to start in my opinon
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has quit [Ping timeout: 256 seconds]
Hijiri has joined #ruby
sinkensabe has joined #ruby
<learning>
How to reinstall bundle? bundle install --without development test just shows installed bundles
<sevenseacat>
`bundle install` will install everything in your bundle.
User4587_ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<aewffwea>
theotherstupidgu: What's so particular about ruby object model? I'm looking for summarized information, not detailed information....
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
govg has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
cleopatra has quit [Quit: Saliendo]
tvw has joined #ruby
<pontiki>
ruby's most important concept: have fun writing code
<aewffwea>
pontiki: what other important concepts are there?
User458764 has quit [Ping timeout: 250 seconds]
<aewffwea>
pontiki: BTW: What's a nice debugger with a nice UI for linux?
<pontiki>
learning: whether it turns out to be a problem directly with redmine or not, it seems like it would be better to ask people who use redmine a lot instead of people who don't
<pontiki>
pry is the bestest
<aewffwea>
does it has a gui?
jasooon has joined #ruby
<pontiki>
no
<sevenseacat>
GUIs for linux?
lkba has quit [Ping timeout: 256 seconds]
<pontiki>
if you want a gui-ish thing, then rubymine is the best
<aewffwea>
k
<aewffwea>
can I use pry from rubymine?
<aewffwea>
or does rubymine uses it's own debugger?
Morkel_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<pontiki>
it uses irb, i believe, but i heard somewhere that one can use pry, but i don't know how
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
<pontiki>
as it's a gui, it hides all that from you anyway
jdj_dk has quit [Ping timeout: 272 seconds]
<pontiki>
and you can run terminal sessions inside rubymine and run pry from there
<pontiki>
i'm not sure what the advantage is to doing that vs just running in another xterm
<sevenseacat>
ive heard IDEs are nice. i dont see the need for them with ruby and rails
reinaldob has joined #ruby
melik has quit [Quit: (null)]
robustus has quit [Ping timeout: 255 seconds]
jasooon has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cya]
mistermocha has quit [Remote host closed the connection]
<pontiki>
i mainly jump into rubymine when i have a new-to-me code base that i have to spelunk and understand quickly
magic_ has quit [Quit: Leaving]
magic_ has joined #ruby
<pontiki>
the rest of the time (most of the time) i'm just using Emacs or Sublime
<sevenseacat>
rubymine still looks like ass on linux
ghr has joined #ruby
robustus has joined #ruby
<pontiki>
it rather looks like ass everywhere
mistermocha has joined #ruby
<sevenseacat>
ah, good to know
<pontiki>
though you can change themes, i never bother
kohgpat has quit [Ping timeout: 265 seconds]
reinaldob has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
razieliyo has quit [Quit: Saliendo]
oleo has quit [Quit: Verlassend]
towski has joined #ruby
User4587_ has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
havenwood has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
linoespinoza has joined #ruby
govg has quit [Ping timeout: 265 seconds]
skolman_ has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
govg has joined #ruby
linoespinoza has quit [Client Quit]
dumdedum has joined #ruby
Photism has quit [Quit: Leaving]
theotherstupidgu has quit [Ping timeout: 265 seconds]
theotherstupidgu has joined #ruby
starkhalo has quit [Ping timeout: 265 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
User4587_ has joined #ruby
patrick99e99 has joined #ruby
mercwithamouth has quit [Quit: Lost terminal]
User458764 has quit [Ping timeout: 244 seconds]
jcdesimp_ has quit [Quit: Leaving...]
Lewix has quit [Ping timeout: 265 seconds]
timonv_ has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
kohgpat has joined #ruby
echooo has joined #ruby
i_s has joined #ruby
davasaurous has quit [Remote host closed the connection]
cina has joined #ruby
echooo1 has quit [Ping timeout: 272 seconds]
nyanz has quit [Remote host closed the connection]
Joufflu has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
alem0lars|away is now known as alem0lars
User458764 has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 244 seconds]
User4587_ has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
rbrs has joined #ruby
sinkensabe has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
User4587_ has joined #ruby
deepy has quit [Ping timeout: 258 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Ping timeout: 245 seconds]
deepy has joined #ruby
mistermocha has joined #ruby
deepy is now known as Guest51033
thumpba has joined #ruby
fabrice31 has joined #ruby
timonv^ has joined #ruby
michaeldeol has joined #ruby
klaut has joined #ruby
apeiros has quit [Remote host closed the connection]
jusmyth has quit [Ping timeout: 255 seconds]
timonv_ has quit [Ping timeout: 256 seconds]
michaeldeol has quit [Client Quit]
timonv^ has quit [Remote host closed the connection]
jusmyth has joined #ruby
apeiros has joined #ruby
Neozonz has joined #ruby
<Neozonz>
im having a bloody hell time trying to run a simple ruby script in a cron
<Neozonz>
anyone have any ideas? get issues finding gems... works fine via normal bash
fr1eza has joined #ruby
fr1eza has joined #ruby
<sevenseacat>
without any information about what you're trying to do??? we're not mindreaders
fabrice31 has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
<Neozonz>
Getting > /usr/lib/ruby/vendor_ruby/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- fog (LoadError)
anaeem1 has joined #ruby
<Neozonz>
works fine on shell
kireevco has quit [Quit: Leaving.]
Lewix has joined #ruby
lolmaus has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
anaeem1 has joined #ruby
Lewix has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
<pentanol>
what if thin server say:
<pentanol>
ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb)
Lewix has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
<pentanol>
what kind of secret token it requires?
Lewix has joined #ruby
<sevenseacat>
pentanol: a string.
echooo1 has joined #ruby
User4587_ has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has joined #ruby
bauruine has joined #ruby
zorak8 has joined #ruby
spastorino has joined #ruby
agjacome has joined #ruby
Insanity133 has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
alem0lars is now known as alem0lars|away
Imofftopic has joined #ruby
DrCode_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
mnms__ has quit [Ping timeout: 265 seconds]
ptrrr has quit [Quit: ptrrr]
Takle has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
akar has joined #ruby
<akar>
.join #RubyOnRails
<akar>
.join #RubyOnRails
spider-mario has joined #ruby
<akar>
sorry typos
DrCode has joined #ruby
aboudreault has quit [Excess Flood]
TPBallbag has joined #ruby
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
mnms_ has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
vyorkin has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
TPBallbag has quit [Remote host closed the connection]
TPBallbag has joined #ruby
cibs has joined #ruby
SolarSailor has joined #ruby
jasooon has joined #ruby
aboudreault has joined #ruby
AlSquire has joined #ruby
i_s has joined #ruby
Dr3amc0d3r|away has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
SolarSailor has quit [Ping timeout: 260 seconds]
Hijiri has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
Macaveli has joined #ruby
SolarSailor has joined #ruby
sevenseacat has joined #ruby
yfeldblum has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
<shevy>
lol
akar has left #ruby [#ruby]
Spami has joined #ruby
ringarin has joined #ruby
gaussblurinc1 has joined #ruby
muhammadn_ is now known as muhammadn
TPBallbag has quit [Ping timeout: 245 seconds]
ghr has quit [Read error: Connection reset by peer]
arup_r_ has joined #ruby
ghr has joined #ruby
Luser has joined #ruby
tlarevo has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
Imofftopic has quit [Quit: Leaving]
jheg has joined #ruby
<Luser>
Hi guys. Assuming I have something like that: https://gist.github.com/anonymous/587c7a16d30e8c6710e0 (@xls_path is a path to xls file, obviously) how could i save that CSV using exact same name as xls file, but with CSV extension? It saves in the same directory now, but i need to figure out filename part now.
arup_r has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
Xeago has joined #ruby
arup_r has joined #ruby
rylev has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<pentanol>
how can I install many new packages, not one by one?
arup_r has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
b1nd has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
<shevy>
pentanol can you be more specific
<shevy>
what do you mean with "packages". gems?
<zenspider>
pentanol: gem install a b c d works fine
<pentanol>
yes gems
charliesome has joined #ruby
<Luser>
zenspider: thank you, but I don't want to create another variable, just use it straight in CSV.open
<Luser>
Is that even possible?
jottr has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
<zenspider>
Luser: just use a variable.
nateberkopec has joined #ruby
<shevy>
pentanol k well, you could use bundler to manage gems; or you could install them one after the other. if you are on linux, a simple .sh script works. or if you have ruby (haha logically), you can do the same... array_with_all_your_gems_here.each {|entry| system 'gem install '+entry }
<rpag>
mrgrieves, when the '3.times' loop finishes, probably after that, but you'd need to define 'rc' outside the block, then say exit(rc)
bal has quit [Ping timeout: 272 seconds]
<workmad3>
mrgrieves: or at least return 'rc' from the block
siwica1 has joined #ruby
jgt has quit [Ping timeout: 244 seconds]
<mrgrieves>
thank you guys! I'll give both a try
<rpag>
pentanol, that version of thor isnt listed in the Gemfile
<workmad3>
mrgrieves: the 'rc' inside the block is a completely different local variable though... assigning to it will do diddly-squat ;)
siwica has quit [Ping timeout: 272 seconds]
jasooon has joined #ruby
<rpag>
pentanol, so, really, i have no idea what you're doing and im going to give up trying to help :P
<workmad3>
mrgrieves: also, as a note on style - given the amount of code in your block to mco_retry, I'd highly recommend splitting the code over multiple lines
<rpag>
agreed, it's slightly hard to read the 3.times {} line
<workmad3>
pentanol: it can't find the Magick-config binary that is used to configure the native extensions, which typically means you haven't installed the development libraries and headers for imagemagick
timonv_ has quit [Remote host closed the connection]
<rpag>
i think you're gonna regret trying to solve his/her problem like i did
<workmad3>
rpag: probably :)
jasooon has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
bal has joined #ruby
AlexRussia has joined #ruby
Kabaka has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
bal has quit [Client Quit]
bal has joined #ruby
Takle has joined #ruby
Sthebig has quit [Ping timeout: 250 seconds]
<alex88>
a friend using osx 10.8.2 compiling with llvm 4.2 clang 425.0.28 have troubles compiling ruby via ruby-build starting from version 2.1.3, he just tried on version 2.1.4 and he got the same problem, compilation is stuck on line 'generating encdb.h', someone else had this issue?
mrjensen has joined #ruby
<pentanol>
workmad3 imagemagick not have include in source
<rpag>
alex88, i haven't, but you're the second person who mentioned a stalled install on OSX
roolo has quit [Remote host closed the connection]
jimbach has joined #ruby
Kabaka has joined #ruby
<rpag>
alex88, worth a shot
<rpag>
alex88, i havent used OSX in a long-ish time but clang has caused me issues in the past when building ruby
<rpag>
including building fine and then segfaulting randomly :/
<alex88>
never had such issues, maybe since he's using an old version of th eos
<alex88>
*the os
<rpag>
could be
<rpag>
hsbt mentioned an old xcode build
fabrice31 has joined #ruby
tyll_ is now known as tyll
red_horned_rihno has quit [Quit: Leaving]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
niklasb_ has quit [Quit: WeeChat 1.0.1]
niklasb_ has joined #ruby
niklasb_ has quit [Client Quit]
niklasb_ has joined #ruby
<banisterfiend>
alex88 Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cre8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8.
Takle has quit [Remote host closed the connection]
mrjensen has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Lewix has joined #ruby
<rpag>
fascination with the number 8
niklasb_ has joined #ruby
zzz_Ridley is now known as Ridley5
niklasb_ has quit [Client Quit]
red_horned_rihno has joined #ruby
echooo has joined #ruby
<pentanol>
now I have a question...
<pentanol>
Gem::LoadError: You have already activated rake 10.3.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this.
<workmad3>
banisterfiend: fail... your number only had 7 8s
<shevy>
oh noes
arup_r_ has quit [Remote host closed the connection]
<rpag>
banisterfiend, cool, wozniak said that 'jobs' movie was really inaccurate too
<pentanol>
hm, but thin is not working from bundle exec....: config.ru:1:in `<main>': cannot load such file -- rack/builder (LoadError)
<tobiasvl>
it was inaccurate in everything except ashton kutcher's looks
<rpag>
maybe thats why there's a second movie :P
<Luser>
rpag: Close, actually. It gets converted to an array but this part „info"=>{"name"=>”test name", "www"=>nil} is still hash because it is nested inside
koderok has joined #ruby
<pentanol>
what from I should install rack/builder? I installed many gems from gem install a couple minutes ago.
<sevenseacat>
lol
<sevenseacat>
i cant believe this has gone on literally all day
<pentanol>
yes looks like
<pentanol>
all day today I'm in struggle with ruby
<pentanol>
and may be next
xymbol has joined #ruby
sinkensabe has joined #ruby
bMalum has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
<Luser>
Thanks rpag
tobago has quit [Remote host closed the connection]
dmtry has quit [Quit: WeeChat 1.0.1]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<soahccc>
rpag: In case you remember and care, I found a solution (at least for *nix) to my ^C vs. INT-signal problem. Open3 (or rather Process) has an pgroup option to start the process in a new process group.
<rpag>
i remember, & nice :)
jasooon has joined #ruby
jimbach has quit [Remote host closed the connection]
disperso has joined #ruby
qba73 has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
tkuchiki has quit [Ping timeout: 256 seconds]
asdao937 has quit [Quit: Page closed]
psyprus has joined #ruby
postmodern has quit [Quit: Leaving]
niko has left #ruby [#ruby]
<soahccc>
rpag: you don't know the windows equivalent by any chance?
<rpag>
nope, sorry
jasooon has quit [Ping timeout: 240 seconds]
<rpag>
i dont even know if windows has anything like sigint :P
Macaveli has quit [Read error: Connection reset by peer]
<soahccc>
rpag: You could actually cry when reading this "Symbolic links are designed to aid in migration and application compatibility with POSIX operating systems. Microsoft aimed for Vista's symbolic links to "function just like UNIX links".[4] However, the implementation varies from Unix symbolic links in several ways. For example, Vista users must manually indicate when creating a symbolic link whether it is a file or a directory.[5] Vista has a limit of 31
<soahccc>
symbolic links in a single path.[6] Only users with the new Create Symbolic Link privilege, which only administrators have by default, can create symbolic links.[7] If this is not the desired behavior, it must be changed in the Local Security Policy management console."
<deepy>
Is the limit in 7+ too?
<rpag>
i dont get why only administrators can create them by default
<soahccc>
I guess so, at least wiki doesn't have any updates
<rpag>
they dont seem like a security concern if youre just creating them in dirs you have permission to
danjordan has joined #ruby
<soahccc>
but the fun doesn't stop there... My installer for windows tried to update PATH via setx... Guess what, the command silently truncates and therefore screws your PATH at 1024 chars
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxf has joined #ruby
<rpag>
ouch
xymbol has joined #ruby
triple_b has joined #ruby
<deepy>
Out of wild curiosity, do you use MySQL as your db?
<rpag>
usually use postgres
<rpag>
or just sqlite
<deepy>
Sorry, meant that towards soahccc
<rpag>
ah
<rpag>
np
<deepy>
Aren't there any better alternatives to sqlite btw?
<soahccc>
deepy: MCL? I only tested it against sqlite but it's active record and I don't have any raw SQL so should work
govg has quit [Quit: leaving]
shredding has quit [Quit: shredding]
govg has joined #ruby
<deepy>
soahccc: is your own db mysql?
charliesome has quit [Quit: zzz]
<soahccc>
deepy: what do you mean?
toordog has quit [Ping timeout: 250 seconds]
muhammadn has quit [Ping timeout: 245 seconds]
rbrs has quit [Quit: Leaving]
<deepy>
When you deploy an application requiring a database, do you hook it up to a mysql db?
razieliyo has joined #ruby
razieliyo has joined #ruby
<rpag>
oh for a website i wouldnt use sqlite, id use postgres or something like that
gaganjyot has joined #ruby
gtrak has joined #ruby
<soahccc>
deepy: depends.. when riding rails => 99% of the time, in case of MCL access is synchronized through a single mutex so mysql wouldn't bring you much of a performance gain unless you have loads of data
<rpag>
sqlite is just handy because it doesn't require as much setup as anything else
<deepy>
This punchline would've been a lot better if you'd simply said "yes"
<deepy>
"Then you should be used to silent truncation by now ;-)"
charliesome has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
BadQuanta has quit [Remote host closed the connection]
[[vedic]] has joined #ruby
mikecmpb_ has joined #ruby
danjordan has quit [Quit: danjordan]
anaeem1_ has quit [Remote host closed the connection]
<txdv>
as musch as anything else
Ridley5 is now known as zzz_Ridley
mikecmpbll has quit [Ping timeout: 240 seconds]
tier has joined #ruby
Hightower666 has quit [Ping timeout: 272 seconds]
alex88 has quit [Ping timeout: 265 seconds]
hmsimha has quit [Ping timeout: 245 seconds]
gtrak has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
parduse has quit [Read error: Connection reset by peer]
danjordan has joined #ruby
ndrei___ has joined #ruby
siwica1 has quit [Ping timeout: 245 seconds]
dblessing has joined #ruby
parduse has joined #ruby
ndrei__ has quit [Read error: Connection reset by peer]
<soahccc>
Alright windows doesn't care about the pgroup... I' loving it
arup_r has quit [Remote host closed the connection]
ndrei_ has quit [Read error: Connection reset by peer]
ndrei has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
dkphenom has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
tlarevo has quit [Ping timeout: 255 seconds]
tlarevo has joined #ruby
livingstn has joined #ruby
BadQuanta has joined #ruby
loveablelobster has joined #ruby
taptapdan has quit [Quit: taptapdan]
tesuji has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
timonv_ has quit [Remote host closed the connection]
loveablelobster has quit [Client Quit]
loveablelobster has joined #ruby
loveablelobster has quit [Client Quit]
sailias has joined #ruby
o0oo0o has quit [Ping timeout: 246 seconds]
<shevy>
why do you use windows man
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sanguisdex>
shevy++
jlebrech has joined #ruby
<soahccc>
I don't but I need to support windows. well I don't need to but everyone is asking for it
hellangel7 has quit [Remote host closed the connection]
jerius has quit []
jimbach has joined #ruby
sk87 has joined #ruby
doodlehaus has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
<jlebrech>
is there anything like this? a dashboard which shows lines you want debugging. so it's like a scratchpad, and instead of using stdout or raise, it writes the class name and line number and values you're debugging to a redis queue and the dashboard shows that info. bit like sidekiq meets pry really. does airbrake do inspection or it is just for exceptions?
gaussblurinc1 has joined #ruby
<rpag>
just exceptions
<rpag>
mainly just the backtrace
<shevy>
AND GOTO STATEMENTS
shazaum has joined #ruby
snath has quit [Ping timeout: 245 seconds]
rylev has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has joined #ruby
<rpag>
i dont think theres anything like that btw
<jlebrech>
cool
<Luser>
if i have two variables and i have to compare if they are present and also if they are different is there any ruby-way to do it or should i do it like if var_a && var_b && var_a != var_b ?
jasooon has joined #ruby
<shevy>
rpag I thought you can
<shevy>
oh
<jlebrech>
rpag: it probably something people won't need until they've used it really
timonv_ has joined #ruby
<shevy>
you replied to jlebrech, not the goto statement
Versality has joined #ruby
<rpag>
just var_a != var_b ? why does it matter if theyre not nil/false?
timonv_ has quit [Remote host closed the connection]
<rpag>
shevy, goto with joke right?
<rpag>
afaik
<shevy>
rpag yeah
<shevy>
Luser @ivars should be nil by default I think
govg has quit [Quit: leaving]
gaganjyot has quit [Ping timeout: 245 seconds]
<shevy>
Luser I don't think you can write this shorter, you have to check on three conditions
<Luser>
Ok, thank you.
<shevy>
hmm
Lewix has joined #ruby
<shevy>
what if we could simply check
<shevy>
unless var_a == var_b
ndrei___ has quit [Ping timeout: 272 seconds]
tesaf has joined #ruby
o0oo0o has joined #ruby
timonv_ has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
binaryhat has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
Takle has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
theotherstupidgu has joined #ruby
aspiers has quit [Ping timeout: 265 seconds]
byteoverfl0w has joined #ruby
Lewix has quit [Ping timeout: 255 seconds]
aspiers has joined #ruby
unshadow has joined #ruby
it0a has joined #ruby
<unshadow>
So, I want to check if a is "" or nil, do I have to do "if a != "" && a!= nil" or can I do something like "if a != "" && != nil" ?
sambao21 has joined #ruby
tkuchiki has joined #ruby
sanguisdex has quit [Quit: Leaving.]
<tobiasvl>
no, the latter is a syntax error
<unshadow>
so I have to repeat the "question" twice ?
<rpag>
nanderoo, might have more lucky in #rubyonrails
<rpag>
Macaveli, yes
<atmosx>
Hello, what is a first class function?
Kricir has joined #ruby
Lewix has quit [Remote host closed the connection]
<nanderoo>
rpag: thanks
<atmosx>
and second do you use parethensis on your code to pass argument to methods? I mean which style is *better* ?
<atmosx>
hm first class functions == functions that can be passed around as objects ... hm
Lewix has joined #ruby
<rpag>
lambda/Proc
<rpag>
ruby has them
lolmaus has quit [Quit: Konversation terminated!]
<benzrf>
first class functions is generally used to mean a lisp-1
Timgauth_ has joined #ruby
<ericwood>
gonna try building this MacVim Yosemite pull request...
<ericwood>
too impatient for it to get merged :o
<rpag>
switch to emacs!
tkuchiki has quit [Remote host closed the connection]
lessless has quit [Remote host closed the connection]
<ericwood>
the door is that way --->
<soahccc>
atmosx: I personally mix it. especially short variable names are usually wrapped or if there is a complex call in general. otherwise I don't put them
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<rpag>
atmosx, style is a subjective thing, i usually use parenthesis when calling/defining a method
<rpag>
seattlerb style is to omit them in method definition, and when calling too, unless it removes ambiguity
<atmosx>
soahccc: yeah, to me the code looks nicer without them, but with them makes it more readable to newcommers(!) (that's about the only pro argument I've seen)
<sanguisdex>
HOLY WAR
Timgauthier has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Remote host closed the connection]
Timgauth_ has quit [Read error: Connection reset by peer]
<atmosx>
rpag: seattlerb is the Seattle ruby group?
<ismell>
is that the correct way to set tls as the default?
Versality has joined #ruby
Versality has quit [Client Quit]
bauruine_ has joined #ruby
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<exadeci>
apeiros: got it thanks
sevenseacat has quit [Remote host closed the connection]
<apeiros>
yw
MightyFrogMan22 has joined #ruby
<shevy>
sanguisdex dunno
timonv_ has quit [Ping timeout: 255 seconds]
rylev has quit [Ping timeout: 255 seconds]
rylev_ has joined #ruby
<shevy>
sanguisdex depends on your weight and age :>
<Lewix>
I think I'm dreaming
<shevy>
I'll rugby against thin old men
sk87 has joined #ruby
<shevy>
good Lewix
<shevy>
ruby is the language for dreaming
<shevy>
also aplty called "prototyping" by mr. apeiros
<Lewix>
I thought that was javascript
<shevy>
omg
<shevy>
please don't let it spread
<sanguisdex>
shredding: 32 6'2" 195 lbs. I can teach you to scrum for real
<Lewix>
ah right
<Lewix>
shevy: can I see your github
<shredding>
?
<sanguisdex>
shevy: ^
<sanguisdex>
shredding: sorry wrong auto complete
<shredding>
:)
sk87 has quit [Client Quit]
fsapo has quit [Remote host closed the connection]
<Lewix>
lol
sk87 has joined #ruby
tkuchiki has joined #ruby
xjiujiu has quit [Ping timeout: 244 seconds]
BBBThunda has joined #ruby
sailias has quit [Quit: Leaving.]
sambao21 has quit [Ping timeout: 258 seconds]
chipotle has quit [Quit: cya]
rkalfane has joined #ruby
snath has joined #ruby
<shevy>
Lewix sure but I don't use git, I have not managed to include it into my workflow. I am more active on rubygems.org https://github.com/shevegen
<shevy>
nah, 95% are tiny. there are only about ... 4 larger projects
chipotle has joined #ruby
<shevy>
they also suck away more time than the small ones, even if one combines all the small ones :(
<twohlix>
damn shevy, you've got so many empty repos on github. lol
<shevy>
twohlix yeah
<shevy>
I was inactive for a long time
<shevy>
only since 2 years am I using rubygems
moritzs has joined #ruby
<shevy>
eventually I'll combine git but right now I am learning C (but for real this time, I am working through the dennis Ritchie book page by page)
<twohlix>
shevy, so you dont use version control, you just push to rubygems a lot?
<Lewix>
shevy: why are you learning C
<Lewix>
learn haskell
jdrumheller has quit [Ping timeout: 264 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
fred-inRio has quit [Remote host closed the connection]
jasooon has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doev has quit [Ping timeout: 244 seconds]
j2p2 has quit [Ping timeout: 265 seconds]
chrishough has joined #ruby
Takle has quit [Remote host closed the connection]
<shevy>
twohlix yeah kinda
crazydiamond has quit [Ping timeout: 256 seconds]
Neozonz|Disc2 has joined #ruby
<shevy>
twohlix for single-dev projects version control isn't that important. because what am I to do if I rewrite a project from scratch?
<shevy>
and for small classes I don't need version control, I have tests to ensure their functionality (should) work(s)
dermot has joined #ruby
<twohlix>
lol, its just funny that you use rubygems as a form of version control
<Lewix>
shevy: im debating what language to learn too actually
moritzs has quit [Ping timeout: 265 seconds]
<twohlix>
rather than just using version control
<shevy>
Lewix C is like the mother language
ahmadajmi has quit [Ping timeout: 250 seconds]
<Lewix>
shevy: the thing that pisses me off with C is that it's not gonna make me more marketable I think, and I don't have the luxury to
<shevy>
why would it not make you more marketable?
<Lewix>
shevy: It's the first language I learned actually, however I forgot it all
renderfu_ has joined #ruby
<shevy>
I grok all things of C so far - except for pointers
<Neozonz|Disc2>
I really need some help trying to run a ruby script inside cron specifically this one here https://github.com/99designs/vacuumetrix - I keep getting no such file to load -- fog (LoadError) yet it runs fine on bash
<shevy>
twohlix and I make small commits anyway. You agree that this can be done with or without version control?
<shevy>
except for one thing - rewrites
<ericwood>
idk why I like that line so much
<ericwood>
probably because it uses enumarable AND parallel assignment
<Lewix>
because it's gorgeous
<ericwood>
it really is
<ericwood>
and unlike some "functional" shenanigans it's actually quite readable
<ericwood>
<3 parallel assignment, I wish more people took advantage of it
<shevy>
twohlix I also think it will not apply equally well to different languages. Some programming languages are harder than others. I actually found php harder to be than ruby (if you keep your ruby code simple and use only the subset you really want or need)
AlexRussia has quit [Ping timeout: 255 seconds]
<shevy>
or C++
<pontiki>
i disagree with the notion that version control is unimportant even in small, single dev projects
<twohlix>
shevy: I disagree completely that version control is affected by language, unless you're doing non-text programming
<pontiki>
but then, i put nearly everything into version control
<twohlix>
pontiki: yes I agree, I'm just trying to point out to him that he uses rubygems as a version control
<ericwood>
version control is fantastic on single-dev projects
<ericwood>
I've saved myself many times with it
<lsone>
version control all the things
timonv_ has joined #ruby
<lsone>
literally all of them
renderful has quit [Ping timeout: 256 seconds]
<shevy>
what for
<ericwood>
allows you to have things in a good state, try out stupid shit, then put them back if it doesn't work
<apeiros>
version control irc?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
i don't put my images into a version control system, but i do use good old file system versions
<canton7>
it means you don't have to worry the morning after about drunk coding the night before
<ericwood>
I keep my whole HDD in git
<shevy>
so how do you use version control when you decide to rewrite a project from scratch
<parametaortho>
Any clue to how someone might redirect stdout/stderr to a function?
tuelz has joined #ruby
pauly_oc has joined #ruby
Zer0The0rem has quit [Remote host closed the connection]
bricker`work has joined #ruby
Ankhers has quit [Remote host closed the connection]
rippa has joined #ruby
triple_b has joined #ruby
<Senjai>
parametaortho: You can replace STDOUT and STDERR in your application
<Senjai>
err
<Senjai>
$stdout and $stderr
<Senjai>
just assign them different values
<Senjai>
ARuba has an example fof that
<parametaortho>
Duh! It was so obvious!
<parametaortho>
Thanks man, I need a coffee.
Avahey has quit [Quit: Connection closed for inactivity]
ta has quit [Ping timeout: 264 seconds]
aewffwea has quit [Ping timeout: 256 seconds]
<Senjai>
parametaortho: You'll have to use IO objects, or StringIO if you dont want to dump to a file or something
MightyFrogMan22 has quit [Quit: MightyFrogMan22]
pietr0 has joined #ruby
Lewix has quit [Remote host closed the connection]
<parametaortho>
Senjai: yah, copy the interface and I should be good. Thanks. :)
anaeem1 has joined #ruby
mrjensen has quit [Remote host closed the connection]
Ankhers has joined #ruby
<Senjai>
I would start with StringIO if you want to copy the interface
<Senjai>
and go from there
MightyFrogMan22 has joined #ruby
<parametaortho>
That looks like the best way.
IceDragon has quit [Ping timeout: 265 seconds]
IcyDragon has joined #ruby
ahmadajmi has joined #ruby
tier has joined #ruby
RichardLitt has joined #ruby
<RichardLitt>
What does << mean?
<jhass>
RichardLitt "append"
spyderman4g63 has quit [Remote host closed the connection]
<RichardLitt>
jhass: thanks. So, @foo << bar
<RichardLitt>
will append foo to bar, or bar to foo/
spyderman4g63 has joined #ruby
<jhass>
bar to @foo
<tuelz>
RichardLitt: pretty well documented if you want a pretty good explination I would suggest you may be well suited to read the docs for common operators
<jhass>
^ String#<<, Array#<<
<RichardLitt>
tuelz: Thanks. Wasn’t sure what to google, blanked on the word ‘operator'
<RichardLitt>
thanks guys!
<tuelz>
not that I'm saying RTFM, just letting you know it's a common operator
<jhass>
RichardLitt: symbolhound.com ;)
<RichardLitt>
tuelz: Literally, forgot the word operator
<RichardLitt>
:P
<tuelz>
happens to the best of us :)
<RichardLitt>
early morning. urg.
<RichardLitt>
thanks guys
mrjensen has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Lewix has joined #ruby
nateberkopec has quit [Quit: Leaving...]
IcyDragon is now known as IceDragon
poguez has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Ping timeout: 265 seconds]
xymbol has quit [Quit: Be back later ...]
nateberkopec has joined #ruby
ta has joined #ruby
thagomizer has joined #ruby
kireevco has joined #ruby
omosoj has joined #ruby
jheg has joined #ruby
flagg0204 has quit [Ping timeout: 244 seconds]
preller has joined #ruby
chipotle has joined #ruby
freerobby has quit [Quit: Leaving.]
<apeiros>
jhass, RichardLitt: NOWAY! it means shift left!
<Lewix>
yo Senjai
jasooon has joined #ruby
<apeiros>
in other words: it's a method and meaning depends on the receiver
<Senjai>
Lewix: yo Lewix
<RichardLitt>
apeiros: hmm? What’s the difference?
<Lewix>
Senjai: how are you
<Senjai>
Good you?
<jhass>
RichardLitt: he's talking about Fixnum#<< (or is it Integer#<<?)
<apeiros>
though, not to forget the syntax constructs using << - `class << obj` to open singleton class, and `<<HERE_DOC` to start a here-doc
<workmad3>
twohlix: and always make sure you understand your profiling too ;)
<RichardLitt>
jhass: there
sycr is now known as jdjkelly
<jhass>
RichardLitt: scroll down to Methods on the right side
<apeiros>
RichardLitt: and in your case, you have a Set. Set#<< is "add"
<RichardLitt>
yep
<apeiros>
no shift happening there
<jhass>
and enter << into the search
<workmad3>
twohlix: I'm always reminded of an anecdote of a team writing an OS on that front - they profiled their code and discovered one routine where it was spending 80%+ of the time
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
<twohlix>
workmad3: idle.
<twohlix>
lol
<RichardLitt>
returned nothing
<workmad3>
twohlix: yup
<RichardLitt>
done
<jhass>
meh, docs are broken again
<workmad3>
twohlix: but they didn't realise that until after they'd optimised it ;)
<twohlix>
wow, lol
<apeiros>
workmad3: somebody told them what CPU vs. IO bound means and taught them concurrency? :)
hellangel7 has joined #ruby
<workmad3>
twohlix: I have no idea of the truth of said anecdote
<IceDragon>
>> a = 0xF << 0xF0; b = [1, 2, 3] << 4; STDOUT << 'ZOMG RRRRUBYYYYY'; STDOUT << ['%08b' % a, b]
<twohlix>
apeiros: next up you should mention the hack for inverse squares
garbanotas has joined #ruby
Helious has quit [Quit: Be back later ...]
adambeynon has quit [Ping timeout: 265 seconds]
chrisseaton has quit [Ping timeout: 260 seconds]
tarcwynne__ has quit [Ping timeout: 260 seconds]
charles81 has quit [Ping timeout: 260 seconds]
tmoore has quit [Ping timeout: 272 seconds]
parametaortho has left #ruby [#ruby]
pusewicz has quit [Ping timeout: 265 seconds]
ZucchiniZe has quit [Ping timeout: 265 seconds]
<RichardLitt>
apeiros: I’m getting there. Slow on the uptake.
vcoinminer______ has quit [Ping timeout: 260 seconds]
rfv has quit [Ping timeout: 260 seconds]
featheryahn has quit [Ping timeout: 260 seconds]
casual has quit [Ping timeout: 265 seconds]
Darryl_ has quit [Ping timeout: 265 seconds]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
<Liendre>
I want to push an hash inside one array the is inside other hash. and I think I need some help there. I am reading ruby docs but I cant figure out.
<RichardLitt>
jhass: In those docs, I don’t see #<< (Set). Am I missing something?
flagg0204 has joined #ruby
unshadow has joined #ruby
<Liendre>
the array inside the hash is the value of the second key
<jhass>
RichardLitt: that's because it's not in core but a library that's shipped with ruby
<RichardLitt>
Got it.
<RichardLitt>
Ok, cool.
<RichardLitt>
I’m good.
<RichardLitt>
thanks apeiros, jhass
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
<unshadow>
Hi, does any one knows any gem or library that gives NTLM version 2 authentication capabilities ?
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
livathinos has quit []
<unshadow>
All the ones I found only support NTLM vesrion 1
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
danku has quit []
d4nku has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
jespada has quit [Ping timeout: 250 seconds]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
krz has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
maestrojed has joined #ruby
<Liendre>
ok forget it I did it finally :)
xymbol has joined #ruby
<Liendre>
It is always easier than you think ;\
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
flagg0204 has quit [Ping timeout: 244 seconds]
ahmadajmi has quit [Ping timeout: 265 seconds]
Hightower666 has joined #ruby
einarj has quit [Remote host closed the connection]
Hightower666 has quit [Excess Flood]
kaspergr_ has quit [Remote host closed the connection]
theotherstupidgu has quit [Ping timeout: 256 seconds]
skolman_ has joined #ruby
icarus has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
atmosx has joined #ruby
skolman_ has quit [Remote host closed the connection]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
92AAAAESG has joined #ruby
92AAAAESG has quit [Read error: Connection reset by peer]
skolman has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
lmickh has joined #ruby
shredding has quit [Quit: shredding]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
Hightower666 has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
jobewan has quit [Ping timeout: 265 seconds]
Pupeno_ has joined #ruby
jheg has quit [Ping timeout: 265 seconds]
Hijiri has quit [Ping timeout: 245 seconds]
jusmyth has quit [Ping timeout: 245 seconds]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
sinkensabe has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Leaving]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
tvw has quit []
Pupeno has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
iamjarvo has joined #ruby
EMoreth has joined #ruby
phutchins has joined #ruby
RitterJack has quit [Remote host closed the connection]
<unshadow>
no one ? :(
fantazo has joined #ruby
jfran has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
mrjensen has quit [Remote host closed the connection]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
AlexRussia has quit [Ping timeout: 250 seconds]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
apeiros has joined #ruby
aspires has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
gaussblurinc1 has quit [Quit: Leaving.]
renderful has joined #ruby
boombadaroomba has joined #ruby
x1337807x has joined #ruby
AlexRussia has joined #ruby
x1337807x has quit [Max SendQ exceeded]
timonv^ has quit [Remote host closed the connection]
whatasunnyday has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
hamakn has quit [Remote host closed the connection]
Hightower666 has joined #ruby
wallerdev has joined #ruby
Hightower666 has quit [Excess Flood]
allcentury has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
yfeldblum has joined #ruby
benzrf is now known as benzrf|offline
Hightower666 has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
Hightower666 has quit [Excess Flood]
geggam has quit [Ping timeout: 264 seconds]
renderfu_ has quit [Ping timeout: 258 seconds]
ptrrr has joined #ruby
jarjar_prime has joined #ruby
michael_mbp has quit [Excess Flood]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
pietr0 has quit [Quit: pietr0]
ferr has quit [Quit: leaving]
djbkd has quit [Quit: My people need me...]
Trynemjoel has quit [Ping timeout: 265 seconds]
jobewan has joined #ruby
ndrei has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
Trynemjoel has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<headius>
rpag: I don't believe any of those javascript impls actually exist
michael_mbp has joined #ruby
godd2 has joined #ruby
<headius>
for rubinius
<rpag>
headius, they exist on github but no commits for >4 years
tlarevo has quit [Remote host closed the connection]
cassianoleal has joined #ruby
<kshah>
in Ruby 2.1.1 I’m using CSV.foreach as I have very large CSV files I’m parsing, the file is pipe delimited, CLRF line separated, and uses escaped double quotes rather than “”. I am unsure if I can pass CSV.foreach a converter or if I will be forced to sed the file ahead of time, which I’d like to avoid
<shevy>
_lazarevsky_ when do you have to call to_s
treehug88 has quit [Ping timeout: 256 seconds]
<_lazarevsky_>
shevy: when concatenating a string
<_lazarevsky_>
one of the dynamic elements in the string is a date
<_lazarevsky_>
but something that value can be nil
<shevy>
to convert an object into a string representation
<_lazarevsky_>
so when I call nil.to_s I get an exception
<_lazarevsky_>
pipework: well Amazon's SMS allows me to either pass in raw html or a content. I opted for the latter as it allows me to beautify the mail body with fancy colours and shit
<pipework>
_lazarevsky_: Turn that whole thing into a view in your app/views/ somewhere appropriate and make a file ending in .html.erb
<pipework>
Then convert to ERB.
<pipework>
_lazarevsky_: When using a rails mailer, they also render views like a controller does.
jheg has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
<pipework>
You can still pass in objects and things if you want, but you should generally treat the mailer itself like a controller that you can define nice methods around, in that you can set values, assign variiables, and it will look for a view to render by default.
Insanity133 has joined #ruby
<pipework>
Read about mailers in the rails guides.
mkaesz has quit [Client Quit]
<_lazarevsky_>
shevy: found the error btw
<shevy>
KILL IT WITH FIRE!!!
<_lazarevsky_>
pipework: I dont wanna sound like an unappreciative jerk.. but I really wanna first get this thing running,, and then beautify the code and do it properly..
<shevy>
also spank pipework for good measure after you fixed that bug :>
yxhuvud has quit [Remote host closed the connection]
<pipework>
well, good luck then
<_lazarevsky_>
pipework: i've been working for 13 hours straight and I must at least demo to my manager first thing tomorrow morning that correct emails are being sent..
<_lazarevsky_>
I hope you don't hate me for saying this :) I do wanna learn Ruby as I'm relatively new to it..
<_lazarevsky_>
but I gotta prioritiese
<shevy>
now you have done it
<pipework>
With a view you'd just call <%= some_object_like_a_date %> and not have to handle if it's nil.
<shevy>
he will hate you for the rest of his life
<pipework>
It'll automatically call #to_s for you and everything.
<_lazarevsky_>
one of the values im concatenating is nil
<pipework>
You can even do your normal view conditions.
<_lazarevsky_>
so im basically doing ... + nil + ... just as you assumed @ shevy
<shevy>
well
troulouliou_dev has joined #ruby
<shevy>
the bot showed the two possible errors
<_lazarevsky_>
ya.. sounds like a good idea pipework
<shevy>
(1) no implicit conversion of nil into String (TypeError)
<shevy>
(2) undefined method `+' for nil:NilClass (NoMethodError)
yfeldblum has joined #ruby
Insanity133 has quit [Remote host closed the connection]
<shevy>
(3) <_lazarevsky_> shevy: im getting this error aye -> "can't convert nil into String"
<shevy>
(3) sounds similar to (1) though
govg has quit [Client Quit]
govg has joined #ruby
<shevy>
but unless one can show me where it shows up, I will assume it is a custom Exception
<shevy>
how stupid would it be to be unable to convert nil into a String anyway!
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy>
csmrfx is in a funny mood!
jimmyhoughjr has joined #ruby
<csmrfx>
ask a funny question, get a funny answer!
jasooon has quit [Ping timeout: 272 seconds]
<_lazarevsky_>
pipework: you still there?
workmad3 has quit [Ping timeout: 260 seconds]
<graydot>
no, that is probably not what i want. I have a squid proxy, and i need to connect to the apple apns gateway through that. I dont want to create a proxy tunnel.
Pupeno has joined #ruby
<graydot>
shevy: csmrfx is a bot?
tercenya has joined #ruby
<pipework>
_lazarevsky_: Mostly dead.
* csmrfx
command "is" not defined
thoraxe has quit [Ping timeout: 255 seconds]
<_lazarevsky_>
so I iterate over an array of strings
<_lazarevsky_>
users.each do |user|
<_lazarevsky_>
during the first iteration all is dandy
<csmrfx>
_lazarevsky_: pastie.org
<_lazarevsky_>
at the begining of the second iteration, user is undefined
<_lazarevsky_>
kk
<shevy>
graydot half the nicks here are bots
razieliyo has joined #ruby
razieliyo has joined #ruby
<graydot>
shevy: any thoughts about my question? :)
<shevy>
I found the openssl docu awful
Pupeno_ has quit [Ping timeout: 244 seconds]
<shevy>
I tried to get my IRC bot with openssl support
<shevy>
there was some snippet on the www
<shevy>
I did not understand it
<shevy>
the docu was crap too
sinkensabe has quit [Remote host closed the connection]
<csmrfx>
good thing you wrote a problem description
[[vedic]] has quit [Ping timeout: 265 seconds]
hellangel7 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
thoraxe has joined #ruby
chinaski has quit [Quit: Leaving]
Lewix has joined #ruby
anaeem1 has quit [Remote host closed the connection]
skolman has joined #ruby
MightyFrogMan22 has left #ruby [#ruby]
wallerdev has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<rubie>
hi all: im having a hard time figuring out a while loop that will keep a program running until the user enters the word "quit" anyone willing to take a look? https://gist.github.com/gabrie30/0ac5cd26d695bba9aa2d
<csmrfx>
graydot: is that a clear handshake scenario?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
godd2 has quit [Ping timeout: 255 seconds]
<graydot>
csmrfx: yes
ldnunes has quit [Read error: Connection reset by peer]
nanderoo has quit [Quit: Leaving.]
graft has joined #ruby
dseitz_ has joined #ruby
anaeem1 has joined #ruby
<csmrfx>
rubie: so, what happens, instead?
<rubie>
it keeps going back into the loop
<rubie>
or maybe it never leaves the while loop im not sure
anaeem1 has quit [Remote host closed the connection]
<csmrfx>
well
<csmrfx>
rubie: think about "while" for a while
<csmrfx>
what are its rules?
Lewix has quit [Ping timeout: 255 seconds]
<rubie>
it runs until a certain condition is met
rafadc has joined #ruby
ldnunes has joined #ruby
fabrice31 has joined #ruby
<rubie>
thats all i got
fsapo has quit [Remote host closed the connection]
<csmrfx>
so, do you get "exiting program" when you type quit?
<rubie>
no thats the problem
gerep has joined #ruby
<rubie>
it seems like it goes into the else statment
rkalfane has joined #ruby
<csmrfx>
indeed
<rubie>
but the if never gets executed
<rubie>
even if the input is "quit"
claymore has quit [Ping timeout: 256 seconds]
<csmrfx>
um, you mean, the first block of that if statement on line 37
bluenemo has quit [Ping timeout: 256 seconds]
<rubie>
correct
fabrice31 has quit [Ping timeout: 245 seconds]
<rubie>
are you saying its not an if statemnt?
<csmrfx>
well actually the problem is not as simple as I thouight
<csmrfx>
anyway, first of all, I would *never* use a while statement without a variable that holds a state
anaeem1 has joined #ruby
havenwood has quit [Remote host closed the connection]
<j2p2>
one sec.
<rubie>
what do you mena
micahjam97 has joined #ruby
<csmrfx>
rubie: perhaps you could just use the "input" variable
<csmrfx>
rubie: I mean "while true" is bad ruby.
<micahjam97>
anybody here use rvm?
lightstalker has quit [Remote host closed the connection]
<sanguisdex>
micahjam97: I bet people have but rvm has its own channel
djbkd has quit [Remote host closed the connection]
claymore has joined #ruby
jimbach has quit [Remote host closed the connection]
<csmrfx>
rubie: second, once you fix that, you will not need to use "break" -- which inside another block is confusing -- will it break from the inner block or the outer? Do you know?
<micahjam97>
I tried connecting to the rvm channel but it didn't connect
<csmrfx>
so
<j2p2>
rubie, strip the input
wallerdev has quit [Quit: wallerdev]
<j2p2>
input = gets.to_s.strip
<j2p2>
that'll fix it
ctp has joined #ruby
lightstalker has joined #ruby
<j2p2>
also puts instead of put
xaxisx_ has quit [Remote host closed the connection]
<csmrfx>
and yeah, there might be control chars in the inputted strings
jimbach has joined #ruby
<csmrfx>
j2p2 will help you finish the job, rubie
<csmrfx>
micahjam97: what is your rvm problem?
<rubie>
csmrfx: i've also tried while input != "quit"
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubie>
same thing
<j2p2>
I actually disagree with while true being poor form but I'm willing to be wrong :p
<csmrfx>
rubie: sure, because what j2p2 said before
<csmrfx>
(probably=
<csmrfx>
*)
<sanguisdex>
micahjam97: is your user name registerd?
<micahjam97>
I was wondering if you could install a ruby version from source code that you downloaded
ringarin has joined #ruby
<csmrfx>
to add more detail, whats the point of using while if you have to use if and break
<micahjam97>
sanguisdex: what do you mean?
ForkingPaths has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has joined #ruby
<j2p2>
well you don't need break, you can just return
<j2p2>
or exit
<csmrfx>
or, just set the state variable for the while
<sanguisdex>
micahjam97: some channels will loong allow someone that has registered their handle with freenode
<jokke>
hey
Zer0The0rem has quit [Quit: Leaving]
<micahjam97>
sanguisdex: how do you register to freenode
mengu has joined #ruby
mengu has joined #ruby
<csmrfx>
ask google
<pipework>
tell google to tell you. Don't ask a bot for anything, they'll see it as weakness.
<jokke>
i'm having problems with different ruby versions (including current 2.1.4). No matter what I execute, the program goes into infinite recursion of forks calling sh -c /usr/bin/ruby extconf.rb 2>&1
<j2p2>
ok csmrfx I agree with you
<jokke>
it quickly consumes all ram
<jokke>
making the system completely unresponsive
Lewix has joined #ruby
<rubie>
j2p2: your solution only works if the first thing you type is quit. if you enter another word to be translated, then hit quit it doesn't break
Lewix has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
ndrei has joined #ruby
Lewix has joined #ruby
<csmrfx>
jokke: ok so it is your ruby executable spawning those. my which ruby points to a link, which points to ruby1.9.1 executable...
renderfu_ has quit [Ping timeout: 250 seconds]
vickleford has quit [Quit: vickleford]
darkness has joined #ruby
<jokke>
hm ok
darkness has quit [Max SendQ exceeded]
<csmrfx>
jokke: so you have not installed rvm or rbenv
<jokke>
i'm using arch linux
<csmrfx>
+?
<jokke>
i've got chruby
<jokke>
but using system ruby in this case
ramfjord has quit [Ping timeout: 272 seconds]
<jokke>
(which is why `which ruby` points to /usr/bin/ruby)
unshadow has joined #ruby
<csmrfx>
and simple test like 'ruby -v' fails too?
pauly_oc has joined #ruby
<jokke>
nope
<jokke>
that works
<unshadow>
what does $2 means ?
<jokke>
csmrfx: hm and ruby -e 'puts "foo"' works too
<csmrfx>
ok so its your proggy, then, likely
sambao21 has joined #ruby
<bricker`work>
jokke: sounds like a problem with glibc
rafadc has quit [Remote host closed the connection]
<bricker`work>
jokke: I've had a similar problem before, it was that Passenger was calling a c function that was buggy in the specific version of glibc that was installed
<jokke>
bricker`work: ouch
<bricker`work>
upgrading glibc fixed it
<jokke>
ok
<jokke>
i'm running latest glibc though
<csmrfx>
is this for vim?
Lewix has quit [Ping timeout: 256 seconds]
ldnunes has quit [Quit: Leaving]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jokke>
huh?
hellangel7 has quit [Remote host closed the connection]
thrillagorilla has joined #ruby
<csmrfx>
need. more. data.
<Hanmac>
unshadow: global variable, regexpmatching, 2rd group
<pipework>
csmrfx: stop channeling the NSA.
<unshadow>
Hanmac: ohhh ok, that makes sense (kinda) like in perl...
<jokke>
bricker`work: glibc version is 2.20
* csmrfx
: pipework unknown command "stop"
<jokke>
bricker`work: but i just reinstalled it
<jokke>
still no change
<csmrfx>
restart your shell?
<jokke>
nope
<csmrfx>
yepe
<pipework>
csmrfx: Would have been funnier if you had used the make error for unknown target
<jokke>
csmrfx: i mean didn't help
<pipework>
Imagine an IRC bot that just calls `make $COMMAND_FROM_IRC`.
thrillagorilla has quit [Client Quit]
noop has quit [Ping timeout: 265 seconds]
thrillagorilla has joined #ruby
SolarSailor has joined #ruby
altamic has joined #ruby
EminenceHC has joined #ruby
chrishough has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
gerep has quit [Remote host closed the connection]
adriancb has joined #ruby
thrillagorilla has quit [Client Quit]
<EminenceHC>
How can I sort an array of dates chronologically? They were passed to an array as a date object, I am not sure if it retains its date status after it is in the array. For example I want to sort: [Mon, 20 Oct 2014, Mon, 06 Oct 2014, Mon, 13 Oct 2014]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<pipework>
Call sort?
<csmrfx>
how about using a sort with a block containing your own logic?
<pipework>
EminenceHC: Learn yourself what Comparable is in ruby.
<apeiros>
EminenceHC: objects don't change their class
<EminenceHC>
pipework: I will done learned it
nor has quit [Ping timeout: 256 seconds]
<pipework>
EminenceHC: good learnings to you
akamel has quit [Quit: Leaving.]
<apeiros>
EminenceHC: adding an object to an array also does not change it. would be rather horrible if that was the case.
<EminenceHC>
pipework: ahah thanks
<EminenceHC>
apeiros: Oh good!
<csmrfx>
EminenceHC: do you use "ri"?
<EminenceHC>
csmrfx: Not sure what ri is?
<csmrfx>
$ ri Comparable
reinaldob has quit [Remote host closed the connection]
chrishough has joined #ruby
<EminenceHC>
csmrfx: I dont think so.
<csmrfx>
it is good, install it
entrenador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx>
and after that, also ri Comparable
<EminenceHC>
Alrighty
<csmrfx>
also, irb
<csmrfx>
those are your friends
nullsign has joined #ruby
<nullsign>
when you install a new version of ruby via rvm, how to make you make it copy all the files to the normal bin dirs, like /usr/bin ?
niklasb_ has joined #ruby
niklasb_ has quit [Remote host closed the connection]
<nullsign>
* /usr/bin/ruby is missing, etc
niklasb_ has joined #ruby
<Hanmac>
nullsign: rvm does not install binaries into /usr/bin ...
SolarSailor has quit [Ping timeout: 256 seconds]
<csmrfx>
nullsign: did you read the rvm documentation first?
<pipework>
EminenceHC: It's a command line ruby documentation tool.
jasooon has joined #ruby
<nullsign>
so.. how does one get ruby into /usr/bin and such?
<nullsign>
for consistency?
<pipework>
I don't use it because I'm lame, use a Mac, and love the everloving shit out of Dash.app
<pipework>
nullsign: You have your system install it.
<nullsign>
i cant do that
<pipework>
Otherwise you install it to /usr/local
<nullsign>
my package managaer wants to install an ancient version of ruby
<nullsign>
thats why i used rvm
<pipework>
nullsign: For development, don't install it to /usr/local, use chruby and ruby-install
djbkd has joined #ruby
<nullsign>
ruby-install?
chrishou_ has joined #ruby
<csmrfx>
look
<pipework>
It'll install it to a place in your home directory and chruby will handle setting rubies in path for you.
<pipework>
csmrfx: where
<csmrfx>
if you dont read the rvm docs, forget it
<nullsign>
let me ask this question this way then
<nullsign>
if rvm is not meant for installing ruby to centos, what is?
<nullsign>
since i can't use yum.
chrishough has quit [Ping timeout: 264 seconds]
<csmrfx>
rvm is only meant for installing with humans that can rtfm.
<pipework>
nullsign: RVM is one way to install rubies.
<nullsign>
csmrfx: please blow me.
pyx has joined #ruby
<pipework>
ruby-install is smaller, simpler, and lacks features you probably don't need.
<nullsign>
sounds good.
<csmrfx>
nullsign: actually, your mom did, and you are now ignored
<nullsign>
oh dear, the horror, a rude and unhelpful people is ignoring me.
<nullsign>
how ever shall i go on...
<jhass>
nullsign: did you read rvm docs?
<pipework>
csmrfx: It makes me sad when you publicly announce you're ignoring him. It's much more fun to say something and then leave him hanging thinking you're just pretending not to see his messages.
niklasb_ has quit [Client Quit]
<nullsign>
i already wrote csmrfx off as useless 4 lines back.
<nullsign>
typical channel brute.
<pipework>
nullsign: So, anyways, `rvm implode` and look into ruby-install. Is this a development machine?
kireevco1 has joined #ruby
<nullsign>
nah prod.
kireevco has quit [Read error: Connection reset by peer]
<pipework>
nullsign: Ah then don't do either of these things.
<pipework>
nullsign: So, for production you'll want to get a repo with recent rubies.
<pipework>
Let your system handle packages. I don't ever use CentOS ever, so I don't know where recent repos are for that.
jasooon has quit [Ping timeout: 260 seconds]
<nullsign>
most of my crap is deb, i just have this crappy centos box now
<pipework>
But if you don't mind having a compiling toolchain installed in production (ew), I guess ruby-install won't hurt.
<pipework>
I'd suggest the system package manager with up to date ruby repos though. Which way do you want to go?
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
Guest23029 has quit [Remote host closed the connection]
rkalfane has joined #ruby
jimbach has quit [Quit: Leaving...]
Lewix has joined #ruby
m8 has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
altamic has quit [Quit: altamic]
<philwantsfish>
All of the articles i've about about using popen say you have to write, close_write, read or else the read may hang. But how do I read input, then write? Or read,write, read, write, etc? I can't find any information on this
<philwantsfish>
and my little test scripts keep hanging :(
* philwantsfish
is confused
jimmyhoughjr has joined #ruby
jdrumheller has quit [Quit: Leaving]
pen has joined #ruby
Kricir has quit [Remote host closed the connection]
jzinedine has joined #ruby
entrenador has joined #ruby
<csmrfx>
philwantsfish: which popen are you using?
<csmrfx>
IO.popen?
Kricir has joined #ruby
<philwantsfish>
i've tried IO.popen and popen3. Im okay with using any implementation
<csmrfx>
mind me asking, what are you using it for?
jokke has quit [Quit: WeeChat 1.0.1]
ahmadajmi has quit [Ping timeout: 272 seconds]
<philwantsfish>
Im just running a .bat file, reading and printing each line to stdout. Eventually when the bat file pauses i want to send a keystroke to it so it finishes executin