<nofxx>
hmm... someone else tryed to scratch that itchy https://bugs.ruby-lang.org/issues/8661 ... am doing that, but was looking for a more global don't do it in every project way
<zenspider>
nofxx: yes, that's where I send people... personally I can't STAND that order ... feels like python :P
<nofxx>
zenspider, that's the only thing I like about python =D
jaguarmagenta has joined #ruby
charliesome has joined #ruby
reaVer has quit [Ping timeout: 250 seconds]
<nofxx>
zenspider, never, ever, was in like a tmux/screen and just...damn need to scroll this
<zenspider>
blech. the actual point of the problem is farthest from the last output
<zenspider>
not that I get backtraces that often...
<nofxx>
it's like 80% in the first 5 lines
reaVer has joined #ruby
<nofxx>
to paretto it... I say it's way more
<zenspider>
I like how minitest and rails do it... filter the crap out
<zenspider>
I can't believe I said that... huh
chouhoul_ has joined #ruby
<nofxx>
that may work... like a code trace / stack/fw trace that is only shown with some --extra-flag
<nofxx>
but just reverse I would be very happy hehe
ICantCook has joined #ruby
jaguarmagenta has quit [Ping timeout: 265 seconds]
<nofxx>
another scenario: writing code with guard on, error...need to switch to terminal, scroll up.....well, maybe I might need some searching or losing a week on lisp to make emacs bring the errors, but the easy
<nofxx>
the easy integration just makes the bar green or red*
nankyokusei has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
gbgdev has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
cibs has joined #ruby
mfb2 has joined #ruby
mfb2 has quit [Client Quit]
<StoneCypher>
zenspider: i'm just trying to get my head around sidekiq
<StoneCypher>
zenspider: this is, to me, a hello world tier "is it doing what i expect" exercise
<StoneCypher>
zenspider: afterwards i will be using this for the async dispatch of api hits
* zenspider
nods
<nofxx>
StoneCypher, you can run it w/o daemonizing too... iirc
<nofxx>
so you'll get puts! =D
<nofxx>
heck you can just include and YourWorker.new.perform
<nofxx>
it's really just ruby StoneCypher
<nofxx>
sidekiq actually is just the 'runner'
<nofxx>
a nice one, with all you need queue, forked jobs
DTZUZU has joined #ruby
<nofxx>
error retrial, with the nice 1s, next on 1m, 1hour, 1 day thing ... that should have a name
marchelzo has joined #ruby
<marchelzo>
hi
<StoneCypher>
nofxx: i don't speak ruby, so ... :D
enterprisey has joined #ruby
<marchelzo>
what's ruby's concurrency story
pwnd_nsfw has quit [Ping timeout: 258 seconds]
pwnd_nsfw has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
despai has quit [Quit: This computer has gone to sleep]
<havenwood>
marchelzo: Once upon a time there was a world without multiple cores, the 1990s. It was here that Ruby was born.
bradleyp_ has quit [Remote host closed the connection]
bradleyprice has joined #ruby
JoshS has joined #ruby
biberu has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 258 seconds]
bradleyprice has quit [Ping timeout: 258 seconds]
<marchelzo>
cool
<marchelzo>
watching matz's keynote from rubyconf 2016 now and i will check out that gem
whathappens has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 268 seconds]
whathappens has joined #ruby
d0nn1e has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
raldu has quit [Ping timeout: 248 seconds]
raldu has joined #ruby
jenrzzz has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
whathapp_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
rakm has joined #ruby
arescorpio has joined #ruby
ICantCook has quit [Quit: bye]
nofxx has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
nofxx has joined #ruby
doubleemms has joined #ruby
doubleemms has quit [Remote host closed the connection]
doubleemms has joined #ruby
gusrub has quit [Remote host closed the connection]
ramfjord has joined #ruby
gusrub has joined #ruby
doubleemms has quit [Ping timeout: 265 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gusrub has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gbgdev has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 268 seconds]
xall has joined #ruby
ixti has quit [Quit: WeeChat 1.6]
brendan- has joined #ruby
xall has quit [Ping timeout: 245 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
bradleyprice has joined #ruby
uranellus has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
minimalism has joined #ruby
Gravious has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 260 seconds]
<StoneCypher>
wellllllll, this is frustrating.
<StoneCypher>
even when the worker is being told to write stuff to disk, it's not
<StoneCypher>
so the problem is very likely my sidekiq setup.
turingbombe has joined #ruby
amclain has quit [Quit: Leaving]
marxarelli is now known as marxarelli|afk
johnzorn has joined #ruby
jenrzzz has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
hotpanca_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
znz_jp has quit [Remote host closed the connection]
GodFather_ has joined #ruby
swills_ is now known as swills
<nofxx>
StoneCypher, very easy to know, just like I said, simply include the worker and Worker.new.perform
znz_jp has joined #ruby
<nofxx>
sidekiq doesn't do or not do nothing... it just runs code
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
hotpancakes has quit [Ping timeout: 240 seconds]
<nofxx>
StoneCypher, guess you know but anyways, only string params to #perform, don't use objects in params... it's a queue, it'll be stored in redis (the work name and it's params)
helpa-bot has joined #ruby
pwnd_nsfw has quit [Ping timeout: 301 seconds]
matp has quit [Excess Flood]
helpa has quit [Write error: Broken pipe]
cgfbee has quit [Excess Flood]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
matp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cgfbee has joined #ruby
jaguarmagenta has joined #ruby
agent_white has joined #ruby
raul782 has joined #ruby
astrobunny has joined #ruby
dh128 has joined #ruby
astrobunny has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
jaguarmagenta has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
dar123 has joined #ruby
dh128 has left #ruby ["Leaving"]
nankyokusei has joined #ruby
raul782 has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 252 seconds]
ResidentBiscuit has joined #ruby
d^sh has quit [Ping timeout: 252 seconds]
d^sh has joined #ruby
statelesscode has joined #ruby
gusrub has joined #ruby
marchelzo has quit [Ping timeout: 268 seconds]
ghostlight has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
turingbombe has quit [Ping timeout: 246 seconds]
hotpanca_ has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
ghostlight has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
chromis has joined #ruby
saneax is now known as saneax-_-|AFK
jhack has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
GodFather_ has quit [Quit: Ex-Chat]
raul782 has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
ruby-lang408 has joined #ruby
tmtwd has joined #ruby
libastral has quit [Ping timeout: 258 seconds]
libastral has joined #ruby
antoniobeyah has joined #ruby
ruby106 has joined #ruby
kuSuSE has quit [Ping timeout: 268 seconds]
ruby106 has quit [Ping timeout: 260 seconds]
ruby-lang408 has quit [Quit: Page closed]
tau is now known as nipplefish
dviola has quit [Quit: WeeChat 1.6]
jhack has quit [Quit: jhack]
skydiver_ has joined #ruby
jhack has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
tubuliferous has quit [Ping timeout: 248 seconds]
griffindy has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has quit [Read error: Connection reset by peer]
kies has quit [Ping timeout: 246 seconds]
xall has joined #ruby
LoneHermit has joined #ruby
xall has quit [Ping timeout: 256 seconds]
antoniobeyah has joined #ruby
jhack has quit [Quit: jhack]
hanmac has joined #ruby
kies has joined #ruby
xall has joined #ruby
montanonic has joined #ruby
ropeney has joined #ruby
astrobunny has joined #ruby
deegill has joined #ruby
deegill has quit [Client Quit]
hahuang65 has quit [Ping timeout: 245 seconds]
blackbombay has quit [Ping timeout: 245 seconds]
ur5us_ has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
hahuang65 has joined #ruby
AlexRussia has quit [Ping timeout: 268 seconds]
alan_w_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: brb sec]
antoniobeyah has quit [Quit: antoniobeyah]
antoniobeyah has joined #ruby
blackbombay has joined #ruby
pilne has quit [Quit: Quitting!]
antoniobeyah has quit [Client Quit]
dtzu has joined #ruby
yfeldblu_ has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
yfeldblu_ has quit [Client Quit]
raul782 has quit [Remote host closed the connection]
BTRE has joined #ruby
StoneCypher has quit [Ping timeout: 268 seconds]
raul782 has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
ropeney has joined #ruby
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
johnzorn has quit [Ping timeout: 256 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
johnzorn has joined #ruby
raul782 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
djbkd has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
govg has joined #ruby
function has quit [Quit: found 1 in /dev/zero]
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
saneax-_-|AFK is now known as saneax
enterprisey has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
govg has joined #ruby
ddffg has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
kares has joined #ruby
gh5046 has left #ruby [#ruby]
hotpanca_ has joined #ruby
fifi-v has joined #ruby
govg has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 258 seconds]
<fifi-v>
I want my class to handle nil arguments nicely, so I applied the Null Object Pattern (never used it before), in the initialize method: `@message = message || NullMessage.new`. However, Reek complains about https://github.com/troessner/reek/blob/master/docs/Control-Parameter.md. Any idea?
gbgdev has quit [Remote host closed the connection]
despai has joined #ruby
eggshke has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
johnzorn has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 265 seconds]
SpiffTR has joined #ruby
blackbom1 has joined #ruby
Snowy has joined #ruby
Snowy is now known as RobertBlack
johnzorn has joined #ruby
gbgdev has joined #ruby
gbgdev has quit [Remote host closed the connection]
gbgdev has joined #ruby
pandaant has quit [Remote host closed the connection]
gbgdev has quit [Read error: Connection reset by peer]
gbgdev has joined #ruby
n008f4g_ has quit [Ping timeout: 248 seconds]
StoneCypher has joined #ruby
milardovich has quit []
StoneCypher has quit [Ping timeout: 250 seconds]
rodferso1 has joined #ruby
ur5us has quit [Remote host closed the connection]
meshsmith has joined #ruby
pwnd_nsfw has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 248 seconds]
meshsmith_ has quit [Ping timeout: 256 seconds]
blingrang has joined #ruby
<raz>
hrm.. can some regex wizard explain to me why this matches only the first key=value pair?
<raz>
p "herp=derp foo=bar come=on".match(/(?:\s|^)([^= ]+=[^ =]+)(?:\s|$)/)
GodFather has joined #ruby
kobain has joined #ruby
maattdd has quit [Ping timeout: 246 seconds]
jaguarmagenta has joined #ruby
<c-c>
because only one group of those middle ones?
<c-c>
raz: can you make a rubular.com
<raz>
c-c: n/m. thanks for looking! it seems i was confused about #match vs #scan (the latter gives me what i want)
<c-c>
I don't think so 8)
<raz>
haha
<raz>
feed more into my fears!
Sidoniuns has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
givemeurhats has joined #ruby
<zenspider>
raz: yes to match vs scan... but your regexp is also overly specific
<zenspider>
scan for what you want, nothing more
lightstalker has quit [Ping timeout: 265 seconds]
<givemeurhats>
is there a way to call parent class method I overriden in child? For example if a parent has hello method, and in child hello method is super + name, is there a way to call parent hello method in child in some other method?
jenrzzz has quit [Ping timeout: 268 seconds]
<givemeurhats>
sorry if not explained properly :p
<raz>
well, yes this is indeed trickier than i thought. what i really want is to extract all k=v pairs from a string like: "foo=bar some random text frob=nitz other text x=y". extract and then remove them (properly preserving the remaining whitespace).
<zenspider>
givemeurhats: you just used the word "super", yet it seems like you don't know about it?
<zenspider>
the answer is in your question
<givemeurhats>
zenspider, oh but not in hello method
<givemeurhats>
zenspider, in some other method I want to call parents hello
<givemeurhats>
zenspider, oh you mean super.hello?
<zenspider>
givemeurhats: there are ways... but what you're asking is reeking of bad design
<givemeurhats>
zenspider, yeah I though about it, but any other implementation would just complicate things more, this is the most elegant solution (if possible)
<zenspider>
and that should still work with additional stuff:
<givemeurhats>
zenspider, I have a lot of classes inheriting from a parent that has that method, and in another class I call the same method on all objects
<givemeurhats>
it seems most elegant
<zenspider>
but it is starting to smell like you're trying to parse html/xml attribs or something?
lightstalker has joined #ruby
<raz>
zenspider: "natural" whitespace preserval. i.e. each of the k/v pairs should remove one space as well (unless at start/end of string)
Derderderd has joined #ruby
<zenspider>
"leave herp=derp me foo=bar in come=on place".gsub(/(\w+)=(\w+)\s*/, '')
<zenspider>
>> "leave herp=derp me foo=bar in come=on place".gsub(/(\w+)=(\w+)\s*/, '')
<givemeurhats>
zenspider, yeah sorry, not really good at explaining things
<zenspider>
nothing is wrong with that design... but it also doesn't touch anything you originally described (yet?)
<matthewd>
Firstly, the fact your classes are named A, B, and C
frozengeek has joined #ruby
<zenspider>
matthewd: gotta protect the IP, yo
<zenspider>
ob-fu-scate
<givemeurhats>
zenspider, so now in class C, i want to get to name from A
<givemeurhats>
to hello method
postmodern_ has joined #ruby
postmodern has quit [Ping timeout: 245 seconds]
<zenspider>
givemeurhats: you already did
<givemeurhats>
zenspider, I suck at explaining with imagined code, I want to get to "hello" method in A from C
<givemeurhats>
zenspider, yeah I did in hello method
<zenspider>
that's what super does
<givemeurhats>
zenspider, but how to get to it from some new method
<zenspider>
and if you want to bypass it then YES, you have a shitty design
<zenspider>
continuing on matthewd's path: you spelled "name" "hello"
<givemeurhats>
zenspider, if I change the design I won't be able to have a collection of objects of all the classes and call hello on each of them
nadir has quit [Quit: Connection closed for inactivity]
<givemeurhats>
I just need to access the parents method hello in one other method
<zenspider>
givemeurhats: but... I'm really not interested in you doling out the oddities of your design problem over the course of 30 minutes. You could have included the problem you actually have in your code sample and let me at it...
<matthewd>
givemeurhats: You said you already found super_method; terrible design notwithstanding, does that not meet your "need"?
meshsmith_ has joined #ruby
<givemeurhats>
zenspider, here..this is based on an awfull fact that m3u files don't really have categories, but people create fictive categories by just naming a channel like ===== ENGLAND ====, and I should be able to sort things in those fictive categories
swills has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
cajone has joined #ruby
cajone has quit [Max SendQ exceeded]
cajone has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
aupadhye_ has joined #ruby
arooni has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
Devalo has quit [Remote host closed the connection]
Guest60896 has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
polishdub has joined #ruby
StoneCypher has joined #ruby
jhack has quit [Quit: jhack]
jaguarmagenta has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 256 seconds]
StoneCypher has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
UserJosh has quit [Ping timeout: 265 seconds]
tlaxkit has joined #ruby
GodFather has joined #ruby
meshsmith_ has joined #ruby
meshsmith_ has quit [Remote host closed the connection]
meshsmith_ has joined #ruby
meshsmith has quit [Ping timeout: 258 seconds]
meshsmith has joined #ruby
ta_ has quit [Remote host closed the connection]
Derderderd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nowz has quit [Quit: Leaving]
meshsmith_ has quit [Ping timeout: 258 seconds]
swills has joined #ruby
StoneCypher has joined #ruby
Derderderd has quit [Ping timeout: 252 seconds]
antoniobeyah has joined #ruby
doubleemms has joined #ruby
jenrzzz has joined #ruby
bradleyprice has joined #ruby
pawnbox has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
xall has joined #ruby
beilabs has quit [Remote host closed the connection]
synthroi_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
synthroid has quit [Ping timeout: 258 seconds]
ogn has quit [Ping timeout: 258 seconds]
balazs has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
n008f4g_ has joined #ruby
gbgdev has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
meshsmith_ has joined #ruby
ogn has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
meshsmith_ has quit [Client Quit]
meshsmith_ has joined #ruby
Yzguy has joined #ruby
jhack has quit [Ping timeout: 258 seconds]
bovis has joined #ruby
meshsmith has quit [Ping timeout: 265 seconds]
meshsmith_ has quit [Client Quit]
meshsmith has joined #ruby
pawnbox has joined #ruby
brendan- has joined #ruby
SpiffTR has joined #ruby
ogn has quit [Ping timeout: 248 seconds]
troys has joined #ruby
nettoweb has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
beilabs has joined #ruby
ogn has joined #ruby
cajone has quit [Quit: Leaving.]
harfangk has joined #ruby
ogn has quit [Ping timeout: 248 seconds]
mwlang has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Definity has joined #ruby
andikr has quit [Remote host closed the connection]
coderhut has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ruby
__Yiota has joined #ruby
emilkarl has quit [Quit: emilkarl]
<__Yiota>
hi folks. got a question. I have a class 'foo'. it has its initialize method where you specify class. however outside of the initialize function this code im reading has @@bar = Hash.new
<__Yiota>
I thought all self parameters went inside the initialize function?
johnzorn has quit [Ping timeout: 258 seconds]
koldbrutality has joined #ruby
synthroi_ has quit [Remote host closed the connection]
coderhut has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 250 seconds]
tdy has quit [Quit: tdy]
Definity has quit [Ping timeout: 240 seconds]
<adaedra>
@@bar is a class variable
<adaedra>
it's shared between instances
<adaedra>
it's weird and better be avoided, there are better solutions
PresidentBiscuit has joined #ruby
johnzorn has joined #ruby
hotpancakes has quit [Remote host closed the connection]
cdg has joined #ruby
jhack has joined #ruby
tdy has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
PresidentBiscuit has quit [Ping timeout: 258 seconds]
antoniobeyah has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
ogn has joined #ruby
mikecmpbll has joined #ruby
shinnya has joined #ruby
<__Yiota>
how do I declar a regular variable?
<__Yiota>
adaedra
<__Yiota>
like in python you would so self.foo = foo
Yzguy has quit [Quit: Bye]
<adaedra>
youldn't that make an instance variable?
<adaedra>
?variables
<ruby[bot]>
Ruby knows $globals, @@class_variables, @instance_variables, local_variables and Constants
<__Yiota>
like @foo ?
<__Yiota>
ok gotcha
Derderderd has joined #ruby
last_staff has quit [Quit: *poof*]
chouhoulis has quit [Remote host closed the connection]
VladGh_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Derderderd has quit [Ping timeout: 265 seconds]
gbgdev_ has joined #ruby
VladGh has joined #ruby
gbgdev has quit [Ping timeout: 260 seconds]
rodfersou|lunch is now known as rodfersou
bradleyprice has joined #ruby
ttilley has joined #ruby
hotpancakes has joined #ruby
nankyokusei has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
shadeslayer has quit [Ping timeout: 250 seconds]
hotpanca_ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
aganov has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
cdg_ has joined #ruby
StoneCypher has joined #ruby
troys is now known as troys_
Dimik has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
synthroid has joined #ruby
andikr has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
sparch has joined #ruby
lmc has joined #ruby
hotpancakes has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 260 seconds]
hotpanca_ has quit [Ping timeout: 260 seconds]
pawelbx has joined #ruby
shadeslayer has joined #ruby
hotpanca_ has joined #ruby
amclain has joined #ruby
troys_ is now known as troys
preyalone has joined #ruby
hotpancakes has quit [Ping timeout: 265 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
johnzorn has quit [Read error: Connection reset by peer]
SpiffTR has quit [Quit: Leaving.]
the_drow has quit [Quit: This computer has gone to sleep]
StoneCyp1er has joined #ruby
eightbitraptor has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 248 seconds]
xall has joined #ruby
Devalo has joined #ruby
bradleyprice has joined #ruby
StoneCypher has quit [Ping timeout: 245 seconds]
SpiffTR has joined #ruby
maattdd has quit [Ping timeout: 245 seconds]
rwb has quit [Ping timeout: 265 seconds]
StoneCyp1er has quit [Ping timeout: 260 seconds]
StoneCypher has joined #ruby
xall has quit [Ping timeout: 256 seconds]
Devalo has quit [Ping timeout: 246 seconds]
pec has quit [Remote host closed the connection]
johnzorn has joined #ruby
Chair has quit [Ping timeout: 258 seconds]
GodFather has joined #ruby
brendan- has joined #ruby
jsrn_ has quit [Quit: Leaving]
mark_66 has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 260 seconds]
StoneCypher has joined #ruby
SpiffTR has quit [Quit: Leaving.]
lmc has quit [Remote host closed the connection]
lmc has joined #ruby
ascarter has joined #ruby
dionysus69 has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
antoniobeyah has joined #ruby
RobertBlack has quit [Remote host closed the connection]
Derderderd has joined #ruby
RobertBlack has joined #ruby
swills has quit [Quit: Leaving]
IsoLinCHiP has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
xall has joined #ruby
StoneCypher has quit [Read error: Connection reset by peer]
tau has joined #ruby
Derderderd has quit [Ping timeout: 265 seconds]
<IsoLinCHiP>
Hi. I am having trouble accessing a berkeley db in ruby. db-utils and python are both able to extract data from it, but DBM does not load any keys. The gem 'bdb' wont build under my current ruby version and 'bdb1' complains it cant find libdb, even though I have installed every libdb(*-dev) package my distro has to offer. Any suggestions?
StoneCypher has joined #ruby
JoshS has joined #ruby
RobertBlack has quit [Ping timeout: 256 seconds]
aupadhye_ has quit [Quit: Leaving]
hfp_work has quit [Ping timeout: 252 seconds]
nadir has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 260 seconds]
hfp_work has joined #ruby
jshjsh has joined #ruby
n008f4g_ has quit [Ping timeout: 268 seconds]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
<havenwood>
IsoLinCHiP: DBM, SDBM, GDBM, etc ship with Ruby in the stdlib.
<IsoLinCHiP>
havenwood: Oh, derp. Ok, will try that, thanks
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
nowhere_man has joined #ruby
shadeslayer has quit [Remote host closed the connection]
hotpanca_ has quit [Ping timeout: 240 seconds]
beilabs_ has joined #ruby
dar123 has joined #ruby
JoshS has quit [Quit: Leaving]
conta has joined #ruby
hotpanca_ has joined #ruby
beilabs_ has quit [Remote host closed the connection]
dar123 has quit [Client Quit]
beilabs has quit [Ping timeout: 248 seconds]
StoneCypher has quit [Quit: Lost terminal]
hotpancakes has quit [Read error: Connection reset by peer]
conta has quit [Quit: conta]
shadeslayer has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
<IsoLinCHiP>
Ok, so the included versions of (G/S)DBM still cant read the db file. SDBM just creates two empty files and GDBM complains about a bad magic number.
synthroi_ has joined #ruby
<IsoLinCHiP>
DBM also just creates the empty files
dar123 has joined #ruby
swills has joined #ruby
<IsoLinCHiP>
And if I specify DBM::READER in DBM.open it just claims the file does not exist, no matter if I append the '.db' or not
synthroid has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby
cschneid_ has joined #ruby
rwb has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
synthroid has joined #ruby
GodFather has joined #ruby
bronson has joined #ruby
futilegames has joined #ruby
gbgdev has joined #ruby
synthroi_ has quit [Ping timeout: 246 seconds]
gbgdev_ has quit [Ping timeout: 264 seconds]
hotpancakes has quit []
ishe_ua has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 248 seconds]
GodFather has quit [Ping timeout: 240 seconds]
bocaneri has quit [Read error: Connection reset by peer]
<djellemah>
IsoLinCHiP: I've had success with https://github.com/ruby-bdb/bdb and a small tweak which doesn't load the tuple gem, and sets Tuple = Marshal
ogn has quit [Ping timeout: 248 seconds]
GodFather has joined #ruby
minimalism has joined #ruby
<djellemah>
probably impacts performance somewhat, but I don't care about that in my use case.
kuSuSE has quit [Read error: Connection reset by peer]
<IsoLinCHiP>
djellemah: Sounds promising, I am trying that now. Ok, So I was actually able to build a gem from it and bundle it, but now I am at a total loss how to use it.
koldbrutality has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
rwb has quit [Ping timeout: 252 seconds]
frozengeek has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
ogn has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
reverberations has joined #ruby
whathappens has quit [Quit: Leaving...]
<djellemah>
IsoLinCHiP: You can install from a .gem file, so gem install pkg/bdb-0.2.6.5.gem should do it.
Devalo has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
Devalo has quit [Ping timeout: 246 seconds]
ogn has joined #ruby
nankyokusei has quit [Remote host closed the connection]
ur5us has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 252 seconds]
Derderderd has joined #ruby
lenwood has joined #ruby
ramfjord has joined #ruby
Fernando-Basso has joined #ruby
<IsoLinCHiP>
djellemah: Actually I am using bundler, but that was not my intended question. :) I was trying to ask, how the heck I use 'bdb' to open the db now. :D Anyway, meawhile I found 'sbdb' which abstracts it, wrote a gemspec for it and seem to finally have access to my DB with SBDB::Hash.open(). So thanks for getting me on the right track! :)
<djellemah>
Glad I could help. Even if I was mostly just the rubber duck ;-)
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lenwood has quit [Ping timeout: 248 seconds]
Sou|cutter has joined #ruby
bgray is now known as bgray_
bgray_ is now known as bgray
sparch has quit [Ping timeout: 252 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
JoshS has joined #ruby
muelleme has joined #ruby
harai_ has joined #ruby
nofxx has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
antoniobeyah has quit [Quit: antoniobeyah]
jshjsh has joined #ruby
ur5us has joined #ruby
dar123 has joined #ruby
bronson has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
djellemah_ has joined #ruby
antoniobeyah has joined #ruby
djellemah has quit [Disconnected by services]
djellemah_ is now known as djellemah
bronson has quit [Ping timeout: 240 seconds]
Derderderd has quit [Ping timeout: 260 seconds]
Definity has joined #ruby
johnmilton has joined #ruby
sagax has joined #ruby
Devalo has joined #ruby
ldnunes has quit [Quit: Leaving]
sparch has joined #ruby
ruskie has joined #ruby
rodfersou has quit [Quit: leaving]
jge_ has joined #ruby
dtzu has joined #ruby
yehowyada has joined #ruby
<jge_>
hey all, could anyone help me. I'm trying to get a redmine installation going, it was working fine 2 days ago but somewhere in between I installed passenger for apache and it stopped working.. im not sure what broke but when I try to start it I get this: https://paste.sh/tw2U0GzT#lBc-NJRIEl2DoKOMjhcK2V_I
jgt has joined #ruby
<jge_>
anyone that can shed some light ?
millerti has joined #ruby
Derderderd has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
webopsx has joined #ruby
<epitron>
jge_: that's an error parsing yaml
<epitron>
(Psych is a yaml parser)
SpiffTR has joined #ruby
<epitron>
from /root/redmine-home/lib/redmine/configuration.rb:86:in `load_from_yaml'
<epitron>
looks like your config is broken
millerti has quit [Client Quit]
naprimer_3 has joined #ruby
<jge_>
epitron: hmm i see, yeah I dont remember changing anything there but let me check
<jge_>
epitron: thank you
webopsx has quit [Client Quit]
cdg has joined #ruby
<epitron>
hope that helps!
n008f4g_ has joined #ruby
johnmilton has quit [Remote host closed the connection]
naprimer_2 has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
<jge_>
epitron: looks like a syntax mistake inside of configuration.yml
<jge_>
which gets called from configuratio.rb
tvw has quit [Remote host closed the connection]
<jge_>
fixed! thank you :D
<epitron>
np
troys_ is now known as troys
ruskie has left #ruby ["..."]
johnny56 has quit [Ping timeout: 246 seconds]
johnny56 has joined #ruby
pawnbox has quit [Remote host closed the connection]
brendan- has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 250 seconds]
careta has joined #ruby
jaegerca has quit [Read error: Connection reset by peer]
<careta>
how can I get a MAC address of something in the LAN?
<ytti>
by sending ARP/ND query?
gusrub has joined #ruby
<careta>
ytti, in ruby of course
A124 has quit [Ping timeout: 258 seconds]
Definity has quit [Ping timeout: 250 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
j3r0 has quit [Ping timeout: 252 seconds]
torQue_ has joined #ruby
torQue_ has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
agent_white has joined #ruby
bronson has joined #ruby
<eam>
careta: is it something you're already talking to?
<eam>
if this is linux you can just read peer macs from /proc/net/arp
<eam>
if your need is more complex than fetching from the cache you'll have to describe what "something" is in a bit more detail -- as in how do you wish to identify the thing?
synthroid has quit []
<careta>
eam, I have the IP address and would like to do it in a OS-agnostic way
bronson has quit [Ping timeout: 264 seconds]
<careta>
it's on my LAN, so I should be able to see the MAC
LuckyABA has joined #ruby
brendan- has joined #ruby
LuckyABA has quit [Client Quit]
nankyokusei has joined #ruby
<ytti>
nothin stopping generating ARP/ND packet from ruby
Macaveli has joined #ruby
LuckyABA has joined #ruby
xen0fon has quit [Quit: xen0fon]
<eam>
careta: you have to send it traffic to see the MAC
<eam>
ARP is done through raw sockets, which means you need root
xen0fon has joined #ruby
<eam>
it's generally easier to send the IP some traffic via some non-root mechanism and then check the arp cache
<eam>
arp interaction is not going to be OS agnostic, though
xall has quit [Ping timeout: 240 seconds]
<careta>
hmm I see
dtzu has quit [Ping timeout: 248 seconds]
<careta>
ok thanks for the help
troys is now known as troys_
tubuliferous has joined #ruby
[Butch] has joined #ruby
tercenya_ has joined #ruby
sepp2k has joined #ruby
Jackneill has quit [Remote host closed the connection]
sepp2k has quit [Client Quit]
tercenya has quit [Ping timeout: 268 seconds]
ferr1 has quit [Ping timeout: 252 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yasm has joined #ruby
jenrzzz has joined #ruby
yasm has quit [Client Quit]
tyang has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
nhOmega has joined #ruby
tildes has joined #ruby
djbkd has quit [Quit: My people need me...]
ferr1 has joined #ruby
brendan- has joined #ruby
byte512 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
<nofxx>
careta, I did a gem for this, 'hooray'
<nofxx>
great to find the pis and bbbs on the network
sagax has quit [Ping timeout: 264 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SpiffTR has quit [Quit: Leaving.]
spiette has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<epitron>
whoa, that 'macaddr' gem has 6.1 million installs
<epitron>
i wonder what's using that
<miah>
metasploit? =)
djbkd has joined #ruby
<miah>
or like.. puppet/chef ?
ramfjord_ has joined #ruby
<epitron>
i thought it was metasploit at first, but i didn't see a gem for it
<pilne>
but the fact that it even exists tickles me
<marchelzo>
pi is rational
<marchelzo>
Q.E.D.
<epitron>
aww, BigDecimal doesn't have .rationalize
<pilne>
lol, no, but it can be approximated in a standardized way to x decimals.
<marchelzo>
ri TCPSocket also doesn't do anything
<epitron>
i can't get a crazier pi fraction
<epitron>
marchelzo: i guess your ruby install doesn't have ri docs
<epitron>
if you use ruby-install/rvm/whatever, you'll get ruby docs
<marchelzo>
it does stuff for other classes
<pilne>
i haven't tried, but it could probably be implemented, easily knowing ruby's malleability
<epitron>
i can see ri for TCPSocket on my machine
<marchelzo>
:/
<epitron>
marchelzo: here's a workaround: "cd TCPSocket; ls"
<marchelzo>
that works
<epitron>
marchelzo: oh, you can run ? on the individual methods
<epitron>
the class itself just doesn't have docs
<marchelzo>
the constructor is what i wanted docs for
<epitron>
? TCPSocket#initialize
<pilne>
tdd/bdd seems very prominent in the ruby world, i'm trying to get a feel for it, i come from a land of pretty strict compilers formally.
<marchelzo>
epitron: ohh
<marchelzo>
i was trying ? TCPSocket.new
<epitron>
pilne: reading some other people's testing code is a good place to start
<epitron>
marchelzo: ? ClassName usually works
<marchelzo>
thanks
<epitron>
it looks like it's not working on builtin classes
<epitron>
bug!
<pilne>
i'm also voraciously consuming a few different titles at a rate i can understand, all ruby based and things i'm interested in pursuing with it :)
dnicole has joined #ruby
<epitron>
that sounds exciting!
kingfeast has left #ruby [#ruby]
<pilne>
it keeps me sane while work attempts to kill my very soul :)
<pilne>
that and warcraft
<epitron>
hah
bradleyprice has joined #ruby
troys is now known as troys_
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
flying has quit []
bovis has quit [Quit: leaving]
<pilne>
oooh, i'll make a lisp in ruby (following a tutorial of course)!
<epitron>
i think i saw someone who made a lisp out of ruby arrays
<epitron>
[:if, [:>, [:+, 5, 6], 3], [...] ]
<epitron>
there's more commas, but it saves on a parser :)
<epitron>
square brackets are easier to type too
<pilne>
i've found several awesome examples :)
<epitron>
bam
Madplatypus has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
cdg has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
marxarelli has joined #ruby
jaegerca has joined #ruby
<jaegerca>
If any of you were writing a utility method that did something to a file, would you write it in a module or a class?
<jaegerca>
ModifyFile.doit vs ModifyFile.new
workmad3 has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
hightower3 has joined #ruby
<marchelzo>
pilne: you are new to ruby?
biberu has quit [Read error: Connection reset by peer]
koooge has joined #ruby
BTRE has quit [Quit: Leaving]
<marchelzo>
does anyone know of a good tutorial on writing C extensions in ruby
hightower2 has quit [Ping timeout: 240 seconds]
<pilne>
sorta, i've poked a bit at it before, but i never put it all together until after exploring both lisps and smalltalk
<marchelzo>
pilne: what's the strict compiler you're coming from
<pilne>
formal education was c++99, and java 1.2. dabbled in a whole buncha things, i'm oddly fascinated by haskell since re-picking up programming as a hobby a couple years ago
<marchelzo>
you mean c++98?
nankyokusei has joined #ruby
<pilne>
yes i guess
<marchelzo>
so you're not employed as a programmer?
cajone has joined #ruby
<havenwood>
jaegerca: A module is the simpler thing. Use a class if you have state to instantiate. Mixin singleton if there's only one instance of the state.
<pilne>
nope, i'm a corporate peon in the cogs of the UPS machine
cajone has left #ruby [#ruby]
nankyokusei has quit [Ping timeout: 250 seconds]
<jaegerca>
havenwood: Yeah, I decided to just extend the file_utils module. Thanks!
troys_ is now known as troys
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]