havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
DaRock has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
meinside has joined #ruby
guzzlefry has quit [Quit: ZNC - http://znc.in]
guzzlefry has joined #ruby
<^> 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.
<adam12> I wonder if it's a Rails bug.
phaul_ has joined #ruby
<mark1_> good question
<adam12> It raised ActionView::Template::Error
<adam12> I use Tailwind for all my projects.
<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?
<havenwood> guzzlefry: https://github.com/socketry/async
<guzzlefry> mark1_: You can have div.user instead of div.col_sm_4.user
<mark1_> if your graphic design/css is good enough, or simple enough i should say, one wouldn't need scss to begin with
<mark1_> like that french dude said "perfection is achieved, not when there's nothing left to add, but when there's nothing left to take away"
<guzzlefry> In real life projects designs are never so simple.
<guzzlefry> well, s/never/usually not/
<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
<mark1_> http://motherfuckingwebsite.com/ i like this one :D (sorry if the name offends)
<adam12> One nice thing about 2.7 is the end to the libedit/libreadline madness, since it ships with reline.
<havenwood> adam12: \o/
phaul_ has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
gigetoo has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
phaul_ has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
Sauvin has joined #ruby
phaul_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
phaul_ has quit [Ping timeout: 258 seconds]
phaul_ has joined #ruby
<^> what is reline?
<^> guess i could just google it :)
phaul_ has quit [Ping timeout: 268 seconds]
<^> 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]
phaul_ has joined #ruby
Esa_ has joined #ruby
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
cthulchu_ has quit [Ping timeout: 260 seconds]
cthulchu_ has joined #ruby
polishdub has quit [Quit: leaving]
phaul_ has quit [Ping timeout: 258 seconds]
<neha> How to add postgres function in rails migartion flie?
<neha> Basically i have one postgres function in call update API and now i want to add in rails migration how to add sql qurey function to migrate
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
nofxx_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
etupat has quit [Remote host closed the connection]
ur5us has joined #ruby
itarato has quit [Quit: Konversation terminated!]
itarato has joined #ruby
itarato has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
fphilipe has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
brool has quit [Ping timeout: 268 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 260 seconds]
mark1_ has quit [Quit: Connection closed for inactivity]
schne1der has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul_ has joined #ruby
Swyper has quit [Remote host closed the connection]
dhollinger has quit [Quit: WeeChat 2.3]
MrCrackPot has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
schne1der has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
dhollinger has joined #ruby
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
snickers has joined #ruby
clemens3 has quit [Quit: WeeChat 1.6]
MrCrackPot has quit [Quit: Leaving]
schne1der has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
im0nde_ has joined #ruby
im0nde has quit [Ping timeout: 252 seconds]
cgfbee has quit [Remote host closed the connection]
cgfbee has joined #ruby
rippa has joined #ruby
<akemhp> Does the SerialPort ruby gem works for USB serial line?
Nicolab has joined #ruby
fphilipe has joined #ruby
phaul_ has joined #ruby
<akemhp> Never mind, looks like it's not needed on Linux to serial over USB.
nowhere_man has quit [Ping timeout: 246 seconds]
infinityfye has joined #ruby
turbo_choo has quit [Ping timeout: 265 seconds]
turbo_choo has joined #ruby
snickers has quit [Read error: Connection reset by peer]
snickers has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
FrankDW2 has joined #ruby
greenhat_ has joined #ruby
FrankDW has quit [Read error: Connection reset by peer]
greenhat has quit [Ping timeout: 240 seconds]
bsdbandit-01 has quit [Ping timeout: 260 seconds]
cthulchu_ has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
bsdbandit-01 has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
nofxx_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
voker57 has joined #ruby
Swyper has joined #ruby
mark1_ has joined #ruby
mark1_ has left #ruby [#ruby]
Swyper has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Bye Bye]
Swyper has joined #ruby
envex has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
Swyper has quit [Ping timeout: 258 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
chalkmonster has joined #ruby
Swyper has joined #ruby
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
Swyper has quit [Ping timeout: 268 seconds]
TCZ has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
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]
Swyper has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
lucasb has joined #ruby
Technodrome has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
NODE has quit [Client Quit]
NODE has joined #ruby
samdixon[m] has quit [Quit: User has been idle for 30+ days.]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iotatron[m] has left #ruby ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
william1 has joined #ruby
william1 has quit [Client Quit]
danielk43[m] has quit [Quit: User has been idle for 30+ days.]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
TCZ has quit [Quit: Bye Bye]
NODE has joined #ruby
otaznik[m] has quit [Quit: User has been idle for 30+ days.]
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
ElFerna has quit [Ping timeout: 258 seconds]
NODE has joined #ruby
infinityfye has quit [Quit: Leaving]
NODE has quit [Client Quit]
NODE has joined #ruby
AJA4350 has quit [Remote host closed the connection]
Hanspolo[m] has left #ruby ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
NODE has quit [Client Quit]
NODE has joined #ruby
AJA4350 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
AJA4350 has quit [Ping timeout: 260 seconds]
Nicolab has quit [Ping timeout: 260 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
AJA4350 has joined #ruby
execat[m] has left #ruby ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
greenhat has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
NODE has quit [Quit: changing servers]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has joined #ruby
Xiti` is now known as Xiti
fphilipe has joined #ruby
Swyper has quit [Remote host closed the connection]
romanblanco has quit [Ping timeout: 265 seconds]
fphilipe has quit [Ping timeout: 245 seconds]
brool has joined #ruby
sepp2k has quit [Quit: User has been idle for 30+ days.]
Swyper has joined #ruby
Nicolab has joined #ruby
mrsbear has joined #ruby
NODE has quit [Quit: changing servers]
Swyper has quit [Remote host closed the connection]
NODE has joined #ruby
nima_m has joined #ruby
oncall-pokemon has joined #ruby
ElFerna has joined #ruby
brool has quit [Quit: WeeChat 2.7]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
etupat has joined #ruby
romanblanco has joined #ruby
errst has joined #ruby
CalimeroTeknik has quit [Quit: バイバイ]
ElFerna has quit [Ping timeout: 265 seconds]
dasher00 has joined #ruby
CalimeroTeknik has joined #ruby
jerry_jerry has joined #ruby
kshitij has joined #ruby
dasher00 has quit [Ping timeout: 265 seconds]
mrsbear has left #ruby [#ruby]
segy has quit [Ping timeout: 246 seconds]
dasher00 has joined #ruby
rainmanjam has quit [Ping timeout: 265 seconds]
Nicolab has quit [Ping timeout: 258 seconds]
chalkmonster has joined #ruby
etupat has quit [Remote host closed the connection]
rainmanjam has joined #ruby
etupat has joined #ruby
Swyper has joined #ruby
wildtrees has joined #ruby
segy has joined #ruby
ElFerna has joined #ruby
etupat has quit []
cthulchu_ has quit [Quit: Leaving]
fphilipe has joined #ruby
dasher00 has quit [Remote host closed the connection]
jerry_jerry has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
skx86 has joined #ruby
duderonomy has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
duderonomy has joined #ruby
Swyper has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
Sauvin has quit [Ping timeout: 258 seconds]
fphilipe has quit [Ping timeout: 260 seconds]
segy has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
suukim has quit [Quit: Konversation terminated!]
bsdband85 has joined #ruby
segy has joined #ruby
Nicolab has joined #ruby
bsdbandit-01 has quit [Ping timeout: 240 seconds]
antholog has quit [Quit: ZNC 1.7.5 - https://znc.in]
antholog has joined #ruby
stooj has quit [Quit: ZNC 1.7.3 - https://znc.in]
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]
segy has joined #ruby