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
<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: 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]
<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]
<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.]
<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.]
<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]
`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
<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>
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
<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
<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]
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.]
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]
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]
<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
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]
<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]
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]
<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?
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>
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]