<shinobi_one>
looking for help on this regex => starts with a letter, has a length of at least 5 and has at least one letter
<ryanf>
what
<ryanf>
if it has to start with a letter, doesn't that guarantee that it has at least one letter?
<ryanf>
or do you mean at least one other letter?
<shinobi_one>
shit has at least one number*
<shinobi_one>
xD
<ryanf>
oh
ilyam has quit [Quit: ilyam]
<ryanf>
I don't think you can construct a reasonable regex that does that. I hope someone proves me wrong, though, because it'd be cool
<shinobi_one>
i don't need the length part i guess, but if i could get starts with a letter, has at least one number, that would be nice
<ryanf>
oh yeah that's easy
<shinobi_one>
nvm i can do that myself lol
<shinobi_one>
xD
<ryanf>
1 + 2 and 1 + 3 are both easy
<ciopte7>
hmm is this not working
<seanstickle>
^\w(?=\w*\d)\w*
<seanstickle>
But you might also find more insight at #regex
Drewch has quit [Ping timeout: 246 seconds]
gtuckerkellogg has joined #ruby
<shinobi_one>
i'm trying to construct a regex for usernames, starts with letter (has at least 4 in it) and at least one number
<shinobi_one>
not sure it's actually possible
fbernier has quit [Ping timeout: 264 seconds]
<ryanf>
yeah just do it in multiple steps
<ciopte7>
\A([a-zA-Z]\d+){5}
<ryanf>
no
<ryanf>
that requires it to be in pairs of letter and digit
azm has joined #ruby
<ryanf>
and it also has to be at least 10 with that one
<xubuntu5>
i am trying to run a simple gem command gem install ncurses and i get this error: Could not create Makefile due to some reason probably lack of necessary libraries and/or headers any help would be greatly appreciated
<ryanf>
you can do /\A\w.*\d/ to meet requirements 1 and 3, and then just check length >= 5 for the other one
<ryanf>
xubuntu5: it doesn't know where your curses library is installed (or you don't have it installed)
<ryanf>
judging by your name, I'm guessing might need to do apt-get install ncurses or ncurses-dev or something
<ryanf>
+you
<xubuntu5>
running ryanf thank you, will give that ago
<shinobi_one>
ryanf: can't use \w.* because that allows anything after the \w.
<ryanf>
right
<ryanf>
didn't you say starts with a letter and contains at least one digit?
<ryanf>
that regex enforces having a digit, but you don't care what's between the first letter and the digit
<ryanf>
oh you mean it has to have 4 letters, as opposed to numbers?
<ryanf>
or whatever?
<ryanf>
why are you setting such arbitrary password requirements to begin with?
<xubuntu5>
random question are the regex of ruby similar at all to perl?
<ryanf>
this is what makes users hate you :)
<shinobi_one>
ryanf: not password requirements, username requirements
<ryanf>
oh misread, I see.
<shinobi_one>
has at least 4 letters and 1 number, starts with a letter lol
<ryanf>
anyway that complicates things even more
<ryanf>
assuming you don't care where the number falls
<xubuntu5>
ryanf thank you, it was ncurses-dev
kylemcgill has quit [Remote host closed the connection]
lotus2015 has joined #ruby
kevinbond has quit [Quit: kevinbond]
<lotus2015>
Is there anyone can take a look for me?
<sepp2k>
zamN: If you create local variables inside a block, they're local to the block and will lose their value at the end of the block. You need to create them before the block to keep their value between iterations
<sepp2k>
(set them to nil)
<zamN>
well that makes sense
<sepp2k>
Also don't do File.open().each. That way the file won't get closed (until it's GCed anyway). Do File.foreach(bla) do end
burgestrand has quit [Quit: Leaving.]
<zamN>
that cuts my line off
<zamN>
weird
<sepp2k>
Also you might want to consider using an xml or html parser for robustness' sake instead of fishing the info you want out of the string by hand.
<zamN>
well
tommyvyo has joined #ruby
<zamN>
this is only temporary
<zamN>
as if i had to do this 1000 times iw ould kill myself.
<zamN>
lol
<zamN>
so im writing a program to do it for me
<zamN>
and ruby is the onlyt hing i know that i can write in 5 minutes
kah_ has quit [Ping timeout: 250 seconds]
quest88 has joined #ruby
<sepp2k>
zamN: Also take a look at each_slice instead of doing your counting thing with i.
<zamN>
ruby has it all
<sepp2k>
That also gets rid of your local variable problem without having to define them outside.
<zamN>
why do i even bother thinking
<zamN>
lol
<sepp2k>
Because then you only need the values within the same iteration (because you'd be iterating in steps of three)
uris has quit [Quit: leaving]
S2kx has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
d3vic3 has quit [Ping timeout: 245 seconds]
wilmoore has joined #ruby
JeffreyBaird has quit [Quit: JeffreyBaird]
S1kx has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby
Monofu has quit [Read error: Connection reset by peer]
Monofu_ has joined #ruby
Monofu_ has left #ruby [#ruby]
pu22l3r_ has joined #ruby
dnyy has quit [Remote host closed the connection]
m_3 has quit [Ping timeout: 246 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
pu22l3r_ has quit [Remote host closed the connection]
ebanoid has joined #ruby
vladiim has joined #ruby
niku4i has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
EzeQL has joined #ruby
_iMBA has joined #ruby
niku4i has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
bearlulz has joined #ruby
fantazo has joined #ruby
bluOxigen has joined #ruby
Karmaon has joined #ruby
burgestrand has joined #ruby
TheFuzzball has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
xnm has joined #ruby
tonini has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
andrewhl has quit [Remote host closed the connection]
hukl has joined #ruby
umttumt has quit [Remote host closed the connection]
vectorshelve has joined #ruby
raja has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
Vanila has joined #ruby
ringotwo has joined #ruby
Vanila has left #ruby [#ruby]
yoklov has quit [Quit: computer sleeping]
vladiim has quit [Quit: vladiim]
mayankkohaley has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
manizzle has joined #ruby
mockra has joined #ruby
Zirkon has quit []
nazty has joined #ruby
<greyEAX>
okay so i have a problem. i have a variable that's equal to a parse result. specifically, pdata = JSON.parse(data). the problem is that if the JSON string isn't formatted properly, it throws an exception and my script dies. I need to be able to stop that but I can't figure out how... can anyone help me?
burgestrand has quit [Quit: Leaving.]
<greyEAX>
oh i think i figured it out
<greyEAX>
hoo dee doo
nazty has quit [Ping timeout: 255 seconds]
quest88 has quit [Quit: quest88]
beilabs has quit [Ping timeout: 246 seconds]
macmartine has quit [Quit: macmartine]
wargasm has quit [Read error: Connection reset by peer]
vladiim has joined #ruby
mikepack has quit [Remote host closed the connection]
<circlicious>
Hanmac: umm, i dont want to globally install it ?
ph^ has joined #ruby
<circlicious>
umm, i dont know. i just felt like not installing gems for this project globally
<circlicious>
because i am going to pass userdata to these gems and execute in my app
<circlicious>
so keep it local to the project
<Hanmac>
banister you can try to ask me there too
mikepack has quit [Remote host closed the connection]
<circlicious>
so... not possible to fix this
<circlicious>
?
<banisterfiend>
Hanmac: when given a singleton class, do u know a ncie way to get the associated object i.e: obj.singleton_class ... from that figure out obj
zommi has joined #ruby
<charliesome>
is there a way to install gem dependencies locally to a project, like node_modules in node.js?
<circlicious>
charliesome: wow, even i am doing that
<circlicious>
i did for haml and slim, haml works fine, slim is not :/
<charliesome>
circlicious: how did you go about it?
<circlicious>
maybe the path needs to be there in GEMSPATH, whats the command to ad a patht o GEMS PATH?
<circlicious>
gem install -i gems/ - charliesome
<charliesome>
ah cool
<circlicious>
my project is node.js but i need few ruby gems
<circlicious>
and then execute their bin
<charliesome>
i'd like to be able to deploy this app of mine without sudo and i can't be bothered setting up rvm or rbenv
<circlicious>
smae here ll
<circlicious>
*lol
zomgbie has joined #ruby
<banisterfiend>
Hanmac: any idea
<Hanmac>
hm no ... i there must be a way because inspect shows the object id ... but i think its hiddin in the C site ...
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
<circlicious>
charliesome: let me know if u find cool ways
<charliesome>
will do
<circlicious>
right now i cant run slimrb, solution is probably to add the path to GEMSPATH via gemrc or bashrc
<circlicious>
but i dont want to do that even
<banisterfiend>
Hanmac: hmm if inspect shows object id, then u can probably use ObjectSpace._id2ref() to get the object back
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
JohnBat26 has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Changing host]
sandstrom has joined #ruby
ilyam has joined #ruby
<banisterfiend>
Hanmac: by breaking up string returned from #inspect
<banisterfiend>
but that feels weird
wallerdev has quit [Quit: wallerdev]
ilyam has quit [Client Quit]
jprovazn_away is now known as jprovazn
workmad3 has joined #ruby
<circlicious>
is there a Slim channel on IRC?
qwerxy has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
heftig has quit [Ping timeout: 248 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
vladiim has quit [Quit: vladiim]
ipoval has quit [Quit: ipoval]
ABK has joined #ruby
allanm has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
RainbowDashh has quit [Ping timeout: 246 seconds]
vladiim has joined #ruby
daniel_hinojosa has quit [Ping timeout: 260 seconds]
ankakusu has joined #ruby
timonv has joined #ruby
Solnse has joined #ruby
smckinney has joined #ruby
wardrop has quit [Ping timeout: 250 seconds]
nilg has quit [Read error: Connection reset by peer]
nilg has joined #ruby
nikhil_ has joined #ruby
RainbowDashh has joined #ruby
zamN has quit []
robotmay has joined #ruby
Asher1 has joined #ruby
nirakara has quit [Ping timeout: 264 seconds]
schovi has joined #ruby
Asher has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
gilead has joined #ruby
bearlulz has quit [Quit: Computer has gone to sleep.]
rohit has joined #ruby
bosphorus has joined #ruby
circlicious has left #ruby [#ruby]
<graspee>
does the gem format have a version number in it? like a version required number or something similar?
<graspee>
i find quite a lot of out of date gems that don't work and i thought it would be better if there was like a version number in the gem, and the author specified it, so if your gem works with 1.9.3 you put that version in; if a gem hasn't been touched for ages or is specifically for 1.8 the v number in there will be 1.8 and you get a warning like 'this gem may be out of date'
vladiim has quit [Quit: vladiim]
dhruvasagar has joined #ruby
_iMBA has quit [Read error: Connection reset by peer]
ciopte7 has joined #ruby
_iMBA has joined #ruby
<deryl>
there is already Gem::Specification#required_ruby_version its just not used often
<graspee>
that's the trouble with optional systems
<graspee>
it's just - i mean i know ruby is healthy and vibrant, but it could create quite a bad impression on someone starting with ruby if they keep bumping into gems that don't work
<graspee>
there's gems that are years old and don't work and haven't worked for years
<deryl>
plus, anyone and their brother can write a gem and push it out. no law out there that it has to be maintained, updated, or even fully conform. thats the problem
<graspee>
oh
<graspee>
i didn't realise that
<deryl>
no different than the shareware days
<graspee>
i thought there was some kind of gem maintainer
<deryl>
people dropping tons of crappy try-before-you-buy stuff
<deryl>
no, there is a central repository like http://rubygems.org but there is nothing that requires maintaining of the gems
robotmay has quit [Remote host closed the connection]
<deryl>
its up to the individual maintainers to do that. this is an open community. contribute as you can and as you will
<graspee>
so i could write a gem today that claims to analyse databases but instead writes "lol pangolin penis" unendingly on the screen?
<graspee>
and no-one would even be able to remove it?
vladiim has joined #ruby
Eldariof-ru has joined #ruby
<deryl>
can you remove a picture you put out publicy and be absolutely sure its gone? no.
<deryl>
same here
<deryl>
welcome to the wild wild west called the internet
<graspee>
i'm surprising the gem situation looks as professional as it does in that case
<graspee>
the possibility for abuse looks vast
<deryl>
because most gems that are worth anything are in common and constant use. you learn what to use and what not
<deryl>
no more so than irc
<graspee>
there doesn't seem to be any trolling in the gems though
<deryl>
irc has HUGE potential to be abused, and is. but the general cohesion of irc is there
<graspee>
couldn't someone just push out a hundred thousand gems, named after dictionary words that all do the same stupid thing?
<deryl>
i'm sure you understood the concept i was pointing out
<banisterfiend>
i am camping on the 'ruby' ge
<graspee>
i do but it is a little different because irc is like a river, flowing and disappearing
<deryl>
if someone did that, then the repository would clean it up once it was shown it was purely abusive
<deryl>
same with code.
<banisterfiend>
graspee: gem install ruby, installs my little thing :P (it does rm -rf /)
<deryl>
people come and go. gems die off, their carcasses litter the internet
<graspee>
you seriously wrote that, banister?
dhruvasagar has quit [Ping timeout: 246 seconds]
<banisterfiend>
graspee: try it and see, gem install ruby
<graspee>
no because i'd have to sudo do it so it would work
rohit has quit [Quit: Leaving]
h0rd has quit [Remote host closed the connection]
<banisterfiend>
graspee: well then u have noting to worry about
<graspee>
it would cost me hours of time to put my system back
<banisterfiend>
graspee: so u might as well install it
<deryl>
the community is pretty sauve. it gets out what should and should not be used. people pay attention to newsgroups, mailing lists, podcasts, hang out in channels, google things and look at what the majority are using.
dhruvasagar has joined #ruby
<deryl>
thats pretty much how any opensource community polices itself
Asher has joined #ruby
<deryl>
same in the linux community. there are literally *craloads* of dead and bygone apps out there
<deryl>
and a lot of good solid used-everyday apps
<graspee>
you said the repository would clean it up though. i thought there was no maintainer?
<deryl>
there is no central gem police force
<deryl>
thats what you were aiming at
<deryl>
if it was shown that there was a dangerous and mass-dumped gem such as your example, the server admins woud remove it because of taht
<graspee>
i didn't make my point clearly then sorry, i just meant someone who had the power to delete gems that were obviously rubbish and clear up problems
<deryl>
obvious to whom? one man's trash is another man's treasure
<graspee>
if it does rm -rf it's not anyoene treasure
Guest92562 has quit [Remote host closed the connection]
<deryl>
if it was known that gem 'mylovelygem' was really a trojan or a machine killer, the repositories would ban it.
<graspee>
well that's what i meant really
<deryl>
but beyond that.. welcome to the internet where anything goes
<davidcelis>
are we talking about bumblebee
<deryl>
well you need to be specific when you're talking about policing
<deryl>
and thats dead on what you're suggesting. full on policing
<graspee>
i didn't use the word policing
<deryl>
i am
Asher1 has quit [Ping timeout: 276 seconds]
<graspee>
i said maintainer
<deryl>
your concept is generally called policing
<deryl>
gems are maintained by their creator
dekroning has joined #ruby
<davidcelis>
i remember when uninstalling bumblebee ran `rm -rf /usr`
<dekroning>
good morning
<deryl>
all places like rubygems does is make gems centrally available
<deryl>
like perl's CPAN
<deryl>
yes, dangerous gems that are intently malicious generally get removed. but a gem thats just broken or not maintained or is just plain crappy isn't going to be removed.
<graspee>
great i'm paranoid about using gems now
<davidcelis>
lol
TPFC-SYSTEM has joined #ruby
<deryl>
you should be paranoid about anything you didn't write.
<davidcelis>
i'm paranoid of things deryl writes, but that's about it
<deryl>
at least anyone sane would be
<davidcelis>
i'm mostly paranoid about the things i wrote, though
mockra has quit [Remote host closed the connection]
<deryl>
davidcelis: you should be. that gem i installed last night fires off in two weeks and impregnates your dog with alien dna
<banisterfiend>
hehe
<banisterfiend>
deryl: nice imagery
<davidcelis>
`gem build gemspec && gem push` oh shit i hope i didn't break everything, fuck fuck fuck
<graspee>
i'm going to have to read the source of every single gem now
<deryl>
banisterfiend: lol. i try :)
<graspee>
before i install it
<davidcelis>
graspee: yeah dude, that's what you're SUPPOSED to do
<davidcelis>
don't install shit without knowing what it does
<deryl>
hell i know people that dumpster dive their compiler's source before the build and install it
<deryl>
a
<deryl>
l
<graspee>
no-one has time to read the source of everything they install
Shoobdidoo has joined #ruby
<deryl>
l depends on how 'paranoid' you want to be. where is your 'implicit trust' level crossed
<davidcelis>
graspee: at least skim it; and don't lie and say you don't have time to skim through the code
<graspee>
i didn't say anything
clockwize has joined #ruby
<deryl>
graspee: you're here complaining about it. that time you took to say something about it could have been spent skimming some of that code :)
vladiim has left #ruby [#ruby]
<deryl>
there's as much time as you personally make available
<graspee>
there is a bit of an edge developing to this convo so i'm going
rouss has quit [Ping timeout: 272 seconds]
nikhil_ has quit [Quit: This computer has gone to sleep]
<deryl>
basically it just comes down to this is an open community. and the general warranty is there is no warranty
<deryl>
ad like any community there are nutballs in it, and solid upstanding citizens
arturaz has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
fantazo has quit [Remote host closed the connection]
Shoobdidoo has quit [Client Quit]
wardrop has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<graspee>
i never should have taken banisterfiend off ignore. he's writing shit about me in other channels now. what a troll
Criztian has joined #ruby
<banisterfiend>
graspee: your reactions are so hysterical and ridiculous it makes it too tempting, u're fun to troll
<graspee>
go fuck yourself
<banisterfiend>
and threatening to take someone to court because they're being teasing to u on irc is LOL
<deryl>
pure lol
<banisterfiend>
s/being//
dhruvasagar has quit [Ping timeout: 265 seconds]
<Criztian>
lol who said it?
jenglish has joined #ruby
<deryl>
hell they can't even use threatening to kill someone against you even as evidence until after you do.
<banisterfiend>
Criztian: graspee is going to take me to court cos im teasing him in an irc channel
dhruvasagar has joined #ruby
<deryl>
depending on who you're threatening you MIGHT have a cop show up if the person has enough personal power. but beyond that.. hahahah
<Criztian>
trollers would all be in jail then
<deryl>
no shit :)
rudle has joined #ruby
<graspee>
several people have been jailed or fined for saying things on facebook or twitter
<banisterfiend>
haha he's srs
<deryl>
because they did something IN ADDITION TO
<graspee>
like joking about bombing an airport
<graspee>
no
<graspee>
just the text
<deryl>
uhh dude, now you're just trying to troll. go ahead here.
<Criztian>
graspee: because facebook and twitter has much more visibility
<graspee>
some people were jailed because they said 'let's riot' or something on facebook
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
<graspee>
the guy who joked about bombing an airport on twitter got jailed i think or fined
<deryl>
I am seriously easy to find. So, please open a lawsuit against me. I am hereby telling you to go fuck yourself and if I see you in real life I'm break your legs.
<Criztian>
plus if you say something about someone, there's both name and last name of that person you are insulting, it's not anonymous
L-----D has quit [Quit: Leaving]
<graspee>
who are you talking to?
<deryl>
so.. how much you want to seek in damages
<banisterfiend>
graspee: calling someone names on irc != threatening to bomb an airport
<banisterfiend>
idiot
<deryl>
graspee: you
piotr_ has joined #ruby
emmanuelux has joined #ruby
<deryl>
I am Deryl R. Doucette. I;'m easy to find. Please sue me for that
<Criztian>
calling names is bad anyway
<graspee>
i know you're not serious though so there's no danger
<graspee>
because you're just trying to make a point
<deryl>
you THINK i'm not serious
<deryl>
what if I am?
<graspee>
this whole conversation is pointless and off topic
schovi has quit [Remote host closed the connection]
clockwize has quit [Read error: Connection reset by peer]
clockwize has joined #ruby
<banisterfiend>
locriani: can i get pocket planes for android?
flype has joined #ruby
schovi has joined #ruby
rakunHo has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
liluo_ has joined #ruby
liluo has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
dhruvasagar has joined #ruby
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
snearch has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
ramblex has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
beneggett has joined #ruby
codelette has joined #ruby
Banistergalaxy has joined #ruby
apeiros_ has quit [Remote host closed the connection]
pureluck_ has joined #ruby
umttumt has quit [Remote host closed the connection]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 246 seconds]
pureluck_ has left #ruby [#ruby]
pureluck has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
demian`_ has joined #ruby
mobilegamelabs has joined #ruby
juo100 has joined #ruby
ccapndave has joined #ruby
mobilegamelabs has quit [Remote host closed the connection]
<ccapndave>
Hey there - I have a Gemfile containing gem "ember-docs", :git => "https://github.com/emberjs/docs-generator.git", and then a rakefile with require 'ember-docs' at the top, but I'm getting 'Cannot load such a file ember-docs'. I have run bundle install. Does anyone have any suggestions?
demian`_ has quit [Quit: demian`_]
<juo100>
How can I go about debugging a slow regex? https://gist.github.com/540662848633d066b262 the first one executes in 0.000058 but the second one takes a whopping 0.986590 just because I've append .html on the end
dhruvasagar has quit [Ping timeout: 264 seconds]
mobilegamelabs has joined #ruby
<juo100>
1.536094 on 1.8.7
dhruvasagar has joined #ruby
udante has joined #ruby
<bnagy>
try to get rid of lookaheads
ananthakumaran has quit [Quit: Leaving.]
Faris has joined #ruby
banisterfiend is now known as horesman
yeggeps_ has joined #ruby
akem has joined #ruby
yeggeps has quit [Read error: Connection reset by peer]
ramblex has quit [Quit: ramblex]
keanehsiao has joined #ruby
<keanehsiao>
hihi
moshef has quit [Quit: moshef]
<keanehsiao>
I'm doing http-request from sinatra with open-uri
<keanehsiao>
and it tell me connection refuse.. but if I try it in rib or with browser, it has no problem.. any clue?
nirakara has joined #ruby
glutton has joined #ruby
kaiwren has joined #ruby
monkegjinni has joined #ruby
bgupta has quit [Ping timeout: 244 seconds]
heftig has joined #ruby
ph^ has quit [Remote host closed the connection]
_iMBA has left #ruby [#ruby]
ph^ has joined #ruby
elhu has joined #ruby
<_br_>
keanehsiao: Do you have a stack trace?
binaryplease has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
<keanehsiao>
I got some clue.. If I disable sinatra-synch it works fine… does it means I can't do it with this gem???
<elhu>
Hi! Is there a trick to prevent IRB from exiting after receiving input from the STDIN via a pipe? I'm trying to run the following command: echo "load './tools/.irbrc'" | bundle exec irb, everything loads fine, but as soon as irb is done interpreting the content of the .irbrc file, it exits back to the shell….
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby
WikiPack has joined #ruby
cjs has quit [Ping timeout: 248 seconds]
ph^ has quit [Ping timeout: 276 seconds]
methoddk has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
yeggeps_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
WikiPack has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
wardrop has joined #ruby
<shevy>
hi with mruby, mirb
<shevy>
require 'pp'
<shevy>
NoMethodError: no method named require
<shevy>
where the hell is require! :(
fermion has quit [Read error: Operation timed out]
<Hanmac>
xD shevy mruby is not finish yet
<shevy>
yeah but ...
<shevy>
I mean to load other files
<shevy>
that is like one of the most basic things!
<shevy>
hmm lemme try load...
<shevy>
NoMethodError: no method named load
<shevy>
waaaaaah
RORgasm has quit [Ping timeout: 245 seconds]
fermion has joined #ruby
udante has quit [Disconnected by services]
udante_ has joined #ruby
udante has joined #ruby
udante has quit [Client Quit]
atmosx has quit [Ping timeout: 276 seconds]
wardrop has quit [Ping timeout: 246 seconds]
udante_ has quit [Ping timeout: 244 seconds]
atmosx has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
ananthakumaran has joined #ruby
ph^ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Spooner has joined #ruby
wardrop has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
BiHi has quit [Ping timeout: 244 seconds]
mxweas has quit [Ping timeout: 260 seconds]
binaryplease has quit [Ping timeout: 248 seconds]
mxweas has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
liluo_ has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
ZachBeta has joined #ruby
ramblex has joined #ruby
iocor has joined #ruby
pureluck has quit []
oponder has joined #ruby
SphericalCow has quit [Ping timeout: 272 seconds]
Lachryma has joined #ruby
miho has joined #ruby
Faris1 has joined #ruby
Progster has quit [Ping timeout: 252 seconds]
methoddk has joined #ruby
jbw_ has quit [Ping timeout: 245 seconds]
Criztian has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
wardrop has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
Faris has quit [Ping timeout: 255 seconds]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
blacktulip has quit [Remote host closed the connection]
kaspernj has joined #ruby
cartman has joined #ruby
<cartman>
is there a replacement for ruby_nerrs in Ruby 1.9 (C API) ?
RainbowDashh has quit [Read error: Connection reset by peer]
igaiga has joined #ruby
samuel02 has joined #ruby
RainbowDashh has joined #ruby
nirakara has quit [Ping timeout: 244 seconds]
mxweas has quit [Ping timeout: 272 seconds]
<horesman>
cartman: what is ruby_nerrs
<Hanmac>
cartman what did ruby_nerrs doo?
RainbowDashh has quit [Read error: Connection reset by peer]
<cartman>
a way to see if script execution somehow failed, it counted number of errors AFAIK
RainbowDashh has joined #ruby
<cartman>
here is the code using it
jonathanwallace has joined #ruby
<cartman>
VALUE result = rb_rescue2((VALUE(*)(...))callExecute, args, (VALUE(*)(...))callExecuteException, m_script, rb_eException, 0);
<cartman>
if (ruby_nerrs != 0) {
<cartman>
so its trying to check if execution failed.
mxweas has joined #ruby
pureluck has joined #ruby
tk___ has joined #ruby
mengu has joined #ruby
Markvilla has joined #ruby
<cartman>
Hanmac, horesman any ideas?
Markvilla has left #ruby [#ruby]
Markvilla has joined #ruby
jbw_ has joined #ruby
beilabs has quit [Ping timeout: 246 seconds]
<horesman>
cartman: no sorry
oc has joined #ruby
umttumt has joined #ruby
bier has quit [Ping timeout: 272 seconds]
saschagehlich has joined #ruby
zommi_ has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
oponder has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
beilabs has joined #ruby
dhruvasagar has joined #ruby
pk1001100011 has joined #ruby
bier has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Gavilan has left #ruby [#ruby]
Solnse has quit [Ping timeout: 246 seconds]
luGuan has joined #ruby
<bnagy>
vectorshelve: #rubyonrails
<bnagy>
or possibly #dieinafire
ph^ has quit [Remote host closed the connection]
bluenemo has quit [Ping timeout: 255 seconds]
sspiff has quit [Ping timeout: 248 seconds]
<shevy>
vectorshelve come to ruby man, leave rails behind you!
<bnagy>
NO GO TO.. SOMETHING ELSE
ph^ has joined #ruby
<bnagy>
but also leave rails behind
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
pastrami has joined #ruby
<bnagy>
vectorshelve: try #c I hear they're friendlier there
Solnse has joined #ruby
<Divinite>
Go to python!
luGuan has left #ruby [#ruby]
pastrami has quit [Client Quit]
<vectorshelve>
shevy: Yeah hopefully I should leave rails in a few months if I crack amazon for which I am preparing and I will b rich :D
IrishGringo has joined #ruby
<bnagy>
lol
<shevy>
naaaah
<bnagy>
vectorshelve: you should try MS and Google too, just to keep your options open
<shevy>
amazon became rich because of their superior logistics man
<bnagy>
play them off against each other
<shevy>
it's easier here to order from amazon rather than go out and buy books in classical shops
<bnagy>
I mean top talent, like you...
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
<ij>
If I .select from array and then .inject or something, then the array gets iterated over only once, since select -> #<Enumerator>, right?
<workmad3>
shevy: it's frequently cheaper too
ph^ has quit [Ping timeout: 245 seconds]
<shevy>
damn google
<vectorshelve>
bnagy: I am now preparing DS and algo each day as part of my preparation.. and then within 2 months will give a try... hopefull something good will happen.. or else will try again :D
<shevy>
yesterday when I used gmail, suddenly there was a popup, suggesting to me to use a fast and open source browser, then a link to chrome
<shevy>
I was using firefox :(
<vectorshelve>
shevy: bnagy preparing DS and algo in C++ :) I like it too
<vectorshelve>
shevy: why sad.. its good that google supports open source ;)
<shevy>
vectorshelve the bastards want to have everyone use in-house products only apparently
<workmad3>
shevy: when I checked on sunspider with the latest FF and chrome releases about a month ago, FF was faster than chrome :)
<shvelo>
shevy: hey brother
<shevy>
yah well, chrome kinda chops on firefox away slowly
<workmad3>
shevy: they keep on switching atm, I think
<shevy>
I guess that trend can not be really stopped, or reversed any time soon
<workmad3>
shevy: FF releases, a tad faster than chrome, chrome releases, a tad faster than FF...
<bnagy>
vectorshelve: you go girl. It's good to have dreams.
<shevy>
but it's making me angry if they advertize for their own products evenmore so. I like alternatives! but it's getting harder and harder... :(
<shevy>
hey shvelo, thought you are shlevy for a moment :)
sepp2k has quit [Remote host closed the connection]
<workmad3>
shevy: and chrome hasn't afaik, really decreased the userbase of FF (some attrition, but not a massive amount)... mostly they've gotten disaffected IE users :)
<shvelo>
shevy: lol
<shevy>
I tell ya, you should call yourself shvely
<shevy>
it would be PERFECT confusion
<vectorshelve>
shevy: hmmm
<shevy>
workmad3, yeah I am not sure... I guess it depends on which statistic one looks at
<shvelo>
shevy: i don't want confusion :D
<vectorshelve>
bnagy: why dreams ? :( cant it b reality ?
<shevy>
only good thing is that IE is losing to everyone else (haha)
<graspee>
chrome gives me grief in linux and ff gives me grief in windows
<workmad3>
graspee: use a mac
<workmad3>
graspee: then they can both give you grief ;)
dhruvasagar has joined #ruby
<graspee>
i have neither the money nor the inclination
<shevy>
considering that IE still had a 50% share for that site, at least, in August 2008, it's almost extinct now in 2012 :P
<bnagy>
vectorshelve: well given the correlation between people that can correctly write 'be' and people that get good jobs for MS / Google...probably not in your case
timonv has quit [Ping timeout: 260 seconds]
<ij>
bnagy: Maybe he's so good and into coding that he doesn't even english anymore.
<shevy>
the prototypic dude from india is the one in The Big Bang Theory
<workmad3>
ij: I don't english... does that make me awesome? :D
pk1001100011 has joined #ruby
<graspee>
the big bang theory is the most unrealistic show ever made
cartman has left #ruby [#ruby]
heftig has joined #ruby
<shevy>
ij even the japanese need to know a few word in english if they wanna write ruby code :D
<shevy>
graspee, I only watch the bloopers
<ij>
Does this channel ever ruby or is it mainly offtopic?
moshef has joined #ruby
<workmad3>
graspee: seriously? you're picking BBT over something like Heroes as 'The most unrealistic show ever made'?
timonv has joined #ruby
<shevy>
ij we ever ruby. do you have a ruby question ij?
<graspee>
workmad3: yes
<graspee>
in bbt the geeks get hot gfs
<workmad3>
graspee: oh, haha :)
<ij>
shevy: at Hour:39:22, yes.
<graspee>
that surpasses anything that happens in heroes
<shevy>
39 hours?
<ij>
minutes
<shevy>
my client does not show me the time
<ij>
What a crappy client. :> Can it scroll up half of a screen?
<shevy>
yeah but I need to scroll with my mouse :(
<vectorshelve>
bnagy: internet slang dear :D
tvw has joined #ruby
<ij>
Can't be that xchat doesn't show time.
hatoishi has joined #ruby
<workmad3>
graspee: rajesh doesn't... and wolowitz's doesn't really count because she's a geek too and has quite severe personality 'issues' :)
<shevy>
ij .select returns to me a new Array
juo100 has quit [Quit: juo100]
<bnagy>
vectorshelve: yeah but it's internet slang that's used by 13 year old and the mentally handicapped
<workmad3>
graspee: in fairness, the leonard's character is the one that gets the hot GF and it's a bit unrealistic... but it took him a long time to wear her down to the point of dating him :)
bluenemo has joined #ruby
blacktulip has joined #ruby
<bnagy>
vectorshelve: actual programmers cultivate immaculate spelling and grammar
<vectorshelve>
bnagy: forgive me for my sins jesus ;)
<bnagy>
no
<shevy>
ij, and then you can use .inject on that Array
<graspee>
90% of programmers can't use apostrophes properly
<graspee>
despite knowing the finest details of perl etc. syntax
<shevy>
I dont know perl
<bnagy>
*detail's
<workmad3>
graspee: if it was heroes, they would have randomnly stopped and started dating between each episode, then history would have changed and sheldon would have become evil, then good, then leonard's brother...
<vectorshelve>
bnagy: hmm... u mean a c++ developer who writes strlen will develop good grammer :D
<shevy>
I should have used a ' in dont but I am too lazy
<bnagy>
vectorshelve: grammar
<workmad3>
vectorshelve: a C++ developer who uses strlen isn't doing C++ :P
<shevy>
perl has the eskimo operator however, which makes it cool
ph^ has joined #ruby
<shevy>
lol
<shevy>
bnagy is correcting vectorshelve
`brendan has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<shevy>
something is odd with my computer... it seems to work slower when it is hot outside
<workmad3>
vectorshelve: there's a method in C called strlen that gets pulled into C++ because C++ is a superset of C, but it's not part of C++ as C++ has proper string objects and string object methods like 'someString.length'
<shevy>
vectorshelve I don't like war. is war good or bad? is it about perception?
Solnse has quit [Read error: Connection reset by peer]
<graspee>
yes actually
<Gurpartap>
shevy: is that the way you thought?
<shevy>
Gurpartap not sure about the children
<Gurpartap>
vectorshelve: yep :D
geekbri has joined #ruby
<vectorshelve>
workmad3: ok I know.. u take any language its ancestor is c unlike something like FORTRAN.. so it really doesnt matter ;P
<locriani>
banisterfiend: not sure, I'd check nimblebit's website
ananthakumaran has joined #ruby
<workmad3>
shevy: I don't know any other language that you can get > 1000 lines of error messages out of about 20 lines of code... C++ is fun :)
<shevy>
really no idea... what is the UNIX way to fork then modify ids? I'd think that it can't be done, but I can very well be wrong :)
<vectorshelve>
shevy: are we having a war of blood here or general exchange of ideas and views ?
<shevy>
vectorshelve I was making a comment to your reference of perception
<workmad3>
vectorshelve: no, C++ is a superset of C, not a descendent of C... the C++ standard pulls in the C standard
ananthakumaran1 has quit [Ping timeout: 245 seconds]
<vectorshelve>
shevy: exactly// opinions are perceptions :)
<Gurpartap>
shevy: the way i put above works fine. but i thought process.spawn was added to ruby 1.9 for the ease of the fork fork fork complexity
<shevy>
if smart people honestly say that x sucks, then it could well be that their perception is correct and others is not
<vectorshelve>
workmad3: c++ came out from c
<vectorshelve>
Gurpartap: reply.. i queried you :)
<shevy>
Gurpartap aha, not sure. I am on 1.9.3 since only 2 weeks :D
<bnagy>
no c== came out of stoustrup's bum, and it didn't come out like he wanted it
<Gurpartap>
shevy: hah
<Gurpartap>
LOL
<shevy>
I was on 1.8.7 for a looooong long time
Progster has joined #ruby
kaspernj has quit [Ping timeout: 248 seconds]
<Gurpartap>
vectorshelve: i hope you noticed the reply above lol
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Gurpartap>
v-e-c-t-o-r-s-h-e-l-v-e
<Gurpartap>
there you go
Stormbytes has joined #ruby
<workmad3>
bnagy: "When I created object-oriented programming, C++ is not what I had in mind." - Alan Kay :)
<vectorshelve>
Gurpartap: no.. I asked u where u from
Solnse has joined #ruby
Divinite has quit [Ping timeout: 248 seconds]
<vectorshelve>
workmad3: When I started programming as a kid C++ is what I was fond of.. and it pretty much did all work for me except drinking eating and sleeping
<Gurpartap>
vectorshelve: no. you asked if i'm indian; [17:27] <Gurpartap> vectorshelve: yep :D
<shevy>
vectorshelve does not even remember his own questions from 3 minutes ago :D
dhruvasagar has quit [Ping timeout: 244 seconds]
<shevy>
Alan Kay is my hero along with matz
<shevy>
then comes a long empty gap
<bnagy>
kids these days
<vectorshelve>
shevy: I queried him.. seems he knew it pretty late :D
<shevy>
then, I dunno... perhaps linus, perhaps not. and then after a long time come my enemies!
<shevy>
but they are boring, so I go back to find new heroes
Solnse2 has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
<vectorshelve>
shevy: yeah u better support me... we have been friends for long now :D and I am coming all the way to northern Italy to have beer with you ;)
keanehsiao_ has joined #ruby
<Gurpartap>
bnagy: true. i'll have a relook if there's anything useful
<shevy>
no please
<shevy>
banister already wants to haunt me
ringotwo has joined #ruby
wmoxam has joined #ruby
<shevy>
I think people should never travel :>
<workmad3>
shevy: aww, you're popular :P
<workmad3>
shevy: don't worry... the only thing I'll do is send you hate mail ;)
<bnagy>
Gurpartap: Process::UID GID but you'll only be able to drop privs obviously
<shevy>
when I am old and rich I will make a world travel for several months
timonv has joined #ruby
keanehsiao has quit [Ping timeout: 272 seconds]
Solnse has quit [Ping timeout: 240 seconds]
<bnagy>
better to do it before you're old :)
<samuel02>
How do I calculate the amount of days between two DateTime objects with in_time_zone?
Solnse has joined #ruby
nyuszika7h has joined #ruby
Markvilla has quit [Quit: Markvilla]
<bnagy>
wth is 'in_time_zone' ?
<bnagy>
is this rails crap?
<shevy>
hehe
<samuel02>
bnagy, rails method to get simultaneous time in Time.zone, yep :D
Markvilla has joined #ruby
<vectorshelve>
Gurpartap: kaha se ho tum ?
Divinite has joined #ruby
<vectorshelve>
samuel02: I am planning to visit Prague ;)
<shevy>
Time.zone NoMethodError: undefined method `zone' for Time:Class
<samuel02>
shouldn't make a difference though? still returns a Time object
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
<horesman>
bnagy: do the locals drink alcohol btw?
zz_chrismcg is now known as chrismcg
timonv_ has quit [Ping timeout: 250 seconds]
fermion has joined #ruby
ramblex has joined #ruby
nyuszika7h has joined #ruby
chrismcg is now known as zz_chrismcg
<bnagy>
yeah
<bnagy>
you'd like shivaratri :)
frishi has quit [Quit: Leaving...]
IrishGringo has quit [Remote host closed the connection]
krusty_ar has joined #ruby
<shevy>
hmm when using ruby in .cgi pages, the classical ENV is unavailable. any other way to access shell variables in .cgi scripts?
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Criztian has joined #ruby
nari has joined #ruby
wmoxam has joined #ruby
RORgasm has joined #ruby
d3c has joined #ruby
wardrop has joined #ruby
kaspernj_ has joined #ruby
grendlme has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
EzeQL has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: leaving]
cjs226 has quit []
RORgasm has quit [Ping timeout: 245 seconds]
schovi_ has joined #ruby
kaspernj has quit [Ping timeout: 245 seconds]
schovi_ has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
umttumt has quit [Remote host closed the connection]
schovi_ has joined #ruby
schovi has quit [Read error: Connection reset by peer]
<kmap>
i feel so sorry for this insane thing i did
<kmap>
is it for beginners
<bnagy>
which is programming ruby, from above
<kmap>
i am rather interested in hard book
<shevy>
ok so you worked through it at least once already?
thmzlt has quit [Remote host closed the connection]
<shevy>
well then the pickaxe
jxf has joined #ruby
<shevy>
but you really really should write ruby code on your own as soon as possible
<bnagy>
poignant guide
<bnagy>
that's hard
<kmap>
how is ruby different from php
<bnagy>
in many ways
<graspee>
isn't cartoon fox book a bit out of date these days?
<shevy>
ruby is more complex
<shevy>
it is however also more consistent and terser than php
<bnagy>
it's not retarded and it's not written by morons?
<kmap>
is it faster than php
<kmap>
php/mysql
<shevy>
when you write poetry in ruby, it can be elegant. when you write poetry in php, it will always read like poetry from a confused 4 years old kid
<bnagy>
and also compromise your server
<shevy>
if you look for speed differences then you will never be happy
<shevy>
or you use C
wardrop has joined #ruby
<kmap>
any php programmer here
<ij>
I used to do that for money.
<shevy>
lots of ex-php guys here ;)
<Fraeon>
ij: I'm so sorry
<ij>
So am I.
<shevy>
lol
<ij>
But it's always've been only for money, so it's reasonable.
<Fraeon>
I did it for fun once
<ij>
Ruby is also for fun. :]
<Fraeon>
Slinging that spaghetti php
<carloslopes>
ij: +1 :)
<shevy>
kmap there comes the moment when you will feel that you want a better language than php
<kmap>
i worked on more than 100 websites on wordpress
<locriani>
goofy badcat has taken over my desk
<locriani>
aaaarh
<shevy>
wordpress puts you into a cage
<shevy>
it looks to be a beautiful cage but it is still a cage
<kmap>
shevy are u ruby programmer
<shevy>
sure
<kmap>
what is ruby on rails
<shevy>
but you sound like a web-only guy
<bnagy>
graspee: re: poignant, the section on metaprogramming is still as good as I have seen, and the introspection chapter is good as well
<shevy>
dont ask me, ask on #rubyonrails. i use ruby because I like the language and I do not constrain myself to any single field for it
<bnagy>
also, if people are still using the fricking pickaxe, then obviously we don't move forward quickly
<ij>
kmap: RoR is great framework written in ruby.
<kmap>
i am a linux admin
ciopte7 has quit [Quit: ciopte7]
hynkle has joined #ruby
<locriani>
I am a slightly obese llama
<shevy>
lol
<locriani>
oh sorry this is #ruby not #furries
<locriani>
:V
<ij>
shevy: I find that ruby people at my place've forgotten a ruby that exists without rails.
<locriani>
ij: it's easy to do
<locriani>
since ruby on rails is kind of the golden child of ruby
<bnagy>
locriani: you yiff even once and I will stab you
<graspee>
surely it's ruby that needs to move forwards, not the pickaxe
<locriani>
bnagy: I yiff even once I'll stab myself don't wory
<bnagy>
graspee: yeah that makes no sensd
<bnagy>
*sense
<carloslopes>
ij: omg don't say this!! ruby is reeeeaally big and great without rails :)
<graspee>
it does
sailias has quit [Quit: Leaving.]
<ij>
carloslopes: what
<graspee>
you said if people are using the pickaxe we don't move forward quickly
<ij>
I didn't say it isn't.
krusty_ar_ has quit [Read error: Connection reset by peer]
<kmap>
i am looking for friends good in ruby/php
<graspee>
i don't know what that means if you didn't mean I thought you meant
<kmap>
i have a billion dollar idea which i need help
<bnagy>
kmap: if you're going to start asking people to cyber then you really need to try #rubyonrails
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
<ij>
What do you mean by friends?
krusty_ar has joined #ruby
<horesman>
kmap: is it the next facebook killer
<ij>
bnagy: by cyber you mean..?
<kmap>
friends online whom i can ask things
pk1001100011 has joined #ruby
wardrop has quit [Ping timeout: 260 seconds]
<ij>
You can ask things in irc.
<ij>
That's what it's for.
<kmap>
i am a web guy
<ij>
I am a programmer.
<bnagy>
graspee: the pickaxe is oooold. Idiom has moved on, and yet we're still recommending it to newbies
<graspee>
like spiderman?
<ij>
No, I am a furry.
<ij>
YIFF
<kmap>
i have a website that made $6000 per month
<ij>
made or makes
<locriani>
I've never understood what yiff means
<graspee>
what exactly do you mean by idiom in this sense? do you mean elements of ruby programming style at the language level or do you mean new tools and so on
<kmap>
made its now banned from google
<bnagy>
locriani: urbandictionary.com
<ij>
kmap: Why?
rippa has joined #ruby
SeanLazer has quit [Quit: SeanLazer]
<kmap>
ij it was going beyond google
<horesman>
ij: im guessing he was selling the "make your dick bigger" pills
<locriani>
bnagy: if I have to UD it, I'm not sure I want to know
<ij>
In what way?
<bnagy>
graspee: idiom only means one thing
<ij>
horesman: likely
<locriani>
bnagy: eewwww
<bnagy>
well I warned you
<graspee>
yes "idiom" only means one thing but you need context
<kmap>
15000 people was coming daily on it
<locriani>
no I warned myself
<ij>
kmap: name the domain
nari has quit [Ping timeout: 240 seconds]
<bnagy>
ok but I tacitly warned you
<kmap>
ebook net working dot net
<bnagy>
which is the same thing
<bnagy>
kmap: aka the domain you were spamming before?
<graspee>
the pickaxe book teaches you ruby. it teaches you how hashes work and variables and methods and objects. are we somehow not using them anymore?
sspiff has quit [Ping timeout: 246 seconds]
<graspee>
have we moved on from the "idiom" of using objects?
<bnagy>
graspee: yes, that's exactly what I meant, and here are your victory wings
<bnagy>
I refuse to have a battle of wits with an unarmed man
sspiff has joined #ruby
<graspee>
you shuold refuse to steal quotes too
sspiff has quit [Changing host]
sspiff has joined #ruby
<bnagy>
memes get sad if they're not used, that's why they're memes :)
<horesman>
bnagy: graspee is an idiom, a noob with a chip on his shoulder.
freeayu__ has quit [Read error: Connection reset by peer]
<horesman>
bnagy: idiot* :P
<graspee>
just so long as you don't confuse meme use with wit
nirakara has joined #ruby
stat1x has quit [Remote host closed the connection]
jimmy1980 has quit [Ping timeout: 244 seconds]
<bnagy>
graspee: I'm less easily confused than some - eg regarding simple definitions
wardrop has joined #ruby
stat1x has joined #ruby
<graspee>
just tell me why you think the pickaxe book is no longer relevent
<graspee>
when it teaches ruby language up to 1.9.3
<bnagy>
but, ha! silly me I've mistaken you for an interloctor insyead of a potplant
<kmap>
what is pickaxe
<graspee>
a book on ruby
virunga has joined #ruby
<locriani>
I never read the pickaxe book so
<musee>
kmap: do you recognize my name?
robbyoconnor has quit [Ping timeout: 246 seconds]
freeayu__ has joined #ruby
<kmap>
yes musee
<musee>
D:
<horesman>
pickaxe book just struck me as a bad book, it's bloated and repetitive and there were a few basic mistakes i remember too (can't recall any right now)
<horesman>
the best book on ruby is 'the ruby programming language' by matz & flanagan. It's concise, surveys the entire language even edge cases, and is much smaller and more focussed.
<bnagy>
which I'm sure makes it great _for_a_book_
<kmap>
musee pm me
<graspee>
what's wrong with a book? what do you want? ruby the opera?
<graspee>
the book teaches you the basics. the basics are the same
<musee>
idiom idiom idiom
<bnagy>
'the way code is written', how's that?
nirakara has joined #ruby
<graspee>
it's not that i don't understand "big words"
<locriani>
organic idiom
<graspee>
it's that you're not contextualising them enough to be comprehensible
saschagehlich has quit [Quit: saschagehlich]
wmoxam has quit [Quit: leaving]
<bnagy>
sorry I didn't realise it was a word whose meaning was mutable enough to need contextualising :)
<graspee>
it is
<bnagy>
"the way we do shit"
<bnagy>
changes
<graspee>
yeah what fucking way
<graspee>
and what fucking shit?
<bnagy>
code. ruby. a lot.
<graspee>
at the basic language level things are the same
<graspee>
it's a book for beginners
<graspee>
for people who don't know how to write a class definition yet
<graspee>
the book tells them
<graspee>
how can that go out of date unless the language changes?
hynkle has quit [Read error: Connection reset by peer]
<graspee>
then over half the book is refence for standard library objects which haven't changed much since the book was writen
<kmap>
ij?
dv310p3r has joined #ruby
jxf has quit [Ping timeout: 276 seconds]
jxf has joined #ruby
yeggeps has joined #ruby
<workmad3>
graspee: a book that teaches bad style and obsolete ways of doing things isn't really that good for a beginner because they don't have enough knowledge yet to pick out just the relevant bits
<shevy>
the pickaxe showed examples how to use @@vars
monkegjinni has left #ruby ["Leaving..."]
<shevy>
it took me some time before I realized that @@ absolutely stink
<Gurpartap>
Why does Process.setsid require root privileges, while the `setsid` command does not?
<bnagy>
yay for nepal internet
<shevy>
Gurpartap could be a bug :D
mfridh has joined #ruby
<bnagy>
workmad3: right, which is not unique to the pickaxe
<graspee>
is it just because i'm not into rails at all that i disagree with you two on this
<Gurpartap>
shevy: for example, i can't drop priveleges (change uid/gid) and then make a call to Process.setsid to reset the session
<Gurpartap>
s/priveleges/privileges/
<bnagy>
LOTS of the books have crazy 'I do it this way' moments which are downright dangerous to people using that as their only source
<bnagy>
what was that shadow class metaninja whatever book?
chson has quit [Remote host closed the connection]
<bnagy>
guy just coined like 5 terms which are insane
silverfilain has joined #ruby
<Gurpartap>
shevy: you sure? :D
faitswulff has joined #ruby
<workmad3>
bnagy: that was actually a recruitment agent who called them that and some guy in here had picked it up and liked it
<workmad3>
bnagy: metaprogramming ruby coined things like ghost methods
silverfilain has left #ruby [#ruby]
<graspee>
maybe that's the case for that book, but i don't see what's so controversial in the pickaxe book. i don't see what's bad about class variables either
cjs226 has joined #ruby
<horesman>
graspee: that's because you're still very new to ruby.
<workmad3>
graspee: they're a ruby wart that don't follow the princple of least surprise
<workmad3>
*principle
<horesman>
graspee: how long have you been programming ruby?
<graspee>
how do you know? it's matz' surprise that's in question, not ours
<bnagy>
anyway, I have getting drunk and cooking to do
<graspee>
otherwise we would have 12.sqrt
<horesman>
graspee: because you have a pretty arrogant no-it-all manner
<horesman>
know-it-all*
<workmad3>
graspee: I know because if they did then all the people who learn about them go 'wtf' when they realise how they actually act
advorak has quit [Quit: Leaving]
<workmad3>
graspee: i.e. they act in a surprising manner
tzvi has joined #ruby
<bnagy>
yeah they'll be gone soon
<bnagy>
. o O ( I hope )
shevy has quit [Ping timeout: 245 seconds]
<graspee>
well i find them useful
<bnagy>
hahaha
gyre007 has joined #ruby
<workmad3>
graspee: despite the fact you only get one copy across an entire inheritance hierarchy?
kill-9_ has joined #ruby
<graspee>
i find them useful for storing data on a per-class basis
<workmad3>
graspee: they aren't per-class
<bnagy>
I get the singleton pattern, although I seldom find something it's good for
<workmad3>
graspee: they're per-class-hierarchy
<graspee>
ok. well i'm not using inheritance
<bnagy>
I DO NOT get the "multiple classes and objects but just ONE copy of this bizarre variable"
<workmad3>
graspee: create one in a base class, change it in a derived class, it changes *everywhere*
<bnagy>
that's retarded
hynkle has joined #ruby
<kmap>
hi
<graspee>
why not change them then. why remove them?
<bnagy>
and instead they get used by people who can't code ruby because they can't work out how scope works
<horesman>
graspee: because you can use class instance variables instead
<workmad3>
^^
titas9x has left #ruby [#ruby]
<workmad3>
class vars basically fill a gap... but it's a different one to the expected use
<bnagy>
also they look like they're staring at me D:
<bnagy>
@@i_see_u
<workmad3>
what I'd like is for the syntax to change to make them a bit harder to use and class ivars easier
jamesaxl has joined #ruby
<workmad3>
but unfortunately, we're dealing with a language, which means basic syntax has to be fairly permanent otherwise it would be impossible to code in sensibly
<workmad3>
I suspect the earliest such a change could reasonably be included is ruby 3.0, maybe ruby 4.0
<bnagy>
ok l8s rubybunnies
<workmad3>
assuming it ever is
faitswulff has left #ruby [#ruby]
<workmad3>
languages have a long horizon of change
<workmad3>
especially for removals or changes
jeff_sebring has joined #ruby
liluo has quit [Remote host closed the connection]
red-panda has joined #ruby
brasten has joined #ruby
LBRapid has joined #ruby
Niamkik has joined #ruby
wardrop has quit [Ping timeout: 260 seconds]
<Spooner>
workmad3 : Couldn't we have a helper, like attr_reader, instead? I mean as a way to get easier class instance variables sooner?
iocor has quit [Quit: Computer has gone to sleep.]
<workmad3>
Spooner: sure, that would be a sensible addition... in fact, I think rails gives you a catter_reader macro for defining them :)
<workmad3>
Spooner: wouldn't prevent people from learning a bad habit from books that use @@ though
igaiga has quit [Remote host closed the connection]
<graspee>
rails is a bad habit
shevy has joined #ruby
hynkle has quit [Ping timeout: 244 seconds]
<Spooner>
True and yes, rails is rails, not Ruby.
Dreamer3 has joined #ruby
graspee has left #ruby [#ruby]
carlyle has joined #ruby
<workmad3>
heh
flype has joined #ruby
yoklov has joined #ruby
Markvilla has quit [Quit: Markvilla]
<shevy>
hmm damn I got disconnected
<shevy>
Gurpartap, what was the last part you saw from me to you?
wardrop has joined #ruby
hynkle has joined #ruby
uris has joined #ruby
<Hanmac>
shevy: your last line was "could be a bug"
blischalk has joined #ruby
<shevy>
aaaaah
awarner has joined #ruby
<shevy>
then I was the only one to read my replies to Gurpartap :(
dekroning has joined #ruby
<shevy>
Gurpartap no idea really. but if you are sure it is a bug, report to bugs.ruby-lang.org they are responding quickly usually
<shevy>
you just have to make your case there properly
fra000 has joined #ruby
tshine_ has joined #ruby
ccapndave2 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
boo1 has joined #ruby
elhu has quit [Read error: Connection reset by peer]
tshine has quit [Read error: Connection reset by peer]
keanehsiao_ has quit [Read error: Connection reset by peer]
ringotwo has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ackz has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<boo1>
Hi everyone! If I want to have hash with specified list of keys(presence of keys is a goal), am I doing it right https://gist.github.com/2965849 or may be you know better solution?
hunglin has joined #ruby
gyre007 has quit [Quit: Ex-Chat]
<Gurpartap>
shevy: i see.
<Gurpartap>
shevy: i'll try that
<boo1>
And one more question, If I call keys method on some hash, then call values method will elements order be same 100%?
Stormbytes has quit [Ping timeout: 250 seconds]
saschagehlich has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
<Hanmac>
boo1: fields.each(hash.method(:delete)) ... but imo your reset! should not go into Hash itself
<shevy>
boo1 in 1.9.3 it should be the same as hashes are ordered
moshef has quit [Ping timeout: 246 seconds]
<boo1>
shevy, thanks
<boo1>
Hanmac, it will be in used just in single script
ABK has quit [Ping timeout: 245 seconds]
zommi has joined #ruby
albemuth has joined #ruby
ABK has joined #ruby
supergiantrobot has joined #ruby
hunglin has left #ruby [#ruby]
umttumt_ has quit [Remote host closed the connection]
mayankkohaley has quit [Ping timeout: 255 seconds]
mayankkohaley has joined #ruby
yankhates has joined #ruby
virunga has quit [Quit: Sto andando via]
zommi has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
sailias has joined #ruby
iocor has joined #ruby
andrewhl has joined #ruby
td123 has joined #ruby
iocor has quit [Client Quit]
eurbach has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
mayankkohaley has quit [Remote host closed the connection]
Gurpartap has quit [Ping timeout: 245 seconds]
moshef has joined #ruby
moshef has quit [Client Quit]
macmartine has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
zinjacoder has quit [Quit: Peace!]
h4mz1d has joined #ruby
shtirlic has joined #ruby
the_jeebster has joined #ruby
TechCel has joined #ruby
chson has joined #ruby
ananthakumaran1 has joined #ruby
EvanR_ is now known as EvanR
faitswulff has joined #ruby
EvanR is now known as Guest74807
Progster has quit [Ping timeout: 260 seconds]
Guest74807 is now known as EvanR
EvanR has quit [Changing host]
EvanR has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
peregrine81 has joined #ruby
<faitswulff>
I'm still struggling with Hash#new block syntax. Can anyone explain what the first variable in the pipes represents in this line?
<faitswulff>
I understand that it creates a new default array for each key, but the first variable confuses me.
<horesman>
faitswulff: the hash itself
TechCel has quit [Ping timeout: 240 seconds]
<horesman>
faitswulff: so hash in the block is the same object as the Hash.new
<horesman>
faitswulff: like with tap: Hash.new.tap { |hash| ...
d3c has quit [Quit: Quit]
xaq has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
shtirlic has quit [Remote host closed the connection]
umttumt has joined #ruby
<shevy>
I still dont understand .tap
<faitswulff>
horesman: ohh...just to be sure, though, you can name it whatever you like inside the pipes?
piotr__ has quit [Remote host closed the connection]
axl_ has joined #ruby
ABK has quit [Ping timeout: 276 seconds]
<horesman>
faitswulff: Yeah
lorandi has joined #ruby
<faitswulff>
hash = Hash.new {|something, key| ...} would do the same thing?
<horesman>
faitswulff: Yeah, name is irrelevant
axl_ has quit [Read error: Connection reset by peer]
Jay_Levitt has joined #ruby
kmap2 has joined #ruby
jrist is now known as jrist-mtg
mohits has quit [Ping timeout: 245 seconds]
freeayu__ has quit [Quit: 离开]
Faris has joined #ruby
JeffreyBaird has joined #ruby
ananthakumaran1 has quit [Ping timeout: 250 seconds]
sailias has joined #ruby
Faris1 has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
kmap has quit [Ping timeout: 248 seconds]
Faris has quit [Read error: No route to host]
<faitswulff>
horesman: ...I was going to ask why it was necessary to declare the hash object as a variable, but I think the block might be utterly unintelligible if you didn't
axl_ has joined #ruby
<faitswulff>
horesman: thank you! Things make sense to me now
DanBoy has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lkba has joined #ruby
Faris has joined #ruby
jeff_sebring has quit [Read error: Connection reset by peer]
zinjacoder has joined #ruby
kmap2 has quit [Client Quit]
berkes has joined #ruby
kmap has joined #ruby
RORgasm has joined #ruby
TechCel has joined #ruby
kmap has quit [Client Quit]
chson has quit [Remote host closed the connection]
Progster has quit [Read error: Operation timed out]
wardrop has joined #ruby
internet_user has joined #ruby
zinjacoder has quit [Client Quit]
clockwize has quit [Quit: clockwize]
cisco182 has joined #ruby
cisco182 has left #ruby [#ruby]
heftig has joined #ruby
iocor has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
jcromartie has quit [Quit: jcromartie]
moeSeth has quit [Quit: Connection closed for inactivity]
blacktulip has joined #ruby
Progster has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
randomautomator has joined #ruby
peregrine81 has quit [Ping timeout: 245 seconds]
TechCel has quit [Ping timeout: 252 seconds]
zomgbie has quit [Ping timeout: 276 seconds]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
wardrop has quit [Ping timeout: 248 seconds]
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
TPFC-SYSTEM has left #ruby [#ruby]
liluo has joined #ruby
mnaser has joined #ruby
monkegjinni has joined #ruby
kaiwren has quit [Quit: kaiwren]
<shevy>
man
<shevy>
why is horseman called horesman
fayimora has quit [Quit: Busy…..zzzzz]
<shevy>
this is confusing :(
PaciFisT has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
<locriani>
because the limbo eternity stone shone forth with a spoonful of dark last solstice
Progster has quit [Ping timeout: 260 seconds]
axl_ has quit [Read error: Connection reset by peer]
ipoval has joined #ruby
ken_barber has joined #ruby
axl_ has joined #ruby
monvillalon has joined #ruby
andrewhl has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
CheeToS has joined #ruby
ringotwo has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
perry is now known as perryh_away
wilmoore has quit [Remote host closed the connection]
silex1 has joined #ruby
<shevy>
locriani man
<shevy>
you do poetry on IRC
axl__ has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
TheHunter_1039 has joined #ruby
ElderFain has joined #ruby
axl_ has quit [Ping timeout: 272 seconds]
daniel_hinojosa has joined #ruby
chienpo has joined #ruby
wardrop has joined #ruby
boo1 has left #ruby [#ruby]
<locriani>
shevy: and the howling echoes in medicated pillow resound
red-panda has quit [Remote host closed the connection]
<shevy>
:)
kevinbond has joined #ruby
red-panda has joined #ruby
axl_ has joined #ruby
ccapndave2 has left #ruby [#ruby]
iocor has quit [Quit: Computer has gone to sleep.]
yannis has joined #ruby
Araxia_ has quit [Quit: Araxia_]
silex1 has quit [Quit: WeeChat 0.3.7]
test0r0r has joined #ruby
tk___ has quit [Quit: ばいばい]
axl_ has quit [Read error: Connection reset by peer]
wardrop has quit [Ping timeout: 252 seconds]
iocor has joined #ruby
axl_ has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
nkvorn_ has joined #ruby
maahes has quit [Ping timeout: 246 seconds]
Faris has quit [Ping timeout: 246 seconds]
dekroning has joined #ruby
jrist-mtg is now known as jrist
axl_ has joined #ruby
macmartine has quit [Quit: macmartine]
ghanima has joined #ruby
maahes has joined #ruby
Targen has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
SegFaultAX has joined #ruby
lkba has quit [Quit: Bye]
dekronin1 has joined #ruby
axl_ has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
atmosx has quit [Ping timeout: 276 seconds]
kaiwren has joined #ruby
thone has quit [Read error: Operation timed out]
A124 has joined #ruby
JeffreyBaird has quit [Quit: JeffreyBaird]
monkegjinni has quit [Remote host closed the connection]
Faris has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
larissa has quit [Quit: Saindo]
lkba has joined #ruby
mpereira has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
timepilot has joined #ruby
dekronin1 is now known as dekroning
thone has joined #ruby
moshef has joined #ruby
umttumt has quit [Remote host closed the connection]
ph^ has joined #ruby
lkba has quit [Client Quit]
<shevy>
locriani I am going to try and learn from you
<shevy>
locriani: the wind has set out at dawn in the coming of the mruby storm
lorandi has quit [Quit: Leaving]
test0r0r has quit [Quit: WeeChat 0.3.7]
kpshek has joined #ruby
A124 has left #ruby [#ruby]
oooPaul has joined #ruby
lkba has joined #ruby
graspee has joined #ruby
<faitswulff>
shevy: you could cheat and use heroku's url generator
iocor has quit [Quit: Computer has gone to sleep.]
cbuxton has joined #ruby
ckrailo has joined #ruby
iocor has joined #ruby
wvms has quit [Quit: wvms]
tdelam has quit [Quit: tdelam]
jprovazn is now known as jprovazn_away
yoklov has quit [Quit: computer sleeping]
QaDeS has joined #ruby
iocor has quit [Client Quit]
liluo has quit [Remote host closed the connection]
<locriani>
shevy: haha
baroquebobcat has joined #ruby
jprovazn_away has quit [Quit: Leaving]
baroquebobcat has quit [Client Quit]
Jake232 has joined #ruby
jaylevitt has joined #ruby
albemuth has joined #ruby
mpereira has joined #ruby
kaiwren has quit [Quit: kaiwren]
prezjordan has joined #ruby
ipoval has quit [Quit: ipoval]
Targen has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
mikepack has joined #ruby
angelixd has joined #ruby
Jay_Levitt has quit [Ping timeout: 248 seconds]
miho has quit [Ping timeout: 244 seconds]
wilmoore has joined #ruby
wilmoore has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
wilmoore has joined #ruby
stephenjudkins has joined #ruby
mengu has quit [Quit: Konversation terminated!]
lkba has quit [Read error: Connection reset by peer]
krusty_ar has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 246 seconds]
eurbach has quit [Quit: Leaving.]
moshee has quit [Ping timeout: 255 seconds]
zomgbie has joined #ruby
moshee has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
mohits has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby
blacktulip has quit [Remote host closed the connection]
jchauncey has joined #ruby
binaryplease has joined #ruby
darthdeus has joined #ruby
cjs226 has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
atmosx has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
faitswulff has left #ruby [#ruby]
binaryplease has quit [Client Quit]
virunga has joined #ruby
bricker88 has joined #ruby
bricker88 has quit [Client Quit]
yoklov has joined #ruby
bricker88 has joined #ruby
schovi_ has quit [Remote host closed the connection]
prezjordan has quit [Quit: prezjordan]
SirRamonGabriel has joined #ruby
igotnolegs has joined #ruby
dekroning has quit [Ping timeout: 276 seconds]
cjs226 has joined #ruby
pureluck has quit [Ping timeout: 245 seconds]
dr_diamond has joined #ruby
dr_diamond has quit [Changing host]
dr_diamond has joined #ruby
Ste11a has quit [Remote host closed the connection]
avandenhoven has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
sbanwart has joined #ruby
minijupe has joined #ruby
ryan0x2_ has joined #ruby
<avandenhoven>
does anyone know of a decent gem/script to validate the existence of an email address by connecting to SMTP servers via telnet or similar?
red-panda has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 246 seconds]
<gogiel>
avandenhoven: does SMTP support it?
<avandenhoven>
absolutely
jxf has quit [Ping timeout: 264 seconds]
<avandenhoven>
You can do it via telnet.
<avandenhoven>
the first command sets the from (make something up) and the second is the recipient, you look for an error code
<gogiel>
sure some smtp servers won't answers, but if most of them do, why not make it an option
mobilegamelabs has joined #ruby
dwaynecrooks has joined #ruby
pureluck has joined #ruby
<workmad3>
gogiel: legacy?
xaq has quit [Read error: Connection reset by peer]
kaiwren has joined #ruby
kaiwren has quit [Client Quit]
<avandenhoven>
its probably not nice. And I suspect that servers that are constantly bombarded from a given ip (i.e. spammers looking for real addresses running a dictionary) will block that IP
<workmad3>
^^ that too
<workmad3>
it could be a course to blacklisting
xaq has joined #ruby
<workmad3>
it might also count as an invalid use of the protocol
<apeiros_>
also many servers simply accept any address
<apeiros_>
and throw it away if no recipient can be found
<workmad3>
or generate a new response
<apeiros_>
also due to spamming, i.e., to avoid that somebody can detect valid emails from the outside
cjs226 has quit [Ping timeout: 265 seconds]
<workmad3>
'MailDeliveryNotificationError'
<apeiros_>
yes, but that's also been largely abandoned
<apeiros_>
see bounce spam
quest88 has quit [Quit: quest88]
<apeiros_>
email is a pretty broken system.
Ontolog has joined #ruby
<workmad3>
well, it works... but it's very shakey, heavily bandaged and you don't want to look too closely or the open wounds may bleed on you
pdtpatrick has joined #ruby
aantix has joined #ruby
<apeiros_>
I prefer not thinking too much about it. it's too painful…
binaryplease has joined #ruby
<workmad3>
apeiros_: just send some emails to the president of the internet complaining about it ;)
senny has quit [Remote host closed the connection]
aantix has quit [Read error: Connection reset by peer]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
troulouliou_dev has joined #ruby
senny has joined #ruby
aantix has joined #ruby
<troulouliou_dev>
hi i have bigdecimal and msgpack installed, when i try ri String, it looks for bigdecimal, msgpack String object
<troulouliou_dev>
how can i specify that i want ot check the base system String Object
TPFC-SYSTEM has joined #ruby
a_a_g has joined #ruby
BiHi has quit [Quit: bye]
cjs226 has joined #ruby
freezey has joined #ruby
robotmay_ has quit [Remote host closed the connection]
apok has joined #ruby
maletor has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
<workmad3>
Hanmac: m = Module.new {const_set(:Item, Class.new)}
apok has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<kaspernj_>
Thanks all!
<workmad3>
kaspernj_: there's also .partition
<yoklov>
what gui libraries do you guys like to use?
<workmad3>
yoklov: I don't
<yoklov>
well, if you did
<Hanmac>
workmad3 ok your code works ... but its not what i want ...
<workmad3>
Hanmac: if you want dynamic modules, that's what you're stuck with though
<workmad3>
Hanmac: well, I guess you could play around with module_eval
<raz>
anyone know a gem to aid with creating rails-style generators (outside of rails)?
<workmad3>
raz: Thor
<workmad3>
raz: it's what the rails generators use
<kaspernj_>
yoklov, I use Gtk2. Thought about trying out the FFI(?) Gtk3 lib. As far as I can think, that should also work in JRuby??
<raz>
workmad3: hmm, i thought thor is only for optparsing?
<raz>
gotta look into that
Aaton_off is now known as Aaton
yeggeps has quit [Read error: Connection reset by peer]
<yoklov>
kaspernj_: hm, thanks, how high/low level is it?
RainbowDashh has joined #ruby
yeggeps has joined #ruby
<kaspernj_>
yoklov, in what regards?
<yoklov>
how thin or think of a wrapper over gtk is it?
Divinite has quit [Remote host closed the connection]
<yoklov>
thick*
<workmad3>
yoklov: I think, no matter what GUI library you pick, you're not going to *like* using it ;)
<yoklov>
i've done a lot of gui work in other languages
<yoklov>
but when i write ruby i prefer writing at an embarassingly high level
<kaspernj_>
yoklov, Gtk2 is pretty big. As far as I have read, the FFI Gtk3 lib should not be that big.
<workmad3>
yoklov: ever come across a gui library you like? rather than just tolerate? :)
<yoklov>
oh, no.
<kaspernj_>
yoklov, stuff is really easy in Gtk2 imo.
mxweas_ has quit [Ping timeout: 244 seconds]
<workmad3>
yoklov: you could also always look at something like green_shoes, which is a shoes-style API over QT that's been gemified
ces has joined #ruby
<workmad3>
don't know how good it actually is though, I've never done more than a brief glance at it :)
<kaspernj_>
yoklov, I like how you can choose, if you wanna go really low level like coding every single thing yourself, or write as little GUI as possible by using a tool like Glade, where you design with click'n'drop visually (which I do 90% of the time).
axl_ has quit [Read error: Connection reset by peer]
banghouse has joined #ruby
axl_ has joined #ruby
<yoklov>
hm, okay. I still have nightmares about interface builder, so i'll probably avoid glade
yeggeps_ has joined #ruby
yeggeps has quit [Ping timeout: 244 seconds]
axl_ has quit [Read error: Connection reset by peer]
mxweas_ has joined #ruby
axl_ has joined #ruby
carloslopes has joined #ruby
<yoklov>
but thanks, i have some things to investigate now
stephenjudkins has joined #ruby
adamkittelson has joined #ruby
c0rn_ has joined #ruby
joch_n has joined #ruby
jlogsdon has joined #ruby
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
<kaspernj_>
yoklov, as I said, the good thing is that you can choose yourself ;-)
niklasb has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
fivetwentysix has joined #ruby
RainbowD_ is now known as RainbowDashh
federic has quit [Remote host closed the connection]
shinobi_one has quit [Quit: shinobi_one]
andrew9184 has joined #ruby
altivec has joined #ruby
niku4i has quit [Remote host closed the connection]
<andrew9184>
sorry very simple question
jonathanwallace has quit [Read error: Connection reset by peer]
aantix has quit [Remote host closed the connection]
axl__ has joined #ruby
kenichi has quit [Remote host closed the connection]
aantix has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
RORgasm has quit [Remote host closed the connection]
rakunHo has joined #ruby
kenichi has joined #ruby
axl__ has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
flype has joined #ruby
axl_ has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
axl_ has joined #ruby
yaasii has joined #ruby
saschagehlich has joined #ruby
sailias has quit [Quit: Leaving.]
yaasii has quit [Client Quit]
manizzle has quit [Read error: No route to host]
yeggeps_ has joined #ruby
yeggeps has quit [Ping timeout: 245 seconds]
mnaser has quit [Remote host closed the connection]
mnaser has joined #ruby
itnomad has joined #ruby
<davidcelis>
ruby 1.8, y u so fail?
<davidcelis>
Hash#reject! but no Hash#select!
<davidcelis>
le sigh
<apeiros_>
y u use ancient ruby?
skrewler has joined #ruby
<apeiros_>
*inquisitive stare*
JeffreyBaird has joined #ruby
<davidcelis>
ancient rails application :(
skrewler has quit [Read error: Connection reset by peer]
<davidcelis>
i have tried to push for an upgrade from ruby 1.8 and rails 2.3, but it always gets put on the backlog
MrGando has joined #ruby
dennda has joined #ruby
Solnse has joined #ruby
<werdnativ>
A question about namespace etiquette: if I'm writing a helper for a library (rspec), something akin to rspec-rails, should I create a Spec::MyModule namespace in the existing ::Spec, or stay out and make my own ::RSpecMyModule?
fayimora has quit [Ping timeout: 264 seconds]
schovi has joined #ruby
<werdnativ>
on the one hand Spec::MyModule is predictably consistent.
<werdnativ>
on the other hand, I don't feel I "own" the Spec namespace, should I have any business putting stuff in there?
<LiquidInsect>
davidcelis: it's the same here. It's never worth it from the perspective of a project leader
skogis has quit [Quit: bbl]
<LiquidInsect>
I was at Twitter for a security miniconference and one of their guys told me they're on Rails 2.3 and REE
<billy_ran_away>
Is there any reason why if in a method in a class, that's in a module, when returning a string would not make it of the string class?
jonatha__ has joined #ruby
<werdnativ>
delinquentme: if the gemspec has development_dependency items listed, try gem install --dev yourgem
Jake232 has quit [Quit: Computer has gone to sleep.]
<delinquentme>
top notch information werdnativ
<delinquentme>
+1
nirakara has quit [Quit: This computer has gone to sleep]
<Jackneill>
http://pastebin.com/QAQjrEWq can you help me? at line 4 i got : require "colorize" | i installed it by: sudo gem install colorize i dont udnerstand
<delinquentme>
Hmm so there is a /gemfiles dir?
<delinquentme>
is that normal?
jonatha__ has quit [Remote host closed the connection]
<werdnativ>
nope… wtf is gemfiles...
<werdnativ>
delinquentme: what gem? github link?
jonathanwallace has quit [Ping timeout: 246 seconds]
`brendan has joined #ruby
<jlogsdon>
Jackneill: run `gem list` and look for colorize in the output
<delinquentme>
these are biologists first and programmers second i believe :D
wardrop has quit [Ping timeout: 246 seconds]
<Jackneill>
Successfully installed colorize-0.5.8
<Jackneill>
1 gem installed
<Jackneill>
| i got it
<delinquentme>
i just ran the tests and its failing bc I lack a libxml-ruby package
<delinquentme>
so I was thinking ... should I just install it from the autotest script
brianpWins has joined #ruby
<Jackneill>
but for gem list i didnt get the colorize :(
luckyruby has joined #ruby
<delinquentme>
or how should I get it integrated so as to help the devs working on this get running ASAP
DrShoggoth has joined #ruby
<werdnativ>
delinquentme: gemspec doesn't list any dependencies… it should. I would fork it and add them there. Then in your project Gemfile, put gem "bioruby", :github => "delinquentme/bioruby"
hynkle has quit [Ping timeout: 244 seconds]
youdonotexist has joined #ruby
<delinquentme>
werdnativ, im not even seeing a gemspec
<delinquentme>
werdnativ, is that ... horrible misplaced or am I dumb?
mnaser has joined #ruby
<werdnativ>
delinquentme: the way they have it is dumb. by the way that gemfiles directory is for running continuous integration on a test server. Are the gem dependencies in there the ones you're missing?
<delinquentme>
it seems they are....
<delinquentme>
*checking*
<delinquentme>
so yeah they are
jarred has joined #ruby
<delinquentme>
this is all very foreign to me
<shevy>
wheeee who is using bioruby here wheeeeee
berkes has joined #ruby
<werdnativ>
delinquentme: those should be in gemspec if they are required.
<delinquentme>
sooo i should do a force bundle off one of those named sets?
<shevy>
werdnativ!
hynkle has joined #ruby
<delinquentme>
shevy, im futzing with it :D
<shevy>
ahhh
<shevy>
sorry werdnativ :D
<werdnativ>
shevy: help delinquentme with it if you know it! :)
<shevy>
I use a script to generate a basic .gemspec
<werdnativ>
yeah, imho that's overkill…
minijupe has quit [Quit: minijupe]
<werdnativ>
shevy: try bundle gem newgem to see the basic boilerplate, it's much simpler.
<shevy>
ack
<delinquentme>
shevy, are you a biologist?
mockra has joined #ruby
fayimora has joined #ruby
<shevy>
delinquentme more than a programmer yeah :)
<shevy>
come to #bioruby anyway?
<shevy>
pjotr knows EVERY>THING about bioruby
<delinquentme>
wth .. bioruby/bioruby/blob/master/bioruby.gemspec i dont have this dir in my cloned copy
<shevy>
and helius, but he is only online during daytime northern italy timezone
<delinquentme>
shevy, awesome :D !
wardrop has joined #ruby
<billy_ran_away>
Does having a class defined within a module change what kind of objects its methods would return?
<Jackneill>
http://pastebin.com/QAQjrEWq can you help me? at line 4 i got : require "colorize" | i installed it by: sudo gem install colorize i dont udnerstand
Criztian has joined #ruby
<billy_ran_away>
I've got a class defined within a module that won't return a string to a caller outside the module...
Targen has joined #ruby
<billy_ran_away>
It only returns an object with the name of the module or class (they're named the same...)
<apeiros_>
billy_ran_away: no, nesting doesn't affect method returns.
<werdnativ>
billy_ran_away: depends if you have ambiguous class names… you can define a MyModule::String and it will use that in context instead of the top-level ::String
<luckyruby>
is there an easier way than ' '*15 to create 15 whitespaces?
axl_ has quit [Ping timeout: 246 seconds]
<billy_ran_away>
That's my one failing test… It attempts to check the output of the the masked method against a string… but it doesn't work since the object being returned by the masked method apparently stops being a String some how...
axl_ has joined #ruby
<luckyruby>
or a less ugly way
<billy_ran_away>
apeiros_: Forgot to include your name in my comment on what the test does ----^
whitenoise has joined #ruby
wardrop has quit [Ping timeout: 252 seconds]
axl__ has joined #ruby
Lachryma has quit [Quit: Leaving]
<apeiros_>
having to install ~20 gems is not what I'd call minimal…
<werdnativ>
luckyruby: String.new.ljust(15, ' ')
<luckyruby>
thanks
mjb2k has joined #ruby
<apeiros_>
so I bundled and ran rake test. seems it wants me to set up the db too. sorry, but too much effort.
mockra has quit [Remote host closed the connection]
cuppsy has joined #ruby
LBRapid has quit [Quit: Farewell.]
beneggett has joined #ruby
<shadoi>
guess I can just use indexes
<werdnativ>
shadoi: are there always the same number of elements? if so, then just actual_order = correct_order because the arrays are the same...
<werdnativ>
shadoi: if there are different numbers of elements, what happens with sorting of extra items?
<shadoi>
yeah there are differences
<shadoi>
I will just match on prefixes
freezey_ has joined #ruby
<delinquentme>
werdnativ, So was the consensus ... " just bundle from one of the existing versioned gemfiles ? "
flak has joined #ruby
flak is now known as Guest51801
rippa has quit [Read error: Connection reset by peer]
MrGando has quit [Quit: Bye]
freezey has quit [Ping timeout: 265 seconds]
freezey_ is now known as freezey
<werdnativ>
delinquentme: sure you can do that if it's a one-off install, but it's inconvenient for regular end-users of that library… it should really install its own dependencies. Those gemfiles are there for a build test system called Travis.
<delinquentme>
so yeah im new to cont integ
<delinquentme>
and I agree that for end users it should be a 1-line to install it
<jlogsdon>
billy_ran_away: yeah, you. someone who wants to contriubte should be able to fork, pull down, and then run rake test or whatever
<delinquentme>
however my goal was to get the current version in a passing state
<jlogsdon>
(and maybe a bundle)
<delinquentme>
which is currently shown as failing here:
<billy_ran_away>
jlogsdon: I have a Gemfile for bundle....
<jlogsdon>
good
gks has joined #ruby
<jlogsdon>
now make your test setup do the test app setup
<jlogsdon>
(rake db:moigrate and crap)
<jlogsdon>
dont make me change directories to it and manually run that
<jlogsdon>
otherwise what apeiros_ did will happen a lot.
<jlogsdon>
make it easy to get going
<werdnativ>
jlogsdon: curious, does that mean db create/setup would happen on every test run? or do you just add a check for if it already exists?
<jlogsdon>
no, just before the suite is run
<jlogsdon>
the latter
dkissell has joined #ruby
<jlogsdon>
and then i would truncate the database (use database_cleaner or something to automate it) after each test
<werdnativ>
makes sense
dkissell has left #ruby [#ruby]
<werdnativ>
there should be some Rakefile boilerplate for that shit #lazyweb
Muon has quit [Quit: Greater Teleport.]
<jlogsdon>
im working on a boilerplate for gems that can utilize multiple ORMs. `rake test:gambit` would run your test suite against AR, DataMapper, Mongoid and MongoMapper
<jlogsdon>
(with options for multiple dbs under each adapter_
<werdnativ>
wow, that sounds so awesome!
mohits has quit [Ping timeout: 244 seconds]
<werdnativ>
so you would know. ;)
dnyy has joined #ruby
<jlogsdon>
i have 2 gems that need to do that right now, i figure its about time it was genericized xD
ribo has joined #ruby
tommyvyo has joined #ruby
<jlogsdon>
rigth now im having issues with mongoid :(
<ribo>
so, I have a ruby script that asks for a file path, but File.open() doesn't translate '~' to $HOME, is there a way to get it to parse that '~' from input? (notoriously difficult to google for)
sailias has joined #ruby
<jlogsdon>
File.expand_path
<shevy>
:)
<ribo>
jlogsdon: cool, that was simple
<ribo>
haha
<jlogsdon>
File.expand_path owns. File.expand_path('../../some/path', '/here/we/are') translates to: /here/some/path!
Guest51801 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<werdnativ>
shadoi: right on! I was thinking something with inject, but sort_by is much cleaner… forgot about it.
<shadoi>
actually I think I fucked it up
<shadoi>
was working… heh
Bosma has joined #ruby
ChampS666 has quit [Ping timeout: 276 seconds]
<shadoi>
ah, just need to actual_order.length instead of 0
Paul-Atreides has joined #ruby
Paul-Atreides has joined #ruby
Paul-Atreides has quit [Changing host]
bosphorus has quit [Remote host closed the connection]
<shadoi>
since I want it last if it's not in the correct order.
<mjb2k>
hey it's me, slightly-off-topic-guy, with a question: Could anybody recommend a Ruby on Rails based Customer Support Case Management system?
Notimik has joined #ruby
ilyam has joined #ruby
<werdnativ>
shadoi: what are the members of your array? You could also def <=> on them so they can naturally sort
<shadoi>
they're names of things that have to be done in a specific order
<jlogsdon>
what the heckkkkk. I can't get mongo-1.6.2 to install, it keeps using 1.3.1 :|
<shadoi>
there are subsets of the correct_order at different times
<shadoi>
and I may need to change the ordering, so it's good to have a map
<werdnativ>
ok, just curious
Ontolog has quit [Read error: Connection reset by peer]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
Ontolog has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
tdubz has quit [Ping timeout: 252 seconds]
dkissell_ has joined #ruby
Asher has joined #ruby
tdubz has joined #ruby
<jlogsdon>
i am stupid... i couldn't figure out why mongo 1.3.1 insisted on installing even though my gemspec had 1.6.2.... turns out my gemfile still had mongo listed D:
Corey_ has joined #ruby
<jlogsdon>
magical... it works now
manizzle has joined #ruby
Paul-Atreides is now known as enroxorz
supergiantrobot has quit [Read error: Connection reset by peer]
<yoklov>
is there a more elegant way to express `n > 0 ? 1 : (n < 0 ? -1 : 0)`?
Jackneill has quit [Read error: Connection reset by peer]
Aaton is now known as Aaton_off
rdg has quit [Quit: ttfn]
indeterminate has quit [Quit: It's too late. You've awakened the gazebo. It catches and eats you.]
gks has quit [Quit: Leaving...]
wardrop has quit [Ping timeout: 246 seconds]
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
wpaulson has joined #ruby
<apeiros_>
d3c: File::open returns the value of the block
<apeiros_>
the value of the block is the result of f.puts
<apeiros_>
puts returns nil
sailias has joined #ruby
ribo has left #ruby [#ruby]
<d3c>
apeiros_: no way to check that everything was ok then? need this for a deployment routine
delinquentme has joined #ruby
<delinquentme>
anyone in here ever use travisci?
<delinquentme>
im looking at the muild matrix jobs
francisfish has joined #ruby
<delinquentme>
and trying to sort out what the numers in the left col correspond to
blacktulip has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
fantazo has joined #ruby
benjammin891 has joined #ruby
<apeiros_>
d3c: open and puts raise all on their own if something isn't ok
lorandi has quit [Quit: Leaving]
enroxorz has quit [Quit: Leaving]
darthdeus has quit [Quit: Leaving...]
stephenjudkins has quit [Quit: stephenjudkins]
<Tasser>
is it evil to generate xml with formatstrings? :-)
<shadoi>
yes
<apeiros_>
no
<shadoi>
yes
<apeiros_>
no :)
<shadoi>
maybe not evil, but super disgusting.
<apeiros_>
potentially broken
<apeiros_>
but you can always run an XSD or RNG over it
workmad3 has joined #ruby
<shadoi>
yeah if you validate it, immediately after generating, I guess it's fine
<shadoi>
but if you're validating, then you have a decent XML lib loaded already, and there's no reason not to use it to build the XML properly.
alexmin has quit [Ping timeout: 272 seconds]
fantazo_ has joined #ruby
malkomalko has joined #ruby
<Tasser>
shadoi, the problem is that the app reading the XML is potentially whitespace-sentitive
stephenjudkins has joined #ruby
robbyoconnor has joined #ruby
TheFuzzb_ has quit [Read error: No route to host]
<apeiros_>
bad.app
<luckyruby>
werdnativ: turns out u can just do ljust(15)
fantazo has quit [Ping timeout: 265 seconds]
<shadoi>
those sound like unrelated problems.
<luckyruby>
String.new.ljust(15) i mean
TheFuzzball has joined #ruby
ciopte7 has joined #ruby
nso95 has joined #ruby
yankhates has quit [Ping timeout: 248 seconds]
<Tasser>
apeiros_, deal with it :-)
<Tasser>
shadoi, to_xml in nokogiri doesn't seem to take any formating arguments
<apeiros_>
Tasser: I don't have to :-p
<Tasser>
apeiros_, indeed
<apeiros_>
dang, what's up with me today?
<apeiros_>
already drank >1L of milk…
amh345 has joined #ruby
amh345 has quit [Changing host]
amh345 has joined #ruby
yankhates has joined #ruby
Jake232 has joined #ruby
bosphorus has joined #ruby
<amh345>
im trying to build a csv header. im having a hell of a time looping an array of values and adding it to an existing array. for example: https://gist.github.com/ae50792c432163b28c9b i cant get it to loop var a 10 times.
<theRoUS>
cucumber question: Is there any way a step definition can either say 'not me, keep looking' or else invoke the step-finder with a new string?
<billy_ran_away>
Boohbah: If you clone my project make sure to cd to test/dummy/ and do a rake db:create and rake db:migrate
<billy_ran_away>
then you can do cd - and do a rake test
wallerdev has joined #ruby
<billy_ran_away>
Boohbah: This will run just the failing test: ruby -Itest test/maskable_attribute_test.rb -n test_should_be_able_to_get_attribute_masked_\(by_default\)
jimeh has joined #ruby
<billy_ran_away>
And show the debugging output a little more cleanly...
Ethan has quit [Ping timeout: 272 seconds]
jchauncey has joined #ruby
<matled>
Mon_Ouie: "If, when attempting to write a file, the destination directory is non-existant an attempt should be made to create it with permission 0700"
<matled>
Mon_Ouie: and i think the history should go to XDG_CACHE_HOME
wardrop has quit [Ping timeout: 276 seconds]
<billy_ran_away>
jlogsdon Boohbah: I really appreciate you guys taking a look
<fowl>
fileutils.mkdir_p
davidw has joined #ruby
davidw is now known as Guest24250
banseljaj is now known as imami|afk
qwerxy has joined #ruby
<matled>
Mon_Ouie: do you have an example of a config file? I can't get it to work (tried http://ix.io/2AK/)
hemanth has quit [Read error: Connection reset by peer]
RORgasm_ has quit [Remote host closed the connection]
hemanth has joined #ruby
jimeh has quit [Ping timeout: 272 seconds]
cuppsy has quit [Quit: leaving]
<shevy>
man this is so sad... python3 does not work with youtube-dl
<shevy>
so I have to use python 2... and now I wonder two things. (1) why do I ahve to use python 2 at all, I have ruby... and (2) this python transition is just a mess...
Morkel has joined #ruby
cuppsy has joined #ruby
<ben_m>
Write youtube-dl for Ruby!
<shevy>
going to try and port youtube-dl to ruby, that's more fun than having to use python2
<ben_m>
Make it a nice gem, too :D
atmosx has joined #ruby
danishman has joined #ruby
<shevy>
yeah
<Tasser>
shevy, clive? ^^
<ben_m>
If you document it nicely, you'll get a lot of people checking out your github :D
<ben_m>
Because there's a lot of people asking how youtube-dl works.
<mjb2k>
I've been wanting to actually do a ruby script to do this as well, but I can't get over how easy it is to do by hand, so I havn't bothered to try
<mjb2k>
on linux open ~/.cache/chromium/Default/Cache load video in Chromium and find the right file based on creation time and size
flype has joined #ruby
Husel has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
<mjb2k>
VLC will be able to open and play it, it can even transcode it if you want to use that, or there are many other options for transcoding as well
kylemcgill has joined #ruby
demian`_ has quit [Quit: demian`_]
andrewhl has joined #ruby
<shevy>
mjb2k I think we need only one thing - find out the URL
avandenhoven has quit [Quit: avandenhoven]
<shevy>
then it can be downloaded via open uri I guess
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
SirRamonGabriel has quit [Remote host closed the connection]
billy_ran_away has quit []
<mjb2k>
now, of course, I only do this with videos of which I have permission to do so by the content creator ...
exchgr has quit [Quit: exchgr]
<mjb2k>
shevy: yes, that's the part they try to hide
tommyvyo has joined #ruby
<mjb2k>
I can find it with Chromium's dev tools, but I don't know how to find it programmatically
Nisstyre has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
andrewhl has quit [Remote host closed the connection]
whitenoise has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
wmoxam has quit [Quit: leaving]
tommyvyo has quit [Client Quit]
cyborgv7 has joined #ruby
_JamieD_ has joined #ruby
nilg has quit [Remote host closed the connection]
<cyborgv7>
is it possible to encode ruby like zend and ion do for php?
whitenoise has joined #ruby
brasten has quit [Quit: brasten]
zomgbie has joined #ruby
<cyborgv7>
hello?
<mjb2k>
hi, how does zend encode php?
<denysonique>
cyborgv7: you want to encrypt Ruby's code?
<denysonique>
is anyone working on something like CoffeeScript but you write Ruby which compiles to JS
<denysonique>
?
jackiechan0 has quit [Ping timeout: 245 seconds]
<denysonique>
'puts' becomes 'console.log' etc
gyre007 has joined #ruby
<mjb2k>
I've never heard of such a project, but I am curious, why would you want to compile ruby to javascript ?
<denysonique>
mjb2k: I would like to write JavaScript using Ruby's syntax
<cyborgv7>
yeh so ppl can use it but not rip the code off
<oooPaul>
You'd want "#{thirdparty.to_sym}" not ":#{thirdparty}"
davidcelis has quit [Remote host closed the connection]
jchauncey has quit [Quit: jchauncey]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
chson has quit [Remote host closed the connection]
<faitswulff>
Anyone here from Toronto? I'm going to be in town in the 2nd week of July and I was wondering if there were any meetups I should know about.
<randomautomator>
thanks Paul
<fowl>
oooPaul, what about :"#{thirdparty}"
Bosma has quit [Quit: leaving]
<Mon_Ouie>
"#{thirdparty.to_sym}" is thirdparty
<oooPaul>
thirdparty is a variable, containing the string "zend" or "sly".
beilabs has joined #ruby
<oooPaul>
#{thirdparty.to_sym} would then be either :zend or :sly
<Mon_Ouie>
No, it would be "zend" or "sly"
<Mon_Ouie>
That's thirparty.to_sym
<oooPaul>
Oh, you're right, the #{} is inside another #{} already..
<oooPaul>
Just thirdparty.to_sym.
<Mon_Ouie>
And it would be simpler just to use symbols in the first place, really
<fowl>
intern > to_sym
Xai has joined #ruby
<oooPaul>
Yeah, definitely.
balki has joined #ruby
alanp has joined #ruby
<fowl>
so we're all agreed on :"#{thirdparty}", good
<randomautomator>
how i would i rewrite that if thirdparty started as a symbol then?
cbuxton has joined #ruby
alanp has joined #ruby
ccovey has quit [Read error: Connection reset by peer]
<shevy>
macer1 it is interpreted so it is not faster
<Hanmac>
macer1 ruby1.8 is much slower ... ruby1.9 is fater but not as fast as java ... but C is the fastest ...
<shevy>
Hanmac, I'll suggest the require_relative in 1.8.x but I think matz and yugui won't like to make any changes anymore. this month is the last chance for any new code anyway, 1.8 is dead soon
ackz has quit [Quit: Leaving...]
<Hanmac>
but i saw an Document about that ruby should get some kind of boost to make it nearly as fast as C
wilmoore has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
<macer1>
Hanmac: and I was thinking that Java was slow...x_x