<Burgestrand>
It was surprisingly hard to write out the raw data for that example hash, two sequences one follows a word and the other one follows the alphabet… funny.
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
za1b1tsu has quit [Max SendQ exceeded]
za1b1tsu has joined #ruby
Danielss89 has joined #ruby
<al2o3-cr>
i want a x270
za1b1tsu has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
bijan_ has joined #ruby
karapetyan has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Antiarc_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
erlend has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Antiarc has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Client Quit]
_Joes_ has quit [Remote host closed the connection]
sidx64 has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 268 seconds]
jimmylu2333-fedo has joined #ruby
jimmylu2333-fedo has quit [Client Quit]
pynfwem has joined #ruby
jimmylu2333-fedo has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
konsolebox has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimmylu2333-fedo has quit [Quit: WeeChat 2.0.1]
jimmylu2333-fedo has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arekushi has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
za1b1tsu has joined #ruby
pynfwem has quit [Remote host closed the connection]
nahra has joined #ruby
schneider has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
riotjones has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
Toggi3 has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
kriskropd has joined #ruby
Papierkorb has joined #ruby
venmx has quit [Remote host closed the connection]
sidx64 has joined #ruby
konsolebox has joined #ruby
kliq has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
kliq has quit [Remote host closed the connection]
kliq has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
nikivi has joined #ruby
milardovich has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
ChaosBringer has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
sdfsdf has joined #ruby
konsolebox has joined #ruby
Serpent7776 has joined #ruby
guacamole has joined #ruby
xuyuheng has quit [Ping timeout: 260 seconds]
guacamole has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
sdfsdf has quit [Ping timeout: 260 seconds]
karapetyan has quit [Read error: Connection reset by peer]
venmx has joined #ruby
alfiemax has quit []
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
Nobun has joined #ruby
<Nobun>
Hi I have two questions about ruby and embedding
karapetyan has joined #ruby
<Nobun>
1) question is more about ruby in general, (remembering that the final objective is to embed ruby into an application) and it is "how to properly add directories to LOAD_PATH)?
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<Nobun>
the examples I saw googling are not clear. I mean... how should I add a specific path?
<dminuoso>
Nobun: 1) `$:.unshift foo`
karapetyan has quit [Read error: Connection reset by peer]
<dminuoso>
or `$LOAD_PATH.unshift` if you prefer
karapetyan has joined #ruby
momomo has quit [Remote host closed the connection]
<Nobun>
yeah I saw but: A) what unshift exactly does?
<dminuoso>
Nobun: .push but from the other side.
karapetyan has quit [Read error: Connection reset by peer]
<Nobun>
so it is like prepending instead of appending?
<Nobun>
At the current state I am embedding ruby (since I use 'find_package(Ruby 1.9)' on CMakeLists.txt)
ramfjord has quit [Ping timeout: 248 seconds]
<dminuoso>
Nobun: You really should probably try to use mruby.
<Nobun>
but I will consider also mruby. At the moment I focus my question to full ruby
<dminuoso>
Nobun: What do you intend to use ruby for?
<dminuoso>
Nobun: Well, you'd have to seriously screw around ruby itself to make this work.
<Nobun>
my application will (optionally) embed ruby to try to extract informations from some ruby mashalized binary files
<Nobun>
the task of ruby will be limited to this task (as my application will embed python as primary scripting language)
<dminuoso>
Nobun: how are they marshalled?
<dminuoso>
Using ::Marshal ?
<dminuoso>
Yeah uh..
<dminuoso>
Nobun: use mruby.
<Nobun>
Yeah... I assume. But not sure, since it is not completely a ruby file. I am developing an application for translating RpgMaker VX Ace projects (and also MV, but MV uses json files so not problem there)
alfiemax has joined #ruby
<Nobun>
at the current state (without embed) the "extract text phase into .po files" can be done within Rpgmaker itself with two ruby script. But the process could be a little problematic for the end-user
konsolebox has quit [Ping timeout: 240 seconds]
<Nobun>
the idea is to allow the application to perform directly this task.
<Nobun>
dminuoso: however those files should be marshalled with Marshal
alfiemax has quit [Remote host closed the connection]
<Nobun>
(however writing an additional line in ruby_file instead of embedding in the application could be not a problem, after all)
xuyuheng has joined #ruby
<Nobun>
the question 2 is about embedding itself. More in detail about managing error (more or less like the interpreter).
WhereIsMySpoon has joined #ruby
konsolebox has joined #ruby
<Nobun>
The problem is that I did a first embedding test, adding an Embedded C Ruby Class and it works
<Nobun>
but if I will have errors, they will be not displayed like I could do in the interpreter. So I would like to ask if there is an API function I should use to "capture" all error messages cought in the script (like the interpreter does)
alfiemax has joined #ruby
conta has quit [Ping timeout: 240 seconds]
nahra has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 240 seconds]
arne has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
<arne>
someone here having experience with "shrine"?
alfiemax has joined #ruby
<arne>
i upload files to a s3 bucket, which reference gets stored with shrine
marr has joined #ruby
<arne>
now i work on that file.. but shrine downloads the file over and over and over
<arne>
(that resulted in a amazon bill of 800 bucks once, which they nicely reverted)
<arne>
it's really odd that this gem has no cache
psychicist__ has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
momomo_ has joined #ruby
<momomo_>
ola seniors
<momomo_>
is it possible to set a partial in a partial ? without extrating to a separate file ?
<momomo_>
create a local partial kind of ... from a string or variable
ryan_ford has quit [Ping timeout: 240 seconds]
<arne>
what is a local partial
konsolebox has joined #ruby
<arne>
i feel like there is some explaining missing
arne is now known as Bish
<Bish>
momomo_: are you trying to partition a file?
alex`` has joined #ruby
<momomo_>
i want to set a partial locally ... rather than extract content to a separate file .. the content in the separate partial .erb ... is desired to remain in the same file as the caller basically
<Bish>
oh, you want to split a class or module?
<momomo_>
Bish: it's an erb file
<momomo_>
template
milardovich has joined #ruby
<Bish>
well you should work with whatever the framework you're using is giving you, but erb itself does not have such a feature, i guess
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
<momomo_>
and I can extrat html and what not into a partial.erb right? ... rather than putting it in a separate file .. i would like to declare the body of that partial into a variable than can then be invoked in the same manner as when you load it from a file
<momomo_>
is partial call here a framework specifik function ?
<Bish>
im guessing, yes, but i am not sure
milardovich has quit [Ping timeout: 240 seconds]
<Nobun>
dminuoso: thank for your replies. However I taked a look at mruby, but I think that mruby introduces some additional problems so I will be stick in the full Ruby.
<Nobun>
this piece of c++ code should keep some paramaters (not important for the question) and then run the "edb.rb" script
sidx64 has quit [Client Quit]
<Nobun>
I follow a code snippet I found around the net. However the "if status" seems not working, since the function rubycall::errormsg (a function wich should print into a window the error catched by line 13-14) seems not called at all.
sidx64 has joined #ruby
<Nobun>
So... how to "capture" error messages and show them in my application wich embeds (full) ruby?
ramfjord has quit [Ping timeout: 240 seconds]
sidx64 has quit [Client Quit]
mtkd has quit [Ping timeout: 264 seconds]
Psybur has joined #ruby
xuyuheng has quit [Ping timeout: 264 seconds]
Psybur_ has joined #ruby
mtkd has joined #ruby
dionysus69 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
cschneid has joined #ruby
apeiros has joined #ruby
synthroi_ has joined #ruby
milardovich has joined #ruby
Psybur has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
jimmylu2333-fedo has quit [Ping timeout: 265 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Ping timeout: 260 seconds]
xuyuheng has joined #ruby
sidx64 has quit [Client Quit]
alex`` has joined #ruby
momomo_ has joined #ruby
<momomo_>
I got logged out
<momomo_>
Did I miss anything?
<momomo_>
Nobody responded to my last
<momomo_>
?
<Nobun>
momomo_: Bish | momomo_: what is your framework? │ agrecascino
<Nobun>
│11:40:58 Bish | rails?
<momomo_>
middleman
<momomo_>
but i believe that was before my last message
<momomo_>
But I can't get it to read any passed stuff
<momomo_>
But it can see the surronding variables
<momomo_>
(non passed)
<momomo_>
in that template
ciscam has quit [Read error: Connection reset by peer]
ciscam has joined #ruby
bw_ has joined #ruby
ramfjord has joined #ruby
Toggi3 has joined #ruby
jrafanie has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
Toggi3 has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
harrycs has joined #ruby
rabajaj has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 240 seconds]
perzival has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
perzival has joined #ruby
harrycs has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
Toggi3 has joined #ruby
<momomo_>
I think i've figured it out
<momomo_>
Is there a way now to declare a string without having to escape anything ???
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has joined #ruby
coderphive has joined #ruby
fribmendes is now known as fribmendes_away
DTZUZO has joined #ruby
netherwolfe has joined #ruby
aufi_ has joined #ruby
ramfjord has joined #ruby
aufi has quit [Ping timeout: 265 seconds]
sldetracking has quit [Quit: Leaving]
ta__ has joined #ruby
kn-928 has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
rabajaj has joined #ruby
Guest80639 has quit [Remote host closed the connection]
cschneid has joined #ruby
Guest80639 has joined #ruby
cschneid has quit [Remote host closed the connection]
Guest80639 has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 268 seconds]
nacho__ has quit [Quit: leaving]
cschneid has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has joined #ruby
tomphp has joined #ruby
rippa has joined #ruby
synthroi_ has quit [Remote host closed the connection]
maufart__ has joined #ruby
catbusters has joined #ruby
creat has quit [Ping timeout: 252 seconds]
shadeslayer_ is now known as shadeslayer
mtkd has quit [Ping timeout: 260 seconds]
aufi_ has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
momomo_ has quit [Remote host closed the connection]
synthroid has joined #ruby
synthroi_ has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
vutral|kali has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
cschneid has quit [Remote host closed the connection]
ta__ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
pastorinni has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
coderphive has quit [Quit: coderphive]
coderphive has joined #ruby
jcarl43 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
cagomez has joined #ruby
bmurt has joined #ruby
jeecht has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
ccooke_ is now known as ccooke
alfiemax has joined #ruby
cyberg has joined #ruby
jecht has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
stoffus has quit [Ping timeout: 260 seconds]
[Butch] has joined #ruby
imode has joined #ruby
cschneid has joined #ruby
za1b1tsu has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vutral|kali has quit [Ping timeout: 240 seconds]
jimmylu2333-fedo has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
FrostCandy has joined #ruby
desperek has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
duderonomy has joined #ruby
kn-928 has quit [Quit: WeeChat 2.1]
jamesaxl has quit [Read error: Connection reset by peer]
yohji has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
conta has quit [Ping timeout: 240 seconds]
c_nick has joined #ruby
yeticry has quit [Ping timeout: 263 seconds]
milardovich has quit [Remote host closed the connection]
shuforov has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
<c_nick>
how can i capture the data from the following string {name|color:red}age{address|color:green} and split it into three components {name|color:red} {address|color:green} age
perzival has quit [Ping timeout: 256 seconds]
za1b1tsu has quit [Remote host closed the connection]
schneider has joined #ruby
pd has joined #ruby
pd is now known as Guest12828
nadir has quit [Quit: Connection closed for inactivity]
yohji has joined #ruby
jeecht is now known as jecht
tvw has quit [Remote host closed the connection]
harrycs has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
c_nick: # => /tmp/execpad-96f26d3c2423/source-96f26d3c2423:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975207)
<ruby[bot]>
c_nick: # => /tmp/execpad-914e7f830ab6/source-914e7f830ab6:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975209)
<ruby[bot]>
c_nick: # => /tmp/execpad-7648855a8bff/source-7648855a8bff:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975211)
<ruby[bot]>
c_nick: # => /tmp/execpad-33a93b41432a/source-33a93b41432a:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/975212)
* guacamole
thanks havenwood for explaining 3 times
<havenwood>
haha, np
<WhereIsMySpoon>
allows you to chain method calls that you would normally nest
SeepingN has joined #ruby
<WhereIsMySpoon>
then seems like a reasonable alias
<WhereIsMySpoon>
its kinda like the promise chaining stuff in js
ramfjord has joined #ruby
lunarkitty7 has joined #ruby
jeecht has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<guacamole>
its like tap but returns the receiver
<guacamole>
i think
<havenwood>
guacamole: Yup, and instead of raising when no block is provided, it returns a sized enumerator, always size one with just the receiver as the thing.
<havenwood>
raising when no block is provided, like tap*
<havenwood>
>> 42.tap
<apeiros>
oh, dminuoso will be a fan of that
<ruby[bot]>
havenwood: # => no block given (LocalJumpError) ...check link for more (https://eval.in/975233)
<havenwood>
apeiros: I got to teach Ruby objects they are size one when implementing #yield_self. That was fun, even though I admittedly don't know what I'm doing.
jecht has quit [Ping timeout: 263 seconds]
<WhereIsMySpoon>
>> 42.yield_self
<ruby[bot]>
WhereIsMySpoon: # => undefined method `yield_self' for 42:Fixnum (NoMethodError) ...check link for more (https://eval.in/975236)
<WhereIsMySpoon>
humn
<havenwood>
apeiros: I changed it from an unsized enumerable to a sized one.
<havenwood>
WhereIsMySpoon: The bot version is too old.
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has quit [Ping timeout: 260 seconds]
<dminuoso>
apeiros: A fan of what?
harrycs has joined #ruby
jimmylu2333-fedo has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
jimmylu2333-fedo has joined #ruby
zapata has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
jottr has joined #ruby
mikecmpbll has joined #ruby
P1ro has joined #ruby
\void has joined #ruby
<dminuoso>
havenwood: I dont like #then
<havenwood>
dminuoso: neither did some of core, but it seems Matz approved it
<havenwood>
It's better than yield_self!
<dminuoso>
havenwood: The whole construct is fishy.
zapata has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
<dminuoso>
havenwood: Btw, did you notice that
<dminuoso>
42:Fixnum
<dminuoso>
colon in there?
karapetyan has quit [Remote host closed the connection]
<dminuoso>
Never thought about it, but that's the type theory symbol for "has type" that dates back to at least Chuch's typed λ calculus
* dminuoso
wonders whether that choice was intentional
jecht has quit [Remote host closed the connection]
jecht has joined #ruby
harry__ has joined #ruby
howdoi has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
meinside has quit [Quit: Connection closed for inactivity]
jamesaxl has joined #ruby
harrycs has quit [Ping timeout: 240 seconds]
jimmylu2333-fedo has quit [Quit: WeeChat 2.0.1]
Cavallari has joined #ruby
tomphp has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
venmx has quit [Ping timeout: 248 seconds]
Code4Dopamine has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rabajaj has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
tolerablyjake has joined #ruby
synthroi_ has quit []
chouhoul_ has quit [Ping timeout: 264 seconds]
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
n0m4d1c has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
rabajaj has quit [Remote host closed the connection]
leitz has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rsh has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
krawchyk has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
bmurt has quit [Client Quit]
clemens3 has quit [Ping timeout: 240 seconds]
Mike11 has quit [Quit: Leaving.]
hanmac has quit [Ping timeout: 252 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has joined #ruby
ryzokuken has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
erlend has joined #ruby
ryan_ford has quit [Quit: WeeChat 1.4]
mtkd has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
TheBloke has joined #ruby
jecht has quit [Remote host closed the connection]
conta1 has quit [Client Quit]
jecht has joined #ruby
mtkd has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
karapetyan has joined #ruby
cagomez has quit [Remote host closed the connection]
harry__ has quit [Ping timeout: 240 seconds]
eam has quit [Changing host]
eam has joined #ruby
cagomez has joined #ruby
za1b1tsu has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
cagomez has quit [Ping timeout: 264 seconds]
Zaab1t has quit [Quit: Zaab1t]
zapata has joined #ruby
duderonomy has joined #ruby
harry__ has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
conta has quit [Remote host closed the connection]
bmurt has joined #ruby
netherwolfe has quit [Ping timeout: 240 seconds]
netherwolfe has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
harry__ is now known as harrycs
<harrycs>
anyone have suggestions on getting a first time junior role? i'm thinking of focusing on open source projects to get some experience, plus going to meetups to network a bit, but i'm not sure exactly how best to land that first role without a resume... NYC if that matters
shuforov has quit [Ping timeout: 256 seconds]
n008f4g_ has joined #ruby
rsh has joined #ruby
suukim has quit [Quit: Konversation terminated!]
claudiuinberlin has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
cyberg has quit [Ping timeout: 240 seconds]
megamosaren has joined #ruby
pastorinni has quit [Remote host closed the connection]
<eam>
harrycs: internships are a great way to get some junk on your resume and get an "in" without companies worrying about the relatively high cost of hiring/firing
<eam>
absent that approach, definitely networking both at meetups (find hiring managers and befriend them) and via OSS work should help
jecht has quit [Remote host closed the connection]
Creatornator has joined #ruby
jecht has joined #ruby
clemens3 has joined #ruby
harrycs has quit [Ping timeout: 240 seconds]
sammi` has quit [Quit: Lost terminal]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
amatas has quit [Quit: amatas]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun>
I try to bump my second question, with a code snippet: │ __main__
<Radar>
Neat way to encrypt messages. Thanks for sharing RedNifre.
<Radar>
Or encode, I guess.
<apeiros>
steganograph?
<Inside>
Guys. I just took a glance at using electron/react to create desktop applications. What. what. what?! It's easy! Just include all of these dependencies and type npm install. Just spool up a bunch of processes that talk to each other and etcetcetc. Oh - your hello world app is already 120MB? No biggie c_c
* apeiros
wonders what the verb of steganography is
<Radar>
Inside: See also: Atom, VS Code, Slack, etc.
<Radar>
RAM vendors _love_ electron.
<Inside>
I use VS code. I used to use Slack at my old job, but it didn't want to work very well with my mobile nvidia graphics card.
<Radar>
My battery lasts about 20% longer without Slack.
<Inside>
Hah wow.
<Radar>
Give me IRC or give me death.
cyberg has joined #ruby
jenrzzz_ has joined #ruby
<RedNifre>
Radar yes, I wrote it myself. Unfortunately I don't really have a use for it.
<RedNifre>
apeiros Kinda, I guess. Except that the information is not hidden inside of other information since card order in decks of cards is usually assumed to be meaningless.
<Inside>
I might as well try ruby + gtk at this rate :|
<apeiros>
RedNifre: the deck is how it is hidden.
<Radar>
RedNifre: But if you knew the order of the cards was meaningful then you could use that to decode the message.
<apeiros>
you can pass somebody a deck of cards and they can translate the message back out of it
<Inside>
Ooh cryptography stuff?
jenrzzz has quit [Ping timeout: 240 seconds]
<apeiros>
more steganography
<RedNifre>
Yes, it's steganography. I think you could add symmetric encryption with modulo to make the deck look shuffled.
<RedNifre>
I mean, instead of encrypting the bytes you encrypt the deck permutation number.
<havenwood>
rgb-one: The method is meant to be called with a block. That's where the block is yielded.
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<havenwood>
rgb-one: If you called that method without a block, you'd get a `LocalJumpError: no block given (yield)` if you got to that part of the method.
* Radar
is conviced havenwood knew that error message off by heart
iszak has joined #ruby
iszak has joined #ruby
iszak has quit [Changing host]
<rgb-one>
I see
* havenwood
plays the part of a REPL on many days
<havenwood>
I am alas now a REPL and sock salesperson.
<ineb>
havenwood: after some system()-call. i think the method sould check for block_given?
duckpuppy has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
<havenwood>
ineb: `yield if block_given?` is common, but doesn't it seem the author intended these to only be callable with a block?
<havenwood>
I don't know. I'm not familiar with this code.
schneider has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Remote host closed the connection]
<havenwood>
rgb-one: You can ask it what it is. Try: Dir['*'].class
<havenwood>
rgb-one: You can do p-based debugging: p devices
<havenwood>
rgb-one: puts devices.class
<rgb-one>
> Dir['*'].class
<havenwood>
#=> Array
schneider has quit [Ping timeout: 264 seconds]
<havenwood>
rgb-one: (Try in IRB or Pry.)
<havenwood>
?irb
<ruby[bot]>
irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<elomatreb>
And + does concatenation on arrays
jottr has quit [Ping timeout: 240 seconds]
<rgb-one>
Ok
<rgb-one>
Does this bot still execute code?
<Radar>
?try
<ruby[bot]>
Why don't you try it and see for yourself?
<Radar>
>> puts "Do you still execute code?"
<ruby[bot]>
Radar: # => Do you still execute code? ...check link for more (https://eval.in/975364)
cschneid has quit [Ping timeout: 256 seconds]
kn-928 has joined #ruby
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 268 seconds]
<rgb-one>
Alright, thanks guys
rgb-one has quit [Quit: Konversation terminated!]
kn-928 has quit [Ping timeout: 264 seconds]
kapil___ has joined #ruby
woodruffw has quit [Ping timeout: 264 seconds]
ule has quit [Ping timeout: 252 seconds]
erlend has quit [Ping timeout: 260 seconds]
ule has joined #ruby
erlend has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
kn-928 has joined #ruby
kn-928 has quit [Ping timeout: 256 seconds]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
konsolebox has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
nymous has quit [Read error: Connection reset by peer]
POKE53280 has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]