Hjulle has left #ruby ["Konversation terminated!"]
ari-_-e has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
zorak has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 260 seconds]
qrest has joined #ruby
freerobby has quit [Quit: Leaving.]
<qrest>
fetch(name) { fetch name.to_s } # <- how does this parse differently to -> # fetch name { fetch name.to_s }
lemur has joined #ruby
ghr has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
parduse has quit []
ndrei has quit [Ping timeout: 255 seconds]
parduse has joined #ruby
benlieb has joined #ruby
<qrest>
I'm playing with monkey patching the Hash class (no need to question why :) and the latter causes too many stacks
Cache_Money has quit [Quit: Cache_Money]
<jhass>
it's fetch(name() { fetch(name.to_s) })
<YamakasY>
jhass: I cannot print that variable
<YamakasY>
that's weird
<qrest>
jhass: funny. thanks
jcoglan has quit [Quit: jcoglan]
<YamakasY>
it print the whole line
startupality has quit [Quit: startupality]
phoo1234567 has quit [Quit: Leaving]
edwardly has quit [Ping timeout: 240 seconds]
siwica has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
agent_white has joined #ruby
<jhass>
qrest: that's basically the difference between { } and do / end, to which method it binds in such an expression
agent_white has quit [Read error: Connection reset by peer]
ari-_-e has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 245 seconds]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
nectarys_ has quit [Quit: Ex-Chat]
<YamakasY>
damn stupid, code is the same as in other templates but this doesn't work :(
Takle has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<qrest>
jhass: oh, is do / end of lower precedence?
<jhass>
YamakasY: be a programmer. formalize your expectations about your code. Verify they are met. Look up by documentation and/or code why they aren't. "Doesn't work" is not a programmers statement
parduse has quit []
<jhass>
qrest: I'm still figuring what I call higher and lower there, but yeah
parduse has joined #ruby
JoshGlzBrk has joined #ruby
altern has quit [Quit: This computer has gone to sleep]
emocakes has joined #ruby
<YamakasY>
jhass: will ask the enc software tomorrow... it's something in there
<qrest>
jhass: well, higher precedence would bind to what's nearest - which would indicate the {}s
<YamakasY>
thanks!
<qrest>
rule of thumb is that englishy syntax is generally of lower precedence too :)
jcoglan has joined #ruby
sepp2k1 has joined #ruby
agent_white has joined #ruby
<shevy>
long live {}
<shevy>
down with do end!
agent_white has quit [Write error: Connection reset by peer]
altern has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
<shevy>
freedom for the monkeys!
Shidash has joined #ruby
Earl2day has joined #ruby
cpruitt has quit [Client Quit]
jfutbol has joined #ruby
<Earl2day>
hi I'm using a library which uses yomu and takes filenames as an argument, but my data comes from a db. is there anyway to fake sending a variable as if it was a file so that i dont have to do slow read-writes to disk?
phutchin1 has quit [Ping timeout: 246 seconds]
sea_local has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
sea_local has joined #ruby
djbkd has quit [Remote host closed the connection]
j75 has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
cpruitt has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
sea_local has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tomgavin has joined #ruby
MatthewsFace has joined #ruby
djbkd has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
MatthewsFace has quit [Client Quit]
phutchin1 has joined #ruby
gsd has joined #ruby
gtrak has joined #ruby
chipotle has joined #ruby
nanoyak has joined #ruby
agent_white has joined #ruby
maroloccio has quit [Ping timeout: 272 seconds]
agent_white has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
MatthewsFace has quit [Client Quit]
MatthewsFace has joined #ruby
oo_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Remote host closed the connection]
oo_ has joined #ruby
<_808chris>
such as, /api/foo , a new foo will be created but also a new foo.bar
sevenseacat has joined #ruby
iteratorP has joined #ruby
mbwe has joined #ruby
<_808chris>
since its a nested association im assuming "bar" does not need api routes.. right?
yubrew has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<waxjar>
your (i'm assuming) models don't need to map exactly to routes, that'd be ridiculous
Fezzler has quit [Quit: Leaving]
seamon has quit [Quit: Zzzzzzz]
blackmesa has quit [Ping timeout: 264 seconds]
<_808chris>
waxjar, yeah, I guess im having a hard time deciding the entry point. I have files that are going to be converted to a new format. Each file will have at least one "job" associated to it. I cant decide if the route should be : (post) /api/media or (post) /api/job
Earl2day has quit [Read error: Connection reset by peer]
TheTopBloke has joined #ruby
Earl2day has joined #ruby
<waxjar>
different formats can be requested with an HTTP header, the route could stay the same
<_808chris>
could you please explain that a bit more?
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ari-_-e has quit [Ping timeout: 272 seconds]
<waxjar>
you can make a GET request for /home and say "I want HTML" or you could say "I want JSON" for example
<TheTopBloke>
So I've got this little problem. I started with sudo gem install compass... All went well, until ERROR: rb-inotify-0.9.5-gem... So I went to rubygems.org and found it, and downloaded it, and thats fine... but now, I have no clue whether or not I need anything in addition to what was just installed.
voodoofish has joined #ruby
Guest64491 is now known as mugen
<_808chris>
waxjar, true, but how does that relate to my question?
mugen is now known as Guest87552
ghr has joined #ruby
<sevenseacat>
TheTopBloke: without knowing what the error is...
<waxjar>
well, /api/media wouldn't make much sense in that case
voodoofish1 has quit [Ping timeout: 264 seconds]
<waxjar>
because you'll always know what format you're getting as the consumer of the api
<waxjar>
i might misunderstand your question entirely :p
<_808chris>
waxjar, lol
fabrice31 has joined #ruby
<_808chris>
basically im not sure if it should be: api/media - or - api/job
<_808chris>
media has_many :jobs
<TheTopBloke>
to clarify, the install command fetched a few things... ass, multi-josn, compass-core, compass-import, chunky-png, rb-fservent, ffi, then it failed in rb-inotify. But I did install that, so is there anything else I should install?
<TheTopBloke>
ass = sass. sorry
gtrak has quit [Read error: Connection reset by peer]
goodenough has joined #ruby
<sevenseacat>
TheTopBloke: if you dont want to actually fix the problem, just go look up the dependencies of the gem and make sure theyre installed
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
<waxjar>
_808chris: is "media" actually descriptive of the thing you're about to create?
<TheTopBloke>
Is there a problem? The ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
agent_white has quit [Read error: Connection reset by peer]
karupa has joined #ruby
oo_ has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
philcrissman has quit [Ping timeout: 246 seconds]
bunzz has quit [Ping timeout: 250 seconds]
bunz1 has joined #ruby
mockra has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
ht__th has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<benzrf>
oh
<benzrf>
thx
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morrolan has quit [Ping timeout: 264 seconds]
Vile` has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
mockra has quit [Remote host closed the connection]
Shidash_ has joined #ruby
alexju has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
mockra has joined #ruby
Vile` has joined #ruby
agent_white has joined #ruby
mfmfmfmfmfmf has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
Morrolan has joined #ruby
Asher has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
blueOxigen has joined #ruby
oo_ has joined #ruby
RTG`` has joined #ruby
RTG` has quit [Disconnected by services]
dkamioka has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
mockra has quit [Ping timeout: 260 seconds]
mfmfmfmfmfmf has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 250 seconds]
tagrudev has joined #ruby
ari-_-e has joined #ruby
Xeago has joined #ruby
p0sixpscl has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby
agent_white has joined #ruby
fantazo has quit [Ping timeout: 245 seconds]
agent_white has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
kyb3r_ has joined #ruby
micahf has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
gkagan has joined #ruby
jusmyth has left #ruby [#ruby]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
adac has joined #ruby
timonv_ has quit [Remote host closed the connection]
bMalum_ has joined #ruby
agent_white has joined #ruby
RTG`` has quit [Ping timeout: 250 seconds]
agent_white has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
gkagan has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 250 seconds]
<TheTopBloke>
Can anyone recommend a project/module for a local apache server on mac in order to use ruby/ass?
<TheTopBloke>
SASS? excuse me
_cake has quit [Ping timeout: 240 seconds]
<sevenseacat>
you keep making that typo :P
ari-_-e has quit [Ping timeout: 264 seconds]
olivier_bK has quit [Ping timeout: 260 seconds]
<TheTopBloke>
LOL Yeah I know. And right now I feel like one too.
anaeem1 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<TheTopBloke>
I've used textmate and played with some examples and tutorials, and I know my apache is running correctly on my local machine, but whatever sass is supposed to compile to, it's not coming out right in my browser.
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
narcan has joined #ruby
<sevenseacat>
it's a css preprocessor, so it compules to css.
<sevenseacat>
compiles
Aranshada|W has joined #ruby
mityaz has quit [Quit: See ya!]
<TheTopBloke>
Right, and I have seen it produce the proper css in the document, but Im at a loss as to why its not properly being executed as css in the browser.
<sevenseacat>
so what is it doing?
<TheTopBloke>
The browser will show the HTML, ie. text, but any colors or boxes in a simple test dont show up. Just a white screen with black text.
tvw has joined #ruby
<sevenseacat>
so are you including the css correctly?
<sevenseacat>
into your HTML
<TheTopBloke>
I hope so... if I'm not it must be late and Im making stupid mistakes.
<sevenseacat>
so how are you doing it?
Xeago has quit []
<benzrf>
bye
Shidash has quit [Quit: Leaving.]
Shidash_ is now known as Shidash
artmann_ has joined #ruby
benzrf is now known as benzrf|offline
agent_white has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
agent_white has quit [Read error: Connection reset by peer]
artmann has quit [Read error: Connection reset by peer]
<TheTopBloke>
adding the link tag to the head of the html doc
ahmads has quit [Ping timeout: 240 seconds]
zettam has joined #ruby
Hobogrammer has joined #ruby
<TheTopBloke>
and of course div tags
<TheTopBloke>
in the body
<sevenseacat>
k lemme ask one more time
<TheTopBloke>
basic stuff
<sevenseacat>
if you want help with problems in code, you have to *show code*
<sevenseacat>
and is that the right path to the css file?
<sevenseacat>
does firebug./equivalent show the css being loaded?
zettam_ has quit [Ping timeout: 255 seconds]
<TheTopBloke>
using safari... but yeah thats the right path. I just double checked it.
agent_white has joined #ruby
<sevenseacat>
well whatever safari's equivalent dev tools are then
agent_white has quit [Read error: Connection reset by peer]
<sevenseacat>
because if the css is valid and its being loaded into your HTML correctly then the problem is that it just doesnt match the HTML you've written
sparrovv has joined #ruby
<TheTopBloke>
Ok, so I just noticed that compass watch isnt actually doing anything. so the .css is a blank doc. pff.
toastynerd has joined #ruby
roolo has joined #ruby
lemur has joined #ruby
xkickflip has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensa_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<sevenseacat>
:)
craigp has quit [Remote host closed the connection]
xkickflip has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 272 seconds]
ari-_-e has joined #ruby
<TheTopBloke>
Hmmm... ok... I got compile to work. Turns out that was the wrong path. So the .css has now been written. But, it still does not work. I will check the debugger in Safari.
siwica has quit [Ping timeout: 240 seconds]
<sevenseacat>
good idea.
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
echooo has quit [Quit: echooo]
Arkaniad has joined #ruby
Sawbones has quit []
bMalum_ has quit [Ping timeout: 245 seconds]
micahf has quit [Ping timeout: 245 seconds]
<TheTopBloke>
I wonder if its a cache issue. It tells me the error is the file is not there. And its ther.
shevy has quit [Read error: Connection reset by peer]
<xkickflip>
/quit
xkickflip has quit [Quit: leaving]
patrick99e99 has joined #ruby
ari-_-e has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
<sevenseacat>
are you looking in the right path?
<TheTopBloke>
hmm
<TheTopBloke>
mhmm
Mon_Ouie has quit [Remote host closed the connection]
bMalum_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<TheTopBloke>
very strange. in dreamweaver it works. the colors are there.
j75 has quit [Quit: WeeChat 0.4.3]
* sevenseacat
shrugs
irk has joined #ruby
linojon has quit [Quit: linojon]
<TheTopBloke>
This is the error message. Failed to load resource: The requested URL was not found on this server.
<sevenseacat>
so, wrong path then
<TheTopBloke>
I wonder, for safari, if I actually have to put a full path in
<sevenseacat>
no.
<TheTopBloke>
yeah I shouldnt have to. and its crazy, because its right where it should be, in the files and in the code.
<sevenseacat>
ghosts then.
charliesome has quit [Quit: zzz]
starkhalo has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
Arkaniad has quit [Ping timeout: 255 seconds]
<TheTopBloke>
sheet! a simple /. I killed the / and it worked. knew it was something stupid.
<sevenseacat>
that wasnt in the code you showed me
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<TheTopBloke>
I must have thrown it in to try to get it to work before I restart compass watch with the right path
bigkevmcd has joined #ruby
Arkaniad has joined #ruby
<TheTopBloke>
and that means its time for bed. Thanks for the help.
agent_white has quit [Read error: Connection reset by peer]
ahmads has joined #ruby
Lewix has joined #ruby
ari-_-e has joined #ruby
Xeago has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
HelperW has joined #ruby
Xeago has quit [Remote host closed the connection]
gkagan has joined #ruby
Xeago has joined #ruby
jon_982b has quit [Ping timeout: 255 seconds]
kiri has joined #ruby
Xeago has quit [Remote host closed the connection]
Jackneill has joined #ruby
Xeago has joined #ruby
Sht0 has quit [Ping timeout: 246 seconds]
sparrovv has quit [Remote host closed the connection]
echooo has joined #ruby
agent_white has joined #ruby
grenierm has quit [Quit: grenierm]
agent_white has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
gauke has joined #ruby
bMalum_ has quit [Quit: bMalum_]
gkagan has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 240 seconds]
sparrovv has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
relix has joined #ruby
AlexRussia has joined #ruby
grenierm has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
bMalum has joined #ruby
<certainty>
tagrudev: yolo
yottanami has joined #ruby
<yottanami>
is Is 1.0.0-alpha0 the wrong conversioning ?
<yottanami>
I got Malformed version number string 1.0.0-alpha0 in my gemspec
roolo has quit [Quit: Leaving...]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
<yottanami>
Have I use just number is version string ?
<sevenseacat>
cross-posting sucks.
<emocakes>
sevenseacat sucks as well
<sevenseacat>
hullo emocakes, long time no see
<emocakes>
well from what ive heard ;)
<emocakes>
hey babes
<emocakes>
been a while
<emocakes>
how you been?
<sevenseacat>
spiraling into endless pits of depression, and you?
<emocakes>
ouch
<emocakes>
feel kinda bad talking about how great my life is now
<sevenseacat>
no need
<sevenseacat>
if its good, im happy for you :)
<emocakes>
ill just leave it at doing great, loving life etc etc
<Hanmac>
imo itwould be more informative if he would have said what gem/program does say that this version is Malformed ... it might be a problem in bundler/rails too if he does not specify it
<emocakes>
all that shit
<emocakes>
been greasing my ass up recently to get a home loan
<sevenseacat>
fun fun
<emocakes>
<3 banks
<sevenseacat>
sell your soul and your firstborn to one of the big banks
<emocakes>
at least the rates are low these days
<sevenseacat>
indeed... lower now than when i fixed mine two years ago -_-
<emocakes>
ill happily sell my kids to the bank if they will give me a discount
<emocakes>
100% fixed?
<sevenseacat>
nah half half
<emocakes>
im doing 50/50
<emocakes>
right
<sevenseacat>
seemed wise
Sgeo has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<emocakes>
slimy banks
<sevenseacat>
slimy fuckers
<emocakes>
shame we didnt catct up at ruby conf
<emocakes>
i might go to the next one
<emocakes>
incognito
<sevenseacat>
hah
<sevenseacat>
i'll be there
philcrissman has joined #ruby
<emocakes>
make you fall in love with me, then reveal my true form
<emocakes>
!!
<sevenseacat>
oh dear
<emocakes>
or just hook up with Radar
wallerdev has quit [Ping timeout: 255 seconds]
<sevenseacat>
nah hes an old married man now
<emocakes>
and make his wifey leave him
<emocakes>
already?
<emocakes>
did you see pictures?
<sevenseacat>
yep
<sevenseacat>
i was there
gaussblurinc1 has quit [Read error: Connection reset by peer]
<emocakes>
did you catch that little bunch of flowers?
<sevenseacat>
no :P
gaussblurinc1 has joined #ruby
<emocakes>
and then look across the room at epochwolf
<emocakes>
;)
<emocakes>
that would top off your depression
alex88 has joined #ruby
<emocakes>
you know its kinda rude that he didnt invite me
dumdedum has joined #ruby
<emocakes>
i would have given them my blessings
grenierm has quit [Quit: grenierm]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 264 seconds]
ta has joined #ruby
noop has joined #ruby
mikeric has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
<YamakasY>
guys why can I not print this variable intface? intface = int.name
Pharaoh2 has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
<sevenseacat>
?
bearish has joined #ruby
Wolland has quit [Remote host closed the connection]
<YamakasY>
sevenseacat: ?
<sevenseacat>
your question doesnt make sense.
Wolland has joined #ruby
Macaveli has quit [Ping timeout: 246 seconds]
<YamakasY>
sevenseacat: that's why I ask it...
* sevenseacat
backs away slowly
Pharaoh2 has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
<tobiasvl>
cornfeedhobo: he means, how do you define what you want ruby to do for you?
<YamakasY>
:D
<shevy>
it is not only complex, it is also inconsistent
<shevy>
"dirname,sub1,sub3",
<shevy>
"dirname/sub2,sub1",
<jhass>
cornfeedhobo: can you write down the rules? and double check your example is right?
senayar has quit [Ping timeout: 240 seconds]
<cornfeedhobo>
shevy: ooops, it would help if i wrote it correctly
<cornfeedhobo>
one sec
<shevy>
the simpler the better
<jhass>
cornfeedhobo: also try to not reuse elements
<shevy>
if the same character is used between dirname and sub then the code will be simpler as well
<shevy>
emocakes! you are back!
spastorino has quit [Quit: Connection closed for inactivity]
<jhass>
oh, tricky
<jhass>
so / is just a field separator
<jhass>
cornfeedhobo: can you influence how it's entered?
<cornfeedhobo>
okay, i simplified and cleaned up. sorry about that
<cornfeedhobo>
jhass: i can influence the comma seperated portions, but only to an extent
patrick99e99 has joined #ruby
arup_r has quit [Remote host closed the connection]
Xeago has joined #ruby
<cornfeedhobo>
it's a tricky one. i have been trying for a good two hours and havent thought of a slick way
<cornfeedhobo>
but, i also suck at recursion
tectonic has quit []
<shevy>
actually a regex might suffice here
<cornfeedhobo>
??
<cornfeedhobo>
no way
<jhass>
cornfeedhobo: do you need to expand it or do you match it against real or artificial files?
marr has joined #ruby
wallerdev has joined #ruby
tlarevo has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
<cornfeedhobo>
jhass: expand. the class i am handing back to will handle file operations
<cornfeedhobo>
so only string to array
arup_r has joined #ruby
Aranshada|W has quit [Read error: Connection reset by peer]
<jhass>
because we got File.fnmatch which would be able to compare something like "/foo/{a,b}/{c,d}" to "/foo/a/c"
patrick99e99 has quit [Ping timeout: 272 seconds]
<cornfeedhobo>
damn. i need to bring that up to the puppet folks.... unfortunately i have to work within their system.
osvico has quit [Ping timeout: 250 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<cornfeedhobo>
string/array manipulation is what i am really left with in this case
davedev24_ has joined #ruby
arup_r has joined #ruby
Xeago has joined #ruby
shevy has quit [Ping timeout: 255 seconds]
<cornfeedhobo>
the line example is part of a, potentially, larger array with similar strings, that would need to be expanded and combined into one larger array, while respecting ordering
<cornfeedhobo>
i just cant figure out clean rules
Spami has joined #ruby
ari-_-e has quit [Ping timeout: 260 seconds]
<cornfeedhobo>
jhass: you would think there would be a string expansion function if that rule set already exists
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cort3z has joined #ruby
<jhass>
cornfeedhobo: no, it just matches a given path, it doesn't expand
<cornfeedhobo>
oh
roolo has quit [Quit: Leaving...]
wallerdev has quit [Ping timeout: 240 seconds]
<emocakes>
shevy!
caveat- has quit [Ping timeout: 240 seconds]
<emocakes>
is that you?
<emocakes>
<4
gkagan has joined #ruby
timonv_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
<emocakes>
how have you been shevy?
<emocakes>
it feels like a year, or two almost!
pandaant has joined #ruby
caveat- has joined #ruby
roolo has joined #ruby
<emocakes>
still using that crappy text editor which has UTF issues? :p
ctp_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<emocakes>
ah, he left :(
mijicd has joined #ruby
noshi has joined #ruby
gkagan has quit [Ping timeout: 250 seconds]
Pharaoh2 has quit [Remote host closed the connection]
<cornfeedhobo>
thanks again. i will need to tweak for a minute to make it fit, but i'll let you know how it turns out :D
oo_ has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
qohelet_ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
sparrovv has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
roolo has quit [Quit: Leaving...]
oo_ has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Quit: Quitte]
sevenseacat has quit [Quit: Leaving.]
olivier_bK has joined #ruby
mikeric has quit []
decoponio has joined #ruby
olivier_bK has quit [Remote host closed the connection]
yubrew has joined #ruby
olivier_bK has joined #ruby
oo_ has joined #ruby
philcrissman has joined #ruby
wallerdev has joined #ruby
djbkd has joined #ruby
<cornfeedhobo>
hmm. it says flat_map is not a defined method
shachar has joined #ruby
Skwallinux has quit [Ping timeout: 240 seconds]
<jhass>
mh, ruby version?
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
<cornfeedhobo>
jhass: ruby 1.8.7
<Hanmac>
is dead
<jhass>
anyway, .flat_map is just an efficient .map { }.flatten
<jhass>
and yeah, out of security maintenance
<jhass>
try updating to something from this decade
yubrew has quit [Ping timeout: 246 seconds]
<shachar>
Hi , an easy question , i am trying to initialize new class within a class. but the class method returns 'no method error "db"'. if you could please look here http://pastebin.com/H71ZesyB (20 lines) THANKS
<cornfeedhobo>
jhass: okay. i know, not much i can do about that right now. centos6 is frozen there.
philcrissman has quit [Ping timeout: 250 seconds]
<cornfeedhobo>
jhass: i wish it was in my pay grade to enforce these things... its not
<jhass>
shachar: db = creates a new local variable, those are not accessible outside the current scope (your method for example)
djbkd has quit [Ping timeout: 240 seconds]
Beoran_ has joined #ruby
<jhass>
shachar: what you want is an instance variable (@db), those belong to an object (an instance of a class)
<shachar>
jhass , Thanks for your help i`ll give it a try
earthquake has quit [Quit: earthquake]
thomasxie has quit [Remote host closed the connection]
emocakes has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
<jhass>
shachar: as a little style tip: method definitions have an implicit begin, so if your whole method body is inside a begin / ensure, you can rewrite that as def foo; code; ensure; code; end;
bradleyprice has quit [Ping timeout: 260 seconds]
<jhass>
same for rescue or the combination thereof of course
thomasxie has joined #ruby
tvw has quit []
georgesmith has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
caveat- has quit [Ping timeout: 240 seconds]
<Hanmac>
centos ... the bane of ruby developers ...
stef_204 has joined #ruby
W0rmDr1nk has joined #ruby
<zenspider>
1.8.7 is only unmaintained for security as of june...
<jhass>
Hanmac: 7 got 2.0 finally :D
<Hanmac>
hm ok but centos7 will come when ruby3.0 is released
<jhass>
I don't follow that stuff, but wikipedia claims it's released since june
<jhass>
er, july
<jhass>
problem is more that 5 has maintenance till 2017, 6 till 2020
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<cHarNe2_>
zenspider: that line looks really great!
Xeago has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
qba73 has joined #ruby
roolo has joined #ruby
wallerdev has quit [Ping timeout: 255 seconds]
maroloccio has quit [Quit: WeeChat 0.4.3]
qohelet_ has quit [Read error: Connection timed out]
Pharaoh2 has quit [Remote host closed the connection]
<noshi>
I want to accomplish this using Nokogiri, but my google fu is weak. Does anyone know off the top or their head? <foo><a></a></foo> + <foo><b></b></foo> => <foo><a></a><b></b></foo>
qohelet_ has joined #ruby
bearish_ has joined #ruby
<noshi>
<foo> may have an arbitrary number of elements, I want to just stack them after one another
ndrei has quit [Ping timeout: 264 seconds]
<cornfeedhobo>
jhass: you are awesome!!!! thank you!
mijicd has quit [Ping timeout: 260 seconds]
threesixes has quit [Remote host closed the connection]
bearish has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Skwallinux has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
Spami has joined #ruby
L8D has joined #ruby
caveat- has quit [Ping timeout: 240 seconds]
h0lyalg0_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whyy has quit [Remote host closed the connection]
whyy has joined #ruby
emocakes has joined #ruby
<jhass>
noshi: just doca.at('foo') << docb.at('foo').children
SilkFox_ has quit [Read error: Connection reset by peer]
<zenspider>
noshi: what have you tried?
L8D has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
lemur has joined #ruby
<Hanmac>
noshi or you could use the Nokogiri::XML::Builder ... its much nicer than that
caveat- has joined #ruby
<noshi>
jhass: hey that worked
gauravagarwalr has joined #ruby
<noshi>
zenspider: randomly bashing keys, not effective
<noshi>
Hanmac: builder, sounds nicer. I will investigate it. Thank you!
h0lyalg0_ has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
gkagan has joined #ruby
Cort3z has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
ndrei has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
swartwulf has quit [Remote host closed the connection]
<godd2>
I have an array of threads and I want to fork off a process to finish up each thread, but when I do, the child process thinks the thread is dead. Any thoughts?
<jhass>
I still don't understand why you need both though, child processes and threads
redlegion has joined #ruby
emocakes has quit [Ping timeout: 264 seconds]
iterator_ has joined #ruby
qba73 has joined #ruby
krisquigley has joined #ruby
qba73 has quit [Remote host closed the connection]
cocotton has joined #ruby
qrest has joined #ruby
<godd2>
Ruby won't let me call the next native library call to ALSA until the previous one is finished.
<jhass>
godd2: just build an array of lambda's then
<jhass>
sounds.each do |sound| fork do sound.call end end
<godd2>
Yea I figured I
caveat- has quit [Ping timeout: 260 seconds]
<godd2>
I figured I might have to go back up the chain to where I started the thread and fork from there
<godd2>
Thanks for your input :)
wallerdev has joined #ruby
iteratorP has quit [Ping timeout: 240 seconds]
iteratorP has joined #ruby
yfeldblum has quit [Remote host closed the connection]
luckyruby has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
yfeldblum has joined #ruby
yubrew has joined #ruby
dawkirst has quit [Remote host closed the connection]
philcrissman has joined #ruby
iterator_ has quit [Ping timeout: 250 seconds]
blackmesa has quit [Quit: WeeChat 1.0]
Ilyas has quit [Read error: Connection reset by peer]
Ilyas has joined #ruby
wallerdev has quit [Ping timeout: 240 seconds]
caveat- has joined #ruby
sparrovv has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
emocakes has joined #ruby
narcan has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
arup_r has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
bearish_ is now known as bearish
cocotton has quit [Remote host closed the connection]
saladspork has quit [Quit: saladspork]
irath96 has joined #ruby
Cheezebox has joined #ruby
sparrovv has quit [Ping timeout: 246 seconds]
<gaussblurinc1>
hey? is anybody here?
<godd2>
There are a few
arup_r has joined #ruby
caveat- has quit [Ping timeout: 240 seconds]
georgesmith has quit [Ping timeout: 264 seconds]
<wasamasa>
there are 876 entities online
<wasamasa>
I guess that qualifies as "anybody"
ixti has joined #ruby
phutchin1 has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
bootstrappm has joined #ruby
emocakes__ has joined #ruby
sevenseacat has joined #ruby
djbkd has joined #ruby
Jobygoude has joined #ruby
caveat- has joined #ruby
angusiguess has joined #ruby
emocakes has quit [Ping timeout: 245 seconds]
georgesmith has joined #ruby
whyy has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 240 seconds]
jcoglan has quit [Quit: jcoglan]
redlegion has quit [Ping timeout: 255 seconds]
FoxZoOL has quit [Remote host closed the connection]
RTG` has quit [Disconnected by services]
RTG`` has joined #ruby
Xeago has joined #ruby
Cheezebox has quit [Remote host closed the connection]
dawkirst has joined #ruby
Cort3z has joined #ruby
kaspertidemann has joined #ruby
kaspertidemann has quit [Client Quit]
kaspertidemann has joined #ruby
caveat- has quit [Ping timeout: 260 seconds]
Cheezebo_ has joined #ruby
L8D has joined #ruby
<gaussblurinc1>
oh, guys, why 'json' gem falls down on JSON file with end-comma like here {"":"",} or here: [{},{},{},] ?
jonathan_alban has joined #ruby
<Hanmac>
because it might be invalid?
lkba has joined #ruby
caveat- has joined #ruby
L8D has quit [Ping timeout: 255 seconds]
redlegion has joined #ruby
<sevenseacat>
funny about that
starfox_21 has joined #ruby
TorpedoSkyline has joined #ruby
<starfox_21>
hi guys, I am looking to convert strings containing numbers to floats. However I have strings in both the American format (1,093.97) and the format used in Germany for instance (1.093,97). Is there a smart to_f that knows how to deal with both formats?
Cort3z has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
dorei has joined #ruby
RTG` has joined #ruby
<Hanmac>
starfox_21: hm no you need an info what format you currently parsing
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DEA7TH has joined #ruby
DEA7TH has joined #ruby
abuzze has quit [Remote host closed the connection]
<starfox_21>
Hanmac ok. Do I pass the format to to_f?
abuzze has joined #ruby
Takle has quit [Remote host closed the connection]
saladspork has joined #ruby
RTG`` has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
Cheezebo_ has quit [Remote host closed the connection]
<Hanmac>
hm nope i dont think that would work that easily
shevy2 has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
nuck has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<godd2>
starfox_21 youll have to write some parsing logic yourself. Ruby doesn't have anything like that out of the box
<godd2>
though there might be a gem
<starfox_21>
godd2 I was looking for a gem but couldn’t really find it
<starfox_21>
godd2 I will look into it. this is not for money tho which is why I didn’t google ruby money. :) it’s weird to intruduce currencies, when I am not dealing with money
<godd2>
Oh I figured your use case was accounting.
yfeldblum has quit [Ping timeout: 240 seconds]
nuck has joined #ruby
<starfox_21>
godd2 no. but thanks anyway, this might help
<godd2>
the i18n gem might be something to look into
<starfox_21>
godd2 will do
phoo1234567 has joined #ruby
startupality has quit [Client Quit]
gkagan has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
godd2 has quit [Remote host closed the connection]
soxet has quit [Ping timeout: 264 seconds]
gkagan has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
jheg has joined #ruby
qrest has quit [Ping timeout: 255 seconds]
janmuffino has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Logico has joined #ruby
startupality has joined #ruby
Cheezebox has joined #ruby
GriffinHeart has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
whyy has joined #ruby
nahob has joined #ruby
nahob has quit [Client Quit]
livingstn has joined #ruby
Soda has joined #ruby
bjz has quit [Read error: Connection reset by peer]
sevenseacat has quit [Ping timeout: 272 seconds]
bjz has joined #ruby
Sht0 has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
anaeem1 has quit [Ping timeout: 250 seconds]
Pharaoh2 has joined #ruby
krisquigley has quit [Remote host closed the connection]
sevenseacat has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
andikr has joined #ruby
craigp has quit [Remote host closed the connection]
Pharaoh2 has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
Skwallinux has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
Xeago_ has joined #ruby
krisquigley has joined #ruby
paulfm has joined #ruby
emocakes__ has quit []
jheg has quit [Quit: jheg]
Xeago_ has quit [Remote host closed the connection]
cpruitt has joined #ruby
startupality has quit [Quit: startupality]
Xeago has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
startupality has joined #ruby
aclearman037 has joined #ruby
cpruitt has quit [Client Quit]
moritzschaefer has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
ahmads has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
mercerist has joined #ruby
Takle has joined #ruby
art-solopov has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
moritzschaefer has quit [Ping timeout: 250 seconds]
<YamakasY>
jhass: it's in a template of my ENC for puppet... so that's my line there :)
fabrice31 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bunz1 has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<jhass>
maybe ask #puppet
<dorei>
YamakasY: a wild guess, try " instead of '
phutchin1 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<jhass>
we should adopt a rails policy for puppet
<jhass>
redirect all questions to another channel
<jhass>
they do more magic than rails
<YamakasY>
jhass: indeed, magic it is :D
<YamakasY>
we do magic
<YamakasY>
:D
philcrissman has quit [Ping timeout: 255 seconds]
<YamakasY>
I'm Hans Klok
<YamakasY>
but when I don't have shows I try to write some code :P
<jhass>
their channel even has 200 more users than we
<jhass>
so just go there please
arup_r has quit [Remote host closed the connection]
<YamakasY>
jhass: you ask polite :P
gkagan has quit [Ping timeout: 250 seconds]
qmfnp has joined #ruby
fabrice31 has joined #ruby
ari-_-e has joined #ruby
<YamakasY>
dorei: the double quotes should not matter as another line with sed works good with it
emocakes has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
jespada has joined #ruby
arup_r has joined #ruby
<dorei>
YamakasY: does that other line include a * ?
startupality has joined #ruby
wallerdev has joined #ruby
stoffus has quit [Quit: leaving]
<mostlybadfly>
Good morning
saladspork has joined #ruby
<YamakasY>
dorei: nope, I hear something in #puppet about a double quote ?
yalue has joined #ruby
<sevenseacat>
great, take your puppet problems there.
<jhass>
^ please
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shevy has joined #ruby
himsin has joined #ruby
simpleuser has joined #ruby
<YamakasY>
sevenseacat: hehe, the puppet/ruby relation is not that good I get the feeling ?
wallerdev has quit [Ping timeout: 250 seconds]
<sevenseacat>
no its fine, its called 'asking your questions in the right place'
<simpleuser>
In Ruby, the indentation is meanless (at the contrary to Python)?
<sevenseacat>
you have a problem with puppet. puppet has a channel. ask your question there.
luckyruby has joined #ruby
<jhass>
just because we're ruby developers doesn't mean we know everything about every library out there
<dorei>
simpleuser: yeap
<sevenseacat>
simpleuser: its not required like in python, but two spaces is the convention.
<simpleuser>
Ok thanks dorei and sevenseacat :)
<jhass>
especially if they do tons of strange stuff like puppet
qmfnp has joined #ruby
<simpleuser>
Another question: I’m trying to learn Ruby with tryruby.org. I’m here: http://tryruby.org/levels/6/challenges/1 and I don’t understand the |line| part. Does someone has a link to documentation about this "||" strange thing to me?
Xeago has joined #ruby
<sevenseacat>
its a block argument.
ari-_-e has quit [Ping timeout: 245 seconds]
<jhass>
simpleuser: do you understand what blocks are already?
Wetai has joined #ruby
emocakes__ has joined #ruby
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
<simpleuser>
Well, I’m not sure. But I am a PHP dev so I think it’s pretty the same as in PHP.
<simpleuser>
(and other languages)
<YamakasY>
jhass: hell there is really a bad relation between puppet and Ruby... puppet channel ops just want to have more code when there isn't
emocakes has quit [Ping timeout: 250 seconds]
<jhass>
simpleuser: hm, no actually not. a block is more similar to an anonymous function that you can pass to a (any) method
<simpleuser>
jhass: Oh.
h0lyalg0_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
simpleuser: so if the block is invoked, it can be passed parameters. And it can accept those parameters via the |param, param| notation
<jhass>
you can put the same stuff between the | | as you can put in a method definition between the ( ), { |param| } -> def foo(param) end
britneywright has joined #ruby
tlarevo has quit [Remote host closed the connection]
<YamakasY>
at least you guys helped me out here :)
moritzschaefer has joined #ruby
anaeem1_ has joined #ruby
sprihodko has joined #ruby
<simpleuser>
jhass: Oh. But here : File.foreach(path) do |line| Could we say it’s like foreach($path as $line) in PHP?
angusiguess has quit [Disconnected by services]
LudicrousMango has joined #ruby
gkagan has joined #ruby
L8D has joined #ruby
<wasamasa>
well, it's more general
<wasamasa>
you can chain with_index to it and have indices, too
<wasamasa>
just forget what you think you've learned from php :P
Ilyas has quit [Ping timeout: 264 seconds]
<simpleuser>
^^ Ok.
RandyT has quit [Ping timeout: 245 seconds]
<jhass>
simpleuser: File.foreach is a method call, foreach in PHP is syntax, that's the major difference
relix has quit [Read error: Connection reset by peer]
starfox_21 has quit [Quit: starfox_21]
Xeago has quit [Ping timeout: 260 seconds]
<wasamasa>
simpleuser: you have way less arbitrary limitations than in PHP, so stop thinking of ruby as being comparable to it
<YamakasY>
tobiasvl: nah thejoecarroll it's not yaml :)
<YamakasY>
that is after that
<YamakasY>
this is just the provisioning
SuperBroke is now known as Snowstormer
<YamakasY>
so installing
<tobiasvl>
YamakasY: the point is that we don't know or care. I have never heard of Foreman, never used Puppet, and you should ask in the proper channels
klmlfl has joined #ruby
<tobiasvl>
this channel is for the programming language Ruby
<YamakasY>
tobiasvl: yes true
Zenigor has joined #ruby
ari-_-e has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
bbloom has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ari-_-e has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
sylvanica has joined #ruby
<maasha>
So, ramping up my app to real data reveals that it is fubar. The non-forked version is OK. The forked version is extremely slow and lots of defunct processes appears. I am at a loss on where to begin debugging. Somewhere line 101 here: https://github.com/maasha/biopieces/blob/master/lib/biopieces/pipeline.rb
<maasha>
*Somewhere around
pigram86 has joined #ruby
siwica1 has joined #ruby
wallerdev has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
siwica has quit [Ping timeout: 246 seconds]
starfox_21 has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
sailias has joined #ruby
<maasha>
so where do defunct processes come from? I have a numbers of forks depending on each other and I am waiting for the last one using Process.waitpid.
wallerdev has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
<TieSoul>
so, erm, I'm using httparty to post to http://sprunge.us, but HTTParty.post('http://sprunge.us', {'sprunge' => 'Hello'}) returns a link to an empty sprunge page.
<TieSoul>
I've never done anything like this
rimenes has joined #ruby
<TieSoul>
so I might be doing something totally wrong
* maasha
is overwhelmed by hundreds of zombies
roolo has joined #ruby
dawkirst has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
<waxjar>
maasha: you mean you have a process, that forks a process, that forks a process, etc?
jonathan_alban has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
jackz has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
candelabra has joined #ruby
linojon has joined #ruby
FarlaTux has joined #ruby
danijoo has joined #ruby
jackz has quit [Client Quit]
abuzze_ has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
shredding has joined #ruby
<candelabra>
I have a string = "201408242131" which is just YYYYMMDDHHmm date/time. I'm using the following split function .split(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/)... but for some reason i'm getting an array of 6 items, and the first is just an empty string. any idea why?
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
jheg has joined #ruby
abuzze has quit [Remote host closed the connection]
FarlaTux has quit [Max SendQ exceeded]
abuzze has joined #ruby
<maasha>
waxjar: no, it is not a nested fork, but rather a number of forks where there is interprocess communication (IPC) via IO.pipe so it emulates what you do on a command line: cat file | cut | sort | grep ...
FarlaTux has joined #ruby
shackleford has joined #ruby
zeroNones has joined #ruby
<maasha>
waxjar: so each command is running on a core on its own.
shackleford has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: dblessing]
<waxjar>
i see
shackleford has joined #ruby
<waxjar>
i think you shouldn't just wait on the last one though, but on all of them.
GriffinHeart has joined #ruby
mary5030 has quit [Remote host closed the connection]
mercerist has joined #ruby
<albedoa>
i can get a random element from an array with `sample`. how can i get that element's index?
jottr has quit [Ping timeout: 260 seconds]
<waxjar>
array.index(array.sample)
<albedoa>
waxjar thank you!
Morkel has quit [Quit: Morkel]
djbkd has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gccostabr has joined #ruby
gtrak has joined #ruby
anarang has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
ari-_-e has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
GriffinHeart has joined #ruby
pigram86 has quit [Read error: Connection reset by peer]
pigram86_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
brothmars has joined #ruby
qohelet_ has joined #ruby
TieSoul has quit [Read error: Connection reset by peer]
<maasha>
Hm, I think the problem is some conflict with the Parallel gem. Threading something that is forked perhaps
felixjet__ has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
terrell_t has joined #ruby
<treehug88>
hi all, i'm trying to use the popup_menu method as shown here: http://apidock.com/ruby/CGI/HtmlExtension/popup_menu , but I can't seem to get the popup_menu method or function working. What do I need to do?
Dude007_ has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
bearish has quit [Remote host closed the connection]
Zenigor has quit [Ping timeout: 255 seconds]
<jhass>
treehug88: you didn't tell me your error message yet
<Magnus>
Hello! I'm running Logstash to log things from a XMPP chat. Logstash crashes when parsing Swedish åäö with the following error message: #<Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)>
<ssarah>
hei guys. hmm, it's my first time installing with gem, i did sudo gem install librarian-puppet, and i get a "ERROR: Failed to build gem native extension." while "building native extensions". any ideas?
niklasb has quit [Ping timeout: 255 seconds]
<ssarah>
before i did sudo apt-get install ruby
spyderman4g63 has joined #ruby
<albedoa>
dorei thanks but i merely want to begin on 1 instead of 0 :)
<Hanmac>
albedoa: are you sure you are not looking for
<havenwood>
ssarah: (In case you have more than one version of Ruby and its corresponding RubyGems installed.)
Dude007 has joined #ruby
momomomomo has joined #ruby
charliesome has quit [Quit: zzz]
<havenwood>
You'd see what is currently selected for each with update-alternatives, and can change the selection if it's not what you wanted.
ffranz1 is now known as ffranz
dawkirst has joined #ruby
Takle_ has joined #ruby
rjhunter has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
Cheezebox has joined #ruby
oo_ has joined #ruby
Neo-- has joined #ruby
<havenwood>
another joy of debian's ruby packaging.. you've got to set gem apart from ruby due to 1.8 legacy when they weren't shipped together
bearish has quit [Remote host closed the connection]
HelperW has quit [Ping timeout: 255 seconds]
root3d has joined #ruby
<havenwood>
Ruby... horrible to setup then an absolute joy to use. :P
aspires has joined #ruby
skolman has joined #ruby
oo_ has quit [Remote host closed the connection]
<root3d>
havenwood, which distro ?
<root3d>
sorry if it's windows
<root3d>
*its
ahmads has quit [Quit: Bye]
<havenwood>
At least they have WindowsInstaller.
ahmads has joined #ruby
<havenwood>
Even if it's a year behind latest stable. :P
jfutbol has joined #ruby
oo_ has joined #ruby
altern has quit [Quit: This computer has gone to sleep]
<Neo-->
hey guys, a question regarding celluloid - is it any use to set the size of workers to larger than CPU threads_per_core*cores? I was planning to use it use with a large number of actors, but if I'm understanding it correctly that will simply kill machine? original goal was sending 100/1000 requests a second with actors but as I understand ATM actors in celluloid/ruby come with a large overhead (actor per thread) making that attempt rather futile... am I right?
gaussblurinc1 has quit [Quit: Leaving.]
<havenwood>
Neo--: Yes, there're sometimes good reasons to set the number of Actors higher than the number of cores.
bthesorceror has joined #ruby
froggy_ has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
ahmads has joined #ruby
<Neo-->
havenwood, oh I see - I'll try to implement it then and see where it takes me :)
bthesorceror has quit [Client Quit]
ssvo has quit [Ping timeout: 240 seconds]
<havenwood>
Neo--: Celluloid Actors use Fibers for pipelined execution. They're lighter than Threads.
<havenwood>
Very small stack size.
<havenwood>
10,000 is no prob
<Neo-->
really?
<Neo-->
awesome
<Neo-->
that could be the solution I'm looking for
<Neo-->
will take a look at fibers
Cort3z has joined #ruby
Soda has quit [Remote host closed the connection]
<havenwood>
Though... on JRuby there aren't coroutines *yet*, and on MRI the GVL's not got *yet*.
jrhe_ has joined #ruby
<Neo-->
nope, pure ruby
<Neo-->
writing/extending a plugin for fluentd
jimmyhoughjr has joined #ruby
<havenwood>
Neo--: Well, hopefully you're doing IO and all those Threads won't want the GVL at once. :P
<wallerdev>
havenwood: i just meant from "That's right. I do not have any need for two. Just the latest version"
lkba has joined #ruby
<havenwood>
ah, right - yeah i'm not suggesting removing system ruby :P
<TheTopBloke>
Or at least thats what I updated my OS to
<havenwood>
just building to /usr/local
<wallerdev>
yeah listen to havenwood
<havenwood>
TheTopBloke: oh, i misread the version, ha
<wallerdev>
mavericks has 2.0.0p451 i think
<wallerdev>
thats what i have at least
<havenwood>
TheTopBloke: then you already have two system rubies :P
<havenwood>
wallerdev: it's actually both 2.0 and 1.8, they just symlink Current to 2.0 by default
<wallerdev>
ah
<wallerdev>
interesting
freerobby has quit [Quit: Leaving.]
<havenwood>
wallerdev: 1.8 is dropped entirely in Yosemite.
<wallerdev>
rip
jottr has joined #ruby
<TheTopBloke>
ok, I'm new to ruby, so where would I normally find the system Ruby, and I assume it's differnt then a local test Ruby for development because of OS reasons?
bradleyprice has joined #ruby
<wallerdev>
i grew up on 1.8
<havenwood>
wallerdev: hence projects like brew that hard link to 1.8 have to update :O
<wallerdev>
i dont like homebrew much
<wallerdev>
or macports
startupality has joined #ruby
<TheTopBloke>
So you want me to leave the 2.0.0 version alone, and install a second version, the 2.1.2 version correct?
<wallerdev>
always end up just building stuff myself haha
nectarys has joined #ruby
<wallerdev>
they dont seem too well put together
havenwood has quit [Remote host closed the connection]
freerobby has joined #ruby
havenwood has joined #ruby
vyorkin has joined #ruby
<wallerdev>
plus i feel like a hacker when i run make and see the compile statements flying by
pietr0 has joined #ruby
bMalum has joined #ruby
havenwood has quit [Remote host closed the connection]
jprovazn has joined #ruby
micahf has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
<TheTopBloke>
By default, this will install Ruby into /usr/local. To change, pass the --prefix=DIR option to the ./configure script.
havenwood has joined #ruby
hellangel7 has quit [Quit: Leaving]
<havenwood>
TheTopBloke: You have a variety of options, but I like using 2.1.2.
<TheTopBloke>
I just want to use whatever Rails is recommending. So I'm building it now.
maroloccio has joined #ruby
<TheTopBloke>
So basically I will have two version of Ruby on my Mac. One for the OS and one for developemnt, yes?
FDj_ is now known as FDj
<TheTopBloke>
What was that you used for changing between version? chsomething?
alvaro_o has joined #ruby
bMalum has quit [Client Quit]
<TheTopBloke>
chruby
<havenwood>
TheTopBloke: You'll probably end up wanting to switch Rubies. New versions come out and there're strong alternative implementations like JRuby and Rubinius.
bthesorceror has joined #ruby
<havenwood>
TheTopBloke: chruby
<havenwood>
TheTopBloke: ruby-install without sudo will by default install to ~/.rubies/ where chruby will automatically detect it
<wallerdev>
yeah everyone in the ruby community likes to use the latest version of everything
<wallerdev>
kinda the opposite of the python community
<TheTopBloke>
I know. This is the frustrating thing about this line of work. If i had to install every latest version and every latest distro of every latest thing, I'd never get anything done.
nanoyak has quit [Read error: Connection reset by peer]
<havenwood>
TheTopBloke: And use the second chruby example, the one for OS X. Those brew links are pesky. Or just use ruby-install and let it do this. :P
nanoyak has joined #ruby
Guest77051 has quit []
DrCode has joined #ruby
gauke has joined #ruby
dziga has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
root3d has quit [Ping timeout: 255 seconds]
<TheTopBloke>
Mmmm sysadmin
jcoglan has quit [Quit: jcoglan]
<TheTopBloke>
ok installing brew now.
goleldar has joined #ruby
startupality has quit [Quit: startupality]
ari-_-e has quit [Ping timeout: 250 seconds]
jcoglan has joined #ruby
Eiam has joined #ruby
shackleford has joined #ruby
tobago has quit [Remote host closed the connection]
<havenwood>
TheTopBloke: Once you do, you can just: brew install chruby ruby-install; ruby-install ruby # then follow chruby instructions to setup your dotfiles and reload your terminal
bthesorceror has quit [Quit: bthesorceror]
aspires has quit []
<TheTopBloke>
Yeah, that is sweet.
seamon has quit [Quit: Zzzzzzz]
<havenwood>
TheTopBloke: ruby-install will handle the brew deps for the various Rubies you may want ;)
<TheTopBloke>
It looks like osx puts stuff in /usr/bin, rather than /usr/local/bin
<TheTopBloke>
So basically, if you dont have brew, your making it harder than it is
shackleford has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
failshell has quit []
seamon has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Ankhers has joined #ruby
bklane has joined #ruby
timonv_ has joined #ruby
<havenwood>
TheTopBloke: Most OS X devs use Homebrew or MacPorts, which are both supported by ruby-install.
philcris_ has joined #ruby
yetanotherdave has joined #ruby
<havenwood>
TheTopBloke: Homebrew is the most popular. Fink is another but I don't think it has much following.
kaspertidemann has joined #ruby
yetanotherdave has quit [Client Quit]
magoo has joined #ruby
MCDev has joined #ruby
bthesorceror has joined #ruby
<TheTopBloke>
I've heard of brew, but I dont have any experience developing on the mac or ruby or rails. So this is all new to me. If I had zero linux experience Id be completely lost. But this is very helpful and makes perfect sense. Thank you very much for all the help.
yetanotherdave has joined #ruby
<havenwood>
no prob, yeah i'd suggest just using brew (Homebrew)
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
aspires has joined #ruby
failshell has joined #ruby
haggen has joined #ruby
<havenwood>
TheTopBloke: Homebrew is written in Ruby, so there's that too.
jkline has quit [Quit: jkline]
maestrojed has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
dkamioka has joined #ruby
charliesome has joined #ruby
aaronrl has quit [Quit: Leaving]
philcris_ has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
<TheTopBloke>
ok, so I've got Homebrew and Ruby installed. But I think I lost the link to cruby.
<hooper>
jhass: how do I access the reader? typically I shove my objects into a list and iterate. can I get away from iteraters? I tried to call the reader with Class.sort_method but no dice.
Boohbah has joined #ruby
<hooper>
i mean, i can't really do a sort of objects if i'm stepping through them, one at a time
Magnus has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<jhass>
uh, what
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
apeiros has joined #ruby
<hooper>
so I usually do a object_list << Class.new(x, y, z).. then i object_list.each do |i| i.method end
<jhass>
>> Foo = Struct.new(:bar); %w[d a 1 f a].map {|c| Foo.new(c) }.sort_by(&:bar)
<stef1a>
i'm trying to change the keys of a hash, as the keys correspond to the order the values are presented to the user. when i try to do this by making a copy of the original hash and just copying values from the old hash to the new positions in the current hash, i overwrite one of the values in the process. here's the relevant code: https://gist.github.com/smlance/af9bf544611d1be8e5ab. in this case, i want 4 -> 5 and 5 -> 4, but i instead get 4 -> 4 and 5 -> 4, so
Soda has joined #ruby
geekbri has joined #ruby
tiguser has joined #ruby
<jhass>
stef1a: a = b doesn't copy, it's simply a new reference to the same object
<jhass>
so in your code survey and survey_copy are the exact same object
<stef1a>
jhass: oh. that would explain it.
dkamioka has joined #ruby
<jhass>
no idea why you do with_index
tlarevo has quit [Ping timeout: 240 seconds]
pigram86_ has quit [Ping timeout: 245 seconds]
Ilyas_ has joined #ruby
<stef1a>
jhass: that was for debugging... i didn't mean to include that in the gist
<feniix>
jhass: thanks I did "how to I do `which command` the ruby way" and I didnt want to spend too much time as is just a puppet fact and it is not the end of the world
<jhass>
stef1a: to copy do .dup
<stef1a>
jhass: what about .clone?
<feniix>
jhass: but I really liked that info, thanks a lot
<jhass>
stef1a: no difference in this example
atmosx has quit [Ping timeout: 250 seconds]
Ilyas has quit [Ping timeout: 240 seconds]
dkamioka_ has joined #ruby
<stef1a>
jhass: thanks for the help :-)
lmello has quit [Ping timeout: 240 seconds]
shackleford has quit [Remote host closed the connection]
Neo-- has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
atmosx has joined #ruby
sambao21 has quit [Client Quit]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
Nahra has joined #ruby
nectarys has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
wald0_ has joined #ruby
sambao21 has joined #ruby
klmlfl has quit [Quit: klmlfl]
<wald0_>
does the "require" search for current-dir where the script is run ? for example im in directory1, but my script is in directory2, how i can tell require to search in a directory in directory2?
dkamioka_ has quit [Ping timeout: 255 seconds]
lmello has joined #ruby
klmlfl has joined #ruby
go|dfish has quit [Ping timeout: 250 seconds]
<mozzarella>
wald0_: use require_relative, and use '../' to go down the tree
dkamioka has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
<wald0_>
perfect, thx :)
jheg has joined #ruby
aspires has quit []
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
go|dfish has joined #ruby
x1337807x has joined #ruby
shackleford has joined #ruby
mikepack has quit [Remote host closed the connection]
hsps_ has quit [Ping timeout: 260 seconds]
bricker`work has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
dumdedum has quit [Quit: foo]
gccostabr has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theo_ has joined #ruby
dkamioka has joined #ruby
feniix has quit [Quit: leaving]
chrishough has joined #ruby
<apeiros>
wald0_, mozzarella: note that require_relative is NOT relative to the working directory. it is relative to the file from where it is called.
wallerdev has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
phutchin2 has quit [Ping timeout: 272 seconds]
ibotexo has quit [Quit: Page closed]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
koderok has left #ruby [#ruby]
gccostabr has joined #ruby
Aranshada|W has joined #ruby
<mozzarella>
that's what people usually expect, though there are methods that are relative to the working directory (yaml load_file for example, not sure about Kernel#load)
mikepack has joined #ruby
yubrew has quit []
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
x1337807x has joined #ruby
senayar has joined #ruby
<apeiros>
all file operations are relative to working directory
<apeiros>
code loading however does not fall into that category. even if it deals with files.
aspires has joined #ruby
frankle has joined #ruby
<apeiros>
require is relative to the paths in $LOAD_PATH. relying on working directory is usually foolish there.
<apeiros>
(or even an outright security issue)
wombo has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
britneywright has joined #ruby
rubydimond is now known as zz_rubydimond
senayar has quit [Ping timeout: 260 seconds]
<eam>
only a security issue if there's a privilege difference between the program and the invoker
spyderma_ has joined #ruby
bearish has joined #ruby
mikesplain has joined #ruby
<eam>
perhaps I shouldn't say only, but that's generally the concern
redondo has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
autojack has joined #ruby
<jheg>
o/
Ankhers has quit [Remote host closed the connection]
bearish has quit [Ping timeout: 264 seconds]
qhartman has joined #ruby
Cheezebox has quit [Remote host closed the connection]
<eam>
loooooots of cases where you really, really do not care about (or expect) the call to fail
<apeiros>
do you know what kind of bugs you're hiding with that?
<eam>
yes
usinganalias has joined #ruby
lmello has quit [Quit: Leaving.]
mikesplain has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
<apeiros>
eam: example: path isn't really a path. you'll never know.
<eam>
yeah that's what I mean
<eam>
unlink without stat is a common pattern
<apeiros>
no, it's not what you mean
<usinganalias>
Hello all! I wanted to make a little one-page online gadget to allow users to complete Ruby challenges online, irb-style. What can I use for a ruby sandbox?
<eam>
oh, you mean path isn't a string?
<apeiros>
File.unlink([:foo]) # <-- pretty sure you didn't want to call it with that arg
shackleford has quit [Remote host closed the connection]
<eam>
apeiros: perhaps, but the boilerplate isn't worthwhile in most cases
<apeiros>
eam: I assume you didn't have to debug others code…
<eam>
that's generally all I do, actually
* autojack
reads along.
<apeiros>
eam: anyway, it'd be nice if a) inline rescue accepted exception types and b) operations like File.unlink would have generic top level types to rescue
<autojack>
I see what we're getting at.
carraroj has quit [Client Quit]
Neo-- has joined #ruby
usinganalias has quit [Client Quit]
<apeiros>
which would allow to get away without boilerplate and still get proper exceptions when somebody fucked up
MrL0ngbowman has joined #ruby
<eam>
apeiros: I see your point and I'd be happy to be selective if there were reliable rhyme and reason behind the types of common libc functions
<eam>
but when I weigh the balance I find doing more than "rescue true" lacking
<apeiros>
eam: I think we have a kind of agreement and just disagree on severity/impact :)
<eam>
yeah
Spami has quit [Quit: This computer has gone to sleep]
JoshGlzBrk has joined #ruby
<apeiros>
I generally find the exception system in ruby lacking :-/
testcore has quit [Ping timeout: 264 seconds]
<eam>
certainly part of the issue is that if I really want that level of safety I won't be using ruby to begin with ;-)
<autojack>
seems like in my example code, it will return nil if there is no result for the lookup, but also if you pass in garbage to the method.
<autojack>
one case good, one case bad.
<eam>
autojack: yeah it's probably an example of how not to use it
havenwood has quit []
philcrissman has joined #ruby
lw has joined #ruby
<autojack>
should just find out what exception is returned for a failed lookup and rescue that.
jxf has quit [Ping timeout: 255 seconds]
<eam>
when I do use it, it's always on very limited and specific core methods
oso96_2000 is now known as oso|away
CaptainJet has joined #ruby
<eam>
(where in C I would ignore every return value, for example)
magoo has quit [Quit: WeeChat 0.4.3]
altern has joined #ruby
oso|away is now known as oso96_2000
<apeiros>
eam: out of curiosity - what would you use when you wanted that level of safety?
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
altern has quit [Client Quit]
ghostmoth has quit [Quit: ghostmoth]
georgesmith has quit [Quit: georgesmith]
jxf has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
<eam>
ocaml is kinda sweet
nanoyak has joined #ruby
<eam>
have done a few projects in it
dazeddev_ is now known as dazeddev
<eam>
nothing recently
<apeiros>
hm, mauricio wrote a bit about it iirc
<apeiros>
blargh, internet here sucks around this time :-S
bradleyp_ has joined #ruby
<eam>
modern C compilers even have a decent type system
ghostmoth has joined #ruby
bluOxigen has joined #ruby
ssarah has quit [Quit: Reasons.]
blueOxigen has quit [Ping timeout: 245 seconds]
bradleyprice has quit [Ping timeout: 255 seconds]
altern has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echevemaster has joined #ruby
St_Marx has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
xfz_ is now known as xfz
<apeiros>
hm, either I misremember and his domain wasn't eigenclass.org or he's given it up :(
pietr0 has quit [Quit: pietr0]
georgesmith has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<autojack>
thanks for the insight :)
autojack has left #ruby [#ruby]
Takle has joined #ruby
<eam>
anything statically typed is pretty amazing. Go is super hip right now but I'm not exactly a fan
yfeldblum has quit [Remote host closed the connection]
adamski2600 has quit [Remote host closed the connection]
adamski2600 has joined #ruby
cocotton has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
wald0_ has quit [Quit: Lost terminal]
yfeldblum has joined #ruby
seamon has joined #ruby
aspires has quit []
altern has quit [Quit: This computer has gone to sleep]
vt102 has quit [Remote host closed the connection]
<jhass>
for now you have to catch the NoMethodError I fear
<jhass>
(or just let it bubble up)
<fuzzyhorns>
yeah :c
DEA7TH has quit [Remote host closed the connection]
jottr has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
qhartman has quit [Quit: Ex-Chat]
startupality has joined #ruby
<advorak>
jhass, it was just a general curiosity I had .. I when I was working with the enum, I wanted to know how many more iterations existed before I got to the end after repeatedly doing x.next manually ..
georgesmith has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caveat- has joined #ruby
georgesmith has quit [Client Quit]
tables has joined #ruby
<tables>
what package is rvm from?
<tables>
i'm trying to get rvm on debian linux
freerobby has quit [Quit: Leaving.]
<tables>
or ubuntu
moritzschaefer has joined #ruby
startupality has quit [Client Quit]
dblessing has quit [Quit: dblessing]
shevy has quit [Ping timeout: 246 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
phutchin1 has joined #ruby
codecop has quit [Remote host closed the connection]
fuzzyhorns has left #ruby [#ruby]
<miah>
its not from a package; its from a website
gccostabr has quit [Quit: ZZZzzz…]
jottr has quit [Ping timeout: 260 seconds]
gsd has joined #ruby
momomomomo_ has joined #ruby
livingstn has quit []
kaspergrubbe_ has joined #ruby
georgesmith has joined #ruby
bearish has joined #ruby
<advorak>
tables, There are instructions for installing at http://rvm.io/
asteve_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caveat- has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Ping timeout: 245 seconds]
startupality has joined #ruby
philcrissman has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
Lucky___ has joined #ruby
jottr has joined #ruby
britneywright has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
einarj has joined #ruby
nobitanobi has joined #ruby
caveat- has joined #ruby
jfutbol has quit [Remote host closed the connection]
cpt_yossarian has quit [Ping timeout: 240 seconds]
cake_ is now known as _cake
zettam_ has joined #ruby
Davedo1 has joined #ruby
sparrovv has quit [Ping timeout: 240 seconds]
enebo has quit [Ping timeout: 246 seconds]
Davedo has quit [Ping timeout: 260 seconds]
phrozen7- has quit [Ping timeout: 260 seconds]
armanghassemi_ has quit [Ping timeout: 260 seconds]
mjc_ has quit [Ping timeout: 260 seconds]
ari-_-e has quit [Ping timeout: 260 seconds]
adamnbowen has quit [Ping timeout: 260 seconds]
snath has quit [Ping timeout: 260 seconds]
Davedo1 is now known as Davedo
krisquigley has joined #ruby
snath has joined #ruby
beneggett has joined #ruby
proxie has joined #ruby
momomomomo_ has joined #ruby
<TheTopBloke>
unfortunately Im not finding a whole on this. On OSX it is .profile correct?
o0oo0o has quit [Ping timeout: 264 seconds]
ari-_-e has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
cpruitt has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 246 seconds]
phrozen77 has joined #ruby
Mattias has quit [Ping timeout: 260 seconds]
zettam has quit [Ping timeout: 246 seconds]
armyriad has joined #ruby
o0oo0o has joined #ruby
sparrovv has joined #ruby
_lexjm has quit [Ping timeout: 260 seconds]
avi__ has quit [Ping timeout: 260 seconds]
bthesorceror has quit [Quit: bthesorceror]
avi__ has joined #ruby
mjc_ has joined #ruby
cpruitt has joined #ruby
felixjet_ has joined #ruby
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
armanghassemi_ has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
Mattias has joined #ruby
axilla has joined #ruby
bthesorceror has joined #ruby
aspires has quit []
joast has quit [Ping timeout: 246 seconds]
jhc76 has quit [Remote host closed the connection]
adam12 has quit [Ping timeout: 246 seconds]
virtualize has quit [Ping timeout: 260 seconds]
caveat- has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
Freijo has quit [Ping timeout: 246 seconds]
Rydekull has quit [Ping timeout: 246 seconds]
lazyguru has quit [Ping timeout: 246 seconds]
geggam has quit [Ping timeout: 246 seconds]
goleldar has quit [Ping timeout: 246 seconds]
ValicekB has quit [Ping timeout: 246 seconds]
mozzarella has quit [Ping timeout: 246 seconds]
descala has quit [Ping timeout: 246 seconds]
jobewan has quit [Quit: Leaving]
IceDragon has quit [Ping timeout: 246 seconds]
TheTopBloke has quit [Ping timeout: 246 seconds]
axilla_ has quit [Ping timeout: 246 seconds]
pr0t has quit [Ping timeout: 246 seconds]
WormDrink has quit [Ping timeout: 246 seconds]
goleldar has joined #ruby
txdv has quit [Ping timeout: 246 seconds]
felixjet__ has quit [Ping timeout: 246 seconds]
AntelopeSalad has quit [Ping timeout: 246 seconds]
aspires has joined #ruby
helpa has quit [Remote host closed the connection]
jkline has joined #ruby
Fraeon has joined #ruby
riotjone_ has joined #ruby
wmoxam has joined #ruby
Rydekull has joined #ruby
georgesmith has quit [Quit: georgesmith]
nectarys has joined #ruby
Rydekull has quit [Changing host]
Rydekull has joined #ruby
txdv has joined #ruby
bMalum has quit [Quit: bMalum]
Xiti has joined #ruby
sylvanica has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
mfmfmfmfmfmf has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
klmlfl has quit [Quit: klmlfl]
Xiti` has joined #ruby
adam- has joined #ruby
geggam has joined #ruby
adam- is now known as Guest23528
Alina-malina has joined #ruby
diegovio1 has joined #ruby
armyriad has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
diegovio1 is now known as diegoviola
Xiti` has quit [Client Quit]
caveat- has joined #ruby
nhjk has joined #ruby
startupality has quit [Quit: startupality]
Xiti` has joined #ruby
Xiti` has quit [Changing host]
Xiti` has joined #ruby
Xiti has quit [Ping timeout: 245 seconds]
moted has joined #ruby
mozzarella has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
aspires has quit []
<mozzarella>
did thetopbloke receive help?
<mozzarella>
I got disconnected
otherj has quit []
aspires has joined #ruby
TheTopBloke has joined #ruby
klmlfl has joined #ruby
sparrovv has quit [Remote host closed the connection]
dbasch has joined #ruby
sparrovv has joined #ruby
AntelopeSalad has joined #ruby
caveat- has quit [Ping timeout: 240 seconds]
pr0t has joined #ruby
IceDragon has joined #ruby
<shevy>
nope
<shevy>
he is still helpless like a child
<mozzarella>
aaaaawwww
ValicekB has joined #ruby
<mozzarella>
TheTopBloke: still need help?
descala has joined #ruby
WormDrink has joined #ruby
<TheTopBloke>
Yes please. sorry I got disco'd
<mozzarella>
me too
<wallerdev>
same
icarus has quit [Remote host closed the connection]
<mozzarella>
TheTopBloke: basically, don't use .profile, it's a different file
fabrice31 has joined #ruby
momomomomo has quit [Quit: momomomomo]
peckermanzzz has joined #ruby
<mozzarella>
just create one if it doesn't exist
<mozzarella>
I think the default shell on OS X is bash, so just create .bashrc
<TheTopBloke>
I think Im at the point where I know I have chruby installed but command not found is what I get, and I am looking for bashrc or equivalent which I believe is supposed to be .profile somewhere on my mac, most likely located /etc/
<mozzarella>
TheTopBloke: you type "chruby" and it says "command not found"?
<TheTopBloke>
yep
dbasch has quit [Ping timeout: 250 seconds]
sparrovv has quit [Ping timeout: 250 seconds]
<mozzarella>
TheTopBloke: what does "file /usr/local/share/chruby/chruby.sh" say? type it in a terminal window
peckermanzzz has quit [Client Quit]
lmello has joined #ruby
x1337807x has joined #ruby
peckermanzzz has joined #ruby
mary5030 has joined #ruby
<TheTopBloke>
any particular part of the script you want me to tell you about?
fabrice31 has quit [Ping timeout: 260 seconds]
<mozzarella>
TheTopBloke: no, just wanted to see if there was such a file
<TheTopBloke>
yep. file is there.
<mozzarella>
now create a .bashrc file in your home folder and add "source /usr/local/share/chruby/chruby.sh" to it
benlieb has quit [Quit: benlieb]
Aranshada|W has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
benlieb has joined #ruby
djbkd has quit [Remote host closed the connection]
<mozzarella>
you will need to open a new terminal window for it to take effect
caveat- has joined #ruby
djbkd has joined #ruby
matchaw has quit [Remote host closed the connection]
<TheTopBloke>
I inadvertently opened chruby with xcode, so I'm just going to create the .bashrc file with xcode and place it, what literally in /home?
pietr0 has quit [Quit: pietr0]
<wallerdev>
/Users/yourname aka ~/
<nhjk>
just type cd
<TheTopBloke>
gotcha. ok one sec
agjacome has quit [Remote host closed the connection]
<wallerdev>
no cd in xcode
matchaw has joined #ruby
<wallerdev>
closest is cmd+shift+g with file browser open
skolman has quit [Remote host closed the connection]
<nhjk>
oh i thought he was in the terminal
<TheTopBloke>
No I gotcha. I just have to move it from my desktop to the home folder now.
Cheezebox has quit [Remote host closed the connection]
<TheTopBloke>
I was in terminal, but I typed in "open chruby.sh" and it opened in xocde.
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TheTopBloke>
ok one sec
shackleford has quit [Remote host closed the connection]
<nhjk>
cd && echo "source /usr/local/share/chruby/chruby.sh" > .bashrc
<nhjk>
from terminal if you want
sambao21 has quit [Quit: Computer has gone to sleep.]
aspires has quit []
dkamioka has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
atraylen has quit [Ping timeout: 250 seconds]
echevemaster has quit [Ping timeout: 245 seconds]
<TheTopBloke>
ok, I tried to mv it, but I used the command you suggested instead.
IceDragon has quit [Ping timeout: 260 seconds]
einarj has quit [Remote host closed the connection]
IceDragon has joined #ruby
mugen has joined #ruby
mugen is now known as Guest79971
<TheTopBloke>
ok, I now have .bashrc in /usr/local/share/chruby along with chruby.sh
klmlfl has quit [Quit: klmlfl]
Aranshada|W has joined #ruby
snath has quit [Ping timeout: 250 seconds]
<nhjk>
what exactly are you trying to do?
caveat- has quit [Ping timeout: 250 seconds]
kenneth has joined #ruby
linojon has joined #ruby
kenneth has quit [Max SendQ exceeded]
postmodern has joined #ruby
<TheTopBloke>
I was trying to install Rails, which led to installing Ruby-2.1.0, which led to installing chruby, which is installed, but when I type in chruby is says command not found.
senayar has quit [Remote host closed the connection]
<nhjk>
do you have homebrew?
<TheTopBloke>
yep
kenneth has joined #ruby
momomomomo has joined #ruby
lid_ has quit [Ping timeout: 255 seconds]
krisquigley has quit [Remote host closed the connection]