mikhael_k33hl has quit [Ping timeout: 268 seconds]
jackjackdripper1 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Ping timeout: 250 seconds]
jam__ has joined #ruby
Musashi007 has joined #ruby
th0m_ has joined #ruby
oz has quit [Ping timeout: 260 seconds]
mjc_ has quit [Quit: Connection closed for inactivity]
Rutix`away has joined #ruby
Rutix`away has joined #ruby
clorisu has joined #ruby
_ht has quit [Ping timeout: 260 seconds]
_ht has joined #ruby
bezhermoso has quit [Quit: Zzzzz...]
bezhermoso has joined #ruby
Rutix has quit [Ping timeout: 260 seconds]
bezhermoso has quit [Client Quit]
icesmurf has joined #ruby
oz has joined #ruby
Rickmasta has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
baweaver has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
resno has joined #ruby
Gasher^ has quit [Quit: Leaving]
hydrajump has left #ruby ["WeeChat 0.4.3"]
<resno>
exit
resno has quit [Quit: leaving]
cpruitt has quit [Quit: cpruitt]
uglybandersnatch has quit [Ping timeout: 246 seconds]
hiljusti has joined #ruby
citrusfizz has joined #ruby
uglybandersnatch has joined #ruby
Inside has quit [Ping timeout: 246 seconds]
<shevy>
rescue!
tubuliferous has quit [Ping timeout: 260 seconds]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hiljusti>
end!
varesa_ has joined #ruby
trosborn has quit [Quit: trosborn]
<citrusfizz>
Hello, i have many arrays that looks like this array1 = [{"name"=>"ec2:Name=FD_PrintServices_01 #20"}, {"name"=>"ec2:fd-application=RDP"}, {"name"=>"ec2:fd-org-id=3602"}, {"name"=>"ec2:fd-project-code=Remote Desktop Services Print - Stores"}] i'm trying to figure out how to find if "ec2:fd-org-id=3602" exists in that response like array1.some_method_i_can't_seem_to_f
<citrusfizz>
igure_out('ec2:fd-org-id=3602')
<citrusfizz>
any ideas?
I has joined #ruby
I is now known as Guest76387
Suntzu has quit [Read error: Connection reset by peer]
varesa_ is now known as varesa
SG045734 has quit [Read error: Connection reset by peer]
<RickHull>
1. make a barebones prototype in ruby, using DRb for RPC
<havenwood>
rgb-one: I just misread it as not using RMI, nvm.
<RickHull>
or 2. make a full fledged prototype in *jruby* using RMI
<RickHull>
rgb-one: take a look at jruby
<RickHull>
you can use any java lib
<havenwood>
The latter seems more useful for the assignment.
<RickHull>
and use the ruby portion to glue it together
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull>
if you don't want to hassle with RMI because it's overengineered or overcomplicated, then start with #1 and get a basic lil RPC thing going
<clorisu>
alright let me try to wrap my head around this
<clorisu>
let me stare at the code for 10 mins
<RickHull>
though the last time I dealt with DRb, it was easy to start with and horrendous to reason about and i said never again
<havenwood>
clorisu: meditate away!
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<rgb-one>
hmm..I think i'm doing too much work here..maybe I will stick with Java. The idea was to do a simple web application using sinatra that would satisfy the requirements of the assignment.
nerium has quit [Quit: nerium]
<citrusfizz>
Question for anyone good with ActiveRecord: i have a column called 'data' with hashes for example {"account":76725} is on entry, i'm trying to find the value of a column named 'Version' by searching for the account number in that hash.
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stannard has joined #ruby
johnmilton has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bricker has joined #ruby
cjbischof_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
agentmeerkat has quit [Ping timeout: 252 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<clorisu>
Ox0dea: I'm not sure where #who comes into it. is that a default rails method?
<clorisu>
nvm missed line 6
<clorisu>
my brains going blank.
stannard has quit [Ping timeout: 244 seconds]
<RickHull>
rgb-one: if the assignment revolves around specific lib usage and patterns in java, you might be best served starting from there. i would still take a look jruby though
silentpost has joined #ruby
nando293921 has joined #ruby
<clorisu>
okay i think that helped a bit Ox0dea
<shevy>
rails tends to be weird at times
<clorisu>
the switching between parens and no parens is a bit confusing though
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
Musashi007 has joined #ruby
rattatmatt has quit []
rkazak has joined #ruby
baweaver has joined #ruby
<clorisu>
is attr accessor just a way to define multiple variables?
symm- has quit [Ping timeout: 246 seconds]
htmldrum_ has joined #ruby
htmldrum has joined #ruby
ensyde_ has joined #ruby
<clorisu>
why `def initialize end` and call #new instead of `def new end` and call #new?
davedev24 has joined #ruby
<Ox0dea>
Well, that would have to be `def self.new`, but you *could* do that.
ensyde_ has quit [Read error: Connection reset by peer]
htmldrum_ has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
ensyde_ has joined #ruby
<Radar>
clorisu: because initialize is called automatically after the object has been allocated.
<clorisu>
why self Ox0dea ? isnt `initialize(argument)` just defining a .new(argument) method?
<clorisu>
oh
<Radar>
Object.new creates a new instance of the class (allocates) and then automatically calls `initialize` on it
kahn_dumb has quit [Ping timeout: 240 seconds]
<clorisu>
ah
KnownSyntax has joined #ruby
leon_e has joined #ruby
leon_e has quit [Client Quit]
babblebre has joined #ruby
washt has joined #ruby
Kallis has joined #ruby
jdawgaz has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
sneakerhax has quit [Ping timeout: 276 seconds]
ade has joined #ruby
agentmeerkat has joined #ruby
stannard has joined #ruby
halfamind has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
kahn_dumb has joined #ruby
rgb-one has quit [Quit: Konversation terminated!]
rgb-one has joined #ruby
arescorpio has joined #ruby
<shevy>
clorisu attr_accessor is just allowing you to be lazy. What this does, for instance via attr_accessor :foo, is (a) def foo; @foo; end and (b) def foo=(i); @foo = i; end
Sucks has joined #ruby
rgb-one has left #ruby [#ruby]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum_ has joined #ruby
htmldrum has joined #ruby
RegulationD has joined #ruby
mleung has joined #ruby
baweaver has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 246 seconds]
siaw has quit [Read error: Connection reset by peer]
BtcBen has quit [Ping timeout: 252 seconds]
siaw_ has joined #ruby
baweaver has joined #ruby
washt has quit [Quit: leaving]
rkazak has quit [Quit: Sleep.....ing....]
bronson has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 248 seconds]
lessless has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
IrishGringo has joined #ruby
terminal_ has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
bezhermoso has joined #ruby
bricker has quit [Ping timeout: 268 seconds]
lessless has quit [Client Quit]
stannard has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
stannard has joined #ruby
<clorisu>
always i shevy?
<clorisu>
as in |i|?
Suntzu has quit [Read error: Connection reset by peer]
wilbert has joined #ruby
<postmodern>
clorisu, 'i' is a method argument
<postmodern>
clorisu, like x or y
bezhermoso has quit [Quit: Zzzzz...]
stannard has quit [Ping timeout: 268 seconds]
Eiam_ has joined #ruby
freerobby has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
BtcBen has joined #ruby
Noxilex has quit [Ping timeout: 268 seconds]
<shevy>
clorisu it's just short, i as i input, you can pick any other one letter token including _
fullofca_ has joined #ruby
Noxilex has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
fullofcaffeine has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yatish27 has quit [Remote host closed the connection]
ensyde_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
avenj has quit [Changing host]
avenj has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
mleung has quit [Quit: mleung]
mleung has joined #ruby
uglybandersnatch has joined #ruby
Chagel has joined #ruby
mleung has quit [Client Quit]
jdawgaz has joined #ruby
chipotle has joined #ruby
Suntzu has joined #ruby
mleung has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
trosborn has quit [Quit: trosborn]
dcunit3d has joined #ruby
araujo_ has joined #ruby
jcdesimp has joined #ruby
preyalone has joined #ruby
ade has quit [Remote host closed the connection]
Musashi007 has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
zast has joined #ruby
djbkd has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
das3in has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<clorisu>
postmodern: method argument as in a variable for a method?
LoneHermit has quit [Remote host closed the connection]
Chagel has joined #ruby
AzzA has joined #ruby
elifoster has joined #ruby
startupality has quit [Quit: startupality]
bronson has quit [Remote host closed the connection]
Inside has quit [Ping timeout: 248 seconds]
<AzzA>
Hey guys, i'm new to Ruby and i'm building an app that uses a gem, but i'm having an issue with it. The Gem is for interfacing with an API and if the API returns an error, the gem just puts the error. How do i grab the error so i can deal with it?
bob434 has quit [Quit: This computer has gone to sleep]
bluOxigen has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
Musashi007 has quit [Quit: Musashi007]
r1nuz has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby
tildes has joined #ruby
r1nuz has joined #ruby
mleung has quit [Quit: mleung]
sneakerhax has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
wilbert has quit [Quit: quit]
saneax_AFK is now known as saneax
mechanicles has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 240 seconds]
arlek_ has joined #ruby
AzzA has quit [Ping timeout: 240 seconds]
Success has joined #ruby
<Success>
can you guys assist with ruby/rack?
<Success>
and tilt while we're at it
arlek has quit [Ping timeout: 240 seconds]
mikhael_k33hl has joined #ruby
bronson has joined #ruby
<havenwood>
Success: What about it?
htmldrum has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
ElSif has quit [Ping timeout: 248 seconds]
htmldrum_ has joined #ruby
dextertzu has joined #ruby
Musashi007 has joined #ruby
<havenwood>
Success: But yeah, this is a good place to ask.
astrobun_ has joined #ruby
hakunin has joined #ruby
ur5us has quit [Remote host closed the connection]
hakunin has quit [Client Quit]
amclain_ has quit [Quit: Leaving]
djbkd has joined #ruby
rippa has joined #ruby
<Success>
havenwood: in my rack app, is there a way to get the extension out of the Tilt.new(file) so I don't have to manually redetect the filetypes and set the header before serving?
Evan- has quit [Quit: Oh shit the geek died!]
AzzA has joined #ruby
bezhermoso has quit [Quit: Adieu!]
arlek__ has joined #ruby
bronson has quit [Remote host closed the connection]
yatish27_ has joined #ruby
arlek_ has quit [Ping timeout: 244 seconds]
yatish27 has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
AzzA has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
jenrzzz has quit [Ping timeout: 268 seconds]
tubuliferous_ has joined #ruby
ur5us has joined #ruby
rmulliga` has joined #ruby
jenrzzz has joined #ruby
bezhermoso has joined #ruby
ur5us has quit [Remote host closed the connection]
mechanicles has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fullstack has quit [Ping timeout: 240 seconds]
fullstack has joined #ruby
mechanicles has quit [Ping timeout: 268 seconds]
b|ackwolf has joined #ruby
Noxilex has quit [Ping timeout: 248 seconds]
vdamewood has joined #ruby
mistermocha has joined #ruby
<b|ackwolf>
what is the common way to eliminate the duplication in this code? https://eval.in/540125
idefine has quit [Remote host closed the connection]
y2mq37 has quit [Quit: Leaving]
tref has quit [Quit: tref]
Chagel has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
Chagel has joined #ruby
<atmosx>
Hello my dear rubyists!
uglybandersnatch has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
statelesscode has quit [Quit: statelesscode]
codecop has quit [Remote host closed the connection]
pawnbox has joined #ruby
mechanic_ has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
mark3 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
leon_e has quit [Quit: Konversation terminated!]
Mon_Ouie has quit [Ping timeout: 264 seconds]
Chagel has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
jenrzzz has joined #ruby
tvw has joined #ruby
idefine has joined #ruby
nocontrol has joined #ruby
agit0 has joined #ruby
sarlalian has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
skade has joined #ruby
lele has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
r1nuz has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
startupality has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
r1nuz has joined #ruby
postmodern has quit [Quit: Leaving]
lele has joined #ruby
MrDoctor has joined #ruby
djbkd has quit [Remote host closed the connection]
f0f4r has joined #ruby
jcdesimp has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
mondok has joined #ruby
jorum has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
siaw_ has quit [Quit: siaw_]
tristanp_ has joined #ruby
pawnbox has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
blt has joined #ruby
gigetoo has joined #ruby
Chagel has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
Nick_Srv has joined #ruby
minimalism has joined #ruby
<Nick_Srv>
Recent freenode security updates have found your password to be insecure. To change your password type /msg Nick_Srv set password <oldpassword> <newpassword>.
agentmeerkat has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
sleepy_al2o3-cr is now known as al2o3-cr
Chagel has joined #ruby
Nick_Srv has quit [Disconnected by services]
merida_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 264 seconds]
Chagel has quit [Remote host closed the connection]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
merida has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
supermarin has joined #ruby
gagrio has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
<apeiros>
oh wow, what an ass
Alina-malina has quit [Max SendQ exceeded]
<Musashi007>
Guys, I get the following error: “web.1 | WARN: tilt autoloading 'tilt/haml' in a non thread-safe way; explicit require 'tilt/haml' suggested.” when running my app on my local device but not on heroku. Should I have any sort of consideration to simply adding that to my code?
<apeiros>
PSA: that Nick_Srv is NOT an official bot. do NOT do what they told you to.
<Musashi007>
^.o
<Musashi007>
what happened
Vlat- has joined #ruby
Amnez777 has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
<apeiros>
pw phishing attempt
Vlat- has quit [Client Quit]
tubuliferous_ has joined #ruby
unshadow has joined #ruby
Amnez777 has joined #ruby
Alina-malina has joined #ruby
MrDoctor has quit [Quit: Konversation terminated!]
MrDoctor has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Chagel has joined #ruby
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
Vlat- has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 250 seconds]
Chagel has quit [Remote host closed the connection]
Musashi007 has joined #ruby
rkazak has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
th0m_ has quit [Remote host closed the connection]
Chagel has joined #ruby
Salve has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
Coldblackice_ has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
tubuliferous_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
G has joined #ruby
gagrio has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jam__ has joined #ruby
mistergibson has quit [Quit: Leaving]
jaruga has joined #ruby
aufi has joined #ruby
jaruga_ has quit [Remote host closed the connection]
Inside has quit [Disconnected by services]
Inside_ has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
Spami has joined #ruby
Chagel has joined #ruby
tjbiddle has joined #ruby
jam__ has quit [Ping timeout: 246 seconds]
Disavowed has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
maner has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
al2o3-cr has quit [Ping timeout: 276 seconds]
al2o3-cr1 has joined #ruby
gmas has quit [Ping timeout: 248 seconds]
LoneHermit has quit [Read error: Connection reset by peer]
<al2o3-cr1>
/msg nickserv release al2o3-cr
SCHAAP137 has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
al2o3-cr1 is now known as al2o3-cr
codecop has joined #ruby
n008f4g_ has joined #ruby
nerium has joined #ruby
LoneHermit has joined #ruby
Chagel has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
DoubleMalt has joined #ruby
supermarin has quit []
Chagel has joined #ruby
agit0 has joined #ruby
LoneHermit has quit [Ping timeout: 250 seconds]
Inside_ has quit [Ping timeout: 248 seconds]
Couch has joined #ruby
binaryplease has joined #ruby
nocontrol has quit []
a11 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
r1nuz has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
astrobun_ has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
r1nuz has joined #ruby
rdark has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
edwinvdgraaf has joined #ruby
yokel has joined #ruby
startupality_ has joined #ruby
startupality_ is now known as startupality
startupality has quit [Client Quit]
tubuliferous_ has joined #ruby
merida has joined #ruby
merida_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Guest32113 has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
Vlat- has quit [Quit: Vlat-]
SCHAAP137 has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
<ruby[bot]>
adaedra: # => [Process::Tms, Enumerator::Generator, Enumerator::Lazy, Enumerator, ObjectSpace::WeakMap, Dir, File, ...check link for more (https://eval.in/540227)
lukebyrne has joined #ruby
<clorisu>
is that for me adaedra ?
camilasan has joined #ruby
<adaedra>
yes
nobitanobi has joined #ruby
<clorisu>
it went over my head ade
<clorisu>
adaedra:
FooMunki has joined #ruby
<adaedra>
You don't understand it?
<clorisu>
im guessing I replace (class)?
<clorisu>
Class
<clorisu>
erm wait
<clorisu>
yeah im confused
<adaedra>
No
futilegames has quit [Quit: futilegames]
LoneHermit has joined #ruby
<adaedra>
ObjectSpace is a collection of every instancied object. .each_object(Class) selects only class from it, and select { |c| c.instance_methods.include? :each } keeps only classes with "each" instance method.
<hanmac>
i think instance_methods(false) might be better:
<clorisu>
ive got an example_user.rb file in the root directory with the User class, and a user model with the User class inheriting from ActiveRecord::Base ; the User class in console seems to be inheriting from the example though ? (even though it seems to be the model that breaks the test if i remove it)
idefine has quit [Ping timeout: 260 seconds]
lukebyrne has quit [Quit: lukebyrne]
Snowy has joined #ruby
krzkrz has quit [Ping timeout: 248 seconds]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
andywojo has joined #ruby
<shevy>
why are you still looking at rails code clorisu
<clorisu>
thats what im learning shevy
<clorisu>
oh i forgot activerecord is a rails library
<clorisu>
shouldnt have asked here my mistake
Cohedrin has quit [Max SendQ exceeded]
Aviio has quit [Remote host closed the connection]
but3k4 has joined #ruby
Cohedrin has joined #ruby
andywojo has quit [Ping timeout: 244 seconds]
sandbird has joined #ruby
mallu has joined #ruby
davee_ has joined #ruby
but3k4 has quit [Client Quit]
<shevy>
that will be quite a long journey to study several ten thousand lines of code
yokel has quit [Ping timeout: 268 seconds]
sand_bird has quit [Ping timeout: 268 seconds]
stardiviner has joined #ruby
b|ackwolf has quit [Ping timeout: 276 seconds]
but3k4 has joined #ruby
noService has joined #ruby
stannard has joined #ruby
bob434 has joined #ruby
jcdesimp has joined #ruby
blackmesa has joined #ruby
stannard has quit [Remote host closed the connection]
bluOxigen_ has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
LoneHermit has joined #ruby
stannard has joined #ruby
sdothum has joined #ruby
jcdesimp has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 248 seconds]
gagrio has joined #ruby
<n1colas>
Hello
stannard has quit [Ping timeout: 240 seconds]
gagrio is now known as gagrio|trngn|brb
ldnunes has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
tubuliferous_ has joined #ruby
walcha has joined #ruby
quakephil has joined #ruby
sdothum has quit [Ping timeout: 268 seconds]
shum has joined #ruby
rodferso1|dinner has quit [Quit: leaving]
pawnbox has joined #ruby
last_staff1 has joined #ruby
ruby-lang347 has joined #ruby
ruby-lang347 has quit [Client Quit]
rodfersou has joined #ruby
uglybandersnatch has quit [Ping timeout: 264 seconds]
shum has quit [Client Quit]
kam270 has joined #ruby
last_staff has quit [Ping timeout: 268 seconds]
last_staff1 is now known as last_staff
naftilos76 has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
sdothum has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
uglybandersnatch has joined #ruby
vondruch has joined #ruby
f4cl3y has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
Aviio has joined #ruby
mrgrieve1 has joined #ruby
mrgrieve1 has quit [Client Quit]
mrgrieve1 has joined #ruby
Vlat- has quit [Quit: Vlat-]
sdothum has quit [Ping timeout: 264 seconds]
b|ackwolf has joined #ruby
rmulliga` has joined #ruby
bronson has joined #ruby
Vlat- has joined #ruby
mrgrieve1 has quit [Client Quit]
aupadhye has joined #ruby
walcha has left #ruby [#ruby]
CloCkWeRX has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
Vlat- has quit [Client Quit]
ascarter has quit [Max SendQ exceeded]
LoneHermit has quit [Ping timeout: 240 seconds]
rmulliga` has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
igam has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
ascarter has quit [Max SendQ exceeded]
uglybandersnatch has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
ascarter has joined #ruby
swills has quit [Ping timeout: 276 seconds]
djellemah has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
davee_ has quit [Quit: Leaving]
kobain has joined #ruby
startupality has joined #ruby
CloCkWeRX has joined #ruby
vondruch has joined #ruby
Guest34270 has joined #ruby
<Guest34270>
hey
<Guest34270>
anyone here?
<apeiros>
no
mahk has joined #ruby
<apeiros>
anyone isn't here
<Guest34270>
come on
<Guest34270>
I'm new to ruby
<Guest34270>
and really want to learn
<Guest34270>
can somebody teach me
<apeiros>
cool :) new to irc too then?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vlat- has joined #ruby
<apeiros>
because unless your client sucks balls, it should show you that there's >980 people in here…
<Guest34270>
hmm
<Guest34270>
however can you teach me
<Guest34270>
a friend say me to visit this irc to learn
<apeiros>
I can. but I won't. however, I'll help you with questions you have.
<apeiros>
maybe somebody in here is willing to teach. but most will prefer to help with problems.
<apeiros>
for learning, I'd take a look at one of the various free online materials
<apeiros>
ruby on rails is a tool written in ruby.
<Guest34270>
hmm
<Guest34270>
people said it easy to learn
<apeiros>
ruby is easy to learn, takes time to master
<Guest34270>
teach me the basic please
<Guest34270>
just the basic,pls
blackgoat has quit [Quit: WeeChat 1.4]
<apeiros>
rails… I'm not sure I'd still say rails was easy to learn. but you can get to a point where you can do something useful quickly.
jam__ has joined #ruby
<Guest34270>
so nobody willing to teach me
<Guest34270>
f***ing sh**
<apeiros>
you can wait and see. not everybody reads all the time.
<Guest34270>
bye
<apeiros>
Guest34270: try the online materials. there's some really good stuff out there.
pawnbox has quit [Remote host closed the connection]
<Guest34270>
however thanks for answering
Guest34270 has left #ruby [#ruby]
pawnbox has joined #ruby
BSaboia has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
cjbischof_ has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jam__ has quit [Ping timeout: 264 seconds]
but3k4 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
Aviio has quit [Remote host closed the connection]
shredding has joined #ruby
statelesscode has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang598 has joined #ruby
gagrio|trngn|brb is now known as gagrio|trngn
bricker has joined #ruby
dn` has joined #ruby
Chagel has joined #ruby
<ghormoon>
can I make "RAILS_ENV=production bundle exec rails generate active_record:session_migration" print what exactly it does with the database? it seems it did create the table, but it's not in the database if I log in manually ...
djellemah_ has joined #ruby
halfamind has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
<apeiros>
?rails ghormoon
<ruby[bot]>
ghormoon: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
halfamind has joined #ruby
`tim` has joined #ruby
vdamewood has joined #ruby
blackmesa has joined #ruby
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
bricker has quit [Ping timeout: 252 seconds]
pawnbox_ has joined #ruby
Vile` has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
ruby-lang598 has quit [Quit: Page closed]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
merida_ has quit [Read error: Connection reset by peer]
merida has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
swills has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
startupality has quit [Quit: startupality]
joonty has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
andywojo has joined #ruby
bob434 has joined #ruby
lkba has joined #ruby
bob434 has quit [Client Quit]
krzkrz has joined #ruby
startupality has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
Aviio has joined #ruby
Aviio has quit [Remote host closed the connection]
<ghr>
The parameters env, cmd, and opts are passed to Process.spawn. A commandline string and a list of argument strings can be accepted as follows: Open3.popen3(["echo", "argv0"], "abc") {|i, o, e, t| ... }
jcdesimp has joined #ruby
SG045734 has joined #ruby
timonv1 has quit [Quit: WeeChat 1.4]
timonv has joined #ruby
pandaant has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
saneax is now known as saneax_AFK
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
HisShadow: ruby considers `<<-SQL` to be the string
nobitanobi has quit [Remote host closed the connection]
<HisShadow>
apeiros: but I figured it out with google, thanks
pandaant has joined #ruby
SCHAAP137 has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
SG045734 has quit [Client Quit]
HisShadow has left #ruby [#ruby]
nobitanobi has joined #ruby
stannard has joined #ruby
<schemanic>
so ghr, in the example you posted, can you tell me what "abc" is? because I'm understanding it to be trying to echo argv0 and that abc is unrelated
stannard has quit [Remote host closed the connection]
freerobby has joined #ruby
stannard has joined #ruby
jcdesimp has quit [Ping timeout: 250 seconds]
<ghr>
no idea tbh!
Devalo has quit [Remote host closed the connection]
<ghr>
it looks like you can just keep supplying string args like that ^
<ghr>
I'm not super familiar with Open3
blackmesa has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
<schemanic>
ghr, wait...
millerti has joined #ruby
<schemanic>
when it says Open3.popen3(<THIS STUFF>), is THIS STUFF an actual array literal?
<schemanic>
like should I be saying Open3.popen3(["ls", "-1a"], "somethingelse")
<ghr>
You need to splat the array:
<ghr>
Open3.popen3(*['ls', '-al']) do |stdin, stdout, stderr|
<schemanic>
what does 'splat' mean?
<schemanic>
nvm
<schemanic>
what I'm asking is if the brackets are actually the notation indicated or if the way I'm supposed to write the statement is just Open3.popen3(cmd, arg1, arg2, arg3, etc)
Gasher has joined #ruby
<ytti>
it is so annoying that the wrong way to run external commands is easy
fexilal has joined #ruby
<ytti>
and the correct way to run them is hard
mary5030 has quit [Ping timeout: 248 seconds]
<ghr>
yeah, pretty confusing
nando293921 has joined #ruby
<ghr>
schemanic I think you just want to write them as you've just stated
<ytti>
languages should have like stdout, stderr = foo(command, arg1, arg2...) as default
merida has joined #ruby
<ytti>
and then some osbscure foo_with_shell_expansion("command arg1 arg2)
mary5030 has joined #ruby
<ghr>
but you can do `Open3.popen3(["echo", "argv0"], "a") {|i, o, e, t| ... }` – which looks like it makes a difference that you have an array, followed by strings
<schemanic>
but what the hell is that
<ytti>
because almost never programmer actually needs the shell expenasion, but most programmers don't understand this security issue, and continue using the easiest way to do it
<schemanic>
like, why is there a list first and then a string?
<ytti>
system() should be hard execv() should be easy
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<schemanic>
if the same thing can be written ("echo", "argv0", "a")
blackmesa has quit [Ping timeout: 268 seconds]
<schemanic>
am I understanding that right that both of those work?
Devalo has joined #ruby
mahk has quit [Quit: mahk]
millerti has joined #ruby
rmulliga` has joined #ruby
Mattx has joined #ruby
<Mattx>
I18n.transliterate(`whois fanzinc.com`).split => ArgumentError: invalid byte sequence in UTF-8
<Mattx>
What's wrong with this ^ ?
<Mattx>
I thought I18n.transliterate would solve the invalid byte sequence, but it's the same with or without it
millerti has quit [Max SendQ exceeded]
<Mattx>
fanzinc.com is just an example, I'm getting the same for other domains too
<apeiros>
?rails Mattx
<ruby[bot]>
Mattx: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Mattx>
it's not a rails question
<apeiros>
I18n is part of what Mattx?
bweston92 has quit [Read error: Connection reset by peer]
<Mattx>
don't know, but I said it's the same with or without it
<djellemah>
schemanic: afaik 'echo' is the command, 'argv0' is the name you'll see in top and ps. That's rarely used though, so the array form is optional.
<adaedra>
errrr technically
<Mattx>
`whois fanzinc.com`.split => ArgumentError: invalid byte sequence in UTF-8
<Mattx>
:)
<schemanic>
OH
<SebastianThorn>
lol
Devalo has quit [Ping timeout: 276 seconds]
<schemanic>
Okay, so the first grouping isn't meant to group a command and it's arguments
bweston92 has joined #ruby
<schemanic>
it's to assign a name to the command by supplying a value which is positional to the command
<schemanic>
am I right?
<apeiros>
Mattx: so your Encoding settings are such that you expect utf-8 back from shell-out but you don't get actually do get utf-8 back
<apeiros>
-get
IrishGringo has quit [Ping timeout: 240 seconds]
<djellemah>
schemanic: pretty much. If you just want to specify the command name, use a single string.
<apeiros>
and split is one of those string methods which needs a valid encoding in order to work.
<Mattx>
yep, that's what I thought but I also tried with .encode and .force_encoding and it's the same
<schemanic>
djellemah, that helped alot
<Mattx>
I guess it's not the correct way to change the encoding (?)
<djellemah>
;-)
<apeiros>
Mattx: yeah, trying to push puzzle pieces into a spot doesn't solve a puzzle.
rmulliga` has quit [Ping timeout: 250 seconds]
uri_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
b|ackwolf has joined #ruby
<Mattx>
I read that somewhere on the internet, then I found about I18n too
<schemanic>
I'm coming from low level python, perl, powershell. I've been writing in JS for about 2 years since that too so this is quasi familiar but super confusing
<apeiros>
.encode works IFF the string's .encoding is set correctly. it will translate from one to the other encoding.
FooMunki has joined #ruby
skade has joined #ruby
<apeiros>
.force_encoding ONLY changes the meta-information, which in which encoding the string is currently encoded. it does NOT change the actual bytes.
<apeiros>
i.e. .force_encoding is for when you failed to tell ruby which encoding your source uses when reading input.
<djellemah>
schemanic: yeah ruby has some shortcuts and syntax sugar that can be confusing in this context. And these system calls have been around since the dawn of ruby-time. So they're a bit, uhm, crufty sometimes.
aupadhye has joined #ruby
idle_task has joined #ruby
idletask has quit [Disconnected by services]
idle_task is now known as idletask
floatingpoint has quit [Max SendQ exceeded]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
floatingpoint has joined #ruby
idefine has quit [Remote host closed the connection]
<Mattx>
apeiros, I'll use rchardet or coder, thanks for the article
<apeiros>
Mattx: uh. I guess it wasn't good enough if you use rchardet for your problem.
<apeiros>
I mean - how can you not know which encoding your shell commands emit?
configged has joined #ruby
RegulationD has joined #ruby
<Mattx>
I guess I'll use coder not rchardet at the end, I only want to extract the registration date from the whois data
<Mattx>
the shell is using utf8, I'm only getting errors in a few domains
<Mattx>
or so I think
<Mattx>
anyway, I don't want to depend on the config/shell in which the script runs, I'll remove invalid chars
fullofcaffeine has joined #ruby
idefine has joined #ruby
<Mattx>
do you get a result in your well-configured shell for `whois fanzinc.com`.split ?
<apeiros>
I treat shell data as binary unless I know what it is. and then yes, I do get a result.
<Mattx>
what do you mean? how exaclty are you running it to get a result?
RegulationD has quit [Ping timeout: 240 seconds]
<apeiros>
the easiest way for you: `whois x`.b.split
bry4n has joined #ruby
<apeiros>
split seems a poor choice to extract the registration date, though.
naftilos76 has joined #ruby
<Mattx>
I'm using [], it was just an example
naftilos76 has quit [Client Quit]
djellemah has quit [Ping timeout: 244 seconds]
<Mattx>
so .b converts the string to binary, regardless of the previous encoding
idefine has quit [Read error: Connection reset by peer]
merida has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
`tim` has joined #ruby
jam__ has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Client Quit]
kies has joined #ruby
freerobby has quit [Quit: Leaving.]
idefine has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ChiefAlexander has joined #ruby
crowell has joined #ruby
<shevy>
hmm... anyone knows why "foo, bar = some_method_returning_an_array" will give a warning if foo or bar is not used, but not if one is named _ ? like _, bar = some_method ... the _ will not yield a warning
<Elysia>
shevy: _ is a common denotation for "we won't use this variable"
idefine has quit [Remote host closed the connection]
<Elysia>
it's mostly related to the IDE though, I thought
bricker has joined #ruby
<Elysia>
(so basically, you want your first variable to be named _foo if you know you won't use it)
statelesscode has quit [Quit: statelesscode]
<shevy>
oh... _foo also won't trigger a warning? lemme try
<Elysia>
yeah, it just has to start with an underscore
<apeiros>
Mattx: if it's still the same text, then yes, the .encode will fail
<Elysia>
i've used it while mid-process of developing something or when I needed just the key of a |key, _value| loop
<apeiros>
Mattx: and it actually does for me, at the point I expected it to ("M\xe1laga")
pulpfiction has quit [Quit: Leaving]
<shevy>
Elysia yeah just tried. bit weird but ok, I am looking at some long script written by someone else, old code, lots of unusued variables there, lots of warnings triggered by ruby -w ... just prefing with a _ seems to suppress at least that warning, now on to the few other dozen warnings :D
<apeiros>
encode from binary to utf-8 only works for data where all bytes are between 0x00 and 0x7f
<Elysia>
shevy: lucky you, working in them glorious legacy codes!
idefine has joined #ruby
<Elysia>
I think rubocop --auto-correct does the same
<shevy>
rubocop is quite good but I found that it does not auto-correct everything :(
<Elysia>
unfortunately :P
freerobby has joined #ruby
<Elysia>
Sometimes it needs a human. Else we'd be out of a job!
<sandelius>
P4Titan form_for when you have an ActiveRecord object and form_tag when you don't have an one xD
<Mattx>
apeiros, false
<apeiros>
your whois changed :D
IvanSuftin has joined #ruby
<Mattx>
wtf?
<Mattx>
now `...`.split works WTF
<P4Titan>
sandelius: I see
<apeiros>
as I said - your whois response probably changed.
<adaedra>
Mattx: note that whois may be throttled.
<IvanSuftin>
So... Why would "log(value_i_know_exists.nil?)" actually return nil?
<Mattx>
ok, I'll go with .b.split then, thanks
<IvanSuftin>
(disregard my log function)
<apeiros>
IvanSuftin: because value_i_know_exists.nil? uses a broken .nil? implementation?
<apeiros>
even more so since .nil? is supposed to return true/false
<IvanSuftin>
value_i_know_exists is a string. Is there a better way to check for a variable (string) being a nil value?
<apeiros>
IvanSuftin: you have another problem.
<schemanic>
hey if I want to include a splatted array in a string whats the right way to write it?
<schemanic>
like this? string = "#{*myArr}"
<apeiros>
if somestring.nil? returns nil, you have some rather broken code somewhere.
idefine has quit [Remote host closed the connection]
<IvanSuftin>
apeiros: Hm. I'm not sure what else it could be. Checking...
<apeiros>
schemanic: you include a string into a string. not other datastructures. you convert other datastructures to string. so first figure how you want that data represented as a string.
speakingcode has joined #ruby
<schemanic>
I have to iterate through the splatted array and append to the string then?
<apeiros>
IvanSuftin: a) are you sure `value_i_know_exists.nil?` actually returns nil? because as said, true/false is what it's supposed to return
rkazak has joined #ruby
idefine has joined #ruby
Noxilex has quit [Ping timeout: 248 seconds]
<apeiros>
schemanic: no. the notion "insert a splatted array into a string" just makes no sense. maybe explain what you want to achieve instead.
<apeiros>
I *somewhat* guess you want .join(', ')
sarlalian has joined #ruby
astrobun_ has joined #ruby
tubuliferous_ has joined #ruby
<IvanSuftin>
Yeah, so I have "value_i_know_exists.class" logging as String. I also log its value which shows up properly. Then the .nil? check on the next line returns nil :/
<schemanic>
if myArr = ["x", "y", "z"] and I want a string that says "x, y, z"
fullofcaffeine has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 268 seconds]
idefine has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
halfamind has joined #ruby
Gasher has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
<IvanSuftin>
Hm, I also notice on line 4 I do pull a string out of `config['name']` to a `name` variable but then later check `config[name].nil?` and it's true
<IvanSuftin>
Hm
krzkrz has joined #ruby
griffindy has joined #ruby
bitri has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<IvanSuftin>
Also, it's now showing nil for source location :/
tomatoes has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
<apeiros>
source_location nil would be expected for the proper .nil? implementation (native methods don't report their source location)
<glacius>
shevy: : they are not comma delimeted,these are fixed width
<glacius>
apeiros: let me look at scan
<apeiros>
assuming you have the column widths: data.scan(/#{widths.map { |width| "(.{#{width}})"}/)
idefine has joined #ruby
<apeiros>
where `data` contains your data, and `widths` is an array of the column-widths
<apeiros>
will need some postprocessing to strip the padding
cdarne has joined #ruby
zast has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
cdarne has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
pawnbox has joined #ruby
kalimotxo has joined #ruby
<apeiros>
while a regex to parse position based data may seem like overkill - the fact that you'll remain in a single natively implemented method will almost certainly make it faster than another solution.
pawnbox__ has quit [Ping timeout: 250 seconds]
_stu_ has quit [Quit: _stu_]
stunder001 has joined #ruby
Vlat- has quit [Quit: Vlat-]
bMalum has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<glacius>
apeiros: taking a look now and yes i do have the widths
geekbri has joined #ruby
<apeiros>
glacius: are the fields padded?
<glacius>
apeiros: yes, with spaces
<apeiros>
hm, ok
<havenwood>
hi glacius
<apeiros>
.map { |row| row.map(&:strip) } # to remove the padding. potentially lstrip/rstrip
rmulliga` has joined #ruby
<havenwood>
ahh, scrollback!
tubuliferous_ has quit [Ping timeout: 246 seconds]
<glacius>
havenwood: Hello
aganov has quit [Quit: Leaving]
_stu_ has joined #ruby
terminal_ has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
<glacius>
apeiros: thanks for the tip,gonna check it out
idefine has joined #ruby
chipotle has joined #ruby
rmulliga` has quit [Ping timeout: 264 seconds]
idefine has quit [Remote host closed the connection]
Vlat- has joined #ruby
<apeiros>
hmmm, actually… I don't remember whether I tried String#unpack (with the "A" directive).
jottr has joined #ruby
duckpuppy has quit [Quit: WeeChat 1.4]
bluOxigen has quit [Remote host closed the connection]
idefine has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
tacit7 has joined #ruby
noService has quit [Ping timeout: 246 seconds]
<morfin>
is unpack similar to stuff i saw in PHP?
tubuliferous_ has joined #ruby
<apeiros>
look up both docs and compare?
idefine has quit [Remote host closed the connection]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morfin>
>> "test".pack("C*")
<ruby[bot]>
morfin: # => undefined method `pack' for "test":String ...check link for more (https://eval.in/540536)
<morfin>
what
<apeiros>
it's quite likely that php has an unpack similar to ruby's
<apeiros>
they'd both have inherited it from perl
bluOxigen has joined #ruby
<morfin>
i thought there should be pack
<apeiros>
you don't pack strings. you pack arrays.
<apeiros>
you unpack strings (and get an array)
<morfin>
oh of course )
marxarelli has joined #ruby
VeryBewitching has joined #ruby
<morfin>
["h","i"].pack("C*")
<morfin>
>> ["h","i"].pack("C*")
<ruby[bot]>
morfin: # => no implicit conversion of String into Integer (TypeError) ...check link for more (https://eval.in/540537)
<VeryBewitching>
G'day folks.
<apeiros>
?experiment morfin
<ruby[bot]>
morfin: Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
bezhermoso has joined #ruby
<morfin>
yes yes i know, just tested
<apeiros>
I know. which is why I told you to just test elsewhere :-p
bezhermoso has quit [Client Quit]
stardiviner has quit [Ping timeout: 240 seconds]
P4Titan has quit [Ping timeout: 268 seconds]
<morfin>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
dfas has joined #ruby
b|ackwolf has quit [Ping timeout: 244 seconds]
<morfin>
irb btw is strange thing :)
baweaver has joined #ruby
<dfas>
Hi guys - does anyone here know of a video training equivalent of Sandi Metz's POODR book?
Jardayn has quit [Read error: Connection reset by peer]
<morfin>
not sure why it define functions as private methods of main
ndg has joined #ruby
<dfas>
or video training of SOLID using Ruby?
davedev24 has joined #ruby
nando293921 has joined #ruby
DominicBurford has joined #ruby
ruby-lang508 has joined #ruby
DominicBurford has quit [Client Quit]
rodfersou is now known as rodfersou|lunch
chouhoul_ has quit [Remote host closed the connection]
<ghr>
I can see they're constants containing Integers. How do they map to different behaviours?
uglybandersnatch has joined #ruby
<apeiros>
ghr: they map to bits in an integer
bronson has joined #ruby
<apeiros>
say `NOENT | DTDLOAD`, that sets bits 1 and 2, all other bits are not set.
Vlat-_ has joined #ruby
Vlat-_ has quit [Client Quit]
<morfin>
i saw that in libmx
Synthead has quit [Read error: Connection reset by peer]
<morfin>
libxml
<morfin>
ah it's using libxml2 under the hood :)
hk238 has joined #ruby
<ghr>
ah, so that probably explains why they do it that way
WebDawgII has joined #ruby
<morfin>
basically as i know libxml2 is C and have defines for options(constants)
Vlat- has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 268 seconds]
uglybandersnatch has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 260 seconds]
pawnbox_ has joined #ruby
jhack has joined #ruby
yokel has joined #ruby
maya-migo has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
bezhermoso has joined #ruby
<ruby-lang968>
Anyone know any good frameworks (apart from "bourbon neat") to implement grids for user posts?
pawnbox has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
<ghr>
so does nokogiri then just pass the resulting bit sequence to libxml to say "use these options"?
WebDawgII has quit [Ping timeout: 260 seconds]
nofacade has joined #ruby
ruby-lang968 has quit [Quit: Page closed]
merida has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
maya-migo has quit [Quit: Leaving]
griffindy has joined #ruby
d0nn1e has joined #ruby
ivanskie has joined #ruby
ojss has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
dhollinger has quit [Ping timeout: 252 seconds]
sandbird has quit [Ping timeout: 260 seconds]
dbford has joined #ruby
shinnya has joined #ruby
ojss has left #ruby [#ruby]
jam__ has joined #ruby
ojss has joined #ruby
<ojss>
hello
qqCore33 has quit [Quit: Page closed]
kam270 has quit [Ping timeout: 248 seconds]
blackms has joined #ruby
bMalum has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
siaw has quit [Quit: siaw]
ojss has left #ruby [#ruby]
<dbford>
hi
<apeiros>
ghr: I'd have to read the code just like you - but almost certainly yes
ojas has joined #ruby
<ghr>
apeiros cheers. I have been looking at it, but I found it a bit brain-exploding :)
SCHAAP137 has quit [Remote host closed the connection]
jam__ has quit [Ping timeout: 244 seconds]
ojas is now known as ojss
Guest38 has joined #ruby
troulouliou_div2 has joined #ruby
ascarter has joined #ruby
scepticulous has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
nerium has quit [Quit: nerium]
jdawgaz has joined #ruby
ojss is now known as ojas
maletor has joined #ruby
rmulliga` has joined #ruby
rcvalle has joined #ruby
ojas is now known as ojss
merida_ has joined #ruby
ascarter has quit [Client Quit]
symm- has joined #ruby
trinaldi has quit [Ping timeout: 246 seconds]
merida has quit [Ping timeout: 264 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
rmulliga` has quit [Ping timeout: 246 seconds]
pandaant has quit [Quit: Lost terminal]
devbug has joined #ruby
Salve has joined #ruby
x77686d has quit [Quit: x77686d]
cdg has quit [Remote host closed the connection]
ojss has quit [Ping timeout: 252 seconds]
yuung has joined #ruby
dhollinger has joined #ruby
LoneHerm_ has joined #ruby
qweqeq has joined #ruby
mallu has joined #ruby
davedev2_ has joined #ruby
davedev2_ has quit [Remote host closed the connection]
kalimotxo has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 268 seconds]
davedev2_ has joined #ruby
hahuang61 has joined #ruby
andikr has quit [Remote host closed the connection]
qweqeq has quit [Client Quit]
<dbford>
Hello
Don_John has joined #ruby
LoneHerm_ has quit [Ping timeout: 244 seconds]
dbford has left #ruby [#ruby]
Don_John has quit [Max SendQ exceeded]
Don_John has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
halfamind has quit [Quit: Leaving.]
djellemah has joined #ruby
halfamind has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Don_John has quit [Max SendQ exceeded]
haylon has joined #ruby
dikaio has joined #ruby
Don_John has joined #ruby
mondok has joined #ruby
DroidBurgundy has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
astrobun_ has quit [Remote host closed the connection]
trinaldi has joined #ruby
djbkd has joined #ruby
mleung has joined #ruby
ascarter has joined #ruby
axl_ has joined #ruby
Don_John has quit [Max SendQ exceeded]
Don_John has joined #ruby
jaruga_ has quit [Quit: jaruga_]
tacit7 has joined #ruby
bronson has joined #ruby
jenrzzz has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
bronson has quit [Read error: Connection reset by peer]
<shevy>
semi-off topic; I need to do some screencast of ruby, e. g. typing some commands into a terminal and recording this. Can anyone recommend something that is simple, on linux?
<shevy>
interesting, haven't seen that before, thanks
kobain has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Couch has quit [Ping timeout: 244 seconds]
Snowy has quit [Remote host closed the connection]
<rik>
hm
<rik>
anyone played with padrino much?
baweaver has quit [Ping timeout: 252 seconds]
joonty has quit [Ping timeout: 244 seconds]
b|ackwolf has joined #ruby
Disavowed has joined #ruby
bob434 has joined #ruby
noService has joined #ruby
skweek has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
halfamind1 has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
rdark has joined #ruby
sneakerhax has joined #ruby
RegulationD has quit [Remote host closed the connection]
czerasz has joined #ruby
mnrmnaugh has quit [Quit: Leaving]
ramfjord has joined #ruby
mnrmnaugh has joined #ruby
halfamind1 has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
jorum has joined #ruby
citrusfizz has quit [Read error: Connection reset by peer]
citrusfizz has joined #ruby
KensoDev has joined #ruby
th0m_ has joined #ruby
nettoweb has joined #ruby
siaw has joined #ruby
<apeiros>
?ask rik
<ruby[bot]>
rik: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
mistermocha has joined #ruby
rmulliga` has joined #ruby
baweaver has joined #ruby
kalimotxo has joined #ruby
<rik>
i'm trying to make Padrino connect to sqcipher as the backend database. The problem is that I need to use Sequel's connection_pragmas, and I'm having a hard time figuring out how to tell Padrino how to do this, and I would appreciate an example from someone else who has done this before.
shinnya has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
<rik>
google seems to show me that i'm the only one.
baweaver has joined #ruby
hiljusti has quit [*.net *.split]
mistermocha has quit [Ping timeout: 250 seconds]
_stu_ has quit [Quit: _stu_]
baweaver has quit [Remote host closed the connection]
DroidBur_ has joined #ruby
Guest13656 has quit [Quit: leaving]
threh has joined #ruby
gregf has joined #ruby
mrgrieves has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Ping timeout: 248 seconds]
<shevy>
hehe
baweaver has joined #ruby
DroidBurgundy has quit [Ping timeout: 276 seconds]
DroidBur_ has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
mrgrieves has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby
elifoster has joined #ruby
trinaldi has quit [Ping timeout: 240 seconds]
devbug has quit [Read error: Connection reset by peer]
norc_ has joined #ruby
mrgrieves has quit [Ping timeout: 244 seconds]
siaw has quit [Quit: siaw]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weaksauce has joined #ruby
ascarter has joined #ruby
evidex has quit [Quit: Lost terminal]
baweaver has quit [Remote host closed the connection]
bMalum has joined #ruby
tomatoes has quit [Ping timeout: 268 seconds]
unshadow has quit [Ping timeout: 244 seconds]
ihsw has joined #ruby
b|ackwolf has quit [Ping timeout: 276 seconds]
<ihsw>
hi i'm trying to set use_transactional_fixtures to false but i keep getting an undefined method error -- what gives?
pwnd_nsfw has quit [Read error: Connection reset by peer]
<apeiros>
?rails ihsw
<ruby[bot]>
ihsw: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
pwnd_nsfw has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
unshadow has joined #ruby
roshanavand_ has joined #ruby
pwnd_nsfw has joined #ruby
DoubleMalt has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
skade has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
ChiefAlexander has joined #ruby
solars has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
ixti has quit [Read error: Connection reset by peer]
xatltb has quit [Read error: Connection reset by peer]
yuung has joined #ruby
idefine_ has joined #ruby
Gasher has joined #ruby
Disavowed has quit [Ping timeout: 276 seconds]
nobitano_ has joined #ruby
<floatingpoint>
yo. why would I get a "wrong number of arguments (2 for 3)" wen invoking a method if I passed in 3 arguments, and the method signature has a default argument set? signature: def self.files_changed?(first_location, second_location, flags=Hash.new)
idefine has quit [Read error: Connection reset by peer]
jdawgaz has quit [Client Quit]
rodfersou|lunch is now known as rodfersou
idefine_ has quit [Remote host closed the connection]
<rik>
because your third argument wasn't a hash?
<nofxx>
floatingpoint, strange... how you're calling? sure the meth is not getting overwritten?
evie_hammond has joined #ruby
<nofxx>
or what rik said because you didn't post the insides
edwinvdgraaf has joined #ruby
<nofxx>
xpt, choosing software by the logo always works
<floatingpoint>
rik no third arugment
nobitanobi has quit [Ping timeout: 260 seconds]
<floatingpoint>
i think i know what's wrong. thanks nofxx!
<nofxx>
a nice precious stone or a disgusting snake? A prankful dolphin or a elephant that never forgets for you data?
edwinvdgraaf has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
davee_ has quit [Quit: Leaving]
edwinvdgraaf has joined #ruby
<ytti>
'gem install local_file' is slow for me, due to HTTPS GET stuff it does takes time
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx>
kidding apart, the logo also shows there's love in it. Only exception will be linux, GNU logos... =D
<ytti>
is there some commmand line switch to ignore those
baweaver has joined #ruby
yuung has quit [Ping timeout: 260 seconds]
<xpt>
nofxx: I know. I use soft with jewels in logo cause they are neat
<ytti>
like takes maybe 2min before it starts installing the software
<nofxx>
and of course, paid stuff that has same budget for design as for code... but nobody uses paid stuff anyways =D
yfeldblum has joined #ruby
zacts has joined #ruby
<nofxx>
ytti, here too.. guess they are updating or fixing
nobitano_ has quit [Remote host closed the connection]
joonty has joined #ruby
<zacts>
hi rubyists
<ytti>
nofxx, as a professinal procrastinator i find this unacceptable, it gives me excuse not to work
mdelgadonyc has joined #ruby
john__ has joined #ruby
<john__>
hello
pawnbox has joined #ruby
<john__>
I'm trying to install ruby on mint17 for the first time and I found on the web, that I should install rbev first. I got to some point and got stuck at this:"Modify your ~/.bashrc instead of ~/.bash_profile.". How do I do that?
<adaedra>
You were looking at the result of #map and not b.
<adaedra>
Also, if you don't intent to transform element and use the result, it's #each you should use, not #map.
halfamind has quit [Ping timeout: 276 seconds]
cd-rum has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
halfamind has joined #ruby
idefine_ has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
PaulCapestany has joined #ruby
<PaulePanter>
adaedra: Big thank you for your help and comments!
Rutix`away is now known as Rutix
mhoungbo has joined #ruby
<adaedra>
yw
yuung has quit [Ping timeout: 264 seconds]
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 244 seconds]
halfamind has quit [Read error: Connection reset by peer]
uglybandersnatch has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
halfamind has joined #ruby
<diegoaguilar>
hello whats rails channel in freeode?
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
<adaedra>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
darkf has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
swills has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
<PaulePanter>
Sorry, last question for today.
<PaulePanter>
Is there a way, to avoid initializing the empty array?
darkf has joined #ruby
<adaedra>
you need a starting point I think
<PaulePanter>
Ok. I’ll just use that.
<adaedra>
eam: maybe you can golf better than me on this one?
treehug8_ has joined #ruby
mhib has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 244 seconds]
threh has joined #ruby
Noxilex has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
treehug88 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
My_Hearing has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
<slash_nick>
where's the code?
elifoster has joined #ruby
snockerton has joined #ruby
crime has quit [Ping timeout: 250 seconds]
B1n4r10 has quit [Ping timeout: 260 seconds]
zenspider has joined #ruby
<PaulePanter>
slash_nick: What code?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 248 seconds]
<slash_nick>
PaulePanter: exactly
idefine__ has joined #ruby
<PaulePanter>
slash_nick: b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
<adaedra>
mmh?
<slash_nick>
PaulePanter: "Is there a way to avoid initializing the empty array?"... what empty array? where's the code? ah, thanks.
ChiefAlexander has joined #ruby
<zenspider>
drbrain: is there a way to make drb do client & server (using drbunix) in the same process? It seems to be bypassing all the marshalling (I'm writing tests and trying to avoid doing system calls)
idefine_ has quit [Ping timeout: 244 seconds]
speakingcode is now known as someoneelsetho
lemur has joined #ruby
IrishGringo has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
rodfersou is now known as rodfersou|dinner
yqt has joined #ruby
scepticulous has quit [Remote host closed the connection]
rodfersou|dinner has quit [Quit: leaving]
apeiros__ has joined #ruby
<benzrf>
PaulePanter: you should probably use each instead of map there
lemur has quit [Ping timeout: 250 seconds]
<benzrf>
it draws attention to the fact that you're executing the block for side effects
apeiros__ has quit [Remote host closed the connection]
<mikecmpbll>
i wrote a ruby program recently that does a lot of stuff by invoking ruby scripts over ssh, i was thinking of trying to use drb instead, i dunno if that even makes sense cus i've only looked at it briefly :'d
<mikecmpbll>
writing the communication stuff over ssh was really sucky, so.
<r1nuz>
ssh > rpc
<mikecmpbll>
k
<drbrain>
if you're doing DRb over the internet use SSL with mutual auth
<mikecmpbll>
noted.
<drbrain>
by mutual auth I mean the client and the server auth each other
rbennace_ has joined #ruby
<mikecmpbll>
i'll play with it this weekend (4 days, woot)
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 264 seconds]
kingofcarrotflow has joined #ruby
skweek has joined #ruby
baweaver has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 276 seconds]
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haylon has quit [Quit: WeeChat 1.4]
rbennace_ has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 244 seconds]
stannard has quit [Remote host closed the connection]
devbug has joined #ruby
idefine has quit [Remote host closed the connection]
<kingofcarrotflow>
Greetings, I have a question about using Ruby's OpenSSL::SSL::SSLContext, I can get the command line curl equivalent of the command to work fine but not the ruby version. Am I doing something incorrect with the context settings? https://gist.github.com/anonymous/11201fa1fdbf007110d5
<kingofcarrotflow>
When I make a request with Ruby the server returns and error that the ssl certificate was not sent
uglybandersnatch has quit [Ping timeout: 252 seconds]
jrafanie has joined #ruby
Aviio has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
jrafanie has quit [Ping timeout: 268 seconds]
rmulliga` has quit [Ping timeout: 264 seconds]
nofacade_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]