<lagweezle>
Er, that wasn't meant to be an answer to anything.
TDJACR has joined #ruby
<timgauthier>
i know ;)
<lagweezle>
:p
x1337807x has joined #ruby
<lagweezle>
Very frustrated.
<timgauthier>
me too, this block isn't being a good block
<timgauthier>
html is lame
<shevy>
haha
beneggett has joined #ruby
<lagweezle>
A class returns false to 'respond_to? :plugin_status', throws NoMethodError when I try and call that method, but if I call 'instance_methods' on an instance, it lists 'plugin_status' as one of the methods.
Devanon has quit [Quit: WeeChat 0.4.3]
<toretore>
lagweezle: code plz
<toretore>
code > words
<lagweezle>
Yar.
<timgauthier>
pictures > code > words
<benzrf>
lagweezle: that's cuz the class doesnt have that method
<timgauthier>
hehehe
<lagweezle>
Haven't cleaned the repo up enough yet to make it public, yet. :/
lewix has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 264 seconds]
michael_lee has quit [Ping timeout: 260 seconds]
Robbo` has joined #ruby
chipotle has quit [Quit: cya]
yetanotherdave has joined #ruby
Vivekananda has joined #ruby
tectonic has quit []
gaboesquivel has joined #ruby
Robbo` has quit [Ping timeout: 240 seconds]
katmandoo has joined #ruby
kaspergrubbe has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
rm_ has joined #ruby
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nilium has joined #ruby
tectonic has joined #ruby
stantona has joined #ruby
kaspergr_ has quit [Ping timeout: 260 seconds]
<RubyPanther>
x.X
rjk808 has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
sdrew has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
hakunin has quit [Remote host closed the connection]
datafirm__ has joined #ruby
hakunin has joined #ruby
Vivekananda has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
stantona has quit [Ping timeout: 264 seconds]
Vivekananda has joined #ruby
michael_lee has joined #ruby
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
braincra- has quit [Quit: bye bye]
beneggett has quit [Ping timeout: 245 seconds]
datafirm__ has quit [Ping timeout: 255 seconds]
Shidash has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
Robbo` has joined #ruby
braincrash has joined #ruby
Hanmac1 has joined #ruby
Photism has quit [Quit: Leaving]
timonv has joined #ruby
agent_white has joined #ruby
jhulten has joined #ruby
gcauchon has joined #ruby
bmurt has quit []
bcfc has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 276 seconds]
Robbo` has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white>
Good evening
GriffinHeart has joined #ruby
Robbo` has joined #ruby
x1337807x has joined #ruby
<bcfc>
evening
Dingus has quit [Quit: Leaving]
timonv has quit [Ping timeout: 245 seconds]
tacos1de has quit [Ping timeout: 272 seconds]
<pontiki>
are you teasing the noob101 ?
<noob101>
pontiki: huh
<pontiki>
good evening, agent white. do you have anything to report?
<pontiki>
noob101: linux doesn't cost anything, there's no pirating involved, it's intended to be downloaded for free
<noob101>
pontiki: Ah ok.
tacos1de has joined #ruby
<benzrf>
pontiki: i'd just like to interject for a moment
<noob101>
pontiki: I don't want to change operating systems. :(
<benzrf>
what youre referring to as linux is actually gnu/linux
chipotle has joined #ruby
<benzrf>
or as ive taken to calling it, gnu plus linux
<pontiki>
very correct
<noob101>
pontiki: IDK! confused. Let's not talk about switching, I will wait till college I guess.
<pontiki>
however, you are fighting an uphill battle against du jure naming
yubrew has joined #ruby
<agent_white>
pontiki: Keeping the peace! Fighting the bad guys wherever they may be!
<agent_white>
:)
GriffinHeart has quit [Ping timeout: 255 seconds]
rjk808 has quit [Remote host closed the connection]
RyanV has joined #ruby
<gcauchon>
+1 if you're here, it's clearly because you have interest in development...
<pontiki>
and if someone says "linux" in a context where it is fairly clear they mean an OS distribution rather than merely a kernel, the GNU is clearly implied and does not require stating
x1337807x has quit [Ping timeout: 260 seconds]
<pontiki>
no worries from here, noob101
<gcauchon>
I might have missed the beginning of the discussion...
<noob101>
pontiki: Ok cool.
linoespinoza has joined #ruby
linoespinoza has quit [Max SendQ exceeded]
<gcauchon>
noob101: switch OS from what to what?
nateberkopec has quit [Quit: Leaving...]
<pontiki>
i'm merely making it clear that installing linux isn't prirating or illegal
<noob101>
Windows to Linux.
<noob101>
I am watching true life. "I want my Ex back"
<agent_white>
noob101: If you are going to Linux, nearly every distro has a "live cd" which you can test out before installing it. I would highly recommendting 'going to town' on downloading them :)
larissa has quit [Quit: Leaving]
<noob101>
This lesiban girl got rejected from the girl she wanted to be with, she shed crocodile tears haha.
<gcauchon>
that's what I guessed! don't waste your time on windows!
phinfonet has quit []
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
<noob101>
agent_white: thank you sir.
<noob101>
What's so bad about windows lol, don't yell at me, I am sure many things are wrong but I don't know.
<gcauchon>
the WORST development environment possible if you have interest in anything open source!
St_Marx has quit [Remote host closed the connection]
end_guy_ has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
Boohbah has quit [Write error: Connection reset by peer]
Slavox is now known as Slavox|AFK
* pontiki
wonder why she's been singled out to not put pressure on noob101 to switch when she didn't even do that..
d34th4ck3r has quit [Quit: zzz]
<gcauchon>
Linux is the way to go for affordable servers; so it's the natural development environment! OsX is a more user friendly OS that is unix-like based so everything often is plug&play
<noob101>
ok ok I get it, windows is shit. I will switch when I am ready.
<agent_white>
pontiki: I hope you don't feel you got singled out!
<bcfc>
i'd say many gnu/linux distributions are very user friendly, osx is user evil :-)
<gcauchon>
you're on a ruby channel, I guess you have interest in ruby development...
comma8 has quit [Ping timeout: 260 seconds]
<agent_white>
noob101: Nonono, dual-boot. It would be detrimental to not have both!
<pontiki>
agent_white: just going by the flow of conversation
pwh has joined #ruby
Shidash has quit [Ping timeout: 255 seconds]
<agent_white>
Ahhh. I just hopped in, I still have no idea what is happening! :D
<pontiki>
agent_white: it hardly matters. i'm just wondering.
<gcauchon>
lose MS, nstall Linux on your PC or get a Mac! period.
sdrew has joined #ruby
sdrew has quit [Client Quit]
Atttwww has joined #ruby
<pontiki>
or, hey, if you can't afford a mac, and are queasy about changing from windows, try an cloud-based dev env, such as koding.com and nitrous.io
<agent_white>
^
<Nilium>
Yaaaay my internet's back
<Nilium>
11 hours of downtime ಠ_ಠ
<pontiki>
or if you have, say, a rather underpowered netbook or such
<Nilium>
Almost lost my mind there. Also my github streak.
Slavox|AFK is now known as Slavox
Boohbah has joined #ruby
redondos has quit [Excess Flood]
n0n3 has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
St_Marx has joined #ruby
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
Wolland has joined #ruby
tacos1de has joined #ruby
<shevy>
Nilium lol
zorak8 has quit [Remote host closed the connection]
<_tpavel>
it's basically what you suspected initially, but with a comma :)
DarKnesS_WolF has quit [Changing host]
DarKnesS_WolF has joined #ruby
Litzthomaz38 has joined #ruby
Litzthomaz38 has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
decoponio has joined #ruby
jamto11 has joined #ruby
dawkirst has quit [Remote host closed the connection]
DaniG2k has joined #ruby
<_tpavel>
strk, but you can look into upgrading to 2.14, the old syntax should still be compatible and you can start getting used to the new syntax when writing new tests.
dawkirst has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
OffTheRails has joined #ruby
dawkirst has joined #ruby
blackmesa has joined #ruby
rghose2 has quit [Ping timeout: 240 seconds]
j75 has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
aagdbl has quit [Client Quit]
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
bradhe_ has quit [Remote host closed the connection]
zenojis has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
aagdbl has joined #ruby
rghose1 has joined #ruby
zenojis has joined #ruby
SegFaultAX has quit [Excess Flood]
noocode has quit [Ping timeout: 265 seconds]
gbchaosmaster has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
nateberkopec has joined #ruby
noocode has joined #ruby
ponga has joined #ruby
panga has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
chipotle has quit [Quit: cya]
Rollabunna has quit [Ping timeout: 264 seconds]
rahult has quit [Quit: Back to the world of zombies]
SegFaultAX has joined #ruby
vpretzel has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
Rahul_Roy has joined #ruby
charliesome has joined #ruby
koell has quit [Quit: So say we all!]
nateberkopec has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
r00ster has joined #ruby
byteoverfl0w has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
nateberkopec has joined #ruby
Takle has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
mr_snowf1ake has joined #ruby
wald0 has quit [Ping timeout: 252 seconds]
afei has quit [Remote host closed the connection]
dEPy has joined #ruby
chipotle has joined #ruby
wald0 has joined #ruby
xjiujiu has quit [Client Quit]
xjiujiu has joined #ruby
relix has quit [Ping timeout: 260 seconds]
mr_snowf1ake has quit [Quit: Leaving]
Nahra has quit [Remote host closed the connection]
blueOxigen has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
r0ast has joined #ruby
Nahra has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
JokerDoomWork has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
datafirm__ has joined #ruby
xjiujiu has joined #ruby
comma8 has quit [Remote host closed the connection]
xjiujiu has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
mercerist has joined #ruby
r0ast has quit [Ping timeout: 252 seconds]
datafirm__ has quit [Ping timeout: 255 seconds]
danshultz has joined #ruby
GriffinHeart has joined #ruby
andikr has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
roolo has quit [Quit: Leaving...]
Xeago has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
mat_ has joined #ruby
eka has joined #ruby
abra has quit [Ping timeout: 260 seconds]
<mat_>
I'm reading some code loading some hashes from a yml file with YAML.load, and the code expect the ruby hash keys to be in the same order as they are in the yml file
freggles has joined #ruby
rghose1 has quit [Read error: Connection reset by peer]
rghose1 has joined #ruby
<mat_>
it feels like this assumption is wrong
abra has joined #ruby
roolo has joined #ruby
<ddv>
mat_: hash keys are not ordered, only insertion order is remembered
<apeiros>
ddv: which means hash keys *are* ordered
strk has left #ruby [#ruby]
<mat_>
yeah
<apeiros>
mat_: as of ruby 1.9, hash keys will indeed retain the order of the yaml file
bradhe has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
St_Marx has quit [Ping timeout: 272 seconds]
why_away has quit [Remote host closed the connection]
<ddv>
ehh yeah
<mat_>
ok, so, the code doesn't assume things that are wrong
<apeiros>
also, please, even if the author was so bad to call it a .yml file, it's a yaml file, not a yml file. thanks.
<mat_>
haha
whyy has joined #ruby
<mat_>
I'll do that :-)
<apeiros>
dos 8.3 is long gone and dead - for good :)
_justin has joined #ruby
<mat_>
it did not originate from DOS, but yes
<apeiros>
mat_: btw., reading a yaml file is better done using YAML.load_file
<apeiros>
mat_: it was the most prominent emanator of the convention.
<mat_>
apeiros, Mmm, he's doing YAML.load(File.read(...)), ok, changing that too :-)
<ddv>
mat_: are you using rails/activerecord?
<apeiros>
mat_: at least he didn't File.open(foo).read. sadly a widespread bad practice
yubrew has joined #ruby
<mat_>
ddv, Mmm, this is some IBAN/Swift banking thing, but I'll be using it inside a rails app
<ddv>
mat_: use active_hash
<ddv>
it's convenient
<mat_>
ddv, well, I'm not adding a dependency on active_record to that gem only for that :-)
<mat_>
active_support
<mat_>
anyway
whyy has quit [Ping timeout: 260 seconds]
atraylen has joined #ruby
andrewhl has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 240 seconds]
ponga has quit []
ffranz has joined #ruby
jeregrine has joined #ruby
fschuindt has joined #ruby
bmurt has quit []
dilated_dinosaur has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
timfoo has quit [Ping timeout: 260 seconds]
St_Marx has joined #ruby
timfoo has joined #ruby
bradhe has joined #ruby
rghose1 has quit [Read error: Connection reset by peer]
joaoh82 has quit []
bradhe has quit [Remote host closed the connection]
rghose1 has joined #ruby
jespada has joined #ruby
dilated_dinosaur has joined #ruby
TripTastic has joined #ruby
klaut has quit [Remote host closed the connection]
ghr has joined #ruby
sk87 has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
dawkirst has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
Takle has quit [Remote host closed the connection]
why_away has quit [Remote host closed the connection]
r00ster has quit [Ping timeout: 265 seconds]
r00ster_ is now known as r00ster
whyy has joined #ruby
<roelof>
How can I make a datetime of these three dates (http://pastebin.com/YMS9bree) I tried time.parse and .to_time and to_date but they do not work ?
ayaz has joined #ruby
Kricir has joined #ruby
jottr has joined #ruby
gaboesquivel has joined #ruby
timonv has joined #ruby
LekeFly_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
whyy has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 265 seconds]
<Hanmac>
roelof: DateTime.strptime
LekeFly has quit [Ping timeout: 255 seconds]
<Hanmac>
roelof: you need to specify the format with them
balazs has joined #ruby
nnu has quit [Quit: Wqke me up before you go-go]
<roelof>
Hanmac: the format of the string or the format of the output
<Bhu>
but it doesn't specify where i must write the sentence of the registration
russt has quit [Quit: russt]
freerobby has joined #ruby
<emsilva>
Bhu: Got it, so the problem is LOADING the new filter into rails. What version of rails are you using?
<Bhu>
4.1.1
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<emsilva>
Bhu: In your config/application.rb add: config.autoload_paths += %W(#{config.root}/lib)
bradhe has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<emsilva>
Bhu: It will load everything on lib *if* and *only if* you use the proper naming convention. For example, a file lib/foo.rb must have a "Class Foo".
<Bhu>
ok
andrewjanssen has joined #ruby
lolmaus has joined #ruby
georgschlenkhoff has left #ruby ["Textual IRC Client: www.textualapp.com"]
cocotton has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
cocotton has joined #ruby
ari-_-e has quit [Quit: Leaving]
LexicalScope has joined #ruby
Maple__ has quit [Quit: bbl]
Bira has joined #ruby
the-undefined_ has joined #ruby
djbkd has quit [Remote host closed the connection]
mengu has quit []
silkfox has quit [Ping timeout: 255 seconds]
treehug88 has joined #ruby
jerius has joined #ruby
robertodecurnex has joined #ruby
anaeem1 has quit [Remote host closed the connection]
garndt has joined #ruby
Maple__ has joined #ruby
dik_dak has joined #ruby
whyy has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
maximski has quit []
whyy has joined #ruby
ixti has joined #ruby
Robbo` has joined #ruby
Arkaniad has quit [Ping timeout: 264 seconds]
<mary5030>
can someone kindly help me understand how i can strip description from this response so i can store it in a variable, e.message = "Failed to retrieve https://example.com/config/589025?accept=json¶ms=config_typestartup: [{\"title\":\"Generators::UnprocessableTemplateError\",\"description\":\"No template could be found\"}]"
<shevy>
mary5030 capture in a regex
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby
<mary5030>
hum
<shevy>
like your_string =~ /description:(.+)/
aspiers_ has joined #ruby
<shevy>
obviously that won't match
mercerist has quit [Quit: Computer has gone to sleep.]
<shevy>
but when you get it to match, the content is stored in $1, or in [1] if you use a MatchData object
Shidash has joined #ruby
tami99 has quit [Quit: tami99]
<mary5030>
so yes description can change with different calls but i want everything from description on
<mary5030>
not too good with regex
maestrojed has joined #ruby
luksaur has joined #ruby
HashNuke has joined #ruby
<Robbo`>
anyone from the middleman project idle here?
Takle has joined #ruby
poguez_ has joined #ruby
<Hanmac>
mary5030: you wanted json so you need json to parse it
<Macaveli>
if i loop with each pair it also "puts" the keys and not only the value
<eam>
the cognitive dissonance in the ruby community not supporting it is staggering -- I don't have problems like that in any other language I work with
<shevy>
Macaveli you can get all values by invoking .values - however, if you want the value of a specific key, you must pass that key.
yubrew has quit [Ping timeout: 264 seconds]
<eam>
Sigma00: that's not true
<Macaveli>
shevy, .values works like a charm I thank you :)
<Macaveli>
kudos' for you
<shevy>
\o/
infinitone has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<eam>
xp is under 20% iirc, and anyway looking to microsoft (who makes money by obsoleting prior versions of software) is not a great model for open source support
r_s_h has joined #ruby
nvmme has joined #ruby
Wolland has joined #ruby
lethe has quit [Remote host closed the connection]
<shevy>
you always wanted to use your desktop machine like a smartphone didn't you
<mary5030>
it narrowed it down for me to :{"title"=>"Generators::UnprocessableTemplateError", "description"=>"No template could be found"}
nvmme has quit [Client Quit]
stantona has joined #ruby
<eam>
shevy: I haven't even seen what the last few versions of windows look like
<eam>
the last time I used it was when I worked there, before XP was a thing
<shevy>
they are getting progressively worse
kenneth has joined #ruby
datafirm__ has joined #ruby
ixti has joined #ruby
vpretzel is now known as vpretzel|1789
bradhe has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
<shevy>
the real innovation goes like that: "Shall we disable the old start menu? Yes!" (one or two versions afterwards) "Man, that sucked, people are angry, let's bring the start menu back... INNOVATION 3.0!!!"
binaryhat has joined #ruby
<eam>
just give me a window manager with lazy focus, prevent apps from stealing focus, and I just don't care about the rest
<thoraxe>
is there a way to take an arbitrary object and convert it into a URI-type string? for example, if I have foo.attr1=bar and foo.attr2=baz I want to get attr1=bar&attr2=baz
forcefsck has quit [Ping timeout: 245 seconds]
<thoraxe>
URI.encode_www_form wants to take array stuff, and I could write a method to return the array of my object
mary5030_ has joined #ruby
p8952 has quit [Ping timeout: 260 seconds]
<shevy>
to convert it into a string you usually have .to_s or .to_str
LekeFly_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle has joined #ruby
<r_s_h>
Hey all, so I’m trying to go through a CSV and grab all the values in the 4th column. I’ve started by reading the file into an array of arrays: csv_arr = CSV.read(“file.csv”). Then I am trying to loop through the main array and take the 4th element of each sub-array: csv_arr.each do |row| values << row[row_count][4], etc.
<shevy>
thoraxe I guess rails users have this problem often, there is probably some code in activerecord or similar to convert into an URI scheme
* benzrf
bonks r_s_h on the head
<thoraxe>
"#<Request:0x00000006f1bb88>"
<thoraxe>
shevy: my model is not activerecord.
<shevy>
hehe
<Sigma00>
thoraxe: .inspect
b00stfr3ak has joined #ruby
<r_s_h>
:|
mary503__ has joined #ruby
<shevy>
r_s_h but he is right, if you have an array already, why not .map ?
stantona has quit [Ping timeout: 240 seconds]
<thoraxe>
Sigma00: that's a string, but... not usable?
<r_s_h>
…looking up maps docs
<Sigma00>
right, not usable. I didn't read backlog
<thoraxe>
Sigma00: trying to get URI/params-style conversion of an object/model
Beoran_ has quit [Ping timeout: 265 seconds]
<thoraxe>
URI.encode_www_form takes an array of stuff, so i could write a method on my model to do that
<thoraxe>
but i was just wondering if there was a direct way to do it
mary5030 has quit [Ping timeout: 276 seconds]
datafirm__ has quit [Ping timeout: 265 seconds]
bradhe has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
<AntelopeSalad>
Sou|cutter: i was looking for gem list foo --remote , ended up eventually finding it
geggam has joined #ruby
mary5030_ has quit [Ping timeout: 240 seconds]
cr is now known as oa
acrussell has joined #ruby
<shevy>
aren't the ruby docs perfect
silkfox has quit [Ping timeout: 245 seconds]
<shevy>
thoraxe I am sure activerecord has something, I remember I saw it in their docs. whether you use activerecord or not is not relevant because you could then "click on source" and see how they solved it. I forgot the name of the method though ... I think it had the string "_uri" or something hmm
<thoraxe>
shevy: my objcet is not activerecord.
<thoraxe>
oh
<shevy>
and?
<thoraxe>
eh
<shevy>
how does that matter?
<thoraxe>
i'm still writing something then
troulouliou_dev has quit [Remote host closed the connection]
platzhirsch has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
<thoraxe>
the answer sounds like "there is no direct method"
ndrei has joined #ruby
<r_s_h>
well, we’re getting closer. Can I post a few lines of code here?
<shevy>
your goal is to get a string representation for specific values of your objects like "attr1=bar&attr2=baz"
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<thoraxe>
shevy: correct.
<Sigma00>
thoraxe: call attributes.to_param
himsin has joined #ruby
<Sigma00>
on your model
himsin has quit [Client Quit]
mehlah_ is now known as mehlah
<thoraxe>
Sigma00: my model doesn't have an .attributes method
maletor has quit [Quit: Computer has gone to sleep.]
<Sigma00>
if it's ActiveRecord, yes it does
<shevy>
my internet connection is slow again, I can't search for anything :(
<thoraxe>
Sigma00: you seem to skip a lot of what we're talking about... :P it's not activerecord.
<shevy>
Sigma00 well he does not use activerecord and he said that about a million times hahaha
<r_s_h>
2.1.0 :055 > values << arr.map do |row|
<r_s_h>
2.1.0 :056 > row[row_count][4]
<r_s_h>
2.1.0 :057?> row_count += 1
<Sigma00>
<__< maybe I should only offer help when I'm actively reading
<r_s_h>
2.1.0 :058?> end
<r_s_h>
=> [[2, 3, 4, 5, 6]]
<shevy>
but I dont even know why it would matter anyway
acrussell has left #ruby [#ruby]
<shevy>
because all he needs to do is fetch the relevant data, and then turn it into an URI-like string
<r_s_h>
yet: 2.1.0 :060 > arr[1][4] => “4”
atmosx has joined #ruby
<thoraxe>
shevy: it will take me longer to find the activerecord docs than it will take me to create an array of the attrs and pass it to URI.encode_www_form
<shevy>
thoraxe how would you name such a method by the way
<atmosx>
hello
<thoraxe>
shevy: to_uri i guess
<shevy>
hello to greece
<Sigma00>
thoraxe: so, what ARE you using for models?
<atmosx>
shevy: I'm still in the shitty CZ :-( studying pharmacognosy, gonna go for a run then write some code then make a review of the fucking plants and get to bed
<thoraxe>
Sigma00: nothing, it's just a ruby class
<shevy>
ah
<shevy>
lol
<shevy>
the fucking plants
<thoraxe>
class Foo
djbkd has joined #ruby
paulfm has quit []
jottr has joined #ruby
heftig has quit [Quit: Quitting]
p8952 has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
<Sigma00>
thoraxe: guess you're stuck returning the instance variables as an array then. You could use introspection for it
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
newUser1234 has joined #ruby
<thoraxe>
Sigma00: ?
<Hanmac>
r_s_h: are you sure you need [row_count] in that block?
kiri has quit [Quit: Leaving]
<r_s_h>
wait.
<r_s_h>
really?
<Hanmac>
r_s_h: that should already be what you want: values = arr.map { |row| row[4] }
Nahra has quit [Remote host closed the connection]
Guest55484 has joined #ruby
<r_s_h>
smh
mkjackson has left #ruby [#ruby]
Beoran_ has joined #ruby
banister has joined #ruby
stantona has joined #ruby
Leehro has joined #ruby
<r_s_h>
thanks man, I’ve been looking at this too long
Takle has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 240 seconds]
shvelo has joined #ruby
kevind_ has joined #ruby
Nahra has joined #ruby
froy has joined #ruby
bluenemo has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
anaeem___ has joined #ruby
hpoydar has quit [Remote host closed the connection]
rabbashanks has joined #ruby
rayners has joined #ruby
kevind has quit [Ping timeout: 260 seconds]
kevind_ is now known as kevind
malcolmva has joined #ruby
Hanmac1 has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
maestrojed has joined #ruby
snath has joined #ruby
GriffinHeart has quit [Ping timeout: 265 seconds]
anarang has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 252 seconds]
Trynemjoel has quit [Quit: Trynemjoel]
yfeldblum has joined #ruby
Takle has joined #ruby
danman has joined #ruby
fresham has joined #ruby
LadyRainicorn has joined #ruby
kavinder has joined #ruby
gruz0[russia] has joined #ruby
Trynemjoel has joined #ruby
andikr has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
<Sigma00>
thoraxe: still stuck?
carlyle has quit []
MrDoctor has quit [Remote host closed the connection]
MrDoctor has joined #ruby
platzhirsch1 has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
sambao21 has joined #ruby
atmosx has quit [Remote host closed the connection]
Ankhers has quit [Write error: Connection reset by peer]
atmosx has joined #ruby
Ankhers has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
<joelteon>
i'm not sure if the weechat bindings work with ruby 2.0
benzrf is now known as benzrf|offline
<joelteon>
oh, it looks like they've put in some patches for that
Leehro has quit [Ping timeout: 240 seconds]
why_away has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
g0bl1n has joined #ruby
apeiros has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
yubrew has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
<mikecmpbll>
:/
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
kenneth_ has joined #ruby
mary503__ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
xeno_ has joined #ruby
sambao21 has joined #ruby
phutchin1 has joined #ruby
blackmesa has joined #ruby
SCommette has joined #ruby
mikesplain has quit [Ping timeout: 260 seconds]
pietr0 has joined #ruby
apeiros has quit [Ping timeout: 276 seconds]
phutchins has quit [Ping timeout: 252 seconds]
shvelo has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
ixti has joined #ruby
wallerdev has joined #ruby
bradhe has joined #ruby
DaniG2k has quit [Quit: leaving]
sputnik13 has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
mikepack has quit [Remote host closed the connection]
MindfulMonk has quit [Quit: Have fun]
Nahra has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Guest55484 has quit [Ping timeout: 260 seconds]
<Sigma00>
>> class Foo; attr_accessor :test, :othertest; def attrs() instance_variables.map { |var| [var.to_s.sub('@',''), instance_variable_get(var)] } end; end; t = Foo.new; t.test = 1; t.othertest = 2; t.attrs #thoraxe I'm just gonna leave this here...
Nahra has joined #ruby
MindfulMonk has joined #ruby
wiku5_ has joined #ruby
kenneth_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 260 seconds]
<thoraxe>
gah... URI.decode_www_form won't handle a param if it is base64 encoded, even if it's in uri form
IceDragon has joined #ruby
redondos has quit [Excess Flood]
einarj has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
Rainicorn has joined #ruby
datafirm__ has joined #ruby
ryanleesipes has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
<thoraxe>
ugh, because base64 has equals signs
redondos has joined #ruby
<thoraxe>
is there another way to encode HMAC that is URL-friendly?
redondos has quit [Changing host]
redondos has joined #ruby
timonv has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
wiku5_ has quit [Client Quit]
kaspergrubbe has joined #ruby
mikepack has joined #ruby
binaryhat has quit [Quit: Leaving]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<thoraxe>
hmm urlsafe
phinfonet has joined #ruby
cpruitt has quit [Quit: cpruitt]
blackmesa has quit [Ping timeout: 245 seconds]
andrewjanssen has joined #ruby
sputnik13 has joined #ruby
NinoScript has quit [Quit: NinoScript]
datafirm__ has quit [Ping timeout: 276 seconds]
jimbauds has joined #ruby
jxf has quit [Ping timeout: 276 seconds]
Takle has quit [Remote host closed the connection]
hpoydar has joined #ruby
echevemaster has joined #ruby
djbkd has joined #ruby
tylersmith has joined #ruby
wiku5_ has joined #ruby
TripTastic has joined #ruby
Guest55484 has joined #ruby
Ankhers has quit [Ping timeout: 272 seconds]
mark_locklear has quit [Ping timeout: 265 seconds]
creativeembassy has quit [Quit: FO SHO]
maletor has joined #ruby
andikr has quit [Remote host closed the connection]
andrewjanssen has quit [Remote host closed the connection]
<Hanmac1>
thoraxe: URI.escape doesnt work too?
Bhu has quit [Ping timeout: 255 seconds]
georgschlenkhoff is now known as brain-hans
brain-hans is now known as hans-brain
olivier_bK has quit [Ping timeout: 260 seconds]
hans-brain is now known as help
lolmaus has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
help is now known as Guest45173
Guest45173 is now known as blob34
lolmaus has joined #ruby
niharvey is now known as niharvey|lunch
jamto11 has quit [Remote host closed the connection]
cpruitt has joined #ruby
schaary is now known as schaary|afk
apeiros has joined #ruby
<Robbo`>
is there a global timezone setting for ruby?
troyready has joined #ruby
Rollabunna has quit [Quit: Leaving...]
<thoraxe>
Hanmac1: at which point?
blob34 is now known as georgschlenkhoff
datafirm__ has joined #ruby
<thoraxe>
Base64.urlsafe_encode64("this is a string") <-- this produces a string with a bunch of = in it
niharvey|lunch is now known as niharvey
<thoraxe>
URI.decode_www_form("foo=#{Base64.urlsafe_encode64("this is a string")}") fails
<thoraxe>
probably because of all the =
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eka has joined #ruby
<Sigma00>
thoraxe: use hex? might be an option if it doesn't produce gigantic output
alex88 has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
cpruitt has quit [Client Quit]
platzhirsch has joined #ruby
<thoraxe>
it's really not a problem ultimately, because rails handles the params correctly
platzhirsch1 has quit [Quit: Leaving.]
<thoraxe>
so in my rspec test I just need to break off that one value before decoding
<thoraxe>
which is a total lame bitch, but whatever
platzhirsch has left #ruby [#ruby]
<Hanmac1>
thoraxe: ruby version?
yfeldblum has joined #ruby
wiku5_ has quit [Quit: WeeChat 0.4.2]
<Hanmac1>
>> "test123"
Hanmac1 is now known as Hanmac
<thoraxe>
2.0.0 on this system i'm testing on
<Hanmac>
dam evalin is not responding :/
<thoraxe>
but ultimately probably 1.9.3
<Hanmac>
thoraxe: thats for me: URI.decode_www_form("foo=#{Base64.urlsafe_encode64("this is a string")}") #=> [["foo", "dGhpcyBpcyBhIHN0cmluZw=="]]
<thoraxe>
Hanmac: what version?
<Hanmac>
2.1dev (trunk)
<thoraxe>
ArgumentError: invalid data of application/x-www-form-urlencoded (foo=dGhpcyBpcyBhIHN0cmluZw==)
<thoraxe>
on 2.0.0
EminenceHC has joined #ruby
hermanmunster has joined #ruby
<thoraxe>
oh well.
<EminenceHC>
I have a hash in ruby which I will be converting to json. If discharge_date_time does not have a value it would crash so I added "rescue nil". This prevented crashing if the value was nil but will not accept the incoming value at all. What is a better alternative to rescue nil? https://gist.github.com/EminenceHC/0a8693bd7d1e1460b2e2
<thoraxe>
adantj: hmm.. perhaps you aren't reading what we've been posting?
<thoraxe>
adantj: that's exactly what i am using.
<adantj>
oh sorry...
<thoraxe>
:P
<thoraxe>
sok
<Sigma00>
thoraxe: Hanmac's code works for me as well on ruby 2.1
vpretzel_ has joined #ruby
<thoraxe>
i guess it's a 2.0.0 issue
<thoraxe>
i wonder if it works in 1.9.3
vpretzel|1789 has quit [Ping timeout: 252 seconds]
<adantj>
it's weird that you're getting a bunch of '==' signs
<Sigma00>
no, that's normal for base64
<thoraxe>
adantj: there's nothing urlunsafe about == signs
<thoraxe>
and that is normal for base64
<Hanmac>
oh ups i already have 2.2dev
cpruitt has joined #ruby
<adantj>
urlsafe says it doesn't do +=?
<Sigma00>
securerandom urlsafe doesn't do that
<adantj>
oh, you're right
<adantj>
was reading something else
<adantj>
sorry
<Sigma00>
base64 urlsafe doesn't do / and + I think
hpoydar has quit []
<thoraxe>
urlsafe mentions nothing about =
<thoraxe>
- and / are not used
<thoraxe>
(in urlsafe)
<adantj>
gotcha, yeah.. I wasn't seeing right :(
<thoraxe>
i think the issue is that decode_www_form in older versions of ruby doesn't behave well
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
workmad3_ has joined #ruby
<thoraxe>
"mobile=mobile&retrieve_key=key×tamp=1401984445.4704278&api_key=pubkey&hmac=.... <-- given a string like this, how would I break off the hmac=... prat?
<thoraxe>
if I break off the hmac i can then decode the rest
deric_skibotn has joined #ruby
joaoh82 has joined #ruby
MrDoctor has joined #ruby
Takle has quit [Remote host closed the connection]
<maximski>
i want to validate a column for uniqueness scoped to that same column where some other column has not some specific value. how do i do that?
<apeiros>
though 2.1.2 handles it again.
kaspergrubbe has quit [Remote host closed the connection]
<adantj>
apeiros would ERB::Util.url_encode Base64.encode64('this is a string') work?
<Sigma00>
thoraxe: here, use this def www_decode(s); s.split('&').map {|a| a.split /(?<!\=)\=(?!\=)/} end;
mailo has joined #ruby
kaspergrubbe has joined #ruby
roolo has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
<apeiros>
Sigma00: just use split(/=/, 2)
yubrew has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
<maximski>
e.g. i have two objects with item_id = 2, but one is published and other one isn't. I want that there can be only one object with item_id=2 which isn't published
devdazed has quit [Ping timeout: 252 seconds]
<apeiros>
maximski: you're talking about database columns?
Ankhers has quit [Remote host closed the connection]
xaxisx has joined #ruby
pwh has quit []
timonv has quit [Ping timeout: 252 seconds]
jpinnix_____ is now known as jpinnix
Ankhers has joined #ruby
mark_locklear has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
TripTastic is now known as JBreit
JBreit has left #ruby ["Leaving"]
TorpedoSkyline has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
xaxisx has quit [Client Quit]
jpinnix_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
jpinnix_ has quit [Client Quit]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
xaxisx has joined #ruby
TorpedoSkyline has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
vpretzel|1789 has quit [Remote host closed the connection]
tyfighter has joined #ruby
vpretzel|1789 has joined #ruby
gruz0[russia] has joined #ruby
kenneth has joined #ruby
Eyes has quit [Remote host closed the connection]
Eyes has joined #ruby
Guest55484 has quit [Ping timeout: 240 seconds]
g0bl1n has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
nanoyak has joined #ruby
saarinen has joined #ruby
mijicd has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
mijicd has joined #ruby
Zamerick has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xaxisx has quit [Quit: xaxisx]
<ra4king>
hmm it seems like apt-get install ruby gives me 1.8
<ra4king>
how do I get 2.1.2 installed?
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
tectonic has joined #ruby
cocotton has joined #ruby
krz has joined #ruby
mikemac has joined #ruby
niklasb has quit [Remote host closed the connection]
otl has quit [Quit: leaving]
<emsilva>
ra4king: Well, the easy path is to use something like rvm or rbenv. RVM is the simplest. Take a look at http://rvm.io.
avril14th has quit [Remote host closed the connection]
jottr has joined #ruby
tyfighter has quit [Quit: tyfighter]
lkba has joined #ruby
xaxisx has joined #ruby
tyfighter has joined #ruby
Bhu has joined #ruby
<Sigma00>
ra4king: rbenv or rvm
<ra4king>
which one?
<ra4king>
they both look identical in function
<Sigma00>
I prefer rbenv
Hobogrammer has joined #ruby
blackmesa has joined #ruby
LadyRainicorn has joined #ruby
<ra4king>
why would I want to use these tools, is it not possible to just have the latest version installed?
happytux has joined #ruby
<happytux>
hi
<ra4king>
hello
<happytux>
The Rake fan is back :)
<emsilva>
ra4king: If your linux version doesn't offer the latest version, you can build it from scratch or use one of these tools to automatically do it for you.
x1337807x has joined #ruby
matled has quit [Remote host closed the connection]
railzForDaiz has joined #ruby
<railzForDaiz>
what is the best place to store config variables in a ruby app ? txt file or .rb
<railzForDaiz>
begginner
<ra4king>
emsilva: hmm well I don't like the idea of rvm taking over 'cd'
Zamerick has left #ruby ["Leaving"]
<ra4king>
schims sound like the best idea
* ra4king
goes with rbenv
mikepack has quit [Remote host closed the connection]
<Morrolan>
chruby is very lightweight.
<Morrolan>
And, unlike RVM, I actually understand whatit does.
<Hanmac>
emsilva: for me: require "date"; "%d days old" % (Date.today - Date.parse(RUBY_RELEASE_DATE)) #=> "3 days old"
<Sigma00>
ra4king: yml
<ra4king>
Sigma00: yml?
<emsilva>
I use rbenv for production and rvm for dev. That's just me. :)
Takle has quit [Remote host closed the connection]
<ra4king>
it downloaded, and it freezes after Install ruby-2.1.2
<shevy>
eh?
<shevy>
it does nothing?
tectonic has joined #ruby
* ra4king
checks /versions folder
shvelo has joined #ruby
<ra4king>
damn, versions folder is empty
* ra4king
tries sudo?
<Sigma00>
ra4king: it might be building
<ra4king>
that entire time?
JBreit has joined #ruby
<wallerdev>
w
<Sigma00>
have you ever built a huge project from source?
<ra4king>
yeah, it didn't take this long still
<Sigma00>
ruby won't take hours, but it can take a good amount of time
Kricir has joined #ruby
<ra4king>
this thing's been sitting for 10 minutes!
kidoz has quit [Quit: Ухожу я от вас]
<Sigma00>
... you're complaining about 10 minutes?
carraroj has joined #ruby
Nahra has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
MrDoctor has quit [Ping timeout: 245 seconds]
* Sigma00
installs gentoo on ra4king's servers
* ra4king
shoos Sigma00 away from his servers!
<Sigma00>
LET'S SEE HOW YOU FEEL AFTER HAVING TO COMPILE EVERYTHING
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sigma00>
X11 update, 2 hours
<ra4king>
that sounds painful as fuck
<Sigma00>
but then again, who'd have X11 on a serer
<Sigma00>
server*
teddyp1cker has joined #ruby
Nahra has joined #ruby
Xeago has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<wallerdev>
then again who'd have x11
peterhu has quit [Quit: security updates]
tanema has joined #ruby
foooobear has joined #ruby
tanema has quit [Client Quit]
<cvitullo>
anyone have any thoughts on why writing to a file would silently fail?
MrDoctor has joined #ruby
mikesplain has joined #ruby
<cvitullo>
i'm doing ' File.open(file, 'w') { |f| f.write(result) } ', file and result are set the the appropriate things, and the working directory has the right permissions
SCommette has quit [Quit: SCommette]
chipotle_ has joined #ruby
happytux has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 276 seconds]
banister has joined #ruby
<canton7>
check your assumptions. does 'result' contain anything? does 'File.open(file, 'w'){ |f| f.write("Testy") }' work ?
<shevy>
result contains a result!!!
<canton7>
does 'file' contain the path you think it does? are you writing to the right place
djbkd has quit [Remote host closed the connection]
peterhu has joined #ruby
<canton7>
I am 99% confident that your problem lies with one of those two things, rather than ruby silently failing
<shevy>
why not 100%
ndrei has joined #ruby
peterdinklage has joined #ruby
<shevy>
are you scared to make the last mile!
chipotle has quit [Read error: Connection reset by peer]
<Sigma00>
maybe result isn't even a string or something that can be coerced to one
<canton7>
because there's always one bitching little thing which catches you out, and you don't find it for ages because you initially ruled it out :P
timonv has quit [Remote host closed the connection]
djbkd has joined #ruby
LnL has quit [Read error: Connection reset by peer]
<shevy>
cvitullo can you confirm that canton7 was 99% correct?
LnL_ has joined #ruby
<Sigma00>
please show all work
<canton7>
:P
<shevy>
lol Sigma00
<shevy>
well
<shevy>
the 1% might be because cvitullo omitted some important information too
<cvitullo>
canton7: yeah i've been doing puts on the variables, they contain what i expect
end_guy has joined #ruby
akonny has quit [Quit: akonny]
Ankhers has quit [Remote host closed the connection]
Boohbah has quit [Read error: Connection reset by peer]
Boohbah_ has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
<canton7>
check that the path is right, then :P
Robbo` has quit [Ping timeout: 260 seconds]
Ankhers has joined #ruby
<shevy>
cvitullo can you create a new file from ruby?
creativeembassy has joined #ruby
<shevy>
require 'fileutils'; FileUtils.touch '/test' # should suffice
<ra4king>
fuck
<ra4king>
so I let it sit
<ra4king>
finally
<ra4king>
BUILD FAILED
* ra4king
cries
<ra4king>
"The Ruby openssl extension was not compiled. Missing the OpenSSL lib?"
<Sigma00>
install openssl-devel
<Sigma00>
or whatever it's called on your distro
kaspergrubbe has quit [Remote host closed the connection]
<ra4king>
openssl-devel doesn't exist
<ra4king>
ubuntu server 12.04
nvmme has quit [Quit: nvmme]
emsilva has quit [Quit: Keep Walking (Computer Slept!)]
<Sigma00>
google
<Morrolan>
`aptitude search ssl`
<ra4king>
way ahead of you
<ra4king>
libssl-devel ?
<Morrolan>
Sounds about right.
<ra4king>
Morrolan: ah the search command exists! been wanting something like that
<shevy>
ra4king debian has a habit to split up packages in ways so that noone can uncripple it again
the-undefined has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<Sigma00>
ra4king: you can also do apt-cache search 'blabla'
<ra4king>
yeah I was trying it with apt-get and it didn't work
<Sigma00>
apt-cache policy 'blabla' is nice for knowing what version of a package is available
<ra4king>
thanks for apt-cache
<cvitullo>
shevy: FileUtils.touch '~/test' broke, No such file or directory - ~/test
<ra4king>
alright apt-get install libssl-dev]
* ra4king
waits
* ra4king
installs Ruby 2.1.2 again
hermanmunster has joined #ruby
<RubyPanther>
cvitullo: The IO could be blocking, the directory could be a virtual filesystem like /tmp and some other software is causing it to get reaped, it could be buffered, etc. Another option is using syswrite() which is needed in some circumstances (but rarely on real filesystem files)
* ra4king
go gets a drink
<RubyPanther>
I'd say 99% might be too aggressive, shevy
<cvitullo>
hm
<shevy>
cvitullo well I did not say to use '~' hehe; however I just tested it in a directory, FileUtils.touch works 100% for me; perhaps try some other dir
peterdinklage has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
<shevy>
cvitullo could try: FileUtils.touch File.expand_path('~/test')
sambao21 has joined #ruby
<cvitullo>
yeah i was worried about write permissions in /
<RubyPanther>
Lots of stuff can be wrong with high level IO
<shevy>
write permissions are good
<shevy>
ruby will scream at you if you lack permissions
<shevy>
but you wrote silent fail
<shevy>
so it can not be a lack of permissions
<cvitullo>
yeah that's fair
<shevy>
if you can use FileUtils.touch, then you must also be able to write into a file
<RubyPanther>
shevy: If they don't find the error, for them it was silent ;)
<shevy>
RubyPanther :(
<shevy>
RubyPanther the last 5 days I tried to find out what means: nouveau E[ PBUS][0000:00:0d.0] MMIO write of 0x00540001 FAULT at 0x00b000
<cvitullo>
yeah i guess i should say, didn't halt execution and didn't output anything to the screen
emsilva has joined #ruby
<RubyPanther>
Not everybody gets to have nice things, sorry
<shevy>
all I know is that it has to do with my nvidia chipsets, with nouveau open source drivers, and with occasional freezing of my computer
<cvitullo>
this is all in a capistrano script and i know next to nothing about ruby, unfortunately
<shevy>
cvitullo perhaps capistrano suppresses useful output; in pure ruby though you get feedback
<cvitullo>
might be
<shevy>
cvitullo have you now determined that you can create a new file ;)
<cvitullo>
no :(
<RubyPanther>
shevy: Sounds like your video card has a driver bug in the IO bus, or bad RAM
<cvitullo>
doing FileUtils.touch File.expand_path('~/test') didnt' error out, but it also didn't make a file
<shevy>
RubyPanther yeah, it is depressing me...
<shevy>
cvitullo huh
<shevy>
cvitullo it creates the file for me hmm
<shevy>
cvitullo have you checked 100%?
akonny has joined #ruby
<shevy>
what does: puts File.expand_path('~/') output anyway
<RubyPanther>
shevy: did you try the proprietary driver? Not something I normally recommend, but it could be useful for determining if it is a hardware fault
Doppp has quit [Ping timeout: 255 seconds]
<cvitullo>
shevy: nothing in the capistrano output, at least
<shevy>
RubyPanther have not tried it yet, will eventually try it; last time I tried, they told me I had to disable nouveau... and I somehow failed to haha
<cvitullo>
not sure if it's suppressing anything
sinkensabe has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 245 seconds]
<shevy>
cvitullo no I mean, in pure ruby? but come to think about it
<shevy>
it may be that capistrano does not have the permissions
<cvitullo>
ah yeah 1 sec
<shevy>
and just catches the failure silently
<shevy>
and does not tell you about it
jaimef has quit [Excess Flood]
pietr0 has quit [Quit: pietr0]
sinkensabe has joined #ruby
<cvitullo>
well i was able to do 'execute :echo, '#{result} > #{file}', but there were special characters that broke stuff because bash
<shevy>
btw usually /tmp is writable
<shevy>
you could try to create a file there
<shevy>
as RubyPanther once said...
<shevy>
or was it someone else?
Kricir has quit [Ping timeout: 260 seconds]
<shevy>
ruby is syntactic sugar over C
<cvitullo>
in irb i was able to do FileUtils.touch File.expand_path('~/test') and have it output successfully
<shevy>
\o/
<shevy>
now you only have to find out why capistrano isn't allowing you to, but try /tmp from capistrano, it really should work
gaboesquivel has joined #ruby
<shevy>
'/tmp/test'
<RubyPanther>
shevy: I'm seeing various nouveau errors that are similar, and people reporting they are fixed by using the nvidia driver
jaimef has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
<shevy>
really?
<shevy>
so there is hope \o/
<RubyPanther>
So it is less likely to be a hardware problem than I first thought
<shevy>
well first I will update my BIOS from 1.20 to 1.80 anyway
Shidash has joined #ruby
<cvitullo>
OH
<cvitullo>
OH
<shevy>
is that a good or a bad OH
<cvitullo>
the script executes on my local machine, but i need the file on the remote machine
<cvitullo>
it's successfully writing 'test' to my LOCAL ~, i've been checking the remove ~
<RubyPanther>
Yeah, "Ruby is a meta-language for dynamically generating C applications"
<cvitullo>
*remote
vt102 has joined #ruby
<cvitullo>
d'oh
frem_ has joined #ruby
<cvitullo>
okay i might need to do capistrano's upload thing to have that work
jhass|off is now known as jhass
sinkensabe has quit [Ping timeout: 255 seconds]
<shevy>
RubyPanther hmm... could the same be said for perl and python as well?
<RubyPanther>
It is all static under the hood. And the corollary, C applications are as dynamic as they can want to be.
vpretzel_ has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
joaoh82 has quit [Remote host closed the connection]
<RubyPanther>
shevy: In Perl's case it is almost true, but there is another layer of abstraction. For example you can't extend Perl with C without writing additional mappings. You can't really represent a piece of Perl code as C without replicating the whole byecode compiler and interpreters.
<shevy>
oh man
<RubyPanther>
Whereas in Ruby, there usually is a very straightforwards literal bit of C that does exactly what the Ruby does
peterdinklage has joined #ruby
<RubyPanther>
python, I have no clue, I don't cross that river, the other side is infested with whitespace-eating monsters
<benzrf>
RubyPanther: do not be absurd
<benzrf>
02:34 < RubyPanther> Whereas in Ruby, there usually is a very straightforwards literal bit of C that does exactly what the Ruby does
geekbri has joined #ruby
<benzrf>
that's ridiculous
<RubyPanther>
It is obvious to anybody who write Ruby in C ;)
Valesk has joined #ruby
vpretzel|1789 has quit [Ping timeout: 240 seconds]
<RubyPanther>
The suckiness of C in Perl was one of the reasons I switched. There is too long a distance to travel.
Lucky__ has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby
<shevy>
ok time to update the BIOS, if I don't come back, it failed...
shevy has quit [Quit: ""]
<benzrf>
shevy left!!!
<benzrf>
so weird
<RubyPanther>
But from C, I can grab a Ruby object and poke and prod it, it is just a regular C struct, regular C types, I don't _have_ to go through the Ruby interpreter, even when I'm using it
mijicd has quit [Remote host closed the connection]
<canton7>
yay it was the 99%
jxf has joined #ruby
<benzrf>
RubyPanther: lol
silkfox has joined #ruby
hpoydar has joined #ruby
jottr has joined #ruby
<jxf>
Does #freezing an array, object, etc., have any performance implications? For example, does it affect access characteristics of array elements at all?
yubrew has joined #ruby
<RubyPanther>
jxf: Yes, no, but benchmark if it matters
<lewix>
I'm looking for a haml to html converter for rails
joaoh82 has joined #ruby
jackneill has joined #ruby
<jxf>
lewix: Haml *is* a haml to html converter :)
jackneill has quit [Read error: Connection reset by peer]
<lewix>
I want to use haml outside the asset pipeline, jxf
heftig has joined #ruby
Robbo` has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<RubyPanther>
haml predates the pipeline
<RubyPanther>
so I'm sure there is no extra step for that
<RubyPanther>
but rails sucks, use Camping
<jxf>
lewix: f = File.read(...); e = Haml::Engine.new(e); output = e.render
foooobear has quit [Quit: Computer has gone to sleep.]
<jxf>
er, Haml::Engine(f), rather
<jxf>
lewix: Haml doesn't really have anything to do with the asset pipeline
<jxf>
lewix: also, if you're looking for Rails-specific advice you may want to ask #rubyonrails
<lewix>
jxf, i put a haml file in my public folder - but it's not reading it - it's readin g it as plain text
<benzrf>
camping looks kinda campy
<benzrf>
:^)
<jxf>
lewix: ... so it *is* reading it?
maximski has quit []
wallerdev has quit [Quit: wallerdev]
<jxf>
lewix: I'm a little confused about what you mean, haml files are plain text
<lewix>
its rendering the haml code
<lewix>
as text
kenneth has quit [Remote host closed the connection]
Xeago has joined #ruby
<jxf>
lewix: what's the name of the file?
jottr has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
kenneth has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<lewix>
jxf, tagCont.html.haml
yubrew has quit [Ping timeout: 245 seconds]
peterdinklage has quit []
shevy has joined #ruby
baroquebobcat has joined #ruby
ndrei has joined #ruby
<jxf>
try: "bundle exec irb", then "f = File.read('public/tagCont.html.haml'); e = Haml::Engine.new(f); e.render" and see what you get
GriffinHeart has joined #ruby
<cvitullo>
i got it! Thanks shevy and canton7, you da best
<DouweM>
lewix: I don't think /public goes through the asset pipeline
<cvitullo>
it ended up being a capistrano problem but i would've taken a lot longer to debug it otherwise
<shevy>
wheee I think BIOS update worked... though there was a warning "CMOS wrong checksum" or so
<DouweM>
lewix: place it in a view and it'll work
<lewix>
DouweM, that's what i said earlier
<DouweM>
ah sorry, didn't see that
jottr has joined #ruby
<shevy>
haha
<DouweM>
right, you're aware of that and want to use haml outside the asset pipeline. okay.
<lewix>
DouweM, but jxf and RubyPanther say otherwise
<shevy>
people on IRC often just read the last part
<DouweM>
shevy: yeah :P
combusean has quit [Ping timeout: 240 seconds]
<shevy>
I hate you all
<shevy>
I love you all
vpretzel_ is now known as vpretzel
<RubyPanther>
Or, they correct specifically the part that was wrong
<RubyPanther>
Without doing the rest of the work
jackneill has joined #ruby
<DouweM>
or both
<LadyRainicorn>
lol shevy
<LadyRainicorn>
We hatelove you too! </?3
<lewix>
DouweM, i had headache trying to acces a *html.haml file without route in the asset pipeline so i put it in th epublic folder
testcore has joined #ruby
<DouweM>
why do you want to circumvent a controller, view and the asset pipeline?
Nahra has quit [Remote host closed the connection]
aspires has quit []
<DouweM>
lol LadyRainicorn
aspires has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
ohcibi_ is now known as ohcibi
<RubyPanther>
Find a haml tut from 2007. Also note that a lot of people don't even use the asset pipeline, and haml doesn't stop working.
jamto11 has quit [Remote host closed the connection]
<RubyPanther>
It is probably a case of asking the wrong question due to having not read any of the manuals
niharvey|lunch is now known as niharvey
<DouweM>
right, but it won't work (I don't think) in /public, it will in /views
<DouweM>
but meh, I haven't read most of the convo so I'll stay out of it
Nahra has joined #ruby
Emmanuel_Chanel has quit [Read error: No route to host]
Wolland has joined #ruby
<RubyPanther>
Putting it the right spot is required, of course. You can change or add to the places searched for views. Public is a pretty awful place though, for real reasons.
bradhe has joined #ruby
cpruitt has quit [Quit: cpruitt]
yfeldblum has quit [Ping timeout: 260 seconds]
Sawbones has joined #ruby
<RubyPanther>
the #rails channel can probably help a lot more
<RubyPanther>
#rubyonrails
tectonic has quit []
<jxf>
(#rubyonrails)
Emmanuel_Chanel has joined #ruby
kaspergrubbe has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Computer has gone to sleep.]
cpruitt has joined #ruby
GuestUser123 has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
<shevy>
((#rubyonrails))
<shevy>
it's like a condom - lisp protection
niftylettuce_ has joined #ruby
LadyRainicorn has quit [Quit: Bye]
dawkirst has joined #ruby
<GuestUser123>
ruby is weak
<GuestUser123>
lang for nerds
<DouweM>
weakly typed, sure
<GuestUser123>
syntax ugly
<GuestUser123>
python beter
<DouweM>
*better
kireevco has quit [Quit: Leaving.]
glenfe has quit [Quit: Restart]
<DouweM>
learn to type troll
<GuestUser123>
shutup nerd
<DouweM>
#nerdlyfe
* jxf
cries
<GuestUser123>
hahaha
<GuestUser123>
ok at least he is funy
<GuestUser123>
jxf
<GuestUser123>
:D
rm_ has quit [Read error: Connection reset by peer]
troyready has quit [Remote host closed the connection]
Squarepy has joined #ruby
rm_ has joined #ruby
sandbags0 has quit [Ping timeout: 240 seconds]
mityaz has quit [Quit: See ya!]
SCommette has joined #ruby
<lectrick>
So I have an old lib. It has a test suite which requires "test/unit" and "mocha". Somewhere along the line, I installed or upgraded minitest. Now when I run the suite I get this error I can't seem to solve even if I follow the instructions: Warning: you should require 'minitest/autorun' instead or add 'gem "minitest"' before 'require "minitest/autorun"'
kireevco has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
<DouweM>
so, have you tried either of those things?
<lectrick>
Yep.
dawkirst has quit [Remote host closed the connection]
mat_ has left #ruby ["Quitte"]
dawkirst has joined #ruby
maestrojed has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<lectrick>
Then I get "Uninitialized constant 'Test'" when my test suite inherits from Test::Unit::TestCase
<lectrick>
Probably because I am no longer requiring "test/unit". Which is what the instructions said- to replace that require with "minitest/autorun"
havenwood has joined #ruby
dawkirst has quit [Remote host closed the connection]
n0n3 has quit [Remote host closed the connection]
<lectrick>
If I put in both, I also get errors. Hence me being here
dawkirst has joined #ruby
cocotton has quit [Remote host closed the connection]
<DouweM>
I'm afraid I have no experience with either minitest or test/unit
SegFaultAX has quit [Excess Flood]
vsh_ has quit [Quit: Leaving.]
<GuestUser123>
ios and osx is a sep feee
<GuestUser123>
wooooooooooooow
<lectrick>
DouweM: Just Rspec?
<DouweM>
lectrick: yeah
<GuestUser123>
my single code base works on ios and osx yet they wana charge me sep
<GuestUser123>
woooooooooooooow
<GuestUser123>
steve jewbs
<GuestUser123>
no wonder u died
benzrf is now known as benzrf|offline
aspires has quit []
SegFaultAX has joined #ruby
<GuestUser123>
i hope the devil treats him ok
Fenwick has joined #ruby
<lectrick>
What have you invented which millions of people use?
<DouweM>
if you think he deserves hell, why do you care?
kirun has joined #ruby
<GuestUser123>
well look
nvmme has joined #ruby
<GuestUser123>
my code is c++
<GuestUser123>
right
<GuestUser123>
it works on desktop and phone
<DouweM>
weren't you screaming about python before?
sambao21 has joined #ruby
<GuestUser123>
already have a crossplatform app
<lectrick>
does he know which channel this is?
<GuestUser123>
no i said that as python has similar syntax to ruby
yfeldblum has joined #ruby
<DouweM>
GuestUser123: ah, right. go on
<wallerdev>
you dont have to pay anything to develop desktop apps on mac os x
<GuestUser123>
wat do u gaize think
OffTheRails has quit [Ping timeout: 240 seconds]
<GuestUser123>
yes i do
<wallerdev>
only if you want to sell your app on their app store lol
<DouweM>
lectrick: he must've when he joined, I think we're dealing with a goldfish and a 3s short term memory
<GuestUser123>
i cant even deploy
<GuestUser123>
to my own iphone
<wallerdev>
hence desktop
aspires has joined #ruby
<DouweM>
GuestUser123: you can download Xcode for free and build and run and distribute apps
<DouweM>
all for free
<lectrick>
yep
<GuestUser123>
i have xcoed
<DouweM>
if you want to get on any of the app stores, you need a dev account
<shevy>
mac is so free
<GuestUser123>
you need a cert
nvmme has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<GuestUser123>
to deploy
<lectrick>
you don't need a cert. the user may get a warning, that's it
<wallerdev>
yeah you need a cert and provisioning profile to deploy to your phone, not desktop though
<DouweM>
deploy as in install? no you don't. or if you do, it's free
cocotton has joined #ruby
<shevy>
GuestUser123 python and ruby have somewhat familiar syntax but the philosophy is what sets them apart
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
<GuestUser123>
yes my app is already on my desktop lol
railzForDaiz has joined #ruby
<GuestUser123>
thats where i write it comon
<DouweM>
GuestUser123: so what's the problem
<GuestUser123>
the PHONE
<GuestUser123>
r u not hearing me?
cocotton has joined #ruby
<wallerdev>
lol this guy
<GuestUser123>
the desktop version is fine
phutchin1 has quit [Ping timeout: 252 seconds]
<wallerdev>
better troll than me :(
<GuestUser123>
my app even comes with an installer
andrewjanssen has quit [Quit: Leaving...]
<GuestUser123>
try it
Xeago has quit [Read error: Connection reset by peer]
<shevy>
omg
Fenwick has left #ruby [#ruby]
<DouweM>
GuestUser123: so the problem is that you don't like closed platforms?
<GuestUser123>
well no i got over the 99
<GuestUser123>
but now i got to that screen
<shevy>
GuestUser123 no really, where is the big difference you see in python vs. ruby?
<GuestUser123>
and its telling me its 99 for each!!!!!!!!!!!!
<DouweM>
GuestUser123: yup
<GuestUser123>
this is madness
<DouweM>
GuestUser123: and you're telling us this why?
<shevy>
he wants you to pay it
<DouweM>
haha
<GuestUser123>
maybe if we all boycotit
<wallerdev>
python sucks, ruby rocks
<wallerdev>
not even an argument there
<DouweM>
GuestUser123: just use windows and android
<GuestUser123>
lol what
<shevy>
GuestUser123 we all 956 people here?
sambao21 has quit [Ping timeout: 260 seconds]
<shevy>
what a mass movement for boycott
<GuestUser123>
i duno
<shevy>
you are without a plan
Xeago has joined #ruby
<GuestUser123>
ill just get my mom to pay it
<shevy>
that's the cheap way
<GuestUser123>
she loves steve jewbs
<shevy>
who is steve jewbs
<GuestUser123>
let her pay him
sinkensabe has joined #ruby
<GuestUser123>
im a linux dev
<DouweM>
okay
gr33d has joined #ruby
aspires has quit []
<DouweM>
ask #yourmom then, don't bother us
nectarys has joined #ruby
<GuestUser123>
but my app works on linux windows mac iphone android
gregf has quit [Quit: WeeChat 0.4.3]
<shevy>
no this can not be true
<GuestUser123>
now im submiting it to all the stores
<shevy>
linux devs laugh about apple
<shevy>
so you can't be one
<wallerdev>
whats your app?
<GuestUser123>
its a irc chatting app
<GuestUser123>
im using it now
<shevy>
lol
<DouweM>
lol
<GuestUser123>
i have a mobile and desktop variant
GuestUser123 has quit [Remote host closed the connection]
<DouweM>
and you were testing if it supported trolling?
<wallerdev>
lol
<shevy>
you did not even write it yourself!
robertodecurnex has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<wallerdev>
i think i just broke his client
<shevy>
ack
<DouweM>
lol
<DouweM>
whatchado?
EagleDelta has joined #ruby
<wallerdev>
i sent a request for his irc client version
<DouweM>
haha
GuestUser123 has joined #ruby
<GuestUser123>
see
<DouweM>
so he is actually running his own client, it just sucks
<nectarys>
hi, what's the difference between django and RoR, please ?
dc_ has joined #ruby
GuestUser123 has quit [Remote host closed the connection]
<wallerdev>
yup
<wallerdev>
that kicks him off
<wallerdev>
lol
dc has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
<DouweM>
nectarys: Python vs Ruby for one
sinkensabe has quit [Client Quit]
GuestUser123 has joined #ruby
GuestUser123 has quit [Remote host closed the connection]
<DouweM>
wallerdev: lol
<wallerdev>
lol
djbkd has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<nectarys>
DouweM, okay thank you, but which do you advice me to learn ?
RaCx has joined #ruby
<DouweM>
nectarys: we're a bit biased
<wallerdev>
just use node.js
<DouweM>
wallerdev: lol. saves us a lot of discussion as we can send them to another chan immediately :P
GuestUser123 has joined #ruby
nvmme has joined #ruby
<GuestUser123>
jeeez
<wallerdev>
well hes already in node.js lol
michael_lee has quit [Ping timeout: 260 seconds]
<GuestUser123>
thanx man
<wallerdev>
hey Guest3776 did you fix your irc client
<GuestUser123>
nice kick
<wallerdev>
wow autocomplete
<GuestUser123>
ya
<GuestUser123>
good one bro
mary5030 has quit [Remote host closed the connection]
GuestUser123 has quit [Remote host closed the connection]
<wallerdev>
apparently you didnt
<wallerdev>
lol
<nectarys>
wallerdev, node.js is not good for complexe treatment, no ?
<DouweM>
wallerdev: what's the command? :D
mary5030 has joined #ruby
GuestUser123 has joined #ruby
<GuestUser123>
argh
<GuestUser123>
stop
<GuestUser123>
!!!!!!!!!!
<wallerdev>
i thought you said you fixed it
<GuestUser123>
hacker
<GuestUser123>
i guess not
robertodecurnex has joined #ruby
<GuestUser123>
try it
<GuestUser123>
debuger open
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev>
says youre using xchat now
<wallerdev>
lol
pedahzur has joined #ruby
<GuestUser123>
haha u funy
vsh_ has joined #ruby
<GuestUser123>
mine is similar to xchat
<wallerdev>
xchat 2.8.8
<GuestUser123>
coz its my fav client
blackmesa has joined #ruby
vsh_ has left #ruby [#ruby]
silkfox has quit [Ping timeout: 252 seconds]
<DouweM>
so you decided to use their version string?
<shevy>
hey
<GuestUser123>
mine is called yarp
<shevy>
wallerdev, you still use xchat?
paulfm has quit []
<wallerdev>
no i use colloquy
djbkd has quit [Ping timeout: 260 seconds]
<wallerdev>
its ok
<wallerdev>
not great
EminenceHC has quit [Remote host closed the connection]
<DouweM>
I like linkinus, just a shame it hasn't been updated in ages
<wallerdev>
yeah colloquy is dead on development too
<wallerdev>
rip
<wallerdev>
im gonna grab lunch now though
St_Marx has quit [Quit: Ex-Chat]
<DouweM>
lunch? i just had dinner
dfinly has joined #ruby
<wallerdev>
learn 2 timezone
<DouweM>
hehe
<wallerdev>
where are you thats dinner time
<wallerdev>
middle of the ocean
<DouweM>
Netherlands, it's 9:22pm now, had around 8:30
<DouweM>
*had dinner
AndChat| has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
sepp2k has joined #ruby
<wallerdev>
late dinner :p
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
GuestUser123 has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
<DouweM>
meh, I never eat before 7, and today I only started making dinner around 7:30
bricker has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
bricker has joined #ruby
Kricir has joined #ruby
bluenemo has quit [Quit: Verlassend]
jerius has quit [Ping timeout: 240 seconds]
<shevy>
weakling
jerius has joined #ruby
<DouweM>
:(
dfinly has quit [Quit: Computer Sleeping, me sleeping]
gregf has joined #ruby
kilk_1 has joined #ruby
kilk_1 has quit [Client Quit]
GuestUser123 has joined #ruby
<GuestUser123>
bastardos
<DouweM>
oh god he's back
<GuestUser123>
!!!!!!!!!
Xeago has quit [Read error: Connection reset by peer]
<GuestUser123>
i thot ruby was a friendly hipster comunity
troyready has joined #ruby
<GuestUser123>
did realize so many meanies here
<DouweM>
a hipster friendly community. you've already outed yourself as a python/C++ dev so get out
Takle has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
<GuestUser123>
ok do that thing again
timonv has joined #ruby
<shevy>
GuestUser123 the thing is you are a poser
paulfm has joined #ruby
tharindu has quit [Ping timeout: 265 seconds]
<GuestUser123>
lol says the ruby user
<GuestUser123>
i have an every lamer lang lol
<GuestUser123>
its caller groovy on grails
sambao21 has joined #ruby
skaflem has quit [Quit: Leaving]
aspires has joined #ruby
zorak8 has quit [Quit: Saliendo]
tectonic has quit []
zorak8 has joined #ruby
chubchubcharles has joined #ruby
sumyunseal has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
<sumyunseal>
o/
silkfox has joined #ruby
<zorak8>
test
Royalb15 has quit [Quit: Leaving]
yubrew has joined #ruby
<GuestUser123>
do that version thing
veinofstars has joined #ruby
<DouweM>
\o
<DouweM>
/o DOWN LOW TOO SLOW
wallerdev has quit [Quit: wallerdev]
yacks has quit [Quit: Leaving]
<GuestUser123>
oh there
<GuestUser123>
i fixed it
<GuestUser123>
i just did it to myself
georgschlenkhoff has left #ruby ["Bye, bye"]
GriffinHeart has joined #ruby
<GuestUser123>
what are these ascis
nvmme has quit [Quit: nvmme]
<GuestUser123>
this thing
ryanleesipes has quit [Quit: Leaving]
<jhass>
☃
<GuestUser123>
lol
freezey has quit [Remote host closed the connection]
nvmme has joined #ruby
Kricir has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
nectarys has quit [Quit: Ex-Chat]
ryanleesipes has joined #ruby
freezey has quit [Read error: Connection reset by peer]
<sumyunseal>
osx version installer is in chinese tho
cocotton has joined #ruby
<sumyunseal>
lol
Xeago has joined #ruby
<sumyunseal>
not sure why its detecting that as default on mac
sambao21 has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
<sumyunseal>
also osx version is a bit dated
<sumyunseal>
but win and linux is the latest version
sambao21 has joined #ruby
shenk has joined #ruby
mikesplain has quit [Ping timeout: 252 seconds]
<GuestUser123>
lol
<GuestUser123>
this is mobile
<GuestUser123>
im seal btw
<shevy>
chinese is the language of the future
nvmme has joined #ruby
<shevy>
navy seal?
<GuestUser123>
did u download it
<GuestUser123>
it looks very nice on linux
<shevy>
I download the whole internetz
myMINT has quit [Remote host closed the connection]
<GuestUser123>
shevy try it
<GuestUser123>
tell me wat u think of it
hermanmunster has joined #ruby
freezey has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
shenk is now known as shenkz
wallerdev has joined #ruby
freezey has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 276 seconds]
freezey_ has joined #ruby
DEA7TH_ is now known as DEA7TH
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Sawbones has quit []
jottr has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
nvmme has quit [Quit: nvmme]
baroquebobcat has quit [Quit: baroquebobcat]
hermanmunster has quit [Ping timeout: 245 seconds]
lethe has joined #ruby
jheg has quit [Quit: jheg]
xeno_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
freezey_ has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
geekbri has quit []
pietr0 has quit [Quit: pietr0]
lethe has quit [Ping timeout: 260 seconds]
nvmme has joined #ruby
the-undefined has quit [Quit: Connection closed for inactivity]
sputnik13 has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
x1337807x has joined #ruby
Emmanuel_Chanel has joined #ruby
Shidash has joined #ruby
Bira has joined #ruby
echevemaster has quit [Ping timeout: 240 seconds]
learner has quit [Remote host closed the connection]
shenkz has quit [Quit: Leaving]
rmill is now known as rmizzle
yubrew has joined #ruby
happytux has joined #ruby
<happytux>
hi
gattuso has joined #ruby
cpruitt has quit [Quit: cpruitt]
teddyp1cker has quit [Remote host closed the connection]
<happytux>
So I got the problem that inside a Rake task a command invoked by system('[...]') exiting with error status will not fail the task.
Bira has quit [Remote host closed the connection]
<happytux>
What can be the reason for this?
Takle has joined #ruby
<GuestUser123>
thx alot
<happytux>
I used Ant as build tool before and when a command failed, the task failed, too.
<happytux>
This is not the case for Rake.
<RubyPanther>
Whoever claimed that hipsters are friendly? How could they remain snobs? Anyways, I think the hipsters left for Go/JS/Swift
chubchubcharles has left #ruby [#ruby]
<happytux>
RubyPanther: NodeJs?
ponga has joined #ruby
ponga has joined #ruby
<GuestUser123>
hahaha
spider-mario has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<RubyPanther>
happytux: the rake task is responsible for raising an exception. If you call system() and the program returns a non-zero exit code, that is in fact NOT an error at all in general.
alem0lars has quit [Quit: alem0lars]
yubrew has quit [Ping timeout: 265 seconds]
<happytux>
RubyPanther: hm, the command in question fails (prints an error message t console, too).
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaimef has quit [Excess Flood]
Altonymous has joined #ruby
paulfm has quit []
<RubyPanther>
happytux: No, NodeJS is to JS as RubyOnRails is to Ruby. Hopefully if they're hipsters they have something better to do than write weblahgs. Or at least, they should pretend to
jaimef has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
jespada has quit [Quit: Leaving]
<RubyPanther>
happytux: The existence of data on STDERR does not indicate a failure of the system() method
<happytux>
oh
<GuestUser123>
coz they cant use ANY technologgy
<GuestUser123>
thats why they always hop on the new technology
shenk has joined #ruby
<GuestUser123>
then realize they cant hack it
<GuestUser123>
then repeat
<GuestUser123>
lol
<RubyPanther>
Sounds agile to me! Failure never needs to last more than 1 week...
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<GuestUser123>
ya wats w the whole agile shit
<happytux>
What do you think about NodeJs?
<GuestUser123>
it doesnt really apply to devs
<happytux>
I would use it for real time applications.
shenk is now known as shenkz
<GuestUser123>
hell no
silkfox has quit [Quit: WeeChat 0.4.3]
<GuestUser123>
or u mean realtime web app
MrDoctor has quit [Remote host closed the connection]
<benzrf>
node.js is bull
<benzrf>
js blows deal w/ it
<benzrf>
B)
MrDoctor has joined #ruby
silkfox has joined #ruby
glenfe has joined #ruby
<wmoxam>
benzrf: at least it scalez bro
<GuestUser123>
true that
Altonymous has quit [Ping timeout: 260 seconds]
* wmoxam
hides
<GuestUser123>
i dont know about that
<GuestUser123>
does it scale like they claim?
<GuestUser123>
with that new module
<GuestUser123>
js seems like horible lang to use for backend
bradhe has joined #ruby
<GuestUser123>
i do all my webstuff in backbone now
<wmoxam>
GuestUser123: IMO it's alright
cocotton has quit [Remote host closed the connection]
paulfm has joined #ruby
shvelo has quit [Ping timeout: 245 seconds]
<GuestUser123>
my apps are fully interactive to the max
<GuestUser123>
but i use php on backend
<GuestUser123>
python is just too ugly
<GuestUser123>
and java is jus too slow
cocotton has joined #ruby
jottr has joined #ruby
cocotton has quit [Remote host closed the connection]
<GuestUser123>
i dont see whats so special about node
cocotton has joined #ruby
<wmoxam>
ha
<happytux>
Joy team: PHP + PHP SOAP extension
<happytux>
hurra
<GuestUser123>
hahaha
<GuestUser123>
php just rules
<wmoxam>
GuestUser123: many would say that php is both too ugly and slow
<benzrf>
GuestUser123: i'm sorry, what?
<benzrf>
what the fuck
<wmoxam>
pretty sure you could find ppl taht would say the same about Ruby
<GuestUser123>
not if u actualy seen the benches
<benzrf>
php is the worst language in existance
mark_locklear has quit [Quit: Leaving]
jerius has quit []
MrDoctor has quit [Ping timeout: 240 seconds]
<benzrf>
it is objectively awful
nanoyak has quit [Quit: Computer has gone to sleep.]
<wmoxam>
or just about any other language
<benzrf>
it has no redeeming features
<benzrf>
it is the devil's language
<happytux>
lol
shenk has joined #ruby
shenk has quit [Max SendQ exceeded]
<happytux>
I thought BSD is devil? At least they use one as the mascot?
<benzrf>
happytux: no, that's a daemon
Kricir has quit [Ping timeout: 276 seconds]
<GuestUser123>
php is a bit lax in object
<benzrf>
^not my pun, theirs
<benzrf>
GuestUser123: php blooooooooows
<benzrf>
name one good part
blackmesa has joined #ruby
<GuestUser123>
everything
<benzrf>
also
<wmoxam>
lolol
<benzrf>
java slower than php
<GuestUser123>
its fast
<benzrf>
you're full of shit
<benzrf>
php is slow as fuck
<GuestUser123>
its slim
<benzrf>
well
SegFaultAX has quit [Excess Flood]
<wmoxam>
GuestUser123: well trolled sir
<benzrf>
at least, slower than java
<GuestUser123>
show me the benches
<benzrf>
oh god DAMMIT
bradhe has quit [Ping timeout: 252 seconds]
<benzrf>
i shouldve known
* happytux
bets that someone is kicked soon
* benzrf
is shame
<happytux>
It escalates
<benzrf>
>tfw didnt realize a troll
<GuestUser123>
show me the benchmarks
<wmoxam>
hahaha
<GuestUser123>
like string manipulation
workmad3 has joined #ruby
<GuestUser123>
hwo bout u get a timestamp and time it?
<happytux>
But as Hardware becomes far cheaper than Software, performance doesn't really count? But scaling instead?
<GuestUser123>
eh?
<railzForDaiz>
What are some good projects to work on as a ruby beginner ..
<RubyPanther>
happytux: nodejs has significant value for building websites, especially where the goal is a "website" and where the web is not simply a delivery mechanism for an app. The reason it has so much value is that JS is generally required for websites already, so there is much less overall complexity when that language is used for the backend too.
<happytux>
right
<RubyPanther>
for those reasons I recommend it ahead of rails if a company is not already using Ruby
<happytux>
RubyPanther: There were situations where I also wished to use the same code on server and client.
<RubyPanther>
Anyways, the "interesting" apps are the ones where the web _is_ just a delivery mechanism :)
<happytux>
RubyPanther: 'Where the web is not simply a delivery mechanism for an app.' You mean streaming and other more complex stuff?
Nahra has quit [Remote host closed the connection]
<RubyPanther>
happytux: I mean anything where you might also want a "native app"
paulfm has quit []
<RubyPanther>
For example I write point of sale tools that have a Gtk frontend for the POS station, and also a rails frontend for the intranet
<happytux>
RubyPanther: ah you mean an app which can easily modified to run on client and server?
Nahra has joined #ruby
<RubyPanther>
Well, as an example, anything where you make heavy use of an ORM, that code ("models" if using AR) can be reused easily and the delivery mechanism doesn't matter
<happytux>
RubyPanther: hm, a Service Tier?
<RubyPanther>
no need for it be a service architecture
<happytux>
RubyPanther: ah
<RubyPanther>
a service architecture might reuse the web delivery mechanism under the hood anways (REST)
<happytux>
right
matled has joined #ruby
<RubyPanther>
if you're doing everything-as-a-service, then you can just use NodeJS everywhere, and a "native" client is just a thin layer
<RubyPanther>
Compared to keeping the business logic in the ORM, that is whole extra layer that you only benefit from in certain situations, like in a large organization with distributed databases
Zenigor has quit [Remote host closed the connection]
davedev24_ has quit []
<RubyPanther>
For the simple case, the service layer would just be wrapping the logic in the ORM, and wouldn't really be adding anything
akonny has quit [Quit: akonny]
doodleha_ has joined #ruby
x1337807x has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
geggam has quit [Quit: commuteth]
jackneill has quit [Ping timeout: 245 seconds]
lemur has quit [Remote host closed the connection]
robertodecurnex has quit [Remote host closed the connection]
<ponga>
d
ldnunes has quit [Quit: Leaving]
<shevy>
yeah ponga
<ponga>
:d
<shevy>
oh ok now we are using symbols
<shevy>
>> :d
<shevy>
man
<shevy>
why is the bot not working
<shevy>
who broke it
<shevy>
was it you Hanmac?
<jhass>
it just ignores you again
thisirs has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 240 seconds]
Azulinho has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
jheg has joined #ruby
g0bl1n has joined #ruby
SBoolean has quit [Remote host closed the connection]
spicerack has joined #ruby
maximski has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
nectarys has quit [Remote host closed the connection]
ldnunes has joined #ruby
maximski has joined #ruby
Kricir has joined #ruby
maximski has quit [Max SendQ exceeded]
r_rios has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
shvelo has joined #ruby
creativeembassy has quit [Quit: FO SHO]
sambao21 has joined #ruby
baroquebobcat has joined #ruby
<GuestUser123>
stop trolling
<GuestUser123>
damn kids
havenwood has quit [Remote host closed the connection]
treehug88 has quit []
<Robbo`>
anyoe here use padrino and have locales working in it?
g0bl1n has quit [Quit: Ex-Chat]
andrewjanssen has joined #ruby
maximski has joined #ruby
freezey has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
freezey has quit [Read error: Connection reset by peer]
<combusean>
Stack Overflow is currently offline for maintenance
* combusean
is worthless now
ldnunes has quit [Quit: Leaving]
freezey has joined #ruby
benzrf is now known as half-of-benzrfs-
sambao21 has quit [Client Quit]
* half-of-benzrfs-
brain falls out
djbkd has quit [Remote host closed the connection]
half-of-benzrfs- is now known as benzrf
<Robbo`>
combusean: we all are
havenwood has joined #ruby
dc_ has quit [Remote host closed the connection]
* combusean
collects benzrf's brain and sets up a complicated research/resale enterprise around it.
silkfox has quit [Read error: Connection reset by peer]
silkfox has joined #ruby
Squarepy has quit [Quit: Leaving]
jfarinas has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
cocotton_ has joined #ruby
<railzForDaiz>
push hash with data inside a module ... is it possible to use it as a data store for config variables. and call them into another .rb file ..?? tried it out and failed .. or its not supposed to be done .. what is the main point of using modules (only for functions/methods)
<railzForDaiz>
??
tectonic has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
<apeiros>
railzForDaiz: how exactly did you "push hash with data inside a module"?
cocotton has quit [Ping timeout: 240 seconds]
<RubyPanther>
GuestUser123: If "obeyed a warrant legally issued by a court" means "selling out," my advice is to submerse all electronics in saltwater to render them safe and ensure they refuse any compliance with The Man
<railzForDaiz>
apeiros: sorry i mean i just declared some key => value pairs inside
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<railzForDaiz>
apeiros: now wanted to call them
cocotton_ has quit [Ping timeout: 265 seconds]
<apeiros>
railzForDaiz: you need to assign data to something. in this case probably a constant.
<apeiros>
else the data is not kept. and you have no way of accessing it.
<RubyPanther>
railzForDaiz: Yes, modules are for code not data, and the simplest way to store data in a file is with YAML which is hash-like
<RubyPanther>
You "can" store you data in a module, if you do it right, but that is Considered Disgusting
<railzForDaiz>
RubyPanther: thanks for the clarification. was stuck the whole day thinking WTF ,, i recently leant you can just use YAML .. uff..
<railzForDaiz>
RubyPanther: didn't know how to call the hash variables it after requiring the file and including the module
<RubyPanther>
I just read manuals all day, it reduces the need for that "thinking" nonsense
<railzForDaiz>
hehe ^_^
<railzForDaiz>
will make it a habit now :)
<railzForDaiz>
thanks man
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
railzForDaiz: gist.github.com - paste the code you used
chipotle_ has quit [Quit: cya]
GuestIphone has joined #ruby
dpp has joined #ruby
<GuestIphone>
aaaahahahahaba fooools
<shevy>
GuestIphone poser
GuestIphone has quit [Remote host closed the connection]
andrewjanssen has quit [Quit: Leaving...]
nanoyak has joined #ruby
GuestIphone has joined #ruby
sambao21 has joined #ruby
<GuestIphone>
im the kinggggg
<GuestIphone>
yaaaahahhhahahaha
<GuestIphone>
sicknesssss
yxhuvud has quit [Read error: Connection reset by peer]
<ponga>
are you alright lol
silkfox has quit [Ping timeout: 255 seconds]
yxhuvud has joined #ruby
<GuestIphone>
my app is on iphone
<GuestIphone>
die biches
<apeiros>
GuestIphone: stop it.
<GuestIphone>
best part it works on android toooo hahahahanahahaha
<csmrfx>
aah, the summer holidays for kids have started
nobitanobi has joined #ruby
<benzrf>
*was shown
<csmrfx>
trolls on every channel
Robbo` has joined #ruby
<GuestIphone>
benz ur stupid llol
andrewjanssen has joined #ruby
<GuestIphone>
controller is king
GuestIphone was kicked from #ruby by apeiros [GuestIphone]
<ponga>
to logically achieve 'trolls on every channel' status one has to be a troll him/herself!
<sumyunseal>
watch it ponga im still here
<sumyunseal>
u lil kook boy
sumyunseal was kicked from #ruby by apeiros [I can help that]
<ponga>
sorry i don't remember you sumyunseal
yfeldblu_ has joined #ruby
<ponga>
did i meet you in ##cooking
<apeiros>
he's no longer here
<shevy>
lol
<ponga>
what the lol
<ponga>
what was he on about?
yfeldblum has quit [Ping timeout: 240 seconds]
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
moritzs has joined #ruby
wallerdev has quit [Ping timeout: 276 seconds]
<apeiros>
GuestUser123: since I know you're the same as GuestIphone & sumyunseal - if you want to goof off, I suggest you go to ##ruby instead. they're the *fun* channel.
* combusean
gives apeiros a cookie.
dawkirst has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
<apeiros>
thanks
<apeiros>
*nomnom*
anaeem1 has joined #ruby
Sou|cutter has quit [Quit: WeeChat 0.4.3]
<combusean>
good boy!
<combusean>
##ruby is empty =(
<combusean>
apparently this language is full of work and slavery :(
saarinen has joined #ruby
<apeiros>
how many nicks do you even have?
<Sigma00>
we're very serious about the master-slave relationship
<banister>
apeiros do u know how to calculate the derivative of a regular expression
* combusean
metaprograms a deploying replacement for capistrano
<csmrfx>
that takes bit of thinking
brandonblack has joined #ruby
wallerdev has joined #ruby
chipotle has joined #ruby
<apeiros>
banister: nope, haven't come across this before
anaeem___ has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
<p8952>
Is there a way to do something after a class has initialized? For example if I want to call Foo.new() from the initialized method of Bar, and Foo makes a call to the object Bar I get a NilClass error
<apeiros>
1964…
<DouweM>
p8952: code pls
<combusean>
math outside of geometry has been 99% useless in my 15 years as a software engineer/web programmer.
<csmrfx>
p8952: you mean "after my constructor has run"
<banister>
combusean "web programming" doesn't really need much math, but interesting emerging fields like machine learning and data science do
<csmrfx>
combusean: but how many times you have actually coded some elementary calculus solution?
<csmrfx>
hnngh, I mean...
<RubyPanther>
they passed a law in `64 to give to those who don't have a little more, but it only goes so far because the law don't change another's mind
mikepack_ has joined #ruby
<p8952>
csmrfx, yes
<RubyPanther>
But this troll goes way back to the civil war, I'd sign up right now if we had to win that one again
<ponga>
what's an array alternative of .select method
<p8952>
DouweM, more of a general question than a specific case
Robbo` has quit [Ping timeout: 276 seconds]
<csmrfx>
p8952: isn't that actually something that belongs in the constructor?
<shevy>
ponga .find .grep ? though I think these are all on Enumerable
<apeiros>
ponga: how do you mean? select is available on Array
<ponga>
thanks
<ponga>
is it?
<ponga>
thanks
cpruitt has joined #ruby
<DouweM>
p8952: I don't see why you couldn't do this from the constructor. if it's obvious to you that you can't, please post an example
kilk_ has joined #ruby
Kricir has quit [Remote host closed the connection]
dapz has joined #ruby
SCommette_ has joined #ruby
amargherio has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
Ankhers has quit [Ping timeout: 272 seconds]
<RubyPanther>
p8952: There are not hooks for "after a class has initialized," no, because you can always re-open a class and there is never any way to know if it is "after" yet
fmope has quit []
<p8952>
DouweM, Example: http://pastie.org/9262238 Foo needs to call Bar, and Bar creates Foo. However Bar does not exist until the constructor has completed
<RubyPanther>
p8952: If you meant after an instance is initialized, search on "ruby alias chain"
SCommette has quit [Ping timeout: 240 seconds]
deric_skibotn has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 265 seconds]
SCommette_ is now known as SCommette
<DouweM>
p8952: circular dependency...
<DouweM>
either add a manual initialization step to either of the methods, or think of a more sensible design without circular dependency
<ponga>
any good ruby material to read and practice after i done basic stuffs of ruby?
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx>
ponga: have you read the Flanagan and Matsumoto?
m8 has quit [Quit: Sto andando via]
<csmrfx>
hm, I wonder if it has a new edition out, and if it is actually still current
<ponga>
csmrfx no i will check that out thanks, there are apparently too many to choose from
<csmrfx>
but it was great when I last read it
kyb3r_ has joined #ruby
sailias has quit [Quit: Leaving.]
mikesplain has joined #ruby
<RubyPanther>
It isn't really circular, just backwards
<ponga>
i need to find e-book edition of it
Shidash has quit [Ping timeout: 240 seconds]
<ponga>
i don't live in western hemisphere so its hard to get it :(
andrewjanssen has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
benzrf is now known as benzrf|offline
<csmrfx>
ponga: you can read the first 10 pages on ggl books
spastorino has quit [Quit: Connection closed for inactivity]
andrewjanssen has joined #ruby
sdwrage has joined #ruby
daniel_hinojosa has joined #ruby
jobewan has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
vifino has quit [Quit: Ze Cat now leaves...]
OffTheRails has joined #ruby
learner has joined #ruby
gr33d_ has quit [Ping timeout: 265 seconds]
gr33d has joined #ruby
rayners has quit [Remote host closed the connection]
danshultz has joined #ruby
kaleido has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
yfeldblum has quit [Ping timeout: 240 seconds]
<combusean>
puts "empty" if (!foo.nil? && foo.empty?) || foo.nil?
<combusean>
?
anaeem1 has quit [Remote host closed the connection]
* combusean
feels that expression after if should be wrapped in additional parentheses
<DouweM>
if you know those three classes are the options, foo.nil? || foo.empty? would work
alexju has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
<combusean>
but foo.empty? || foo.nil? wouldn't work because if foo is nil, it doesn't have the empty method
<DouweM>
right. so the other way around
gr33d has left #ruby [#ruby]
* combusean
finds that fragile, but it works
danshultz has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM>
if you have activesupport loaded in you can use x.blank?
<DouweM>
and yours is still fragile because you're assuming everything non-nil implements empty?
stantona has joined #ruby
<combusean>
eh
<combusean>
heh
Nahra has joined #ruby
<combusean>
i'm expecting the argument to either be an array, nil, or a string
<combusean>
wouldn't be called otherwise
<DouweM>
in that case .nil? || .empty is fine, but you're still making assumptions. nothing inherently wrong with that off course
Shidash has joined #ruby
<shevy>
I now assume that DouweM assumes that you make assumptions combusean
<combusean>
heheh
<DouweM>
you can't really *not* make assumptions in a weakly typed language
<shevy>
that's an assumption!
<combusean>
LOL
cpruitt has quit [Quit: cpruitt]
<DouweM>
:P
<shevy>
at least I assume it is one
<shevy>
it could be a factual statement after all
<DouweM>
forgot to take your meds again shevs?
<DouweM>
:P
<shevy>
or DouweM just assumes it to be factual
<shevy>
no but I am kinda in a limbo right now
TorpedoSkyline has joined #ruby
* combusean
finds ruby to be strongly typed until all the php evaporates from his brain...
<shevy>
I have to work through two huge pdfs, read a book, quiz me on exam questions, but I also wanna do rails, and continue with some projects, and now I can't decide what to do
<shevy>
so I just bother people on IRC
<shevy>
:)
<DouweM>
combusean: hehe
<DouweM>
shevy: haha
blackmesa has quit [Ping timeout: 255 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
combusean oh oh oh you come from php?
<DouweM>
hihi
katmandoo has joined #ruby
<combusean>
shevy, yeah
linuxnewb2 has joined #ruby
<combusean>
bad php
<shevy>
combusean ok; the trick is this
<DouweM>
combusean: #rubyonrails is like php refugee camp
<shevy>
ruby is beautiful
<combusean>
for like ... 12 years
<DouweM>
eh, #ruby is
<shevy>
and if you write code that is not beautiful in ruby, then it is very often wrong
<shevy>
wrong is a bad term
<shevy>
let's say "not an ideal solution"
<shevy>
ugly code can work after all as well
<DouweM>
shevy is correct. my ruby could win a pageant
adantj has quit [Ping timeout: 255 seconds]
<shevy>
puts "what is this here" if (!foo.nil? && foo.empty?) || foo.nil?
noob101 has joined #ruby
<noob101>
Hi
<DouweM>
hi noob
<shevy>
is this beautiful
<noob101>
I have a question guys.
<shevy>
or is it not
<noob101>
Why can't I send information to #html.
<DouweM>
that's the question
<shevy>
noob101, what is a global variable
<dpp>
functional is beautiful ;)
jottr_ has joined #ruby
<noob101>
It says == Cannot send to #html
<shevy>
noob101 perhaps you did not register; did you try ##html as well?
<DouweM>
dpp: functional *can be* elegant
<shevy>
yeah probably a voiced channel noob101
hermanmunster has quit [Remote host closed the connection]
<DouweM>
dpp: but I've seen plenty of Haskell that made my head hurt
<shevy>
HASKELL
<noob101>
shevy, A global variable is a variable that can be accessed anywhere in your program and you should avoid using them since they can mess up the program.
x1337807x has joined #ruby
<shevy>
a language from elites
<shevy>
for elites
<shevy>
right benzrf|offline
<DouweM>
why would a programming help chan be voiced :/
<noob101>
Register.
<noob101>
How can I register
hermanmunster has joined #ruby
<Sigma00>
talk to nickserv
<shevy>
noob101 ok but - is there a way to make a global variable limited in scope?
<Sigma00>
and read the freenode help files
<noob101>
that's a person nick serv?
luksaur has quit [Quit: go]
Retroid_ has quit [Ping timeout: 240 seconds]
<shevy>
noob101 you can use / commands
<noob101>
shevy, idk if there's a wat to make a global variable in limited scope
<shevy>
"The main purpose of this FQA is to convince people of the following:"
<shevy>
"There is no reason to use C++ for new projects."
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nighter_ has quit [Ping timeout: 240 seconds]
<shevy>
hahaha I <3 it
moritzs has quit [Ping timeout: 245 seconds]
<DouweM>
lol, gotta read those
sputnik13 has joined #ruby
adnauseam has quit [Ping timeout: 264 seconds]
lw has quit [Ping timeout: 252 seconds]
Biohazard has quit [Ping timeout: 245 seconds]
hermanmunster has quit [Ping timeout: 260 seconds]
<shevy>
oh well
andrewjanssen has quit [Quit: Leaving...]
<shevy>
I guess it is outdated in 2014
<shevy>
but it was fun in 2009!
dangerou_ has quit [Ping timeout: 255 seconds]
sputnik13 has quit [Client Quit]
arrubin has quit []
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noob101>
hey guys I have a problem
<noob101>
I tried to register but I already have account but
<noob101>
I forgot my pass :(
rm__ has joined #ruby
<noob101>
What do I do?
<katlogic>
don't bother?
lw has joined #ruby
<noob101>
but I would like to use the account I've created before.
troyready has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
<noob101>
Where can I talk to a staff member please.
danman has quit [Quit: danman]
nfk has quit [Quit: yawn]
<shevy>
noob101 haha same problem I have
<shevy>
but I was too lazy to ask a staff member
<shevy>
you can try on #freenode noob101 a few staff members are there usually
<shevy>
noob101 and remember - the more ruby code you write, the better you will become, and the higher quality your code will have as well in the long run
rm_ has quit [Ping timeout: 265 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noob101>
shevy: thank you, I went to #freenode and +yano is helping me now.
Xeago has joined #ruby
yubrew has joined #ruby
noob101 has quit [Quit: Page closed]
noob101 has joined #ruby
Retroid has joined #ruby
lw has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
dik_dak has quit [Remote host closed the connection]
Neomex has joined #ruby
i_s has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
<noob101>
Yey this is my user account.
<noob101>
I can now talk in #html now but no one is answering..
<noob101>
Oh well, I got my account still.
yubrew has quit [Ping timeout: 255 seconds]
noob101 is now known as noob101
mjsmith2 has joined #ruby
predator117 has joined #ruby
snath has quit [Ping timeout: 252 seconds]
freezey has quit [Ping timeout: 255 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
adnauseam has joined #ruby
n0n3 has joined #ruby
n0n3 has quit [Remote host closed the connection]
nighter has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
danshultz has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
ranmocy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<ranmocy>
Hi, how can I return early in a begin-end block? Like `a=begin; return 1 if true; 2; end`
<ranmocy>
which will let a==1?
bradhe has joined #ruby
<banister>
ranmocy that doesnt really make sense
dik_dak has joined #ruby
<superscott[8]>
ranmocy: if that's your actual example, you wouldnt need a begin/end? a = if true ? 1 : 2
hpoydar has quit [Remote host closed the connection]
<superscott[8]>
er a = if x == true ? 1 : 2
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has joined #ruby
<ranmocy>
superscott[8]: the real code at true and 2 are pretty long
kaspergrubbe has quit [Remote host closed the connection]
<ranmocy>
superscott[8]: and I wish I can have several return statement before I run code at 2
<superscott[8]>
ranmocy: probably a good idea to break it up then, if it's that complicated to where you have multiple returns in a single begin/end. imo
bradhe has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<ranmocy>
superscott[8]: you mean break into methods?
ponga has quit []
lyuzashi has joined #ruby
<banister>
ranmocy what are you using begin/end for? not exception handling?
<superscott[8]>
ranmocy: probably, dont know for sure without seeing the actual code.
maletor has joined #ruby
nvmme has quit [Quit: nvmme]
maletor has quit [Client Quit]
jottr_ has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nahra has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
jottr has quit [Ping timeout: 252 seconds]
hermanmunster has joined #ruby
Nahra has joined #ruby
maximski has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
kevind has quit [Quit: kevind]
charliesome has quit [Client Quit]
NukePuppy has joined #ruby
danman has joined #ruby
<superscott[8]>
ranmocy: so you're basically relying on @cache to be true or false?
BigBrothersCousi has joined #ruby
Port3M5[Work] has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
<ranmocy>
superscott[8]: yes, and avoid as much useless calculation as possible
BigBrothersCousi has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
infinitone has quit [Ping timeout: 240 seconds]
brandonblack has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
danman has quit [Client Quit]
jottr has joined #ruby
DEA7TH has quit [Ping timeout: 265 seconds]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
<happytux>
Concerning rake: What should CLOBBER clean and what CLEAN? Right, using CLOBBER should basically reset the working tree, but there is also CLEAN.
St_Marx has quit [Quit: Ex-Chat]
<superscott[8]>
ranmocy: i have a shitty example coming up
Takle has quit [Remote host closed the connection]
<lenswipe>
im deploying a nodejs app to heroku with a Gemfile and heroku is saying that it needs a Gemfile.lock
<lenswipe>
what should such a file contain?
nanoyak has quit [Ping timeout: 240 seconds]
<superscott[8]>
ranmocy: it's a quick example, but you kinda get the idea, just break it up. you shouldnt need to do a begin/end for that. begin/end is really only good for exception handling, or ensures.
NukePuppy has quit [Ping timeout: 252 seconds]
<lenswipe>
anyone?
tyfighter has quit [Quit: tyfighter]
tyfighter has joined #ruby
<lagweezle>
I'm utterly confused as to how a node.js app has anything to do with a Gemfile.
<superscott[8]>
^ likewise.
Bira has joined #ruby
<lenswipe>
lagweezle, node.js app that uses SASS
<lenswipe>
deploy to heroku
<lagweezle>
However, the lack of Gemfile.lock can be remedied by running 'bundle' from the directory the Gemfile file is in, generally.
<lenswipe>
and suddenly you need a Gemfile for some fucked up reason T_T
<lenswipe>
lagweezle, thanks
<lagweezle>
o7
<lagweezle>
Now I go to chase down a train! WHEE!
<lenswipe>
bash: bundle: command not found
<shevy>
hahaha
<lenswipe>
i feel like im taking crazy pills
dc has joined #ruby
<lagweezle>
gem install bundle(r)
<superscott[8]>
you are.
<lenswipe>
thank you
<lenswipe>
superscott[8], no fucking shit.
<lenswipe>
ERROR: While executing gem ... (Gem::FilePermissionError)
<lenswipe>
You don't have write permissions into the /var/lib/gems/1.9.1 directory
<lenswipe>
AAAAAAGHHHH!
<shevy>
understandable
<shevy>
you are trying to use bundler after all
<lenswipe>
shevy, not by choice...I assure you.
<shevy>
on a debian system
<shevy>
you always have the choice
<shevy>
my choice was to omit bundler
<lenswipe>
shevy, well i need this node.js app to use sass - do you have any better ideas?
mikecmpbll has quit [Quit: i've nodded off.]
<shevy>
lenswipe you can install gems into home dir
<shevy>
OR
<shevy>
gem install --user-install bundler
<shevy>
become superuser
<shevy>
I mean, a permission error huh - are you such a feeble user who has restricted access
<lenswipe>
yeah, neither of those things will help with this
<shevy>
yeah, it's very painful
<lenswipe>
in any case, hopefully this will help
lethe has joined #ruby
hpoydar has joined #ruby
<lenswipe>
I hope heroku likes this push
<lenswipe>
it's made of my tears
<shevy>
only tears?
<shevy>
or also blood
timonv has joined #ruby
<lenswipe>
shevy, yes.
<shevy>
the blood from virgins is usually strongest
<shevy>
when mixing potions or fighting dragons and such
<shevy>
you can also download gems manually
<happytux>
anyone? :)
<happytux>
Concerning rake: What should CLOBBER clean and what CLEAN? Right, using CLOBBER should basically reset the working tree, but there is also CLEAN.
kavinder has quit [Remote host closed the connection]
<shevy>
still rake
<shevy>
poor man
<lenswipe>
holy shit
<lenswipe>
i think thats working
<lenswipe>
!!
<lenswipe>
it works!
workmad3 has quit [Ping timeout: 276 seconds]
<shevy>
\o/
<superscott[8]>
happytux: type rake -T in your project dir
Hobogrammer has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]