<^>
havenwood: does a standard Hash still work fine as a kvstore in Async::IO, or is there a special container i should use?
<havenwood>
^: Think of Async::IO like Ruby core IO and Socket, except it's asynchronous. You'd still serialize before sending, if that's what you mean?
<havenwood>
<^> ^
Nicolab has quit [Quit: Leaving.]
<^>
ah, yeah, that makes sense, thanks
* ^
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
guzzlefry has quit [Changing host]
guzzlefry has joined #ruby
phaul_ has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul_ has quit [Ping timeout: 260 seconds]
phaul_ has joined #ruby
Sauvin has joined #ruby
spacesuitdiver has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
phaul_ has joined #ruby
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
phaul_ has quit [Ping timeout: 265 seconds]
phaul_ has joined #ruby
turbo_choo has quit [Remote host closed the connection]
turbo_choo has joined #ruby
turbo_choo has quit [Ping timeout: 265 seconds]
turbo_choo has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
<adam12>
mark1_: Still around?
<mark1_>
adam12: yes sir!
<adam12>
mark1_: Did you solve your issue?
<mark1_>
adam12: ariedler figured it out, it was those weird dot characters i copy/pasted from bulma.io's examples
<adam12>
mark1_: Yah! Encoding bug.
<mark1_>
yup :D
<mark1_>
css frameworks :/
<adam12>
LOL. I'm surprised Rails swallowed the exception in this case.
<mark1_>
true. should have gone with that clue. luckily there are people 100x smarter than me here
<adam12>
It's much more manual but I end up fighting "frameworks" anyways. Rather just not write CSS and use utility classes everywhere.
<mark1_>
ah i see
<adam12>
If you're familiar with CSS at all you should check out Tailwind if you haven't already.
<mark1_>
yeah it is time consuming :)
<mark1_>
and not as fun if one is not a graphic designer to begin with, imho
<mark1_>
ill check it out, cheers man!
<adam12>
Cheers!
<guzzlefry>
Ruby has async?
<guzzlefry>
(native)
phaul_ has quit [Ping timeout: 268 seconds]
<mark1_>
adam12: looks pretty similar to bulma.io to be honest. tons of weird class names and divs inside divs inside divs etc.
<mark1_>
not sure what tailwind's intentions are but bulma's are to earn money
<adam12>
mark1_: Weird class names yes.
<mark1_>
if i do my own css i dont need class names at all which is kinda neat imho
<adam12>
mark1_: Tailwind (and Tachyons it's cousin) is basically, avoid writing CSS most of the time, but build layouts that don't look all the same.
<mark1_>
or at least not class names that refer to the visual aspect but rather the meaning behind the tags
<adam12>
Yeah. I've gone completely against the 'old' way of how we do it. Especially on teams where people are lazy and do whatever they want, creating a CSS mess.
<havenwood>
guzzlefry: Yes, it has a nice Async library now, socketry/async. Its maintainer, ioquatix, received a Ruby Foundation grant to work on Async for Ruby.
<guzzlefry>
I use use SCSS and mixins from a CSS framework to make my HTML classes semantic.
<mark1_>
i think that's bulma's selling point too. this app (first and last) i made with bulma there was no css involved. except for now after we figured out this bug
<mark1_>
guzzlefry: how does scss make your html more semantic?
<havenwood>
guzzlefry: ioquatix is working with ko1 and matz on async/isolates for Ruby 3 next Christmas, but the Async lib is useable now.
<mark1_>
guzzlefry: isn't it just a way to DRY up your css in rather unnecessary ways?
<adam12>
havenwood: I wonder if we'll get any forward motion on the ruby signature / auto type inference stuff. I saw it added to the DevMetting.
<guzzlefry>
havenwood: thanks
<havenwood>
adam12: Square is helping sponsor the work now. :)
<adam12>
havenwood: Yay!
<mark1_>
guzzlefry: div.user is not a css/scss thing its more a framework thing imho. scss isnt a css framework is it? isn't it just an unnecessary abstraction?
<mark1_>
div.user vs div.user-col-bs-23-2a is more a matter of good semantic html imho
<mark1_>
scss is more about being able to use variables and nest css together, in other words, complicating it even further i think?
<guzzlefry>
eh, I end up with more organized styling code.
<mark1_>
yeah if css frameworks are your only choice, i can understand that
<guzzlefry>
Even if they aren't. You can group things into files/directories instead of one giant CSS file.
<mark1_>
but without frameworks it can be 100x simpler imho. i might not be an expert at rails
<mark1_>
but i've worked with css for over 10 years and prior do that i majored in architecture and graphic design
<^>
unrelated but is there any advantage to sticking gem deps in the gemspec file instead of the Gemfile?
freedom has quit [Remote host closed the connection]
<^>
oh hey, reline is pretty cool
freedom has joined #ruby
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
fphilipe has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
phaul_ has joined #ruby
<adam12>
^: I usually stick dev dependencies in the Gemfile. Obviously you'll need runtime deps in the gemspec for them to install, since `gem` won't honour them in Gemfile.
<^>
oh, i see
ur5us has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
phaul_ has joined #ruby
<adam12>
178M ./.git/objects
<adam12>
Wow I wonder how that happened. readline-ext repo.
neha has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
freedom has quit [Remote host closed the connection]
<neha>
Hi have created one postgres function and i have call in update function and now deployed in production so i need to add in migration or what I'll be do?
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
neha has quit [Ping timeout: 260 seconds]
fphilipe has joined #ruby
phaul_ has joined #ruby
etupat has joined #ruby
phaul_ has quit [Ping timeout: 258 seconds]
phaul_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crella133 has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brool has joined #ruby
polishdub has joined #ruby
phaul_ has quit [Ping timeout: 260 seconds]
poontangmessiah has joined #ruby
crella133 has quit [Quit: crella133]
ajsharma has joined #ruby
phaul_ has joined #ruby
gix has quit [Ping timeout: 258 seconds]
poontangmessiah has quit [Quit: WeeChat 2.7]
phaul_ has quit [Ping timeout: 240 seconds]
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 260 seconds]
fphilipe has quit [Ping timeout: 248 seconds]
phaul_ has joined #ruby
polishdub has quit [Remote host closed the connection]
phaul_ has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
phaul_ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
phaul_ has quit [Ping timeout: 258 seconds]
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
phaul_ has joined #ruby
neha has joined #ruby
cthulchu_ has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
phaul_ has joined #ruby
itarato has joined #ruby
nofxx_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
phaul_ has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
chalkmonster has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
Swyper has joined #ruby
alex has joined #ruby
alexherbo2 has joined #ruby
fphilipe has quit [Ping timeout: 260 seconds]
Swyper has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
sagax has quit [Quit: Konversation terminated!]
phaul_ has joined #ruby
Swyper has joined #ruby
donofrio has joined #ruby
Swyper has quit [Ping timeout: 258 seconds]
skx86 has joined #ruby
ellcs has joined #ruby
Swyper has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 248 seconds]
bvdw has joined #ruby
ellcs has joined #ruby
Xiti` has joined #ruby
Swyper has quit [Ping timeout: 258 seconds]
Xiti has quit [Ping timeout: 260 seconds]
turbo_choo has quit [Ping timeout: 260 seconds]
AJA4350 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 265 seconds]
Swyper has joined #ruby
fphilipe has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
romanblanco has quit [Ping timeout: 260 seconds]
gix has joined #ruby
Technodrome has joined #ruby
FrankDW2 has quit [Changing host]
FrankDW2 has joined #ruby
turbo_choo has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
snickers has quit [Read error: Connection reset by peer]
yann-kaelig has joined #ruby
Inline has quit [Quit: Leaving]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has joined #ruby
bsdbandit-01 has quit [Ping timeout: 265 seconds]
Nicolab has quit [Quit: Leaving.]
rory35 has joined #ruby
rory35 is now known as rorhug
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
rorhug has quit [Remote host closed the connection]
voker57 has quit [Quit: voker57]
voker57 has joined #ruby
bsdbandit-01 has joined #ruby
davispuh has joined #ruby
akemhp has quit [Quit: Leaving]
Guest60 has joined #ruby
<Guest60>
hi folks! can anyone please help me out to figure out why ruby can't find installed gems on RHEL?
<Guest60>
for example beefcake gem is installed in /usr/local/lib/ruby/gems/2.0.0/gems/beefcake-1.0.0/beefcake.gemspec but doing `require 'beefcake'` in `GEM_PATH=/usr/local/lib/ruby/gems/2.0.0/gems irb` yields an error
<Guest60>
LoadError: cannot load such file -- beefcake
Guest60 is now known as lessless
<lessless>
hi folks! can anyone please help me out to figure out why ruby can't find installed gems on RHEL
<lessless>
for example beefcake gem is installed in /usr/local/lib/ruby/gems/2.0.0/gems/beefcake-1.0.0/beefcake.gemspec but doing `require 'beefcake'` in `GEM_PATH=/usr/local/lib/ruby/gems/2.0.0/gems irb` yields an error: "LoadError: cannot load such file -- beefcake"
chalkmonster has quit [Quit: WeeChat 2.7]
turbo_choo has quit [Ping timeout: 265 seconds]
schne1der has quit [Ping timeout: 268 seconds]
Nicolab has joined #ruby
akemhp has joined #ruby
finmuffin has joined #ruby
turbo_choo has joined #ruby
TCZ has quit [Quit: Bye Bye]
romanblanco has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has joined #ruby
voker57 has quit [Quit: voker57]
neha has quit [Remote host closed the connection]
voker57 has joined #ruby
leah2 has quit [Quit: trotz alledem!]
leah2 has joined #ruby
schne1der has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
greenhat_ has quit [Ping timeout: 260 seconds]
greenhat_ has joined #ruby
NODE has left #ruby [#ruby]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
greenhat_ has quit [Quit: WeeChat 2.6]
greenhat has joined #ruby
ElFerna has joined #ruby
lessless has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
Swyper has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
cd has joined #ruby
NODE has quit [Quit: changing servers]
cthulchu_ has joined #ruby
NODE has joined #ruby
sagax has joined #ruby
NODE has quit [Client Quit]
alex has quit [Quit: WeeChat 2.7]
NODE has joined #ruby
greenhat has quit [Ping timeout: 265 seconds]
Swyper has quit [Read error: Connection reset by peer]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
skryking has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
Azure has joined #ruby
Swyper has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
duderonomy has joined #ruby
postmodern has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
ellcs has quit [Ping timeout: 260 seconds]
ElFerna has quit [Quit: ElFerna]
<erikh>
does beefcake load eric cartman quotes
Nicolab has quit [Quit: Leaving.]
Swyper has joined #ruby
ur5us has joined #ruby
kshitij has quit [Quit: Connection closed for inactivity]
kloeri has quit [Quit: brb]
kloeri has joined #ruby
ElFerna has joined #ruby
im0nde_ has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
im0nde has joined #ruby
kloeri has quit [Quit: WeeChat 2.1]
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
kloeri has joined #ruby
postmodern has quit [Ping timeout: 240 seconds]
ElFerna has quit [Quit: ElFerna]
ElFerna has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
segy has quit [Ping timeout: 260 seconds]
NODE has quit [Client Quit]
ElFerna has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
segy has joined #ruby
ElFerna has joined #ruby
^ is now known as uplime
errst has quit [Remote host closed the connection]
fphilipe has joined #ruby
mwlang has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
mwlang has quit [Quit: mwlang]
segy has quit [Ping timeout: 260 seconds]
segy has joined #ruby
TCZ has joined #ruby
nima_m has quit [Quit: Connection closed for inactivity]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
spacesuitdiver has joined #ruby
skryking has quit [Quit: WeeChat 1.9.1]
ElFerna has quit [Ping timeout: 265 seconds]
nowhere_man has joined #ruby
NODE has quit [Quit: changing servers]
<akemhp>
Hey.
NODE has joined #ruby
<akemhp>
How can i insert a NIL into a string?
<akemhp>
ruby -e 's="abc"; s[1]=NIL; puts s'
<akemhp>
Or "s[1] = 0;" but i can't do that either.
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<akemhp>
I know i'm not supposed to do this, but just to know if it possible in Ruby? cause in C i can do s[1] = 0; without any trouble of course.
<erikh>
s[1] is the integer value of a character
<erikh>
are you looking to truncate a string?
<erikh>
just take another variable with a slice: s="abc"; puts s[0..1]
<erikh>
there are string functions for this too IIRC; but it's been a while since I've rubied
schne1der has quit [Ping timeout: 265 seconds]
<akemhp>
Yeah sort of, i just want to manually insert a 0 into the string. but "s[1] = 'e';" works as expected replacing the 1st character of the string with an 'e' AFAIK.
<erikh>
you want a literal 0 and not a NUL character?
<akemhp>
Not the number 0, but a NIL value.
<erikh>
ah
<erikh>
ok try inserting '\0'
<erikh>
sorry "\0"
<erikh>
'' isn't char in ruby, it's an unprocessed string
<erikh>
\0 should give you what you want - it's the escape for a NUL value
lucasb has quit [Quit: Connection closed for inactivity]
<akemhp>
Ok, i think it works erikh. But when i print the string, it just skip that character and print the right part of the string, shouldn't it stops at the \0, just like if it was truncated ?
<akemhp>
In C it wouldn't print the remaining chars to the right AFAIK.
<erikh>
ruby doesn't use null termination
<erikh>
it trakcs the length for you
<erikh>
I showed you how to truncate a string above :)
<erikh>
are you familiar with bstring? very similar in how ruby behaves
<erikh>
NUL isn't printed on most terminals
<erikh>
which is why you're not seeing it. but it's printing it
<erikh>
write a program to print it to stdout and do this
<erikh>
ruby myprogram.rb | od -t c
<erikh>
you'll see it
<erikh>
you can do all sorts of fun stuff with nul characters
<erikh>
find -print0
<erikh>
:)
<akemhp>
Yeah it prints the \0 with od.
<akemhp>
Ok, so i didn't know about this, thanks erikh.
<erikh>
so in ruby, there's a string struct called RString
<erikh>
you should read up on it
<erikh>
or maybe it's a macro that touches some other struct, I forget now
<erikh>
but that's where you can learn how ruby deals with strings at the C level
<erikh>
s/ruby/MRI/ to be precise
<erikh>
IIRC it keeps length, encoding and a few other small properties
dionysus69 has quit [Quit: dionysus69]
<akemhp>
Yeah, i'm having a quick look at string.c ...I feel like the Linux kernel stuff :P
dkmueller has joined #ruby
<akemhp>
When you got the simplicity of ruby and you see that, it feels so overcomplicated :P Thanks to that kind of stuff i can do some tasty ruby code instead. Anyway back to my stuff... thanks erikh.
freedom has joined #ruby
GodFather has joined #ruby
<erikh>
yep
yokel has quit [Ping timeout: 268 seconds]
kloeri has quit [Quit: brb]
kloeri has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poontangmessiah has joined #ruby
segy_ has joined #ruby
segy has quit [Ping timeout: 260 seconds]
segy_ is now known as segy
bvdw has quit [Quit: bvdw]
yann-kaelig has quit [Quit: yann-kaelig]
bvdw has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
segy has quit [Ping timeout: 268 seconds]
segy has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
duderonomy has joined #ruby
postmodern has joined #ruby
ElFerna has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Nicolab has joined #ruby
TCZ has quit [Quit: Bye Bye]
segy has quit [Ping timeout: 260 seconds]
segy has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
bsdbandit-01 has joined #ruby
bsdband85 has quit [Ping timeout: 240 seconds]
segy has quit [Ping timeout: 258 seconds]
nofxx_ has quit [Remote host closed the connection]