miskatonic has quit [Remote host closed the connection]
fratis has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
Esa__ has quit []
TCZ has quit [Quit: Leaving]
fluxAeon has quit [Ping timeout: 256 seconds]
troulouliou_dev has joined #ruby
rmnull has quit [Quit: WeeChat 2.8]
d3bug has quit [Quit: Connection closed for inactivity]
jinmiaoluo has quit [Quit: WeeChat 2.8]
jinmiaoluo has joined #ruby
renich_ has joined #ruby
renich has quit [Ping timeout: 256 seconds]
ChmEarl has quit [Quit: Leaving]
renich has joined #ruby
renich_ has quit [Ping timeout: 258 seconds]
troulouliou_div2 has quit [Quit: Leaving]
comet23 has joined #ruby
<siery>
Maybe that's a stupid question but since you cannot delete objects in ruby.. how to implement something like State Machine for program runing in main_loop space?
troulouliou_dev has quit [Ping timeout: 256 seconds]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
darkstar_13 has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
nofxx_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
execat[m] has quit [*.net *.split]
zapata has quit [*.net *.split]
Vashy has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
manveru has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
leah2 has quit [*.net *.split]
kashike has quit [*.net *.split]
mnemon has quit [*.net *.split]
jhass has quit [*.net *.split]
noodle has quit [*.net *.split]
edwardly has quit [*.net *.split]
jtdowney has quit [*.net *.split]
<havenwood>
siery: Say more about not being able to delete objects? There's WeakRef if you really want that sort of thing.
<havenwood>
siery: What does a state machine have to do with deleting objects?
d3bug has joined #ruby
cliluw has quit [Remote host closed the connection]
execat[m] has joined #ruby
Vashy has joined #ruby
manveru has joined #ruby
mnemon has joined #ruby
kashike has joined #ruby
hahuang65 has joined #ruby
noodle has joined #ruby
zapata has joined #ruby
Hobbyboy has joined #ruby
CustosLimen has joined #ruby
leah2 has joined #ruby
jhass has joined #ruby
edwardly has joined #ruby
jtdowney has joined #ruby
cliluw has joined #ruby
sauvin has joined #ruby
hahuang65 has quit [Max SendQ exceeded]
leah2 has quit [Max SendQ exceeded]
CustosLimen has quit [Max SendQ exceeded]
noodle has quit [Max SendQ exceeded]
edwardly has quit [Max SendQ exceeded]
execat[m] has quit [Max SendQ exceeded]
leah2 has joined #ruby
hahuang65 has joined #ruby
CustosLimen has joined #ruby
execat[m] has joined #ruby
edwardly has joined #ruby
<havenwood>
&>> require 'weakref'; hash = WeakRef.new({}); hash if hash.weakref_alive?
<siery>
You see, I want to reiplament the @game object in here
<siery>
Please refer to the restart! method
<siery>
havenwood: I mean CROW::restart!
cliluw has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: leaving]
<siery>
havenwood: I recomend to run it with 2> /dev/null c:
gitter1234 has joined #ruby
<siery>
havenwood: How else can you reinitialize a state without deleting objects from memory o.0? I know, this code does not even atempt to implement a state machine, but you can see I have a big design isue here.
<siery>
Oh.. I see, those state machines just use blocks to approach this, well, this can be a way
sarink has joined #ruby
sarink has quit [Ping timeout: 258 seconds]
jinmiaoluo has quit [Ping timeout: 265 seconds]
donofrio_ has joined #ruby
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
d3bug has quit [Quit: Connection closed for inactivity]
jinmiaoluo has joined #ruby
<siery>
havenwood: The memory can look somehow like this after reinitialization:
<al2o3-cr>
that should give you all of core classes and any that have been required.
<leitz>
TheBrayn, I did a google search, but used poorer terms. :(
d3bug has joined #ruby
alfiemax has quit [Remote host closed the connection]
BH23 has quit [Remote host closed the connection]
Esa__ has joined #ruby
BH23 has joined #ruby
Phoebus has quit [Quit: Connection closed for inactivity]
soniya29 has joined #ruby
lightstalker has joined #ruby
jinmiaoluo has joined #ruby
<soniya29>
Hello everyone, I need a help while calling instance method in child class. Here is the piece of code - https://paste.centos.org/view/6e7d8ab6. At line #10, it says - Error: yugabytedb@2.0: undefined method `versioned_formula?' for #<Class:0x00007fdb241c0258>
evdubs has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
Caerus has quit [Ping timeout: 256 seconds]
Caerus has joined #ruby
<mynameisdebian>
I am trying to POST to an API endpoint (say https://example.com/example), and I want to post this query string to the Body: token=abc,urls=somethingsomething,name=something . The API specifically says it has to be a querystring (not JSON). How can I do this in HTTParty?
<mynameisdebian>
or another library I gues
TCZ has joined #ruby
tpanarch1st has joined #ruby
schne1der has quit [Ping timeout: 258 seconds]
SeepingN_ has joined #ruby
SeepingN has quit [Disconnected by services]
mynameisdebian has quit [Ping timeout: 264 seconds]
SeepingN_ has quit [Ping timeout: 265 seconds]
SeepingN_ has joined #ruby
SeepingN has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
banisterfiend has joined #ruby
SeepingN_ has quit [Ping timeout: 265 seconds]
mynameisdebian has joined #ruby
alfiemax has joined #ruby
<mynameisdebian>
I am trying to POST to an API endpoint (say https://example.com/example), and I want to post this query string to the Body: token=abc,urls=somethingsomething,name=something . The API specifically says it has to be a querystring (not JSON). How can I do this in Ruby?
gix has quit [Ping timeout: 260 seconds]
hramrach has quit [Ping timeout: 256 seconds]
<havenwood>
mynameisdebian: It looks like the first example in the HTTParty README.md shows how.
<havenwood>
mynameisdebian: The HTTP or Typhoeus gems are great alternatives to HTTParty.
mynameisdebian has quit [Ping timeout: 250 seconds]
alfiemax has quit [Remote host closed the connection]
arcaos has quit [Remote host closed the connection]
elcontrastador has joined #ruby
TCZ has quit [Quit: Leaving]
conta has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
<haylon[m]>
A non-ruby specific question, but has anyone worked with using GitHub or whatever source control manager you're using to scan for sensitive data or things that shouldn't be there?
cisco has quit [Ping timeout: 250 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
cliluw has joined #ruby
conta has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
<mwlang>
is it possible to gracefully exit a process if using ConditionVariable to wait on a signal from a mutex if that signal never comes and the main process is exiting? In such scenario, if a program is exiting without ever having gotten a signal I get “fatal: No live threads left. Deadlock?”
Esa__ has quit [Ping timeout: 256 seconds]
cliluw has quit [Ping timeout: 252 seconds]
cliluw has joined #ruby
<mwlang>
It seems like what I need to do is install an on_exit handler to either a) broadcast and handle within the blocked method explicitly or b) check the mutex.locked? and somehow terminate that waiting method so it doesn’t continue to wait nor process anything further. But I’m not quite clear on best way to go about it.
<haylon[m]>
havenwood: were you simply running a "bot" or script, or did you have something wlse you were doing
<haylon[m]>
and there it is.
<havenwood>
haylon[m]: I'd be happy to help expand it to other checksums. It works well. ;)
<haylon[m]>
Awesome! I'll definitely see waht I can use from this and help you out or you help me out
<haylon[m]>
ITS A COLLAB
<havenwood>
haylon[m]: This ^ prints them as it goes then at the end returns an Array of [sha1, path, line_number].
<siery>
havenwood: No, I want to make a restart! method the reinitialize @game object and reload the code, the game code defines it's instances of Camera and Spect in it's constructor
<havenwood>
haylon[m]: It should be quite quick for scanning an app.
<haylon[m]>
Awesome, thank you, havenwood
<siery>
havenwood: so you see, each time I clean @game, there is still representation of those objects handing..
<havenwood>
siery: Do you want a restart to be a complete reset and reload of the code then?
<siery>
havenwood: so in result I'w got for ex. double Camera representation after restart
<havenwood>
siery: Should there only ever be one Camera? Are there multiple instances of Camera?
<siery>
yes, but in particular those objects in @game.new
<siery>
The old camera, or multiple cameraz (initialized by @game), shold be deleted before they get reinitialized..
fercell has quit [Quit: WeeChat 2.8]
<havenwood>
siery: If you only want a single instance, consider Singleton. Singleton is one of the module Matz himself maintains and it's a great way to ensure a single instance of state.
<siery>
Maybe I need to reset all data manualy?
burningserenity has quit [Ping timeout: 250 seconds]
<havenwood>
siery: That way, you can have #reset clear out whatever instance variables you want to reset state entirely, since you only have one instance.
<siery>
but I want have a possibility do declare as many cameras, or any other objects as I want
<havenwood>
siery: Alternatively you can dereference an instance of an old class, and the GC will automatically sweep it.
<siery>
Did yoy try to run the code?
<havenwood>
siery: Nope.
galaxie has left #ruby [#ruby]
<siery>
I guess it ilustrates the problem pretty well
<havenwood>
siery: It seems unreasonable to me to be worrying about manual memory references for what you're doing here. Just set `@game =` to something else and the old, unreferenced value will be swept by the GC.
cd has joined #ruby
<siery>
havenwood: So why do I get things doubled after each restart! execution? I do even more then that
<siery>
you shold be able to run /bin/thief if you clone this project
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<siery>
havenwood: Just press F6 after runing the window, this will run rastart! method
<siery>
as you see the Thief.game.clean_camera does just:
shirak has joined #ruby
<siery>
@camera = WeakRef.new(Camera)
burningserenity has joined #ruby
mwlang_ has joined #ruby
mwlang has quit [Ping timeout: 240 seconds]
mwlang_ is now known as mwlang
<siery>
havenwood: But I want to clean other objects as well, this is just oversimplification, I guess I shold reacher say something like:
<siery>
def clean_init
<siery>
ObjectSpace.each_object GameObject do |object|
<siery>
object = WeakRef.new(GameObject)
<siery>
end
<siery>
end
burningserenity has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
burningserenity has joined #ruby
<haylon[m]>
Of coruse Microsoft Azure doesn't have a Ruby library for Azure DevOps
alexherbo23 has joined #ruby
burningserenity has quit [Read error: Connection reset by peer]
<haylon[m]>
If they didn't use msrest and some of their practices it wouldn't be that bad.
<haylon[m]>
what do i know.
akem has joined #ruby
<haylon[m]>
it definitely makes the Python version difficult to follow
imode has joined #ruby
<soniya29>
al2o3-cr, doesn't work, throws same error
ellcs has quit [Ping timeout: 265 seconds]
cisco has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
<adam12>
haylon[m]: I wish it wasn't auto-generated but I guess I understand why they do it. but azure_mgmt_network adds 12 seconds of boot time to my app :|
<haylon[m]>
Wuff.
<haylon[m]>
Yea, the Factory Method is... interesting
burningserenity has joined #ruby
leitz has quit [Quit: Leaving]
buckworst has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
burningserenity has quit [Ping timeout: 264 seconds]
kinduff has quit [Quit: gg]
kinduff has joined #ruby
cisco has quit [Ping timeout: 265 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
jetchisel has joined #ruby
gitter1234 has joined #ruby
ur5us has quit [Quit: Leaving]
svilenv has joined #ruby
ur5us has joined #ruby
<al2o3-cr>
butter bean
alfiemax has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 265 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
svilenv has quit [Remote host closed the connection]
gdonald has quit [Remote host closed the connection]
gdonald has joined #ruby
sarink has joined #ruby
sarink has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
hsiktas has quit []
cow[moo] has joined #ruby
ellcs has joined #ruby
TCZ has joined #ruby
reber_ has joined #ruby
<gitter1234>
al2o3-cr: that dude is awesome :)
<gitter1234>
for all yall who dont know, butter bean is a legendary figure
banisterfiend has quit [Ping timeout: 265 seconds]
<haylon[m]>
*googles
<haylon[m]>
Eric Esch? The boxer?
evdubs_ is now known as evdubs
davispuh has joined #ruby
<xco>
gitter1234 i was about to ask "what's butter bean?"
<gitter1234>
hehe
hramrach has joined #ruby
<gitter1234>
overweight dude with apparently no chance of winning, despite all odds turned out to be smashing the competition
<gitter1234>
like andy ruiz in the 21st century (before the coke got to him)
sarink has joined #ruby
<gitter1234>
why wouldn't you do coke. off strippers asses. you're the heavyweight champion of the world!
<gitter1234>
sorry offtopic
mwlang has quit [Quit: mwlang]
djdduty has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xco>
gitter1234 oooooo Eric Esch!! I know that guy hahaha!! yeah he did quite well. if i had read ahead and known the context i'd have recognised him hahah!!