<riceandbeans>
I once interviewed at a place that had a large usage of ponylang in production
<riceandbeans>
I couldn't hang when they gave me a coding challenge
stryek has quit [Quit: Connection closed for inactivity]
<riceandbeans>
jhass: I think looking back I can't say what you said, I think I have to use decimal on the right
<riceandbeans>
expect((File.stat('/etc/rc.conf').mode & 0o700) >> 6).to be >= 4
<riceandbeans>
not
<riceandbeans>
expect((File.stat('/etc/rc.conf').mode & 0o700) >> 6).to be >= 0o400
<riceandbeans>
I end up getting got 6, expected 256
<leftylink>
well. one has to be consistent
<leftylink>
either one should shift by 6 and expect either 4 in any representation (0x4, 0o4, 4, etc.), or one should not shift at all and expect 256 in any representation (0o400, 0x100, 256)
<plant_enjoyer>
the vim setup I have *works*, but it's slow :P I'll just live with the slowness for now
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
phage has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<adam12>
plant_enjoyer: I use vscode+vim integration and it's not bad.
<adam12>
plant_enjoyer: Once the nvim integration improves a bit I might go back to it, because it worked especially well.
<plant_enjoyer>
adam12: I had vscode wreck my entire file when I used undo and redo a couple times :/
<plant_enjoyer>
with vim bindings I mean
<adam12>
plant_enjoyer: Weird
<plant_enjoyer>
adam12: yeah, and it wasn't a one-time freak accident, it happened a couple of times lol
<adam12>
I have had near zero issues
<adam12>
Maybe a bug randomly every few months, but nothing recently.
fercell has joined #ruby
<adam12>
And I'm in it 10+ hours a day, 5 days a week.
dviola has joined #ruby
charrit69 has joined #ruby
kurko_ has joined #ruby
baojg has quit [Remote host closed the connection]
<plant_enjoyer>
yeah well, I could get unlucky :P
plant_enjoyer has quit [Quit: Leaving]
baojg has joined #ruby
moldorcoder7 has quit [Ping timeout: 264 seconds]
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
impermanence has quit [Quit: Connection closed]
skyikot has joined #ruby
moldorcoder7 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
DaRock has quit [Ping timeout: 256 seconds]
ChmEarl has joined #ruby
blackmesa has quit [Quit: WeeChat 3.0]
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby
Rudd0 has joined #ruby
Jonopoly has quit [Read error: Connection reset by peer]
cloud69 has joined #ruby
orbyt_ has joined #ruby
charrit69 has quit [Quit: Konversation terminated!]
Rooff has joined #ruby
<Rooff>
Good day brothers ;) im just want to start learning ruby then rails and react its my plans for future. Just ask to tell me one or two good ruby starts books which u thing will be not time loose
Rooff has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 240 seconds]
BH23 has joined #ruby
BH23 has quit [Client Quit]
BH23 has joined #ruby
cthu| has joined #ruby
phaul has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
fercell has quit [Quit: WeeChat 2.9]
silviu29 has quit [Ping timeout: 244 seconds]
silviu has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
cloud69 has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
cloud69 has joined #ruby
htmnc has joined #ruby
<htmnc>
I was peeling back under the hood using ruby-doc and pry, so I was trying to check out how yield is run, I can run ``show-doc Proc#call`` but that shows that call was stubbed out in proc
<htmnc>
looking at the proc.c @ tag v2_5_1 on the source tree I can see that it's commented out with an #if 0 macro, too. question is under what scope would I find ``yield`` instead, since I assume that's what is run instead when Proc#call is executed in this ver
<htmnc>
so, with that said, tl;dr for my qs: (1) proc#call just aliases to yield now, no? since there used to be performance differences years ago
<htmnc>
and (2) where might I find the source of the ``yield`` keyword or whatever else is actually run when Proc#call is executed now?
<riceandbeans>
Huh, I guess I just never noticed them until i was in Python on the regular
<riceandbeans>
I thought of it as sort of a Python thing really
phage has joined #ruby
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has quit [Ping timeout: 240 seconds]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cliluw has joined #ruby
cnsvc has joined #ruby
kurko_ has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand_ is now known as roshanavand
TCZ has joined #ruby
BH23 has quit [Quit: Connection closed for inactivity]
kurko_ has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
sh7d has quit [Quit: meh]
fercell has quit [Client Quit]
sh7d has joined #ruby
fercell has joined #ruby
fercell has quit [Client Quit]
adu has quit [Quit: adu]
ta has quit [Ping timeout: 240 seconds]
rubydoc has joined #ruby
orbyt_ has joined #ruby
adu has joined #ruby
baojg has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
baojg has joined #ruby
GodFather_ has quit [Ping timeout: 268 seconds]
howdoi has joined #ruby
ur5us_ has joined #ruby
teclator has joined #ruby
pwl has joined #ruby
GodFather_ has joined #ruby
GodFather has joined #ruby
pxl_ has joined #ruby
supercoven has quit [Ping timeout: 240 seconds]
skyikot has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 272 seconds]
ta has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwl has quit [Remote host closed the connection]
pxl_ has quit [Remote host closed the connection]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
jcalla has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
GodFather has quit [Remote host closed the connection]
GodFather_ has quit [Remote host closed the connection]
cisco has joined #ruby
BenDover has quit [Quit: BenDover]
GodFather has joined #ruby
dfucci has joined #ruby
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<nakilon>
is .uniq collision safe?
<nakilon>
I mean, for example, .uniq{ |_| [something_returning_integer[_], something_returning_string[_]] }
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
htmnc has quit [Quit: Leaving]
hassox has joined #ruby
hassox has quit [Client Quit]
cisco has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
<ruurd>
Yes well we get into trouble if we want to know what 0133 is... Is that 0o133 or is it 0x133?
advorak has joined #ruby
<advorak>
I'm trying to use a gem called cupsffi .. is anybody familiar with a more recent gem to, say, print pdf data directly to a printer? My other option is to directly pipe the pdf data to the 'lp' command, but I am having trouble finding how to pipe data to an external command?
adu has quit [Quit: adu]
moldorcoder7 has quit [Ping timeout: 240 seconds]
GodFather has quit [Remote host closed the connection]
moldorcoder7 has joined #ruby
<ruurd>
pipe?
<advorak>
echo "pdfdata" | lp -d PRINTERNAME
<ruurd>
Scratch that. Just use popen or popen3
<advorak>
I'm hoping ruby can handle the "randomstringofdata" and pipe it to the command lp -d PRINTERNAME
GodFather has joined #ruby
<ruurd>
Yes well you always could resort to dumping your stuff in a tempfile and feed that to lp in a popen
<ruurd>
IO.popen("lp") {lp_io| lp_io.write blob}
<ruurd>
Will print to your default printer as far as I know
adu has joined #ruby
<advorak>
thank you.. I'm experimenting right now with IO.popen..
Nahra has joined #ruby
<advorak>
got it. IO.popen("lp",'w') {|io| io.write 'hello world' } # I think it defaults to read-only unless i specify the 'w' .. It works now! :-)
adu has quit [Quit: adu]
<advorak>
thank you so much!
blender_ has joined #ruby
blender has quit [Ping timeout: 260 seconds]
evdubs has quit [Quit: Leaving]
<ruurd>
No problem.
<ruurd>
you might want to have a look at the options of lp, Otherwise you can use lpr which is roughly the same but different :-)
ur5us_ has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 246 seconds]
ur5us_ has joined #ruby
evdubs has joined #ruby
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
ruurd has quit [Quit: bye folks]
<advorak>
yeah I had the options for lp down for the purpose I needed, but I didn't know how to pipe things to it from ruby..
<advorak>
and I was able to do some nifty things using 'cupsffi' but I couldn't figure out how to engage the 'fit-to-page' scaling option so I gave up and opted for something like IO.pipe ..