<epitron>
you can still type over ssh, even if there's lag
freerobby has quit [Quit: Leaving.]
Davey has joined #ruby
Nahra has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
RichardBaker has joined #ruby
sml0820 has quit [Quit: sml0820]
RichardBaker has quit [Client Quit]
m8 has quit [Quit: Sto andando via]
araujo has quit [Read error: Connection reset by peer]
Davey has quit [Ping timeout: 276 seconds]
<zendeavor>
you're not actually typing over ssh though, which is what makes it awesome
<zendeavor>
it just buffers your input and sends when the connection is clear
endash has quit [Quit: endash]
buenob has joined #ruby
buzzybron has joined #ruby
caju has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 256 seconds]
caju has joined #ruby
<epitron>
yes, that's what i meant
<epitron>
:)
postmodern has quit [Quit: Leaving]
moos3 has joined #ruby
postmodern has joined #ruby
Astral__ has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
sml0820 has joined #ruby
<zendeavor>
just clarifying
<zendeavor>
because i need to insert my 2 cents, okay
yshh has joined #ruby
<zendeavor>
i need to.
* zendeavor
compelled
<xybre>
<3 mosh
baroquebobcat has quit [Quit: baroquebobcat]
pvizcay has quit [Quit: leaving]
_jesse_ has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
Lewix has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
jonahR has quit [Quit: jonahR]
pkrnj has joined #ruby
araujo has quit [Excess Flood]
araujo has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Shirakawasuna has quit [Quit: Leaving]
hamakn has quit [Remote host closed the connection]
Vivekananda has quit [Quit: Ex-Chat]
hamakn has joined #ruby
renderful has quit [Remote host closed the connection]
aryaching has quit []
hadees has quit [Ping timeout: 276 seconds]
hadees has joined #ruby
snath has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
caju has left #ruby [#ruby]
yaymukun1 has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
sml0820 has quit [Quit: sml0820]
amacgregor_ has joined #ruby
kdaigle_ has joined #ruby
tommyvyo has quit [Quit:]
amacgregor has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
heftig has joined #ruby
wesside has joined #ruby
yaymukund has joined #ruby
johnkary has joined #ruby
<pontiki>
so, um
hamakn has joined #ruby
<pontiki>
is there something i'm supposed to do besided `mosh user@server` ?
ffranz has joined #ruby
tanema has joined #ruby
zmansiv has quit [Ping timeout: 268 seconds]
aryaching has joined #ruby
<zendeavor>
well
sml0820 has joined #ruby
<zendeavor>
does the remote have mosh-server
<epitron>
RTFM? :D
<Todd>
whoa.. heh
<epitron>
you need to open port 60000
<epitron>
actually, you need a range of ports
<zendeavor>
or just pass a port in
<zendeavor>
unless you mean ec2
<epitron>
i mean mosh
<epitron>
read the docs
Lewix has quit [Remote host closed the connection]
<pontiki>
it says it cannot find mosh-server
<Todd>
udp eh? hmm
<Todd>
mosh looks cool
tanema has quit [Ping timeout: 246 seconds]
<pontiki>
the docs, such as they are, say 'mosh user@server' and that's it
<Todd>
yeah the docs say mosh will log you in via ssh and then start a connection on a udp port between 60000 and 61000
zmansiv has joined #ruby
<Todd>
that would only work if udp ports 60000-61000 are open to the machine you're connecting to or it's the dmz
<Todd>
it sounds as though it also requires that mosh be installed on the machine as well as an ssh server and that tcp/ip port 22 be open
Davey has joined #ruby
rickmasta has joined #ruby
<Todd>
or whatever port you changed ssh to if non-standard
johnkary has quit [Quit: @johnkary]
<Todd>
hmm
<Todd>
I think I'm going to put the mosh-server binary on my vps and play with it tomorrow
Davey has quit [Ping timeout: 260 seconds]
horofox has quit [Quit: horofox]
caju has joined #ruby
startling has joined #ruby
<startling>
what's that way to embed a string in the bottom (?) of a ruby file?
<xybre>
zendeavor: mosh-server is run automatically, no need to install it
<epitron>
startling: theredocs! :D
<epitron>
__END__
<epitron>
...
<epitron>
then referene it with "DATA.read"
<epitron>
+c
<pontiki>
so i can't actually install mosh on my remote box
polo_ has joined #ruby
<pontiki>
running debian squeeze
<startling>
epitron: that's it. thanks
<pontiki>
follow the instructions to add squeeze-backports, and apt-get update fails
<pontiki>
oh well
<epitron>
._.
<pontiki>
nice try
<xybre>
You don't need to install mosh on your remote machine, you jsut need SSH.
<pontiki>
have to go
lethjakm1 has quit [Ping timeout: 256 seconds]
<epitron>
xybre: incorrect!
<xybre>
epitron: since when?
<epitron>
since mosh works by using UDP
<xybre>
Mosh loads the mosh-server binary when you connect via SSH.
<epitron>
so at the very least you need that installed
<xybre>
What are you talking about?
<xybre>
Installing UDP?
<epitron>
how can it load the mosh-server binary if it's not installed?
ehc has joined #ruby
<xybre>
How does SFTP work?
<epitron>
SFTP runs over an ssh tunnel
<xybre>
Or SSH-COPY?
<epitron>
mosh uses ssh to launch mosh-server, which is a UDP server
<epitron>
running on port 6000*
<xybre>
Which is deploys on the remote server.
<xybre>
s/is/it
<epitron>
uh, no :)
quazimodo has quit [Ping timeout: 256 seconds]
<epitron>
mosh doesn't upload/compile binaries to the remote box
Guest11903 has joined #ruby
<epitron>
mosh does have a fallback mode if mosh-server isn't found, i believe, where it just becomes regular ssh
polo_ has quit [Client Quit]
Guest11903 is now known as diegoviola
quazimodo has joined #ruby
polopolo has joined #ruby
<epitron>
unfortunately i don't have a box without mosh installed to check
<polopolo>
Hello, any ideal on how to encode some text as a valid PNG, as this > http://xcode.darkbyte.ru/ !? Trying for hours...
<xybre>
Maybe I misunderstood something in the documentation. I thought I didn't have mosh installed on my server and it worked though. Since I'm using mosh right now and all.
<Todd>
the mosh docs do speak about the mosh-server being in the path on the remote machine
<Todd>
and that if mosh-server is not in the path that you can specify the path to it when you run the mosh client
<Todd>
which leads me to believe that mosh-client in fact does not deploy mosh-server to the machine you're connecting to
<epitron>
the mosh author probably didn't want to create an ad-hoc multi-distro build system :)
<Todd>
heh
Domon has joined #ruby
hadees has quit [Quit: hadees]
polopolo has quit [Quit: polopolo]
randomautomator has quit [Remote host closed the connection]
hadees has joined #ruby
Gooder has joined #ruby
randomautomator has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
radic__ has joined #ruby
randomautomator has quit [Ping timeout: 264 seconds]
Domon has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 246 seconds]
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
mbreedlove has joined #ruby
alem0lars has joined #ruby
Quashie_ has joined #ruby
staafl has joined #ruby
Spami has joined #ruby
mroth has joined #ruby
Quashie has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
quazimodo has joined #ruby
tommyvyo has quit [Quit:]
rovar has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
rovar has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
mootpointer has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
jhn has quit [Ping timeout: 256 seconds]
staafl has quit [Ping timeout: 240 seconds]
devdvd has quit [Quit: Leaving]
yacks has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
fwchld has joined #ruby
tagrudev has joined #ruby
fgo has joined #ruby
hollyw00d has joined #ruby
ananthakumaran has joined #ruby
<fwchld>
hi guys! i've got a quick question re: refactoring. i'm repeating myself with some operations, i know i can refactor by creating a method that i can pass variables into. the only issue I have is that the method needs to operate on an instance of a class, so do i need to pass the class into the method or is there another way? i can post code if it needs to get to that stage.
<fwchld>
im not 100% on pass by reference or value and how ruby handles it...
freerobby1 has quit [Quit: Leaving.]
quazimodo has quit [Remote host closed the connection]
quazimodo has joined #ruby
<pontiki>
don't pass classes
Domon has joined #ruby
<pontiki>
pass objects
Domon has quit [Read error: Connection reset by peer]
<pontiki>
or pass a block if you want to do it that way
<fwchld>
yeah, but if you instanciate the object, you pass that into the method is that ok?
ryandeussing has quit [Remote host closed the connection]
<pontiki>
an object is the instatiation of a class
<fwchld>
yeah i know
<pontiki>
well i don't understand your question, then
<apeiros>
classes are objects too
<fwchld>
lets step back a bit
<fwchld>
does ruby pass by reference or value?
<apeiros>
it's perfectly fine to pass classes as arguments. the question is whether it really makes sense.
<pontiki>
that was what i mean
buenob has quit [Remote host closed the connection]
<fwchld>
yeah i'm not passing the class
<pontiki>
it just generally makes no sense
<apeiros>
fwchld: depends on what level you look at. in the "ruby" level, it'd be by reference
goganchic has joined #ruby
buenob has joined #ruby
<fwchld>
apeiros: ok, and when does it pass by value? :)
dawkirst has joined #ruby
<pontiki>
never?
<apeiros>
in the C level. it passes a VALUE object by value
<fwchld>
ok
<fwchld>
lemme try something and i'll come back and have a better formulated question heh
<fwchld>
:)
<fwchld>
brb
hollyw00d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
fwchld: code of what you're currently doing is also usually helpful (gist.github.com)
* apeiros
will be on commute soon, though
<fwchld>
yeah thanks - will paste it if i get super stuck.. dont want to waste your time digging through code just yet..
efrainolivares has joined #ruby
fridim__ has quit [Ping timeout: 246 seconds]
<fwchld>
thanks thought :)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
ebanoid has joined #ruby
zacts has quit [Ping timeout: 245 seconds]
agjacome has quit [Ping timeout: 245 seconds]
callmeivan has quit [Ping timeout: 245 seconds]
Schmidt has quit [Quit: WeeChat 0.3.5]
andll has joined #ruby
vince_prignano has joined #ruby
dash_ has joined #ruby
<andll>
does anyone know of a resource for manipulating three dimensional arrays?
russt has quit [Ping timeout: 245 seconds]
<pontiki>
check ruby-gems?
<pontiki>
or ruby-toolbox?
ayaz has joined #ruby
zacts has joined #ruby
<heftig>
andll: narray, i guess
kaldrenon has joined #ruby
boblu has joined #ruby
callmeivan has joined #ruby
callmeivan has quit [Client Quit]
razi has joined #ruby
<andll>
I'll look into that. Perhaps I'm choosing the wrong type of data representation. I'm looking for a resource to iterate and manipulate 3d arrays easier.
<andll>
really just a tutorial
rubyguy has joined #ruby
shaileshg has joined #ruby
TheHodge has joined #ruby
priyam_ has joined #ruby
ckrailo has joined #ruby
notbrent has joined #ruby
cam`_ has joined #ruby
dekz__ has joined #ruby
Guest85414__ has joined #ruby
karnowski has joined #ruby
cool has joined #ruby
guilleiguaran_ has joined #ruby
yuhsien_ has joined #ruby
ziyadb has joined #ruby
dnyy has joined #ruby
fourq_ has joined #ruby
pusewicz_ has joined #ruby
lectrick has joined #ruby
zero7 has joined #ruby
djd has joined #ruby
moeSeth has joined #ruby
mulander has joined #ruby
xerxas has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
Zespre has joined #ruby
niftylettuce has joined #ruby
octarine has joined #ruby
keyvan_ has joined #ruby
kapowaz has joined #ruby
tonni has quit [Remote host closed the connection]
rndstr has joined #ruby
chuk has joined #ruby
denysonique has joined #ruby
geoffw8_ has joined #ruby
bluehavana has joined #ruby
[0x1a] has joined #ruby
heidar has joined #ruby
sayan has joined #ruby
aganov has joined #ruby
hadees has joined #ruby
vlad_starkov has joined #ruby
ferdev has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby
jkline has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
kilophoton has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
<zendeavor>
a little tough to tutorialize
browndawg has quit [Quit: Leaving.]
persand has joined #ruby
<zendeavor>
i'd bet anything you find essentially just feeds you code that demonstrates "how to do it" and you have to go play on your own again anyway
vlad_starkov has quit [Ping timeout: 256 seconds]
nonamehero has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Matriks has joined #ruby
kilophoton has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 264 seconds]
flowerhack has quit [Remote host closed the connection]
nonamehero has joined #ruby
dhruvasagar has joined #ruby
<jrobeson>
andll, perhaps the word you're looking for is matrix
eldariof has quit [Ping timeout: 240 seconds]
huevon has joined #ruby
dayepa has quit [Quit: dayepa]
tonni has joined #ruby
noopq has joined #ruby
zeade has quit [Quit: Leaving.]
daniel_hinojosa has quit [Quit: Leaving.]
tatsuya_o has joined #ruby
lele has joined #ruby
kaspergrubbe has joined #ruby
zoee has joined #ruby
Mon_Ouie has joined #ruby
pranny has joined #ruby
ntus1017 has joined #ruby
blueOxigen has joined #ruby
avril14th has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
nhhagen has quit [Quit: Leaving]
ferdev has joined #ruby
marius has quit [Quit: -]
workmad3 has joined #ruby
filipe has joined #ruby
vlad_starkov has joined #ruby
qubozik_ has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
rshetty has quit [Quit: Sleeping]
mfridh has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
pwh has quit [Quit: pwh]
blueOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
tatsuya_o has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mootpointer has joined #ruby
stuartrexking has quit [Quit: Leaving...]
kaspergrubbe has quit [Ping timeout: 246 seconds]
mootpointer has quit [Client Quit]
Domon has joined #ruby
jkline has quit [Quit: jkline]
Domon_ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
tonni has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
mootpointer has joined #ruby
wargasm has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby
ferdev has quit [Quit: ferdev]
pwh has joined #ruby
lyanchih has joined #ruby
pwh has quit [Max SendQ exceeded]
hamed_r has joined #ruby
persand has quit [Quit: persand]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
qubozik_ has quit [Ping timeout: 268 seconds]
MrZYX|off is now known as MrZYX
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
tonni has joined #ruby
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
IPGlider has joined #ruby
persand has joined #ruby
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
alem0lars has joined #ruby
shredding has joined #ruby
VTLob has quit [Quit: VTLob]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
shredding has quit [Client Quit]
tjad has quit [Ping timeout: 248 seconds]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
ahawkins has joined #ruby
pwh has joined #ruby
threesome has joined #ruby
pwh has quit [Max SendQ exceeded]
rezzack has quit [Quit: Leaving.]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
tesuji has joined #ruby
pwh has joined #ruby
codecop has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
staafl has quit [Ping timeout: 248 seconds]
pwh has joined #ruby
pwh has quit [Client Quit]
io_syl has quit [Quit: io_syl]
Spami has quit [Quit: This computer has gone to sleep]
maxmanders has joined #ruby
ryandeussing has joined #ruby
maz-dev has joined #ruby
maxmanders has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 245 seconds]
relix has joined #ruby
maxmanders has joined #ruby
Charli has joined #ruby
io_syl has joined #ruby
atno has quit [Remote host closed the connection]
tjad has joined #ruby
Charli has left #ruby [#ruby]
bluenemo has joined #ruby
obs has joined #ruby
andikr has joined #ruby
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
sparq_ has joined #ruby
Al_ has joined #ruby
persand has quit [Quit: persand]
jprovazn has joined #ruby
tonni has quit [Remote host closed the connection]
Domon_ has quit [Remote host closed the connection]
Domon has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
jim0thy_ has joined #ruby
bricker`LA has joined #ruby
Schmidt has joined #ruby
dangerousdave has joined #ruby
andll has quit [Remote host closed the connection]
ganeshran has joined #ruby
io_syl has quit [Quit: io_syl]
troessner has joined #ruby
obs has quit [Quit: Konversation terminated!]
<ganeshran>
Hi is someone here familiar with writing a custom strategy for omniauth.
<startling>
is there something somewhere to uri-sanitize a string in a nice way? I'd like to have "hello-world" rather than "hello%20world"
emergion has joined #ruby
shaunbak_ has joined #ruby
atno has joined #ruby
<maloik>
ganeshran: I'm sure someone is. You'll have better luck just asking your question :-) providing code where relevant will help too
<MrZYX>
startling: example.org/hello%20world and example.org/hello-world are two completely distinct resources though
<startling>
MrZYX: sure; that's why I said "uri-sanitize" rather than "uri-escape". I'm the one who controls the resources; I'd like to automatically give them nice names.
<startling>
(that happen to be safe for URIs)
<MrZYX>
build your map and have fun with String#tr then
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
<ganeshran>
maloik: Actually I have written one but I don't feel confident enough to publish it as I am new to ruby. If an expert could take a look at it and suggest if any changes are required I will publish it https://github.com/ganeshran/omniauth-socialcast-oauth2
<startling>
MrZYX: obviously. my question is "has someone already written this?".
stef_204 has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
lethjakm1 has quit [Ping timeout: 264 seconds]
<maloik>
ganeshran: in all honesty just go ahead and publish. People may or may not point out mistakes, or may or may not improve it themselves with forks and pull requests
<maloik>
there's no better way to learn than to get your code out there
apeiros has joined #ruby
<maloik>
if someone is genuinely worried about leaks and bugs they'll comb through your code themselves before using it in production
<ganeshran>
maloik: ok cool . will publish it after adding tests
<maloik>
most people are pretty down to earth about it, some may be dicks and tell you it sucks but so be it, let it go and keep at it :-)
JDHankle has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
<ganeshran>
:)
camilasan has joined #ruby
tonni has joined #ruby
jim0thy_ has quit [Quit: jim0thy_]
<atno>
morning
kaspergrubbe has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
jim0thy_ has joined #ruby
marr has joined #ruby
predator217 has quit [Remote host closed the connection]
predator117 has joined #ruby
shredding has joined #ruby
camilasan has quit [Remote host closed the connection]
efrainolivares has joined #ruby
camilasan has joined #ruby
mootpointer has joined #ruby
dayepa1 has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Remote host closed the connection]
lethjakm1 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
efrainolivares has quit [Client Quit]
ixti has joined #ruby
badquanta has quit [Ping timeout: 264 seconds]
niceguyjames has joined #ruby
ephemerian has joined #ruby
saintcajetan has joined #ruby
tatsuya_o has joined #ruby
saintcajetan has quit [Max SendQ exceeded]
ntus1017 has quit [Remote host closed the connection]
starfox21 has joined #ruby
jbpros has joined #ruby
saintcajetan has joined #ruby
goleldar has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
jlebrech has joined #ruby
saintcajetan has quit [Max SendQ exceeded]
ffio has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
saintcajetan has joined #ruby
shaunbak_ has joined #ruby
noname001 has joined #ruby
lyanchih has quit [Quit: lyanchih]
starfox21_ has joined #ruby
choobie has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 248 seconds]
zmansiv has quit [Ping timeout: 264 seconds]
jibi has joined #ruby
starfox21 has quit [Ping timeout: 264 seconds]
starfox21_ is now known as starfox21
hogeo_ has joined #ruby
Quashie_ has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
<MrZYX>
yep, that's a character class
codecop has quit [Read error: Operation timed out]
<MrZYX>
(something) is called a match group (in most cases)
Deele has joined #ruby
<apeiros>
(capturing group) is the term I know
<apeiros>
and (?:non-capturing group)
mbreedlove has quit [Ping timeout: 268 seconds]
codecop has joined #ruby
JDHankle has joined #ruby
saintcajetan has quit [Ping timeout: 260 seconds]
<MrZYX>
Okay, not really simpler but I couldn't resist: \A(?:[0-9a-z]+(?:-(?!\z)|\z))+\z
startling has joined #ruby
sevenseacat has quit [Quit: Leaving.]
<apeiros>
/blupp(?<!-)\z/
<startling>
what command-line option parser should I use/
<startling>
?
saintcajetan has joined #ruby
ryandeussing has joined #ruby
<canton7>
startling, trollop, slop, or OptionParser imo
<apeiros>
Veejay: trying to match uuids?
shaunbaker has quit [Remote host closed the connection]
<MrZYX>
ah, right, \A(?:[0-9a-z]+-?)+(?<!-)\z is better
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JDHankle has quit [Ping timeout: 256 seconds]
<apeiros>
alternative: split the regex
shaunbaker has joined #ruby
goganchic has quit []
<startling>
canton7: thanks!
<apeiros>
segment = /[0-9a-z]+/; full = /\A#{segment}(?:-#{segment})*\z/
lyanchih has quit [Quit: lyanchih]
shaunbak_ has joined #ruby
<Veejay>
Ah that's nice
sparq_ has quit [Quit: Leaving]
shaunbak_ has quit [Remote host closed the connection]
<Veejay>
apeiros: We're generating URLs for temporary websites and I was trying to restrict the form they can take.
jim0thy_ has quit [Quit: jim0thy_]
rovar has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<Veejay>
numbers and letters separated by dashes, 5 characters minimum, 128 maximum
rovar has joined #ruby
<apeiros>
per segment?
<Veejay>
Nah total
ryandeussing has quit [Ping timeout: 276 seconds]
_JamieD_ has joined #ruby
<apeiros>
I'd do the length check outside the regex, but you could put it in there too
<Veejay>
It's outside now
<Veejay>
In a Rails validation actually
<Veejay>
Isn't there a UUID parser in Ruby
moted has quit [Ping timeout: 260 seconds]
shaunbaker has quit [Ping timeout: 245 seconds]
<Veejay>
Cause you're right, they're pretty much UUIDs
rovar_ has joined #ruby
postmodern has quit [Ping timeout: 248 seconds]
<apeiros>
there isn't much to parse about uuids…
<Veejay>
Guess not heh
rovar has quit [Ping timeout: 245 seconds]
jim0thy_ has joined #ruby
shaunbaker has joined #ruby
dodosan has joined #ruby
galdor_ has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
lyanchih has joined #ruby
<banisterfiend>
Veejay: sup vajayjay
<banisterfiend>
;)
blackmesa has joined #ruby
Domon has quit [Remote host closed the connection]
BRMatt has joined #ruby
Domon has joined #ruby
rickmasta has quit [Quit: Leaving...]
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
atno has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
ezotrank has joined #ruby
dodosan has quit [Ping timeout: 256 seconds]
lurch_ has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
amacgregor_ has joined #ruby
rshetty has joined #ruby
sanav has joined #ruby
jim0thy_ has quit [Quit: jim0thy_]
amacgregor has quit [Ping timeout: 246 seconds]
gasbakid has quit [Read error: Connection reset by peer]
himsin has joined #ruby
<sanav>
hello friends ! I'm wants to create .dll files .I tried it .I google about .dll an i found VB , C++, C# PL only used for making .dll .I recently learn ruby .I also found iron-ruby support .net but i'm not sure can i make .dll with it .Please guide me .
<sanav>
hello friends ! I wants to create .dll files .I never tried it .I google about .dll an i found VB , C++, C# PL only used for making .dll .I recently learn ruby .I also found iron-ruby support .net but i'm not sure can i make .dll with it .Please guide me .
amacgregor_ has quit [Ping timeout: 264 seconds]
sanav has left #ruby [#ruby]
<bnagy>
not sure it's possible, even with ironruby
Zolo has quit [Remote host closed the connection]
colonolGron has joined #ruby
Zolo has joined #ruby
bluOxigen has quit []
<canton7>
yeah, I imagine it's somewhat hard to *compile* a dll for an *interpreted* language
<bnagy>
well it could link to a runtime
AlSquire has joined #ruby
goganchic has joined #ruby
<MrZYX>
btw. he left after ~90secs
<bnagy>
like I can kind of sketch out in my head vaguely how it could be approached
<bnagy>
oh. cool. :)
<lurch_>
hi, we have some automated builds in jenkins that fail regularly on 'Could not fetch specs from https://rubygems.org/'.. anyone else have these issues? How do you bypass this issue? I could install a proxy (eg: rubygems-proxy) and change /etc/hosts on the buildserver to have rubygems.org point to localhost or something, but not sure if that is possible with https
mootpointer has joined #ruby
sanav has joined #ruby
postmodern has joined #ruby
<MrZYX>
travis recently started to try the bundle install command three times in a row
Gooder has quit [Remote host closed the connection]
huoxito has joined #ruby
Zolo has quit [Ping timeout: 264 seconds]
<sanav>
hello ! please guide me .I want to create dll using ironruby .I'm unable to find proper doc on iron-ruby .Please !
<MrZYX>
why do you need to create a dll?
<bnagy>
sanav: you can't
<bnagy>
do whatever you're trying to do a different way
<sanav>
bnagy: ok !
robonerd has quit [Quit: zzz]
kjellski has joined #ruby
<lurch_>
MrZYX: is that feature released already?
<ganeshran>
how can I avoid typing the fully qualified name of a ruby class in a script
<MrZYX>
lurch_: I think I saw it happen, yeah
<sanav>
MrZYX: i want to play with dll by importing dll in ruby program .But bnagy says we can't make dll using ironruby .
<ganeshran>
instead of module::class , just using class. I tried require, but it doesnt work
<bnagy>
ganeshran: include that module
<ganeshran>
bnagy: ah ok will try that
<MrZYX>
sanav: so you heard "dll" and want to learn about it?
<MrZYX>
or do you have a greater goal?
<bnagy>
sanav: you can use other DLLs, FFI is (imo) the best approach
<sanav>
MrZYX: yes !
<lurch_>
MrZYX: thanks. I'll update bundler on the build server and see if that does it
<MrZYX>
sanav: what bnagy said then
<bnagy>
you just can't make a DLL out of ruby code
<MrZYX>
don't start with creating them, understand what they are and how to use them first
zmansiv has quit [Read error: Connection reset by peer]
<sanav>
MrZYX: how ?
<MrZYX>
lurch_: it won't, it's a feature of travis, not of bundler
<sanav>
MrZYX: i only know they are dynamic library and used by other programs and other dll .
<lurch_>
MrZYX, sorry, misunderstood. I'll try that. thanks again
nhhagen has joined #ruby
goganchic has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
<sanav>
bnagy: thanks for suggesting me FFI module of ruby .
bluebie has joined #ruby
sanav has quit [Quit: Page closed]
<bluebie>
hey ruby peeps!
<bluebie>
I'm looking for a tool!
justsee has quit [Ping timeout: 264 seconds]
<bnagy>
plenty of them in here
<bluebie>
yay!
<bluebie>
I have some LEDs on my monitor, backlights casting RGB on the walls
<bluebie>
they're controlled by a ruby script
<bluebie>
it's great
anay has joined #ruby
<bluebie>
but I'd love to be able to link them up somehow to the music coming out of my itunes, so they could be visualisory
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bluebie>
but I'm at a bit of a loss as to how to do that, on OS X
<bluebie>
any ideas?
mootpointer has joined #ruby
robonerd has joined #ruby
huevon has quit [Quit: huevon]
<bluebie>
anything that could capture the system audio and give it to me live so I could hit it with some FFTs and stuff
<bluebie>
or maybe there's some way to plug in to itunes itself!
<bnagy>
nothing springs to mind, but I don't know osx or itunes well enough
<bluebie>
mmmmm
<bnagy>
can you 'sniff' /dev/audio?
<bnagy>
lame it's not even called that
<bluebie>
there is no /dev/audio or /sound or /snd..
cads has quit [Ping timeout: 256 seconds]
<bluebie>
maybe audio isn't even a unix device :/
<bluebie>
hmm
<bnagy>
I have a tty for my bluetooth speaker
<bluebie>
there are little drivers and programs you can get which create extra virtual audio outputs on the system so you can plug inputs and outputs together to wire programs in to each other
<bluebie>
a tty? :O
<bluebie>
I wouldn't have expected bluetooth audio to go over serial :S
<bluebie>
weird
noname001 has quit [Remote host closed the connection]
<bluebie>
maybe I can use one of those driver thingies to route the sound around so I can capture it just like any other audio input device, like a microphone or line in or whatever
atno has joined #ruby
gyre007 has joined #ruby
<bluebie>
so really I suppose all I need is some library that lets me record an audio input and get the data with not much latency
camilasan has quit [Remote host closed the connection]
<bnagy>
anyway, this is totally not a ruby question
jbpros has joined #ruby
<bnagy>
not yet, anyway :P
zmansiv has joined #ruby
<bluebie>
yeah there's simpler stuff I can use to do that bit, so really I just need to find a good ruby library to capture an audio input (like a line in port) from the system audio thingo
<MrZYX>
on linux I'd look into a gstreamer binding but no idea for os x
moted has joined #ruby
<bnagy>
well, like I said, find out how that kind of app works ( reverse engineer ) then just write it in ruby with FFI, if you really want it in ruby
<ganeshran>
bnagy: thanks it works1
<bnagy>
but if it uses a kmod you might be stuck
<bnagy>
although you could maybe rip off their module and communicate with it
<bluebie>
nah I'm not going to do it that way bnagy!
<bluebie>
I don't want to do RE stuff
kaldrenon has joined #ruby
<bluebie>
I'll just route the system audio through a virtual thing like I said and capture it in the normal way, just like you would a microphone or line in
ixti has joined #ruby
<bluebie>
HMMMMM
hamed_r has quit [Quit: Ex-Chat]
<bluebie>
Or I could just download an airplay server implementation (there's one in perl even!) and translate to ruby, and have ruby man in the middle it :O
<bluebie>
so many options
<bluebie>
I think the virtual sound port thing would be better tho
vince_prignano has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
realDAB has quit [Quit: realDAB]
joshwines has joined #ruby
De`off has joined #ruby
joshwines has quit [Remote host closed the connection]
tommyvyo has joined #ruby
vlad_starkov has joined #ruby
jbpros has quit [Quit: jbpros]
shredding has joined #ruby
IceyEC has joined #ruby
buibex has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
andrew565 has joined #ruby
De`off is now known as Deele
rshetty has quit [Quit: Sleeping]
tommyvyo has quit [Client Quit]
starfox21 has quit [Quit: starfox21]
rovar has joined #ruby
darth_chatri has joined #ruby
rovar_ has quit [Ping timeout: 256 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
marius has quit [Quit: -]
mlpinit has joined #ruby
darth_chatri has quit [Client Quit]
sml0820 has joined #ruby
colonolGron has quit [Ping timeout: 276 seconds]
lyanchih has quit [Quit: lyanchih]
aagdbl has joined #ruby
niceguyjames has joined #ruby
ntus1017 has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
Matriks has joined #ruby
yfeldblum has quit [Quit: Leaving]
Liothen has quit [Quit: System of a down……]
wallerdev has joined #ruby
k610 has joined #ruby
anay has joined #ruby
hogeo has joined #ruby
bluebie has quit [Read error: Connection reset by peer]
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
colonolGron has joined #ruby
cody-- has joined #ruby
persand has quit [Quit: persand]
ryandeussing has joined #ruby
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
mark_locklear has joined #ruby
persand has joined #ruby
yshh has joined #ruby
ryandeussing has quit [Ping timeout: 260 seconds]
jdenen has joined #ruby
kaspergrubbe has joined #ruby
yfeldblum has joined #ruby
mootpointer has joined #ruby
pranny has joined #ruby
pranny has quit [Client Quit]
devoldmx has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
sml0820 has quit [Quit: sml0820]
yshh has quit [Ping timeout: 248 seconds]
interactionjaxsn has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
Senjai has quit [Quit: probably be back in a couple]
Desert_eagle has joined #ruby
mosez_ has joined #ruby
pothibo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
buibex has quit [Remote host closed the connection]
systing has joined #ruby
tommyvyo has quit [Client Quit]
kaldrenon has joined #ruby
rshetty has joined #ruby
breakingthings has joined #ruby
Maoko has joined #ruby
<emergion>
Hey all, when performing a require in ruby 1.9 it seems to evaluate all the code found inside the file it evaluates, this behaviour seems totally different in 1.8 it evalutes nothing, am I right or am I just imagining things ?
shunt has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
<MrZYX>
I'd expect the same behavior in 1.8
shaunbaker has joined #ruby
<ccooke>
emergion: 1.8 definitely evaluated the code
ksmth has joined #ruby
ksmth has quit [Excess Flood]
alem0lars has joined #ruby
<MrZYX>
yup, just tried, same behavior in 1.8
<ccooke>
if it didn't, none of the classes or objects defined in the required file would exist
jibi has joined #ruby
ksmth has joined #ruby
<ccooke>
Ruby classes are defined by evaluation
ksmth has quit [Excess Flood]
kaspergrubbe has quit [Remote host closed the connection]
<ccooke>
emergion: ah! in 1.8, using the square-bracket method on a string returns you the integer character
<emergion>
my bad, I forgot ruby 1.8 cannot handle the single char thing
rcosta has joined #ruby
<emergion>
sorry guys
pskosinski has joined #ruby
dodosan has joined #ruby
<emergion>
Any suggestions on a pretty way to re-write that line without split ? :)
<ccooke>
emergion: if it's 1.8, you can call Puppet.version[0].chr
anay has quit [Remote host closed the connection]
<ccooke>
emergion: Regex?
<ccooke>
emergion: or actually... Puppet.version.start_with? "3."
<ccooke>
which is at least very clear.
<MrZYX>
I'd still just drop 1.8 support
<MrZYX>
MRI did
<MrZYX>
rails did
jonathanwallace has quit [Ping timeout: 264 seconds]
<emergion>
MrZYX, it's just Puppet hasn't yet
anay has joined #ruby
<MrZYX>
everything that release a new major seem to do it
anay has quit [Remote host closed the connection]
<ccooke>
MrZYX: it's not always something that a developer can mandate, though
<ccooke>
there are environments still running 1.8 for decent reasons, and there are many more that need to *support* it
<MrZYX>
so you're going to patch the next security issue?
homelinen is now known as lmlach
ntus1017 has joined #ruby
<ccooke>
MrZYX: You're missing the point, I think :-)
anonymuse has joined #ruby
colonolGron has joined #ruby
rcosta has quit [Remote host closed the connection]
<emergion>
ccooke, start_with? genius!
<emergion>
thanks
<ccooke>
emergion: NP
<emergion>
MrZYX, it can be difficult with system level stuff honestly
alem0lars has quit [Quit: Leaving]
<emergion>
red-hat only just release 1.9.3 packagess
dodosan has quit [Ping timeout: 246 seconds]
ryandeussing has joined #ruby
yalue has joined #ruby
<emergion>
things will catch up, just not tonight
<MrZYX>
old version == stable version is one of the largest misconceptions in the software industry IMO
Dreamer3 has quit [Quit: Leaving...]
robonerd has quit [Quit: zzz]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ccooke>
MrZYX: dealing with it sanely is a big issue. It's just not viable to answer every such problem with "Upgrade to the latest version".
Matriks has quit [Remote host closed the connection]
<ccooke>
(The assumption that this *is* possible is one of the biggest issues in the Ruby community ;-)
devoldmx has quit [Ping timeout: 268 seconds]
<sevenseacat>
oh i wish i could drop 1.8 support
<ccooke>
(s/is/is always/, to be clearer)
<nhubbard>
MrZYX: if I had to install a custom package of ruby on RHEL servers just to run puppet, we would probably migrate off of puppet
terlar has joined #ruby
<nhubbard>
i agree old version != stable version, but in this case 1.8.7 is pretty well battle tested with puppet (especially older versions of puppet)
<shevy>
migrations itself bear a cost too, just look at the transition in python from 2 to 3
<ccooke>
shevy: ugh :-)
<Xeago>
shevy: you are comparing apples to (pears and oranges) here
chxane has quit [Quit: Leaving]
<shevy>
not at all, it was one big reason why I did not switch for a long time
<ccooke>
Xeago: actually, no
ryandeussing has quit [Ping timeout: 256 seconds]
<ccooke>
Xeago: because standard ruby 1.8 and 1.9 don't even share the same *codebase*
<emergion>
It seems everyone is having this issue lately, that's why I'm so excited to try something like docker to help with this
geekbri has joined #ruby
<ccooke>
Xeago: yes, the code is pretty close, but if you have to worry about any sort of certification you have to do the entire job from scratch
<shevy>
Damn... I am always mixing up Xeago with xybre ...
persand has quit [Quit: persand]
<emergion>
As a platforms person myself, it's a a difficult situation. You want to provide developers with the absolutely latest of everything they want, on the same time you have to build stable platforms
pen has quit [Remote host closed the connection]
<MrZYX>
I'm not talking about the latest. 1.8 is simply outdated
<ccooke>
emergion: I think this is actually one of the biggest weaknesses in Ruby, to be honest.
kayloos has quit [Remote host closed the connection]
<emergion>
and compiling ruby 2.0.0 on thousands of servers is just not the answer I'm afraid
<shevy>
hehe
<ccooke>
Every time I see someone suggest that RVM is the only way to handle installing ruby, it makes me sad
<shevy>
nah
<ccooke>
(And let's not get into the packaging issues ;-)
<shevy>
what is RVM doing? it compiles into a specific prefix
<emergion>
best intentions, but it's not the correct way to do things, obviously
<ccooke>
emergion: ... yeah.
<nhubbard>
emergion: yeah, nothing about that ends well in my experience
horofox has joined #ruby
pipework has quit [Remote host closed the connection]
<shevy>
why not
<shevy>
it's --prefix /usr/local
<nhubbard>
we have a pretty strict rule these days that we do not compile anything on our servers anymore, if we need something custom, we have to package it up and deploy it via packages
<ccooke>
shevy: because compilation should never happen on a server that isn't a specialised build server
dhruvasagar has quit [Ping timeout: 269 seconds]
<emergion>
shevy, try automating it
fmcgeough has joined #ruby
<emergion>
and getting it right every time, how do you verify that installation is correct on a huge number of servers ?
<shevy>
you have to compile only once, no?
<emergion>
nhubbard, yup, fpm is pretty awesome for that, there are some really cool things emerging to help solve the issues
<Xeago>
shevy: no, they distribute environment requirements
viszu has joined #ruby
<Xeago>
and based on those requirements they get what they need
<Xeago>
in their case rubyxyz
<Xeago>
then they don't fetch a ruby-binary or ruby-source
Naoe-Kanno has joined #ruby
<Xeago>
isntead they use a package that is prepared for that
<nhubbard>
shevy: yeah basically what emergion is saying….doing that for one server, sure, but what about when you have 100's or what about when you are using cloud and you need to automatically spin up new instances, now compiling ruby takes 5 minutes, so your configuration takes even longer to get your new server online
Jb_ has quit [Ping timeout: 245 seconds]
SHyx0rmZ has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
wudofyr has quit [Remote host closed the connection]
crazymykl has quit [Remote host closed the connection]
wudofyr has joined #ruby
crazymykl has joined #ruby
jaynewstrom has joined #ruby
krawchyk has joined #ruby
<emergion>
I don't think the Ruby community has been particularly slack with it, probably more that a lot of distributions package management tools are python based
<emergion>
so naturally if you want to run something python 2.6 on a centos box, you win
<ccooke>
emergion: no, the ruby community has historically been a bit hostile to packaging solutions
<emergion>
ccooke, I feel that came from the rails/capistrano people
<emergion>
ccooke, passenger
MrZYX is now known as MrZYX|off
<emergion>
it was just what you did on your mac :)
<ccooke>
emergion: no, there are structural issues with packaging gem files and pretty much always have been
<emergion>
ccooke, really, like what ?
tonni has quit [Remote host closed the connection]
persand has joined #ruby
nebula_ has joined #ruby
ehc has joined #ruby
<ccooke>
emergion: Looking for some of the older articles, sec.
<lurch_>
native extensions (shared libraries) are a pain.. you have to build the gem on a machine with the same architecture + libs as the target server
xue has joined #ruby
<lurch_>
we vendor as much as we can using a vagrant box to build the packages for a specific server type
mephux has quit [Ping timeout: 264 seconds]
<emergion>
ah yes of course
<emergion>
python stuff has the same problems though
joofsh has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
ewnd9 has quit [Ping timeout: 256 seconds]
<emergion>
I don't think you can escape the issue
niceguyjames has quit [Quit: Computer has gone to sleep.]
Guest31212 has joined #ruby
tanema has quit [Remote host closed the connection]
<emergion>
I live and breathe this argument at work :) I work with a pretty decent sys admin/python programmer. It goes on and on
<emergion>
I'm also pretty keen on python, but I still encounter a lot of the same problems with newer stuff
hogeo has quit [Remote host closed the connection]
lucazi has joined #ruby
JDHankle has joined #ruby
jonathanwallace has joined #ruby
joofsh has quit [Remote host closed the connection]
joofsh has joined #ruby
Davey has joined #ruby
<ccooke>
emergion: I'm failing to find much that isn't a bit too vitriolic to take seriously, atm. Lots of people talking *about* the issues but not actually discussing what they are
hiroyuki has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
<ccooke>
emergion: so I'll have to work from memory. The basic assumptions that are problematic (IIRC) are the compilation assumption and (certainly in the past) some assumptions of directory locations that don't fit within every distribution's hierarchical model
jerius has joined #ruby
tomzx_mac has joined #ruby
prime_ has joined #ruby
xiphffff3 has joined #ruby
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<emergion>
ccooke, yup, the complication of native extensions is the biggest issue for sure
shunt has joined #ruby
<ccooke>
emergion: it's an easily solved problem. Certainly things have improved in debian-land over the last few years
Davey has quit [Client Quit]
<ccooke>
emergion: but it's a lot of *work* to solve
joofsh has quit [Remote host closed the connection]
ohcibi_ has joined #ruby
riku- has joined #ruby
momomomomo has joined #ruby
xpirator has joined #ruby
AllStruck_ has joined #ruby
peterhel1berg has joined #ruby
hoelzro_ has joined #ruby
<emergion>
ccooke, yup!
zzak_ has joined #ruby
<emergion>
anyway thanks for your help mate
<ccooke>
NP
ihme-TTilus has joined #ruby
denken_ has joined #ruby
skogis has joined #ruby
rien_ has joined #ruby
ichilton_ has joined #ruby
burlyscudd has joined #ruby
<emergion>
night all
Dwarf_ has joined #ruby
timonv has joined #ruby
mnemon2 has joined #ruby
jerius has quit [Quit: jerius]
PLejeck has joined #ruby
tonni has joined #ruby
brjannc has joined #ruby
nhubbard_ has joined #ruby
nhubbard_ has quit [Excess Flood]
rshetty has quit [Quit: Sleeping]
seich| has joined #ruby
Spitfire_ has joined #ruby
anildigi- has joined #ruby
lupine_85 has joined #ruby
baordog has joined #ruby
heftig has quit [*.net *.split]
wicked has quit [*.net *.split]
Dwarf has quit [*.net *.split]
xiphffff2 has quit [*.net *.split]
prime has quit [*.net *.split]
lupine has quit [*.net *.split]
mnemon has quit [*.net *.split]
seich- has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
rien has quit [*.net *.split]
Norrin has quit [*.net *.split]
zzak has quit [*.net *.split]
ShapeShifter499 has quit [*.net *.split]
hoelzro has quit [*.net *.split]
nhubbard has quit [*.net *.split]
m4rcu5 has quit [*.net *.split]
Spitfire has quit [*.net *.split]
ohcibi has quit [*.net *.split]
AllStruck has quit [*.net *.split]
peterhellberg has quit [*.net *.split]
brjannc| has quit [*.net *.split]
Nuck has quit [*.net *.split]
ZadYree has quit [*.net *.split]
skogis_ has quit [*.net *.split]
Veejay has quit [*.net *.split]
tethra has quit [*.net *.split]
TTilus has quit [*.net *.split]
ichilton has quit [*.net *.split]
denken has quit [*.net *.split]
anildigital has quit [*.net *.split]
riku has quit [*.net *.split]
prime_ is now known as prime
prime has joined #ruby
prime has quit [Changing host]
riku- is now known as riku
AllStruck_ is now known as AllStruck
ichilton_ is now known as ichilton
ZadYree_ has joined #ruby
jerius has joined #ruby
<avril14th>
Morning, I have a class A with different children classes. When doing self.class in a method of A I get A which is normal, now is there a way to get the children class?
Spitfire_ has quit [Changing host]
Spitfire_ has joined #ruby
lupine_85 is now known as lupine
emergion has quit [Quit: Computer has gone to sleep.]
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has joined #ruby
buenob has joined #ruby
freerobby has joined #ruby
browndawg has quit [Read error: Connection timed out]
<Bira_>
Hello! What is the expected behavior when you call Socket::getaddrinfo with a non-existent address? As in Socket.getaddrinfo("nonexistent",80)?
MrThePlague has joined #ruby
<Bira_>
I'm getting an ENOENT ("No such file or directory - getaddrinfo"), but I'm not sure that's the right behavior.
g0bl1n has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
sjltaylor has joined #ruby
sjltaylor has quit [Client Quit]
aagdbl has quit [Quit: Leaving.]
ehc has quit [Quit: ehc]
Matriks has joined #ruby
Jb_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
jlast has joined #ruby
anay has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
slap_stick has quit [Quit: CGI:IRC (Session timeout)]
<mjc_>
Bira_: what about Socket.getaddrinfo("nonexistent","http") ?
<Bira_>
mjc_: Same thing.
timonv has quit [Remote host closed the connection]
awwaiid has joined #ruby
towelette55 has joined #ruby
jbpros has joined #ruby
<lurch_>
Bira_: in irb i get: "SocketError: getaddrinfo: nodename nor servname provided, or not known", so not the 'No such file or directory'
amacgregor has quit [Ping timeout: 245 seconds]
<Bira_>
lurch_: I'm using Ubuntu 13.04 and rbenv. Maybe I'm missing a system dependency? What are you using?
sml0820 has joined #ruby
<lurch_>
os x + rvm
<_br_>
lord1234: Bundler can take care to some extent for you to load certain assets. e.g. on http://bundler.io/ see the line with spec gem 'rspec', :require => 'spec'; If you include Bundler now correctly in your path then bundler will make sure the lib is required before executing your code.
<Bira_>
This is Ruby 2.0.0-p247, by the way.
nerdman has quit [Quit: leaving]
<lurch_>
oh.. i'm on 1.9.3 still
<Bira_>
1.9.3 actually behaves the same for me, so I don't think it's something specific to the Ruby version.
BSaboia has joined #ruby
<_br_>
Bira_: Well sockets are just special files. So the error message makes sense.
<_br_>
Unix / Linux has follows the "everything is a file" principle
<mjc_>
doesn't sound right to me
<Bira_>
I agree the error makes sense, but shouldn't I be getting a SocketError instead?
<_br_>
Bira_: check out "man errno", this error is leaked from the C implementation into ruby.
ryandeussing has quit [Ping timeout: 276 seconds]
rhys has joined #ruby
<lord1234>
_br_: I changed my Gemfile-linux to :require => 'curb" after the curb line, ran " bundle --gemfile=Gemfile-linux, and on bundle exec still got the same error
<lord1234>
did I do something wrong?
kdaigle_ has joined #ruby
<_br_>
mjc_: Well, GNU/Linux is known to mess with old "standards" from the unix world. So I would be surprised if it changes depending on your distro.
banisterfiend has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Quit: WeeChat 0.4.1]
banisterfiend has joined #ruby
<_br_>
lord1234: Hm, it seems that Curb is loaded then. Odd.
<mjc_>
it sounds like the wrong error is being returned from something
<mjc_>
probably because something is actually wrong
kdaigle_ is now known as kdaigle__
<mjc_>
_br_: EAI_* error codes for getaddrinfo are POSIX.1-2001
Criztian has joined #ruby
<_br_>
mjc_: Sure. I'm not in-depth familiar with what is in which spec.
<lord1234>
so..ummm...is there anything else I can do to trouble shoot/identify what is up?
mmitchell has joined #ruby
<mjc_>
Bira_: does the system have nss-myhostname installed? (libnss-myhostname on debian/ubuntu)
<_br_>
lord1234: Does irb -r curb -e "" ; Execute without an error?
danbeck has joined #ruby
MarioEIU has joined #ruby
filipe has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
MarioEIU has left #ruby [#ruby]
wolcanus has joined #ruby
<lord1234>
unrecognized switch -e....
<_br_>
lord1234: ah sorry ruby -r 'curb' -e ''
wolcanus has quit [Remote host closed the connection]
<lord1234>
yes it does
<lord1234>
but lemme try it with bundle exec ruby ....
<Bira_>
mjc_: Apparently not.
wolcanus has joined #ruby
<awwaiid>
post Don't forget to @celebratewhyday! #whyday
<lord1234>
yes no errors with bundleexec
<awwaiid>
oops. that was supposed to be in bitlbee. oh well.
kdaigle__ is now known as kdaigle
narcan has joined #ruby
<Bira_>
The bug does seem to be at around that level - something in glibc, or possibly caused by a lack of that library.
v1n has quit [Ping timeout: 240 seconds]
<mjc_>
Bira_: could be a problem with nss
<mjc_>
you might get an ENOENT if nss is messed up or if proxy settings are set incorrectly
rcosta has quit [Remote host closed the connection]
mansi has joined #ruby
tagrudev has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
tonni has quit [Ping timeout: 248 seconds]
tonni has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<_br_>
lord1234: Ok, this is really odd. That means the lib is installed correctly and required correctly but your code still fails.
<lord1234>
all the files in that folder are the same permissioning scheme....
<C0C0>
MrZYX: your right, it does
<C0C0>
gonna read the code
<C0C0>
didn't know this existed
dangerousdave has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
buibex has joined #ruby
<_br_>
lord1234: does the code you use work? No error?
<lord1234>
yes
<ericwood>
he got a CodeNotWorking exception
<lord1234>
as long as I don't bundle exec
akells` has quit []
<lord1234>
(I have the gems already installed in the gem list on the machine...)
akells` has joined #ruby
akells` is now known as akells``
<_br_>
ericwood: ^^
justsee has quit [Quit: leaving]
<lord1234>
_br_ any thoughts?
filipe has quit [Ping timeout: 276 seconds]
jarray52 has joined #ruby
aryaching_ has joined #ruby
<_br_>
lord1234: Its a permission issue. Somewhere some folder has insufficient rights, hence the issue. Not sure whats going on otherwise.
shaunbaker has quit [Remote host closed the connection]
aryaching_ has quit [Client Quit]
<sml0820>
I have a quesiton for a game in ruby console. I have a line -- wrong_input unless input == :exit . How do I make it so when the user types exit, it exits back to the command line?
dhruvasagar has joined #ruby
<_br_>
sml0820: Game? Ruby console? Huh? For that unless just execute "exit"
tesuji has quit [Read error: Connection reset by peer]
<ericwood>
exit(0) if gets == 'exit'
amacgregor has joined #ruby
_maes_ has joined #ruby
__maes_ has joined #ruby
bluenemo_ has quit [Remote host closed the connection]
<ericwood>
did that do the trick?
<ericwood>
I made it up, so tell me if it works mmk??????
Matriks has quit [Remote host closed the connection]
<someish>
_br_: I'm receiving a permission denied error when I try to install a gem of a specific version - i.e. gem install gem_name --version '1.1.1'. However, when I do an install without a specific version everything works as expected.
<C0C0>
they are a pain in the ass since pretty much every 3rd party lib produces them
sarkis has joined #ruby
froy has joined #ruby
<apeiros>
C0C0: sadly the warning system sucks. it'd be nice to enable warnings only for your own library exactly for that reason.
ixti has joined #ruby
<C0C0>
gosh
jbpros has joined #ruby
<apeiros>
I stopped using -w exactly because of that (3rd party libs overwhelming me with warnings)
<C0C0>
i allready implemented some kind of "silent" fucktion
<C0C0>
that i use like silent { require 'thislib'; require 'thatlib' }
<C0C0>
but pry-rescue produces warnings in every useage
zmansiv has quit [Remote host closed the connection]
<C0C0>
maybee I should just fork & patch pry-rescue
ferdev has joined #ruby
tjad has quit [Ping timeout: 248 seconds]
pel_daniel has joined #ruby
Coolhand has joined #ruby
towelette55 has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Quit: Leaving.]
r0bgleeson has joined #ruby
sayonara_univers has joined #ruby
roninn has quit [Read error: Operation timed out]
baroquebobcat has quit [Quit: baroquebobcat]
QQQ has quit [Ping timeout: 248 seconds]
s1n4 has joined #ruby
sevenseacat has left #ruby [#ruby]
s1n4 has left #ruby [#ruby]
burlyscudd has joined #ruby
towelette55 has joined #ruby
lethjakm1 is now known as lethjakman
tanema has joined #ruby
<_br_>
C0C0: This is interesting. How does that work exactly?
Matriks has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lyanchih has quit [Quit: lyanchih]
leeurooi has quit [Quit: I'm outta here]
thepreacher has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
sayonara_univers has quit [Ping timeout: 250 seconds]
stkowski has joined #ruby
<C0C0>
_br_: ?
<C0C0>
_br_ it temporarily turns of the warning mode
threesome has quit [Ping timeout: 268 seconds]
sayan has quit [Ping timeout: 264 seconds]
* lsmola
is away: Away
wolcanus has joined #ruby
yaymukun1 is now known as yaymukund
baroquebobcat has joined #ruby
colonolGron has joined #ruby
v0n is now known as v1n
ghr has joined #ruby
v1n is now known as v0n
ixti has quit [Ping timeout: 264 seconds]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RubNoob has joined #ruby
aryaching_ has joined #ruby
<RubNoob>
anyone had any luck/can provide an example of how to use the zk gem to create a watcher?
nomenkun_ has quit [Remote host closed the connection]
sjltaylo_ has joined #ruby
apeiros has quit [Remote host closed the connection]
Neener54 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
<lord1234>
_br_: guess I will only use bundle on Windows
<lord1234>
not on linux....
<lord1234>
:(
mikepack has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
<lord1234>
only way to make it work it seems
<MrZYX>
I guess your Windows Gemfile is named Gemfile and doesn't include curb?
mrchris has joined #ruby
<mrchris>
What needs to be set for 'require "rubygems"' to work?
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
Your computer probably has to be plugged in & powered on.
aryaching_ has quit [Ping timeout: 276 seconds]
<mrchris>
pipework: What environment variables must be set?
<mrchris>
I have an old rails app on a server and I need to test some of the ruby gems but I can't run 'require "rubygem"'
<pipework>
GEM_PATH, RUBY_ROOT perhaps?
burlyscudd has quit [Quit: Leaving.]
<lord1234>
MrZYX: correct
lurch_ has quit [Quit: lurch_]
maz-dev has joined #ruby
wolcanus has quit [Ping timeout: 264 seconds]
<pipework>
GEM_ROOT too?
<mrchris>
Which folder does GEM_PATH need to be set to?
LaPetiteFromage has joined #ruby
ferdev has quit [Quit: ferdev]
Lewix has joined #ruby
<pipework>
Wherever the gem directories are for your install?
<pipework>
Could be anywhere you want.
wolcanus has joined #ruby
thepreacher has quit [Quit: Leaving]
devoldmx3 has quit [Ping timeout: 276 seconds]
dash_ is now known as d45h
ferdev has joined #ruby
buenob has joined #ruby
ferdev has quit [Client Quit]
thepreacher has joined #ruby
thepreacher has quit [Read error: Connection reset by peer]
<mrchris>
Ok I've just set GEM_PATH and RUBY_ROOT but it still says 'no such file to load -- rubygems', : 'export GEM_PATH=/usr/local/lib/ruby/gems/1.8' ' export RUBY_ROOT=/usr/local/bin/'
thillux has joined #ruby
<mrchris>
Am I missing something else?
filipe has quit [Remote host closed the connection]
danbeck has quit [Quit: danbeck]
mando has joined #ruby
TheMoonMaster has quit [Excess Flood]
ananthakumaran has joined #ruby
<mrchris>
'gem list' works though
sambao21 has quit [Quit: Computer has gone to sleep.]
xcv has quit [Read error: Connection reset by peer]
geekbri has quit [Ping timeout: 276 seconds]
jtgiri_ has joined #ruby
xcv has joined #ruby
tanema has quit [Remote host closed the connection]
noopq has joined #ruby
rcosta has joined #ruby
rcosta has quit [Remote host closed the connection]
rcosta has joined #ruby
saarinen has quit [Quit: saarinen]
ephemerian has quit [Quit: Leaving.]
qubozik_ has quit [Quit: Leaving]
burlyscudd has quit [Ping timeout: 264 seconds]
xcv has quit [Ping timeout: 240 seconds]
thillux has quit [Quit: Leaving]
saarinen has joined #ruby
motto has joined #ruby
dmerrick has joined #ruby
apeiros has quit [Remote host closed the connection]
chrisja has joined #ruby
pjeide has quit [Quit: Leaving.]
jonathanwallace has quit [Read error: Operation timed out]
thillux has joined #ruby
nightshade427 has joined #ruby
jbpros has joined #ruby
ixti has joined #ruby
thillux has quit [Read error: Connection reset by peer]
<nightshade427>
Is there a rest api or similar for ruby-doc.org? Trying to create apibot for irc for ruby
love_color_text has joined #ruby
gazarsgo_ has joined #ruby
gazarsgo has quit [Ping timeout: 260 seconds]
gazarsgo_ is now known as gazarsgo
brennanM_ has joined #ruby
brennanMKE has quit [Ping timeout: 262 seconds]
narcan has quit [Write error: Broken pipe]
m8 has quit [Ping timeout: 246 seconds]
danbeck has quit [Quit: danbeck]
apeiros has joined #ruby
danbeck has joined #ruby
brennanMKE has joined #ruby
jbpros has quit [Client Quit]
mark_locklear has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
<Donovan>
so here's a question I haven't been able to find an answer to... in ruby, how can you programmatically return self (for method chaining) or a string value (when not being chained)?
burlyscudd has joined #ruby
Matriks has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
<apeiros>
Donovan: you use different methods
nightshade427 has left #ruby [#ruby]
<apeiros>
"say what you mean"
<Donovan>
more succinctly, I need to return a method or the value of that methods call
<Donovan>
database lookup. in 'def []
khushildep has joined #ruby
axeman- has joined #ruby
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Donovan>
I need to either look up the value and return it, or return the SQL query method
<Donovan>
the latter so I can chain it with other query methods
<Donovan>
apeiros: separate methods won't work for me in this example.
<apeiros>
same methods doing different things in different contexts == bad idea anyway
brennanM_ has quit [Ping timeout: 276 seconds]
rcosta_ has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<Donovan>
not necessarily
Banistergalaxy has quit [Ping timeout: 264 seconds]
<Donovan>
for instance, perl has 'wantarray'
thillux has joined #ruby
Voodoofish430 has joined #ruby
rcosta has quit [Ping timeout: 246 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
<apeiros>
yeah. back when perl was one of my first programming languages, I even liked that.
<apeiros>
now I think that's one of its deeper flaws.
pen has quit [Read error: Connection reset by peer]
<apeiros>
but it doesn't matter. ruby doesn't provide a way to figure whether you chain or not
pen has joined #ruby
<apeiros>
the things you can distinguish within methods are: which self, which method invoked, what args passed, block passed.
<pipework>
Isn't that what aspect-oriented programming is about?
<pipework>
I wouldn't know, it's the most boring thing to read about.
thillux has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
thillux has joined #ruby
<Donovan>
hmmm... shame, that.
gildo has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
<apeiros>
what you can do is a) use different methods, or b) return an intermediary result upon which you tell how to proceed
<Donovan>
I suppose I could use another class... and return that class, which has a to_s method
<Donovan>
but that seems wonky to me
<Donovan>
thanks, though, in any case
rippa has joined #ruby
sambao21 has joined #ruby
thillux has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
axl_ has joined #ruby
mark_locklear has joined #ruby
i_s has joined #ruby
jp- has joined #ruby
ntus1017 has joined #ruby
thillux has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby
dodosan has joined #ruby
zombiebit has quit [Remote host closed the connection]
lxsameer has joined #ruby
<lxsameer>
is it possible to found out, which ruby file added and specific method to a class ?
BSaboia has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
<brisbin>
i can never remember what works and what doesn't so i just try different combinations of foo: foo, foo_id: foo, and foo: foo.id until it works :D
badquanta has quit [Remote host closed the connection]
carlyle has joined #ruby
pentameter has joined #ruby
afd__ has joined #ruby
thillux has joined #ruby
<sml0820>
does anyone know if each_with_index starts at 0 or 1?
nadirvardar has joined #ruby
timonv has quit [Remote host closed the connection]
<brisbin>
as with any sane implementation of indexing, 0
<sml0820>
brisbin: ty
thillux has quit [Read error: Connection reset by peer]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
thillux has joined #ruby
thillux has quit [Read error: Connection reset by peer]
thillux_ has joined #ruby
thillux_ has quit [Read error: Connection reset by peer]
<Morrolan>
What's so confusing about instance variables? *scratches head*
<Morrolan>
Python... has those too. Kind of.
jerius_ has joined #ruby
<popl>
something something flame war something special olympics
<bricker`LA>
I'm trying to see if `hash.clear` or `hash = {}` is faster, but can't think of a good way to benchmark it. This is what I have https://gist.github.com/bricker/6272454 but I don't think that's really checking anything
<bricker`LA>
I *assume* hash.clear is faster, but wanted to be sure
<popl>
bricker`LA: premature optimization?
<bricker`LA>
popl: nope, just curiosity
<Paradox>
Morrolan, the thread is in r/python, so naturally its going to be full of hate-jerking
rmcafee has joined #ruby
<Paradox>
because of GIDSWAD
<Morrolan>
Oh, that's one of those threads, I see.
<popl>
Paradox: GIDSWAD?
<Paradox>
guido is a douche so we are douches
<popl>
oh
<Paradox>
the python version of MINSWAN
rmcafee has quit [Client Quit]
jerius has quit [Ping timeout: 248 seconds]
<popl>
but people here aren't nice
<popl>
not all of them
rmcafee has joined #ruby
<Morrolan>
Matz is nuts so we are nuts?
jtgiri_ has joined #ruby
<Paradox>
lol: "python is top class in homebrew web dev"
<Paradox>
and he cites django
<Paradox>
thats like citing wordpress for reasons why php isnt terrible
<Morrolan>
Anyway, I like both Python as well as Ruby, and both seem to have nice (IRC) communities. *shrug*
monkegjinni has joined #ruby
<Morrolan>
Except that #python is a tad more religious when it comes to network programming. *snickers*
<Paradox>
really?
<bricker`LA>
I like #python, they have helped me with a lot.
_honning_ has joined #ruby
<Paradox>
my experience in #python was more evidence for me to leave the language
<Paradox>
because no matter what i did they treated me like shit
monkegji_ has joined #ruby
<popl>
The one constant I find in #python, #ruby, and #perl is there is very little if any love expressed for PHP
<Morrolan>
popl: Haha.
<Paradox>
PHPSUCKS = true
<Morrolan>
I wonder what #php is like. :)
<popl>
COCKS
<popl>
^
<Paradox>
Morrolan, I CANT GET WORDPRESS INSTALLED HELP PLS
<onewheelskyward>
Noone who goes ever comes back.
<popl>
onewheelskyward: I went there before.
<Paradox>
SOMEONE WANT TO HELP ME MAKE A DRUPAL SITE? ILL PAY YOU $50
<onewheelskyward>
The same. Ever comes back the same. :)
<Morrolan>
Paradox: Oh, come on now, it's not as if #ruby wouldn't have people who ask questions like these. ;)
<Paradox>
Morrolan, no, but people are far more friendly in the ruby community in general
<Morrolan>
"Hey, how do I print to the console?" then, five minutes later, "Hey, how do I <do some other basic thing>".
<Paradox>
i got soured by python after taking a year of cs and seeing the python sperglords being huge asshats
<Morrolan>
That might be the case. :)
weeems has quit [Ping timeout: 264 seconds]
<Paradox>
while the ruby guys were friendly
<eka>
Paradox: isn't there a #drupal channel?
tmi has joined #ruby
<Paradox>
eka, idk i dont use psuedoframeworks ;)
<popl>
attack ships on fire off the shoulder of Orion
<Paradox>
like… in cs i used a mac because macs are awesome. I cant tell you the number of dorklings that went out of their way to criticize it, sometimes walking across the room just to leave a commentary
<n3rd>
would someone be able to assist me in writing a ruby script to take a file with a list of words 1 on each line and print it to all be on 1 line seperated by | please?
<Eiam>
eka: I'm okay with not addressing that issue until a bit later
<Eiam>
fundamentally to be a functioning member of society and be able to see beyond "member of society" everyone should probably learn to read & write & math
<Eiam>
and as far as I'm concerned, grades 1-5 can take care of that
<pontiki>
Eiam: the issue with much of the implementation of things like that, and things like NCLB, and practically every large scale attempt at "fixing" schools is that it's applied like a friggin hammer
ebouchut has quit [Quit: This computer has gone to sleep]
<Eiam>
afterwards, well, we will see. I've long wanted to homeschool! =)
Neomex has joined #ruby
Neomex has quit [Client Quit]
<pontiki>
i've seen it work extremely well, and also fall completely to pieces
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
staafl has joined #ruby
<Eiam>
pontiki: I'm not really sure yeah, you can't "wide scale" fix anything
<Eiam>
pontiki: fundamentally, schools cannot handle every personality type
<pontiki>
nope
<Eiam>
its kind of up to parents to handle that
lxsameer has quit [Ping timeout: 260 seconds]
<pontiki>
public schools, as they are today, definitely not
momomomomo has quit [Client Quit]
<Eiam>
or very small schools
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
<Eiam>
like a community homeschool of 8 kids
<pontiki>
in any given location, there may be no alternative for some personalities, some individuals
<havenwood>
Paradox: Thanks for the link, ordered a few. :)
danieldax_ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<havenwood>
Who knows when you might need a glass Ruby!
<pontiki>
and the variance in teachers abilities, and the usually abysmal effects of school administrators means things like individuation will fail
musl has quit [Quit: WeeChat 0.4.1]
robustus has joined #ruby
<pontiki>
it's a tough situation
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
zavier has joined #ruby
<Eiam>
pontiki: I don't think schools need to solve the problem of individualization, they just need to make sure people have the skills necessary to develop individualization on their own or with their parents help =)
<pontiki>
also the case that *parents* can't necessarily handle teaching their kids, too
<Eiam>
also, can't be that bad, a lot of functioning members of society at this very moment came from public school =)
<pontiki>
yes
<pontiki>
it's a system that works
mmitchell has quit [Read error: Operation timed out]
<pontiki>
it has problems
<C0C0>
homescholing is quite a nontrivial problem
<pontiki>
but it isn't broekn
<C0C0>
here its forbidden
<Eiam>
pontiki: sounds like my code =)
<pontiki>
where is here, C0C0
<C0C0>
to prevent religios fanatics from fucking up future generations
<C0C0>
germany
<Eiam>
It's a system that works, it has problems, but it isn't broken
<Eiam>
C0C0: ah, you can do it here but the state has standardized stuff you have to pass through
timonv has joined #ruby
<pontiki>
Eiam: it's an important distinction, though; so many people quite believe our public school system is a complete failure and should be trashed
<Eiam>
so you can say "I'm home schooling" and not be actually teaching anything
<Eiam>
cant
pygospa has quit [Quit: leaving]
<popl>
yes you can
<popl>
I'm home schooling.
<popl>
^
<C0C0>
Eiam: well its less about "they come out not knowing how to do math"
<pontiki>
location is important there, popl
<popl>
pontiki: location, location, location
nomenkun has quit [Remote host closed the connection]
<C0C0>
but more like "they come out thinking that $deity's favourite paperwork should be regarded as law"
<popl>
oh brother
<Eiam>
ahwell
<Eiam>
can't argue with that as being a good thing to avoid =)
<Eiam>
one of my dear friends growing up was home schooled
<Eiam>
her parents bought a house in colorado to avoid the impending y2k holocaust or whatever
<Eiam>
stocked up on supplies & moved out there to survive..
<pontiki>
not safe from airplanes falling out of skies!!
wicketn00b has joined #ruby
<Eiam>
oh religion, you so silly sometimes =)
<C0C0>
yeah nutjobs like that
<C0C0>
or political indoctrination for the matter of fact
<pontiki>
or those nuke satellites that dropped out of orbit!!
<pontiki>
i remember all that happening....
danieldax has joined #ruby
stuartrexking has joined #ruby
rickmasta has joined #ruby
jdenen has quit [Read error: Connection reset by peer]
jdenen1 has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
lele has joined #ruby
jtgiri_ has joined #ruby
<C0C0>
but germany is quite strict with respect to religion (e.g. scientology is officially regarded as a scam not as a religion)
timonv has quit [Remote host closed the connection]
pygospa has joined #ruby
<apeiros>
for good reason
benjamin_ has joined #ruby
<benjamin_>
i'm developing an application that uses Watir to automatically browse an internet site
<pontiki>
cool
sml0820 has joined #ruby
luckyruby has quit [Remote host closed the connection]
jtgiri_ has quit [Ping timeout: 240 seconds]
<benjamin_>
i'm having trouble navigating to the correct site. i am able to log in but from there im not sure what link to provide
sml0820 has quit [Client Quit]
hamakn has joined #ruby
devoldmx27 has quit [Ping timeout: 246 seconds]
<pontiki>
here's my suggestion: start up an irb or pry session, load in watir, and fire it up on the site. then just gather the links and see what's there
huevon has quit [Quit: huevon]
RichardBaker has joined #ruby
<pontiki>
it's pretty easy to combine that with using the browser inspector and the same time
jtgiri_ has joined #ruby
<benjamin_>
that's what im doing, but one link wont execute in the code
<platzhirsch>
Eiam: yes, that's the thing I am just looking at Angeular.js and wonder.. what the f*** have I been doing all the time.
<Eiam>
oh, and go and dart and etc etc
<Eiam>
platzhirsch: in Ruby, I'm still just writing plain ole ruby
monkegjinni has joined #ruby
jaimef has joined #ruby
sterNiX has joined #ruby
<benjamin_>
forgive me, i'm new to this, don't know etique
<benjamin_>
*etiquette
<benjamin_>
what are you rates?
<benjamin_>
*your
<Eiam>
lol
<pontiki>
i think it's rather obvious that when someone tells you "no" you should not keep asking
sparq_ has joined #ruby
_maes_ has quit [Read error: Connection reset by peer]
<platzhirsch>
wat
DanKnox_away is now known as DanKnox
monkegji_ has joined #ruby
russt has joined #ruby
carlyle has joined #ruby
<benjamin_>
i need a small amount of help, mainly in framing the question
<benjamin_>
i'm trying to take an element from a website and insert it into a watir application
zombiebi_ has joined #ruby
zombiebit has quit [Ping timeout: 260 seconds]
<benjamin_>
im trying to figure out how do take the correct element
<benjamin_>
where would i go to get the answer to this question?
<havenwood>
benjamin_: A really nice trick is to right-click and inspect the element in Chrome, then right click again on the code and "Copy XPath".
<benjamin_>
tried that
<havenwood>
benjamin_: Then the fallback is to learn XPath (or CSS selectors). :P
rcosta has joined #ruby
<havenwood>
benjamin_: Yeah, or hire someone.
ndrei has quit [Quit: leaving]
<havenwood>
benjamin_: Rates here seem to vary from $30-$150 per hour depending on skill.
monkegjinni has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
JimmyNeutron has quit [Ping timeout: 260 seconds]
<havenwood>
(Los Angeles)
<havenwood>
But same for remote.
<havenwood>
Freelance rates**.
g0bl1n has quit [Quit: Ex-Chat]
<havenwood>
Hard for small projects, cause it often will take like 15min, and harder to setup payment than actually fix the problesm.
luckyruby has joined #ruby
<benjamin_>
which is why i'm wondering if someone can just be awesome. if i can get through this one part i can do the rest. i've already got a significant start
<havenwood>
I guess IRC is a nice measure for very-small-problems. Easier to just do it for free. But for +1 hours I guess a wire is fine. Still I charge more for short jobs cause of the pain.
<havenwood>
mmm, xpath...
DanKnox is now known as DanKnox_away
Kruppe has quit [Ping timeout: 246 seconds]
<benjamin_>
can you take a look and if you anticipate it will take more than an hour we can set up a payment?
senayar has joined #ruby
tommyvyo has quit [Quit:]
<benjamin_>
it definitely won't take more than an hour for someone who knows
<havenwood>
I actually would, but have no time at the moment. Sure you can get a bite though. Any XPath'ers around?
<benjamin_>
is there an xpath channel?
tommyvyo has joined #ruby
l33_ has joined #ruby
jongilbraith has joined #ruby
<popl>
benjamin_: /msg alis help will tell you how to search for channels on freenode ;)
brennanMKE has joined #ruby
<havenwood>
CSS selector would be another route that works in almost all cases, though XPath is ultimately more flexible.
<Lewix>
why don't we use metaclass.class_eval instead?
<n3rd>
Okay I think I almost have the results I want except one thing http://pastie.org/8251262 I am getting an extra pipe at the end that I do not want
ewnd9 has joined #ruby
l33_ has quit [Ping timeout: 256 seconds]
<n3rd>
how can I get rid of the very last pipe? it prints my list like {one|two|three}| lol
<shevy>
wat
<shevy>
n3rd man ways
Criztian has quit [Remote host closed the connection]
<shevy>
your_string.chop! if your_string[-1,1] == '|'
<shevy>
*many ways
<shevy>
.delete or .gsub would be more ways
pencilcheck has joined #ruby
<Lewix>
can the singleton class have singleton methods
<n3rd>
but with gsub would I just do text.gsub(/$\|/, '}') ?
<shevy>
ack
<shevy>
there is a gem called "chemistry" but it does not do anything at all
<shevy>
can't we get rid of obsolete projects?
<shevy>
they just block nice names :(
<pontiki>
kind of an interesting question
DanKnox_away is now known as DanKnox
<pontiki>
like domain names, in a way
<shevy>
n3rd I think you can somehow direct the regex
tommyvyo has quit [Quit:]
<shevy>
n3rd, if it is the last | try to anchor it ... /\|$/
jealous-pated77 has joined #ruby
<shevy>
yeah pontiki
<shevy>
or specify additional repositories
<shevy>
one for github for instance
<Lewix>
pontiki: was it for me?
<shevy>
my project names conflict with other gems already :(
<pontiki>
Lewix: ?
<Lewix>
never mind
<shevy>
and inactive projects without any code in it do not help anyone
<pontiki>
namespace polution
pen has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
<pontiki>
i wonder if there's something that could be done with things that haven't seen any activity
Quashie has joined #ruby
tommyvyo has joined #ruby
<pontiki>
or, just get rid of rubygems entirely
<benjamin_>
if nobody responds on #xml, are there any other resources to which I can look?
michaeldeol has quit [Remote host closed the connection]
postmodern has joined #ruby
<n3rd>
shevy: ok that worked I just had it switched how I had suggested. my other question is how can I turn this into an app for someone to actually use?
<shevy>
n3rd if you really think it is useful, turn it into a gem
kevinfagan has joined #ruby
daniel_hinojosa has quit [Ping timeout: 264 seconds]
monkegji_ has quit [Ping timeout: 268 seconds]
d45h has quit [Quit: d45h]
<shevy>
pontiki, hopefully one day... like projects that have not been active since some years, community votes could decide or review on it whether to keep it
<n3rd>
I am using it to create spindex from lists of keywords
<pontiki>
ruby-toolbox already keeps track of a lot of that stuff
geekbri has quit [Remote host closed the connection]
cpruitt has joined #ruby
<pontiki>
number of downloads, number of recent downloads, recent activity on the repo, etc
<n3rd>
I want there to be a button to browse and select a file then have it turn into what my regex does
<staafl>
what is the most "hardcore" book on ruby
<staafl>
as in, really deep, guru-level stuff
forced_request has quit [Ping timeout: 245 seconds]
tatsuya_o has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 260 seconds]
CalvinnHobbes has joined #ruby
saarinen has quit [Quit: saarinen]
monkegji_ has quit [Ping timeout: 249 seconds]
kaldrenon has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
<pontiki>
>> "some stuff P123 and more stuff G456 blah".split(/(.)(\d+)/)
<eval-in>
pontiki => ["some stuff ", "P", "123", " and more stuff ", "G", "456", " blah"] (https://eval.in/43864)
ldnunes has quit [Quit: Leaving]
<pontiki>
that's why
<shevy>
oh, I make sure the input can only be in this form
<CalvinnHobbes>
If you have two objects (say obj_a and obj_b) and how do you copy the instance variables of obj_a to obj_b while retaining the instance variables of obj_b that do not exist in obj_a?
<shevy>
P4 S11
<pontiki>
right, but then you're misusing split
<shevy>
sounds complex CalvinnHobbes
anonymuse has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 260 seconds]
<CalvinnHobbes>
Im picturing something like the update_attributes of ActiveRecord
saarinen has joined #ruby
yaymukund has joined #ruby
<pontiki>
what do you mean retaining instvars that don't exist in ob_b? retain them where?
JDHankle has quit [Remote host closed the connection]
yshh has joined #ruby
<CalvinnHobbes>
on obj_b
<pontiki>
do you mean create them in obj_b if they don't exist?
luckyruby has quit [Remote host closed the connection]
jonkri has quit [Quit: jonkri]
<CalvinnHobbes>
no.. once sec and Ill create a gist of what I mean
ffranz has quit [Quit: Leaving]
<pontiki>
oh wait
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
marius has joined #ruby
jtgiri_ has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 246 seconds]
Davey has quit [Quit: Computer has gone to sleep.]