shtirlic has quit [Remote host closed the connection]
wyhaines has quit [Remote host closed the connection]
irleif has quit [Client Quit]
workmad3 has quit [Ping timeout: 244 seconds]
zspencer has quit [Quit: zspencer]
Nisstyre-laptop has joined #ruby-lang
brianpWins has joined #ruby-lang
Hakon has quit [Read error: Connection reset by peer]
Hakon has joined #ruby-lang
emidio has quit [Ping timeout: 272 seconds]
irleif has joined #ruby-lang
Rizzle has quit [Ping timeout: 252 seconds]
jxie has quit [Remote host closed the connection]
jxie has joined #ruby-lang
nertzy has joined #ruby-lang
emidio has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Quit: lcdhoffman]
toretore has quit [Quit: Leaving]
erichmenge has joined #ruby-lang
phaedrix has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.9]
Kingy has quit [Quit: Leaving]
imperator has quit [Quit: This computer has gone to sleep]
justinmcp has quit [Remote host closed the connection]
WhoNeedszzz has joined #ruby-lang
kain has quit [Remote host closed the connection]
<WhoNeedszzz>
hey guys
nertzy has quit [Quit: This computer has gone to sleep]
justinmcp has joined #ruby-lang
macmartine has joined #ruby-lang
<WhoNeedszzz>
If you had to write a script that showed off the things Ruby does that are different from other programming languages what would you include?
nertzy has joined #ruby-lang
kain has joined #ruby-lang
<andrewvos>
WhoNeedszzz: blocks maybe?
erichmenge has quit [Quit: Be back later]
Rizzle has joined #ruby-lang
tdy has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
svyatov has quit [Quit: svyatov]
erichmenge has joined #ruby-lang
emidio has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
methods has left #ruby-lang [#ruby-lang]
thatdutchguy has joined #ruby-lang
savage- has quit [Quit: savage-]
synthetix_ has joined #ruby-lang
intellitech has quit [Quit: Leaving]
methods has joined #ruby-lang
wyhaines has joined #ruby-lang
macmartine has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
synthetix_ has quit [Quit: Ex-Chat]
synthetix has quit [Quit: Ex-Chat]
synthetix has joined #ruby-lang
savage- has joined #ruby-lang
imperator has joined #ruby-lang
<imperator>
good evening
<erikh>
hi
justinmcp has quit [Ping timeout: 245 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
gsav has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
swarley has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
justinseiter has joined #ruby-lang
gsav has joined #ruby-lang
anannie has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
macmartine has quit [Client Quit]
imperator has quit [Quit: Leaving]
thinkdevcode has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby-lang
Mellett68 has quit [Remote host closed the connection]
anannie has joined #ruby-lang
cardoni has quit [Quit: cardoni]
Playb3yond has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
krz has joined #ruby-lang
mars26 has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
swarley has quit [Ping timeout: 255 seconds]
woollyams has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
workmad3 has quit [Read error: Operation timed out]
blacktulip has joined #ruby-lang
Averna has quit [Quit: Leaving.]
facest has quit [Ping timeout: 245 seconds]
facest has joined #ruby-lang
irleif has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
ryanf has quit [Quit: leaving]
<yorickpeterse>
Morning
icooba has joined #ruby-lang
SubSpawn has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
sn0wb1rd has joined #ruby-lang
tonni has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
savage- has quit [Quit: savage-]
vlad_starkov has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby-lang
Hakon has joined #ruby-lang
shtirlic has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
d3vic3 has joined #ruby-lang
rolfb has joined #ruby-lang
<burgestrand>
Is there a gem that’ll run your code samples for errors that are not part of your test suite (e.g. examples in README, or in examples/ directory)?
runeb has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
cardoni has joined #ruby-lang
<ridders24>
hi guys trying to use nokogiri with the following: http://pastebin.com/WtwXsRgK however f.puts page.css('p')[4]['href'] doesnt appear to provide me the name mollstam. why is that?
<judofyr>
oddmunds: I've already had it under the microscope :)
cardoni has quit [Client Quit]
<imperator>
oddmunds, eh?
<injekt>
ridders24: is that the full html?
alex_k has quit [Quit: Lost terminal]
<ridders24>
injekt: yh extracted using f.puts page.css('p')[4]
<apeiros_>
ridders24: css('p') gives you all p nodes
Serial_Killer_C has quit [Remote host closed the connection]
<injekt>
or if there's no other paragraph elements to deal with, just do 'p/a/')[:href]
<ridders24>
injekt: oo lets give that a try, totally different to what ive been trying
Serial_Killer_C has joined #ruby-lang
nitti has left #ruby-lang [#ruby-lang]
_nitti has joined #ruby-lang
<injekt>
ridders24: generally if there's something unique like an id or css class selector I would use that rather than trying to rely on indexes and such
<ridders24>
injekt: at the moment just trying it on the one tweet, however i intend to scrape all of them
carloslopes has joined #ruby-lang
<injekt>
sure, you want to just use the 'search' method instead
<ridders24>
injekt: ok I'll read up on that. so that would allow be to grab the name of the user and the tweet?
<ridders24>
injekt: many thanks, that works really well :)
heftig has quit [Quit: leaving]
GarethAdams has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
anachronistic has quit [Quit: anachronistic]
chimkan_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mpan has joined #ruby-lang
thatdutchguy has joined #ruby-lang
havenn has joined #ruby-lang
runeb has quit [Remote host closed the connection]
<zzak>
zomg hurricane
dpatel has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 252 seconds]
Hakon has joined #ruby-lang
senekis has joined #ruby-lang
<clocKwize>
zzak,where?
<andrewvos>
EVERYWHERE
Hakon has quit [Ping timeout: 260 seconds]
<clocKwize>
oh shit.. how am I going to get home?
<vbatts>
all the places!
<andrewvos>
clocKwize: Jump into the hurricane and let it fly you there!
thinkdevcode has joined #ruby-lang
<clocKwize>
sounds like a plan
<clocKwize>
I'll just duck out the way of the flying cows
<andrewvos>
Ride the cows
methods has joined #ruby-lang
_nitti has quit [Remote host closed the connection]
<Uranio>
clocKwize: you could use a boat
<andrewvos>
Uranio: Don't be silly
<Uranio>
andrewvos: I'M NOT! just follow the flow
* imperator
notes that there is a gem called hurricane
<andrewvos>
Basically, the cow thing is the only way.
burgestrand has quit [Quit: Leaving.]
<Uranio>
imperator: exactly what make theat gem, blow up cows
<imperator>
it's some kind of wordpress parser, so close
<zzak>
hurricane sandy!
<zzak>
that's who
<clocKwize>
I'm just imagining a twister-esque film where the rugged male star, shouts frantically to the stereotypical female star "RIDE THE COWS, ITS THE ONLY WAY"
sn0wb1rd has quit [Quit: sn0wb1rd]
GarethAdams has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
methods has left #ruby-lang [#ruby-lang]
runeb has joined #ruby-lang
blazes816 has joined #ruby-lang
anachronistic has joined #ruby-lang
tommylommykins has quit [Ping timeout: 240 seconds]
tommylommykins has joined #ruby-lang
<imperator>
zzak, you on the east coast i take it
__butch__ has joined #ruby-lang
coryf has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
<zzak>
imperator: yes sir
ryanlecompte has joined #ruby-lang
headius has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
gix has quit [Ping timeout: 252 seconds]
<zzak>
its the real deal holyfield
delinquentme has joined #ruby-lang
gix has joined #ruby-lang
mwjcomputing has joined #ruby-lang
<delinquentme>
if a make operation requires a particular gem ... do I need to invoke make in some kind of specific enviro ? something similar to a bundle exec operation? ( this case is simply using the installed gems ... and not bundler )
roadt` has quit [Ping timeout: 260 seconds]
sn0wb1rd has joined #ruby-lang
<darix>
delinquentme: gem install somegem
<darix>
all you need
gix has quit [Ping timeout: 260 seconds]
<darix>
well and require 'rubygems' ; require 'somegem'
<darix>
on 1.9 you dont need the first require
kain has joined #ruby-lang
<delinquentme>
darix, yeah the script has no issues loading rubygems but it then states that the gem that is shown within $ gem list ... isnt there
<darix>
delinquentme: are you using rvm or anything?
<delinquentme>
darix, yeah Im definitely on rvm
<darix>
delinquentme: maybe it is run in a different rvm environment?
gix has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 268 seconds]
thisirs has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
slaytanic has quit [Read error: Connection reset by peer]
slaytanic has joined #ruby-lang
pbjorklund has joined #ruby-lang
runeb has quit [Remote host closed the connection]
CooLD has quit []
_nitti has joined #ruby-lang
mrsolo has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
irleif has joined #ruby-lang
judofyr has joined #ruby-lang
bfreeman has joined #ruby-lang
jbwiv has joined #ruby-lang
judofyr has quit [Ping timeout: 245 seconds]
arooni-mobile__ has joined #ruby-lang
mpan has quit [Ping timeout: 244 seconds]
wmoxam_ has joined #ruby-lang
anachronistic has left #ruby-lang [#ruby-lang]
<zenspider>
rawr
irleif has quit [Quit: Computer has gone to sleep.]
nertzy has quit [Quit: This computer has gone to sleep]
alvaro_o has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
tenderlove has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
<injekt>
then the netcdf file is located in lib/numru
runeb has joined #ruby-lang
<zenspider>
there is no numru/netcdf in that gem
<zenspider>
just netcdf
tbuehlmann has joined #ruby-lang
<zenspider>
oh. there's a netcdfraw.c in the base
<imperator>
numru, close cousin of mummra
swarley has joined #ruby-lang
<injekt>
it gets built into numru
<delinquentme>
imperator, >_<
<delinquentme>
ok so I think this is a gem versus system install issue
<zenspider>
this shit looks really old
<delinquentme>
I ran it as a system install
<delinquentme>
zenspider, im sure it is
<injekt>
also terrible
<zenspider>
delinquentme: at this point, I'd guess it didn't build and you missed the error message
<zenspider>
look for a build.log or whatever in the base of the gem
<zenspider>
or do my find above
<delinquentme>
zenspider, so i've got the files right there in the dir
<delinquentme>
however I'm getting a gcc issue saying it cant locate them
<delinquentme>
and the path looks fine =/
Mon_Ouie has joined #ruby-lang
<injekt>
delinquentme: does it let you install the ruby-netcdf from the command line?
dc5ala has quit [Quit: Ex-Chat]
<injekt>
because if you get build errors doing that you're probably missing headers
<injekt>
like narray or netcdf
<zenspider>
delinquentme: if you don't have the raw file built, you overlooked a build error when you installed the gem. look for the log file
sush24 has joined #ruby-lang
<delinquentme>
zenspider, where would a build.log file be located? in the dir that im running all the make?
<zenspider>
running the make? I'm certainly confused at this point. did you install this as a gem or not?
stardiviner has quit [Ping timeout: 260 seconds]
<zenspider>
you said it showed up in your gem list
* delinquentme
scratches head
<delinquentme>
some have been installed as gems ... others via make
<injekt>
...
* injekt
points to his earlier comment
<zenspider>
<delinquentme> [09:55] darix, yeah the script has no issues loading rubygems but it then states that the gem that is shown within $ gem list ... isnt there
<delinquentme>
at current im trying to run a $ make test which is failing bc dependencies ... and a particular tutorial online had success building it with both a make and using gems
<zenspider>
<delinquentme> [09:55] darix, yeah the script has no issues loading rubygems but it then states that the gem that is shown within $ gem list ... isnt there
<zenspider>
what gem were you referring to?
<delinquentme>
narray
sepp2k1 has joined #ruby-lang
<zenspider>
gem list -d narray
zomgbie has quit [Quit: Lost terminal]
<zenspider>
gem which narray
* zenspider
makes not that this is the first time you've even mentioned narray...
<zenspider>
note
<sush24>
Hi.. I'm using net/imap
<zenspider>
damnit
<sush24>
getting this error: Net::IMAP::ResponseParseError: unexpected token NUMBER (expected CRLF)
<sush24>
using novell groupwise 8
<sush24>
ideas?
<darix>
sush24: without seeing the code
<darix>
it is hard to say.
chessguy has quit [Remote host closed the connection]
<injekt>
sush24: what ruby version?
<sush24>
it's the usual imap uid_fetch code.. anyways, wait
sepp2k has quit [Ping timeout: 256 seconds]
<sush24>
injekt, 1.9.2
<injekt>
full version
<darix>
injekt: are there known bugs in net/imap in some 1.9 versions?
<zenspider>
why is that in site_ruby and not installed as a gem??
<zenspider>
I can't diagnose anything if you just trickle minute details at me one by one. this is like pulling teeth. you say it is a rubygems issue but then rubygems has nothing to do with it.
<darix>
injekt: i see
<injekt>
im not so sure, there's a ton of those errors most of which dont say anything about novell
<injekt>
but who knows, could be either
<darix>
hehe his is kinda reverse of the error message in the bug^^
<zenspider>
wtf is conn.instance_eval { send_command('ID ("GUID" "1")') } ??
<injekt>
haha
<sush24>
this happens when .status method is used injekt darix
<darix>
zenspider: evil hackery?
<injekt>
eh
<darix>
sush24: some short reproducer script would rock
<darix>
really
GarethAdams has quit [Remote host closed the connection]
<injekt>
I'd still love to know what patchlevel he's using
mistym has quit [Remote host closed the connection]
<injekt>
macruby
<injekt>
:|
<injekt>
I've never used, nor would ever use.. macruby
<injekt>
so I'm sorry I can't help much more
<injekt>
than to tell you to use one of the official ruby builds
arooni-mobile__ has quit [Quit: Leaving]
<apeiros_>
I'd recommend that too
<apeiros_>
if the error still occurs, you can safely assume that it's unrelated to using macruby
<sush24>
injekt, is there a simple way to monkey patch with the later imap.rb?
<sush24>
*latest
<injekt>
you're going town a deadly path
mpan has quit [Ping timeout: 244 seconds]
<sush24>
i know.. I shouldn't have chosen macruby.. :/
<injekt>
so change
<injekt>
;)
<sush24>
i hate to write it again
<sush24>
probably in the future
areil has quit [Remote host closed the connection]
<freedrull>
anyone else notice any vim syntax highlighting breaking when using pretty hash syntax? my matching 'else' statements aren't getting highlighted
cultureulterior_ has quit [Quit: cultureulterior_]
runeb has quit [Ping timeout: 248 seconds]
bluepojo has joined #ruby-lang
bluepojo has quit [Client Quit]
chimkan has quit [Quit: chimkan]
zarubin has joined #ruby-lang
<lurraca>
drbrain: I have a question about Mechanize and HTTP Auth are you available?
justinram has quit [Read error: Connection reset by peer]
bluepojo has joined #ruby-lang
thinkdevcode has joined #ruby-lang
justinram has joined #ruby-lang
<injekt>
sush24: you dont have to write anything again, just install ruby and run it against an official ruby build
<injekt>
1) please put it into one paste. 2) please stop using pastebin
<injekt>
use gist and add them as separate files
<injekt>
for my viewing pleasure
<injekt>
;)
<injekt>
and sanity
<ridders24>
injekt: sorry
<ridders24>
injekt: I'll use gist next time
<injekt>
ridders24: also :data-user-id is a syntax error
<injekt>
:data_user_id
<injekt>
symbols cant have - in them
heftig has joined #ruby-lang
<ridders24>
injekt: is that the only issue?
<injekt>
eh
<lurraca>
injekt: well, for some reason on the website I included in the hastebin its not.
<injekt>
you have a loop inside a loop
<injekt>
you need to fetch the other stuff relatively to the current node you're traversing, for best results
woollyams has quit [Quit: Computer has gone to sleep.]
<injekt>
lurraca: you opened a stack overflow question on this anyway?
<lurraca>
yep
<injekt>
then i'll stop searching through the code to try and help :)
<ridders24>
injekt: im not sure I understand what you mean
d-snp has quit [Quit: Lost terminal]
irleif has joined #ruby-lang
kurko_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
brianpWins has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
tenderlove has quit [Remote host closed the connection]
runeb has joined #ruby-lang
<ridders24>
injekt: are you refering to the two page.search as the loop inside a loop?
chimkan has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
<injekt>
ridders24: yes
alvaro_o has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby-lang
shtirlic has joined #ruby-lang
_nitti_ has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
_nitti has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
<dominikh>
injekt: you're seriously wasting your time here again? :D
<injekt>
dominikh: :(
<dominikh>
I thought you went all "nothx" about IRC and became productive
nertzy has joined #ruby-lang
chimkan has quit [Quit: chimkan]
<injekt>
it was never going to last forever
<dominikh>
too bad
<dominikh>
was nice without you around :P
<injekt>
you must have been bored, no one to annoy
* apeiros_
gets some popcorn
<dominikh>
injekt: I had plenty of people to annoy
runeb has quit [Ping timeout: 246 seconds]
<dominikh>
apeiros_: pay or gtfo :P
<injekt>
I assumed you enjoyed it with me more than anyway
<injekt>
as you did it so often
<dominikh>
didn't really notice that you were gone
<dominikh>
just less preggy talk
<injekt>
I did, my life got a lot better
<injekt>
haha
<injekt>
less animal talk
<erikh>
these two lovers bicker all the time
<erikh>
it's cute
sush24 has left #ruby-lang ["Leaving"]
<dominikh>
haha
<dominikh>
it's the only way we can tolerate each other
justinseiter has quit [Remote host closed the connection]
<injekt>
:D
erichmenge has joined #ruby-lang
_nitti has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
bluepojo has quit [Ping timeout: 264 seconds]
chimkan_ has quit [Client Quit]
_nitti has joined #ruby-lang
Uranio has quit [Quit: WeeChat 0.3.8]
sn0wb1rd has quit [Quit: sn0wb1rd]
jgomez has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
runeb has joined #ruby-lang
dumfries has quit [Ping timeout: 248 seconds]
dumfries has joined #ruby-lang
havenn has quit [Read error: No route to host]
irleif has joined #ruby-lang
irleif has quit [Client Quit]
anannie has quit [Ping timeout: 265 seconds]
rippa has quit [Ping timeout: 244 seconds]
<andrewvos>
Anyone here own a MBA 11 inch 2012 model with UK keyboard. I really need to know if the Enter key is a tiny little sliver like the US keyboard.
<andrewvos>
There should be a ? there
<andrewvos>
And sorry for the non-Ruby question. I promise I'll try answer someone here later as payment.
gix has quit [Ping timeout: 252 seconds]
runeb has quit [Ping timeout: 260 seconds]
<jaimef>
is there a way to script irb with commands such "require 'chef'; node = File.read('/tmp/foo');" ?
qpingu has joined #ruby-lang
<andrewvos>
jaimef: You can require a file when loading up irb.
<andrewvos>
Or there is .irbrc i think
<andrewvos>
But pry is better.
<jaimef>
okthanks
<andrewvos>
jaimef: Seriously use pry. It will make you happy.
gix has joined #ruby-lang
<jaimef>
yeah I am, thus the "ok thanks"
<rue>
Just don’t go on the IRC channel…
<jaimef>
k
gix has quit [Ping timeout: 256 seconds]
<andrewvos>
jaimef: No it's safe don't listen to rue. Just don't click on any links there.
<andrewvos>
Ever
mfn has quit [Quit: WeeChat 0.3.2]
<andrewvos>
Also, don't go there
cultureulterior_ has joined #ruby-lang
rdavila has joined #ruby-lang
gix has joined #ruby-lang
comboy has joined #ruby-lang
_nitti has quit [Remote host closed the connection]
cschwartz has joined #ruby-lang
lurraca has quit [Quit: This computer has gone to sleep]
nazty has quit [Ping timeout: 256 seconds]
judofyr has joined #ruby-lang
swarley has quit [Read error: Connection reset by peer]
yalue has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
imajes has quit [Excess Flood]
_nitti has joined #ruby-lang
methods has joined #ruby-lang
kurko_ has joined #ruby-lang
nazty has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
imajes has joined #ruby-lang
bluepojo has joined #ruby-lang
runeb has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
cschwartz has quit [Ping timeout: 244 seconds]
woollyams has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
nazty has quit [Ping timeout: 252 seconds]
toertore has joined #ruby-lang
toretore has quit [Ping timeout: 248 seconds]
swarley has joined #ruby-lang
havenn has joined #ruby-lang
beawesomeinstead has quit []
beawesomeinstead has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
hachiya has quit [Ping timeout: 240 seconds]
swarley has quit [Ping timeout: 246 seconds]
hachiya has joined #ruby-lang
chimkan__ has joined #ruby-lang
justinmcp has joined #ruby-lang
woollyams has quit [Ping timeout: 276 seconds]
mpan has joined #ruby-lang
nazty has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
chimkan__ has quit [Quit: chimkan__]
carloslopes has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby-lang
mpan has quit [Ping timeout: 240 seconds]
sn0wb1rd has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
sailias has quit [Quit: Leaving.]
nertzy has quit [Quit: This computer has gone to sleep]
wyhaines has quit [Ping timeout: 260 seconds]
justinmcp has quit [Remote host closed the connection]
runeb has joined #ruby-lang
justinmcp has joined #ruby-lang
Kingy has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
__butch__ has quit [Quit: Leaving.]
tbuehlmann has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
tdy_ has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
seydar has joined #ruby-lang
<seydar>
i'm writing an AST (http://hpaste.org/76958) and i realize i'm in trouble now because the class variable @@parts is the same for all subclasses, thus anyone inheriting from AST will affect everyone else. this is a no-no
<seydar>
so i'm open to suggestions for fixing it. right now i have #clone in there which i thought would fix it, but it doesn't. So really, it bugs out complaining that value isn't a real method
kurko_ has quit [Ping timeout: 256 seconds]
<zenspider>
why is value a class method?
<zenspider>
ah.. I see.
<zenspider>
stop being fucking clever
kurko_ has joined #ruby-lang
<zenspider>
get rid of the value class method
<zenspider>
get rid of the initialize method
<zenspider>
if anything, switch to Struct
<zenspider>
otherwise, write plain ruby
<seydar>
that's fair
<seydar>
now that you mention it, i'm just looking for the function of a struct.
wyhaines has joined #ruby-lang
<zenspider>
attr_accessor would do you just fine
_nitti has quit [Remote host closed the connection]
topaz has quit [Ping timeout: 252 seconds]
<seydar>
yep
<seydar>
thanks for keeping me on the straight and narrow
<seydar>
this will go down as yet another lesson of why you shouldn't be clever
<seydar>
back to work
<seydar>
wellllllllll
<seydar>
let's talk about this some more.
<seydar>
using structs means inheritance is gone
<seydar>
so i lose being able to say "if number === Expression"
<seydar>
though to be fair, why would i do that
<judofyr>
seydar: you can still do "class Add < Binary" for trees that are similar
<seydar>
for sure
<seydar>
but i can't ADD attributes
<judofyr>
seydar: although in those case I actually recommend using the same class for all types.
<seydar>
judofyr: why is using the same class better/simpler?
<judofyr>
seydar: I just find that often you want to do the same type of work on Add/Sub/Mul/Div in filters/visitors on the AST
runeb has quit [Ping timeout: 252 seconds]
<judofyr>
then it's often simpler to have a simple handler for them (and use if/case inside there) than to force it to have four+ "different" handler
<seydar>
it's be sweet if i could do Expr = Struct.new; class Value < Expr(:value)
<seydar>
well couldn't you just search the AST for Binary and call it a day since they all inherit?
bluepojo has left #ruby-lang [#ruby-lang]
<judofyr>
well, true
<seydar>
also, what is this bullshit about Struct requiring an argument
<seydar>
not in MY day
<seydar>
zenspider, judofyr: thank you guys for your help
<andrewvos>
wats a struct
<seydar>
andrewvos: it's a lightweight class that is great for when you just need an object with some data accessors. it allows for easy instantiation and access
nertzy has joined #ruby-lang
<seydar>
and as long as the # of attributes is < 9, MRI takes sweet optimizations to make it fast for ya
<seydar>
IIRC
<andrewvos>
seydar: Sorry I was joking there :)
thone_ has joined #ruby-lang
cschwartz has joined #ruby-lang
<seydar>
i *thought* you were, but i didn't want to accidentally noobshame
<seydar>
plus, i could've sworn you were pretty damn knowledgable
<andrewvos>
Wow. Probably the first time someone has said that to me in here.
<andrewvos>
Thanks :)
<Paradox>
ruby = win
perryh has quit [Excess Flood]
cschwartz has quit [Read error: Operation timed out]
thone has quit [Ping timeout: 260 seconds]
ChadStudmuffin has quit [Ping timeout: 255 seconds]
perryh has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
richardjortega has quit [Read error: Connection reset by peer]
richardjortega has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
seydar has quit [Quit: leaving]
havenn has quit [Ping timeout: 244 seconds]
thone_ has quit [Ping timeout: 246 seconds]
thone has joined #ruby-lang
tenderlove has joined #ruby-lang
hakunin has quit [Ping timeout: 246 seconds]
gsav has quit [Quit: Lost terminal]
outoftime has quit [Ping timeout: 244 seconds]
gsav has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
tdy_ has quit [Quit: WeeChat 0.3.9]
judofyr has joined #ruby-lang
tonni has joined #ruby-lang
runeb has joined #ruby-lang
gsav has quit [Ping timeout: 240 seconds]
twittard has joined #ruby-lang
judofyr has quit [Ping timeout: 244 seconds]
hakunin has joined #ruby-lang
ananna has joined #ruby-lang
anannie has quit [Ping timeout: 245 seconds]
<rue>
Visitar Patturn
lcdhoffman has joined #ruby-lang
havenn has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
chimkan has joined #ruby-lang
outoftime has joined #ruby-lang
havenn has quit [Ping timeout: 246 seconds]
<injekt>
ridders24: did you figure it out?
<andrewvos>
Factery Methud
<ridders24>
injekt: no i tried a few things, but just couldnt get my head round it
<andrewvos>
Ermagerd Singel Responsebality Prinsepels
<injekt>
ridders24: can you gist your code and html, I'll be more than happy to show you how it's done
<andrewvos>
Ok let's just leave it at that.
chimkan has quit [Remote host closed the connection]
<injekt>
andrewvos: zomg mba
chimkan has joined #ruby-lang
<andrewvos>
injekt: I am studying to be a Projerkt Meneger
enebo has quit [Quit: enebo]
<injekt>
orly
cultureulterior_ has quit [Quit: cultureulterior_]
kurko_ has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
runeb has quit [Ping timeout: 252 seconds]
<andrewvos>
yarly
<andrewvos>
No honestly no I'm not.
<injekt>
ic
<andrewvos>
Professional JIRA Ticket Administrator
<injekt>
I thought this was an external website embedding tweet data
sullenel has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
<andrewvos>
Wait isn't twitter like mostly javascript. ridders24 you're going to have a bad time.
_nitti has joined #ruby-lang
<injekt>
they have an open api for this
<injekt>
:/
<andrewvos>
Well, open is kind of a loose term with them.
<injekt>
:D
<andrewvos>
But I'm pretty sure scraping the page isn't going to be trivial.
<andrewvos>
But yeah ridders24 listen to injekt. There's an API for all this.
<apeiros_>
23:20 andrewvos: Professional JIRA Ticket Administrator
<apeiros_>
not sure… is that an insult or a job?
swarley has joined #ruby-lang
<injekt>
better yet, use one of the twitter gems
<injekt>
apeiros_: both?!
<apeiros_>
andrewvos: please tell me you were kidding… otherwise I've just been an ass :-/
_nitti has quit [Ping timeout: 244 seconds]
sullenel has quit [Quit: Leaving.]
outoftime has quit [Ping timeout: 248 seconds]
<ridders24>
guys, ive used the API, and it does not include the ability to display replies, ive already discussed this with mistym. This was the only way
justinmcp has joined #ruby-lang
<andrewvos>
apeiros_: I'm joking. JIRA is my mortal enemy.
<andrewvos>
apeiros_: Though, for the right price I'll do anything.
kurko_ has joined #ruby-lang
<apeiros_>
andrewvos: phew :)
<andrewvos>
apeiros_: :)
<apeiros_>
yeah, was considering doing cobol->java for a big bank a few years ago
<apeiros_>
(re: doing anything for the right amount of money)
<andrewvos>
What, converting to Java?
<apeiros_>
yes
<apeiros_>
they still got incredible amounts of cobol code
<andrewvos>
Honestly I think Java is the worst language I have ever worked with. I just utterly dislike it.
<apeiros_>
hm
<ridders24>
injekt: ?
swarley has quit [Quit: Leaving]
<apeiros_>
I think java is nicer than php
<andrewvos>
But I'm not very experienced.
<injekt>
ridders24: use the twitter gem
<andrewvos>
I'm not sure about that. FOr small apps PHP is bearable.
<injekt>
stop parsing html
<injekt>
there's an api
<andrewvos>
It's shit, don't get me wrong, but yeah it's not that horrible.
<andrewvos>
Well it is that horrible, but marginally better than Java :)
<injekt>
wut
<andrewvos>
(Only if it's a small web app)
<andrewvos>
But yeah, I'm also very inexperienced with Java, which means it's quite likely that I'm completely wrong.
<ridders24>
ok cheers guys. speak to you tomorrow
ridders24 has quit [Quit: Page closed]
<andrewvos>
No don't let him leave till he uses the api!
<manveru>
good luck dragging him back :P
<andrewvos>
:(
senekis has quit [Read error: Connection reset by peer]
<andrewvos>
Oh well. Everyone parses html and learns the hard way.
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<manveru>
yeah, been there, done that :)
jamjam has joined #ruby-lang
headius has quit [Quit: headius]
<manveru>
still do it if there's no alternative
Dreamer3 has joined #ruby-lang
<andrewvos>
I suppose he is not using regex. That's a start.
<manveru>
but twitter recently really made people get into distributed scraping
<matti>
manveru: ;]
<andrewvos>
They're bringing scraping back.
Madis has quit [Remote host closed the connection]
<andrewvos>
Scraping in the cloud.
<andrewvos>
Cloud Scraping
<bougyman>
Cloudy Scraping
<bougyman>
more like ^
<andrewvos>
Show HN: coudscra.pe lets you scrape in the cloud!
<manveru>
now with nonblocking haskell version that compiles to nodejs and mines bitcoins while you're not watching your beowulf cluster
runeb has joined #ruby-lang
lurraca has joined #ruby-lang
<andrewvos>
10 times cloudier than our competitors
<manveru>
cloudy with a chance of investors
<drbrain>
andrewvos: that's not a good tag line
Serial_Killer_C has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
<andrewvos>
drbrain: I will add your quote just below my hero box
<andrewvos>
Or whatever they call those things
<drbrain>
\o/
<erikh>
google did the same thing years ago
<andrewvos>
Hang on
<andrewvos>
Google is rich from this
coryf has quit [Remote host closed the connection]
<erikh>
from getting scraped?
<andrewvos>
From scraping
outoftime has joined #ruby-lang
<andrewvos>
erikh: Wait but what do you mean?
<erikh>
google cut off their search api
<erikh>
so people just built scrapers to get the same data
<andrewvos>
Oh right. I thought you meant that Google actually did what we were joking about years ago.
<andrewvos>
joking about, years ago*
<erikh>
I may know someone who wrote a system to manage VPS machines that ran nothing but squid, check if they had been blocked by google, and retire and create them automatically
<erikh>
and a central scraping task distributor
headius has joined #ruby-lang
<erikh>
that's the idea, right?
<erikh>
:)
woollyams has quit [Client Quit]
<andrewvos>
Only if it can be done in Erlang erikh. Only if it can be done in Erlang.
woollyams has joined #ruby-lang
<erikh>
fuck that
<erikh>
we were men
<erikh>
we used perl
<andrewvos>
haha
jackhammer2022 has joined #ruby-lang
<erikh>
seriously though, 7 digits worth of "API requests" a day
<erikh>
way to solve that problem Google
<andrewvos>
Does 7 digits mean like a million?
<erikh>
yes
<andrewvos>
And why would someone do this?
<andrewvos>
Oh wait did this person work at Bing?
<andrewvos>
I'm just going to accept that they did.
<erikh>
haha no, search engine placement is something people will pay for
<erikh>
lambo money for
<drbrain>
up to 10 million - 1
<manveru>
people watching the screen all day to make sure they're still #13 for 'cheap viagra'
<erikh>
most of our customers were small businesses
<erikh>
spammers have their own shit
<andrewvos>
Sometimes I wish I worked with weird spam companies or something like that.
<andrewvos>
Sounds like fun
<erikh>
anyhow point is if google had left the API service up, they probably would have saved bandwidth
<andrewvos>
Ooh hang on Italians fighting outside
<erikh>
ooh!
<erikh>
throw cheese at them
thinkdevcode has quit [Remote host closed the connection]
coryf has joined #ruby-lang
<andrewvos>
Oh no they're not fighting
<erikh>
throw cheese at them anyway
<erikh>
maybe they'll start fighting
<andrewvos>
Cheese is for eating. I will not waste good cheese.
<drbrain>
stock velveeta
<drbrain>
that stuff never goes bad, and is certainly not for eating
<drbrain>
I'm not exactly sure what it is for
<andrewvos>
hahah
<drbrain>
maybe when the next ice age comes we can build with it
<andrewvos>
I suppose, but I just find glob more obvious.
<andrewvos>
It's a verb
<erikh>
you don't find Dir["fart/**/*.rb"] obvious enough?
<andrewvos>
Well, I suppose yeah.
<andrewvos>
Yeah okay I'll start using []
methods has joined #ruby-lang
WillMarshall has joined #ruby-lang
alexkira has joined #ruby-lang
<andrewvos>
I just still get uneasy when [] is used for anything other than arrays
<andrewvos>
(and hashes)
<manveru>
only use Dir[] if you need the results in an array
<manveru>
Dir.glob takes a block for iteration
<erikh>
makes sense for large directories
<erikh>
although by then I'm usually reaching for Find
<krzbrg>
ah, this is so useful
<krzbrg>
I should have joined this channel weeks ago haha
<manveru>
indeed
<andrewvos>
Does glob and [] use the same method under the hood? What I mean is does it actually iterate when using the block, instead of just pulling everything into memory all at once?
<manveru>
they're the same method, but the [] syntax can't take blocks
<erikh>
Likely Dir[] uses Dir.glob somehow
<erikh>
but i haven't looked.
<erikh>
oh, that makes sense too
<erikh>
stop making sense damnit
<manveru>
well, it was that way a long time ago :)
<erikh>
I'm trying to answer questions here
<manveru>
oh, my bad :P
<erikh>
:P
tenderlo_ has joined #ruby-lang
<manveru>
i'll go back flinging bash at at a wall to see what works
Aria has joined #ruby-lang
<andrewvos>
I just remember under windows using the Window API you have the option to get all files in a directory at once which can be very slow or you can continue calling FindNextFile until it returns a non-zero number.
<andrewvos>
So I'm guessing it's the same in unix.
<manveru>
pretty similar, yeah
tenderlove has quit [Ping timeout: 256 seconds]
<manveru>
yeah basically "read" a directory, one entry at a time
<andrewvos>
Yeah, which is a hell of a lot faster when you actually do things with the files.
<manveru>
no
<andrewvos>
It starts faster :)
<manveru>
you read the inode, not the content
gix has quit [Ping timeout: 240 seconds]
<Aria>
Not quite. Unix only has the iterator approach, at least officially. It's free to batch that under the hood.
<apeiros_>
oy, Aria - long time no see - hi there!
<manveru>
man dirent for the gory details
<Aria>
Indeed, apeiros_!
<manveru>
or was it readdir
sepp2k1 has quit [Read error: Connection reset by peer]
<manveru>
and welcome back Aria :)
<erikh>
dirent is the struct
<Aria>
Thanks.
<Aria>
dirent, readdir, opendir.
<erikh>
used for stat and friends too, IIRC
tonni has quit [Remote host closed the connection]
<Aria>
All useful parts of that puzzle.
runeb has joined #ruby-lang
Averna has joined #ruby-lang
<andrewvos>
Oh great I just looked out the window and the people across the road are having sex
<erikh>
the italians?
<andrewvos>
No
<andrewvos>
It's in a flat
<andrewvos>
Across the road
gix has joined #ruby-lang
postmodern has joined #ruby-lang
<erikh>
this is what you do
<erikh>
open your window
<erikh>
stick your head out
<erikh>
and yell something like, "hey, move to the right, I can't see the whole thing"
<erikh>
it'll never happen again
<drbrain>
… or they'll move to the right
<erikh>
win-win if you ask me
synthetix has quit [Read error: Connection reset by peer]
havenn has quit [Ping timeout: 268 seconds]
<andrewvos>
I just looked again
<andrewvos>
The curtain is now closed
<krzbrg>
apparently they looked, too
synthetix has joined #ruby-lang
<krzbrg>
all I see is #Sandy
_nitti has joined #ruby-lang
scade has joined #ruby-lang
justinram has quit [Read error: Connection reset by peer]
justinram has joined #ruby-lang
<andrewvos>
I bought a new MBA 11 inch today :)
<andrewvos>
Tonight actually
<krzbrg>
ah, I love those
<krzbrg>
the 11" screen is surprisingly comfortable to work on
Artheist has joined #ruby-lang
_nitti has quit [Ping timeout: 256 seconds]
<andrewvos>
I hope so
<andrewvos>
I have a 13 now
gix has quit [Ping timeout: 276 seconds]
<andrewvos>
Just hoping it's not too painful working on an 11
<andrewvos>
But I will plug it into a larger screen mostly I think
<andrewvos>
Just not too keen on the idea of having to use tabs in terminal again
lurraca has quit [Quit: This computer has gone to sleep]
<andrewvos>
Gotten quite used to tmux
Artheist has quit [Remote host closed the connection]
Artheist has joined #ruby-lang
<andrewvos>
(Have to keep IRC on my smaller screen, as some stuff is NSFW)
<krzbrg>
hah
<krzbrg>
I spent a week working on an 11" MBA to see how it felt
<krzbrg>
since going back to my 15" MBP I've ditched my second display