<rjk808>
dingus_khan: so when you use ember, do you use node or rails/sinatra for the backend?
<centrx>
rjk808, They are re-inventing the wheel and think they have discovered something new
sdouglas has joined #ruby
<centrx>
rjk808, The only advantage to node.js is Javascript is really fast nowadays, but then you might as well use Scala/Java or Lua
Sawbones has quit [Remote host closed the connection]
<dingus_khan>
rjk808: i haven't built anything with it yet, still learning about front-end MVC frameworks in general, but i imagine i'd use rails just for AR if i had a relational DB i wanted to use
dseitz has joined #ruby
<rjk808>
centrx: haha i'm watching the video
<rjk808>
centrx: but forgive me, I can't take a vid from 1/2012 seriously in this industry
<centrx>
Why?
<rjk808>
centrx: i don't have an opinion either way, but i imagine node has changed a lot in that time
cantonic has quit [Quit: cantonic]
<centrx>
It's the same general philosophy
<centrx>
rjk808, The current major version of Node.js was originally released 2013-03
<rjk808>
cool
<rjk808>
yea, i'm just a newb, trying to figure out the best approach going forward
<rjk808>
improve my RoR skills which i have very litte
<centrx>
Just stay away from PHP and you'll be fine
<rjk808>
little
<rjk808>
attack angualr and the MEAN stack
<rjk808>
hahaha noted. thx
<centrx>
What's your goal?
Solnse has quit [Quit: Leaving.]
Salve has joined #ruby
byennen has joined #ruby
alexju has joined #ruby
<rjk808>
to be hired as a junior dev.
cantonic has joined #ruby
<rjk808>
other than that, to build cool stuff with cutting edge technology
yubrew has joined #ruby
soulashell has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
adkron has quit [Ping timeout: 246 seconds]
<centrx>
rjk808, Don't forget Python
jamto11 has quit [Remote host closed the connection]
Virtualize|away has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
virt|work has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Virtualize|away has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
radic has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
Cryptotoricist has joined #ruby
Cryptotoricist has quit [Client Quit]
x1337807x has joined #ruby
Phagus has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
funburn has quit [Quit: funburn]
radic has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
crystal77 has joined #ruby
browndawg has joined #ruby
mary5030 has quit [Remote host closed the connection]
dik_dak has joined #ruby
rankine has joined #ruby
francisfish has quit [Ping timeout: 255 seconds]
pu22l3r_ has quit [Remote host closed the connection]
byennen has quit [Remote host closed the connection]
byennen has joined #ruby
_justin has joined #ruby
funburn has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
nisstyre has quit [Quit: WeeChat 0.4.3]
braincrash has quit [Quit: bye bye]
byennen has quit [Ping timeout: 240 seconds]
SonicX has quit [Read error: Connection reset by peer]
SonicX has joined #ruby
teddyp1cker has joined #ruby
<dingus_khan>
rjk808: how are you doing your learning for that goal?
Solnse has joined #ruby
hiyosi has joined #ruby
JBreit has joined #ruby
braincrash has joined #ruby
tungd has joined #ruby
<rjk808>
dingus_khan: a bunch of tutorials lined up. building stuff with them.
<rjk808>
dingus_khan: can i ask what you are aiming to do?
<dingus_khan>
nice
<dingus_khan>
i'm aiming for the same thing
kitak_ has quit [Remote host closed the connection]
<dingus_khan>
don't tell the old guard
<centrx>
What is this. You guys are learning Ruby to make MONEY!? How crude.
_justin has quit [Quit: _justin]
<dingus_khan>
doh he was paying attention after all!
JBreit has left #ruby [#ruby]
<dingus_khan>
i got student loans man!
teddyp1cker has quit [Ping timeout: 264 seconds]
cantonic has quit [Quit: cantonic]
hiyosi has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
atlas__ has quit [Ping timeout: 255 seconds]
burgess has quit [Quit: ^zzz]
shaileshg has joined #ruby
sed_life_better has quit [Ping timeout: 255 seconds]
jkamenik1 has joined #ruby
fridim__ has quit [Ping timeout: 255 seconds]
jkamenik has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
rjk808 has quit []
matcouto has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
bynaryshef has quit []
kotakotakota has quit [Quit: Leaving]
<matcouto>
Guys, what's be the best way to change the value of a super_class from a sub_class? Is it ok to use self.class::MY_CONST ???
rankine has quit [Quit: leaving]
LexicalScope has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
LexicalScope has joined #ruby
eka_ has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dik_dak has quit [Quit: Leaving]
decoponio has joined #ruby
bradhe has joined #ruby
yubrew has joined #ruby
<centrx>
matcouto, That looks like a constant?
<centrx>
matcouto, Don't change the value of a constant...?
eka has joined #ruby
hermanmunster has quit [Remote host closed the connection]
Salve has joined #ruby
<matcouto>
yeah thats true. never mind... =)
dingus_khan has quit [Remote host closed the connection]
hermanmunster has joined #ruby
IceDragon has quit [Quit: Space~~~]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 246 seconds]
Solnse has joined #ruby
Skaag has quit [Quit: leaving]
hermanmu_ has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
crystal77 has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
mikepack has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
Shidash has quit [Ping timeout: 264 seconds]
yasushi has quit [Remote host closed the connection]
hobodave has joined #ruby
atlas__ has joined #ruby
vlad_starkov has joined #ruby
zorak has quit [Ping timeout: 240 seconds]
abdulsattar has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lxsameer has joined #ruby
paolooo has joined #ruby
aspires has joined #ruby
tectonic has joined #ruby
spergy has joined #ruby
bricker`LA has quit [Quit: leaving]
thomasxie has joined #ruby
amclain_ has quit [Quit: Leaving]
marcdel has joined #ruby
zorak has joined #ruby
ramin_sed_ has joined #ruby
sparrovv has joined #ruby
yacks has joined #ruby
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
ramin_sed_ has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
hobodave has quit [Quit: Computer has gone to sleep.]
sparrovv has quit [Ping timeout: 255 seconds]
drx_ has quit [Ping timeout: 240 seconds]
<spergy>
hey guys, if a website has something like live timing/scores(sports or something) is it possible to write a program in ruby that extracts and displays that data for me, instead of having to go to the website??
neaer has joined #ruby
ferno has joined #ruby
<centrx>
spergy, Yes. It is called scraping. The most popular/complete library for scraping in Ruby is called Nokogiri
<popl>
spergy: It's legally murky. Make sure you have permission from the site owner or you could get in trouble.
<centrx>
spergy, If you know of a site that exposes an API, that is a more reliable and easier to program way, but e.g. the ESPN API is limited or requires paying
kevinykchan has joined #ruby
jamto11 has joined #ruby
hiyosi has joined #ruby
<spergy>
yeah the live timing I want is free on the website, access to anyone is fine, don't have to pay for it, just wanted to try and display it live in my own program as a project rather than go to the website
<spergy>
scraping is more just getting all the files from a website yeah? not viewing live timing data as it happens?
mrnugget has joined #ruby
<havenwood>
spergy: mechanize is a nice gem to help crawling a page like that with nokogiri
<havenwood>
dingus_khan: call a method that sets the variable
vlad_starkov has quit [Remote host closed the connection]
<zorak>
gonna update the repos
<dingus_khan>
havenwood: i'm setting the variable within a method call, but the precision is off
kevinykchan has quit [Ping timeout: 255 seconds]
<abdulsattar>
Okay, just define a method def variable=(v); @variable=v; end; And keep calling that method
yubrew has quit [Ping timeout: 246 seconds]
<abdulsattar>
make sure you round the variable in that method
deens_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
<dingus_khan>
probably a better question is, is there a way to force precision/rounding when i first define the variable, data-type style?
ferno has joined #ruby
<abdulsattar>
dingus_khan: you don't need to declare a variable, just use it
<abdulsattar>
If you want to enforce something on a variable, you need a method, and that method looks exactly like the one I mentioned above
<dingus_khan>
right, ruby, for sure, but does Float have a way to set precision on an instance of that variable?
deens has quit [Read error: Connection reset by peer]
<dingus_khan>
so the default Float precision is always like 8 places, can't be changed?
nomenkun has joined #ruby
ramin_se_ has joined #ruby
<Mon_Ouie>
Not sure what you mean by precision, but all floats use the same representation and that representation doesn't guarantee that a certain amount of digits will be correct
glebm has quit [Remote host closed the connection]
<abdulsattar>
dingus_khan: you can round float to any number of decimal places
shaileshg has quit [Quit: Connection closed for inactivity]
<Mon_Ouie>
For example 0.2 is exact, 0.1+0.2 is wrong at the 16th decimal place, 1+1e16==1e16
glebm has joined #ruby
koell has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
(there are more floating point numbers near zero than near infinity)
boysetsfire has joined #ruby
<dingus_khan>
sorry, that is what i'm getting at, i was just wondering if there was a way to force a variable of the Float type to round itself to two places, but what you're saying makes sense for sure
<zorak>
havenwood: thanks for the help
<zorak>
good night, keep coding :)
zorak has quit [Remote host closed the connection]
BBBThunda has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<apeiros>
rounding doesn't remove all issues with floats
<popl>
apeiros: It's a thing that's been around longer than you or I, I think.
vlad_sta_ has joined #ruby
glebm_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
glebm has quit [Ping timeout: 264 seconds]
<popl>
anyways, adapt: is interesting
hiyosi has quit [Ping timeout: 264 seconds]
derek_c has quit [Ping timeout: 252 seconds]
jph98 has quit [Quit: jph98]
vlad_starkov has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
yasushi has joined #ruby
blueOxigen has joined #ruby
blaxter has joined #ruby
xxpor_ has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
alexju_ has joined #ruby
patronus_ has joined #ruby
Elico1 has joined #ruby
jefflyne_ has joined #ruby
einarj has joined #ruby
frode15243__ has joined #ruby
<apeiros>
popl: there's also pre_validate
schaary_ has joined #ruby
njection has joined #ruby
<apeiros>
the order is pre_validate (runs on raw input) -> adapt -> validate
Zunonia_ has joined #ruby
popl_ has joined #ruby
popl_ has joined #ruby
popl_ has quit [Changing host]
roolo has joined #ruby
Mongey_ has joined #ruby
<popl_>
popl: get out!
popl has quit [Disconnected by services]
sanyako has quit [Read error: Connection reset by peer]
popl_ is now known as popl
tonni_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
diego_k has quit [Ping timeout: 240 seconds]
frode15243_ has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frode15243__ is now known as frode15243_
Zunonia has quit [Ping timeout: 240 seconds]
diegok has joined #ruby
schaary has quit [Ping timeout: 240 seconds]
schaary_ is now known as schaary
yasushi has quit [Ping timeout: 246 seconds]
abra has quit [Ping timeout: 240 seconds]
jefflyne has quit [Ping timeout: 240 seconds]
Mongey has quit [Ping timeout: 240 seconds]
fijimunk1i has quit [Ping timeout: 240 seconds]
patronus has quit [Ping timeout: 240 seconds]
ItSANg___ has quit [Ping timeout: 240 seconds]
wykydtron has quit [Ping timeout: 240 seconds]
gigetoo has quit [Read error: Connection reset by peer]
chuck__ has joined #ruby
wicketts has quit [Remote host closed the connection]
abra has joined #ruby
gigetoo has joined #ruby
bcavileer__ has joined #ruby
LiohAu has quit [Ping timeout: 240 seconds]
chuck_ has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 240 seconds]
gtech_ has quit [Ping timeout: 240 seconds]
bedouin_ has quit [Ping timeout: 240 seconds]
Teltaria1 has joined #ruby
Atww has joined #ruby
LiohAu has joined #ruby
<apeiros>
oh, actually, the full order is: strip, empty-string-to-nil, user-defined pre-validate, type-defined pre-validate, user-defined adaptor, defaultize, type-defined adaptor, user-defined validate
telling_ has joined #ruby
<apeiros>
(code currently differs from this, though)
cj3kim_ has joined #ruby
_justin has quit [Quit: _justin]
guilleiguaran_ has joined #ruby
_5kg_ has joined #ruby
hurry has joined #ruby
mvangala_ has joined #ruby
Thana` has joined #ruby
Thana` has quit [Changing host]
Thana` has joined #ruby
senayar has joined #ruby
kies has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 240 seconds]
larsam has quit [Ping timeout: 240 seconds]
tonni has quit [Ping timeout: 240 seconds]
sobersabre has quit [Ping timeout: 240 seconds]
guilleiguaran has quit [Ping timeout: 240 seconds]
bcavileer_ has quit [Ping timeout: 240 seconds]
Teltariat has quit [Ping timeout: 240 seconds]
xxpor has quit [Ping timeout: 240 seconds]
atno has quit [Ping timeout: 240 seconds]
alexju has quit [Ping timeout: 240 seconds]
njection_ has quit [Ping timeout: 240 seconds]
p4tux has quit [Ping timeout: 240 seconds]
telling has quit [Ping timeout: 240 seconds]
_5kg has quit [Ping timeout: 240 seconds]
mr_rich102 has quit [Ping timeout: 240 seconds]
twiceaday has quit [Ping timeout: 240 seconds]
seggy has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
charlies_ has quit [Ping timeout: 240 seconds]
Thanatermesis has quit [Ping timeout: 240 seconds]
gregf has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
Atw has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
p4tux has joined #ruby
browndawg has joined #ruby
kies has joined #ruby
guilleiguaran_ is now known as guilleiguaran
arturaz has quit [Remote host closed the connection]
mr_rich101 has joined #ruby
charliesome has joined #ruby
Xeago has joined #ruby
gregf has joined #ruby
fijimunkii has joined #ruby
gtech has joined #ruby
wykydtron has joined #ruby
bedouin_ has joined #ruby
ItSANgo has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
twiceaday has joined #ruby
postmodern has joined #ruby
sobersabre has joined #ruby
atno has joined #ruby
abdulsattar has joined #ruby
seggy has joined #ruby
coderxin has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
<popl>
apeiros: have you documented it yet?
Salve has joined #ruby
mikecmpbll has joined #ruby
coderxin is now known as coderxin_
browndawg has quit [Ping timeout: 240 seconds]
coderxin_ is now known as coderxin
makara has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
codeFiend has quit [Quit: codeFiend]
* popl
upgrades to 1.9.3_p484 \o/
sk87 has joined #ruby
<bnagy>
uh
browndawg has joined #ruby
<popl>
Now I just need one of those new-fangled rotary phone things.
<bnagy>
software semvers should have the song that was #1 in the charts at the time they were released
<popl>
bnagy: which charts?
<bnagy>
that way people would be like 'HOLY SHIT I'M RUNNING R KELLY?'
<popl>
R Kelly is a song?
<bnagy>
you can never beat me in a 'not knowing about popular culture' competition, don't even try
<apeiros>
popl: no. I'm not yet happy with the API
mengu has joined #ruby
camilasan has joined #ruby
<popl>
bnagy: I could probably.
leonidlm has joined #ruby
_justin has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<popl>
bnagy: If not I could just hit you over the head with a bag of rocks then win by default (since I'd be the only one in the competition at that point).
<popl>
Oh wait, did I actually type that?
<popl>
:D
<popl>
apeiros: Yeah, you seem to be making lots of changes. That's cool, though. Are you talking to anyone else about the design or just doing it yourself?
<popl>
bnagy: I don't really think I'd do that, by the way.
<apeiros>
I'm usually asking around. but getting little feedback. So essentially it's just me :)
DouweM has quit [Ping timeout: 245 seconds]
alexju_ has quit [Remote host closed the connection]
YamakasY has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
nvrch has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
YamakasY has quit [Remote host closed the connection]
<bnagy>
nom pizza
AlSquirrel has quit [Quit: This computer has gone to sleep]
<bnagy>
so what's a tabledata anyway?
jjbohn has joined #ruby
joonty has joined #ruby
<popl>
bnagy: the summary is "Read tabular data from various formats, like Excel .xls, Excel .xlsx, CSV."
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
camilas__ has joined #ruby
abdulsattar has quit [Ping timeout: 246 seconds]
mantas has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
camilas__ has quit [Read error: Connection reset by peer]
amundj has joined #ruby
<mantas>
I have array of objects in json format, how can I reduce objects to have only specific fields?
camilas__ has joined #ruby
<crome>
regexp!
* crome
hides
<mantas>
I am trying to came up with nice oneliner
diegovio1 has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
<crome>
I would really just parse it
camila___ has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
mantas has left #ruby [#ruby]
mantas has joined #ruby
camilasan has joined #ruby
koell has quit [Read error: No route to host]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 264 seconds]
WormDrink has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
sensen has quit [Quit: leaving]
camilasan has joined #ruby
<mantas>
ok, how would I parse it?
<mantas>
something with map() ?
camilasan has quit [Read error: Connection reset by peer]
camilas__ has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camila___ has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
mjs2600 has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
<apeiros>
mantas: JSON.parse
camilasan has joined #ruby
ZoanthusR has joined #ruby
<apeiros>
after that, you have ruby objects, which you can manipulate normally and then convert back to json using .to_json
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
DouweM has joined #ruby
tt1187 has joined #ruby
Hanmac has joined #ruby
<mantas>
I can't find the way how to modify inner array elements by removing unnecessary properties? do I have to create new one and assign desired properties from original?
drx_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
drx_ has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 264 seconds]
ferno has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
drx_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nvrch has joined #ruby
Hanmac has joined #ruby
makara has quit [Quit: Leaving]
pu22l3r_ has joined #ruby
drx___ has joined #ruby
mjs2600 has quit [Remote host closed the connection]
pu22l3r has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
drx___ has quit [Read error: Connection reset by peer]
alexju has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
drx_ has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
eka has joined #ruby
chris_thomson has joined #ruby
drx_ has joined #ruby
sambao21 has joined #ruby
pu22l3r_ has quit [Ping timeout: 264 seconds]
_justin has joined #ruby
kevinykchan has quit [Ping timeout: 252 seconds]
andy__ has joined #ruby
_Andres has joined #ruby
tkuchiki has joined #ruby
drx___ has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
sailias has joined #ruby
mjs2600 has joined #ruby
drx___ has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Na_Klar has joined #ruby
montyboy has joined #ruby
Salve has joined #ruby
peterellisjones has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Na_Klar>
My machine (lubuntu 11) with ruby 1.9.2 interpreter is not able to open("http://") [Fails with "no such file or directory"]. I installed all packages which sounds like "addressable", "html wrapper" and so on. But I cannot find the on which implements the OpenURI features. Halp?
drx_ has joined #ruby
<Na_Klar>
s/on/one/
zeeraw has joined #ruby
vlad_starkov has joined #ruby
<apeiros>
require 'open-uri'
jamto11 has joined #ruby
<apeiros>
but http:// will still not work, as that's not really a complete url.
<Na_Klar>
ah ... *facepalm*
ohwhoa has quit [Quit: woah!]
chris_thomson has quit [Quit: Zzz...]
mercwithamouth has quit [Ping timeout: 255 seconds]
drx_ has quit [Ping timeout: 264 seconds]
drx_ has joined #ruby
yubrew has joined #ruby
tt1187 has joined #ruby
<Na_Klar>
need's to be included .. btw, is that somewhere mentioned in the docs?
<Na_Klar>
and ty
krz has quit [Quit: WeeChat 0.4.3]
freerobby has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
drx_ has quit [Read error: Connection reset by peer]
dblessing has left #ruby [#ruby]
drx_ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
thomasxie has left #ruby [#ruby]
yasushi has joined #ruby
<apeiros>
Na_Klar: note that 'include' and 'require' have entirely different semantics in ruby
kevind has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
<apeiros>
note sure it's properly documented. a quick check here on Kernel#open (top-level open is Kernel#open) didn't show open-uri's patch
devdazed has quit [Quit: Bye]
_tpavel has quit [Quit: Leaving]
snath has quit [Ping timeout: 264 seconds]
dik_dak has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
zz_jrhorn424 is now known as jrhorn424
Speed has joined #ruby
devdazed has joined #ruby
drx_ has joined #ruby
mjs2600 has quit [Remote host closed the connection]
LastWhisper has quit [Quit: Page closed]
drx_ has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
davedev24 has joined #ruby
bradhe has joined #ruby
xMopxShell has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
diegovio1 has joined #ruby
blackmesa has joined #ruby
jgoss has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
nowthatsamatt has joined #ruby
sleepee has joined #ruby
ffranz has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
tonni has joined #ruby
tonni_ has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
agjacome has joined #ruby
drx_ has joined #ruby
codabrink has joined #ruby
diegovio1 is now known as diegoviola
drx_ has quit [Read error: Connection reset by peer]
ohwhoa has joined #ruby
zachallett has joined #ruby
meinside has joined #ruby
tonni_ has joined #ruby
maasha has joined #ruby
mjs2600 has joined #ruby
<maasha>
Hi
drx_ has joined #ruby
duggiefresh has joined #ruby
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonni has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
RaCx has joined #ruby
boboc has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
ahawkins has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Azzurrio has joined #ruby
sleepee has quit [Remote host closed the connection]
tonni_ has quit [Ping timeout: 264 seconds]
pedda has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
Deejay_ has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 255 seconds]
mary5030_ has joined #ruby
vlad_starkov has joined #ruby
drx_ has joined #ruby
sski has quit [Ping timeout: 255 seconds]
jgoss has joined #ruby
jgoss has quit [Changing host]
jgoss has joined #ruby
snath has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
phantomtiger has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
senayar has quit []
<maasha>
Let my vent this idea. I want to create a class for parallel processing a bit like Peach or Grossers's Parallel gem. I want to spawn a number of workers (using fork) and delegate work to these something like this: https://gist.github.com/maasha/7c35a13f87a2671e6939
<apeiros>
maasha: you make 3 separate points and make it seem like they're connected. a) processing in parallel through forking, b) an issue with large resultsets, c) process data on the fly
<gaussblurinc>
tobiasvl: so, I want to share a small list of useful hotkeys (not all, of course)
<apeiros>
however, you don't state how they're connected.
<tobiasvl>
gaussblurinc: well go ahead
aboudreault has left #ruby ["Leaving"]
codabrink has joined #ruby
drx_ has joined #ruby
<gaussblurinc>
tobiasvl: thanks
yubrew has joined #ruby
jamto11 has joined #ruby
Avahey_ has joined #ruby
Elico1 has quit [Quit: Leaving.]
Elico has joined #ruby
drx___ has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
sleepee has quit [Quit: Leaving]
<maasha>
apeiros: Basically I want to fork a number of workers corresponding to the number of cores availible on my system. Then let these workers process data chunks (file parsing), but there will be many more chunks than workers, so I want to keep those around.
havenwood has joined #ruby
mansi_ has joined #ruby
drx_ has quit [Ping timeout: 252 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 246 seconds]
petey has joined #ruby
<apeiros>
maasha: that's called pooling
<apeiros>
i.e., you want a worker-pool
RaCx has joined #ruby
drx___ has quit [Ping timeout: 255 seconds]
<maasha>
apeiros: ok
<apeiros>
the fork gem can help you build a fork pool
<apeiros>
or forked-workers pool
RaCx has quit [Remote host closed the connection]
<apeiros>
it provides utilities to communicate with the child processes
drx_ has joined #ruby
<maasha>
apeiros: I saw that. The Parallel gem also uses IO.pipe to communicate both ways between parent and children.
<Blaze_Boy>
alright i tested that : File.open('github.rb','r').readlines[1..-2].join()
<Blaze_Boy>
it turns out that each lines already has a /n at the end.
grayWolf has joined #ruby
supersym has joined #ruby
Speed has quit [Disconnected by services]
drx___ has joined #ruby
grayWolf is now known as Speed
sdouglas has quit [Remote host closed the connection]
<havenwood>
Blaze_Boy: Doing it that way, the file isn't closed.
<Blaze_Boy>
havenwood: oh, yes, he'll need to twist the line a little but
<havenwood>
Blaze_Boy: simplify to File.readlines('github.rb')
<Blaze_Boy>
*bit
w1zeman1p has joined #ruby
<havenwood>
samfisher: you want to actually remove the lines from the file, or return the file contents minus those two lines?
coderxin has quit [Remote host closed the connection]
drx___ has quit [Read error: Connection reset by peer]
<Blaze_Boy>
havenwood: File.readlines('github.rb','r')[1..-2].join() , this one tested also.
<havenwood>
;)
drx_ has quit [Ping timeout: 240 seconds]
coderxin has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<havenwood>
Blaze_Boy: no 'r'
<Blaze_Boy>
:'D yes you're right
drx_ has joined #ruby
jlast has quit [Remote host closed the connection]
<Blaze_Boy>
havenwood: :D any other comments , File.readlines('github.rb')[1..-2].join
coderxin has quit [Remote host closed the connection]
claymore has joined #ruby
<havenwood>
Blaze_Boy: nope, looks good
mike_k has joined #ruby
slash_kick is now known as slash_nick
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
mansi_ has quit [Remote host closed the connection]
sski has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
drx___ has joined #ruby
mansi_ has joined #ruby
<havenwood>
Blaze_Boy: as long as the file isn't really large!
<Blaze_Boy>
havenwood: sure, this is eatable for text files, code, csv for example.
drx_ has quit [Ping timeout: 252 seconds]
<Blaze_Boy>
*suitable
jprovazn has quit [Quit: Leaving]
mike_k has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
_5kg_ has joined #ruby
ripperGreen is now known as agharris73
flowerhack has joined #ruby
telling has joined #ruby
maninthemiddle has joined #ruby
dstynchula has joined #ruby
mansi_ has quit [Ping timeout: 246 seconds]
drx___ has quit [Ping timeout: 246 seconds]
mike_k has joined #ruby
sski has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
kate_r has joined #ruby
<samfisher>
Blaze_Boy: thanks, but how do I write it?
<samfisher>
it won't modify it
<Blaze_Boy>
samfisher: your question is not clear for me, you should copy/paste the line and change "github.rb" to your file path
drx_ has joined #ruby
samfisher has quit [Quit: exit error code 434]
blueOxigen has joined #ruby
drx___ has joined #ruby
zachallett has quit [Remote host closed the connection]
slowcon has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
<havenwood>
sam, oh he's gone
drx___ has quit [Read error: Connection reset by peer]
<havenwood>
Blaze_Boy: I think he just wanted to write the changes to the file.
<havenwood>
programatically
crystal77 has joined #ruby
gnagno has joined #ruby
dweeb_ has joined #ruby
<Blaze_Boy>
havenwood: ah, i c
lw has quit [Quit: s]
drx_ has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
drx_ has joined #ruby
deens has joined #ruby
<DaniG2k>
anyone know of a ruby program that extracts the main content of an html page automatically
<gnagno>
hello all
<DaniG2k>
like article
<mary5030>
had a question from the smart rubysts
<havenwood>
gnagno: hi
<mary5030>
and forgive my typo
<shevy>
ack
<shevy>
a typo!
<havenwood>
nooooooo!
<shevy>
RUN AWAY!
<gnagno>
can someone please explain me why if I make bundle install --deployment in my production machine the gems are being installed in the directory vendor/bundle/ruby/1.9.1 even if I have 1.9.3 installed?
<mary5030>
i am trying to match an output in this method just like the status
<jhass>
gnagno: that 1.9.1 is not your ruby version, it's your rubies ABI version
<mary5030>
def not_a_network_device?
<mary5030>
status.to_i == 510
<mary5030>
end
<mary5030>
how can i match this out put inside here
<shevy>
this check would return either true or false
<jhass>
gnagno: that is, the version of the C level interface that some of the gems might use
<gnagno>
jhass, what is a ruby ABI version?
<shevy>
if status is a hash[ you could query it like: status['statusCode']
<shevy>
a *hash
<shevy>
ignore the first [
<mary5030>
i want make sure that the status is 510, but the error message is exactly the same
bal has quit [Quit: bal]
bilbo_swaggins has joined #ruby
<gnagno>
jhass, all my gems are in 1.9.1 not just some
yokel has quit [Ping timeout: 264 seconds]
meinside has quit [Quit: Connection closed for inactivity]
drx___ has joined #ruby
<jhass>
gnagno: yes
drx_ has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
NovapaX has joined #ruby
<jhass>
gnagno: that's perfectly normal
Spami has quit [Quit: This computer has gone to sleep]
<mary5030>
this works great shevy but i also want to check for output
<mary5030>
status.to_i == 510
mikepack has joined #ruby
<shevy>
check for output?
<shevy>
what is the output?
saarinen has joined #ruby
<mary5030>
this check for status ==510 works great but i want to check for the "title"=>"510 \"Unexpected Device Error\"", "details"=>"fe_transport_ssh:connect failed with: connect_failed", "statusCode"=>510
larsam has joined #ruby
<gnagno>
jhass, ok because when I launch my application (it's a plain ruby application) I get some errors because of missing gems, but all my gems are in vendor/bundle/ruby/1.9.1/gems
<jhass>
gnagno: try bundle exec whatever
<shevy>
I do not know what you want to check mary5030 - you paste here a hash, you can query the individual elements of a hash via the [] method
drx___ has quit [Read error: Connection reset by peer]
<mary5030>
so i want to have status ==510 and output == that entire hash
philcrissman has joined #ruby
<mary5030>
?
<gnagno>
jhass, I did it.... same problem, thor not found, but it is present there
deens has quit [Ping timeout: 264 seconds]
<shevy>
where from does output come?
<mary5030>
the call to the api when it fails with 510
heftig has quit [Quit: Quitting]
<shevy>
you can output a hash via: p hash
sk87 has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
<jhass>
gnagno: in the same version than in your Gemfile.lock? what if you run bundle install again? Did that throw an error maybe? Are you on the most recent bundler version?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gnagno>
moreover some gems have the shebang directive looking for ruby 1.9.1 so I get this error: /usr/bin/env: ruby1.9.1: No such file or directory
drx_ has joined #ruby
m4n1f3st0 has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
bilbo_swaggins has quit [Client Quit]
<gnagno>
jhass, Bundler version 1.5.3
prggmr has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
<jhass>
well you probably installed those gems when you had an executable named ruby1.9.1
<mary5030>
shevy: for example i want to do API: %{status}, %{output}
mikepack has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<mary5030>
where in status i am checking if 510 and output that hash
drx_ has quit [Read error: Connection reset by peer]
danno1 has joined #ruby
lw has joined #ruby
<shevy>
I have no idea where output comes from
<gnagno>
jhass, that's the point, it's a fresh provisioned machine.... I just did it with chef
drx_ has joined #ruby
<mary5030>
output is the entire hash, where status is that one element
<shevy>
this isn't even true, you pasted the hash
<mary5030>
this application is making a call to one api and returns its result to another api's body
<mary5030>
so i am checking if this is the output i want to put something of my own where it is more human understandable
m4n1f3st0 has joined #ruby
<jhass>
gnagno: did maybe somebody (accidentially) check vendor/bundle into the repo?
drx_ has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
tonni_ has joined #ruby
mikepack has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<mary5030>
so right now it looks like this API: 510, {"title"=>"510 \"Unexpected Device Error\"", "details"=>"fe_transport_ssh:connect failed with: connect_failed", "statusCode"=>510}
<gnagno>
jhass, the point is that the vendor directory was created in another machine (i.e. I ran bundle install --deployment in another server and then copied all the project directory here) but the two server are identical, they were provisioned with the same chef cookbooks to be sure
nomenkun has quit [Remote host closed the connection]
mansi_ has joined #ruby
<mary5030>
but i want to match against the entire hash and send something different if that is exactly how it looks like
<shevy>
I dont get why you always use the word API
<shevy>
in pure ruby we say it like so:
nomenkun has joined #ruby
<shevy>
def foo(a,b)
<shevy>
end
<shevy>
foo(510, your_hash_here)
<shevy>
what do you mean with "match against the entire hash"
<jhass>
gnagno: well, then I'm not surprised. People think all the time that their machines are identical but in fact they're not. For this very reason bundler provides bundle package, you're not supposed to share that directory across machines
<shevy>
but the people in the 1980s learned it too
<crome>
CockRingMcgee: memory is cheap nowadays
<CockRingMcgee>
yea... but Matz wasn't around then. I figure, id learn the basics with Ruby then move on to C when I need it. Like for high frequency shit later on
<shevy>
haha I tried that
<shevy>
it does not work
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
once you know ruby, there is no place for learning C
<shevy>
because 99% of the time you will ask yourself "ok the sole reason why I want to rewrite this shit in C is because to make it faster"
<CockRingMcgee>
LOL
compleatang has joined #ruby
mjs2600 has quit [Remote host closed the connection]
Spami has joined #ruby
<shevy>
the other 1% is "damn, if only I would know C I would not be stuck now"
<shevy>
:(
bradhe has quit [Ping timeout: 264 seconds]
<shevy>
so learn C first
<CockRingMcgee>
aaaaa, I'll take my chances with Ruby first
<shevy>
lazy
duggiefresh has quit [Read error: Connection reset by peer]
<CockRingMcgee>
As long as the learning curve is lower I am good. I am pragmatic and lazy
<shevy>
it depends on how you approach it
duggiefresh has joined #ruby
<CockRingMcgee>
If I can do it in 3 months why take 3 years to learn C, lol?
<shevy>
if you want to understand every feature in a week it may be hard
koell has joined #ruby
<shevy>
3 months seems realistic enough
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
CockRingMcgee: Ruby has a lot to it, in terms of standard library and external libraries, but core is pretty reasonable
<CockRingMcgee>
Yea, I just want to have a Minimum viable product. 3 months is good.
<shevy>
but you need to have your brain become active so that it can learn by try and error
rhys has joined #ruby
<CockRingMcgee>
shevy, thats why I watch tons of porn
<shevy>
lol
<shevy>
does that help you learn more ruby?
<CockRingMcgee>
and do lots of math on Project Euler
<shevy>
what a weird combination
<CockRingMcgee>
The math yes, the porn, absolutely not
<shevy>
not even pipework has such a combination!
arietis has quit [Quit: Computer has gone to sleep.]
<CockRingMcgee>
pipework sounds like he doesn't need the porn
paulfm has joined #ruby
<shevy>
he is an old linux guru
<CockRingMcgee>
laying down the pipework on the ladies lol
* pipework
is 90% porn
<shevy>
they abandoned the wordly needs
beneggett has joined #ruby
<CockRingMcgee>
LMAO @pipework
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<shevy>
what is the remaining 10%?
<CockRingMcgee>
Lube
<shevy>
lol
<CockRingMcgee>
can't go in there dry
apeiros has quit [Remote host closed the connection]
<gaussblurinc>
guys, question: what do you do with ruby? work with it on work or just have fun?
crystal77 has quit [Quit: Computer has gone to sleep.]
<pipework>
Lubrication is very important in pipework.
<CockRingMcgee>
Hell yea! if not you get all rusty and shit
<havenwood>
gaussblurinc: both
apeiros has joined #ruby
<CockRingMcgee>
Same here
maletor has joined #ruby
<CockRingMcgee>
more for fun than work.
goleldar has joined #ruby
marcdel has quit []
ankov has joined #ruby
<pipework>
CockRingMcgee: You know that cock fighting in cock rings is illegal in my country? Pretty interesting stuff.
<shevy>
gaussblurinc mostly ruby works as a glue language
m4n1f3st0 has joined #ruby
<CockRingMcgee>
pipework: how do I become a linux master like yourself. How do I learn git quickly too?
crystal77 has joined #ruby
<havenwood>
shevy: i dunno bout glue
codeFiend has joined #ruby
zcreative has joined #ruby
<pipework>
CockRingMcgee: I think you have to be born with a neckbeard growing out of your ass.
<shevy>
gaussblurinc I give you a few examples: I do "bl password"
Thanatermesis has joined #ruby
<CockRingMcgee>
pipework: LOL! Well there are 2 ways to have a cock fight my friend
<CockRingMcgee>
I am sure the second way is not illegal
<gaussblurinc>
shevy: strange, glue language is a perl for it expressiveness, not ruby. too much symbols
doodlehaus has joined #ruby
<shevy>
gaussblurinc bl is my alias for opening a file in my main editor. the argument is password. it will first check in the current working directory for such a file or dir, if it can not find it, it will query my main pointer towards all my local files; in this example, it will open some file in my home dir, passwords.yml
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
so no matter where I am, finding these files will always work
jeregrine has joined #ruby
<CockRingMcgee>
the first is with chickens, the second is with drugged up confused people in a room in cancun on spring break
<shevy>
gaussblurinc dunno, I use ruby to do everything here really. "ry htop" would compile htop for me for instance
Hanmac has joined #ruby
<CockRingMcgee>
Do any of you guys know how to use Heroku well?
<shevy>
"rf youtube" (or just "youtube") opens up youtube; all handled by ruby scripts btw
arietis has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
<gaussblurinc>
wow! open youtube - great for work ;)
<shevy>
havenwood well glue as in like using system() or `` a lot, and like calling ffmpeg
dawkirst has joined #ruby
<shevy>
gaussblurinc well it's an example, I use ruby for work and non-work; work usually sucks though, SQL is so damn boring
<shevy>
"duration? bla.mp3" gives back the duration of bla.mp3 in seconds, using ffmpeg
Hanmac1 has quit [Ping timeout: 264 seconds]
ankov has quit [Remote host closed the connection]
Mongey_ is now known as Mongey
<gaussblurinc>
shevy: do you write these tools?
<shevy>
gaussblurinc it depends. when these are small tools or scripts, yes. if they are longer, then I use them from someone else. for instance, coderay. I love coderay, it parses so much for me, that was written by ... kornelius
aspires has joined #ruby
lmickh has quit [Remote host closed the connection]
<shevy>
you can do like: cat foo.rb | coderay -ruby to colourize ruby stuff
<shevy>
gaussblurinc or markdown - someone else wrote a markdown parser that works nice, kramdown is the name; I use it, rather than write my own
<shevy>
but small stuff, yes, I write small scripts myself, usually 1 up to 150 lines, more than that it can get tedious
<shevy>
gaussblurinc the larger projects suck away so much time :\
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has quit [Remote host closed the connection]
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Solnse has joined #ruby
<shevy>
gaussblurinc how do you use ruby?
kaliya has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Rylee has quit [Remote host closed the connection]
monkegjinni has joined #ruby
DouweM has quit [Quit: Leaving...]
tylersmith has joined #ruby
<gaussblurinc>
shevy: well, I try to optimize my work. I am the one, who write scripts at work and share with others. So, I use Perl. But when boss ask me about script.. I prefer to write it in ruby, because Cocoapods do much work for me
lolmaus_ has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
lolmaus has joined #ruby
Rylee has joined #ruby
<shevy>
interesting
<shevy>
a rare combination to see perl + ruby used
monkegjinni has quit [Ping timeout: 246 seconds]
xxpor_ has quit [Read error: Connection reset by peer]
<havenwood>
ah, was trying to figure out how Obj-C got involved! :P
tjr9898_ has quit [Ping timeout: 240 seconds]
davidcollom_zzz is now known as davidcollom
<gaussblurinc>
havenwood: project file manipulation by ruby. other development by obj-c ;)
awarner_ has quit [Ping timeout: 245 seconds]
<gaussblurinc>
shevy:
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has quit [Ping timeout: 240 seconds]
maletor_ has joined #ruby
bynaryshef has quit [Remote host closed the connection]
<shevy>
hmm
<gaussblurinc>
shevy: when I decide to teach language, I look at ruby. But wiki tells me to look at Perl as one of the parents of ruby. So, Perl is a first
awarner has joined #ruby
maletor has quit [Ping timeout: 246 seconds]
lw has quit [Quit: s]
yfeldblum has joined #ruby
malkomalko has joined #ruby
drx_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<CockRingMcgee>
eee
yfeldblu_ has joined #ruby
<CockRingMcgee>
gaussblurinc
lupine has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
<CockRingMcgee>
I think simplicity is the best thing to go with teaching
drx___ has joined #ruby
lw has joined #ruby
<gaussblurinc>
CockRingMcgee: maybe. But I've already passed this way
<CockRingMcgee>
inductive learning and simplicity are the two things one should consider
coderxin has joined #ruby
<CockRingMcgee>
that is, with inductive learning the student should be able to figure out the next step before the teacher tell them what it is
<havenwood>
Or any of the types of learning that end in "ductive".
<CockRingMcgee>
and that impels the to move forward
<CockRingMcgee>
havenwood: no just inductive learning
<CockRingMcgee>
because it is apparent to the student if they look at the problem long enough
craigp has joined #ruby
m4n1f3st0 has joined #ruby
coderxin has quit [Read error: Connection reset by peer]
maletor_ has quit [Ping timeout: 246 seconds]
coderxin has joined #ruby
<CockRingMcgee>
with some forms of teaching which are modular the student cannot go from A to B by themselves and it is frustrating, it kills motivation
saarinen has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
craigp has quit [Client Quit]
<CockRingMcgee>
deductive learning would be like a lecture hall with a professor talking for an hour then lab
beneggett has joined #ruby
drx_ has quit [Ping timeout: 264 seconds]
mansi_ has quit [Remote host closed the connection]
<CockRingMcgee>
inductive learning is more of a project based approach, where students teach themselves and each other and the professor supervises
drx_ has joined #ruby
lw has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
deens has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
tonni has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
<CockRingMcgee>
its sort of analagous to self learning/ based on projects online and in line with hacker and maker culture
tonni has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
<CockRingMcgee>
also simplicity, just because with clarity, you can get the foundation well, and then take off from there. But that is just my two cents.
lupine has joined #ruby
maletor has joined #ruby
<gaussblurinc>
CockRingMcgee: and … what do you mean by learning? I learn all languages by myself, because they are interesting
drx___ has quit [Ping timeout: 264 seconds]
jespada has quit [Quit: Leaving]
<havenwood>
CockRingMcgee: your introductive inductive learning is eductive and is traductive to deductivity
bynaryshef has joined #ruby
tt1187 has joined #ruby
apeiros has joined #ruby
vlad_starkov has joined #ruby
<CockRingMcgee>
LOL at havenwood
<CockRingMcgee>
good one
zeeraw has joined #ruby
<CockRingMcgee>
but no, it isn't
<havenwood>
ductive!
<CockRingMcgee>
lol
drx___ has joined #ruby
<CockRingMcgee>
gaussblurinc: I mean in terms of designing a curriculum for people to learn a programming language
Hanmac1 has joined #ruby
saarinen has quit [Quit: saarinen]
<CockRingMcgee>
using a modular inductive method of learning with emphasis on clairty and simplicity is the easiest way
jlast_ has joined #ruby
<gaussblurinc>
ok, tell me good book for Ruby. Like an Camel Book.
<CockRingMcgee>
JP hey where can I learn how to refactor efficently
dagobah has quit [Quit: Leaving...]
<CockRingMcgee>
efficiently*
<shevy>
crome the guy who wrote it left ruby
<crome>
I know
<catphish_>
can anyone explain why this works?: "Hello".force_encoding('BINARY') =~ /#{'hello'.force_encoding('BINARY')}/i
<crome>
I didn't say we should ask him to update it ;>
drx_ has joined #ruby
<shevy>
crome ok but then someone else would work on it
Hanmac1 has quit [Ping timeout: 264 seconds]
<shevy>
and I find that for projects that are extremely centric to the personality of someone, you just can not really update it, the update wouldn't quite fit
<catphish_>
is it because ASCII-8BIT actually *is* ascii?
<shevy>
just like how shoes now depends on jruby
maninthemiddle has quit [Quit: This computer has gone to sleep]
tfitts has quit [Ping timeout: 240 seconds]
beneggett has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
IceDragon_ has joined #ruby
<havenwood>
crome: that would be nice
fgo has quit [Ping timeout: 246 seconds]
<shevy>
if CockRingMcgee would update the poignant guide, there would suddenly be porn in it
drx_ has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 240 seconds]
<CockRingMcgee>
LMAO!
centrx has joined #ruby
<apeiros>
catphish_: ASCII-8BIT is a misnomer for binary
<crome>
tbh Im not sure it requires such an extensive revamping
tfitts has joined #ruby
<CockRingMcgee>
Yup and people would be clamoring for it !
<CockRingMcgee>
More PORN, More Knowledge
beneggett has joined #ruby
<CockRingMcgee>
hey have any of you guys used Coachsufer.org before?
abdulsattar has joined #ruby
<catphish_>
apeiros: apparently not :)
Lewix has joined #ruby
<apeiros>
catphish_: how do you mean?
<catphish_>
apeiros: see above (my original question)
<apeiros>
binary treats the lower 7 bits as ascii, yes
<catphish_>
ok, that's what i meant, makes sense, that fact is badly communicated :)
<apeiros>
but ascii only defines the lower 7bits, there's not really such a thing as 8bit ascii.
ankov has quit [Remote host closed the connection]
quatron has joined #ruby
maletor has quit [Ping timeout: 252 seconds]
<catphish_>
apeiros: this fact is actually quite convenient for me, unfortunately i am in a position where i have to search for utf8 inside binary data (normally ascii inside ascii, but my program doesn't know this), the fact that the first 7 bits are case insensitive means that people usually get case insensitive searching
maletor has joined #ruby
maletor has quit [Client Quit]
<apeiros>
catphish_: mixed encodings? how unbelievably ugly :(
<apeiros>
catphish_: it's not structured? i.e., binary data and textual data can be separated?
maletor has joined #ruby
<drago777>
I have a problem I can not seem to solve. I have a bunch of yml files that contain passwords and I need a way to encrypt and decrypt these passwords. Does anyone know the best method to do this?
<catphish_>
well, i know the regex is utf8, but i have no idea what the encoding of the file i'm searching is, so i have no choice but to make both binary and pray
kaliya has quit [Quit: Lost terminal]
<catphish_>
luckily, the files are normally ascii or utf-8, so this works
<apeiros>
catphish_: there are ways to determine
<apeiros>
catphish_: a) you can read it as utf-8 and check valid_encoding?
<apeiros>
i fit is, it's probably reasonable to assume it is in fact utf-8
<apeiros>
if it is not valid utf-8 - what other encodings can it be?
banister has joined #ruby
<catphish_>
hundreds of them :)
<apeiros>
drago777: is this for a password vault? or to authenticate users?
Al__ has quit [Quit: Al__]
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mark_locklear has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
<apeiros>
catphish_: I doubt that hundreds of encodings exist in the first place :-p
mikemar10 has quit [Ping timeout: 255 seconds]
Al__ has joined #ruby
<apeiros>
catphish_: are the possible encodings at least guaranteed to be ascii compatible?
datacrusher has joined #ruby
drx_ has joined #ruby
m4n1f3st0 has joined #ruby
<catphish_>
not at all, use case: i have a git repo of source code, someone searches for some text inside it
teddyp1cker has quit [Remote host closed the connection]
<catphish_>
most files, and most search terms will be ascii
bynaryshef has quit [Remote host closed the connection]
drx_ has quit [Read error: Connection reset by peer]
<apeiros>
if the file is not ascii compatible, your regex search will fail :)
drx_ has joined #ruby
<apeiros>
it won't raise, but since "a" won't be codepoint 97, it'll not match at all or entirely randomly
<catphish_>
well, it will run, it just wont' find anything :)
<apeiros>
yeah
kotakotakota has quit [Ping timeout: 264 seconds]
<catphish_>
honestly, the prevalence of ascii, utf-8, and binary (images etc) in source code repos means that it's probably not worth trying to intelligently detect the type of every file
<drago777>
its for a password vault
<certainty>
why not? file(1) does a pretty good job. The rest can be shoehorned on top of it
<drago777>
its more or less random passwords that get stored in my yml file to do certain things
<apeiros>
I'd probably do 3 tests: a) is it utf-8? b) is it a blob (image e.g.), c) default to ascii
<apeiros>
2 tests actually, 3 possible outcomes :)
mark_locklear has joined #ruby
davidcollom is now known as davidcollom_zzz
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<catphish_>
i often rely on a third party tool (git) to do the searching anyway, then just match the lines it finds, so no idea how that would deal with the encoding
centrx has quit [Quit: All this computer hacking is making me thirsty]
tt1187 has quit [Ping timeout: 255 seconds]
<certainty>
i'm afraid when somebody that implements some kind of password vault asks about the best way to do it
<havenwood>
drago777: or maybe consider GCM or CCM mode if you want authenticated encryption, do you need to be able to tell if someone changed the ciphertext after encryption?
<apeiros>
havenwood: wasn't CBC considered problematic?
mmoretti has joined #ruby
octarine_ is now known as octarine
blom__ has quit [Remote host closed the connection]
<apeiros>
are there actually any reliable resources which list different modes and their flaws?
maletor has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 246 seconds]
roolo has quit [Quit: Leaving...]
m4n1f3st0 has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
maletor has joined #ruby
m4n1f3st_ has joined #ruby
drx___ has quit [Ping timeout: 264 seconds]
drx_ has quit [Read error: Connection reset by peer]
<gnagno>
I have a ruby 1.9.3 application, the gems are installed in the vendor directory, when I run bundle exec .... I get /usr/bin/env: ruby1.9.1: No such file or directory, I made a grep of the vendor directory and a lot of gems are referring ruby 1.9.1 while I don't have it in my system
mostlybadfly has joined #ruby
mjs2600 has joined #ruby
drx_ has joined #ruby
<crome>
gnagno: ruby 1.9.1 is the latest C interface version for the 1.9 branch, thats why
<certainty>
apeiros: applied cryptography and practical cryptography
<apeiros>
certainty: I mean more like a website with a list and pretty little check- and crossmarks :)
Avahey_ has quit [Quit: Connection closed for inactivity]
saarinen has joined #ruby
monkegjinni has quit [Remote host closed the connection]
afex has joined #ruby
<certainty>
it's nothing new. Also for disc encryption with newer xtc or ofb (was it ofb?)
maletor has quit [Read error: Connection reset by peer]
jlast_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<apeiros>
novelty isn't the question
maletor has joined #ruby
<apeiros>
accessability of the information is
drx_ has quit [Read error: Connection reset by peer]
blom_ has quit [Ping timeout: 255 seconds]
<certainty>
xts was it
<afex>
is there a way to make bundler only try and read Gemfile.lock (and not Gemfile), without using --deployment? i'm trying to install the exact versions from the lock file, but in the system gems instead of a subfolder
<apeiros>
*accessibility
<certainty>
apeiros: true thing, i'm not aware of one
mordocai` has quit [Ping timeout: 265 seconds]
<crome>
afex: why? :)
<gnagno>
crome, thank you, I am aware that it is the latest c interface. what I am querying is why the gems suffix the ruby executable with the version string making impossible to find this executable in my environment. eg /usr/bin/env ruby1.9.1
<afex>
i don't need the subfolder isolation since i'm using a linux container
<certainty>
apeiros: in the end it doesn't matter as the NSA will break them anyway :)
sputnik13 has joined #ruby
<crome>
gnagno: oh sorry, I missed part of your question
arietis has quit [Quit: Computer has gone to sleep.]
<apeiros>
certainty: not everybody who tries to break your encryption is the NSA
aagdbl has joined #ruby
<Xeago>
stop giving bad advice
<apeiros>
certainty: and giving up because there's one enemy you can't defeat is flawed
<gnagno>
crome, no problem, any ideas?
<Xeago>
don't write your own crypto
freezey has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<shevy>
use NSA crypto
<CockRingMcgee>
NSA, NSA, NSA!
<certainty>
apeiros: yeah i didn't mean to say: "they will break it so don't do it"
<shevy>
porn, porn, porn!
<Xeago>
if you worry about which encryption mode to use, you are doing it wrong
<CockRingMcgee>
Yea if you write your own Crypto you will be liable to have errors
Azulinho has quit [Ping timeout: 255 seconds]
<CockRingMcgee>
Remember Cryptocat?
<shevy>
if idiots code, bugs will happen
<CockRingMcgee>
and that guy was good
<CockRingMcgee>
if anyone codes bugs will happen
<CockRingMcgee>
peer review is better
<Xeago>
for data at rest use gpg, for data in transit use tls1.2
hobodave has joined #ruby
<shevy>
are those the guys that never code on their own?
<mary5030>
if output = {"title"=>"510 \"Unexpected Device Error\"", "details"=>"fe_transport_ssh:connect failed with: connect_failed", "statusCode"=>510}, how can i check if output includes Unexpected Device Error
<CockRingMcgee>
no, its the guys that like to have an extra set of eyes on their work
<mary5030>
shevy: sorry i have been bugging you too much
monkegjinni has quit [Ping timeout: 246 seconds]
<apeiros>
Xeago: are there usable gems for gpg?
<certainty>
gpgme was the last i saw, but it was not good
<CockRingMcgee>
critical reviews are necessary, especially in security. Peer review is a good way to have that
<shevy>
CockRingMcgee what if I don't trust the NSA reviewers
maletor has quit [Ping timeout: 246 seconds]
<certainty>
:)
andy__ has quit [Quit: Leaving...]
<shevy>
peer review does not even work in scientific literature
drx_ has joined #ruby
<mary5030>
thank you shevy
momigi has joined #ruby
<shevy>
I rule! \o~
cj3kim has joined #ruby
<certainty>
inc shevy
<shevy>
hmm ascii code is limited... that does not look like a right waving hand...
<shevy>
perhaps that is incentive enough to move to UTF, if only for more advanced emoticons
dawkirst has joined #ruby
<certainty>
pah!
<shevy>
certainty do you keep track of history? for instance, when did you start with ruby yourself?
drx_ has quit [Read error: Connection reset by peer]
shaileshg has joined #ruby
<CockRingMcgee>
Unless you find something better than peer review then its the golden standard aka the best thing we have so far.
<certainty>
shevy: yes. Not the exact date but i know the year
shadYY has joined #ruby
drx_ has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
certainty what year
<CockRingMcgee>
crowd sourcing.open source is the same thing as peer review, just on a larger scale
<shadYY>
hey i want a script to scrap/get data from google grp , can ne1 help me out ?
<certainty>
shevy: 2009
<shevy>
hmm
<mary5030>
shevy: one more question so in this case output.values.any? {|entry| entry.include? 'Unexpected' } if it is not Unexpected it blows up and doesnt return flase
<shevy>
CockRingMcgee well, I am thinking of AI
maletor has joined #ruby
<shevy>
mary5030 you can use methods
<mary5030>
undefined method `include?' for 510:Fixnum
drx_ has quit [Read error: Connection reset by peer]
drx_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
drx___ has joined #ruby
jbe has joined #ruby
<havenwood>
TL;DR, use GCM :P
m1lt0n_ has quit [Quit: leaving]
arubincloud has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
klaut has quit [Remote host closed the connection]
<shevy>
certainty hmm I am contemplating making more notes of when milestones were achieved
lw has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
I think I didn't do much at all in the first five years of when I was using ruby
Zai00 has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
<havenwood>
neat that Rubygems is going with TUF
drx_ has joined #ruby
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xlogic has joined #ruby
mikepack has quit [Remote host closed the connection]
ferno has joined #ruby
SCommette has quit [Quit: SCommette]
CaptainJet has joined #ruby
phantomtiger has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
<shevy>
TUF?
zeeraw has joined #ruby
drx___ has quit [Ping timeout: 264 seconds]
<certainty>
shevy: why? do you feel like you're not where you could be? And if so, why would you care? (that's things i was/am contemplating about)
Shidash has quit [Ping timeout: 246 seconds]
drx___ has joined #ruby
MrJoshua has joined #ruby
Al__ has quit [Quit: Al__]
maasha has joined #ruby
<shevy>
certainty no, in respect to milestones, whether I should note down when x/y/z was reached or achieved
<shevy>
whether it is of interest to note that down or not
sepp2k has quit [Quit: Konversation terminated!]
obs has quit [Quit: Konversation terminated!]
ce_afk is now known as cescalante
<shevy>
certainty I don't really care for myself, but filling up portfolios to answer questions like "hmmm I did 10 years of ruby" "aha... where is your stuff?" (Pause) "uhmmmmmm"
m4n1f3st0 has joined #ruby
drx_ has quit [Ping timeout: 255 seconds]
Al__ has joined #ruby
<certainty>
shevy: that's pretty easy to answer? You've lots of stuff at rubygems
drx_ has joined #ruby
<shevy>
deduct 2 years
<apeiros>
certainty, havenwood: thanks
<shevy>
so there would be no gems
fluxxed has quit [Quit: WeeChat 0.4.3]
* apeiros
still thinks somebody should make something like quirksmode for security
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
certainty I think only 4 of these are "real" projects, the rest are really just tiny
<shevy>
but tiny is good, much less work
<certainty>
havenwood: the recommended lenghts in this paper are still a bit too short IMHO given the latest events
drx___ has quit [Ping timeout: 252 seconds]
drx_ has quit [Read error: Connection reset by peer]
<shaileshg>
has anyone here used authenticate_with_http_token in rails and written rspec request tests for the same?
<certainty>
shevy: do you have that much public projects? Most of my ruby projects are internal to my company
drx_ has joined #ruby
<shinobi_one>
shaileshg: as kin #rubyonrails
<shinobi_one>
ask in*
<certainty>
in fact i believe i have only one or two public projects that I own
dweeb_ has quit [Quit: Computer has gone to sleep.]
smathieu_ has quit [Remote host closed the connection]
BraddBitt has joined #ruby
Notte has joined #ruby
<shevy>
certainty yeah, I think internal projects would be only bioinformatics related, and these are mostly just damn boring SQL jobs, and even without SQL is just handling huge datasets of superboring nucleotides and amino acid sequences mostly
drx_ has quit [Read error: Connection reset by peer]
<shevy>
or they are just useless small ruby scripts
<certainty>
sounds interesting if you ask me
codezomb has joined #ruby
<shevy>
:(
<shevy>
what's done in the USA is cool
hobodave has quit [Read error: Connection reset by peer]
<certainty>
we've got a member in the CHICKEN community that does these kinds of things at the university of okinawa
<certainty>
crazy stuff
hobodave has joined #ruby
<shevy>
combining system biology with synthetic biology (and perhaps de-novo assembly of organic compounds, so that would be organic chemistry)
BraddPitt has quit [Ping timeout: 264 seconds]
mityaz has joined #ruby
<shevy>
chicken?
SCommette has joined #ruby
_justin has joined #ruby
<certainty>
shevy: are you a biologist by profession?
<shevy>
okinawa chicken karate?
<shevy>
certainty yeah
<certainty>
shevy: hehe CHICKEN scheme
<havenwood>
shevy: chicken scheme
<havenwood>
certainty: jinx!
<shevy>
aaaah scheme
<shinobi_one>
the hell are we talking about in here :P
<certainty>
cool i like people that care about the living things
<shevy>
lisp shinobi_one
<certainty>
havenwood: :)
<shinobi_one>
oh boy
<shevy>
nono
treaki has joined #ruby
<shevy>
(oh (boy))
<certainty>
'(oh (boy))
<shinobi_one>
:(
<shevy>
ewww
<certainty>
unless oh denotes a procedure or syntax
<shinobi_one>
/leave
<havenwood>
i'm not crazy about eggs, but i'd rather a chicken egg than a python egg
TMM has joined #ruby
<certainty>
same here
<certainty>
also i don't know python
<bricker>
apidock is the worst
<shinobi_one>
i'd python any day over anything lisp
bradhe_ has quit [Remote host closed the connection]
endash_ has quit [Quit: endash_]
graft has joined #ruby
graft has joined #ruby
bradhe has joined #ruby
<shinobi_one>
python isn't THAT far off from ruby
<shevy>
hmm
<havenwood>
ruby isn't THAT far off from lisp
<shevy>
python lay eggs?
<certainty>
shinobi_one: fair enough. My hypothesis is that some languages just work better with some people's brains
<bricker>
shinobi_one: seems to be a lot more popular, I can't figure out why
elaptics is now known as elaptics`away
<phat4life>
i personally wouldn't use ruby for anything but web development
<shinobi_one>
havenwood i disagree ;p
<graft>
hey folks, i have a string, and i want to count the number occurrences of a set of characters - what's the fastest way to do this? scan? .each through the characters?
<phat4life>
or maybe a cool gem or something
<bricker>
phat4life: why's that?
<certainty>
graft: .count
<shinobi_one>
phat4life: ruby is great for writing scripts, unless you're a bash-head
<slash_nick>
aw
<phat4life>
the only other coding i do outside of work is c++ and glsl
jwood has quit [Quit: Leaving]
sdouglas has joined #ruby
<havenwood>
shinobi_one: "If you want a language for easy object-oriented programming, or you don't like the Perl ugliness, or you do like the concept of LISP, but don't like too many parentheses, Ruby might be your language of choice."
<shevy>
phat4life I mostly use ruby for non-web stuff
<havenwood>
shinobi_one: manpage quote that cracks me up ^
<phat4life>
shevy: what sort of things?
<shinobi_one>
havenwood: haha
<shevy>
phat4life for instance any sorts of file and directory manipulation
Elico has left #ruby [#ruby]
<shevy>
like what you would do in a .sh script normally
<phat4life>
you mean like chef?
<shinobi_one>
lol
<shevy>
phat4life another huge area I use ruby is to make use of system() and `` to call to mplayer, ffmpeg and all the other tools
<phat4life>
or puppet
<shevy>
I don't know chef nor puppet, so no idea sorry
<phat4life>
shevy did that inside reuby
<phat4life>
sorry rails
saarinen has quit [Quit: saarinen]
<shevy>
rails is like another world for me
<phat4life>
i worked at a porn website, we had all these systems calls for ffmpeg
<shevy>
though I am supposed to want to learn it
<shevy>
phat4life hehehe
<shevy>
I use ffmpeg to determine file duration for .mp3 .mp4 and so forth
<phat4life>
but as far as 3d graphics, shaders, go wouldn't use ruby for that
<shevy>
ok but who needs that
<shevy>
other than GAMERS
<phat4life>
me :)
<shevy>
you mus be a GAMER
<phat4life>
or music vizuliaers
<havenwood>
bricker: seems Ruby and Python are roughly equally popular to me, at least as far as metrics like StackOverflow and Github
<shinobi_one>
there's no reason to learn Rails unless you want to do web development shevy lol
<shevy>
the music folks probably use very specialized software
<phat4life>
music vizualizers are my shit
<shinobi_one>
havenwood: i think Python is slightly more popular
<certainty>
havenwood: peter norvig uses python these days :/
<shevy>
phat4life apeiros once wrote "Alle meine Entlein" song
<shinobi_one>
havenwood: nah, they have a lot of python
<certainty>
google has a huge CL code base also
smathieu has joined #ruby
<certainty>
they useeverything
<certainty>
erm
<phat4life>
i have only used python in relation to Blender
mansi_ has quit [Remote host closed the connection]
<phat4life>
i would prefer python over ruby i think
mansi_ has joined #ruby
<phat4life>
though i have only used python as a replacement for matlab
<shinobi_one>
havenwood: they have a lot of job openings for python
<phat4life>
and blender
maletor has quit [Quit: Computer has gone to sleep.]
<havenwood>
i think it has a bit of an edge because academia likes its simplicity, but Ruby is shining
<shevy>
blender is weird
<shevy>
I liked wings3d more
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b00stfr3ak has quit [Read error: Connection reset by peer]
MrJoshua_ has joined #ruby
<shevy>
much simpler in handling
<shevy>
but in the end I realized
<shinobi_one>
Ruby will probably be more popular on the web than Python, but I'm not sure about overall
<havenwood>
shinobi_one: they've still got a lot to maintain, anyways they seem Go/Dart focused but sure they do lots of langs - hire plenty of Rubyists too
<havenwood>
shinobi_one: Wildfire is Ruby, etc.
<shevy>
my skills as far as 3D modelling go are limited, I rather want to generate 3D objects
<certainty>
matz and guido would agree that Perl it TEH THING once Perl 6 is released
<certainty>
is
<phat4life>
shevy: i did research in graphics in college
<shinobi_one>
havenwood: all of their google PaaS stuff is Python
<havenwood>
shinobi_one: Ruby is becoming quite popular in aerospace and supercomputing, more so than Python I beleive.
<phat4life>
human animations are hard
<havenwood>
shinobi_one: Python is a learning language. Ruby is a doing language. :P
<shevy>
all animations are hard!
<certainty>
havenwood: why's that?
<shinobi_one>
havenwood: lol i think you're confused :P
<shevy>
phat4life we tried to do a game a few years ago
<shinobi_one>
i can't imagine any supercomputing is being done with ruby
sepp2k has joined #ruby
<phat4life>
shinobi_one: my company bought out most of the building we are in
<phat4life>
and now we are all in a huge space with lots of empty desks
<havenwood>
shinobi_one: yet it is!
<shinobi_one>
phat4life: our old building was like that, then we moved to a smaller one ;)
<shinobi_one>
havenwood: pic or not real ;p
<havenwood>
certainty: turns out devs being able to better express what they want to compute makes up for much speed, optimize just where needed
<havenwood>
dunno
<certainty>
possibly
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<havenwood>
certainty: matz said something about being shocked when he first heard Ruby was being actively used in supercomputing
<certainty>
time for cinema. Have fun guys/gals
<shinobi_one>
hm
mikepack has joined #ruby
<havenwood>
never intended for it, but fell into its lap
<shinobi_one>
i'd have to see this to believe it :P
gregf has joined #ruby
<BeingUntoDeath>
:O :O
<havenwood>
shinobi_one: our latest gen fighter jets software and hardware are modeled in Ruby :P
<havenwood>
shinobi_one: it is used in space
<phat4life>
no more embded c code
<shinobi_one>
havenwood: what country?
sepp2k1 has joined #ruby
p8952 has joined #ruby
sdouglas has quit [Remote host closed the connection]
<havenwood>
shinobi_one: USA
<shinobi_one>
ah you mean the new fighter jet projects with the terribly shitty software that costs like a million per helmet that barely works properly? ;p
failshell has quit []
<havenwood>
shinobi_one: i blame Ruby!
<havenwood>
hehe
<shinobi_one>
language never matters, it's always the devs lol
NovapaX has joined #ruby
<shinobi_one>
havenwood: have you used much python? just curious
sepp2k has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<havenwood>
shinobi_one: only a little, mostly porting
<shinobi_one>
ah
<havenwood>
shinobi_one: i prefer Ruby, and they're too similar for me to spend a ton of time
<havenwood>
shinobi_one: do you do lots of Python?
<shinobi_one>
havenwood: I used to do a lot of Python at my job, Python/Django stuff
<havenwood>
<3 blocks
<shinobi_one>
ruby blocks? lol
<phat4life>
blocks, proccs, lamdas
<phat4life>
what makes a lambda proc a lambda
senayar_ has joined #ruby
<havenwood>
shinobi_one: yeah, I like not violating tenet's correspondence principle as well
<phat4life>
that is what i want to know
<slash_nick>
i've been doing more shell than ruby lately... might get to spend a week or two on some web dev stuff soon
<havenwood>
tennent's*
RaCx has quit [Ping timeout: 246 seconds]
<phat4life>
learn c++ instead
afex has quit [Ping timeout: 255 seconds]
<shinobi_one>
lol
<phat4life>
or c, so then when your ruby interper crashes and you look at the c code you know whats up
<shevy>
slash_nick ewww shell stuff...
jlast has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
<phat4life>
which has been happening to me a lot lately
<TheLarkInn1>
learn obj-c :-P
<shevy>
slash_nick can't you use ruby for shell stuff?
<havenwood>
silly to try to relegate Ruby to the web though, a great general purpose language
<shinobi_one>
shevy if you know how to write bash easily, there's no point to use ruby for it
RaCx has joined #ruby
<shevy>
well what about the opposite way shinobi_one
Speed has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
<havenwood>
shinobi_one: i should probably give python more attention, i don't dislike it - just lots of other languages more interesting to me
<shinobi_one>
shevy: wat?
<slash_nick>
shevy: eventually... my environment has ruby 1.8.5 for now with no rvm, no rubygems integration
Fire-Dragon-DoL has joined #ruby
<shevy>
shinobi_one if someone knows how to write ruby easily
coderxin has quit [Remote host closed the connection]
<shevy>
slash_nick ewwww that sucks
<phat4life>
every programmer should understand pointers, which sadly you can't learn with ruby
<shinobi_one>
shevy: bash is still going to be faster and more powerful if you know it for system stuff
<shevy>
slash_nick at work I had 1.8.7, but at least with gem available
coderxin has joined #ruby
jlast has joined #ruby
<havenwood>
uhg bash
<slash_nick>
i'm using it very limitedly... mostly standard lib stuff
<shevy>
shinobi_one well it's integrated into your shell
mehlah has quit [Read error: Connection reset by peer]
dx7 has joined #ruby
<shevy>
you'd need a shell that could interprete ruby code as quickly
<havenwood>
just went through a whole bash project doing explicit returns to handle set -e insantiy
<shinobi_one>
shevy: nah, i mean even writing bash scripts to do system level stuff is generally quicker than doing it in ruby, because with ruby you'll probably just have to make system calls anyway to do some things quickly lol
sambao21 has joined #ruby
mehlah has joined #ruby
<havenwood>
shinobi_one: there's a reason the nicest dev ops tools are in Ruby (or Python heh) not Bash
<shevy>
havenwood everyone says ruby is slow :(
mehlah has quit [Client Quit]
<slash_nick>
phat4life: on that server? i don't have irb :D
<havenwood>
shevy: compared to what?
<shinobi_one>
havenwood: dev ops tools is something completely different than scripts lol
<shevy>
havenwood bash :)
mehlah has joined #ruby
<havenwood>
shevy: :O
<shevy>
havenwood and C :)
<shevy>
hehe
coderxin has quit [Read error: No route to host]
coderxin_ has joined #ruby
<slash_nick>
i love it... no irb, no rubygems, no bundler, no rvm, ruby 1.8.5
atlas__ has joined #ruby
<shinobi_one>
if i need to write a script to back up databases or tables to files compressed, transfer them to another server, uncompress them and load them into a database, i'm sure as hell not going to use ruby
<havenwood>
shevy: JRuby 9k Truffle is crazy fast, as is Topaz for that matter.
Azure has quit [Quit: My MBP went to sleep.]
<shinobi_one>
lol Topaz
Fire-Dragon-DoL has quit [Client Quit]
cescalante is now known as ce_afk
<havenwood>
shevy: i'd have expected to you like RPython
<shevy>
slash_nick old school ruby programming :-)
ce_afk is now known as cescalante
<shevy>
what is RPython
Fire-Dragon-DoL has joined #ruby
<shevy>
and why is there a R in python
<shevy>
is the snake devouring Ruby right now?!
<shevy>
Ruby ~~~ Python
Alina-malina has quit [Quit: Leaving]
<slash_nick>
shevy: or "R"
<shevy>
Ruby ~~ Python
<shevy>
Ruby - Python
<shevy>
look the Python is getting closer!
<shevy>
Ruby-Python
<shevy>
Rub-Python
kirun has quit [Ping timeout: 255 seconds]
<shevy>
damn it!
<phat4life>
wait you are learning ruby and you don't have irb
<shevy>
R-Python
<shevy>
omg
<phat4life>
how is that possible
<Rylee>
Ahahahaha
<shevy>
RPython <--- soon it is over :(
Alina-malina has joined #ruby
<shevy>
phat4life well I am not sure when irb was added hehe
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<shevy>
but probably ... at least... ruby 1.4 !
maletor has joined #ruby
<havenwood>
shevy: no relation to Ruby, just a restricted subset of Python that's "amenable to static analysis"
<shevy>
I don't understand why matz did not have anything like gems
<Rylee>
Ruby has Gems but Python doesn't have Eggs. Checkmate, snakelang users.
<shevy>
havenwood hmmm
m4n1f3st0 has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
<shevy>
Python has pip or? the thing you spit out from an apple
sambao21 has quit [Client Quit]
phat4life has left #ruby [#ruby]
<slash_nick>
phat4life: i'm learning ruby... have been since '07
<havenwood>
don't get me started on pip...
yubrew has joined #ruby
freezey has joined #ruby
m4n1f3st0 has joined #ruby
<shinobi_one>
python has easy_install, and pip which i think are the two most common
Solnse has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
<shinobi_one>
i don't think python 3.x crazy speeds up python from 2.7
<shevy>
it made an xorg library fail to compile!
<shinobi_one>
shevy: not this again :P
<shevy>
:D
<shevy>
no
<havenwood>
shevy: come back, don't embrace the dark side!
<shevy>
python folks should kill 2.x
SonicX has quit [Remote host closed the connection]
<havenwood>
shevy: but they wont. ever.
<shinobi_one>
ruby has needed faster development on many things because of the accusations of slowness and memory and other things, python doesn't have these problems even at 2.7 really
fgo has joined #ruby
<shevy>
matz killed ruby 1.8.x!!!
<shevy>
if he can so can guido
<havenwood>
shevy: 1.9.2 is past end-of-life!
smathieu_ has quit [Remote host closed the connection]
<shevy>
is ruby faster than python 2.x?
<shinobi_one>
i don't believe so
<shevy>
hmm
<shevy>
ASS SLOW
<shevy>
is ruby faster than perl 5 at least?
<shinobi_one>
lol
<havenwood>
shevy: just use JRuby 9k + graal and answer all your questions, yes.
<shinobi_one>
lol
fgo_ has joined #ruby
<shinobi_one>
havenwood: and Jython?
<shinobi_one>
or Cython?
<havenwood>
they bow to the Truffle!
<shinobi_one>
lol
amh345 has left #ruby [#ruby]
<shinobi_one>
well i'm going to indulge in some terrible american chinese food, bbl
* shinobi_one
afk
Azure has quit [Quit: Blue Sky Fish]
<havenwood>
shinobi_one: there is experimental work with Python and Truffle i think
<havenwood>
Ruby is just the furthest along.
_justin has quit [Quit: _justin]
dweeb_ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
_justin has joined #ruby
_justin has quit [Client Quit]
<shinobi_one>
havenwood: i'm not super excited about truffle really
<havenwood>
i sure am
aaronmcadam has quit [Quit: Leaving...]
<shinobi_one>
isn't jruby still on 1.9.2 or something?
<havenwood>
mruby too
<havenwood>
shinobi_one: stable release is default to 1.9.3 mode, but 2.0 available
fgo_ has quit [Ping timeout: 264 seconds]
zachallett has quit [Remote host closed the connection]
<havenwood>
shinobi_one: JRuby 9k branch is 2.1.
paulfm has quit []
<shinobi_one>
i'm not going to run production code on a non-stable level
<havenwood>
shinobi_one: it isn't ready for prime time
<shinobi_one>
it isn't ready for me, and it's been taking ages
<shinobi_one>
lol
ikaros has quit [Quit: Ex-Chat]
<shinobi_one>
shit python4 will be out soon
<shinobi_one>
jk
<havenwood>
shinobi_one: JRuby is production ready. JRuby 9k will be production ready when it is released.
<havenwood>
shinobi_one: (It'll be called JRuby 2.)
<shinobi_one>
havenwood: JRuby is production ready yes, at 1.9.2
<sisco>
hello all, im realy noob into ruby , but with your help i can figure out. anyways . im using ffmpeg to record a live stream rtmp, but how can i use ruby to keep always only the last 10 min on the hard drive
blackmesa has quit [Ping timeout: 264 seconds]
<shinobi_one>
ok finally my coworker is ready to get food
Speed has quit [Ping timeout: 255 seconds]
blandflakes has quit [Ping timeout: 245 seconds]
cjsarette has quit [Ping timeout: 264 seconds]
dingus_khan has quit [Remote host closed the connection]
<sisco>
mordocai im stuck into cron job how to know what file to delete, lets say i made a bash file or segmenter to create the files , to this point is good. but how to grab them to restream them in order and delete the old one
lw has quit [Quit: s]
bradhe has joined #ruby
compleatang has quit [Ping timeout: 264 seconds]
userx has joined #ruby
userx has quit [Changing host]
userx has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
GaryOak_ has quit [Remote host closed the connection]
vt102 has quit [Remote host closed the connection]
teddyp1c_ has quit [Remote host closed the connection]
<mordocai`>
sisco: I would probably list files, sort by modification time, and delete all but the most recent.
smathieu has joined #ruby
dingus_khan has joined #ruby
<sisco>
could you give me an example plz
<sisco>
thats would be great
DrShoggoth has joined #ruby
YamakasY has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
Hobogrammer has joined #ruby
froy has quit [Remote host closed the connection]
afex has quit [Ping timeout: 255 seconds]
jjbohn has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
froy has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
Lewix has joined #ruby
nifty has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<sisco>
i think i got idea
<sisco>
i will test it
beauby has joined #ruby
aagdbl has quit [Quit: Leaving]
kirun has joined #ruby
chuk has joined #ruby
descala has quit [Ping timeout: 264 seconds]
binaryhat has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
descala has joined #ruby
rockelb has quit [Quit: Leaving]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 246 seconds]
<mordocai`>
sisco: Haven't tested this well, but found Dir.entries("/").sort_by{ |f| File.mtime("/" + f) }[0] seems to work. replace "/" with the directory you care about, you could use Dir["*.mkv"] if you care about extension.
smathieu has quit [Remote host closed the connection]
<mordocai`>
sisco: Like Dir["/*.mkv"].sort_by{ |f| File.mtime("/" + f) }[0]
smathieu has joined #ruby
nanoyak has quit [Client Quit]
<sisco>
i use as .rb?
blom_ has joined #ruby
RaCx has joined #ruby
mgomezch has joined #ruby
<mordocai`>
sisco: Yeah, that's ruby code.
sambao21 has joined #ruby
endash_ has joined #ruby
<mordocai`>
sisco: Oh, that sort is ascending, so you want to reverse it
Speed has joined #ruby
dingus_khan has quit [Remote host closed the connection]
yubrew has joined #ruby
<mordocai`>
sisco: In an ever growing monstrosity Dir["/*.mkv"].sort_by{ |f| File.mtime("/" + f) }.reverse[0]
<crome>
banister: because class Hello is actually Hello = Class.new
fgo has joined #ruby
IceyEC has joined #ruby
<mordocai`>
sisco: Give me a second then
<banister>
crome i think it's more to do with the executable class bodies actually
<sisco>
ok sir
matcouto has joined #ruby
derek_c has joined #ruby
senayar has joined #ruby
petey has quit [Remote host closed the connection]
erikruthven has quit [Client Quit]
petey has joined #ruby
einarj has joined #ruby
blom_ has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
tt1187 has joined #ruby
michaeldeol has joined #ruby
YamakasY has quit [Remote host closed the connection]
xlogic has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
petey has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
timonv has quit [Remote host closed the connection]
mikepack has joined #ruby
<mordocai`>
sisco: This is the ruby file you might be able to use http://paste.debian.net/88233/. I commented out the line that actually removes the file so you can test it first. You should run it like ./remove_all_but_latest_modified.rb "/recorded_stuff/" "mkv" >> /var/log/remove_all.log
DouweM has joined #ruby
<mordocai`>
sisco: There are a lot of improvements that can be made (checking directory exists, using Logger instead of puts, etc)
<sisco>
ok
<sisco>
i will try it
serapath has left #ruby [#ruby]
<sisco>
can i add the comman of ffmpeg into the same file?
<unholycrab>
can someone point me to an example class definition where the object is created with symbols, for example obj = cl.new(:foo => 'foo', :bar => 'bar')
<mordocai`>
sisco: You'd have to use threading or forking to be able to have both run at the same time. Gets more advanced.
_Andres has quit [Read error: Connection reset by peer]
shinobi_one has joined #ruby
jjbohn has quit [Quit: Leaving...]
<shinobi_one>
shevy: if you call slaves me driving us both to get food then yes ;p
jjbohn has joined #ruby
dkamioka has quit [Remote host closed the connection]
centrx has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
momigi_ has quit [Quit: Leaving...]
Jane_ has joined #ruby
momigi has joined #ruby
CockRingMcgee has joined #ruby
derek_c has quit [Ping timeout: 252 seconds]
m4n1f3st0 has joined #ruby
kobain has joined #ruby
centrx has quit [Client Quit]
crystal77 has quit [Quit: Computer has gone to sleep.]
<CockRingMcgee>
I'm back bitches!
nanoyak has joined #ruby
centrx has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<CockRingMcgee>
anyone know how to use Heroku?
centrx is now known as Guest63599
maletor has joined #ruby
postmodern has joined #ruby
Guest63599 is now known as centrx
<abdulsattar>
CockRingMcgee: !used
<abdulsattar>
I can't for the love of god use helpa
sdouglas has joined #ruby
<abdulsattar>
!used
<mozzarella>
!help
<CockRingMcgee>
abdulsattar
<CockRingMcgee>
whats good
<mozzarella>
.help
<CockRingMcgee>
!help
<CockRingMcgee>
.help
jlast has quit [Remote host closed the connection]
crystal77 has joined #ruby
<CockRingMcgee>
wtf I don't know how to use IRC channels
<CockRingMcgee>
Please direct me to learning this shit
jlast has joined #ruby
<mozzarella>
isn't helpa only available in #rubyonrails?
francisfish has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
<abdulsattar>
Okay here's what helpa would say: CockRingMcgee Please don't ask "Does anyone how to use <<something>>". Ask the question directly
jlast has quit [Read error: Connection reset by peer]
<CockRingMcgee>
thank mr. moderator abdulsattar
jlast has joined #ruby
<CockRingMcgee>
So, what is a gem?
<mozzarella>
!ask
dapz has joined #ruby
<unholycrab>
abdulsattar: eggcellent. thanks
<CockRingMcgee>
!ask what does that mean
<unholycrab>
CockRingMcgee: its a ruby module
aspires has quit []
<CockRingMcgee>
aaa please explain, So is it like a library?
<CockRingMcgee>
like sciPy is for Python?
wallerdev has quit [Quit: wallerdev]
terrellt has quit [Ping timeout: 255 seconds]
Jane_ is now known as Jane_657
<mozzarella>
like pip for python
<mozzarella>
I think
coderxin has joined #ruby
<mozzarella>
gem instal gemname
<mozzarella>
install*
terrellt has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<CockRingMcgee>
aaa
<unholycrab>
CockRingMcgee: sure. there aren't any bots in here either
<unholycrab>
that respond to triggers liek that
<CockRingMcgee>
I'm lost
<unholycrab>
CockRingMcgee: have you ever killed a man?
lmickh has quit [Quit: lmickh]
intuxicated has joined #ruby
<slash_nick>
CockRingMcgee: ... mozzarella looked like he tried to trigger a bot with "!ask", to which you replied "what's that?"... unholycrab probably meant to address mozzarella
beauby has quit [Ping timeout: 246 seconds]
jackneill has quit [Remote host closed the connection]
<shinobi_one>
does nobody understand this guy is trolling lol
maletor_ has joined #ruby
Czupa has quit [Remote host closed the connection]
coderxin_ has quit [Ping timeout: 255 seconds]
<centrx>
Seriously
<centrx>
Wake up sheeple
<shinobi_one>
^
lw has joined #ruby
* slash_nick
apologizes for not having paid attention to anyone/anything in here for the past hour or so
duggiefresh has joined #ruby
lmickh has joined #ruby
<mozzarella>
if someone's trolling WHY don't you just kick them?
coderxin_ has joined #ruby
Jane_657 has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 252 seconds]
<mozzarella>
it's not all that obvious
<mordocai`>
Sometimes it is fun to feed the trolls...
<shinobi_one>
i can't kick anyone
mike_k has quit [Remote host closed the connection]
<slash_nick>
some shinobi
deens has quit [Remote host closed the connection]
BuSerD_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderxi__ has joined #ruby
<intuxicated>
Hi all, I'm looking for simple postgresql client just for simple queries , most of my queries are select so i don't need complex datamapper or active record , ruby 2.1.1, psql 1.9.3, any suggestion ? i found pg gem but seems like doesn't support psql 1.9.3
<shinobi_one>
slash_nick: i can sneak up through the shadows and slit a mean throat though..
jph98 has joined #ruby
<apeiros>
intuxicated: try sequel
<unholycrab>
that is scary, shinobi_one
fijimunkii has joined #ruby
<apeiros>
intuxicated: without its ORM part, that is.
BeingUntoDeath has quit []
<shinobi_one>
unholycrab: it is
derek_c has joined #ruby
<intuxicated>
apeiros, ty :)
<CockRingMcgee>
Yea kick the troll out
<CockRingMcgee>
wtf
bynaryshef has joined #ruby
<CockRingMcgee>
And yes I have killed a man. Back when I used to live in Tijuana
slash_nick is now known as slash_kick
coderxin has quit [Ping timeout: 264 seconds]
contradictioned_ has quit [Ping timeout: 252 seconds]
strayjane has joined #ruby
<CockRingMcgee>
That essay liked to use to oxford commas incorrectly, so I shanked him.
cj3kim has joined #ruby
<shinobi_one>
Tijuana, I hear that's nice this time of the year.
maletor_ has quit [Ping timeout: 264 seconds]
<CockRingMcgee>
Hell yea fun time during spring break man
<abdulsattar>
by "fun" you mean "stabbing someone in the back"?
doodlehaus has quit [Remote host closed the connection]
blom_ has quit [Ping timeout: 252 seconds]
<slash_nick>
matcouto: well, you are overwriting @item_cart with every iteration through #each
baroquebobcat has joined #ruby
<matcouto>
slash_nick even though, I supposed to have at least the last item inserted, right?
vlad_starkov has joined #ruby
<fveillette>
did someone have ever had a error like this: Could not open library 'libkernel32.so': libkernel32.so: cannot open shared object file: No such file or directory
kwoodson has joined #ruby
blom_ has joined #ruby
<matcouto>
slash_nick I'll put @item_cart inside an array and see
centrx has quit [Client Quit]
northfurr has joined #ruby
centrx has joined #ruby
centrx has quit [Client Quit]
monkegjinni has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
<slash_nick>
matcouto: eh, i just assumed the last item didn't have any... i have a very limited idea what you're dealing with inside those variables
centrx has quit [Client Quit]
beneggett has joined #ruby
centrx has joined #ruby
baroquebobcat_ has joined #ruby
centrx is now known as Guest7990
obs has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
workmad3 has joined #ruby
Guest7990 is now known as centrx
jjbohn has quit [Quit: Leaving...]
deens has joined #ruby
vt102 has joined #ruby
<fveillette>
did someone have ever had a error like this: Could not open library 'libkernel32.so': libkernel32.so: cannot open shared object file: No such file or directory
baroquebobcat has quit [Ping timeout: 240 seconds]
baroquebobcat_ is now known as baroquebobcat
<centrx>
fveillette, Missing a library
Azure has joined #ruby
Jason has joined #ruby
<Jason>
hi all - how do I get a string, but only retrieve anything after the first X letters of it?
<Jason>
in python: x="1234"; x[2:]
<fveillette>
rspec on my jenkins complain when i use win32-servcice gem in a chef recipe
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 240 seconds]
<Jason>
shinobi_one: that would work actually. silly me.
<Jason>
shinobi_one: thanks.
<shinobi_one>
Jason: np
jjbohn has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
zorak has quit [Ping timeout: 264 seconds]
montyboy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
beneggett has joined #ruby
montyboy has quit [Client Quit]
blom_ has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
blom_ has joined #ruby
anoldhacker has joined #ruby
samuel02 has quit [Ping timeout: 246 seconds]
hfp`away has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
afex has joined #ruby
baroquebobcat has joined #ruby
BuSerD is now known as BuSerD_zzzz
<anoldhacker>
I'm having trouble compiling the thrift gem on a Mac, which was recently updated to Mavericks. I have XCode, and just downloaded the command line tools & installed. Any more ideas?
<shinobi_one>
Eh, I don't make desktop applications in Ruby.
momigi has quit [Remote host closed the connection]
<bnagy>
ha, second answer is 'I comitted a patch to check if strlcpy is builtin' :P
jobewan has quit [Quit: Leaving]
<bawNg>
I wonder how many ruby developers are gamers
<shinobi_one>
bawNg: I game.
<shinobi_one>
so +1
TheEconomist has quit [Remote host closed the connection]
momigi has joined #ruby
<bawNg>
I wonder how many play Rust :P
<Sawbones>
I play rust
maletor has quit [Quit: Computer has gone to sleep.]
<bawNg>
I'm almost done building a nearly real-time, detailed web based Rust server browser
<anoldhacker>
I'm an addict, I'm afraid. Don't to pay-by-month, though.
<Sawbones>
I want to get the ESO game
<shinobi_one>
Sawbones: did you play the beta? or are you playing it?
<bawNg>
Still need to implement the filtering UI, will get to it in the next day or two, but there are already real-time and history graphs, reddit integration, and other useful features
<Sawbones>
shinobi_one: a friend let me play it for a little bit, and watched some videos on it
<bawNg>
The in-game rust server browser is insanely limited
<bawNg>
The unicorn backend is Sinatra, the EventMachine one is just a rack application on Thin
SonicX has quit [Ping timeout: 252 seconds]
<shinobi_one>
I see
<bawNg>
I don't use Rails, since it's pretty much always more bloated than I need
phantomtiger has quit [Quit: phantomtiger]
<Sawbones>
banister: dang that framerate dropped pretty quick :P
<bawNg>
Sawbones: Yeah it still needs advanced filtering, but it is already far better than anything else out there
<bawNg>
Should make life much easier for people who need to find decent servers
dejanr has quit [Quit: leaving]
dejanr has joined #ruby
maletor has joined #ruby
hexed has quit [Quit: Leaving]
dejanr has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
yubrew has joined #ruby
chris_thomson has joined #ruby
chris_thomson has quit [Client Quit]
dejanr has joined #ruby
<shinobi_one>
bawNg: the ping is only relevant to south africans
<shinobi_one>
?
dejanr has quit [Client Quit]
freezey has quit [Ping timeout: 264 seconds]
<bawNg>
Yes, since that is where the application is hosted
<shinobi_one>
bawNg: are you going to move it to the US?
<bawNg>
I don't unfortunately have US or EU resources to use for calculating pings
dejanr has joined #ruby
jjbohn has quit [Quit: Leaving...]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
<bawNg>
Not until a point where it can pay for its self
<bawNg>
or I find sponsored resources
m4n1f3st0 has quit [Ping timeout: 264 seconds]
dejanr has quit [Client Quit]
<bawNg>
Ideally it should be able to calculate ping from a few locations, such as EU and US
rootshift has joined #ruby
dejanr has joined #ruby
Lewix has quit [Remote host closed the connection]
<bawNg>
Sawbones: Clicking on a server brings up details, such as info, player count graphed over time and comments from reddit
<bawNg>
That isn't currently stated anywhere, it probably should be
<shinobi_one>
I don't play Rust, but it looks interesting.
chris_thomson has joined #ruby
ferno has joined #ruby
m4n1f3st0 has joined #ruby
<bawNg>
Rust shows a lot of potential, it's already great for an early alpha
<shinobi_one>
I'll probably play DayZ instead
yubrew has quit [Ping timeout: 240 seconds]
<bawNg>
It'll probably be a year or two before DayZ standalone is worth the money
<bawNg>
Rust is already worth it
<bawNg>
Until then, you're better off getting Arma II and playing the DayZ mod
smathieu has quit [Remote host closed the connection]
dejanr has quit [Client Quit]
<shinobi_one>
bawNg: I have that, but I can't invest my time in a game where I can be killed when I'm not playing :P
einarj has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 240 seconds]
CpuID has quit [Ping timeout: 252 seconds]
<bawNg>
shinobi_one: You're talking about Rust?
smathieu has joined #ruby
<shinobi_one>
yes
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bawNg>
You need to find a decent server, preferably one with no crafting C4 and limited sleepers so your body disappears after being logged out for a while
<shinobi_one>
lol sounds like work
<bawNg>
I recommend the first server in the browser list (with the most reddit comments)
programmerq has quit [Remote host closed the connection]
<shinobi_one>
i've been addicted to cs:go and hearthstone lately
smathieu has quit [Remote host closed the connection]
Avahey_ has joined #ruby
smathieu has joined #ruby
SonicX_ has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bawNg>
I've been playing CS:GO for the past 26 months, Rust is the first game that has hooked me since the GO beta started
dik_dak has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
<bawNg>
I do a lot of CS:GO modding too though
<shinobi_one>
i've been playing CS since 2000 or so lol
Salve has quit [Remote host closed the connection]
<shinobi_one>
although not entirely consistently
<bawNg>
yeah I've been playing CS since 1.5 too
stringoO has quit [Quit: stringoO]
<bawNg>
shinobi_one: Have you ever played on an Intoxicated 1v1 server?
<shinobi_one>
sounds familiar, not sure
<bawNg>
There was an EU one starting with "EU - " up until last week
<bawNg>
I unfortunately no longer have EU hosting for it, but that is one of my world first CS mods
<bawNg>
It allows multiple concurrent 1v1 matches on the same tiny map
<shinobi_one>
nice
Salve_ has joined #ruby
<shinobi_one>
bawNg: most people would ESEA aim map 1v1 probs tho
<bawNg>
Very fast gameplay, great for warming up
m4n1f3st0 has quit []
beneggett has joined #ruby
ohwhoa has quit [Quit: woah!]
radic has quit [Disconnected by services]
radic_ has joined #ruby
michaeldeol has joined #ruby
<bawNg>
How does ESEA 1v1 work? Is there a queue where people watch and wait for their turn?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikepack_ has quit [Remote host closed the connection]
Nyyx has joined #ruby
mikepack has joined #ruby
atmosx has quit [Remote host closed the connection]
<shinobi_one>
bawNg: not sure how it works currently tbh
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Avahey_ has quit []
Nyyx has quit [Client Quit]
<bawNg>
There is no other mod that allows concurrent 1v1 matches on a single server, I really need to find time to finish my mod, it's still an early alpha
Nyyx has joined #ruby
Avahey_ has joined #ruby
<bawNg>
I just had enough time to make the prototype playable and stable for basic gameplay
yiati has joined #ruby
Avahey_ is now known as Avahey
m4n1f3st0 has joined #ruby
<shinobi_one>
bawNg: esea has a 1v1 aim map league
<bawNg>
Yeah, but that is slow-paced and allows few rounds of gameplay
nopolitica has quit [Quit: leaving]
<shinobi_one>
bawNg: i think that's the point though, it's a league, not a deathmatch style of play
<bawNg>
My mod allows you to play 1v1 constantly, pretty much never stopping, you just keep getting new opponents and respawning
vhsmaia has joined #ruby
<shinobi_one>
your mod sounds fun
<bawNg>
It is made primarily for practise, nothing else compares to its efficiently
<bawNg>
*efficiency
<shinobi_one>
maybe if you finish go will add it :P
<bawNg>
But I would like to add a ladder to it later
nopolitica has joined #ruby
<bawNg>
I doubt that, and I really wouldn't want them to
<bawNg>
Valves implementation of DM and GG are terrible
SCommette has quit [Quit: SCommette]
<bawNg>
My mod is a complete hack of the engine, it relies on many reverse engineered hacks to make something that the engine really wasn't designed for, possible
RaCx_ has joined #ruby
vhsmaia is now known as SrPx
RaCx has quit [Ping timeout: 246 seconds]
RaCx_ is now known as RaCx
m4n1f3st0 has quit [Ping timeout: 255 seconds]
Soulcutter has quit [Quit: WeeChat 0.4.3]
chrisja has quit [Quit: leaving]
ferr has joined #ruby
<bawNg>
Anyway, even though the channel is dead quiet at the moment, that is probably more than enough off topic discussion for this week.
<centrx>
?
<shinobi_one>
lol
<centrx>
Suffocate bunnies grassiest!
<shinobi_one>
:O
benlieb has quit [Quit: benlieb]
creede has quit [Quit: Leaving]
CaptainJet has quit [Ping timeout: 252 seconds]
<bawNg>
On another note, things seem to have gone quiet on my em-http bug report :(
<shinobi_one>
can't say i know much about em-http-request
<bawNg>
Until the issue is resolved, I recommend everyone who needs em-http-request builds a separate application that runs only to use em-http-request, so that only it has a low performance
trhodes_ has joined #ruby
<bawNg>
That is what I had to do for my backend, so my web application now consists of 3 ruby applications
bradhe has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
mike_k has quit []
CaptainJet has quit [Read error: Connection reset by peer]
evenix has joined #ruby
funburn has joined #ruby
klaut has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
mercwithamouth has joined #ruby
mary5030 has joined #ruby
BuSerD has quit [Quit: Sleepy time! ZZZzzz…]
CaptainJet has joined #ruby
bradhe_ has joined #ruby
vlad_starkov has joined #ruby
deens has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yiati has quit []
baroquebobcat has quit [Quit: baroquebobcat]
mary5030 has quit [Ping timeout: 240 seconds]
Notte has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
ga1j1n has quit [Remote host closed the connection]
ga1j1n has joined #ruby
Sawbones has quit []
arubincloud has quit []
m4n1f3st0 has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
lmickh has joined #ruby
snath has quit [Ping timeout: 255 seconds]
lw has joined #ruby
geopet has quit [Ping timeout: 252 seconds]
_justin has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
ktosiek has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
yasushi has joined #ruby
deens has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
fgo has joined #ruby
Hobogrammer_ has quit [Ping timeout: 264 seconds]
mikemar10 has joined #ruby
strayjane has joined #ruby
strayjane has quit [Client Quit]
ga1j1n has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
BuSerD has joined #ruby
zenojis has joined #ruby
SCommette has quit [Client Quit]
ekinmur has joined #ruby
CaptainJet has quit [Ping timeout: 255 seconds]
segimondu is now known as segmond
yasushi has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
momigi has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 255 seconds]
momigi has joined #ruby
lilltiger has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
lilltiger has joined #ruby
Salve has joined #ruby
momigi has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
phantomwhale has quit [Ping timeout: 240 seconds]
lepht_ has quit [Read error: Connection reset by peer]
momigi has joined #ruby
jpinnix____ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
_justin has quit [Quit: _justin]
lepht_ has joined #ruby
ferr has quit [Quit: Leaving.]
phantomwhale has joined #ruby
jpinnix____ has joined #ruby
senayar has quit [Remote host closed the connection]
ce_afk is now known as cescalante
aspires has quit []
ekinmur has quit []
jibi has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
CaptainJet has quit [Ping timeout: 252 seconds]
snuffeluffegus has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
nw has quit [Ping timeout: 264 seconds]
crystal77 has joined #ruby
m4n1f3st0 has quit []
derek_c has joined #ruby
nw has joined #ruby
tt1187 has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
AndChat| has quit [Ping timeout: 264 seconds]
beneggett has quit [Ping timeout: 264 seconds]
m4n1f3st0 has joined #ruby
beneggett has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
maxims has left #ruby ["Leaving"]
IceDragon has joined #ruby
sski has joined #ruby
jibi has joined #ruby
strayjane has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yubrew has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has joined #ruby
strayjane has quit [Client Quit]
msmith has joined #ruby
phantasm66 has joined #ruby
hobodave has quit [Ping timeout: 252 seconds]
msmith has quit [Remote host closed the connection]