<benzrf>
zeknox: slice is the python name for that, i do not know if that is what this particular thing is called in ruby
<atmosx>
shevy: wow
mlpinit_ has quit [Quit: Leaving...]
<atmosx>
shevy: you're going to be ritch, what exactly are your intern going to be
<atmosx>
?
* atmosx
studies pharmacy and shevy is going to make intern in a pharma company!
rljohnsn has quit [Quit: Leaving.]
<xybre>
zeknox: -1 is the index of the last element in an array.
<shevy>
atmosx dunno yet, he is the group leader of their bioinformatics research division. it's actually collaboration with the local university (i.e. a joint building, one part belongs to the university, the other is the private area of the company)
<zeknox>
xybre: that makes the most sense to me now -1 is last, and .. is everything in between
sailias has joined #ruby
<shevy>
atmosx so I'll have to leave a good impression and don't know how yet
jtdowney has quit []
<xybre>
zeknox: Yep. Ruby has a native Range syntax, so you can do (1..4) to get a Range object anytime you like really.
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mengu has quit [Remote host closed the connection]
<Hanmac>
shevy: yeah! new HDD was successful integrated into RAID ... now i have 1,9TB free in my RAID ,P
<atmosx>
shevy: Okay, write a blog post with impressions about it.
<atmosx>
shevy: my thesis, which I wills start writting next week is about sequencing current and new methods. So if you have any inputs let me know ;-)
<benzrf>
ur-cong: *prefer
rljohnsn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<freeone3000>
Hanmac: What do you do with the other four drives?
bricker_ has joined #ruby
bricker_ is now known as bricker`work
shevy has quit [Ping timeout: 245 seconds]
pel_daniel has left #ruby [#ruby]
<Hanmac>
freeone3000: building C++ libs from source?
shevy has joined #ruby
<shevy>
atmosx gah, firefox froze my system just now...
nfk has quit [Quit: yawn]
<atmosx>
shevy: get a mac!
<atmosx>
shevy: you're on ubuntu right?
havenwood has quit [Remote host closed the connection]
<shevy>
on slackware
tt1187 has joined #ruby
aspiers has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
freezey has joined #ruby
<benzrf>
atmosx: ubuntu > os x
<benzrf>
muh freedumbs
sickweezle has quit [Ping timeout: 245 seconds]
<benzrf>
man what is it with ruby users and macs i have never seen such an epidemic of apple in python
brennanMKE has quit [Ping timeout: 272 seconds]
freeone3000 has quit [Quit: Konversation terminated!]
Brolen has quit [Remote host closed the connection]
reset has quit [Read error: Connection reset by peer]
nifty has joined #ruby
lemonade` has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
bubu has quit [Remote host closed the connection]
<atmosx>
benzrf: beautiful things get stuck together
<benzrf>
bahar:
<benzrf>
*bah
<benzrf>
haskell now thats beautiful
<atmosx>
benzrf: it's chemistry, like when Na+ finds an -OH molecule lying around
<benzrf>
ruby is pleasant iunno if its beautiful
havenwood has quit [Ping timeout: 240 seconds]
<atmosx>
I thin it is
<benzrf>
if you ask me ruby fits linux better;
<atmosx>
with my deep and life-long experience in programming, I can say it is.
* atmosx
knows half a language
<benzrf>
many ways to do the same thing, a bit chaotic, some inconsistencies, but still very nice
magoo has joined #ruby
<atmosx>
benzrf: fits everything except windows imho. I'm equally comfortable with linux and a mac. I just prefer OSX as a DE
<benzrf>
fair nuff
Andrevan has joined #ruby
<benzrf>
i dislike how much of the OS in mac is not just a thin wrapper around a cli thing
falood has joined #ruby
<benzrf>
i.e. 'user accounts' seems to be a whole thick layer over actual unix users
<benzrf>
vs in ubuntu or somethin where adduser will actually make a new option in the DM
meatherly has joined #ruby
jailbot has quit [Remote host closed the connection]
shime has quit [Ping timeout: 248 seconds]
aryaching has quit [Ping timeout: 264 seconds]
jailbot has joined #ruby
<shevy>
benzrf the thing is you can ignore the ugly parts in ruby and just use the pretty parts
b00stfr3ak has quit [Read error: Operation timed out]
<shevy>
there is indeed a lot of cruft
<shevy>
FileUtils. vs Dir. vs File (and we had FileTest too in the past or?)
<benzrf>
a linux thing again ;)
mojjojo_ has joined #ruby
dirtgrub has quit []
Briareos1 has joined #ruby
<shevy>
it's the unix origin
siwica has quit [Ping timeout: 252 seconds]
Guest51955 has quit [Ping timeout: 272 seconds]
<shevy>
because they were incompetent with GUIs, they had to work on the commandline
<benzrf>
although iunno how unixy ruby is
<benzrf>
what with its heaps of convenience methods
<shevy>
well it really was inspired a lot by perl
<shevy>
just see the $ variables it stole
<benzrf>
yea
aryaching has joined #ruby
<shevy>
I hope ruby 3.0 will be cleaned up radically
byprdct has joined #ruby
<shevy>
matz never thought of a gem-like tool as part of default ruby :(
lfox has quit [Quit: ZZZzzz…]
mojjojo has quit [Ping timeout: 264 seconds]
mojjojo_ is now known as mojjojo
meatherly has quit [Ping timeout: 265 seconds]
<Hanmac>
shevy tell us the truth ... you want rwx part of ruby3.0 ;P
siwica has joined #ruby
<benzrf>
whats rwx
<benzrf>
o-O
<Hanmac>
benzrf: new binding for wxWidgets
<Hanmac>
its self written and does not use SWIG shit
Fractional has joined #ruby
<Fractional>
Is there a way to create a hash that holds it values inside a function and keeps the value after the call?
<Fractional>
Like a constant within the function that is saved in memory, if you understand.
simoz14 has joined #ruby
Sc0rp10n has quit [Quit: Leaving]
<shevy>
Hanmac nah, the sooner the better. but admittedly, I won't have much time in the next ~5 weeks :(
<shevy>
Fractional I did not understand the question
<shevy>
perhaps a Proc
Jdubs has joined #ruby
<shevy>
@my_proc.call(my_key)
<shevy>
@my_proc[my_key]
<Hanmac>
shevy: tomorrow morning i will work on the binding again, i can now without risk because my Disks are synced now
<Fractional>
Like, I've a hash inside a function called age. How can I make so it holds it value over multiple calls to the same function?
<Fractional>
def something age = Hash.new end something
simoz15 has joined #ruby
parduse has quit [Remote host closed the connection]
<benzrf>
Fractional: an ivar, of course!
<benzrf>
that is what they are for!
<Hanmac>
Fractional: def something @age ||= Hash.new end
<Fractional>
Never heard of them :P
simoz13 has quit [Ping timeout: 245 seconds]
<benzrf>
aka @vars
parduse has joined #ruby
<Fractional>
Oh, alright :D
parduse has quit [Changing host]
parduse has joined #ruby
<Fractional>
instance var?
standyro1 has quit [Ping timeout: 272 seconds]
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
<atmosx>
Fractional: yes
simoz14 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Read error: Operation timed out]
bradhe has joined #ruby
<atmosx>
Hanmac's code creates a new @age var if the @age is not defined yet. (Hanmac is that so? I never used this convention, saw it once online iirc)
zcreative has quit [Quit: Computer has gone to sleep.]
aryaching has quit [Read error: Connection reset by peer]
habanany has joined #ruby
asmodlol has quit [Remote host closed the connection]
Mars` has quit [Remote host closed the connection]
<ur-cong>
||= assigns to the variable if the value of the variable is nil, so it's once assigned no matter how many times you call/run the code.
<MrZYX>
thing is, people tell me to use File and Dir stuff instead. And over that IMO Pathname is an improvement
<shevy>
the docu even has a discalimer
<shevy>
*disclaimer
<shevy>
"This method has existed since 1.8.1."
davy_ has quit [Remote host closed the connection]
<shevy>
I think File and Dir are 1000x cooler than Pathname
mojjojo has quit [Quit: mojjojo]
<shevy>
just look at your above solution MrZYX!
nifty has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
<shevy>
did you use Pathname or did you suggest File
<shevy>
see?! :D
mikemar10 has joined #ruby
<shevy>
your BRAIN can not deal with Pathname!
mavcunha has joined #ruby
<shevy>
it's like no neuronal cells have been reserved to refer to it
robustus has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<MrZYX>
File.dirname(File.expand_path(File.join('~/whatever', File.join('something', 'else'))) vs Pathname.new("~/whatever").join('something", "else").expand_path.dirname # yeah so bad m(
<benzrf>
:(
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<YOURBESTFRIEND>
how can you make something like Array#pop return the object it is popping from instead of the thing it popped?
<benzrf>
that looks almost like python's path manip tools D:
<YOURBESTFRIEND>
(to chain more stuff together)
kure has quit [Read error: Connection reset by peer]
<benzrf>
YOURBESTFRIEND: get andand and use me
<benzrf>
YOURBESTFRIEND: or use tp
<benzrf>
*tap
<benzrf>
but me is better
mando has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<NemesisD>
would that work in MRI if foo does IO? i thought arrays in MRI were not threadsafe
havenwood has quit [Ping timeout: 248 seconds]
parduse has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 272 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has quit []
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur-cong has quit [Ping timeout: 248 seconds]
nycjv321 has joined #ruby
<nycjv321>
Hi I am making a program to simulate user load and thought that using the natural logarithm of the number users multiple by some factor to sleep would be an adequate way of doing this. E.g. for i to 10 years sleep log(i) and create i years next. Does that sound right?
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
coca_rails has joined #ruby
<nycjv321>
10 users*
meatherly has joined #ruby
brennanMKE has joined #ruby
angusigu1ss has joined #ruby
pyreal has quit [Quit: pyreal]
<centrx>
10 years sounds like a long time...
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<nycjv321>
sorry users* replace years with users
<centrx>
nycjv321, Sure, that would work
yfeldblu_ has quit [Remote host closed the connection]
decoponio has joined #ruby
<centrx>
nycjv321, I would suggest it might not be necessary to simulate "natural" user activity. Usually you can get by with x simultaneous users, all active at the same time
kells has joined #ruby
snath has joined #ruby
fgo has quit [Remote host closed the connection]
rushed has joined #ruby
<nycjv321>
centrx: why not just curious?
magoo has quit [Ping timeout: 272 seconds]
MacGruberMan has joined #ruby
gja has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
jonah has quit [Remote host closed the connection]
<centrx>
nycjv321, Might just run the test faster
<centrx>
nycjv321, If you really have a high user load, then you would expect x simultaneous users to be doing anything that you are delaying with the sleep
kure has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
kure has joined #ruby
<centrx>
nycjv321, Sleeping may give you the false impression that you can handle more users than you can, because none of the users are "starting up" at the same time, it is always one user at a time starting up (perhaps)
mansi has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
ckinni has joined #ruby
VTLob has quit [Quit: VTLob]
MacGruber has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<nycjv321>
centrx: ah good point.
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kewjo has quit [Quit: WeeChat 0.3.7]
niklasb has joined #ruby
troyready has quit [Ping timeout: 272 seconds]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
banjara has joined #ruby
amclain has joined #ruby
asmodlol has quit [Read error: Operation timed out]
ckinni_ has joined #ruby
ckinni_ has quit [Max SendQ exceeded]
ckinni_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
ckinni has quit [Ping timeout: 245 seconds]
roolo has quit [Quit: Leaving...]
MrSamuel has quit [Quit: MrSamuel]
sassamo has quit [Ping timeout: 248 seconds]
byprdct has joined #ruby
bradhe has joined #ruby
kure has quit [Read error: Connection reset by peer]
byprdct has quit [Client Quit]
kure has joined #ruby
phipes has quit [Remote host closed the connection]
byprdct has joined #ruby
rljohnsn has quit [Quit: Leaving.]
_reset has joined #ruby
shedd has quit [Remote host closed the connection]
_mtr has joined #ruby
banjara has quit [Quit: Leaving.]
sepp2k has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
mansi has quit [Quit: Leaving...]
bradhe has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 272 seconds]
_reset has quit [Ping timeout: 248 seconds]
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
siwica has quit [Read error: Operation timed out]
coca_rails has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
mikemar10 has quit []
Fitzsimmons has left #ruby [#ruby]
griffindy has quit [Quit: Computer has gone to sleep.]
kure has quit [Read error: Connection reset by peer]
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<nycjv321>
ok so I've made a module (or I guess a mixin) and now I've mixed it into Integer but I can't seem to mix it into Enumerable. via include MySillyModule why is that?
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
echevemaster has quit [Quit: Leaving]
speakingcode has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
sassamo has quit [Remote host closed the connection]
magoo has joined #ruby
sassamo has joined #ruby
jasonsmr has quit [Quit: Leaving]
<gr33n7007h>
nycjv321, because enumerable is a module not a class
<nycjv321>
gr33n7007h: can you mix a module in a module?
<gr33n7007h>
You can't include a module into a module no
dodosan_ has quit [Remote host closed the connection]
<gr33n7007h>
That would be defeating the object
sassamo has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
george2 has joined #ruby
browndawg has joined #ruby
wtfitsme has joined #ruby
<Lewix>
nycjv321: However, you can mix a class in a module -)
sassamo has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
bradhe has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
IceyEC has joined #ruby
braincrash has quit [Quit: bye bye]
bradhe has quit [Ping timeout: 265 seconds]
burlyscudd has quit [Quit: Leaving.]
braincrash has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
havenwood has joined #ruby
tyl has joined #ruby
rezzack has quit [Read error: Operation timed out]
charliesome has joined #ruby
dodosan has joined #ruby
Jdubs has quit [Ping timeout: 272 seconds]
wtfitsme has joined #ruby
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
simoz15 has joined #ruby
digital-ghost has quit [Remote host closed the connection]
niklasb has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
yfeldblum has joined #ruby
wtfitsme has joined #ruby
angusigu1ss has joined #ruby
jonahR has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Operation timed out]
ganesh has joined #ruby
phipes has quit [Remote host closed the connection]
ganesh is now known as Guest6648
angusigu1ss has quit [Ping timeout: 252 seconds]
phipes has joined #ruby
yedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
jonahR has left #ruby [#ruby]
yfeldblum has joined #ruby
hobodave has joined #ruby
alexfreidah has joined #ruby
iamdoo2 has joined #ruby
pen has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
cgore has joined #ruby
nikkos has quit [Remote host closed the connection]
stkowski has quit [Ping timeout: 265 seconds]
baroquebobcat has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
stkowski has joined #ruby
alexfreidah has quit [Ping timeout: 248 seconds]
nathancahill has quit [Quit: nathancahill]
w4pm has quit [Ping timeout: 264 seconds]
parduse has quit [Ping timeout: 265 seconds]
iamdoo2 has quit [Ping timeout: 260 seconds]
parduse has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
em0ral has quit [Read error: Connection reset by peer]
parduse has quit [Changing host]
parduse has joined #ruby
davy_ has quit [Remote host closed the connection]
aryaching has quit []
Hanmac has joined #ruby
tyl has joined #ruby
zz_anildigital is now known as anildigital
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
I_Want_To_Learn_ has joined #ruby
<I_Want_To_Learn_>
What does self mean>
<I_Want_To_Learn_>
What does self mean?
Hanmac1 has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby
Lewix has quit [Remote host closed the connection]
kure__ has joined #ruby
Lewix has joined #ruby
x0nic has quit [Read error: Operation timed out]
Lewix has quit [Remote host closed the connection]
clamstar has joined #ruby
<centrx>
I_Want_To_Learn_, self is the self
Lewix has joined #ruby
wallerdev has joined #ruby
<centrx>
I_Want_To_Learn_, Reference to the present class instance
vlad_starkov has quit [Remote host closed the connection]
<bnagy>
well you could, say, have a queue that gets the win. Once you get the win you just kill every thread in your worker array
<bnagy>
no need to join because trying to read the win from the Queue will block
anildigital is now known as zz_anildigital
pen has joined #ruby
DrCode has joined #ruby
mocfive has quit [Remote host closed the connection]
<hobodave>
I don't think I understand the concept or utility of a queue here
<bnagy>
like (1..100).map {|i| Thread.new { #race; win_q.push "I AM THREAD #{i} AND I AM WINAR"}}
<bnagy>
assign that array to threads, then winner = win_q.pop; threads.each {|t| t.kill}
<hobodave>
ahhh
goganchic has quit [Quit: Computer has gone to sleep.]
<hobodave>
pop blocks until there is an item?
<hobodave>
cool
<hobodave>
never used a Queue in Ruby
<bnagy>
yeah
Bridge| has quit []
DrCode has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<bnagy>
I'm more used to seeing that kind of stuff in divide-and-conquer though instead of all threads covering the same work
burlyscudd has quit [Client Quit]
kure__ has quit [Ping timeout: 272 seconds]
sski has joined #ruby
IceDragon has quit [Quit: Space~~~]
DrCode has joined #ruby
goganchic has joined #ruby
jhn has joined #ruby
zz_anildigital is now known as anildigital
gnephiak has joined #ruby
dodosan has joined #ruby
sLi- has quit [Ping timeout: 276 seconds]
ewnd9 has joined #ruby
mrsolo has joined #ruby
iamdoo2 has joined #ruby
sLi- has joined #ruby
Hiall has quit [Quit: hiall]
<reactormonk>
I have a directed graph, what's a good algorithm to find all paths? starting in between or at the beginning.
<bnagy>
this is a compsci question not a ruby question
iamdoo2 has quit [Ping timeout: 245 seconds]
<bnagy>
just google for the obvious stuff
<bnagy>
recursion is an easy way, but you might blow up your stack is the graph is big
pen has quit []
pen has joined #ruby
dodosan has quit []
Lewix has joined #ruby
zipper has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
<reactormonk>
max. 4 levels deep
abroco has joined #ruby
<reactormonk>
are there any ruby implemtations that I could go take off the shelf?
<abroco>
Hello everyone.
Shidash has quit [Ping timeout: 252 seconds]
<abroco>
I'm trying a hand at Ruby for the very first time. (I know I ought to read a book, and cover my bases, but I really just wanted to see if I could accomplish this task)
<abroco>
And, I know how we all hate the idiot noob who wants to run before walking, but if someone could help me with what I'm doing wrong, I'd appreciate it.
eval-in has quit [Remote host closed the connection]
<centrx>
reactormonk, If it is just a tree, you could use RubyTree
<abroco>
The program is trying to take a combination of characters, (a through z, 0 through 9) and turn them into a permutative "handle", search Twitter if the handle is available, and report back, continually.
<abroco>
I think I botched it somewhere along the lines though :)
<abroco>
If someone would be so kind, it seems like I'm nearly there.
<centrx>
abroco, Use Array#combination or Array#permutation :)
<abroco>
What's wrong with the String#combination method?
eval-in has quit [Remote host closed the connection]
<abroco>
Oh, if that's what you meant, then yes.
<centrx>
abroco, It looks like you have an extra end at the bottom of the combinations method, and an extra end at the bottom of the main function
<centrx>
Though with the indentation it is hard to tell
<abroco>
centrx: I'm sorry :(
<abroco>
One moment. I'll try to patch it up.
<bnagy>
begin; while ; rescue <- bad
<bnagy>
also while 0 != 1 wtf?
cj3kim has quit [Ping timeout: 265 seconds]
zipper_ has quit [Client Quit]
<bnagy>
bro do u even loop do ?
brennanMKE has quit [Remote host closed the connection]
<nycjv321>
dude I loop true
bradhe has quit [Ping timeout: 260 seconds]
<abroco>
:\
<nycjv321>
abroco: :P
nycjv321 has quit [Quit: leaving]
brennanMKE has joined #ruby
<centrx>
abroco, As you can tell, there are a few stylisting changes to make it more Rubyfied, clear, and concise :)
<centrx>
stylistic
<reactormonk>
centrx, it's a graph.
<abroco>
centrx: Yeah. I'll pick up a book once this is right. I'd imagine getting from zero to where I'm able to competently write programs of this level takes a couple of weeks.
<centrx>
reactormonk, A tree is a graph :)
<abroco>
centrx: Sorry, I can't seem to find what's wrong.
* abroco
mumbles.
<bnagy>
well the syntax error is from the stray 'while'
<centrx>
abroco, It looks like open expects a block, that's one thing
<bnagy>
abroco: remove the combination stuff, get it working with a single handle that you know to exist
<bnagy>
then add the rest back
<bnagy>
cause it's broken in like four places afaict
<bnagy>
also that combinations method on String is pretty bad style
anildigital is now known as zz_anildigital
<abroco>
Heh. I should probably learn Ruby before venturing out into the wild.
<bnagy>
like a) monkey patching core classes at all and b) the actual content of it
<bnagy>
just use the built-in one on Array
BrixSat has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
<abroco>
bnagy: You can't imagine how stupid I feel knowing nothing trying to enact this. It's a travesty really.
tyl has quit [Ping timeout: 264 seconds]
<abroco>
I'll work my way toward it, it seems simple enough.
brennanMKE has quit [Ping timeout: 272 seconds]
<centrx>
abroco, But yeah to give you a taste of how awesome Ruby is, you can rewrite this whole thing (except the error handling) as: string.chars.permutation.map { |perm| open("https://twitter.com/#{comb}") }
rushed has joined #ruby
<abroco>
bnagy: Oh, and with your permutation sequence it only caters for same-sized-character maps.
Es0teric has quit [Quit: Computer has gone to sleep.]
tyl has joined #ruby
pskosinski has joined #ruby
<abroco>
bnagy: Given a "set" of characters, "abcde", I want "a", "ab", abc", "abcd", "abcde", "b", "ba", "bac", "bacd", "bacde", "c" ... "edcba"
<centrx>
s/awesome/expressive
ryantm has quit [Read error: Operation timed out]
<abroco>
centrx: I know it's cool!
<abroco>
centrx: But I don't know what that does, or how to even apply it to my codeset.
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
<centrx>
bummer
niklasb has quit [Ping timeout: 260 seconds]
<abroco>
Thanks a lot you two. Going off to find a drawing board.
<abroco>
Would be interesting to see how you'd do it, but I suppose that's cheating.
sparrovv has joined #ruby
gja has joined #ruby
timonv has joined #ruby
cj3kim has joined #ruby
Brolen has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
<reactormonk>
centrx, a tree is a subset.
abroco has quit [Quit: Lost terminal]
<centrx>
Yes
mocfive has joined #ruby
<centrx>
The only graph library I found for Ruby is five years old
rushed has quit [Quit: rushed]
timonv has quit [Ping timeout: 252 seconds]
<centrx>
but it should be straightforward to implement a directed graph traversal
<reactormonk>
RGL?
<centrx>
Yes
sparrovv has quit [Ping timeout: 264 seconds]
jhn has quit [Ping timeout: 272 seconds]
<centrx>
"graphr", also fairly old and unmaintained
Amart41 has joined #ruby
kewjo has joined #ruby
<centrx>
reactormonk, The standard algorithm is just traversing each link from each node, and marking where you have been before
<reactormonk>
centrx, I think I don't have to mark if I just go full recursive
<bnagy>
correct
chatrjr has quit [Quit: Leaving]
<centrx>
reactormonk, If there are cycles you have to block the cycles somehow
<reactormonk>
centrx, I'm sure there are no cycles
<bnagy>
I assumed it was a DAG
<bnagy>
otherwise 'all paths' is.. not well defined
<centrx>
Okay then it is probably just one short line of ruby code :)
<reactormonk>
well, I have multiple edges per vertice :-/
<bnagy>
yeah it's really only interesting for huge graphs
Amart41 has quit [Ping timeout: 252 seconds]
<bnagy>
it should still be like paths << exits.map {|e| traverse(e)} or something
<centrx>
there you go, Ruby wins again
amclain has quit [Quit: Leaving]
<bnagy>
there's probably some flattening to do at some point
<bnagy>
there usually is
gja has quit [Quit: This computer has gone to sleep]
shadoi has joined #ruby
kells has joined #ruby
phipes has quit [Remote host closed the connection]
ahmedelg_ has joined #ruby
brennanMKE has joined #ruby
alexfreidah has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
davy_ has joined #ruby
ahmedelgabri has quit [Ping timeout: 264 seconds]
davy_ has quit [Read error: Connection reset by peer]
iamdoo2 has joined #ruby
davy_ has joined #ruby
fire has joined #ruby
justsee has joined #ruby
alexfreidah has quit [Ping timeout: 248 seconds]
v10energy has joined #ruby
goganchic has quit []
mary5030 has quit [Remote host closed the connection]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Guest6648 has quit [Quit: Konversation terminated!]
centrx has quit [Quit: Leaving]
justsee has quit [Client Quit]
iamdoo2 has quit [Ping timeout: 248 seconds]
aniM has joined #ruby
tyl_ has joined #ruby
bradhe has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 265 seconds]
magoo has quit [Quit: WeeChat 0.4.2]
Parker0 has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mengu has joined #ruby
aniM has quit [Ping timeout: 251 seconds]
Lewix has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
Liothen has quit [Quit: System of a down……]
jmccune has quit [Ping timeout: 272 seconds]
Liothen has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
alexfreidah has joined #ruby
mocfive has quit [Ping timeout: 264 seconds]
Spami__ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
daxroc1 has joined #ruby
<reactormonk>
how do I include the constant namespace of a module in a block?
bradhe has quit [Ping timeout: 260 seconds]
daxroc has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
yfeldblum has joined #ruby
<tdubya>
s2013 no idea about the doc
godd2 has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
Profe34 has joined #ruby
Profe34 has quit [Client Quit]
<reactormonk>
was it __FILE__ == __MAIN__ or something similar?
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<apeiros>
reactormonk: Module.nesting ?
<apeiros>
the other thing is $0 == __FILE__, but that's about testing whether the current file is the script being run
<godd2>
Funny I was just reading about that in teh Pickaxe Book "The constant __FILE__ and the variable $0 are often used together to run code only if it appears in the file run directly by the user."
gja has joined #ruby
Starwind has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
ahmedelgabri has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
dik_dak has quit [Quit: Leaving]
pskosinski_ has joined #ruby
brennanMKE has joined #ruby
ace_striker_ has joined #ruby
ace_striker has quit [Client Quit]
ace_striker_ has quit [Client Quit]
ahmedelg_ has quit [Ping timeout: 264 seconds]
kidoz has quit [Quit: Ухожу я от вас]
ace_striker has joined #ruby
ace_striker has quit [Client Quit]
eval-in has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
wallerdev has quit [Quit: wallerdev]
<reactormonk>
apeiros, found it
<reactormonk>
godd2, I added the line binding.pry if __FILE__ == $0
<reactormonk>
... to my test/setup.rb
<reactormonk>
useful.
<kashyap_>
Hien, just re-posting, in-case people joined later: Any hints on resolving this - http://fpaste.org/71522/
shedd has quit [Ping timeout: 260 seconds]
<kashyap_>
(Argh, meant to say Hi, damn auto completion)
Jetchisel has joined #ruby
<reactormonk>
uuuuuh
<reactormonk>
somehow the code I'm running is too slow :-(
Guest16742 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
LiquidInsect has quit [Ping timeout: 248 seconds]
LiquidInsect has joined #ruby
mojjojo has quit [Quit: mojjojo]
Alina-malina has quit [Quit: Leaving]
mojjojo has joined #ruby
yasushi has quit [Remote host closed the connection]
yfeldblum has joined #ruby
MrZYX|off is now known as MrZYX
mojjojo has quit [Client Quit]
iamdoo2 has joined #ruby
mojjojo has joined #ruby
sree has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
DouweM has joined #ruby
iamdoo2 has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
Briareos1 has joined #ruby
havv has joined #ruby
Amart41 has joined #ruby
sparrovv has joined #ruby
sree has quit []
gja has joined #ruby
phansch has quit [Ping timeout: 272 seconds]
<pontiki>
what is the content of spec.gem_dir?
ctp has joined #ruby
havv has quit [Client Quit]
popl has quit [Quit: Hoppe hoppe Reiter]
Amart41 has quit [Ping timeout: 252 seconds]
ctp_ has quit [Ping timeout: 245 seconds]
ctp has quit [Ping timeout: 245 seconds]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
fgo has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
brennanMKE has joined #ruby
mojjojo has joined #ruby
Advocation has quit [Quit: Advocation]
gja has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 248 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
sepp2k has joined #ruby
shedd has joined #ruby
Zubin has joined #ruby
gja has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
TheDick has quit [Quit: TheDick]
dangerousdave has joined #ruby
ahmedelg_ has joined #ruby
senayar has quit [Remote host closed the connection]
Zubin has left #ruby [#ruby]
shedd has quit [Ping timeout: 245 seconds]
RoryHughes has joined #ruby
phansch has joined #ruby
ahmedelgabri has quit [Ping timeout: 252 seconds]
coca_rails has quit [Remote host closed the connection]
bradhe has joined #ruby
rmdgm has joined #ruby
Lewix has joined #ruby
<rmdgm>
xcdd rocky 4
alexherbo2 has joined #ruby
mojjojo has joined #ruby
rmdgm has quit []
fusi0n has joined #ruby
cj3kim has joined #ruby
aniM_ has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Brolen has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
mojjojo has joined #ruby
ctp has quit [Client Quit]
mojjojo has quit [Client Quit]
Brolen has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
shime has joined #ruby
mojjojo has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
aniM has joined #ruby
kotk has joined #ruby
fusi0n has quit [Quit: .]
gja has quit [Quit: This computer has gone to sleep]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
Starwind has quit [Quit: Leaving]
shedd has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
Tuxist has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Tuxist has quit [Read error: Connection reset by peer]
shredding has joined #ruby
mityaz has joined #ruby
tt1187 has quit []
alexfreidah has joined #ruby
shime has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
bobdobbs has joined #ruby
Aryasam has joined #ruby
browndawg has quit [Quit: Leaving.]
shime has joined #ruby
<shredding>
I have a capistrano task that does remote work on a server that is secured via port knocking.
yfeldblum has joined #ruby
<shredding>
Therefore I want to have a parallel thread or process or I-am-not-yet-sure that does a constant knock in a loop to keep the connection alive.
alexfreidah has quit [Ping timeout: 240 seconds]
VeinMelted has joined #ruby
<bobdobbs>
I have vagrant installed via ubuntu's package manager, and ruby 1.9.3 installed via rbenv. When I try '/usr/bin/vagrant --version', I get this: http://hastebin.com/fuvetacuse.vbs
iamdoo2 has joined #ruby
<shredding>
Is that a good idea to make that in a thread? If yes, how could i stop the forever-knock thead?
mercwithamouth has quit [Ping timeout: 240 seconds]
<shredding>
bobdobbs: What does custom_require.rb say?
<bobdobbs>
what is custom_require?
<MrZYX>
shredding: out of your specific domain answer: don't stop a thread externally, check a flag in the thread whether it should quit and set that externally
<shredding>
MrZYX: How would one do that?
<shredding>
bobdobbs: I don't know but it's where the error occurs in your error message.
<shredding>
MrZYX: More specific how can i set a (boolean?) flag in a thread externally?
<MrZYX>
externally = from another thread
<bobdobbs>
shredding: found it. having a look through it now
yfeldblum has quit [Ping timeout: 252 seconds]
<MrZYX>
class MyThread < Thread; attr_accessor :quit; def run; until quit; stuff; end; end; t = MyThread.new; t.quit = true
<bobdobbs>
shredding: error comes from line 36. looks like a path issue
jonahR has joined #ruby
sven___ has joined #ruby
<shredding>
bobdobbs: Hm.
<shredding>
It works on my mac
jonahR has quit [Client Quit]
Aryasam has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Aryasam has joined #ruby
<bobdobbs>
shredding: Hm
<MrZYX>
bobdobbs: .rbenv and your system ruby (what you installed vagrant for) have distinct $GEM_HOME's/$GEM_PATH. compare gem env in both environments
LadyRainicorn has joined #ruby
sven___ is now known as kf8a
aniM has quit [Ping timeout: 264 seconds]
kf8a has quit [Client Quit]
<bobdobbs>
echo $GEM_PATH and echo $GEM_HOME from the command line return nothing
kirun has joined #ruby
<shredding>
bobdobbs: Have you asked at #vagrant?
fgo has joined #ruby
<bobdobbs>
oh, there's a vagrant channel? cool.
gja has joined #ruby
<MrZYX>
bobdobbs: `gem env`, it's a command you can run
<bobdobbs>
if I cant nail the problem in the next 20 minutes, I'm gonna go get some sleep. I'll hit up #vagrant tomorrow
fusi0n has joined #ruby
<shredding>
bobdobbs: Setting up vagrant is the easy part though, puppet is the real pain.
<bobdobbs>
oh gawd. don't tell me that
<bobdobbs>
woudja believe it, this is all for working on a wordpress site
yasushi has quit [Ping timeout: 245 seconds]
<bobdobbs>
client "I need you to do HTML to Wordpress conversion. For this, I want you to install vagrant, ruby 1.9.3, node, composer"
<bobdobbs>
me: "sure!"
Aryasam has quit [Ping timeout: 265 seconds]
<LadyRainicorn>
Why does Wordpress require those things?
<bobdobbs>
It doesn't really. But this guys knows his stuff. I get the impression that his stack speeds up deployment.
<bobdobbs>
either that, or he's just trying to be clever. And I'm going to get it all working just to prove that I'm clever.
fusi0n has quit [Client Quit]
brennanMKE has joined #ruby
<MrZYX>
bobdobbs: to be clever in ruby means to not mix and mash a ruby version manager and installing gems via your package manager ;)
<bobdobbs>
MrZYX: No choice. Vagrant isn't available as a gem.
<bobdobbs>
I know, I know, I've got a mess on my hands
<LadyRainicorn>
Ah. RVM is probably easier for what you seem to want.
brennanMKE has quit [Ping timeout: 240 seconds]
<LadyRainicorn>
Though what you want seems weird and since you can't explain why, I get the feelinf you've jusr got a customer who is throwing around buzzwords
<MrZYX>
bobdobbs: start vagrant with your system ruby, use sass with your rbenv ruby, no problem there
gja has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
alexherbo2 has joined #ruby
<bobdobbs>
LadyRainicorn: maybe. but I get the sense that he knows what he's doing. I'll certainly find out if he doesn't though.
<LadyRainicorn>
Why didn't you ask what it was for?
<bobdobbs>
MrZYX: I've ripped out my system ruby to avoid conflicts.
<bobdobbs>
oh, maybe that's the problem
shedd has joined #ruby
<bobdobbs>
LadyRainicorn: good question. I can't remember.
bradhe has joined #ruby
<bobdobbs>
maybe because he's the guy with the cash.
<bobdobbs>
actually, I might just talk with about this.
Jetchisel has quit [Ping timeout: 256 seconds]
<LadyRainicorn>
You probably should before spending s lot of time on it.
<LadyRainicorn>
It seems like an awful lot of trouble for a WP site.
<bobdobbs>
yeah
<LadyRainicorn>
Especially since everything you're trying to do seems totally unrelated.
<bobdobbs>
I might just say something like this: setting this up on my system is a lot of work and will create chaos across my working environments. If we have to use vagrant then maybe I can't work with you on this project
nouitfvf has quit []
<bobdobbs>
LadyRainicorn: now that you mention it, something else comes to mind.
<LadyRainicorn>
Or you can just admit that you have no clue why you would be using Vagrant.
<LadyRainicorn>
Becayse no sane person would know that.
<bobdobbs>
yeah.
<bobdobbs>
reading that actually made me laugh out loud
gja has joined #ruby
<bobdobbs>
I mean, now that I think about it... this is not a job for vagrant.
<bobdobbs>
any half-assed host can handle wordpress
<LadyRainicorn>
Yep. Or Ruby, or Node.
<bobdobbs>
hahahaha
<bobdobbs>
yeah
<LadyRainicorn>
None of the techologies he wants are required in any way.
<bobdobbs>
wytf do I need node for this?
aniM has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 272 seconds]
<LadyRainicorn>
You don't. at all.
<bobdobbs>
maaaaaaaaaybe there's more to it...
bradhe has quit [Ping timeout: 272 seconds]
<bobdobbs>
actually, I don't think there is
<bobdobbs>
this might be one of those situations when some guy who is really clever just uses too much clever.
<LadyRainicorn>
unclear expectations = sad coder
<bobdobbs>
I'll be happy if I manage to get the stack up.
<LadyRainicorn>
I think your definition of clever is flawed.
<LadyRainicorn>
Protip: Just set up WP and tell him you did the rest.
<bobdobbs>
well, I'm kind of thinking of myself. Sometimes I apply too much clever instead of just cutting the gordian know
Vivekananda has joined #ruby
Wolland has quit []
<LadyRainicorn>
That's the opposite of clever.
<LadyRainicorn>
Anticlever
<LadyRainicorn>
CLEAVER
<bobdobbs>
heh
Zubin has joined #ruby
* bobdobbs
passes LadyRainicorn cleaver
Zubin has quit [Client Quit]
<bobdobbs>
aw hell. I'm skyping with him tomo. I'll tell him where I've gotten. If he can't help me get it running, then... I dunno. I'll just tell him I can't risk messing with my system too much.
cj3kim has joined #ruby
aspiers has joined #ruby
<bobdobbs>
I've got other project to work on, and I have to keep things relatively hygenic.
<bobdobbs>
that means NOT mixing ruby versions
<shevy>
long live ruby 1.8.7!
fgo has quit [Remote host closed the connection]
<bobdobbs>
quote:
<bobdobbs>
This is our highly-opinionated framework for developing and deploying new WordPress websites
fixl has quit [Remote host closed the connection]
<bobdobbs>
It uses Puppet, Capistrano, Vagrant, and a number of other technologies for front-end scaffolding
poulson has joined #ruby
mojjojo has joined #ruby
RoryHughes has quit []
cj3kim has quit [Ping timeout: 272 seconds]
Jdubs has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
wtfitsme has joined #ruby
foxyfennec has joined #ruby
foxyfennec has quit [Client Quit]
LadyRainicorn has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
foxyfennec has joined #ruby
LadyRainicorn has joined #ruby
foxyfennec has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
mykeus has joined #ruby
foxyfennec has joined #ruby
falood has joined #ruby
foxyfennec has quit [Client Quit]
Butcho has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
tvw has joined #ruby
<shevy>
isn't WordPress php
SeySayux has quit [Ping timeout: 260 seconds]
shime has quit [Ping timeout: 240 seconds]
weeb1e has quit [Ping timeout: 245 seconds]
SeySayux has joined #ruby
connor_goodwolf has joined #ruby
shedd has joined #ruby
kindjal has joined #ruby
towski has quit [Read error: Connection reset by peer]
_root has joined #ruby
thomasxie has quit [Ping timeout: 260 seconds]
seoNinjaWarrior has joined #ruby
Amart41 has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
ixti has joined #ruby
_root has quit [Client Quit]
gja has joined #ruby
falood has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Amart41 has quit [Ping timeout: 260 seconds]
iamdoo2 has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
Bridge| has joined #ruby
mehlah has joined #ruby
<Bridge|>
Morning All ;)
rootshift has joined #ruby
towski has joined #ruby
ixti has quit [Quit: WeeChat 0.4.2]
Bridge| has quit []
Bridge| has joined #ruby
zz_anildigital is now known as anildigital
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Davey has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
bradhe has joined #ruby
joshu_ has quit [Ping timeout: 260 seconds]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
joshu has joined #ruby
shredding has quit [Quit: shredding]
shredding has joined #ruby
sree has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
TDES_home has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
RoryHughes has joined #ruby
vlad_starkov has joined #ruby
rtpg has joined #ruby
shedd has joined #ruby
browndawg has joined #ruby
sparrovv has quit [Remote host closed the connection]
Es0teric has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
ktosiek has joined #ruby
Alina-malina has joined #ruby
ace_striker has quit [Quit: Page closed]
acer has joined #ruby
mojjojo has quit [Quit: mojjojo]
sree has quit []
acer has quit [Client Quit]
wormwood has quit [Ping timeout: 276 seconds]
jamesaan_ has joined #ruby
jamesaan_ has quit [Max SendQ exceeded]
jamesaan_ has joined #ruby
jamesaan_ has quit [Max SendQ exceeded]
S0da has quit [Read error: Connection reset by peer]
spider-mario has quit [Ping timeout: 265 seconds]
drumusician has joined #ruby
eka has joined #ruby
jamesaan_ has joined #ruby
eka has quit [Client Quit]
jamesaanderson has quit [Ping timeout: 272 seconds]
jamesaan_ has quit [Read error: Connection reset by peer]
bayaz has joined #ruby
towski has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
<shevy>
anyone knows if it is possible to show the content of a .rtf file or a .doc file in a ruby .cgi page? or perhaps with rails?
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
bayaz has quit [Quit: Leaving]
brennanMKE has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jerius has joined #ruby
jamesaanderson has quit [Ping timeout: 272 seconds]
brennanM_ has joined #ruby
spider-mario has joined #ruby
littlebit has joined #ruby
jamesaanderson has joined #ruby
nhhagen has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
tyl has joined #ruby
sparrovv has joined #ruby
towski has joined #ruby
TDES_home has joined #ruby
shedd has joined #ruby
habanany has joined #ruby
alexfreidah has joined #ruby
angusigu1ss has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
habanany has quit [Read error: Connection reset by peer]
ckinni has joined #ruby
yfeldblum has joined #ruby
Advocation has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
danman has joined #ruby
ktun has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
habanany has joined #ruby
dangerousdave has joined #ruby
habanany has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arietis has joined #ruby
yfeldblum has quit [Ping timeout: 241 seconds]
heftig has joined #ruby
teddyp1cker has joined #ruby
iamdoo2 has quit [Ping timeout: 240 seconds]
zz_jrhorn424 has joined #ruby
wtfitsme has joined #ruby
sski has quit [Remote host closed the connection]
Davey has joined #ruby
sski has joined #ruby
Davey has quit [Client Quit]
cj3kim has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
wtfitsme_ has joined #ruby
ferr has joined #ruby
ferr_ has joined #ruby
Advocation has quit [Quit: Advocation]
bradhe has joined #ruby
wtfitsme has quit [Ping timeout: 264 seconds]
wtfitsme_ is now known as wtfitsme
sski has quit [Ping timeout: 265 seconds]
AlSquirrel has joined #ruby
nhhagen has quit []
ahmedelgabri has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
ahmedelg_ has quit [Ping timeout: 252 seconds]
phansch_ has joined #ruby
sebnozzi has joined #ruby
phansch has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Remote host closed the connection]
ganesh has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
Ziarkaen has joined #ruby
ganesh is now known as Guest37568
keen_ has joined #ruby
sumark_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
phracker has joined #ruby
rushed has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski has quit [Ping timeout: 252 seconds]
jerius has quit []
jerius has joined #ruby
jamesaanderson has quit [Ping timeout: 260 seconds]
tyl has joined #ruby
ferr has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
sumark_ has quit [Quit: a(n)nus horribilis]
Davey has joined #ruby
tongcx has joined #ruby
kotk has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 264 seconds]
v10energy has joined #ruby
griffindy has joined #ruby
coderhs has joined #ruby
tongcx has quit [Client Quit]
kevinykchan has quit [Quit: Computer has gone to sleep.]
jamesaanderson has quit [Ping timeout: 272 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
Brolen has joined #ruby
ndrei has joined #ruby
towski has joined #ruby
banister has joined #ruby
tongcx has joined #ruby
<tongcx>
hi guys, i'm learning ruby web development, had some experience with nodejs and django before. But I am still confused with some concepts. So what's the relationship between "thin", "rack" and "sinatra"?
nateberkopec has joined #ruby
aryaching has joined #ruby
Al__ has joined #ruby
tt1187 has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
RoryHughes has quit [Ping timeout: 252 seconds]
<waxjar>
thin is a web server, rack is a platform to build http applications on and sinatra is a DSL that makes working with rack move convenient
<waxjar>
*more
sparrovv has joined #ruby
<tongcx>
waxjar: so when a request coming in, thin will process it, parse it and manage the processes, then pass it to rack?
ktun has joined #ruby
RoryHughes has joined #ruby
<waxjar>
yes
rushed has quit [Quit: rushed]
jamesaanderson has quit [Ping timeout: 240 seconds]
<tongcx>
waxjar: why pass it to rack instead of sinatra?
<apeiros>
tongcx: did you use a database independence layer in e.g. django?
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<apeiros>
you know, some library which allows you to change the database your app uses without changing the code
jamesaanderson has joined #ruby
jamesaanderson has quit [Remote host closed the connection]
<tongcx>
apeiros: no, mine don't
<apeiros>
:-/
<apeiros>
too bad. rack is the same concept.
<apeiros>
it abstracts the webserver. it provides the same API no matter which webserver you use.
<waxjar>
tongcx: it provides a common interface between a "rack app" (basically an object that responds to #call) and a web server
<tongcx>
I can have several apps, right? They use the same sinatra to route the traffic?
<apeiros>
i.e., middleware can "refuse" to pass on to app and return immdiately
<apeiros>
you can use a router middleware to route a request to one of many apps yes.
<apeiros>
sorry, got to go. cya and have fun coding ruby ;-)
<tongcx>
apeiros: thanks!!!
RoryHughes has quit []
Alina-malina has quit [Ping timeout: 264 seconds]
RoryHughes has joined #ruby
littlebit has quit [Quit: littlebit]
shedd has quit [Ping timeout: 272 seconds]
TheDick has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
blo has left #ruby ["Leaving"]
fuhgeddaboudit has joined #ruby
Brolen has quit [Remote host closed the connection]
estebistec has joined #ruby
iamdoo2 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
maoko has joined #ruby
cj3kim has joined #ruby
Al__ has quit [Quit: Al__]
bradhe has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
eka has joined #ruby
tongcx has left #ruby [#ruby]
tongcx has joined #ruby
Al__ has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
iamdoo2 has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
cj3kim has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
weeb1e has joined #ruby
einarj has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
kevinykchan has joined #ruby
gregf has joined #ruby
mengu has quit []
kevinykchan has quit [Client Quit]
kevinykchan has joined #ruby
monkegjinni has quit []
danman has quit [Quit: danman]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
kate_r has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
danman has joined #ruby
wtfitsme has quit [Ping timeout: 272 seconds]
sassamo_ has joined #ruby
Al__ has quit [Quit: Al__]
kells has joined #ruby
kells has quit [Client Quit]
sassamo has quit [Read error: Connection reset by peer]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
linojon has joined #ruby
top4o has joined #ruby
browndawg has joined #ruby
estebistec has quit [Remote host closed the connection]
wallerdev has joined #ruby
sparrovv has quit [Remote host closed the connection]
byprdct has joined #ruby
shedd has joined #ruby
towski has quit [Ping timeout: 245 seconds]
shedd_ has joined #ruby
ixti has joined #ruby
shedd has quit [Read error: Connection reset by peer]
ryantm has joined #ruby
nateberkopec has quit [Quit: Leaving...]
gregoriokusowski has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tongcx>
hi guys, sinatra is a dsl, but why people call it a framework? actually, what's a framework? is it the last layer in rack?
mary5030 has joined #ruby
sparrovv has joined #ruby
wormwood has joined #ruby
<havenwood>
tongcx: framework/dsl isn't a distinction that matters particularly
<Morrolan>
Sinatra provides an environment where you, the developer, fill in some spots. Hence a framework.
pushpak has joined #ruby
<havenwood>
tongcx: You can write a pure Rack app, many folks do. Sinatra makes it more pleasant with a nice DSL. Rack is a monolithic beast of a framework.
<Morrolan>
It using a DSL just makes it look more natural than if you had to write classes for each route.
<havenwood>
Rails**
agjacome has joined #ruby
<havenwood>
tongcx: For example, Github has a handful of Rails, Sinatra and Rack apps.
<tongcx>
i c. Can I view sinatra as just one layer in rack?
<havenwood>
Not in Rack, on top of Rack.
sree has joined #ruby
RoryHughes has quit []
<tongcx>
so rack pass things to sinatra, right?
ktun has quit [Read error: Connection reset by peer]
<havenwood>
tongcx: There are niceties like middlewear in Rack, and niceties like conventions for where to put stuff in Sinatra, but at the basics very simple.
<shevy>
h=$u._jisx0301("hash, please")
kevinykchan has quit [Quit: Computer has gone to sleep.]
Guest37568 has quit [Quit: Konversation terminated!]
<havenwood>
tongcx: Sinatra or Scorched aim to give just a little on top of Rack to make it sweeter to use. Rails makes many, many choices and comes with the kitchen sink.
<tongcx>
havenwood: cool, thanks
rootshift has joined #ruby
LulzonAway is now known as Lulzon
<havenwood>
tongcx: with the ten lines from almost Rack and almost Sinatra you could use Webrick (the Rack web server that ships with Ruby) to serve up your app. (Don't of course ;O)
<waxjar>
there is a talk that explains all the weirdness in almost-sinatra. its pretty nice
<havenwood>
tongcx: Real Sinatra is only 1,000 lines of code.
<tongcx>
havenwood: thanks, man, I am clear now
<havenwood>
waxjar: i'd like to see that
<havenwood>
tongcx: no prob
mary5030 has quit [Remote host closed the connection]
<idiocrash>
now I'll be dickin around with the readability and summarize gems!
havenwood has joined #ruby
ganesh has joined #ruby
closer has joined #ruby
<idiocrash>
fixed, guise. Thank you!
tyl has joined #ruby
s2013_ has quit [Ping timeout: 252 seconds]
ganesh is now known as Guest14431
speakingcode has joined #ruby
ktosiek has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 245 seconds]
rubyracer has quit [Ping timeout: 248 seconds]
<idiocrash>
btw, I've always used MacPorts for my needs. But, I've been ignorant of homebrew. What's the diff?
enebo has joined #ruby
ktosiek has joined #ruby
rcm7 has quit [Remote host closed the connection]
e^0 has quit [Quit: WeeChat 0.4.1]
rcm7 has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
angusigu1ss has quit [Ping timeout: 248 seconds]
ktosiek has quit [Read error: No route to host]
TDES_home has quit [Read error: Operation timed out]
<benzrf>
idk
<benzrf>
i just see people using it
<benzrf>
o-o
ktosiek has joined #ruby
yfeldblum has joined #ruby
s2013 has joined #ruby
shedd has joined #ruby
standyro1 has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
goganchic has quit []
assurbanipal has joined #ruby
pskosinski has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
p8952 has joined #ruby
farkerhaiku has joined #ruby
senayar has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
<farkerhaiku>
howdy. I'm trying to do the Global Game Jam and I've got a twitter component using chatterbot, but it's not working for me out of the box. kernel_require.rb:55:in `require': cannot load such file -- chatterbot (LoadError). I'm afraid I'm not sure what I need to do to get it up and running and was wondering if someone could help
<farkerhaiku>
I'm using ruby 1.9.3 via rvm (and .rvmrc)
shedd has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
<Lewix>
farkerhaiku: Did you gem install chatterbot
<farkerhaiku>
that's probably it, one sec
cashnguns has joined #ruby
Bridge| has quit [Ping timeout: 240 seconds]
<farkerhaiku>
Lewix, awesome, thanks so much
<Lewix>
farkerhaiku: anytime
cj3kim has quit [Ping timeout: 272 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
pen has quit [Remote host closed the connection]
tdubya has quit [Changing host]
tdubya has joined #ruby
popl has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
RoryHugh_ has joined #ruby
RoryHughes has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 251 seconds]
mocfive has joined #ruby
Lewix has quit [Remote host closed the connection]
meatherly has joined #ruby
rcm7 has quit [Ping timeout: 260 seconds]
tjsousa has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
jailbot has joined #ruby
iamdoo2 has joined #ruby
Lewix has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
fuhgeddaboudit has joined #ruby
rcm7 has joined #ruby
atmosx has joined #ruby
claymore has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
nisstyre has quit [Quit: Leaving]
iamdoo2 has quit [Ping timeout: 252 seconds]
thesheff17 has joined #ruby
RoryHughes has joined #ruby
mocfive has quit [Remote host closed the connection]
<shevy>
altin, depends on your system. lmysqlclient... no
<shevy>
I guess you have no libmysqlclient.so file right
<MrZYX>
and probably also miss the headers
havenwood has joined #ruby
<rmroulette>
if I'm trying to handle integers when converting stuff to_sym, is it better to wrap it in a rescue block or just run to_s on everything before I convert it?
<MrZYX>
so let's cite the message: "Could not create Makefile due to some reason, probably lack ofnecessary libraries and/or headers."
griffindy has joined #ruby
mmcclimon has joined #ruby
<shevy>
benzrf, I think I found a solution with vim
<shevy>
benzrf I will simply use only the bare minimum of vim
<centrx>
rmroulette, What is wrong with to_sym ?
<MrZYX>
rmroulette: why do you want to to_sym integers?
<rmroulette>
centrx: it fails on integers
<rmroulette>
MrZYX: does it matter?
<centrx>
What exactly are you trying to do
<benzrf>
ew
<MrZYX>
rmroulette: kinda
angusigu1ss has quit [Ping timeout: 272 seconds]
<rmroulette>
make a hash with unique elements from an array as keys and the times they repeat as values
<rmroulette>
number of times*
<centrx>
Integers can be keys
<MrZYX>
anything can be a key
<shevy>
your mom can be a key
<pontiki>
...
<MrZYX>
exactly
<shevy>
pontiki wat! :(
<rmroulette>
I am aware, I just thought that it was best practice to use symbols everywhere possible
<pontiki>
she can't, shevy
<apeiros>
rmroulette: I'd ask myself why you happen to even have once integers once strings
<pontiki>
only objects within the ruby system
heidi has joined #ruby
<apeiros>
rmroulette: sounds like you are trying to solve the symptom, not the cause
<shevy>
pontiki I watched the original Tron movie!!!
<MrZYX>
rmroulette: no, it's best pratice to use symbols when you need identifiers
<MrZYX>
identifiers for you, not so much for ruby that is
<shevy>
jeff bridges was turned into a computer object with laser!
<pontiki>
rmroulette: when you are explicity constructing a hash, it is a best practice. but when you're constructing a hash from data, it's not
maletor has joined #ruby
<Hanmac1>
shevy the orginal Tron movie was fun ... i liked the "Bit" thing ;P
<rmroulette>
alright, cool. thanks for fixing my problem by fixing me :)
Hanmac1 is now known as Hanmac
<MrZYX>
rmroulette: I guess you understand now why it matters ;)
<apeiros>
fixing a roulette would be cheating
<pontiki>
better to acquire knowledge and skill than patching a single problem
<shevy>
Hanmac yea
heidi has quit [Client Quit]
xcv_ has joined #ruby
benatkin has quit [Read error: Operation timed out]
<pontiki>
this is the reasoning people use for video game violence making people physically violent
waxjar has quit [Read error: Operation timed out]
angusigu1ss has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
waxjar has joined #ruby
<apeiros>
pontiki: you mean making up random shit?
Jetchisel has joined #ruby
end_guy has joined #ruby
<pontiki>
no, but yes
<apeiros>
well, not random. shit which fits ones beliefsystem
<apeiros>
system of belief?
<pontiki>
that was the "but yes" part :>
xcv has quit [Ping timeout: 252 seconds]
<apeiros>
I love how I got better at aiming my military rifle by playing FPS shooters with my mouse
mercwithamouth has quit [Ping timeout: 265 seconds]
benatkin has joined #ruby
<apeiros>
it also helped a lot with learning how to breathe in order to get a perfect hit
benzrf has left #ruby [#ruby]
Spami has quit [Quit: This computer has gone to sleep]
sivoais has quit [Read error: Operation timed out]
bitri has joined #ruby
bitri has quit [Client Quit]
sivoais has joined #ruby
<altin>
shevy MrZYX I'm trying to install OpenProject
<rmroulette>
if someone offered me like 7 fig a year to work for them you could probably buy a lot of vaccines and malaria nets with that :\
burlyscudd has joined #ruby
<Morrolan>
Seven fig?
yarou has quit [Quit: Leaving]
<Morrolan>
Urbandictionary offers plenty of definitions, none of which make sense. :P
meatherly has quit [Ping timeout: 272 seconds]
<rmroulette>
a million +
<Morrolan>
Ah.
<rmroulette>
which to be clear, would never happen for multiple reasons, but theoretically
Amart41 has joined #ruby
jerius has quit [Client Quit]
<Hanmac>
rmroulette: with enough money i would try to water the sahara and to "terraform" it into a green area ;P
maletor has quit [Quit: Computer has gone to sleep.]
<MrZYX>
which probably would result into a negative effect on the environment in one way or another...
bobdobbs has quit [Read error: Connection reset by peer]
<rmroulette>
Hanmac: the only way to put the mass surveilance genie back in the bottle in my opinion is to lower the bar on counter survielance tools while highering the bar on techinical literacy/ability
<apeiros>
MrZYX: more likely than "in one way or another" is "in multiple ways"
pen has joined #ruby
<rmroulette>
Hanmac: I guess that really had nothing to do with what your saying
havenwood has quit [Remote host closed the connection]
<MrZYX>
production isn't the problem anyway
<atmosx>
rmroulette: no, I disagree, you have to make it illegal.
Dreamer3 has quit [Ping timeout: 272 seconds]
<MrZYX>
in the mid-term at least
<rmroulette>
making it illegal doesn't work if your taking about the people who decide/enforce what is/in not legal
<atmosx>
rmroulette: that's who things work in a democracy, you have to make unwarranted surveillance illegal, which basically means that if something goes *wrong* Keith Alexander (or whoever is in charge) pays, either by being dismissed or more. If everyone pushes hard enough it will pass, the congressmen don't give a sh*t about anything more than votes.
Amart41 has quit [Ping timeout: 245 seconds]
<atmosx>
rmroulette: fighting this on technical grounds can buy you time, but it's a dead-end.
klaut has quit [Remote host closed the connection]
<atmosx>
rmroulette: the fact that we're having this discussion and congress is also starting to having this discussion, the NYTimes are posting one article after another saying straight out that suveillance without any warrants must end, is a huge step towards the right (privacy-aware) direction considering how these thing operate.
<shevy>
Hanmac the easiest way for terraforming is to make use of plants and trees against desertification
<atmosx>
btw anyone saw that new amazon tv series called "beta" ...
<shevy>
(on planet earth)
<shevy>
not me, I rarely watch TV
<rmroulette>
atmosx: I have the reverse opinion. I think that outlawing it is only buying you time, whereas fighting it with tech and making it as ineffective as possible is the way to go. Why trust them not to use it behind closed doors when you they aren't trustworthy to begin with?
<atmosx>
shevy: I dont, I watch everything on the laptop
<atmosx>
lol
<shevy>
atmosx how do you have time watching TV when you have upcoming exams anyway ;)
<Hanmac>
shevy thats what i meant ... plant many of them and water them until they are can supliy themself
<rmroulette>
atmosx: I'll read that in a sec
<shevy>
aaah I see
<shevy>
Hanmac ah ok I thought you would just ship over a huge ice block and put it into the desert
shedd has joined #ruby
<atmosx>
shevy: I don't study anymore, I gave up.. just wanna go home. I'll have the exam on Thursday but I don't care for hte result.
jtdowney has joined #ruby
<Hanmac>
shevy thats another idea ... but without plats it would not work that way ;P
<Hanmac>
plants
jasonwebster has joined #ruby
<shevy>
atmosx hehehe
xlogic has quit [Remote host closed the connection]
<shevy>
atmosx sounds as if you are fatigued!
rljohnsn has joined #ruby
<atmosx>
rmroulette: because the key is to make them accountable.Once you get that, then proving that they are over-stepping your privacy is enough to toast them. Otherwise, you are just using technology.. But they are better with technology becuase they have access to the raw data (cables) and can get OpenSSL master keys and so forth.
mikesplain has joined #ruby
angusigu1ss has joined #ruby
teddyp1cker has quit []
<atmosx>
rmroulette: how exactly are you going to fight with that. Even if you have the skills (and will) to accept a life on the (digital) run and using a very specific policy to avoid online tracking and cross-checking, most people won't be able to do that. Then you'll be a minority and then an even easier target (like TOR users)
<atmosx>
shevy: yeah, I'm doing here
<rmroulette>
atmosx: Its not about being on the run or breaking the law, its about building secure alternatives that are good enough to be a real option to people who don't care about this sort of thing
<atmosx>
shevy: ree s/doing/diying
<rmroulette>
basically shifting the majority to a higher standard of evasion
<atmosx>
dying idem
<shevy>
atmosx but it's the last exam!
brennanMKE has quit [Remote host closed the connection]
<shevy>
afterwards there is no more exam!
<atmosx>
rmroulette: you mean teach everyone how to use technologies like tor?
<atmosx>
shevy: yeah but I can do it later
<shevy>
ah I see
<rmroulette>
atmosx: no, like make tor either built in or trivially easy to use
<atmosx>
shevy: I've lost 10 days here, struggling all alone... blah wasn't worth it
<atmosx>
shevy: it's a 2nd seemester exam
shedd has quit [Ping timeout: 272 seconds]
<atmosx>
rmroulette: and what that will buy you, when you login to facebook?
S0da has joined #ruby
nucc has joined #ruby
YourTamedFriend is now known as bro
franja has joined #ruby
<Hanmac>
atmosx: the best way against the global suveillance would be something i have seen in a cartoon ... (they called it "electric haircut") ... the best way against the hoarding of data would be a Virus/Trojaner that infect all secret agencies worldwide and publish all hidden data at the exact same time into the public ;P
<atmosx>
rmroulette: if the *enemy* is the NSA or any agency of the same statue, what exactly do you gain by using tor to tweet, facebook, write SO psts... and generally interact with others online?
* Hanmac
is hearing currently: "Let it Go!" for some reason it fits ;P
<atmosx>
Hanmac: hahaha the *public* can not handle such vast amounts of raw data. And why would you care anyway? :-)
camilasan has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
<rmroulette>
atmosx: not just tor I mean. Either make secure alternatives to social networks or pressure existing ones into securing themselves by design
<atmosx>
rmroulette: they can't.
<rmroulette>
atmosx: elaborate
<Hanmac>
atmosx: maybe i would like to see that chaos ;P ... i still have un-made popcorn available for that case ;P
havenwood has joined #ruby
<atmosx>
rmroulette: Say you're a US company and NSA subpoena you, then for National Security reasons needs access to all your raw data: You have 2 choices either you close the business (by stating that you have the NSA at yur door) or you stay silent and cooperate (having some additional gain from this... if any).
w4pm has joined #ruby
jonah has joined #ruby
<sweeper>
I wonder if #ruby-lang gets this political. seems to happen al the time here
<rmroulette>
then don't open your company in the US. I hate to say that as a US citizen, but its true.
vlad_starkov has quit [Read error: Connection reset by peer]
<atmosx>
rmroulette: Now let's say that you are a company overseas and you need USA clients. You setup a server in the USA, the NSA wants access so either goes to Verisign and gets a copy of the master key and sees everything plain text or goes to the physical location and reads everything in raw format...
Zubin has joined #ruby
<sweeper>
can't have much fun with us-based companies anywhays
Zubin has quit [Client Quit]
axl_ has joined #ruby
bradhe has joined #ruby
<sweeper>
no gambling, pyramid scams, etc
<atmosx>
They have COPIES of the MASTER SSL KEYS
baroquebobcat has joined #ruby
<atmosx>
they are diverting DNS server-requests on THE FLY
<burlyscudd>
hell Faebook didn't force TLS until after Firesheep
<burlyscudd>
sweeper: what does "do their own security" really mean?
tjsousa has quit [Ping timeout: 272 seconds]
<burlyscudd>
AV?
<burlyscudd>
vuln scanning?
<atmosx>
sweeper: Your own security has little to do with everything really.
<burlyscudd>
keeping on top of every CVE that comes out in the consumer stack?
jackneill has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
<sweeper>
burlyscudd: no, basic stuff like "here are my trusted keys, these are the ones I trust because X"
<burlyscudd>
using 1Password or KeepPass??
<burlyscudd>
sweeper: most keys that the average person uses are generated automatically by the browser
<burlyscudd>
do you mean like consumers or like people who hang out in Freenode when you say "people"? :-)
yfeldblum has quit [Read error: Connection reset by peer]
<atmosx>
sweeper: If Facebook and Google is forced to give backdoor access to the NSA (which they do, I think it's clear by now)... Your own security awareness can do nothing about it.
<burlyscudd>
b/c I agree that like hackers and shit should be on top of where their ssh keys go and whatnot
yfeldblum has joined #ruby
<burlyscudd>
there's no backdoor
<burlyscudd>
it's getting the keys
<burlyscudd>
i promise you
<burlyscudd>
they don't need a backdoor
<burlyscudd>
they have the fucking traffic
<burlyscudd>
in their mega datacenters
<sweeper>
burlyscudd: everyone should, just like they keep track of their own house keys
<burlyscudd>
they just get a FISA finding pre-warrant and get google
<sweeper>
this isn't 1960 anymore
<burlyscudd>
to hand over the cert for that time frame
meatherly has joined #ruby
<burlyscudd>
sweeper: every service on the web, from the important (banks, investments, medical shit) to the most rinky-dink mom-n-pop ecomm store for buying fishing lures or whatever the fuck requires you to have a password
<burlyscudd>
to make an account
danman has joined #ruby
<burlyscudd>
it's human nature that you use the same few passwords
<Hanmac>
the only way to defeat the NSA is to feed them more than they could swallow ;P
blackmesa has quit [Ping timeout: 264 seconds]
<burlyscudd>
sure people should use password safes
<burlyscudd>
randomly generated 25-char plus etc
gus has joined #ruby
<burlyscudd>
and encrypt that key file and back it up multiply
<atmosx>
I have everything if my 1Password keychain, find the key and you have my *life*
<burlyscudd>
people are getting more educated about passwords
<burlyscudd>
atmosx: yup
wiku5_ has quit [Quit: WeeChat 0.3.8]
<sweeper>
yea. and they're a freaking decade behind
wiku5_ has joined #ruby
<atmosx>
burlyscudd: it's a double edged knife
<sweeper>
at LEAST
<burlyscudd>
atmosx: hopefully you can tune how encrypted that file is like you can w/ KeepPass
<burlyscudd>
sweeper: idk who "they" is — we're still in the early stages of humans hanging out on computer networks en masse
<Morrolan>
Probably a good time to link to the xkcd about encryption vs wrenches. :D
wiku5_ has quit [Client Quit]
<burlyscudd>
so there are lots of fuckups
<atmosx>
burlyscudd: I trust the guys, small firm and all. Since P vs NP/Rieman Hypothesis is not solved ... we're safe I guess.
wiku5_ has joined #ruby
<sweeper>
burlyscudd: dude it's been a quarter century since people started "hanging out en masse"
<burlyscudd>
in real-world hacking, people aren't usually popped by bad encryption as often as stolen passwords or bad patching. but when encryption is bad, it is epically, epically bad news for whomever used it
blackmes1 has quit [Quit: WeeChat 0.4.2]
gasbakid has joined #ruby
<atmosx>
I like the quote by a mathematician "RSA is secure. If Gauss was not able to tackle the issue almost 300 years. We're safe"
<burlyscudd>
sweeper: yeah for whatver value of "people"
<burlyscudd>
and actually been a lot longer than that if you just want to count any ole pair of neckbeards sending each other IP packets
<sweeper>
no, I mean when it became common to have AOL/compuserve/whatever, and http was a thing
<atmosx>
Morrolan: still waiting for th elink
<sweeper>
I mean fuck
clamstar has joined #ruby
<sweeper>
anyone could tell you that using the same physical key for everything is a dumb idea
Xeago has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<burlyscudd>
sweeper: lol dude regular people don't make their keys
<burlyscudd>
locksmits do
<burlyscudd>
experts
<sweeper>
yea. but regular people know it would be bad to have the same key for everything
<burlyscudd>
no one's like "hey I see you have a door here, so please fashion a key — make it a good one, because this hotel you're staying in tonight is in a shitty neighborhood"
sebnozzi has quit [Quit: Ex-Chat]
<burlyscudd>
but you hvae that basic situation when someone's like "yo — give me some personal info that I'll store w/ my nifty, hack-filled PHP web app that fronts my ecommerce lingerie shop"
<sweeper>
yea but who says "here's my house key, make my hotel room lock work with it"?
mmcclimon has quit [Quit: mmcclimon]
<sweeper>
"take my house key and save it back there for 'later
Dreamer3 has joined #ruby
<burlyscudd>
that's my entire point tho really — the lock and key model is architected from the beginning in a more useful way than "think of a password"
<burlyscudd>
i agree people should use password safes
<burlyscudd>
that's what I do
mercwithamouth has quit [Ping timeout: 272 seconds]
ping-pong has quit [Ping timeout: 272 seconds]
<sweeper>
yea but nobody would be dumb enough to give some sketchy hotel their house key
jailbot has quit []
<sweeper>
well
<sweeper>
I say that
<sweeper>
then...people :P
<rmroulette>
watching that moxie ssl talk
<rmroulette>
lol @ comodo
<burlyscudd>
just watch out tho that if your box gets popped, the pw safe isn't too easy to crack into… :-)
<sweeper>
the thermite should do the trick :3
<sweeper>
two factor auth is the bomb tho
farkerhaiku has joined #ruby
<sweeper>
too bad a central service that could provide two factor auth to web services would have the same problem: single point of failure
Martxel has quit [Quit: WeeChat 0.4.1]
<sweeper>
might be a good way to get a lot of government funding tho :D
<farkerhaiku>
i made an html5 rorschach image creator and can spit out the binary via a browser, but i just realized i can't capture that output in my ruby twitter bot. is there something i could use that would essentially spin up a browser to get the html5 rendered content? capybara/webkit? cucumber?
sparrovv has quit [Remote host closed the connection]
bradhe has joined #ruby
centrx has quit [Quit: Leaving]
s2013 has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
<shevy>
I will go blind Hanmac
<shevy>
so this is what you rather wanna do instead of working on rxw :(
bradhe has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac>
shevy i am currently watching TV and i was in cinema today, i will work again tomorrow
pskosinski has quit [Remote host closed the connection]
Brolen has quit [Remote host closed the connection]
octoberry has quit [Ping timeout: 272 seconds]
<shevy>
hehe
<shevy>
what did you watch in cinema?
brennanMKE has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<Hanmac>
shevy i watched "frozen" with my best friend, and then i got the OrginalSoundTrack of it ;P
<shevy>
never heard that
<shevy>
omg
<shevy>
a cartoon!
<Hanmac>
no its a animation (*big difference*)
TheDick has quit [Quit: TheDick]
phansch_ has quit [Read error: Operation timed out]
sassamo has quit [Remote host closed the connection]
blackmesa has joined #ruby
sassamo has joined #ruby
f0ster has joined #ruby
kenneth has quit [Quit: kenneth]
x77686d has quit [Ping timeout: 248 seconds]
<atmosx>
Hanmac: how many hours per day you write code?
Brolen has joined #ruby
enebo has joined #ruby
x77686d has joined #ruby
meatherly has joined #ruby
sassamo has quit [Ping timeout: 248 seconds]
<shevy>
atmosx I combine it with different activities whenever possible
alexfreidah has joined #ruby
<Hanmac>
atmosx: currently i am jobless, (and last days my raid was rebuilding) but when i work on rwx, i do from raise from the bed till i fall back ;P (~8AM till ~2AM ;P )
<shevy>
one area is where the computer is, the other area is where the books are
<atmosx>
shevy: me too
<atmosx>
Hanmac: what is rwx?
<shevy>
for some reason I am much better learning from books, the things I read in a book I can remember for a much longer time
zleslie has left #ruby [#ruby]
<atmosx>
shevy: you buy programming books?
SirFunk_ has joined #ruby
<Hanmac>
atmosx: did you know wxRuby?
standyro1 has joined #ruby
<atmosx>
Hanmac: hmmm it's bindings for GUI programming in ruby?
<bro>
apeiros: if she wasn't a female, she wouldn't even have reached $10,000
<apeiros>
atmosx: so you're all "I'm not the target group, therefore I think it's stupid"?
<apeiros>
bro: slippery slope
<bro>
well I don't think her idea is stupid
<atmosx>
apeiros: No, I'm not the target for "design patterns" book either.
<bro>
I just think the pledged amount is stupid
phansch_ has joined #ruby
BrindleFly_ has joined #ruby
<apeiros>
well, she asked for 10k - hardly her fault she gets more
BrindleFly has quit [Ping timeout: 252 seconds]
BrindleFly_ is now known as BrindleFly
<apeiros>
that's like that idiotic argument somebody made to justify him insulting somebody using a female nick in here - "But he/she just uses a female nick to solicit more help!"
<bro>
kickstarter should put some kind of limit
<apeiros>
bro: why? because it hurts your feelings if somebody gets $$$?
<atmosx>
apeiros: The concept of making a programming book in ruby for kids, is stupid. If a kid wants to learn programming there's nothing stopping him today, with all the raspberrys and computers and tools flying around. It's totally unenecesary. Also a kid will probably grow out of this book quickly. Not to mention that most kids that will have access to programming at an early stage will be probably have a geeky father, who can school them easily.
<bro>
apeiros: for the wrong reasons? yes
<atmosx>
apeiros: imho it's pointless
phansch_ has quit [Client Quit]
<apeiros>
bro: so you're the person who determines "the only holy right and true reasons" I guess?
<apeiros>
atmosx: but don't go around and shit on what others love
<atmosx>
apeiros: well, I probably won't. Who exactly loves it?
<apeiros>
atmosx: the author *quite likely* loves what she does. don't you think?
<shevy>
cong, gem push *.gem does not worK?
<apeiros>
atmosx: and 170k$ tell a story of people thinking the same, don't you think too?
<atmosx>
apeiros: so... I can't state my opinion because she does love it?
timonv has quit [Remote host closed the connection]
<atmosx>
apeiros: exactly why I'm commenting on this, otherwise I wouldn't even bother (huh?).
<apeiros>
atmosx: you can state your opinion. or you can be an ass about it. you chose the latter and it doesn't reflect well on you.
<cong>
shevy, that's right
<shevy>
cong hmm
<atmosx>
apeiros: okay, I see what you mean. Sorry about it, didn't want to sound rude or anything.
<apeiros>
atmosx: ok, thanks. glad to hear that.
<shevy>
cong does it state how it fails?
<shevy>
ah yes
<shevy>
my mind is a bit confused, I am reading up on stupid laws right now...
<shevy>
"Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources"
<cong>
shevy, yeah => Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<shevy>
I am unsure how to have it work without openssl, there is a channel #rubygems though
<apeiros>
atmosx: just to be clear - I wouldn't by my kids such a book. for the simple reason that IMO a parent should rather take his time to teach the kid himself. that said - it might of course all go some other way and if my kid prefers to learn on his own, I'd still buy it.
<apeiros>
*I wouldn't +buy+
<shevy>
I usually bite the bullet when I compile ruby without working openssl, then I go into ext/openssl and rebuild from there
<atmosx>
apeiros: me too.
<shevy>
apeiros what if you are a bad teacher :D
<apeiros>
but I'm one out of 7e9 people on this tiny earth :)
<cong>
okay
jonah has quit [Ping timeout: 252 seconds]
<atmosx>
apeiros: hehe me too.
<apeiros>
shevy: then the poor lad has to suck it up or go to bed without dinner! d'uh :D
<popl>
seven-e-nine?
<popl>
;)
<shevy>
DICTATORSHIP!!!
<atmosx>
apeiros: also, I will not force my kid to learn programming if he/she doesn't want to.
<atmosx>
shevy: democracy is such a pain..
<apeiros>
popl: have we reached 8e9 already?
<shevy>
atmosx k he will always say no to everything you tell your kid to do. what then
<shevy>
atmosx yeah
<shevy>
atmosx but as long as you can buy the legislation, it won't matter!
<atmosx>
shevy: I won't tell nothing then :-P Hope to hav ea better relationship if possible
<atmosx>
lol
<apeiros>
atmosx: yeah. I'll try to encourage them. but I'll support them in whatever they want to do (as long as it's within laws and acceptable danger levels)
<atmosx>
Hanmac: awsome project, in cpp? :-)
spider-mario has quit [Remote host closed the connection]
<Hanmac>
atmosx: yep, but i use C-macros for the EVIL! ;D
<shevy>
dEVIL!
<popl>
apeiros: we haven't even gotten to 80
<atmosx>
Hanmac: cool
<shevy>
it gots evil in its name
<apeiros>
popl: ?
<popl>
DUDE THE PUN IS RIGHT THERE
<popl>
:P
<apeiros>
too much wine or too late in the evening…
<popl>
apeiros: 7e9 -> seven-e-nine -> seventy nine
x77686d has quit [Ping timeout: 260 seconds]
<shevy>
"Devil descends from the Middle English devel, from Old English d?ofol, that in turn represents an early Germanic borrowing of Latin diabolus."
<shevy>
Teufel!
<apeiros>
popl: :-| ok
<shevy>
oh it was a pun
<shevy>
I just thought popl was drunk
x77686d has joined #ruby
pskosinski has joined #ruby
<popl>
shevy: I am rarely drunk.
<popl>
Which isn't to say I don't like beer.
Briareos1 has quit [Remote host closed the connection]
<popl>
Just that I'm pretending to be poor so I can save money.
<popl>
When I'm drunk I'll have more typos.
<popl>
I am very tired though.
<atmosx>
I don't like alcohool
RoryHughes has quit [Ping timeout: 248 seconds]
<atmosx>
and it's strange, but I didn't like it the first time and never really tried to push myself into it.
<atmosx>
I don't know, did you guys liked alcohool the first time you had it?
<shevy>
popl get drunk
<shevy>
atmosx hmm it depends
<popl>
I'm high on life.
<shevy>
stuff like vodka is killing my brain cells and my stomach so I refuse to drink it
<shevy>
1x 0.33 L beer every now and then (like every 3rd day) is ok sometimes depending on food used (bread + beer is ok, beer + sweet sugar is not ok)
<popl>
Besides, you're intoxicating enough…
twopoint718 has joined #ruby
<shevy>
other than that no alcohol
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
<atmosx>
popl: what does "high on life" mean exactly?
* popl
bats his eyelashes.
banisterone has joined #ruby
axl_ has quit [Quit: axl_]
<apeiros>
shevy: I just bet on my regeneration ratio being higher than alcohols kill ratio
Astralum has quit [Ping timeout: 245 seconds]
TheDick has joined #ruby
<popl>
It's an urban myth that alcohol destroys brain cells.
sethen has joined #ruby
<Morrolan>
atmosx: Oh, sorry, I thought this one was common knowledge by now. :o
pen has quit [Read error: Connection reset by peer]
andrewfree has left #ruby [#ruby]
po10 has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
<Morrolan>
;D
pen has joined #ruby
<apeiros>
popl: well, it damages the dendrites. so pedantic version: I just bet on my dendrites regeneration ratio being higher than alcohols dendrite damaging ratio
<shevy>
apeiros yeah as long as you are young and healthy :)
<apeiros>
is 53 still young?
<shevy>
hehe
<shevy>
well
havenwood has joined #ruby
<shevy>
there are some people who are rather fragile at 53 and some who are still strong like a bear
danshultz has quit [Remote host closed the connection]
<atmosx>
And there are very beautiful chinese girls there.. Not like the ones you see in Europe
TheDick has quit [Quit: TheDick]
<atmosx>
Hanmac: hahha
senayar has joined #ruby
kenneth has joined #ruby
cba has quit [Ping timeout: 246 seconds]
senayar has quit [Client Quit]
<shevy>
atmosx how did you figure out they wanted to marry you? :D
<Hanmac>
shevy: they drag him into a church or temple or something similar?
<atmosx>
shevy: I didn't :-P They were asking our translator all the time.
travisjeffery has joined #ruby
<atmosx>
shevy: they asked "If I had children"
<atmosx>
which was a translation children = married
<shevy>
wtf
<shevy>
are you sure it was not a prank? :D
Notte has joined #ruby
travisjeffery has quit [Remote host closed the connection]
<atmosx>
Hanmac: hahahaha no, but when we went this massage center, there were these tiny chinese girls... Really short you know? Their hands though were like princers or something
<shevy>
"Look this outsider's nose is really huge, what an ugly guy." Translator: "Man, I tell you, these girls love you! They wanna marry you right away!"
<apeiros>
atmosx: of course, you're a ticket to an imagined golden world
twopoint718 has quit [Quit: leaving]
travisjeffery has joined #ruby
jasonwebster has quit [Quit: Computer has gone to sleep.]
<shevy>
switzerland!!!
<shevy>
rivers of schokli!
<atmosx>
apeiros: No, it's no tthat. The problem with them is that they have our standards of beauty. So any European with dark hair (I think) will do.
vlad_starkov has joined #ruby
<shevy>
they hate blonde men???
* apeiros
really wants to strangle shevy for spelling it "schokli"
<shevy>
hehe
<atmosx>
shevy: I think blonde men are kinda *strange* to them...
<apeiros>
atmosx: yeah, that too. my insanely pale skin which I hate is beauty heaven over in much of asia
<shevy>
hah! swedish invasion will shock the chinese then
<atmosx>
At least given the fact that the Bulgarian blonde guy didn't get any attention but he was not ugly or anything
havenwood has joined #ruby
<atmosx>
I assume that dark is closer to their color.
<atmosx>
colors*
<Hanmac>
atmosx: my family makes a holyday in china next month, i am stay at home for some reasons ... (maybe next time)
ohwhoa has joined #ruby
<atmosx>
Hanmac: can't you go?
<atmosx>
Hanmac: Chinese girls are *very* beautiful.
<atmosx>
Hanmac: but I don't think you're going to get laid without getting some sort of engagement.
w4pm has joined #ruby
s2013 has joined #ruby
Lulzon is now known as LulzonAway
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac>
atmosx: first i didnt know if i have freetime, than there was the choice, with my mother and friend , or with my sister, and there was no third choice
<Hanmac>
atmosx: currently i dont have a problem with that i dont get "laid" ... you dont know how "lazy" i can be right? ;P
<shevy>
Hanmac go to china man
eka has quit [Quit: Computer has gone to sleep.]
<shevy>
Hanmac actually, where in china?
<atmosx>
there was this translator (1 of the two) who was really awesome and she asked me the third day if I liked China. I was in shock the 1st week or 5 days.. Because it was like being in Space, everything was *Chinese*, everything was totally weird, even the food. So I said "hell no!". That was it, she was *testing* me, so 5 days later when the other translator told that she liked me (and I liked her becuase she was hot) I asked her out and she refused
<atmosx>
because "I will not stay in China".
<shevy>
I loved Hong Kong but hated Shanghai
<Hanmac>
shevy directly shanghai ...
<atmosx>
shevy: I want to go to Singapore, Shangai is awesome (Pudong)
<shevy>
Beijing was funny, we saw some army guys doing some kind of tai-chi combat moves (I think it was a tai-chi form, not san-shou form...)
<shevy>
atmosx ohh I was never to Singapore
<shevy>
what is Pudong?
<atmosx>
shevy: the ritchest district of Shangai, probably thepart you saw
* Hanmac
smells that we rubyists should make a travel someday in a group across china ;P
gus is now known as [d]arwin
<atmosx>
Hanmac: I would love to go to Japan (more liberal, sex-wise) and Singapore (to get new gadgets)
havenwood has quit [Ping timeout: 260 seconds]
lfox has joined #ruby
<shevy>
atmosx, ah I see. I was mostly near the harbour area... it felt like they copied hong kong but in an ugly way like "hey, we can build a town like the UK can do too!"
<Hanmac>
atmosx: visiting japan is also on my list ... maybe i am make some kind of joptravel with my cousin
duggiefresh has quit []
<shevy>
visiting matz!
w4pm has quit [Ping timeout: 248 seconds]
<shevy>
european attack team - we attack with hugs
<Hanmac>
hm that is not on my list, but it would still be cool
<shevy>
he speaks english after all
<atmosx>
Hanmac: yeah... Matz is the last I would think of, but okay
angusigu1ss has quit [Ping timeout: 252 seconds]
<atmosx>
I'll go with shevy
<Hanmac>
atmosx: i still dream about that japan and china join forces ... combining japanise tech with china production tech ... ;P
<shevy>
\o/
<shevy>
they hate each other
<Hanmac>
hm maybe but its still a nice thought
LulzonAway is now known as Lulzon
fgo has joined #ruby
<atmosx>
shevy: maybe the fact that Japanese soldiers attacked them like 3 times in 1 century slaughter everyone etc has something to do with it :-P
<atmosx>
that said, I'm positive that you can get a lot more sex in JP than CN
camilasan has quit [Ping timeout: 265 seconds]
cba has joined #ruby
awarner_ has joined #ruby
<Hanmac>
atmosx: it seems your auto-reply is "lost" ;P
<atmosx>
Hanmac: oh
gasbakid has quit [Quit: Quitte]
<shevy>
atmosx that's the excuse they use but in reality it is economic influence today
<shevy>
japan is sad that china will crush them economically
popl has quit [Ping timeout: 264 seconds]
meatherly has joined #ruby
<atmosx>
yes but I don't care really
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
aryaching has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Lulzon is now known as LulzonAway
standyro1 has quit [Ping timeout: 252 seconds]
standyro1 has joined #ruby
meatherly has quit [Ping timeout: 272 seconds]
LulzonAway is now known as Lulzon
aspires has quit []
s2013 has quit [Read error: Connection reset by peer]
cong has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 272 seconds]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Brolen has quit [Remote host closed the connection]
[d]arwin is now known as sky_diver
Brolen has joined #ruby
Guest28853 is now known as lagweezle
tjsousa has quit [Quit: Computer has gone to sleep.]
tjsousa has joined #ruby
tylersmith has joined #ruby
Somelauw has joined #ruby
RoryHughes has joined #ruby
<Somelauw>
Not sure, but ruby seems to have many synonyms like select/findall and map/collect. Is one prefered over the other or do you just pick one depending on your mood?
angusigu1ss has joined #ruby
<apeiros>
people usually stick with personal preferences
speakingcode has quit [Ping timeout: 264 seconds]
<apeiros>
mine are: map, select, reject, inject
<Somelauw>
do you make a style guide when working in teams?
<apeiros>
I'd suggest to do that, yes
Brolen has quit [Ping timeout: 264 seconds]
<apeiros>
we didn't do at work because we happened to have the same preferences
<Somelauw>
that also explicitely mentions preferred methods
banisterone has quit [Ping timeout: 248 seconds]
tjsousa has quit [Ping timeout: 245 seconds]
<MrZYX>
I mostly use the shorter ones, but there are a few occasions where one of the aliases might make the intent clearer (don't ask me for examples though! :P)
RoryHughes has quit [Client Quit]
<Somelauw>
apeiros: are there some very common preferences for the methods?
<Somelauw>
ok, you mostly prefer the shortest one
<apeiros>
I'm hesitant to declare my preferences to be the common preference. I don't have numbers.
speakingcode has joined #ruby
<lagweezle>
inject is a fun word ... so long as it doesn't involve me and needles.
<Hanmac>
apeiros & Somelauw select and find_all are not synonyms for all
<apeiros>
you "inject" an operator into a list of elements
tylersmith has quit [Remote host closed the connection]
<apeiros>
e.g. .inject(:+) turns [1,2,3] into [1 + 2 + 3] (that's how I visualize it and understand its name at least)
<Hanmac>
Somelauw: Hash#select does return Hash, Enumerable#find_all returns Array, remind that
maletor has quit [Quit: Computer has gone to sleep.]
octoberry has joined #ruby
<apeiros>
good that 1.8 is dead. otherwise you'd had to mention that difference.
<Somelauw>
inject = reduce or fold
<apeiros>
foldl I think
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lagweezle>
Anyone here familiar w/Capistrano, bundler, and rbenv combinations?
angusigu1ss has quit [Ping timeout: 252 seconds]
<lagweezle>
Oh ... and willing to help cluebat me?
<apeiros>
yeah, reduce got added later
bjhaid has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<apeiros>
I'm willing to just bat you
<lagweezle>
:3
rootshift has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<shevy>
Somelauw the shorter ones are better. .map beats .collect
<Somelauw>
apeiros: please tell them to stop creating synonyms, i have an ocd to use one of those method names consistenly, synonyms make that harder
<shevy>
Somelauw reject and select are very similar, my brain works better with reject (because I focus on like a filter, and send through it some data, and out comes only what I need, whereas with select, my brain needs to pick what I really want first, rather than be able to just discard what I won't need)
maletor has quit [Client Quit]
Azure has quit [Quit: My MBP went to sleep.]
<apeiros>
Somelauw: I too wish they didn't have aliasitis
Beoran_ has joined #ruby
<shevy>
apeiros already created his own language ONCE
<shevy>
he may do so again!
iamdoo2 has joined #ruby
<apeiros>
for semantic reasons, ok (like aliasing == to eql? etc.) - but just to satisfy some people who might know the method under a different name from a different language? hell no!
<apeiros>
make a guide or something for them
<shevy>
lagweezle inject confuses me, I always think of syringes first
<apeiros>
shevy: I'm still working on it
<apeiros>
shevy.inject(:syringe)
<shevy>
halsbe 3.0
<apeiros>
wow, you remember the name
<apeiros>
impressive :)
<Somelauw>
shevy: select is the same as filter in scheme/haskell/python/javascript/scala, so my brain works better with that one.
<shevy>
yes but only because it was such a strange name
octoberry has quit [Ping timeout: 264 seconds]
<shevy>
it has like a guttural german sound
<lagweezle>
shevy: I've got issues with needles, when they involve thoughts of them related to my skin ... Weirdly enough, I gave injections and such to my ferrets w/o much of a problem. O.o
farkerhaiku has quit [Quit: Page closed]
<shevy>
eeks
<Somelauw>
and then they don't offer "filter" as a synonym which is the most common word in other languages
<shevy>
poor ferrets
<shevy>
lagweezle do you give yourself injections too?
havenwood has joined #ruby
sassamo has joined #ruby
<lagweezle>
Aye. One of the poor guys had insulin issues post-surgery and I had to give him insulin shots every 8 hours after blood tests.
<lagweezle>
shevy: no. don't think I could
bradhe has joined #ruby
axl_ has joined #ruby
* lagweezle
shivers at the thought.
Brolen has joined #ruby
<shevy>
hehe
iamdoo2 has quit [Ping timeout: 272 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
insulin shots are typicall subq
coffeina has joined #ruby
end_guy has quit [Remote host closed the connection]
<shevy>
Somelauw yeah? you used them in another language as well?
kewubenduben has joined #ruby
hfp is now known as hfp`away
alekst has quit [Quit: Computer has gone to sleep.]
jonah has left #ruby [#ruby]
aspires has quit []
s2013 has quit [Ping timeout: 245 seconds]
<Hanmac>
lagweezle: i have a problem with doctors and needles ... once i was ill and they took me into hospital (they thought it was meningitis), they took a bag of my blood out of me and then they said: "they cant threat me there, i need to travel to the next one" and then they put the blood bag on my lap (holding your own blood is a very freaky feeling) ... after 30min we was in the second hospital, but they said my blood was older than 2h they need n