<benzrf>
(btw: usually a bad idea to keep opening and closing the file each time - instead, consider holding onto a file handle for each channel you're in, opening when you join and closing when you part)
polysics has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
najam has quit [Quit: najam]
tvw has quit [Ping timeout: 246 seconds]
<SFPT>
It does work, I do believe.
<benzrf>
SFPT: then what are you asking about?
<SFPT>
I need help figuring out how toconnect it to IRC.
najam has joined #ruby
marr has quit [Ping timeout: 244 seconds]
agentmeerkat has joined #ruby
tildes has quit [Read error: Connection reset by peer]
<benzrf>
oh, i see
tildes has joined #ruby
<SFPT>
I simply dont know how.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: Lost terminal]
<benzrf>
you mean, you don't know how to run a ruby file?
<SFPT>
no
<SFPT>
I learned ruby from a friend
<SFPT>
I just downloaded ruby
whathappens has quit [Quit: Leaving...]
<benzrf>
oh
<benzrf>
have you used any other languages before?
ensyde has joined #ruby
<SFPT>
tons
<benzrf>
uh...
mesamoo has quit [Quit: Konversation terminated!]
<benzrf>
well, have you tried just running 'ruby script.rb'?
<SFPT>
C, TI-Basic, TI-Asm, visual basic for applications, python
<benzrf>
OK
<SFPT>
What do you mean?
<SFPT>
Just double click it
<benzrf>
well... how do you run python files?
<SFPT>
I go into the shell
<SFPT>
opn the file
<SFPT>
hit run
<benzrf>
which shell
<benzrf>
do you mean like bash, or?
<SFPT>
just the python shell
<benzrf>
then what do you mean by 'open the file'?
<SFPT>
I got into file, then open
<benzrf>
wait
<benzrf>
do you mean IDLE?
jdawgaz has joined #ruby
<SFPT>
yes.
<benzrf>
ah
<benzrf>
most people don't call that a shell
<benzrf>
i don't use windows
<benzrf>
i assume you're on windows?
<SFPT>
Yes.
<SFPT>
Win 10
<benzrf>
well, you could try opening a command prompt and then using the 'ruby' command
<benzrf>
but i don't know anything about using ruby on windows
<SFPT>
just, the normal command prompt or a special ruby thing?
<benzrf>
normal one :)
<benzrf>
pass the ruby command a file path for the script you want to run
<benzrf>
you'll probably need to install the isaac gem, though
<benzrf>
first
<SFPT>
I already have isaac
jdawgaz has quit [Client Quit]
karmatr0n has joined #ruby
<SFPT>
notise the code requires isaac gem
myntcake has quit [Ping timeout: 276 seconds]
<benzrf>
you installed isaac?
rcvalle has quit [Quit: rcvalle]
cjbischof_ has joined #ruby
<SFPT>
Yes
<benzrf>
kk
cjbischof_ has quit [Client Quit]
BtcBen has quit [Ping timeout: 240 seconds]
tsherman has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
<SFPT>
so...do I need to use the cd or dir commands?
<SFPT>
I just have the .rb file on my desktop
tsherman has quit [Max SendQ exceeded]
barajasfab has quit [Ping timeout: 250 seconds]
<benzrf>
SFPT: just pass the ruby command the path to the script
croberts has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
agent_white has quit [Quit: headinHome]
<SFPT>
so Desktop\logbotpop ?
william3 has joined #ruby
abyx has quit [Ping timeout: 246 seconds]
rkazak has joined #ruby
tref has quit [Quit: tref]
pawnbox has quit [Ping timeout: 244 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Ping timeout: 246 seconds]
najam has quit [Quit: najam]
dopie has joined #ruby
<SFPT>
I get the reply:
<SFPT>
ruby: No such file or directory -- C:\Users\SFOT\Desktop\logbotpop
lyoshajapan has joined #ruby
<SFPT>
Oh wait, I put in .rb and I get a different error
BtcBen has joined #ruby
<SFPT>
says it cannot load the file isaac
<SFPT>
gives a path
<SFPT>
but its not where isaac is, the isaac master folder is on my desktop
cjbischof_ has joined #ruby
<SFPT>
should I put the folder in the path it gives me?
cjbischof_ has quit [Max SendQ exceeded]
bronson has joined #ruby
cjbischof_ has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
zeroDivisible has quit [Ping timeout: 260 seconds]
ogpastaling has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jpfuentes2 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
lynx_eyes7 has quit [Ping timeout: 248 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
Giauzar has quit [Quit: Leaving]
bob434 has joined #ruby
ogpastaling has quit [Ping timeout: 250 seconds]
agentmeerkat has quit [Ping timeout: 260 seconds]
Gasher has quit [Quit: Leaving]
agentmeerkat has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<vishwa>
Ox0dea: nah im running a script, these are just the offending lines
x77686d has joined #ruby
<havenwood>
vishwa: Use the REPl!
<havenwood>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<havenwood>
vishwa: gem install pry pry-doc
<havenwood>
vishwa: How are you running the script?
<vishwa>
ruby script.rb
kus has quit [Read error: Connection reset by peer]
<havenwood>
vishwa: Then it does nothing as far as you can see?
<vishwa>
installing, but why pry?
<Ox0dea>
brent__: I'm not familiar enough with Fedora to know why your `gcc` appears to be a symlink to `redhat-hardened-cc1`, but that seems to be the root of the problem.
<havenwood>
vishwa: Ruby ships with IRB. Pry is a gem that provides additional niceties.
<vishwa>
well it prints the entire hash content, all I wanted to do was read into the hash.
<vishwa>
read *the json data from the txt file* into the hash
<havenwood>
vishwa: The code you've shown prints nothing.
polysics has quit [Ping timeout: 276 seconds]
<havenwood>
vishwa: (Hence the confusion.)
djbkd has joined #ruby
<vishwa>
exactly, but it's printing to screen. that's my issue, i've already commented out the rest of the code lol
_djbkd has joined #ruby
<vishwa>
havenwood: can I turn it off or something? or redirect the print
<brent__>
Ox0dea: bummer. distro hopped for a few days after beign unsuccesful w/ getting arch installed from scratch. May just go back to manjaro or ubuntu
<Ox0dea>
brent__: Arch is lovely. You should try again. ^_^
<havenwood>
vishwa: The code as you've shown prints nothing. If it's printing something you're running something you've not shown us.
<brent__>
i love the idea. i've been a big manjaro user (arch based, but no sefl isntall)
jdawgaz has joined #ruby
<brent__>
kept giving me couldn't find root on boot, and couldn't solve it for the life of me
<vishwa>
havenwood: does it make a difference that my txt file contains a json object stored as a hash?
<vishwa>
I can't think of anything else, I have no other code
<havenwood>
vishwa: Try it in Pry.
<Ox0dea>
brent__: Did you use UUIDs in your /etc/fstab?
markfletcher has joined #ruby
goglosh has quit [Quit: leaving]
karmatr0n has joined #ruby
jzigmund has quit [Read error: Connection reset by peer]
<vishwa>
havenwood: pry is making my terminal typing invisible, you see than before?
<brent__>
I followed the beginners guide, so would have done this, which looks like i did # genfstab -U /mnt >> /mnt/etc/fstab
<shevy>
RuntimeError: can't modify frozen Module
<shevy>
huh - I did not know that you can freeze modules too
juanca_ has joined #ruby
yqt has quit [Ping timeout: 252 seconds]
<vishwa>
havenwood: the issue is in my json data, but thanks for the help
vishwa has left #ruby [#ruby]
robbyoconnor has joined #ruby
hinbody has quit [Quit: leaving]
bob434 has quit [Quit: This computer has gone to sleep]
UserInNeed has quit [Ping timeout: 276 seconds]
mr_robot_ has joined #ruby
Vile` has quit [Ping timeout: 250 seconds]
markfletcher has quit [Quit: Leaving]
<Ox0dea>
brent__: Looks like you'll also need the redhat-rpm-config package, but I have no idea why.
mdih has joined #ruby
monod has quit [Quit: Sto andando via]
<brent__>
Ox0dea: you never cease to amaze me! did you see my command for genfstab? shoudl i have not used -U?
eljimmy has quit [Quit: This computer has gone to sleep]
<Ox0dea>
brent__: You should definitely have used -U.
<brent__>
It's strange, because i've had success isntalling the base before
<brent__>
however i think i may have had success using mbr and grub
flashpoint9 has joined #ruby
<brent__>
i was trying to use gpt and systemd
abyx has joined #ruby
<Ox0dea>
s/systemd/syslinux/
kent\n has joined #ruby
kent\n has joined #ruby
cpruitt has quit [Quit: cpruitt]
<brent__>
?
<Ox0dea>
Oh, right. systemd does bootloading as well now. Ignore me. :P
bruno- has quit [Read error: Connection reset by peer]
<Ox0dea>
havenwood: It's a great sequence, but it led me to realize that the Perlers are much more interested in this sort of thing.
<brent__>
I like the idea, but i also have a macbook i use, so not sure how much i would enjoy such drastic differences
mat-svol has joined #ruby
idletask has quit [Ping timeout: 252 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Spami has joined #ruby
<shevy>
brent__ ah; I use both kde and gnome stuff too. Right now I am on KDE actually but the reason for this is mostly because I have not rebooted or restarted xorg since like 3 months
bob434 has joined #ruby
<brent__>
shevy: so you have both kde and gnome installed?
<brent__>
i've been using the fedora alpha the last couple days and been enjoying gnome
<shevy>
brent__ yep, I use whatever is the most useful
<shevy>
I even use youtube-dl python script to download videos from youtube... makes me feel partially guilty since I don't use something written in ruby there
flashpoint9 has quit [Remote host closed the connection]
bob434 has quit [Client Quit]
<shevy>
ewww mkmf.rb
mat-svol has quit [Ping timeout: 248 seconds]
<brent__>
lol. i've spent the last few days doing some JS. not been enjoying it
bruno- has joined #ruby
<brent__>
learning*
<shevy>
who does! but it is the language of the browser (the monopoly, I read lately that they intend to have firefox run on chromium eventually)
lyoshaja_ has joined #ruby
benlieb has joined #ruby
<brent__>
indeed. i'm starting a bootcamp in a few weeks, that starts w/ ruby/rails and gets into javascript towards the middle. so wanted to get a taste
<brent__>
tastes like doodoo compared to ruby, at least so far
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
pawnbox has joined #ruby
jtd has joined #ruby
jdawgaz has quit [Client Quit]
BTRE has quit [Ping timeout: 240 seconds]
<jtd>
hi gang. is this where I go for Rails help? I have a stupid irb question -- there is some way to get irb to "talk" to my existing model and I cannot for the life of me remember what it is. i.e. so I can do things like "Users.all".
<jtd>
IT WAS rails console !!!
Chagel_ has joined #ruby
pelegreno_ has joined #ruby
<jtd>
so, uh, nevermind and have a lovely night :)
idletask has joined #ruby
<Ropeney>
:)
braincrash has quit [Quit: bye bye]
polysics has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
<brent__>
Ox0dea: i'm creating partitions, w/ MBR do i just mkdir and mount every partition, except swap?
_blizzy_ has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 250 seconds]
rubie has quit [Remote host closed the connection]
<Ox0dea>
brent__: The Arch Wiki is quite thorough. I'm going to abstain in the hopes that you'll get into the habit of using it. :P
rubie has joined #ruby
jdawgaz has joined #ruby
<brent__>
indeed it is, was just misunderstanding something but think i got it
IrishGringo has quit [Remote host closed the connection]
<jtd>
Even dumber question: once I get an object from my model like myuser = User.find_by_id(4) and then do a myuser.update_attributes(whatever), is there something extra I have to do to ensure that the change is saved and committed?
<jtd>
oh wait
<jtd>
myuser.save?
jdawgaz has quit [Client Quit]
* jtd
is literally, actually covered in rust, here
polysics has quit [Ping timeout: 246 seconds]
<Ox0dea>
If oxidation lasts longer than four hours...
cdg has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
karmatr0n has joined #ruby
braincrash has joined #ruby
braincrash is now known as braincras
Spami has quit [Quit: This computer has gone to sleep]
shazaum_ has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
freerobby has joined #ruby
IrishGringo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
bkxd has joined #ruby
idletask has quit [Ping timeout: 260 seconds]
jt__ has joined #ruby
shazaum_ has quit [Quit: This computer has gone to sleep]
<brent__>
Ox0dea: well got arch base installed succesfully w/ grub, now for the hard part of setting everything up
<Ox0dea>
brent__: s/hard/fun/
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<brent__>
true true
<brent__>
if i went w/ xfce or gnome to start with
<brent__>
it it easy to transition to just i3 down the road if i chose to?
<brent__>
or even enother full DE? I've never messed around w/ switching DE's on other distros
<Ox0dea>
You can just modify your ~/.xinitrc.
<Ox0dea>
DEs tend to have their own initialization files as well.
<shevy>
good oldschool
<shevy>
I could not want to study login managers in order to ... login properly :(
bruno- has quit [Ping timeout: 276 seconds]
pelegreno has quit [Remote host closed the connection]
pelegreno_ has quit [Remote host closed the connection]
pelegreno has joined #ruby
juanca_ has quit [Remote host closed the connection]
<brent__>
decisions decisions, which to install
davidcelis has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
benlieb has quit [Quit: benlieb]
MalcolmReynolds has quit [Ping timeout: 248 seconds]
klka has joined #ruby
<shevy>
I found that I can not go below e. g. fluxbox... things like ion or ratpoison and so on, does not fit my poor brain
<klka>
when using ruby c api how the executable knows where the ruby binary is located? it checks envvars?
rkazak has quit [Quit: Sleep.....ing....]
IanMalcolm has joined #ruby
chancy has quit [Remote host closed the connection]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
gix has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zast has quit [Remote host closed the connection]
<Ox0dea>
klka: How do you mean?
<Ox0dea>
If you're using Ruby as a scripting layer in your C program, there's no `ruby` binary involved. The necessary symbols and functions are being compiled into your program.
benlieb has joined #ruby
rkazak has joined #ruby
<klka>
really, even if i try to open .rb file and execute its content?
<klka>
rb_require*
jdawgaz has joined #ruby
gix has joined #ruby
mat-svol has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
agent_white has joined #ruby
mat-svol has quit [Ping timeout: 268 seconds]
thistle has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
thistle has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BtcBen has joined #ruby
BTRE has joined #ruby
yfeldblum has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
skweek has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 252 seconds]
IrishGringo has quit [Read error: Connection reset by peer]
smathy_afk has quit [Ping timeout: 246 seconds]
rkazak has quit [Quit: Sleep.....ing....]
robbyoconnor has quit [Quit: Konversation terminated!]
IrishGringo has joined #ruby
Es0teric has joined #ruby
Jameser` has joined #ruby
<shevy>
klka what are you writing by the way? you seem to be at it persistently since some days
jt__ has joined #ruby
lyoshaja_ has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
Jameser has quit [Ping timeout: 248 seconds]
tubuliferous_ has joined #ruby
<shevy>
hmm what name would you rather pick:
<shevy>
ToplevelName::Gui::Gtk
<shevy>
or
<shevy>
ToplevelName::GUI::Gtk
nodejunkie has joined #ruby
jt__ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
agentmeerkat has quit [Ping timeout: 248 seconds]
polysics has joined #ruby
jgpawletko has joined #ruby
<baweaver>
GUI
<klka>
shevy, yep for some days i'm trying to create an executable that calls ruby function in .rb file, this function depends on alot of code, and i want it to be statically-linked
jgpawletko has left #ruby [#ruby]
<baweaver>
Net:HTTP
<baweaver>
Net::SNMP
pawnbox has joined #ruby
<baweaver>
etc
lxsameer has joined #ruby
<shevy>
baweaver yeah I was just thinking the same... I read my own code some some weeks ago and "module Gui" looked weird
<shevy>
one some too many
<shevy>
klka I see
<brent__>
shevy, but you've been use kde lately?
<agent_white>
Evenin'
tubuliferous_ has quit [Ping timeout: 248 seconds]
polysics has quit [Ping timeout: 248 seconds]
karmatr0n has quit [Ping timeout: 276 seconds]
<shevy>
brent__ well yeah, right now. I guess if I ever reboot, I'll switch to fluxbox again. I am using kde konsole for most shell stuff though, so I kind of semi-depent on it. gnome-terminal is ok but not as good, the other terminals are weird... I never got into screen and tmux, my geekiness level is not 100%, more at 50% to 60%. in almost half of the kde tabs, some ruby script is running
moei has quit [Quit: Leaving...]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Es0teric has quit [Quit: Computer has gone to sleep.]
<brent__>
what do you like about fluxbox?
Regulati_ has joined #ruby
<shevy>
very fast, very simple, easy keybindings
rbennacer has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
<shevy>
ruby autogenerates the default keybindings for me; probably also possible for kde but I just can't be bothered to find out where kde puts what and what format it uses... probably some monstrous XML file
<P_R_Deltoid>
Alright, my solution is correct, apparently the problem is not solved that way
<P_R_Deltoid>
thanks, Ox0dea
<Ox0dea>
P_R_Deltoid: Sure thing.
<P_R_Deltoid>
Turns o ut you just seed rand to make the number come out consistantly
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<P_R_Deltoid>
Kinda overthought that one
fedexo has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Ping timeout: 268 seconds]
norc has joined #ruby
eggoez has joined #ruby
RTG` has joined #ruby
jimcroft_ has joined #ruby
yfeldblum has joined #ruby
baweaver has joined #ruby
Dimik has quit []
merida has joined #ruby
infernix has joined #ruby
infra-red has joined #ruby
djbkd has quit [Remote host closed the connection]
johnbat26 has joined #ruby
merida_ has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
baweaver has quit [Ping timeout: 268 seconds]
tagaulap has joined #ruby
tristanp has quit [Ping timeout: 246 seconds]
Couch has joined #ruby
hotpancakes has joined #ruby
tenzan has joined #ruby
djbkd has joined #ruby
tenzan has quit [Client Quit]
ferr has joined #ruby
djbkd has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
djbkd has joined #ruby
merida has quit [Ping timeout: 268 seconds]
ssiris has quit [Quit: End of Line]
pawnbox_ has quit [Remote host closed the connection]
P_R_Deltoid has quit [Quit: Leaving]
DoubleMalt has joined #ruby
pawnbox has joined #ruby
abyx has quit [Quit: This computer has gone to sleep]
<hanmac>
klka i showed you long time ago how to do an static linked exceutable that does call functions in a rb file and it did work for me.
bruno- has joined #ruby
brunto has joined #ruby
devbug has joined #ruby
<klka>
hanmac, really? i dont remember.. how long?
antgel has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
merida has joined #ruby
<norc>
hanmac: Do not utter the words "statically linked" in the IRC. Chances are Ulrich Drepper might appear and insult you into the ground.
<norc>
With some swearing in between.
<hanmac>
norc: i am not pro-static linked, klka wanted that
<hanmac>
klka that i did send you at 10.04.2016: i did use "gcc func.c -o func `pkg-config --cflags --static ruby-2.2` -lruby-2.2-static -lpthread -lgmp -ldl -lcrypt -lm" and that did allow static linking for me and it did work for me
nobitanobi has joined #ruby
<Ox0dea>
hanmac: Er, why not just pass --libs to pkg-config?
kadoppe has joined #ruby
<klka>
oh i didnt see that, i'll try that, is it includes the gems? i guess not?
<hanmac>
Ox0dea: for unknown reason pkg-config does not show the static lib for ruby when using --static
tristanp has joined #ruby
<hanmac>
klka: i didnt try to use any gems, i did use your func.c file and your func.rb, nothing more
bruno- has quit [Ping timeout: 244 seconds]
<Ox0dea>
hanmac: Ah, you're right. That's weird.
brunto has quit [Quit: Lost terminal]
<hanmac>
and i stll think static linking might be a bad idea at that place
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
I can only assume klka is up to something wicked.
<klka>
I did compile it, but i want to be able to use gems
<klka>
im trying to figure out how to do that
<hanmac>
klka: also when you do something static, you only build the ruby lib to it, not std or gems
<klka>
the gems is a must
<Ox0dea>
They want to pass around a binary and a Ruby file and have everything Just Work without the user (victim?) having to have Ruby installed.
<klka>
I need some gems to run the code
<norc>
Ox0dea: Heh.
<hanmac>
i think the best way would be to bundle the std/gem stuff with your new app, and then somehow add the search paths into it.
rkazak has quit [Quit: Sleep.....ing....]
marr has joined #ruby
<hanmac>
klka: also a special reason why your app does need to be compiled? for what do you want to use the ruby part of it?
<norc>
Ox0dea: That bug is over 13 years old!
<norc>
You have to dig into CVS to blame. :D
kadoppe has quit [Ping timeout: 248 seconds]
<Ox0dea>
norc: Ah, that explains why going back to 1.0 was insufficient.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<Ox0dea>
I tried to determine which version of Ruby that would've been appropriate in.
<klka>
i want to add a functionality that is written in ruby (many lines of code)
sepp2k has joined #ruby
<norc>
Ox0dea: It is quite hilarious that code after that condition was changed and added over the years, but apparently nobody ever noticed it was dead code.
<Ox0dea>
klka: But you want to write the rest of your program in C? Why?
RyanMcCoskrie has joined #ruby
<norc>
Ox0dea: Indeed why. We have Fiddle which gives you direct memory access in Ruby. No reason at all to write C programs anymore.
<Ox0dea>
norc: I still get a kick out of embedding unions in structs in unions in structs, and it's just not the same with Fiddle. :P
astrobunny has quit [Remote host closed the connection]
<klka>
Ox0dea, performance, hard to RE
<norc>
Ox0dea: Meh. unions feel so lackluster once you have used variants.
RyanMcCoskrie has left #ruby [#ruby]
<Ox0dea>
norc: I certainly didn't mean to hold them up as a joy to use.
<norc>
Heh.
brunto has joined #ruby
astrobunny has joined #ruby
<hanmac>
klka: i think other way around might be more nicer, like you put your expensive stuff in a C-gem and then require it from your ruby program
lyoshajapan has joined #ruby
<norc>
klka: Honest question since you mention the topic "performance" while still being stuck with linkage... did you profile your application?
<hanmac>
norc: i prefer to write bindings, like i did with wxwidgets and long time ago with ogre too (i need to update that one)
conta has joined #ruby
brunto_ has joined #ruby
brunto has quit [Client Quit]
<klka>
norc, not yet, why?
<norc>
klka: Why do you make design choices about performance, when you have not even determined that they are necessary.
brunto_ has quit [Client Quit]
<norc>
(We also call this: Premature optimization)
brunto has joined #ruby
elaptics`away is now known as elaptics
bkxd has joined #ruby
<norc>
klka: Which brings us back to Ox0dea's suggestion: Why go back to C code, when writing C code is cumbersome and slow and error prone.
<klka>
norc, the main reason i chose c/c++ is the time it takes to reverse engineer it, performace is a bonus
<Ox0dea>
Bleh. Get out.
<klka>
lol
<norc>
klka: If you insist on obfuscating, Ruby can precompile byte code too.
<norc>
Anyone with enough energy to reverse engineer that, will also disassemble your binary.
the_drow_ has joined #ruby
<norc>
And almost all people that pay for software will respect licensing.
<norc>
Unless of course you are trying to hide that you are a terrible programmer.
<vasilakisfil>
it would be nice if it was officially supported though
<manveru>
vasilakisfil: the official support is to pass the binding from the caller explicitly :)
yfeldblum has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 240 seconds]
jt__ has joined #ruby
Suntzu has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
ixti has quit [Quit: WeeChat 1.4]
tubuliferous_ has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
ur5us has quit [Remote host closed the connection]
<adaedra>
vasilakisfil: note that this is recommended to use it only for debugging purposes. The best way to have what you ask is still to pass `self` as parameter.
<vasilakisfil>
yeah I got that :) I hoped there would be a way though :)
<flughafen>
hello
bmf has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
blackgoat has joined #ruby
akkmaxon has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
norc has quit [Ping timeout: 250 seconds]
blaxter has joined #ruby
william3 has joined #ruby
akkmaxon has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
futilegames has joined #ruby
ThePolarCat has joined #ruby
william3 has quit [Remote host closed the connection]
ThePolarCat has left #ruby [#ruby]
bronson has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
futilegames has quit [Client Quit]
madgen has quit [Ping timeout: 268 seconds]
<riceandbeans>
if you do require_relative 'dir/file' do you have to specify .rb or is it implied?
<Papierkorb>
mrgrieves: #one is the implementation which apeiros suggested basically, #two is yours
sepp2k has joined #ruby
<Papierkorb>
mrgrieves: Um are you sure there's no infinite loop in your implementation?
boomsie has joined #ruby
jdawgaz has joined #ruby
Giauzar has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
giz|work has quit [Ping timeout: 276 seconds]
william3 has quit [Read error: Connection reset by peer]
<boomsie>
I've got a string of the following form: "Server names.\nNum Mode Status Domain Serving Name\n1 ABB online DOMAIN1 machine1" (where there are many lines worth of entries like the last line) and I want to to extract a list of pairs of machine modes and names. I've got some basic stuff trying to do this here, but so far I've only managed to extract the machine name, and I also get stuff from the first two lines (and the
<ruby[bot]>
boomsie: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<mrgrieves>
well it's definetely faster - the testsuite doesn't time out now
<mrgrieves>
Papierkorb: I don't think so but not sure -- also, any reasons why you do to_a when chars returns an array already?
<Papierkorb>
mrgrieves: Oh I thought String#chars returned a Enumerator, confused it with String#each_char. So no reason for the #to_a's to be there :)
<mrgrieves>
thanks guys, I need to get my head around the & explanation i.e. get used to it
merida__ has quit [Remote host closed the connection]
william3 has joined #ruby
madgen has joined #ruby
<Papierkorb>
mrgrieves: Oh and to come back to your question from before, as in, if #to_s and #to_i is really necessary
kadoppe has joined #ruby
mat-svol has joined #ruby
<Papierkorb>
mrgrieves: There's not really a better way AFAIK. There's nothing built in for it, and doing the divide-by-10 dance will be much slower in ruby.
<mrgrieves>
cheers Papierkorb
arup_r has left #ruby [#ruby]
aspiers has quit [Ping timeout: 248 seconds]
toretore has joined #ruby
flashpoint9 has joined #ruby
<Papierkorb>
mrgrieves: Oh and in your code, you assign a to i, but never change a so it will loop forever
<acosonic>
Hi all, so I narrowed down my object structure to this http://apaste.info/Pn8 how do I access @value ?
modin has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
malconis has joined #ruby
Guest91 has joined #ruby
giz|work has joined #ruby
ChiefAlexander has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
juanca_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
Guest91 has quit [Client Quit]
ChiefAlexander has quit [Remote host closed the connection]
evidex has joined #ruby
the_drow_ has quit [Quit: This computer has gone to sleep]
tjbiddle has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
meraxes has joined #ruby
merida has joined #ruby
joneshf-laptop has joined #ruby
stan has quit [Quit: Leaving]
ChiefAlexander has joined #ruby
CloCkWeRX has left #ruby [#ruby]
tubuliferous_ has quit [Ping timeout: 250 seconds]
e-jambon has joined #ruby
<boomsie>
Can anyone see why this regex isn't working? http://pastebin.com/Q3rfMghZ I don't get any errors or anything, but nothing prints...
<mustmodify_>
String#scan gives me "ArgumentError: invalid byte sequence in UTF-8". Is it likely that the file isn't encoded in UTF-8 but it's being converted / handled by ruby and this one (or these several) characters can't be converted? When I use `chardet file.hl7` I get "windows-1252 (confidence: 0.50)"
Canar has joined #ruby
lema has joined #ruby
Sou|cutter has joined #ruby
coyo has joined #ruby
Adam_FrVancouver has joined #ruby
myntcake has joined #ruby
<apeiros>
mustmodify_: ruby does not convert anything unless you tell it to do so.
patrick_star_3 has joined #ruby
<apeiros>
ruby does however set the encoding flag to whichever value you provided (either by default, or by explicitly setting it), and some operations require the encoding to be valid.
Devalo has joined #ruby
bmf has joined #ruby
<apeiros>
so your solution here is: figure out which encoding it is (i.e. verify that it is indeed windows-1252), then tell ruby that the string's encoding is that. how to do that depends on how you retrieve the string.
linduxed has joined #ruby
workmad3_ is now known as workmad3
<mustmodify_>
apeiros: I've done some work with encoding but not a lot... how would I verify the encoding other than to write to the author? (which I am doing now, but they respond with amazing slowness.)
hs366 has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 244 seconds]
<giz|work>
mustmodify_: simply try it out? ... string.force_encoding('windows-1252')
<giz|work>
then check the üäö :P
<workmad3>
mustmodify_: writing to the author is the only properly reliable way
griffindy has joined #ruby
bkxd has joined #ruby
<workmad3>
mustmodify_: anything else, you're relying on heuristics and guesses
<mustmodify_>
workmad3: that's what I was thinking
<mustmodify_>
giz|work: thanks, I'll do that.
flashpoint9 has joined #ruby
<workmad3>
especially when you're dealing with encodings that map the extended-ascii set to fit in a single byte, as then you'll find that every possible bit sequence is valid for all those encodings and you have to look at it to figure out if it's correct
Xeago has quit [Remote host closed the connection]
<workmad3>
and you may easily find multiple encodings that look 'right' for your sample, and not know which one to use :)
Macaveli has joined #ruby
mustmodify_ is now known as mustmodify
hotpanca_ has quit [Remote host closed the connection]
<apeiros>
mustmodify: depends. if it's plaintext - use any editor which lets you state the encoding of the file. check for special characters and whether they fit.
<lema>
w/in 6
abyx has joined #ruby
aspiers has joined #ruby
pandaant has quit [Remote host closed the connection]
vbatts|work has left #ruby ["found the other side of the rainbow"]
terlar has joined #ruby
Xeago has joined #ruby
dhinojosa has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
<mustmodify>
giz|work: forcing the encoding to what Ubuntu guessed worked. Thanks.
<giz|work>
:)
<mustmodify>
Windows people are like "Of course everyone would want a windows encoding."
kareeoleez has joined #ruby
pandaant has joined #ruby
dravine has quit [Quit: dravine]
bkxd has quit [Ping timeout: 276 seconds]
IrishGringo has joined #ruby
SilverKey has joined #ruby
<yorickpeterse>
If your environment is already messed up using a messed up encoding isn't going to make things much worse
ramortegui has quit [Quit: Ex-Chat]
Xeago has quit [Remote host closed the connection]
krz has joined #ruby
Karix has joined #ruby
Karix has quit [Remote host closed the connection]
william3 has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
mark2 is now known as mkl
mkl is now known as mark2
mark2 is now known as marktwo
william3 has joined #ruby
skakri` is now known as skakri
pabs has quit [Ping timeout: 248 seconds]
sandelius has joined #ruby
jgt has joined #ruby
Xeago has joined #ruby
openstruct has joined #ruby
juanca_ has quit [Remote host closed the connection]
tyang has joined #ruby
pabs has joined #ruby
Kelzier has quit []
snoobydoo has quit [Ping timeout: 260 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
mat-svol has quit [Remote host closed the connection]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
hinbody has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
Xeago has joined #ruby
marktwo has left #ruby ["WeeChat 1.5-dev"]
marktwo has joined #ruby
aganov has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
smatic_1111 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
william3 has joined #ruby
kadoppe has joined #ruby
jolts has joined #ruby
charliesome has joined #ruby
Xeago has joined #ruby
OTORelic has joined #ruby
KensoDev has quit [Read error: Connection reset by peer]
chouhoulis has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
infra-re_ has joined #ruby
chouhoulis has joined #ruby
hays has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
modin has quit [Ping timeout: 264 seconds]
n008f4g_ has joined #ruby
conta_ has joined #ruby
flashpoint9 has joined #ruby
charliesome has quit [Client Quit]
coyo has quit [Ping timeout: 264 seconds]
infra-red has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
evidex has quit [Ping timeout: 264 seconds]
aeterne has joined #ruby
Guest49991 has quit [Ping timeout: 276 seconds]
smatic_1111 has quit [Ping timeout: 264 seconds]
griffindy has quit [Ping timeout: 264 seconds]
Es0teric has quit [Ping timeout: 264 seconds]
tw1sted_ has quit [Ping timeout: 264 seconds]
Skelz0r_ has quit [Ping timeout: 264 seconds]
jaruga__ has quit [Ping timeout: 264 seconds]
<mustmodify>
so ... if I don't to String#force_encoding, what encoding does it assume?
joneshf-laptop has quit [Ping timeout: 244 seconds]
sgambino has quit [Ping timeout: 264 seconds]
<mustmodify>
I ask because when I do force_encoding('windows-1252') it works, but it also works when I do force_encoding('utf-8')
crankhar1er has quit [Ping timeout: 244 seconds]
Waqas has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
Skelz0r has joined #ruby
<eam>
mustmodify: you can use #encoding to check the encoding. It depends on where your String object comes from
Waqas has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
crankharder has joined #ruby
solocshaw has joined #ruby
Es0teric has joined #ruby
prestorium has joined #ruby
idletask has joined #ruby
snoobydoo has joined #ruby
tw1sted has joined #ruby
<mustmodify>
also, falling under the category of "disturbing but also understandable", googling "ruby force-encoding" results in two stack overflow results BEFORE the ruby docs.
joneshf-laptop has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
tax has quit [Ping timeout: 276 seconds]
<giz|work>
mustmodify: i would look at the bytes of the text you get for umlauts
Devalo has joined #ruby
<giz|work>
or just try with some text where encoding matters, and look at the rendering for both encodings... one is broken, one is correct :)
nuck has joined #ruby
GG is now known as TheGreatGudsby
<giz|work>
this reminds me of a project where two different encodings were used in one mysql table!
LoneHermit has joined #ruby
nuck is now known as Guest32186
jottr has joined #ruby
Xeago has quit [Remote host closed the connection]
Chagel has quit [Ping timeout: 260 seconds]
william3 has quit [Ping timeout: 260 seconds]
proreptilian has joined #ruby
<mustmodify>
giz|work: unfortunate
snoobydoo has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
hinbody has joined #ruby
bronson has joined #ruby
william3 has joined #ruby
synthroid has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 268 seconds]
agentmeerkat has joined #ruby
coyo has joined #ruby
smathy has joined #ruby
Xeago has joined #ruby
conta_ has quit [Ping timeout: 250 seconds]
aeterne has quit [Read error: Connection reset by peer]
smatic_1111 has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
machinewar has joined #ruby
ekinmur has joined #ruby
<machinewar>
does anyone recognize this encoding by any chance 1xO0a
<lxsameer>
hi, does YARV instructions load in the same memory address each time YARV run a script ?
kfpratt has joined #ruby
aspiers has joined #ruby
mark3 has quit [Remote host closed the connection]
ChiefAlexander_ has joined #ruby
<Ox0dea>
Of course not.
marktwo has joined #ruby
Es0teric has quit [Ping timeout: 250 seconds]
tuelz1 has joined #ruby
<tuelz1>
I guess hash_obj.select { |k,v| [1, 2].includes?(k) } might be most concise?
crdpink has joined #ruby
<lxsameer>
Ox0dea, hmm so what does numbers in the byte code point to ?
<Ox0dea>
lxsameer: Which numbers?
<lxsameer>
Ox0dea, bytecode
<Ox0dea>
This guy.
tw1sted has quit [Ping timeout: 250 seconds]
Antiarc_ has joined #ruby
jinie has quit [Ping timeout: 250 seconds]
joseph has quit [Ping timeout: 250 seconds]
Gnubie__ has quit [Ping timeout: 250 seconds]
<lxsameer>
Ox0dea, also ruby uses pages on kernel Virtual Memory right, so it can be possible to load instruction in same the address
Es0teric has joined #ruby
iamvery_ has joined #ruby
shadeslayer_ has joined #ruby
minot is now known as kkus
Gnubie_ has joined #ruby
daemonwrangler_ has joined #ruby
c355e3b_ has joined #ruby
kkus is now known as newjersey
astrobunny has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<Ox0dea>
lxsameer: Non-immediate values (anything not a Fixnum or a Symbol) are heap-allocated, and you're hard-pressed to predict the addresses returned to you by any allocator in widespread use.
newjersey has quit [Remote host closed the connection]
unreal_ has joined #ruby
mat-svol has joined #ruby
andersh_ has joined #ruby
joseph has joined #ruby
newjersey has joined #ruby
tw1sted has joined #ruby
jinie has joined #ruby
<lxsameer>
Ox0dea, hmm, I didn't mean that, tell me this, what is ruby byte code?
<ruby[bot]>
havenwood: # => "YARB\x02\x00\x00\x00\x03\x00\x00\x00/\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x ...check link for more (https://eval.in/552796)
mustmodify has left #ruby [#ruby]
<Ox0dea>
lxsameer: Not my department.
sauvin has quit [Ping timeout: 250 seconds]
Kim^J has joined #ruby
marktwo has quit [Quit: WeeChat 1.5-dev]
<lxsameer>
Ox0dea, thanks for your time man, always helpful to talk to you
fmcgeough has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
<lxsameer>
havenwood, ok , so byte code == YARV instructions in binary format right ?
null___ has joined #ruby
kenichi_ has joined #ruby
Phanes- has joined #ruby
znz_jp0 has joined #ruby
<eam>
Ox0dea: actually assuming no aslr or similar things, a program generally should repeat memory locations
pjaspers_ has joined #ruby
agent_white has joined #ruby
OTORelic has quit [Quit: WeeChat 1.4]
<havenwood>
lxsameer: Sec, there was a talk at the last RubyConf I'll find for you.
<eam>
that's almost certainly running on a system with it
<Ox0dea>
eam: Is that a reasonable assumption to make in 2016?
null__ has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
prestorium has quit [*.net *.split]
infra-re_ has quit [*.net *.split]
bmf has quit [*.net *.split]
Adam_FrVancouver has quit [*.net *.split]
braidn_ has quit [*.net *.split]
cdg has quit [*.net *.split]
_kfpratt has quit [*.net *.split]
reaVer_ has quit [*.net *.split]
Kim^J_ has quit [*.net *.split]
ChiefAlexander has quit [*.net *.split]
madgen has quit [*.net *.split]
jdawgaz has quit [*.net *.split]
_stu_ has quit [*.net *.split]
hanmac has quit [*.net *.split]
jwang has quit [*.net *.split]
majoh has quit [*.net *.split]
programmerq has quit [*.net *.split]
AlexJakeGreen has quit [*.net *.split]
pjaspers has quit [*.net *.split]
unreal has quit [*.net *.split]
Antiarc has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
andersh has quit [*.net *.split]
alxgsv has quit [*.net *.split]
tpendragon has quit [*.net *.split]
whiteline has quit [*.net *.split]
crdpink2 has quit [*.net *.split]
jaiks has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
timmyBsd has quit [*.net *.split]
ctrlrsf has quit [*.net *.split]
kenichi has quit [*.net *.split]
iamvery has quit [*.net *.split]
Phanes has quit [*.net *.split]
znz_jp has quit [*.net *.split]
c355e3b has quit [*.net *.split]
ddv has quit [*.net *.split]
null___ is now known as null__
_stu__ is now known as _stu_
<agent_white>
Mornin'
<eam>
depends on the cpu architecture and operating system
<lxsameer>
eam, what is aslr
<havenwood>
lxsameer: "Note that the translated binary data is not portable. You can not move this binary data to another machine. You can not use the binary data which is created by another version/another architecture of Ruby."
fmcgeough has joined #ruby
<eam>
lxsameer: address space layout randomization - intentionally shuffling around memory addresses
Devalo has quit [Remote host closed the connection]
g3funk has joined #ruby
<eam>
the system under ruby does this
daemonwrangler_ is now known as daemonwrangler
<Ox0dea>
"Tell me and I forget. Teach me and I remember. Involve me and I learn."
tpendragon has joined #ruby
<eam>
but you can turn it off if you want deterministic behavior
<lxsameer>
havenwood, I see, As far as i know, the byte code contains some pointers to memory addresses , right?
<ruby[bot]>
havenwood: # => "== disasm: #<ISeq:<compiled>@<compiled>>================================\n0000 trace 1 ...check link for more (https://eval.in/552800)
<havenwood>
lxsameer: The non-binary version is easier to read ^.
<eam>
lxsameer: commonly, yes. but sometimes it causes performance or other issues and is disabled
shredding has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
<lxsameer>
havenwood, yeah ofcourse , but I'm really confused with binary version
<havenwood>
lxsameer: try puts'ing it ^
<eam>
I worked on a distributed system once which had a cluster RPC system comprised of firing function pointers out to peer nodes via udp broadcast
<eam>
it depended on deterministic load addresses across several hundred peer nodes
n008f4g_ has quit [Ping timeout: 252 seconds]
william3 has quit [Ping timeout: 260 seconds]
<havenwood>
lxsameer: What are you finding confusing about it?
<havenwood>
lxsameer: Just not being able to parse it?
<eam>
needless to say, aslr was disabled in that environment
marktwo has joined #ruby
<havenwood>
lxsameer: #load_from_binary is good at parsing it :P
<havenwood>
Or rather loading an iseq object from it.
<lxsameer>
havenwood, no, I'm trying to cache bytecodes, but I can't understand the difference between YARV instructions and bytecode
<havenwood>
lxsameer: YARV bytecode?
jwang has joined #ruby
joneshf-laptop has joined #ruby
<lxsameer>
havenwood, YARV instructions vs bytecode
<havenwood>
lxsameer: ^ is that the bytecode you're looking for?
<lxsameer>
havenwood, ok it's yarv instructions for '42' i meant the last instruction
stannard has quit [Remote host closed the connection]
programmerq has joined #ruby
sauvin has joined #ruby
philip__ has joined #ruby
reaVer has joined #ruby
<havenwood>
lxsameer: I don't follow.
[Butch] has joined #ruby
elifoster has joined #ruby
stannard has joined #ruby
<lxsameer>
havenwood, ok let me put it this way
stannard has quit [Remote host closed the connection]
<havenwood>
lxsameer: That ^ is YARV bytecode in the sense that it's "[a]n array of arrays containing the instruction names and operands that make up the body of the instruction sequence."
<lxsameer>
havenwood, as far as i know that output is called YARV instructions sequence and not the byte code
<lxsameer>
havenwood, byte code is a sequence of numbers ( memory pointers ) .
agentmeerkat has quit [Ping timeout: 260 seconds]
<philip__>
Hi! I'm attempting to parse a marshal.dump file into an external app (written in a different language), and am struggling. Is there a simple way to convert marshal.dump into a friendlier format like JSON? I don't speak Ruby.
modin has joined #ruby
<havenwood>
lxsameer: These are not the bytecodes you're looking for.
* havenwood
waves hand
<apeiros>
philip__: depends. if all datatypes it contains are representable by json, then yes
<apeiros>
otherwise: no
<lxsameer>
havenwood, hmmmmm thanks man
waxxy_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kenichi_ is now known as kenichi
SilverKey has quit [Remote host closed the connection]
<apeiros>
philip__: File.write(json_path, Marshal.load(File.read(marshal_path)).to_json) would do in case of simple data
hogetaro has joined #ruby
<philip__>
oooh, thanks apeiros i'll start the journey here
<havenwood>
lxsameer: What I showed you is what the docs call YARV bytecode, the bytecode part of the instruction sequence. Using to_binary you can see a serialized instruction sequence.
agentmeerkat has joined #ruby
Devalo has quit [Remote host closed the connection]
<havenwood>
lxsameer: The fourteenth, and last part of a to_a'd instruction sequence is the bytecode.
careta has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<careta>
hey ruby gods
terlar has quit [Ping timeout: 252 seconds]
<lxsameer>
havenwood, good info , thanks man
SilverKey has joined #ruby
eshea has joined #ruby
<havenwood>
lxsameer: you're welcome
benlieb has joined #ruby
<careta>
I have a hex string ('deadbabe') that I need to convert into an array to perform calculations - like for example xor each 'de' with a number, then xor 'ad' with another number
amclain has joined #ruby
<careta>
I've been running around in circles on how to do this - something to do with pack and unpack?
william3 has quit [Remote host closed the connection]
finisherr has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
AndyBotwin has joined #ruby
Neksch has joined #ruby
william3 has joined #ruby
wldcordeiro has quit [Ping timeout: 248 seconds]
mikecmpb_ has quit [Ping timeout: 252 seconds]
Zarthus_ is now known as Zarthus
ctrlrsf has joined #ruby
rcvalle has joined #ruby
ddv has joined #ruby
tildes_ has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
CoderPuppy has joined #ruby
Neksch has quit [Ping timeout: 250 seconds]
conta_ has joined #ruby
marktwo is now known as mkl
william3 has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<rclsilver>
hello, i defined git sources in a Gemfile.local. target repositories contains .gemspec file. in this case, is there a way to override the version from the .gemspec in my Gemfile.local ?
tildes_ has quit [Remote host closed the connection]
<rclsilver>
i want to use some gem from foreman and katello for a plugin for hammer. to goal is to deploy it at work to to manage satellite (a redhat product). in this case, redhat takes community project and modify original version (ie: community version 0.0.7, rh version 0.0.7.13)
mat-svol has quit [Remote host closed the connection]
<rclsilver>
then i want to pick community version in a dev env, and i would like this version (0.0.7) be resolved to 0.0.7.13
vasilakisfil__ has quit [Quit: Konversation terminated!]
unreal_ is now known as unreal
IrishGringo has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
sauvin has quit [Remote host closed the connection]
ramfjord has joined #ruby
vdamewood has quit [Quit: Life beckons.]
cdg_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
tuelz1 has joined #ruby
gevans has joined #ruby
<jtd>
so I have someone logging into something with Devise LDAP with an email string. I'd like to chomp the login so that instead of "bob@thing.com" Devise just gets "bob" so I can use the sAMAccountName LDAP attribute. what's the easiest way to do this?
anisha has quit [Quit: Leaving]
<apeiros>
?rails jtd
<ruby[bot]>
jtd: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<apeiros>
probably the better channel wrt devise
<jtd>
ah. thanks, I asked this last night but no one mentioned that channel!
merida has quit [Remote host closed the connection]
barajasfab has joined #ruby
merida has joined #ruby
baweaver has joined #ruby
shadoi has joined #ruby
Nawn has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
idletask has quit [Remote host closed the connection]
lemur has joined #ruby
ur5us has joined #ruby
johnny56 has joined #ruby
LoneHerm_ has joined #ruby
Eleeleth has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
snoobydoo has quit [Ping timeout: 244 seconds]
Rutix has quit []
M-shine has joined #ruby
naftilos76 has quit [Remote host closed the connection]
[Butch] has quit [Read error: Connection reset by peer]
madgen_ has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
snoobydoo has joined #ruby
vF3hNGxc47h8 has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
LoneHerm_ has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jt__ has joined #ruby
hoov has joined #ruby
dopamean_ has joined #ruby
lemur has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
symm- has joined #ruby
[Butch] has joined #ruby
dcunit3d has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
dcunit3d has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<smathy>
Milos|Work, because you haven't run `bundle install` yet?
SilverKey has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
daxroc has joined #ruby
phaza has joined #ruby
joast has joined #ruby
Cohedrin has joined #ruby
bob434 has joined #ruby
M-mistake has joined #ruby
jackjackdripper has quit [Client Quit]
BrunoSaboia has joined #ruby
dunj3 has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
n008f4g_ has joined #ruby
phaza has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
SilverKey has quit [Client Quit]
phredus has joined #ruby
prestorium has quit [Remote host closed the connection]
Eleeleth has joined #ruby
SilverKey has joined #ruby
stannard has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 240 seconds]
zipkid has joined #ruby
pawnbox has joined #ruby
hoov has quit [Quit: Leaving]
bestie has joined #ruby
Elysia has joined #ruby
jxf has joined #ruby
cardoni has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
<Milos|Work>
smathy, I have but it was unable to build libv8. I'm guessing that's why. I'm currently trying to modify the source of libv8 and install the gem manually, because of the differences in the clang compiler on Mac OS X 10.11.
<Milos|Work>
But every time I implement the workaround and run `bundle install`, it re-pulls the libv8 sources and overwrites my changes.
pawnbox has quit [Ping timeout: 240 seconds]
S01780 has joined #ruby
<Milos|Work>
And for some reason, when I run `gem build libv8-xxxx.gemspec` and then `gem install libv8xxxxx.gem` it deletes its own directory and gives me ENOENT libv8xxxx.gem
ChiefAlexander has joined #ruby
c355e3b has joined #ruby
bttf has joined #ruby
kirun has joined #ruby
kireevco has joined #ruby
rodfersou is now known as rodfersou|coffee
boxrick1_ has joined #ruby
CausaMortis has joined #ruby
Nawn has left #ruby ["Leaving"]
Jonah11_ has quit [Remote host closed the connection]
gnarld_ is now known as nug
shwouchkster has joined #ruby
User458764 has joined #ruby
mustmodify has joined #ruby
dhollinger has joined #ruby
tuelz1 has quit [Read error: Connection reset by peer]
tuelz2 has joined #ruby
baweaver has joined #ruby
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
krz has quit [Read error: Connection reset by peer]
blaxter has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
<riceandbeans>
two things, one how similar is the ruby pty to perl expect, and two will ruby pty work on windows when invoking a windows binary through a shell out that make end up requiring powershell?
tildes has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 276 seconds]
jt__ has quit [Ping timeout: 248 seconds]
snoobydoo has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
<manveru>
riceandbeans: isn't perl expect like tcl expect?
<manveru>
riceandbeans: wouldn't you wanna use ruby expect then? :)
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans>
does ruby have expect?
helmut has joined #ruby
<riceandbeans>
basically, launch shell, send shell command, create regex for prompt that will be returned, on matching regex send new command, loop
Jonah11_ has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching>
o/
goooodroot has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 250 seconds]
<helmut>
hi. I tried cross building ruby and when it enters ext/ripper (during make install-nodoc), it runs the check target with RUBY pointing to the host arch ruby. is there maybe a bug in ext/ripper/depend pointing to the wrong interpreter?
<helmut>
and why the heck does the all target depend on the check target?
CoderPuppy has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Synthead has joined #ruby
ekinmur has joined #ruby
rubie has joined #ruby
marktwo is now known as mark2
arlek_ has joined #ruby
szulak has joined #ruby
skweek has joined #ruby
rodfersou|coffee has quit [Ping timeout: 260 seconds]
ekinmur has quit [Client Quit]
cpup has joined #ruby
moei has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 244 seconds]
Paradox has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
Kharma has joined #ruby
Paradox has joined #ruby
moei has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synaps3 has quit [Quit: Connection closed for inactivity]
<smathy>
Milos|Work, you probably want to use the --with-system-v8 option, you can configure bundler with something like: bundle config build.libv8 --with-system-v8
Gasher^ has quit [Quit: Leaving]
davedev2_ has joined #ruby
Gasher has joined #ruby
davedev24 has quit [Ping timeout: 248 seconds]
elusiveother_ has joined #ruby
p0p0pr37_ has joined #ruby
bahar_ has joined #ruby
heinrich5991_ has joined #ruby
shaman42_ has joined #ruby
aef has joined #ruby
DoubleMalt has joined #ruby
ferr has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
OTORelic has quit [Quit: WeeChat 1.4]
elusiveother has quit [Disconnected by services]
kirun has quit [*.net *.split]
lsmola has quit [*.net *.split]
bahar has quit [*.net *.split]
constantinexvi has quit [*.net *.split]
careta has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
MagePsycho_ has quit [*.net *.split]
pabs has quit [*.net *.split]
arlek__ has quit [*.net *.split]
FooMunki has quit [*.net *.split]
diegoaguilar has quit [*.net *.split]
aegis3121 has quit [*.net *.split]
spider-mario has quit [*.net *.split]
Adam_FrVancouver has quit [*.net *.split]
gregf has quit [*.net *.split]
Canar has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
gaf__ has quit [*.net *.split]
Lildirt|SomeoneT has quit [*.net *.split]
sesquipe1 has quit [*.net *.split]
duderonomy has quit [*.net *.split]
[dmp] has quit [*.net *.split]
M-Technic has quit [*.net *.split]
jhass has quit [*.net *.split]
shaman42 has quit [*.net *.split]
ldnunes has quit [*.net *.split]
Outlastsheep has quit [*.net *.split]
niko has quit [*.net *.split]
last_staff has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
cloaked1 has quit [*.net *.split]
Asher has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
matp has quit [*.net *.split]
evie_hammond has quit [*.net *.split]
drptbl_ has quit [*.net *.split]
sarbs has quit [*.net *.split]
ghr has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
huyderman has quit [*.net *.split]
majuscule has quit [*.net *.split]
icedp has quit [*.net *.split]
entropie has quit [*.net *.split]
Karunamon has quit [*.net *.split]
drbrain has quit [*.net *.split]
kedare has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
staticfox has quit [*.net *.split]
UKn0Me has quit [*.net *.split]
joeyjones has quit [*.net *.split]
helmut has quit [*.net *.split]
rideh has quit [*.net *.split]
devyn has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
code_ has quit [*.net *.split]
ccooke has quit [*.net *.split]
stryek has quit [*.net *.split]
kbni has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
ikonia has quit [*.net *.split]
Scient has quit [*.net *.split]
shtirlic has quit [*.net *.split]
Radar has quit [*.net *.split]
diegok has quit [*.net *.split]
rik has quit [*.net *.split]
p0p0pr37_ is now known as p0p0pr37
heinrich5991_ is now known as heinrich5991
PaulePanter has joined #ruby
Lildirt has joined #ruby
elusiveother_ is now known as elusiveother
elusiveother has quit [Changing host]
elusiveother has joined #ruby
kedare has joined #ruby
drptbl has joined #ruby
sesquipe1 has joined #ruby
qwikturn has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
rodfersou has joined #ruby
code_ has joined #ruby
baweaver has quit [Remote host closed the connection]
careta has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
cpup has quit [Ping timeout: 248 seconds]
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
stryek_ has joined #ruby
ccooke_ has joined #ruby
last_staff1 has joined #ruby
devyn_ has joined #ruby
cloaked1_ has joined #ruby
pabs_ has joined #ruby
michael_mbp has joined #ruby
Ariadeno_ has joined #ruby
helmut_ has joined #ruby
trajing has joined #ruby
szulak has quit [Read error: Connection reset by peer]
majuscul1 has joined #ruby
d0nn1e has joined #ruby
szulak has joined #ruby
icedp has joined #ruby
Snowy has joined #ruby
Aviio_ has quit [Remote host closed the connection]
yqt has joined #ruby
jottr has joined #ruby
sarbs_ has joined #ruby
ikonia has joined #ruby
PedramT has joined #ruby
noService has joined #ruby
pleiosau1 has joined #ruby
M-Techni1 has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
FooMunki_ has joined #ruby
baweaver has joined #ruby
cpup has joined #ruby
GG is now known as GitGud
diego_k has joined #ruby
UKn0Meh has joined #ruby
joeyjones_ has joined #ruby
lkba has joined #ruby
rideh- has joined #ruby
Karunamon has joined #ruby
SFPT has joined #ruby
<SFPT>
Hello?
plantigrade has joined #ruby
<tobiasvl>
hello??
baweaver has quit [Remote host closed the connection]
<Ox0dea>
Hello???
gregf has joined #ruby
Asher has joined #ruby
ghr has joined #ruby
drbrain has joined #ruby
Ariadeno has joined #ruby
devyn has joined #ruby
duderonomy has joined #ruby
M-Technic has joined #ruby
[dmp] has joined #ruby
matp has joined #ruby
aegis3121 has joined #ruby
UKn0Me has joined #ruby
evie_hammond has joined #ruby
helmut has joined #ruby
ccooke has joined #ruby
avelldiroll has joined #ruby
diegoaguilar has joined #ruby
stryek has joined #ruby
rideh has joined #ruby
Adam_FrVancouver has joined #ruby
lsmola has joined #ruby
rik has joined #ruby
shtirlic has joined #ruby
kbni has joined #ruby
FooMunki has joined #ruby
last_staff has joined #ruby
pabs has joined #ruby
pleiosaur has joined #ruby
spider-mario has joined #ruby
diegok has joined #ruby
jhass has joined #ruby
KrzaQ has joined #ruby
huyderman has joined #ruby
bigkevmcd has joined #ruby
ldnunes has joined #ruby
niko has joined #ruby
staticfox has joined #ruby
MagePsycho_ has joined #ruby
Outlastsheep has joined #ruby
Radar has joined #ruby
entropie has joined #ruby
gaf__ has joined #ruby
cloaked1 has joined #ruby
majuscule has joined #ruby
Scient has joined #ruby
kirun has joined #ruby
joeyjones has joined #ruby
Canar has joined #ruby
sarbs has joined #ruby
constantinexvi has joined #ruby
<SFPT>
I have a question:
<Milos|Work>
:O
<Ox0dea>
Me too.
<Milos|Work>
0dear.
<Ox0dea>
Why does Array have #<=> but not the inequality operators?
<SFPT>
What folder should I put the Isaac-master in for ruby to detect it when running a program?
jhass|off has joined #ruby
<tobiasvl>
Isaac-master?
ghr has quit [*.net *.split]
ccooke has quit [*.net *.split]
kirun has quit [*.net *.split]
lsmola has quit [*.net *.split]
constantinexvi has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
MagePsycho_ has quit [*.net *.split]
pabs has quit [*.net *.split]
FooMunki has quit [*.net *.split]
diegoaguilar has quit [*.net *.split]
aegis3121 has quit [*.net *.split]
spider-mario has quit [*.net *.split]
Adam_FrVancouver has quit [*.net *.split]
gregf has quit [*.net *.split]
Canar has quit [*.net *.split]
gaf__ has quit [*.net *.split]
duderonomy has quit [*.net *.split]
[dmp] has quit [*.net *.split]
M-Technic has quit [*.net *.split]
jhass has quit [*.net *.split]
ldnunes has quit [*.net *.split]
Outlastsheep has quit [*.net *.split]
niko has quit [*.net *.split]
last_staff has quit [*.net *.split]
cloaked1 has quit [*.net *.split]
Asher has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
matp has quit [*.net *.split]
evie_hammond has quit [*.net *.split]
sarbs has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
huyderman has quit [*.net *.split]
majuscule has quit [*.net *.split]
entropie has quit [*.net *.split]
drbrain has quit [*.net *.split]
staticfox has quit [*.net *.split]
UKn0Me has quit [*.net *.split]
joeyjones has quit [*.net *.split]
helmut has quit [*.net *.split]
rideh has quit [*.net *.split]
devyn has quit [*.net *.split]
stryek has quit [*.net *.split]
kbni has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
Scient has quit [*.net *.split]
shtirlic has quit [*.net *.split]
Radar has quit [*.net *.split]
diegok has quit [*.net *.split]
rik has quit [*.net *.split]
joeyjones_ is now known as joeyjones
FooMunki_ is now known as FooMunki
last_staff1 is now known as last_staff
<SFPT>
The folder, for Isaac
sarbs_ is now known as sarbs
<SFPT>
:O what was that
<Milos|Work>
netsplit
tildes has joined #ruby
jhass|off is now known as jhass
<tobiasvl>
what is Isaac
<SFPT>
A ruby gem
<SFPT>
I have an IRC bot for #cemetech on efnet
<SFPT>
I need to run it
constantinexvi has joined #ruby
<SFPT>
I finished the program
ELLIOTTCABLE has quit [Ping timeout: 248 seconds]
<SFPT>
But it cant find isaac
<manveru>
riceandbeans: it's in stdlib?
PedramT has quit [Remote host closed the connection]
<tobiasvl>
SFPT: how did you install this "isaac" gem?
<tobiasvl>
SFPT: so how did you install the isaac gem?
<SFPT>
Went on that page and downloaded the zip
<manveru>
Hello????
<SFPT>
then extracted
e4xit has quit [Quit: Right I'm out!]
AckZ has joined #ruby
codecop has quit [Remote host closed the connection]
SilverKey has joined #ruby
jmhmccr has joined #ruby
<adaedra>
SFPT: you usually install gems using `gem install`
<SFPT>
gem install?
lacrosse has joined #ruby
gaf_ has joined #ruby
<SFPT>
wot
kbni has joined #ruby
<adaedra>
In your case, `gem install isaac`
<SFPT>
in the command prompt, just type in gem install isaac?
ELLIOTTCABLE has joined #ruby
<adaedra>
But last update in 2009 is not a good signal
<SFPT>
Or am I misunderstanding
<adaedra>
yep, it's a command.
LoneHerm_ has joined #ruby
<SFPT>
oh my, seems it worked
<SFPT>
lets see if UI can run the program now
<mustmodify>
I'll google this, just wanted to know if anyone has any experience: Anyone ever directly receive SMTP messages using Ruby? Not using an email server... but directly receiving the messages.
pizzaops has joined #ruby
<SFPT>
Running the programs, is just "ruby logbotpop.rb"?
<SFPT>
but then how would I give it a directory
<adaedra>
you can pass command lines parameters after the file name like you would any program
<SFPT>
for it to look in?
FooMunki has quit [Quit: FooMunki]
<tobiasvl>
give what a directory?
FooMunki has joined #ruby
Scient has joined #ruby
ja has joined #ruby
ghr has joined #ruby
kirun has joined #ruby
spider-mario has joined #ruby
staticfox has joined #ruby
niko has joined #ruby
aegis3121 has joined #ruby
MagePsycho_ has joined #ruby
Radar has joined #ruby
lsmola has joined #ruby
duderonomy has joined #ruby
rik has joined #ruby
Asher has joined #ruby
huyderman has joined #ruby
diegoaguilar has joined #ruby
drbrain has joined #ruby
ldnunes has joined #ruby
matp has joined #ruby
bigkevmcd has joined #ruby
MagePsycho_ is now known as 7YUAASHFF
duderonomy has quit [Ping timeout: 240 seconds]
<adaedra>
But your code does not seems to need a directory to be given?
<adaedra>
You seem confused about what you're doing here
diegoaguilar has quit [Max SendQ exceeded]
ldnunes has quit [Ping timeout: 240 seconds]
ghr is now known as Guest31479
aegis312_ has joined #ruby
<Ox0dea>
Why does Array define #<=> and not include Comparable?
Yiota has joined #ruby
<Ox0dea>
There must be some logic to that decision, but I can't see it.
LoneHerm_ has quit [Ping timeout: 244 seconds]
staticfox has quit [Disconnected by services]
staticfox` has joined #ruby
rik_ has joined #ruby
<SFPT>
I'm very confsed.
Asher has quit [Ping timeout: 240 seconds]
william3 has joined #ruby
staticfox` is now known as staticfox
drbrain_ has joined #ruby
pawnbox has joined #ruby
<SFPT>
Well I did the cd commmand and gave it a directory tothe scripts folder
<SFPT>
it worked
<mustmodify>
SFPT: I have often found that when I do a good job of explaining my confusion, I answer my own questions.
cdg has joined #ruby
Guest31479 has quit [Ping timeout: 240 seconds]
7YUAASHFF has quit [Ping timeout: 240 seconds]
huyderman has quit [Ping timeout: 240 seconds]
<SFPT>
Well I'm so confused I don't quite know wwhat I'm confused about
<adaedra>
mustmodify: rubber duck
Scient has quit [Ping timeout: 240 seconds]
spider-mario has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Ping timeout: 240 seconds]
Radar has quit [Ping timeout: 240 seconds]
rik has quit [Ping timeout: 240 seconds]
<SFPT>
I learned ruby from a friend
<adaedra>
SFPT: well, try explain to yourself what you're doing.
Yiota has quit [Client Quit]
<SFPT>
Vey, very recently
<adaedra>
If stuck, try replying to "Why?"
duderonomy has joined #ruby
ja has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 240 seconds]
lsmola has quit [Ping timeout: 240 seconds]
aegis3121 has quit [Ping timeout: 240 seconds]
matp has quit [Ping timeout: 240 seconds]
drbrain has quit [Ping timeout: 240 seconds]
drbrain_ is now known as drbrain
<adaedra>
freenode, stop being so instable.
<adaedra>
Ox0dea: your questions are flying way too high for us common folks to even try to catch them.
FooMunki has quit [Quit: FooMunki]
ur5us has quit [Remote host closed the connection]
spider-mario has joined #ruby
<Ox0dea>
adaedra: Huh?
FooMunki has joined #ruby
FooMunki has quit [Client Quit]
FooMunki has joined #ruby
MagePsycho_ has joined #ruby
<adaedra>
Ox0dea: that was not an insult.
william3 has quit [Ping timeout: 244 seconds]
<tobiasvl>
it's a good question
<tobiasvl>
I wonder what the reason is
pawnbox has quit [Ping timeout: 276 seconds]
<Ox0dea>
adaedra: Don't people learn about Comparable/#<=> in the same chapter as Enumerable/#each?
baweaver has joined #ruby
<adaedra>
Well I didn't
madgen has joined #ruby
<adaedra>
But I learned Ruby in a very weird way
tubuliferous has joined #ruby
huyderman has joined #ruby
niko has quit [Ping timeout: 600 seconds]
<SFPT>
I am now getting the error: logbotpop.rb:4:in '<main>': undefined method 'config' for main:Object (NoMethodError)
jgt1 has joined #ruby
Radar has joined #ruby
Scient has joined #ruby
<SFPT>
What does this mean?
Radar is now known as Guest9427
<Ox0dea>
It's bad.
<adaedra>
that you're using a method called 'config' but it can't find it.
bruno- has quit [Read error: Connection reset by peer]
<SFPT>
...
<adaedra>
Guest9427: You're flying off the radars.
<manveru>
also that it's on line 4 in the file logbotpop.rb
polysics has quit [Remote host closed the connection]
<SFPT>
I'll check it real quick
<Ox0dea>
Check it slow.
helmut_ has left #ruby [#ruby]
polysics has joined #ruby
<SFPT>
line 4 is
<SFPT>
config do |c|
<adaedra>
By the way, you know you work on a code that is clearly showing its old age?
<SFPT>
This error is now "logbotpop.rb:5:in 'block in <main>'; undefined method 'username=' for #<Isaac::Config:0x2ce3e48> (NoMethodError) from C:/Ruby23/lib/ruby/gems/2.3.0/gems/isaac-0.2.6/lib/isaac/bot.rb:20:in 'configure' from (eval):2:in 'configure' from logbotpop.rb:4:in '<main'
skweek has joined #ruby
Canar has joined #ruby
<havenwood>
manveru: But yeah, nice to know how to do things like build your language yourself. ;)
phredus has quit [Remote host closed the connection]
wldcordeiro has quit [Ping timeout: 244 seconds]
Antiarc_ is now known as Antiarc
dhinojosa has quit [Ping timeout: 260 seconds]
PedramT has quit [Ping timeout: 250 seconds]
eshea has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
solars has quit [Ping timeout: 244 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
shinnya has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
eshea has joined #ruby
eshea has quit [Remote host closed the connection]
eshea has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
mikeiniowa has quit [Remote host closed the connection]
ICantCook has joined #ruby
jdelaney has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
kadoppe has joined #ruby
zenlot6 has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
BTRE has quit [Quit: Leaving]
zenlot6 has joined #ruby
lynx_eyes7 is now known as lynx_eyes
pawnbox has joined #ruby
Guest18997 has quit [Quit: Leaving]
ur5us has joined #ruby
dopie has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
lynx_eyes has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 252 seconds]
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
jenrzzz has joined #ruby
evidex has quit [Quit: Lost terminal]
djbkd has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
atom3 has joined #ruby
watermelone has joined #ruby
djbkd has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
BTRE has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
pilne has joined #ruby
BSaboia has joined #ruby
charliesome has joined #ruby
bronson has joined #ruby
Rutix`away has quit []
neanderslob__ has quit [Ping timeout: 252 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
BSab has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
watermelone has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
valetudo has joined #ruby
wilbert has joined #ruby
Giauzar has quit [Quit: Leaving]
<pilne>
I could use a little pointing in the right direction, because my google-fu is failing me miserably. I'm in love with ruby's semantics, but I'm having a hard time finding as many libraries (gems?) for things I'm trying to do, and I'm not even close to being able to really create them myself. My peers are suggesting I switch to python, but I find it cumbersome and unintuitive compared to ruby (maybe due to my affinty for lisp and
<pilne>
languages inspired by it?).
<shevy>
wow nobu is superactive wednesday
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
darkf has joined #ruby
<shevy>
pilne python has more devs and users compared to ruby
bronson has quit [Ping timeout: 252 seconds]
<darix>
pilne: rubygems.org is a good starting point
firstdayonthejob has quit [Ping timeout: 244 seconds]
ivanskie has joined #ruby
modin has joined #ruby
aguynamedben has joined #ruby
Lomex has quit [Remote host closed the connection]
<pilne>
i've poked around both of those, I guess if i'm going to take the plunge i'm gonna have to go all-in :) is the preferred "lower level" ffi c++ or c?
<darix>
pilne: either
johnny56 has joined #ruby
<pragmatism>
Question for all: do you test the existence or contents of constants?
wldcordeiro has joined #ruby
<pragmatism>
Or do you treat them like private methods and test the callers?
chouhoulis has quit [Remote host closed the connection]
<pilne>
and i guess... if worst comes to worst in some situations, JRuby is looking like it could be useful as well, that is one area where i was a bit disappointed with python when my peers suggeted it (i'm a hobbyist coder, and i can't code at work, but i can google/read)
diegoaguilar has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<shevy>
I am a hobbyist coder too!
<aguynamedben>
hello, if anybody is interested in working at a VC firm in San Francisco (First Round Capital), please DM me!
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<smathy>
pilne, it kind of depends what space you want to go to too. Because of Rails there's a lot of web heavy libs in the ruby world, whereas in other spaces its a bit light.
niko has quit [Ping timeout: 615 seconds]
<pilne>
i want to develop good AIs for graphically simple (for now) games
Aviio has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<pilne>
things like interesting AI opponents for card games, that have "unique" ways of playing against the human and each other.
kadoppe has joined #ruby
<shevy>
now you got a hobby for a profession right there
<pilne>
and ruby has been the first language i've dipped my toes into that i didn't feel like I was fighting my brain after getting past "hello world"
<shevy>
I found creating games in general to be fairly difficult and time intensive
kirun has quit [Quit: Client exiting]
<shevy>
yeah, ruby has a nice way to think
eshea_ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
<shevy>
you can also adapt it quite a lot to how you think, rather than the other way
<pilne>
i'm also tossing around ideas for a rubik's cube solver that lets you pick the "method" you want to use to solve it, and it will step through the solution using that approach.
<smathy>
pilne, I think for AI ruby and python are fairly similar, as you mentioned - you might end up with jruby for that stuff.
baweaver has joined #ruby
<pilne>
not necesarrily an "optimal" (moves-wise) solution, but one that fits the way you are trying to learn how to solve it yourself.
druonysus has quit [Remote host closed the connection]
<pilne>
i can live with JRuby for some things, it seems to be trying quite hard to be MRI compatible
<pilne>
sweet, now to get comfy with an environment manager in a fearless fashion since i'm already prepared for a clean install when ubuntu 16.04 drops :)
niko has joined #ruby
eshea__ has joined #ruby
<pilne>
and while i love monty python, Matz's way of thinking (from what I've read) aligns with mine far more than Guido's (not an insult/bash, just an observation)
jenrzzz has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<shevy>
yeah
<pilne>
i've seen rvm and rbenv, are there others i should look into?
eshea has quit [Ping timeout: 276 seconds]
<havenwood>
pilne: chruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
pilne: What sort of libraries are you left wanting for the sorts of things you've said you'd like to do?
kadoppe has quit [Ping timeout: 264 seconds]
<Ox0dea>
I suspect Python doesn't have anything more "drop-in" than Ruby does for card AI or realistic cube solving.
rkazak has joined #ruby
<pilne>
mostly things that would compare with numpy for using wierd/heavy math to simulate AI
<pilne>
but I have only googled and poked around from work for a few hours, it's been quite hectic lately
<Ox0dea>
That's an off-the-shell answer, I think.
<Ox0dea>
*shelf
mnrmnaugh has joined #ruby
mnrmnaugh is now known as catpoop
<pilne>
i guess? i'm relatively new again to coding after abandoning CS in college due to hating the java (1.2) they were shoving down my throat.
eshea__ has quit [Ping timeout: 260 seconds]
<Ox0dea>
That sucks, but I'd be willing to wager your instructor was worse than the language.
gevans has quit [Remote host closed the connection]
<pilne>
just looking to have fun with it, i'm pretty sure i won't notice the lack of that library for a long time if ever, but it was the first kinda thing that crossed my mind.
<pilne>
in hindsight i will agree Ox0dea
CloCkWeRX has joined #ruby
mozzarel1 is now known as mozzarella
<pilne>
but when yer young, male, surrounded by freedom and beautiful women... you don't have much patience for things that bother you...
<pilne>
or at least i didn't LOL
<shevy>
not sure how beautiful women can make up for a boring instructor
eshea has quit [Ping timeout: 276 seconds]
<pilne>
they can distract from the instructor quite easily
gevans has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
johnmilton has quit [Remote host closed the connection]
<pilne>
ah well, live and learn :) I'm not unhappy with where I've ended up, and I decided to take up coding as a mid-life crisis LMAO
baweaver has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<Zipdot>
you and me both, brother
<Zipdot>
I am doing C#
hinbody has joined #ruby
<Zipdot>
now that visual studio 2015 is free beer
FernandoBasso has quit [Remote host closed the connection]
<pilne>
i've got a buddy trying to convince me to go that route, but i've spent a few years trying to move away from MS stuff myself
<shevy>
hah
<shevy>
they give you bash now!
<Zipdot>
:)
<darix>
pilne: you can do c# on linux too
<pilne>
especially now since 7 will be dead in 4 years... and i can't stand 8 and 10.
<pilne>
yeah i know, still iffy on it lol
spider-mario has quit [Remote host closed the connection]
<baweaver>
Scala or Kotlin
<pilne>
i've dipped my toes in less plesant things, but something about ruby just fascinates me
<Zipdot>
I'll say this.... the visual studio IDE is hella impressive
<Zipdot>
debugging is a joy
pawnbox has joined #ruby
<baweaver>
Ruby for most scripting
<darix>
pilne: about the library thing ... it is probably easy when you ask about specific libraries when you run into things
<darix>
Zipdot: try the jetbrains stuff for IDEs
codezomb has joined #ruby
<pilne>
that makes sense darix, i did come in quite broad....
charliesome has joined #ruby
malconis has joined #ruby
<pilne>
i still do a lot in vim, no extras really yet, but i haven't written anything "intense" yet
<darix>
pilne: there are some nice ruby related things for vim especially from tpope
* darix
is using pathogen now for managing vim plugins
<pilne>
or just click
BSaboia has quit [Ping timeout: 252 seconds]
<Zipdot>
ah, good ol' vim
<pilne>
i got hooked on it when i flirted with gentoo when I had a roomie that was a linux addict back in college
<Ox0dea>
darix: 8.0 will be shipping with a built-in package manager.
<pilne>
live in IT guy that worked for (cheap) beer
<Ox0dea>
pilne: Why didn't you marry it?
dopamean1 has joined #ruby
<pilne>
lol
<darix>
Ox0dea: about time ;)
<Ox0dea>
pilne: I was being earnest?
<darix>
pilne: i can say opensuse has a really good packaging for ruby. but i might be biased
<pilne>
erm, was a same-gender roomie, and i'm not wired that way.
<darix>
:p
<Ox0dea>
pilne: I meant Gentoo.
<pilne>
oohhhh because i never really learned it myself
pawnbox has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
<Ox0dea>
So "flirted" there meant... watched some shit compile? ;P
<pilne>
i just loved being able to rip mp3 while irc-ing, and downloading adult materials without any noticable slowdown.
<pilne>
pretty much, he kept my system going
<pilne>
and when his parents shipped him off the the Airforce after he dropped out, i went back to win2k
<pilne>
lol
shinnya has quit [Ping timeout: 252 seconds]
malconis has quit [Ping timeout: 276 seconds]
<Ox0dea>
Sad day.
antgel has quit [Ping timeout: 244 seconds]
Amnez777- has quit [Ping timeout: 244 seconds]
<pilne>
but i'm pretty comfy with ubuntu now, but as i read more, i'm a bit irked by a few things about canonical, but i'm not quite sure of myself enough yet to move away from the stupidly easy to find answers to the shit i manage to bork up
<darix>
Ox0dea: interesting question will be how much of neovim can flow back into vim.
<Ox0dea>
darix: That's... pretty much what's happening?
<Ox0dea>
Bram had that particular fire lit under him.
<pilne>
neovim?
watersoul_ has quit [Remote host closed the connection]
<pilne>
googling
<darix>
Ox0dea: i had not much time to follow that. i started packaging neovim at some point. then someone took it over and i had to focus on other things
DLSteve has joined #ruby
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
<pilne>
O.o this looks quite interesting
<Ox0dea>
darix: I reckon the catalyst was his catching so much flak for refusing to upstream the async stuff coming out of Neovim.
Devalo has joined #ruby
<Ox0dea>
He's Bram, so of course he rolled his own, and that's gone into 8.0.
kadoppe has joined #ruby
<darix>
opensuse tumbleweed actually has neovim already
<darix>
ah no ... still in staging. so soon
<pilne>
has anyone read the kindle book on AI's with ruby?
<Ox0dea>
I just don't get it. It's exactly like defining #each and not including Enumerable, isn't it?
<shakar>
darix: that doesn't account for things like the gem path
<darix>
shakar: #rbenv
watersoul has joined #ruby
<darix>
one day the obsession with rbenv and friends hopefully will go away
<shakar>
darix: there are two people in that chat and no topic.
LoneHerm_ has joined #ruby
<Ox0dea>
shakar: Why do you want to bypass rbenv?
Sammichmaker has joined #ruby
cwenner has quit [Read error: No route to host]
mozzarella has quit [Remote host closed the connection]
<shakar>
Ox0dea: there's a build script for metasploit, which works if rbenv is not loaded, but it get's all mixed up by the rbenv env set by files in the metasploit source checkout
WhoLettem has quit [Ping timeout: 250 seconds]
mozzarella has joined #ruby
shevy has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 244 seconds]
statelesscode has joined #ruby
shevy has joined #ruby
jdelaney has joined #ruby
<pilne>
are things like rbenv bad though? I've always thought it prudent to isolate my "dev/fun" stuff from my "keeps the system running" stuff???
Antiarc is now known as Yamama
darkf_ has joined #ruby
<shakar>
pilne: I like it, it works for me (at work). I just expected there to be a one-command way to turn it off
pawnbox has joined #ruby
FooMunki has joined #ruby
<pilne>
I was more referring to darix's comment about "the obsession will fade"
darkf has quit [Ping timeout: 260 seconds]
Mia has quit [Read error: Connection reset by peer]
<aguynamedben>
rbenv is the only way I roll
<darix>
pilne: when ever someone comes here with a ruby problem ... the answer often starts with "install latest ruby via rbenv/chruby... "
<aguynamedben>
with the dotenv gem
<darix>
while often the distro ruby is fine
<shakar>
well in case anyone's interested I think I solved my problem with: export PATH=/usr/bin:$(/usr/bin/ruby -rubygems -e "puts Gem.user_dir")/bin:$PATH
<Ox0dea>
darix: What if they want Array#sum? :P
finisherr has quit [Quit: finisherr]
<darix>
Ox0dea: zypper in ruby2.3
<darix>
?
<Ox0dea>
darix: It's a 2.4 thing.
<darix>
ah
<darix>
doing 2.4 snapshot packages is probably not that hard