apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<Somelauw> shevy: well, many other languages have lambdas, but I like ruby's syntax for them
<lagweezle> What ... the fuck ...
<lagweezle> Hanmac: That is all kinds of not good.
jonno11 has joined #ruby
aspires has joined #ruby
RoryHughes has joined #ruby
<shevy> yikes Hanmac
<shevy> this shows that doctors are idiots!
agjacome has quit [Quit: leaving]
<lagweezle> I'd be glad they sent you to a different hospital!
<Hanmac> lagweezle: i also did wake up in the middle of a operation when my leg was broken ... they used laugh gas ... (i vomit because of it)
<Hanmac> lagweezle: i still wonder why my blood they already took from me was not good enough for them ... (it was only 30min old ...)
<lagweezle> *facepalms*
Guest14431 has quit [Quit: Konversation terminated!]
shime has quit [Ping timeout: 248 seconds]
jamesaanderson has joined #ruby
nucc has quit [Quit: This computer has gone to sleep]
<Hanmac> the dream i had with laugh gas was the craziest i had ... (and shevy knows that means something when i say that)
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
standyro1 has quit [Ping timeout: 260 seconds]
<shevy> hmm
<Somelauw> too bad code blocks can't be nested
vlad_starkov has quit [Read error: Connection reset by peer]
<Somelauw> ok, maybe I don't prefer ruby code blocks, but I do like their syntax
robbyoconnor has quit [Quit: Konversation terminated!]
Al__ has joined #ruby
r0bby_ has joined #ruby
afhammad has joined #ruby
coffeina has quit [Quit: Wychodzi]
krisbulman has joined #ruby
<Hanmac> Somelauw: lies! code blocks can be nested too
Davey_ has joined #ruby
kenneth has quit [Quit: kenneth]
<Hanmac> Somelauw:
<Hanmac> >> def func; def func; def func; "third";end;"second";end;"first";end; [func,func,func]
<eval-in> Hanmac => ["first", "second", "third"] (https://eval.in/95019)
<Somelauw> >> def a; def b; def c; "third";end;"second";end;"first";end; [a,b,c]
<eval-in> Somelauw => ["first", "second", "third"] (https://eval.in/95020)
<Somelauw> >> def a; def b; def c; "third";end;"second";end;"first";end; [a,b,c, b, a]
<eval-in> Somelauw => ["first", "second", "third", "second", "first"] (https://eval.in/95021)
<Hanmac> i think its more fun when you use for all the functions the same method name ;P (then you see how it works)
sparrovv has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
octoberry has joined #ruby
Azure has joined #ruby
<Somelauw> oh, i meant something like: >>> unfold(0) {|i| i < 5, {i * i}} # [1, 4, 9, 16]
<Somelauw> not saying it's a good idea, but that doesn't seem possible to write such an unfold method
<apeiros> Array.new(4) { |i| (i+1)**2 }
drumusician has quit [Ping timeout: 264 seconds]
<apeiros> how does your unfold(0) know to increment i?
<Somelauw> oh, eh wrong
Akuma has quit [Quit: So long sukkas!]
<Somelauw> >>> unfold(0) {|i| i < 5, {i + 1}} # [1, 2, 3, 4]
<eval-in> Somelauw => /tmp/execpad-49982c799164/source-49982c799164:2: syntax error, unexpected '>' ... (https://eval.in/95022)
pskosinski has quit [Remote host closed the connection]
S0da has quit [Read error: Connection reset by peer]
<apeiros> you have to use something else than >>
<apeiros> as that'll trigger the bot to eval it
sepp2k has quit [Read error: Connection reset by peer]
<apeiros> >> Array.new(4) { |i| i+1 }
<eval-in> apeiros => [1, 2, 3, 4] (https://eval.in/95023)
<apeiros> or for this trivial case, actually:
<apeiros> >> [*1..4]
<eval-in> apeiros => [1, 2, 3, 4] (https://eval.in/95024)
ixti has quit [Quit: WeeChat 0.4.2]
octoberry has quit [Ping timeout: 264 seconds]
banisterone has joined #ruby
Brolen has quit [Remote host closed the connection]
<apeiros> and blocks can be nested just fine
ixti has joined #ruby
ixti has quit [Client Quit]
meatherly has joined #ruby
aryaching_ has joined #ruby
ixti has joined #ruby
wadawadawsda has joined #ruby
timonv has joined #ruby
waxjar has quit [Ping timeout: 272 seconds]
aryaching has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
MrZYX is now known as MrZYX|off
anddam has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 240 seconds]
Amart41 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
waxjar has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
krisbulman is now known as [krisbulman]
shadoi has joined #ruby
Hanmac has joined #ruby
octoberry has joined #ruby
[krisbulman] is now known as krisbulman
atraylen has joined #ruby
sivoais has quit [Remote host closed the connection]
Amart41 has quit [Ping timeout: 240 seconds]
afhammad has quit []
waxjar has quit [Ping timeout: 245 seconds]
standyro1 has joined #ruby
postmodern has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
shedd has quit [Remote host closed the connection]
<lagweezle> Interesting. Was having problems due to --> gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
cj3kim has joined #ruby
Albright has joined #ruby
phracker has joined #ruby
phracker has quit [Max SendQ exceeded]
predator117 has joined #ruby
phracker has joined #ruby
<Albright> Ruby complains when I try to invoke a shell command using a string that contains the NULL byte. Is there a workaround? Both backticks and Process.exec() complain…
kirun has quit [Quit: Client exiting]
aryaching has joined #ruby
<lagweezle> Trying to run a shell command with a null byte is ... unusual.
funburn has quit [Ping timeout: 260 seconds]
Akuma has joined #ruby
<apeiros> Albright: you'll have to be a liiiittle bit less vague
<Albright> lagweezle: Indeed. It’s part of the Stripe CTF challenge… Git hash objects… kinda esoteric stuff.
<apeiros> "complains" doesn't tell a thing
<Albright> apeiros: Okay, one minute, I’ll Pastebin.
aryaching_ has quit [Ping timeout: 252 seconds]
<apeiros> Albright: please use gist
<apeiros> or at least anything non-ad-ridden. thx.
<xargoon> escape it?
predator217 has quit [Ping timeout: 245 seconds]
<xargoon> \0
aspires has quit []
<xargoon> you cannot execute a shell command with an actual null byte, because the string is null terminated
<apeiros> ^
cj3kim has quit [Ping timeout: 272 seconds]
<Albright> apeiros: https://gist.github.com/GarrettAlbright/8626176 - I put the resulting error in there too.
aspires has joined #ruby
<Albright> xargoon: Oh, hmm…
krisbulman is now known as [krisbulman]
waxjar has joined #ruby
anddam has joined #ruby
<apeiros> yeah, that code hits what xargoon just said
Megtastique has joined #ruby
<Albright> I think I’ll try writing the string to a file and then use < in the command…
Megtastique has quit [Client Quit]
[krisbulman] is now known as krisbulman
<apeiros> not sure how to escape a null byte properly in shell arguments
<apeiros> \0 doesn't seem to work
<apeiros> ruby -e 'p ARGV' \0 -> ["0"]
sivoais has joined #ruby
<apeiros> ruby -e 'p ARGV' '\0' -> ["\\0"]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
lfox has quit [Quit: ZZZzzz…]
<Albright> Okay, writing to a file worked.
pen has quit [Remote host closed the connection]
Disgrntld has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
<apeiros> aaahaha, fascinating
<apeiros> it seems impossible to pass an actual null byte
<apeiros> observe:
<apeiros> $ ruby -e 'p ARGV' $'\001' # -> ["\u0001"]
<apeiros> $ ruby -e 'p ARGV' $'\000' # -> [""]
<apeiros> oh, wait…
<apeiros> might be rubys inspect acting stupid…
bean has joined #ruby
<apeiros> ah, no. omitted an edit and got misguided. back to prior statement.
IceyEC has joined #ruby
Wolland has joined #ruby
SiliconG has joined #ruby
<xargoon> mhm, i would think the only way to pass a null byte to a shell command would be for the external program itself to interpret it from an escaped sequence
iamdoo2 has joined #ruby
<SiliconG> I am not sure this is the right place to ask but I am trying to install fpm on centos
<SiliconG> and I am getting an error ERROR: Failed to build gem native extension
krisbulman is now known as [krisbulman]
<xargoon> since the OS passes the arguments as an array of null terminated strings
<Hanmac> SiliconG: how did you install ruby? did you install dev packages too?
Cache_Money has joined #ruby
<Hanmac> SiliconG: what gem does you try to install? the gem install should post a link to a file, post this file in a gist
<SiliconG> yes - I used yum install ruby ruby-devel
<Morrolan> Hanmac: fpm.
<apeiros> xargoon: makes sense
<Morrolan> I believe it depends on FFI.
sassamo has joined #ruby
<SiliconG> it just sits there and hangs and then errors our - do I have to install other dev packages?
<apeiros> I mean it's sad and all, but it's consistent with the observation and would fit with common C implementations
<Hanmac> SiliconG: post the whole output of gem install into a gist
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac> apeiros: was that about FFI? its nice but i prefer my bindings so that they are safe (Exception and no segfault ... with FFI you cant always got what you want)
iamdoo2 has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<apeiros> Hanmac: that was about inability to pass \x00 as a shell arg
SCommette has joined #ruby
<Hanmac> ah ok
<Morrolan> FFI was about SiliconG's issue. My bet is on its headers missing on his system.
<Morrolan> But the gem output will tell.
<Disgrntld> Hello, I'm having trouble getting Ruby to run a Windows Script Host file using backticks (`warbandCLI.vbs "set_factions 6 7"`). I get an "Exec format error", any ideas?
Akuma has quit [Quit: So long sukkas!]
<Disgrntld> ..the script runs fine manually
axl_ has joined #ruby
RoryHughes has quit []
sassamo has quit [Ping timeout: 248 seconds]
Cache_Money has quit [Quit: Cache_Money]
phracker has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
<Hanmac> Morrolan: i still dont know why he didnt show the log file .. i mean the error message says that he should look into this file ... i did tell him that he should show the file ... i mean i am a very helpful person ... *to much Quest-RPGs* ... but i cant help someone that is not listening ... i cant force him ... yet :P
s2013_ has joined #ruby
<Morrolan> He's still around. Wait with complaining until he leaves. :P
<Morrolan> Maybe just taking his sweet time to paste it. :D
tylersmith has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 245 seconds]
Somelauw has quit [Quit: WeeChat 0.4.1]
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
incade has quit [Remote host closed the connection]
raw has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<Hanmac> Morrolan: do you know what i really hate? some one that appears & says: " i need help" then some of us answer: "i will help you what is your problem?" ... and then no respond and log off ... oO ... or even worse, repeating the question, dont respond to helping answers, and THEN log off ...
raw is now known as Guest97446
robustus has quit [Ping timeout: 252 seconds]
<Morrolan> Yes, those people annoy me too. But hope's not lost yet. :D
<Morrolan> I don't mind people who take time to respond. There's always something to do, I don't have my IRC client in the foreground 24/7.
<Guest97446> hello how can i but a variable into ' ' (quotes)?
robustus has joined #ruby
<Morrolan> Sorry, could you rephrase? (Or maybe give an example of what you want to do)
SCommette has quit [Quit: SCommette]
<Guest97446> ehm
shedd has joined #ruby
shedd has quit [Read error: Connection reset by peer]
shedd has joined #ruby
<Guest97446> i i grep a word from a .txt through File.open(.txt)readlines.each do |word|
<shevy> Guest97446 x = "foo"; x = "'"+x+"'"
vlad_starkov has joined #ruby
<Guest97446> but i need the word to be in ''
<shevy> Can you try to finish the words ... ;)
<Hanmac> Guest97446 first: use File.foreach(txt) not what you have
<Guest97446> shevy: yea i believe its right
<Guest97446> Hanmac: y file for each
aryaching_ has joined #ruby
<shevy> you forget a . before readlines Guest97446 - actually, File.readlines(your_file_here).each {|word| }
Akuma has joined #ruby
Megtastique has joined #ruby
<Hanmac> Guest97446:
<Hanmac> >> a= 4; ['#{a}',"#{a}","'#{a}'"]
<eval-in> Hanmac => ["\#{a}", "4", "'4'"] (https://eval.in/95029)
aryaching has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
[krisbulman] is now known as krisbulman
SCommette has joined #ruby
maffi has joined #ruby
krisbulman is now known as [krisbulman]
tt1187 has quit [Ping timeout: 252 seconds]
SCommette has quit [Client Quit]
<shevy> Guest97446 are you still awake
s2013_ is now known as s2013
sparrovv has quit [Remote host closed the connection]
Aryasam has joined #ruby
<Hanmac> shevy like i said earlier ... wanting help and does not respond if the help was successful ... :/
<lagweezle> Erm, suggestions for something to keep a process up an running on an EC2 instance?
xcv_ has quit [Remote host closed the connection]
<Hanmac> lagweezle: dont use to_sym and the process will run longer ;P
aryaching_ has quit []
shedd has quit [Ping timeout: 245 seconds]
<lagweezle> I ... er ... wat? O.o
<s2013> stupid question but can ruby be used to control stuff like your mouse and other system stuff
<Hanmac> s2013: with the right binding yes
* lagweezle ponders and tries to find the right words.
<s2013> so some low level binding?
<Hanmac> s2013: ruby itself cant do that alone .. you need a binding to a c(++) lib that can do that for that what you want
[krisbulman] is now known as krisbulman
<s2013> cool thanks
<lagweezle> I need to daemonize a CLI thing I wrote.
bro is now known as sam113101
<lagweezle> I'd rather use an external monitoring thing (like God, monit, etc.).
<Hanmac> lagweezle: when you create symbols from userinput or other generated strings they fill up the symbol table (because symbols are not GC'd) ... => more Symbols => bigger SymbolTable => more RAM usage ... ===> if you use to_sym on user input you can DDOS an app
<lagweezle> Hanmac: ahhh gotcha
<Hanmac> thats why you need to be careful when you operate on symbols ... specially since Symbols does succ too ;P
<Hanmac> >> :abc.succ
<eval-in> Hanmac => :abd (https://eval.in/95038)
<lagweezle> I so don't understand. :/
<lagweezle> The succ thing.
<lagweezle> Well, that isn't quite correct. I don't understand a LOT.
meatherly has joined #ruby
sassamo has joined #ruby
standyro1 has quit [Ping timeout: 260 seconds]
Megtastique has quit []
speakingcode has quit [Ping timeout: 265 seconds]
<lagweezle> Hee. My pup is having dreams, her back snuggled up against my leg. So cute when they run in their sleep.
<shevy> lagweezle .succ kinda counts forward
<shevy> "a".succ # => "b"
<shevy> like the alphabet
clamstar has quit [Quit: Computer has gone to sleep.]
<shevy> apparently only on the last character
<shevy> "abc".scan(/./).map(&:succ) # => ["b", "c", "d"]
clamstar has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
Asher has quit [Read error: Connection reset by peer]
VTLob has quit [Quit: VTLob]
<lagweezle> Oh!
Aryasam has quit [Ping timeout: 252 seconds]
tdubya_ has joined #ruby
Solnse1 has joined #ruby
<shevy> gem server --port 1234
<shevy> is that using webrick? anyone knows?
Hanmac has quit [Ping timeout: 240 seconds]
ponbiki has quit [Read error: Operation timed out]
Al__ has quit [Quit: Al__]
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
Solnse1 is now known as Solnse
tdubya has quit [Ping timeout: 272 seconds]
phipes has joined #ruby
SiliconG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisbulman is now known as [krisbulman]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
tdubya_ is now known as tdubya
tdubya has quit [Changing host]
tdubya has joined #ruby
wynyard has joined #ruby
<Hanmac> lagweezle: succ is more fun when the string is a versions number:
<Hanmac> >> "1.2.9".succ
<eval-in> Hanmac => "1.3.0" (https://eval.in/95039)
<shevy> cool
banisterone has quit [Ping timeout: 260 seconds]
<shevy> >> "0.118".succ
<eval-in> shevy => "0.119" (https://eval.in/95040)
<shevy> wheee
<shevy> I can use that for my gems
ponbiki has joined #ruby
Azure has quit [Read error: Connection reset by peer]
ponbiki is now known as Guest13781
<lagweezle> Hanmac: I'll have to update / add to the answer I wrote up for the Ruby solution at workstuff.
meatherly has joined #ruby
<Hanmac> shevy: also see the diff between:
<Hanmac> >> [ "1.2.9".succ, "1.2.09".succ]
<eval-in> Hanmac => ["1.3.0", "1.2.10"] (https://eval.in/95041)
Azure has joined #ruby
[krisbulman] is now known as krisbulman
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
x77686d has quit [Quit: x77686d]
apeiros has quit [Remote host closed the connection]
shedd has joined #ruby
sparrovv has joined #ruby
apeiros has joined #ruby
zxq9 has joined #ruby
Barrin6 has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 264 seconds]
shedd has quit [Ping timeout: 240 seconds]
rcm7 has joined #ruby
jonah has joined #ruby
Hanmac1 has joined #ruby
ohwhoa has quit [Quit: woah!]
jonno11 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
iamdoo2 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
xcv has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Remote host closed the connection]
griffindy has quit [Quit: Computer has gone to sleep.]
styped has joined #ruby
styped has quit [Max SendQ exceeded]
iamdoo2 has quit [Ping timeout: 265 seconds]
krisbulman is now known as [krisbulman]
wadawadawsda has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
SiliconG has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
<sweeper> well that sucks. TP-Link powerline thernet adapters apparently like to trip AFCI breakers :/
<lagweezle> EVIL!
clamstar has joined #ruby
nifty has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
wadawadawsda has joined #ruby
RoxasShadowRS has quit [Quit: Leaving]
timonv has joined #ruby
shedd has joined #ruby
<lagweezle> Powerline networking is evil.
jonah has left #ruby [#ruby]
saarinen has joined #ruby
x77686d has joined #ruby
fuhgeddaboudit has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
xcv has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 260 seconds]
awarner_ has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
Hanmac1 has quit [Ping timeout: 272 seconds]
m104 has joined #ruby
hypercube32 has joined #ruby
saarinen has quit [Ping timeout: 264 seconds]
Brolen has joined #ruby
ghanima has joined #ruby
Hanmac has joined #ruby
ckinni has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
Brolen has quit [Ping timeout: 265 seconds]
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
Asher has joined #ruby
Guest97446 has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 252 seconds]
Notte has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 252 seconds]
r0bby_ is now known as robbyoconnor
wadawadawsda has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
s2013 has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Parker0 has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
yazdmich has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
nateberkopec has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 265 seconds]
yazdmich has joined #ruby
phipes has joined #ruby
sassamo has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
braincra- has joined #ruby
Hobogrammer has joined #ruby
shedd has joined #ruby
brucelee has quit [Ping timeout: 252 seconds]
cj3kim has quit [Ping timeout: 252 seconds]
braincrash has quit [Ping timeout: 252 seconds]
* lagweezle has inflicted a headache on himself, and is mentally exhausted, but SO DAMNED CLOSE to getting this figured out / finished.
nifty has quit [Ping timeout: 252 seconds]
bricker`LA has quit [Ping timeout: 248 seconds]
assurbanipal has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 252 seconds]
gigetoo has quit [Remote host closed the connection]
fixl has joined #ruby
gigetoo has joined #ruby
wadawadawsda has joined #ruby
bean has joined #ruby
sparrovv has quit [Remote host closed the connection]
wynyard has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
bean has quit [Client Quit]
rootshift has joined #ruby
danshultz has joined #ruby
TripTastic has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
aspires has quit []
danshultz has quit [Ping timeout: 248 seconds]
ewnd9 has joined #ruby
dogweather has joined #ruby
krz has joined #ruby
JBreit has quit [Ping timeout: 264 seconds]
<dogweather> There's something about Resque I just don't understand: must the Resque workers process always run on the same machine as the Rails/Sinatra app?
yfeldblum has joined #ruby
wynyard has joined #ruby
ckinni has quit [Ping timeout: 252 seconds]
<ghanima> is there a hash append method
bricker`LA has joined #ruby
vlad_starkov has joined #ruby
mary5030 has joined #ruby
centrx has joined #ruby
phipes has quit [Read error: Connection reset by peer]
phipes has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
TripTastic has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
vol7ron has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<vol7ron> gem install rails
<vol7ron> ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
<vol7ron> Anyone have an idea how to install rails?
jonathanwallace has quit [Quit: ZNC - http://znc.in]
vlad_starkov has quit [Read error: Connection reset by peer]
John445 has joined #ruby
ckinni has joined #ruby
<vol7ron> ruby --version
<vol7ron> ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
JBreit has joined #ruby
<centrx> gem install rails
John445 has quit [Client Quit]
<sickweezle> ^ that ?
Steve445 has joined #ruby
w4pm has joined #ruby
<vol7ron> gem install rails
<vol7ron> ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
<vol7ron> and yet... i can open that uri in a browser and download
radic has quit [Ping timeout: 265 seconds]
radic has joined #ruby
shedd has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
<vol7ron> never mind -- ran with sudo bah
<vol7ron> would have thought it'd give me a different error if i wasn't su
w4pm has quit [Ping timeout: 248 seconds]
<sickweezle> Same :/
<Steve445> anyone use heavily use GitLab?
Fuzai has quit [Remote host closed the connection]
<Steve445> anyone heavily use GitLab
<vol7ron> I like GitLab
<vol7ron> Very similar to GitHub
mary5030 has quit [Read error: Connection reset by peer]
shedd has quit [Ping timeout: 248 seconds]
<vol7ron> Though I think it's GitLabs
phinfonet has quit [Quit: exitiing]
<vol7ron> nope- not plural
jonathanwallace has joined #ruby
luckyruby has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
pskosinski has joined #ruby
Hanmac has joined #ruby
<pskosinski> Anyone using Bluepill? Any tip why why app is restarting every 4 seconds, while I set checks every 60 seconds?
* sickweezle snrks.
<sickweezle> Sorry. No idea. Also, sorry. Ignore the snrk. I'm a bad person.
simoz15 has joined #ruby
s2013 has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
* vol7ron luv snrk snrks
havenwood has joined #ruby
e^0 has joined #ruby
<Steve445> anyone track time in GitLab?
<Steve445> Tracking the amount of time spent on a issue or code commit
<vol7ron> Steve can you just use gitlog?
<Steve445> different beast
nateberkopec has quit [Quit: Leaving...]
<vol7ron> Yeah one's third party, one's part of git :)
<vol7ron> how about gitk
<Steve445> has nothing to do with git
<vol7ron> issue/code [commit]
<vol7ron> I would think that's directly related to git
<sickweezle> Er, I think 'git log' being timestamps vs logging time spent coding / researching / working on an issue being the differences?
<Steve445> yes
<vol7ron> timestamps between commits?
<sickweezle> Time stamp between commits != time spent working on an issue.
<vol7ron> or timestamps between commit and issue
bradhe has joined #ruby
Jetchisel has joined #ruby
<sickweezle> vol7ron: Nothing to do with time stamps.
<Steve445> Loggin the Amount of Time that is spent on a commit or a issue
<sickweezle> Think more like, "I spent 2 hours and 45 minutes surfing the web to determine that the software bug isn't in our code, but is due to a quirk of the compiler."
<Steve445> so if a dev spends 4 hours fixing a bug related to a issue, those 4 hours are logged against that issue and reportable
<Steve445> yes
<vol7ron> Ah you want to add metadata
<vol7ron> Nevermind, thought you were trying to pull data that already existed
<sickweezle> Yay! I was useful.
<RubyPanther> According to modern theory, it doesn't matter if you were actually doing something else
<sickweezle> O.o
bradhe has quit [Ping timeout: 260 seconds]
<RubyPanther> If every time you see a db bug you spend 30 minutes checking the news before you start fixing it, then those bugs really do take an extra 30 minutes to fix. You can actually get accurate metrics even where the measurement doesn't measure "actual" work
<vol7ron> Modern theory = Modern thievery
baroquebobcat has joined #ruby
mikesplain has joined #ruby
<sickweezle> Huh.
<pskosinski> Hm… my problem is that Bluepill is getting different pid number than it thinks that it gets. :/
<vol7ron> sickweezle: he's using relative metrics, not actual/billable metrics
<RubyPanther> vol7ron: sure, tons of billable hours http://programming-motherfucker.com/
<RubyPanther> No, the real life metric is the "actual" billable metric
<vol7ron> haha love it
<vol7ron> looks like Undercover Brother
altin has quit [Ping timeout: 240 seconds]
<RubyPanther> And yes, when I'm doing sysadmin stuff I fix boxes 50% faster than the next guy... because I surf the web and read documents before I change anything non-routine
<RubyPanther> If web surfing wasn't billable, why would anybody bother with efficient processes? They already know they'll make more money wandering in the dark
Steve445 has quit [Quit: Steve445]
<vol7ron> RubyPanther: difference between reading documentation to solve a problem and "reading the paper"
i8igmac has quit [Ping timeout: 272 seconds]
<RubyPanther> You don't know if it had the answer you were looking for until you read it
<vol7ron> Purpose means a lot. A taxi going out of the way to get paid more is different from it going out of the way to avoid an accident.
mikesplain has quit [Ping timeout: 245 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
<RubyPanther> It isn't a useful distinction. How much does the programmer actually get done in n time. THat is reality, it is the true metric. Classification of specific units of time is not productive.
burlyscudd has quit [Quit: Leaving.]
wynyard has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wynyard has joined #ruby
<vol7ron> Yes but stopping to play playstation shouldn't count towards that n time
AlSquirrel has quit [Quit: This computer has gone to sleep]
nateberkopec has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hypercube32> RubyPanther, thats funny with the programming link, i remember programming before all these methodologies took hold and it was a flying circus where a programmer (anyone really) could never get anything right and fked up constantly
<hypercube32> RubyPanther, without management programmers toil all day long on stuff that doesnt make a business money
<RubyPanther> the person gets more done by the end of the day, who cares if they played 30 minutes of tux racer?
<vol7ron> Going on vacation, making out with your wife -- you can in-build a "rest", but it needs to be proportionate and relative to the work
wynyard has quit [Client Quit]
<hypercube32> or just make broken junk not tested all day long
araujo has quit [Remote host closed the connection]
shedd has joined #ruby
<hypercube32> if programmers truly didnt need management, management by now wouldnt exist in this market. its pretty simple. programmers fail at business, like 98% of the time
<hypercube32> consider said "dot bomb" that i lived through.
<vol7ron> hypercube i wouldn't generalize that.. some programmers maybe, others do quite well
<hypercube32> where every jerk off thought he was worth 125k and a mercedes "because he deserved it"
<havenwood> hypercube32: billion dollar companies work without management, there is more than one way to do it
<hypercube32> vol7ron, oh i put in a percentage there. :P
<RubyPanther> hypercube32: You're not the only old guy around, and when I remember is that teams of passionate programmers who can see both the big picture and also zoom in are efficient working on their own, and some people need to be managed because they get lost in the details (or in useless abstractions)
<RubyPanther> s/when/what/
<hypercube32> and its from direct experience with over a thousand programmers in person over decades
<hypercube32> its pretty simple really
<hypercube32> something that programmers will never admit
<hypercube32> such is life
<vol7ron> haha a made up percentage
gh has joined #ruby
<hypercube32> RubyPanther, i wouldnt say some, i would say most
<vol7ron> 99% of percentages use "99%"
decoponio has joined #ruby
<hypercube32> there are many reasons programmers usually make tons less money than infrastructure engineers
<hypercube32> and need to be managed more than any other in the IT field
<vol7ron> drugs?
<havenwood> hypercube32: like CEOs illegally conspiring to keep wages low
<havenwood> hypercube32: anyways, low software engineer salaries is becoming a thing of the past, and about time
<hypercube32> havenwood, this is true. but that is a few large companies, how much percentage of all programmers do they actually hold?
mehlah has quit [Quit: Leaving...]
<hypercube32> havenwood, i doubt it, it will stay that way. companies wont change their mind because a few people file a lawsuit
<sickweezle> I'm in a tiny company and making 100k a year. I'm basically an SDET.
shedd has quit [Ping timeout: 245 seconds]
<rmroulette> so, is it a bad idea to tack methods onto primitives? even if they are really simple methods?
<idiocrash> hmm, what's the name of the rubyonrails channel?
baroquebobcat has quit [Quit: baroquebobcat]
<idiocrash> #rubyonrails is nonexistent?
<rmroulette> idiocrash: I would guess #rails or #ruby-rails
<hypercube32> idiocrash, #rails has people in it
<idiocrash> aha
<havenwood> hypercube32: once the collusion stopped due to gov't watching the salaries immediately went up, try to poach a 3-million-a-year google software engineer, g'luck
<idiocrash> tanks
<hypercube32> np
<centrx> idiocrash, #rubyonrails is the more trafficked channel
<hypercube32> havenwood, how many of those three million dollar engineers are there? my guess is extremely few, you arent a football player, get over it
<havenwood> and smaller companies do follow the salaries of the large few, you've got to compete for the same pool
<hypercube32> that three million dollar thing is laughable, its an ego thing solely
<havenwood> hypercube32: money is money, pay me!!
<vol7ron> or #ror
<hypercube32> programmers think they're always gods, yet most cant even maintain the environment they work in.
gh has quit [Quit: Leaving]
<hypercube32> yet most are paid the least out of IT jobs in a company :/
<hypercube32> compare network engineer salaries to sr devs and tell me otherwise
idiocrash has quit [Remote host closed the connection]
<vol7ron> hypercube32: when you replace someone who's spending all day tracking things in an excel sheet, you'll understand why they think that
<sickweezle> Why would a dev maintain an environment? O.o
<havenwood> hypercube32: the world is changing
idiocrash has joined #ruby
<hypercube32> havenwood, you'd hope
<hypercube32> lol
<hypercube32> wishful thinking
* sickweezle shivers at the thought of tracking anything in a spreadsheet.
idiocrash has quit [Client Quit]
<hypercube32> half of that truth is that business doesnt see value in programmers because they dont handle the millions of dollars in infrastructure like san admins and network engineers
idiocrash has joined #ruby
<hypercube32> and what holds value makes money
danshultz has joined #ruby
<vol7ron> not to mention the security you want to ensure with hiring someone with that much power
standyro1 has joined #ruby
<havenwood> an underpaid programmer is a sad and bizarre thing, but worse is an overpaid executive
<havenwood> waste of skin
<hypercube32> havenwood, trade places with an exec and the bullshit and stress they deal with, you'll beg to go back to your job
<hypercube32> and sit in the corner with your headphones on
bigmac has joined #ruby
Brolen has joined #ruby
<hypercube32> so we have assets, stress, trust, security, value, and a few other things like high levels of responsibility that programmers do the least in a company...
<hypercube32> i dont think programmers have yet to demand higher salaries than these other positions ive listed.
bigmac is now known as i8igmac
speakingcode has joined #ruby
<hypercube32> which is what it would take. oh and the fact that there are literally thousands of times more programmers than there are other types
<RubyPanther> DBA's make more money because they can communicate directly with the BOFH without needing a translator. Without project managers to translate, developers wouldn't even succeed in getting network resources provisioned.
<rmroulette> would it be considered 'bad practice' to extend primitive classes, even with simple methods?
<havenwood> a bit of social savy would double rates
<hypercube32> which makes them less demand
<hypercube32> RubyPanther, which would be right considering they house the huge amounts of data that a company values. most times i see dba's making more than programmers as well
<havenwood> aspergers and wage negotiation skills seldom overlap
danshultz has quit [Ping timeout: 240 seconds]
<havenwood> we need agents
<hypercube32> RubyPanther, i do agree
<hypercube32> havenwood, lol
<hypercube32> havenwood, yes you do
clamstar has quit [Quit: Computer has gone to sleep.]
<havenwood> rmroulette: usually i'd say prefer mixins, include or extend modules
<hypercube32> havenwood, "make friends with someone on the first day, or become someone's bitch" lol
gja has joined #ruby
allaire has joined #ruby
<hypercube32> havenwood, best thing ive seen programmers do is make friends with the linux admin and maybe a dba
<hypercube32> rarely a network engineer (if they are clever they will)
skyjumper has left #ruby [#ruby]
<RubyPanther> rmroulette: "monkey patches" are okay, but they should be implemented as mixins where possible. Also it is bad practice to overwrite existing methods on core classes
<sickweezle> So wot happens when the programmer knows more about sysadmin than the sysadmin?
axl_ has quit [Quit: axl_]
<RubyPanther> (except where applicable, like adding logging to something, and in that case if you use method chaining then it is not bad)
gener1c has joined #ruby
<vol7ron> hypercube32: you have a narrow definition of programmer
yfeldblum has joined #ruby
timonv has joined #ruby
cj3kim has joined #ruby
<RubyPanther> sickweezle: I'm a better sysadmin than developer, but software bugs are more entertaining than configuration bugs
<vol7ron> sickweezle: edward snowden
<hypercube32> vol7ron, its from experience. so yes probably
<hypercube32> sickweezle, i rarely see that ever happen. ever.
<rmroulette> RubyPanther: not overwritting, but I can't see how it would be used at all outside of the primitive, so why make me have to use class primitive; extend/include whatever; end when it won't work with anything else?
simoz15 has quit [Ping timeout: 264 seconds]
<vol7ron> RubyPanther: those are the hardest to fix
<RubyPanther> Snowden was a better Russian spy than sysadmin, his main client got cracked right under his nose
<hypercube32> sickweezle, ive seen many programmers claim that and they all end up caving in after a few days sitting dealing with what an admin does. not to say there may not be some out there, but still. doubtful. there is a term for that now, half/half devops
<vol7ron> he was a contractor that knew more than the sysadmins, hence spy potential
<sickweezle> I ask, as I did tech support at VMware for 3 years. Many a SAN admin I came across that ended up being generally less knowleadgeable than I. It scares me how incompetent they were.
<RubyPanther> rmroulette: I'm not sure I understand your question
Davey_ has quit [Quit: Computer has gone to sleep.]
<rmroulette> i'll message you RubyPanther
<RubyPanther> please don't
<RubyPanther> I bite
<sickweezle> I also left a position at Yahoo! because I detested the lack of reward, and piles of stress, that sysadmin land offered.
<hypercube32> sickweezle, you have to make difference to people that do their trade, and monkies out there playing the part
<hypercube32> sickweezle, i dont consider someone who just stepped off the boat any sort of trade expert
<rmroulette> okok. trying to figure out how to say this in simple terms...
gener1c_ has quit [Ping timeout: 272 seconds]
<hypercube32> and by stepped off the boat i mean out of college or some shmuck that is a cert liar
<vol7ron> rmroulette: don't add methods to primitives
<sickweezle> Mostly I'm trying to figure out if our definitions of sysadmin / network admin / etc. and programmer are vastly different.
<RubyPanther> a happy sysadmin has to be allowed happy processes
braincra- has quit [Quit: bye bye]
<rmroulette> RubyPanther: nm I think I got it. thanks
<RubyPanther> if you're suffering under a BOFH there is no way you can do a good job
timonv has quit [Ping timeout: 240 seconds]
<hypercube32> sickweezle, and if you mean they dont know the answer to your immediate question, that doesnt count in the world of sysadmin and network engineers because their fields are so vast they work on larger projects they dont memorize everything because its impossible.
yfeldblum has quit [Ping timeout: 252 seconds]
<hypercube32> sickweezle, there isnt some tiny language they can repeat to themselves nightly.
<havenwood> yeah, i recite the code of the Ruby stdlib by heart every night
<hypercube32> RubyPanther, this is true, there needs to be people working together, but mostly i see programmers resent ops because they dont just immediately get whatever crazy thing they want.
<sickweezle> To quote one of my managers from Yahoo! (who is a pretty good guy), "Some people learn more in a week than others do in a year." I found many are the latter in ... well, both worlds. :/
<hypercube32> RubyPanther, and rarely do they ever understand the serious details of the case of why they dont get it.
tongcx has joined #ruby
Amart41 has joined #ruby
<hypercube32> sickweezle, i do agree
<RubyPanther> Yeah, why don't they get their stuff?
<tongcx> hi guys, what's the difference between "rackup" and "foreman"?
standyro1 has quit [Ping timeout: 245 seconds]
<RubyPanther> These days with VMs they should have unlimited toys
tyl has joined #ruby
<sickweezle> Okay. I guess we're sort of talking the same thing. I also really need to learn that I, and probably most folks in this channel, aren't "programmers".
vlad_starkov has joined #ruby
braincrash has joined #ruby
<hypercube32> RubyPanther, that doesnt work out at all, considering the resource limitations that still happen under virtualized environments. just having vmware is a way to say you have infinite resources.
<tongcx> sickweezle: why?
<hypercube32> sickweezle, im usually talking about programmers as the ones they silo in a company (not devops and not sr people in serious lead positions.)
<RubyPanther> The worst thing I see is devs with front end experience being thrown at network services and just grasping in the dark at cargo because they don't understand network design
<RubyPanther> But that is not their fault, that is bad management
<vol7ron> I've been sick for almost a week and spontaneously drool
<sickweezle> tongcx: Why, to which?
<hypercube32> RubyPanther, or just not learning outside their own immediate needs prior
<RubyPanther> Ruby teams do it all the time
<tongcx> sickweezle: most guys here aren't "programmers"
<vol7ron> ruby vs perl6 -- go
<hypercube32> vol7ron, vitamins and anti-bacterial soap are your friends
<RubyPanther> Sure, sure, if they were more awesome they'd know more stuff already
<hypercube32> tongcx, what are they if not programmers?
<rmroulette> so I'm not modifying any methods, I'm just adding a new one. Is that still bad?
<tongcx> hypercube32: don't know
<vol7ron> hypercube32: i think that's what got me into this mess
<RubyPanther> A bunch of Lusers shuffling around in ruby slippers
<hypercube32> programmers to me are basically people that arent responsible for anything outside of code base
<sickweezle> tongcx: Going by what hypercube32 just mentioned, I suspect most folks that stay in here and "live" in the channel are the senior folk, or of the mindset, rather than being the monkey-at-keyboard 'programmer'.
<rmroulette> its not really something that can be used in other classes, it only would apply to Arrays
Amart41 has quit [Ping timeout: 245 seconds]
<hypercube32> sickweezle, i didnt point you out as the type im refering, avoid the ego stuff
<tongcx> hi guys, what's the difference between "rackup" and "foreman"?
<hypercube32> "he must mean me, so ill take offense"
<hypercube32> lol
nari has joined #ruby
<RubyPanther> rmroulette: It is fine to add a method, especially if you name it something non-generic, like a gem blarg might add #to_blarg to Array
vlad_starkov has quit [Ping timeout: 248 seconds]
<havenwood> tongcx: rackup is the standard default tool for running Rack apps. In addition to just running the Rack app, Foreman manages the app processes.
<rmroulette> RubyPanther: there we go, just needed to phrase my question more clearly. Thanks!
<vol7ron> RubyPanther: it's better to subclass
<hypercube32> but hey guys its been real. but this is taking up some time. thanks for the convo it was enlightening.
<RubyPanther> but #to_b is generic and shouldn't be touched
hypercube32 has left #ruby ["Leaving"]
<tongcx> havenwood: so think or unicorn also manages app process, what's the diff?
<RubyPanther> vol7ron: Sometimes, but often not in Ruby.
<vol7ron> same here
<havenwood> tongcx: Unicorn is a Rack webserver.
<vol7ron> i'm gonna go learn rails again
<sickweezle> :3
<rmroulette> vol7ron: I tried that, but the code ended up being 20x longer so I figure that had to be the wrong way
<havenwood> tongcx: You could use Foreman to launch and manage a Unicorn app.
<sickweezle> I'm still definitely a young pup.
<vol7ron> rmroulette: cannot attest to your attempt
<vol7ron> take care all
<rmroulette> bye vol7ron
<havenwood> tongcx: Unicorn, Thin, Puma, Passenger, Webrick, and Reel-Rack are all Rack webservers. Foreman would be more in the company of tools like God and Bluepill.
vol7ron has quit [Quit: Leaving]
<tongcx> havenwood: so what does Foreman manage? I imagine that Foreman manage the whole processes, and unicorn manage worker processes?
<i8igmac> can i display a image in my console with out any libs?
<i8igmac> puts image("face.jpg")
<havenwood> tongcx: I haven't used Foreman myself, I usually use God with Unicorn.
shedd has joined #ruby
<centrx> i8igmac, no...
<tongcx> havenwood: sure, so in your case, what does God manage and what does unicorn manage? I think unicorn manage processes for the sake of load balance
<i8igmac> centrx: how would you display a image ?
<i8igmac> in the console
<i8igmac> tk ?
<havenwood> tongcx: God launches Unicorn and then keeps it alive.
<tongcx> havenwood: so if Unicorn dies, God will restart it?
<havenwood> tongcx: Yup.
<centrx> i8igmac, consoles don't usually support images
<tongcx> havenwood: so God keep one Unicorn process and Unicorn keeps a bunch of worker processes?
<havenwood> tongcx: Jesse Storimer did a great talk covering how Unicorn works, worth a watch: http://www.confreaks.com/videos/1289-rubyconf2012-grow-your-unix-beard-using-ruby
<centrx> i8igmac, You can use an ASCII library to output the image as ASCII
<centrx> i8igmac, You could use the terminal from the enlightenment window manager, but that only works in that terminal
<centrx> Thus, also a library
gja has quit [Ping timeout: 245 seconds]
tejas has joined #ruby
<tongcx> havenwood: is it true that God keep one Unicorn process and Unicorn keeps a bunch of worker processes?
<havenwood> tongcx: If you want load balancing checkout Rainbows!, which adds additional features on top of Unicorn.
shedd has quit [Ping timeout: 248 seconds]
<havenwood> tongcx: You can set things up in various ways, but yeah, having God watch the parent Unicorn process and have a bunch of forks is one way.
<tongcx> havenwood: thanks, is there some other popular ways?
cj3kim has quit [Remote host closed the connection]
<havenwood> tongcx: Here's an example God configuration for Unicorn: https://github.com/blog/519-unicorn-god
<tongcx> havenwood: cool, thanks a lot for being so helpful, appreciate it
<havenwood> tongcx: no prob
araujo has joined #ruby
araujo has quit [Remote host closed the connection]
bradhe has joined #ruby
danshultz has joined #ruby
cj3kim has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
<pskosinski> Meh, bluepill and god seem to not work well, at least on FreeBSD 10 with ruby-2.1.0 :(
<pskosinski> god gives an awesome message: "[ok] process is not running (ProcessRunning)"
UForgotten is now known as UForgotten[A]
<pskosinski> They can't track PIDs properly, no idea why (not running on root, but they support it as I read)
UForgotten[A] is now known as UForgotten
danshultz has quit [Ping timeout: 248 seconds]
sassamo has quit [Remote host closed the connection]
mr_rich101 has joined #ruby
sassamo has joined #ruby
fgo has joined #ruby
Kilo`byte has quit [Ping timeout: 277 seconds]
Kilo`byte has joined #ruby
nari has quit [Ping timeout: 245 seconds]
sassamo has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
pskosinski has quit [Remote host closed the connection]
kate_r has joined #ruby
sassamo has joined #ruby
RSTJNII has quit [Excess Flood]
gtcarlos has joined #ruby
RSTJNII has joined #ruby
centrx has quit [Excess Flood]
ponbiki has joined #ruby
musty_ has joined #ruby
echevemaster has quit [Excess Flood]
tyl has quit [Ping timeout: 252 seconds]
echevemaster has joined #ruby
ponbiki is now known as Guest3765
philtr_ has joined #ruby
jedinerd has joined #ruby
jgoss has quit [Excess Flood]
philtr has quit [Write error: Broken pipe]
jedinerd_ has quit [Write error: Broken pipe]
jgoss has joined #ruby
allaire has quit []
s2013 has quit [Quit: Leaving]
shedd has joined #ruby
camt has quit [Remote host closed the connection]
musty has quit [Remote host closed the connection]
sassamo has quit [Remote host closed the connection]
aryaching has joined #ruby
hobodave has quit [Excess Flood]
vongrippen has quit [Excess Flood]
sassamo has joined #ruby
Brolen has quit [Remote host closed the connection]
vongrippen has joined #ruby
standyro1 has joined #ruby
Rylee has quit [Excess Flood]
shedd has quit [Ping timeout: 252 seconds]
Rylee has joined #ruby
Guest13781 has quit [Ping timeout: 437 seconds]
iamdoo2 has joined #ruby
standyro2 has joined #ruby
fgo has quit [Remote host closed the connection]
standyro1 has quit [Ping timeout: 265 seconds]
camt has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
iamdoo2 has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
gtcarlos has left #ruby [#ruby]
yfeldblum has joined #ruby
wadawadawsda has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
emptymag00 has quit [Ping timeout: 272 seconds]
von___ has joined #ruby
standyro2 has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Ping timeout: 265 seconds]
m104 has quit [Quit: bye]
meatherly has quit [Remote host closed the connection]
h0lyalg0rithm has joined #ruby
h0lyalg0rithm has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
shedd has joined #ruby
bradhe has joined #ruby
wallerdev has quit [Quit: wallerdev]
wadawadawsda has joined #ruby
rcm7 has quit []
browndawg has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 264 seconds]
i8igmac has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
McDuder has joined #ruby
McDuder has left #ruby [#ruby]
danshultz has joined #ruby
cj3kim has joined #ruby
dogweather has quit [Remote host closed the connection]
octoberry has quit [Ping timeout: 252 seconds]
danshultz has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
vlad_starkov has joined #ruby
bigmac has joined #ruby
phipes has quit [Remote host closed the connection]
tejas has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby
saarinen has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
marr has joined #ruby
diegoviola has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
marr has quit [Client Quit]
cj3kim has joined #ruby
tyl has joined #ruby
cj3kim has quit [Remote host closed the connection]
gja has joined #ruby
gja has joined #ruby
wadawadawsda has quit [Quit: Bye]
saarinen has joined #ruby
gja has quit [Client Quit]
cj3kim has joined #ruby
shedd has joined #ruby
cj3kim has quit [Remote host closed the connection]
gja has joined #ruby
IceDragon has quit [Quit: Space~~~]
timonv has joined #ruby
cj3kim has joined #ruby
shedd has quit [Ping timeout: 245 seconds]
brennanMKE has quit []
kevinykchan has joined #ruby
iamdoo2 has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
Zubin has joined #ruby
Zubin has quit [Client Quit]
shadoi has joined #ruby
saarinen has quit [Quit: saarinen]
Zubin has joined #ruby
dseitz has joined #ruby
Zubin has quit [Client Quit]
nari has joined #ruby
octoberry has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
BrixSat has quit [Remote host closed the connection]
SCommette has joined #ruby
BrixSat has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
shadoi has quit [Ping timeout: 264 seconds]
SCommette has quit [Client Quit]
kevinykchan has joined #ruby
kevinykchan has quit [Client Quit]
yfeldblum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mando has joined #ruby
sski has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
bigmac has joined #ruby
mando has quit [Ping timeout: 272 seconds]
echevemaster has quit [Quit: Leaving]
bradhe has joined #ruby
bigmac is now known as i8igmac
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
nateberkopec has quit [Quit: Leaving...]
bradhe has quit [Ping timeout: 245 seconds]
Solnse has quit [Quit: Leaving.]
luckyruby has left #ruby ["Leaving..."]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
shedd has joined #ruby
cj3kim has quit [Remote host closed the connection]
nitish has joined #ruby
nitish has quit [Client Quit]
nitish has joined #ruby
shedd has quit [Ping timeout: 265 seconds]
mocfive has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
araujo has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
araujo has joined #ruby
ewnd9 has quit [Remote host closed the connection]
tyl has quit [Ping timeout: 272 seconds]
tyl has joined #ruby
tyl has quit [Remote host closed the connection]
ewnd9 has joined #ruby
tyl has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
saarinen has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
charliesome has joined #ruby
nitish has quit [Remote host closed the connection]
nitish has joined #ruby
SiliconG has quit [Ping timeout: 245 seconds]
Vivekananda has quit [Quit: Ex-Chat]
SCommette has joined #ruby
phipes has joined #ruby
shedd has joined #ruby
yasushi has joined #ruby
gja has joined #ruby
sparrovv has joined #ruby
cj3kim has joined #ruby
gja has quit [Client Quit]
tdubya_ has joined #ruby
pen has joined #ruby
shedd has quit [Ping timeout: 260 seconds]
SCommette has quit [Quit: SCommette]
ThinkRusty87 has joined #ruby
ThinkRusty87 has quit [Client Quit]
iamdoo2 has joined #ruby
tdubya has quit [Ping timeout: 245 seconds]
tdubya has joined #ruby
sparrovv has quit [Ping timeout: 272 seconds]
guest12345 has joined #ruby
<guest12345> Is anyone here?
<guest12345> hello
<guest12345> anyone on
<guest12345> i need help with a simple problem
browndawg has quit [Quit: Leaving.]
Steve445 has joined #ruby
<dseitz> You should just ask; people will respond.
tdubya_ has quit [Ping timeout: 240 seconds]
niklasb has quit [Ping timeout: 240 seconds]
<guest12345> ok well Im trying to port this theme to ruby on rails http://www.blacktie.co/demo/stanley/
<guest12345> and they fucking images wont display on my rails server
<guest12345> ive trid everything I cant possibly imagine whats wrong
iamdoo2 has quit [Ping timeout: 252 seconds]
<dseitz> What have you included so far?
<dseitz> Looks like bootstrap with jquery
<guest12345> the user image works but the fucking other images wont display
<guest12345> it is
<dseitz> where are you loading your images?
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<guest12345> they are in the img folder
<guest12345> I literally copied the file directly from the DL
<guest12345> i replaced all standard ruby app files with the stanley theme files
<guest12345> this is the HTML
<guest12345> <div class="col-lg-4"> <a class="zoom green" href="work01.html"><img class="img-responsive" src="assets/port01.jpg" alt="" /></a> <p>APE</p> </div>
kbouwser has joined #ruby
<guest12345> this shit is pissing me of
<guest12345> been trying to fix this for days
daxroc1 has quit [Quit: Leaving.]
bradhe has joined #ruby
<dseitz> You should check the logs
<guest12345> maybe this has somthing to do with it
<guest12345> Started GET "/img/loader.gif" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 ActionController::RoutingError (No route matches [GET] "/img/loader.gif"):
<dseitz> Okay
yasushi has quit [Remote host closed the connection]
<dseitz> The asset pipeline is something you'll need to read on
<guest12345> since the images are surrounded in <a> tags maybe the routes are fucked
Kricir has joined #ruby
<dseitz> It's not as simple as providing a path, at least not in default configuration under production
<guest12345> Started GET "/assets/img/portfolio/port06.jpg" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 Served asset /img/portfolio/port06.jpg - 404 Not Found (2ms)
<guest12345> thats the problem
<guest12345> Started GET "/assets/port01.jpg" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 Served asset /port01.jpg - 404 Not Found (2ms) ActionController::RoutingError (No route matches [GET] "/assets/port01.jpg"):
<guest12345> yea this is definately the problem but how do i fix
<guest12345> the only image that works says this
<guest12345> Started GET "/assets/user.png" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 Served asset /user.png - 304 Not Modified (0ms)
<guest12345> no that one works because there is not link tag surrounding
<guest12345> maybe I need to sonfigure the routes for the other images?
<dseitz> Move the question to #rubyonrails
bradhe has quit [Ping timeout: 245 seconds]
<guest12345> lol ok
<guest12345> thats for the logs hint
<guest12345> i didn tknow they contained all that info tbh
<dseitz> Throw into a gist on github and share
<guest12345> so if somthing is broken i should check the logs?
<dseitz> Yes
brunops has joined #ruby
<dseitz> Rails, especially in development mode, will almost always tell you of a logic bug, broken route, etc.
<guest12345> cool
<guest12345> learned something new today
<dseitz> as you get more advanced, you may embed things into the HTML which is pretty cool
SiliconG has joined #ruby
<dseitz> I usually do this for all forms and stuff
<dseitz> But the asset pipeline is designed for more complex systems; it's not exactly as simple as upload and reference
<guest12345> ok then thanks a lot
anddam has left #ruby ["WeeChat 0.4.2"]
<guest12345> Ill definately be looking at your asset pipeline link and the logs tomorrow and thinking about fixing the broken routes
<dseitz> The solution for the routes is actually easy, you need to work with the asset pipeline and understand it. This is a pro and a con in the same for Rails as a web framework. It makes it excellent for sophisticated web systems. But a downer for up and go web applications. Sinatra is the tool of the trade here.
guest12345 has quit [Ping timeout: 245 seconds]
Tig has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
shedd has joined #ruby
SiliconG has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
phipes has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
nanoyak has quit [Ping timeout: 272 seconds]
Guest3765 is now known as ponbiki
browndawg has joined #ruby
danshultz has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
mocfive has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 260 seconds]
banisterone has joined #ruby
kbouwser has joined #ruby
mocfive has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
daxroc has joined #ruby
sassamo_ has joined #ruby
rippa has joined #ruby
stkowski has joined #ruby
timonv has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
timonv has quit [Read error: Operation timed out]
sky_diver has quit [Ping timeout: 264 seconds]
nitish has quit [Quit: Bye Bye...]
aryaching has quit [Ping timeout: 252 seconds]
Asher has quit [Ping timeout: 252 seconds]
Amart41 has joined #ruby
sassamo_ has quit [Remote host closed the connection]
Steve445 has quit [Quit: Steve445]
sassamo has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
Amart41 has quit [Ping timeout: 253 seconds]
v10energy has quit [Read error: Operation timed out]
shedd has joined #ruby
w1xz has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
iamdoo2 has joined #ruby
brunops has quit [Quit: leaving]
bradhe has joined #ruby
phipes has joined #ruby
iamdoo2 has quit [Ping timeout: 248 seconds]
banisterone has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 248 seconds]
p8952 has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
SiliconG has joined #ruby
phansch has joined #ruby
Asher has joined #ruby
vlad_starkov has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaut has joined #ruby
arietis has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
yasushi has joined #ruby
adamholt has joined #ruby
styped has joined #ruby
styped has quit [Max SendQ exceeded]
NemesisD has quit [Ping timeout: 264 seconds]
Jdubs has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 265 seconds]
SiliconG has quit [Ping timeout: 252 seconds]
shedd has joined #ruby
daxroc has quit [Ping timeout: 252 seconds]
Jdubs has joined #ruby
yasushi has quit [Ping timeout: 264 seconds]
nucc has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
gja has quit [Quit: This computer has gone to sleep]
stkowski has quit [Quit: stkowski]
shedd has quit [Ping timeout: 248 seconds]
nblue has quit [Quit: No windows for this server]
yarou has quit [Remote host closed the connection]
<shevy> pontiki and ponbiki !
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
danshultz has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
banisterone has joined #ruby
ktosiek_ has joined #ruby
Tig has quit [Ping timeout: 252 seconds]
ktosiek has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
TDJACR has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
fgo has joined #ruby
p8952 has joined #ruby
cj3kim has joined #ruby
TDJACR has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
SiliconG has joined #ruby
daxroc has joined #ruby
tongcx has quit [Quit: Lost terminal]
bricker`LA has quit [Ping timeout: 252 seconds]
shedd has joined #ruby
claymore has joined #ruby
vlad_starkov has joined #ruby
bradhe has joined #ruby
SiliconG has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
OdNairy has quit [Ping timeout: 245 seconds]
<pontiki> wat?
shedd has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
<pontiki> well that's bloody annoying :(
<pontiki> 1
vlad_starkov has quit [Ping timeout: 245 seconds]
iamdoo2 has joined #ruby
Cache_Money has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
iamdoo2 has quit [Ping timeout: 252 seconds]
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
synergy__ has joined #ruby
mando has joined #ruby
<shevy> hehe
<shevy> the clone coders
<shevy> Hanmac are you still sleeping
synergy_ has quit [Ping timeout: 264 seconds]
claymore has quit [Ping timeout: 252 seconds]
banisterone has quit [Ping timeout: 265 seconds]
mando has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
blackmesa has joined #ruby
claymore has joined #ruby
w4pm has joined #ruby
aniM has joined #ruby
nism has joined #ruby
banisterone has joined #ruby
gja has joined #ruby
nism has quit [Client Quit]
w4pm has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
SiliconG has joined #ruby
shedd has joined #ruby
nanoyak has joined #ruby
poulson has joined #ruby
nucc has quit [Quit: This computer has gone to sleep]
drumusician has joined #ruby
kewubenduben has quit [Ping timeout: 260 seconds]
srji has joined #ruby
davy_ has joined #ruby
razibog has joined #ruby
Megtastique has joined #ruby
daxroc has quit [Ping timeout: 245 seconds]
shedd has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
nanoyak has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
SiliconG has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
tt1187 has joined #ruby
tyl has quit [Ping timeout: 260 seconds]
aniM has quit [Ping timeout: 272 seconds]
gja has joined #ruby
tyl has joined #ruby
tyl has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
shime has joined #ruby
Notte has joined #ruby
Megtastique has quit []
visof has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
kleinerdrache has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
yfeldblum has joined #ruby
davy_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
daxroc has joined #ruby
shedd has joined #ruby
notsarah- has joined #ruby
<notsarah-> hey, is anyone around?
banisterone has quit [Ping timeout: 264 seconds]
daxroc has quit [Read error: Connection reset by peer]
daxroc has joined #ruby
RoryHughes has joined #ruby
Lewix has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
banister has joined #ruby
iamdoo2 has joined #ruby
LadyRainicorn has joined #ruby
<pontiki> sorta
iamdoo2 has quit [Ping timeout: 245 seconds]
phipes has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy> we idle to power here
standyro2 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
<popl> notsarah-: You can just ask your question. If someone can answer it they probably will.
cow_ has joined #ruby
cow_ has quit [Client Quit]
reset has joined #ruby
<notsarah-> it's cool, I think I solved it myself :)
SiliconG has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
yasushi has joined #ruby
iMe has quit [Ping timeout: 260 seconds]
jackneill has joined #ruby
BrixSat has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
thesheff17 has joined #ruby
carraroj has joined #ruby
carraroj has quit [Client Quit]
ewnd9 has quit [Read error: Operation timed out]
carraroj has joined #ruby
jimeh has quit [Quit: ZNC - http://znc.in]
yasushi has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
jimeh has joined #ruby
netQT has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
SiliconG has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
shedd has joined #ruby
daxroc has quit [Ping timeout: 252 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
roolo has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
Cache_Money has quit [Quit: Cache_Money]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Read error: Operation timed out]
mojjojo has joined #ruby
camilasan has joined #ruby
gja has joined #ruby
OdNairy has joined #ruby
poulson has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
atmosx has joined #ruby
netQT has quit [Remote host closed the connection]
gja has quit [Client Quit]
hfp`away has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
hfp`away has joined #ruby
poulson has joined #ruby
reset has quit [Quit: Leaving...]
predator117 has quit [Remote host closed the connection]
RoryHughes has quit []
danshultz has quit [Ping timeout: 240 seconds]
eka has joined #ruby
bradhe has joined #ruby
claymore has joined #ruby
bradhe has quit [Read error: Operation timed out]
daxroc has joined #ruby
carraroj has quit [Ping timeout: 252 seconds]
OdNairy has quit [Ping timeout: 265 seconds]
OdNairy has joined #ruby
ghanima has quit [Ping timeout: 272 seconds]
ndrei has quit [Read error: Operation timed out]
MrZYX|off is now known as MrZYX
shedd has joined #ruby
pen has quit [Ping timeout: 240 seconds]
pen has joined #ruby
DrCode has quit [Remote host closed the connection]
sepp2k has joined #ruby
ndrei has joined #ruby
iamdoo2 has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
wael has joined #ruby
wael has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamdoo2 has quit [Ping timeout: 264 seconds]
wael has joined #ruby
<wael> Hello !
shedd has quit [Ping timeout: 264 seconds]
RoxasShadowRS has joined #ruby
i8igmac has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
alex88 has joined #ruby
vlad_starkov has joined #ruby
<LadyRainicorn> Hi!
VTLob has joined #ruby
ktun has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
razibog has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
SiliconG has joined #ruby
dik_dak has quit [Quit: Leaving]
sparrovv has joined #ruby
wael has left #ruby [#ruby]
MindfulMonk has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Remote host closed the connection]
Al_ has joined #ruby
Al_ is now known as Guest47286
ww26 has quit [Read error: Operation timed out]
RoryHughes has joined #ruby
RoryHugh_ has joined #ruby
relix has joined #ruby
timonv has joined #ruby
Soda has joined #ruby
SiliconG has quit [Ping timeout: 260 seconds]
wael has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
cj3kim has joined #ruby
relix has quit [Client Quit]
sparrovv has quit [Remote host closed the connection]
jonno11 has joined #ruby
nanoyak has joined #ruby
RoryHughes has quit [Ping timeout: 272 seconds]
max96at has joined #ruby
Jdubs has quit []
mercwithamouth has joined #ruby
netQT has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Chioque has joined #ruby
rootshift has joined #ruby
ewnd9 has joined #ruby
DouweM has joined #ruby
nanoyak has quit [Ping timeout: 265 seconds]
shedd has joined #ruby
abdulsattar has joined #ruby
Davey has joined #ruby
timonv has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
Davey has quit [Client Quit]
danshultz has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
_5kg has quit [Ping timeout: 248 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ww26 has joined #ruby
rootshift has joined #ruby
pen has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 252 seconds]
TripleDE1 has joined #ruby
TripleDE1 is now known as TD_home
bradhe has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
hector has joined #ruby
shime has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
hector has quit []
abdulsattar has quit [Ping timeout: 264 seconds]
RoryHugh_ has quit []
shime has joined #ruby
fixl has quit [Remote host closed the connection]
RoryHughes has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
cj3kim has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
Chioque has quit [Quit: WeeChat 0.4.2]
sepp2k has quit [Ping timeout: 260 seconds]
jtdowney has joined #ruby
mojjojo has quit [Quit: mojjojo]
srji has quit [Quit: leaving]
prc has quit [Ping timeout: 248 seconds]
adamholt has quit [Ping timeout: 272 seconds]
jtdowney has quit [Client Quit]
OdNairy has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
srji has joined #ruby
iamdoo2 has joined #ruby
adamholt has joined #ruby
RoryHughes has quit []
ndrei has joined #ruby
dangerousdave has joined #ruby
shedd has joined #ruby
altin has joined #ruby
thomasxie has quit [Quit: Leaving.]
iamdoo2 has quit [Ping timeout: 252 seconds]
adamholt has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
srji has quit [Quit: leaving]
mando has joined #ruby
kewubenduben has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
Rudde has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<Rudde> Hello guys, after I've installed ruby in Windows, how do I get ruby to be a global command so I don't have to go into bin and write ruby.exe to use it?
workmad3 has joined #ruby
<MrZYX> iirc windows has a PATH too
mhenrixon has joined #ruby
<lewellyn> it even has a gui to edit it.
<Rudde> where do I find it?
<MrZYX> google
rootshift has joined #ruby
mando has quit [Ping timeout: 272 seconds]
srji has joined #ruby
<lewellyn> system properties
mehlah has joined #ruby
braincra- has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
braincra- is now known as braincrash
<Rudde> nice! :D
<Rudde> That was alo a nice little trick
<Rudde> It it possible to change it with a script?
SiliconG has joined #ruby
top4o has joined #ruby
abdulsattar has joined #ruby
mhenrixon has quit [Ping timeout: 264 seconds]
<MrZYX> you won't find too many windows users in here, so general windows questions are probably better asked elsewhere ;)
spider-mario has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
<Rudde> Pfftt, I know you all boot up good ol' windows every time you need to play a game :P
<MrZYX> uhm, nope
<MrZYX> I don't play games not running on windows
<MrZYX> *linux m(
<LadyRainicorn> haha
<MrZYX> still "too early" ;P
<Rudde> :>
<Rudde> Sure, sure MrZYX
popl has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
* LadyRainicorn is not a game person.
<LadyRainicorn> I do like 7x7 on Android though.
<LadyRainicorn> That one is kind of fun.
<MrZYX> no, seriously, since the humble bundles and since valve announced steamos there's more than enough, for the casual gamers at least
<LadyRainicorn> I think that's the only game I actually have installed anywhere.
Notte has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
RoryHughes has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
SiliconG has quit [Ping timeout: 272 seconds]
nism has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
RoryHughes has quit [Client Quit]
<Rudde> And how would I use gem in windows?
<MrZYX> hm, gem install doesn't work?
obs has joined #ruby
RoryHughes has joined #ruby
<Rudde> Only had to make a path for that to :>
<Rudde> But I try to build a tamplte with Gumby Framework, will this template work outside ruby on rails?
<Rudde> Like on a PHP site or something?
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
notsarah- has left #ruby ["Leaving"]
obs has quit [Remote host closed the connection]
thomasxie has joined #ruby
obs has joined #ruby
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
bradhe has joined #ruby
jokke has quit [Ping timeout: 272 seconds]
Butcho has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
shedd has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Fyyr13 has joined #ruby
tyl has joined #ruby
sski has quit [Remote host closed the connection]
yasushi has joined #ruby
sski has joined #ruby
Advocation has joined #ruby
srji has quit [Quit: leaving]
danshultz has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 265 seconds]
asmodlol has joined #ruby
gja has quit [Client Quit]
wael has quit [Quit: wael]
shedd has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
sski has quit [Ping timeout: 252 seconds]
jokke has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 0.4.2]
gja has joined #ruby
yasushi has quit [Remote host closed the connection]
gja has quit [Client Quit]
Guest47286 has quit [Quit: Guest47286]
aniM has joined #ruby
krz has joined #ruby
sassamo has quit [Remote host closed the connection]
sparrovv has joined #ruby
vlad_sta_ has joined #ruby
sassamo has joined #ruby
xcv has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_st__ has joined #ruby
vlad_st__ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
krz has joined #ruby
alex88 has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 245 seconds]
[krisbulman] is now known as krisbulman
standyro2 has quit [Ping timeout: 264 seconds]
krisbulman is now known as [krisbulman]
Fyyr13 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Fyyr13 has joined #ruby
mavcunha has quit [Ping timeout: 245 seconds]
nucc has joined #ruby
shedd has joined #ruby
rootshift has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
Notte has joined #ruby
pu22l3r_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Read error: Operation timed out]
shedd has quit [Ping timeout: 245 seconds]
thomasxie has quit [Quit: Leaving.]
ndrei has joined #ruby
shadoi has joined #ruby
griffindy has joined #ruby
SiliconG has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RoryHughes has quit []
tyl has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
w4pm has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ktun_ has joined #ruby
ktun has quit [Read error: Connection reset by peer]
tyl has quit [Client Quit]
sski has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
mavcunha has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
aniM has quit [Ping timeout: 240 seconds]
w4pm has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
SiliconG has quit [Ping timeout: 240 seconds]
prc has joined #ruby
RoryHughes has joined #ruby
prc has quit [Remote host closed the connection]
rootshift has joined #ruby
bradhe has joined #ruby
standyro2 has joined #ruby
nanoyak has joined #ruby
RoryHughes has quit [Client Quit]
heftig has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
nanoyak has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
sparrovv has quit [Remote host closed the connection]
standyro2 has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
postmodern has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
TaxmanBD has joined #ruby
shedd has joined #ruby
nfk has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
wael has joined #ruby
obs has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 272 seconds]
sree has joined #ruby
johnmilton has joined #ruby
sree has quit [Client Quit]
LadyRainicorn has quit [Quit: Leaving]
LadyRainicorn has joined #ruby
mavcunha has quit [Ping timeout: 252 seconds]
sparrovv has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
jzinedine has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
aniM has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cid404 has joined #ruby
yfeldblum has joined #ruby
drumusician has joined #ruby
yasushi has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.2]
yfeldblum has quit [Ping timeout: 245 seconds]
[krisbulman] is now known as krisbulman
phinfonet has joined #ruby
netQT has quit [Read error: Connection reset by peer]
TaxmanBD has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
Advocation has quit [Quit: Advocation]
yasushi has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
iamdoo2 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rootshift has joined #ruby
iamdoo2 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
iamdoo2 has joined #ruby
grieg has joined #ruby
<grieg> hello, what is the zlib version for ruby 2.1.0? (i ran into trouble installing rails)
<Hanmac> grieg: did you try #rubyonrails ?
shedd has joined #ruby
<centrx> gem install rails
iamdoo2 has quit [Ping timeout: 252 seconds]
octoberry has quit [Ping timeout: 248 seconds]
<Hanmac> grieg: ruby does not have zlib itself it links against the libz on your system
shaunbaker has joined #ruby
nism has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
<grieg> Hanmac, what should i dp then? http://pastebin.com/mqsCFQsw
<grieg> *do
<Hanmac> grieg: how did you install ruby?
<grieg> compiled it. os is debian sid
mavcunha has joined #ruby
<Hanmac> grieg: you did compile it without all dependies
SiliconG has joined #ruby
mojjojo has joined #ruby
<Hanmac> grieg: do "apt-get build-dep ruby2.0-dev" and then build ruby again
<grieg> Hanmac, thank you man. i ll try it
aryaching_ has joined #ruby
PanPan has joined #ruby
PanPan has quit [Remote host closed the connection]
<shevy> what an arcane command
<shevy> grieg you were lucky you had Hanmac ;)
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<grieg> yeah i guess ) i came with offtopic )
danshultz has joined #ruby
bradhe has joined #ruby
arietis has joined #ruby
gja has quit [Client Quit]
dorei has joined #ruby
<shevy> does the new ruby work?
krisbulman is now known as [krisbulman]
whowantstolivefo has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
SiliconG has quit [Ping timeout: 264 seconds]
danshultz has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 264 seconds]
<grieg> nope. same error
vlad_starkov has quit [Ping timeout: 264 seconds]
<Hanmac> grieg: did you run configure again in your ruby source?
<grieg> i did
jtdowney has joined #ruby
<Hanmac> show me the source
<Hanmac> i mean the output of configure
tyl has joined #ruby
<grieg> please wait then..
tyl has quit [Client Quit]
drumusician has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
drumusician has joined #ruby
ndrei has joined #ruby
<shevy> grieg debian crippled zlib
<shevy> the zlib source is at http://www.zlib.net/zlib-1.2.8.tar.gz - you need to uncripple the debian zlib package
<shevy> you dont have to recompile whole of ruby if you did btw, you can go into the directory ext/zlib of the ruby extracted tarball and install just in that dir
ktosiek_ is now known as ktosiek
wiku5_ has quit [Ping timeout: 272 seconds]
<grieg> Hanmac here is the output http://pastebin.com/UNEW4vAm. shevy won't it break my debian?
Tamae has quit [Ping timeout: 272 seconds]
assurbanipal has joined #ruby
<shevy> grieg why would it break it? you just install the headers
<shevy> but if you are afraid of breaking why do you compile anything? :>
<grieg> )))
<grieg> noob i am
<shevy> yeah then don't compile! live in the debian cage ;)
<Hanmac> hm :/
<shevy> grieg that paste is useless
<shevy> you can't see what it will compile and what not
<shevy> grieg go into ext/zlib
jzinedine has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> inside there do
<shevy> ruby extconf.rb;make;make install
<shevy> but debian is annoying, you may have to need readline and ncurses too
shedd has joined #ruby
aniM has quit [Ping timeout: 252 seconds]
<centrx> grieg, Just install the Debian package, probably zlib1g-dev
tyl has joined #ruby
vlad_starkov has joined #ruby
falood has joined #ruby
shredding has joined #ruby
predator117 has joined #ruby
ctp_ has joined #ruby
IC84 has joined #ruby
shedd has quit [Ping timeout: 265 seconds]
whowantstolivefo has quit [Remote host closed the connection]
jtdowney has quit []
ctp has quit [Ping timeout: 260 seconds]
whowantstolivefo has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
ctp_ has quit [Ping timeout: 272 seconds]
VeinMelted has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
srji has joined #ruby
aniM has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browndawg has quit [Quit: Leaving.]
guest12345 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
VeinMelted has quit [Quit: Lingo - http://www.lingoirc.com]
ndrei has joined #ruby
predator117 has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
jtdowney has joined #ruby
danijoo has joined #ruby
yfeldblum has joined #ruby
Astralum has joined #ruby
nism has joined #ruby
rootshift has joined #ruby
RoryHughes has joined #ruby
Soda has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
thesheff17 has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
shredding has quit [Quit: shredding]
RoryHughes has quit [Client Quit]
yfeldblum has quit [Ping timeout: 245 seconds]
grs has quit [Ping timeout: 272 seconds]
whowantstolivef3 has joined #ruby
tyl_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
centrx has quit [Quit: Leaving]
predator117 has joined #ruby
havenwood has joined #ruby
tyl_ has quit [Client Quit]
abdulsattar has quit [Quit: leaving]
ndrei has quit [Read error: Operation timed out]
whowantstolivefo has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
BrindleFly has joined #ruby
Amart41 has joined #ruby
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
RoryHughes has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
iamdoo2 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 252 seconds]
RoryHughes has quit [Client Quit]
centrx has joined #ruby
wael has quit [Ping timeout: 252 seconds]
IceyEC has quit [Quit: IceyEC]
kbouwser has joined #ruby
whowantstolivef3 has quit [Read error: Connection reset by peer]
kbouwser has quit [Client Quit]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
whowantstolivef3 has joined #ruby
cjsarette has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
sungai_keruh has joined #ruby
Amart41 has quit [Ping timeout: 245 seconds]
mando has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
shedd has joined #ruby
iamdoo2 has quit [Ping timeout: 245 seconds]
<sungai_keruh> hi
nism has quit [Quit: Leaving]
IC84 has left #ruby ["Leaving"]
kbouwser has joined #ruby
<centrx> Ahoy
sparrovv has joined #ruby
kenneth has quit [Quit: kenneth]
wtfitsme has joined #ruby
<shevy> grieg any luck this time?
Brolen has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
kevinykchan has joined #ruby
mando has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
<grieg> i guess, shevy: ruby extconf.rb;make;make install is doing the job. 30 gems seem to be installed including rails-4.0.2 and now it is installing ri documentation, tho is doing it quite slowly so i thought i ll write to you when it is done
<shevy> \o/
SiliconG has joined #ruby
tjsousa has joined #ruby
bradhe has joined #ruby
<grieg> seems to be quite a collection of volumes, that ri documentation.. half an hour already
aryaching has joined #ruby
browndawg has joined #ruby
dgfdgf has quit [Read error: Connection reset by peer]
<shevy> ri sucks
w4pm has joined #ruby
Vivekananda has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
`MArceLL` has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
danshultz has joined #ruby
<pontiki> --no-document is your frenz
w4pm has quit [Ping timeout: 264 seconds]
SiliconG has quit [Ping timeout: 240 seconds]
johnmilton has quit [Ping timeout: 252 seconds]
danshultz has quit [Ping timeout: 265 seconds]
LiohAu has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
nanoyak has joined #ruby
agjacome has joined #ruby
AlSquirrel has joined #ruby
prc has joined #ruby
banister has joined #ruby
iMe has quit [Quit: Bye Bye]
xcv has quit [Remote host closed the connection]
nanoyak has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
Tig has joined #ruby
guest12345 has quit [Ping timeout: 245 seconds]
altin has quit [Ping timeout: 240 seconds]
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has joined #ruby
shime has quit [Ping timeout: 252 seconds]
shedd has joined #ruby
tjsousa has quit [Quit: Computer has gone to sleep.]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjsousa has joined #ruby
wallerdev has joined #ruby
IceDragon has joined #ruby
johnmilton has joined #ruby
srji has quit [Quit: Lost terminal]
predator117 has joined #ruby
tyl has joined #ruby
cjsarette has joined #ruby
aniM has quit [Ping timeout: 260 seconds]
shedd has quit [Ping timeout: 245 seconds]
jtdowney has quit []
tjsousa has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 248 seconds]
ccapndave has joined #ruby
mtr_ has joined #ruby
mtr_ has quit [Remote host closed the connection]
bean has joined #ruby
ndrei has joined #ruby
wallerdev has quit [Quit: wallerdev]
v10energy has joined #ruby
bean has quit [Client Quit]
ganesh has joined #ruby
ganesh is now known as Guest33715
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
predator117 has quit [Remote host closed the connection]
predator117 has joined #ruby
Advocation has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
LadyRainicorn has quit [Ping timeout: 272 seconds]
<sungai_keruh> hi all
yfeldblum has joined #ruby
OdNairy has joined #ruby
Brolen has quit [Remote host closed the connection]
guardianx has joined #ruby
Brolen has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
aniM has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
whowantstolivef3 has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Spooner has joined #ruby
Brolen has quit [Ping timeout: 272 seconds]
Fyyr13 has quit [Quit: Leaving...]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
assurbanipal has quit [Ping timeout: 252 seconds]
xlogic has joined #ruby
francisfish has joined #ruby
Spooner has quit [Quit: Bye]
whowantstolivef3 has joined #ruby
seekwill has joined #ruby
francisfish has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
senayar has joined #ruby
Spooner has joined #ruby
poulson has quit [Remote host closed the connection]
kbouwser has joined #ruby
<seekwill> Hi. I'm fetching rows out of a database. I'd like to make a hash, with the date (from the db) as the key, and the value being an array of the rows in that date. I'm not sure how to make that array: http://pastie.org/private/fj9axjh7crs78oaeejsquw
DrCode has joined #ruby
<grieg> oh finally it has finished! thank you all for your help!
<centrx> seekwill, group_by
daxroc has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
falood has quit [Remote host closed the connection]
bradhe has joined #ruby
<seekwill> centrx: Awesome, thanks!
shedd has joined #ruby
iamdoo2 has quit [Ping timeout: 245 seconds]
whowantstolivef3 has quit [Remote host closed the connection]
ccapndave has left #ruby [#ruby]
<Spooner> That would store the whole record, not just the two fields you want,
whowantstolivef3 has joined #ruby
<Spooner> Seekwill. That might be fine though.
<seekwill> I'm only selecting three fields (date, id, activity), where date is the key and (id,activity) would be the value
<seekwill> I'm new to ruby, so still trying to figure this out :)
ctp has joined #ruby
<pontiki> much can be made of reading through the Enumerable module
<pontiki> it has all sorts of fun things
<seekwill> Yep :) Best way to learn
bradhe has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 264 seconds]
mmcclimon has joined #ruby
SiliconG has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
knigitz has joined #ruby
mmcclimon has quit [Client Quit]
predator117 has joined #ruby
assurbanipal has joined #ruby
mmcclimon has joined #ruby
francisfish has joined #ruby
dwingo has quit [Ping timeout: 240 seconds]
ckinni has joined #ruby
angusigu1ss has joined #ruby
visof has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 240 seconds]
kbouwser has quit [Quit: Computer has gone to sleep.]
xcv has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
altin has joined #ruby
rootshift has joined #ruby
altin has quit [Changing host]
altin has joined #ruby
Kricir has joined #ruby
SiliconG has quit [Ping timeout: 252 seconds]
leoxagy12 has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
<leoxagy12> Hi
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmcclimon has quit [Quit: mmcclimon]
<centrx> Ahoy
<shevy> Die
<shevy> I mean
<shevy> Hi
aryaching_ has joined #ruby
<roolo> shevy: User roolo like this :)
Spami has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby
JaTochNietDan has quit [Quit: Right.]
carraroj has joined #ruby
shaunbaker has quit []
aryaching has quit [Ping timeout: 260 seconds]
<seekwill> So I'm testing this out, but I'm not sure how to evaluate the "first" one to be the hash key
razibog has joined #ruby
<centrx> row.first
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
SCommette has joined #ruby
<seekwill> ah! It would be a string comparison, right?
mhenrixon has joined #ruby
mhenrixon has quit [Remote host closed the connection]
framling has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
xlogic has quit [Remote host closed the connection]
wallerdev has joined #ruby
xlogic has joined #ruby
kewubenduben has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 272 seconds]
<seekwill> I think that worked! Thanks
xlogic has left #ruby [#ruby]
e^0 has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
Neomex has joined #ruby
pu22l3r_ has joined #ruby
whowantstolivef3 has joined #ruby
razibog has quit [Ping timeout: 240 seconds]
Neomex has quit [Client Quit]
randomnick_ has joined #ruby
SCommette has quit [Quit: SCommette]
predator117 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
shedd has joined #ruby
<seekwill> Ok, that didn't work actually. So my table "duplicates" the date field, so I'll have multiple Jan 25 and Jan 26. By making that the hash key, I was hoping to get rows for each date as an array
razibog has joined #ruby
kraljev5 has joined #ruby
<pontiki> seekwill: helps if you show us code :)
<kraljev5> How to match whole string with regex?
<kraljev5> the regex is user supplied
<kraljev5> is #to_s, preped \A, append \z, then cast back
<kraljev5> the only option?
ohwhoa has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
<seekwill> http://pastie.org/private/3eiqdyr1b42qbmbnxmkuma# (sorry about the typo on line 10 )
predator117 has quit [Ping timeout: 252 seconds]
<Spooner> Kraljev: yes, since a regex is compiled (it isn't just a string)
<seekwill> .group_by seems to create a new hash, but I need a way to add to an existing one (with the same key)
Baluse has quit [Ping timeout: 248 seconds]
Baluse has joined #ruby
<shevy> seekwill can't you just use .update or .merge on your hash
<Spooner> You can use that code, but you need to default the Hash.
<Spooner> Since you can't push onto nil, which is the default value if you don't specify.
<seekwill> oh that's what that error meant :)
sassamo has joined #ruby
<centrx> seekwill, You're not even using group_by...
<seekwill> centrx: That was my original code :( sorry
<seekwill> "original intention"
m104 has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
felixjet_ has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
<shevy> hehe
<pontiki> seekwill: is your result set actually a CSV like that?
<lxsameer> hey guys, what's wrong with the server code in this snippet ? http://dpaste.com/1570501/ (server runs but not server any request)
<seekwill> pontiki: No, that's just the way I typed it up :)
<pontiki> oh, ok
Emmanuel_Chanel has quit [Quit: Leaving]
grs has joined #ruby
yfeldblum has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
Baluse has quit [Read error: Connection reset by peer]
Baluse has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
<centrx> Fascinating
bbloom has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
phansch has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
kraljev5 has quit [Read error: Connection reset by peer]
whowantstolivef3 has joined #ruby
<pontiki> seekwill: is this more like what you want? http://pastie.org/8669321
shime has joined #ruby
<MrZYX> lxsameer: not serve any request == conn refused, 404, 500, ... ?
kraljev5 has joined #ruby
NemesisD has joined #ruby
gasbakid_ has joined #ruby
phansch has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<centrx> Quack quack
xcv has joined #ruby
<kraljev5> Spooner: I was thinking something along the line of this:
<kraljev5> "dasdasd".match regex, whole: true
<seekwill> pontiki: Oh, that's how you use .group_by! hah. I thought if I did that =, it would overwrite the existing contents
<seekwill> centrx: :)
<pontiki> seekwill: you mean at line 20 in my example?
<seekwill> Yes
<pontiki> line 9 of the paste
bradhe has joined #ruby
gasbakid_ has quit [Client Quit]
<pontiki> .group_by is returning a new object, not replacing the existing
<pontiki> you could replace it
<seekwill> I thought that what the = would do... but maybe that's a PHPism...?
<MrZYX> = changes the reference a variable points to, not the object it currently holds. iirc that's not different in php
Emmanuel_Chanel has joined #ruby
iamdoo2 has joined #ruby
<Spooner> Kraljev5: r.match(s).groups[0] == s would do it I guess?
<kraljev5> this is a fine idea, thanks
sassamo has quit [Remote host closed the connection]
<Hanmac> what about that? "dasdasd".match /\A#{regex}\Z/
<Hanmac> @ kraljev5 & Spooner
sassamo has joined #ruby
aniM has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 272 seconds]
<kraljev5> yes, but that is slow, if you account for the compilation time
<kraljev5> and Spooner
<kraljev5> instead of string matching, I could just check begin and end positon of a match
yarou has joined #ruby
<Spooner> I really doubt the difference is meaningful.
<kraljev5> this way, I don't need to binary compare the two
<havenwood> oh nanoseconds
<Spooner> But I think Hanmac's is better code.
<kraljev5> nanoseconds + loops :)
<Hanmac> "compilation time" ? i think you are speaking the wrong language
<seekwill> pontiki: centrx: [I think] That works! Thank you so much!
<havenwood> premature optimization is silly
<kraljev5> the regex is compiled, no?
shedd has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
sassamo_ has joined #ruby
<kraljev5> By that I mean class instatiation takes a lot of time
<kraljev5> compared to an actual match
<centrx> kraljev5, It is extremely fast. Not sure what you are doing but if "user input" is involved, probably nothing to worry about it. Write the clearest maintainable code
mary5030 has quit [Remote host closed the connection]
sassamo has quit [Read error: No route to host]
roolo has quit [Quit: Leaving...]
<Spooner> Yeah but that doesn't mean it takes a meaningful amount of time (and may be faster than the string compare anyway).
<kraljev5> cantrix, that is the point I agree with
<havenwood> kraljev5: stop thinking about how fast things are until them being slow is noticeable or a problem
<DouweM> havenwood: +1
<Spooner> +10
sparrovv has quit [Remote host closed the connection]
<shevy> kraljev5 regexes are slower. use include? if you can
<kraljev5> centrix, string compare --> 2x integer compare
<lxsameer> MrZYX: it did not event respond,
<MrZYX> lxsameer: timeout, conn refused, ... ?
<MrZYX> lxsameer: don't let us guess the actual error you have
<kraljev5> because you can compare just the boundaries, if start == 0 && end == string.size
<shevy> MrZYX no let us guess!
<shevy> it is more fun that way
<shevy> lxsameer have you turned on the computer
<MrZYX> shevy: go ahead
rubyracer has joined #ruby
<lxsameer> MrZYX: there is not error, no log no error nothing
<lxsameer> shevy: :)) good one
<shevy> yeah. ^^^ he forgot to turn the computer on :)
SiliconG has joined #ruby
<shevy> no error no log HE IS NOT EVEN RUNNING RUBY!!!
<MrZYX> lxsameer: I pretty sure your client gives you something
<shevy> he gives him only headache
<MrZYX> and be it empty response
shedd has quit [Ping timeout: 248 seconds]
<shevy> lxsameer what does your client give you?
<lxsameer> MrZYX: let me paste the output
whowantstolivef3 has quit [Ping timeout: 264 seconds]
<shevy> faster lxsameer! you are slow like a snail!
Guest33715 has quit [Ping timeout: 265 seconds]
<lxsameer> shevy: :))
<shevy> I am the channel cheerleader
<lxsameer> MrZYX: http://dpaste.com/1570517/ i send request to localhost:6000 but as you can see there is no action
<lxsameer> shevy: :)) do you have an cheerleader outfit ?
drumusician has joined #ruby
<shevy> real cheerleaders dont need fancy clothes
<DouweM> lxsameer: what does the client/browser say?
<shevy> just go out there and DO cheer people up
incade has joined #ruby
<lxsameer> DouweM: This webpage is not available
sparrovv has joined #ruby
Solnse1 has joined #ruby
ctp_ has joined #ruby
ctp_ has quit [Client Quit]
nari has quit [Ping timeout: 252 seconds]
<MrZYX> lxsameer: try curl
Solnse1 is now known as Solnse
<MrZYX> what does that say
<lxsameer> MrZYX: let me try that
ndrei has joined #ruby
Xaitec has joined #ruby
whowantstolivef3 has joined #ruby
predator117 has joined #ruby
<lxsameer> MrZYX: hhmmm now i get some output Invalid request: Invalid HTTP format, parsing fails.
<MrZYX> try curl -V
<MrZYX> er -v
<shevy> invalid!
ctp has quit [Ping timeout: 252 seconds]
daxroc has joined #ruby
daxroc has quit [Changing host]
daxroc has joined #ruby
daxroc1 has joined #ruby
<lxsameer> MrZYX: thanks buddy i try to debug this , i don't bother you buddy
BrindleFly has quit [Quit: BrindleFly]
brain_shim has quit [Read error: Operation timed out]
SiliconG has quit [Ping timeout: 272 seconds]
vim_shim_ has quit [Ping timeout: 272 seconds]
iamdoo2 has joined #ruby
axl_ has joined #ruby
mikepack has joined #ruby
DouweM has quit [Quit: Leaving...]
predator117 has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
daxroc has quit [Ping timeout: 245 seconds]
pushpak has joined #ruby
guardianx has quit [Remote host closed the connection]
predator117 has joined #ruby
Libresavoir has joined #ruby
iamdoo2 has quit [Ping timeout: 260 seconds]
Libresavoir has left #ruby ["Verlassend"]
apeiros has quit [Remote host closed the connection]
whowantstolivef3 has quit [Ping timeout: 272 seconds]
banister has joined #ruby
<lxsameer> MrZYX: it seems that the webserver is not what a browser except to be, browsers cancel the request because of that
camilasan has quit [Quit: Konversation terminated!]
<MrZYX> try comparing the curl -v output to the one of a working server then ;)
camilasan has joined #ruby
<lxsameer> ok thanks
obs has joined #ruby
nari has joined #ruby
whowantstolivef3 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
therod has joined #ruby
nisstyre has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
blackmesa has joined #ruby
altin has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
p8952 has quit [Quit: Leaving]
whowantstolivef3 has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
shedd has joined #ruby
nari has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
sparrovv has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kate_r has joined #ruby
whowantstolivef3 has joined #ruby
ndrei has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
ephemerian has joined #ruby
Neomex has joined #ruby
vlad_starkov has joined #ruby
einarj has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
einarj has joined #ruby
Baluse has quit [Ping timeout: 256 seconds]
ryantm has quit [Read error: Operation timed out]
aef has quit [Remote host closed the connection]
Baluse has joined #ruby
whowantstolivef2 has joined #ruby
Spooner has quit [Quit: Bye]
danshultz has joined #ruby
fschuindt has joined #ruby
gregoriokusowski has joined #ruby
sparrovv has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
whowantstolivef3 has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
Opettaja has joined #ruby
axl_ has quit [Quit: axl_]
Hobogrammer has joined #ruby
yfeldblum has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
Hobogrammer has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
SiliconG has joined #ruby
Hobogrammer has joined #ruby
tt1187 has quit [Ping timeout: 252 seconds]
nari has joined #ruby
echevemaster has joined #ruby
yfeldblum has quit [Read error: Operation timed out]
phinfone_ has joined #ruby
Neomex has quit [Quit: Neomex]
bradhe has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
phinfonet has quit [Ping timeout: 248 seconds]
garybrett has joined #ruby
vlad_starkov has joined #ruby
LaPetiteFromage has joined #ruby
garybrett has quit [Client Quit]
Lewix has joined #ruby
wtfitsme has quit [Ping timeout: 240 seconds]
sparrovv has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
ktun_ has quit [Read error: Connection reset by peer]
ktun has joined #ruby
aniM has joined #ruby
sungai_keruh has quit [Quit: Leaving]
kraljev5 has left #ruby [#ruby]
whowantstolivef2 has quit [Ping timeout: 265 seconds]
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
shedd has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
nathancahill has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
nari has quit [Ping timeout: 252 seconds]
QKO has quit [Ping timeout: 272 seconds]
sree has joined #ruby
QKO has joined #ruby
kenneth has joined #ruby
baggypants has joined #ruby
wtfitsme has joined #ruby
sassamo_ has quit [Remote host closed the connection]
sassamo has joined #ruby
mary5030 has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
axl_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
predator117 has joined #ruby
sassamo has quit [Read error: No route to host]
sassamo_ has joined #ruby
Advocation has quit [Quit: Advocation]
gregf has quit [Quit: WeeChat 0.4.2]
Brolen has joined #ruby
sree has quit []
LaPetiteFromage has quit [Quit: LaPetiteFromage]
mary5030 has quit [Ping timeout: 252 seconds]
Notte has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 260 seconds]
daxroc1 has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
zoscoy has joined #ruby
Barrin6 has joined #ruby
shedd has joined #ruby
deens has joined #ruby
Brolen has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
Guest72535 has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Ping timeout: 245 seconds]
heftig has quit [Read error: Connection reset by peer]
sebastianb has quit [Ping timeout: 245 seconds]
sebastianb has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dmarr has quit [Ping timeout: 245 seconds]
felixjet has joined #ruby
cbetta_afk is now known as cbetta
vlad_starkov has joined #ruby
Nightmare has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
Nightmare has joined #ruby
dmarr has joined #ruby
SegFaultAX has joined #ruby
DaniG2k has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
kleinerdrache has quit [Quit: Ex-Chat]
leoxagy12 has quit [Ping timeout: 252 seconds]
Amart41 has joined #ruby
ryantm has joined #ruby
mary5030 has joined #ruby
chatrjr has joined #ruby
thesheff17 has joined #ruby
chatrjr has quit [Client Quit]
Amart41 has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
browndawg has quit [Quit: Leaving.]
pu22l3r_ has joined #ruby
Spami has joined #ruby
Megtastique has joined #ruby
bradhe has joined #ruby
brunops has joined #ruby
danshultz has joined #ruby
echevemaster has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 240 seconds]
Tig has quit [Ping timeout: 260 seconds]
leoxagy12 has joined #ruby
yfeldblum has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
zz_anildigital is now known as anildigital
george2 has quit [Remote host closed the connection]
e^0 has quit [Quit: WeeChat 0.4.1]
soulcake has quit [Ping timeout: 260 seconds]
idiocrash has quit []
shedd has quit [Remote host closed the connection]
clamstar has joined #ruby
cbetta is now known as cbetta_afk
therod has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
atmosx has quit [Quit: Lost in trance]
krz has quit [Quit: WeeChat 0.4.2]
ndrei has quit [Read error: Operation timed out]
DaniG2k has quit [Quit: leaving]
cbetta_afk is now known as cbetta
aniM has quit [Ping timeout: 264 seconds]
tt1187 has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has joined #ruby
pen has joined #ruby
soulcake has joined #ruby
araujo has quit [Remote host closed the connection]
Brolen has joined #ruby
cbetta is now known as cbetta_afk
leoxagy123 has joined #ruby
leoxagy12 has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
leoxagy1234 has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
george2 has joined #ruby
therod has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ndrei has joined #ruby
leoxagy123 has quit [Ping timeout: 240 seconds]
lopting has joined #ruby
lopting has quit [Read error: Connection reset by peer]
FireSt0rM has left #ruby [#ruby]
Czupa has joined #ruby
cbetta_afk is now known as cbetta
meatherly has joined #ruby
nari has joined #ruby
werebutt has joined #ruby
werebutt has left #ruby [#ruby]
niklasb has joined #ruby
Notte has joined #ruby
xcv has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
yfeldblum has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
w4pm has joined #ruby
bmurphy1976 has joined #ruby
<bmurphy1976> is this the right place for a rake question?
whowantstolivef2 has joined #ruby
mocfive has joined #ruby
bmurphy1976 has left #ruby [#ruby]
<centrx> Sure
<centrx> I guess not...
senayar has quit [Remote host closed the connection]
leoxagy1234 has quit [Quit: Bye]
w4pm has quit [Ping timeout: 260 seconds]
leoxagy12 has joined #ruby
pushpak has quit [Ping timeout: 276 seconds]
whowantstolivef2 has quit [Ping timeout: 265 seconds]
iamdoo2 has joined #ruby
sski has quit [Remote host closed the connection]
Czupa` has joined #ruby
ryantm has quit [Ping timeout: 260 seconds]
<shevy> centrx lol
sski has joined #ruby
Czupa has quit [Quit: Wychodzi]
dangerousdave has joined #ruby
randomnick_ has quit [Ping timeout: 272 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
yarou has quit [Remote host closed the connection]
iamdoo2 has quit [Ping timeout: 252 seconds]
aniM has joined #ruby
Megtastique has quit []
SHyx0rmZ has joined #ruby
angusigu1ss has joined #ruby
sski has quit [Ping timeout: 260 seconds]
ryantm has joined #ruby
pushpak has joined #ruby
whowantstolivef2 has joined #ruby
anildigital is now known as zz_anildigital
marr has joined #ruby
george2 has quit []
angusigu1ss has quit [Ping timeout: 265 seconds]
banisterone has joined #ruby
BraddBitt has joined #ruby
clamstar has joined #ruby
BraddPitt has quit [Read error: Connection reset by peer]
tfitts has quit [Read error: Connection reset by peer]
tfitts has joined #ruby
bricker`LA has joined #ruby
echevemaster has quit [Quit: Leaving]
ctp has joined #ruby
TheMoonMaster has quit [Quit: Later!]
cbetta_afk is now known as cbetta
obs has joined #ruby
coderhs has joined #ruby
zz_anildigital is now known as anildigital
zellio has quit [Ping timeout: 260 seconds]
kyle__ has quit [Ping timeout: 260 seconds]
cbetta is now known as cbetta_afk
raar has joined #ruby
zellio has joined #ruby
Notte has quit [Remote host closed the connection]
kyle__ has joined #ruby
Xaitec has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
raar is now known as Guest85020
SHyx0rmZ has quit [Ping timeout: 248 seconds]
mlpinit has joined #ruby
lxsameer has quit [Quit: Leaving]
george2 has joined #ruby
wtfitsme has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
whowantstolivef2 has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
whowantstolivef2 has joined #ruby
SHyx0rmZ has joined #ruby
TaxmanBD has joined #ruby
TaxmanBD has quit [Client Quit]
DaniG2k has joined #ruby
obs has quit [Quit: Konversation terminated!]
visof has joined #ruby
DaniG2k has quit [Client Quit]
DaniG2k has joined #ruby
Notte has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
anildigital is now known as zz_anildigital
dik_dak has joined #ruby
srji has joined #ruby
danshultz has joined #ruby
Asher has quit [Quit: Leaving.]
Mattx has joined #ruby
<Mattx> Hi guys
mary5030 has quit [Remote host closed the connection]
NemesisD has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
<Mattx> what web server do you use when you're developing a web app without rails?
<Mattx> I'm looking for something extremely simple, just like php+apache
BizarreCake has quit [Quit: Leaving]
trickyhero has joined #ruby
<apeiros> usually thin
NemesisD has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
brain_shim has joined #ruby
danijoo has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
SHyx0rmZ has joined #ruby
amclain has joined #ruby
<Mattx> apeiros, thin is a web server you start for each project you have, it's not like php+apache in that sense
aniM has quit [Ping timeout: 252 seconds]
<shevy> well ruby is not like php
<shevy> you can use webrick
vim_shim_ has joined #ruby
* Hanmac1 wrote once a HTTP server in C ;P
Hanmac1 is now known as Hanmac
shedd has joined #ruby
mary5030 has joined #ruby
hobodave has joined #ruby
<shevy> Hanmac ruby-gnome is going on my nerves, when is rwx ready?
<Hanmac> depends ... it would go faster if i had more developers ... but i dont think some one else would understand my code ;P
CYMOC has joined #ruby
<shevy> hehe
<apeiros> Mattx: then just use apache?
<apeiros> I don't see why that'd matter, though
<shevy> \o/
Megtastique has joined #ruby
<Mattx> hmn, I didn't know it's possible but I suppose there's a module for that
Czupa` has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
DouweM has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Virtualize has quit []
kenneth has quit [Quit: kenneth]
leoxagy12 has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
DaniG2k has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
<apeiros> Mattx: it's called "passenger", or "phusion passenger"
senayar has joined #ruby
<apeiros> I still don't see how it matters that you start a webserver for each project
<Mattx> oh, in fact I have it installed. to run rails web apps
SiliconG has quit [Ping timeout: 240 seconds]
mojjojo has quit [Client Quit]
nairys has joined #ruby
mojjojo has joined #ruby
Cache_Money has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
<shevy> apeiros just won't see it anyway!
<shevy> Mattx what's wrong with ruby .cgi :)
Cache_Money has quit [Client Quit]
zeade has joined #ruby
nairys has quit []
senayar has quit [Ping timeout: 252 seconds]
Megtastique has quit []
daxroc has joined #ruby
daxroc1 has joined #ruby
Shidash has joined #ruby
<MrZYX> shevy: what's making cgi better than rack?
<shevy> MrZYX I dont need .ru files
<MrZYX> with rack I don't need .cgi files
<MrZYX> next?
<apeiros> shevy: but you restart your whole application on every request.
<shevy> MrZYX I dont have to install an addon
sammyrihawi has joined #ruby
<apeiros> shevy: also, rack doesn't need a .ru file
lkba has quit [Ping timeout: 272 seconds]
<apeiros> that's just one way to start a rack based app
<shevy> apeiros how can you start something rack based without a .ru file?
daxroc has quit [Ping timeout: 252 seconds]
<MrZYX> you probably already have it installed, since it's used by so many things by now. So it comes down to a require. I don't to require cgi with rack. next?
<apeiros> shevy: uh, like, start a server another way?
<apeiros> I don't start apache via .ru files
<shevy> apeiros I have apache running
sammyrihawi has left #ruby [#ruby]
nairys has joined #ruby
<Xeago> thin . starts a server..?
<Xeago> same invocation works for puma
<Xeago> and similarly also for unicorn
kenneth has joined #ruby
<shevy> MrZYX you use rackup?
<MrZYX> sometimes
<shevy> MrZYX how do you use rack without rackup?
<MrZYX> puma, unicorn, webrick. depends on the environment and the app
iamdoo2 has joined #ruby
<MrZYX> simple sinatra apps you can even boot with ruby app.rb
deens has quit []
whowantstolivef2 has quit [Remote host closed the connection]
whowantstolivef2 has joined #ruby
axl_ has joined #ruby
DaniG2k has joined #ruby
_whitelogger has joined #ruby
<MrZYX> I'd have to teach him how it "just works"
leoxagy12 has joined #ruby
<Morrolan> When was the last time you messed with php.ini for a basic app?
zz_anildigital is now known as anildigital
<Morrolan> The .ini shipped by the distro's package manager usually works out of the box.
<apeiros> Morrolan: well, same question for .ru. you can create a "standard one" for that too…
Brolen has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
prc has left #ruby [#ruby]
anildigital is now known as zz_anildigital
* havenwood sprinkles red dirt around doors and windows to keep out PHP haints.
mojjojo has joined #ruby
ktun has quit [Ping timeout: 272 seconds]
aniM has joined #ruby
mary5030 has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
bradhe has joined #ruby
nairys has quit [Remote host closed the connection]
Brolen has joined #ruby
nairys has joined #ruby
mary5030 has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
visof has quit [Quit: Reconnecting]
visof has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
bradhe has quit [Ping timeout: 252 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
sparrovv has joined #ruby
kizzx2 has joined #ruby
Alina-malina has joined #ruby
Tig has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
shredding has joined #ruby
mojjojo has joined #ruby
end_guy has quit [Remote host closed the connection]
daxroc1 has quit [Quit: Leaving.]
ghanima has joined #ruby
timonv has joined #ruby
end_guy has joined #ruby
brennanMKE has joined #ruby
Czupa has joined #ruby
sparrovv has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
framling has joined #ruby
netQT has joined #ruby
lkba has joined #ruby
guest12345 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Hanmac1 has joined #ruby
Guest85020 has quit [Ping timeout: 252 seconds]
meatherly has quit [Remote host closed the connection]
<guest12345> why is this room always so quiet with almost 150 ppl here
kewubenduben has joined #ruby
mary5030 has quit [Remote host closed the connection]
<centrx> guest12345, We are busy coding
meatherly has joined #ruby
<centrx> guest12345, Also, it is more active on the weekdays
predator117 has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
<MrZYX> hmm, 150.. my client counts a few more...
Hanmac has quit [Ping timeout: 252 seconds]
<guest12345> i was rounding lol idk where to find the count
<centrx> Yes, there are actually 892
<centrx> 890 of them are surely busy coding
yshahin has quit [Quit: Connection closed for inactivity]
aspires has joined #ruby
<MrZYX> (because at least two being bots)
daxroc has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 252 seconds]
idiocrash has joined #ruby
ohwhoa has quit [Quit: woah!]
lkba has quit [Ping timeout: 264 seconds]
<shevy> guest12345 xchat shows the amount of people in a channel in the top right corner, 890 right now but some here are bots. I guess they are quiet because they are BUSY writing ruby code all the time non-stop
lkba has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
predator117 has joined #ruby
mojjojo has quit [Quit: mojjojo]
ndrei has joined #ruby
<havenwood> shevy: any luck getting to 2.0?
raar has joined #ruby
daxroc has quit [Ping timeout: 265 seconds]
<shevy> havenwood nope, gem does not want to work :(
<havenwood> hrm
raar is now known as Guest86406
Asher has joined #ruby
<havenwood> shevy: already tried?: gem update --system
echevemaster has joined #ruby
mlpinit has quit [Remote host closed the connection]
<shevy> havenwood you mean when I have 2.1?
<havenwood> yup
daxroc has joined #ruby
Czupa has quit [Remote host closed the connection]
<havenwood> oh, straight to 2.1, hoooah!
<shevy> let's see, a moment
ohwhoa has joined #ruby
angusigu1ss has joined #ruby
Asher has quit [Client Quit]
mojjojo has joined #ruby
kenneth has quit [Quit: kenneth]
ndrei has quit [Ping timeout: 260 seconds]
zerun0 has quit [Ping timeout: 246 seconds]
jtdowney has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
therod has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
mojjojo has quit [Client Quit]
Asher has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
sassamo_ has quit [Remote host closed the connection]
Jetchisel has joined #ruby
sassamo has joined #ruby
kenneth has joined #ruby
ctp has quit [Quit: Leaving...]
ndrei has joined #ruby
alexherbo2 has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Asher has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
timonv has quit [Remote host closed the connection]
SiliconG has joined #ruby
daxroc has quit [Quit: Leaving.]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit has joined #ruby
roolo has joined #ruby
senayar has joined #ruby
mlpinit has quit [Client Quit]
vim_shim_ has quit [Quit: Leaving.]
rmroulette has quit [Quit: leaving]
brain_shim has quit [Remote host closed the connection]
SiliconG has quit [Ping timeout: 252 seconds]
daxroc has joined #ruby
<baggypants> Does anyone know how to convert a page parsed via Mechanize into objects?
<baggypants> I would like to have each part of the DOM in its own object
iamdoo2 has joined #ruby
|PiP| has joined #ruby
<Hanmac1> baggypants: do you want nokogiri ?
<baggypants> hrm...i'm using mechanize i thought it uses nokogiri under the hood
<baggypants> Basically I'd like to take the HTML string...and each "td" will have an obj...each "p" will have an obj
<|PiP|> is there a method on a Hash that converts all string keys to symbol keys, and vice-versa?
netQT has quit [Remote host closed the connection]
<havenwood> |PiP|: No. A Hash#map_key was proposed but hasn't been adopted.
nikkos has joined #ruby
ohwhoa has quit [Quit: woah!]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<baggypants> i guess there is no equivalent of BeautifulSoup from python
octoberry has joined #ruby
ohwhoa has joined #ruby
<|PiP|> How does Rails do it on the params hash that is available in controllers?
<apeiros> baggypants: I think mechanize already does that
<|PiP|> i can reference params['key'] and params[:key] and it's the same attribute
<baggypants> hrmm ok i'll look thru the docs
burlyscudd has quit [Quit: Leaving.]
<apeiros> baggypants: I'm pretty sure you can access a page's elements like that (since it does in fact use nokogiri under the hood - which provides that functionality)
DaniG2k has quit [Ping timeout: 265 seconds]
<apeiros> |PiP|: it's a method
<baggypants> thanks will try
iamdoo2 has quit [Ping timeout: 245 seconds]
<baggypants> right.got it...its page.parser
<baggypants> parser method from Nokogiri
cong has joined #ruby
ktun_ has quit [Remote host closed the connection]
kenneth has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ktun has joined #ruby
popl has joined #ruby
popl has joined #ruby
<|PiP|> apeiros: what do you mean a method? the params hash has all the keys
<|PiP|> as strings and as symbols
predator117 has joined #ruby
mojjojo has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
<apeiros> |PiP|: when you do `params[:foo]` in your controller, you call a method named `params` which returns a hash.
<apeiros> (actually a HashWithIndifferentAccess)
bradhe has quit [Ping timeout: 264 seconds]
<|PiP|> ahh i didn't know that
pushpak has quit [Quit: Linkinus - http://linkinus.com]
shredding has quit [Quit: shredding]
sparrovv has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
kiri has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
kiri has joined #ruby
vlad_starkov has joined #ruby
havenwood has quit [Remote host closed the connection]
Tig has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
cjsarette has joined #ruby
mercwithamouth has joined #ruby
<apeiros> |PiP|: it's relatively simple. `params` can only be either a local variable or a method.
vlad_starkov has quit [Read error: Connection reset by peer]
yarou has joined #ruby
<apeiros> since you neither assign params, nor define it as an argument in your methods, it must be a method
kenneth has joined #ruby
<Hanmac1> apeiros: imo the class should be named HashWhichIDontKnowHowToUseCorrectly ;P
clamstar has quit [Quit: Computer has gone to sleep.]
bbloom has joined #ruby
<apeiros> Hanmac1: or ImTooLazyToRememberWhatTypeMyKeysHaveHash
|PiP| has quit [Ping timeout: 272 seconds]
|PiP| has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
x77686d has joined #ruby
<shevy> why allow string keys
sassamo has quit [Remote host closed the connection]
DaniG2k has joined #ruby
sassamo has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
<centrx> To support ImTooLazyToRememberWhatTypeMyKeysHaveHash and HashWhichIDontKnowHowToUseCorrectly
<Hanmac1> shevy you can use Hash as Hash keys ;P
burlyscudd has joined #ruby
Hanmac1 is now known as Hanmac
Baluse has quit [Ping timeout: 252 seconds]
Baluse has joined #ruby
predator117 has joined #ruby
johnmilton has quit [Remote host closed the connection]
Asher has joined #ruby
<pontiki> but you can't use their mom
sassamo has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #ruby
Nahra has quit [Quit: leaving]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nahra has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
virtualize has joined #ruby
snkcld has joined #ruby
<snkcld> is there a way for CSV.foreach to begin at line number X?
<snkcld> or to skip X numbers of line?
<bnagy> does foreach.drop(n).each work?
Baluse has quit [Ping timeout: 248 seconds]
<snkcld> i thought drop(n) returned an array of what was dropped...
<snkcld> ill try it out
shedd has joined #ruby
<snkcld> that doesnt make sense come to think of it
Baluse has joined #ruby
<snkcld> returning what was dropped lol
<pontiki> snkcld: using the option :skip_lines should do it
gregoriokusowski has quit [Quit: gregoriokusowski]
lkba has joined #ruby
burlyscudd has quit [Quit: Leaving.]
airdisa has joined #ruby
popl has quit [Ping timeout: 248 seconds]
ktun has quit [Remote host closed the connection]
nstdloop has joined #ruby
<snkcld> pontiki: skip_lines doesnt seem to be recognized by CSV
<Hanmac> snkcld: what is your ruby version?
shedd has quit [Ping timeout: 260 seconds]
ngpestelos has joined #ruby
<snkcld> rats... yea... jruby 1.7.9
<snkcld> maybe 1.7.10 has a newer version of ruby
nucc has quit [Quit: This computer has gone to sleep]
* Hanmac points and laugh at jruby
<snkcld> rats... it doesnt.
visof has quit [Ping timeout: 272 seconds]
<snkcld> ill investigate drop
jackneill has quit [Ping timeout: 240 seconds]
therod has joined #ruby
<MrZYX> snkcld: trying to drop the header?
e^0 has joined #ruby
mary5030 has joined #ruby
exl_ has joined #ruby
<bnagy> drop should work, but I don't think it's lazy
afhammad has joined #ruby
<snkcld> no no, its just that im batch processing a hugh csv
<snkcld> and i want to kill it and restart where it left off
apeiros has quit [Remote host closed the connection]
daxroc has quit [Quit: Leaving.]
<snkcld> using drop now gives me IOError: closed stream
simoz15 has joined #ruby
habanany has joined #ruby
<bnagy> you could also try foreach.with_index {|l,i| next if i < threshold; ...
aspires has quit []
mojjojo has quit [Quit: mojjojo]
aniM has quit [Ping timeout: 245 seconds]
<snkcld> but that test would be executed after the row has been parsed no?
<snkcld> my profiling shows that the csv parsing of the row is where alot of time is spent
<snkcld> id like to skip the line prior to the parsing
<bnagy> oh
<MrZYX> sooo. why don't you just tail -n
mocfive has quit [Remote host closed the connection]
<bnagy> then you're going to have to do that directly on the filehandle I think, lemme look at CSV guts
<MrZYX> +k it
octoberry has quit [Ping timeout: 248 seconds]
<snkcld> maybe i can open the file with ruby's File.open, skip X lines, then feed it to CSV?
mocfive has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
Baluse has quit [Ping timeout: 260 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
mary5030 has quit [Ping timeout: 272 seconds]
<bnagy> yeah, looks like new will take an IO
heftig has joined #ruby
<MrZYX> tail -n+1000 | ruby parser.rb with CSV.new(ARGF).each
Al__ has joined #ruby
simoz15 has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
<snkcld> ARGF? is that stdin?
phansch_ has joined #ruby
<MrZYX> ARGF is stdin if ARGV is empty, otherwise it's the filenames in ARGV openend and concatenated
<snkcld> whoa
Amart41 has joined #ruby
<snkcld> wtf
<snkcld> thats awesome
mocfive has quit [Ping timeout: 260 seconds]
<snkcld> so i woulddo CSV.new().foreach(...)
<MrZYX> .each even
<snkcld> oh, whats the difference?
<MrZYX> (yes, it's still lazy)
visof has joined #ruby
<MrZYX> dunno, does CSV#foreach even exist?
<snkcld> does each() take args in the same manner as foreach?
<snkcld> hah
<MrZYX> no, but new mostly does
exl_ has quit []
Al__ has quit [Read error: Connection reset by peer]
<shevy> >> CSV#foreach
<eval-in> shevy => uninitialized constant CSV (NameError) ... (https://eval.in/95182)
<shevy> >> require 'csv';CSV#foreach
<eval-in> shevy => CSV (https://eval.in/95183)
<xybre> Er.. anyone else having issues piping Ruby output on 2.1?
clamstar has joined #ruby
<MrZYX> xybre: $stdout.sync=true ?
phansch has quit [Ping timeout: 260 seconds]
asd has joined #ruby
phansch_ has quit [Client Quit]
Baluse has joined #ruby
Amart41 has quit [Ping timeout: 252 seconds]
simoz15 has joined #ruby
mojjojo has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
Advocation has quit [Quit: Advocation]
<snkcld> is it possible with tail --lines+100 to also bring in the first line?
<snkcld> prolly not the right channel, but just a small tangent
Astralum has quit [Ping timeout: 252 seconds]
dwaite has joined #ruby
<RubyPanther> snkcld: if you can repeat the command twice you just grab from both ends
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
bradhe has joined #ruby
leoxagy12 has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
leoxagy12 has joined #ruby
<MrZYX> echo "$(head -n1 file)\n$(tail -n+100 file)" | ruby parser.rb but that might explode if your file is too big
<MrZYX> (since it can't stream anymore)
afhammad has quit []
<dwaite> I have a method that I can see one of the parameters being a binary string, a hex-encoded string, or one of two objects. I'm wondering if I should force them to give me a specific kind of object, or if I should be doing that sort of conversion as part of my interface
<dwaite> if I do that conversion I'd like to split it out to a method, but don't really know what the convention would be for where it lives or what it is named
<snkcld> yea, my file is huge lol
<snkcld> 529871 lines >_<
mojjojo has quit [Quit: mojjojo]
cjsarette has quit [Ping timeout: 245 seconds]
sethen has quit [Read error: Connection reset by peer]
<|PiP|> anyone know of a Regex library for Ruby?
shedd has joined #ruby
<MrZYX> I don't remember whether ARGF continues from stdin if all files in ARGV are read, but you could try head -n1 csv > csv_header; tail ... | ruby parser.rb csv_header
<snkcld> maybe awk can help
<|PiP|> Not doing regex, but a library of commonly used Regex's
bradhe has quit [Ping timeout: 240 seconds]
<|PiP|> emails, domain names, phone numbers, names, etc
gr33n7007h has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
iamdoo2 has quit [Ping timeout: 240 seconds]
drumusician has quit [Ping timeout: 252 seconds]
<RubyPanther> dwaite: You should use duck-type checking on the objects to see if they #respond_to? the interface you need, and if not, then try to feed it as a string to Float() or Integer() which can do various transformations including hex, etc
<MrZYX> dwaite: if it's a complex conversion IMO have your main interface and convenience methods for the lib users that do the conversion and call your main entry point with the nice format you can work with
<RubyPanther> |PiP|: regexes for those types of things are all either broken, wrong, or inefficient. You have to pick your poisons so you can't usually one-stop-shop
mojjojo has joined #ruby
MindfulMonk has quit [Read error: Operation timed out]
Solnse has quit [Ping timeout: 252 seconds]
DaniG2k has quit [Ping timeout: 260 seconds]
<RubyPanther> consider emails, for example... a regex matching the RFC (incompletely!) is like, a whole page of text
<RubyPanther> Phone numbers isn't any better
<snkcld> fwiw awk '(NR < 2 || NR > 187466) ' did the trick
shedd has quit [Ping timeout: 245 seconds]
<dwaite> RubyPanther, MrZYX: the other issue is that the two objects I'm using are part of OpenSSL, where duck typing doesn't really work :-)
<RubyPanther> dwaite: I'm not convinced
<dwaite> MrZYX: so if I understand you, you think I should have a public class that takes everything which wraps a private class which takes types (duck or other) that it knows how to deal with?
mojjojo has quit [Client Quit]
aryaching_ has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: Leaving]
<MrZYX> I think that one method should only accept one type of input and don't try to magically guess what the user throws at it when the user in most cases already knows that
Asher has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
<MrZYX> make separate methods for each type of input, convert or whatever, and send it to a common entry point in a common format, whatever that is
klaut has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
kiri has quit [Ping timeout: 252 seconds]
<dwaite> if I have (for this example) a string to elliptic curve point conversion method, I don't really want to put it on the elliptic curve, or string, so I have these weird convert_* helper methods to do it within my classes
<dwaite> hmm
ctp has joined #ruby
daxroc has joined #ruby
Asher has joined #ruby
<RubyPanther> It is not at all normal to truly have objects that are different types but have exactly the same interface, and also to have to handle them in different ways
kiri has joined #ruby
SiliconG has joined #ruby
vlad_starkov has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
NemesisD has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
<dwaite> in this case I have the problem as well that two different types of input are both in string (binary and hex-encoded)
mikepack has joined #ruby
<dwaite> there are methods that would let me differentiate an elliptic curve from a EC point for instance, but they aren't actually methods I'm using.
yfeldblum has joined #ruby
vlad_starkov has quit [Read error: Operation timed out]
[krisbulman] is now known as krisbulman
tjsousa has joined #ruby
<RubyPanther> dwaite: It doesn't matter if they are the methods you are using, it only matters that they identify that the interface you want exists on that object
Al__ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<RubyPanther> dwaite: as far as strings go, Ruby can do the conversion if they're formatted right
<RubyPanther> >> Integer("0b010101") == Integer("0x15")
<eval-in> RubyPanther => true (https://eval.in/95184)
sickweezle has quit [Ping timeout: 272 seconds]
altin has joined #ruby
sickweezle has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
fixl has joined #ruby
Vivekananda has joined #ruby
ngpestelos has quit [Read error: Connection reset by peer]
gregf has joined #ruby
dwaite has quit [Ping timeout: 272 seconds]
fixl has quit [Client Quit]
dwaite has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
sn0wb1rd has quit [Ping timeout: 252 seconds]
hfp`away is now known as hfp
<xybre> So I'm reading from a file, and everyhting looks okay, but sorting by year ends up with the wrong order, and then I discovered this: https://gist.github.com/acook/8640574
brunops has quit [Ping timeout: 252 seconds]
alexherbo21 has joined #ruby
alex88 has joined #ruby
Xeago has quit [Remote host closed the connection]
asd has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
tdubya has quit [Changing host]
tdubya has joined #ruby
alexherbo21 has quit [Client Quit]
alexherbo2 has joined #ruby
axl_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<xybre> 239, 187, 191 looks like a unicode byte sequence, but it doesn't show up in the console nor is it visible in the document.
ckinni has joined #ruby
aryaching_ has joined #ruby
eka has joined #ruby
<Hanmac> xybre: what does lastyear.encoding return?
<bnagy> that's the byte order marking
_HolyCow1 has quit [Ping timeout: 252 seconds]
<Morrolan> BOM
sn0wb1rd has joined #ruby
eka has quit [Client Quit]
<Morrolan> Oh, I'm late. :D
camilasan has quit [Quit: Konversation terminated!]
waxjar is now known as shadesaaaa
camilasan has joined #ruby
pabloh has joined #ruby
banisterone has quit [Ping timeout: 252 seconds]
<pabloh> anyone knows how to print bytecodes (the nemonics) from a rubinius method?
leoxagy123 has joined #ruby
<Hanmac> pabloh: you can try str.b that returns in ASCII-8BIT
Wolland has joined #ruby
standyro2 has joined #ruby
_HolyCow has joined #ruby
<pabloh> Hanmac, that's not what I'm asking for
<Hanmac> >> [239, 187, 191, 49, 56, 56, 52, 45, 49, 56, 56, 53].pack("C*")
<eval-in> Hanmac => "\xEF\xBB\xBF1884-1885" (https://eval.in/95194)
claymore has quit [Quit: Leaving]
assurbanipal has quit [Remote host closed the connection]
<Hanmac> >> [239, 187, 191, 49, 56, 56, 52, 45, 49, 56, 56, 53].pack("C*").force_encoding("UTF-8")
<eval-in> Hanmac => "1884-1885" (https://eval.in/95195)
coderhs has joined #ruby
leoxagy12 has quit [Ping timeout: 245 seconds]
<Hanmac> pabloh: see the difference and then wonder why one shows them and the other does not
<xybre> Hanmac: UTF-8
Al__ has quit [Read error: Connection reset by peer]
<xybre> I got ridd of us using a regex to pull out just the data I want (the years) which it was pretty confounding.
simoz15 has quit [Ping timeout: 252 seconds]
<pabloh> Hanmac, what i whant is given an arbitrary method from the class, see the instrucction bytecode that the method execute when running on the Rbx VM
clamstar has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
Notte has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 245 seconds]
jonahR has joined #ruby
clamstar has joined #ruby
leoxagy1234 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
f4a244c has joined #ruby
Kricir has joined #ruby
brunops has joined #ruby
<bnagy> it's a bit fiddly though, I just poked around in irb
w4pm has joined #ruby
<bnagy> basically you can get a CompiledCode object by some_meth.executable - then play with that
<pabloh> bnagy, thanks, I will take a look
leoxagy123 has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
<f4a244c> suppose server A needs to send server B a message. Both have previously shared a secret key successfully. I need a way for server A to send a signature as a url encoded post (think multiple values per form) such that verify(sign(params, PRIVATE), PRIVATE) would be true - anybody know of something already built to do this or a standard way I should be approaching this?
<bnagy> I can't see any obvious way to get the mnemonics though
<pabloh> bnagy, I found it
<pabloh> is just "puts compiled_code.decode"
relix has joined #ruby
<f4a244c> I'm about to have a custom marshal/unmarshal that uses an ordered hash and removes the signature field prior to signing
IceDragon has quit [Ping timeout: 252 seconds]
alex88 has quit [Quit: Leaving...]
coca_rails has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
wiku5_ has joined #ruby
IceDragon has joined #ruby
<bnagy> pabloh: hm. When I look at iseq.opcodes for a trivial method it doesn't seem to match up with decode
bradhe has quit [Ping timeout: 272 seconds]
<bnagy> oh I see, yes it does, I had a push_literal
<bnagy> cool :)
mojjojo has joined #ruby
<pabloh> heh
<bnagy> the rbx compiler is very well isolated, so it's pretty hackable
Brolen has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 253 seconds]
iamdoo2 has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<pabloh> bnagy, i haven't play a lot with it yet
<pabloh> nor with rbx in general...
Diranged has joined #ruby
<Diranged> Stupid simple question… in a chef cookbook, how can I remove a file or directory recursively?
yarou has quit [Remote host closed the connection]
<pabloh> the bytecodes are way nicer than mri's though
<Hanmac1> f4a244c: look at rbtree for orderd hash
<gr33n7007h> Is there any way to work with raw sockets for bluetooth preferably rfcomm in ruby and can the stand socket library support bluetooth?
<bnagy> ruby sockets are pretty much just sockets
shedd has joined #ruby
shime has quit [Read error: Operation timed out]
<bnagy> at least the lowest level api - it's a very, very thin wrapper
iamdoo2 has quit [Ping timeout: 252 seconds]
<bnagy> so basically the question is 'can the os present bluetooth as a socket'
<gr33n7007h> bnagy, like in python there is s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM) anything similar?
<bnagy> and I don't know the answer to that question
<gr33n7007h> bnagy, ok, thanks
nateberkopec has joined #ruby
Diranged has left #ruby [#ruby]
<bnagy> if that works in python then it will work in ruby
sethen has joined #ruby
roolo has quit [Quit: Leaving...]
<bnagy> look up the Socket docs
TD_home has quit [Ping timeout: 245 seconds]
<bnagy> may or may not have the constants defined though
<gr33n7007h> I've gone all though them and can't see support for bluetooth protocol
airdisa has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> unless i've missed something
relix has joined #ruby
<bnagy> just make a socket with the correct constants?
<gr33n7007h> ok, let me delve deeper
jtdowney has quit []
<bnagy> >> Socket::Constants.constants.grep /BT/
<eval-in> bnagy => uninitialized constant Socket (NameError) ... (https://eval.in/95203)
<bnagy> >> require 'socket';Socket::Constants.constants.grep /BT/
<eval-in> bnagy => [] (https://eval.in/95204)
shedd has quit [Ping timeout: 252 seconds]
<bnagy> yar, gonna need to just find the numbers from somewhere
<bnagy> eg the bluetooth headers
tjsousa has quit [Read error: Connection reset by peer]
krisbulman is now known as [krisbulman]
<gr33n7007h> bnagy, will hcidump do that?
tjsousa has joined #ruby
<f4a244c> bnagy: so aside from the algorithm used for the signature itself, I'm curious for the idiomatic or accepted way of getting the message contents vs the signature and message contents together from the url encoded post: https://gist.github.com/anonymous/8640947
<bnagy> the should just be defined
tjsousa has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
<bnagy> f4a244c: I don't know ( or care, tbh ) about url stuff
tjsousa has joined #ruby
<bnagy> I'm just suggesting nacl as a way to sign stuff that has few footguns
Neomex has joined #ruby
<f4a244c> lol, k
<f4a244c> of course, huge fan
<ghanima> is there a away to append key,value to a hash
tjsousa has quit [Read error: Connection reset by peer]
tjsousa has joined #ruby
<bnagy> f4a244c: I mean.. unless I misunderstand, don't people usually just use json for this kind of thing?
axl_ has quit [Quit: axl_]
<bnagy> ghanima: hsh[k]=v
jtdowney has joined #ruby
<bnagy> Hash is ordered now, although I still hate relying on that
<gr33n7007h> it should be under PF_BLUETOOTH but obsolete, why I ask
ctp has quit [Quit: Leaving...]
coca_rails has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<f4a244c> for this specifically I'm just creating a system that lets me build a standardized token and URL that sends the information along for a password reset so I don't have to store the key locally (it gets included in the email). - it's actually not a ruby project, so there's no devise for what I'm building it in, so I'm having fun with pieces I wouldn't usually implement
vlad_starkov has joined #ruby
angusigu1ss has joined #ruby
[krisbulman] is now known as krisbulman
ukd1 has joined #ruby
<f4a244c> it would allow me to create a token that expires, and contains a message (or maybe other data), send it in a URL within an email, and allow the recipient to use the token as though it's valid. I just don't want to encode all the data in JSON or a binary format and include it in the token, since that gives me urls that are terribly long with no contextual data... I'd like to just include the contextual data as a GET parameter and sign all the
<f4a244c> parameters instead of encoding them all
tjsousa has quit [Read error: Connection reset by peer]
tjsousa has joined #ruby
relix has joined #ruby
mojjojo has quit [Quit: mojjojo]
<bnagy> if you have shared secret keys, SecretBox is already authenticated, you don't need to sign stuff
<bnagy> but anyway, passwird reset tokens are hard.
tjsousa has quit [Client Quit]
mojjojo has joined #ruby
<bnagy> good luck.
gmci has joined #ruby
freerobby has joined #ruby
<f4a244c> in this case the key would be shared only between the server's sign method and verify method - the contents of the message would be exchanged with a third party that doesn't have any need to actually sign them themselves... haha, thanks bnagy
<f4a244c> s/sign them themselves/verify them themselves/
vlad_starkov has quit [Read error: Connection reset by peer]
AlSquirrel has quit [Quit: This computer has gone to sleep]
sparrovv has joined #ruby
dwaite has quit [Quit: Lost terminal]
* gr33n7007h is really upset :(
relix has quit [Client Quit]
mojjojo has quit [Client Quit]
angusigu1ss has quit [Ping timeout: 272 seconds]
MrZYX is now known as MrZYX|off
workmad3 has joined #ruby
<gr33n7007h> Well I can't believe ruby hasn't any implementations for raw sockets emulating bluetooth over rfcomm
Hanmac1 has quit [Ping timeout: 272 seconds]
speakingcode has joined #ruby
phutchins has joined #ruby
<bnagy> what's to implement?
<bnagy> the python code you had just opens a socket
<gr33n7007h> bnagy, How would I go about doing that in ruby then?
<bnagy> Socket.new blah, blah, blah
<gr33n7007h> bnagy, what protocol to use?
<bnagy> whatever the magic numbers are for bluetooth?
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<bnagy> like socket.AF_BLUETOOTH will just be some integer
araujo has quit [Remote host closed the connection]
<gr33n7007h> I don't know where to find them have, I know what your saying i'm a little stuck
Disgrntld has quit [Quit: Page closed]
_mtr has joined #ruby
<bnagy> google? write a one line python script that outputs them?
_mtr has quit [Max SendQ exceeded]
<bnagy> grep for them in the headers?
_mtr has joined #ruby
_mtr has quit [Max SendQ exceeded]
<gr33n7007h> bnagy, Have you an example please of how to do that?
mtr__ has joined #ruby
mtr__ has quit [Remote host closed the connection]
<gr33n7007h> or am I sounding a bit thick
<gr33n7007h> I'm on that now
krisbulman is now known as [krisbulman]
<gr33n7007h> I think it's 8 but i'm not sure
VTLob has quit [Quit: VTLob]
<bnagy> o_0
m104 has quit [Quit: brb]
nateberkopec has quit [Quit: Leaving...]