<shevy>
in the code example, your indent levels are not consistent
<shevy>
this makes it harder for others to read it
<shevy>
look at line 2
<shevy>
it should be indented towards the right
<shevy>
then a few other things
<shevy>
player.mountListPlayer("#{a1}")
<shevy>
that should be equal to
<shevy>
player.mountListPlayer(a1)
<shevy>
right?
dukedave has quit [Ping timeout: 256 seconds]
<h00d>
=\
rfv has quit [Ping timeout: 272 seconds]
<h00d>
cok
<h00d>
ok*
ohaibbq has joined #ruby
<shevy>
also
<shevy>
you have some weird checks
<shevy>
if fragmentedFile.length < 3 || fragmentedFile.length < 5
<shevy>
are you testing the same thing essentially here?
<shevy>
"less than 3, or less than 5"
justin_pdx has quit [Quit: justin_pdx]
bMalum has joined #ruby
<shevy>
you could just check for "less than 5" right? because 3 already is less than 5, so you don't need to check for it again
dukedave has joined #ruby
<shevy>
try to make the code as simple as possible
<shevy>
also please correct the above ^^^ errors, then update your gist
<h00d>
ok
rfv has joined #ruby
quimrstorres has joined #ruby
zorak8 has joined #ruby
bMalum has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Ping timeout: 264 seconds]
A205B064 has joined #ruby
DerisiveLogic has quit [Ping timeout: 248 seconds]
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<xxneolithicxx>
consistency... crappy coders have as much of that in their code as a geriatrics bowel movements
wwwbukolaycom has quit []
DavidDudson has joined #ruby
jottr has joined #ruby
b1nd has quit [Ping timeout: 264 seconds]
<xxneolithicxx>
*not referencing that code i havent even looked at it
<xxneolithicxx>
as an example of why thats important... i spent a full week reading a single python script a fellow worker wrote to figure wtf it was doing due to poor indentation and variable usage
<xxneolithicxx>
dont be that dude :-)
hannahkoala has joined #ruby
<h00d>
if with this you mean I'm on the right track, so cool your comments. I want to learn this language.
<xxneolithicxx>
i dunno, i didnt look at the links above was just commenting on what shevy said about indenting and making stuff consistent and easy to read
<xxneolithicxx>
in general
grindmodeon has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 248 seconds]
<h00d>
ok.
dfinninger has joined #ruby
grindmodeon has joined #ruby
<shevy>
h00d did you update your code already?
lessless has quit [Ping timeout: 256 seconds]
<shevy>
xxneolithicxx yeah. it may sound trivial or tiny, but I really think when people look at code, it's important to have it be visually appealing too. It always takes me extra time to understand what is going on when things are curiously indented
<h00d>
yeah, butI believe that the indentation on github was different to the original design
d10n-work has quit [Quit: Connection closed for inactivity]
paradisaeidae has joined #ruby
iotouch has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
hmsimha has joined #ruby
moeabdol has joined #ruby
mary5030 has joined #ruby
spicerack has quit [Changing host]
spicerack has joined #ruby
<jud>
does anyone use gitflow, or have an opinion on it?
<jud>
wait.. and. not or.
<shevy>
don't think I know gitflow
mgberlin has quit [Read error: Connection reset by peer]
<jud>
my concern right away is my distaste for feature branches, but im wondering if anyone uses this model and likes it
vdamewood has joined #ruby
goggy has joined #ruby
chinmay_dd has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
soypirate has quit [Quit: Leaving]
agent_white has joined #ruby
h00d has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
longfeet has joined #ruby
mistermocha has quit [Remote host closed the connection]
justin_pdx has joined #ruby
kstuart has joined #ruby
hannahko_ has joined #ruby
hannahkoala has quit [Read error: Connection reset by peer]
user121212 has joined #ruby
dfinninger has quit [Remote host closed the connection]
kstuart_ has quit [Ping timeout: 265 seconds]
<user121212>
Hello, I'm running a crawler on a server (Ubuntu 14.04), It was running fine for the last couple of hours, But now it showing some error. http://paste.ubuntu.com/10842578/ any idea about what went wrong here?
Igorshp has joined #ruby
bMalum has joined #ruby
mgberlin has quit [Remote host closed the connection]
mwmnj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
mwmnj has joined #ruby
<shevy>
is there a way to count via cyclic arrays?
Yzguy has quit [Quit: I'm sleeping, go away.]
krisquigley has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
adamjleonard has quit [Quit: Leaving...]
<harisamin>
shevy: so u want a ring buffer basically?
mwmnj has quit [Ping timeout: 264 seconds]
quimrstorres has quit [Ping timeout: 248 seconds]
ponga has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Igorshp has quit [Remote host closed the connection]
omgdinosaurs has joined #ruby
<omgdinosaurs>
anyone here work for airbnb
<omgdinosaurs>
?
krisquigley has quit [Ping timeout: 248 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
lidenskap has quit [Remote host closed the connection]
aryaching has joined #ruby
ramfjord_ has joined #ruby
DavidDudson has joined #ruby
mistermocha has joined #ruby
grindmodeon has quit [Quit: Leaving.]
ponga has quit [Remote host closed the connection]
icebourg has quit []
<xxneolithicxx>
i do it manually kinda but i dont use the actual gitflow tool
ponga has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
<xxneolithicxx>
i guess your "distaste" may lie in the enormous number of branches left behind?
a5i has quit [Quit: Connection closed for inactivity]
<xxneolithicxx>
gitflow (tool or the feature branching style) itself is not something i would recommend for small projects though
<xxneolithicxx>
its overkill
blt has joined #ruby
<xxneolithicxx>
its intended for large numbers of people working together so you arent not stepping over each other
kyrylo has joined #ruby
<xxneolithicxx>
* are not
user121212 has quit [Quit: Page closed]
grindmodeon has joined #ruby
<xxneolithicxx>
user121212 you still there?
ponga has quit [Client Quit]
bkxd has joined #ruby
<xxneolithicxx>
anyway in case you check the logs later, check your /etc/hosts and the other /etc/hostname and basically make sure your hostname is set correctly on your ubuntu box and also check your /etc/resolv.conf for DNS resolution. either of those could cause that.
mengu has quit [Remote host closed the connection]
ponga has joined #ruby
Channel6 has joined #ruby
mistermocha has quit [Remote host closed the connection]
markholmes has joined #ruby
cool has joined #ruby
plutonic has quit [Quit: plutonic]
longfeet has quit [Quit: Leaving]
cookiebow has joined #ruby
cookiebow has quit [Client Quit]
lxsameer has joined #ruby
lxsameer has joined #ruby
cookiebow has joined #ruby
cookiebow has quit [Client Quit]
cookiebow has joined #ruby
pcp135_ has joined #ruby
cookiebow has quit [Client Quit]
nemish_ has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
x1337807x has joined #ruby
pcp135 has quit [Ping timeout: 246 seconds]
ramfjord_ has quit [Ping timeout: 252 seconds]
nemish_afk has quit [Ping timeout: 255 seconds]
vickleton has joined #ruby
Cust0sLim3n has quit [Ping timeout: 264 seconds]
avahey has quit [Quit: Connection closed for inactivity]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
oddskill_away is now known as oddskill
dparker1 has joined #ruby
ag4ve_ has quit [Ping timeout: 245 seconds]
ponga has quit [Quit: Leaving...]
lidenskap has joined #ruby
ag4ve_ has joined #ruby
ponga has joined #ruby
emocakes has joined #ruby
<dparker1>
does anyone know of a framework (or a combination of them) that'd let you do something like a cisco IOS like shell? (e.g. a interactive shell where you move about in a hierarchy of namespaces each of which have their own commands) I've not so far found anything that does that per-se, so at the moment I'm thinking it might be some combination of gli and highline. Any ideas?
mostlybadfly has joined #ruby
dopie has joined #ruby
Morkel has joined #ruby
bluOxigen has joined #ruby
charliesome has joined #ruby
ponga has quit [Remote host closed the connection]
hannahko_ has quit [Read error: Connection reset by peer]
hannahkoala has joined #ruby
iotouch has joined #ruby
ponga has joined #ruby
mary5030 has joined #ruby
hannahkoala has quit [Client Quit]
<shevy>
harisamin yeah sorta
<shevy>
would be kinda cool if you could modify the default class Array in ruby, to reposition towards [0] when it is accessed out-of-bounds
bMalum has joined #ruby
Guest64554 has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
jottr has joined #ruby
bMalum has quit [Ping timeout: 265 seconds]
terlar has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 252 seconds]
emaray2015 has joined #ruby
aryaching has quit []
emaray2015 has left #ruby [#ruby]
byprdct has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
chinmay_dd has quit [Ping timeout: 248 seconds]
moeabdol has joined #ruby
riotjones has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 248 seconds]
Senjai has quit [Ping timeout: 264 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
fedexo has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 265 seconds]
cats has joined #ruby
ponga has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
turtil has joined #ruby
quimrstorres has quit [Ping timeout: 246 seconds]
sagittarian has joined #ruby
n008f4g_ has joined #ruby
<sagittarian>
if I want to replace occurences of one string with another (literal string), is String#sub/String#gsub the best way to do that?
<Diabolik>
yes
jottr has quit [Ping timeout: 256 seconds]
<sagittarian>
okay thanks
markholmes has joined #ruby
ValicekB has joined #ruby
hannahkoala has joined #ruby
bradleyprice has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 252 seconds]
user121212 has joined #ruby
haxrbyte_ has quit [Ping timeout: 245 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
<user121212>
@xxneolithicxx thanks, the site I crawl was down for few minutes, that's why its failed.
aswen has joined #ruby
<user121212>
I want to write an exception for a crawler, If the url is unavailable, this have to wait until it's site is up, any idea about how to do it?
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
naztharune_ has quit [Quit: naztharune_]
OrbitalKitten has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
hs367 has joined #ruby
iotouch has joined #ruby
tlarevo_ has joined #ruby
plashchynski has quit [Quit: plashchynski]
tlarevo has quit [Ping timeout: 272 seconds]
OrbitalKitten has quit [Client Quit]
jgorak__ has left #ruby ["Leaving"]
RegulationD has joined #ruby
plashchynski has joined #ruby
dyce has quit [Ping timeout: 256 seconds]
anaeem1_ has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
aswen has joined #ruby
freerobby has joined #ruby
afrianska has quit [Remote host closed the connection]
MXfive has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
crdpink has quit [Excess Flood]
The_Phoenix has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
plashchynski has quit [Quit: plashchynski]
Narzew has joined #ruby
thenickless has joined #ruby
thenickless has quit [Read error: Connection reset by peer]
thenickless has joined #ruby
pika_pika has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
anaeem1_ has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
plashchynski has joined #ruby
plashchynski has quit [Client Quit]
plutonic has quit [Quit: plutonic]
duncannz has quit [Remote host closed the connection]
plashchynski has joined #ruby
quimrstorres has quit [Remote host closed the connection]
anaeem1 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enebo has joined #ruby
quimrstorres has joined #ruby
kalz has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
tlarevo_ has quit [Remote host closed the connection]
tlarevo has joined #ruby
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has quit [Ping timeout: 244 seconds]
eshiffob has joined #ruby
haxrbyte has joined #ruby
Hounddog has quit [Remote host closed the connection]
workmad3 has joined #ruby
cefkamcau has quit [Ping timeout: 264 seconds]
iotouch has joined #ruby
nhhagen has quit []
jimms has joined #ruby
phutchins has joined #ruby
thenickless is now known as naztharune
ramfjord has quit [Ping timeout: 272 seconds]
yfeldbl__ has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
krisquigley has joined #ruby
revoohc has joined #ruby
kalz has joined #ruby
<dparker1>
does anyone know of a framework (or a combination of them) that'd let you do something like a cisco IOS like shell? (e.g. a interactive shell where you move about in a hierarchy of namespaces each of which have their own commands) I've not so far found anything that does that per-se, so at the moment I'm thinking it might be some combination of gli and highline. Any ideas?
krisquigley has quit [Ping timeout: 276 seconds]
Soda has joined #ruby
codefo has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 248 seconds]
Vile` has joined #ruby
hollywood has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
phutchins has quit [Ping timeout: 244 seconds]
iotouch has joined #ruby
phutchins has joined #ruby
chinmay_dd has joined #ruby
plashchynski has quit [Quit: plashchynski]
FooMunki has joined #ruby
cefkamcau has joined #ruby
iotouch has quit [Client Quit]
plashchynski has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
lidenskap has joined #ruby
eshiffob has quit [Ping timeout: 240 seconds]
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
revoohc has quit [Quit: revoohc]
moeabdol has quit [Read error: Connection reset by peer]
thumpba_ has joined #ruby
RegulationD has joined #ruby
lidenskap has quit [Ping timeout: 265 seconds]
Igorshp has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<jhass>
FernandoBasso: because it's invalid syntax, you want (1..5).each do {|i| puts i } or yet better 1.upto(5) {|i| puts i }
dfinninger has joined #ruby
<FernandoBasso>
Ah, so blocks with { } can't be applied passed to for, but they can be passed to each.
<leitz>
Ah, apeiros, there's a "natrualsort" gem. Let me play with that.
<apeiros>
reminds me that I wanted to add that to my `sorting` gem ages ago…
<apeiros>
*sob*
shadowfax has joined #ruby
shadowfax has quit [Max SendQ exceeded]
<FernandoBasso>
jhass: Thanks.
bricker has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
shadowfax has joined #ruby
shadowfax has quit [Max SendQ exceeded]
<jhass>
FernandoBasso: or in general, they can be passed to method calls, but not to control flow statements
<FernandoBasso>
Okay. Nicely put.
<jhass>
FernandoBasso: and you just discovered one of the reasons why for is considered not idiomatic and generally avoided ;)
<FernandoBasso>
Indeed :)
jimms has quit [Ping timeout: 250 seconds]
shadowfax has joined #ruby
shadowfax has quit [Max SendQ exceeded]
bricker has quit [Ping timeout: 256 seconds]
tlarevo has quit []
<leitz>
Well, that's a bummer. I sorted the array after removing the "V-". If I "puts array" it shows in numeric order. Using array..each do "write to file" puts them back in non-natural order.
<apeiros>
leitz: you probably used sort/sort_by and not sort!/sort_by!
Crisix has joined #ruby
<apeiros>
those return a sorted copy. they don't sort in-place.
<leitz>
Hmm...maybe I need more coffee. It works now.
Spami has quit [Quit: This computer has gone to sleep]
mgberlin has joined #ruby
govg has quit [Quit: leaving]
dfinninger has joined #ruby
shadowfax has joined #ruby
Spami has joined #ruby
shadowfax has quit [Max SendQ exceeded]
pcp135_ has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
diego3 has joined #ruby
mitchellhenke has joined #ruby
<jhass>
leitz: want a style review? ;)
mgberlin has quit [Remote host closed the connection]
diego3 has quit [Changing host]
diego3 has joined #ruby
diegoviola is now known as Guest54151
diego3 is now known as diegoviola
Guest54151 has quit [Ping timeout: 256 seconds]
dfinninger has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 250 seconds]
<jhass>
leitz: or just the three line version of your script? :P
<sevenseacat>
lol
<jhass>
the later I guess then, here you go: SOURCE = ARGV[0]; TARGET = File.join "new", SOURCE; File.write TARGET, File.readlines(SOURCE).sort_by {|vid| vid[/\d+/].to_i }.join
davedev24_ has joined #ruby
Conner_A has joined #ruby
a5i has joined #ruby
mgberlin has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
hs367 has quit [Quit: Leaving]
Soda has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
bkulbida has joined #ruby
sgambino has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
blt has joined #ruby
mitchellhenke has quit [Ping timeout: 248 seconds]
blt has quit [Changing host]
blt has joined #ruby
ebbflowgo has joined #ruby
krisquigley has joined #ruby
havenwood has joined #ruby
plashchynski has quit [Quit: plashchynski]
Melpaws has quit [Ping timeout: 245 seconds]
blt has quit [Ping timeout: 276 seconds]
<shevy>
do people become wiser as they grow older?
krisquigley has quit [Ping timeout: 256 seconds]
rgb-one has joined #ruby
<shevy>
when I compared old Alan Kay lectures with newer ones... I don't know if the newer ones are qualitatively not as good... or whether it may be because he got older, naturally, or perhaps lacks energy, but the old lectures seem so much better compared to the newer ones :(
<shevy>
same thing with noam chomsky... though in his case, his voice significantly changed and got weaker so it's not as cool to listen to him anymore
nyuszika7h has quit [Ping timeout: 272 seconds]
Parker0 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
blt has joined #ruby
haxrbyte has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
Yzguy has joined #ruby
Zamerick__ has quit [Read error: Connection reset by peer]
Yzguy has quit [Client Quit]
tubuliferous_ has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
Parker0 has quit [Ping timeout: 250 seconds]
nyuszika7h has joined #ruby
thumpba_ has quit [Ping timeout: 255 seconds]
ebbflowgo has joined #ruby
jottr has joined #ruby
ebbflowgo has left #ruby [#ruby]
mitchellhenke has quit [Ping timeout: 256 seconds]
plashchynski has joined #ruby
krz has joined #ruby
ebbflowgo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
fwaokda_ has joined #ruby
MyGreenP1 has joined #ruby
kblake has joined #ruby
mitchellhenke has joined #ruby
FernandoBasso has quit [Quit: leaving]
jimms has joined #ruby
aninaki has joined #ruby
dseitz has joined #ruby
Igorshp has quit [Remote host closed the connection]
RegulationD has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
ujihisa has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
rbennacer has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
thatslifeson_ has joined #ruby
rbennacer has quit [Client Quit]
defrang has quit [Quit: defrang]
Igorshp has quit [Remote host closed the connection]
<Narzew>
Know anyone quick method to remove all HTML from string (normal Ruby, non-rails)
<Narzew>
?
<havenwood>
String#clear
Conner_A has quit [Ping timeout: 272 seconds]
speakingcode has joined #ruby
<jhass>
haha
<jhass>
does REXML parse HTML? I don't know
<jhass>
I'd use nokogiri I guess
blt has quit [Read error: Connection reset by peer]
<jhass>
or .gsub /<[^>]+>/, "" if it doesn't need to handle all edge cases
blt has joined #ruby
soxet has quit [Read error: Connection reset by peer]
<Narzew>
I need to clear some advanced HTML (a tags) for example <a href="example.com>Example</a> I want to convert to Example
doodlehaus has quit [Remote host closed the connection]
<nickjj>
i haven't, it's being bundle installed on a docker build server
justin_pdx has joined #ruby
mitchel__ has joined #ruby
emptyflask has joined #ruby
barburu has joined #ruby
barburu has quit [Client Quit]
mitchellhenke has quit [Ping timeout: 272 seconds]
<havenwood>
nickjj: you might want to give #rubygems a heads up. if it's a reproducible problem in your region they might remove that mirror or something along those lines.
<nickjj>
havenwood, i'm trying to figure out where the build server is hosted now to see its region
<nickjj>
probably somewhere in the US or canada, but can't say for sure
tvw has quit [Ping timeout: 244 seconds]
<havenwood>
nickjj: you might be able to get around it by setting the hosts file for that domain to the ip, if that's an option. dunno why it's happening.
pika_pika has quit [Ping timeout: 245 seconds]
<nickjj>
it ended up working on the 5th try, i can't touch the host doing the building (it's a cloud based service)
vim_shimm has quit [Ping timeout: 240 seconds]
<havenwood>
hopefully a just a temporary hiccup!
<nickjj>
yeah it is, my gemfile hasn't changed. it worked ~30 times in a row over the last week
plashchynski has quit [Quit: plashchynski]
ag4ve_ has quit [Ping timeout: 245 seconds]
apoplexy has quit [Ping timeout: 256 seconds]
ag4ve_ has joined #ruby
byprdct has joined #ruby
<Narzew>
ruboto: Thanks for the method, worked fine on my code
rhg135 has quit [Changing host]
rhg135 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
ujihisa has quit [Ping timeout: 255 seconds]
sankaber has joined #ruby
bricker has joined #ruby
mloveless has joined #ruby
riotjones has joined #ruby
doodlehaus has joined #ruby
endash has joined #ruby
weemsledeux has joined #ruby
hdelgl has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 250 seconds]
mengu has quit []
lavros has quit [Ping timeout: 264 seconds]
kbarry has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lavros has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
<ytti>
17:26 < tphakala> Man with last name “Null” is ruining everyone’s systems! http://t.co/Z1urOoC9vM <stackoverflow.com/questions/4456…>
dideler has joined #ruby
<ytti>
slightly related, i hate how 'obvious' way to fork external programs in ruby and every other language i know off, is with shell expansion
<ytti>
i fell like the obvious commands should be without shell expansaion, just method(binary, arg1, arg2, arg3...)
jimms has quit [Remote host closed the connection]
<ytti>
in most cases people don't seem to need shell expansion, but don't know how to do it without it, and end up creating unnecessary bugs
doodlehaus has quit [Remote host closed the connection]
stef204 has quit [Ping timeout: 250 seconds]
aphprentice has quit [Read error: Connection reset by peer]
lukec has joined #ruby
jimms has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
mattp__ is now known as mattp
FernandoBasso has joined #ruby
rshetty has joined #ruby
bigmac__ has joined #ruby
kblake has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 276 seconds]
fwaokda_ has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: This computer has gone to sleep]
dopie has quit [Ping timeout: 272 seconds]
bigmac_ has quit [Ping timeout: 248 seconds]
elaptics is now known as elaptics_away
defrang has joined #ruby
lukec has quit [Quit: lukec]
krisquigley has joined #ruby
Joufflu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
sohrab has joined #ruby
Spami has joined #ruby
bim has joined #ruby
bim is now known as Guest33212
kblake has joined #ruby
rgb-one has left #ruby [#ruby]
kblake has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
<giuseppesolinas>
hello
<havenwood>
giuseppesolinas: hi
amdbcg has joined #ruby
Guest33212 has quit [Ping timeout: 246 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukec has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
<rshetty>
giuseppesolinas: Hi
workmad3 has joined #ruby
gsd has joined #ruby
<giuseppesolinas>
no questions for you guys today, sorry ^^
rkazak has joined #ruby
scripore has joined #ruby
zorak8 has joined #ruby
aninaki has quit [Quit: leaving]
banister has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
jimms_ has joined #ruby
moeabdol has joined #ruby
jimms has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
gaboesquivel has joined #ruby
hdelgl has quit [Remote host closed the connection]
sgambino has joined #ruby
djellemah has joined #ruby
turtil has quit [Ping timeout: 246 seconds]
lidenskap has quit [Ping timeout: 244 seconds]
Stalkr^ has quit [Quit: Leaving...]
RegulationD has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
ndrei has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Crisix has joined #ruby
justin_pdx has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
lukec has joined #ruby
icebourg has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grindmodeon has joined #ruby
mloveles_ has joined #ruby
ringarin has quit [Ping timeout: 250 seconds]
lukec has quit [Quit: lukec]
fungoat has joined #ruby
mloveless has quit [Ping timeout: 265 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
<atmosx>
aloha
gaboesquivel has quit [Remote host closed the connection]
* atmosx
Barry white - You see the trouble with me (remix)
revoohc has joined #ruby
roolo has joined #ruby
mloveles_ has quit [Ping timeout: 264 seconds]
fungoat has quit [Client Quit]
centrx has quit [Quit: Shutting down, Please wait...]
revoohc has quit [Client Quit]
grindmodeon has quit [Quit: Leaving.]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Spami has quit [Quit: This computer has gone to sleep]
iq has joined #ruby
lukequaint has joined #ruby
Spami has joined #ruby
jimms_ has quit [Ping timeout: 245 seconds]
MyGreenP1 has quit [Ping timeout: 264 seconds]
DerisiveLogic has quit [Remote host closed the connection]
crazydiamond has joined #ruby
mloveless has joined #ruby
DrCode has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
serivich has joined #ruby
sankaber has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
charliesome has joined #ruby
Igorshp has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 246 seconds]
mloveless has quit [Remote host closed the connection]
banister has quit [Ping timeout: 250 seconds]
exadeci has joined #ruby
mloveless has joined #ruby
bim has joined #ruby
freerobby has joined #ruby
ismaelga has quit [Remote host closed the connection]
bim is now known as Guest92436
markholmes has joined #ruby
plashchynski has quit [Quit: plashchynski]
ndrei has joined #ruby
Guest92436 has quit [Remote host closed the connection]
colorisco has joined #ruby
ismaelga has joined #ruby
racest has joined #ruby
<racest>
is learning ruby gay?
plashchynski has joined #ruby
<jhass>
racest: not very creative, try again (or better don't, then you're gone)
mloveless has quit [Ping timeout: 256 seconds]
<racest>
what jhass ???
<jhass>
pretty dumb troll attempt there, I say
iq has quit [Quit: Leaving]
<racest>
no i'm serious i told my friend that i want to learn ruby and he said that's gay
<Outlastsheep>
....What.
<jhass>
then your friend is plain stupid
<jhass>
get better friends
<Outlastsheep>
Agreed. I don't get how a language can have a sexual preference :L
* Coraline
is gay, that explains everything
<jhass>
using gay as curse word in itself is pretty stupid already
<Outlastsheep>
Lemme guys, he 'codes' in HTML?
<Outlastsheep>
Or does he say he's a 'big boy' and exclusively does C++?
ismaelga has quit [Ping timeout: 245 seconds]
<jhass>
hey, let's not feed
MyGreenP1 has joined #ruby
<jhass>
racest: any other topic?
<Outlastsheep>
Oh yeah, apologies.
ponga has joined #ruby
<racest>
he codes in something called assembly... i have no idea what that is though
<jhass>
anything that doesn't involve your "friend"?
emptyflask has quit [Remote host closed the connection]
<racest>
he is my friend because we go to school together and hangout sometimes, but i never seen him in front of a computer doing stuff, but he did get expelled for changing his grades
<certainty>
i know gay ruby programmers. I might ask them if ruby made them gay
<certainty>
i doubt it though
tvw has joined #ruby
<racest>
certainty: please don't take the word gay out of context.... gay means not cool
crdpink has joined #ruby
<certainty>
racest: i see
<racest>
like the car gti is gay because everyone in my school has one
crdpink2 has quit [Ping timeout: 245 seconds]
emptyflask has joined #ruby
<Outlastsheep>
...O...kay?
<jhass>
racest: get better friends. People that use it like that are not worth the effort of a relationship
<racest>
what do you mean?
lavros has quit [Quit: leaving]
<racest>
use what like that?
Guest64554 has joined #ruby
<racest>
also school is gay
<jhass>
gay as a curse word/degrading description
<racest>
i think that's the best way to put it
<racest>
jhass: everyone uses gay this way
<mozzarella>
you guys don't know how to recognize a troll
<jhass>
everyone liked killing jews when hitler was our leader here. So it's a good thing?
ponga has quit [Ping timeout: 252 seconds]
mitchellhenke has joined #ruby
<jhass>
mozzarella: nothing's interrupted ;)
<certainty>
racest: well as you already said gay is equivalent to "not cool" for you. so you can easily replace the word gay with the words "not cool" in all your sentences and you're done :)
bricker has joined #ruby
<certainty>
then you have a better way to put it, i mean
<racest>
well they said that the holocaust was a lie, according to leading scientists(they said that the holocaust didn't happen the way they claim)
<racest>
certainty: but gay is so much shorter and much more elegant
ozialien has joined #ruby
<Outlastsheep>
racest:...'elegant' is your opinion there.
<Outlastsheep>
Shorter, sure. But what does that say?
<jhass>
!kick racest no absurd conspiracy theories, strike two
racest was kicked from #ruby by ruboto [no absurd conspiracy theories, strike two]
<certainty>
also i'm the official troll here. This channel is too small for the two of us
Igorshp has quit [Remote host closed the connection]
racest has joined #ruby
<Outlastsheep>
certainty: played too much Skyrim? :L
<certainty>
xD
<racest>
what is an absurd conspiracy theory?
Igorshp has joined #ruby
<jhass>
you know damn right
<Outlastsheep>
I should probably consider actually /programming/ in Ruby soon-ish...
MyGreenP1 has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 250 seconds]
<jhass>
er, s/right/well/
<certainty>
Outlastsheep: nah, that's overrated
<Outlastsheep>
I learnt the whole language. But for some reason I haven't gotten around to writing anything in it.
<certainty>
heh i doubt you learned it then
<Outlastsheep>
certainty: I know how to use it... mostly.
bruno- has joined #ruby
<Outlastsheep>
But yeah, people say learning comes from experience.
<Outlastsheep>
My first language was lua. And I didn't know about the existence of 'for' loops until 2 months after I started.
<certainty>
well in the case of programming is has a lot to do with actually practicing/doing it. At least for me.
* Outlastsheep
groans at the memories of his first program.
<Outlastsheep>
But my code is fine now. At least, in Lua...
bricker has quit [Ping timeout: 272 seconds]
AlphaAtom has joined #ruby
<jhass>
Outlastsheep: no, that's something quite different
tubuliferous_ has joined #ruby
<Outlastsheep>
The link didn't load for me yet, I assumed it was coding exercises.
<jhass>
loads finehere
crdpink has quit [Ping timeout: 245 seconds]
<Outlastsheep>
jhass: my slow internet. I'm sharing this with 18 other buildings...
tvw has quit [Ping timeout: 255 seconds]
Igorshp has quit [Ping timeout: 256 seconds]
<racest>
so is your definition of a proper evidence eye witness testimony? (without scientific evidence to back up claims)
<jhass>
and yes it's exercises
haxrbyte has joined #ruby
<jhass>
racest: stop it
crdpink has joined #ruby
crdpink has quit [Client Quit]
<racest>
i'm serious jhass
<jhass>
as am I
crdpink has joined #ruby
<jhass>
we're not going to debate here whether holocaust was real. Next time you try you're gone for good
<racest>
where is the zyklon b trace in bones and did the ashes and bones of millions of people that were involved in the "genocide" just disappear?
<racest>
it's not a debate
<racest>
just look at the facts
<racest>
that's all
Rapier- has quit [Quit: (null)]
<jhass>
!ban racest !T 1d nazi/troll
racest was kicked from #ruby by ChanServ [Banned: nazi/troll]
<Outlastsheep>
Now that that's sorted out, where were we?
<jhass>
Outlastsheep: rossettacode compares languages, exercism.io gives you exercises and reviews of your solution
<Outlastsheep>
jhass: Rosettacode are exercises too :L "You are encouraged to /solve this problem/ in any language you know." c:
<Outlastsheep>
You can use it to compare too, though.
tvw has joined #ruby
AndyBotwin has quit [Remote host closed the connection]
<jhass>
eh well, yeah, exercism.io won't show you other solutions until you saved it ;)
<jhass>
er, *solved it
<Outlastsheep>
We had a bot in this channel who would actually edit your messages when you used RegEx...
<Outlastsheep>
I say 'fix', he just really repeats it with the change made.
<jhass>
sounds annoying
pacMakaveli has joined #ruby
colorisco has quit [Quit: colorisco]
<Outlastsheep>
There were only like, two people using it, luckily.
mitchellhenke has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
<Outlastsheep>
Y'know, Ruby's channel seems a lot more friendlier :L
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* atmosx
Dire Straits - Your Latest Trick (Live)
<atmosx>
I need to learn the saxophone just to play this tune.
<atmosx>
Outlastsheep: you agree?
<atmosx>
Outlastsheep: ruby and saxophone, what a life.
<Outlastsheep>
atmosx: someone should write Vertigo for Ruby.
<atmosx>
hehe
workmad3 has quit [Ping timeout: 246 seconds]
<Outlastsheep>
And atmosx would be the king of that.
ismaelga has joined #ruby
<Outlastsheep>
I would LOVE to learn C just so I can try out Vertigo.
stef204 has joined #ruby
<Outlastsheep>
And then listen to the sweet tunes of my IRC Bot.
kobain has joined #ruby
<Outlastsheep>
atmosx: how's your day, friend? c:
jottr has joined #ruby
<atmosx>
Outlastsheep: good I think :-)
<atmosx>
Outlastsheep: yours?
<Outlastsheep>
You /think/? Hahaha. I'm doing fine.
<Outlastsheep>
Working on this little project of mine. I finally don't have any setbacks anymore.
plashchynski has quit [Quit: plashchynski]
mitchellhenke has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 264 seconds]
djellemah has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
codecop has joined #ruby
swgillespie has joined #ruby
plashchynski has joined #ruby
krisquigley has joined #ruby
kotk has joined #ruby
chinmay_dd has joined #ruby
mloveless has joined #ruby
oddskill is now known as wellbutwtfidk
krisquigley has quit [Ping timeout: 264 seconds]
riskish has joined #ruby
aswen has joined #ruby
BTRE has quit [Quit: Leaving]
mloveless has quit [Ping timeout: 244 seconds]
bim has joined #ruby
chinmay_dd has quit [Quit: Leaving]
bim is now known as Guest52367
plashchynski has quit [Quit: plashchynski]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
wallerdev has joined #ruby
markfletcher has joined #ruby
vim_shimm has joined #ruby
tvw has joined #ruby
Mark-6ma has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
lolmaus has joined #ruby
centrx has joined #ruby
amdbcg has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 1.1.1]
tvw has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
ponga has joined #ruby
anaeem1 has joined #ruby
axisys has joined #ruby
vim_shimm has quit [Ping timeout: 264 seconds]
lidenskap has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
plashchynski has quit [Quit: plashchynski]
ponga has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
yqt has joined #ruby
plashchynski has joined #ruby
anaeem1 has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
mary5030 has quit [Remote host closed the connection]
ndrei has joined #ruby
tvw has joined #ruby
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plashchynski has quit [Client Quit]
plashchynski has joined #ruby
jlast has joined #ruby
haxrbyte has joined #ruby
plashchynski has quit [Client Quit]
roshanavand has joined #ruby
plashchynski has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
timonv has quit [Ping timeout: 255 seconds]
haxrbyte has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
vim_shimm has joined #ruby
iasoon has joined #ruby
icebourg has quit [Ping timeout: 245 seconds]
amundj has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby
Macaveli has joined #ruby
icebourg has joined #ruby
wallerdev has joined #ruby
emptyflask has quit [Remote host closed the connection]
mitchellhenke has quit [Ping timeout: 264 seconds]
nahtnam has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
dagerik has joined #ruby
amdbcg has joined #ruby
mitchellhenke has joined #ruby
phpmaster has joined #ruby
workmad3 has joined #ruby
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
mitchel__ has joined #ruby
<phpmaster>
|http
enebo has quit [Quit: enebo]
longfeet has joined #ruby
balazs has joined #ruby
mitchellhenke has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
thatslifeson_ is now known as Conner_A
charliesome has quit [Quit: zzz]
amdbcg has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
sgambino has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
gsd has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
dtor777 has joined #ruby
rshetty has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
dtor777 has left #ruby ["WeeChat 1.1.1"]
ekaleido has joined #ruby
codefo has joined #ruby
ramfjord has joined #ruby
spider-mario has joined #ruby
mitchel__ has quit [Ping timeout: 272 seconds]
cefkamcau has quit [Quit: Leaving]
musashi1 has joined #ruby
iasoon has quit [Ping timeout: 265 seconds]
icebourg has quit [Ping timeout: 256 seconds]
mitchellhenke has joined #ruby
lukec has joined #ruby
icebourg has joined #ruby
bluOxigen has joined #ruby
rshetty has joined #ruby
lidenskap has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
Mark-6ma has quit [Quit: -]
mitchellhenke has quit [Read error: Connection reset by peer]
aswen has joined #ruby
mitchellhenke has joined #ruby
<ytti>
in net/ssh, any clue how to use it as interactive ssh shell, i.e. do something in ruby like login, maybe run some commands, then give control to sort of REPL loop from STDIN
<ytti>
with full line-editing etc
<ytti>
i feel like i'd be reinventing the wheel by heavy-lifting all the REPL loop myself, trying to act as proper TTY
<ytti>
experience to user should be very much in line of using just 'ssh server'
<jhass>
tbh it sounds like you're applying the wrong tool to the job
<jhass>
what's your goal?
<ytti>
i already have library for programmatically interfacing with the device
<ytti>
but i'd also like to give control to opreator, after login, for some use-cases
<jhass>
so you want control to return to your script when the repl is left?
<ytti>
yeah
<jhass>
or is the program exiting fine?
Contigi has quit [Quit: Leaving]
<ytti>
now i'm doing just exec(ssh)
<ytti>
but i'd like to avoid doing that
vickleton has quit [Remote host closed the connection]
<ytti>
i'd like to do it all in the library, if i can find low-overhead/maintenance for proper terminal handling
markholmes has joined #ruby
<jhass>
I was going to suggest doing that, I think it's the least reinventing the wheel kind of stuff
balazs has quit [Remote host closed the connection]
<xxneolithicxx>
will they ever come back to your tool when they are done with the shell session
<xxneolithicxx>
or better said do you need the tool to resume where it left off once they exit the shell session
<ytti>
it would be highly desirable, but i may be able to live without it
<ytti>
but i will definitely need to handle programmatically some part of the ssh session, before handing out control
<ytti>
so just exec(ssh) is not viable
Rickmasta has joined #ruby
<xxneolithicxx>
if you dont need that then i would just try replacing the running process with the shell session, not sure if it will transition over correctly though
<ytti>
Using the shell service and pty’s, you can now create a simple SSH terminal client. (You’ll also want to download and install the ruby-termios library so that your input is not interpreted in a linewise fashion.)
<ytti>
maybe 'termios' is what i want
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ujihisa has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
rkazak has joined #ruby
ag4ve_ has quit [Ping timeout: 245 seconds]
Stalkr_ has joined #ruby
Ellistaa has joined #ruby
icebourg has quit [Ping timeout: 265 seconds]
<Ellistaa>
is a column in excel a one dimensional array or a two dimensional array?
ponga has quit [Ping timeout: 245 seconds]
<jhass>
are you asking what a one-dimensional and what a two-dimensional array is?
Aswebb_ has quit []
Melpaws has joined #ruby
<workmad3>
Ellistaa: are you asking about how you could model it? or how excel implements columns? or are you referring to some specific ruby wrapper around excel file?
ag4ve_ has joined #ruby
icebourg has joined #ruby
tus has joined #ruby
Ellistaa has left #ruby [#ruby]
Ellistaa has joined #ruby
DerisiveLogic has joined #ruby
<Ellistaa>
i’m reading about databases and was just wondering if a column in excel is an example of a one dimensional array or a two dimensional array
<Ellistaa>
or is it a hash with 1 key and a crap ton of values
<workmad3>
Ellistaa: well, if you step back and think about what a dimension is (namely, N-dimensions requires N co-ordinates to identify a point) then you could probably answer your own question ;)
<Ellistaa>
well it seems that there is a name for the column, and then all the values so it could be a hash with one key and a ton of values
<workmad3>
Ellistaa: sure, but if you have a single column, you don't need the name
<Ellistaa>
how would u identify it without a key?
<workmad3>
Ellistaa: your question was about a single column... what you're now asking about is a collection of columns
hollywood has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
<Ellistaa>
a single column in a table
jlast has joined #ruby
<Ellistaa>
let’s say we have 2 columns in a table, this would be a two dimensional array correct? or a hash with two key value pairs?
charliesome has joined #ruby
mitchellhenke has joined #ruby
* workmad3
gives up on trying to explain multi-dimensional concepts abstractly
<jhass>
mh, we need a !bail
<wasamasa>
yes
<wasamasa>
also, why the heck is #ruby trying to answer a question involving excel?
lukec has quit [Quit: lukec]
<wasamasa>
that way lies madness
<jhass>
I think apeiros makes his living from interfacing excel with ruby or something
<jhass>
that might be why we get so many of those, dunno
<apeiros>
I what?
mitchellhenke has quit [Read error: Connection reset by peer]
<jhass>
you show a lot of experience in that topic :P
<workmad3>
hehe
<certainty>
hihi
<sohrab>
hm, but to answer, 2 column excel spreadsheet can be represented with a 2D array, right?
<apeiros>
:<
emptyflask has joined #ruby
<workmad3>
sohrab: sure... a table is fundamentally 2-dimensional
mitchellhenke has joined #ruby
<Ellistaa>
sohrab: gracias
jlast has quit [Ping timeout: 245 seconds]
mrmargolis has joined #ruby
davedev24_ has quit []
mgberlin has joined #ruby
<Ellistaa>
maybe i asked that question here bc ruby is my first programming language so i’m simultaneously learning programming concepts
<Ellistaa>
as i learn ruby
<fxck>
is there a point to object only being able to inherit from one class but from many modules? whats the point of single inheritance if multiple inheritance of modules is possible?
<apeiros>
fxck: it's still not multiple inheritance. the chain is linear.
<Ellistaa>
order of method lookup?
<Ellistaa>
did i just answer my first question?
<apeiros>
fxck: include a couple of modules and check your class' .ancestors
<fxck>
oh
vedu has left #ruby ["AFK (Since the internet is real-life as well)"]
bruno- has joined #ruby
<jhass>
I don't work with this stuff, but can't these "spreadsheets" have multiple sheets, making it actually 3-dimensional? :P
<workmad3>
fxck: read up on the 'fun' of full-blown multiple inheritance in C++ :P
<apeiros>
it's not multidimensional tho, as then all tables would IMO need the same col & row count
<wasamasa>
Ellistaa: in other words, the original question is silly as there are many ways of representing something
<fxck>
yeah, i got it
<certainty>
i still believe apeiros is an excel guru
naztharune has quit [Remote host closed the connection]
<IceDragon>
did someone say spreadsheets?
<workmad3>
apeiros: hmm... I'm pretty sure multidimensional manifolds allow co-ordinate ranges to differ based on other co-ordinates
<apeiros>
I'm not. I just have a bit of experience with importing & exporting excel & csv.
* IceDragon
has horrible flash backs from high school
<IceDragon>
oh gaaawd
<apeiros>
workmad3: noway!
<workmad3>
apeiros: it's just not an unconstrained cartesian 3-d space :P
* IceDragon
enters fetal position
<certainty>
better than lethal position
<workmad3>
IceDragon: if you did manifolds in high-school, I'm very jealous!
<Ellistaa>
wasamasa: u r silly
naztharune has joined #ruby
<wasamasa>
Ellistaa: it's "you" and "are", silly
naztharune has quit [Remote host closed the connection]
<workmad3>
hehe
<Ellistaa>
wasamasa: that’s what the hegemony wants you to think
<wasamasa>
...
<IceDragon>
workmad3: don't even start
<apeiros>
jhass: and trust me - you don't want to have to import from excel
<wasamasa>
my troll meter starts moving
freerobby has joined #ruby
<certainty>
wasamsa keeps becoming a target. I wonder why that is xD
<jhass>
apeiros: I don't even need to trust you to know that :D
<workmad3>
certainty: it's the bulls-eye on his back
<jhass>
it's obvious
<apeiros>
it's worse
* certainty
hands workmad3 some darts
Guest52367 has quit [Remote host closed the connection]
<workmad3>
apeiros: surely all you do is use win32ole to export an excel sheet as CSV, and just deal with that? :D
<wasamasa>
certainty: actually, I could cosplay as this bullseye character if I were to shave my head again
<apeiros>
win32ole doesn't run on *nix, does it?
<certainty>
wasamasa: hehe
<apeiros>
also excel doesn't understand what "csv" means
<certainty>
mono
bruno- has quit [Ping timeout: 246 seconds]
<certainty>
nobody understands what csv really means
<workmad3>
apeiros: pfft... then you just use vagrant around a virtualbox windows VM and create a ruby HTTP interface around win32ole that you can communicate with from *nix
<apeiros>
additionally it thinks it should just use whichever encoding it deems best. e.g. mac excel on western osx will use macroman
<workmad3>
apeiros: obvious, IMO :P
<apeiros>
workmad3: I suggest you write that and package it as a gem :o)
<workmad3>
apeiros: hehe
<apeiros>
the 16GB gem :D
rgb-one has joined #ruby
<apeiros>
that said - that's how I test against oracle :<
krisquigley has joined #ruby
<wasamasa>
certainty: I blame my generally rather provocative way
<workmad3>
apeiros: well shit... I was just making up crazy ideas to troll with :P
<certainty>
friends don't let friends use spreadsheets
<jhass>
makes you wonder, is there a size limit to what you can push to rubygems.org?
<apeiros>
jhass: String#* is your friend :D
<jhass>
or I can I start using it as a filehoster?
<certainty>
ok i need a character that is guaranteed not to be in the string
<certainty>
woops forgot the sort
<workmad3>
ytti: pretty easy to manage if you do .chars.sort.join("")
<ytti>
yeah
<certainty>
but then it's longer again
<ytti>
lets kick up the heat, what if you need to do it to arbitrarily large input
plashchynski has joined #ruby
<ytti>
maintaining counter is wasteful, bevcausae we only care if it appears >1 or not
<jhass>
I doubt you'll get much more efficient than my solution tbh
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<certainty>
i'd keep seen set
<certainty>
or a hash
<certainty>
jhass: well you could be a bit more space efficient by just checking if you have already seen the character and if so incrementing the accumulator
<certainty>
that could be done in a reduce
<ytti>
now we have potentially infinitely large integers and large number of them
<jhass>
true, but my possible input was just 26 characters
<ytti>
ok
<certainty>
yeah
<ytti>
then no point to do memory optimization
<ytti>
if we needed memory optimiastion probably two hashes would be good option
<ytti>
if first hash is true, set second hash true as well
<workmad3>
ytti: or you could do it with a single hash, and just not increment past 2
ianseyer has quit [Ping timeout: 246 seconds]
<ytti>
then count how many true values in second hash after stremaing the intput
<ytti>
then we could ask, can we avoid branching while doing this
<ytti>
and i think i'm stumped there
<jhass>
you could hack three states with nil, false and true
A205B064 has joined #ruby
<jhass>
nil = not seen yet, false = seen once, true = seen twice
<jhass>
increment counter on turning false -> true
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
also if you do that a lot during runtime performance will be poor
bim has joined #ruby
bim is now known as Guest49939
<IceDragon>
workmad3: hsh[val] = hsh.key?(val)
<workmad3>
IceDragon: heh, nice :)
<cina>
jhass: I mean a class method of its parent class... e.g. I have a 'person = Person.new', and Person has a class method 'Person.count'... I want to change 'person.class.count', and not 'Person.count'...
<workmad3>
cina: you can't do that
ixti has joined #ruby
<IceDragon>
cina: Subclass Person
<jhass>
cina: okay, now I transition from you have a design smell to you have a serious design issue
<IceDragon>
cina: class MyPerson < Person
<workmad3>
cina: person.class.count and Person.count are not separate things
nahtnam has quit [Quit: Connection closed for inactivity]
aswen has quit [Ping timeout: 248 seconds]
<cina>
ok thanks guys :)
<workmad3>
cina: also, 'parent class' is not the right term there... it's simply the object's class
<cina>
workmad3: thank you, I was struggling to find the right words
_ixti_ has quit [Ping timeout: 250 seconds]
mitchellhenke has joined #ruby
mitchellhenke has quit [Client Quit]
icebourg has quit []
Rickmasta has joined #ruby
lukequaint has quit [Quit: Bye!]
<workmad3>
cina: as IceDragon said... to achieve what you wanted, you'd need to subclass Person and override the method in the subclass... in order to do this for an arbitrary instance of a class, you'd need to create a subclass of Person for every instance you create... which is a horrible idea and, as jhass said, a serious design issue
apoplexy has joined #ruby
<jhass>
and what that means is go back to the drawing board, solve your issue differently, you're on the wrong path here
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Contigi has joined #ruby
<IceDragon>
The other option is to go with a factory pattern, PersonFactory > creates a Person and stores a reference to itself in the Person object, in which you can nab the count from
<IceDragon>
┐( ̄ヮ ̄)┌
<IceDragon>
person.factory.count
<jhass>
if you want suggestions on what a better solution would be you would need to elaborate about what you're doing and ideally illustrate with some code to make it clear
tvw has quit [Ping timeout: 245 seconds]
blt has joined #ruby
Azulinho has joined #ruby
<workmad3>
IceDragon: that sounds horrible :P
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
<IceDragon>
workmad3: It is
<IceDragon>
You'd be tempted to call person.factory.create
<IceDragon>
And wreck havoc!
<workmad3>
IceDragon: it also doesn't seem to provide a way to monkey-patch person.factory.count without touching PersonFactory.count :P
Azulinho has left #ruby [#ruby]
<IceDragon>
workmad3: the factory would be an instance of PersonFactory
vim_shimm has quit [Ping timeout: 252 seconds]
Azulinho has joined #ruby
<IceDragon>
that way you can have many PersonFactories ;3
* IceDragon
fires up his bot factor(ies|y)
<workmad3>
IceDragon: ah... so you'd need to write methods as instance methods on PersonFactory, so that you could monkey-patch them on instances of Person... which is horrible on so many levels :P
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<workmad3>
IceDragon: or would you just make PersonFactory instances into proxies for Person class methods? :)
Megtastique has joined #ruby
evanjs has joined #ruby
<IceDragon>
I dunno
<IceDragon>
Seems complicated
* jhass
wonders how many iterations you two are away from AbstractSingletonFactoryBean
<workmad3>
jhass: I think my next step is to discuss whether my AbstractSingletonFactoryBean should itself be a singleton, or if it needs its own abstract factory to create instances of it for each use
plashchynski has quit [Quit: plashchynski]
<workmad3>
jhass: still a fair bit away from using xml to invoke factories and perform dependency injection though ;)
Illusioneer has joined #ruby
<jhass>
I don't know, does it really make any difference anymore once you reached that point?
markholmes has joined #ruby
bkulbida has quit [Ping timeout: 248 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<workmad3>
jhass: every new level is important, and requires you to have exactly the same discussions all over again!
<workmad3>
jhass: otherwise, what are consultants being paid for?
robbyoconnor has quit [Read error: Connection reset by peer]
<jhass>
reminds me of CRATE TABLE nosql(id INT, key BLOB, value BLOB);
* workmad3
just realised that link_type BLOB gives you so much power over the traditional VARCHAR(255) link type... you could make systems that used images for link types!
plashchynski has joined #ruby
<IceDragon>
workmad3: I'm evil, employing my junior to work in the factory ;3
mitchellhenke has joined #ruby
revoohc has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
gsd has quit [Read error: Connection reset by peer]
<jhass>
I'm not sure that's what factories are for... :P
mitchellhenke has quit [Read error: Connection reset by peer]
defrang has quit [Read error: Connection reset by peer]
<IceDragon>
me neither, I never got programming patterns correct /:
<workmad3>
factories are for creating instances
<IceDragon>
well I got that right then 3:
<jhass>
call it Manager and stare at everybody who asks wth that is until they go away
<IceDragon>
workmad3: Doesn't that make every Class in ruby a factory?
<IceDragon>
:O
grindmodeon has joined #ruby
Azulinho has joined #ruby
<workmad3>
IceDragon: I'm just not sure if it fits the 'design' we were talking about :P
<workmad3>
IceDragon: pretty much, yes
<IceDragon>
workmad3.class.new :3
<jhass>
I don't think factories are supposed to have state beyond what they need to construct an object
Azulinho has left #ruby [#ruby]
giuseppesolinas has joined #ruby
<jhass>
tracking instances seems wrong, backreferencing the factory from the target class seems veeery wrong
<IceDragon>
jhass: It means I probably combined a Factory and Manager then D:
<jhass>
Manager I made up :D
yh has joined #ruby
riotjones has joined #ruby
<yh>
I have required a file defining class Foo::Bar::JSON. I have also required "json" from stdlib. Inside Baz::Qux, I have a method referring to JSON. It resolves to Foo::Bar::JSON instead of ::JSON. How could this be?
Hijiri has quit [Quit: WeeChat 1.0.1]
<workmad3>
yh: !fake
<workmad3>
drats
<workmad3>
Please do not use fake values, as they can be confusing or misleading. Sometimes both
codefo has joined #ruby
<IceDragon>
yh: did you include Foo::Bar into Baz::Qux?
Azulinho has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
<IceDragon>
yh: When in doubt just use ::ConstantName for referencing top level constants
<workmad3>
yh: by 'cracked it' do you mean 'use ::JSON'? because that doesn't really answer the question of 'why has this happened?' that you originally asked :P
plashchynski has quit [Quit: plashchynski]
<IceDragon>
workmad3: Kneel before huuuman
<IceDragon>
*me huuuman
mgberlin_ has joined #ruby
* IceDragon
being all pointy nose
Igorshp has joined #ruby
ftj has joined #ruby
zapata has quit [Ping timeout: 276 seconds]
zapata has joined #ruby
<workmad3>
IceDragon: :)
mgberlin has quit [Ping timeout: 245 seconds]
<yh>
workmad3: it was the damn include, which I didn't notice. :)
unreal has quit [Ping timeout: 264 seconds]
<workmad3>
yh: heh
Igorshp has quit [Ping timeout: 264 seconds]
<IceDragon>
yh: Its always include!
<IceDragon>
.-. include ist ewil!
grindmodeon has joined #ruby
evanjs has quit [Remote host closed the connection]
Azulinho has quit [Quit: Azulinho]
havenwood has joined #ruby
unreal has joined #ruby
lukec has joined #ruby
hiyosi has joined #ruby
plashchynski has joined #ruby
bruno- has joined #ruby
codecop has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
grindmodeon has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 248 seconds]
DerisiveLogic has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
krisquigley has joined #ruby
lidenskap has quit [Remote host closed the connection]
yfeldblum has joined #ruby
robbyoconnor has joined #ruby
niKeITA has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
turtil has joined #ruby
zorak8 has quit [Quit: Leaving]
ujihisa has quit [Ping timeout: 264 seconds]
elaptics is now known as elaptics_away
claw___ has quit [Read error: Connection reset by peer]
claw___ has joined #ruby
sankaber has joined #ruby
ianseyer has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
niKeITA has quit [Ping timeout: 250 seconds]
badhatter has joined #ruby
niKeITA has joined #ruby
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 276 seconds]
plashchynski has quit [Quit: plashchynski]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has quit [Ping timeout: 245 seconds]
apoplexy has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Remote host closed the connection]
ianseyer has quit [Ping timeout: 264 seconds]
<yh>
Does the standard Logger use synced File IO?
<yh>
It doesn't seem to be buffering
plashchynski has joined #ruby
<ytti>
i'm quite opinionated about logging
<ytti>
and feel everything should be syslog
<ytti>
and sent to centralized boxes, which preferably are syslog-ng, and do something like server/program.log
<ytti>
with warn and higher level messages aggregated to server/important.log
<yh>
how about buffering ytti
<yh>
autoflush log messages?
<ytti>
then you'll mount the centralized servers as readonly to where ever you need the logs
<yh>
buffering log messages seems to go against the idea
MasterPiece has joined #ruby
vdamewood has joined #ruby
<ytti>
that is not really important to me
<ytti>
that is, messages always have appeared 'fast enough' on my syslog files
lidenskap has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Zamerick has joined #ruby
Zamerick_ has joined #ruby
larissa has quit [Quit: bye]
RegulationD has joined #ruby
Technodrome has joined #ruby
blt has quit [Ping timeout: 255 seconds]
<havenwood>
!hangman gems
<havenwood>
DeBot: !hangman gems
<DeBot>
␣␣␣␣␣␣␣␣␣ [] 0/12
ianseyer has joined #ruby
<havenwood>
DeBot: -_
<DeBot>
␣␣␣-␣␣␣␣␣ [_] 1/12
RegulationD has quit [Ping timeout: 244 seconds]
<havenwood>
DeBot: n
<DeBot>
␣␣␣-␣␣n␣␣ [_] 1/12
red_menace has joined #ruby
MyGreenP1 has joined #ruby
<niKeITA>
hello
<havenwood>
niKeITA: hi
<havenwood>
DeBot: g
<DeBot>
g␣␣-␣␣n␣␣ [_] 1/12
<apeiros>
DeBot: sra
<DeBot>
g␣␣-␣␣n␣␣ [_sra] 4/12
<apeiros>
wow
kyrylo has quit [Ping timeout: 272 seconds]
<apeiros>
DeBot: ui
<DeBot>
gi␣-␣␣n␣␣ [_srau] 5/12
<apeiros>
DeBot: e
<DeBot>
gi␣-␣␣n␣␣ [_sraue] 6/12
<apeiros>
DeBot: o
<DeBot>
gi␣-␣␣n␣␣ [_sraueo] 7/12
<apeiros>
what the?
<havenwood>
DeBot: t
<DeBot>
git-␣␣n␣␣ [_sraueo] 7/12
<apeiros>
havenwood: can't let us hang like that
<havenwood>
apeiros: busy checking out the gem's code! :P
<havenwood>
DeBot: y
<DeBot>
git-␣yn␣y [_sraueo] 7/12
<havenwood>
"The funky git aware remote syncer."
<apeiros>
DeBot: fk
<DeBot>
git-fyn␣y [_sraueok] 8/12
quimrstorres has quit [Remote host closed the connection]