<[[thufir]]>
is this a "bad" or strange way to telnet with ruby: spawn telnet 172.16.1.1 ? found on stackoverflow
aedorn has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
snovak has quit [Ping timeout: 264 seconds]
zeade has joined #ruby
dash_ has quit [Quit: dash_]
hell_lord has quit [Quit: leaving]
Fire-Dragon-DoL has quit [Quit: Leaving.]
iliketur_ has quit [Quit: zzzzz…..]
zeade has quit [Client Quit]
ssvo_ has quit [Ping timeout: 260 seconds]
fsck3r has quit [Quit: Leaving...]
aedorn has joined #ruby
Lewix has quit [Remote host closed the connection]
ianbrandt has quit [Quit: ianbrandt]
iliketur_ has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
randomautomator has quit [Remote host closed the connection]
randomautomator has joined #ruby
tkuchiki has joined #ruby
graft has quit [Ping timeout: 276 seconds]
Xaitec has joined #ruby
nari has quit [Ping timeout: 240 seconds]
pen has joined #ruby
Guest8962 has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
bio- has joined #ruby
jlast has joined #ruby
lkba has joined #ruby
randomautomator has quit [Ping timeout: 256 seconds]
<SteveBenner9>
for example use ```js to start a block with specific javascript syntax highlighting, then on the next lines write the code, then finish again with ```
SteveBenner9 has quit [Quit: Leaving]
Wildhoney has quit [Quit: Wildhoney]
Tricon has quit [Quit: Leaving...]
hogeo has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
emergion has quit [Quit: Computer has gone to sleep.]
rburton- has quit [Quit: Leaving...]
mansi has joined #ruby
pothibo has quit [Quit: pothibo]
mlpinit has joined #ruby
phantasm66 has quit [Client Quit]
nfk has joined #ruby
mansi has quit [Remote host closed the connection]
nfk has quit [Client Quit]
mansi has joined #ruby
jsatk has quit [Remote host closed the connection]
tylersmith has joined #ruby
johnnyfuchs has joined #ruby
thelorax123 has joined #ruby
pitzips has quit [Ping timeout: 245 seconds]
bthesorceror has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
tylersmith has joined #ruby
zeade has joined #ruby
i_s has quit [Remote host closed the connection]
zeade has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
kvirani has quit [Ping timeout: 276 seconds]
starship_ has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
thirdknife has joined #ruby
tomzx_mac has joined #ruby
splittingred has quit [Quit: splittingred]
x1337807x has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
NealJ has quit [Quit: :c]
S0da has quit [Read error: Connection reset by peer]
fsck3r has joined #ruby
jbomo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
dodosan has quit [Remote host closed the connection]
nari has joined #ruby
gr33n7007h has joined #ruby
devyn has quit [Remote host closed the connection]
Kabaka has quit [Ping timeout: 240 seconds]
<pontiki>
[[thufir]]: can you ssh in from a terminal?
snath has quit [Ping timeout: 240 seconds]
Kabaka has joined #ruby
snath has joined #ruby
saarinen has quit [Quit: saarinen]
<pontiki>
[[thufir]]: i can't think why you'd want to spawn a telnet process -- how would you send it input?
marcdel has joined #ruby
rcosta has quit [Read error: Connection reset by peer]
rcosta has joined #ruby
jefflyne has joined #ruby
mmitchell has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
marcdel has quit [Client Quit]
Nisstyre-laptop has joined #ruby
basex has quit [Quit: basex]
johnnyfuchs1 has joined #ruby
Asher has quit [Quit: Leaving.]
bw__ has joined #ruby
thirdknife_ has joined #ruby
bw_ has quit [Ping timeout: 240 seconds]
thirdknife has quit [Ping timeout: 240 seconds]
[[thufir]] has quit [Ping timeout: 240 seconds]
framling has quit [Ping timeout: 240 seconds]
psyprus has quit [Read error: Connection reset by peer]
krz has joined #ruby
psyprus has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
johnnyfuchs has quit [Ping timeout: 240 seconds]
Liothen has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
framling has joined #ruby
rburton- has joined #ruby
sevenseacat has joined #ruby
gr33n7007h has joined #ruby
mele- has joined #ruby
mele- has quit [Client Quit]
[[thufir]] has joined #ruby
snovak has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
<[[thufir]]>
if you "spawn" a telnet connection, you can't really, or not easily, get the responses from the server? For a MUD game client.
<pontiki>
i have no idea how that could work
superscott[8] has quit [Quit: superscott[8]]
TheFuzzball has quit [Quit: Leaving...]
<pontiki>
it's off in a completely separate process, different input/output/error, etc
<pontiki>
[[thufir]]: the idea behind expect is that you tell it what to expect from the server, and send responses to it based on what you get back
maletor has quit [Quit: Computer has gone to sleep.]
huoxito has joined #ruby
pothibo has joined #ruby
<pontiki>
so it's particularly good at driving telnet services
lukec has joined #ruby
allaire has joined #ruby
<pontiki>
provided you have a good idea what the interaction with the server is supposed to be
havenwood has joined #ruby
iliketur_ has joined #ruby
Hanmac1 has joined #ruby
reset has quit [Ping timeout: 276 seconds]
Yakko has quit [Remote host closed the connection]
<[[thufir]]>
ok
Heaplink has joined #ruby
marcdel has joined #ruby
Nogbit has joined #ruby
pothibo has quit [Quit: pothibo]
c0rn has quit [Ping timeout: 240 seconds]
Xaitec has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 245 seconds]
<[[thufir]]>
I have something interesting: http://pastebin.com/LWwWcw6E it will connect to the game, and I see the output in the logs. but the output is *only* in the logs. Do I have to process the logs to get the responses from the server? like "read last line" of the log with tail or something?
seich- has joined #ruby
lukec has quit [Quit: lukec]
mmitchell has quit [Remote host closed the connection]
<pontiki>
[[thufir]]: i
<pontiki>
o
<pontiki>
crap
<shevy>
lol
<pontiki>
[[thufir]]: don't do something so ridiculous when you have the messages from the server right in your program
<shevy>
joyous expressions of love
rcosta has quit [Ping timeout: 245 seconds]
dankest has quit [Quit: dankest]
<pontiki>
[[thufir]]: when you send a command (tn.cmd(command_string)) it send it, then receives the output from the server up until the next prompt
staafl has quit [Ping timeout: 245 seconds]
<[[thufir]]>
how or where does it receive?
soba has joined #ruby
<[[thufir]]>
I mean, I get it that the tel object somehow has that data, a field somewhere, I just haven't found it yet.
<[[thufir]]>
yes, the "match" is what I want. I'll read more, but don't understand the usage.
<[[thufir]]>
yeah, it's a MUD.
<havenwood>
pontiki: Why they no SSH?
kvirani has joined #ruby
<krz>
if i wanted to create a similar block to rail's before_save callback. where do i start?
ryandeussing has quit [Remote host closed the connection]
<havenwood>
krz: By looking at Rail's before_save callback. :P
<pontiki>
havenwood: a fair few of them just run off a telnet server -- they aren't running a shell
<havenwood>
pontiki: ahhh
seich- has quit [Ping timeout: 240 seconds]
digital-ghost has quit [Remote host closed the connection]
parzo has quit [Remote host closed the connection]
<krz>
havenwood: thats a lot of digging. wont probably need everything in its entirety. im trying to create a simlple callback block that i can use
parzo has joined #ruby
thirdknife_ has quit [Ping timeout: 264 seconds]
<bnagy>
Proc or a lambda?
<bnagy>
can't get much simpler...
<Heaplink>
Anyone fancy with compass + rvm?
<pontiki>
callbacks are pretty simple. you just stack up a set of procs, and when you need to run the callbacks, just spin through the array and call them
lukec has joined #ruby
<krz>
bnagy: i have a class Foo. with a method bar. how can i create a callback method after bar is executed/called?
scarolan_ has quit [Ping timeout: 256 seconds]
<bnagy>
uh.. wat?
<bnagy>
what's a 'callback method' ?
<pontiki>
write it into your method bar
defaultro has joined #ruby
rafacv has joined #ruby
thelorax123 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Quit: bthesorceror]
sheap has joined #ruby
Domon has joined #ruby
Domon has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jerius has joined #ruby
Domon has joined #ruby
parzo_ has joined #ruby
Domon has quit [Remote host closed the connection]
siera08 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
tylersmith has quit [Remote host closed the connection]
<sevenseacat>
oh hey i didnt know about byebug
snovak has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
_Bravado has joined #ruby
johnnyfuchs1 has quit [Remote host closed the connection]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gildo has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
<freedrull>
byebug is nice
[[thufir]] has joined #ruby
anonymuse has quit [Remote host closed the connection]
cads has joined #ruby
hardbit has joined #ruby
lukec has quit [Quit: lukec]
[[thufir]] has quit [Max SendQ exceeded]
marcdel has joined #ruby
rcosta has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 260 seconds]
<sevenseacat>
now i need to upgrade to ruby 2 >_>
[[thufir]] has joined #ruby
<eka>
sevenseacat: did you try pry?
thinkdevcode has joined #ruby
<sevenseacat>
yeah i use pry and debugger atm
<eka>
sevenseacat: binding.pry in your code and that will stop the execution with a shell there
rafacv has quit [Remote host closed the connection]
[[thufir]] has quit [Max SendQ exceeded]
raul782_ has quit [Remote host closed the connection]
cooldman224 has quit [Remote host closed the connection]
_Bravado_ has joined #ruby
atno|Zzz has quit [Ping timeout: 260 seconds]
raul782_ has joined #ruby
randomautomator has joined #ruby
raul782_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
raul782_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
randomau_ has joined #ruby
zachrab has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has quit [Remote host closed the connection]
rads has joined #ruby
randomautomator has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
zachrab has joined #ruby
ryandeussing has joined #ruby
krz has quit [Quit: krz]
justsee has left #ruby [#ruby]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
Lewix has quit [Remote host closed the connection]
krz has quit [Client Quit]
kvirani has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
seich- has joined #ruby
kvirani has joined #ruby
Lewix has joined #ruby
multi_io has joined #ruby
freerobby has joined #ruby
jerius has joined #ruby
jerius has quit [Client Quit]
starship_ has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 260 seconds]
starship_ has joined #ruby
sheap has quit [Quit: Lost terminal]
kvirani has quit [Ping timeout: 276 seconds]
rads has quit [Quit: rads]
Asher has joined #ruby
[[thufir]] has joined #ruby
ftiasch has joined #ruby
[[thufir]] has quit [Max SendQ exceeded]
Ripp__ has quit [Quit: Ripp__]
freerobby has quit [Ping timeout: 264 seconds]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
tyman has joined #ruby
krz has quit [Client Quit]
cha1tanya has quit [Quit: cha1tanya]
ftiasch has quit [Quit: Page closed]
raul782_ has quit [Remote host closed the connection]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
raul782_ has joined #ruby
stkowski has joined #ruby
jlast has joined #ruby
Orxata_ has quit [Quit: Me'n vaig]
raul782_ has quit [Ping timeout: 276 seconds]
v0n has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
Spami has joined #ruby
lukec has joined #ruby
zachrab has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
cads has quit [Ping timeout: 260 seconds]
[[thufir]] has joined #ruby
zigomir_ has joined #ruby
lukec has quit [Client Quit]
[[thufir]] has quit [Max SendQ exceeded]
kofno has joined #ruby
raul782_ has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
[[thufir]] has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
hasrb has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
pzuraq has joined #ruby
yacks has quit [Quit: Leaving]
<pzuraq>
hey, I'm trying to figure out the best way to approach this problem in ruby. I need to associate a bunch of fields (arbitrary strings names) with values that could either be a variable on a given object, or a function which computes a property based on values of that object.
ftiasch has joined #ruby
<pzuraq>
I was thinking of making some sort of yaml file and eval-ing the values (which would assumedly be strings) but that seems rather hack-ish
Ripp__ has joined #ruby
<pzuraq>
if this were Javascript I would just use a hash and assign field names to either values or anonymous functions
<pzuraq>
is there a similar coding pattern in ruby that might work?
ftiasch has left #ruby [#ruby]
jamesaanderson has joined #ruby
allaire has quit [Quit: allaire]
pen has quit [Remote host closed the connection]
freerobby has joined #ruby
snovak has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mansi has joined #ruby
bluOxigen has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
JStoker has quit [Quit: JStoker is gone :(]
ftiasch has joined #ruby
ravster has quit [Quit: Leaving.]
snovak has quit [Ping timeout: 245 seconds]
poga has quit [Remote host closed the connection]
poga has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
thesheff17 has quit [Ping timeout: 245 seconds]
ayhid has joined #ruby
brettnem has joined #ruby
prezJFK has joined #ruby
adeponte has joined #ruby
tylersmith has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
atyz has quit [Quit: Leaving...]
haridas has joined #ruby
dhruvasagar has joined #ruby
atyz has joined #ruby
eoinkelly has quit [Quit: eoinkelly]
thinkdevcode has quit [Remote host closed the connection]
JStoker has joined #ruby
ftiasch has quit []
eoinkelly has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 245 seconds]
osvico has quit [Ping timeout: 240 seconds]
hasrb has quit [Read error: Connection reset by peer]
OnionNet has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tomzx_mac has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prezJFK has quit [Remote host closed the connection]
c0rn has quit [Quit: c0rn]
prezJFK has joined #ruby
jamesaanderson has joined #ruby
haridas has left #ruby [#ruby]
Domon has quit [Remote host closed the connection]
ngoldman has joined #ruby
Domon has joined #ruby
lukec has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
tjbiddle has quit [Quit: tjbiddle]
prezJFK has quit [Ping timeout: 240 seconds]
starship_ has quit [Ping timeout: 241 seconds]
Domon has quit [Ping timeout: 245 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
siera08 has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
havenwood has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
blueOxigen has joined #ruby
Lewix has quit [Remote host closed the connection]
krz has quit [Quit: krz]
Ripp__ has quit [Quit: Ripp__]
bluOxigen has quit [Ping timeout: 276 seconds]
ngoldman has quit [Remote host closed the connection]
Ripp__ has joined #ruby
ewnd9 has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
jwang has quit [Quit: Leaving]
Lewix has joined #ruby
vlad_starkov has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
thinkdevcode has joined #ruby
ayhid has left #ruby ["Leaving"]
apeiros has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
end_guy has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
S0da has joined #ruby
browndawg has joined #ruby
jamesaanderson has joined #ruby
siera08 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
intuxicated has joined #ruby
ftiasch has joined #ruby
thinkdevcode has quit [Ping timeout: 256 seconds]
boblu has joined #ruby
freerobby has joined #ruby
prezJFK has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
rburton- has joined #ruby
snovak has joined #ruby
kofno has joined #ruby
relix has joined #ruby
mansi has joined #ruby
artm has joined #ruby
prezJFK has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
ssvo has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
artm has quit [Read error: Connection reset by peer]
<jrobeson>
ok.. i take back my dark sorcery comment
<ericwood>
the initial version (which is very similar to the final one) was a hack I did in a few hours
<jrobeson>
i thought you worked with xsl
<jrobeson>
err
<jrobeson>
xls
<jrobeson>
big difference :)
<ericwood>
yep :P
<ericwood>
my excel2latex thing does literally no formatting
<ericwood>
I have an open bug on it where it doesn't format floats :\
<ericwood>
but apparently a bunch of people are using that tool, which was not intended
<ericwood>
gotten a few emails from grad students around the world...kind fun :D
ftiasch has joined #ruby
<zendeavor>
that's what you get for making it public
<zendeavor>
uninvited guests
<[[thufir]]>
I sorta got output for telnet to a MUD here: http://pastebin.com/bptn7sJZ I want to keep the connection open and wait for the login. code: http://pastebin.com/gu2CeJHh how can I use waitfor() to wait for a prompt or EOL?
echevemaster has joined #ruby
<ericwood>
zendeavor: I promoted it on a few Q&A forums where people were asking for tools that did what excel2latex does
adeponte has quit [Ping timeout: 245 seconds]
<ericwood>
and that's where most of my users came from...the diehard ones appear to spread by word of mouth
tonni has quit [Remote host closed the connection]
<ericwood>
like, there's a bunch in germany
hardbit has left #ruby [#ruby]
hardbit has joined #ruby
gstamp has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Remote host closed the connection]
randomautomator has joined #ruby
nopolitica has joined #ruby
bzitzow has joined #ruby
vlad_starkov has joined #ruby
aeontech has joined #ruby
rickmasta has quit [Quit: Leaving...]
aryaching has joined #ruby
afei has joined #ruby
anderson has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
bw__ is now known as bw_
lemonsparrow has quit [Ping timeout: 250 seconds]
jbomo has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
aryaching has quit []
twoism has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
eoinkelly has joined #ruby
hardbit has quit [Quit: hardbit]
hardbit has joined #ruby
dweeb_ has joined #ruby
twoism_ has quit [Ping timeout: 245 seconds]
twoism has quit [Ping timeout: 245 seconds]
jefflyne has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
perry|dnd has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
razi has joined #ruby
bigkevmcd has joined #ruby
aeontech has quit [Quit: aeontech]
nopolitica has quit [Quit: Lost terminal]
zoee has joined #ruby
iamjarvo_ has joined #ruby
dash_ has joined #ruby
tonni has quit [Ping timeout: 276 seconds]
adeponte has joined #ruby
ftiasch2 has joined #ruby
filipe has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Domon has quit [Remote host closed the connection]
girija has quit [Ping timeout: 264 seconds]
Domon has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
jds_ has joined #ruby
girija has joined #ruby
tonni has joined #ruby
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
aganov has joined #ruby
aryaching has joined #ruby
girija_ has joined #ruby
girija has quit [Read error: Connection reset by peer]
zoee has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
<lxsameer>
how can i get the class object from an strign ?
persand has joined #ruby
maz-dev has quit [Remote host closed the connection]
<flaccid>
specifically the problem seems to be ossl.h:32:21: fatal error: ruby/io.h: No such file or directory
iamjarvo_ has quit [Remote host closed the connection]
ftiasch has quit [Ping timeout: 245 seconds]
iamjarvo_ has joined #ruby
ryandeussing has joined #ruby
Matriks has joined #ruby
postmodern has joined #ruby
aryaching has quit []
iamjarvo_ has quit [Ping timeout: 264 seconds]
girija__ has joined #ruby
girija_ has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
mansi has joined #ruby
girija__ has quit [Read error: Connection reset by peer]
snovak has joined #ruby
poga has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 256 seconds]
jibi has joined #ruby
adeponte has quit [Remote host closed the connection]
lurch_ has joined #ruby
ftiasch2 has quit [Ping timeout: 245 seconds]
kiri has quit [Quit: Leaving]
adeponte has joined #ruby
<lurch_>
hi, does anyone use or can recommend a gem for releasing other gems? (ie. tag version in git, build .gem, increase version number, commit to git)
<lurch_>
i know i can just roll my own with rake or something, but if it already exists, i rather use that
<flaccid>
i'd prefer to use git cli
<flaccid>
and build gem with a few commands. no rake needed
jbpros has joined #ruby
dawkirst has joined #ruby
<lurch_>
it's for promotion from jenkins
<flaccid>
jenkins can't run commands?
<lurch_>
it can
decoponio has joined #ruby
atno has joined #ruby
<flaccid>
sweet
ftiasch2 has joined #ruby
timonv has quit [Remote host closed the connection]
mneorr has joined #ruby
adeponte has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: Leaving]
jds_ has quit [Remote host closed the connection]
ferr has joined #ruby
<lurch_>
was really looking for a tool like the mvn release plugin.. it automatically increases version numbers too.. guess that's scriptable too, but as i said, if it already exists, no point in doing it again..
kilophoton has quit [Ping timeout: 245 seconds]
gildo has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
<reactormonk>
anything fancy to talk with an REST API in xml? or just good old net/http?
maz-dev has joined #ruby
bradhe has joined #ruby
ftiasch2 has quit [Ping timeout: 240 seconds]
tesuji has joined #ruby
sayan has joined #ruby
io_syl has quit [Quit: io_syl]
<lurch_>
reactormonk: not sure i understand the 'rest api in xml' part, but fwiw, we use httparty for our rest calls
Al_ has joined #ruby
Nogbit has left #ruby [#ruby]
dodosan has quit [Remote host closed the connection]
starfox21 has joined #ruby
adeponte has joined #ruby
seich- has joined #ruby
ssvo has joined #ruby
Nilium has quit [Ping timeout: 240 seconds]
lurch__ has joined #ruby
ahawkins has joined #ruby
jonkri has joined #ruby
ferr has quit [Read error: Connection reset by peer]
lurch_ has quit [Ping timeout: 264 seconds]
lurch__ is now known as lurch_
mist has quit [Quit: leaving]
<bzitzow>
What's the best ruby courses available?
hardbit has quit [Quit: hardbit]
mneorr has quit [Remote host closed the connection]
s0ny123 has joined #ruby
Nilium has joined #ruby
pskosinski has joined #ruby
freerobby has joined #ruby
Coffers has joined #ruby
jokke has quit [Quit: WeeChat 0.4.1]
kiri has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ssvo has quit [Ping timeout: 240 seconds]
jokke has joined #ruby
fgo has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 245 seconds]
ftiasch2 has joined #ruby
jds_ has joined #ruby
persand has quit [Quit: persand]
gr33n7007h has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
mrmist has joined #ruby
companion is now known as Companion
basex has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
persand has joined #ruby
artm has left #ruby [#ruby]
artm has joined #ruby
[[thufir]] has quit [Ping timeout: 245 seconds]
sergicles has quit [Quit: sergicles]
iliketur_ has quit [Quit: zzzzz…..]
lysw123 has quit [Quit: lysw123]
troessner has joined #ruby
Spami has joined #ruby
camilasan has joined #ruby
tonni has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
seich- has quit [Ping timeout: 240 seconds]
bzitzow has quit [Ping timeout: 240 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
sergicles has joined #ruby
bricker has joined #ruby
alup has joined #ruby
user258467 has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
jds_ has quit [Remote host closed the connection]
timonv has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
nomenkun has joined #ruby
Elhu has joined #ruby
Xeago has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
relix has joined #ruby
<Xeago>
what to do against a soar throat
<Xeago>
drinking water makes it worse
<Xeago>
the swallowing is the worst to be honest
tonni has joined #ruby
<tobiasvl>
drink something hot
<tobiasvl>
like tea
<tobiasvl>
with some lubricating honey
<flaccid>
smoke some crack
kofno has joined #ruby
<Kelet>
Eat spicy ramen
tvw has joined #ruby
mansi has joined #ruby
sergicles has quit [Quit: sergicles]
Al_ has quit [Quit: Al_]
freerobby has joined #ruby
maroloccio has joined #ruby
snovak has joined #ruby
axeman- has quit [Remote host closed the connection]
sayan has joined #ruby
ndrei has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
axeman- has joined #ruby
Mon_Ouie has joined #ruby
Anticom has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 245 seconds]
snovak has quit [Ping timeout: 245 seconds]
MrZYX|off is now known as MrZYX
mahmoudimus has joined #ruby
Heskie has joined #ruby
Zai00 has joined #ruby
maz-dev has quit [Remote host closed the connection]
marr has joined #ruby
Trynemjoel2 has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
dweeb_ has joined #ruby
gyzmodo has joined #ruby
atmosx has joined #ruby
parzo has joined #ruby
Wildhoney has joined #ruby
kilophoton has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
niceguyjames has joined #ruby
_Bravado_ has quit [Quit: _Bravado_]
AndChat| has quit [Ping timeout: 248 seconds]
noname001 has joined #ruby
mneorr has joined #ruby
basex has quit [Quit: basex]
JohnBat26 has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
parzo has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
filipe has quit [Read error: Operation timed out]
parzo has joined #ruby
dodosan has joined #ruby
m4dm4n has joined #ruby
<shevy>
Xeago depends... if it is the main problem of if you got some flu or infection, but hot tea always helps alleviate throat pain
freerobby has joined #ruby
dodosan has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
bricker has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
lsmola has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 260 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
<m4dm4n>
Hello Folks
<m4dm4n>
Can I find a ruby developer here? I want to talk about a problem
<tobiasvl>
m4dm4n: i think everyone here's a ruby developer
<flaccid>
talk
timonv has quit [Remote host closed the connection]
<m4dm4n>
tobiasvl: Can I send Pm?
filipe has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ferdev has joined #ruby
<tobiasvl>
m4dm4n: absolutely not
<m4dm4n>
Why?
<tobiasvl>
just ask your question here, then anyone who feels they can answer can do so
<flaccid>
m4dm4n: learn how to use irc
browndawg has quit [Read error: Connection timed out]
<m4dm4n>
My questions are about Low level coding
<apeiros>
m4dm4n: pm is somewhat "personal consulting", and that usually costs money ;-)
<flaccid>
m4dm4n: ask, don't beat around the bush
<m4dm4n>
Do you know anything about Malwares?
<flaccid>
that isn't a ruby question, next!
<apeiros>
flaccid: no need to be flippant. he's obviously new to irc.
browndawg has joined #ruby
<apeiros>
m4dm4n: please, don't ask meta-questions. ask the real question.
<flaccid>
apeiros: flippant is good
ndrei has quit [Ping timeout: 276 seconds]
<flaccid>
hey don't be flippant!
<m4dm4n>
How can I Read ruby code and develop it?
<m4dm4n>
is it hard?
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
<apeiros>
m4dm4n: ruby is a relatively easy to learn language. try and see.
<flaccid>
you can read it with your eyes and how hard it is depends on how stupid or smart you are :)
Iszak has joined #ruby
<m4dm4n>
Good answer
Iszak has quit [Max SendQ exceeded]
<m4dm4n>
I know ruby have amany codes but how can I start as a beginner
Spami has quit [Quit: This computer has gone to sleep]
<apeiros>
like any other language. you buy a book, you search google for tutorials, etc.
<mikecmpbll>
yeah, i think my bug bear is with array#delete.
bigkevmcd has quit [Client Quit]
bigkevmcd_ has joined #ruby
<mikecmpbll>
it's behaviour is inconsistent with all the conventions
bigkevmcd_ is now known as bigkevmcd
cha1tanya has joined #ruby
bigkevmcd has quit [Max SendQ exceeded]
pskosinski has joined #ruby
<shevy>
"Google App Engine applications can be written in the Go, Java, Python or PHP programming languages." waaah google hates ruby?
<mikecmpbll>
and there's no version of delete that isn't in place, either. often found myself needing that.
rbento has joined #ruby
rbento has quit [Max SendQ exceeded]
love_color_text has joined #ruby
sayan has joined #ruby
ehaliewicz has quit [Ping timeout: 264 seconds]
parzo has quit [Ping timeout: 245 seconds]
bigkevmcd has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
bigkevmcd has quit [Max SendQ exceeded]
adeponte has joined #ruby
bigkevmcd has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
bigkevmcd has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
seich- has joined #ruby
pedda has joined #ruby
<matti>
;]
blaxter_ has joined #ruby
lsmola has quit [Ping timeout: 245 seconds]
eoinkelly has quit [Quit: eoinkelly]
Lewix has quit [Write error: Broken pipe]
bigkevmcd has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
Voiden has joined #ruby
nari has joined #ruby
basex has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
razi has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
pierre1 has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
jefflyne has joined #ruby
blackmesa has joined #ruby
jefflyne has quit [Max SendQ exceeded]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jefflyne has joined #ruby
end_guy has joined #ruby
lsmola has joined #ruby
flaccid has quit [Read error: Connection reset by peer]
atno has quit [Ping timeout: 246 seconds]
razi has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
seich- has joined #ruby
razi has quit [Client Quit]
juo has quit [Ping timeout: 240 seconds]
timmow has quit [Ping timeout: 240 seconds]
parzo_ has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 256 seconds]
parzo has joined #ruby
BeanDip_ has quit [Quit: No Ping reply in 180 seconds.]
BeanDip_ has joined #ruby
vlad_starkov has joined #ruby
ewnd9 has quit [Ping timeout: 256 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
timmow has joined #ruby
juo has joined #ruby
davidcel- has joined #ruby
ffio has joined #ruby
atno has joined #ruby
razi has joined #ruby
ndrei_ has joined #ruby
ndrei has quit [Quit: leaving]
timmow has quit [Ping timeout: 240 seconds]
visof has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
timmow has joined #ruby
BRMatt has joined #ruby
dash_ has quit [Quit: dash_]
<visof>
hi
<visof>
is there anyone here using aws-sdk?
<visof>
i try to create elb but i got this error: .rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.15.0/lib/aws/core/client.rb:366:in `return_or_raise': Signature expired: 20130828T095630Z is now earlier than 20130828T095754Z (20130828T100254Z - 5 min.) (AWS::ELB::Errors::SignatureDoesNotMatch)
sevenseacat has quit [Quit: Leaving.]
<visof>
what is the meaning of this and how can fix it?
kofno has joined #ruby
mansi has joined #ruby
aaronmcadam has joined #ruby
joonty has joined #ruby
Xaitec has joined #ruby
Xaitec has quit [Remote host closed the connection]
snovak has joined #ruby
freerobby has joined #ruby
kofno has quit [Ping timeout: 276 seconds]
parzo_ has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
jbpros has quit [Quit: jbpros]
BizarreCake has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
razi has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
parzo has quit [Ping timeout: 245 seconds]
rickmasta has joined #ruby
relix has joined #ruby
afei has quit [Remote host closed the connection]
razi has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
Domon has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
threeturn has joined #ruby
Domon has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
aryaching_ has joined #ruby
rdark has quit [Ping timeout: 260 seconds]
Domon has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbpros has joined #ruby
rdark has joined #ruby
relix has joined #ruby
threeturn has quit [Quit: threeturn]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buzzybron has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 245 seconds]
lxsameer has quit [Quit: Leaving]
aryaching has joined #ruby
buzzybron has joined #ruby
buzzybron has quit [Client Quit]
aryaching_ has quit [Ping timeout: 264 seconds]
Liothen has joined #ruby
weems2 has joined #ruby
lucazi has joined #ruby
realDAB has joined #ruby
Domon has joined #ruby
weems has quit [Ping timeout: 246 seconds]
weems2 is now known as pweems
ryandeussing has joined #ruby
rbento has joined #ruby
rbento has quit [Max SendQ exceeded]
rdxc has joined #ruby
DanBoy has quit [Quit: Leaving]
rbento has joined #ruby
freerobby has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
love_color_text has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
mansi has joined #ruby
<bartj3>
Hi, i'm attempting to do a basic url validation but i'm running into an issue, i'm using URI.parse and expect a URI::InvalidURIError but it isn't thrown when trying URI.parse('im-no-url') (result is #<URI::Generic:0x007fb393c96c08 URL:im-no-url>).
Guedes has joined #ruby
Guedes has left #ruby [#ruby]
shaunbaker has quit [Remote host closed the connection]
rcosta has joined #ruby
freerobby has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has joined #ruby
<_br_>
bartj3: Validating urls is a tricky thing. Probably you want to limit it to a subset uri.kind_of?(URI::HTTP) and if not throw a URI::InvalidURIError
failshell has joined #ruby
threeturn has joined #ruby
YaNakilon has quit [Ping timeout: 245 seconds]
browndawg has quit [Quit: Leaving.]
freerobby has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
camilasan has quit [Remote host closed the connection]
cha1tanya has quit [Ping timeout: 240 seconds]
axeman- has joined #ruby
camilasan has joined #ruby
sparklr has joined #ruby
<bartj3>
_br_: the problem is that i don't expect the user to enter http:// or http:// in his url, or at least most of them won't, so i'll prepend if needed… but uri.parse('http://notaurl') still validates. Maybe i should just use a regexp
<_br_>
sparklr: For local development? It says it already in the readme.
<bartj3>
_br_ i'll look into them but in a an earlier search it seemed like most of them were way to overengineered, i'll let you know what i end up with ;)
<_br_>
bartj3: Its also a good idea if you are working with a web service here to throw in ParsleyJS into the mix..
<sparklr>
_br_: it works locally, no issues with that. I need to run on the aws server and on port 80
<_br_>
sparklr: there is a config.ru file, you can change the port there
<sparklr>
_br_: well, how can i specify the port and where exactly can i specify the port?
realDAB has quit [Quit: realDAB]
<_br_>
sparklr: What kind of app server are you using?
realDAB has joined #ruby
<sparklr>
Nginx and Apache.
<sparklr>
_br_: you mean rails server?
iPhoneMRZ has joined #ruby
Zai00 has quit [Quit: Zai00]
<sparklr>
_br_: I've a ruby & rails stack installed on this aws instance. I cloned this repo. Now i want to deploy this app but i have no idea how to do it.
cha1tanya has joined #ruby
aryaching_ has joined #ruby
sevenseacat has joined #ruby
iPhoneMRZ has quit [Client Quit]
dawkirst has joined #ruby
_md has quit [Quit: Leaving...]
thirdknife_ has quit [Ping timeout: 264 seconds]
Criztian has quit [Remote host closed the connection]
aryaching_ has quit [Client Quit]
<_br_>
sparklr: This doesn't look like a rails app to me. Config.ru means its using rack middleware. http://rack.github.io/ Rack has e.g. a simple tool called rackup that has a parameter for port, e.g. rackup -p 80 config.ru . That being said, you should put your app server behind a battle tested reverse proxy such as e.g. nginx. Finally, this repo seems to be indended for heroku usage.
ldnunes has joined #ruby
cha1tanya has quit [Client Quit]
dangerousdave has joined #ruby
ryandeussing has joined #ruby
<sparklr>
_br_: yes true. But heroku seems to be too slow and so i am starting it on aws instance. The use case is similar for aws instance
<sparklr>
_br_: I need use rackup to start it, right?
camilasan has quit [Remote host closed the connection]
AlSquire has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
cads has joined #ruby
tonni_ has joined #ruby
AlSquire has joined #ruby
soba has quit [Ping timeout: 264 seconds]
<sparklr>
_br_: how can i use thin app server to run config.ru ?
Bofu2U has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 245 seconds]
tonni has quit [Ping timeout: 246 seconds]
narcan has quit [Ping timeout: 245 seconds]
Tricon has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Ripp__ has quit [Quit: Ripp__]
ndrei_ has quit [Read error: Connection reset by peer]
Ripp__ has joined #ruby
mklappstuhl has joined #ruby
timonv has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
__Cr0 has quit []
timonv has joined #ruby
defaultro has quit [Quit: defaultro]
realDAB has quit [Quit: realDAB]
yacks has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
browndawg has quit [Read error: Connection timed out]
<sparklr>
I've 8 ruby rack app servers running on port 3000-3007, how do I port forward in round robin from port 80 to each of them? ?
ffio has quit [Ping timeout: 246 seconds]
_md has joined #ruby
browndawg has joined #ruby
enjoi has joined #ruby
randomautomator has quit [Remote host closed the connection]
wmoxam has joined #ruby
bluOxigen has joined #ruby
randomautomator has joined #ruby
<hoelzro>
sparklr: nginx can do that for you
S0da has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
<sparklr>
hoelzro: cool. i cant find info on net. can give me search terms to this ?
<hoelzro>
nginx proxy round robin
<_br_>
sparklr: Don't do multiplexing this way. Use e.g. Unicorn or Puma as your app server.
lurch_ has quit [Ping timeout: 245 seconds]
<_br_>
hoelzro: NGinx is doing well for load balancing, but letting the Kernel do that for you is maybe better. (Unicorn)
mklappstuhl has quit [Remote host closed the connection]
<sparklr>
_br_: can you send me some good links to deploy a rack app to unicorn or puma?
<hoelzro>
fair enough
<_br_>
sparklr: Use the manual, luke.
hogeo has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 245 seconds]
<sparklr>
_br_: im sorry i cant find "luke rack" on google.
heath has joined #ruby
<sparklr>
_br_: can you be more specific or i'll appreciate if you send the links across :p
thirdknife_ has joined #ruby
rbento has quit [Quit: ZZZzzz…]
Zai00 has joined #ruby
Ripp__ has quit [Quit: Ripp__]
randomautomator has quit [Ping timeout: 264 seconds]
lurch_ has joined #ruby
<_br_>
sparklr: That was a pun with StarWars reference. Never mind.
aryaching_ has joined #ruby
<_br_>
sparklr: Multiplexing your app manually e.g. starting 10 rackup apps makes no sense.
<sparklr>
_br_: lol okay. any good links to deploy a rack app using Unicorn or Puma?
<_br_>
sparklr: For that purpose Unicorn, Rainbows, Puma, Passenger, and many more was invented.
jdenen has joined #ruby
hogeo has joined #ruby
<_br_>
sparklr: Unicorn e.g. spawns a master process which in turn spawns worker processes (as many as you configured), kills them and automatically restarts them when needed. Everything works via sockets and the (I'm assuming Linux here) Linux kernel handles the scheduling.
<sparklr>
_br_: this is so cool. But HOW DO I DO ALL THIS?
iamjarv__ has quit [Remote host closed the connection]
niceguyjames has joined #ruby
kvirani has joined #ruby
iamjarv__ has joined #ruby
spider-mario has joined #ruby
iamjarvo_ has quit [Ping timeout: 245 seconds]
Ripp__ has quit [Quit: Ripp__]
Trynemjoel has joined #ruby
the_fallen has joined #ruby
blackmesa has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
rdark has quit [Ping timeout: 256 seconds]
Wildhoney has quit [Quit: Wildhoney]
skaby has joined #ruby
mfridh has joined #ruby
osvico has joined #ruby
sparklr has left #ruby [#ruby]
haxrbyte_ has quit [Remote host closed the connection]
the_fallen has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<lotherk>
is someone using trollop and may give me a simple example of #conflicts? I'm 'new' to ruby and it's api description is not clear to me on the first sight. I don't understand what syms is (http://trollop.rubyforge.org/trollop/Trollop/Parser.html#M000006). I know it's an array but dunno how it shall look like. maybe I'm completely wrong. some hints on something would be great.
colonolGron has quit [Quit: Lost terminal]
Liothen has quit [Quit: System of a down……]
seich- has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
devoldmx3 has joined #ruby
tonni_ has quit [Remote host closed the connection]
germanstudent has quit [Ping timeout: 256 seconds]
persand has joined #ruby
tonni has joined #ruby
philcrissman_ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
wmoxam has joined #ruby
ryandeussing has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
germanstudent has joined #ruby
Olipro has joined #ruby
Lobo has joined #ruby
Lobo is now known as Guest87324
Guest87324 is now known as Armadio
quazimodo has joined #ruby
Zeeraw has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
mansi has joined #ruby
<quazimodo>
so there's this thing about ruby that I'm seeing, that I'm not sure I like... which is making me grep a lot more than I'd like to
<quazimodo>
so what's the current thought among ruby dudes
<quazimodo>
extending classes ... scares me
<Armadio>
you mean monkey patching?
dash_ has joined #ruby
<Armadio>
it is generally something that is not used but as a last resort
sambao21 has joined #ruby
snovak has joined #ruby
<quazimodo>
Armadio: yeah i guess it really is monkey patching, only i'm seeing it in the same source
<sevenseacat>
re-opening classes?
<Armadio>
then it is just bad practice, it should be using a module and ocmpositino :)
jefflyne has joined #ruby
<Armadio>
*composition
<quazimodo>
ActiveSupport, on loading, adds class attribute accessors to ActionView::Helpers::FormBuilder
<quazimodo>
and it... annoyed me
<quazimodo>
but I'm not sure if it's justified
<Armadio>
oh, that? well, it is fine
<Armadio>
it is part of Ruby
kofno has quit [Remote host closed the connection]
<Armadio>
I would still use modules but the Rails team are better programmers than me :)
AlSquire has quit [Remote host closed the connection]
<quazimodo>
<- cries a teeny bit
kaldrenon has joined #ruby
<quazimodo>
i once extended Date
<quazimodo>
then later I was all like 'but baby, no'
freerobby has joined #ruby
Wildhoney has joined #ruby
breakingthings has joined #ruby
AlSquire has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
iamjarv__ has quit [Remote host closed the connection]
rcosta has joined #ruby
<staafl>
what's the proper way to get all but the first n elements of an array ?
iamjarvo_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<YaNakilon>
all the thing you ever say is 'your code smells', 'u have no experience' and other bullshit
parzo has quit [Read error: Connection reset by peer]
<YaNakilon>
probably you are too young
* sevenseacat
raises eyebrow
Banistergalaxy has quit [Ping timeout: 240 seconds]
subbyyy has quit [Quit: none 0.3.9.2]
<apeiros>
YaNakilon: um, lol? maybe you should get a clue then.
devoldmx has joined #ruby
<apeiros>
also, try some sweets, maybe you're less bitter then
dangerousdave has quit [Quit: Leaving...]
<_br_>
YaNakilon: apeiros comment was specific to the question, it was not just some generalism as you point out wrongly. What you wrote there is a plain old ad hominem attack.
<Hanmac>
*apeiros gains an heart-container - max life has increased*
* apeiros
humms zelda music
<apeiros>
thx Hanmac :)
dangerousdave has joined #ruby
basex has quit [Quit: basex]
rbento has quit [Quit: ┐('~`;)┌]
emergion has joined #ruby
iamjarvo_ has joined #ruby
<apeiros>
YaNakilon: and yes, of course there are occasions where I'm wrong. but you'd be well advised to still take my comments seriously. chances that I'm *right* when it comes to ruby & coding are outstandingly high.
<tobiasvl>
but apeiros, maybe you are too young
sambao21 has quit [Client Quit]
<apeiros>
tobiasvl: heh
ananthakumaran has quit [Quit: Leaving.]
parzo_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<tobiasvl>
i mean probably
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest53061
iamjarvo has quit [Ping timeout: 256 seconds]
mengu has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
parzo has joined #ruby
starfox21 has quit [Quit: starfox21]
ndngvr has joined #ruby
BillCriswell has joined #ruby
<YaNakilon>
typical chat nerd, thinking too high about himself
<bartj3>
isn't that a general programmers attribute? :)
dhruvasagar has joined #ruby
endash has joined #ruby
<apeiros>
bartj3: na, hubris is. and that's good (according to larry wall)
Banistergalaxy has joined #ruby
marr has quit [Ping timeout: 264 seconds]
<havenwood>
Hobbits make great programmers.
_serial_ has joined #ruby
blackmesa has quit [Remote host closed the connection]
<apeiros>
YaNakilon: you know, as somebody new to this channel, you probably should give yourself a bit more time to form your opinion. but of course, you can mark yourself by just blurting out whatever passes through your head at the time.
Nisstyre has quit [Quit: Leaving]
<YaNakilon>
blablabla
<apeiros>
YaNakilon: also, you're free to use /ignore me and not be pestering around
<YaNakilon>
blablabla
rickmasta has joined #ruby
sam113101 is now known as sam113101_afk
<havenwood>
YaNakilon: MINASWAN.
tkuchiki has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
pipework has joined #ruby
bklane has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
<apeiros>
I don't live by MINSWAN. I'm perfectly happy giving certain people a helpful boot to find the door.
<havenwood>
That is nice, just nice to us not them. :P
ghr has quit [Quit: Computer has gone to sleep.]
_serial_ has quit [Quit: Ex-Chat]
<apeiros>
^^
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
<sevenseacat>
lol
emanu has quit [Quit: emanu]
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
jefflyne has joined #ruby
capsuley has quit [Ping timeout: 240 seconds]
rickmasta has quit [Quit: Leaving...]
xeon has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
krz has joined #ruby
xeon has quit [Max SendQ exceeded]
krz has quit [Changing host]
krz has joined #ruby
browndawg has quit [Read error: Connection timed out]
kpshek has joined #ruby
_maes_ has joined #ruby
Criztian has joined #ruby
browndawg has joined #ruby
<_br_>
Oh man I hate marketing foobar. Wish there was a lorem ipsum like gem for that ....
aryaching has joined #ruby
<apeiros>
buzzword generator?
iamjarvo has joined #ruby
Rym has joined #ruby
<ericwood>
_br_: faker not good enough for ya?
iamjarvo has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<_br_>
ericwood: Ah like rand-exp gem. No, I ment real sounding text that could pass as marketing foobar with buzzwords and all instead of me writing this buzzword ridden nonsense.
<_br_>
apeiros: bingo...
xeon has joined #ruby
<ericwood>
markov chains!
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
<_br_>
yeah they are great fun... did you see this one http://pdos.csail.mit.edu/scigen/ it nearly passed a peer-reviewed conference ..
emanu has joined #ruby
kvirani has joined #ruby
<_br_>
apeiros: ah interesting, this could be it! :)
akells has quit [Read error: Connection reset by peer]
basex has quit [Quit: basex]
skinkitten has joined #ruby
Lewix has joined #ruby
akells has joined #ruby
<apeiros>
heh, scigen example is quite impressive
blackmesa has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jlebrech has quit [Ping timeout: 245 seconds]
<apeiros>
in a graph: "latency (celsius)" - hehe
shunt has joined #ruby
obs has quit [Remote host closed the connection]
<apeiros>
my router has a latency of 21°C
iamjarvo_ has quit [Remote host closed the connection]
xeon has quit [Max SendQ exceeded]
iamjarvo has quit [Ping timeout: 245 seconds]
<_br_>
yeah the paper output is really good, quite funny. Not a chicken chicken chicken though, even more nuts. http://www.wired.com/wiredscience/2007/05/post_1/ aka Academia and Publishing is really in the toilet.
obs has joined #ruby
Lewix has quit [Ping timeout: 240 seconds]
cs02rm0 has quit [Read error: Connection reset by peer]
cads has quit [Ping timeout: 245 seconds]
<apeiros>
aaaah, yes, I remember
jlebrech has joined #ruby
<apeiros>
still amusing, but couldn't watch the 4min through :)
seich- has joined #ruby
nari has quit [Ping timeout: 260 seconds]
philcrissman_ has joined #ruby
<dweeb_>
Can I use mechanize with another http client? (excon for example)
ftiasch2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
shouya has joined #ruby
DrShoggoth has joined #ruby
interactionjaxsn has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
acrussell has joined #ruby
xeon has joined #ruby
acrussell has left #ruby [#ruby]
bradhe has joined #ruby
RORgasm has joined #ruby
philcrissman_ has quit [Ping timeout: 245 seconds]
rcosta has joined #ruby
platzhirsch has joined #ruby
noopq has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
vlad_starkov has joined #ruby
rhys has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<platzhirsch>
Computing the average of an array: scores.reduce(:+) / scores.size. I have the problem, that this will raise an ZeroDivision Exception if the array is empty, any ideas to keep the computation short without using if scores.empty? 0.0 else scores.reduce(:+) / scores.size end
vlad_starkov has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
sambao21 has joined #ruby
<apeiros>
platzhirsch: fdiv
<Hanmac>
scores.inject(0.0,:+) / scores.size
Nisstyre-laptop has quit [Ping timeout: 245 seconds]
<apeiros>
if you're happy with infinity as a possible answer
snath has quit [Ping timeout: 246 seconds]
<YaNakilon>
platzhirsch what answer do you want to get as "average" if array is really empty?
<apeiros>
problem with averages over a zero size is that no value is really correct. i.e., where do you use the result? any calculation based on that should not be valid.
bradhe has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<platzhirsch>
apeiros: no, but I didn't know this method yet. That will come very handy for my refactoring, because I am not a big fan of adding .to_f at all the computations
<Hanmac>
apeiros: sum.fdiv(size) would return NaN for empty array
<apeiros>
I use '-' in statistical output where averages with no input are displayed
<apeiros>
since the average isn't 0 there.
ffio has joined #ruby
<platzhirsch>
apeiros: true, but my method is designed to return a score on the compute method, that I implement this internally through the average is implementation detail
vlad_starkov has joined #ruby
<apeiros>
platzhirsch: nil or NaN then IMO.
<platzhirsch>
ok :)
<apeiros>
and handle displaying it as a non-numeric in the "view" part (whatever that is in your case)
devoldmx has quit [Ping timeout: 240 seconds]
sunnymolini has joined #ruby
<YaNakilon>
platzhirsch: s = scores.inject(:+); return s ? s/scores.size : 0.0
chrisja has joined #ruby
Rym has quit [Ping timeout: 256 seconds]
rickmasta has joined #ruby
<platzhirsch>
yeah that's a good point, because currently I used the 0.0 then again to compute max, min, avg, median over a series of these results and using the 0.0 as part of these computations is just plain wrong, I would need to filter it out
devoldmx has joined #ruby
<platzhirsch>
YaNakilon: that looks nice
sambao21 has joined #ruby
lurch__ has joined #ruby
<apeiros>
YaNakilon, platzhirsch: should probably replace s/scores.size with s.fdiv(scores.size), unless you truly want integer division
rippa has joined #ruby
sunnymolini has quit [Client Quit]
<YaNakilon>
true
emanu has quit [Quit: emanu]
terrellt has joined #ruby
camilasan has quit [Remote host closed the connection]
lurch_ has quit [Ping timeout: 240 seconds]
lurch__ is now known as lurch_
jerius has quit [Ping timeout: 276 seconds]
camilasan has joined #ruby
<platzhirsch>
thanksk for the input
xeon has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnBat26 has quit [Ping timeout: 260 seconds]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
sparq_ has quit [Ping timeout: 264 seconds]
lemonsparrow has quit [Ping timeout: 250 seconds]
__username__ has quit [Quit: none 0.4.1]
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
lukec has quit [Quit: lukec]
Ripp__ has quit [Quit: Ripp__]
lnormous has joined #ruby
devoldmx3 has joined #ruby
__username__ has joined #ruby
__username__ has quit [Client Quit]
__username__ has joined #ruby
Lewix has joined #ruby
__username__ has quit [Client Quit]
devoldmx has quit [Ping timeout: 264 seconds]
visof has quit [Remote host closed the connection]
iliketur_ has joined #ruby
__username__ has joined #ruby
colonolGron has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
devoldmx3 has quit [Read error: Connection reset by peer]
iliketur_ has quit [Client Quit]
devoldmx has joined #ruby
__username__ has quit [Client Quit]
r00ster has quit [Quit: Peace]
__username__ has joined #ruby
r00ster has joined #ruby
Armadio has quit [Remote host closed the connection]
Xeago has joined #ruby
philcrissman_ has joined #ruby
r00ster has quit [Client Quit]
v0n has quit [Read error: Connection reset by peer]
brbcoding has joined #ruby
<_br_>
oh those are horrible indeed
ryandeussing has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
DrCode has quit [Ping timeout: 240 seconds]
ryandeussing has joined #ruby
shredding has quit [Quit: shredding]
philcrissman_ has quit [Ping timeout: 264 seconds]
[[thufir]] has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Taranis has joined #ruby
timonv has quit [Remote host closed the connection]
zeade has joined #ruby
[[thufir]] has quit [Max SendQ exceeded]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
zigomir_ has quit [Read error: Connection reset by peer]
zigomir_ has joined #ruby
[[thufir]] has joined #ruby
adeponte has joined #ruby
camilasan has quit [Remote host closed the connection]
[[thufir]] has quit [Max SendQ exceeded]
havenwood has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
[[thufir]] has joined #ruby
hasrb has joined #ruby
stepan_ has joined #ruby
[[thufir]] has quit [Max SendQ exceeded]
devoldmx has joined #ruby
tvw has quit []
<aedorn>
I also hate Windows updates... "we know you want to shutdown this hardly-used virtual machine, but first we need 45 minutes of your time to install 11 updates."
noname001 has quit [Ping timeout: 245 seconds]
mrwn has quit [Quit: Page closed]
senayar_ has quit [Ping timeout: 245 seconds]
starfox21 has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
<stepan_>
Hey guys, I'm a noob that finished railstutorial and codecademy, and am about to do an online challenge in a few days. I'd love to hire someone I can bounce questions off of as I go through it. Anyone interested in helping a noob master Ruby?
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
DrCode has joined #ruby
nowthatsamatt has joined #ruby
andrew has joined #ruby
fantazo has quit [Ping timeout: 245 seconds]
<Xeago>
stepan_: so your asking us to answer questions that you come up with during an online challenge?
Davey has joined #ruby
<Xeago>
if so, what is the online challenge?
futilegames has quit [Quit: futilegames]
andrew is now known as Guest28940
devoldmx has quit [Read error: Connection reset by peer]
defaultro has quit [Quit: defaultro]
goganchic has joined #ruby
Guest28940 has quit [Remote host closed the connection]
<stepan_>
Xeago_: Yup :). The first challenge is basic questions on ruby, to make sure I understand arrays, hashes, loops etc correctly. It's about an hour long
pierre1 has joined #ruby
<Xeago>
Maybe you want to take some of my recruitment challenges? :)
<aedorn>
Xeago: I want to take some of your recruitment challenges!
defaultro has joined #ruby
<Xeago>
alrighty, I'll post em, give me a sec
pierre1 has quit [Max SendQ exceeded]
bzitzow has joined #ruby
pierre1 has joined #ruby
kofno has joined #ruby
<Xeago>
Please keep them to yourself, do not submit the contents anywhere, don't want googlers finding it
anonymuse has quit [Remote host closed the connection]
digital-ghost has quit [Read error: Connection reset by peer]
starfox21 has quit [Quit: starfox21]
lukec has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
turduks has joined #ruby
devoldmx has joined #ruby
<aedorn>
Wish I could have done code-based interviews instead of the garbage interview routine I was forced into to get new hires. I lobbied for a change for a few months, but HR's method was obviously perfect. =(
twoism has joined #ruby
emanu has joined #ruby
turduks has quit [Client Quit]
browndawg has joined #ruby
turduks has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<_br_>
aedorn: Oh that sounds bad, how is the overall coding skill in the organization?
robbyoconnor has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
devoldmx has quit [Read error: Connection reset by peer]
Tricon has quit [Quit: Bye!]
robbyoconnor has joined #ruby
<aedorn>
_br_: If a select 5 people left the company out of the 250 something, the company wouldn't be able to get a product out the door any longer. So ... bad. I bitch about my company often. ;)
obs has quit [Quit: Saliendo]
fmcgeough has joined #ruby
Spami has joined #ruby
__username__ has quit [Ping timeout: 245 seconds]
<_br_>
aedorn: hehe I see... well hope you can keep your sanity there, sounds not so fun.
klaut has quit [Remote host closed the connection]
dweeb_ has quit [Quit: Computer has gone to sleep.]
agjacome has joined #ruby
S0da has joined #ruby
ehaliewicz has joined #ruby
alekst has joined #ruby
hasrb has joined #ruby
kpshek has quit []
Wildhoney has quit [Quit: Wildhoney]
akells has quit [Read error: Connection reset by peer]
noopq has joined #ruby
<aedorn>
That's not ~250 developers, though. That's electrical engineers, circuit designers, product managers, project managers, software engineers, and so forth. And we can visibly tell which products are doing the best, which people worked on those, and the track record of those people. So there's actual data backing up the 5.
timonv has quit [Remote host closed the connection]
iliketur_ has joined #ruby
carraroj has joined #ruby
akells has joined #ruby
RichardBaker has joined #ruby
devoldmx has joined #ruby
rickmasta has joined #ruby
jonahR has joined #ruby
jonahR has quit [Client Quit]
ebobby has joined #ruby
pwh has quit [Quit: pwh]
sayan has quit [Ping timeout: 264 seconds]
turduks has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Monie has joined #ruby
rlqualls has joined #ruby
ebouchut has joined #ruby
altamic has joined #ruby
altamic has left #ruby [#ruby]
<Lewix>
aedorn: I don't believe in technical interviews
Xeago has joined #ruby
<Lewix>
aedorn: Just like I don't believe in GPA's
niceguyjames has quit [Quit: Computer has gone to sleep.]
turduks has joined #ruby
* rlqualls
<Lewix>
aedorn: it's short sighted
<terrellt>
Lewix: So what do you do - hire them and hope for the best?
<terrellt>
aedorn: That, my friend, is what is called the "bus factor."
<terrellt>
5's better than here - it's about two.
Elhu has quit [Quit: Computer has gone to sleep.]
aTr_ has joined #ruby
<aTr_>
hi
kpshek has joined #ruby
<Lewix>
terrellt: I would gauge their passion, how much they like the subject matter with a few technical question but not for the sake of getting the correct answer but rather their thought process
shaunbaker has quit [Remote host closed the connection]
dankest has joined #ruby
<aTr_>
I have strings like this --> "Peter 22 Jack 23" and I would like to save an array with the elements [Peter,22,Jack,23]
<aTr_>
what is the best way to do that
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
<terrellt>
Lewix: That's admirable, but it's almost always preferrable to hire a person who can hit the ground running - you should at least be able to gauge the level to which they can do that.
<aedorn>
terrellt: I don't know. I think if 2 people got hit by a bus that would stop production, also. 5 all in different aspects, but I'm sure some can take over the others responsibility at least a little bit, which is why I'm not sure. I do know if all 5 were gone, that is pretty much it.
cpruitt has joined #ruby
rdark has quit [Quit: leaving]
<Lewix>
terrellt: that's a misconception; I recently read a good article about it with good data - let me see if I can find it
<apeiros>
first one modifies the array, second one returns a new array
MrThePlague has quit [Read error: Connection reset by peer]
aeontech has joined #ruby
adamholt has joined #ruby
<aedorn>
Lewix: Passion is great, but most people can fake passion. I have a coworker here that's really excited and passionate about the things he's trying to do. He just can't do said things because he doesn't know how yet. We still need a way to ask people if they have the want to succeed, and the ability to do so.
Heskie has quit []
goganchic has quit []
mephux has quit [Quit: w0ots...]
__username__ has joined #ruby
Companion is now known as companion
fms has left #ruby [#ruby]
c0rn has joined #ruby
Guest66554 has joined #ruby
tylersmi_ has joined #ruby
hiroyuki has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
VTLob has quit [Quit: VTLob]
tylersmith has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
parzo has quit [Remote host closed the connection]
VTLob has joined #ruby
<Lewix>
aedorn: as I said, most HR agrees with you. That's the conventional way of thinking about it but I'd argue against it. It's very short sighted to hire based on GPA's,tests or technical questions. Actually Google itself is shifting is position and stopped asking for those things after getting insights from big data...There's a big difference between figuring out stuff where there is no obvious answer and knowing the answer already.
buibex has joined #ruby
stepan_ has joined #ruby
parzo has joined #ruby
blaxter_ has quit [Ping timeout: 245 seconds]
alex__c2022 has joined #ruby
Matriks has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
<pontiki>
i still like to watch someone solve a problem while they show and talk through their thinking on it
<terrellt>
Lewix: It depends on the time frame you're expecting to hire for, too.
<pontiki>
and also how they respond when they don't know something
Mon_Ouie has quit [Ping timeout: 245 seconds]
<Lewix>
pontiki: I agree
devoldmx has quit [Read error: Connection reset by peer]
hiroyuki has quit [Ping timeout: 245 seconds]
<pontiki>
but i've been interviewing ppl forever
Ripp__ has quit [Quit: Ripp__]
Spami has quit [Ping timeout: 264 seconds]
<LocutusOfBorg>
How do I properly close an Excel Win32OLE process? When I parse it, it hangs...
aTr_ has quit [Quit: Lost terminal]
DanKnox is now known as DanKnox_away
mrsolo has joined #ruby
srji has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
basex has quit [Ping timeout: 245 seconds]
<stepan_>
hey guys, I'm a noob who finished railstutorial and codecademy, and will be doing an hour challenge on ruby. I would love to hire someone who I can bounce questions off of as I do it. Anyone interested in helping a noob start to master ruby?
Tricon has joined #ruby
Drewch has quit [Quit: Computer has gone to sleep.]
turduks has quit []
kayloos has joined #ruby
<aedorn>
Lewix: That's why I'm advocating putting them into a work-like situation first. Give them a small problem to solve, see how they do on that, and then go from there. Not something like make optimize a red-black tree algorithm on this white board, or similar. Apply with your open source project/github account, not a resume.. etc.
turduks has joined #ruby
Wildhoney has joined #ruby
billy_ran_away has joined #ruby
<Lewix>
aedorn: agreed
carraroj has quit [Read error: Operation timed out]
<apeiros>
I guess the problem is one of scale
<apeiros>
a company like google can't interview all applicants personally
jamesaanderson has joined #ruby
iliketur_ has joined #ruby
rlqualls has quit [Quit: leaving]
devoldmx has quit [Read error: Connection reset by peer]
<apeiros>
and that's when you land at "fill out this standardized test"
iliketur_ has quit [Max SendQ exceeded]
[[thufir]] has joined #ruby
<apeiros>
which has obvious drawbacks, no matter how you dress the test
<havenwood>
stepan_: I think Jesse Storimer is offering private lessons (he is most excellent!!).
<aedorn>
Our standard interview is resume, check for degrees and work history, and then ask the equivalent questions to "what is 2+2". Hire if we like them, and then see if they work. Our problem, though, isn't just this process, it's the fact that someone who does not work out will take up to 9 months to get fired before we can replace them.
<apeiros>
havenwood: oh, I'd love something like that for C
<havenwood>
apeiros: Agree, that would actually be pretty awesome. I think I'd bite!
<apeiros>
Lewix: I'm aware
<apeiros>
havenwood: I wouldn't just bite. I'd even pay.
<pontiki>
contract-to-hire is a great thing, but you still need to know if you want to even start down that road
<aedorn>
Unless this supposed new hire goes up to the CEO, picks him up and twirls him around like a midget, I don't think they're going to get fired any quicker.
vlad_starkov has quit [Remote host closed the connection]
* apeiros
goes commute, cya
anay has quit [Remote host closed the connection]
futilegames has joined #ruby
<stepan_>
havenwood: thanks, I'll send him a message! :)
iamjarvo has quit [Remote host closed the connection]
<pontiki>
aedorn: heh, i was going along the path of this is how to get hired
devoldmx has joined #ruby
apeiros has quit [Remote host closed the connection]
boblu has joined #ruby
zacts has joined #ruby
iamjarvo has joined #ruby
<aedorn>
Short-term contracts would be great ... but there's a whole other process for contract work and that doesn't generally end well here, either.
jamesaanderson has quit [Client Quit]
tyman has joined #ruby
turduks has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
saarinen has joined #ruby
dkamioka has joined #ruby
timonv has quit [Remote host closed the connection]
<pontiki>
aedorn: yeah, sometimes companies install too much process for such things
turduks has joined #ruby
<pontiki>
i do think it should be hard to fire an employee, because then it makes alternatives more attractive
<pontiki>
such as replacement, transfer, shifting, etc
<pontiki>
re-placement
jamesaanderson has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
<pontiki>
the contract-to-hire concept to me is the most useful. both parties get a change to really check each other out, outside of the interviewing process
JadedEvan has joined #ruby
<pontiki>
chance*
cody-- has joined #ruby
v0n has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
rickmasta has quit [Quit: Leaving...]
Voiden has quit [Quit: Voiden]
iamjarvo has quit [Ping timeout: 253 seconds]
Mon_Ouie has joined #ruby
rcosta has joined #ruby
superscott[8] has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<superscott[8]>
is there a command to check which version of ruby a gem requires?
turduks has quit []
havenwood has quit [Remote host closed the connection]
pwh has joined #ruby
brennanMKE has joined #ruby
Al_ has quit [Quit: Al_]
futilegames has quit [Quit: futilegames]
havenwood has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dodosan has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
tkuchiki has joined #ruby
mikepack has quit [Remote host closed the connection]
<waxjar>
gem specification gemname ?
<waxjar>
yaml, though
I-saac has joined #ruby
__username__ has quit [Quit: none 0.4.1]
OnionNet has left #ruby [#ruby]
iamjarvo has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
iamjarvo has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
dodosan has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
Guest66554 is now known as mephux_
mephux_ is now known as Guest21713
Wildhoney has quit [Quit: Wildhoney]
mklappstuhl has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
Guest21713 has quit [Quit: w0ots...]
[[thufir]] has quit [Max SendQ exceeded]
mephux- has joined #ruby
Ripp__ has joined #ruby
[[thufir]] has joined #ruby
thirdknife_ has joined #ruby
[[thufir]] has quit [Max SendQ exceeded]
troessner has quit [Quit: Leaving]
__username__ has joined #ruby
kayloos has quit [Remote host closed the connection]
sayan has joined #ruby
jbomo is now known as gbomo
rezzack has joined #ruby
Jake232 has joined #ruby
__username__ has quit [Client Quit]
khushildep has joined #ruby
<zacts>
will programming ruby 1.9 - pragmatic programmers still be applicable to ruby 2.0?
__username__ has joined #ruby
ferdev has quit [Quit: ferdev]
jibi has joined #ruby
BRMatt has quit [Ping timeout: 245 seconds]
<_br_>
I'm driving an old model t, can I also drive a Tesla roadster? Sure, but there will be some new stuff.
tylersmi_ has quit [Read error: Connection reset by peer]
mephux- has quit [Quit: w0ots...]
tylersmith has joined #ruby
<zacts>
ok, I see what you mean
mephux- has joined #ruby
<_br_>
:)
* zacts
checked out the 1.9 book from the library. just getting started with ruby.
<zacts>
I guess I'll check out the resources on ruby-lang.org for free books..
<_br_>
hope you have a good time learning, ask away if you are confused with something
<aedorn>
That's probably all you need to start with.
<Todd>
the rate of change within the comparison is a bit of a stretch but the underlying message is valid :)
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Remote host closed the connection]
<zacts>
ok, I hope to learn enough to be able to do ruby tapas casts
[Goodoog] has joined #ruby
<_br_>
Todd: hehe true, please feel free to patch it
ebouchut has quit [Quit: This computer has gone to sleep]
marcdel has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
blackmesa has joined #ruby
Wildhoney has joined #ruby
anonymuse has joined #ruby
stef1a has joined #ruby
<Todd>
zacts, imagine trying to fit after market parts for the model t onto the tesla roadster.. in my life that's a more accurate comparison of ruby 1.9.3 vs. ruby 2.
<Todd>
zacts, though since you're new that's probably not applicable to your current state or learning the language
anonymus_ has joined #ruby
anonymuse has quit [Read error: Connection reset by peer]
<zacts>
wow interesting.. ok. well I do think I want to focus more on 2.0
apeiros has joined #ruby
* zacts
has driven a tesla car before
<YaNakilon>
which gem is the most nice to use for JSON RPC?
<zacts>
it feels like warp drive
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
<Todd>
zacts, the amount of torque possible with electric motors is amazing
ffio has quit [Quit: WeeChat 0.4.1]
<Todd>
zacts, I'm still waiting for an electric motorcycle
tyman has quit [Quit: tyman]
<stef1a>
I have a ruby script that uses FileUtils and Find to recursively search a directory and do a regex substitution in each file. I want to do this from within a shell script. However, it *only* has the intended effect when I run it from the terminal, not from within the script. Why might this be?
tylersmith has quit [Ping timeout: 245 seconds]
<_br_>
YaNakilon: It should generate client / server for you?
jerius has quit [Quit: jerius]
<YaNakilon>
_br_ i am a client
digital-ghost has joined #ruby
<zacts>
is learn ruby the hard way worth reading?
julian-delphiki has quit [Ping timeout: 246 seconds]
<_br_>
YaNakilon: Puzzling. Can you explain a bit what you mean by RPC? Do you mean just communicate with a JSON based API ?
carraroj has joined #ruby
<zacts>
I just can't afford programming ruby yet, but I want to go ahead and start learning.
julian-delphiki has joined #ruby
tyman has joined #ruby
<YaNakilon>
_br_, there is a (not my) web server, to which i want to speak - it has json rpc and xml rpc api
sethetter has left #ruby [#ruby]
<YaNakilon>
actually i don't mind xml, if it has more update gems
Zai00 has quit [Quit: Zai00]
KobraKao has quit [Read error: Connection reset by peer]
[[thufir]] has joined #ruby
<_br_>
YaNakilon: Hm, I'm not aware of a universal 'give me your JSON RPC here is an interface'. XML if WSDL is supported can probably do that to some extent
KobraKao has joined #ruby
Nogbit has joined #ruby
saarinen has quit [Quit: saarinen]
<YaNakilon>
the example in their docs has python: import xmlrpclib
[[thufir]] has quit [Max SendQ exceeded]
<YaNakilon>
and js example uses simple-jsonrpc
tylersmith has joined #ruby
<_br_>
not aware of this stuff, try ruby toolbox?]
jerius has joined #ruby
<YaNakilon>
looks like ruby 1.9.3 stdlib has xmlrpc!
<Nogbit>
is there a more clever way of doing these 3 lines so I dont have to use the ! for NOT operator..... http://pastebin.com/7RUS941d
Wildhoney has quit [Quit: Wildhoney]
mephux- is now known as mephux
mephux is now known as Guest96463
Wildhoney has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
optimusprimem has quit [Ping timeout: 245 seconds]
<dkamioka>
Quick question, wondering about overloading. I really dont know if it exists or not in ruby... I think it not...
<Nogbit>
YaNakilon 1 liner is more readable with them
<dkamioka>
well anyways... if i want a method to receive both a hash and a integer for example
_Bravado_ has joined #ruby
<dkamioka>
i need to check the Class type into the code of the method?
thirdknife_ has quit [Ping timeout: 276 seconds]
d2dchat has joined #ruby
<Mon_Ouie>
I'd probably always omit them after a method like 'member?', and go either way with the other call
<Mon_Ouie>
But since we're talking about convention, pwsData is not how most people name variables in Ruby (Instead, people separate_words_with_underscores)
tyman has quit [Ping timeout: 245 seconds]
KobraKao has quit [Ping timeout: 245 seconds]
kung has quit [Read error: Connection reset by peer]
gtrak has joined #ruby
futilegames has joined #ruby
kung has joined #ruby
<Mon_Ouie>
dkamioka: There's no overloading in Ruby, nor is there multiple dispatch (which seems to be what your question is effectively referring to)
<Mon_Ouie>
You could check if the argument.is_a? Hash and dispatch based on that, but that might not be the best idea
<Hanmac>
YaNakilon: wrong!! "if !" similar to "unless" but not 100% equal
<dkamioka>
Mon_Ouie: so what i said is correct? Need to check inside the method, if i want to achieve the same functionality?
<stef1a>
I have a ruby script that uses FileUtils and Find to recursively search a directory and do a regex substitution in each file. I want to do this from within a shell script. However, it *only* has the intended effect when I run it from the terminal, not from within the script. Why might this be?
<dkamioka>
Mon_Ouie: Oh ic.
aeontech has quit [Quit: aeontech]
alex__c2022 has quit [Quit: alex__c2022]
<dkamioka>
Mon_Ouie: some sugestion in this approach?
buibex has quit [Remote host closed the connection]
<Mon_Ouie>
Not necessarily. One other way is to have a method in all classes that can be used as arguments for that method, and then just call that method — that way you get the ability to tell your program how to deal with other sort of objects
pwh has quit [Quit: pwh]
Monie has joined #ruby
mfilipe has quit [Remote host closed the connection]
futilegames has quit [Client Quit]
workmad3 has joined #ruby
<Mon_Ouie>
But if you do something very different depending on what the object is, it might also make more sense to just have two different methods
mfilipe has joined #ruby
havenwood has joined #ruby
pwh has joined #ruby
rcosta has quit [Remote host closed the connection]
<dkamioka>
Mon_Ouie: hmmm understood. I'd like to use the same method... but i think you're right, maybe it makes more sense to use two differente methods.
mark_locklear has quit [Ping timeout: 276 seconds]
<yaaang>
Anyone know why "rbenv install 2.0.0-p247" fails with "/home/yang/.rbenv/plugins/ruby-build/bin/ruby-build: line 144: pushd: ruby-2.0.0-p247: No such file or directory"?
<havenwood>
yaaang: No #rbenv channel. Tried reinstalling rbenv?
failshell has quit [Remote host closed the connection]
<terrellt>
Bleh, whitespace sensitivity.
<terrellt>
Not that it affects me as much anymore, but I have memories.
<yaaang>
havenwood: Odd indeed. I just noticed the rbenv log files in /tmp. They say it timed out trying to download. Already tried a couple times. Trying again, still seems to be failing. But again, wget on that URL works fine.
Armadio has joined #ruby
alvaro_o has joined #ruby
shanlar has joined #ruby
henn2nk has joined #ruby
henn2nk has left #ruby [#ruby]
<JimmyNeutron>
Anyone know of a 3rd party program that will allow me to convert a ruby program to a standalone program for linux? The linux system I want to run it on does not have ruby install.
<shanlar>
how can i extend a def of a class while retaining the same def name?
Coolhand has joined #ruby
seggy has quit [Ping timeout: 250 seconds]
<furryblade>
JimmyNeutron: add ruby interpreter's header, then chmod +x
ukd1 has joined #ruby
<furryblade>
ah it doesn't have ruby.
<JimmyNeutron>
yeap, no ruby
rickmasta has joined #ruby
Armadio has quit [Remote host closed the connection]
<havenwood>
JimmyNeutron: mruby can compile a standalone executable
Zai00 has joined #ruby
<JimmyNeutron>
I can't install ruby onto it too because its a production server.
anonymuse has joined #ruby
<JimmyNeutron>
havenwood, Thanks! I'll do some search on that.
<havenwood>
JimmyNeutron: You mean you don't have root, or you can't install anything?
Alina-malina has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
Alina-malina has joined #ruby
<furryblade>
JimmyNeutron: also, consider JRuby too
jokke has quit [Quit: WeeChat 0.4.1]
franks2 has quit [Quit: leaving]
Alina-malina has quit [Read error: Connection reset by peer]
jokke has joined #ruby
mneorr_ has joined #ruby
[[thufir]] has joined #ruby
vlad_starkov has joined #ruby
<shanlar>
Morrolan: so that code sample, from my understanding here, it inherits the explode def and you are simply adding 'raise ArgumentError' to it?
[[thufir]] has quit [Max SendQ exceeded]
<Morrolan>
It's not really inheritance, it's re-opening the class definition.
<Morrolan>
Which, come to think of it, is not what you want, probably.
<Morrolan>
Actually, it is.
<shanlar>
sorta is, i want to redefine a variable
<JimmyNeutron>
Thanks furryblade!
<Morrolan>
It just modifies the original class, instead of creating a subclass.
<JimmyNeutron>
I'll look into that also.
<shanlar>
so i think just reopening it would work for me
<shanlar>
ill give it a shot, ty :)
<Morrolan>
Yea. :)
[[thufir]] has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
<havenwood>
JimmyNeutron: You can install JRuby and not Ruby? I don't get it! You're worried about dependencies?
[[thufir]] has quit [Max SendQ exceeded]
robbyoconnor has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
aedorn has quit [Quit: Leaving]
Alina-malina has joined #ruby
[[thufir]] has joined #ruby
rcosta has joined #ruby
srji has quit [Quit: leaving]
[[thufir]] has quit [Max SendQ exceeded]
stkowski has joined #ruby
virt|a has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
ptwobrussell has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ptwobrussell>
Hi - could someone tell me what the following kind of expression is called in ruby? i don't know what to look for in order to learn more about it: %|x y z|.each do |foo| … end
JimmyNeutron has quit [Quit: Leaving]
<havenwood>
ptwobrussell: Iterating over an array with a block.
ebouchut has joined #ruby
Criztian has quit [Remote host closed the connection]
<havenwood>
ptwobrussell: The delimiter doesn't change the meaning.
<havenwood>
ptwobrussell: It is syntactic sugar for a string (your example).
<havenwood>
ptwobrussell: Well, not sugar in that case.., sec finding link
pwh has quit [Quit: pwh]
<ptwobrussell>
havenwood - this is just some code that i'm trying to grok from a configuration file. not sure if it was well-written ruby or not. just trying to grok it since i am running into an error that has something to do with str.each not existing in Ruby 1.9
tylersmith has quit [Read error: Connection reset by peer]
<Morrolan>
Well, not all of those tricks seem that evil to me. :)
<ptwobrussell>
i am planning to rewrite this line to be something that is intelligible. am i understanding correctly that i could rewrite %|x y z|.each do |foo| … end to simply be "x y z".each do |foo| … end ? Sorry, i know this is so basic...
<_br_>
Morrolan: shades of grey :)
<Morrolan>
I wonder how number 3 is considered a trick, though. That's pretty normal string formatting. :o
<Morrolan>
(As seen in plenty other languages)
<yxhuvud>
ptwobrussell: possibly, assuming there are no "'s in the string.
<yxhuvud>
generally speaking, people use %(somestring) when the string contains characters that otherwise would have to be qouted
__username__ has quit [Client Quit]
decoponio has quit [Quit: Leaving...]
<Morrolan>
(Which normally means it contains single as well as double quotes)
jshakespear has joined #ruby
<havenwood>
ptwobrussell: Is the string a multi-line thing (where #each_line makes sense) or is `%()` and error when `%w()` was intended?
__username__ has joined #ruby
<yxhuvud>
morrolan: btw, are you a fan of steven brust?
<jshakespear>
hey all
<Morrolan>
yxhuvud: Yep, that's where the nick is from. :)
<jshakespear>
can i pick your brain for a bit?
ananthakumaran has quit [Quit: Leaving.]
LocutusOfBorg is now known as ArhBeOS
<ptwobrussell>
havenwood - believe it or not, ti's just plain old ascii like %|foo bar baz| - i am guessing the person that wrote it was just too clever for their own good (or they reused a template that might have had something tricker in it previously
<havenwood>
ptwobrussell: %w() turns space-separated elements into strings in an Array.
axl_ has left #ruby [#ruby]
jamesaanderson has joined #ruby
<havenwood>
ptwobrussell: just a hunch, but try putting a 'w' in there: %w|foo...
<havenwood>
ptwobrussell: (Instead of creating a String, create an Array of Strings.)
mmitchell has quit [Ping timeout: 245 seconds]
<yxhuvud>
haven: well, if it broke when upgrading to 1.9, then the string version make sense.
<ArhBeOS>
hey guys, I need help understanding why I can't get past a certain point in my win32ole excel script. http://pastebin.com/qsR9m2Rz
<havenwood>
yxhuvud: oh, really good point - i missed the 1.8 to 1.9 bit!
[[thufir]] has joined #ruby
<ptwobrussell>
i just discovered is that i could indeed just change the %|foo bar baz|.each to "foo bar baz".each_line and it works now (and is much more readable). i'll try your suggestion as well since this is a good learning opportunity for me
<havenwood>
ptwobrussell: Sry, didn't read 1.8 to 1.9, disregard my hunch :P
<ArhBeOS>
using 1.9.3
<havenwood>
ptwobrussell: Don't try mine, yxhuvud was write and I was on the wrong track.
[[thufir]] has quit [Max SendQ exceeded]
<havenwood>
ptwobrussell: He reads better than me. :O
ArhBeOS is now known as ArchBeOS
<havenwood>
s/write/right
s00pcan has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<jshakespear>
any idea why ftp works on dev, but i get a "broken pipe" error on prod?
<havenwood>
^ compounding being wrong while admitting being wrong...
<ptwobrussell>
gotcha. i am just happy to have working code that i how understand :) at any rate, i have lift off. this was a line of code in a chef recipe that was holding up the provisioning of a machine. everything seems to be working fine now.
<ptwobrussell>
s/how/now
<havenwood>
s/brown/cow
<Mon_Ouie>
ArchBeOS: Well, first thing I notice is your main_worksheet variable is only defined in the block you pass to #each, you can't use it outside of it
<Mon_Ouie>
But you'll probably need to be more specific
<ArchBeOS>
sorry, i left that piece out. let me re-edit it
axl_ has joined #ruby
<Morrolan>
yxhuvud: Relatively few people seem to recognize the name, though. Most associate it with Morrowind.
jdenen1 has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
rcosta has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Quit: alex__c2022]
<Xeago>
Does the GoogleNexus have a plastic'ish case?
fmcgeough has quit [Quit: fmcgeough]
timonv has quit [Remote host closed the connection]
__username__ has quit [Quit: none 0.4.1]
kirun_ has joined #ruby
brisbin has quit [Read error: Connection reset by peer]
__username__ has joined #ruby
BillCriswell has quit [Read error: Operation timed out]
brisbin has joined #ruby
<Aloysius1>
Is there a "flatten" for Hash that returns a hash of key=>value, iow removing parent elements completely (and presumably overwriting or erroring if there are duplicate keys nested)?
<apeiros>
not sure I fully understand, but I guess the answer is "no" anyway
elux has quit [Quit: Leaving...]
robert_ has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
robert_ has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
kilophoton has quit [Ping timeout: 260 seconds]
kirun has quit [Ping timeout: 240 seconds]
atno has quit [Ping timeout: 245 seconds]
elux has joined #ruby
tonni has joined #ruby
<Aloysius1>
Given {a=>b, c=>{d=>e,f=>g},h=>i} it would return {a=>b,d=>e,f=>g,h=>i}.
enhance is now known as solidspark
jacobat has quit [Read error: Connection reset by peer]
<Aloysius1>
I think there's a..."nest" or "deep" or some other gem that works that way, actually, now that I think about it. nvm
jacobat has joined #ruby
atno has joined #ruby
Wildhoney has quit [Quit: Wildhoney]
saarinen has joined #ruby
Rym has joined #ruby
ozzloy has quit [Ping timeout: 246 seconds]
Nilium has joined #ruby
hasrb has joined #ruby
<apeiros>
Aloysius1: c simply drops away?
cads has joined #ruby
<apeiros>
you could write that kind of flatten yourself
brennanMKE has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<Aloysius1>
apeiros: Yeah. And I sure could, it wouldn't even be hard. Just wondering if there was an idiom or a standard or whatevs.
wudofyr has quit [Remote host closed the connection]
cody-- has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Wildhoney has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dkamioka>
hmmm I think it should be usefull too
<dkamioka>
useful
Zai00 has joined #ruby
farn has joined #ruby
<dkamioka>
the flatten hash method.
<apeiros>
doubt it
<apeiros>
I find Array#flatten already symptomatic for bad code
dash_ has quit [Ping timeout: 240 seconds]
kirun_ has quit [Quit: Client exiting]
brennanMKE has quit [Ping timeout: 248 seconds]
<dkamioka>
I particularly cant' see a use right now... but cant see why it should produce bad cod.
<dkamioka>
Hey one question: Case in ruby
jamesaanderson has joined #ruby
iamjarvo has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
dash_ has joined #ruby
iamjarvo has joined #ruby
jan1337z has joined #ruby
Monie has joined #ruby
geekbri has quit [Remote host closed the connection]
<dkamioka>
gonna gist it
tylersmith has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
tylersmi_ has quit [Read error: Connection reset by peer]
pweems has joined #ruby
senayar has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 264 seconds]
blackmesa has quit [Remote host closed the connection]
<terrellt>
cek: Gist your real code, let works n levels deep, I've done it. What you pasted in the channel is wrong - you didn't give the letted variable a value.
<cek>
as per those docs, context supposed to inherit everything except tests -- why it's not inheriting let{} then?
<Norrin>
apeiros, its 1.9
tylersmith has quit [Ping timeout: 264 seconds]
<apeiros>
Norrin: then it depends on whether or not you've set an `# encoding: YOURENCODINGHERE` comment and your Encoding.default_* stuff
<apeiros>
also some ENV variable iirc
<apeiros>
ENV["LANG"] I believe
<apeiros>
you can force it to be utf-8 by setting the encoding comment accordingly.
yaaang has quit [Quit: leaving]
[[thufir]] has joined #ruby
<cek>
well the problem is taht i was going through all those links and google searches and apperently they led me to tests that were written like "it does_something.have to(whatever)", all in one line, with no blocks
tylersmith has joined #ruby
jamesaanderson has joined #ruby
Monie has joined #ruby
<cek>
so i wrote a test "it expect(let_user).to whatever".
iliketur_ has quit [Quit: zzzzz…..]
[[thufir]] has quit [Max SendQ exceeded]
<cek>
thus, user was evaluated in context{} block, not in it{} block
<Norrin>
apeiros, to get that right, a "comment" can be treated like it isn't a comment?
<apeiros>
Norrin: that one is special
<apeiros>
it must be the first line of the code
<Norrin>
gotcha
<apeiros>
(except for a shebang, then it'd have to be the second line)
mansi has quit [Remote host closed the connection]
<apeiros>
there are a couple of formats (to accomodate vim/emacs I think)
Xeago has quit [Remote host closed the connection]
Vivekananda has joined #ruby
<apeiros>
the one I use is just `# encoding: utf-8`
<cek>
never managed to get that working
pentameter has quit [Read error: Connection reset by peer]
<Norrin>
dang. i thought it was encoding::utf-8
<cek>
always used Encoding.default_
mansi has joined #ruby
<apeiros>
Encoding.default_ is about IOs
<apeiros>
not about string literals in your code
<apeiros>
also not about your code itself (and in consequence about your string literals)
<cek>
string literals? in code? i thought they should be yaml'ed or whatever
c0rn has joined #ruby
<apeiros>
then it's not a string literal
<apeiros>
the very name "literal" means it's *literally* in your code.
forced_request has quit [Ping timeout: 264 seconds]
ryandeussing has joined #ruby
<terrellt>
Lol
<apeiros>
as in: opposite of being constructed
<apeiros>
reading a yaml file is a way of constructing a string
KobraKao has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
Rym has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
MrPunkin has joined #ruby
MrPunkin has left #ruby [#ruby]
ryandeus_ has quit [Read error: Operation timed out]