<evotopid>
parsnip: But I think then RVM doesn't work as intended anymore...
nankyokusei has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<parsnip>
funny that they change cd
enyo_ has quit [Ping timeout: 255 seconds]
dhollinger has quit [Ping timeout: 240 seconds]
<parsnip>
i guess first i was curious why they changed cd, i'm not completely against it, but now i have a sense of what did it, i can try to handle its complaint that it gives on entering a directory with a Gemfile
<parsnip>
*what was changing cd
<evotopid>
They did it because in every directory there might be an override file saying which interpreter to use, so when you cd into an old app which requires ruby 1.9 then it will just "link" the ruby command to that version.
nankyokusei has quit [Ping timeout: 255 seconds]
jhack has quit [Quit: jhack]
dhollinger has joined #ruby
<evotopid>
I think rbenv solves this by figuring out which Ruby to use each time you invoke "ruby".
<elomatreb>
Is the functionality even that useful to you? How often do you actually have to change like that?
<zenspider>
parsnip: `source` just means load into current env, not into subshell.
aspiers has joined #ruby
<zenspider>
but yes, that's what lets it wrap cd and the like.
<evotopid>
elomatreb: I think it's mostly useful when you switch the interpreter, like you have a project using jruby and one using mri/ruby.
<zenspider>
you only need to decide that when you run ruby... no need to wrap cd
JackMc has joined #ruby
<evotopid>
zenspider: Yeah it's bad design, you shouldn't hack into the shell like that since if everyone did that it would be a huge mess. But I think the rationale behind that decision in RVM also exists.
<zenspider>
it's almost like everyone hacking `require`. :P
milardovich has quit [Remote host closed the connection]
e1z0 has joined #ruby
e1z0 has quit [Client Quit]
<evotopid>
:(((
dcunit3d has joined #ruby
rikkipitt has joined #ruby
gloscombe has quit [Quit: gloscombe]
ruler has joined #ruby
masondesu has joined #ruby
rikkipitt has quit [Remote host closed the connection]
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
<Radar>
thadtheman: po? partially ordered?
rakka has joined #ruby
<rakka>
Using the Rack::Session::Cookie middleware with a expire_after option, I have found that the session (and its expiry date) gets renewed for every HTTP request
<rakka>
Could anybody advise on how that might be avoided? I am just use-ing it in a simple config.ru.
<Radar>
rakka: code please.
enterprisey has joined #ruby
nankyokusei has joined #ruby
eelster has quit [Quit: WeeChat 1.6]
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
roamingdog has joined #ruby
brent__ has joined #ruby
doubleemms has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
pilne has quit [Quit: Quitting!]
<thadtheman>
Radar: Yes. Are there libraries making it easier to create, searchm save and read from a file?
<ruby[bot]>
rakka: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Radar>
Thanks rakka
<rakka>
It has given me an idea to test though..
dcunit3d has joined #ruby
<rakka>
Thanks for making me mini-test-case it ;)
<Radar>
These things are usually better debugged if we can share the code that is causing the issue.
<Radar>
Gives us a common thing to talk about.
<thadtheman>
RADAR PO SETS.
<Radar>
thadtheman: Your caps lock appears to be stuck on.
<thadtheman>
Oops.
<Radar>
rakka: How do I run this thing? "rackup rakka.rb" doesn't work
<Radar>
./Users/ryanbigg/code/playground/rakka.rb:3:in `<top (required)>': undefined method `use' for main:Object (NoMethodError)
enterprisey has quit [Ping timeout: 255 seconds]
<Radar>
thadtheman: I can't find anything about po sets in Ruby. I don't think I've ever used them and if I have, I didn'
<Radar>
didn't refer to them as po sets.
<Radar>
thadtheman: Do you have an equivalent syntax to show us in another language perhaps?
<rakka>
Radar: prerequisite knowledge for this problem is Rack. The way to run a rack config.ru is via rackup, when naming the file config.ru in the PWD
<thadtheman>
Radar, not really. I have to model a complex set of dependencies.
brent__ has quit [Remote host closed the connection]
iffyuva has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
rakka_ has joined #ruby
<rakka_>
Radar: hey - wifi d/c'd there
rakka has quit [Ping timeout: 260 seconds]
<Radar>
rakka_: all good. I was distracted by pesky work so I didn't get much investigating done.
<Radar>
rakka_: Where are you seeing the expiry date refresh? Is that in the browser?
<rakka_>
Radar: examining the HTTP headers in the browser, yes
<Radar>
rakka_: Yup, I found that too. Perhaps that's the intentional behaviour of Rack::Session::Cookie?
<rakka_>
Radar: maybe. I just looked through the source code for it
<rakka_>
Perhaps that's just what it is.
<rakka_>
Just to check if it's just me...
<rakka_>
What would the typical expectation of session expiration be? From the point the session was initially created, or the last time the session was used?
<rakka_>
When I word it out explicitly like that, it seems very open to opinion.
<Radar>
rakka_: Looks like that it would be renewed on every single request.
milardovich has joined #ruby
charliesome has joined #ruby
Kaze_FX has quit [Ping timeout: 260 seconds]
<rakka_>
Radar: on balance actually, when you consider most apps out there like Facebook/Gmail - they follow the same principle: expiring when you haven't used it for a while, rather than from when you initial logged in
<rakka_>
Anyhow - thanks for that, edifying :-)
<Radar>
np :)
ReK2 has quit [Quit: Konversation terminated!]
doubleemms has quit []
milardovich has quit [Ping timeout: 260 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testuser1 has quit [Ping timeout: 255 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
LastWhisper____ has joined #ruby
rakka_ has quit [Quit: Page closed]
ianmethyst has joined #ruby
JoshS has quit [Read error: Connection reset by peer]
jshjsh has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
TreyG has quit [Ping timeout: 260 seconds]
olivierjanss has quit [Ping timeout: 240 seconds]
olivierjanss has joined #ruby
gix has quit [Ping timeout: 258 seconds]
TreyG has joined #ruby
nikivi has joined #ruby
anisha has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
the-eat-scout has joined #ruby
gix has joined #ruby
aremaref has joined #ruby
Lain_ has quit [Remote host closed the connection]
jshjsh has quit [Read error: Connection reset by peer]
JoshS has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
Guest15799 is now known as ged
ged is now known as Guest31353
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has quit [Read error: Connection reset by peer]
JoshS has joined #ruby
eggshke has joined #ruby
larissa has quit [Ping timeout: 240 seconds]
jeyraof has joined #ruby
larissa has joined #ruby
saneax-_-|AFK is now known as saneax
anisha has joined #ruby
unshadow has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
dcunit3d has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
Devalo has joined #ruby
charliesome has joined #ruby
Channel6 has quit [Quit: Leaving]
chrisseaton has quit [Read error: Connection reset by peer]
renchan has quit [Remote host closed the connection]
emilkarl has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
milardovich has joined #ruby
hahuang61 has joined #ruby
pabloh_ has quit [Ping timeout: 240 seconds]
manjaro-kde5__ has joined #ruby
wugy has joined #ruby
roamingdog has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
SesMan has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
doublemalt_ has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 256 seconds]
wugy has quit [Excess Flood]
milardovich has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 258 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
roamingdog has quit [Ping timeout: 260 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
dcunit3d has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
manjaro-kde5__ has quit [Ping timeout: 258 seconds]
enyo has joined #ruby
xen0fon has joined #ruby
SpiffTR has quit [Quit: Leaving.]
csk157 has joined #ruby
nibbo has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
ruby-lang818 has quit [Ping timeout: 260 seconds]
csk157 has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
<zenspider>
I just LOVE open ended questions.
<zenspider>
any advice? throw out your grocery store bought pre-ground black pepper and go buy proper whole peppercorn and grind it as needed. it'll change your life
vondruch has joined #ruby
aidalgol has joined #ruby
username has joined #ruby
TheBrayn has quit [Quit: WeeChat 1.5]
TheBrayn has joined #ruby
aganov has joined #ruby
jameser has joined #ruby
aufi has joined #ruby
username has quit [Ping timeout: 256 seconds]
SpiffTR has joined #ruby
nofxxx has quit [Ping timeout: 248 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
neuraload has joined #ruby
Guest13885 is now known as ged
ged is now known as Guest35170
mark_66 has joined #ruby
last_staff1 has joined #ruby
jameser has joined #ruby
last_staff has quit [Ping timeout: 256 seconds]
last_staff1 is now known as last_staff
czerasz has joined #ruby
SpiffTR has quit [Quit: Leaving.]
tvw has joined #ruby
ta has quit [Remote host closed the connection]
djbkd_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
claudiuinberlin has joined #ruby
SteenJobs has quit [Client Quit]
milardovich has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
Mon_Ouie has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Yxhuvud has quit [Read error: Connection reset by peer]
Kug3lis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
stripper: you're aware that ENV can only be changed "downwards", yes?
<apeiros>
i.e. you can't chage the env of your parent process, only of child processes your process invokes
<stripper>
apeiros, no and i have no idea what u mean
byte512 has quit [Ping timeout: 258 seconds]
<apeiros>
a process you call in bash can never change the env of your current bash session
<stripper>
am just trying to unlock my FED ssd using my known password
<stripper>
apeiros, how should i add my password to that ruby process
<stripper>
based on that whole algo it looks like the converted password is what is fed to the ssd and not the cleartext
<stripper>
would appreciate any assistance
<apeiros>
the code you provided does not set the env variable from within ruby. it uses the stdout of the ruby program to set P
<apeiros>
(and that works)
<stripper>
apeiros, and I did do the first instruction "sudo hdparm --Istdout /dev/sda > sda.ata_identify" but the next steo is where i get lost
h1fuelcell has joined #ruby
<stripper>
apeiros, do u mind spending a likkle bit out of your valuable time to walk me thru. Would really appreciate it
<apeiros>
I currently can't. maybe later this day if nobody else has helped you until then.
<stripper>
thanks, neverthelesss
teclator has joined #ruby
flyingX has joined #ruby
silverdust has joined #ruby
silverdust is now known as Guest12052
flying has quit [Ping timeout: 240 seconds]
markholmes has quit [Ping timeout: 256 seconds]
Yacker has joined #ruby
siddart has joined #ruby
rykou has joined #ruby
eam has quit [Ping timeout: 240 seconds]
neuraload has quit [Ping timeout: 240 seconds]
neuraload has joined #ruby
Kug3lis has quit [Read error: Network is unreachable]
charliesome has joined #ruby
eam has joined #ruby
Kug3lis has joined #ruby
synthroid has joined #ruby
toretore has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chussenot has quit [Quit: chussenot]
nettoweb has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
iogf has joined #ruby
ruby-lang217 has joined #ruby
<ruby-lang217>
seriously anyone who have learn ruby finish, what exactly you do next?
chussenot has joined #ruby
<ruby-lang217>
build projects or start learning rails?
<tobiasvl>
ruby-lang217: what do you mean? when?
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aurelien>
what is the difference between ruby and ruby-rails?
<tobiasvl>
ruby is a programming language, rails is a web framework
<apeiros>
aurelien: "ruby on rails" is a webframework written in ruby. ruby is a language.
<aurelien>
thanks for the light
<ruby-lang217>
ya i know, im still a student, want to start learning rails after ruby
bigkevmcd has joined #ruby
jcao219 has quit [Ping timeout: 258 seconds]
<rykou>
goddamn im stuck
mariusm has joined #ruby
stripper has quit [Remote host closed the connection]
lenwood has joined #ruby
eam has quit [Ping timeout: 240 seconds]
<evotopid>
rykou: What are you stuck with?
rwb has joined #ruby
Derperperd has joined #ruby
<rykou>
I am trying to make a class makes more c# styled enums for me
eam has joined #ruby
<rykou>
but I am getting stuck with the scope of variables that I use within it
mariusm has quit []
<sarbazx>
Why?
<ruby-lang217>
do you start building projects at github?
<mnemon>
ruby-lang217: why not learn both if you want to go for web devel? Write rails apps and you'll be writing a lot of ruby. :P
<ruby-lang217>
i have learn ruby finish, would it be wise that after completing rails, start to build rails app instead?
<tobiasvl>
ruby-lang217: what do you mean you have "learn ruby finish"?
<ruby-lang217>
@mnemon?
<mnemon>
not really following you there lang
<rykou>
because I want to define a instance method within a class method
<ruby-lang217>
meaning i can understand ruby :)
<tobiasvl>
ruby-lang217: then use ruby to build stuff. replace shell scripting with ruby scripting. make stuff you need. do you need to build web apps?
<rykou>
and within that method I want to use a variable that both methods can use
<rykou>
but I dont seem to get the scope right
Derperperd has quit [Ping timeout: 240 seconds]
<ruby-lang217>
@tobiasvl actually i'm into buidling web apps
<tobiasvl>
ruby-lang217: OK, then learn rails maybe. or check out more low-level stuff like sinatra
<evotopid>
Ah but it doesn't seem to create the enum? methods which you want
<rykou>
it's a bit of an excersice yeah
JoshS has joined #ruby
<rykou>
but I want it to work as a covering class
<rykou>
that both supports more c# style enums with the enum? methods
Guest13758 is now known as awk
<rykou>
but also with valued options so I can use them as flags as in c
ramortegui has joined #ruby
<rykou>
but I might just need to make it in 2 different classes tbh
neuraload has quit [Ping timeout: 256 seconds]
fishcooker has quit [Ping timeout: 258 seconds]
Guest81571 is now known as ged
neuraload has joined #ruby
username_ has joined #ruby
anisha has quit [Quit: Leaving]
ged is now known as Guest45036
__Yiota has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has joined #ruby
a7d7p_ has joined #ruby
SesMan has joined #ruby
eam has quit [Ping timeout: 260 seconds]
ianmethyst has quit [Quit: WeeChat 1.6]
username_ has quit [Ping timeout: 272 seconds]
eam has joined #ruby
<apeiros>
rykou: private does not affect class level methods
<apeiros>
i.e. in `class Foo; private; def self.bar; …;` the `private` is pointless
saslam has quit [Ping timeout: 248 seconds]
<rykou>
Aah, I did not know that
<apeiros>
rykou: and line 7 @enum belongs to the class (classes are objects, @ivars belong to a single object), while line 23 @enum belongs to the instantiated Enum
tonini is now known as zastav
jhack has joined #ruby
<rykou>
yeah, I noticed that, but I am not sure how to make the @enum accesible to the instantiated enum
croberts has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Toledo has joined #ruby
zastav is now known as tonii
tonii is now known as tonini
<rykou>
The only option I can think of now that seems to work is to copy the value of the class variable to the instance variable on initializing
<apeiros>
rykou: create a reader. then self.class.enum_type
pawandubey has joined #ruby
pawandubey has left #ruby [#ruby]
rodfersou is now known as rodfersou|lunch
<matthewd>
.. but that really sounds like it should be a class
<apeiros>
matthewd: they have a subclassing pattern
<apeiros>
i.e. it's state of the subclass and the declaration of that subclass is DSLy
jhack has quit [Client Quit]
<matthewd>
apeiros: A subclass for an individual named-enum, with a set of possible values, yes... but I think NamedEnum should be an intermediate class between the DSL one and the top Enum
<matthewd>
(though it's admittedly hard to have a strong opinion without knowing what a non-named Enum is/looks like)
<apeiros>
matthewd: ah, I see
DLSteve has joined #ruby
bmurt has joined #ruby
markholmes has quit [Ping timeout: 256 seconds]
flashban` has joined #ruby
a7d7p_ has quit [Quit: a7d7p_]
flashban` is now known as einzelganger
<rykou>
well, I do have it working in a way
chussenot has quit [Quit: chussenot]
einzelganger is now known as Guest2287
<rykou>
but I need to insatiate all the enum's of a type before I can define another enum
<rykou>
wich would be solved with an intermediate class
GarethAdams has joined #ruby
<apeiros>
rykou: no, it'd be solved by storing the state in the right class
jhack has joined #ruby
flashbang has quit [Ping timeout: 240 seconds]
<apeiros>
it means you're currently storing it in a shared place
Guest2287 is now known as einzelganger`
hotpancakes has quit [Ping timeout: 258 seconds]
einzelganger` is now known as n_beast
gnufied has joined #ruby
lmc has joined #ruby
ta has quit [Remote host closed the connection]
n_beast has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
go|dfish has quit [Ping timeout: 264 seconds]
tk__ has quit [Quit: ばいばい]
flashbang has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
siddart has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
a7d7p_ has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has joined #ruby
Derperperd has quit [Ping timeout: 248 seconds]
h1fuelcell has quit [Ping timeout: 256 seconds]
malconis has joined #ruby
jinie has quit [Ping timeout: 272 seconds]
Kug3lis has joined #ruby
ifctj has quit [Ping timeout: 248 seconds]
arnovr has quit [Quit: Leaving]
OTORelic2 has joined #ruby
ocbtec has joined #ruby
LastWhisper____ has joined #ruby
LastWhisper____ has quit [Client Quit]
<blackbombay>
apeiros: have you dabbled in functional programming
kith has quit [Ping timeout: 260 seconds]
polishdub has joined #ruby
<apeiros>
blackbombay: not really
<apeiros>
I think even less than in declarative programming
<apeiros>
actually… since sql is declarative, much less even :D
malconis has quit [Ping timeout: 240 seconds]
Beams_ has quit [Remote host closed the connection]
<dminuoso>
apeiros: Try Elixir then.
<dminuoso>
It's like Ruby except better.
jhack has quit [Ping timeout: 248 seconds]
<apeiros>
yeah, friend of mine has a startup and implemented their stuff in elixir. said the same.
the_drow has quit [Quit: This computer has gone to sleep]
sarbazx has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
<dminuoso>
apeiros: Just be ready for "yet another closure syntax" kind-of rage you will be having.
* dminuoso
knows you
malconis has joined #ruby
<blackbombay>
what is elixir like performance wise
swills has quit [Quit: Leaving]
hanine has joined #ruby
<hanine>
Hello guys
<hanine>
How would you test an IPv6 UDP address is UP
<hanine>
I do : UDPSocket.new(Socket::AF_INET6)
<hanine>
s = UDPSocket.new(Socket::AF_INET6)
<apeiros>
dminuoso: haha :)
<apeiros>
dminuoso: "yet another" isn't a problem really. I'd just love to come across one I actually like. and would want to steal.
<dminuoso>
apeiros: This may seem silly at first, but the whole thing makes so much sense when you consider that this is done so often in maths.
<apeiros>
I somewhat like `{ |args| … }`, but I find it awfully difficult to parse
JeanCarloMachado has quit [Ping timeout: 256 seconds]
<depesz>
hi. I'm using IO::popen to get data from a process in a safe way. The problem is that I use it to run ssh, which forks process to background, and this makes IO::popen wait for the background process to end (which I don't want to do) - is there any way to make IO::popen to just wait for the program it ran to end, without it's sub-processes?
<apeiros>
I find argument pattern matching *somewhat* interesting. Not sure I'd want the added syntax just to get rid of an internal if/else
Beams has quit [Ping timeout: 248 seconds]
<dminuoso>
apeiros: Sorta yeah.
<apeiros>
I think we should move to OT, given that there's a question now
nclbr has joined #ruby
ptx0 has joined #ruby
<apeiros>
blackbombay: I think I have to take a closer look after work
the_drow has quit [*.net *.split]
eam has quit [*.net *.split]
cdg has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
synthroid has quit [*.net *.split]
Guest12052 has quit [*.net *.split]
the_drow has joined #ruby
synthroid has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<blackbombay>
ok =]
bigkevmcd has joined #ruby
cdg has joined #ruby
andrzejku has quit [Quit: Ex-Chat]
nettoweb has joined #ruby
binaryplease has joined #ruby
Guest45036 is now known as ged
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ged is now known as Guest86421
jrafanie has joined #ruby
Alayde has joined #ruby
silverdust has joined #ruby
eam has joined #ruby
OTORelic2 has quit [Quit: WeeChat 1.4]
silverdust is now known as Guest95108
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
c_thun has quit [Quit: Leaving]
bodgix1 has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
depesz has left #ruby ["WeeChat 1.6"]
bodgix has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
bodgix has joined #ruby
bodgix1 has quit [Ping timeout: 256 seconds]
unshadow has quit [Quit: leaving]
<raldu>
An explicit form would be, `render(plain: params[:article].inspect)`. In this case, `render` is a method that takes one argument with a symbol `plain` with a key `params[:article].inspect`, where `inspect` is a method invoked on `params` hash object.
nettoweb1 has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<raldu>
whoops, replied to an older message because page scroll was up
swills has quit [Quit: Leaving]
blackbom1 has joined #ruby
govg has joined #ruby
Derperperd has joined #ruby
ponga has quit []
milardovich has joined #ruby
blackbombay has quit [Ping timeout: 256 seconds]
LastWhisper____ has joined #ruby
unshadow has joined #ruby
dviola has joined #ruby
Papierko- is now known as Papierkorb
Derperperd has quit [Ping timeout: 240 seconds]
swills has joined #ruby
quiqua has joined #ruby
deadnull has joined #ruby
koooge has joined #ruby
koooge has quit [Client Quit]
spiette has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
neuraload has quit [Ping timeout: 248 seconds]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
jhack has joined #ruby
neuraload has joined #ruby
alvss has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
hahuang61 has joined #ruby
nowhere_man has joined #ruby
alvss has left #ruby [#ruby]
alvss has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke_ has joined #ruby
swills has quit [Remote host closed the connection]
conta has quit [Ping timeout: 258 seconds]
a7d7p_ has quit [Quit: a7d7p_]
hahuang61 has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has joined #ruby
LastWhisper____ has joined #ruby
mark_66 has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
eam has quit [Ping timeout: 260 seconds]
TvL2386 has quit [Quit: Ex-Chat]
fjj[m] has quit [Ping timeout: 240 seconds]
StoneCypher has joined #ruby
bmurt has joined #ruby
blackpajamas has quit [Quit: WeeChat 1.6]
nankyokusei has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: jhack]
nankyokusei has quit [Ping timeout: 240 seconds]
fjj[m] has joined #ruby
nclbr has left #ruby ["Leaving..."]
Guest1913 has joined #ruby
jhack has joined #ruby
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lord_of_Life is now known as Lord_of_Away
a7d7p has joined #ruby
binaryplease has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
n[m] has quit [Remote host closed the connection]
M-mistake has quit [Read error: Connection reset by peer]
fjj[m] has quit [Remote host closed the connection]
Luca[m] has quit [Read error: Connection reset by peer]
tachyons[m] has quit [Remote host closed the connection]
joanftt[m] has quit [Remote host closed the connection]
meaggan[m] has quit [Remote host closed the connection]
Donalmartin[m] has quit [Write error: Connection reset by peer]
multivac[m] has quit [Write error: Connection reset by peer]
kp666[m] has quit [Write error: Connection reset by peer]
daveyboi[m] has quit [Write error: Connection reset by peer]
kineticrootkit[m has quit [Write error: Connection reset by peer]
eliotk[m] has quit [Remote host closed the connection]
M-travis has quit [Read error: Connection reset by peer]
h42r62[m] has quit [Read error: Connection reset by peer]
jomakasi[m] has quit [Write error: Connection reset by peer]
philidor[m] has quit [Write error: Broken pipe]
Michael5[m] has quit [Write error: Connection reset by peer]
dmitrysinina[m] has quit [Write error: Connection reset by peer]
coreyja[m] has quit [Write error: Connection reset by peer]
davix[matrix] has quit [Write error: Broken pipe]
jsanti[m] has quit [Write error: Connection reset by peer]
aviraldg has quit [Write error: Connection reset by peer]
fladson[m] has quit [Write error: Broken pipe]
drorp24[m] has quit [Write error: Broken pipe]
serah[m] has quit [Write error: Broken pipe]
Guest27477 has quit [Write error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
Xi[m] has quit [Write error: Connection reset by peer]
velu_aon[m] has quit [Write error: Connection reset by peer]
mavenik[m] has quit [Write error: Broken pipe]
M-manveru has quit [Write error: Connection reset by peer]
guanjian[m] has quit [Write error: Connection reset by peer]
riotgsmport[m] has quit [Write error: Connection reset by peer]
tobyn[m] has quit [Write error: Broken pipe]
vma[m] has quit [Write error: Connection reset by peer]
M-shine has quit [Write error: Connection reset by peer]
Giphy[m] has quit [Write error: Connection reset by peer]
masondesu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtd has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
binaryplease has joined #ruby
jojo55 has joined #ruby
jhack has joined #ruby
yeticry_ has quit [Ping timeout: 240 seconds]
<jojo55>
Is there a way to #read an IO-like object without moving the cursor position? I just want to look at the first two bytes, but for complicated reasons I don't want to move the cursor.
<jojo55>
I tried using myobj.clone and myobj.dup but they both move the cursor
emilkarl has quit [Quit: emilkarl]
ocbtec has quit [Quit: leaving]
<matthewd>
jojo55: You're probably going to have to clarify those complicated reasons
yeticry has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
<jojo55>
matthewd: I'm using Gem::Package::TarReader to read gzipped tarballs containing gzipped files into _memory_ and would like gzip handling to be transparent to the user. Gem::Package::TarReader::Entry's #rewind uses #pos= which Zlib::GzipReader doesn't posses, so I can't read the first two bytes w/o causing myself problems.
jenrzzz has quit [Ping timeout: 260 seconds]
<jojo55>
While I could fall back to Entry#full_name regular expressions, I'd prefer to just look at the file magic
<havenwood>
jojo55: Could you IO#ungetbyte it back on?
<matthewd>
havenwood: Only one byte
boombox_ has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<jojo55>
seemed like having a copy of the entry that I manipulated and then discarded would be the easiest option
<havenwood>
matthewd: One byte twice!
<jojo55>
but #dup and #clone don't work
<matthewd>
I think that'd be my best quick-thought suggestion, though: check the first byte; if it's wrong, ungetbyte it back and pass the stream through untouched. If it's right, check the second byte.. if that one's wrong, you're going to be stuck providing your own buffered IO object.
<jojo55>
well.. I shouldn't say they don't work... they don't fix this issue
<havenwood>
matthewd: Yeah, I can't think of a better way offhand.
deadnull has quit [Quit: Bye]
<jojo55>
matthewd: in order to do that, will I have to reach into the entry? it doesn't have an ungetc or ungetbyte
masondesu has joined #ruby
masondesu has quit [Client Quit]
<jojo55>
by "reach into the entry" I mean ignore the public API
frozengeek__ has quit [Quit: frozengeek__]
despai has joined #ruby
Kaze_FX has joined #ruby
<jojo55>
Also, if Zlib::GzipReader doesn't support #pos= will that even work?
SpiffTR has quit [Quit: Leaving.]
<jojo55>
I guess it has #ungetbyte
<matthewd>
Oh, hang on... "into _memory_"
bodgix has quit [Quit: Leaving.]
<matthewd>
== it's okay to literally have the whole file in memory?
<jojo55>
well I'm trying to avoid it
<matthewd>
If so, just read the whole thing, decide whether it's gzip, then throw out an appropriate stringio
Guest6562 has joined #ruby
<jojo55>
originally I'd wrapped the whole thing in a StringIO.new(entry.read)
<jojo55>
ok
<jojo55>
thanks guys
chouhoulis has joined #ruby
<matthewd>
If you can get ungetbyte to work for you, to could use that when the first byte doesn't match, and fall back to stringio otherwise
<jojo55>
thanks
jojo55 has quit [Quit: Page closed]
rodfersou|lunch is now known as rodfersou
hotpancakes has joined #ruby
bodgix has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
bodgix has quit [Client Quit]
username has joined #ruby
shayan_ has joined #ruby
shayan_ has quit [Client Quit]
milardovich has joined #ruby
jackjackdripper has joined #ruby
Guest86421 is now known as ged
rikai has quit [Ping timeout: 246 seconds]
ged is now known as Guest32093
boombox_ has quit [Remote host closed the connection]
mariusm has quit [Remote host closed the connection]
shayan_ has joined #ruby
aremaref has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
tobyn[m] has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
tonini has quit [Quit: Connection closed for inactivity]
StoneCyp1er has joined #ruby
bmurt has joined #ruby
Derperperd has joined #ruby
StoneCypher has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
brent__ has joined #ruby
neuraload has quit [Quit: Leaving]
bodgix has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
yeticry has quit [Ping timeout: 260 seconds]
aganov has quit [Remote host closed the connection]
yeticry has joined #ruby
E4death has joined #ruby
Rodya_ has joined #ruby
Guest34383 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
rikai has joined #ruby
despai has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
GinoManWorks has quit [Quit: Leaving]
tlaxkit has joined #ruby
doublemalt_ has quit [Ping timeout: 260 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
marxarelli has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
eam_ has joined #ruby
Rodya_ has joined #ruby
choke_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
ramfjord has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
vondruch has quit [Remote host closed the connection]
shayan_ has quit [Quit: shayan_]
jaruga has quit [Remote host closed the connection]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
jhack has quit [Quit: jhack]
binaryplease has quit [Ping timeout: 240 seconds]
hightower3 has quit [Ping timeout: 240 seconds]
bocaneri has quit [Ping timeout: 245 seconds]
jaruga has joined #ruby
vondruch has joined #ruby
jzigmund has quit [Ping timeout: 272 seconds]
jzigmund has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
milardovich has joined #ruby
myk267 has joined #ruby
czerasz has quit [Ping timeout: 248 seconds]
aufi has quit [Quit: Leaving]
cibs has quit [Ping timeout: 268 seconds]
Guest32093 is now known as ged
SeepingN has joined #ruby
ged is now known as Guest35487
cibs has joined #ruby
FahmeF has joined #ruby
hanine has quit [Quit: Ex-Chat]
aeontech has joined #ruby
senayar has quit []
tercenya has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
tercenya_ has quit [Ping timeout: 252 seconds]
Zamyatin has joined #ruby
sarbazx has joined #ruby
vondruch has quit [Read error: No route to host]
jaruga___ has joined #ruby
vondruch has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jzigmund has quit [Ping timeout: 240 seconds]
bocaneri has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
jaruga has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
bodgix has quit [Quit: Leaving.]
jzigmund has joined #ruby
gusrub_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enyo has joined #ruby
LastWhisper____ has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
LastWhisper____ has quit [Client Quit]
enyo has quit [Ping timeout: 245 seconds]
anjen has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
psychicist__ has joined #ruby
TomyLobo has joined #ruby
LastWhisper____ has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
AndBobsY_ has joined #ruby
tristanp has joined #ruby
choke_ has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
hotpanca_ has joined #ruby
Derperperd has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Ping timeout: 241 seconds]
duderonomy has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
shayan_ has joined #ruby
sebastiansier has joined #ruby
flashbang has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
anjen has quit [Quit: anjen]
Guest1913 has quit [Ping timeout: 258 seconds]
despai has quit [Quit: This computer has gone to sleep]
AndBobsYourUncle has joined #ruby
despai has joined #ruby
choke_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai has joined #ruby
skweek has joined #ruby
despai has quit [Client Quit]
flyingX has quit []
whathappens has joined #ruby
philidor[m] has joined #ruby
eliotk[m] has joined #ruby
multivac[m] has joined #ruby
coreyja[m] has joined #ruby
kineticrootkit[m has joined #ruby
jomakasi[m] has joined #ruby
M-shine has joined #ruby
bascht1 has joined #ruby
Luca[m] has joined #ruby
M-manveru has joined #ruby
M-travis has joined #ruby
Giphy[m] has joined #ruby
guanjian[m] has joined #ruby
jsanti[m] has joined #ruby
daveyboi[m] has joined #ruby
laithshadeed[m] has joined #ruby
n[m] has joined #ruby
riotgsmport[m] has joined #ruby
serah[m] has joined #ruby
aviraldg has joined #ruby
Michael5[m] has joined #ruby
dmitrysinina[m] has joined #ruby
velu_aon[m] has joined #ruby
M-mistake has joined #ruby
meaggan[m] has joined #ruby
tachyons[m] has joined #ruby
vma[m] has joined #ruby
fladson[m] has joined #ruby
Donalmartin[m] has joined #ruby
drorp24[m] has joined #ruby
mavenik[m] has joined #ruby
fjj[m] has joined #ruby
davix[matrix] has joined #ruby
cpfeilschifter[m has joined #ruby
Xi[m] has joined #ruby
joanftt[m] has joined #ruby
h42r62[m] has joined #ruby
kp666[m] has joined #ruby
AndBobsY_ has quit [Ping timeout: 240 seconds]
nettoweb has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has quit [Remote host closed the connection]
FahmeF_ has joined #ruby
AndBobsYourUncle has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
jhack has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
ur5us has joined #ruby
cibs has joined #ruby
Guest6562 has quit [Remote host closed the connection]
FahmeF has quit [Ping timeout: 240 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 255 seconds]
psychicist__ has joined #ruby
LastWhisper____ has joined #ruby
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has quit [Ping timeout: 240 seconds]
Yacker has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
hotpancakes has joined #ruby
Derperperd has joined #ruby
soulisson has joined #ruby
pilne has joined #ruby
choke_ has joined #ruby
<soulisson>
Hi, I read the wikipedia page about literals but I'm still not sure what they're in programming. How should I interpret the literal [1,2,3] x = [1,2,3]. An array of integers?
<duderonomy>
I am trying to using symbols to enumerate env types, let's call them :green, :yellow, and :red;
<duderonomy>
with a method that expects this as a parameter looks like: def transform(data, env=:green) pass end
<duderonomy>
if I test env in the method, should I just test for a string?
<soulisson>
baweaver: Is the interpretation "it's an array of integers" or should I go further and think as a reference to an object representing an array of integers?
<soulisson>
*enough
<baweaver>
I think you're overcomplicating it
<baweaver>
it's an array of integers, leave it at that.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
A124 has quit [Quit: '']
markholmes has joined #ruby
tolerablyjake has joined #ruby
rodfersou is now known as rodfersou|coffee
FahmeF_ has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
StoneCypher has quit [Read error: Connection reset by peer]
johnhaugeland has joined #ruby
tolerablyjake has quit [Client Quit]
FahmeF has quit [Ping timeout: 240 seconds]
ych has joined #ruby
maddmaxx_ has joined #ruby
tolerablyjake has joined #ruby
BitWhisperer has joined #ruby
A124 has joined #ruby
LastWhisper____ has joined #ruby
swills has joined #ruby
PlasmaStar has quit [Ping timeout: 258 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
PlasmaStar has joined #ruby
rodfersou|coffee is now known as rodfersou
tomphp has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
Derperperd has quit [Ping timeout: 240 seconds]
biox has quit [Quit: brb servers are ded]
e1z0_ has joined #ruby
ych has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
bocaneri has quit [Write error: Connection reset by peer]
minimalism has joined #ruby
ddffg has quit [Ping timeout: 256 seconds]
Jayson_Virissimo has joined #ruby
koldbrutality has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biox has joined #ruby
skweek has joined #ruby
<makufiru>
Hey all. So I have a method that does a lot of things. A pattern for what it is doing is like do something, validate something, return a response if it's bad, else continue. About 5 times. I'm wondering if there's a good way to structure this that I'm not seeing.
AndrewIsHere has joined #ruby
<tobiasvl>
makufiru: make a gist of the code
<makufiru>
So I could create some private methods that it calls, but I'm confused about how to return in the calling method from the called method based on what happens in that call
<Eiam>
can it return different things at each point?
<makufiru>
okay hang tight
<Eiam>
like nil, or [], or "hello" ?
rekt has joined #ruby
<rekt>
in a class definition, I see def self.[](index)
<rekt>
what is the special syntax used here called?
soulisson has quit [Quit: Leaving]
<tobiasvl>
rekt: if anything, it's the syntax [index] that's special ;P
<Eiam>
I don't see any special syntax
<Eiam>
rekt: what part are you thinking it special?
<Eiam>
the self. or the [](index) ?
<rekt>
the .[]( part
pandaant has joined #ruby
<tobiasvl>
it's what self[index] is syntactic sugar for
marr has joined #ruby
<Eiam>
its an array index lookup
<makufiru>
here's the gist of what I'm trying to convey
johnhaugeland has quit [Read error: Connection reset by peer]
despai has joined #ruby
ifctj has quit [Ping timeout: 248 seconds]
Guest72744 is now known as ged
pgib has quit [Quit: 00 PC LOAD LETTER]
ged is now known as Guest1543
lenwood has joined #ruby
<zenspider>
makufiru: no tabs pls
fergal has joined #ruby
<fergal>
hi guys, is it possible to write a module with a bunch of helper methods, and then, in another module, include the helper methods from the first module, and call them without their fully qualified names?
<dminuoso>
fergal, though wait.. regular including will do that for you.
gajus has joined #ruby
<fergal>
oh wait, my question is wrong - want to call the module functions from within a class? i’m using include <module name>, but i get no such method errors
<duderonomy>
What would be a good file system location to store RSpec tests that consist of a test suite for an external web site?
enyo has quit [Ping timeout: 255 seconds]
rwb has quit [Ping timeout: 240 seconds]
<duderonomy>
That is, these test are not the same RSpec tests that validate my Rails app itself via the Rack interface. Those are in ./spec/{controllers,features,models,views}
<apeiros>
and then private makes sure that a) other people know require isn't part of String and b) require gets dispatched properly to method_missing for the cases where it matters
<baweaver>
duderonomy: why are you testing an external site?
<dminuoso>
duderonomy, test the behavior of your code, not of somebody elses code.
<baweaver>
RSpec is for Unit Tests primarily which means units of your own code
<baweaver>
(yes, it can be used for integration, but that's too much information for this context)
<duderonomy>
Good question. Friends wrote that ext app and they asked me to test it.
<duderonomy>
RSpec provides facilities for testing that are not just limited to Unit testing. One can also use it for BDD and feature tests.
<dminuoso>
duderonomy, then firstly it has nothing to do with your application. Make a simple project "ext-site-specs" and use that?
<dminuoso>
duderonomy, for example "google.com-specs" maybe ?
<duderonomy>
Well, it is related to my app in the sense that I want to track the tests and the results of the runs.
meysam has joined #ruby
<duderonomy>
Thanks for your input. Appreciate the brainstorm
<dminuoso>
duderonomy, it is not related to your applications tests, if it just tests the other site
<dminuoso>
IMO
<zenspider>
duderonomy: the answer to your question is: it's totally arbitrary and not worth worrying about. make a directory and put them in there
<zenspider>
if it has nothing to do with your app, I wouldn't put it in your app
dcunit3d has joined #ruby
<duderonomy>
thanks zenspider.
duckpuppy has quit [Ping timeout: 240 seconds]
nhhc has joined #ruby
markholmes has quit [Remote host closed the connection]
synthroid has quit []
nettoweb has joined #ruby
hahuang61 has joined #ruby
aeontech has joined #ruby
eelster has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
muelleme has joined #ruby
cibs has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eelster>
baweaver: As I said. It is just because I personally prefer it for my style.
<eelster>
But it is highly unimportant on the whole
<toretore>
nonsense. those who use double quotes by default must be banished.
brent__ has joined #ruby
<eelster>
toretore: What about people who use %Q by default?
<baweaver>
There was one time I had a style crazed engineer on my team and we had an argument about an ambiguous point of style
<toretore>
they won't last long because they're on some heavy drugs
<baweaver>
so I changed the style guide to my opinion, got #ruby to back me up, and then shut him down by his own lawful good nature.
<eelster>
baweaver: That is quite frustrating. There are some style things that are legitimately important but a vast majority should be left to personal preference.
BTRE has joined #ruby
<SeepingN>
^
<eelster>
If it effects readability it is important, otherwise it is trivial.
tolerablyjake has quit [Ping timeout: 240 seconds]
<SeepingN>
get the work done, work out the bugs, move on.
<baweaver>
I just put in a style guide and say everyone sticks to it period
Gasher has joined #ruby
<baweaver>
all arguments are nil and void
AndBobsYourUncle has quit [Ping timeout: 248 seconds]
<eelster>
baweaver: I don't think that's very useful if you only have methods with nil arguments.
AndBobsYourUncle has joined #ruby
<baweaver>
it was a pun
* eelster
rimshow
<elomatreb>
You can still pass any data, just by passing different amounts of nils!
<eelster>
s/rimshow/rimshot
<eelster>
elomatreb: Ruby's version of whitespace?
futilegames has quit [Ping timeout: 256 seconds]
<eelster>
Didn't we use to have an s-bot in here?
shayan_ has joined #ruby
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
siddart has quit [Quit: WeeChat 1.4]
jackjackdripper has joined #ruby
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
milardovich has joined #ruby
BTRE has quit [Quit: Leaving]
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
rwb has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest1543 is now known as ged
ged is now known as Guest38713
aremaref has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
manjaro-kde5-- has quit [Ping timeout: 252 seconds]
muelleme has quit [Ping timeout: 252 seconds]
biberu has quit []
polishdub has quit [Quit: Leaving]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
shayan_ has quit [Quit: shayan_]
moei has quit [Quit: Leaving...]
eelster has quit [Quit: WeeChat 1.6]
Jayson_Virissimo has quit []
BTRE has joined #ruby
ruby has joined #ruby
manjaro-kde5-- has joined #ruby
ruby is now known as Guest84482
milardovich has joined #ruby
bodgix has quit [Quit: Leaving.]
bodgix has joined #ruby
tolerablyjake has joined #ruby
jtd has quit [Remote host closed the connection]
bodgix has quit [Client Quit]
doublemalt_ has joined #ruby
blackbom1 has joined #ruby
lmc has quit [Quit: Leaving...]
rekt- has quit [Ping timeout: 240 seconds]
iogf has joined #ruby
jhack has quit [Quit: jhack]
milardovich has quit [Ping timeout: 248 seconds]
blackbom1 has quit [Ping timeout: 240 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
LastWhisper____ has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
jhack has quit [Client Quit]
blackbom1 has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
jtd has joined #ruby
jhack has joined #ruby
tolerablyjake has quit [Ping timeout: 255 seconds]
marxarelli has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cardboard64 has joined #ruby
<cardboard64>
hi
<havenwood>
cardboard64: hi
<cardboard64>
I use rubysdl to play some sound effets. I don't need the whole sdl lib.
<cardboard64>
is there a better way to play sounds (.ogg) with ruby?
<cardboard64>
also, that lib must work with linux and windows
<dminuoso>
...
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
"I want cross-platform multimedia, but I don't want to have the overhead of a real cross-platform multimedia library"
nhhc has quit [Quit: Leaving]
<dminuoso>
cardboard64, for pure windows you can use the win32 api directly from Ruby without any libraries.
saslam has quit [Ping timeout: 240 seconds]
<cardboard64>
I don't really mind sdl, but I don't use the graphics part, I was wondering is there was a better way
<dminuoso>
cardboard64, take a look at SFML.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
cardboard64, can you get away with just MIDI?
raatiniemi has quit [Quit: No Ping reply in 180 seconds.]
<cardboard64>
no
raatiniemi has joined #ruby
BTRE has quit [Quit: Leaving]
chussenot has joined #ruby
<SeepingN>
was that serious?
<dminuoso>
cardboard64, yeah I think without diving into native extensions and writing bindings for one yourself, you're pretty much stuck to libsdl.
<dminuoso>
cardboard64, otherwise you could write an extension for libsound.io I guess
<cardboard64>
ok
<cardboard64>
well, sdl is fine then
<dminuoso>
(or similar libraries)
fergal has quit [Quit: fergal]
shayan_ has joined #ruby
malconis has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
enterprisey has joined #ruby
yeticry_ has joined #ruby
Olipro has quit [Ping timeout: 240 seconds]
aeontech has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 252 seconds]
manjaro-kde5-- has quit [Ping timeout: 252 seconds]
sepp2k has quit [Quit: Leaving.]
enyo_ has joined #ruby
tyang__ has joined #ruby
saneax-_-|AFK is now known as saneax
tyang_ has joined #ruby
enyo_ has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
<havenwood>
Gasher: Try working with Tempfile in your REPL like the docs show. I think that will get you on the right *path*.
Olipro has joined #ruby
<Gasher>
thanks
<Gasher>
it changed since the last version of sinatra...
railswebdev has joined #ruby
kch has joined #ruby
<kch>
elo
jhack has quit [Quit: jhack]
<baweaver>
ole
<Gasher>
works now, but I think I can use the Tempfile better
|RicharD| has quit [Quit: Sto andando via]
<kch>
as a new ruby programmer, can you guys recommend any clubs or projects where I can get involved to further use the language?
nettoweb has quit [Client Quit]
shayan_ has quit [Quit: shayan_]
Guest38713 is now known as ged
<havenwood>
kch: Hang around here and answer questions and we'll let you in the club!
<havenwood>
kch: (This channel a good Ruby community online.)
ged is now known as Guest70225
<havenwood>
kch: Do you live near any Ruby brigades? What area do you live in?
<kch>
havenwood: I mean a club that actively codes or works on group projects. I just want to use the language to get better, because in the past I didnt put active effort into it and forgot most.
<Gasher>
oh, are there such things as Ruby brigades? :D I would love to find some programmers, not necessarily Ruby in the area
<kch>
havenwood: I live in NYC. Was not aware of Ruby brigades but I'll look it up now.
<havenwood>
kch: We meet weekly in the local Ruby in Hollywood group to read code and work on projects together.
<Gasher>
is there some centralised register of the brigades?
rekt has joined #ruby
BTRE has joined #ruby
<kch>
strangely I see none listed in NYC
<havenwood>
there are a half-dozen Ruby groups in LA
AndrewIsHere has quit [Remote host closed the connection]
<kch>
Havenwood: I checked that one, their irc channel is empty and it lists that they are only interested in experienced Ruby programmers, not beginners like myself.
shayan_ has joined #ruby
<havenwood>
kch: Move to LA and join us!
<havenwood>
kch: :-P
<baweaver>
bet you they're on Slack somewhere.
<eelster>
baweaver: Bah. Early adapters.
<baweaver>
Go anyways
<eelster>
But yes, go. Ruby meetups are awesome.
AndBobsYourUncle has quit [Remote host closed the connection]
<eelster>
I wish there were more near me
<baweaver>
if they're sincerely not interested in newbies and send you away, it's a crap group.
<kch>
Anyone familiar with any online groups I can join and help work on group projects?
AndBobsYourUncle has joined #ruby
<eelster>
kch: One of the things that I do is look at projects I like on github and go to their issues and fix the issues
<baweaver>
kch: what do you like to do other than programming?
<baweaver>
(yes, it's relevant)
<kch>
this is mainly a hobby for myself, I dont work in any kind of computer industry but have been toying with computers since I was 10
<eelster>
baweaver is right. I met a lot of my programming friends in the rock gym.
<kch>
so i would just like to learn more and have fun
<kch>
help people and learn along the way
ianmethyst has joined #ruby
<kch>
im 37 now btw :P
<baweaver>
kch: Like outside of programming, what do you do for fun?
<kch>
ice hockey, brazilian jiu jitsu, spend time with my kids
dionysus69 has quit [Ping timeout: 252 seconds]
<eelster>
kch: Also, age isn't an issue. There are programmers of all ages. Honestly, once you hit 21 the age doesn't matter that much at all.
<baweaver>
chances are there's a project out there that works with some of those things
<Eiam>
troll irc woo! ;)
doublemalt_ has quit [Ping timeout: 255 seconds]
<kch>
eelster: i listed age meaning that I have been toying with computers since late 80s
CloCkWeRX has joined #ruby
<baweaver>
you can probably make some tools to look at ESPN for Hockey results
<baweaver>
or perhaps help refine a few BJJ websites
milardovich has joined #ruby
<kch>
baweaver: point is to make it social and learn along the way
maddmaxx_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<baweaver>
Make a fantasy hockey system and get your mates on it
<kch>
just making something for myself might be satisfying but I feel like it would be more fun to meet and help people, and also learn from them
<eelster>
A fantasy hockey system is a perfect project
<baweaver>
I'd bet that NYC Ruby will welcome you regardless
<eelster>
You'd learn about scraping, rails, design, and security.
AndBobsYourUncle has quit [Ping timeout: 256 seconds]
<baweaver>
mainly because that's the prime directive of Ruby: Matz is nice and so we are nice
<eelster>
MINASWAN
csk has quit [Quit: ZZZzzz…]
<kch>
I'll email their organizer and run it by him
<baweaver>
start with introducing yourself and say you want to learn
<baweaver>
let it go from there.
tolerablyjake has joined #ruby
<eelster>
Also, look into open hacks on the whole. There is a lot to be learned from people who code even not in ruby,.
<eelster>
(Also there might be ruby coders at an open hack anyways)
AndBobsY_ has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<kch>
eelster: do you have any recommendations for specific ones?
<kch>
a lot comes up when I google open hack nyc
<eelster>
kch: I'm not in NYC, but I can ask some of my friends who live there for some recommendations
<kch>
how about online hacks?
<eelster>
kch: I'd recommend physically going to one.
<kch>
ok
<kch>
I used to dream of helping to develop with freebsd or maybe a flavor of linux but never really got around to it due to lack of coding knowledge. I randomly started learning ruby due to a gift I got and figure this would be a good start, but being involved in a big project like that seems like it would be awesome.