themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
Swyper has quit [Remote host closed the connection]
tau has quit [Ping timeout: 255 seconds]
s3nd1v0g1us has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
naught-fowl has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
zachk has quit [Quit: Leaving]
xco has quit [Read error: Connection reset by peer]
xco has joined #ruby
Fusl has quit [Excess Flood]
Fusl has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
naught-fowl has quit [Quit: This computer has gone to sleep]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 272 seconds]
AJA4351 is now known as AJA4350
houhoulis has quit [Remote host closed the connection]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
oncall-pokemon has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
orbyt_ has joined #ruby
<oncall-pokemon>
Hi, let's say I have 2 regex's I want to match against some strings. My goal is to capture the content between the ( ). I've tried both mystring.match(re_union) and mystring.scan(re_union).
<oncall-pokemon>
Both can work but one only matches one pattern while the other can get both but puts it in the MathData format and is sometimes in slot 1 and other times slot 2.
<oncall-pokemon>
any ideas to make this easy?
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
t0x has quit [Quit: Connection closed for inactivity]
gnufied has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 268 seconds]
gigetoo has quit [Ping timeout: 268 seconds]
agent_white has quit [Quit: bbl]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4350 has joined #ruby
sherlime is now known as uplime
jrafanie has joined #ruby
xco has quit [Quit: xco]
bambanx has joined #ruby
wald0 has quit [Quit: Lost terminal]
mangold has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 250 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix>
oncall-pokemon: dont use the numeric index:
<darix>
use named match groups
<darix>
/(?<namehere>.*)/.match(string)
<darix>
mo=/(?<namehere>.*)/.match(string)
<darix>
mo[:namehere]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
gix has quit [Ping timeout: 250 seconds]
xco has quit [Quit: xco]
mangold has quit [Quit: This computer has gone to sleep]
gigetoo has joined #ruby
AJA4350 has quit [Remote host closed the connection]
_whitelogger has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r3m has quit [Quit: brb]
r3m has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
t0x has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
sauvin has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
arescorpio has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
bambanx has quit [Quit: Leaving]
tdy has joined #ruby
rippa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil____ has joined #ruby
orbyt_ has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
arescorpio has quit [Quit: Leaving.]
Swyper has quit [Remote host closed the connection]
kapil____ has quit [Quit: Connection closed for inactivity]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
pietia has joined #ruby
phaul has quit [Quit: :wq]
phaul has joined #ruby
Wolland has quit [Quit: Leaving]
_whitelogger has joined #ruby
pietia has quit [Quit: This computer has gone to sleep]
pietia has joined #ruby
pietia has quit [Client Quit]
_whitelogger has joined #ruby
Devalo has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
laaron- has quit [Remote host closed the connection]
alem0lars has joined #ruby
laaron has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
imadper has quit [Read error: Connection reset by peer]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
Dbugger has joined #ruby
kyrylo has joined #ruby
schleppel has joined #ruby
ellcs has joined #ruby
conta1 has joined #ruby
conta1 has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
apparition has joined #ruby
hanmac has joined #ruby
dionysus69 has joined #ruby
_whitelogger has joined #ruby
Yxhuvud has joined #ruby
alexeev has joined #ruby
gix has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nucc has joined #ruby
nucc_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pietia has joined #ruby
pietia has quit [Client Quit]
c0mrade has joined #ruby
<c0mrade>
I've made an IRC bot that prints to a serial impact printer connected to a server of mine and put it on live stream on youtube at https://youtu.be/QT2hCBBP99Y if you join ##robot and send whatever text on the main channel it prints hehe
rippa has joined #ruby
<phaul>
and in what way is that ruby related
gigetoo has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
Mike11 has joined #ruby
nucc has quit [Quit: nucc]
nucc_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 268 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
Fernando-Basso has joined #ruby
gigetoo has joined #ruby
conta has quit [Quit: conta]
jrafanie has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mangold has quit [Quit: This computer has gone to sleep]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
alexeev has quit []
pietia has joined #ruby
Mike11 has quit [Quit: Leaving.]
pietia has quit [Quit: This computer has gone to sleep]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
Ai9zO5AP has joined #ruby
mikecmpbll has joined #ruby
postmodern has quit [Quit: Leaving]
suukim has joined #ruby
xco has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gheegh has joined #ruby
gheegh has quit [Client Quit]
AJA4350 has quit [Ping timeout: 245 seconds]
c0mrade is now known as Guest95605
Guest95605 has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
AJA4350 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
lucasb has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
kyrylo has joined #ruby
jrafanie has joined #ruby
mangold has joined #ruby
Devalo has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 272 seconds]
vondruch has joined #ruby
dionysus69 has joined #ruby
orbyt_ has joined #ruby
gheegh has joined #ruby
wald0 has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
jrafanie has joined #ruby
Devalo has quit [Remote host closed the connection]
lele has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
alem0lars has joined #ruby
Devalo has joined #ruby
houhoulis has joined #ruby
jrafanie has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
jrafanie has joined #ruby
lele has joined #ruby
Devalo has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #ruby
gheegh has joined #ruby
reber has quit [Remote host closed the connection]
DTZUZO has joined #ruby
apparition has quit [Quit: Bye]
Swyper has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
themsay has joined #ruby
xco has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
s3nd1v0g1us has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
agent_white has quit [Quit: brb]
za1b1tsu has quit [Remote host closed the connection]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
xco has joined #ruby
naught-fowl has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 245 seconds]
naught-fowl has quit [Client Quit]
s3nd1v0g1us has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<xco>
i have an array that looks like this [[“sd”, “sdfa”], [“sdf”, afsa]]
<xco>
how do i get just [“sd”, “sdfa”], [“sdf”, afsa]
<xco>
in other words i want to remove the surrounding []
tau has joined #ruby
<xco>
i feel i should use #join but not sure what to join by
<xco>
or maybe there’s a better method to “unarray” stuff
<al2o3-cr>
[“sd”, “sdfa”], [“sdf”, afsa] is two separate arrays, do you want to store them in two variables?
<xco>
let’s say variable = [[“sd”, “sdfa”], [“sdf”, afsa]]
<xco>
what do i do to “variable” to get [“sd”, “sdfa”], [“sdf”, afsa]
<xco>
will i need to store them in different arrays?
Swyper has quit [Remote host closed the connection]
mangold has quit [Quit: This computer has gone to sleep]
<al2o3-cr>
you're not making sense. [“sd”, “sdfa”], [“sdf”, afsa] is two arrays
<xco>
shoot came to my senses
<al2o3-cr>
xco: ?
themsay has quit [Ping timeout: 250 seconds]
<xco>
i’ll just access that array with #first and #last
<xco>
i wanted to dispaly [“sd”, “sdfa”], [“sdf”, afsa] like it is
<al2o3-cr>
xco: as in stdout?
<xco>
something like that
<xco>
yeah
themsay has joined #ruby
<al2o3-cr>
p *a
<xco>
awesome! :)
<al2o3-cr>
that's if you want them on separate lines.
<xco>
and if i don’t want them on separate lines?
<xco>
#print ?
<al2o3-cr>
p a, but that will give you back [ and ]
<al2o3-cr>
you understand why don't you
<xco>
yes i do
<al2o3-cr>
great ;)
<xco>
thanks ;)
<al2o3-cr>
xco: np ;)
AJA4350 has quit [Ping timeout: 245 seconds]
<al2o3-cr>
xco: with all these array questions, i'm curious, what are you doing?
<xco>
i’ll show you when i’m done :D :D
<xco>
maybe i’ll ask for a review
<al2o3-cr>
xco: ok ;) i'll look forward to it!
<xco>
which i think i’ll need beause i’m complicating stuff here haha
<al2o3-cr>
xco: you can only try your best :P
duderonomy has joined #ruby
t0xik has joined #ruby
reber has joined #ruby
Devalo has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
themsay has joined #ruby
tdy has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
renich has quit [Ping timeout: 250 seconds]
old_relik has joined #ruby
<old_relik>
rspec question: how do I test the side-effect caused in a rescue block that re-raises a different exception
<old_relik>
but I think I'm doing something wrong in my code
<old_relik>
the expect isn't working
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
conta has joined #ruby
renich has joined #ruby
nowhere_man has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
xco_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has quit [Ping timeout: 246 seconds]
xco_ is now known as xco
orbyt_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
hiroaki has joined #ruby
orbyt_ has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
old_relik has quit [Quit: Page closed]
zachk has joined #ruby
kyrylo has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
nucc has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwb has joined #ruby
themsay has quit [Ping timeout: 255 seconds]
conta has quit [Quit: conta]
renich has quit [Ping timeout: 255 seconds]
pietia has joined #ruby
jrafanie has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Ping timeout: 250 seconds]
pietia has quit [Quit: This computer has gone to sleep]
cnsvc has joined #ruby
renich has joined #ruby
dionysus69 has joined #ruby
danguita has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
themsay has joined #ruby
Swyper has joined #ruby
Emmanuel_Chanel has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has joined #ruby
pabs has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has quit [Client Quit]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcalla has quit [Remote host closed the connection]
pabs has joined #ruby
s3nd1v0g1us has joined #ruby
danguita has quit [Quit: WeeChat 2.4]
suukim has quit [Remote host closed the connection]
danguita has joined #ruby
Inline has joined #ruby
Swyper has quit [Remote host closed the connection]
ur5us has joined #ruby
danguita has quit [Ping timeout: 246 seconds]
zachk has quit [Read error: Connection reset by peer]
zachk has joined #ruby
ur5us has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 255 seconds]
mojtaba1 has joined #ruby
<mojtaba1>
Hello, I am new to RoR. I would like to deploy my app to Heroku, but I am not going to host my static assets in Amazon S3. I have a shared host with Bluehost. Do you know how can I use that to host my images and other static files?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Zarthus>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<mojtaba1>
?rails
<uplime>
repeating it isn't going to change the message
troulouliou_dev has joined #ruby
<phaul>
well it kind of did :)
<mojtaba1>
Zarthus: uplime: I just wanted to connect to the channel and /msg NickServ HELP didn't help.
<Zarthus>
you're specifically looking for /msg nickserv help register
<Zarthus>
but i suppose that is fair feedback
<uplime>
phaul: haha, the spirit of the message then
<mojtaba1>
Zarthus: I am using pidgin, when I type msg nickserv help register, there is just a notification sound and nothing happens!
<Zarthus>
the dick in me will reply with "pidgin is not a good irc client"
<Zarthus>
yeah, I'm content with that message, I suppose.
<mojtaba1>
Zarthus: mine is asking what is better?!
<mojtaba1>
:)
<Zarthus>
literally even telnet would be better than telnet, but hexchat is often a decent starter
<Zarthus>
s/telnet,/pidgin/
schleppel has quit [Quit: Konversation terminated!]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hiroaki has quit [Ping timeout: 240 seconds]
mojtaba1 has quit [Quit: Leaving.]
zachk has quit [Changing host]
zachk has joined #ruby
orbyt_ has joined #ruby
Inline has quit [Quit: Leaving]
<xco>
is it possible to sort an array of hash like this? [{"0"=>200}, {"1"=>150}, {"2"=>190}] since the keys are not named?
<baweaver>
Depends on what you mean by sort.
<baweaver>
Anything is sortable if you have a criteria to sort on
symm- has joined #ruby
<xco>
by sort i mean i should get an array back that looks like [{"1"=>150},{"2"=>190}, {"0"=>200} ]
planigan has quit [Ping timeout: 245 seconds]
<xco>
if the keys were named i could use #sort_by, here they are not
<symm->
any IDEs you using for ruby? primarily interested in "jump to definition" and optionally code completion
<xco>
symm-: RubyMine
<symm->
"30-day trial"...
<xco>
well :/
<symm->
you paid for it? :)
<xco>
i used me school email, it’s free for students
<baweaver>
xco: You can sort by more than keys
<xco>
my*
<symm->
ah
orbyt_ has quit [Ping timeout: 246 seconds]
<baweaver>
It looks like you're trying to sort by the value, but the problem is if there's more than one value in there
<xco>
symm-: btw Sublime Text is not an IDE but i think it can do what you want
<baweaver>
You're still working with the first element in any case
<baweaver>
Just do something with the block
<symm->
sublime can do jump to definition?
<xco>
symm-: i think so, yes. i’ve seen that before. not sure if it was with a plugin but rather not. maybe try googling it to find out or check the manual
<symm->
I see
planigan has joined #ruby
<symm->
but I was just wondering what you guys actually use irl
<symm->
my ruby programming so far has been using a text editor whose only programming feature had been syntax coloring...
<symm->
has*
<baweaver>
Mostly Sublime.
<xco>
I use Sublime too nothing more
<baweaver>
Been trending towards VS Code because of some React work
<symm->
so sublime can jump to definition? sorry for belaboring the point but it's essential to me
Inline has joined #ruby
mojtaba has quit [Ping timeout: 250 seconds]
<symm->
I have some brief experience using VS code on linux for C# and all I can tell is it has been terrible
<al2o3-cr>
xco: [{"0"=>200}, {"1"=>150}, {"2"=>190}].sort_by &:values (if you want to sort by values)
<al2o3-cr>
why are indices strings and values integers?
teej has joined #ruby
Inline has quit [Remote host closed the connection]
<al2o3-cr>
i've no eye dear :P
<xco>
al2o3-cr: perfect :D
<xco>
well i can use anythign i was as keys right
<xco>
but i think you’re right
<xco>
it doesn’t make much sense
<xco>
both can be integers so i don’t have to convert the keys again later
<xco>
since i’ll use them to grab something from an array
<al2o3-cr>
again, i wish to see this when completed! ;)
Ai9zO5AP has quit [Quit: WeeChat 2.4]
<xco>
al2o3-cr: hahahhahaha you’ll see no worries
cthulchu_ has joined #ruby
gheegh has joined #ruby
hightower2 has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
dviola has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
ellcs has joined #ruby
_whitelogger has joined #ruby
nowhere_man has joined #ruby
reber has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 246 seconds]
hightower2 has joined #ruby
preller has joined #ruby
preller has quit [Client Quit]
wald0 has quit [Read error: No route to host]
wald0 has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
FastJack has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
conta has joined #ruby
moei has quit [Quit: Leaving...]
conta has quit [Ping timeout: 245 seconds]
bga57 has quit [Quit: Leaving.]
troulouliou_dev has quit [Quit: Leaving]
Devalo has quit [Remote host closed the connection]