<arubin>
But I assume that this code is surrounded by more code.
<gizmore>
>> a, b = (i%2) * 16, (i/2) * 16
<eval-in>
gizmore => undefined local variable or method `i' for main:Object (NameError) ... (https://eval.in/128455)
<arubin>
Which would explain the comma.
<The_NetZ>
arubin: calculating the size of a bitmap tile, or sommat, been working on rewriting a ruby script as a gem, and yeah, the , separates two parameters to another method
<gizmore>
>> a, b = (31337%2) * 16, (31337/2) * 16
<eval-in>
gizmore => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/128473)
<wallerdev>
ah, i love os x, cant realy use anything else these days, windows has the worst terminal in existence, and linux is missing a lot of my favorite apps
<wallerdev>
but whatever works for you :)
<benzrf>
wallerdev: what apps
<gizmore>
>> [1,2] - [1]
<crome>
linux has everything I need, I would keep windows for a few games I occasionally play
<gizmore>
like minesweeper
chichou has quit [Ping timeout: 268 seconds]
<Solnse>
I only go to my windows partition for Adobe creative suite.
<The_NetZ>
gizmore: minesweeper is actually pretty fun, lol.
<crome>
and solitaire
<wallerdev>
probably the biggest things id miss would be textmate and wirecast
<gizmore>
i play vegas mode B)
ghr has joined #ruby
<crome>
I have vim
<crome>
I dont need anything else ;>
<gizmore>
vim wins
SCommette has joined #ruby
<wallerdev>
yeah i used to use emacs for awhile
<gizmore>
now you use em intel
<wallerdev>
and i use vim when im ssh'ing and emacs is missing haha
<wallerdev>
i love how mac textboxes use emacs shortscuts
<wallerdev>
like you can do ctrl+A to go to beginning of line and ctrl+K to cut the line etc
<crome>
at one point I totally decided to get into emacs and learn the basics so at least I can have a valid viewpoint on both of them
<gizmore>
i looked a lot on a tool that is available always
<wallerdev>
emacs has an amazing js-mode
<gizmore>
it turned out sed is working on 100% of the boxes and is 100% the same
<gizmore>
so i only use sed as editor
<crome>
and then I did `vim .emacs`
greggroth has joined #ruby
<crome>
and I was like, "haha. fuck this shit"
<wallerdev>
ive also done some iphone development, which isnt really a good option on linux haha
<benzrf>
wallerdev: use vim
<benzrf>
vim vim vim
<wallerdev>
ive used vim and emacs
<wallerdev>
i still prefer textmate haha
<benzrf>
well youre wrong
<The_NetZ>
anything but apple shit :P
evenix has quit [Remote host closed the connection]
<Solnse>
where do you get these opinions? lol
<benzrf>
you must not know vim very well
<wallerdev>
since all the shortcuts match up with every other program i use
<Solnse>
oh yeah, the hive mind
<The_NetZ>
what is the latest ruby available on mac, btw?
Hobogrammer_ has quit [Ping timeout: 268 seconds]
<wallerdev>
you can install any version of ruby on mac
<benzrf>
The_NetZ: the latest one period id imagine
<crome>
The_NetZ: rbenv does the finest and latest
<benzrf>
u can always source build
<gizmore>
The_NetZ: try git pull
<The_NetZ>
yeah, but I hear source building on win isn't working for latest as of yet...
<postmodern>
The_NetZ, Mavericks comes with 2.1.0 i believe
<The_NetZ>
so I was wondering about mac.
<gizmore>
The_NetZ: try cygwin
<wallerdev>
building anything on windows is a mess
BuSerD has joined #ruby
<wallerdev>
not sure why anyone would do ruby dev on windows
ghr has quit [Ping timeout: 240 seconds]
<The_NetZ>
gizmore: could, but I don't want to produce a program depending on cygwin.
<The_NetZ>
*the cygwin dll
<postmodern>
The_NetZ, if you are on windows, download virtualbox or vmware player, and bootup a Linux VM
<gizmore>
The_NetZ: go linux
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<gizmore>
like tap?
<SJr>
Do you know what signals are?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<The_NetZ>
gizmore: it gives you an underaged cross-dresser o.0
<wallerdev>
signal trap basically watches for an exception and does something when it sees it
<SJr>
Essentially you can asynchronously send a message to a process, when that message is sent (coded by a number, where some numbers mean INT or TERM,etc). that function is called.
pietr0 has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
<gizmore>
how many sigs are there?
<gizmore>
i hook like 2
<SJr>
Depends on the OS
<shevy>
you can even send kill signals
<The_NetZ>
gizmore: linux has at least 15, that's sigterm, I think...
<shevy>
yeah
<shevy>
I think 9 is sigkill
<SJr>
At least 32
<wallerdev>
theres millions
<gizmore>
you cannot stop -9
<shevy>
3 is probably sigsexy
<shevy>
I like 9
<wallerdev>
your manpage will list the signals on your system
<gizmore>
there are 40 signals!!! good look with -9
danno1 has quit [Ping timeout: 264 seconds]
<shevy>
I can play music with my kernel signals!
<gizmore>
shevy: we use base40 encoding for signalstreams
<shevy>
Signal.trap('SIGINT') { exit }
b00stfr3ak has quit [Ping timeout: 252 seconds]
<gizmore>
signalfs
<gizmore>
it lives in the logfiles
Mortix has joined #ruby
jorts has quit [Ping timeout: 255 seconds]
GaryOak_ has quit [Remote host closed the connection]
WJB has quit []
<Mortix>
hi guys, is ruby a multi platform language? means if i compile a script to exe on linux it will work on any windows as well?
<SJr>
Interesting...
<wallerdev>
theres no compiling, but you can run it on both
<shevy>
Mortix ruby works on windows and osx, you can not compile it though
<gizmore>
Mortix: try python
<Mortix>
well there is ruby to exe
<Mortix>
just like python
GodPuppet has joined #ruby
<shevy>
I would not trust that
<centrx>
There's mruby
<The_NetZ>
Mortix: rubyscript2exe is long dead, methinks.
<shevy>
but your original question - multi platform language. Answer: Yes.
<gizmore>
activeruby.exe,. no?
<Mortix>
but you got to have ruby installed on the computer...
<shevy>
yeah
<shevy>
just like you got java installed
Celm has quit [Remote host closed the connection]
<shevy>
:)
<gizmore>
ruby on windows can be a pain?
<wallerdev>
yeah if you want to make windows apps id recommend a language like c#
<shevy>
nah, ruby on windows works well
<shevy>
the problem is he wants to put everything into an .exe
<Mortix>
i'm looking for language that can complied to exe and will work on any linux/windows os
pietr0 has quit [Quit: pietr0]
<shevy>
yeah, you will have to go the java or c# way
<wallerdev>
what kind of program are you making? gui or something?
<Mortix>
no
<Mortix>
without a gui
<gizmore>
you can just ship something with ruby interpreter included?
<St_Marx>
yeah, go Java... "write once, debug forever..."
Jetchisel has quit [Ping timeout: 252 seconds]
tmoore has joined #ruby
<wallerdev>
yeah c++ or java would be reasonable choices then
<gizmore>
like mygame/ruby.exe imsogame/mygame.rb
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robert_ has quit [Read error: Connection reset by peer]
ukd1 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
meatherly has joined #ruby
funktor has quit [Remote host closed the connection]
greggroth has joined #ruby
chris_thomson has joined #ruby
<SJr>
Sorry I'm not a ruby person, how do I figure out the type of an exception easily.
robert_ has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
lukec has joined #ruby
greggroth has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
jeregrine has quit [Quit: Connection closed for inactivity]
spicerack has joined #ruby
gancl has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
sepp2k has joined #ruby
razrunelord has quit []
wallerdev has quit [Quit: wallerdev]
doodlehaus has joined #ruby
rezzack has quit [Read error: Operation timed out]
yfeldblum has quit [Ping timeout: 240 seconds]
sepp2k has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
ferr has quit [Quit: Leaving.]
yfeldblum has joined #ruby
BuSerD has quit [Quit: Lost terminal]
doodlehaus has quit [Remote host closed the connection]
markisonfire has quit [Quit: markisonfire]
sepp2k has joined #ruby
eynj has left #ruby [#ruby]
zigomir has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
asteros has joined #ruby
hiall has quit [Quit: hiall]
asteros has quit [Client Quit]
Deele has joined #ruby
smathieu has quit [Remote host closed the connection]
mikepack has joined #ruby
<pipework>
SJr: Ask for its class?
smathieu has joined #ruby
<SJr>
thanks, I found it :)
charliesome has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
lukec has quit [Quit: lukec]
meatherly has quit [Remote host closed the connection]
ndrei has joined #ruby
meatherly has joined #ruby
rvraghav93 has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 255 seconds]
bricker`LA has quit [Ping timeout: 264 seconds]
rvraghav93_ has quit [Ping timeout: 268 seconds]
kyb3r_ has joined #ruby
YamakasY has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
Slavox is now known as Slavox|AFK
jeregrine has joined #ruby
chipotle has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
Celm has joined #ruby
tvw has quit [Ping timeout: 268 seconds]
YamakasY has quit [Ping timeout: 265 seconds]
jaywastaken has quit [Quit: Leaving]
Stalkr_ has quit [Quit: Leaving...]
benzrf|offline is now known as benzrf
<benzrf>
hej da
<benzrf>
Mon_Ouie: still afk?
Celm has quit [Ping timeout: 265 seconds]
Slavox|AFK is now known as Slavox
Brian485 has joined #ruby
patrick99e99 has joined #ruby
george2 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 268 seconds]
otherj has quit []
teddyp1cker has joined #ruby
rvraghav93 has quit []
rvraghav93 has joined #ruby
dik_dak has quit [Quit: Leaving]
manacit has joined #ruby
jamto11 has joined #ruby
peta_ has quit [Quit: peta_]
diegoviola has joined #ruby
ukd1 has quit [Remote host closed the connection]
Cache_Money has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
greggroth has joined #ruby
hiatobr has joined #ruby
jetblack has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 268 seconds]
ukd1 has quit [Remote host closed the connection]
r_rios has quit [Ping timeout: 255 seconds]
Brian485 is now known as Brian485_
saarinen has joined #ruby
Brian485_ is now known as Brian_485
wallerdev has joined #ruby
Brian_485 is now known as Brian485
r_rios has joined #ruby
brandonjmckay has joined #ruby
brandonjmckay has left #ruby [#ruby]
njection has quit []
danno1 has joined #ruby
njection has joined #ruby
njection has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
speakingcode has joined #ruby
Zordrak has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
thomasxie has joined #ruby
tectonic has quit []
endash has quit [Quit: endash]
endash_ is now known as endash
thomasxie has quit [Client Quit]
chipotle has quit [Quit: cya]
WJB has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
rahult is now known as rahult_
juarlex has joined #ruby
whatasunnyday has joined #ruby
rvraghav93 has quit [Ping timeout: 252 seconds]
sass has joined #ruby
The_NetZ has quit [Quit: leaving]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luxe_ has joined #ruby
IceDragon has quit [Quit: Space~~~]
IceDragon has joined #ruby
juarlex has quit [Remote host closed the connection]
<whatasunnyday>
!help
<whatasunnyday>
Can I cross list something I posted in RoR?
jason__ has quit [Remote host closed the connection]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
alexju has joined #ruby
markisonfire has joined #ruby
markisonfire has quit [Client Quit]
funktor has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
binaryhat has quit [Quit: Leaving]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deens has quit [Remote host closed the connection]
TheShaun has joined #ruby
larissa has quit [Quit: Leaving]
browndawg has joined #ruby
bradhe has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
kyb3r_ has quit [Quit: Leaving]
kyb3r_ has joined #ruby
luxe_ has quit [Quit: Leaving]
dx7 has joined #ruby
SCommette has quit [Quit: SCommette]
<centrx>
whatasunnyday, You can if no one answered in #rubyonrails
<whatasunnyday>
centrx thanks
rvraghav93 has joined #ruby
<centrx>
whatasunnyday, You can anyway, if you say that it is cross-posted, but it is usually polite/most useful to just wait and see if one channel answers
m0s is now known as m0s^away
<benzrf>
>tfw Mon_Ouie remains afk despite no indication as such
<centrx>
benzrf, You should ask him out on a date
<centrx>
benzrf, He might even be gone for the weekend!
mary5030 has joined #ruby
<benzrf>
:|
funktor has quit [Remote host closed the connection]
fabrice31 has joined #ruby
marcdel_ has joined #ruby
Brian485 has quit [Quit: Leaving]
carlyle has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
Brian485 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<centrx>
benzrf, What, you don't like hanging out with me!?
maximski has joined #ruby
r0nin has quit [Remote host closed the connection]
RaptorJesus_ has joined #ruby
maximski has quit [Client Quit]
<benzrf>
centrx: dont take this the wrong way...
decoponio has joined #ruby
maximski has joined #ruby
<centrx>
haha
wallerdev has quit [Quit: wallerdev]
<centrx>
benzrf, Have you seen the lee7 Ruby hack with the potatos?
<RubyPanther>
maybe %// is even better, I'm not sure
CTHULHU is now known as RaptorJesus
Cydrobolt has joined #ruby
RaptorJesus is now known as PassionOft3hChri
speakingcode has joined #ruby
PassionOft3hChri is now known as RaptorJesus
pfg has joined #ruby
marcdel has joined #ruby
<centrx>
:)
<centrx>
Glad someone likes it.
<centrx>
The peanut gallery was really getting on my case before about it.
<centrx>
Of course I kept repeating it every day like it was new, so it can get old
kitak has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
RaptorJesus is now known as RaperJesus
nffff has joined #ruby
RaperJesus is now known as RaptorJesus
_justin has quit [Quit: _justin]
sambao21 has joined #ruby
deens has quit [Remote host closed the connection]
ghr has joined #ruby
yfeldblu_ has joined #ruby
MatthewsFace has joined #ruby
mary5030 has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
MatthewsFace has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 268 seconds]
michaeldeol has joined #ruby
endash_ has quit [Quit: endash_]
ghr has quit [Ping timeout: 268 seconds]
mikepack has joined #ruby
danno1 has quit [Ping timeout: 255 seconds]
deens has joined #ruby
jarray52 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
bradhe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Quit: Leaving...]
rvraghav93 has quit [Quit: No Ping reply in 180 seconds.]
danno1 has joined #ruby
rvraghav93 has joined #ruby
browndawg has quit [Quit: Leaving.]
beneggett has joined #ruby
Dude007 has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
kil0byte has joined #ruby
<Dude007>
Hi, anyone has got an idea how to change an element of an array based on it's index?
_justin has joined #ruby
chris_thomson has quit [Quit: Zzz...]
MatthewsFace has joined #ruby
macmartine has quit [Remote host closed the connection]
armyriad has quit [Quit: Leaving]
macmartine has joined #ruby
kobain has joined #ruby
<Dude007>
aha. array.collect.with_index :)
_justin has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
Astralum has joined #ruby
macmartine has quit [Ping timeout: 265 seconds]
kyb3r_ has quit [Ping timeout: 252 seconds]
Celm has joined #ruby
chipotle has joined #ruby
Splourian has left #ruby [#ruby]
fabrice31 has quit [Ping timeout: 255 seconds]
Celm has quit [Ping timeout: 265 seconds]
_justin has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
speakingcode has quit [Ping timeout: 268 seconds]
bricker`LA has quit [Ping timeout: 268 seconds]
arietis has joined #ruby
x77686d has joined #ruby
coder_neo has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Quit: This computer has gone to sleep]
_justin has quit [Quit: _justin]
coder_neo has quit [Client Quit]
x77686d has quit [Ping timeout: 255 seconds]
kil0byte has quit [Ping timeout: 265 seconds]
kobain has quit []
skammer has joined #ruby
akitada has joined #ruby
armyriad has joined #ruby
mostlybadfly has joined #ruby
kotakotakota has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
kotakotakota has quit [Client Quit]
mr_snowf1ake has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
RaptorJesus is now known as IHATEYOU
IHATEYOU is now known as RaptorJesus
Shidash has joined #ruby
MatthewsFace has joined #ruby
_justin has joined #ruby
Lucky_Red has joined #ruby
browndawg has joined #ruby
davedev24 has quit [Remote host closed the connection]
nbezzala has joined #ruby
abdulsattar has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
_justin has quit [Quit: _justin]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has joined #ruby
Splourian has joined #ruby
danno1 has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
danno1 has joined #ruby
bg451 has joined #ruby
derek_c has joined #ruby
kil0byte has joined #ruby
teddyp1cker has joined #ruby
rm_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
kil0byte has quit [Ping timeout: 240 seconds]
rvraghav93 has quit [Quit: No Ping reply in 180 seconds.]
<bg451>
Does anyone know if there are libraries or ways to convert a string representation of a hash to an actual hash? Eval doesn't work because theres a nested hash. Here's an example of the data I'm using http://pastebin.com/rV7MemUe
lxsameer has joined #ruby
YamakasY has joined #ruby
Celm has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
danno1 has quit [Ping timeout: 255 seconds]
deens has quit [Remote host closed the connection]
rvraghav93 has joined #ruby
__VenTys__ has quit [K-Lined]
mesamoo has quit [Quit: Konversation terminated!]
Celm has quit [Ping timeout: 265 seconds]
<jarray52>
I have the following piece of Ruby code that comes from Rails Middleware. https://dpaste.de/555T env.class is Hash and flash.class and session.class are NilClass. How can the if statement possibly modify the value of the key 'rack.session' in the env hash? I observed a change between lines 1 and 7.
jzig has quit [Remote host closed the connection]
jamto11 has joined #ruby
browndawg has quit [Read error: Connection timed out]
x77686d has joined #ruby
browndawg has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
Doppp has joined #ruby
x77686d has quit [Ping timeout: 255 seconds]
<jarray52>
bg451: What does the string representation of the Hash look like?
Aquilo has quit [Remote host closed the connection]
Aquilo has joined #ruby
<bg451>
I figured it out
<bg451>
but if you want to know, I posted the pastebin link earlier.
<jarray52>
sorry...missed that.
carlyle has joined #ruby
<jarray52>
eval(the_string) should work.
<bg451>
eval doesnt work when there are nested hashes
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bg451>
so i ended up doing a bunch of gsubs to convert that hash into a string representation of json, then did JSON.load(json_string)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
bg451 has quit [Quit: bg451]
jottr has joined #ruby
wykydtron has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
mercwithamouth has joined #ruby
rvraghav93 has joined #ruby
mengu has joined #ruby
wykydtron has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
<shevy>
fly2web who knows why the server does not respond, I don't think anyone here hosts it ;P
mikepack has quit [Ping timeout: 268 seconds]
<shevy>
fly2web why don't you simply start reading
<fly2web>
ok shevy
<fly2web>
i will start read it.
spider-mario has joined #ruby
<fly2web>
i just know about ruby’s strength comparing to python or perl?
<fly2web>
before starting.
<fly2web>
i just want know about ruby’s strength comparing to python or perl before starting.
<j416>
fly2web: ruby and python are more or less on-par, perl has uglier syntax but is more widely supported across systems
Slavox is now known as Slavox|AFK
pfg has joined #ruby
<fly2web>
ok thanks j416
chrisseaton has quit []
<fly2web>
and one more question.
<shevy>
fly2web in the long run it really does not matter, but you need to decide on a language and then invest enough time to become really good in it
caustic has joined #ruby
<fly2web>
ruby is related with hacking?
mengu__ has joined #ruby
<shevy>
what kind of question is that
<shevy>
ruby is general purpose
<shevy>
you use it for whatever you want to
<fly2web>
ok i see shevy
mengu has quit [Ping timeout: 255 seconds]
<shevy>
popl I am beginning to see what you mean :D
jottr_ has joined #ruby
jottr has quit [Read error: Operation timed out]
jollyy has joined #ruby
carraroj has joined #ruby
jollyy has quit [Client Quit]
dx7 has joined #ruby
<Hanmac>
shevy: its like C or ASM is related to hacking ;P
<slopjong>
i'm getting /usr/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'childprocess' (~> 0.3.7) - did find: [childprocess-0.5.2]
<slopjong>
to be honest, i'm not a ruby guy, i don't know how to fix the dependency issue, my system is up-to-date
<shevy>
can you chain a few more methods to this line :P
<DaniG2k>
:P
<apeiros>
DaniG2k: does search *expect* a method name?
<shevy>
and did you do: source = __method__
<apeiros>
because just because you want it to, doesn't make it so…
<Mon_Ouie>
benzrf: Testing on this example seems to work for the little that I tried so far (just puts on both clients and disconnecting with ^D): https://gist.github.com/9854790
<shevy>
btw
nopolitica has joined #ruby
<shevy>
it's annoying that you paste only one line of code, others have no idea what the heck is url and source :(
klaut_ has quit [Remote host closed the connection]
<Mon_Ouie>
The error seems to be DRb::DRbServerNotFound (raised on the server). Not sure why, since I thought DRb maintained different current servers for each thread.
_justin has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
gancl_ has joined #ruby
tvw has quit []
_justin has joined #ruby
gancl has quit [Ping timeout: 268 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
skammer|afk is now known as skammer
blackmes1 has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 255 seconds]
<benzrf>
o.o
<DaniG2k>
my god the nokogiri documentation is aweful
<DaniG2k>
doesnt make any sense
<DaniG2k>
how do i access an id within a div?
<DaniG2k>
i tried with div[@id='id-name']
<DaniG2k>
but it doesnt work
rm_ has quit [Remote host closed the connection]
<DaniG2k>
is there a list of nokogiri's html page attributes?
<DaniG2k>
and how to access them
rm_ has joined #ruby
<apeiros>
DaniG2k: nokogiri docs are not supposed to replicate css-/xpath-selector docs o
<apeiros>
-o
<shevy>
DaniG2k don't worry
<shevy>
the more XML you use, the better everything becomes
<shevy>
including the nokogiri documentation
<apeiros>
css selector for <div id="x"> is div#x
s00pcan has quit [Ping timeout: 255 seconds]
<DaniG2k>
-_-
<DaniG2k>
its written nowhere
<DaniG2k>
do people just guess this stuff?
<apeiros>
DaniG2k: no, they google "css selectors" or "xpath selectors"
yfeldblum has joined #ruby
<shevy>
DaniG2k dunno, I wouldn't touch nokogiri with a 10 yard stick myself
<shevy>
DaniG2k can't give you an alternative because I abandoned XML about 8 years ago and never went back. I let ruby autogenerate everything related to XML/html etc..
sepp2k has joined #ruby
<DaniG2k>
hmm but im using it for scraping so i kinda need it
<apeiros>
DaniG2k: are you sure your .search method expects a css/xpath selector?
<apeiros>
as in: did you read its docs?
<DaniG2k>
apeiros: I'm using Mechanize's search
<jhass>
jeffrin: generally yes, however has ruby has the modifier if, that is if you append an if to a line of code you affect only that line before the if and don't need an end
<apeiros>
that's fine and dandy, but not an answer :-p
greggroth has joined #ruby
bradhe has joined #ruby
<DaniG2k>
apeiros: "The expression given to Mechanize::Page#search may be a CSS expression or an XPath expression:"
<apeiros>
DaniG2k: then the next question would be: are you sure your page contains the body of the url you gave us?
<DaniG2k>
yes
bluOxigen has quit []
<apeiros>
then I can't help you.
<jhass>
can you prove it?
timonv has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
jollyy has quit [Client Quit]
Chronocity has joined #ruby
<ELCHILEN0>
Fixed it! Thank you!
shevy has joined #ruby
browndawg has quit [Quit: Leaving.]
pinage404 has joined #ruby
digitaldrops has joined #ruby
osvico has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 255 seconds]
digitaldrops has left #ruby [#ruby]
Solnse has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
maximski has joined #ruby
cover_ has joined #ruby
gigetoo has quit [Ping timeout: 265 seconds]
cover has quit [Ping timeout: 265 seconds]
george2 has quit [Remote host closed the connection]
jamto11 has joined #ruby
ixti has joined #ruby
pinage404 has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
saarinen has joined #ruby
tgkokk has joined #ruby
jamto11 has quit [Read error: Operation timed out]
saarinen has quit [Client Quit]
saarinen has joined #ruby
karmatr0n has quit [Remote host closed the connection]
Biohazard has joined #ruby
speakingcode has joined #ruby
freezey has joined #ruby
danno1 has quit [Ping timeout: 265 seconds]
geoffw8_ has joined #ruby
nouitfvf has joined #ruby
Celm has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
test
toastynerd has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
gancl_ has quit [Ping timeout: 255 seconds]
freezey has joined #ruby
maximski has quit []
lyanchih_ has quit [Quit: lyanchih_]
michaeldeol has joined #ruby
Aquilo has quit []
karmatr0n has joined #ruby
<linduxed>
hey guys, i was wondering where i'd report a crash in 2.1.0?
lyanchih_ has joined #ruby
brunoro has quit [Ping timeout: 240 seconds]
slopjong has quit [Ping timeout: 245 seconds]
<jhass>
as I understood it 2.1.1 is the most recent version and there will be no maintenance release for .0 (since .1 is the maintenance release for 2.1)
Celm has quit [Ping timeout: 255 seconds]
<jhass>
so first verify it with 2.1.1
jollyy has joined #ruby
bradhe has joined #ruby
rvraghav93 has joined #ruby
<linduxed>
jhass: ok, will do
mikepack has joined #ruby
_justin has quit [Quit: _justin]
freezey has quit [Ping timeout: 252 seconds]
Splourian has quit [Quit: Page closed]
pinage404 has joined #ruby
larsam has joined #ruby
Hobogrammer has joined #ruby
greggroth has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
prs_ has joined #ruby
jollyy has quit [Quit: jollyy]
nateberkopec has quit [Quit: Leaving...]
prs has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 240 seconds]
eynj has joined #ruby
nateberkopec has joined #ruby
m0s is now known as m0s^away
m8 has joined #ruby
nisstyre has joined #ruby
m0s^away is now known as m0s
chrisseaton has joined #ruby
m0s is now known as m0s^away
carlyle has joined #ruby
<jeffrin>
jhass: anyway thanks
fannye has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pushpak has joined #ruby
<benzrf>
bbloom:
<benzrf>
*bbl
benzrf is now known as benzrf|offline
dx7 has joined #ruby
eynj1 has joined #ruby
eynj1 has left #ruby [#ruby]
funktor has joined #ruby
jeffrin has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
banister has joined #ruby
chipotle has joined #ruby
eynj has quit [Ping timeout: 264 seconds]
george2 has joined #ruby
gigetoo has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
eynj has joined #ruby
jollyy has joined #ruby
Fire-Dragon-DoL has joined #ruby
mikepack has quit [Remote host closed the connection]
toastynerd has joined #ruby
demas has quit [Quit: demas]
demas has joined #ruby
carlyle has quit []
macmartine has joined #ruby
karmatr0n has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
jollyy has quit [Quit: jollyy]
benzrf|offline is now known as benzrf
jollyy has joined #ruby
klaut has quit [Remote host closed the connection]
Stalkr_ has quit [Ping timeout: 240 seconds]
brunoro has joined #ruby
stef_204 has joined #ruby
Xeago has quit [Remote host closed the connection]
jollyy has quit [Client Quit]
saarinen has quit [Quit: saarinen]
karmatr0n has joined #ruby
macmartine has quit [Remote host closed the connection]
tgkokk has quit [Ping timeout: 265 seconds]
macmartine has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
funktor has quit [Remote host closed the connection]
fannye has quit [Remote host closed the connection]
Celm_ has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
m0s^away is now known as m0s
m0s is now known as m0s^away
jottr_ has joined #ruby
mityaz has joined #ruby
geoffw8_ has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<Xeago>
apeiros: would you know why my env doesn't pick up gem executables?
r0nin has joined #ruby
x1337807x has joined #ruby
<Xeago>
(scroll up to 17:39)
michaeldeol has joined #ruby
Cache_Money_ has joined #ruby
<banister>
Xeago how do u know he's in the same timezone as you? :)
<jalcine>
you never do
DaniG2k has joined #ruby
karmatr0n has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
aspires has quit []
<DaniG2k>
guys I have a little programming question. Say I'm trying to get info from a website and I try one Nokogiri pattern but it fails. I want to have some backup strings to try in case the first fails
motto has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 255 seconds]
dvxam has quit [Quit: leaving]
<RubyPanther>
The channels with VCS bots are channels that I don't bother checking when I see activity, IMO it really harms a help channel to have bots that speak when not spoken to
frem_ has quit [Quit: Connection closed for inactivity]
Celm has joined #ruby
yfeldblum has joined #ruby
supermarin has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
timonv has joined #ruby
havenwood has joined #ruby
mengu has joined #ruby
<banister>
RubyPanther why do you tell lies
yfeldblum has quit [Ping timeout: 255 seconds]
Celm has quit [Ping timeout: 265 seconds]
<centrx>
Bots should be seen and not heard!
freezey has quit [Remote host closed the connection]
<benzrf>
=o
Xeago has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 265 seconds]
danshultz has joined #ruby
jollyy has joined #ruby
tectonic has joined #ruby
klaut has joined #ruby
loc22 has joined #ruby
skaflem has quit [Quit: Leaving]
relix has joined #ruby
peret has joined #ruby
jollyy has quit [Quit: jollyy]
otherj has quit []
chipotle has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peret has left #ruby [#ruby]
teddyp1cker has joined #ruby
cover_ has quit [Ping timeout: 268 seconds]
ndrei has joined #ruby
amclain has joined #ruby
jollyy has joined #ruby
koderok has quit [Quit: koderok]
aagdbl has joined #ruby
<apeiros>
benzrf: you have to ask fflush
<benzrf>
w/e
<benzrf>
nbd =[
ChrisAnn has joined #ruby
jajaja has joined #ruby
<apeiros>
other than that - I apply the same rule to a bot as to a human.
kennym has quit [Quit: Leaving.]
<jajaja>
What is the best way to create a complete local mirror of Rubygems?
<benzrf>
jajaja: dont
kennym has joined #ruby
arianit has joined #ruby
jamto11 has joined #ruby
<arubin>
And the second best way?
userx- has joined #ruby
cwjenkins_ has joined #ruby
jorts has joined #ruby
boombadaroomba has quit [Read error: Connection reset by peer]
deens has joined #ruby
boombadaroomba has joined #ruby
userx has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 268 seconds]
evenix has joined #ruby
<Xeago>
isn't there a downloadable archive somewhere?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Xeago>
gem install rubygems-mirror
nolic has joined #ruby
marcdel has quit []
timonv has joined #ruby
<shevy>
is there?
bradhe has joined #ruby
<shevy>
Parsing documentation for rubygems-mirror-1.0.1
<shevy>
Installing ri documentation for rubygems-mirror-1.0.1
<shevy>
Done installing documentation for rubygems-mirror after 0 seconds
<shevy>
there is
shadoi has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
CaptainJet has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby
popl has joined #ruby
popl has joined #ruby
aagdbl has quit [Quit: Leaving]
dx7 has joined #ruby
SHyx0rmZ has quit [Ping timeout: 255 seconds]
mengu has quit [Remote host closed the connection]
cwjenkins_ has left #ruby [#ruby]
jonmorehouse has joined #ruby
blackmes1 has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
Solnse has quit [Quit: lallalla?]
gigetoo has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
heftig has quit [Quit: Quitting]
Celm has joined #ruby
jollyy has quit [Quit: jollyy]
greggroth has joined #ruby
gigetoo has joined #ruby
supermarin has joined #ruby
aagdbl has joined #ruby
mikepack has joined #ruby
heftig has joined #ruby
<benzrf>
bbl
supermar_ has joined #ruby
benzrf is now known as benzrf|offline
supermar_ has quit [Read error: Connection reset by peer]
supermar_ has joined #ruby
geggam has quit [Remote host closed the connection]
Astralum has joined #ruby
jollyy has joined #ruby
superma__ has joined #ruby
supermar_ has quit [Read error: Connection reset by peer]
supermarin has quit [Ping timeout: 268 seconds]
<jajaja>
I hear
<Xeago>
shevy: it replaces the old buggy gem mirror command
<Xeago>
or it might have already been released as such, I'm a bit out of date on it
<jajaja>
shevy: I heard there were some issues with rubygems-mirror and it looks like it hasn't been maintained for 2 years
tgkokk has joined #ruby
<Xeago>
my work runs an open mirror and is part of the pool
bradhe has joined #ruby
<Xeago>
it's already in gem, isn't it?
superma__ has quit [Client Quit]
jollyy has quit [Client Quit]
<Xeago>
no, the gem mirror command requires that gem
<jajaja>
As Rubygems is around 75GB I'd need something which can be paused. There used to be something which used a local database but can't remember what it was.
loc22 has quit [Quit: Page closed]
<Xeago>
that commnad can be paused
<Xeago>
send it a SIGINT, and you can safely resume it later
<Xeago>
I don't have access to my production network right now, so can't get you stats/config :'(
CaptainJet has quit [Read error: No route to host]
Dreamer3 has quit [Disconnected by services]
<jajaja>
Great. So 'gem mirror' after installing rubygems-mirror. Updatable too?
supermarin has joined #ruby
eynj has left #ruby [#ruby]
<Xeago>
yea, there might have been a different command for that tho
<jajaja>
The last time I attempted this CouchDB was required.
Dreamer3__ has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
<Xeago>
yuck
supermarin has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
supermarin has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
tvw has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
jgoss has quit [Ping timeout: 264 seconds]
supermarin has joined #ruby
timonv has quit [Remote host closed the connection]
mesamoo has joined #ruby
samlt has joined #ruby
yfeldblum has joined #ruby
blackmes1 has quit [Quit: WeeChat 0.4.3]
weems has quit [Quit: Leaving]
jackneill has quit [Remote host closed the connection]
jcs222 has quit [Read error: Connection reset by peer]
jcs222 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
weems has joined #ruby
jollyy has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<droptone>
So I'm attemping to use mysql2 in a standalone ruby project that is going to pull values entered into a mysql database via a Rails 4 project.
<AlexRussia>
in ruby one qt bilding - with kde?
<droptone>
I am by no means a SQL ninja, I've done some work at the CLI over the years
<AlexRussia>
building?O_O
<droptone>
my question is, I need to pull the value "isapp", which is stored in the profiles table in the development database on my rails 4 project
jajaja has left #ruby [#ruby]
eynj has joined #ruby
<droptone>
I've successfully (I believe) accessed the DB via mysqlcl = Mysql2::Client.new(:host => 'localhost', :username => 'my_mysql_username', :password => 'thepassword', :database => 'mydatabase_dev"
<droptone>
)
derek_c has joined #ruby
maximski has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 240 seconds]
<centrx>
AlexRussia, Are you okay?
dangerousdave has quit [Read error: Connection reset by peer]
<centrx>
droptone, Okay
CaptainJet has joined #ruby
<AlexRussia>
centrx: what?
mikecmpbll has joined #ruby
<AlexRussia>
centrx: why you think, me don't okay?
<droptone>
so assuming that connected successfully, how would I execute a query for searching for the profiles table and grabbing the isapp value for a specific user?
<centrx>
AlexRussia, in ruby one qt bilding - with kde? Sounds like a medical disorder... :)
dangerousdave has joined #ruby
<droptone>
sorry, I'm on a shit connection right now, shell connectivity for IRC is intermittently delayed
<AlexRussia>
centrx: linking?O_O
<shevy>
AlexRussia You need to try and write complete sentence.
<AlexRussia>
shevy: :P
armyriad has quit [Ping timeout: 265 seconds]
<AlexRussia>
shevy: only kde support kde linking to Qt?O_O
<shevy>
I am not joking, it is extremely difficult to understand what you mean to say. If your question is about the ruby-qt bindings, then these are available but possibly outdated. ftp://gd.tuwien.ac.at/kde/stable/4.11.3/src/qtruby-4.11.3.tar.xz
<shevy>
what
<shevy>
is that a complete sentence
<centrx>
droptone, Looks like the method is called #query
<shevy>
AlexRussia The various KDE-libraries and basically the whole KDE-Ecosystem requires Qt available for compiling new kde-based stuff, mostly.
<centrx>
droptone, SQL would be something like SELECT * FROM profiles WHERE user_id = x --- or --- SELECT * FROM profiles P INNER JOIN users U ON P.user_id = U.id WHERE U.name = x
<droptone>
centrix: right, so for example, I've created this call, since I'm porting some of this code to a standalone ruby app from a rails 4 project, which used devise, I was slightly interested in setting the current_user variable to the database returned by a mysql query
<shevy>
AlexRussia This wiki article is a copy/paste.
<droptone>
I realize this var and the default devise current_user var would behave quite differently, but regardless, it's a cosmetic thing
petey has joined #ruby
<AlexRussia>
shevy: and fix, ofc
<droptone>
so I coded my ruby app to take a command line argument and do this:
<shevy>
Qtruby is dead, accept it.
<shevy>
Use ruby-gnome.
mikecmpbll has quit [Quit: i've nodded off.]
<droptone>
current_user = mysqlcl.query("SELECT * FROM users WHERE email='#{ARGV[0]}' LIMIT 1")
<AlexRussia>
shevy: fuuuuuuuuuuuuuuuuuuuuuu
<shevy>
"Ruby-GNOME2 2.2.0 has been released!"
<shevy>
"Posted by admin on 2014-03-09 (Sun) 09:26:19"
lyanchih_ has quit [Ping timeout: 265 seconds]
jorts has quit [Quit: jorts]
<droptone>
alexrussia: I just saw this on the wiki page, if it helps:
<droptone>
A third-party implementation, named "qtbindings" in the Rubygems repository, has been made due to the lack of active development.[4] Goals of the project include keeping an up-to-date version of the Qt framework for Ruby, as well as improving compatibility with Unix-like systems.[5] As of December 2013, it supports Ruby 2.0 and 1.9, but not 1.8.
<AlexRussia>
hate gtk :P
<AlexRussia>
love qt :P
jollyy has quit [Quit: jollyy]
petey has quit [Remote host closed the connection]
<shevy>
AlexRussia I don't really have the time to go through all the pictures, I need to work on my git skills so I can upload all my gem projects to github finally. :P
<babykosh>
hello ruby lords….
<AlexRussia>
babykosh: hello true english man
<babykosh>
I'm hunting for some nice http://middlemanapp.com/ videos on youtube can anyone direct?
__main__ has quit [Read error: Connection reset by peer]
<AlexRussia>
shevy: O_O, you dont use github BEFORE????
mrgoodcat has joined #ruby
<AlexRussia>
shevy: but, for me, seen every after :P
<shevy>
AlexRussia I used github only sporadically.
bahar has quit [Ping timeout: 264 seconds]
siwica has quit [Quit: siwica]
__main__ has joined #ruby
<AlexRussia>
shevy: like addicted? :P
<shevy>
Is there a question?
<AlexRussia>
shevy: YES
<AlexRussia>
shevy: github.com/AlexTalker/
bahar has joined #ruby
<AlexRussia>
shevy: don't be reason, every free....
yfeldblum has quit [Remote host closed the connection]
bradhe has joined #ruby
<shevy>
I have no idea what you are trying to say.
yfeldblum has joined #ruby
<AlexRussia>
shevy: asking nothing, you will be....fork my code...
<AlexRussia>
shevy: lol, i cool review AC/DC to github :P