fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
_whitelogger has joined #ruby
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ is now known as jonahR
_whitelogger has joined #ruby
<n_blownapart> hi noob question, again. I'm trying to fathom why I need the ./ notation in: require "./loadee" , when load "loadee.rb" works fine. both main file and loadee file are in same directory. thanks
<scientes> n_blownapart, its a securiy issues
<scientes> just like you have to type ./foo to execute an executable in the same directory
<n_blownapart> you mean executable like a Rakefile?
artOfWar has joined #ruby
<scientes> yes
<n_blownapart> scientes: so its not a file path issue.? its normal?
artOfWar_ has joined #ruby
<scientes> correct
<scientes> bash/POSIX have the same restirctions on the shell
<scientes> namely, that . is not in PATH
<scientes> (by default)
<n_blownapart> o.k. I'll take it ! but on another tutorial I don't recall needing the ./ on require "filename". scientes
<scientes> thats cause this was a change in ruby1.9
banisterfiend` has joined #ruby
<n_blownapart> hmm, ok. I'll see where it leads me. thanks so much scientes !
<scientes> so just use ./
gen0cide_ has quit [Ping timeout: 245 seconds]
<scientes> to be explicit
<n_blownapart> cool thanks scientes
banisterfiend has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
artOfWar has quit [Ping timeout: 244 seconds]
CannedCorn has quit [Quit: Computer has gone to sleep.]
gen0cide_ has joined #ruby
krz has joined #ruby
noyb has quit [Remote host closed the connection]
_adeponte has joined #ruby
darren has joined #ruby
Clooth[afk] is now known as Clooth
havenn has joined #ruby
maletor has joined #ruby
adeponte has quit [Ping timeout: 276 seconds]
gen0cide_ has quit [Ping timeout: 240 seconds]
_adeponte has quit [Remote host closed the connection]
pu22l3r has joined #ruby
havenn has quit [Remote host closed the connection]
tobym has joined #ruby
gen0cide_ has joined #ruby
jeff_sebring has joined #ruby
wedgeV has quit [Quit: wedgeV]
Clooth is now known as Clooth[afk]
axl_ has joined #ruby
red_ has quit [Ping timeout: 256 seconds]
shadoi has quit [Read error: No route to host]
blazes816 has quit [Quit: Leaving]
kawaguchi has joined #ruby
otters has quit [Ping timeout: 244 seconds]
red_ has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 248 seconds]
voodoofish has joined #ruby
jblack has joined #ruby
yhyubub has joined #ruby
verto is now known as verto|off
opus has joined #ruby
emmanuelux has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
beakerman has joined #ruby
Banistergalaxy has joined #ruby
jrajav has quit [Quit: The best darkness is strange and surprising]
mohits has quit [Read error: Connection reset by peer]
kawaguchi has quit [Ping timeout: 252 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
gen0cide_ has quit [Quit: Computer has gone to sleep.]
MasterIdler has joined #ruby
beakerma_ has quit [Ping timeout: 246 seconds]
<Spooner> n_blownapart : That syntax is largely irrelevant in 1.9 though, since now you require_relative "file" (which is relative to the calling file, not the cwd).
<Spooner> scientes : No, you can't cross-compile gems normally, but rake-compiler does support it except on Windows.
deryl has quit [Quit: deryl]
gtuckerkellogg has joined #ruby
jblack has quit [Ping timeout: 256 seconds]
<n_blownapart> Spooner: oh yeah, that works! but my editor (sublime2) doesn't recognize require_relative as a special word (it stays white, instead of pink). thanks!
jblack has joined #ruby
opus has quit [Quit:]
igotnolegs has joined #ruby
<Spooner> n_blownapart : it isn't anything special - just a standard method in 1.9. If you need your code to run in 1.8.7 and 1.9.3, then either use the require_relative gem (which ports the method back to 1.8.7) or use explicit paths to files or add the folder to $LOAD_PATH
MasterIdler has quit [Quit: MasterIdler]
<n_blownapart> coincidentally I think I have 1.8.7 -v. thanks Spooner
<n_blownapart> Spooner: I'm fairly new to ruby, I don't need multiple versions but good to know.
kawaguchi has joined #ruby
<Spooner> You probably want to use 1.9.3 really, but *shrugs*
jblack has quit [Ping timeout: 244 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
jblack has joined #ruby
joephelius has joined #ruby
mike4_ has quit [Ping timeout: 276 seconds]
jrist is now known as jrist-afk
whap has joined #ruby
kvirani has quit [Remote host closed the connection]
jblack has quit [Read error: Connection reset by peer]
whap has left #ruby [#ruby]
kawaguchi has quit [Ping timeout: 276 seconds]
brianpWins has quit [Quit: brianpWins]
mockra has joined #ruby
erichmenge has quit [Quit: Be back later]
kawaguchi has joined #ruby
banisterfiend has joined #ruby
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
khakimov has joined #ruby
<scientes> just use 1.9.3
<scientes> debian jessie will not have 1.8
<scientes> and that means ubuntu too, prob 13.04
Banistergalaxy has quit [Ping timeout: 256 seconds]
gen0cide_ has joined #ruby
iamjarvo has joined #ruby
<n_blownapart> hi again. why does my book give different output then I am getting? I'm not getting arrays in output: thanks -- http://pastie.org/4447639
zeromodulus has joined #ruby
Araxia_ has quit [Quit: Araxia_]
<GeekOnCoffee> n_blownapart: what output are you getting
<n_blownapart> GeekOnCoffee: just 1,2,3,4,5 on separate lines, no array [3,4] or empty array: []
<banisterfiend> n_blownapart: what ruby version are you using
<n_blownapart> 1.9.3 , and the book is 1.9.1
<n_blownapart> well-Grounded Rubyist
<banisterfiend> n_blownapart: do this
Progster has joined #ruby
<banisterfiend> n_blownapart: puts a.inspect, b.inspect, c.inspect, d.inspect
Choobie has quit [Quit: Leaving]
<n_blownapart> Kay, thanks banisterfiend
kawaguchi has quit [Ping timeout: 272 seconds]
deryl has joined #ruby
ananthakumaran has joined #ruby
whack has joined #ruby
<banisterfiend> n_blownapart: did it work?
<n_blownapart> banisterfiend: no errors from this: http://pastie.org/4447677
<banisterfiend> n_blownapart: ................
Spooner has quit [Ping timeout: 256 seconds]
<banisterfiend> n_blownapart: replace puts a,b,c,d with puts a.inspect, b.inspect, c.inspect, d.inspect
<n_blownapart> oh ok banisterfiend
<banisterfiend> n_blownapart: so it goes inside your mixed_args method
<GeekOnCoffee> try http://pastie.org/4447687
<banisterfiend> dont try that
<n_blownapart> just heard a gunshot outside
<banisterfiend> :)
<GeekOnCoffee> banisterfiend: why not?
<n_blownapart> probably someone shooting a deer.
<banisterfiend> GeekOnCoffee: because it's clear what the issue is
<GeekOnCoffee> hmm maybe I should go to bed then :P
<banisterfiend> GeekOnCoffee: the issue is that 'puts' doesn't display [] syntax when printing arrays, it just outputs the individual elements
<banisterfiend> GeekOnCoffee: if he wants to see the array syntax in the output then he needs to use #inspect
miho has quit [Ping timeout: 244 seconds]
<GeekOnCoffee> yeah, okay
savage- has joined #ruby
syamajala has quit [Remote host closed the connection]
<n_blownapart> hey it worked. why is reputable 1.9.1 book so off base? banisterfiend GeekOnCoffee
<banisterfiend> n_blownapart: are you sure he said that would be the *output* ? he might have just been saying those were the parameters
deryl has quit [Quit: deryl]
nXqd has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
<n_blownapart> banisterfiend: no he's saying output, same with mixed_args(1,2,3) outputting 1,2,[],3
bothra has quit [Ping timeout: 245 seconds]
<banisterfiend> n_blownapart: oh ok then he just got it wrong :P
<n_blownapart> hmm, yeah I noticed some typos, but it seems I've done it before his way with 1.9.3 ...not sure banisterfiend
<n_blownapart> because I thought that wildcard *c returns an array. banisterfiend
<GeekOnCoffee> n_blownapart: it does
<n_blownapart> or "sponge" *c
<GeekOnCoffee> it's simply an effect of the puts command
<n_blownapart> perplexed, I think I used it as author explains with same output.
SegFaultAX has quit [Quit: Lost terminal]
slyv has quit [Quit: Cya!]
vantage has joined #ruby
peterhellberg has joined #ruby
zeromodulus has quit [Remote host closed the connection]
Goles has joined #ruby
red_ has quit [Ping timeout: 245 seconds]
burgestrand has quit [Quit: Leaving.]
manizzle has quit [Ping timeout: 256 seconds]
replore has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
vantage has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
daniel_hinojosa has joined #ruby
ParadoxQuine has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
<n_blownapart> GeekOnCoffee: banisterfiend hey if you're still on, it worked with p instead of puts (output included): http://pastie.org/4447771
<n_blownapart> question is, in that example how would I maintain the b=1 default assigment?
daniel_hinojosa has quit [Remote host closed the connection]
peterhellberg has quit [Remote host closed the connection]
blast_hardcheese has joined #ruby
<n_blownapart> blast_hardcheese: I thought I had the best moniker !
vitor-br has quit [Quit: Saindo]
cloud|droid has joined #ruby
Foxhoundz has quit [Ping timeout: 240 seconds]
Clooth[afk] is now known as Clooth
yasushi has joined #ruby
lledet has joined #ruby
ipoval has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
peterhellberg has joined #ruby
yoklov has quit [Quit: computer sleeping]
replore_ has joined #ruby
davidcelis has joined #ruby
andrew___ has joined #ruby
peterhel_ has joined #ruby
drago757 has quit [Quit: drago757]
peterhel_ is now known as peterhellberg_
uris has quit [Quit: leaving]
andrew___ is now known as andrewhl
Clooth is now known as Clooth[afk]
jonahR has quit [Quit: jonahR]
peterhellberg has quit [Ping timeout: 245 seconds]
manizzle has joined #ruby
mockra has quit [Remote host closed the connection]
Clooth[afk] is now known as Clooth
inteq has quit []
ryanf has joined #ruby
peterhellberg_ is now known as peterhellberg
gmci has joined #ruby
<peterhellberg> Shaky connection from this train :)
mockra has joined #ruby
<bnagy> is it the midnight train to Georgia?
Progster has quit [Ping timeout: 245 seconds]
<peterhellberg> bnagy: Heh, nope… early morning train from Stockholm to Gothenburg
<bnagy> that is utterly useless for song purposes
scientes has quit [Ping timeout: 256 seconds]
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
oGMinor has joined #ruby
bradhe_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving...]
<peterhellberg> bnagy: Haha
vectorshelve has joined #ruby
<vectorshelve> shevy: Hi :)
wereHamster has joined #ruby
shadoi has joined #ruby
<peterhellberg> Just looked on Spotify what the most popular track about Gothenburg is… and it turns out to be about Amphetamine
cloud|droid has quit [Read error: Connection reset by peer]
aezop has joined #ruby
banisterfiend has joined #ruby
hadees has joined #ruby
cloud|droid has joined #ruby
<vectorshelve> peterhellberg: I liked it
burgestrand has joined #ruby
tonini has joined #ruby
<vectorshelve> Hi
indeterminate has quit [Quit: It's too late. You've awakened the gazebo. It catches and eats you.]
tiripamwe has joined #ruby
<peterhellberg> vectorshelve: Hi there
<vectorshelve> peterhellberg: still hung up with yesterday's issue I am via proxy so not ablte to push the changes to my newly created github repo
lledet has quit [Quit: lledet]
<peterhellberg> vectorshelve: So you need to use HTTPS instead of SSH?
<vectorshelve> I am getting this error -> error: The requested URL returned error: 403 while accessing https://github.com/mithunsasidharan/Game-of-Life.git/info/refs fatal: HTTP request failed
<peterhellberg> vectorshelve: Do you have a recent version of git installed?
<vectorshelve> peterhellberg: its quite old.. how do I update ?
<vectorshelve> sudo apt-get update ?
mmokrysz has joined #ruby
<peterhellberg> vectorshelve: So you are using Ubuntu?
mmokrysz has left #ruby [#ruby]
<vectorshelve> peterhellberg: yes
pu22l3r has quit [Remote host closed the connection]
<peterhellberg> The package is probably called git-core then
<vectorshelve> peterhellberg: yes
<cloud|droid> to update it, you could just install it again. no? apt-get install git-core
v0n has quit [Quit: Leaving]
<peterhellberg> I’d start off by upgrading to the latest version, then clone your repo with: git clone https://username@github.com/username/project.git into a new folder
yasushi_ has quit [Remote host closed the connection]
mike4_ has joined #ruby
yasushi has joined #ruby
<peterhellberg> You need a git client later than 1.6.6
yhyubub has left #ruby [#ruby]
<cloud|droid> apt-get update will just update the packages, that can be installed!
andrewhl has quit [Remote host closed the connection]
<vectorshelve> peterhellberg: yes I am updating git now let me check
<vectorshelve> peterhellberg: nows its git --version git version 1.7.0.4
<vectorshelve> peterhellberg: now 1.7.11.3
<peterhellberg> vectorshelve: That is still quite old, but it will probably work fine
<peterhellberg> Ah, that on the other hand
<peterhellberg> :)
mohits has quit [Ping timeout: 265 seconds]
Ethan has quit [Ping timeout: 268 seconds]
<vectorshelve> peterhellberg: and why doesnt github have an option to uplead files initially while creating a repo /
aezop has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 240 seconds]
tiripamwe has quit [Ping timeout: 245 seconds]
<peterhellberg> ?
<peterhellberg> They do support initial repo creation (README.md + .gitignore)
chimkan has quit [Quit: chimkan]
nXqd has quit [Ping timeout: 240 seconds]
Ethan has joined #ruby
adeponte has joined #ruby
tiripamwe has joined #ruby
Jotade11 has joined #ruby
<Jotade11> Sorry to bother, but would someone build an Github-hosted app for me? My Ruby refuses to work for some reason.
<peterhellberg> Is it a problem to create a local repo with the files and then push them to the empty repo on GitHub?
<peterhellberg> Jotade11: Build as in pushing to a repo hooked up to GitHub-pages?
<Mon_Ouie> peterhellberg: Why would it be a problem?
<Mon_Ouie> There can't be any conflict when you push to an empty repo
<peterhellberg> Mon_Ouie: I don’t know, I was wondering since vectorshelve wanted to upload files while creating a repo
<Mon_Ouie> Oh
Foxhoundz has joined #ruby
Araxia has joined #ruby
yxhuvud has joined #ruby
ChampS666 has joined #ruby
tiripamwe has quit [Ping timeout: 268 seconds]
noyb has joined #ruby
cloud|droid has quit [Remote host closed the connection]
tiripamwe has joined #ruby
Eldariof-ru has joined #ruby
savage- has quit [Remote host closed the connection]
krusty_ar has quit [Ping timeout: 245 seconds]
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
n_blownapart has quit [Remote host closed the connection]
Clooth has quit [Quit: Screw you guys, I'm going home!]
ipoval has quit [Quit: ipoval]
dhruvasagar has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
d3vic3 has quit [Ping timeout: 276 seconds]
d3vic3 has joined #ruby
chriskk has joined #ruby
ryanf has quit [Ping timeout: 244 seconds]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
ParadoxQuine has quit [Quit: ParadoxQuine]
arkiver has joined #ruby
sailias has quit [Ping timeout: 276 seconds]
<vectorshelve> Mon_Ouie: I am not able to push.. dont know why... :( I updated git as well
mockra has quit [Ping timeout: 260 seconds]
cloud|droid has joined #ruby
rubious has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
flint__ has quit [Read error: Connection reset by peer]
<vectorshelve> Mon_Ouie: peterhellberg : help me with this thanks http://pastie.org/4448036
<Mon_Ouie> The grid is self, that's the point
<vectorshelve> Mon_Ouie: so u mean its correct ?
<Mon_Ouie> Yes
stephenjudkins has joined #ruby
<vectorshelve> Mon_Ouie: so it is like grid.cells is an array itself ? :-/
<Mon_Ouie> What do you mean?
<vectorshelve> Mon_Ouie: see in the method, I am not passing grid so how would it iterate through each cell just like that since grid has the array of cells
<Mon_Ouie> The grid is the receiver of the method, a.k.a self
<vectorshelve> Mon_Ouie: hmm so the method is inside grid class :)
g_rotbart has quit [Remote host closed the connection]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nari has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby
zeromodulus has joined #ruby
nXqd has joined #ruby
<vectorshelve> Mon_Ouie: I am getting `block in find_live_neighbouring_cells': undefined method `[]' for Grid:Class (NoMethodError) line 32 http://pastie.org/4448036
Guest5694 has quit [Read error: Connection reset by peer]
<vectorshelve> peterhellberg: ^^ mate
<peterhellberg> vectorshelve: each_with_object([])
<vectorshelve> peterhellberg: still same error
<vectorshelve> peterhellberg: `or rather ({})
<bnagy> oh joy, vectorshelve has an assignment due and can't work out how to use the code someone gave him
<bnagy> again
<bnagy> next 3 days will be so much fun
<peterhellberg> :)
sqlbyme has joined #ruby
<vectorshelve> test_cell = self[cell.x + offset_x, cell.y + offset_y] this is wrong. actually I have array of cells in grid so grid.cells.class is array and cell.x and cell.y are the x and y cordinates of cell
<vectorshelve> bnagy: :) I am just 15 years old
flint__ has joined #ruby
dr_bob has joined #ruby
adeponte has quit [Remote host closed the connection]
<bnagy> it's hard to see how the error message could be clearer
mockra has joined #ruby
<bnagy> there is no [] method in grid
<bnagy> you're calling self[]
carloshh has joined #ruby
Foxhoundz has quit [Read error: Connection reset by peer]
maletor has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<vectorshelve> bnagy: yes thats what I want to correct and i am trying to find a cell from the array of cells in grid which has the coordinates matching cell.x + offset_x, cell.y + offset_y
<bnagy> so correct it
mockra has quit [Ping timeout: 252 seconds]
kawaguchi has joined #ruby
<bnagy> your logic is also screwed btw, you're going to go out of bounds on all the edges and corners
d3vic3 has quit [Read error: No route to host]
<bnagy> imho you should have just ported the link peterhellberg gave you yesterday
<bnagy> cofeescript is so close to valid ruby syntax it's not even funny
nari has joined #ruby
<davidcelis> lol coffeescript
maesbn has joined #ruby
<bnagy> who cares what it's in, it was a trivially ported GoL implementation, and it was complete
<bnagy> and explained
sspiff has joined #ruby
<bnagy> step by fricking step
kaneda has joined #ruby
naquad has quit [Ping timeout: 240 seconds]
kaneda is now known as Guest85391
d3vic3 has joined #ruby
ryanf has quit [Quit: leaving]
cloud|droid has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
tiripamwe has quit [Read error: No route to host]
elhu has joined #ruby
mohits has joined #ruby
tiripamwe has joined #ruby
apeiros_ has joined #ruby
kawaguchi has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
Eldariof-ru has quit []
workmad3 has joined #ruby
kawaguchi has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
naquad has joined #ruby
charliesome has joined #ruby
gilead has joined #ruby
ChampS666 has quit [Ping timeout: 268 seconds]
darren has quit [Remote host closed the connection]
specialGuest has joined #ruby
kawaguchi has quit [Ping timeout: 268 seconds]
becomingGuru has joined #ruby
rakunHo has quit [Remote host closed the connection]
g_rotbart has joined #ruby
mfridh has joined #ruby
npn47 has joined #ruby
gmci has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
g_rotbart has quit [Remote host closed the connection]
jeff_sebring has quit [Quit: Leaving]
stephenjudkins has quit [Quit: stephenjudkins]
Markvilla has joined #ruby
dhruvasagar has joined #ruby
alvaro_o has quit [Ping timeout: 246 seconds]
replore_ has quit [Remote host closed the connection]
noyb has quit [Quit: Leaving.]
sqlbyme has quit [Quit: Leaving.]
npn47 has quit [Quit: Page closed]
ntfox has joined #ruby
rutkla has joined #ruby
lolmaus has joined #ruby
kawaguchi has joined #ruby
elhu has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
peterhellberg has quit [Remote host closed the connection]
mockra has joined #ruby
apeschel has joined #ruby
Rochefort has joined #ruby
dekroning has joined #ruby
<dekroning> good morning all
nari has quit [Ping timeout: 248 seconds]
jprovazn has joined #ruby
alvaro_o has joined #ruby
thomas is now known as \irc
chichou has joined #ruby
EricKamsky has quit [Quit: EricKamsky]
carloshh has quit []
EricKamsky has joined #ruby
lolsuper_ has joined #ruby
mockra has quit [Ping timeout: 244 seconds]
lolsuper_ is now known as veer
veer is now known as veeer
veeer has left #ruby [#ruby]
ly_gs has joined #ruby
dpk has joined #ruby
ly_gs has quit [Remote host closed the connection]
dpk has quit [Client Quit]
Guest74974 has joined #ruby
carloshh has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
eldariof has joined #ruby
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby
IPGlider has joined #ruby
thone has joined #ruby
Rajesh has joined #ruby
clocKwize has joined #ruby
Rajesh is now known as Guest75996
arturaz has joined #ruby
virunga has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
kawaguchi has quit [Ping timeout: 245 seconds]
_jorge has quit [Remote host closed the connection]
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
thone_ has quit [Ping timeout: 252 seconds]
lxsameer has left #ruby [#ruby]
ephemerian has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
Rochefortes has joined #ruby
mike4_ has quit [Remote host closed the connection]
specialGuest has quit [Quit: WeeChat 0.3.8]
Rochefort has quit [Ping timeout: 260 seconds]
Guest75996 has quit [Read error: Connection reset by peer]
rubious has quit [Quit: Leaving...]
tommyvyo has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
specialGuest has joined #ruby
bluOxigen has joined #ruby
hoelzro|away is now known as hoelzro
Eiam has quit [Ping timeout: 245 seconds]
rutkla has quit [Read error: Connection reset by peer]
TPFC-SYSTEM has joined #ruby
Jck_true has joined #ruby
xorigin has joined #ruby
rutkla has joined #ruby
workmad3 has joined #ruby
carloshh has quit []
arkiver has quit [Ping timeout: 265 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
kawaguchi has joined #ruby
kawaguchi has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
Vert has joined #ruby
klip has joined #ruby
ryanf has quit [Quit: leaving]
macer1 has joined #ruby
dhruvasagar has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
fastred has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
ringotwo has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
arkiver has joined #ruby
carloshh has joined #ruby
cid404 has quit [Ping timeout: 252 seconds]
Araxia has quit [Quit: Araxia]
zetesha has joined #ruby
mockra has joined #ruby
zetesha has quit [Client Quit]
baphled has joined #ruby
piotr_ has joined #ruby
Criztian has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
specialGuest has quit [Ping timeout: 276 seconds]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
tommyvyo has quit [Quit: Computer has gone to sleep.]
himsin has quit [Remote host closed the connection]
tiripamwe has quit [Read error: Connection timed out]
[Neurotic] has quit [Quit: Leaving]
ringotwo has quit [Remote host closed the connection]
tiripamwe has joined #ruby
becomingGuru1 has joined #ruby
heftig_ has joined #ruby
heftig has quit [Quit: Reconnecting]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
heftig_ is now known as heftig
becomingGuru has quit [Ping timeout: 248 seconds]
jdiez has quit [Ping timeout: 248 seconds]
mattp_ has quit [Ping timeout: 248 seconds]
mattp_ has joined #ruby
a_a_g has joined #ruby
Rajesh has joined #ruby
Rajesh has quit [Max SendQ exceeded]
Rajesh has joined #ruby
jgrevich has quit [Quit: jgrevich]
fortytwo_de has joined #ruby
Rajesh is now known as Guest52726
ph^ has joined #ruby
workmad3 has joined #ruby
cezar has joined #ruby
cezar has quit [Client Quit]
TPFC-SYSTEM has joined #ruby
dtribble has quit [Ping timeout: 240 seconds]
lkba has quit [Quit: Bye]
Synthead has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
carloshh has quit []
clocKwize has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
krz has quit [Quit: krz]
tiripamwe has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
blacktulip has joined #ruby
imami|afk is now known as banseljaj
revhwar has joined #ruby
clocKwize has joined #ruby
kyb3r has joined #ruby
gmci has joined #ruby
specialGuest has joined #ruby
tiripamwe has quit [Read error: Connection timed out]
ly_gs has joined #ruby
davidpk has joined #ruby
Guest52726 has quit [Ping timeout: 252 seconds]
revhwar has quit [Ping timeout: 265 seconds]
tiripamwe has joined #ruby
ly_gs has quit [Remote host closed the connection]
Jotade11 has quit [Quit: Leaving...]
Jotade11 has joined #ruby
gavit has joined #ruby
<gavit> moin
Jotade11 has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
Jotade11 has joined #ruby
chussenot has joined #ruby
Jotade11 has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
tiripamwe has quit [Ping timeout: 252 seconds]
Ethan has quit [Ping timeout: 276 seconds]
tiripamwe has joined #ruby
qwerxy has joined #ruby
akem has quit [Ping timeout: 276 seconds]
mockra has joined #ruby
whack has left #ruby [#ruby]
macer1 has quit [Ping timeout: 252 seconds]
berserkr has joined #ruby
tiripamwe has quit [Quit: Leaving]
<Gadgetoid> Yahhr!
<Gadgetoid> Are the guys behind getstat here? :D
tatsuya_o has joined #ruby
rouss has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
flype has joined #ruby
davidpk is now known as dpj
dpj is now known as dpk
kartouch has quit [Quit: ZNC - http://znc.sourceforge.net]
pipopopo has quit [Quit: ZNC - http://znc.sourceforge.net]
kartouch has joined #ruby
chussenot has quit [Quit: chussenot]
Ethan has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
robozahn has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
tiripamwe has joined #ruby
dhruvasagar has joined #ruby
arietis has joined #ruby
specialGuest has quit [Quit: WeeChat 0.3.8]
specialGuest has joined #ruby
pzol has left #ruby ["Sayonara!"]
S1kx has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
fantazo has quit [Remote host closed the connection]
emmanuelux has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
emmanuel__ has joined #ruby
Rochefortes has quit [Remote host closed the connection]
ly_gs has joined #ruby
lxsameer has left #ruby [#ruby]
dhruvasagar has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Ping timeout: 272 seconds]
tonini has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
pskosinski has joined #ruby
<shevy> what is getstat
<Gadgetoid> shevy: a keyword ranking tracking tool
dhruvasagar has quit [Ping timeout: 245 seconds]
s1n4 has joined #ruby
<vectorshelve> shevy: File::Stat encapsulate common status information for File objects
s1n4 has quit [Client Quit]
burgestrand has quit [Quit: Leaving.]
apeschel has quit [Ping timeout: 276 seconds]
<shevy> I know what is File::Stat but not getstat
<shevy> I bought a violin! now I realize, a piano is much easier to play...
cloud|droid has joined #ruby
dhruvasagar has joined #ruby
virunga has quit [Read error: Connection reset by peer]
rouss has quit []
GreenGorilla has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
specialGuest has quit [Ping timeout: 276 seconds]
joephelius has quit [Ping timeout: 244 seconds]
nilg has joined #ruby
<vectorshelve> shevy: trust me violin is magic :)
<vectorshelve> shevy: I am eager to learn guitar and play it someday as effrortlessly as him -> http://www.youtube.com/watch?v=pZBVBerH_pI
nohonor has quit [Quit: Leaving]
<shevy> well I would think that guitar is easier than violin too
<shevy> piano is still much easier than both
<shevy> I guess you can only learn violin when you are young
<chiel> vectorshelve: that's pretty epic. :D
<gavit> shevy, a violin is hard yes :)
<vectorshelve> chiel: not pretty dude... mighty big :D
Tomasso has joined #ruby
<chiel> also amazingly guitarist
<vectorshelve> gavit: but the best once you get the hold
<vectorshelve> chiel: will listen.. :)
<chiel> he plays 3 things at the same time
<chiel> bass, melody, and solo
<chiel> it blows my mind
<vectorshelve> is it true that guitar can be self learned.. I dont think so
<chiel> all that... while singing
<chiel> it's not fair, he should share some skill
<shevy> vectorshelve it is, kind of. a friend learned the guitar 4 years ago. he got a few lessons initially though
<chiel> I learned bass guitar by myself, but according to some people bass is easier.. :p
<vectorshelve> shevy: yes the initial lesssons are mandatory...the video I shared above.. he must have been playing it for so many years now day in and day out for that kind of a skill :) amazing i am jelous
burgestrand has joined #ruby
guns has joined #ruby
yasushi has joined #ruby
<shevy> hehe
<shevy> I am going to only play four seasons from vivaldi and nothing else, no matter how many decades it'll take
<vectorshelve> shevy: ur a guitarist in ruby :) and apparently I got the method working :) and I am almost at the verge of completing gol :)
<vectorshelve> shevy: that man would be crazy abt ur ruby enumberable skills.. so am I :D so many methods and tactics :D
<shevy> ah
<shevy> I am making a break with ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<chiel> vectorshelve: actually slightly prefer this version http://www.youtube.com/watch?v=naAWX6OsHVI
<chiel> but yeah, same thing essentially. :D
niklasb has joined #ruby
fermion has joined #ruby
<vectorshelve> chiel: I am coding please.. dont let my mind blow off :D
<vectorshelve> nice one
<vectorshelve> shevy: why so ?
<shevy> vectorshelve dunno. it kinda eats a lot of time
<vectorshelve> shevy: I am doing two gems this weekend.. do use it and promote them :)
<shevy> hehe
joephelius has joined #ruby
<vectorshelve> shevy: thanks
<chiel> vectorshelve: lol :p
<vectorshelve> chiel: :) I am exited sine they are my first ruby babies.. and I wanted to make a gem which serves some purpose and makes sense even if its small.. so after quite thinking I got it :)
iori has quit [Remote host closed the connection]
<vectorshelve> shevy: why am I not able to push my code to github :( wierd...
<shevy> small gems are a lot easier than large ones
Ethan has quit [Ping timeout: 252 seconds]
<vectorshelve> shevy: whats important is the use case it serves
<chiel> vectorshelve: nah I was saying lol to the not blowing your mind off :p
<chiel> contributing to open source is epic :)
<vectorshelve> chiel: :)
lkba has joined #ruby
cid404 has joined #ruby
cloud|droid has quit [Ping timeout: 260 seconds]
Stalkr_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
mockra has joined #ruby
* Muz shakes his head, of course you can learn to play the guitar yourself.
dhruvasagar has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
gokul has joined #ruby
IPGlider has quit []
<vectorshelve> Muz: :)
jjang has quit [Remote host closed the connection]
Michael has joined #ruby
mengu has joined #ruby
Michael is now known as Guest50346
Guest50346 is now known as meskyanichi
RegEchse has joined #ruby
clocKwize has quit [Quit: clocKwize]
tcopp has joined #ruby
burgestrand has joined #ruby
vlad_starkov has joined #ruby
liluo has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby
emmanuel__ has quit [Ping timeout: 276 seconds]
yasushi has quit [Remote host closed the connection]
ShiintoRyuu has joined #ruby
yasushi has joined #ruby
yasushi has quit [Ping timeout: 244 seconds]
burgestrand has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
Foxandxss has joined #ruby
jillsmitt has quit [Remote host closed the connection]
MissionCritical has joined #ruby
arvidkahl has quit [Read error: Connection timed out]
<banseljaj> Anybody home? I have question relating to haml and sinatra and ruby
<Muz> Just ask your question, rather than wasting time and asking to ask. If people can help, they will.
dhruvasagar has quit [Read error: Connection reset by peer]
<banseljaj> Muz: It looked empty. Anyways, I want to display a variable in a haml template and the said variable is defined in my sinatea app.rb.
jonahR has joined #ruby
<banseljaj> I used interpolation an d#{h variable} but that just raises an error
ly_gs has quit [Remote host closed the connection]
clocKwize has joined #ruby
burgestrand has joined #ruby
Freddie has joined #ruby
gmci has joined #ruby
arvidkahl has joined #ruby
zemanel has joined #ruby
punkrawkR has quit [Ping timeout: 240 seconds]
punkrawkR has joined #ruby
Freddie has quit [Ping timeout: 244 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
Rochefort has joined #ruby
carloshh has joined #ruby
Rochefortes has joined #ruby
ly_gs has joined #ruby
hoolter has joined #ruby
<hoolter> hi, i'm on winXP and gem isn't being recognized as a command by cmd.exe. any help?
Lachryma has joined #ruby
<apeiros_> hoolter: not using windows, but you probably have either a) not set up your PATH correctly or b) not installed rubygems.
<banseljaj> hoolter: I have used on winxp. Just set up your path. I assume you are using rubyinstaller?
ly_gs has quit [Remote host closed the connection]
virunga has joined #ruby
<hoolter> banseljaj: correct.
Rochefort has quit [Ping timeout: 276 seconds]
guns has quit [Quit: guns]
<banseljaj> hoolter: check your PATH.
pzol has joined #ruby
tk_ has joined #ruby
dpk has joined #ruby
<hoolter> banseljaj: i checked the "put ruby in PATH" box in the installer.
justsee has joined #ruby
<banseljaj> So check the path variable. see if it includes the installation path.
<banseljaj> or uninstall and reinstall
eikko has joined #ruby
<hoolter> banseljaj: couldn't i just manually modify the PATH?
<banseljaj> If you can do it, then that is indeed better.
Criztian has quit [Remote host closed the connection]
arvidkahl has quit [Read error: Connection timed out]
ly_gs has joined #ruby
arvidkahl has joined #ruby
s1n4 has joined #ruby
mockra has joined #ruby
chimkan_ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
kyb3r has quit []
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tcopp has quit [Quit: Lost terminal]
mockra has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: jonahR]
wereHamster has quit [Quit: Lost terminal]
danielpunt has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
wereHamster has joined #ruby
ctp has joined #ruby
dpk has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
fortytwo_de is now known as jdiez
carloshh has quit []
s1n4 has quit [Quit: leaving]
<Muz> hoolter: you can, right click My Computer > Properties > Advanced > SYstem Environment Variables or something similar to that.
<Muz> To view your PATH variable, `echo %PATH%` on the commandline.
<Muz> When using the windows installer, it gives a Start Menu item of "Command Line with Ruby" iirc which has the PATH edited appropriately.
d3vic3 has quit [Quit: leaving]
gheegh has quit [Ping timeout: 244 seconds]
lkba has quit [Quit: Bye]
vlad_starkov has quit [Remote host closed the connection]
hoolter has left #ruby [#ruby]
stoffus has joined #ruby
adeponte has joined #ruby
uris has joined #ruby
cakehero has joined #ruby
wereHamster has quit [Quit: Lost terminal]
wereHamster has joined #ruby
gheegh has joined #ruby
monkegjinni has joined #ruby
a_a_g has quit [Quit: Leaving.]
`brendan has joined #ruby
jonathanwallace has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
gheegh has quit [Quit: is out]
krusty_ar has joined #ruby
mmokrysz has joined #ruby
mmokrysz has left #ruby [#ruby]
geekbri has joined #ruby
carloshh has joined #ruby
jrajav has joined #ruby
otters has joined #ruby
workmad3 is now known as wm3|lunch
d3vic3 has joined #ruby
carloshh has quit []
Chryson has quit [Quit: Leaving]
kvirani has joined #ruby
grulf has joined #ruby
Markvilla has quit [Ping timeout: 244 seconds]
lledet has joined #ruby
ly_gs has quit [Remote host closed the connection]
sendoushi has joined #ruby
ly_gs has joined #ruby
carloshh has joined #ruby
nateberkopec has joined #ruby
al2o3cr has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
bananastalktome has joined #ruby
andrewhl has joined #ruby
mockra has joined #ruby
sailias has joined #ruby
nanderoo has joined #ruby
lledet has quit [Quit: lledet]
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
paval has joined #ruby
Stalkr_ has joined #ruby
banseljaj is now known as imami|afk
gmci has joined #ruby
emmanuel__ has joined #ruby
Rochefort has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
`brendan has quit [Read error: Connection reset by peer]
`brendan has joined #ruby
MarioEIU has joined #ruby
mbuf has joined #ruby
ryannielson has joined #ruby
Rochefortes has quit [Ping timeout: 260 seconds]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
<mbuf> do I need to set any PATH to be able to use gems installed through 'sudo gem install gemname'? already did require 'rubygems' on Fedora (x86_64)
berserkr has quit [Quit: Leaving.]
<apeiros_> no. PATH is not used by ruby to determine the location of libs & gems
<mbuf> apeiros_: I am getting 'no such file to load -- ruby-bugzilla (LoadError)'
<apeiros_> mbuf: gemname and require don't have to be the same
<apeiros_> you require a file
<vectorshelve> How can the output be this for the given input in game of life http://pastie.org/4449470 ?
<apeiros_> in this case, probably require 'bugzilla', but consult your gem's docs
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
<jrajav> Okay what the hell.
<jrajav> Why can process spawn not run ruby -e
<jrajav> Process#spawn I mean
<jrajav> No matter how I try to run it I constantly get a "No such file or directory" error
Rochefortes has joined #ruby
<mbuf> apeiros_: https://github.com/tagoh/ruby-bugzilla/blob/master/ruby-bugzilla.gemspec, the gem spec file says s.name as 'ruby-bugzilla'
<jrajav> As if it's trying to find the string argument to ruby -e as a file
carloslopes has joined #ruby
Rochefort has quit [Ping timeout: 246 seconds]
<apeiros_> mbuf: again, that's the *gemname*
<mbuf> apeiros_: ohh!
<apeiros_> you do not require gems. you require files *from* the gem
Rochefort has joined #ruby
<apeiros_> often the gem's name will be identical to some kind of "hub"-file, which you can require
<hoelzro> jrajav: how are you invoking ruby?
<apeiros_> but it doesn't have to be
<lupine_85> Process::spawn("ruby", "-e", "puts 'hi'")
<lupine_85> WFM, YMMV, etc
<jrajav> With popen3
<jrajav> "sudo -u jrajav ruby -e ' … the inner script … '"
<apeiros_> mbuf: https://github.com/tagoh/ruby-bugzilla/tree/master/lib - anything in here that is a file you can require. as it seems you can't require 'bugzilla' either (because it's a dir, not a file)
<apeiros_> IMO a bit weak…
<jrajav> I'm about to try it with an array of arguments instead of one long string
<hoelzro> jrajav: you probably need -- or something if you're using sudo
<hoelzro> but I don't know
<jrajav> hoelzro: The same command line worked fine in shell
<apeiros_> mbuf: seems you want require 'bugzilla/bugzilla'
<hoelzro> and you're invoking the command as a single string?
<jrajav> hoelzro: Would it be different with Process#spawn?
<hoelzro> that's probably not a good idea
<mbuf> apeiros_: thanks!
<mbuf> apeiros_: that worked
pandersen has joined #ruby
<jrajav> I'll be damned
<jrajav> Array arguments works fine
<jrajav> Process#spawn doesn't like contiguous strings I guess
<jrajav> >_>
s1n4 has joined #ruby
jonathanwallace has joined #ruby
odinswand has joined #ruby
odinswand is now known as popobop
Rochefortes has quit [Ping timeout: 276 seconds]
Abbas5 is now known as Abbas|
tommyvyo has joined #ruby
virunga has quit [Quit: Sto andando via]
andrewhl has quit [Remote host closed the connection]
mike4_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
pl_ab has joined #ruby
iamjarvo has joined #ruby
whicling has joined #ruby
becomingGuru1 has quit [Quit: Leaving.]
mbuf has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
becomingGuru has joined #ruby
mrmist has quit [Quit: leaving]
andrewhl has joined #ruby
mike4_ has quit [Ping timeout: 276 seconds]
al2o3cr has joined #ruby
<jrajav> Okay, bot's back
<jrajav> Now with 100% less temporary files! :D
<Mon_Ouie> >> 3
<al2o3cr> (Fixnum) 3
<jrajav> Because scalability was TOTALLY a problem :P
<Muz> >> require 'tmpdir'; (1..100000000000).each { |i| Dir.mktmpdir(i.to_s) }
whicling is now known as mike4_
<jrajav> Nice one :P
poga has joined #ruby
<al2o3cr> exit status: pid 4640 exit 137
<Muz> Boom.
<jrajav> You still didn't break anything :P
<heftig> did you remove fork?
<jrajav> Muz: All clean
<jrajav> :)
<jrajav> heftig: Nope. I *did*, however, set one or two more resource limits
<jrajav> heftig: As of now you can only use 2 seconds cpu time, you can only write 10mb of files, and you can only have 2 processes running at once
<heftig> >> while true; Process.fork; end
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4663 exit 1
<jrajav> So you can fork once
<jrajav> But that's it
Musok has joined #ruby
<heftig> >> foo = proc { while true; Thread.start(&foo); end; }; foo.()
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 4677 exit 1
<jrajav> I figured there wouldn't be a use case for forking more than once, but just once might be useful for demonstration
paval has quit [Quit: Leaving]
cloud|droid has joined #ruby
cloud|droid has quit [Client Quit]
sendoushi has quit [Ping timeout: 240 seconds]
<jrajav> (That and it turns out you don't have to fork very many times at all to blow things up)
cloud|droid has joined #ruby
<apeiros_> jrajav: the code for that sandbox public? does it require actions taken on the OS itself or are all limitations done with ruby?
<heftig> >> File.read("/dev/random")
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 4696 exit 1
<jrajav> apeiros_: The resource limits are done with Ruby, set in Process#spawn, you can see the rlimit_ options yourself in the docs
mrmist has joined #ruby
<heftig> >> RUBY_PLATFORM
<al2o3cr> (String) "x86_64-linux"
<jrajav> apeiros_: Another level of security is provided by a very minimal chroot, and the fact that the interpreter is run as an unprivileged user
<apeiros_> jrajav: ah, I should probably finally go and read Process::spawn's docs
<apeiros_> jrajav: nice
<jrajav> The user that the script is running as can do just about anything except affect existing files in the chroot like the ruby binary, /lib… all those things are owned by root
bothra has joined #ruby
<jrajav> The user also can't exit the chroot of course
<apeiros_> so no ruby sandbox anymore?
<jrajav> Nope, none
<apeiros_> very nice
<apeiros_> and you pass the code as stdin to ruby?
<jrajav> By the way, experimenters, if you can't find any Linux binaries you expect, or anything in /proc, /dev, etc...
<jrajav> That's because they're not there at all
<jrajav> ;D
mrmist has quit [Changing host]
mrmist has joined #ruby
<jrajav> apeiros_: Yes
<jrajav> apeiros_: I can upload the code to git right now if you want
<jrajav> github I mean
cloud|droid has quit [Client Quit]
<apeiros_> no hurry :)
<apeiros_> I won't get around to work on my bot for months I guess…
<jrajav> If you're curious I used cinch
<apeiros_> but I'd love to get it to work again
fascik has joined #ruby
<jrajav> It was pretty simple
<heftig> >> require 'open-uri'; open("http://www.ruby-lang.org").read[/<title>.*<\/title>/]
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 4732 exit 1
<apeiros_> well, I wrote butler. was there long before cinch :)
fastred has quit [Read error: Connection reset by peer]
fascik is now known as fastred
<jrajav> The bot is 41 lines of code
<heftig> no network either, i see
<vectorshelve> carloslopes: hi dude
<jrajav> heftig: There is network. Apparently there's no open-uri? :X
<apeiros_> but at the moment, cinch is clearly the better choice (simply because butler is not 1.9 ready and is in an unmaintained state)
<jrajav> heftig: I had assumed that would be in the Ruby libs
<heftig> jrajav: getaddrinfo fails
<jrajav> Huh. Maybe my 'jrajav' user doesn't have the right perms
<jrajav> Let me try ping
<heftig> >> system("echo 1")
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4751 exit 1
bwlang has joined #ruby
<jrajav> No 'echo' binary either
<jrajav> In fact no binaries at all except for sudo and ruby
<heftig> it's a shell builtin
<carloslopes> vectorshelve: hi man!
<heftig> >> Process.fork { }
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4764 exit 1
dpk has quit [Quit: Asleep at the keyboard.]
<_axx> blist
<jrajav> heftig: Try a straight IP btw, it might be a DNS issue
<heftig> jrajav: forking needs at least four processes, as every ruby instance has two threads
<jrajav> heftig: Maybe my user doesn't have access to resolv.conf
<heftig> >> File.read("/etc/resolv.conf")
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 4772 exit 1
<heftig> yep, EACCESS
<heftig> >> File.read("/etc/hosts")
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 4780 exit 1
<apeiros_> ah, now I get the "PMed"…
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<jrajav> That's weird. resolv.conf is world-readable
<heftig> >> Dir.glob("/*")
<al2o3cr> (Array) ["/usr", "/bot.rb", "/root", "/bin", "/lib", "/etc", "/foo", "/lost+found"]
<jrajav> Oh. no it isn't. lol
<heftig> >> Dir.glob("/etc/*")
<al2o3cr> (Array) ["/etc/resolv.conf", "/etc/ld.so.cache", "/etc/pam.d", "/etc/sudoers", "/etc/group", "/etc/passwd", "/etc/nsswitch.conf"]
<heftig> >> Dir.glob("/dev")
<al2o3cr> (Array) []
<heftig> >> Dir.glob("/.*")
<al2o3cr> (Array) ["/.", "/.."]
Spooner has joined #ruby
<heftig> jrajav: what kind of container is this?
<jrajav> A chroot
emmanuel__ has quit [Ping timeout: 245 seconds]
<heftig> no /dev, /sys or /proc?
<gogiel> >> exit
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4829 exit 1
<jrajav> Nope
<jrajav> I could add them if it's necessary for something
<jrajav> But it wasn't just to run Ruby
<jrajav> Try reading resolv.conf again
<jrajav> Or getaddrinfo
<heftig> >> require 'open-uri'; open("http://www.ruby-lang.org").read[/<title>.*<\/title>/]
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4839 exit 1
<heftig> ouch, guess that forks?
<heftig> >> require 'open-uri'; open("http://www.ruby-lang.org").read[/<title>.*<\/title>/]
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4844 exit 1
<heftig> hrm.
<jrajav> Okay, well. I could set the process limit to 4
<jrajav> But I'm pretty sure that fails somehow
<jrajav> Or, I mean, opens the door to forkbombing
<gogiel> >> def f
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4850 exit 1
<heftig> >> 3
<al2o3cr> stderr:
<al2o3cr> [FATAL] Failed to create timer thread (errno: 11)
<al2o3cr> exit status: pid 4855 exit 1
<jrajav> ...
<jrajav> wut.
<heftig> is the limit 1 now?
<jrajav> No I didnt' change anything
<jrajav> Now I will
al2o3cr has quit [Remote host closed the connection]
al2o3cr has joined #ruby
<jrajav> Limit is 4 now
<jrajav> But I'm pretty sure.......
<jrajav> >> while true; Process.fork end
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 4870 exit 1
<jrajav> >> 1 + 3
<al2o3cr> (Fixnum) 4
<heftig> >> require 'open-uri'; open("http://www.ruby-lang.org").read[/<title>.*<\/title>/]
<jrajav> Oh.
<al2o3cr> exit status: pid 5033 exit 153
<jrajav> Wow, my first one is still running
<jrajav> the process.fork
<apeiros_> heftig: open(url, &:read), better practice.
<apeiros_> former can leave filehandles open
<apeiros_> (don't know how it is with open-uri, though)
<heftig> >> require 'open-uri'; open("http://www.ruby-lang.org", &:read)[/<title>.*<\/title>/]
<al2o3cr> exit status: pid 5039 exit 153
<heftig> 153 is file too big?
<apeiros_> (and yes, probably unrelated to the error :-))
al2o3cr has quit [Remote host closed the connection]
bananastalktome has quit [Quit: bananastalktome]
al2o3cr has joined #ruby
<apeiros_> probably takes too much time
<jrajav> Okay, so…. my first script keeps running forever. It forks approximately once every 2 seconds … exactly equal to the cpu time resource limit
<apeiros_> hm, well, actually you said CPU time…
deryl has joined #ruby
<jrajav> So apparently Process#spawn is getting confused and resetting that limit for each new process
sailias has quit [Ping timeout: 276 seconds]
<jrajav> I would have expected it to kill ALL the child processes after 2 seconds
<apeiros_> # => 0.010000 0.000000 0.010000 ( 1.859216)
g_rotbart has joined #ruby
<Mon_Ouie> IIRC OpenURI sometimes uses Tempfile, which do need to be closed properly
g_rotbart has quit [Remote host closed the connection]
Lachryma has quit [Quit: Leaving]
<heftig> jrajav: i think RLIMIT_FSIZE is too small
<jrajav> 10mb?
<heftig> hm.
<jrajav> I can remove it to test
<jrajav> Also, do you know of any way I could prevent forkbombing without setting rlimit_nproc to 2?
<heftig> jrajav: no, that's not spawn getting confused. rlimits apply per-process
al2o3cr has quit [Remote host closed the connection]
al2o3cr has joined #ruby
<jrajav> Alright, filesize limit removed for now
<heftig> >> require 'open-uri'; open("http://www.ruby-lang.org", &:read)[/<title>.*<\/title>/]
<jrajav> heftig: So how then?
<al2o3cr> (String) "<title>Ruby Programming Language</title>"
popobop has quit [Ping timeout: 246 seconds]
<jrajav> :D
<heftig> wee
deryl has quit [Client Quit]
miho has joined #ruby
<heftig> jrajav: maybe control groups can help
<jrajav> I'm aware of that, but a little confused about how they work
<jrajav> How would I use that to prevent forkbombing?
<gogiel> >> STDIN.readline
<al2o3cr> stderr too long, PMed
<al2o3cr> exit status: pid 5070 exit 1
<vectorshelve> in the method http://pastie.org/4449593 here line 5 8 and 10 is changing the cells status which is affecting proceeding cells status.. since I am not storing it in a temporary array of cells.. how can I fix this and replace the new array of cells with the previous after the entire iteration is over ?
dhruvasagar has joined #ruby
dpk has joined #ruby
<jrajav> heftig: The only options I see in Process#spawn are for adding new processes to the current group (the default) or making a new one. I don't how to set any controls on those groups, though
hynkle has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has joined #ruby
emmanuel__ has joined #ruby
pu22l3r has joined #ruby
<heftig> jrajav: er, those are posix process groups, which is something different
<heftig> manipulating linux cgroups usually needs root privileges
tobym has quit [Remote host closed the connection]
deryl has joined #ruby
gmci has joined #ruby
flype has joined #ruby
jjbohn has joined #ruby
<heftig> and is done using special filesystems (mount -t cgroup -o memory cgroup /sys/fs/cgroup/memory)
pu22l3r has quit [Remote host closed the connection]
<jrajav> :S
dpk has quit [Ping timeout: 244 seconds]
<jrajav> And then how would I run a process under that cgroup?
<jrajav> And limit it?
<heftig> create a directory under that filesystem (which is a group), set the limits using the files in that directory, then write the PID of the task you want to put into the group into the "tasks" file
tiripamwe has quit [Ping timeout: 252 seconds]
<jrajav> Oh hell
<jrajav> >_>
<heftig> not sure if cgroups can be a help with forkbombs, at least the memory controller provides memory limits
<jrajav> Yeah, memory isn't the issue
<jrajav> And how would this method help anyway .. I can't really get the pid
<heftig> forking gets you the pid
<heftig> don't spawn, fork
<shevy> fork me fork me FORK MEEE
<jrajav> Right, but the forking is done in the scriptlet
<jrajav> Not in *my* script
<heftig> jrajav: how is this run, anyway?
<jrajav> The "outer script" reads in stdin and passes it to eval
<jrajav> The bot then pipes the >> query in to stdin
zz_chrismcg is now known as chrismcg
<heftig> what runs the outer script?
<jrajav> sudo -u jrajav ruby -e
vectorshelve has quit [Quit: Page closed]
<heftig> you could put the bot into the cgroup
yoklov has joined #ruby
<jrajav> heftig: And that would prevent infinite forking?
kvirani has quit [Remote host closed the connection]
<heftig> sigh
<heftig> not, no
<jrajav> By the way, I'm pretty sure that currently 'while true; Process.fork end' actually only has one process running at any one time
<jrajav> But it *does* loop forever
iori has joined #ruby
davidpk has joined #ruby
<hoelzro> jrajav: isn't that a fork bomb?
excelsior has joined #ruby
lkba has joined #ruby
mockra has joined #ruby
<jrajav> Yes; that's the point. I'm trying to figure out how to prevent it
<heftig> at least the cgroup would reduce the impact of the scripts on the rest of the system
<jrajav> I have a cpu time limit of 2 seconds on any scriptlet the bot runs
<jrajav> But this circumvents that
pu22l3r has joined #ruby
<shevy> a super fast bot
davidpk has quit [Client Quit]
nwest has joined #ruby
v0n has joined #ruby
<jrajav> Maybe I should just put a "kill switch" into the bot
<jrajav> That instantly kills all running scripts except the bot's script
<hoelzro> jrajav: I think there's an extension for Linux that forbids certain system calls to certain processes
uris has quit [Quit: leaving]
<jrajav> SELinux?
<hoelzro> not SELinux
<hoelzro> it's a prctl parameter, I think
<hoelzro> seccomp
nopolitica has joined #ruby
<hoelzro> seccomp only allows a very small set, though
<heftig> it allows whatever set you give it
<hoelzro> oh, perfect =)
mockra has quit [Ping timeout: 245 seconds]
<jrajav> Does anyone want to write me a loop that will kill all running Ruby processes except the one that the loop is run in?
<jrajav> :D
<jrajav> Using only system calls, no Linux binaries
<jrajav> Otherwise it'll have to wait till tomorrow
becomingGuru has quit [Quit: Leaving.]
tiripamwe has joined #ruby
al2o3cr has quit [Remote host closed the connection]
al2o3cr has joined #ruby
<shevy> I have a hash like:
<shevy> hash = { :a => 'b', :c => 'd'}
<shevy> anyone knows a simple way to convert all values into Symbols?
<shevy> into:
<shevy> hash = { :a => :b, :c => :d }
jillsmitt has joined #ruby
<shevy> I could iterate via .each_pair and make a new hash but that feels a bit odd
<grulf> maybe if hash.values is an accessor you could iterate over it
<grulf> not sure though
deryl has quit [Quit: deryl]
binaryplease has joined #ruby
cantbecool has joined #ruby
<apeiros_> shevy: h.each_key { |k| h[k] = h[k].to_sym }
<apeiros_> or: h.each { |k,v| h[k] = v.to_sym }
<apeiros_> probably more efficient
a_a_g has joined #ruby
a_a_g has quit [Client Quit]
maesbn has quit [Remote host closed the connection]
a_a_g has joined #ruby
jrist-afk is now known as jrist
jillsmitt has quit [Client Quit]
excelsior has quit [Ping timeout: 268 seconds]
<shevy> ok thanks
karakedi has joined #ruby
gokul has quit [Quit: Leaving]
yoklov has quit [Quit: computer sleeping]
cuci has joined #ruby
excelsior has joined #ruby
deryl has joined #ruby
karakedi has quit [Read error: Connection reset by peer]
<cuci> hi guys! I'm trying to use sequel on an sqlite db but it fails like so: http://dpaste.com/784347/. Any ideas what might be wrong?
fastred has quit [Quit: fastred]
<shevy> ^^^ anyone knows if this exists for ruby too?
a_a_g has quit [Client Quit]
uris has joined #ruby
<hoelzro> I like that name
<shevy> "Import LLVM bitcode directly into Python and use it as an extension module."
<shevy> lol "
<shevy> First, you need some C code. Something important like computing a fibonacci number"
<shevy> hilarious guy
<jrajav> That actually *would* be fairly terrible in Ruby :P
<jrajav> If performance was actually an issue
<shevy> pffft performance
<Spooner> Then write it in Ruby :)
<jrajav> Good attitude shevy ;)
<jrajav> (Really)
<shevy> mruby will crush lua
<shevy> (in 10 years)
<lectrick> What does the 'n' switch at the end of a Regex do?
<jrajav> It still won't be faster than node.js
<jrajav> </troll>
<Muz> cuci: lookslike an encoding issue with the data in your database, and what Ruby thinks strings should be. Tried #encoding: utf-8; and http://sequel.rubyforge.org/rdoc-plugins/classes/Sequel/Plugins/ForceEncoding.html ?
<Mon_Ouie> lectrick: binary encoding
ananthakumaran has quit [Quit: Leaving.]
<hoelzro> shevy: who was talking about Lua? =P
<Mon_Ouie> Check ri Regexp for detailed syntax of Regexps
<shevy> hoelzro the dead
<lectrick> Mon_Ouie: So basically, if it's UTF8 it is not treated as UTF8 but binary data?
<shevy> :)
<shevy> jrajav, javascript will win simply because it has the monopoly in the browsers
<lectrick> my ri does not have the Ruby library... Fail?
<jrajav> That doesn't apply to node.js
<jrajav> And Javascript is genuinely a cool language on its own too
<shevy> depends on what kind of ruby you have lectrick. I think debian ruby by default does not add rdocs, but I am not sure
<Mon_Ouie> You probably need to install it separately
<lectrick> jrajav: Oh now you're REALLY trolling. lol
<jrajav> :D
<shevy> jrajav you argue for javascript right now :)
<lectrick> shevy: MRI 193
<lectrick> shevy: but i installed it via rvm
<apeiros_> jrajav: fibonacci? in ruby? is actually pretty fast. unless you use a crappy recursive algorithm :-)
<shevy> ok but what MRI... debian one? source install? if you compiled it from source, there may be an extra step
<shevy> aha, RVM
<shevy> no idea, sorry
<jrajav> Is it better if I say I use coffeescript? :P
<jrajav> (I don't XD)
<apeiros_> jrajav: note that it is mainly fast because ruby has quite a good bignum implementation
<apeiros_> and for the O(1) implementation it doesn't even matter.
<shevy> jrajav if you recommend coffeescript, you just tell people that javascript's syntax sucks :P
<lectrick> I think execution speed is the most idiotic form of optimization.
infinitiguy has joined #ruby
<hoelzro> apeiros_: O(1) fibonacci?
carloshh has quit []
<apeiros_> hoelzro: there's a formula to calculate the nth number of a fibonacci sequence directly
cantbecool has quit [Quit: Textual IRC Client: www.textualapp.com]
<lectrick> Ruby is "fast enough" to do good work while forcing you to be cognizant of bad algorithms :)
<apeiros_> no need to use the sequence.
<hoelzro> oh, really? that's crazy
<jrajav> lectrick: Um, you mean O() order-of-magnitude optimization? Or all the ridiculously silly "I ran a benchmark durr hurr" optimizations that pop up on blogs every week?
<jrajav> lectrick: If it's the latter I agree
<jrajav> But the former....
<lectrick> jrajav: the latter.
<jrajav> k :P
flip_digits has joined #ruby
Musok is now known as sendoushi
<apeiros_> both (benchmark & big-O) are only meaningful with context. (and sometimes the context proves it to be meaningless)
<jrajav> big-O is still pretty dang useful if the only context restriction is "x86-ish assembly machines"
niklasb has quit [Ping timeout: 245 seconds]
<apeiros_> jrajav: big-O is often meaningless if N is small enough
<apeiros_> it can even be misleading since suddenly a factor or constant overhead becomes more important
<jrajav> Well, yeah; the idea is that you understand the differences for any value of N, not just arbitrarily large
d0ugal has joined #ruby
<jrajav> I guess that's what you meant by context?
<heftig> wee, linear differential equations
<apeiros_> one kind of context, yes
Tomasso has quit [Quit: Leaving]
Potasso has joined #ruby
asobrasil has joined #ruby
<apeiros_> there's others. like providing only execution time big-O and omitting space requirement big-O (or the other way round)
pu22l3r has quit [Remote host closed the connection]
Speed has joined #ruby
lledet has joined #ruby
<apeiros_> an algorithm may have a bad big-O execution time signature but be the right choice simply because you run on a memory restricted system and its memory big-O signature is good
<jrajav> True
tatsuya_o has quit [Remote host closed the connection]
Potasso has quit [Client Quit]
pl_ab has quit [Quit: pl_ab]
<apeiros_> etc., etc., yadda yadda :)
<jrajav> The real point: Comp Sci degrees CAN be useful :P
<apeiros_> yupp
Tomasso has joined #ruby
cakehero has joined #ruby
<burgestrand> Usually the only big-O people need is :O
y2k has joined #ruby
pu22l3r has joined #ruby
deryl has quit [Quit: deryl]
rbanffy has quit [Quit: Ex-Chat]
ly_gs has quit [Remote host closed the connection]
sailias has joined #ruby
<heftig> hoelzro: solving the linear differential equation F(n+2) - F(n+1) - F(n) = 0 with F(0)=0 and F(1)=1 gets you said formula
d0ugal has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jrajav> heftig: Or you could google it
<jrajav> Googling: O(1), Solving linear differential equation: O(haha no)
specialGuest has joined #ruby
ly_gs has joined #ruby
<heftig> hoelzro: which is F(n) = (1/sqrt(5)) * ( ( (1+sqrt(5))/2 )^n - ( (1-sqrt(5))/2 )^n )
<heftig> jrajav: it's not that difficult
wm3|lunch is now known as workmad3
<jrajav> It is if you took Diff Eq many years ago
<jrajav> And actively tried to block the memories
andrewhl has quit [Remote host closed the connection]
deryl has joined #ruby
nopolitica has quit [Quit: Leaving]
internet_user has joined #ruby
andrewhl has joined #ruby
havenn has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
<workmad3> heftig: heh :) interesting how notation can change... my linear differential equation would probably have been F''(n) - F'(n) - F(n) = 0 :)
stopbit has joined #ruby
jillsmitt has joined #ruby
stoffus has quit []
darren_ has joined #ruby
<workmad3> apeiros_: you forgot to point out that an algorithm may also be good because your case is a best case and you have an algorithm that is great in best-case but not in normal or worst case :)
savage- has joined #ruby
<apeiros_> workmad3: that's part of "etc. etc., yadda yadda"
erichmenge has joined #ruby
<apeiros_> but yes, that's yet another reason
<workmad3> apeiros_: I've actually come across a use of bubble sort under than context :D
<apeiros_> lol
vipaca has joined #ruby
vipaca has quit [Changing host]
vipaca has joined #ruby
<heftig> workmad3: that notation spells "derivatives" to me
flint__ has quit [Read error: Connection reset by peer]
<workmad3> heftig: yeah... you were talking about differential equations...
<heftig> as in F'' being the second derivative of F
<apeiros_> workmad3: generally your usage pattern may dictate the algorithm
<apeiros_> e.g. perfect hashing may have a too high overhead for most things
<apeiros_> but if you can precompile the hash and then it's great
<apeiros_> and sometimes all you do is premature optimization anyway and your silly O(n^2) solution is "good enough" (I hate that, though *g")
<workmad3> apeiros_: :)
Emmanuel_Chanel has quit [Quit: Leaving]
<workmad3> apeiros_: my favourite anecdote about premature optimisation was from a team developing an OS
jrajav has quit [Quit: The best darkness is strange and surprising]
burgestrand has quit [Quit: Leaving.]
<workmad3> apeiros_: they spent weeks getting a small bit of code that their profiling spent 80% of processing time in, getting it 8 times faster
<workmad3> apeiros_: overall effect... nothing, it was the idle loop
Markvilla has joined #ruby
<apeiros_> o0
<workmad3> (how even profilers can lead you astray :) )
<heftig> workmad3, ah, I guess I've used the wrong term
<apeiros_> I'd think a coder would recognize the idle loop… also how the hell do you increase the *speed* of the idle loop? does it idle now 8x as much?
<heftig> German it's "Lineare Differenzengleichung", but English is "Linear Recurrence Relation"
<workmad3> heftig: ah, did you just mean a linear equation?
<workmad3> ah, ok :)
<workmad3> apeiros_: that was pretty much it, I believe
Speed has left #ruby ["Leaving channel."]
burgestrand has joined #ruby
<workmad3> apeiros_: and I guess the idle loop was non-obvious... or the anecdote was constructed to make a point
<heftig> that's why wikipedia was confusing me, heh
<workmad3> heftig: :D
rbanffy has joined #ruby
kvirani has joined #ruby
johnlcox has joined #ruby
chimkan_ has quit [Quit: chimkan_]
Hanmac has quit [Quit: Leaving.]
<workmad3> apeiros_: I still find the idea amusing though :)
<apeiros_> I find it unsettling :(
<apeiros_> those guys write our OSes!
<workmad3> oh, did you think that the people writing OSes were more competent than the rest of us?
jonathanwallace has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
andrewhl has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
snearch has joined #ruby
chimkan_ has joined #ruby
andrewhl has joined #ruby
v0n has quit [Remote host closed the connection]
bbttxu has joined #ruby
jlogsdon has joined #ruby
verto|off is now known as verto
snearch has quit [Client Quit]
specialGuest has quit [Quit: WeeChat 0.3.8]
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
burgestrand has quit [Quit: Leaving.]
binaryplease has quit [Ping timeout: 245 seconds]
maxmmurphy has joined #ruby
sendoushi has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
br4ndon has joined #ruby
axl_ has joined #ruby
ananthakumaran has joined #ruby
wmoxam_ has joined #ruby
ShiintoRyuu has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
andrewhl has quit [Remote host closed the connection]
hdzhdgn has quit [Ping timeout: 248 seconds]
<apeiros_> workmad3: no, but right until now I could still hope at least. stop taking my illusions from me!
hynkle has quit []
emmanuel__ has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
beneggett has joined #ruby
miho has quit [Read error: Connection reset by peer]
miho has joined #ruby
elux has joined #ruby
dpk has joined #ruby
flagg0204 has quit [Ping timeout: 268 seconds]
uris_ has joined #ruby
flagg0204 has joined #ruby
jillsmitt_ has joined #ruby
uris has quit [Ping timeout: 268 seconds]
apok has joined #ruby
lolmaus has quit []
apok has quit [Client Quit]
jillsmitt has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
jillsmitt_ is now known as jillsmitt
jillsmitt is now known as jillsmitt_
ckrailo has joined #ruby
jillsmitt_ is now known as jillsmitt__
jillsmitt__ is now known as jillsmitt
<workmad3> apeiros_: it's friday... you'll have forgotten by monday and be back to your old hopeful self :P
dpk has quit [Read error: Connection reset by peer]
axl_ has quit [Read error: Connection reset by peer]
<apeiros_> but I'll spend my whole weekend in misery!!!
elux has quit [Quit: Bye!]
axl_ has joined #ruby
<lorn> Hi, I've a Ruby On Rails project that I need to automated deploy with capistrano, but my project is not on the root of SCM, like foo.git/ they are on foo.git/project/ and all capitrano things run on foo.git/ does anyone know how I set the path to foo.git/project?
cuci has quit [Quit: leaving]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
berserkr has joined #ruby
jonathanwallace has joined #ruby
Araxia has joined #ruby
walle has quit [Quit: Leaving]
bluenemo has quit [Quit: Verlassend]
hdzhdgn has joined #ruby
bluenemo_ has quit [Remote host closed the connection]
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby
bluenemo has joined #ruby
miho has quit [Remote host closed the connection]
cascalheira has joined #ruby
d3vic3 has quit [Quit: leaving]
<arturaz> lorn, #capistrano
d3vic3 has joined #ruby
<lorn> arturaz: thanks
d3vic3 has quit [Client Quit]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
bluenemo_ has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
maxmmurphy has quit [Quit: maxmmurphy]
clop has joined #ruby
sailias has joined #ruby
<clop> is there an idiomatically correct ruby way to have class-specific constants like MyServer.DEFAULT_PORT?
rubious has joined #ruby
flagg0204 has quit [Quit: leaving]
darren_ has quit [Remote host closed the connection]
<Mon_Ouie> Myserver::DEFAULT_PORT
deryl-android has joined #ruby
<Mon_Ouie> And I personally don't like constant names that SHOUT AT ME LIKE I CAN'T SEE THEM
<apeiros_> ^+1
<clop> heh, okay i'll camelcase it or something
supergiantrobot_ has joined #ruby
kuzushi has joined #ruby
dpk has joined #ruby
fbernier has joined #ruby
Progster has joined #ruby
johnlcox_ has joined #ruby
drago757 has joined #ruby
<workmad3> clop: also, that's syntax not idiom
fearoffish has joined #ruby
ly_gs has quit [Remote host closed the connection]
<apeiros_> mhm, MyServer.DEFAULT_PORT would be possible, but it'd be a method (since that's the syntax)
johnlcox has quit [Ping timeout: 252 seconds]
johnlcox_ is now known as johnlcox
rutkla has quit []
savage- has quit [Remote host closed the connection]
SCommette has joined #ruby
gen0cide_ has joined #ruby
justsee has quit [Quit: Leaving...]
<Muz> class MyServer; def self.DEFAULT_PORT; self.const_get("DEFAULT_PORT"); end; end;
daemoen has quit [Ping timeout: 244 seconds]
<Muz> I'm sure that could be made more pointlessly convoluted.
theRoUS has quit [Ping timeout: 260 seconds]
dr_bob has quit []
codeFiend has joined #ruby
CharlieSu has joined #ruby
<CharlieSu> How can I make 1.9.3 my default? I've tried rvm use --default 1.9.3 but when i logout and log back in it doesn't stick..
i0n has joined #ruby
<Muz> CharlieSu: #rvm
r126l has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
piotr_ has quit [Ping timeout: 276 seconds]
rontec76 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fantazo has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
allyraza has joined #ruby
mahmoudimus has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
miho has joined #ruby
Emmanuel_Chanel has joined #ruby
jgarvey has joined #ruby
johnlcox has joined #ruby
ly_gs has joined #ruby
GoGoGarrett has joined #ruby
davidcelis has quit [Quit: K-Lined.]
vlad_starkov has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
axl_ has quit [Read error: Connection reset by peer]
codeFiend has quit [Quit: codeFiend]
axl_ has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
mengu has quit [Quit: Konversation terminated!]
gmci has joined #ruby
jprovazn has quit [Quit: Leaving]
snearch has joined #ruby
havenn has quit [Remote host closed the connection]
GreenGorilla has quit [Quit: Konversation terminated!]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<zii> I've got a race condition(which leads to exception in database code(AR + oci8) because of seperate code and test threads, which share connection. How should I debug it?
supergiantrobot_ has quit [Quit: supergiantrobot_]
gilead has quit [Quit: This computer has gone to sleep]
tiripamwe has quit [Quit: Leaving]
carloshh has joined #ruby
gilead has joined #ruby
tiripamwe has joined #ruby
snearch has quit [Read error: Connection reset by peer]
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
rubious has quit [Quit: Leaving...]
jgrevich has joined #ruby
grulf has quit [Quit: Leaving.]
devdazed has joined #ruby
Rochefortes has joined #ruby
Gurpartap has joined #ruby
bbttxu has quit [Ping timeout: 268 seconds]
vipaca has quit [Read error: Connection reset by peer]
gilead has quit [Ping timeout: 272 seconds]
Rochefortes has quit [Read error: Connection reset by peer]
bbttxu has joined #ruby
Rochefort has quit [Ping timeout: 240 seconds]
Rochefortes has joined #ruby
kyktommy has joined #ruby
ly_gs has quit [Remote host closed the connection]
v0n has joined #ruby
berserkr has quit [Quit: Leaving.]
Rochefortes has quit [Remote host closed the connection]
atmosx has joined #ruby
havenn has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ly_gs has joined #ruby
robkinyon has joined #ruby
carloshh has quit []
<robkinyon> is anyone here familiar with the innards of resque-scheduler?
havenn has quit [Remote host closed the connection]
<robkinyon> i have a crazy idea and i want to see if it's totally ridiculous or "just ridiculous enough to work"
<robkinyon> i have a python app that would love to use resque-scheduler
<robkinyon> I know i can read from the active queue in python
<robkinyon> the resque-scheduler process would be great to do the management of the delayed vs. active queue
havenn has joined #ruby
<robkinyon> my question is can i assume that the resque-scheduler innards are stable enough that i can *write* to the delayed queue from python
<robkinyon> so, resque-scheduler would be just the delayed->active process
<deryl-android> not an issue of stability, its an issue of different languages. you would probably have to find out how to write a wrapper. and yes thats me guessing
<robkinyon> a wrapper for what/
<robkinyon> i don't mind running a ruby process that does the migration from the delayed to active queues in redis
mikepack has joined #ruby
<robkinyon> i'll be reading from the active queue in python (resque-scheduler doesn't care who reads from the queue, right?)
<kn330> H["sky"] = "?" if H["sky"].count == 2; H["temp"] = "?" if H["temp"].count == 2 ; ... | what Enumerator should I use for this operation?
<kn330> H #=> {"sky"=>"?", "temp"=>["warm"]}
<robkinyon> i just don't know about the *writing to the delayed queue* part
haxrbyte_ has quit [Ping timeout: 276 seconds]
<kn330> sorry, H #=> {"sky"=>["clear", "rainy"], "temp"=>["warm"]}
<deryl-android> hmm. let me see if i can word this. i'm thinking of pushing the data in the exact format that resque needs it. what comes to mind is using a service to push. (eg say resque needs a hash of the job. what way would you write it?
havenn has quit [Ping timeout: 276 seconds]
<deryl-android> again this is me not having used it personally, and throwing out suggestions that might lead you to an aswer
<deryl-android> err answer
<apeiros_> kn330: not related to your question, but your .count is probably a bad idea and you want .size instead
<kn330> apeiros_: I need to replace the `value` of a hash with "?" if it has more than 2 items
<apeiros_> kn330: yes. then you want size. not count. you may want to read the docs of the two methods.
<deryl-android> robkinyon make sense?
<robkinyon> deryl-android: hmm … i think maybe i'm thinking of this wrong way
<robkinyon> maybe i don't want to interact directly with the redis queues resque-scheduler is going to use
<robkinyon> maybe, instead, i want to expose resque-scheduler via some sort of REST API written in Ruby
<robkinyon> that my Python app can call to enqueue things
savage- has joined #ruby
nXqd has quit [Read error: Connection reset by peer]
<deryl-android> robkinyon there oyu go. thats what i was trying to point out
<robkinyon> then, i can just subscribe to the queue things would pop into from python
v0n has quit [Ping timeout: 246 seconds]
<deryl-android> i was thinking 'external api calls' but wasn't sure how to word that right
<robkinyon> okay - so is there a REST API already existent in resque-scheduler? :D
<deryl-android> that i would have to look up myself. i would think there is based on the job its doing
shevy has quit [Ping timeout: 265 seconds]
<deryl-android> (actually i'd be suprised if there wasn't)
<kn330> apeiros_: Ok. But how do I avoid this redundancy? I can write a method for this but I want to know if there is something Inbuilt.
caiges has joined #ruby
<apeiros_> kn330: just do ["sky", …].each do |key| …your code… end
<deryl-android> hate to say it, but that probably in the docs for r-s.
maxmmurphy has joined #ruby
hoelzro is now known as hoelzro|away
dpk has quit [Ping timeout: 245 seconds]
carloslopes has quit [Quit: Leaving.]
<deryl-android> sorry to rtm you but i don't personally know
<apeiros_> rtfm is not a bad advice on its own
<deryl-android> true
caiges has quit [Client Quit]
<apeiros_> and sadly, nowadays people seem to think that rtfm'ing is not needed and people love to waste their time for them with things they could have looked up within a couple of minutes…
caiges has joined #ruby
<apeiros_> meh
danielpunt has quit [Remote host closed the connection]
* apeiros_ fails @ articulating
<deryl-android> you and i both
specialGuest has quit [Quit: WeeChat 0.3.8]
<deryl-android> i read perpetually as pissed off hen in most cases i'm really not, just super blunt :)
<deryl-android> s/hen/when/
eldariof has quit [Ping timeout: 244 seconds]
chimkan_ has quit [Quit: chimkan_]
mengu has joined #ruby
daemoen has joined #ruby
jjbohn has joined #ruby
carloshh has joined #ruby
bradhe has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
pen has joined #ruby
Jotade11 has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
pen has quit [Remote host closed the connection]
v0n has joined #ruby
ly_gs has quit [Remote host closed the connection]
pen has joined #ruby
sprung has joined #ruby
<sprung> Hello, I am getting the following segmentation fault error when running "bundle exec rake snorby:setup": http://pastebin.ca/2178975 . The error references dm-do-adapter and here is the source for adapter.rb http://pastebin.ca/2178976 and here is a list of my installed ruby gems http://pastebin.ca/2178977 please help me figure out what to do next
shevy has joined #ruby
emmanuel__ has joined #ruby
mike4_ has quit [Quit: bbl]
havenn has joined #ruby
BigFatFatty has joined #ruby
ananthakumaran1 has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
rubious has joined #ruby
rubious has quit [Client Quit]
ipoval has joined #ruby
savage- has quit [Remote host closed the connection]
headius has joined #ruby
savage- has joined #ruby
canton7 has joined #ruby
br4ndon has quit [Ping timeout: 244 seconds]
TorpedoSkyline has joined #ruby
DrShoggoth has joined #ruby
adeponte has quit [Remote host closed the connection]
xorigin has quit [Quit: leaving]
ph^_ has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
ipoval has quit [Client Quit]
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
ChampS666 has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
robozahn has quit [Ping timeout: 265 seconds]
benson has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
ph^_ has quit [Remote host closed the connection]
dnyy_ has quit [Quit: Connection closed for inactivity]
skrewler has joined #ruby
Diranged has joined #ruby
SCommette_ has joined #ruby
<Diranged> can i use regex in the ruby line split?
wallerdev has joined #ruby
<Diranged> i need to split on EITHER "x" or "y"
chimkan_ has joined #ruby
blazes816 has joined #ruby
<Muz> Yes.
<workmad3> Diranged: .split(/x|y/)
chimkan_ has quit [Read error: Connection reset by peer]
<Diranged> hmm doesnt seem to wkr for me
chimkan__ has joined #ruby
<Diranged> foo.split(/'nginx: '|'apache: '/) as an example
<deryl-android> gist wht you got
<Muz> What are you doing, what do you expect, what did you get?
<deryl-android> nm :)
<apeiros_> Diranged: does your string contain the 's?
SCommette has quit [Ping timeout: 240 seconds]
<Diranged> oh.. heh
<Diranged> no
<apeiros_> and those look like labels
<Diranged> duh yeah i got it working
virunga has joined #ruby
<Diranged> thank you
<apeiros_> which tells me that split is probably not the right tool
skrewler has quit [Client Quit]
stopbit has quit [Read error: Connection reset by peer]
flagg0204 has joined #ruby
stopbit has joined #ruby
<Diranged> eh it works for me…
<apeiros_> k
<Diranged> thanks though, got it owrking
<deryl-android> whats the one that acts like cut in unix? where you specify the split char? eg cut -d':' -f1
kuzushi has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 246 seconds]
<deryl-android> can't split() do that as well? (on my tablet so cn't ri at the moment)
chimkan_ has joined #ruby
mike4_ has joined #ruby
kuzushi has joined #ruby
<deryl-android> ok, i must have asked something dumb
rippa has joined #ruby
chrismcg is now known as zz_chrismcg
gmci has quit [Quit: Computer has gone to sleep.]
* apeiros_ doesn't know the cut utility
excelsior has quit [Ping timeout: 246 seconds]
<apeiros_> gtg
apeiros_ has quit [Remote host closed the connection]
tightwork has quit [Excess Flood]
br4ndon has joined #ruby
chimkan__ has quit [Ping timeout: 276 seconds]
macmartine has joined #ruby
ReachingFarr has joined #ruby
jasonLaster has joined #ruby
zeen has left #ruby [#ruby]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
Synthead has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<shevy> deryl-android can you give an example what cut does again?
emmanuel__ has quit [Ping timeout: 245 seconds]
<shevy> I never got comfortable with the advanced unix tricks, awk always seemed so complicated
<deryl-android> bsically splits on a specific char in the output, and makes the result into fields. you use -f# to select which field you ned
chimkan_ has quit [Quit: chimkan_]
<deryl-android> like cut -d':' -f2 would select apache in nginx:apache
<blazes816> "string:otherstring".split(':').first
<deryl-android> you could even do -d': ' to include the space in the 'delimiter'
<deryl-android> ahhh damn. i always forget about first/last
<deryl-android> thanks blazes816
<blazes816> np
yasushi has quit [Ping timeout: 244 seconds]
tightwork has joined #ruby
tvw has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Remote host closed the connection]
<Synthead> how do you do 10^2 in ruby?
mahmoudimus has joined #ruby
<allyraza> Synthead, 10**2
<Synthead> allyraza: ahh! thanks!
<allyraza> Synthead, you welcome
elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
senny has joined #ruby
gmci has joined #ruby
adeponte has joined #ruby
jillsmitt has quit [Remote host closed the connection]
Markvilla has quit [Quit: Leaving.]
ChampS666 has quit [Ping timeout: 248 seconds]
scientes has joined #ruby
Eiam has joined #ruby
a_a_g has joined #ruby
hadees has quit [Quit: hadees]
ChampS666 has joined #ruby
Rusher has joined #ruby
specialGuest has quit [Ping timeout: 244 seconds]
jchauncey has joined #ruby
pen has quit [Remote host closed the connection]
carloshh has quit [Ping timeout: 272 seconds]
<Rusher> hi, why this doesn't work: $test def test2 puts $test endtest2
<Rusher> no output..
<Muz> That's practically unreadable without semi-colons or proper newlines, can you pastebin your actual code?
<Rusher> wow, i'm silly :D
infinitiguy has quit [Quit: Leaving.]
<Rusher> $test = "what do print" is better ;) :D i'm sorry
mohits has quit [Ping timeout: 276 seconds]
carloslopes has joined #ruby
S1kx has quit [Quit: Leaving]
sneakyness_wk has joined #ruby
carloslopes has quit [Client Quit]
burgestrand has joined #ruby
v0n has joined #ruby
baphled has quit [Ping timeout: 268 seconds]
bier has quit [Ping timeout: 268 seconds]
mrsolo has joined #ruby
<canton7> Rusher, like this? http://codepad.org/LTYRybKG
infinitiguy has joined #ruby
deryl-android has quit [Quit: will be on and offline most of day. later]
<Rusher> canton7: yes
<canton7> Rusher, well, as you can see from the output, it should work :P
Araxia has quit [Quit: Araxia]
tiripamwe has quit [Ping timeout: 240 seconds]
<shevy> lol Rusher
carloshh has joined #ruby
brianpWins has quit [Quit: brianpWins]
maletor has joined #ruby
<Rusher> I know, my bad
<shevy> it works now?
<shevy> you can test in irb
ringotwo has joined #ruby
emmanuel__ has joined #ruby
<Rusher> (6:50:31 PM) Rusher: $test = "what do print" is better ;) :D i'm sorry
Goles has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
<BigFatFatty> i venture to guess that he's trying to say it's working
Tomasso has quit [Read error: Connection reset by peer]
<Rusher> wow IT IS
kenichi has joined #ruby
randomautomator has joined #ruby
carloshh has quit [Ping timeout: 272 seconds]
SCommette has joined #ruby
cj3kim has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
clocKwize has quit [Quit: clocKwize]
<Rusher> I'm too sleepy, before sending a message I should check the content ;) because now I can't edit my previous messages
workmad3 is now known as wm3|away
SCommette_ has quit [Ping timeout: 248 seconds]
ppawel has joined #ruby
burgestrand has quit [Quit: Leaving.]
<ppawel> hey all,
senny has quit [Remote host closed the connection]
<ppawel> how to make unittest separate the output of different test cases?
<Muz> Rusher: is your nick any hint as to your general approach to thinking things through? ;)
<ppawel> I have a lot of output from many test cases and it separates it with a dot...
brdude has joined #ruby
bier has joined #ruby
<Rusher> Muz: heh
havenn has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 245 seconds]
yaroslav has joined #ruby
stockholm has quit [Ping timeout: 248 seconds]
chichou has quit [Remote host closed the connection]
brdude has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<Rusher> wow this room is awesome, I'm so happy now :)
lxsameer has joined #ruby
v0n has quit [Quit: Leaving]
iori has quit [Remote host closed the connection]
v0n has joined #ruby
dtribble has joined #ruby
khakimov has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
tk_ has quit [Quit: ばいばい]
cj3kim has quit [Quit: Leaving]
fbernier has quit [Ping timeout: 276 seconds]
digitalcakestudi has quit [Quit: Leaving.]
kyktommy has quit [Quit: kyktommy]
brdude has joined #ruby
beneggett has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
chimkan_ has joined #ruby
adamkittelson has joined #ruby
Guest6564 has joined #ruby
Guest6564 has quit [Quit: Guest6564]
khakimov has quit [Quit: Computer has gone to sleep.]
robkinyon has left #ruby [#ruby]
jchauncey has quit [Quit: jchauncey]
hadees has joined #ruby
yakko has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
axl_ has quit [Read error: Connection reset by peer]
davidcelis has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
bricker88 has joined #ruby
maxmmurphy has quit [Ping timeout: 260 seconds]
maxmmurphy_ has joined #ruby
davidcelis has joined #ruby
<shevy> sorry got disconnected
<shevy> other than a CONSTANT or a $global_variable, is there any other way to share state on a per-module basis, within that module alone? (not using any classes)
Diranged has left #ruby [#ruby]
linoj has joined #ruby
arkiver has quit [Ping timeout: 240 seconds]
<yxhuvud> shevy: put an instance variable in it?
tommyvyo_ has joined #ruby
<shevy> yxhuvud hmm would that work? from method to method?
<shevy> hmm lemme try that quickly
tommyvyo_ has quit [Client Quit]
<shevy> odd
<shevy> seems to work
<shevy> hmmmmmmmmmm I could swear it did not work in the past... which is why I did not consider it... *confused*
geekbri has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
ForSpareParts has joined #ruby
chimkan__ has joined #ruby
dpk has joined #ruby
<bperry> lonestar ruby conference w00t!
<ForSpareParts> After a reinstall of 1.9.3 via RVM to fix some readline problems, gems don't seem to be in my path anymore -- the path my system is using is apparently for 1.8. Anyone know how I could fix that?
<bperry> matz be here
andrewhl has joined #ruby
krz has joined #ruby
blacktulip has quit [Remote host closed the connection]
d3vic3 has joined #ruby
davidcelis has joined #ruby
chimkan_ has quit [Ping timeout: 252 seconds]
Guest11736 has quit [Ping timeout: 246 seconds]
maxmmurphy_ has quit [Ping timeout: 244 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
codeFiend has joined #ruby
<Muz> ForSpareParts: #rvm
<Rusher> does Mart go here?
voodoofish430 has joined #ruby
<ForSpareParts> Muz, thanks
<Rusher> Matz
graft has joined #ruby
gmci has joined #ruby
geekbri has joined #ruby
arkiver has joined #ruby
qwerxy has quit [Ping timeout: 244 seconds]
Eldariof-ru has joined #ruby
burgestrand has joined #ruby
blacktulip has joined #ruby
havenn has quit [Remote host closed the connection]
jbw has quit [Ping timeout: 246 seconds]
lxsameer has quit [Quit: Leaving]
S1kx has joined #ruby
yakko has quit [Ping timeout: 276 seconds]
chichou has joined #ruby
jimeh has quit [Read error: Connection reset by peer]
havenn has joined #ruby
davidcelis has quit [Ping timeout: 244 seconds]
shadoi has joined #ruby
emmanuel__ has quit [Read error: Operation timed out]
yaroslav has quit [Quit: yaroslav]
arkiver has quit [Ping timeout: 246 seconds]
maxmmurphy has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
shadoi has quit [Client Quit]
davidcelis has joined #ruby
shadoi has joined #ruby
davidcelis is now known as Guest96240
blacktulip has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
lteo has joined #ruby
Guest96240 has quit [Ping timeout: 244 seconds]
<shevy> Rusher year ago he used to be on #ruby-lang
<shevy> but he said IRC takes too much time
<shevy> and so he kind of quitted
<shevy> yugui is here though, see -> yugui_zzz
davidcel_ has joined #ruby
jbw has joined #ruby
jrist is now known as jrist-afk
tfitts has quit [Ping timeout: 248 seconds]
ngoldman has joined #ruby
davidcel_ has quit [Client Quit]
liluo has joined #ruby
<oddmunds> matz was right btw
davidcel_ has joined #ruby
wurble has joined #ruby
caiges has quit [Quit: Computer has gone to sleep.]
s1n4 has quit [Quit: leaving]
<wurble> I am trying to run cuttlefish. I did "bundle install" but then rake -T gives "cannot load such file -- app/search". What am I doing wrong/
<wurble> ?
<Muz> What version of Ruby are you using?
<Rusher> shevy: yep, I understand, I saw his videos presenting ruby language, and he has my respect that he's helping to spread ruby by himself, ya know he doesn't speak english very well but he does his best :D
<wurble> 1.9.3p194
davidcel_ is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<shevy> Rusher his english is ok, the thing is, he is "thinking" in japanese mostly, and then translates this into english, so it is kind of hard to follow him sometimes
<davidcelis> who?
<shevy> matz
imami|afk is now known as banseljaj
<Muz> wurble: weird, it's not loading the scripts in the app directory. Editing the Rakefile such that the first four lines use require_relative instead of require fix it.
lkba has joined #ruby
mrdodo has joined #ruby
<wurble> Thanks Muz
<Muz> Seems to be a pretty old and neglected set of rake tasks though.
<Rusher> yeh, english is not my native language too :( so I know how difficould it is sometimes to explain what I mean
<Muz> wurble: that said, it seems to have been built with 1.8.7 in mind. (Ooooooooooooooooooooooooooooolde)
<Muz> So the "real" "fix" yet may be to just 1.8.7 with it
tfitts has joined #ruby
* Muz gives up with sitting in the office pretending to work, and heads off for the weekend. \o/
juarlex has joined #ruby
haxrbyte has joined #ruby
havenn has quit [Remote host closed the connection]
Russell^^ has joined #ruby
juarlex has left #ruby [#ruby]
<shevy> haha
<shevy> Muz and always with a proper '.'
xaq has joined #ruby
juarlex has joined #ruby
oGMinor has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
vlad_sta_ has joined #ruby
niklasb has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
kirun has joined #ruby
dpk has joined #ruby
tatsuya_o has joined #ruby
Emmanuel_Chanel_ has joined #ruby
chimkan__ has quit [Quit: chimkan__]
ibash has joined #ruby
minijupe has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
chichou has quit [Remote host closed the connection]
havenn has joined #ruby
Eldariof-ru is now known as eldariof
user__ has joined #ruby
Elfix has quit [Quit:  ]
cantonic_ has joined #ruby
a_a_g has quit [Quit: Leaving.]
a_a_g has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
enroxorz has joined #ruby
enroxorz is now known as Guest24624
eikko has quit [Ping timeout: 260 seconds]
cantonic has quit [Ping timeout: 240 seconds]
cantonic_ is now known as cantonic
Rusher has left #ruby [#ruby]
chimkan_ has joined #ruby
bananastalktome has joined #ruby
bananastalktome has quit [Client Quit]
apok has joined #ruby
<shevy> class FPDF
<shevy> {
<shevy> var $page;
asteve has quit []
liluo has quit [Read error: Connection reset by peer]
liluo_ has joined #ruby
havenn has quit [Remote host closed the connection]
dpk has quit [Read error: Connection reset by peer]
user__ has quit [Quit: Forget progress by proxy. Land on your own moon.]
eikko has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
JustinCampbell has joined #ruby
jchauncey has joined #ruby
Emmanuel_Chanel has joined #ruby
jchauncey has quit [Client Quit]
a_a_g has quit [Quit: Leaving.]
chimkan_ has quit [Quit: chimkan_]
Emmanuel_Chanel_ has quit [Ping timeout: 256 seconds]
PierrePaul has joined #ruby
<PierrePaul> I'm trying to decode hex entities(like %20) into a normal string. Anybody have any idea?
chimkan has joined #ruby
<PierrePaul> I know I can use htmlentities to encode into hex, but I'm trying to decode
tatsuya_o has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
asteve has joined #ruby
<canton7> PierrePaul, CGI::unescape ?
liluo_ has quit [Remote host closed the connection]
<PierrePaul> canton7 : really? I read it was broken
<PierrePaul> I will try it, thanks
<canton7> where did you read that? It might well be, but I've never come across anyone who said that before
Guest85391 has quit [Ping timeout: 252 seconds]
saschagehlich has joined #ruby
iamjarvo has quit [Quit: Linkinus - http://linkinus.com]
iamjarvo has joined #ruby
<PierrePaul> canton7: cant find it :/
asteve has quit [Ping timeout: 244 seconds]
minijupe has quit [Quit: minijupe]
wayfaremonk has joined #ruby
bstro9000 has joined #ruby
Guest24624 is now known as enroxorz
enroxorz has quit [Changing host]
enroxorz has joined #ruby
ryannielson has quit [Quit: ryannielson]
ly_gs has joined #ruby
<bstro9000> Hey. I'm trying to parse a rather large body of text that is split into paragraphs with newline characters. like to iterate over this body of text and break it up by paragraphs into <p> tags. Seems like a relatively easy thing, but I can't seem to find a ruby method that'll do it elegantly. Any ideas?
minijupe has joined #ruby
monobit has joined #ruby
cakehero has joined #ruby
<canton7> bstro9000, so wall_of_text.each_line.map{ |p| "<p>#{p}</p>" }.join maybe?
Guest85391 has joined #ruby
beneggett has joined #ruby
<shevy> bstro9000 just split the text into an array, splitting at ... text.split('<p>') ?
emmanuel__ has joined #ruby
<infinitiguy> I have an opinion question. I'm re-writing a deployment script in ruby (from python), and I have an IT background. I work with a bunch of software engineers… I was talking to one of them about it and said I was doing it in ruby and they looked at me like I had 2 heads, kinda laughed, and said good luck… they are a java developer.. is ruby like the ugly stepchild of programming languages or something? I was
haxrbyte has quit [Remote host closed the connection]
ibash_ has joined #ruby
ibash_ has quit [Client Quit]
haxrbyte has joined #ruby
yakko has joined #ruby
syamajala has joined #ruby
<clop> in rails, how do you pass along data from the user throughout the lifetime of your session, e.g., "for this session i want to communicate with backend server X"? would that be a cookie based thing?
ibash has quit [Ping timeout: 276 seconds]
ngoldman has quit [Remote host closed the connection]
maxmmurphy has quit [Read error: Connection reset by peer]
jillsmitt has joined #ruby
maxmmurphy has joined #ruby
Goles has joined #ruby
Eldariof-ru has joined #ruby
adamkittelson has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
cek has joined #ruby
<shevy> infinitiguy basically, use the better language for everything, when possible
gmci has quit [Quit: Computer has gone to sleep.]
<cek> Is there any ready class that would allow me to find intersection of ranges?
<shevy> infinitiguy ruby is just as well fit as python is. you may need some kind of discipline and a clear vision though. and always document your projects
crodas has quit [Ping timeout: 252 seconds]
<cek> 3..5 & 4..6 should produce 4..5
<bstro9000> thanks canton7 && shevy !!
bstro9000 has quit [Quit: bstro9000]
moshee has quit [Ping timeout: 248 seconds]
eldariof has quit [Ping timeout: 272 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<shevy> cek dont think that is built into ruby
havenn has joined #ruby
<canton7> cek, [a.begin, b.begin].max..[a.end, b.end].min
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
yakko has quit [Read error: Connection reset by peer]
yakko has joined #ruby
wayfaremonk has quit [Quit: Leaving...]
<shevy> whoa
<Synthead> [1] pry(main)> $task = { :node = '/dev/sdb2', :name => 'Test' }
<Synthead> SyntaxError: unexpected ',', expecting $end
<Synthead> $task = { :node = '/dev/sdb2', :name => 'Test' }
<Synthead> why is this?
<Synthead> OH
<Synthead> nevermind
havenn has quit [Ping timeout: 248 seconds]
<enroxorz> Got a question regarding constants. Can someone review my code and tell me why I cant call the API for my gem?
<shevy> because you forgot a > Synthead
<shevy> :-)
<enroxorz> pastebin.com/vx5ucXWT
<Synthead> shevy: haha
<enroxorz> I am calling it in like this: File.open("tmp_all",'w') {|f| f.write(RPDFBox::TextExtraction.get_text_all("c:/aplus.pdf"))}
<enroxorz> and its telling me the constant is uninitialized (RPDFBox)
specialGuest has joined #ruby
<shevy> then
<shevy> this constant is not know at the time you write that code
<shevy> I suppose TextExtraction does not reside in RPDFBox
<enroxorz> then what am I doing wrong? It worked when all the code was in one file...
<shevy> module RPDFBox; class TextExtraction
<shevy> ^^^ I suspect the code you use has not this structure
<shevy> alternatively, you are not requiring the file
<enroxorz> in my test code (not in the pastebin) i require the 'rpdfbox' gem that I created
chimkan has quit [Quit: chimkan]
<shevy> yes, then the file that you require, is not properly loading the things
JarJar has joined #ruby
gmci has joined #ruby
hydrozen has joined #ruby
<enroxorz> damn. should I require them individually then?
<shevy> enroxorz I dont know, just require them so that the namespaces are known properly
<shevy> I have no idea how the layout is of your files
<enroxorz> ok
<shevy> the rpdfbox.rb file should load the other files, so that
<shevy> require 'rpdfbox'
<shevy> works
crodas has joined #ruby
<enroxorz> ok, let me rebuild my gem and test it
kithpom has joined #ruby
<shevy> so typically, at the base level, you have a lib/ directory, and inside that you have a rpdfbox.rb file and a rpdfbox/ directory
<shevy> btw via setup.rb you can test this much faster
<kithpom> Hi all. How would I find the most recent date or time out of an array?
<enroxorz> crap
<enroxorz> ok
<enroxorz> thanks shevy
liuchong has joined #ruby
<shevy> kithpom how does the array look like
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
luckyruby has joined #ruby
<kithpom> shevy: printing out like this: [Fri Aug 10 18:16:19 UTC 2012, Fri, 10 Aug 2012 12:08:29 PDT -07:00, nil]
<shevy> h = [Time.now+5, Time.now-111, Time.now]
<shevy> # => [Fri Aug 10 21:17:17 0200 2012, Fri Aug 10 21:15:21 0200 2012, Fri Aug 10 21:17:12 0200 2012]
<shevy> h.sort
<shevy> # => [Fri Aug 10 21:15:21 0200 2012, Fri Aug 10 21:17:12 0200 2012, Fri Aug 10 21:17:17 0200 2012]
<shevy> you need the nil? if not you can .compact it away
<enroxorz> shevy: in the gemspec i used `git ls-files`.split($/) to add all the files into the gem. I forgot to git add them....
<shevy> enroxorz layers on layers on layers :)
<enroxorz> damnable onions!
cbuxton1 has joined #ruby
<enroxorz> i swear, i have been beating myself over this for a while. everuything looked right...damn my eyes...
chimkan has joined #ruby
<kithpom> thanks shevy
chichou has joined #ruby
cbuxton has quit [Ping timeout: 248 seconds]
heftig has quit [Ping timeout: 245 seconds]
Nisstyre has quit [Quit: Leaving]
hydrozen has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
<cek> canton7, doesn't work properly when they don't overlap
<canton7> cek, trye
<canton7> *true
<cek> and when ranges are going down
<liuchong> rails?
maletor has quit [Quit: Computer has gone to sleep.]
clocKwize has joined #ruby
pencilcheck has joined #ruby
PierrePaul has quit [Quit: WeeChat 0.3.7]
yoklov has joined #ruby
Gurpartap has quit [Quit: Page closed]
bbttxu has quit [Quit: bbttxu]
jonahR has joined #ruby
uris_ has quit [Quit: jinja]
beneggett has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
pskosinski is now known as idklaze
idklaze is now known as fallon
fallon is now known as pskosinski
<bricker88> array.push and array.<< are exactly the same right?
<banseljaj> bricker88: yes. you can lose the '.' altogether and use array << foo
beneggett has joined #ruby
<bricker88> banseljaj: Indeed. How does Ruby do that? Is ti some specific C implementation?
<bricker88> the missing dot syntax for some method I mean
iamjarvo has quit [Quit: Computer has gone to sleep.]
<banseljaj> I haven't dug that dee. But it should be. Ruby can parse statements like this.
<banseljaj> just like it doesn't need explicit parenthesis for method arguments.
<bricker88> thanks
<havenn> bricker88: Syntactic sugar in Ruby's spec.
<havenn> bricker88: In C for MRI Ruby, JAVA for Jruby, C++ and Ruby for RBX, etc
<bricker88> I see
heftig has joined #ruby
<headius> Ruby recognizes certain sequences of characters as operators that do not need . notation to be called
<headius> it's a parser thing
gen0cide_ has quit [Ping timeout: 240 seconds]
bbttxu has joined #ruby
<matti> Anyone plays EveOnline?
grannys has joined #ruby
twock has joined #ruby
<grannys> is this the chat related to diamonds ?
<TTilus> nobody willing to confess?
chimkan__ has joined #ruby
<TTilus> grannys: most definitely
jrist-afk is now known as jrist
liuchong has quit [Quit: Leaving]
uris has joined #ruby
<TTilus> we cut gems
<grannys> i just watched leonardo dicaprio's movie and was like theres gotta be an irc channel for that
Clooth has joined #ruby
JustinCampbell has quit [Ping timeout: 240 seconds]
<grannys> and d/l Maya while i wait
tatsuya_o has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 245 seconds]
chimkan__ is now known as chimkan
axl_ has quit [Read error: Connection reset by peer]
JustinCampbell has joined #ruby
tatsuya_o has joined #ruby
axl_ has joined #ruby
<bricker88> Okay… So I have an a array that I'm splitting: array.first(5).each… and then array[5..-1].each… The problem is that array[5..-1] could return nil then that's no good. So, is there a way to use slice or otherwise, that will return an array no matter what?
Clooth has quit [Client Quit]
Guedes is now known as Guedes_out
Morkel has joined #ruby
<TTilus> bricker88: would Array(somethingyouwanttobearray).stuff
<TTilus> bricker88: ..do the job
<TTilus> bricker88: Array(nil) => []
<bricker88> TTilus: nah… I guess I'll just split it up before and check if it exists before calling each
chimkan has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Quit: stephenjudkins]
ngoldman has joined #ruby
<TTilus> bricker88: certainly less mysterious to readers
<bricker88> I guess I could do array.last(array.size - 5)
chimkan_ has joined #ruby
<bricker88> feels dirty to me
yakko has quit [Quit: No Ping reply in 180 seconds.]
MornStar has joined #ruby
yakko has joined #ruby
deryl has quit [Quit: deryl]
Elfix has joined #ruby
<bricker88> or, first = array.first(5), last = array - first
<bricker88> also feels dirty to me
<grannys> well what if u were a dirty person
pandersen has quit [Quit: leaving]
miho has quit [Read error: Connection reset by peer]
jjbohn is now known as jjbohn|afk
miho has joined #ruby
allyraza has quit [Read error: Connection reset by peer]
Shamgar_ has joined #ruby
manizzle has joined #ruby
specialGuest has quit [Quit: WeeChat 0.3.8]
emmanuel__ has quit [Ping timeout: 240 seconds]
Shamgar has quit [Ping timeout: 248 seconds]
enroxorz has quit [Quit: Leaving]
chimkan_ has quit [Ping timeout: 252 seconds]
poga has quit [Remote host closed the connection]
nanderoo has quit [Quit: Leaving.]
minijupe has quit [Quit: minijupe]
<bricker88> wow subtracting the arrays is definitely the wrong way to do it, takes 64,000 times as long O_O
<grannys> what are u doin?
<grannys> supposed to pop arrayas
Juul has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
<xclite> subtracting and adding arrays in Ruby is REALLY slow
<grannys> and use lists
<cek> all is REALLY slow in ruby, except when you're in jRuby
<grannys> anarray[0..anarray.length]
maletor has joined #ruby
beakerman has quit [Remote host closed the connection]
<cek> also, if you override #& for Range, you get misterious results with raobj & 1..2
jillsmitt has quit [Ping timeout: 276 seconds]
jillsmitt has joined #ruby
havenn has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
jlogsdon has quit [Remote host closed the connection]
beakerman has joined #ruby
Ethan has joined #ruby
bothra has quit [Ping timeout: 245 seconds]
drake32 has joined #ruby
bluOxigen has joined #ruby
yoklov has quit [Quit: bye!]
sailias has quit [Quit: Leaving.]
chimkan_ has joined #ruby
tewecske has joined #ruby
fantazo has quit [Quit: Verlassend]
tewecske has quit [Max SendQ exceeded]
ly_gs has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
erichmenge has quit [Quit: Be back later]
Guest74974 has quit [Quit: Guest74974]
pu22l3r has quit [Ping timeout: 260 seconds]
chimkan_ has quit [Read error: Connection reset by peer]
thecreators has quit [Ping timeout: 245 seconds]
clocKwize has quit [Quit: clocKwize]
brdude has quit [Quit: brdude]
thecreators has joined #ruby
dpk has joined #ruby
kennyvb has left #ruby [#ruby]
<monobit> i'm trying to update an entry in sqlite; db.execute("update recipe set data = \'chickenchicken\' where url = \'http://allrecipes.com/recipe/banana-bread-iii\'")
<monobit> why that no work?
<grannys> havent u heard chickens aint gay
chimkan_ has joined #ruby
<monobit> interesting
<cek> /trolllist
tatsuya_o has quit [Remote host closed the connection]
<monobit> anyway my question is on the sqlite statement; "update table set field = somehting where field2 = something" is right, right?
<monobit> Right?!
Criztian has joined #ruby
<grannys> yeah
<monobit> i don't believe you
<grannys> sorry watchin robot porn
jgrevich has quit [Quit: jgrevich]
specialGuest has joined #ruby
miho has quit [Quit: miho]
specialGuest has quit [Changing host]
specialGuest has joined #ruby
miho has joined #ruby
Shamgar_ has quit [Ping timeout: 240 seconds]
bothra has joined #ruby
burgestrand has quit [Quit: Leaving.]
JustinCampbell has quit [Remote host closed the connection]
Shamgar has joined #ruby
stephenjudkins has joined #ruby
<grannys> hot damn that robot is converting 2d images to 3d
<monobit> robits
* grannys thinks thats hot
syamajala has quit [Remote host closed the connection]
<monobit> here's another robit http://www.youtube.com/watch?v=LVXDdAyj6CM
<grannys> thought u were just a cook that combines chickens with banana nut bread
<monobit> yes
* grannys thinks this new video is even hotter
<monobit> that's my robit
<grannys> no shit
<grannys> is it measuring ph levels?
Targen has quit [Ping timeout: 246 seconds]
<monobit> water levels; we wanted to measure pH but to get accurate readings we'd need to take soil samples, mix them with a 1:1 ratio of distilled water and then measure
<monobit> it's possible but we were strapped for time so we decide to fertilize on a time schedule (like most people do)
Targen has joined #ruby
tatsuya_o has joined #ruby
erichmenge has joined #ruby
<shevy> what are you guys doing
lyfehappy has joined #ruby
<monobit> planting tacos
<ngoldman> autonomous fertilization robot
geekbri has quit [Remote host closed the connection]
<monobit> the robot above has nothing to do with my question but it does remind me that I need to get my masters
<ngoldman> 4 tha ladeez
bradhe_ has joined #ruby
kithpom has quit [Quit: kithpom]
<monobit> it's time to head to happy hour
<monobit> happy pandas
monobit has quit []
cek has quit [Quit: жопа диридай диридиридай]
grannys has quit []
Jake232 has joined #ruby
rontec76 has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 246 seconds]
havenn has joined #ruby
opus has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
lyfehappy has quit [Ping timeout: 246 seconds]
rubious has joined #ruby
krusty_ar has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
Nisstyre has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
<shevy> there are lots of weed smokers on #ruby
sailias has joined #ruby
erichmenge has quit [Quit: Be back later]
Clooth has joined #ruby
blacktulip has joined #ruby
Shamgar has quit [Ping timeout: 272 seconds]
<wmoxam_> shevy: there are a lot of drunks in #rubyonrails
Shamgar has joined #ruby
<wmoxam_> shevy: there are a lot of basket cases in #rubyonrails-offtopic
tatsuya_o has quit [Remote host closed the connection]
<ngoldman> there are trolls everywhere
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bothra has quit [Ping timeout: 245 seconds]
thecreators has quit [Quit: thecreators]
Divinite has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Eldariof-ru has quit []
i0n has quit [Quit: Lost terminal]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
burgestrand has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Divinite has quit [Remote host closed the connection]
Devil_of_weB has joined #ruby
pencilcheck has quit [Remote host closed the connection]
fayimora has joined #ruby
Divinite has joined #ruby
khakimov has joined #ruby
brdude has joined #ruby
blacktulip has quit [Remote host closed the connection]
MarioEIU has quit [Ping timeout: 244 seconds]
Divinite has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
SQLStud has joined #ruby
vlad_starkov has joined #ruby
Divinite has joined #ruby
sprung has quit [Quit: Leaving]
stkowski has joined #ruby
xiphiasx_ has quit [Read error: Operation timed out]
fayimora has quit [Ping timeout: 240 seconds]
blacktulip has joined #ruby
tommyvyo has joined #ruby
fayimora has joined #ruby
andrewhl has quit [Remote host closed the connection]
ilyam has joined #ruby
allyraza has joined #ruby
ngoldman has quit []
jeff_sebring has joined #ruby
JustinCampbell has joined #ruby
beakerman has quit [Remote host closed the connection]
JarJar has quit [Quit: Leaving]
<Devil_of_weB> türk varmý bu kanalda?
brdude has quit [Quit: brdude]
<Divinite> Devil_of_weB: Oh wow we have another n00b.
beakerman has joined #ruby
blazed has joined #ruby
carloslopes has quit [Quit: Leaving.]
<Devil_of_weB> what does noob mean?
Foxandxss has joined #ruby
<Divinite> Devil_of_weB: I was wrong, I meant troll.
gregfu has joined #ruby
verto is now known as verto|off
<Devil_of_weB> :s
<shevy> Devil_of_weB are you from turkiye like cek
wm3|away has quit [Quit: Reconnecting]
blazed has quit [Client Quit]
wm3|away has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
<Devil_of_weB> like what? what is cek? yes i am TÜRK,
wm3|away is now known as workmad3
beakerman has quit [Ping timeout: 276 seconds]
beakerman has joined #ruby
blazed has joined #ruby
deryl has joined #ruby
JStoker has quit [Excess Flood]
levity_island has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
fayimora has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby
shadoi has quit [Quit: Leaving.]
bradhe_ has quit [Remote host closed the connection]
EricKamsky has quit [Quit: EricKamsky]
xiphiasx_ has joined #ruby
xiphiasx_ has quit [Changing host]
xiphiasx_ has joined #ruby
Devil_of_weB has left #ruby [#ruby]
mi55ed has joined #ruby
bradhe has joined #ruby
chimkan_ has quit [Read error: Connection reset by peer]
kyb3r has joined #ruby
poga has joined #ruby
poga has quit [Remote host closed the connection]
levity_island_ has joined #ruby
burgestrand has quit [Quit: Leaving.]
levity_island has quit [Ping timeout: 260 seconds]
levity_island_ is now known as levity_island
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
mrwalker has joined #ruby
fayimora has joined #ruby
hadees has quit [Quit: hadees]
idletask has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jonahR has joined #ruby
blazed has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
<idletask> Hello
bwlang has left #ruby [#ruby]
<idletask> I have a problem with a rails application which runs fine as a user, but when into a restricted environment, will always complain about missing gems
<Divinite> idletask: hello.
<Divinite> idletask: Have you chmoded the gem directory?
<jonahR> 666 users
<idletask> Divinite: the user has read access to it, yes
<jonahR> niceeee
xnm has quit [Ping timeout: 246 seconds]
mengu has quit [Ping timeout: 276 seconds]
Morkel has quit [Quit: Morkel]
<Divinite> idletask: I think the user needs +x as well.
<jonahR> :\ not anymore
jkyle has joined #ruby
<idletask> Divinite: +x on what files?
<Divinite> jonahR: Always happens after you mention it.
stephenjudkins has quit [Quit: stephenjudkins]
<Divinite> idletask: On the gem directories.
brdude has joined #ruby
<Divinite> idletask: It depends on your installation.
<jkyle> is there a way to set the compiler to use when building gems? like setting CC= or CXX= or some such?
ly_gs has joined #ruby
deryl has quit [Quit: deryl]
sailias has quit [Ping timeout: 276 seconds]
jgarvey has quit [Ping timeout: 248 seconds]
havenn has joined #ruby
<Divinite> jkyle: Wait around, someone can answer your question.
Juul has quit [Ping timeout: 240 seconds]
<idletask> Divinite: well, you obviously need +x on directories, otherwise you cannot open() any file in it
<idletask> I guess there's some environment variable I need to set, but I don't know which
<Divinite> idletask: The only reason it would complain that it cannot find gems is if it cannot see them or they're not there.
miho has left #ruby [#ruby]
<idletask> Well, how to make the app see them, then?
<idletask> They are here, since as a normal user the app runs fine -- but I have no special environment variable
<Divinite> idletask: Use google-Fu!
chimkan_ has joined #ruby
<idletask> I just did bundle install --deployment, made a tarball, untarred it in the restricted environment, attempted to run and saw it fail
baroquebobcat has joined #ruby
<Divinite> I think you may have forgotten the gems.
<Divinite> There's an option somewhere.
idletask has quit [Quit: .]
fayimora has quit [Quit: Be back in a gifii]
havenn has quit [Ping timeout: 244 seconds]
qwerxy has quit [Quit: offski]
chimkan_ has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
mi55ed has quit []
qwerxy has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
chimkan has joined #ruby
luckyruby has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
drake32 has left #ruby [#ruby]
JStoker has joined #ruby
uris has quit [Quit: leaving]
chimkan has quit [Ping timeout: 240 seconds]
twock has quit [Ping timeout: 240 seconds]
yoklov has joined #ruby
asobrasil has left #ruby [#ruby]
dpk has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bbttxu has quit [Quit: bbttxu]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
kvirani has quit [Remote host closed the connection]
n_blownapart has joined #ruby
adamkittelson has joined #ruby
EricKamsky has joined #ruby
baroquebobcat has joined #ruby
stkowski has quit [Quit: stkowski]
hdzhdgn has quit [Ping timeout: 240 seconds]
nilg has quit [Read error: Connection reset by peer]
jarred has joined #ruby
etank has joined #ruby
infinitiguy has quit [Ping timeout: 272 seconds]
n_blownapart has quit [Remote host closed the connection]
balki_ has joined #ruby
d3vic3 has quit [Remote host closed the connection]
alanp_ has joined #ruby
alanp has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
twock has joined #ruby
wmoxam_ has quit [Ping timeout: 276 seconds]
balki has quit [Ping timeout: 276 seconds]
jjbohn has quit [Quit: Leaving...]
artOfWar_ has quit [Ping timeout: 244 seconds]
qwerxy has quit [Quit: offski]
internet_user has quit [Remote host closed the connection]
darren has joined #ruby
kernelpanix has joined #ruby
chimkan has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
sailias has quit [Client Quit]
bbttxu has joined #ruby
graft has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Quit: Leaving]
n_blownapart has joined #ruby
darren has quit [Ping timeout: 245 seconds]
chimkan has quit [Ping timeout: 245 seconds]
MarioEIU has joined #ruby
jblack has joined #ruby
jblack has quit [Quit: leaving]
Juul has joined #ruby
<n_blownapart> hi in this prog I'm calling #dup. How can I call object_id on both outputs? thanks -- http://pastie.org/4452116
hdzhdgn has joined #ruby
bbttxu has left #ruby [#ruby]
chimkan has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
jblack has joined #ruby
bluOxigen has quit []
chimkan has joined #ruby
popobop has joined #ruby
jrajav has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bradhe has joined #ruby
Gab0 has joined #ruby
kernelpanix has quit [Ping timeout: 268 seconds]
baphled has joined #ruby
<jkyle> got it working. it was the ruby version. had to move to 1.9.3 for it to work on mountain lion
stockholm has joined #ruby
banseljaj is now known as imami|afk
qwerxy has joined #ruby
<Divinite> Hey! Ruby people!
stopbit has quit [Quit: Leaving]
<Divinite> I write for TheMagPi magazine and I'm doing a ruby segment. What should it be called?
chimkan has quit [Read error: Connection reset by peer]
kpshek has quit []
<n_blownapart> any takers? in this prog I'm calling #dup. How can I call object_id on both outputs? thanks -- http://pastie.org/4452116
kernelpanix has joined #ruby
chimkan has joined #ruby
<canton7> n_blownapart, what's your question exactly? You call object_id by, well, calling object_id...
cakehero has quit [Quit: Computer has gone to sleep.]
<shevy> lol
<shevy> if he would just use it ... ;)
<n_blownapart> canton7: well, a duplicate is made on s. so I'm a bit confused: s refers to "new string here" and also "original string", so why is it a duplicate if the string is modified?
stephenjudkins has quit [Quit: stephenjudkins]
jasonLaster has quit [Remote host closed the connection]
<n_blownapart> shevy grampa asks a real stumper !
jasonLaster has joined #ruby
<canton7> yes, you are a bit confused
<canton7> on line 6, where you call s.dup, you're creating a duplicate of s, and passing that to the function
<canton7> initially, that duplicate contains "Original string here", but line 2 replaces that with "new string here"
<canton7> s still contains what it always contained
stephenjudkins_ has joined #ruby
<shevy> n_blownapart why do you use .dup
<shevy> Divinite call it The Poets of Ruby
<shevy> and invite no hipsters, only ruby samurai
caiges has joined #ruby
darren has joined #ruby
jasonLaster has quit [Ping timeout: 245 seconds]
cakehero has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
<Divinite> shevy: Yes! Great name!
MarioEIU has quit [Quit: Leaving]
<n_blownapart> canton7: line 6 outputs "new string here," and line 8 outputs the duplicate (original string). So the output from line 6 technically doesn't have its own object_id ?
<shevy> Divinite actually, the reason is this - I think good ruby code should read like poetry
ilyam_ has joined #ruby
twock has quit [Ping timeout: 268 seconds]
<shevy> but there is also a lot of ugly ruby code out there
<shevy> this makes me unhappy
<canton7> n_blownapart, the string returned by 's.dup' will have a different object_id to s
<canton7> and line 8 doesn't output the duplicate. it outputs the original string
kernelpanix has quit [Remote host closed the connection]
<canton7> line 6 outputs the duplicate (which has been #replace'd)
baroquebobcat has quit [Quit: baroquebobcat]
<n_blownapart> that was my question canton7 can I call object_id on the output from line 6?
<canton7> n_blownapart, sure. puts change_string(s.dup).object_id
banisterfiend has quit [Ping timeout: 248 seconds]
ilyam has quit [Ping timeout: 245 seconds]
ilyam_ is now known as ilyam
<n_blownapart> that is cool canton7 thanks I should have seen that.
<canton7> like I say, you call #object_id on it.... :P
<shevy> :D
artOfWar has joined #ruby
<n_blownapart> yeah but I didn't know you could call object_id on an entire method/arg. that is cool canton7
lledet has quit [Quit: lledet]
krusty_ar has quit [Remote host closed the connection]
<canton7> you're not calling it on the method. you're calling it on what's returned from the method
ly_gs has quit [Remote host closed the connection]
<n_blownapart> canton7: got it
fearoffish has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chimkan has quit [Ping timeout: 265 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
dross_ has joined #ruby
workmad3 has quit [Read error: Operation timed out]
ppawel has quit [Ping timeout: 272 seconds]
kirun has quit [Quit: Client exiting]
darren_ has joined #ruby
havenn has joined #ruby
Criztian has quit [Remote host closed the connection]
dross has quit [Ping timeout: 260 seconds]
<Divinite> shevy: I'll be sure to say that.
<n_blownapart> canton7: one more thing if you have time. Are we technically sending two arguments to #change_string() ?
blacktulip has quit [Remote host closed the connection]
<canton7> no. we're taking s, finding the value of s.dup, and giving that as an argument to change_string
<shevy> your method definition has only one parameter allowed
darren has quit [Ping timeout: 276 seconds]
<shevy> def change_string(str)
<n_blownapart> shevy good point....hold on, geezer mind at work.
<shevy> sending two arguments to that like change_string("foo","bar") would result in an error. you could change the method of course to accept more than one argument... or you could pass in a block too
<shevy> puts change_string(s.dup) { "total chaos" }
<shevy> and inside the method
<shevy> str.replace(yield) if block_given?
<canton7> hey, don't confuse him too much right now :)
havenn has quit [Ping timeout: 244 seconds]
<shevy> hmm
<shevy> I would like to have a simpler ruby
johnlcox has quit [Ping timeout: 252 seconds]
<n_blownapart> canton7: ok so s.dup is the argument. s doesn't not get sent. the dot syntax confused me...more than a bit
<shevy> object.name_of_method
devdazed has quit [Ping timeout: 260 seconds]
<shevy> str.replace <--- calls replace() method
<n_blownapart> *does not
<shevy> by the way, you can change string objects
<shevy> class String; def foo; replace("hi");end;end
<n_blownapart> shevy: yeah working on that yesterday thanks.
<shevy> x = "yo"; x.foo # => "hi"; x # => "hi"
<shevy> changed without another = used
<shevy> :)
pu22l3r has joined #ruby
<shevy> MAGICAL
<n_blownapart> shevy: poetic
SCommette has quit [Quit: SCommette]
<shevy> yah well
<shevy> it depends...
<shevy> I am trying to rewrite the rfpdf library
<shevy> Let me show you code of it right now (written by someone else)
<shevy> pdf.AddPage
<shevy> pdf.SetFont('Arial','B',16)
devdazed has joined #ruby
SCommette has joined #ruby
<shevy> now let me show you def initialize from there
banisterfiend has joined #ruby
<shevy> look how many instance variables are in initialize!!!
<shevy> @fw=@fwPt/@k; <--- and things like this here
<Divinite> Lol!!! shevy, this is not poetic!
<shevy> I think he must have copy pasted the PHP source
<shevy> yeah Divinite
<shevy> I think he really did a very much 1:1 clone of the PHP library
yxhuvud has quit [Ping timeout: 260 seconds]
<shevy> @PDFVersion='1.3'
jillsmitt has quit [Ping timeout: 272 seconds]
<shevy> man
<shevy> canton7 let's make a deal
<Divinite> shevy: This is an abomination of Ruby! You must fix it!
<shevy> from now on we shall use only @FOO variables
beneggett has quit [Quit: Computer has gone to sleep.]
<shevy> Divinite, trying to... it's quite a bit of work though
<canton7> shevy, I will never be party to such heresy!
stephenjudkins_ has quit [Quit: stephenjudkins_]
<Divinite> shevy: Good luck! I'm going to continue writing the first article.
<shevy> yeah
Progster has quit [Ping timeout: 240 seconds]
<shevy> I should write less on IRC and do more coding in my editor instead :)
darren has joined #ruby
stephenjudkins has joined #ruby
SCommette has quit [Client Quit]
cool has joined #ruby
jillsmitt has joined #ruby
<jrajav> >> 'Still working?'
<al2o3cr> (String) "Still working?"
<jrajav> Bot is now hypercharged w/ no temporary files for the scriptlets :D
<jrajav> It is currently still vulnerable to forkbombs, in a sense… it doesn't kill it, it just spawns a new process forever every 2 seconds (the cpu time limit)
Tomasso has joined #ruby
beneggett has joined #ruby
<jrajav> So you can't kill it, but if you try to forkbomb it, your punishment will be constant PMs from the bot every 2 seconds about the error status
<jrajav> FOREVER
Juul has quit [Ping timeout: 272 seconds]
<jrajav> No, seriously, forever, until I get back to work to Ctrl-C and restart it :D
darren_ has quit [Ping timeout: 260 seconds]
<davidcelis> >> hmmm
<al2o3cr> stderr was too long, I PMed it to you
<al2o3cr> exit status: 1
<jrajav> Syntax error foo
pu22l3r has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
jeff_sebring has quit [Quit: Leaving]
<cool> hello everone
<jrajav> Oh! One thing I still haven't tested
<jrajav> >> ["Repeat this lots"]*100
<al2o3cr> stdout was too long, I PMed it to you
<jrajav> Okay good :)
<jrajav> That caused a nice bit of spam the other day; one really long line of output
xaq has quit [Remote host closed the connection]
<shevy> there is something that confuses me
<shevy> why can we do:
<shevy> FOO = []
<shevy> def foo(i)
<shevy> FOO << i
<shevy> end
<shevy> but not
<shevy> def foo(i)
<shevy> FOO = i
macmartine has joined #ruby
<shevy> end
<heftig> because parser does not allow constant assignment in method context
<heftig> or any dynamic context
<davidcelis> stop reassigning constants
<davidcelis> they're called constants for a reason
<heftig> it's a bit of static assurance
jillsmitt has quit [Ping timeout: 256 seconds]
<shevy> davidcelis, then why is FOO << possible?
<davidcelis> you aren't reassigning anything
<davidcelis> FOO is the array
<canton7> not an assignment, surely. just modifying
<heftig> because it's just a method call, not an assignment
<shevy> hmmmmmmm
gregfu has quit [Quit: gregfu]
Juul has joined #ruby
<shevy> I find this very strange
<canton7> just like I bet FOO = "str" won't work, but FOO.replace("str") will
artOfWar has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 248 seconds]
chimkan has joined #ruby
jillsmitt has joined #ruby
fantazo has joined #ruby
luckyruby has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
Gab0 has quit [Ping timeout: 240 seconds]
RailWolf has joined #ruby
virunga has quit [Quit: Sto andando via]
RailWolf has quit [Client Quit]
RailWolf has joined #ruby
jrist is now known as jrist-afk
monkegjinni has quit [Remote host closed the connection]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Abbas| has quit [Ping timeout: 265 seconds]
SQLStud has quit [Quit: Leaving]
Goles has quit [Quit: Computer has gone to sleep.]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tag has joined #ruby
Synthead has quit [Remote host closed the connection]
SCommette has joined #ruby
specialGuest has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
luckyruby has quit [Remote host closed the connection]
Jake232 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
val_ has joined #ruby
qwerxy has quit [Quit: offski]
SegFaultAX|work2 has quit [Quit: leaving]
ReachingFarr has quit [Quit: ReachingFarr]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
val_ has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
baphled has joined #ruby
adeponte has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<Majost> Could someone point me to a working example where "OptionParser::Switch::RequiredArgument" is used?\
verto|off is now known as verto
ckrailo has quit [Quit: Computer has gone to sleep.]
Abbas5 is now known as Abbas|
monkegjinni has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rodj has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
SCommette has quit [Quit: SCommette]
Asher has quit [Quit: Leaving.]
Divinite has quit [Quit: Divinite has left :(]
froy has quit [Quit: kablam!]
ChampS666 has quit [Ping timeout: 272 seconds]
SCommette has joined #ruby
havenn has joined #ruby
SCommette has quit [Client Quit]
opus has quit [Read error: Connection reset by peer]
opus has joined #ruby
Asher has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
SCommette has joined #ruby
Axsuul has quit [Ping timeout: 246 seconds]
hadees has joined #ruby
Axsuul has joined #ruby
drago757 has quit [Quit: drago757]
Eplemosen has joined #ruby
chimkan has quit [Quit: chimkan]
jasonLaster has joined #ruby
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby
sneakyness_wk has quit [Remote host closed the connection]
freeayu has joined #ruby
jasonLaster has quit [Remote host closed the connection]
emmanuel__ has joined #ruby
jasonLaster has joined #ruby
methods1 has joined #ruby
<methods1> why doesn't this work as I expect ? h = Hash.new([]); h[:a] << 5; h
<allyraza> methods1, you initializing the hash with empty array and then you adding a value to the hash itself not the array
BigFatFatty has quit [Quit: leaving]
mikepack has joined #ruby
<methods1> well i tried Hash.new{[]} as well