<benzrf>
is it just a thin layer around RubyParser?
Celm has joined #ruby
<apeiros>
probably
PLejeck- has quit [Ping timeout: 265 seconds]
endash_ has quit [Client Quit]
Sc0rp10n has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
Fezzler has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
snowball4242 has joined #ruby
Fezzler has joined #ruby
<benzrf>
>I'm sure you're asking yourself, “how much does this enterprise solution cost me?”. Well, like any good enterprise system, it is insanely expensive. This gem will cost you eleventy billion dollars payable to me, now.
<benzrf>
omg
snowball4242 has quit [Client Quit]
zellio_ is now known as zellio
JBreit has joined #ruby
<apeiros>
table.header? or table.headers?
robustus|Off has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<apeiros>
benzrf: oooh, he wrote that entirely wrong. he really meant: like any good enterprise system, it is insanely reasonably priced. This gem will cost you only eleventy billion dollars payable to me, now.
unholycrab is now known as o7
o7 is now known as unholycrab
timonv has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
roolo has quit [Quit: Leaving...]
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
kennym has quit [Remote host closed the connection]
s2013_ has quit [Quit: Leaving]
kevind has quit [Quit: kevind]
PLejeck has joined #ruby
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
mansi has quit [Remote host closed the connection]
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
mansi has joined #ruby
philcrissman has quit [Ping timeout: 248 seconds]
timonv has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
fozworth has joined #ruby
danshultz has joined #ruby
carif has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
dpswireless has quit [Remote host closed the connection]
Xeago has joined #ruby
dpswireless has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
johnmilton has quit [Read error: Connection reset by peer]
danshultz has quit [Ping timeout: 252 seconds]
gilest has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
dpswireless has quit [Ping timeout: 248 seconds]
Wolland has quit [Remote host closed the connection]
ciwolsey has joined #ruby
kevind has joined #ruby
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevind has quit [Client Quit]
itadder has joined #ruby
slyv has joined #ruby
dx7 has joined #ruby
joonty_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
chipotle has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 260 seconds]
pfg has joined #ruby
evenix has quit [Remote host closed the connection]
Kricir has joined #ruby
Kricir has quit [Remote host closed the connection]
evenix has joined #ruby
PLejeck has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
codeFiend has joined #ruby
<mostlybadfly>
just came across this really cool work application that runs natively in chromebook for editing and running test code
<mostlybadfly>
collaboration, etc
evenix has quit [Read error: Connection reset by peer]
<diegoviola>
something that gives me relief is that it's amazing how many people already passed away but their work lives in free software
TheMoonMaster has joined #ruby
mavcunha has joined #ruby
<diegoviola>
and in git repositories, etc
<diegoviola>
i think it's pretty amazing
MattStratton has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
TheMoonMaster has quit [Excess Flood]
<pontiki_>
better than cvs repositories...
meatherly has joined #ruby
<diegoviola>
that's for sure
Voodoofish430 has quit [Quit: Leaving.]
<pontiki_>
it might be just me, but github is a rather social network of devs
<pontiki_>
i never ever felt that way with sourceforge
cj3kim has quit [Remote host closed the connection]
earthquake has joined #ruby
dx7 has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
axl_ has quit [Quit: axl_]
dx7 has joined #ruby
x77686d has quit [Quit: x77686d]
gregf has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 252 seconds]
tjr9898 has quit []
subbyyy has quit [Ping timeout: 260 seconds]
mgberlin has joined #ruby
pranny has quit [Quit: Leaving.]
<benzrf>
hey
dx7 has quit [Ping timeout: 252 seconds]
<benzrf>
is DRb safe?
<benzrf>
that is, if i publically open an object on drb
<benzrf>
is that potentially exploitable in any way beyond flaws in the callable methods?
<RubyPanther>
sourceforge was always more corporate, so they never even tried adding new features and thinking big. They were just doing what they were doing; providing hosting for OSS projects
<RubyPanther>
github showed up with startup culture, and implemented all sorts of features
v0n has quit [Ping timeout: 252 seconds]
<diegoviola>
the distributed nature of git might also have helped with that
gregf has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
<diegoviola>
sf was cvs/svn only, no?
<centrx>
benzrf, If there were a known exploit, I assume it would be fixed.
<pontiki_>
it's all the unkonwn exploits we have to worry about late at night....
<centrx>
benzrf, On the other hand, some parts of stdlib are rarely used and poorly implemented.
Wolland has joined #ruby
ultraflash3 has quit [Remote host closed the connection]
rjhunter has quit [Remote host closed the connection]
TheMoonMaster has quit [Excess Flood]
FL1SK has quit [Ping timeout: 260 seconds]
danshultz has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
axl_ has joined #ruby
Celm has quit [Remote host closed the connection]
jonahR has joined #ruby
Kricir has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
binaryhat has quit [Quit: Leaving]
mavcunha has quit [Quit: Computer has gone to sleep.]
nateberkopec has joined #ruby
milhite has joined #ruby
evenix has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
github existed before git became popular, svn was still the most common VCS. And svn and git aren't any more/less distributed as they are commonly used. Certainly not in a way that would matter to hosting
budrose has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
benzrf: DRb is fairly safe for relevant values of safe. It depends how you use it.
omegahm has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Excess Flood]
<benzrf>
as a public thing open to anybody
nateberkopec has quit [Ping timeout: 240 seconds]
<RubyPanther>
Right, but DRb is for primarily for building network app servers, so there is a lot involved in the details of how you design that. Making an app server "safe" for public use is generally not even done, people hide it behind a web interface
retnuh has joined #ruby
<snkcld>
if i have an object that implements [], and .each on it yields elements and everything correctly, how would i go about getting the entire array it would yield out?
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ilyam has quit [Quit: ilyam]
mocfive has joined #ruby
firewater has joined #ruby
<centrx>
snkcld, Array#== will use Object#== on each of the objects to check corresponding equality
<firewater>
Does anyone know how to check if a key in a hash contrains part of a string? AKA, lets say the "key" equals "string", and you are testing if a key starts with "st". How do you make that true?
sailias has quit [Ping timeout: 260 seconds]
<firewater>
How do you test for that, is there a method?
<stupidystupid>
so when i run that, the case thingy.. works fine if i say variable = "JS" ... but when i write variable = gets and then I type JS, it hits the else statement and outputs "I dont know"
<benzrf>
oh wait
<benzrf>
it includes the newline
<benzrf>
you need to chomp or strip it
<benzrf>
[1] pry(main)> gets
<benzrf>
foo
<benzrf>
=> "foo\n"
angusiguess has joined #ruby
<stupidystupid>
gets includes a newline?
<benzrf>
eyah
<benzrf>
&yeah
<benzrf>
ugh
<stupidystupid>
oh ok. alright i added gets.chomp and that fixed it
<stupidystupid>
<3 thanks
timonv has joined #ruby
<centrx>
"every organization's goal is to promote diversity, not to do the thing they're created to actually do"
<stupidystupid>
so codeacademy's own code was broken. thats embarrassing
Steve445 has joined #ruby
zono has quit [Quit: zono]
habanany has joined #ruby
sski has quit [Remote host closed the connection]
<Steve445>
anyone use GitHub or GitLab for Time Tracking? Tracking the amount of time spend on issues or Git commits?
<benzrf>
i dont!
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
AlecTaylor has joined #ruby
<AlecTaylor>
hi
<Karunamon>
•Steve445• Nope - sounds more like a Jira thing
<Karunamon>
I know Rubymine will gladly talk to both though and do that for ya
<Steve445>
looking for repos that have come up with solutions. Tagging, keywords, etc. I built the following: https://github.com/StephenOTT/GitHub-Time-Tracking but looking for people who have come up with other solutions. like to include that syntax is worth it
cj3kim has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
mocfive has quit [Ping timeout: 248 seconds]
b00stfr3ak has joined #ruby
AlecTaylor has quit [Read error: Connection reset by peer]
gilest has quit [Remote host closed the connection]
io_syl has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
jobewan has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
AlecTaylor has joined #ruby
* AlecTaylor
CPU overheated
<AlecTaylor>
That didn't work, I get this error: Your Ruby version is 2.1.0, but your Gemfile specified >= 2.0.0
abk has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
habanany has quit [Ping timeout: 260 seconds]
gilest has joined #ruby
arashb has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
<centrx>
AlecTaylor, Maybe the "ruby" directive has to be an exact version
<AlecTaylor>
Well that sucks :(
yfeldblum has quit [Remote host closed the connection]
jobewan has joined #ruby
<benzrf>
is it threqual or threequal?
<AlecTaylor>
Maybe I'lla dd a line like this to me setup script
<AlecTaylor>
sed -e -i Gemfile '/s/ruby \'2.0.0\'/ruby \'2.1.0\'/g'
<centrx>
benzrf, That sounds like a good name for the comparison operator <=>
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
kitak_ has joined #ruby
yacks has quit [Ping timeout: 260 seconds]
pierre1__ has quit [Quit: Leaving]
fijimunkii has quit [Ping timeout: 260 seconds]
sski has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pietr0 has quit [Quit: pietr0]
pierre1_ has joined #ruby
geggam has joined #ruby
krisbulman is now known as [krisbulman]
kitak has quit [Ping timeout: 245 seconds]
Celm has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
budrose has joined #ruby
habanany has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
mgberlin has quit [Ping timeout: 248 seconds]
gilest has quit [Remote host closed the connection]
rjhunter has joined #ruby
zB0hs has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
Kricir has joined #ruby
axl_ has quit [Quit: axl_]
sensen has quit [Ping timeout: 248 seconds]
<benzrf>
is there a set-xor for lists
thesheff17 has joined #ruby
pigzzcanfly has joined #ruby
habanany has quit [Ping timeout: 248 seconds]
<centrx>
"set-xor for lists" ?
tcopp has quit [Ping timeout: 252 seconds]
sensen has joined #ruby
thesheff17 has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
<benzrf>
yeah
thesheff17 has joined #ruby
<benzrf>
| is set-or for lists
<benzrf>
*arrays oops
<benzrf>
& is set-and for lists
<benzrf>
*ugh arrays
<benzrf>
but for some reason ^ is not set-xor for lists!
<centrx>
Have you been infected with the Python virus?
<benzrf>
no, it is just that everything besides ruby and js call lists lists
<benzrf>
and not arrays
<benzrf>
lisp, haskell, python, java
Kricir has quit [Ping timeout: 260 seconds]
<RubyPanther>
Larry Wall said Haskell is a language by geniuses, for geniuses.
<centrx>
I thought Java called them Arrays
sdwrage has joined #ruby
felipe has joined #ruby
<centrx>
C calls them arrays
<RubyPanther>
Perl distinguishes between lists and arrays
<benzrf>
c calls arrays arrays
<centrx>
C programmers call arrays arrays
<benzrf>
it does not call lists arrays
mary5030 has joined #ruby
<benzrf>
ruby, tho, calls lists arrays
<RubyPanther>
In Perl you can't call a list an array, but an array is a type of list
<havenwood>
benzrf: You mean they call Arrays lists?
mary5030 has quit [Remote host closed the connection]
<benzrf>
no, ruby calls lists arrays
<centrx>
What do you think is the difference?
<havenwood>
benzrf: no ruby calls arrays arrays
<RubyPanther>
Ruby has lists. For example, argument lists.
dik_dak has quit [Quit: Leaving]
Aryasam has joined #ruby
Cache_Money has joined #ruby
<centrx>
They are arrays. Lisp and Haskell might do something special as functional languages. Python renamed everything to try to be cool. Java calls them arrays I thought.
<RubyPanther>
list assignment: a,b,c = 1,2,3
<benzrf>
java calls arrays arrays
<benzrf>
and lists lists
sparrovv has joined #ruby
<benzrf>
it does not call lists arrays and it does not call arrays lists
<RubyPanther>
Perl is very literal about lists and arrays, too
<RubyPanther>
The problem is that it creates too much opportunity for cleverness.
iamdoo2 has joined #ruby
tonni has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 260 seconds]
Steve445 has quit [Quit: Steve445]
aspires has joined #ruby
AlecTaylor has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<centrx>
benzrf, I am not clear on the difference. If an array is only an array if it occupies contiguous memory, that seems an odd distinction for any high level language.
<centrx>
benzrf, If an array must only contain objects of the same static data type, that doesn't seem relevant for a dynamic language.
sparrovv has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
<benzrf>
an array is a structure of constant length without insertion or deletion
jonathanwallace has joined #ruby
<benzrf>
a list is a more general structure that includes almost any kind of sequence afaik
<benzrf>
i think it might require insertion but im not sure
localadmin has joined #ruby
makara has joined #ruby
subbyyy has joined #ruby
yasushi has joined #ruby
Salve has joined #ruby
<centrx>
As I recall, C always allowed inserting and deleting from an array with malloc
<centrx>
and C99 apparently defines variable-length arrays
kevinykchan has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
<benzrf>
inserting and deleting from an array with malloc?
sensen has quit [Ping timeout: 272 seconds]
<benzrf>
wat
<centrx>
and Perl arrays allow insertion and deletion
<benzrf>
anyway imo array refers to the concrete data structure as seen in centrx
<benzrf>
*C
<benzrf>
and if that's meaningless in HLLs, then dont call things in HLLs arrays!
<centrx>
So I'd say C and Perl outweight Java and Python
vlad_starkov has quit [Remote host closed the connection]
<benzrf>
1. a list is an ordered data structure that can have repeatable elements
<benzrf>
2. an array is a kind of list that is implemented with contiguous memory
Aryasam_ has joined #ruby
<centrx>
It says right at the top of the "Array data structure" article:
<centrx>
"Not to be confused with Array data type."
<benzrf>
o i did not see
<benzrf>
let me look
<RubyPanther>
It redirects, but is covering a linked list
<RubyPanther>
"In computer science, an array type is a data type that is meant to describe a collection of elements (values or variables), each selected by one or more indices (identifying keys) that can be computed at run time by the program. "
Salve has quit [Ping timeout: 248 seconds]
<centrx>
" In some contexts, such as in Lisp programming, the term list may refer specifically to a linked list rather than an array."
localadmin has quit [Quit: localadmin]
aryaching has joined #ruby
Aryasam_ has quit [Client Quit]
Aryasam has quit [Ping timeout: 260 seconds]
anarang has joined #ruby
angusiguess has joined #ruby
mary5030 has quit [Remote host closed the connection]
aspires has quit []
okinomo has joined #ruby
<centrx>
Looks like Delphi/Object Pascal has dynamic-length arrays too
yfeldblum has quit [Remote host closed the connection]
<centrx>
array, list, tuple, where does it end!?
funburn has quit [Quit: funburn]
yfeldblum has joined #ruby
<benzrf>
:)
<benzrf>
in this case tuple just refers to a heterogeneous array of fixed length
<benzrf>
i.e. tuple(1, String) would match [1, "foo"]
Ch4rAss has joined #ruby
<benzrf>
whereas array_of is for heterogenous arrays of arbitrary length
<benzrf>
*homogeneous
timonv has quit [Remote host closed the connection]
riceandbeans has joined #ruby
pigzzcan_ has quit [Remote host closed the connection]
<riceandbeans>
anyone heard of padrino and goliath?
<Nyyx>
it seems that if I want to use ruby without rails, that is ruby for other applications besides webs, I have to use jruby and leverage java libraries
pigzzcanfly has joined #ruby
<riceandbeans>
no
<riceandbeans>
don't talk like that
<riceandbeans>
there is definitely ruby outside of rails
<Nyyx>
I wonder if that is because jruby exists or simply that ruby was never popular for that sort of stuff anyway
<riceandbeans>
and jvm is garbage
<Nyyx>
I like the jvm
anarang has joined #ruby
<riceandbeans>
ruby never caught on as much in the main market because MRI wasn't as fast until YARV
gnephiak has joined #ruby
dukz has quit [Remote host closed the connection]
<riceandbeans>
ruby's strength is its elegance and tight community
ultraflash3 has quit [Remote host closed the connection]
rhys has joined #ruby
rjhunter has quit [Remote host closed the connection]
carlyle has joined #ruby
<riceandbeans>
why would you like the jvm?
nichtdiebohne has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
<hermanmunster>
i first got into ruby because of how disgusting Java was (still is. Saw some today... Ew!)
<riceandbeans>
it's a universal security vulnerability at best that leaks like a 70 year old pipe
dukz has joined #ruby
_5kg has joined #ruby
<Nyyx>
well there's no tight community around language processing, gnome/linux desktop apps, numerical and scientific computing, etc. in ruby
<riceandbeans>
hermanmunster: if we're doing confessions, I used to be a VB programmer many moons ago, that is eww
<Nyyx>
and the jvm is fast, the bytecode is easily understandable, it's extremely portable, there are tons of _stable_ java libraries
<hermanmunster>
riceandbeans: me too, long long ago
<riceandbeans>
Nyyx: portable is a harsh word for java
<riceandbeans>
it exposes 0 days on anything it touches
<riceandbeans>
I don't even allow java on my systems
<riceandbeans>
I'm very anti java
<riceandbeans>
anti oracle
<hermanmunster>
Nyyx: everytime I go near a java project, some clown (or a bunch of them) have over-engineered it.
<Nyyx>
Im not saying java
<Nyyx>
I'm saying jvm
<Nyyx>
jvm is not java
<hermanmunster>
fair point.
<Nyyx>
jruby, clojure, and scala may run on jvm alongside java
sawtooth1 has quit [Ping timeout: 260 seconds]
OdNairy has quit []
<riceandbeans>
jvm is just a host language masquerading as java in a VM on any OS that supports it
<hermanmunster>
put it this way. in my experiments with jruby and clojure I quickly ran into Java
<Nyyx>
riceandbeans: there are open implementations of jvm you know
OdNairy has joined #ruby
<hermanmunster>
which i really don't like.
sawtooth has joined #ruby
<riceandbeans>
to be compatible with jvm code they expose themselves to the same security and memory issues
<hermanmunster>
so i just stay away from the JVM wherever possible. Java keeps leaking back at me.
Guest81856 is now known as bhaak
<riceandbeans>
Nyyx: if it works for you, I'm happy for you
<hermanmunster>
me too :)
larsam has quit [Quit: larsam]
<riceandbeans>
I'm the weirdo where I'm at though
<riceandbeans>
everyone else around me praises java and jvm, loves mysql
<riceandbeans>
I hate java and jvm, I encourage postgresql
<Nyyx>
and most of these java exploits are through browser plugins
<riceandbeans>
I was a debian guy in a sea of redhat
carlyle has quit [Remote host closed the connection]
<Nyyx>
I don't remember the last I've seen anyone used java applets
<Nyyx>
soo....
<riceandbeans>
Nyyx: and possessing a jvm makes you vulnerable
<riceandbeans>
if you don't have a jvm, you are safe
<Nyyx>
that's like saying
<riceandbeans>
java is a parasite that needs a host
<Nyyx>
if you own a computer
<Nyyx>
you are vulnerable
<riceandbeans>
if you don't grant it a host, it dies
<Nyyx>
if you dont have one, you are safe
<hermanmunster>
Nyyx: yes, you're right. the applet container is usually the point of entry.
wchun has joined #ruby
<riceandbeans>
an OS does not need java
Kricir has joined #ruby
<riceandbeans>
but yeah, I've moved to the BSD side now
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
leslie2 has joined #ruby
<riceandbeans>
Nyyx: any time I've been to a page with an applet I get warnings about how nothing will work because I 'need' java
gja has joined #ruby
<riceandbeans>
so I just go elsewhere
sensen has quit [Ping timeout: 248 seconds]
<riceandbeans>
to get me someone will need a slighly better attack vector
yacks has joined #ruby
_tickez has quit [Read error: Connection reset by peer]
<Nyyx>
I have always had java installed on my computers
<Nyyx>
I have never once clicked a java applet or thought I needed to enable it
dukz has quit [Remote host closed the connection]
<Nyyx>
they are disabled by default in my browsers
rhys has quit [Ping timeout: 265 seconds]
yeticry has quit [Read error: Connection reset by peer]
dukz has joined #ruby
sensen has joined #ruby
yeticry has joined #ruby
<riceandbeans>
you assume java will ever respect your wishes
<riceandbeans>
it's built to not do that
dukz_ has joined #ruby
<riceandbeans>
it's built to exist as a backdoor into all OSes
<Nyyx>
x.x
angusiguess has joined #ruby
dukz has quit [Read error: Connection reset by peer]
* riceandbeans
hands Nyyx a tin foil hat
klaut has joined #ruby
aganov has joined #ruby
aspires has quit []
evenix has joined #ruby
havenwood has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 260 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<shevy>
finally a hat for his penis
zono has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
<shevy>
people who love java are very suspicious
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
LinuxKorn has joined #ruby
<centrx>
I have heard that Java can damage minds
<centrx>
Even PHP does not do that, because it is so obviously bogus
dukz_ has quit [Remote host closed the connection]
gilest has joined #ruby
<shevy>
hmm
<shevy>
PHP is weird
<shevy>
I think it is not really a programming language
bbloom has quit [Ping timeout: 265 seconds]
dukz has joined #ruby
<centrx>
PHP is an abomination and a scourge on the face of the earth.
<shevy>
lately the php devs changed some default in regards to serving errors
riking_ is now known as Riking
Riking has quit [Changing host]
Riking has joined #ruby
bal has joined #ruby
<shevy>
someone I know from #emn complained that this now serves "blank pages"
dukz has quit [Read error: Connection reset by peer]
<shevy>
and there was no understandable need for the change, so he ranted against the php devs. it was both sad and kind of amusing at the same time
dukz has joined #ruby
<centrx>
I have heard horrible things about the PHP devs that you would not tell children
<shevy>
are you a little overdramatzing ;)
<Nyyx>
shevy: jvm..
foooobear has joined #ruby
dukz_ has joined #ruby
<shevy>
Nyyx yeah, jvm is a nice idea
<Nyyx>
I don't particularly like java
Salve has quit [Ping timeout: 248 seconds]
<shevy>
but you need java for jvm! :(
<Nyyx>
no
evenix has joined #ruby
<shevy>
no?
<Nyyx>
you can use clojure
<Nyyx>
or scala
<Nyyx>
or jruby
<Nyyx>
or groovy
<shevy>
hey
joelroa has joined #ruby
<shevy>
that needs java
<Nyyx>
no?
<shevy>
I am pretty sure you can't use jruby without java
<Nyyx>
they generate straight to bytecode
lolmaus has quit [Ping timeout: 260 seconds]
evenix has quit [Read error: Connection reset by peer]
<centrx>
It is Java bytecode, maybe it is a layer of sanity
evenix has joined #ruby
<shevy>
well, if there is the jvm without java then this is a good thing
<benzrf>
ima sleep now
<benzrf>
good bye
benzrf has left #ruby [#ruby]
<shevy>
yes
<shevy>
sleep and go away :>
<shevy>
benzrf is so hyperactive
<Nyyx>
I think I tripped and fell into the looney bin
evenix has quit [Read error: Connection reset by peer]
<shevy>
every year a new language, and he abandons the old one
<centrx>
#ruby seems to attract flame wars, very high quality flame wars
agjacome has quit [Ping timeout: 265 seconds]
<shevy>
we just mention inferior languages
evenix has joined #ruby
<shevy>
there is not much to flame here
robbyoconnor has joined #ruby
<shevy>
unless you point out that ruby is slow
evenix has quit [Read error: Connection reset by peer]
<Riking>
CODE CHALLENGE: Generate an understandable sentence
<Riking>
(any language)
gilest has quit [Remote host closed the connection]
cj3kim has joined #ruby
<shevy>
Riking likes angry girls.
evenix has joined #ruby
<shevy>
put a puts before and this in "" quotes
dukz has quit [Ping timeout: 252 seconds]
<shevy>
in java it will probably require 5 additional lines of code
<Riking>
Rules: 1. Hard-coding the sentences is not permitted, and nor is reading them directly from a file (i'm looking at you, unclemeat)
evenix has quit [Read error: Connection reset by peer]
<tobiasvl>
"Objects that aren’t strings will be converted by calling their to_s method."
Kneferilis has joined #ruby
timonv has quit [Remote host closed the connection]
jackneill has quit [Quit: WeeChat 0.4.3]
sski has quit [Remote host closed the connection]
jackneill has joined #ruby
sski has joined #ruby
Azulinho has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
alexherbo2 has joined #ruby
Findegil has quit [Ping timeout: 248 seconds]
sski has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
Findegil has joined #ruby
nhhagen has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 265 seconds]
kevinykchan has joined #ruby
srji_ has quit [Quit: leaving]
bobdobbs has joined #ruby
srji has joined #ruby
sski has joined #ruby
phansch has joined #ruby
hiall has quit [Quit: hiall]
cephalostrum has quit [Ping timeout: 252 seconds]
zono has quit [Read error: Connection reset by peer]
torstein has joined #ruby
timonv has joined #ruby
LinuxKorn has quit [Quit: Leaving]
zono has joined #ruby
anfr has joined #ruby
mjs2600 has joined #ruby
dukz_ has joined #ruby
zono has quit [Client Quit]
matti_ has quit [Quit: Reconnecting]
coderhs has joined #ruby
matti_ has joined #ruby
coderhs has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ocx has quit [Ping timeout: 245 seconds]
deadlock has joined #ruby
gozali has quit [Remote host closed the connection]
carlyle has joined #ruby
dukz has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
gengis has joined #ruby
mjs2600 has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 252 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
cephalostrum has joined #ruby
ItSANgo has quit [Quit: Leaving...]
vcoinminer is now known as vcoinminer_rock
vlad_starkov has joined #ruby
ocx has joined #ruby
<ocx>
what is the difference between these ? http://pastie.org/8754986 i understand that a method can end with a = why arent they returning the same results?
vcoinminer_rock is now known as vcoinminer
carlyle has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
<tobiasvl>
ocx: methods that end in = return the right hand side (the argument)
gengis has quit [Ping timeout: 272 seconds]
<tobiasvl>
so that they can be chained like this: x = sum_add = 2
<tobiasvl>
( sum_add=(2) is the same as sum_add = 2 )
<canton7-mac>
I suspect it's a bit of magic to save you having to remember the return the value of the RHS when implementing a method which ends in =
<canton7-mac>
s/the return/to return
<ocx>
so methods ending with = cannot return multiple results
angusiguess has joined #ruby
relix has joined #ruby
felipecvo has joined #ruby
<tobiasvl>
ocx: yes it can, if you explicitly return the value
<canton7-mac>
If you wrote a method which did that, and I tried to use it in a chain of assignments (see tobiasvl), I'd really hate you :P
<tobiasvl>
>> def sum_add=(x); return [x+1,x*2]; end
<tobiasvl>
no sorry, i called the other method. more coffee for me
lolmaus has joined #ruby
<canton7-mac>
if it returns some custom value, it really shouldn't be an assignment ;)
yasushi has quit [Remote host closed the connection]
<certainty>
still it's interesting why that happens
cj3kim has quit [Remote host closed the connection]
czardoz has joined #ruby
czardoz has left #ruby [#ruby]
abunchofdollarsi has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
<tobiasvl>
it would be horrible if `foo = 2` returned "bar"
<abunchofdollarsi>
yaml/marshal neither support serialization of the identity of the object? ie two objects have references to the same third object and this invariant will hold after I unserialize them.
kennym has joined #ruby
mengu has quit [Remote host closed the connection]
kennym has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
ahawkins has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
zeeraw has joined #ruby
grzywacz has quit [Ping timeout: 272 seconds]
shiin has joined #ruby
Kricir has joined #ruby
radic has quit [Ping timeout: 260 seconds]
radic has joined #ruby
thesheff17 has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
havenwood has quit []
[gmi] has joined #ruby
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
nhhagen has joined #ruby
jack_rabbit has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
pabloh has joined #ruby
dukz_ has quit [Read error: Connection reset by peer]
dukz has joined #ruby
Jeff_D has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
anfr has left #ruby [#ruby]
_root has joined #ruby
kayamm has joined #ruby
<shiin>
I want to get into shell scripting with ruby, I write scripts in my day to day work, often less than 200 lines, but Im not happy with /bin/sh|bash|zsh - are there any workflow proposals, frameworks or tools to use? or what to avoid? example projects covering the matter?
gbt has joined #ruby
<shiin>
oh, and testing is fun too. I just dont have any experience with behavior driven/specs aside from reading a lot.
meatherly has joined #ruby
kitak_ has quit [Remote host closed the connection]
jzig has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
jzig has joined #ruby
ItSANgo has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
<certainty>
tobiasvl: yeah that would be weired and wrong for all sane definitions of assignment, but should it really be impossible?
RoxasShadowRS has joined #ruby
thejoecarroll is now known as thejoecarroll_zz
klaut has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 248 seconds]
dukz has quit []
nhhagen_ has quit [Ping timeout: 252 seconds]
jzig has quit [Ping timeout: 265 seconds]
xbob has joined #ruby
fridim_ has joined #ruby
thejoecarroll_zz is now known as thejoecarroll
randomnick_ has joined #ruby
xBradPittx has quit [Read error: Connection reset by peer]
xue has quit [Quit: Leaving]
xBradPittx has joined #ruby
nhhagen has joined #ruby
Authenticator has quit [Ping timeout: 248 seconds]
gnephiak has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
Kelgors has joined #ruby
xBradPittx has quit [Ping timeout: 272 seconds]
_root has quit [Quit: Leaving]
<jacobat>
Is it somehow possible to convert "[1, 2, 3].select{|number| number % 2 == 0}" into "[1, 2, 3].select EvenFilter.new" or something like that?
napcae has joined #ruby
cj3kim has joined #ruby
yfeldblum has joined #ruby
DaniG2k has joined #ruby
AlexRussia has joined #ruby
gnephiak has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
shiin has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Ping timeout: 252 seconds]
kennym has joined #ruby
Jeff_D has quit [Quit: JMP $]
KarolisNo has joined #ruby
<apeiros>
sometimes I wish ruby had the same distinction between undefined and null like javascript does
roolo has quit [Quit: Leaving...]
freerobby has joined #ruby
freerobby has quit [Client Quit]
Kricir has joined #ruby
habanany has joined #ruby
<certainty>
apeiros: can you give an example?
ringaroses has quit [Quit: Leaving]
monkegjinni has quit [Remote host closed the connection]
<apeiros>
certainty: how would you implement Hash#fetch in pure ruby?
monkegjinni has joined #ruby
makara has joined #ruby
<apeiros>
regarding the case of {}.fetch(:a) # !> KeyError, and {}.fetch(:a, nil) # => nil
<apeiros>
I know how, but it's ugly.
Kricir has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
deadlock has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
Matriks has quit [Remote host closed the connection]
<apeiros>
sooooooooo many tests to write :(
<popl>
tests are fun!
<certainty>
apeiros: so you want a KeyError if you request the value for a key but didn't supply a default?
<popl>
:P
monkegjinni has quit [Ping timeout: 260 seconds]
<certainty>
*a key that doesn't exist
<apeiros>
certainty: correct
meatherly has joined #ruby
ksevelyar has joined #ruby
<apeiros>
popl: want to write them for me?
<apeiros>
the groundwork is there…
Jemboh has quit [Read error: Connection reset by peer]
black0ut has joined #ruby
black0ut has quit [Excess Flood]
black0ut has joined #ruby
black0ut has quit [Excess Flood]
black0ut has joined #ruby
black0ut has quit [Excess Flood]
<certainty>
apeiros: ok it is ugly. You have to pass *args and check if it's empty or has a value that you can default to. Also you have to check if the key exists explicitely.
black0ut has joined #ruby
black0ut has quit [Remote host closed the connection]
michael_lee has quit [Ping timeout: 252 seconds]
<apeiros>
certainty: yupp
<apeiros>
certainty: and now for calling that method
<apeiros>
you can't pass in a variable at all if you want the KeyError behavior
<apeiros>
you need *args there too
meatherly has quit [Ping timeout: 260 seconds]
<certainty>
apeiros: hmm i think i don't understand that part
roolo has joined #ruby
black0ut has joined #ruby
black0ut has quit [Excess Flood]
zeeraw has quit [Read error: Connection reset by peer]
<certainty>
apeiros: nvm. i think i know what you mean
<popl>
apeiros: I'm not sure you want me writing Ruby for you; I'd be willing to give it a shot, though.
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
* popl
plays with loaded firearms
<popl>
:P
<certainty>
if there were an undef value you could have a variable that's either undef or a non bottom value and pass that to fetch
<popl>
do people still use minitest?
tonni has joined #ruby
<apeiros>
popl: yes. I don't, but I should as it seems. I use Test::Unit and its docs say "If you are writing new test code, please use MiniTest instead of Test::Unit."
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
joelroa has joined #ruby
<certainty>
apeiros: i can't remeber finding myself to want something that is equivalent to a KeyError. Do you have a specific case? Why would you want fetch to bottom out when you can have other sane semantics?
koomerang has joined #ruby
<apeiros>
certainty: what semantic would you use then to provide a feature like Hash#fetch?
<apeiros>
my use case is precisely that of Hash#fetch, just for Table#row, Table#cell and Row#cell
monkegjinni has joined #ruby
JasmeetQA1 has joined #ruby
joelroa_ has joined #ruby
JasmeetQA1 has quit [Client Quit]
JasmeetQA has quit [Ping timeout: 272 seconds]
<popl>
I'm always happy to learn new stuff. apeiros, will you be on around this time tomorrow?
<apeiros>
popl: not sure, might be hiking. but when I'm not hiking (or before and after, if I go) I'll be online
plexus_ has quit [Read error: Operation timed out]
krz has quit [Quit: WeeChat 0.4.2]
joelroa has quit [Ping timeout: 260 seconds]
<popl>
I have to sleep so I can wake up to go to work but I'll definitely/happily write tests/other sundries.
<apeiros>
I think latest I'd be around would be ~1900 UTC
<apeiros>
I have almost completed tests for TableData::Table
<apeiros>
you could e.g. write tests for Column and Row
Deele has quit [Ping timeout: 260 seconds]
<apeiros>
I'll push, so you can see the basic test setup
thejoecarroll is now known as thejoecarroll_zz
<popl>
sounds good
kennym_ has joined #ruby
kennym has quit [Ping timeout: 260 seconds]
koomerang has quit []
<popl>
see you later, then
popl has quit [Quit: Touch the frog.]
freggles has joined #ruby
joelroa_ has quit [Ping timeout: 252 seconds]
Slavox has joined #ruby
thomasxie has joined #ruby
<apeiros>
oh
<apeiros>
just wanted to say I pushed. well then :)
<certainty>
Hash#fetch can't be passed a variable either for the same reason.
monkegjinni has quit [Remote host closed the connection]
<apeiros>
certainty: I know. Which is why I wished for undefined
<apeiros>
so you can
<apeiros>
or could
ksevelyar has quit [Quit: Page closed]
monkegjinni has joined #ruby
evenix has joined #ruby
kate_r has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
kate_r has quit [Max SendQ exceeded]
chipotle has quit [Quit: cya]
koell has joined #ruby
makara has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
monkegjinni has joined #ruby
mjs2600 has joined #ruby
sensen has quit [Quit: leaving]
<apeiros>
certainty: but I'm still curious as to what the saner semantics would be
carlyle has joined #ruby
lolmaus has joined #ruby
kayamm has quit [Ping timeout: 252 seconds]
ilyam has joined #ruby
<certainty>
apeiros: like giving the default then. Having an exception is good where you want your entire program to go bottom (unless you have exception handlers). I haven't yet seen this case as you almost always take care of this in real programs. Giving a default is the same as having a Null-type except that you can specify which values represent an instance of that type. Does that make sense?
kayamm has joined #ruby
mjs2600 has quit [Ping timeout: 260 seconds]
habanany has quit [Read error: Operation timed out]
nhhagen has joined #ruby
Jetchisel has joined #ruby
gengis has joined #ruby
<apeiros>
certainty: I don't think it makes sense to me
S0da has quit [Remote host closed the connection]
<apeiros>
certainty: I'm not sure whether it's also a misunderstanding of the purpose
carlyle has quit [Ping timeout: 240 seconds]
<apeiros>
fetch solves two scenarios: a) it asserts that I access an existing key. I.e., I'm sure my program only accesses existing keys, if not, it's a bug and it should raise
<apeiros>
and b) I know the key might not exist, and in that case, I want a specific default value (for whatever reason), I.e., it's not a bug.
waheedi has quit [Quit: Waheedi]
mehlah has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gengis has quit [Ping timeout: 252 seconds]
makara has joined #ruby
speakingcode has joined #ruby
Mongey has joined #ruby
Kelgors has quit [Remote host closed the connection]
<certainty>
apeiros: yeah right. Maybe my way of thinking is screwed here. I just don't think that it's exceptional for a map to not have a value for a given key
<apeiros>
certainty: whether or not it is exceptional depends on your situation
cj3kim has joined #ruby
<certainty>
apeiros: you could for example throw another type at this problem. Something like a Table::Undefined class
<apeiros>
I could. but that would be even uglier.
Speed has joined #ruby
mavcunha has joined #ruby
thomasxie has quit [Remote host closed the connection]
<apeiros>
another alternative would be to have two separate methods
<apeiros>
one which doesn't accept a default value and raises
thomasxie has joined #ruby
<apeiros>
another which accepts a default value, which itself defaults to nil and never raises
<certainty>
i'd like that, but i'm not sure real rubiests would like it. I'm surely none
<apeiros>
the problem about that approach is, that ruby set a bad precedence for that.
cj3kim has quit [Read error: Connection reset by peer]
<apeiros>
it defaults to not raise and return nil
<apeiros>
and provide a second method which still does both.
monkegjinni has quit [Remote host closed the connection]
GinoMan has quit [Ping timeout: 248 seconds]
<certainty>
yeah, but it's never too late to fix things :)
<certainty>
bbl
Es0teric has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
Kricir has joined #ruby
relix has joined #ruby
monkegjinni has joined #ruby
Virtualize|away has joined #ruby
freerobby has quit [Quit: Leaving.]
Giorgio has joined #ruby
<Giorgio>
hello its is possible to make this
<Giorgio>
with new ruby hash syntax
<tobiasvl>
Giorgio: make what?
<Giorgio>
{data: { 'sort-url': 1 }}
stryek has quit [Ping timeout: 260 seconds]
<tobiasvl>
ok
Kricir has quit [Ping timeout: 265 seconds]
<Giorgio>
sorry laptop freaze
thejoecarroll_zz is now known as thejoecarroll
<tobiasvl>
no, the new syntax can only use symbols as keys
pacharanero has joined #ruby
<Giorgio>
ahh thank you i know is possible with old
thejoecarroll is now known as thejoecarroll_zz
<Giorgio>
but i`m curious about new :)
aep_ is now known as aep
thejoecarroll_zz is now known as thejoecarroll
foooobear has quit [Quit: Computer has gone to sleep.]
<apeiros>
the new syntax just allows you to write {:foo => "bar"} as {foo: "bar"} instead
Virtualize|away has quit [Ping timeout: 251 seconds]
<apeiros>
and it's no longer really new. this stuff is now what, 6 years old?
meatherly has joined #ruby
foooobear has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
<Giorgio>
yes i used new to describe it ;)
<apeiros>
it has an additional restriction on what symbols you can write that way. I think it's only ones which satisfy /\A\w+\z/
<Giorgio>
foo: 'bar' is newer than hash rocket
thomasxie has joined #ruby
<apeiros>
ok
Biohazard has joined #ruby
colli5ion has quit []
Virtualize|away has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
felipecvo has quit [Remote host closed the connection]
IceDragon has joined #ruby
colli5ion has joined #ruby
ilyam has quit [Quit: ilyam]
freerobby has joined #ruby
foooobear has quit [Ping timeout: 252 seconds]
zz_karupanerura is now known as karupanerura
meatherly has quit [Ping timeout: 252 seconds]
Mongey has quit [Quit: Mongey]
supergeek has joined #ruby
kreisys has joined #ruby
habanany has joined #ruby
xBradPittx has joined #ruby
AlSquire has joined #ruby
hiall has quit [Ping timeout: 252 seconds]
karupanerura is now known as zz_karupanerura
<certainty>
apeiros: another way is fetch(:non_existing_key) #=> KeyError and fetch(:non_existing_key){ default_value } #=> default_value ... not the prettiest API though, it's just a hack as we have block_given? which is equivalent to block undefined :)
ilyam has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
intuxicated has quit [Read error: No route to host]
sepp2k has joined #ruby
thejoecarroll is now known as thejoecarroll_zz
pacharanero has quit [Remote host closed the connection]
io_syl has joined #ruby
chipotle has joined #ruby
joelroa has joined #ruby
timonv has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
joonty has quit [Quit: WeeChat 0.4.2]
yeticry has joined #ruby
thejoecarroll_zz is now known as thejoecarroll
mjs2600 has joined #ruby
aep has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 260 seconds]
Ch4rAss has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
KarolisNo has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 260 seconds]
aep has joined #ruby
<mikecmpbll>
i noticed the other day that you can't use "do:" as a key using that notation :o
<apeiros>
certainty: fetch does that already
<mikecmpbll>
{ do: 'something' }
<apeiros>
certainty: you can either provide a default value or a default block
joelroa has quit [Ping timeout: 272 seconds]
Kelgors has joined #ruby
<apeiros>
$ ruby -e 'p({do: 1})'
<apeiros>
{:do=>1}
<apeiros>
works just fine mikecmpbll
<mikecmpbll>
hmpf.
<mikecmpbll>
what ruby version
yalue has joined #ruby
Ch4rAss` has quit [Ping timeout: 252 seconds]
<apeiros>
2.1
<apeiros>
works in 1.9 too
<certainty>
apeiros: ah, didn't know that. Why not go with that then?
<mikecmpbll>
ruby -e 'p({do: 'something'})'
<mikecmpbll>
:)
<apeiros>
certainty: because fetch provides both ways
<mikecmpbll>
must be specific to single quoted strings.
<mikecmpbll>
oh wait
<mikecmpbll>
ignore me.
<mikecmpbll>
load irb and type { do: 1 }
davedev24 has joined #ruby
<mikecmpbll>
tell me it's not just me.
ultraflash3 has joined #ruby
noop has quit [Ping timeout: 252 seconds]
<certainty>
apeiros: i see. Personally i'd probably drop that compatibility for a way to distingiush between both execution paths clearly. But i'm crazy
<apeiros>
irb is not an 100% accurate ruby parser
<mikecmpbll>
apeiros: yeah, just an irb error then.
* mikecmpbll
shrugs
<apeiros>
that's why I did ruby -e ;-)
<apeiros>
syntax oddities are best tested in ruby itself instead of irb/pry
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikecmpbll>
indeed.
<certainty>
mikecmpbll: if you Ctrl-d out of it it will print it. seems to be a readline thing
<mikecmpbll>
yup.
Es0teric has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
<mikecmpbll>
on the subject of readline, i used to get command history from previous irb sessons
TheLarkInn has joined #ruby
ultraflash3 has quit [Ping timeout: 252 seconds]
<TheLarkInn>
Good morning all!
<mikecmpbll>
haven't looked in to it, but i no longer do.
<apeiros>
probably messed up your irbrc
Hanmac has quit [Ping timeout: 252 seconds]
<mikecmpbll>
oh, i don't have one
KarolisNo has joined #ruby
poulson has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
johnmlocklear_ has joined #ruby
colli5ion has quit []
johnmlocklear_ has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
carlyle has joined #ruby
TheLarkInn has left #ruby [#ruby]
thejoecarroll is now known as thejoecarroll_zz
poulson has joined #ruby
grzywacz has joined #ruby
S0da has joined #ruby
Kelgors has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
ilyam has quit [Ping timeout: 272 seconds]
carlyle has quit [Ping timeout: 240 seconds]
djdb has joined #ruby
DaniG2k has quit [Quit: leaving]
plexus_ has joined #ruby
thejoecarroll_zz is now known as thejoecarroll
Mongey has joined #ruby
<mikecmpbll>
hm, found an irbrc at /etc/irbrc, irb didn't seem to be taking any notice of it tho.
dangerousdave has joined #ruby
jglover has joined #ruby
<jglover>
Does anybody know an elegant way to handle subdomains in Sinatra?
supergeek has quit [Quit: Goodbye, cruel world.]
<mikecmpbll>
jglover: what do you mean by handle?
ilyam has joined #ruby
<tobiasvl>
mikecmpbll: it probably doesn't read /etc/irbrc by default unless you source it in ~/.irbrc ?
<tobiasvl>
if it's anything like bashrc, for example
<mikecmpbll>
tobiasvl: eh. you're probably right. i've never looked at it before so i dunno how it was set up when it worked.
<mikecmpbll>
it's ok now anyway, i just created a ~/.irbrc
maoko has joined #ruby
colli5ion has joined #ruby
kayamm has quit [Quit: sleep]
marcus has joined #ruby
tkuchiki has joined #ruby
<marcus>
I need help. I'm trying to run rackup but I get this error. could not find do_sqlite3-0-10.13 in any of the sources.
<jglover>
mikecmpbll: I want to be able to map any subdomain to a specific controller
<jglover>
so any time it looks like {subdomain}.domain.com/?{params} I can send it to a specific controller
phutch1ns has quit [Ping timeout: 252 seconds]
<marcus>
I need help. I'm trying to run rackup but I get this error. could not find do_sqlite3-0-10.13 in any of the sources.
<marcus>
I need help. I'm trying to run rackup but I get this error. could not find do_sqlite3-0-10.13 in any of the sources.
<jglover>
mikecmpbll: I've been trying to work with that, but it doesn't really seem to work correctly. maybe I just have to fiddle with it a bit more
<canton7>
marcus, stop spamming the channel. if someone who can help didn't see it the first time, they won't the third
<mikecmpbll>
jglover: ah okay, i have no experience with it i'm afraid.
tonni has joined #ruby
randomnick_ has quit [Ping timeout: 260 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
<canton7>
marcus, have you installed do_sqlite3?
<jglover>
mikecmpbll: no problem. Is there an alternative way to set up subdomains that I'm missing, that wouldn't require setup in ruby? I'm worried that trying to do it through Sinatra is maybe a bit of a hack
<mikecmpbll>
jglover: not sure i know what you mean
Kricir has joined #ruby
randomnick_ has joined #ruby
<mikecmpbll>
sounds like you want to do different things based on the subdomain? so your app will have to know about that
<jglover>
mikecmpbll: in an apache server we can set up sub domains by adding a ServerAlias. I'm wondering if I should be trying to do subdomain configuration elsewhere
<jglover>
mikecmpbll:that's a good point.
<mikecmpbll>
sure, you can set up different subdomains to go to different apps, or the same app
<mikecmpbll>
but if they're going to the same app and you want it to do different things, you have to make that logic in the app.
<jglover>
mikecmpbll: hm. ok that's true. Strange that there isn't more documentation about this online. Seems like a popular thing to want to do.
<jglover>
i'll keep searching though, thanks
<mikecmpbll>
often people will use subdomains for different apps. i don't know specifically how you're intending to use the subdomains so i don't know if it's common
dubsteph has joined #ruby
<marcus>
canton7: Yes I have installed it, and I am sorry for spamming
<jglover>
mikecmpbll: same app, but different user pages
<mikecmpbll>
so like, user1.app.com, user2.app.com?
<jglover>
mikecmpbll: exactly
GinoMan has joined #ruby
<mikecmpbll>
oh, so you don't really want to do different things, you want to do the same thing but in a different context, so to speak
cj3kim has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
habanany has quit [Ping timeout: 248 seconds]
<jglover>
yep, the userid is going to be a query parameter
mavcunha has quit [Ping timeout: 252 seconds]
webgen has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
chrisseaton has joined #ruby
Mongey has quit [Quit: Mongey]
<mikecmpbll>
so the only thing you really need to do is parse the subdomain? i'd probably write some simple rack middleware to do that on every request
IceyEC has joined #ruby
maximski has joined #ruby
<jglover>
mikecmpbll: oh alright, i'll give that a shot. thanks a lot
KarolisNo has quit [Remote host closed the connection]
kindjal has joined #ruby
MattStratton has joined #ruby
KarolisNo has joined #ruby
cj3kim has quit [Ping timeout: 260 seconds]
stryek has joined #ruby
jwest1 is now known as jwest
tacos1de has joined #ruby
<jglover>
jwest:hey jwest are you my calculus 3 prof, because I think you are
banister has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
aspiers has quit [Ping timeout: 248 seconds]
alex88 has joined #ruby
<jwest>
jglover: Nope. I barely passed Calc 3 when I took it. I'm not even qualified to be your prof.
meatherly has quit [Ping timeout: 252 seconds]
koell has quit [Read error: Connection reset by peer]
intuxicated has joined #ruby
abk has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
kaldrenon has joined #ruby
sailias has joined #ruby
nowthatsamatt has joined #ruby
tcopp has joined #ruby
burlyscudd has joined #ruby
philcrissman has joined #ruby
dkamioka has quit [Remote host closed the connection]
danman has joined #ruby
ilyam has quit [Quit: ilyam]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gmi_ has joined #ruby
sk87 has joined #ruby
marcus has quit [Quit: Page closed]
yfeldblum has joined #ruby
gengis has joined #ruby
scarolan has joined #ruby
chipotle has joined #ruby
gmi_ has quit [Read error: Connection reset by peer]
gmi_ has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter_ has quit [Quit: foo]
[gmi] has quit [Read error: Operation timed out]
jonno11 has joined #ruby
enebo has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
gengis has quit [Ping timeout: 272 seconds]
dblessing has joined #ruby
dangerousdave has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
jsilver_ has quit [Read error: Connection reset by peer]
jsilver has joined #ruby
StormboyXZ has joined #ruby
gmi_ has quit [Ping timeout: 252 seconds]
<StormboyXZ>
Hi
lkba has joined #ruby
lkba has quit [Client Quit]
milhite has joined #ruby
mercwithamouth has joined #ruby
<webgen>
hi
vlad_starkov has quit [Remote host closed the connection]
<jglover>
Hi
<ddd>
jwest hehe I barely passed calc 1
lpvn has quit [Remote host closed the connection]
lkb has joined #ruby
<jglover>
calc three was rough to be honest
<jglover>
one and two were pretty easy
<jglover>
three took me quite a lot of studying
EStormBOT has joined #ruby
Salve has joined #ruby
cj3kim has joined #ruby
InFlames has joined #ruby
<StormboyXZ>
EStormBOT is a bot I wrote in ruby :D.
parzo has joined #ruby
retnuh has joined #ruby
<apeiros>
weird… I get different exceptions when I run the same code as a test and when I run it in pry
<jglover>
are the olympics ruby related? can I ask if anybody is excited for US v Canada?
carlyle has joined #ruby
koell has joined #ruby
lkba has joined #ruby
lkb has quit [Client Quit]
puppeh_ has joined #ruby
ikawnoclast has joined #ruby
cj3kim has quit [Ping timeout: 260 seconds]
msmith has joined #ruby
<toertore>
lolympics
freerobby has joined #ruby
jerius has joined #ruby
carlyle has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
yasushi has joined #ruby
<StormboyXZ>
Gosh those join/leaving
<apeiros>
wow. much olympics. very sport. so chi.
makara has quit [Ping timeout: 248 seconds]
<jglover>
-_-
InFlames has quit [Quit: This computer has gone to sleep]
<toertore>
so chi
MattStratton has joined #ruby
<jglover>
oh i get it
jobewan has quit [Ping timeout: 252 seconds]
<jglover>
mikecmpbll:http://tannerburson.com/2009/01/extracting-subdomains-in-sinatra.html/ this did the trick for me
<toertore>
haha because so + chi = sochi, where the olympics are being held!!
<jglover>
I'm always really surprised by how popular Doge got
MattStratton has quit [Client Quit]
<apeiros>
I'm surprised anybody would buy dogecoins
<toertore>
how well it's been ruined by being popular
<jglover>
apeiros: I made a bit of money from bit/lite coins
<apeiros>
then again, people joined scientology…
<mikecmpbll>
jglover: good stuff.
<tobiasvl>
jglover: oh i know quite a few bitcoin millionaires actually
<jglover>
apeiros: now now, ruby is non-denominational
<jglover>
wow i spelled that wrong
<mikecmpbll>
no you didn't.
kindjal has quit [Quit: Computer has gone to sleep.]
<jglover>
oh never mind
<mikecmpbll>
:D
kcombs has joined #ruby
ffranz has joined #ruby
<apeiros>
don't get me into denominations…
<jglover>
tobiasvl: i'm a bit coin thousand-aire
<jglover>
meaning i made slightly over a thousand
<apeiros>
"I believe whatever is written in this book! because… somebody wrote it! must be true!"
dx7 has joined #ruby
<toertore>
not just somebody
<jglover>
-_-
<apeiros>
I myself belong to the Brother Grimm religion. Their books describe our origins in a very believable manner.
<toertore>
it was dhh
<mikecmpbll>
:D
<mikecmpbll>
lol toertore.
<jglover>
heh
<toertore>
"thou shalt not repeat thyself"
<mikecmpbll>
:'d
blackmesa has quit [Ping timeout: 252 seconds]
<apeiros>
everybody can believe whatever the fuck they want. But I'll take the liberty to ridicule you for believing random shit :-p
gilest has joined #ruby
<StormboyXZ>
%echo lol
<EStormBOT>
lol
vlad_starkov has joined #ruby
<toertore>
%die
<toertore>
didn't work
<StormboyXZ>
%hit toertore
* EStormBOT
slaps toertore around a bit with a shoe!
xjiujiu has quit [Read error: Connection reset by peer]
toertore is now known as toretore
<StormboyXZ>
:P
<StormboyXZ>
%hit toretore
* EStormBOT
calls a Magikarp to slap toretore with its tail!
<jhass>
%quit
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass>
%leave
<jhass>
%part
<StormboyXZ>
Nope
<StormboyXZ>
xD
<toretore>
%stop
<jhass>
apeiros: ^ ;P
<StormboyXZ>
Those commands aren't there
<StormboyXZ>
There is %eqn
<toretore>
%eqn
<StormboyXZ>
%eqn factorial(20)+2123+sin(20)
<EStormBOT>
2.432902008176642e+18
<jglover>
apeiros: nice github. I'm taking a look at your projects.
postmodern has quit [Remote host closed the connection]
<StormboyXZ>
@ toretore: type %help lol
<apeiros>
jglover: thanks. feel free to. feedback welcome.
<apeiros>
jhass: yeah, I'm pondering whether it constitutes as spam
<apeiros>
hm, proper english would be without 'as' in that phrase? o0
<jglover>
apeiros: why did you fork ruby?
ringaroses has joined #ruby
<apeiros>
jglover: because I made patches
<jglover>
champion.
<apeiros>
na
<apeiros>
the ones for which I forked it were just doc patches
Ch4rAss has quit [Quit: "Connection reset by beer"]
<toretore>
apeiros: EPT is what CSV should be
<apeiros>
I should poke for my StringScanner patches, though. they have neither been accepted nor rejected :-/
codeFiend has joined #ruby
<apeiros>
toretore: yeah. when I'm through with housekeeping, that's my current no1 project atm.
<apeiros>
writing a nice C based stream parser.
<apeiros>
the initial unoptimized draft is already 4x faster at parsing CSV than rubys csv lib :D
<jglover>
apeiros: how are you going to parse xls files?
coderdad has joined #ruby
<apeiros>
(well, EPT compatible CSV, that is. since CSV is not 100% ept compatible)
sk87 has joined #ruby
<apeiros>
jglover: in tabledata?
<jglover>
or wait, is that not for C++?
<jglover>
yeah
<toretore>
csv isn't csv-compatible most of the time
<apeiros>
tabledata uses roo/spreadsheet gems
<apeiros>
I don't intend on implementing my own xls parser
<apeiros>
I value my sanity :)
<jglover>
Ah I see, I'm going to keep track of this one
<jglover>
good stuff man
Trazira has joined #ruby
Trazira has quit [Client Quit]
<apeiros>
jglover: I wrote it for 2 reasons - a) we switched excel gems about 3 times and it was pain adapting to the API, b) we almost exclusively deal with tabular data, and that doesn't warrant the complexity of the current excel gems
freerobby has quit [Ping timeout: 252 seconds]
<jglover>
who is we?
<apeiros>
at the company
<apeiros>
alternatively me, myself and I
<jglover>
heh understood
<StormboyXZ>
%rand me myself I
<EStormBOT>
From a blackhole a random choice pops out: I
<StormboyXZ>
Its I
marr has joined #ruby
freerobby has joined #ruby
<jglover>
this is bizarre. Sinatra does not handle subdomains
<jglover>
i hate that I have to do regex to get it
<apeiros>
jglover: sinatra is a rack app, can't you handle it in a middleware and route to different sinatra apps?
kayamm has joined #ruby
<jglover>
that's what I'm doing. but there isn't anything built in
zoscoy has joined #ruby
<apeiros>
probably sinatra considers it a problem out of its domain
<jglover>
I've just started working with ruby a few days ago. I'm just a bit surprised that this isn't "built in" anywhere
Kricir has joined #ruby
maasha has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
KarolisNo has quit [Remote host closed the connection]
<jglover>
I'm coming from Node where everything is extremely easy
<apeiros>
well, the more stuff you build in, the more complex and unwieldy it becomes.
<toretore>
it's built in in a lot of things
<apeiros>
bloat
<apeiros>
you have to decide what domain of problems you want to solve with one tool
<jglover>
Rails is much more than I need for my first project
<jglover>
What exactly is Rack?
<apeiros>
and rack provides good opportunities to deal with subdomains, so I'm not surprised if it's an informed decision not to handle subdomains at the sinatra level
Alina-malina has quit [Read error: Connection reset by peer]
<Giorgio>
h = Hash[arr.zip arr.each_with_index.map {|a,i| {posstion: i}}]
<Giorgio>
it is best solution ?
<jglover>
apeiros:oh ok, I actually understand that
anarang has quit [Quit: Leaving]
<jglover>
I think I do know what DBI is
<toretore>
rack is a standardized http interface: call(env) which returns [status, headers, body]
<toretore>
iirc
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jglover>
toretore:ah, understood
<toretore>
this way you can swap out components as long as they conform to the rack interface
heftig has quit [Ping timeout: 265 seconds]
codeFiend has joined #ruby
<toretore>
and a rack middleware is simply a rack app that calls another and then transforms or does something else with the result and returns it
sambao21 has joined #ruby
<apeiros>
jglover: yeah, DBI is the same for databases. an abstraction layer between your DB and your code, allowing you to run the same code against different DBs
Kricir has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby
<jglover>
I'm going to google how to write rack middleware, it might make more sense
<jhass>
or transforms the request before calling the other app. or both
<toretore>
does dbi exist for ruby?
<toretore>
ah, yeah, i remember now
parzo has quit [Remote host closed the connection]
<apeiros>
toretore: various
<toretore>
i was angry at AR for not using it
parzo has joined #ruby
<apeiros>
toretore: DBI is the concept, not a specific implementation ;-) (and yes, an implementation of it by the name of 'dbi' exists too I think)
dkamioka has joined #ruby
<apeiros>
toretore: yeah, I still am.
cj3kim has joined #ruby
<toretore>
apeiros: yeah, it all comes back to me now
<apeiros>
every f'ing ORM reinventing DBI sucks
<maasha>
Disabling simplecov and everything works. How the heck could runnings tests break simplecov installation?
<apeiros>
maasha: no idea
<apeiros>
maasha: radical isotopes?
jprovazn has quit [Quit: Odcházím]
Azulinho has quit [Ping timeout: 248 seconds]
<toretore>
lol
<maasha>
apeiros: I shall reinstall simpecov
parzo_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
parzo has quit [Read error: Connection reset by peer]
joelroa has quit [Read error: Operation timed out]
timonv has joined #ruby
<jglover>
man this new programmer at work is so much smarter than me
<maasha>
apeiros: and now it works. how bizarrrrre ...
<dvorak>
jglover: lot better than the alternative
<apeiros>
indeed
<apeiros>
twice, actually
Vovko has joined #ruby
<jglover>
I shouldn't compare myself, I'm only 19. He's got a masters and lots of experience
<jglover>
but wow is he good
<jglover>
I've not seen such pristine testing or understanding
<apeiros>
jglover: great opportunity
<toretore>
is his keyboard smoking?
<jglover>
hahah
<apeiros>
I wish zip without block would return an Enumerator
<toretore>
rack is an excellent example of the power of standardization
fantazo has joined #ruby
zachallett has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
maZtah has joined #ruby
v0n has joined #ruby
mengu has quit [Remote host closed the connection]
<apeiros>
and normalization
* apeiros
ponders the diff between standardization and normalization
jlast has joined #ruby
<StormboyXZ>
Google is your friend
Speed has joined #ruby
<jglover>
hm not sure where to put middleware
<jglover>
in node I just pass it into the anonymous function
<jglover>
or javascript rather
cocotton has joined #ruby
dkamioka has quit [Remote host closed the connection]
Alina-malina has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
<jglover>
oh i can use this rackup config file
colli5ion has quit []
klaut has joined #ruby
philcrissman has quit [Remote host closed the connection]
<jglover>
wtf ruby is awesome
<jglover>
how did I never use this before
<apeiros>
welcome to our world
<StormboyXZ>
Of course Ruby is awesome.
* apeiros
fell in love with ruby for a single line of code
* StormboyXZ
now hates Python coz of Ruby
jprovazn has joined #ruby
<Tachoh>
jglover: what other languages have you used?
<jglover>
C++, C, Java, Javascript, PHP, Python the normal ones
<Tachoh>
cool
Deele has joined #ruby
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jglover>
I've been writing web applications with Node.js for a year or two now, and I felt like that was really great and awesome. But my friend showed me this app he made with Ruby and I figured I should try it. It's pretty great
<jglover>
also somebody scolded me on ##programming for not knowing it
zoscoy has quit [Read error: Connection reset by peer]
RoxasShadowRS has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
<cocotton>
If I have a string abc_def = "a string". Is is possible to concat two string together to get that string value? Something like : string1 = "abc" string2 ="def" puts string1_string2
<apeiros>
certainty: by now I forgot. I think it was a simple array.map with a block.
<cocotton>
so in the end it would output "a string"
<certainty>
apeiros: i see. Makes sense. Blocks are what attracted me the most when i first saw ruby
<jhass>
cocotton: the need of this usually means you want to use a hash instead
<apeiros>
cocotton: don't abuse lvars as hash
<apeiros>
what jhass said
nhhagen has joined #ruby
<cocotton>
jhass: I'll go try to find some docs about that :)
<apeiros>
strings = {"abc_def" => "a string"}; strings["abc_def"]
<apeiros>
and to go from `string1 = "abc" string2 ="def"` to "abc_def": `"#{string1}_#{string2}"`
joelroa has joined #ruby
johnmilton has joined #ruby
bisquickcostanza has joined #ruby
<jhass>
or depending on your usecase it might make sense to use a nested hash: strings = {"abc" => {"def" => "a string"}}; strings[string1][string2]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
jprovazn has quit [Quit: Odcházím]
parzo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
webmaven_ has joined #ruby
koell has quit [Ping timeout: 248 seconds]
parzo has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
webmaven_ is now known as webmaven
danijoo has joined #ruby
nhhagen_ has joined #ruby
sparrovv has joined #ruby
nhhagen has quit [Read error: Operation timed out]
nhhagen_ has quit [Read error: Operation timed out]
ultraflash3 has joined #ruby
geopet has joined #ruby
jonah_k has joined #ruby
parzo has quit [Ping timeout: 252 seconds]
fijimunkii has quit [Ping timeout: 260 seconds]
geopet has quit [Client Quit]
teenwolf has joined #ruby
<webmaven>
I am having trouble installing wdm on windows. I have ruby 1.9.3, the correct version of DevKit, and 'gem install wdm' *seems* to work, but I still get "wdm is not recognized as an internal or external command", and 'grunt server' fails as follows "LoadError on line ["199"] of C: cannot load such file -- wdm". Any suggestions?
baordog has joined #ruby
foooobear has joined #ruby
teenwolf has quit [Read error: Connection reset by peer]
<jglover>
oh
<jglover>
try wdm.bat
geopet has joined #ruby
<jglover>
you probably need to set the batch file
diegoviola has quit [Quit: WeeChat 0.4.3]
joelroa has quit [Ping timeout: 260 seconds]
<jglover>
and just drop it into C:/Windows/System(32?)
<webmaven>
jglover, wdm.bat doesn't seem to exist either.
foooobear has quit [Client Quit]
<jglover>
there's the problem
<jglover>
link me to the guide you were using
bal1 has joined #ruby
<jglover>
i had to do this for a few gems yesterday
<webmaven>
guide?
Macaveli has quit [Ping timeout: 265 seconds]
<jglover>
sorry, I figured maybe you used a guide to download
tylersmith has joined #ruby
geopet has quit [Client Quit]
ultraflash3 has quit [Ping timeout: 252 seconds]
<jglover>
can you find the exe file or anything?
Virtualize|away has quit [Quit: Leaving...]
colli5ion has joined #ruby
<jglover>
you just need a path that lets you start it from cmd
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
Spleeze has joined #ruby
<enricostn>
jhass, thanks, yes raise of course
<enricostn>
so I cannot use double() there?
lpvn has joined #ruby
fedesilva has joined #ruby
tgkokk has joined #ruby
<jhass>
no you can't
lyanchih_ has joined #ruby
<enricostn>
ok, thanks
<enricostn>
I just don't want to use Factories there
leslie2 has quit [Ping timeout: 272 seconds]
<jhass>
case foo when Bar calls Bar === foo which usually is Module#===
kreisys has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
kreisys has quit [Read error: Connection reset by peer]
coderdad has quit [Remote host closed the connection]
andy___ has joined #ruby
andy___ is now known as Guest73622
SCommette has joined #ruby
<dawkirst_>
hi, I'm trying to understand something fundamental. I'm reading The RSpec Book, and the authors make a case for doing both Cucumber features and RSpec examples. While I see their rationale, is it actually practical to do both (or asked differently, is it something people actually do)?
stryek has quit [Quit: Leaving]
guest12214 has quit [Quit: Connection closed for inactivity]
kayamm_ has joined #ruby
leslie1 has joined #ruby
budrose has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
lpvn has quit [Ping timeout: 264 seconds]
thomasxie has quit [Remote host closed the connection]
lpvn has joined #ruby
JoeTheGuest__ has quit [Quit: Connection closed for inactivity]
joshwines_ has quit [Quit: Connection closed for inactivity]
<jhass>
yes, it is something people actually do
hoypriest has quit [Quit: Connection closed for inactivity]
joshualivesay has joined #ruby
Kricir has joined #ruby
blooberr____ has quit [Quit: Connection closed for inactivity]
gilest has quit [Remote host closed the connection]
KarolisNo has joined #ruby
savage-__ has quit [Quit: Connection closed for inactivity]
koell has joined #ruby
dubsteph has quit [Ping timeout: 265 seconds]
dekz__ has quit [Quit: Connection closed for inactivity]
<dawkirst_>
jhass, thanks. Most SOs I see ask whether to go RSpec OR Cucumber; I see very little reference to them being used together...or am I simply missing it?
<jhass>
one approach is to use rspec for unit testing and cucumber for integration testing, for example together with capybara
Kricir has quit [Ping timeout: 253 seconds]
maximski has quit [Ping timeout: 248 seconds]
coderdad has joined #ruby
KarolisNo has quit [Ping timeout: 252 seconds]
<dawkirst_>
jhass, makes sense, I just find it incredibly taxing to do two parallel test environments, just wondering whether it's worth it. I can see how it makes sense for big applications where multiple work on it, but for a small solo project it almost seems overkill (again, I might be missing something here).
jcs222 has quit [Quit: leaving]
mary5030 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
<certainty>
dawkirst_: that said, my experience is that you probably don't want cucumber to do the tests outlined in the book, unless you have actual customers that read your features (or jesus, even write them).
illbyte has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
kindjal has joined #ruby
rayners has joined #ruby
monkegjinni has joined #ruby
mary5030 has quit [Remote host closed the connection]
koell has quit [Ping timeout: 272 seconds]
<dawkirst_>
certainty, so Cucumber doesn't have that much application, ever, anywhere?
mary5030 has joined #ruby
mansi has joined #ruby
jfelchner_ has quit [Quit: Connection closed for inactivity]
cj3kim has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<certainty>
it has got much attraction in the past. But my experience is that this has somewhat changed now and i think for good reasons
monkegjinni has quit [Read error: Connection reset by peer]
Avahey has quit [Quit: Connection closed for inactivity]
b00stfr3ak has joined #ruby
monkegjinni has joined #ruby
doodlehaus has joined #ruby
<dawkirst_>
ah, so I'll take what I read there with a pinch of salt
pallavi_ has quit [Quit: Connection closed for inactivity]
<certainty>
i'm not saying that you shouldn't write integration tests, i just say that cucumber may not be what you want most of the time
tgkokk has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
BRMatt has quit [Quit: Connection closed for inactivity]
<certainty>
dawkirst_: apart from that the rspec book is a great resource to get into BDD in general
coderdad has quit [Remote host closed the connection]
<dawkirst_>
certainty, point taken. thanks.
twiceaday has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
rndstr has quit [Quit: Connection closed for inactivity]
twiceaday has joined #ruby
<yeticry>
Hello, The Magister of jewel.
EStormBOT has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 264 seconds]
petey_ has joined #ruby
chihhsin_cloud has joined #ruby
cocotton has quit [Quit: Page closed]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
IceDragon has quit [Quit: Space~~~]
Xiti has joined #ruby
randym_ has quit [Quit: Connection closed for inactivity]
tommyvyo_ has quit [Quit: Connection closed for inactivity]
ziyadb_ has quit [Quit: Connection closed for inactivity]
hamakn has joined #ruby
<jhass>
enricostn: don't let your application logic be defined by your test logic. This doesn't look very nice to me and actually prevents subclassing User
nhhagen has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
__class__ has quit [Ping timeout: 248 seconds]
meatherly has quit [Ping timeout: 272 seconds]
tagrudev has quit [Quit: Me = Awesome]
bluehavana_ has quit [Quit: Connection closed for inactivity]
hamakn has quit [Remote host closed the connection]
cocotton has joined #ruby
TheDeadSerious__ has quit [Quit: Connection closed for inactivity]
dnyy has quit [Quit: Connection closed for inactivity]
MatthewsFace has joined #ruby
<enricostn>
jhass, mh yeah I know. I didn't understand your suggestion btw
caveat- has quit [Ping timeout: 245 seconds]
percival has quit [Quit: Connection closed for inactivity]
IceDragon has joined #ruby
<cocotton>
Got another little question. I got this code in which there's a 2d array. array1 = [array11, array12, array13]. If I loop on array1 (array1.each do |array|), is it possible to only output the array name? Like : array1.each do |array|; puts array.name; end
<apeiros>
cocotton: arrays don't have names
koell has joined #ruby
<apeiros>
assigning an object to a variable doesn't make them get a name (with the sole exception of module/classes assigned to a constant for the first time)
<jhass>
enricostn: you could do something like target = User.new; foo.should_receive(do_this_to).with(target); foo.author(target) or target = User.new; target.stub(:harmful_or_slow_that_do_this_to_calls).and_return(blub); foo.author(target)
<certainty>
variable names are important for programmers not for programs, at least in ruby
<jhass>
cocotton: still sounds like you want a Hash ;)
hamakn has joined #ruby
caveat- has joined #ruby
chihhsin has quit [Quit: leaving]
mary5030_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<cocotton>
jhass: You must be right once more, I'm really not used to Hash, but they are awesome. One day my mind will jump to them quick ;)
<csmrfx>
cocotton: try doing array.inspect or array.methods in that loop
thams has quit [Quit: thams]
mikepack has joined #ruby
mjs2600 has quit [Ping timeout: 252 seconds]
phutch1ns has joined #ruby
acrussell has joined #ruby
petey_ has quit [Remote host closed the connection]
MplsGreg has joined #ruby
__class__ has joined #ruby
danijoo has quit [Quit: Leaving...]
<webmaven>
jhass, I've added wdm into the Gemfile.lock, but I am still getting the same error, even though bundler now says that it is using wdm. :-(
petey_ has joined #ruby
xerox357 has joined #ruby
<jhass>
webmaven: you don't edit Gemfile.lock only bundler does. You only edit Gemfile
mjs2600 has joined #ruby
chihhsin has joined #ruby
yfeldblum has joined #ruby
koell has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 265 seconds]
hamakn has quit [Ping timeout: 260 seconds]
petey_ has quit [Read error: Connection reset by peer]
petey_ has joined #ruby
cmoylan has joined #ruby
IceDragon has quit [Read error: No route to host]
mikepack has quit [Ping timeout: 265 seconds]
bal1 has quit [Quit: bal1]
joelroa has joined #ruby
joelroa has quit [Max SendQ exceeded]
Uranio has joined #ruby
<cocotton>
jhass: Yep, the hash once more did the trick. Hashes ftw!
joelroa has joined #ruby
<webmaven>
jhass, OK, I added wdm into the Gemfile, and removed it from Gemfile.lock. What is the next step?
<jhass>
run bundle
prc has quit [Ping timeout: 252 seconds]
mgberlin has joined #ruby
<webmaven>
jhass, it gave me a list of gems it is using, but wdm is not one of them.
droptone has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<jhass>
maybe you added it to a group you were previously excluding?
<jhass>
check .bundle/config
<droptone>
question: I'm trying to interact with an API via RestClient. The API is simple and with curl all I have to do is specify the base URL and -u MYAPIKEY: and it works perfectly. The problem is, with RestClient, the :authorization field isn't working right
jobewan has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lmickh has joined #ruby
philcrissman has joined #ruby
<droptone>
I keep getting 401 unauthorized. How can I set the parameters of RestClient to pass the API key just like curl -u?
nvrch has quit [Quit: nvrch]
monkegjinni has joined #ruby
<webmaven>
jhass, oh, that is strange, the line I added to the GemFile is missing...
sski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<webmaven>
grunt must be generating the Gemfile...
davidcollom is now known as davidcollom_
tgkokk has joined #ruby
IceDragon has joined #ruby
xerox357 has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
monkegjinni has quit [Read error: Operation timed out]
shtirlic has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
sailias has joined #ruby
sailias has quit [Remote host closed the connection]
xerox357 has joined #ruby
apocalyptic_ab has joined #ruby
aryaching has joined #ruby
shtirlic has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
philcrissman has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
blackmesa has joined #ruby
sski has quit [Ping timeout: 265 seconds]
mgberlin has quit [Remote host closed the connection]
tgkokk has quit [Ping timeout: 260 seconds]
klaut has quit [Remote host closed the connection]
sk87 has joined #ruby
kevinykchan has joined #ruby
DrShoggoth has joined #ruby
carlyle has joined #ruby
hamakn has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
maximski has joined #ruby
meatherly has joined #ruby
xerox357_ has joined #ruby
hamakn has quit [Remote host closed the connection]
cj3kim has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<slowcon>
hows it goin guys
AndChat| has joined #ruby
hamakn has joined #ruby
<certainty>
slow :)
<apeiros>
slow
<StormboyXZ>
slow
<apeiros>
certainty: ^5
StormboyXZ has quit [Quit: Leaving]
<certainty>
5
relix has joined #ruby
xerox357 has quit [Read error: Operation timed out]
macabhaird has joined #ruby
failshell has joined #ruby
pioz has joined #ruby
tgkokk has joined #ruby
carlyle has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
Hobogrammer has quit [Ping timeout: 252 seconds]
pioz has quit [Client Quit]
<slowcon>
hahahaha
<slowcon>
cmon guys its friday!
poguez_ has joined #ruby
<slowcon>
any of you guys checkout onedrive? Microsoft's rebranded SkyDrive
<slowcon>
7GB free
<certainty>
nope
cj3kim has quit [Ping timeout: 265 seconds]
sparrovv has quit [Remote host closed the connection]
<slowcon>
+3 GB when you do a backup. 10GB free cloud storage
<certainty>
is that still a microsoft thing?
<certainty>
ah yeah, had to scroll all the way down
<slowcon>
it looks pretty good now. got the app for my phone yesterday. basically same exact thing as dropbox but with more space
Coolhand is now known as niharvey
burlyscudd has joined #ruby
dkamioka has joined #ruby
einarj has quit [Remote host closed the connection]
<slowcon>
certainty: i was so mad, i had an orig skydrive account way back when
philcrissman has joined #ruby
<slowcon>
certainty: the ones that gave 25GB FREE when you signed up
<slowcon>
so much space
philcrissman has quit [Remote host closed the connection]
<slowcon>
but if you werent active they removed the 25GB and put it down to 7 :(
MatthewsFace has quit [Quit: This computer has gone to sleep]
<certainty>
they must be really cool employers though. I wonder why simon peyton jones works for them
<Uranio>
droptone: does you use proxy?
philcrissman has joined #ruby
bisquickcostanza has quit [Remote host closed the connection]
mikepack has joined #ruby
aganov has quit [Quit: Leaving]
<certainty>
slowcon: aren't you concerned about your content being in the cloude?
<slowcon>
certainty: i dont store anything useful, usually just mp3s that i want to sent to a friend or a book i want to read
<Uranio>
are you using RestClient.post or RestClient.get?
<slowcon>
certainty: over the years ive learned the value of local and frequent backups
Kelgors has quit [Read error: Operation timed out]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<certainty>
slowcon: that's a good thing indeed.
AndChat| has quit [Quit: Bye]
<droptone>
Uranio: um, no, no proxy
lkba has joined #ruby
<droptone>
I just need to know how to translate the curl -u APIKEY: flag to RestClient
<Uranio>
so, you are givin RestClient.post url,A_OBJECT_HASH_HERE
cloud|nix has joined #ruby
<Uranio>
afeter the "url,THIS" where THIS.class => Hash
<Uranio>
is that OK?
snath has joined #ruby
sk87 has joined #ruby
<Uranio>
gsub('afeter','after')
klaut has joined #ruby
dpswireless has quit [Remote host closed the connection]
pierre1_ has joined #ruby
<droptone>
Uraino, yes, here is the syntax for RestClient currently, which isn't working:
axl_ has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<Uranio>
show
<droptone>
@response = RestClient.post(
<droptone>
CLAPI_PAIT_URL,
<droptone>
{ :authorization => 'MYAPIKEY' }
<droptone>
)
beond has joined #ruby
<droptone>
obviously MYAPIKEY is replaced with my API key
<droptone>
but that's not wrking. But if I go curl CLAPI_PAIT_URL -u MYAPIKEY:
MrJoshua has quit [Quit: MrJoshua]
<droptone>
where CLAPI_PAIT_URL is the base URL of the API
<droptone>
that works
<Uranio>
droptone: let me use that's apit doc
<droptone>
so I need to translate the -u flag in curl for the API key to RestClient
geggam has joined #ruby
burlyscudd has quit [Quit: Leaving.]
webmaven has left #ruby ["Leaving"]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tommyvyo_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<Uranio>
droptone: try using 'authorization' (AS STRING) instead :authorization
<jhass>
droptone: according to docs the second parameter is the post body, so at least you need to add a {} inbetween to make it the third parameter (headers)
Kricir has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 252 seconds]
Cache_Money_ has joined #ruby
terrellt has joined #ruby
chipotle has joined #ruby
mary5030 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rmorello has joined #ruby
<droptone>
Uranio: ok, can you please provide an example
<droptone>
jhass: interesting, ok
baordog has left #ruby [#ruby]
<droptone>
how do I go about filling in some bullshit for the poast body?
<droptone>
post*
tylersmith has quit [Remote host closed the connection]
mgberlin has joined #ruby
<jhass>
I guess empty hash should do
<jhass>
or just empty string?
<jhass>
just try a few things
Kricir has quit [Ping timeout: 252 seconds]
<droptone>
lol, ok
vlad_starkov has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
<shevy>
Uranio does not want to write in spanish
<droptone>
ok, so set the parameter key to the APIKEY?
<Uranio>
droptone: tu madre es UNA puta en muchaS calleS (is a better translate)
<shevy>
hehe
<droptone>
ahh, thank you Uraino
<shevy>
man english is so much easier ...
<droptone>
haha
<droptone>
especially if that's what you know!
tgkokk has quit [Ping timeout: 260 seconds]
<droptone>
I hear english is actually a bitch to learn
<droptone>
lot of inconsistencies
ciwolsey has joined #ruby
plexus_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
stephenmac7 has quit [Ping timeout: 265 seconds]
<shevy>
no I mean really... one article "the"... in spanish... you have to do those declination things... una puta ... un gato... hmm I forgot the third variant...
dpswireless has joined #ruby
<sweeper_>
just two
<shevy>
and then past tense, past present tense and those accents
<shevy>
ok
<sweeper_>
verb conjugations are much harder
<shevy>
yeah
<Uranio>
shevy: la (female thing) el (male thing)
xerox357_ has quit [Remote host closed the connection]
<Uranio>
because in spanish object ar also female
<shevy>
first year I was quite good, then it got much more difficult and I almost failed
<Uranio>
or male
<shevy>
huh
<shevy>
spanish objects are female?
xerox357 has joined #ruby
<Uranio>
some... computer => la computadora
gigetoo has quit [Remote host closed the connection]
<sweeper_>
"decistieramos" = we would/should decist in present tense
<shevy>
now we know why it is not used in object oriented programming! ;)
<Tachoh>
spanish females are objects
<shevy>
wow cool
<Tachoh>
technically speaking.
<Uranio>
Tachoh: not always
<Uranio>
car (carro, vehículo) are male
<shevy>
la computadora... el matador ... la computadora del matador!
rubyracer has joined #ruby
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
<lpvn>
shevy, nouns have two genders in all romance languages
nhhagen_ has joined #ruby
Celm has quit []
<Uranio>
killers's computer
<Uranio>
:D
<shevy>
lpvn but there is it!
<slash_nick>
lpvn: not all nouns, right?
<slash_nick>
el sol.
<sweeper_>
^ male
gigetoo has joined #ruby
<shevy>
la sola
<shevy>
haha :D
<Uranio>
the alone
<Uranio>
(a girl)
<lpvn>
slash_nick, I mean that nouns belong to one gender
sweeper_ is now known as sweeper
<slash_nick>
lpvn: not all of them :)
<slash_nick>
lpvn: amiga, amigo :)
coderdad has quit [Remote host closed the connection]
<Uranio>
lpvn: some words have a gender onle
<slash_nick>
some one, some both
<sweeper>
different nouns
<sweeper>
el amigo
<Uranio>
but some other have two
<sweeper>
la amiga
pigzzcanfly has joined #ruby
<lpvn>
slash_nick, some of them don't inflect but all of them belong to one gender
webgen1 has joined #ruby
<Uranio>
el agua => tha water (male) but the sea could be "la mar" or "el mar"
<slash_nick>
lpvn: okay that i don't know enough to argue with or confirm :)
<sweeper>
la mar is iffy
bhaak has quit [Read error: Operation timed out]
<slash_nick>
Uranio: interesante
chrissiedeist has quit [Quit: Leaving.]
sambao21 has joined #ruby
<sweeper>
only instances I've seen "la mar" has been in song or in proper nouns
<ddd>
so not even remotely trying to be gender neutral or gender sensitive. I'm a guy. I think male, when I explain something I use 'he'. So not trying to detract from what I'm trying to say just to find some gender neutrality. let the hearer do it in their own head if its that important to them. the message is important, not whether its male or female in the example role
dpswireless has quit [Ping timeout: 245 seconds]
<ddd>
so tired of this gender neutrality bullshit
Mousse_ has joined #ruby
<shevy>
she can't drive a car
<jsilver>
she couldn't fuck your pussy if you had one
<ddd>
he can't either
<jsilver>
wai...
coderdad has joined #ruby
<lpvn>
ddd, I think that gender is a grammar construct not something exactly sex-related
chrissiedeist has joined #ruby
<Uranio>
ddd: but when you speek without he/or she?
<shevy>
jsilver hmmmmmm
<ddd>
uranio they
<jsilver>
shevy: ??
<ddd>
done/done
<slash_nick>
i thought we were talking about languages
<jsilver>
shevy: too bad language?
chrissiedeist has quit [Client Quit]
<jsilver>
only joking
<shevy>
jsilver it came like out of nowhere!
<sweeper>
how many of you guys actually speak spanish?
<jsilver>
lol..
<shevy>
how is it in japanese? I heard the language is simple in essence
petey_ has quit [Remote host closed the connection]
<shevy>
sweeper I used to be able to, a long time ago, at least basic communication
<shevy>
I made an insane amount of mistakes in written spanish
v0n has joined #ruby
<jsilver>
I know a lot of words
* sweeper
grew up in Peru
<Uranio>
sweeper: from miame (also miami) to down continent whole almost speak it :D
<shevy>
yeah, spanish invasion
petey_ has joined #ruby
Voodoofish430 has joined #ruby
<jsilver>
Spanvasion
webgen has quit [Ping timeout: 252 seconds]
<jsilver>
which could also be Spanish Evasion
<jsilver>
lmao
<slash_nick>
sweeper: i hear peru has some of the longest waves in the world
coderdad has quit [Remote host closed the connection]
<sweeper>
slash_nick: yep, we get a lot of surfers
bluenemo has quit [Remote host closed the connection]
<slash_nick>
like, surf one wave for 3-4 minutes kind of long
pkrnj has joined #ruby
monkegjinni has quit [Remote host closed the connection]
aspires has joined #ruby
yfeldblum has joined #ruby
kayamm_ is now known as kayamm
<sweeper>
not really my thing tho, it's either Punta Azul or Punta Sal, they have tournaments and stuff
dpswireless has joined #ruby
bhaak has joined #ruby
kevind has joined #ruby
coderdad has joined #ruby
<sweeper>
iirc we have long timed waves, nd literally long waves, like a single wave half a mile wide
x77686d has joined #ruby
Sc0rp10n has joined #ruby
GreatSUN has joined #ruby
<shevy>
waves scare me
<GreatSUN>
rehi
<shevy>
hi GreatSUN
<shevy>
have you seen SmallMOON lately?
<GreatSUN>
does someone of you know how to require wopen3?
<GreatSUN>
shevy: nope, sorry
<shevy>
what is wopen
<shevy>
if it is a gem, first install it, then require should work
<GreatSUN>
shevy: kind of extended popen3
<GreatSUN>
gem is installed
petey_ has quit [Ping timeout: 265 seconds]
<GreatSUN>
but I can't require it
sikor_sxe has quit [Read error: Operation timed out]
<shevy>
k, the usualy convention is: name of gem == argument to give to require()
<GreatSUN>
i always says no such file to load
<shevy>
*usual
tedstriker has joined #ruby
pkrnj has quit [Client Quit]
<shevy>
Fetching: wopen3-0.3.gem (100%)
<shevy>
Successfully installed wopen3-0.3
<shevy>
1 gem installed
<shevy>
require 'wopen3'
<shevy>
# => true
fantazo has quit [Ping timeout: 260 seconds]
<shevy>
works fine here
<Uranio>
droptone: es2en la URL debe ser reescrita, usando los parametros de autenticación, donde los : separan usuario:contraseña y finalmente la "@" contiene el resto de la URL
user258467 has quit [Quit: Quitte]
phansch_ has joined #ruby
<shevy>
usando los parametros... use the parameters... right? :D
phansch_ is now known as phansch
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
dpswireless has quit [Ping timeout: 272 seconds]
<Uranio>
shevy: neo-germanic lang took word from french (a romcance lang) also spanish is romace lang
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
aryaching has joined #ruby
milhite has joined #ruby
<Uranio>
English.parent_class => NeoGermanic
milhite has quit [Max SendQ exceeded]
joelroa has joined #ruby
jonah_k has joined #ruby
<GreatSUN>
funny
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
<GreatSUN>
shevy: really funny
freerobby has quit [Quit: Leaving.]
petey_ has joined #ruby
<shevy>
GreatSUN hmm?
<sweeper>
Uranio: with like 9 billion mixin modules
mavcunha has quit [Quit: Computer has gone to sleep.]
<sweeper>
require '*'
<Uranio>
amost 9 billion of include sentence
milhite has joined #ruby
ultraflash3 has joined #ruby
milhite has quit [Max SendQ exceeded]
<GreatSUN>
shevy: after installing twice it is working now
<Uranio>
class English < VinkingsLang; include ...
<shevy>
GreatSUN hmm well that sounds good
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
marcdel has joined #ruby
mansi has quit [Remote host closed the connection]
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
rm_ has joined #ruby
mansi has joined #ruby
<Uranio>
GreatSUN: sorry, this could sound stupid, but, after installed a gem, you must close and run again IRB for use it
<Uranio>
in irb
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
mansi has quit [Read error: Connection reset by peer]
<shevy>
oh that can also be the case, indeed
phutch1n1 has joined #ruby
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
mansi has joined #ruby
<shevy>
a third case could be if you have separate rubies, different prefixes, and rvm AND rbenv! like ddd here! TOTAL ANARCHY
milhite has joined #ruby
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tcopp has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Uranio>
OMG!
ahawkins has quit [Remote host closed the connection]
ultraflash3 has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
davidcollom_ is now known as davidcollom
phutch1ns has quit [Ping timeout: 272 seconds]
olivier_bK has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
coderdad has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
gbt has quit [Quit: Leaving...]
<GreatSUN>
Uranio: I have done this, cause I ended irb and installed gem and afterwards started irb again
<ddd>
rofl.
<GreatSUN>
but no matter
<ddd>
i don't have both. you can't have both installed
<GreatSUN>
it works now
GinoMan has quit [Ping timeout: 265 seconds]
<ddd>
mutually exclusive ;)
joelroa_ has joined #ruby
<shevy>
both which ones
<shevy>
ah
<shevy>
sorry
<ddd>
rvm anbd rbenv together
<shevy>
yeah
coderdad has joined #ruby
<shevy>
I thought you wrote to GreatSUN :D
<ddd>
rvm and chruby you can do but only becuase chruby doesn't pay any attention to rvm
<shevy>
and wondered "hey... he could have two rubies... why not..."
mavcunha has joined #ruby
troyready has joined #ruby
<ddd>
if you set the GEM_* and RUBY_* and MY_RUBY_* vars you could do it without either of them
<ddd>
but you'd have to script the changes
VTLob has joined #ruby
troyready has quit [Read error: Connection reset by peer]
joelroa has quit [Ping timeout: 264 seconds]
<ddd>
which would in effect give you a new 'rvm/chruby/rbenv/rbfu' ;)
roolo has quit [Quit: Leaving...]
mavcunha has quit [Client Quit]
<havenwood>
ddd: rbfu is going, deprecated in favor of chruby
<havenwood>
gone**
marcdel has quit []
<ddd>
yeah i heard that but i don't use it so wasn't entirely sure
burlyscudd has quit [Quit: Leaving.]
Giorgio has quit [Ping timeout: 260 seconds]
msmith has joined #ruby
pietr0 has joined #ruby
<havenwood>
ruby-version also deprecated in favor of chruby, waiting for rbenv to :P
freerobby has joined #ruby
<havenwood>
muahhaha
<Uranio>
finally RVM win
<ddd>
i mainly use rvm, but occasionally just to keep in touch, i disable rvm's source lines and use chruby. I will NEVER use rbenv. but thats because of sstephenson being such a dick.
<ddd>
though i might try it if radar actually does take it over full time
robbyoconnor has joined #ruby
<ddd>
uranio I am on the rvm team. another core reason i use it almost exclusively ;) I was far more active with rvm1 than I am with rvm2, but thats due to time constraints i didn't have before
khaase has joined #ruby
serp` has joined #ruby
<ddd>
brb, gotta put a rescue dog in the truck so my wife can take him to his adopter! Woot! Gotta love lovable pit bulls
* Uranio
buffer overflow while reading long sentences in english
<ddd>
uranio i talk out full sentences. i'm not a big one for shorthand
<khaase>
anyone experience with testing GC (and thread) related things/finalizers?
<Uranio>
yea... be "consice" is a skill
<khaase>
ie, running finalizers, see if something gets marked?
<certainty>
. o O ( i should dedicate my scheme rake clone to jim )
<khaase>
simply triggering GC.start a few times does not work very reliable
cj3kim has joined #ruby
<Uranio>
khaase: could be said that "produce" garbage to took garbage Ò_Ó
unholycr1b is now known as unholycrab
unholycrab has quit [Changing host]
unholycrab has joined #ruby
<shevy>
yeah
coderdad has quit [Remote host closed the connection]
<shevy>
ddd can be damn chatty
Giorgio has joined #ruby
<khaase>
Uranio: I am contemplating just having a loop that allocates objects
<chrisseaton>
khaase: with most non-reference counting GC algorithms there's no guarantee that a finalizer will ever be run. Can't say for sure about MRI's.
cj3kim has quit [Read error: Connection reset by peer]
<Uranio>
khaase: I tried doin a very dirty thing, set all the user and now unused variables to nil ant then GS.start
plexus_ has quit [Ping timeout: 260 seconds]
<Uranio>
example, used $varuno and $vardos, and will not use more,
<Uranio>
$varuno=$vardos=nil; GS.start
_maes_ has joined #ruby
coderdad has joined #ruby
<Uranio>
both stop pointing to an object and I guest that would be facilite the work to the GC
<khaase>
Uranio: that won't do it in my example, I don't have a direct reference to the object I want to have GC'd, or at least I think I don't
<khaase>
that's kinda what I want to test
lsmola has quit [Ping timeout: 260 seconds]
v0n has quit [Read error: Operation timed out]
SCommette has quit [Quit: SCommette]
* Uranio
reading... (1 octet/sec)
webgen1 has quit [Read error: Connection reset by peer]
<Uranio>
so... if I understod good, just break the whatever link you have to the object ans then GS.start in the next line
vlad_starkov has joined #ruby
<Uranio>
the game is leave object hanged in the nothing, and then call GS -hey you, GC, clean this crap here
mikecmpbll has quit [Quit: i've nodded off.]
<Uranio>
but very the crap must be HERE, or CG will generate more crap for search crap
<Uranio>
(AFAIK)
<khaase>
I don't have any link to the object
<khaase>
or at least I assume I don't
<khaase>
but this code went to a few iterations
<khaase>
it seems to not leak memory
<Uranio>
where the objects come from? from a File?
mary5030 has quit [Remote host closed the connection]
sheepman is now known as sheepman|afk
<khaase>
I had a typo when setting up the finalizer, and my tests didn't fail, which kinda worries me
<Uranio>
let me see... (slow as everything)
mary5030 has joined #ruby
<khaase>
this code will potentially have a lot of other ruby projects depend on it, so I don't want to screw this up
msmith has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
troyready has joined #ruby
mjs2600 has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
<Uranio>
the fact is, that the Ruby's object system in my opinion, is enough dirty, al that "meta object's game" could be result a a more dirty running APP
Wolland has joined #ruby
dkamioka has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
sheepman|afk is now known as sheepman
camilasan has quit []
<Uranio>
I would insert an GS.start in the last line of the def __clearobj__(thread_id) methods
Port3M5[Work] has quit [Remote host closed the connection]
mary5030_ has joined #ruby
razrunelord has joined #ruby
<Uranio>
GS.start if @map.delete(thread_id)
budrose has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<khaase>
I don't want to control GC manually in the library code
<khaase>
also, I don't see how that would help testing the finalizer
<Uranio>
ok, so, I miss understanding you, I guest you try to reduce dirty in the code
robbyoconnor has quit [Ping timeout: 252 seconds]
<khaase>
do you think that code is dirty?
<shevy>
haha
thams has joined #ruby
<shevy>
khaase you are dirty°!
bleak has joined #ruby
davidcollom is now known as davidcollom_
<shevy>
you have a lot of dirty in your code man
<Uranio>
and generate dirty
<shevy>
lol
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy>
you even generate dirty!
<Uranio>
I think taht when you touch the object system, dirty come out
cloud|nix has quit [Remote host closed the connection]
<Uranio>
god save the RAM
tgkokk has joined #ruby
tcopp has joined #ruby
<khaase>
Uranio
<khaase>
how would you write it less dirty?
dkamioka has joined #ruby
<Uranio>
khaase: no idea... simply I do not put my hand in the ruby object system so deep
SHyx0rmZ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Uranio>
Garbage System is the under carpet dust in ruby Object system
OdNairy has joined #ruby
<Uranio>
(IN MY NOT IMPORTANT OPINION)
<Uranio>
DRY ecist only for justify the Garbage problem
<droptone>
question: with RestClient, I got the API call to work, but it required me putting the API key at the beginning of the URL followed by the base URL of the API
<Uranio>
%s/ecist/exist/
Kricir has joined #ruby
sheepman is now known as sheepman|afk
<droptone>
how do I go about inserting two variables seperated by an @ symbol?
<droptone>
into the URL call?
<droptone>
such as APIKEY @ APIURL
yarou has joined #ruby
<Uranio>
khaase: I suggest you reading "Ruby under the miscroscope"
andikr has quit [Remote host closed the connection]
io_syl has quit [Remote host closed the connection]
ace_striker has joined #ruby
<RubyPanther>
Note that "http://" + APIKEY + "@" + "ARPIURL" is 3 methods, and "http://#{APIKEY}@#{ARPIURL}" only has to interpolate 2 times
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
<Uranio>
RubyPanther: :D but that is for big boys
Anarch has quit [Ping timeout: 272 seconds]
<RubyPanther>
Interpolation is therefore usually better
<shevy>
hmm
io_syl has joined #ruby
yasushi has quit [Remote host closed the connection]
<Uranio>
RubyPanther: I benchmarked that and is really better
gja has quit [Quit: This computer has gone to sleep]
<shevy>
really?
<shevy>
do you have that benchmark?
mnemon2 is now known as mnemon
Sawbones has joined #ruby
yasushi has joined #ruby
pietr0 has joined #ruby
<Uranio>
shevy: and we forget the C's %s methods
coderdad has quit [Remote host closed the connection]
<RubyPanther>
I know because I once claimed interpolation was dirty and ugly and concatenation was better, and they flogged me with benchmarks
<Uranio>
shevy: try it you self, I do it with every ruby version
GinoMan has joined #ruby
<Uranio>
RubyPanther: dirty to see, cleaned to run
zoscoy has joined #ruby
<RubyPanther>
it becomes obvious without a benchmark if you just count method calls
phutch1n1 has quit [Ping timeout: 265 seconds]
poulson has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Uranio>
conlusion #1 organized people shall use python
<RubyPanther>
foo + bar is better than "#{foo}#{bar}", 1 to 2. "prefix" + foo + "middle" + bar + "postfix" now that is 4 to 2, the interpolation didn't grow
<shevy>
Uranio %s is hard to remember for me
coderdad has joined #ruby
<Uranio>
shevy: some things like:
<Uranio>
puts "esto es una cadena %s" % Time.now.to_s
<RubyPanther>
But to clean up interpolation you can always use sprintf :) <3 <3 <3
<shevy>
RubyPanther hmm but "" alone also instantiates a new string object right? so "#{foo}#{bar}" should be 3 calls in total
jbueza has joined #ruby
<shevy>
Uranio esto es un canadian?
<Uranio>
puts "and this is rounded %1d" % Math::PI
mjs2600 has joined #ruby
<RubyPanther>
shevy: "" has a special optimization in the parser, and it doesn't add noticable overhead
<Uranio>
shevy: chain => cadena (string for us) cadena de caracteres 'character's chain'
<shevy>
canadian chains?!
jonah_k_ has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
yasushi has quit [Ping timeout: 265 seconds]
<shevy>
hmm who was that canadian lately here
<shevy>
Drwood or something
bigkevmcd has quit [Quit: Ex-Chat]
<Uranio>
shevy: their are very cool people, will not "jump" for that
jonah_k has quit [Ping timeout: 265 seconds]
poulson has joined #ruby
lyanchih_ has quit [Ping timeout: 272 seconds]
maasha has quit [Quit: Page closed]
nhhagen has joined #ruby
v0n has joined #ruby
coderdad has quit [Ping timeout: 252 seconds]
Avahey has joined #ruby
philcrissman has joined #ruby
mocfive has joined #ruby
<ddd>
well, my typing speed is going to go to shit. the dog just broke my damned R pinkie finger catching it in his leash when he ran under the truck.
fedesilv_ has joined #ruby
carraroj has joined #ruby
<ddd>
taped to hell atm. here's to a long assed day it seems
chipotle has quit [Quit: cya]
pierre1_ has quit [Ping timeout: 265 seconds]
retnuh has joined #ruby
Thanatermesis has quit [Read error: Connection reset by peer]
alex88 has quit [Quit: Leaving...]
aloitius_ has joined #ruby
vlad_starkov has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
fedesilv_ has quit [Remote host closed the connection]
claymore has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
fedesilva has joined #ruby
davidcollom_ is now known as davidcollom
<shevy>
hehehe
<shevy>
already wondered why you did not respond
<shevy>
knocked out by a mini dog!
MplsGreg has joined #ruby
RaCx has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lethjakman>
shevy: hmmm...I suppose I could background that.
<lethjakman>
the real problem is I'm trying to figure out in rails how to upload a file, and if the user doesn't crop it within 10 minutes delete it.
<lethjakman>
sort of a temporary upload that's onli finalized once we have a cropped image from the.
<certainty>
i'd offload those tasks to cron *shrug*
<lethjakman>
certainty: yeah...I just don't quite like that solution.
philcrissman has quit [Remote host closed the connection]
<lethjakman>
seems like it'd be slow if i got too many images
<centrx>
lethjakman, I would set up a rake task that clears old temp files, runs every X minutes
<apeiros>
lethjakman: you can also just purge on every upload
<apeiros>
i.e. before processing a new upload, delete old ones
fijimunkii has joined #ruby
sailias has quit [Remote host closed the connection]
<certainty>
problem with the cron aproach is that it could wipe files that are currently in use, so probably not
<RubyPanther>
lethjakman: generally you do a runtime test that will delete it if it is stale, and then do an infrequent (eg, daily) purge of the unused ones
<apeiros>
certainty: every approach has to solve that
<RubyPanther>
cron can easily delete old files
<certainty>
apeiros: it's easier from the ruby side though
jbueza has joined #ruby
koalalla1a is now known as koalallama
<dideler_work>
curious why i can't do: .include? s
geggam has joined #ruby
<apeiros>
certainty: cron can run ruby…
<dideler_work>
i thought parentheses were optional?
<apeiros>
in fact, I think all my cron tasks are ruby jobs
<RubyPanther>
Here is a script I use to find recent files in big directories: Dir.glob("**/*").find_all{|f|File.file?(f) and ( Time.now - File.ctime(f) ) < ( 3600 * ((ARGV[0] ? ARGV[0].to_i : false) || 24) ) }.sort.each{ |f| puts f}
<lethjakman>
centrx: that could delete a file someone is currently working with though.
<apeiros>
dideler_work: they are. but precedence matters too. why?
<lethjakman>
apeiros: it needs to be done in two uploads
<lethjakman>
RubyPanther: hmmm, I do like the daily purge idea...
<lethjakman>
there's always the chance someone could try to be malicious though
<lethjakman>
constantly upload hundreds of images.
<lethjakman>
things are never as easy as I'd like them to be.
<droptone>
Can anyone provide any examples of parsing JSON data?
<dideler_work>
apeiros: rails gives me an error when i leave out the parenthesis but not when i include them. not a big deal, i'll just leave them in
<certainty>
apeiros: i have many too. i was confusing things, i thought that he can delete them once he doesn't need them anymore, but he wanted it timed anyway
sailias has joined #ruby
<apeiros>
dideler_work: rails has nothing to do with parens or no parens ;-)
<apeiros>
dideler_work: and the reason probably is precedence, as I already mentioned
<shevy>
in a module... def Foo.bar vs. self.bar ... you guys would prefer self.bar right?
<Uranio>
diccionarios.class => Hash
<centrx>
It creates Ruby objects...
<RubyPanther>
There are no json elements in parsed json
subbyyy has quit [Ping timeout: 260 seconds]
sailias has quit [Remote host closed the connection]
<droptone>
Uranio: interesting, thank you
subbyyy_ has joined #ruby
<RubyPanther>
That is 100% of the reason it gets used :)
Guest___ has joined #ruby
sailias has joined #ruby
<apeiros>
droptone: after JSON.parse, you don't have json anymore
<droptone>
Ruby: so, I've successfully pulled this JSON data and parsed it, and it returns a series of users with a series of email addresses and other paremters
<RubyPanther>
Goes back to _why's post on RedHanded where he pointed out that JSON was YAML, or YAML was JSON, or something
<apeiros>
so a *json* tutorial wouldn't get you anywhere
coderdad_ has quit [Remote host closed the connection]
<droptone>
so therefore, say I wanted to list all email addresses
<apeiros>
so, grouped those abberations with my account. now all I need is a bot which runs as apieros and aperios and autosmacks everybody saying it wrong :D
GinoMan has quit [Read error: Operation timed out]
<shevy>
apeiros or you could remove the 'e' from your nick :)
<apeiros>
shevy: then it would be wrong.
<Uranio>
"piros" sound like fire
<shevy>
actually, I did not yet see aperios ... did people really try to use that nick as well?
SCommette has quit [Quit: SCommette]
<shevy>
Uranio isn't that more like fuego or something with f*
petey_ has joined #ruby
sheepman is now known as sheepman|afk
einarj has quit [Remote host closed the connection]
f3ttX] has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
pietr0 has joined #ruby
<shevy>
hmm got a question
<shevy>
in IRB when a method is not existing, I get an error such as this:
<shevy>
NameError: undefined local variable or method `foo' for main:Object
<shevy>
what would I have to do to pass these errors to a method of my choosing, before I give out that error? define method_missing on class Object would suffice?
MplsGreg has joined #ruby
<RubyPanther>
rescue it
jbueza has joined #ruby
<apeiros>
method_missing on Object is a long rope to hang yourself with…
<shevy>
hmmm
<apeiros>
but yes, that would work
<apeiros>
rescuing it is certainly the better choice
<droptone>
how do I reference those individual objects? such as user.address?
<Uranio>
but rescue load a sub-runtime :-/
<droptone>
or address_1 rather
pigzzcanfly has joined #ruby
<apeiros>
droptone: by learning ruby. sorry.
<centrx>
droptone, Look up how to use Arrays and Hashes in Ruby
<apeiros>
droptone: {} <-- hash
<apeiros>
droptone: [] <-- array
<droptone>
right, I'm aware of that
* Uranio
we almost writing the program for droptone :D
<apeiros>
some_hash[some_key]
<apeiros>
some_array[some_index]
itadder has joined #ruby
<apeiros>
and in json, all keys will be strings, so: some_hash["some_key"]
<droptone>
ahh, I see
<apeiros>
droptone: and now fire up irb - or better yet pry, and try around
<droptone>
will do, appreciated
<itadder>
so what the big deal with regexp in ruby
<apeiros>
because really, this channel isn't meant to spoon feed you ruby 101
<centrx>
These tutorials are getting better and better
<itadder>
apeiros: oh
<Uranio>
droptone: IRB is your friend...
<itadder>
centrx: which tuorial is that
<droptone>
I see, #ruby isn't for learning ruby
<centrx>
The apeiros show
<itadder>
droptone: #learnruby
<apeiros>
droptone: you're misrepresenting what I said
<itadder>
or ##learnruby
<itadder>
let start that channel
<apeiros>
droptone: this is not #yourpersonalrubytutorial
x77686d has joined #ruby
<apeiros>
itadder: IMO a great idea
<droptone>
lol
<apeiros>
(not sarcastic!)
olivier_bK has joined #ruby
<itadder>
were it can be a personal ruby channel
<certainty>
hard to tell
<itadder>
I see why not
evenix has joined #ruby
<apeiros>
if there are people, who like to teach other people ruby, more power to them
<apeiros>
but IMO, this channel isn't for that
<itadder>
I feel irc is not just for chating, its for learnign and teaching
<Uranio>
everybody forget how long time their was newb too, and nobody answer their newb questions
<droptone>
yes, #ruby is not for teaching ruby
<droptone>
understood
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
droptone: seriously, stop being an ass. that's not what I said.
dnyy has joined #ruby
MplsGreg has quit [Ping timeout: 252 seconds]
<droptone>
lol
<certainty>
#ruby is all about minerals
xbob_ has joined #ruby
<Uranio>
droptone: better keep asking you newb question, and constribuite to avoid "channel dead"
<shevy>
droptone these strings on one line are hard to read, try to use pp before: require 'pp'; pp your_object, this will give you a properly formatted string, then you can quickly see where the hashes and arrays are, and you can then quickly find the right elements via [] method calls
xbob_ has quit [Read error: Connection reset by peer]
<Uranio>
require 'pp'
<shevy>
ideally of course, the simpler your data structures the better
<RubyPanther>
Obviously somebody who never made it to a solstice festival
<Uranio>
RubyPanther: xD stable
bjarkih has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
RaCx has joined #ruby
oracal has quit [Remote host closed the connection]
ciwolsey has quit [Remote host closed the connection]
<shevy>
perl
<shevy>
who is using that still
tcopp has joined #ruby
<shevy>
fossil coders
einarj has joined #ruby
oracal has joined #ruby
billy_ran_away has quit [Ping timeout: 260 seconds]
kayamm has joined #ruby
pontiki_ is now known as pontiki
mikepack has quit [Remote host closed the connection]
<Uranio>
my girl-friend radiaclly say something like: "interpreted programs that are not writed in perl, are craps"
mocfive has quit [Ping timeout: 252 seconds]
billy_ran_away has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
axl_ has quit [Quit: axl_]
<apeiros>
Uranio: sounds like your GF is quite dogmatic
<shevy>
or old
einarj has quit [Remote host closed the connection]
<pontiki>
hey!
<certainty>
my wife doesn't even know that there is such a think
<pontiki>
:(
yekta has joined #ruby
<shevy>
at work, the folks are like +10 years and they all use perl. I am the exotic dude who writes in ruby (but they gave me a windows machine as punishment :( )
<certainty>
thing, even
<shevy>
*+10 years older
<shevy>
i.e. perl hipster generation
<slash_nick>
my girlfriend likes the "make me a sandwich" - "no" - "sudo make me a sandwich" joke... that's about as in the know as she is
<pontiki>
haha windows machine
burlyscudd has quit [Quit: Leaving.]
<shevy>
wow, you must beg for sudo rights with her slash_nick?
tcopp has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<shevy>
pontiki it's not funny! it's sad :(
<certainty>
poor shevy
jack_rabbit has joined #ruby
<shevy>
but at least there is putty available and I can login to the different servers
<pontiki>
neither is being old
Wolland has joined #ruby
<certainty>
but hey you can do F# there
<certainty>
!
<shevy>
haha true pontiki
<shevy>
as long as ruby works it is not so bad
koell has joined #ruby
jzig has joined #ruby
<shevy>
but the whole infrastructure uses ubuntu or debian, and on the webserver they have only ruby 1.8.7 and on their database server they have only 1.9.3, it kills my mind...
cj3kim has joined #ruby
<lpvn>
I don't know why extreme opinions are so popular among programmers
madb055 has quit [Ping timeout: 252 seconds]
<shevy>
lpvn: vim rocks, emacs sucks
<Uranio>
shevy: must using sudo when you do not give her some thing for expend a wile naked thinking the craps that womans think after you make to her *you know what* at 100%
<lpvn>
shevy, lol
<slash_nick>
i've been using 1.8.5 lately... i don't think there's any chance they'd let me use rubygems in the environment it (that ruby) lives
<shevy>
:(
<certainty>
lpvn: because most programmers are opinionated guys generally
axl_ has joined #ruby
<shevy>
gem really sucked on 1.8.7
mneorr has joined #ruby
DrCode has joined #ruby
<shevy>
the IT guys are like in the basement and lazy as fuck
<pontiki>
that's how you all determine you pecking order in the pack
<shevy>
and years behind the latest source anywhere
fedesilva has quit [Read error: Connection reset by peer]
<pontiki>
rank on each other and make fun of people with less skillz than you
<shevy>
pontiki it makes me violent!
<lpvn>
certainty, yeah I think the personality of the average programmer promotes this kind of mindset
fedesilva has joined #ruby
<certainty>
yupp
benlieb has joined #ruby
<shevy>
pontiki girls are scheming, I am more the brute-force-sledgehammer-wielding dude
<pontiki>
i'm willing to bet the IT guys have figured out no one else knows what's needed, and urgent requests are here today, gone tomorrow
<certainty>
lpvn: though i don't think that there is something wrong with having strong opinions, as long as they have some ground
<shevy>
yeah pontiki
edwardly has joined #ruby
<pontiki>
so they're actually operating at peak efficiency and effectiveness
<lpvn>
certainty, black and white thinking is harmful in the real world
<centrx>
False
coderdad has quit [Remote host closed the connection]
<opter>
I'm trying to authenticate with a Siteminder server and don't know where to start. Are there any gems for this? All the code examples I see are in C++ or java
<pontiki>
and that's an example of it right there
cj3kim has quit [Ping timeout: 260 seconds]
<centrx>
False
<certainty>
lpvn: agreed, doesn't mean i do just because i may have strong opinions though
keen_ has left #ruby [#ruby]
<shevy>
I am used to compile everything from source at home
<shevy>
there is no delay, when something is available, it gets compiled
<likemike_>
hi how do i apply a regex to a certain location / position in in the string ?
<Uranio>
shevy: dou you know about some lisp programmer?
itadder has quit [Remote host closed the connection]
<shevy>
Uranio: I hope they are dead
<Uranio>
their think the center of the world
<certainty>
shevy: huh? i am a lisp programmer
jzig has quit [Ping timeout: 265 seconds]
burlyscudd has joined #ruby
<shevy>
certainty :(
<Uranio>
IS ALIVE!
* Uranio
reload the guns
<shevy>
at least noone is using COBOL here
<certainty>
ok so much about strong opinions
<certainty>
:)
* slash_nick
waits for the COBOL guy
* shevy
readies a shotgun
KarolisNo has joined #ruby
<shevy>
phew
<shevy>
this channel is safe
<shevy>
certainty how can you survive the jungle of ((()))'s?
<certainty>
you ruby guys are just lispers that need syntax sugar on your ASTs
<Uranio>
shevy: is armored
<shevy>
I saw scheme
<shevy>
it scared me
<slash_nick>
shevy: ))<>((
<certainty>
shevy: with decent tooling. Also i barely see them. I don't look for parens but for structure
<likemike_>
hi how do i apply a regex to a certain location / position in in the string ? <- asking again :-)
<shevy>
(define (troll-is-critical? ktroll)
<shevy>
(< (kern-char-get-hp ktroll) 5))
<shevy>
and that is actually code that works!
<certainty>
shevy: looks good
poguez_ has quit [Quit: Connection closed for inactivity]
<Uranio>
shevy: the other phatom nightmare is erlang (ejabber)
<apeiros>
shevy hopes he's dead?
<Uranio>
phantom
chipotle has quit [Quit: cya]
<certainty>
most of my stuff on bit bucket is scheme libraries for CHICKEN
yekta has quit [Quit: yekta]
kirun has joined #ruby
<shevy>
Uranio dunno, I am always impressed when I read about erlang for getting distributed programming and fault-tolerant programming right as in robust
<certainty>
lpvn: how do you mean? Can you try to explain what you want to achieve
<apeiros>
certainty: do you mean likemike_?
Wolland has quit [Remote host closed the connection]
<Uranio>
shevy: yous like Pascal too
<shevy>
apeiros just woke up ;)
<certainty>
apeiros: oh yeah, tabcomplet fail
agjacome has quit [Ping timeout: 252 seconds]
<apeiros>
likemike_: apply it to string[offset..-1]
agjacome has joined #ruby
<shevy>
Uranio I think I had to learn it one year in school
<Uranio>
offset=string.index('/')
<shevy>
perhaps TurboPascal, I am not sure. it was weird... we did only basic math calculations
<apeiros>
likemike_: also, some methods accept an offset param
<RubyPanther>
I lost my coffee cup. I tried debugging the problem, but I don't even know where to start.
<certainty>
shevy: like really impressed or sarcastically impressed?
<Uranio>
shevy: in others dark times, and other countries, peoples must write Delphi programs
<Uranio>
(pascal)
<lpvn>
certainty, do not take the my name in vain lol
<likemike_>
apeiros: certainty umhmm
<certainty>
RubyPanther: first try to reproduce it. Can you lose it again?
<RubyPanther>
When I was child, growing up in the BBS, we didn't have web sites we had to write DOOR games in pascal
<pontiki>
certainty: have you worked with clojure?
<RubyPanther>
certainty: Nope :(
Wolland has joined #ruby
Matriks has joined #ruby
<certainty>
pontiki: yes to some extend
<shevy>
certainty erlang? the basic idea yeah. the syntax not, I dunno, it seems not very elegant at all
<certainty>
RubyPanther: you're lost
<pontiki>
i just picked up a couple books, am diving in
Mongey has quit [Quit: Mongey]
<certainty>
pontiki: it is really an interesting lisp.
caveat- has quit [Ping timeout: 252 seconds]
joelroa_ has quit [Ping timeout: 272 seconds]
<RubyPanther>
wait, am I lost, or is the cup lost? this is getting worse
<shevy>
pontiki books like ... "ponwiki's quest on a unicorn"?
<certainty>
RubyPanther: yeah as usual bugs tend to come in clusters
<shevy>
hehe
<shevy>
incompetence is aggregated in clusters
mansi has quit [Remote host closed the connection]
tvw has joined #ruby
tubuliferous_ has left #ruby ["Leaving"]
aspires has quit []
tubuliferous has joined #ruby
<RubyPanther>
aggravated by lack of caffeine lubricant
mansi has joined #ruby
<pontiki>
i think i will like the additions of vectors and hash maps
coder_neo has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<certainty>
pontiki: what i particulary like about it are its persistent datastructures. Having efficient immutable types is a great win. Clojure is like a good mixture of scheme and haskell
<pontiki>
i'm still getting to that
<tubuliferous>
pastie: test
<RubyPanther>
Larry Wall says Haskell is a language by geniuses, for geniuses.
<pontiki>
i played a tiny bit with it in haskell
<shevy>
god RubyPanther
<shevy>
Larry Wall was hip in the 1980es
<shevy>
come enter the 2010es
mansi has joined #ruby
<certainty>
yeah larry wall is crazy
<Uranio>
oh! :D haskell, the "interactive but tied arms" lang
<shevy>
lol
<RubyPanther>
He's no less crazy, Larry Wall lasts forever, like Weird Al
<shevy>
the "download 100mb to run haskell" lang
KarolisNo has quit [Remote host closed the connection]
<certainty>
shevy: you mean haskell-platform?
<shevy>
the ghci yeah
caveat- has joined #ruby
coder_neo has quit [Client Quit]
<RubyPanther>
He says it is important to know that about Haskell, in case you have to hire people to maintain something
carlyle has joined #ruby
<RubyPanther>
It is not like Java with interchangeable monkeys
<shevy>
haskell?
yekta has joined #ruby
GinoMan has joined #ruby
<shevy>
I'd rather hire a python guy
<RubyPanther>
cheaper, to be sure
<likemike_>
Uranio: apeiros umh don't really understand an example you gave me...i want to check if for example....123test34test...0..2 are decimal 3..6 chars..7..8 decimals etc
<shevy>
I am sure the haskell coders are damn expensive
<apeiros>
likemike_: I don't understand your example
neodon has joined #ruby
<certainty>
haskell really is cool. I've only scratched the surface with it though. I have a single active project where it's the primary language
<apeiros>
likemike_: please give example in- and output
<likemike_>
apeiros: kk
x77686d has quit [Quit: x77686d]
<shevy>
ack
<shevy>
how do you people have so much time for different language projects
<certainty>
more important are the ideas behind haskell, that can be applied to any language
Giorgio has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
<Uranio>
certainty: just the ideas, like lisp is for ruby how the greek is for Spanish language
mansi has quit [Ping timeout: 252 seconds]
<pontiki>
how do you *not*?
<pontiki>
learning is
<certainty>
Uranio: i don't know if that analogy is correct since i have no idea about real languages :)
xerox357_ has joined #ruby
iliketurtles has joined #ruby
mansi has joined #ruby
einarj has joined #ruby
xerox357 has quit [Read error: Operation timed out]
<iliketurtles>
is it OK/good practice to camelCase a module name?
skaflem has quit [Quit: Leaving]
<Uranio>
we recently sopke about lenguistic here, where romance langs come from green and almost all from latin
<certainty>
i think every programmer should have at least lanugage from each of the major paradigms under his/her belt
<Uranio>
certainty: ^
<RubyPanther>
If you already have time for Ruby, C, JS, regex, SQL, 3 types of markup, razzle, sazzle, and dazzle, adding a few lines of LISP should be no problem at all.
mary5030 has quit [Remote host closed the connection]
Targen has joined #ruby
<shevy>
ah
vlad_starkov has joined #ruby
<apeiros>
nhmood: no
<shevy>
nhmood, yeah you must rescue
mary5030 has joined #ruby
<apeiros>
nhmood: failure is handled by exceptions
<certainty>
still the file can be gone between your checks any your call to .open
<apeiros>
so rubys core methods will raise one, if something is exceptional
<shevy>
nhmood for instance when you run a .rb file from a certain dir, and that dir is removed, your script won't work anymore
GinoMan has joined #ruby
<shevy>
or actually, not even has to be removed, it could be an USB device that was disconnected
iliketurtles has quit [Quit: zzzzz…..]
<apeiros>
personally I moved tests like the ones you showed into the rescue, to provide a more specific error message
SCommette has quit [Quit: SCommette]
carlyle has quit [Ping timeout: 240 seconds]
<apeiros>
because as certainty said, testing before and not handling exceptions is prone to errors
mansi has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
aryaching_ has joined #ruby
mansi has joined #ruby
<nhmood>
i see, that is a good point
yfeldblum has joined #ruby
<nhmood>
wait so ruby core will handle a file not being there gracefully though?
<certainty>
nhmood: also beside what already has been said, you may want to design your method in away that it will release the resource when it's done
monkegjinni has quit [Ping timeout: 252 seconds]
<nhmood>
aka, lets say i check for the file, its there but gone before i call open
<certainty>
that's a common idiom
<nhmood>
will File.open return false if it cant open or will it break my app?
<aloitius_>
shevy: It manages a bit list. I'm trying to YAML it, and mostly it works, but in my tests I get UTF-8 errors.
<nhmood>
certainty: so if following that idiom, does it not make sense to have a get_file method?
mansi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 265 seconds]
mansi_ has joined #ruby
<certainty>
nhmood: depends on what it does
<certainty>
currently it only opens the file
<certainty>
which implies that there is also a method to close it
<Uranio>
oh :D I missed a good talk
saarinen has joined #ruby
camila has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
ultraflash3 has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
<Uranio>
File.open filename if File.exist? filename
<Uranio>
nhmood: or IO.read filename if File.exist? filename
<certainty>
nhmood: for example: f = get_file("somefile); something_that_raises(); close_file(f) ... something_that_raises raises an exception which means you never reach close_file thus leaking the resource
<certainty>
that's why File.open accepts a block
fijimunkii has quit [Read error: Connection reset by peer]
<certainty>
nhmood: wrt to the behavior of .open on exceptional situations like a missing file. It will not return false. It raises an exception in that case
Matriks has quit [Remote host closed the connection]
aspires has quit []
jack_rabbit_ has quit [Quit: Leaving]
aspires has joined #ruby
Shidash has quit [Quit: Leaving.]
<nhmood>
I see
<nhmood>
so then what is the value of f (= File.open())
<nhmood>
nil?
ultraflash3 has quit [Ping timeout: 252 seconds]
<certainty>
nhmood: .open either succeeds in which case it returns an instance File or it raises an exception
<certainty>
+of
<opter>
Are there any wrappers for CA Siteminder authentication?
<Uranio>
nhmood: a exception that will stop your program
<Uranio>
is the result
mneorr has joined #ruby
mehlah has joined #ruby
GreatSUN has quit [Ping timeout: 245 seconds]
havenwood has quit []
<Uranio>
file=if File.exist?(file) then File.open(file) else false end
Sc0rp10n has quit [Remote host closed the connection]
<Uranio>
(File.open(file) rescue false)
pigzzcanfly has joined #ruby
Vovko has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<pontiki>
please no
<certainty>
nhmood: what's the intended semantic of your method?
<nhmood>
essentially it is just a helper for accessing files
<nhmood>
i do a lot of file reads (essence of the app)
bricker has quit [Ping timeout: 265 seconds]
<nhmood>
so i thought it would make sense to write a get_file
<nhmood>
that does the checking for you
bricker has joined #ruby
<nhmood>
when i initially wrote it, it was pretty naive and just checked for existence and readability
<nhmood>
but didnt have any exception handling in case things go wrong
<nhmood>
and im just trying to revisit the code and improve it
<nhmood>
so i just wanted to clarify if/where it was necessary and to what extent ruby core deals with these things
<pontiki>
do you read and write the files in different ways once you have the file handle?
<nhmood>
what do you mean?
Vivekananda has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
MplsGreg has joined #ruby
petey_ has quit [Remote host closed the connection]
subbyyy has joined #ruby
<nhmood>
different methods writing to the file?
dingus_khan has joined #ruby
<pontiki>
well, for example, you could read the entire contents in at one go, read it into an array of lines, read it a character at a time, read it a block at a time, etc
chrisseaton has joined #ruby
petey has joined #ruby
<nhmood>
well for reading its always the entire content in one go
<nhmood>
for writing its line by line
phutch1ns has quit [Ping timeout: 264 seconds]
petey has quit [Read error: Connection reset by peer]
<pontiki>
so abstracting the reading operation could make sense
petey has joined #ruby
<pontiki>
and then it's just something like File.read(file) if File.exists?(file)
Mongey has quit [Quit: Mongey]
jglover has joined #ruby
Vivekananda has joined #ruby
SCommette has joined #ruby
<certainty>
def file_get_contents(file); handle_errors{ File.read(file) } end ... php ftw
<jglover>
what are some issues that can arise when using mongo?
Uranio has quit [Quit: WeeChat 0.4.3]
<centrx>
PHP is an abomination and a scourge on the face of the earth.
RaCx has quit [Quit: Computer has gone to sleep.]
pigzzcanfly has joined #ruby
<Beoran>
Well, some people make great things with PHP , but it's a bit like a "dorodango"
<jglover>
Wordpress is in PHP, that's done quite well
<apeiros>
Beoran: I'd attribute the great things to the people doing it *despite* php
<Beoran>
You can polish a turd, but it's a terrible waste of tim
<apeiros>
also the reverse applies too - people do horrible things in ruby :)
rudisimo has quit []
<Beoran>
Ruby is already a gem to sue by itself
<Beoran>
use even
<jglover>
punny
<Beoran>
ruby helps you, php hinders you, but the talent of the programmer will of course prevail
sambao21 has quit [Quit: Computer has gone to sleep.]
randomnick_ has joined #ruby
timonv has joined #ruby
disposable2 has joined #ruby
<Beoran>
The wise ancient programmers of yore were able to program great things like Unix with just 64k of RAM. Who can equal their brilliance or fathom their thoughts?
<Beoran>
I'm sorry, I'll leave it at that before I start to eulogize Dennis Richie...
SHyx0rmZ has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
kindjal has joined #ruby
SCommette has quit [Quit: SCommette]
twiceaday has joined #ruby
SHyx0rmZ has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
philcris_ has joined #ruby
dubsteph has joined #ruby
<nhmood>
thanks for the help everyone who answered lol
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
<certainty>
nhmood: did it help you?
sambao21 has joined #ruby
stryek has quit [Ping timeout: 265 seconds]
pigzzcanfly has quit [Remote host closed the connection]
<nhmood>
certainty: yeah i have a better idea of what i should be handling
mutenewt has joined #ruby
tcopp has joined #ruby
<nhmood>
and some assumptions i was making before have been cleared up
<certainty>
alright
philcrissman has quit [Ping timeout: 265 seconds]
virtualize has quit []
TMM has quit [Ping timeout: 264 seconds]
Exeia has joined #ruby
meatherly has joined #ruby
mrsolo has quit [Quit: Leaving]
Xeago has joined #ruby
SCommette has joined #ruby
Xeago has quit [Remote host closed the connection]
geggam has joined #ruby
dubsteph has quit [Ping timeout: 264 seconds]
wjlafrance has joined #ruby
Hobogrammer has quit [Quit: Lost terminal]
TMM has joined #ruby
nichtdiebohne has joined #ruby
tcopp has quit [Ping timeout: 252 seconds]
<razrunelord>
Hey guys, I need to write a ruby script to find all broken links in a website. How will I go about it? I know I need to do a depth first search
<certainty>
also you might want to make sure to not escape from your domain while you traverse the graph
f3ttX] has quit [Quit: Lost terminal]
SirCmpwn has joined #ruby
<certainty>
unless you want to eventually check the entire interwebs
iaj has quit [Ping timeout: 264 seconds]
<razrunelord>
Does nokogiri do a DFS?
<certainty>
also don't visit links you already have visited
<certainty>
unless you want to get stuck in a cycle
<razrunelord>
I will maintain a hash of all the visited links certainty
<centrx>
razrunelord, Nokogiri is an XML/HTML parser/selector
<certainty>
good good, just checkin
x77686d has joined #ruby
<banister>
certainty good good
<banister>
razrunelord that sounds like an assignment for school btw
mansi_ has quit [Read error: Connection reset by peer]
<banister>
razrunelord so it's very naughty to ask here :)
mansi has joined #ruby
koell has quit [Read error: Connection reset by peer]
<razrunelord>
banister: I am just picking people's brains. Just to see how they attack the problem :) Not trying to steal any ideas. I have my own plan of attach
grzywacz has quit [Quit: :wq]
ganesh has joined #ruby
habanany has joined #ruby
<centrx>
You cannot "steal" ideas.
ganesh is now known as Guest18602
iaj has joined #ruby
fedesilv_ has joined #ruby
dingus_khan has joined #ruby
<razrunelord>
Sorry, english is not my first language.
danman has quit [Quit: danman]
zachallett has quit [Remote host closed the connection]
Vovko has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
george2 has quit [Read error: Connection reset by peer]
dangerousdave has quit []
kn8wolf has quit [Quit: Leaving]
Xuisce1 has quit [Ping timeout: 245 seconds]
rayners has quit [Remote host closed the connection]
joelroa has joined #ruby
mjs2600 has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
mansi has joined #ruby
kitak has joined #ruby
mneorr has joined #ruby
pigzzcanfly has joined #ruby
elaptics is now known as elaptics`away
IceyEC has joined #ruby
habanany has quit [Ping timeout: 260 seconds]
<nhmood>
so i have a get_file method, it has exception handling for when i do a File.open, but there are also checks such as File.exists? File.readable?
mansi has quit [Ping timeout: 264 seconds]
<nhmood>
how can i test that the exception handling is working
<nhmood>
i can test within the method by deleting the file once i pass the first two checks
<nhmood>
but in the context of lets say rspec, how would one test this? or would one even bother?
hoypriest has joined #ruby
failshel_ has joined #ruby
<Beoran>
just use "raise" to raise your exception yourself, nhmood
mansi has joined #ruby
yarou has quit [Remote host closed the connection]
hobodave_ has quit [Ping timeout: 252 seconds]
mansi has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
budrose has quit [Remote host closed the connection]
yarou has joined #ruby
<nhmood>
so i can raise the exception prior to running the method and then the rescue will pick up on that raise?
<nhmood>
sorry if i dont understand and sound like an idiot i just started looking at this exception stuff recently
failshell has quit [Ping timeout: 252 seconds]
zachallett has joined #ruby
Guest73622 has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
failshel_ has quit [Ping timeout: 272 seconds]
TripTastic has joined #ruby
gilest has joined #ruby
parzo has quit []
<interactionjaxsn>
nhmood: rspec has expectations for errors. expect {thing_that_raises_error}.to raise_error(WhateverError)
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
JBreit has quit [Ping timeout: 272 seconds]
bbloom has joined #ruby
yekta has quit [Quit: yekta]
<razrunelord>
OpenURI is failing at redirections centrx `open_loop': redirection forbidden
thesheff17 has quit [Read error: Operation timed out]
<centrx>
razrunelord, Is it between HTTP and HTTPS?
<centrx>
razrunelord, Google search looks helpful for this
dkamioka has quit [Remote host closed the connection]
<razrunelord>
Thanks centrx I want to try and rescue that, can't find the name
wjlafrance has quit [Quit: This computer has gone to sleep]
pigzzcanfly has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
Exeia has quit [Ping timeout: 260 seconds]
jlast has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 252 seconds]
MplsGreg has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
juo has quit [Read error: Operation timed out]
napcae has quit [Read error: Operation timed out]
terrellt_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
stryek has quit [Ping timeout: 272 seconds]
terrellt has quit [Ping timeout: 272 seconds]
MattStratton has quit [Ping timeout: 264 seconds]
ffranz has quit [Quit: Leaving]
petey has quit [Remote host closed the connection]
jonah_k has quit [Remote host closed the connection]
juo has joined #ruby
terrellt_ is now known as terrellt
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gilest has quit [Remote host closed the connection]
tcopp has joined #ruby
francisfish has joined #ruby
CaptainJet has joined #ruby
pushpak has joined #ruby
gilest has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
tcopp has quit [Ping timeout: 272 seconds]
stkowski has quit [Ping timeout: 272 seconds]
interactionjaxsn has quit [Remote host closed the connection]
jonah_k has joined #ruby
francisfish has quit [Ping timeout: 252 seconds]
msmith has quit [Remote host closed the connection]
<shevy>
anyone of you is using windows?
<shevy>
if so, could you run this command in irb and tell me the format of the resulting string perhaps please:
<shevy>
resolution = `wmic desktopmonitor get screenheight,screenwidth`
jerius has quit [Ping timeout: 248 seconds]
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jzig has joined #ruby
vpretzel has quit [Quit: Adios!]
RaCx has joined #ruby
RaCx has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
thesheff17 has joined #ruby
Czupa has quit [Remote host closed the connection]
milhite has joined #ruby
milhite has quit [Max SendQ exceeded]
napcae has joined #ruby
milhite has joined #ruby
froy has joined #ruby
thesheff17 has quit [Max SendQ exceeded]
kenneth has joined #ruby
thesheff17 has joined #ruby
jobewan has quit [Quit: Leaving]
dorei has joined #ruby
RaCx has joined #ruby
ringaroses has joined #ruby
saarinen has joined #ruby
mary5030 has quit [Remote host closed the connection]
froy has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
jzig has quit [Ping timeout: 252 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<RubyPanther>
razrunelord: What I did for a broken link checker was use hpricot and drb. And a month of scraper hell.
adamnbowen has quit [Ping timeout: 265 seconds]
meatherly has quit [Remote host closed the connection]
<RubyPanther>
The problem seems so simple at first, especially to devs who are used to building clean, compliant websites. And then the nasty reality of the filth that is the web starts to creep in with the bug reports.
f3ttX] has joined #ruby
<RubyPanther>
All that nice, simple stuff like openuri gets tossed out to make room for a giant pile of workarounds
<RubyPanther>
If you're writing your first link checker, your estimate isn't just off by half; it is off by an order of magnitude.
vlad_starkov has joined #ruby
<pontiki>
isn't that sort of like the traveling salesman problem?
<RubyPanther>
lol no the traveling salesman problem can be solved entirely by implementing theory.
x77686d has joined #ruby
ultraflash3 has quit [Ping timeout: 264 seconds]
<shevy>
why is it a traveling salesman and not a traveling saleswoman pontiki
<centrx>
Because that would be stupid
<RubyPanther>
Women are smart enough to call first
carlyle_ has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
shime has joined #ruby
<bricker>
Is this really the best way to get the filename of a File object? `File.basename(file.path)`... and if you want the extension, `File.extname(File.basename(file.path))` ?
<RubyPanther>
bricker: for some values of best, sure
mlpinit has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<pontiki>
it seems most likely to be portable across file systems
<shevy>
bricker can you not do: File.extname file.path
<bricker>
shevy: Yeah that's better, thanks
<shevy>
try to get the name of the file without extension :)
<soahccc>
When I look something up on wikipedia, like TSP, I curse the day(s) where I've slept in math class
<shevy>
haha
<shevy>
I should have learned more when I was young
Celm has joined #ruby
<shevy>
and became a math genius
saarinen has joined #ruby
angusiguess has joined #ruby
<shevy>
I'd become rich
<shevy>
now, I struggle even with something as simple as statistics
<centrx>
Woulda, coulda, shoulda
Sleepee has joined #ruby
<shevy>
yeah :(
<pontiki>
mathameticians rich?
Wolland has joined #ruby
<soahccc>
I always thought what is that for a pile of crap, I never going to need it… If I just had a math prof which happened to be a game programmer :(
<shevy>
yeah pontiki
<pontiki>
if i could spell...
<shevy>
I see it for many local job offerings
SCommette has joined #ruby
<pontiki>
who are rich mathematicians?
webgen has quit [Remote host closed the connection]
ringaroses has quit [Ping timeout: 265 seconds]
<pontiki>
if you work for someone else, you'll never get rich
<centrx>
If only I had picked up that million-dollar bill I saw on the ground...
<pontiki>
but maybe that's just a relative thing
<shevy>
pontiki don't destroy my illusions :(
<pontiki>
was it zimbwabian?
<pontiki>
can i destroy your delusions?
<shevy>
you can
lkba has quit [Ping timeout: 265 seconds]
MplsGreg has joined #ruby
<shevy>
are you so mean however is the more important question
<centrx>
I own 100 million Zimbabwean dollars
timonv has joined #ruby
<soahccc>
pontiki: word, you're right
chihhsin has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
Burgestrand has joined #ruby
chihhsin has joined #ruby
<pontiki>
about what?!?!?! WTAF?!?
fedesilv_ has quit [Ping timeout: 272 seconds]
rins has quit [Remote host closed the connection]
<pontiki>
shevy: call it ruthless compassion
AMcP has joined #ruby
Es0teric has joined #ruby
ringaroses has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
<shevy>
meantiki :(
MplsGreg has quit [Remote host closed the connection]
ringaroses has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
mikepack has quit [Read error: Operation timed out]
timonv has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
<RubyPanther>
studying statistics is worthless
nateberkopec has quit [Quit: Leaving...]
mikepack_ has quit [Ping timeout: 264 seconds]
<Burgestrand>
Now this was a long time ago.
<RubyPanther>
instead of spending months learning how to wield chalk, you can spend an afternoon learning how to apply existing math functions using software
FL1SK has joined #ruby
jksfolt has joined #ruby
pierre1_ has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
Burgestrand has quit [Quit: Burgestrand]
koell has joined #ruby
Burgestrand has joined #ruby
nisstyre has quit [Ping timeout: 245 seconds]
zigomir has quit [Read error: Connection reset by peer]
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
xerox357_ has quit [Remote host closed the connection]
Burgestrand has quit [Client Quit]
Hien has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
failshell has joined #ruby
pigzzcanfly has joined #ruby
Vovko has quit []
nanoyak has joined #ruby
shime_ has joined #ruby
zigomir has joined #ruby
jksfolt has quit [Remote host closed the connection]
fluve has joined #ruby
rjhunter has joined #ruby
kayamm has quit [Quit: part]
dingus_khan has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
petey has quit [Remote host closed the connection]
dingus_khan has joined #ruby
dingus_khan has quit [Remote host closed the connection]
lkba has joined #ruby
yarou has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
johnmilton has quit [Read error: Connection reset by peer]
thams has joined #ruby
zigomir has joined #ruby
webgen has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
Wolland has quit [Remote host closed the connection]
gilest has joined #ruby
<pontiki>
how can regexp *not* work on data...
mwmnj has joined #ruby
zigomir has joined #ruby
oracal has quit [Quit: Leaving]
mercwithamouth has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwmnj>
Can anyone point me to an article regarding the currently used versions of ruby and their differences
<RubyPanther>
pontiki: maybe it is quantum data
jhass is now known as jhass|off
nisstyre has joined #ruby
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
mwmnj: There is probably not a lot of that other than reading the release notes or blogs explaining the features of each new version
<bobdobbs>
hey guys. I'm new to ruby and was wanting a little help understanding the syntax. I've got this bit of code from a book, and I'm hoping someone can walk me through it from line 3 http://hastebin.com/lokudiqicu.rb
yacks has quit [Ping timeout: 272 seconds]
<RubyPanther>
Generally you use whatever is the latest "stable" released version of Ruby, such as 2.1.0