wnd has quit [Read error: Connection reset by peer]
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
zachk has quit [Quit: Leaving]
wnd-trans is now known as wnd
AndroidKitKat is now known as ChristmasKitKat
ChristmasKitKat is now known as SpookyKitKat
SpookyKitKat is now known as AndroidKitKat
AJA4350 has quit [Quit: AJA4350]
noobineer has joined #ruby
apeiros__ has quit [Ping timeout: 265 seconds]
quobo has quit [Quit: Connection closed for inactivity]
amar_ has joined #ruby
hph^ has joined #ruby
houhoulis has joined #ruby
amar_ has quit [Ping timeout: 248 seconds]
noobineer has quit [Ping timeout: 256 seconds]
taylorzr has joined #ruby
eb0t has quit [Quit: WeeChat 2.0.1]
tdy has quit [Ping timeout: 240 seconds]
Joufflu has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
AndroidKitKat has quit [Quit: Updating details, brb]
AndroidKitKat has joined #ruby
postmodern has joined #ruby
n0m4d1c has joined #ruby
cadillac_ has joined #ruby
n0m4d1c has quit [Quit: leaving]
faces has joined #ruby
shinnya has joined #ruby
subroot has joined #ruby
tdy has joined #ruby
houhoulis has quit []
graphene has quit [Remote host closed the connection]
duderonomy has joined #ruby
graphene has joined #ruby
postmodern has quit [Quit: Leaving]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
Joufflu has quit [Ping timeout: 248 seconds]
Joufflu has joined #ruby
vonfry has joined #ruby
subroot has quit [Read error: Connection reset by peer]
MagePsycho has quit [Ping timeout: 260 seconds]
white_lilies has joined #ruby
apparition has joined #ruby
MagePsycho has joined #ruby
houhoulis has joined #ruby
MzrE has joined #ruby
kapil___ has joined #ruby
taylorzr has quit [Quit: WeeChat 2.1]
z3uS has quit [Quit: /dev/null]
alex`` has quit [Ping timeout: 260 seconds]
z3uS has joined #ruby
subroot has joined #ruby
Joufflu has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 2.1]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
Joufflu has joined #ruby
dviola has joined #ruby
cosmopaladin has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
cosmopaladin has quit [Quit: Leaving]
cosmopaladin has joined #ruby
yokel has joined #ruby
tagnotfound has joined #ruby
tagnotfound has quit [Remote host closed the connection]
gix- has joined #ruby
gix has quit [Disconnected by services]
feelx has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Remote host closed the connection]
phredus has quit [Quit: Leaving]
graphene has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
vonfry_ has joined #ruby
vonfry has quit [Remote host closed the connection]
MzrE has quit [Quit: Leaving]
cosmopaladin has quit [Quit: Leaving]
cosmopaladin_ has joined #ruby
cosmopaladin_ has quit [Remote host closed the connection]
eblip has quit [Quit: WeeChat 2.0.1]
darkhanb has joined #ruby
cosmopaladin has joined #ruby
cosmopaladin has quit [Remote host closed the connection]
cosmopaladin has joined #ruby
donofrio has quit [Remote host closed the connection]
cosmopaladin has quit [Remote host closed the connection]
cosmopaladin has joined #ruby
cosmopaladin has quit [Client Quit]
cosmopaladin has joined #ruby
cosmopaladin has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 264 seconds]
vonfry_ is now known as vonfry
vonfry_ has joined #ruby
vonfry has quit [Remote host closed the connection]
vonfry_ is now known as vonfry
subroot has quit [Read error: Connection reset by peer]
eb0t has joined #ruby
eb0t is now known as eblip
howdoi has quit [Quit: Connection closed for inactivity]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
tdy has quit [Ping timeout: 268 seconds]
vonfry_ has joined #ruby
vonfry has quit [Remote host closed the connection]
vonfry_ has quit [Remote host closed the connection]
vonfry_ has joined #ruby
dhawan has joined #ruby
<dhawan>
I am new to ruby programming. According to a project specification, I have to execute Sinatra application in a background Thread in such a way that after executing Sinatra application, user can receive command line immediately
<dhawan>
I cannot use process daemon or Process form in my project as it will isolate the process from the original running process moreover it would not be feasible to communication between forked process and the originally running process. Now the only option I am left with is Thread. So is it possible to execute the same by using thread?
vonfry has joined #ruby
<eam>
dhawan: what do you mean "user can receive command line immediately?"
vonfry_ has quit [Remote host closed the connection]
white_lilies has quit [Ping timeout: 264 seconds]
<eam>
you want to run the sinatra server on a command line and have it run in the background?
<jidar>
threads don't return to the calling process
<jidar>
(unless the thread finishes)
dreamthese has quit [Read error: Connection reset by peer]
<eam>
so it sounds like this is really a question about the interaction between the shell and a program being run
<jidar>
that's how I read the question
<eam>
if that's the case, the answer is that you absolutely must fork and create two processes -- but the first one will exit
<eam>
and it *is* possible to communicate between forked processes, but we would need more specifics
Emmanuel_Chanel has joined #ruby
dhawan has quit [Quit: Leaving.]
_whitelogger has joined #ruby
Pupeno has joined #ruby
<Pupeno>
Can the # frozen_string_literal: true be on the second line of the file?
schleppel has joined #ruby
tdy has joined #ruby
vonfry has quit [Remote host closed the connection]
dhawan has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
leah2 has quit [Read error: Connection reset by peer]
leah2 has joined #ruby
<dhawan>
@eam yes, it is a question about the interaction between the shell and browser. Actually I am trying to terminal output on browser to provide graphical user interface to the user.
<dhawan>
ANd yes, I asked this question on stack overflow, But I did'nt get response there so here I am
<dhawan>
Acually I am working on metasploit-framework project. As you know it is a command line penetration tool. My goal is to provide web Interface to Meterpreter shell.
<dhawan>
I am not able to interact with the untill the thread is compleated.
<dhawan>
*interact with the shell *
<eam>
dhawan: can you describe your project in a bit more detail?
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
<konsolebox>
nice, now everyone suggests ruby-doc.org :)
sphenxes has joined #ruby
<konsolebox>
i prefer using an offline copy of the documentation that use ri
Guest8871 has quit [Read error: Connection reset by peer]
pauliesaint has quit [Ping timeout: 265 seconds]
Nicmavr has joined #ruby
Nicmavr is now known as Guest26613
graphene has quit [Remote host closed the connection]
pauliesaint has joined #ruby
graphene has joined #ruby
graphene has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
graphene has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<konsolebox>
i have it bookmarked in the "Refs" folder menu in Bookmarks Toolbar: https://imgur.com/a/rsolsUK
dhollin has joined #ruby
BloopMonster has joined #ruby
graphene has quit [Remote host closed the connection]
dhollin3 has quit [Ping timeout: 260 seconds]
graphene has joined #ruby
<konsolebox>
*than use ri
<apeiros>
konsolebox: I prefer ri too. but some people seem to prefer online docs. for whatever reasons.
<apeiros>
I mean ri has the clear advantage of being in sync with the ruby version you actually use
shinnya has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
<livcd>
i use dash
<konsolebox>
apeiros: why "too"? i prefer the html documentation :) yeah i care about ri; i mean i persisted on making the documentation of my gems work for it. and i know it's more updated, especially with documentation of other libraries. but then i still like how easy it is to quickly browse from one class to another in the html docs. it's easy to skim/search for strings.
<livcd>
apeiros: i guess people prefer online docs because they end up googling stuff on the internet anyway
<apeiros>
konsolebox: ah, misread you then
<konsolebox>
yeah i made i a typo there
rawste has joined #ruby
<apeiros>
livcd: yeah. and I keep telling people that googling methods of proglangs is a stupid idea. the less you know the worse your results will be.
<nikivi>
if I want to return a value from a method as string, do I print it out?
<apeiros>
nikivi: no. printing is not returning.
<nikivi>
I read in ruby you don't excplitly return things
<livcd>
anyone watched the latest rubykaigi videos ? are we there yet for guilds ?
<nikivi>
the last evaluated is returned
<apeiros>
nikivi: correct. you can however still explicitly return.
rajdesai has joined #ruby
<livcd>
nikivi: just wait when sorbet.rb will be all the rage
graphene has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
FernandoBasso has joined #ruby
apeiros has joined #ruby
_whitelogger has joined #ruby
sphenxes has quit [Quit: Leaving]
dhawan has joined #ruby
vonfry_ has joined #ruby
vonfry has quit [Remote host closed the connection]
jraavis has joined #ruby
vonfry has joined #ruby
vonfry_ has quit [Remote host closed the connection]
ebye__ has joined #ruby
lele has quit [Ping timeout: 245 seconds]
lele has joined #ruby
ebye__ has quit [Quit: Lost terminal]
^mtkd has joined #ruby
sylario has joined #ruby
leitz has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
psychicist__ has joined #ruby
olspookishmagus has quit [Ping timeout: 240 seconds]
RougeR has quit [Ping timeout: 244 seconds]
dhawan has quit [Quit: Leaving.]
jyaworski has quit [Ping timeout: 260 seconds]
olspookishmagus has joined #ruby
olspookishmagus is now known as Guest96065
amelliaa has joined #ruby
jyaworski has joined #ruby
<nikivi>
is it possible to know from where the method is being called in ruby?
<leitz>
How do I 'require' my new gem? It's installed in /usr/local/lib/ruby/gems/2.6.0/gems/2D6_OGL_CharGen-0.0.5 and I can run the commands. However, I'd like to be able to use the "dice" class in 'lib' outside of the chargen stuff.
<nikivi>
If I do this it means I can skip modifiers in method call?
<nikivi>
and it will be nil then
<nikivi>
right?
<leitz>
Yes.
jamesaxl has joined #ruby
<leitz>
Keep in mind that nil is it's own class.
<leitz>
Useful for testing, vice "false" or "{}"
rawste has quit [Quit: Sleep....]
<leitz>
fred = nil ; fred.nil?
<leitz>
My niche for Ruby is to help me have fun learning OOP.
zapata has quit [Ping timeout: 256 seconds]
zapata has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
rajdesai has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<leitz>
Okay, time to get ready for church. Enjoy the day!
leitz has quit [Quit: Nappy time]
Inline has quit [Quit: Leaving]
tty has quit [Quit: tty]
ebye__ has joined #ruby
Inline has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
rajdesai has quit [Ping timeout: 244 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
mtkd has quit []
dellavg has joined #ruby
rawste has joined #ruby
amar has joined #ruby
mtkd has joined #ruby
conta has joined #ruby
BloopMonster has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
amar has quit [Remote host closed the connection]
demistify has joined #ruby
jraavis has quit [Ping timeout: 244 seconds]
kryptoz has joined #ruby
rajdesai has joined #ruby
alem0lars has joined #ruby
rajdesai has quit [Client Quit]
kryptoz has quit [Remote host closed the connection]
ebye__ has quit [Quit: Lost terminal]
mtkd has quit []
kryptoz has joined #ruby
reber has joined #ruby
amar has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
za1b1tsu has quit [Quit: WeeChat 2.1]
za1b1tsu has joined #ruby
Emmanuel_Chanel has joined #ruby
ghoti has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
mtkd has joined #ruby
Asher has quit [Ping timeout: 245 seconds]
ghoti has joined #ruby
fmcgeough has joined #ruby
amar has quit [Remote host closed the connection]
Guest35491 has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
bak1an has joined #ruby
Guest35491 has quit [Ping timeout: 264 seconds]
mtkd has quit []
cadillac_ has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
cadillac_ has joined #ruby
Asher has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
dhawan has left #ruby [#ruby]
mmattice has quit [Ping timeout: 276 seconds]
Asher has quit [Ping timeout: 268 seconds]
mmattice has joined #ruby
cyberg has quit [Ping timeout: 260 seconds]
cyberg has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
amar has joined #ruby
graphene has joined #ruby
conta has quit [Quit: conta]
mtkd has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
nicht has joined #ruby
mmattice has quit [Ping timeout: 264 seconds]
Es0teric has joined #ruby
mmattice has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
lunarkitty7 has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
lightstalker has quit [Ping timeout: 264 seconds]
mtkd has quit []
Mike11 has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
mtkd has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
<nikivi>
are modules uppercased in ruby?
<nikivi>
or you can lowercase them too?
Asher has joined #ruby
mmattice has quit [Ping timeout: 244 seconds]
mmattice has joined #ruby
spiette has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 248 seconds]
bak1an has quit [Ping timeout: 244 seconds]
BloopMonster has joined #ruby
houhoulis has joined #ruby
<elomatreb>
Making a name uppercase gives it constant-like treatment in Ruby, you can assign anything to local variables (lowercase names) too but it's kind of useless
<elomatreb>
It doesn't add it if the condition isn't met, yeah
<nikivi>
I was thinking of overwriting it :)
<nikivi>
will try now
TheBrayn has quit [Quit: WeeChat 2.1]
<elomatreb>
In general this seems like a kind of dirty approach though, is there a good reason you can't just always have the key and just set it to the value, and ignore it later if it is nil?
<nikivi>
sweet that worked
TheBrayn has joined #ruby
<nikivi>
the JSON spec, doesn't accept null value there
<nikivi>
it either exists with some value or doesn't
<elomatreb>
Ruby will automatically remove null fields
<nikivi>
what that did was made it so that if you press b, it will insert TODO: in sucession
<Zarthus>
I just need help understanding the problem/feature.
<nikivi>
so it will trigger T (with shift held, then O (with shift)..
<nikivi>
take a look at key() method, see if it makes sense a bit
<nikivi>
there is held_trigger which is key being held down, then trigger_key which is the key that will be pressed when that key is held down and key_code is what will be inserted once that happens
<nikivi>
but this does it for 1 key only
<Zarthus>
i understand how it works, I just have trouble understanding the purpose. Let's say you have an app and I hold down "s" and then press "i", what do you expect to happen?
<nikivi>
whatever I define to happen
<nikivi>
it can insert o key for example
<Zarthus>
so then I'm holding down s, i, and o?
<nikivi>
but what I want it to do now is to define s + i to insert todo in succession
<nikivi>
no you hold down s, then press i
<nikivi>
and o comes on screen
<Zarthus>
OK. clear
<nikivi>
you can release s after if you want
<nikivi>
s is like modifer key
<Zarthus>
yeah, that's what i had trouble grokking
<nikivi>
so that stuff I can do, one to one mappings
<nikivi>
but I have trouble how I can extend it to multiple key calls
<nikivi>
I guess I have to use array in some way
<Zarthus>
the way I've seen this being done in other applications is event-based. Where you'd send two events instead of one.
<nikivi>
but the thing is that those keys can also have modifiers
desperek has joined #ruby
<nikivi>
is there a way I can have some complicated arguments in a method call
<nikivi>
although not sure that would help
<Zarthus>
sure. you can pass a hash, object, or just *args