<Ox0dea>
Er, and /boot as well, but I guess that makes sense.
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deck` has joined #ruby
skade has joined #ruby
B1n4r10 has joined #ruby
<volty>
thx Ox0dea. I see I have only to take it back from /etc
davedev24 has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
<Ox0dea>
volty: No worries. Back in a bit.
sanguisdex has quit [Ping timeout: 240 seconds]
Ox0dea has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deck` has quit [Ping timeout: 260 seconds]
kies^ has joined #ruby
davedev24 has joined #ruby
visudo has quit [Quit: visudo]
visudo has joined #ruby
avril14th has quit [Ping timeout: 250 seconds]
acidrainfall has quit [Quit: Leaving.]
tomchap__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
travisthenavi has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
donske has joined #ruby
donske has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
peterevjan has joined #ruby
peterevjan has quit [Remote host closed the connection]
pawnbox has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
dlitvak_ has joined #ruby
dlitvak_ has quit [Read error: Connection reset by peer]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
Brklyn_ has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
kirillzh has joined #ruby
cschneid_ has quit [Remote host closed the connection]
celly has joined #ruby
TomPeed has joined #ruby
platzhirsch has left #ruby [#ruby]
jnj has joined #ruby
peterevjan has joined #ruby
guacamole has joined #ruby
<jnj>
Hey, I'm trying to create a ruby script that tests a java program by running java program testfiles, I already have it running through and out putting to the terminal the results of all the test files, is there anyway to take each output and compare them to text files that contain the answers?
s00pcan has quit [Ping timeout: 240 seconds]
<jnj>
I know I can just write each output to a text file, then compare the files, but I'd rather I just compare the output of standard output so that I won't end up creating a whole bunch of text files
d10n-work has quit [Quit: Connection closed for inactivity]
<wolffles>
talking about output texts, my output text file font size is 512. not sure whats causing it
<jnj>
wow, thats very strange
s00pcan has joined #ruby
agentmeerkat has joined #ruby
<ramfjord>
very strange - I didn't know text files had font sizes ;)
B1n4r10 has quit [Ping timeout: 245 seconds]
<volty>
jnj: you could redirect to StringIO, then read both and compar
<ramfjord>
jnj: if you're just worried about makign a bunch of files, you can use Tempfile
<volty>
e
<ramfjord>
or that
Rodya_ has joined #ruby
<jnj>
Thanks! I'll check out tempfile
<volty>
I was thinking he wants to compare on fly
wethu has joined #ruby
<jnj>
I do wanna compare on the fly
<jnj>
So basically, would I just be creating a new string for each result, then compare that string to it's corresponding text file?
victortyau has joined #ruby
baweaver has joined #ruby
trinaldi has quit [Read error: Connection reset by peer]
<volty>
StringIO, redirect the $stdout, etc etc
<volty>
StringIO behaves as file, so File::read(stringio_object) == File::read(expected_result)
s00pcan has quit [Ping timeout: 248 seconds]
<volty>
and of course truncate in between
harly_ has joined #ruby
cdg has quit []
dexter-tzu has joined #ruby
s00pcan has joined #ruby
hahuang65 has joined #ruby
cdg has joined #ruby
Gnut has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
arthurix_ has joined #ruby
peterevjan has quit [Remote host closed the connection]
AdamMeghji_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<volty>
but before all you have to capture the stdout of those java programs. no idea how you run them.
lilvim_ has joined #ruby
aupadhye has joined #ruby
peterevjan has joined #ruby
at46_ has quit [Remote host closed the connection]
carella_ has joined #ruby
kiez0rd has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
colleen__ has joined #ruby
peterhu_ has joined #ruby
<volty>
probably IO.read("| the_prog") would be sufficient
idefine_ has joined #ruby
AdamMeghji has quit [Ping timeout: 240 seconds]
lilvim has quit [Ping timeout: 240 seconds]
dexter__ has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 240 seconds]
harly has quit [Ping timeout: 240 seconds]
e4xit has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 240 seconds]
Mekkis has quit [Ping timeout: 240 seconds]
peterhu has quit [Ping timeout: 240 seconds]
carella has quit [Ping timeout: 240 seconds]
gregf__ has quit [Ping timeout: 240 seconds]
AdamMeghji_ is now known as AdamMeghji
colleen__ has quit [Changing host]
colleen__ has joined #ruby
gregf__ has joined #ruby
Mekkis has joined #ruby
peterevjan has quit [Ping timeout: 252 seconds]
sftrabbit has quit [Quit: sftrabbit]
Rodya_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jnj>
psayian: the well grounded rubyist will teach you how to write in ruby, eloquent ruby will teach you the right ways to write ruby
<jnj>
I keep on getting the error: `testfile': undefined local variable or method `run' for main:Object (NameError)
chouhoulis has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
moeabdol2 has joined #ruby
idefine has quit [Remote host closed the connection]
<jnj>
oh wait nevermidn
ur5us has joined #ruby
ur5us has joined #ruby
skade has quit [Ping timeout: 240 seconds]
<psayian>
jnj: thanks
idefine has joined #ruby
at46 has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
RUDIS has joined #ruby
<hays>
How do I do this with a Fiber? "That’s pretty big because now you can wrap an incoming web request in its own fiber and tell it to send a response back when it’s done doing its things. In the meantime, you can move on the to next incoming request."
<hays>
having trouble seeing how that is structured
felixal has quit [Ping timeout: 245 seconds]
at46 has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
<RUDIS>
la personas de cuba por aqui
paradisaeidae has joined #ruby
idefine has joined #ruby
moeabdol3 has joined #ruby
davedev2_ has joined #ruby
at46_ has joined #ruby
moeabdol2 has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
<jnj>
How do I redirect stdout back to stdout instead of a file
AccordLTN has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
AccordLTN has quit [Client Quit]
<domgetter>
jnj the original stdout should still be in STDOUT
at46_ has quit [Remote host closed the connection]
<jnj>
Ah, ok, so I could do $stdout = STDOUT?
<Ox0dea>
Unless you mutated it with something like #reopen.
<domgetter>
yes
<domgetter>
And you can always just do STDOUT << "some string"
<domgetter>
unless you want puts (and family) to go to it
solocshaw has joined #ruby
<jnj>
I did mutate it with something like #reopen, to write from stdout to files
<eam>
you have to reopen it again
<jnj>
eam: Ah, ok. What would that look like? Would I have to reopen it to stdout, so like $stdout.reopen(STDOUT) or just $stdout.reopen
croberts has joined #ruby
blackmesa has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
Brklyn has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
<jnj>
eam: Ah, ok. I'm just trying to write each result of a test to a text file, then compare that resulting text file to an answers file
<eam>
what you can do is old_stdout = STDOUT.dup # then mess with it, and reopen back to old_stdout at the end
<eam>
#dup will copy the descriptor to a new #fileno
<jnj>
ah nice
agentmeerkat has joined #ruby
<eam>
you can also $stdout.reopen $stderr I believe
<eam>
assuming this is all a cli program running in your terminal
<eam>
that won't work in other contexts however
SPARK33092 has joined #ruby
<jnj>
eam: Yeah, I gotchu, but its working in this context, so thanks so much!
dlitvak has quit [Ping timeout: 260 seconds]
<Ox0dea>
jnj: Are you sure you need to be redirecting stdout?
<Ox0dea>
You know you can just open files and write to them?
davedev2_ has quit [Remote host closed the connection]
<eam>
this practical advice doesn't sound nearly as fun
<jnj>
Ox0dea: Yeah, I'm testing java files that write to standard output. My professor wants us to test everyone elses java code, so I'm just creating a nice ruby script that will do all the testing for me
dlitvak has joined #ruby
<hays>
is there a simple way to turn what looks like synchronous/blocking I/O into asynchronous?
RUDIS has left #ruby [#ruby]
ESpiney has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
hays: well the interactions are pretty different
babblebre has quit [Quit: Connection closed for inactivity]
shazaum_ has joined #ruby
<Ox0dea>
jnj: Ah, fair enough, then.
amb77 has joined #ruby
jottr has joined #ruby
amb77 has quit [Client Quit]
<havenwood>
hays: say more about what you're doing? or just a general question?
cdg has quit [Remote host closed the connection]
<eam>
I guess one way would be to install an old ruby which used green threads
<eam>
'cuz then it's all nonblocking
<eam>
except when it isn't
<jnj>
What can I do if running a shell command in ruby takes too long? With my testing script I want it to stop running a system command if someones program is taking too long
marr has quit [Ping timeout: 252 seconds]
<hays>
havenwood: im trying to tie to rmodbus, but i need to manage multiple connections and be able to recover them if they drop, but also keep requests to the others going when there is a problem on one connection
<Ox0dea>
jnj: Seems a fine use case for Timeout.
<eam>
jnj: system() is essentially just a fork { exec CMD }; wait
<havenwood>
hays: would the connections be mostly idle?
<jnj>
Ah, ok, thanks guys! :)
<eam>
you can implement that yourself with waitpid WNOHANG instead of wait if you like
<eam>
Timeout is evil and should be avoided on pain of death
amb77 has quit [Client Quit]
devbug has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 264 seconds]
<hays>
havenwood: no, mostly active actually.. there's a constant write operation that needs to happen every 1 second, and interleaved with that are other operations
moeabdol3 has quit [Read error: Connection reset by peer]
<havenwood>
hays: Yeah, Timers is already required by Celluloid but it's nice standalone as well.
Azure|dc has quit [Ping timeout: 272 seconds]
<Ox0dea>
eam: `pkill -n`, even.
segmond has joined #ruby
<eam>
Ox0dea: aaaargh
<eam>
you just potentially killed thousands of different processes
Azure has joined #ruby
<Ox0dea>
Er, thankfully not?
hxegon has quit [Quit: BRB]
<hays>
just not sure how to use the every
<eam>
I saw a hilarious and rather serious outage once, where someone had written code very similar to that to kill their own app
<Ox0dea>
But we're always the newest process! :P
adgtl has joined #ruby
<Ox0dea>
I meant `pkill -n sleep`, to clarify.
<hays>
i was thinking I could use that to do an async write every second, in order to handle that watchdog thinger
<eam>
they did not realize that their service ran under djb's daemontools, which used readproctitle, which often had exception strings in its argv / process list
<havenwood>
law: Ignoring the ", "s": "#{k}#{v.keys.first}=#{v.values.first}"
darix has joined #ruby
<havenwood>
law: changing as little as possible and without testing it i'd guess; print checkresult.map { |k, v| "#{k}#{v.keys.first}=#{v.values.first}" }.join(', ')
JDiPierro has joined #ruby
webopsx has joined #ruby
zambini has quit [Quit: Leaving.]
CoderPuppy has joined #ruby
webopsx has quit [Max SendQ exceeded]
william3 has quit [Ping timeout: 260 seconds]
microt has joined #ruby
<law>
well slap mah fro and call me Susan, that's pretty darned close
<law>
I keep forgetting how insanely flexible .map is
sivoais has joined #ruby
daivyk has joined #ruby
dcunit3d has joined #ruby
Brklyn has joined #ruby
JDiPierro has quit [Ping timeout: 240 seconds]
cpup has quit [Ping timeout: 250 seconds]
bb010g has joined #ruby
jackjackdripper has joined #ruby
terminalrecluse has joined #ruby
Brklyn has quit [Ping timeout: 240 seconds]
jgt4 has quit [Ping timeout: 248 seconds]
FooMunki has quit [Quit: FooMunki]
elifoster has joined #ruby
agent_white has quit [Quit: leaving]
sivoais has quit [Ping timeout: 256 seconds]
Thib has quit [Remote host closed the connection]
jackjackdripper1 has quit [Ping timeout: 252 seconds]
Felix444 has joined #ruby
shellie_ has joined #ruby
Thib has joined #ruby
sivoais has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thib has quit [Read error: Connection reset by peer]
<havenwood>
shellie_: don't use sudo to install rvm gems
adgtl has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
<havenwood>
shellie_: to get at that gem you installed: sudo rubocop
RegulationD has joined #ruby
<Ox0dea>
Don't use software that hates you.
<shellie_>
:-)
<shellie_>
thanks
adgtl has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
<eam>
anthropomorphized software in general freaks me out, actually -- regardless of how it feels
karapetyan has quit [Ping timeout: 240 seconds]
<shellie_>
havenwood: so what's the recommended installation? when I ran 'gem install rubocop' it failed with perms. Perhaps I need to run it in the rvm context somehow?
<havenwood>
eam: you shouldn't anthropomorphize software, it hates it when you do that
<havenwood>
shellie_: RVM recommends installing itself without sudo as a non-root user. You can restore permissions with: rvm fix-permissions
<shellie_>
ok, so I fixed permissions, re-tried the gem install and got the same error back (perms). I presume the rvm is not being instantiated, how can I run 'gem' in the context of rvm, so that the permissions-enabled paths apply?
sivoais has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 252 seconds]
* shellie_
apologizes for noobness, I'm only working with ruby for a few days, but came from python and understand rvm is virtualenv equivalent or similar anyway
<havenwood>
shellie_: gem install rubocop
<havenwood>
shellie_: sudo drops env
shazaum_ has quit [Quit: Leaving]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
<shellie_>
the 'gem install rubocop' yields this message: ERROR: While executing gem ... (Gem::FilePermissionError) \n You don't have write permissions for the /usr/local/rvm/gems/ruby-2.0.0-p643 directory.
davedev24 has joined #ruby
<havenwood>
shellie_: ah, so you have a system install of rvm
<shellie_>
I ran this, but maybe I did it as root? \curl -sSL https://get.rvm.io | bash -s stable
frem has quit [Quit: Connection closed for inactivity]
<Ox0dea>
If Ruby were a brother Karamazov, it'd be Ivan.
<Ox0dea>
"Everything is permitted."
oetjenj has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shellie_>
could I ask a bit more clarity on this subject? What specific cases can having global variables hurt me?
lilvim_ is now known as lilvim
<Ox0dea>
shellie_: Global variables provide very poor (read: no) encapsulation. If you write a library that uses global variables, anybody who wishes to use it must ensure that they don't use a global variable with the same name.
<toretore>
shellie_: two things use the same variable; one changes it, then the other is confused
<havenwood>
shellie_: They are aesthetically despicable. You can't universalize the maxim of using globals. If we all did it, the house of cards would tumble.
baweaver has quit [Remote host closed the connection]
<shellie_>
thanks :)
<shellie_>
I understand the issues with globals
idefine has joined #ruby
finisherr has joined #ruby
<Ox0dea>
Of course, Ruby's built-in globals are special and can have scope, but I'll say nothing more of that.
<shellie_>
so in a way, this sort of requires me to write my program with OO
<Ox0dea>
shellie_: Or FP.
<havenwood>
$RANDOM
<Ox0dea>
You stop that. <3
<shellie_>
how can you store state that needs to be accessed globally using FP?
A124 has quit [Read error: Connection reset by peer]
<toretore>
it doesn't have anything to do with fp or oo
ledestin has joined #ruby
<Ox0dea>
shellie_: The solution, either way, is to not have state that needs to be accessed globally. :P
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
global state is evil only when it is mutable, and not protected by locks
adgtl has quit [Remote host closed the connection]
<shellie_>
it should not be a problem in a single-threaded app, presumably?
<toretore>
other than that it's just a really bad idea
<havenwood>
shellie_: use your own mouse instead of everybody's mice
<eam>
what's a programmer's favorite clothing company?
<shellie_>
I find that analogy quite weak to describe global variables :)
Deck` has joined #ruby
<havenwood>
shellie_: try clicking on something...
duckpuppy has joined #ruby
A124 has joined #ruby
<havenwood>
shellie_: moving target
<havenwood>
shellie_: or is it? dunno!
<shellie_>
:-)
<havenwood>
shellie_: We use namespaces for a reason. It's for humans.
<shellie_>
funny enough, coming from python, I'm finding ruby's name spaces truly weird
<Ox0dea>
It doesn't actually have them.
<Ox0dea>
Modules are pseudo-namespaces, but they work well enough for that purpose.
<shellie_>
require 'yaml', YAML.foo < it makes no sense
<Ox0dea>
?
<havenwood>
pseudo-namespaces?
<Ox0dea>
havenwood: Insofar as we can't say `require SomeModule from 'foo'` or the like.
<havenwood>
rgr
betabet has joined #ruby
Deck` has quit [Ping timeout: 245 seconds]
<shellie_>
that's not what I meant :-)
Felix444 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 245 seconds]
<shellie_>
in python, you can 'import module' and you then reach the objects via module.<object>, not MODULE.<object> (which may not be exactly what I tried to portray above with yaml, but should help explain what I mean?)
_ht has quit [Ping timeout: 240 seconds]
<Ox0dea>
shellie_: You say `import os` and then `os.system(...)` in Python; what exactly is blowing your mind about `require 'yaml'` and then `YAML.load`?
<Ox0dea>
That module names are constants?
<lilvim>
Ox0dea: I imagine s/he's expecting yaml.load
<shellie_>
^
<Ox0dea>
shellie_: So you'd want libraries to be able to decide which names you can and can't use for local variables?
_ht has joined #ruby
juniorism has joined #ruby
<shellie_>
I'm not sure that's a question I want to answer, the problem here is not what problem that solution is solving (if it is solving a problem at all), but rather a not very logical design choice
sapslaj has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea>
It's not "logical" for an import to override your locals.
<shellie_>
I also didn't look into constants, but from your comment above, assume required modules become constants and constants are upper case in ruby?
tjohnson has quit [Quit: Connection closed for inactivity]
northfurr has joined #ruby
celly has quit [Remote host closed the connection]
<Ox0dea>
There are such things as anonymous modules, but the ones that do have names must have them capitalized, and that necessitates their being constants, yes.
sapslaj has joined #ruby
ftj has joined #ruby
bronson_ has quit [Remote host closed the connection]
<shellie_>
ok, interesting
<shellie_>
what did you mean by 'override your locals' ?
<wolffles>
my output file keeps coming out corrupted ;_;
<shellie_>
toretore: the first link is from Ox0dea
<shellie_>
Ox0dea: I get what you mean, but it's not common practice to import modules outside the global or after variables have already been declared
<Ox0dea>
It's still an arbitrary limitation.
<toretore>
shellie_: right, oops
Jonah11_ has joined #ruby
<Ox0dea>
My oops too, but it's always quiet enough to defend Ruby against the snakes.
<toretore>
wolffles: where are you getting writes from?
<wolffles>
stack overflow
<toretore>
wolffles: and what makes it corrupted? need more information
<toretore>
there's no such method on File or its ancestors
<wolffles>
i dont know i cant open it, it runs fine returns no errors
<Ox0dea>
Wat.
<toretore>
oh
<wolffles>
but it keeps saying file format is corrupted
<toretore>
i think the problem is that it's broken
<shellie_>
wolffles: what are you trying to achieve?
<Ox0dea>
wolffles: You're treating an RTF document as text.
<Ox0dea>
You're gonna have a bad time.
<wolffles>
ill try source as a text
dlitvak_ has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
travisthenavi has joined #ruby
juddey has quit [Remote host closed the connection]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travisthenavi>
Should I use Rails Installer or individually download Ruby, Rails, and everything else?
<toretore>
are you on windows?
<wolffles>
that was the problem Ox0dea
<travisthenavi>
toretore, Yes.
<toretore>
then probably the first option
pawnbox has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<toretore>
your experience is going to be shitty nonetheless, so you might just want to throw your computer out the window right away and save some time
<travisthenavi>
toretore, Why do you say that?
<toretore>
windows
jbrhbr has quit [Ping timeout: 264 seconds]
<travisthenavi>
And what do you prefer, Linux?
B1n4r10 has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
<shellie_>
maybe clarify the problem isn't being on windows, but that these tools were not made to run natively on windows, hence it may present another set of challenges :->
despai has quit [Ping timeout: 260 seconds]
<travisthenavi>
shellie_, So if I want to use Ruby and the Rails framework to develop, would you recommend an OS change, or will it not be a big deal?
pawnbox has quit [Ping timeout: 252 seconds]
<travisthenavi>
I'm new to Ruby and I just want to learn enough to be hireable as a junior developer.
<travisthenavi>
So I decided to give Rails a shot.
<toretore>
travisthenavi: i'm not 100% serious; give it a try and see if it works
<shellie_>
travisthenavi: I'm afraid I can only speculate, as I never installed rails on windows, but I'd go ahead and try 'rails installer' and if that falls through, you can always run a virtual machine with Linux and work there
<toretore>
travisthenavi: it may work fine for you for some time, but i don't know of any serious developers who don't develop specifically for windows that use it
skweek has joined #ruby
B1n4r10 has quit [Ping timeout: 248 seconds]
<travisthenavi>
Do you think it is important to learn Ruby before I dive into Rails?
<travisthenavi>
Also, do you know of any good learning resources for each?
<shellie_>
depends on what your goals are - what do you want to do/learn?
Jonah11_ has quit [Remote host closed the connection]
<shellie_>
as for learning resources, I hear the book 'the well-grounded rubyist' is good
<travisthenavi>
My goal is to gain enough skill to be hireable as a junior developer.
adgtl has joined #ruby
visudo has joined #ruby
<toretore>
so your goal isn't to learn ruby and/or rails?
Jonah11_ has joined #ruby
Rodya_ has joined #ruby
pawnbox has joined #ruby
<travisthenavi>
Well I'm leaning towards Ruby and/or Rails because that is what code bootcamps teach. I figure it is a good place to start.
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freeom has joined #ruby
konsolebox has joined #ruby
<shellie_>
I'm not sure what a code bootcamp is and how participating in one relates to your chances of getting a job
hxegon has joined #ruby
<travisthenavi>
Alright, let me ask a different question. If I want to get a junior web dev (or even software dev) job within a very limited amount of time, what technologies should I learn?
<toretore>
why do you want to get a junior web dev job?
<travisthenavi>
To make money of course!
<travisthenavi>
And because I enjoy writing code.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shellie_>
rails is likely to give you enough exposure to land on a junior role (that is, depends where, because some circles tend to keep these jobs for recent grads, who have already about 4 years of experience before they apply)
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
ss_much has joined #ruby
<travisthenavi>
shellie_, Thank you.
<travisthenavi>
Well, I have a copy of both Learn to Program and the Pickaxe Book. From what I picked up, I should start there and then move on to learning Rails.
<shellie_>
but I would recommend this path instead: learn ruby -> take a CS course (e.g learn fundamental algorithms, how a computer work and concepts, networking), then move to rails or whatever fancy schmancy web framework out there
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<travisthenavi>
Are there any text editors/IDEs that you would recommend?
Rodya_ has quit [Remote host closed the connection]
<shellie_>
I use vim
Guest35482 has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
freeom has quit [Ping timeout: 256 seconds]
<shellie_>
if you are using windows, notepad++ might be a good start
User458764 has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
hfp_work has joined #ruby
<domgetter>
travisthenavi: SublimeText is pretty nice
RegulationD has joined #ruby
adgtl has quit [Remote host closed the connection]
bronson has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
voidDotClass has joined #ruby
<voidDotClass>
What's wrong with this syntax? class Admin::AccountsController < Admin::AdminController
northfurr has quit [Quit: northfurr]
<voidDotClass>
it says 'expected ; or end of line'
Deck` has joined #ruby
braincrash has quit [Quit: bye bye]
<toretore>
voidDotClass: gist entire file
<voidDotClass>
toretore, its a barebones controller
chouhoulis has joined #ruby
<voidDotClass>
if i do 'include admin' and change that line to class Admin::AccountsController < AdminController, it works
<dev-MR>
SSHKit::Runner::ExecuteError: Exception while executing as planb@50.116.43.59: bundle exit status: 137 bundle stdout: bash: line 1: 23884 Killed ~/.rvm/bin/rvm default do bundle install --path /home/planb/staging_app/shared/bundle --without development test --deployment --quiet bundle stderr: Nothing written
<dev-MR>
anybody please help me
<baweaver>
dev-MR: ?rails
<dev-MR>
ya
<baweaver>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dev-MR>
when cap deploye
atmosx has joined #ruby
travisthenavi has quit [Ping timeout: 252 seconds]
stevemac_ has quit [Remote host closed the connection]
dev-MR has left #ruby [#ruby]
ss_much has quit [Quit: Connection closed for inactivity]
ensyde has quit [Read error: Connection reset by peer]
ensyde has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
solocshaw has quit [Ping timeout: 245 seconds]
joneshf-laptop has quit [Remote host closed the connection]
govg has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
anisha has joined #ruby
sneakerhax has joined #ruby
tvw has joined #ruby
ta_ has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0/20160123151951]]
RTG` has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
Rodya_ has joined #ruby
govg has joined #ruby
ensyde has quit [Read error: Connection reset by peer]
ensyde has joined #ruby
idefine has joined #ruby
skweek has quit [Remote host closed the connection]
skweek has joined #ruby
Brklyn has joined #ruby
workmad3_ has quit [Ping timeout: 240 seconds]
RTG` has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triangles has quit [Ping timeout: 276 seconds]
Yeomra has quit [Ping timeout: 250 seconds]
Abrin2 has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
Brklyn has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
sandstrom has joined #ruby
zenguy_pc has quit [Excess Flood]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
stardiviner has joined #ruby
saneax is now known as saneax_AFK
workmad3 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
Contigi has quit [Quit: Leaving]
saneax_AFK is now known as saneax
zenguy_pc has joined #ruby
aganov has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
adac has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
workmad3_ has joined #ruby
saneax is now known as saneax_AFK
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yeomra has joined #ruby
jottr has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Deck` has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
adac has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
stevemackinnon has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
workmad3_ has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 264 seconds]
mickey_mouse has joined #ruby
Deck` has quit [Ping timeout: 264 seconds]
claw has quit [Ping timeout: 264 seconds]
stevemackinnon has quit [Ping timeout: 245 seconds]
saneax_AFK is now known as saneax
roshanavand has joined #ruby
SOLDIERz has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
Deck` has joined #ruby
karapetyan has joined #ruby
skade has joined #ruby
solocshaw has joined #ruby
LoneHerm_ has joined #ruby
aryaching has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
kirillzh has joined #ruby
claw has joined #ruby
kirillzh has quit [Max SendQ exceeded]
Deck` has quit [Ping timeout: 252 seconds]
solars has joined #ruby
LoneHerm_ has quit [Ping timeout: 245 seconds]
infra-red has joined #ruby
duckpuppy has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
duckpuppy has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
<shevy>
any of you use some specific library for colour supporting + ruby CLI commandline? I am not too overly happy the way I use colours myself right now
infra-re_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
barajasfab has quit [Quit: Leaving]
django_ has joined #ruby
infra-red has quit [Ping timeout: 245 seconds]
wethu has quit [Quit: This computer has gone to sleep]
<django_>
starting the ruby on rails johns hopkins course on Coursera
lurch_ has joined #ruby
srenatus has joined #ruby
scepticulous has joined #ruby
<baweaver>
shevy: memorize the shell codes like a real dev
mpistone has quit [Remote host closed the connection]
<baweaver>
depends on what you're doing with it.
mpistone has joined #ruby
rakm has joined #ruby
konsolebox has joined #ruby
adgtl has quit [Remote host closed the connection]
mpistone has quit [Ping timeout: 276 seconds]
redasus has joined #ruby
dlitvak has joined #ruby
infernix has quit [Ping timeout: 252 seconds]
infra-red has joined #ruby
Burgestrand has joined #ruby
flughafen_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
infra-re_ has quit [Ping timeout: 250 seconds]
wethu has joined #ruby
Yeomra has quit [Read error: Connection reset by peer]
ta has joined #ruby
lubekpl has joined #ruby
Yeomra has joined #ruby
govg has joined #ruby
beast has joined #ruby
infernix has joined #ruby
stevemackinnon has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
ta has quit [Ping timeout: 248 seconds]
<scepticulous>
I am having trouble, that Kernel.const_defined(some-const) sometimes returns false in an rails environment. Is there anything known about this or should I not use const_defined?(name) to check before I constantize a dynamically created constant name ?
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
codecop has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
omninonsense is now known as [spoiler]
ta has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
wethu has joined #ruby
amclain has quit [Quit: Leaving]
roshanavand has joined #ruby
AlexJakeGreen has joined #ruby
mpistone has joined #ruby
Deck` has joined #ruby
moei has joined #ruby
blackms has joined #ruby
Rodya_ has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 264 seconds]
Zggb has joined #ruby
jas02 has joined #ruby
william3 has joined #ruby
AlexJakeGreen has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
hanmac has joined #ruby
redasus has quit [Ping timeout: 272 seconds]
sandstrom has joined #ruby
aryaching has quit []
william3 has quit [Ping timeout: 245 seconds]
devbug has quit [Ping timeout: 240 seconds]
ziyadb has joined #ruby
nullFxn has joined #ruby
karapetyan has joined #ruby
nullFxn is now known as edTeach
edTeach is now known as CaptainTeach
mhoungbo has joined #ruby
CaptainTeach has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
adgtl has joined #ruby
darkf has joined #ruby
TomyWork has joined #ruby
karapetyan has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
mdw has joined #ruby
mja has joined #ruby
pawnbox has joined #ruby
al2o3-cr has joined #ruby
karapetyan has joined #ruby
mja is now known as Guest35290
adac has joined #ruby
nullFxn has joined #ruby
nullFxn is now known as captainFlint
adgtl has quit [Remote host closed the connection]
captainFlint has quit [Client Quit]
<hanmac>
scepticulous: i think the problem might be some autoload stuff ... hm did you try Object.const_defined? too?
segmond has quit [Ping timeout: 252 seconds]
duncannz has quit [Remote host closed the connection]
AxonetBE has joined #ruby
karapetyan has quit [Remote host closed the connection]
einarj has joined #ruby
redasus has joined #ruby
blackmesa has joined #ruby
devbug has joined #ruby
karapetyan has joined #ruby
avril14th has joined #ruby
karapetyan has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bronson has joined #ruby
mondok has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
duckpuppy has quit [Ping timeout: 248 seconds]
stevemackinnon has quit [Remote host closed the connection]
TheHodge has joined #ruby
djbkd has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
mark2 has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
beast has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
aufi has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
Gnut has quit [Ping timeout: 250 seconds]
zenlot1 is now known as zenlot
bkxd has joined #ruby
Bloomer has joined #ruby
selfadhesivefilm has joined #ruby
Xeago has joined #ruby
TomPeed has joined #ruby
dexter-tzu has quit [Ping timeout: 260 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
jbrhbr has joined #ruby
Guest35290 has quit [Quit: leaving]
moeabdol has joined #ruby
nerium has quit [Quit: nerium]
fedexo has quit [Ping timeout: 252 seconds]
moeabdol4 has quit [Ping timeout: 256 seconds]
flughafen_ has quit [Quit: WeeChat 1.3]
Bloomer has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
joonty has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
tesuji has joined #ruby
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
adac has quit [Ping timeout: 276 seconds]
uehjvh has joined #ruby
gregf__ has quit [Ping timeout: 276 seconds]
firstdayonthejob has joined #ruby
sftrabbit has joined #ruby
elifoster has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
huyderman has joined #ruby
aufi has quit [Ping timeout: 250 seconds]
ocbtec has joined #ruby
neanderslob has joined #ruby
dseitz has joined #ruby
dexter-tzu has joined #ruby
marr has joined #ruby
dlitvak has joined #ruby
kirillzh has joined #ruby
kirillzh has quit [Max SendQ exceeded]
jgt4 has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
_ht has quit [Ping timeout: 248 seconds]
lsmola has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
infra-re_ has joined #ruby
stevemackinnon has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stevemackinnon has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
stevemackinnon has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
futilegames has joined #ruby
infra-red has quit [Ping timeout: 248 seconds]
dojobo has joined #ruby
stevemackinnon has quit [Read error: Connection reset by peer]
stevemackinnon has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Averna has joined #ruby
platzhirsch has joined #ruby
stevemackinnon has quit [Ping timeout: 272 seconds]
futilegames has quit [Quit: futilegames]
aupadhye has quit [Ping timeout: 248 seconds]
kalopsian has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
django_ has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
futilegames has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
dc1 has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
jxs_ has joined #ruby
dc1 has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
roshanavand has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
jbrhbr has quit [Quit: Leaving.]
futilegames has quit [Quit: futilegames]
redasus has quit [Ping timeout: 256 seconds]
dc1 has joined #ruby
flughafen_ has joined #ruby
<flughafen_>
shevy: i'm ready for takeoff
<shevy>
hah
<flughafen_>
was anybody here at euruko last year?
<shevy>
not me! perhaps chris2
<shevy>
or apeiros
ensyde has quit [Quit: Leaving]
<shevy>
they are the typical conference monsters
<flughafen_>
ha, ok.
N3sh108 has joined #ruby
platzhirsch has joined #ruby
<N3sh108>
hey there. I would like to fetch a page using my own default browser. I just need to be able to fetch a page which would normally require authentication without bothering with it and using the session from my browser
<N3sh108>
is that possible?
FooMunki has joined #ruby
ElFerna has joined #ruby
minimalism has quit [Ping timeout: 260 seconds]
kapowaz__ has joined #ruby
<chris2>
not me
lsmola has quit [Quit: Leaving]
stevemackinnon has joined #ruby
<shevy>
:)
djbkd has quit []
<kapowaz__>
Hi all. I'm looking for a recommendation for a framework written in Ruby that can be used for a project I'd like to create a quick and dirty prototype for. I need something that lets me run quick, regularly recurring jobs (mostly polling a JSON endpoint), at most every 30 seconds or so.
rodfersou has joined #ruby
<kapowaz__>
Ideally I'd like it to be something I can run through e.g. Heroku without too much thought for environment setup, but ideally also without the need for high worker costs (as I say, dirty prototype)
kapowaz__ is now known as kapowaz
minimalism has joined #ruby
tilllt has joined #ruby
redasus has joined #ruby
william3 has quit [Remote host closed the connection]
dajobat has joined #ruby
<tilllt>
hey people, beginner question here. I got a gem, which is a wrapper around the ffprober tool that comes with ffmpeg. it outputs metadata about mediafiles. i can see that the output contains a json hash, but i don’t know how to access it since i don’t understand what kind of data type the gem returns, if anyone could take a look, that would be great. output is here: https://gist.github.com/tilllt/73983d3579a46aed0993
n00bdev has quit [Remote host closed the connection]
ramfjord has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
<ljarvis>
kapowaz: just use plain Ruby maybe with something like Sidekiq?
marr has quit [Ping timeout: 240 seconds]
evidex has joined #ruby
<shevy>
tilllt you need to access the @json variable
<shevy>
ideally, they will have a method called .json that will allow you that
<ljarvis>
tilllt: wow they made the json ivar private
<ljarvis>
that's some awful api
<shevy>
:(
Pumukel has joined #ruby
william3 has joined #ruby
<tilllt>
shevy, ljarvis: so what are my options to get to the json then?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
Zggb has quit [Quit: Connection closed for inactivity]
nodejunkie has quit [Ping timeout: 252 seconds]
<shevy>
where is the monad hiding
dionysus69 has joined #ruby
<shevy>
it's like Waldo
<domgetter>
The Authorization class is the monad in that example
mdw has joined #ruby
Brklyn has joined #ruby
<domgetter>
it A) wraps values, B) lets you call methods on wrapped values (using #map), and C) always returns another instance of itself when you do that
User458764 has joined #ruby
law has left #ruby [#ruby]
davedev24 has joined #ruby
<kapowaz>
ljarvis: I was looking into sidekiq, but it looks more for scheduled tasks? Maybe eventmachine is the way to go?
william3 has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
workmad3_ has joined #ruby
Brklyn has quit [Ping timeout: 256 seconds]
vdamewood has quit [Quit: Life beckons.]
govg has joined #ruby
ramfjord_ has joined #ruby
oz` has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
william3 has joined #ruby
crank1988 has quit [Ping timeout: 264 seconds]
N3sh108_ has joined #ruby
n00bdev has joined #ruby
GinoManWorks_ has joined #ruby
N3sh108 has quit [Ping timeout: 264 seconds]
xMopxShell has quit [Ping timeout: 264 seconds]
M-Kodo has quit [Ping timeout: 264 seconds]
N3sh108_ is now known as N3sh108
wolffles has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
funnel has quit [Ping timeout: 264 seconds]
oz has quit [Ping timeout: 264 seconds]
zacts has quit [Ping timeout: 264 seconds]
perry has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
oz` is now known as oz
aibot__ has joined #ruby
bkxd has joined #ruby
domgetter has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
minimalism has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
<dajobat>
domgetter: Those slides were interesting, cheers.
guacamole has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
n00bdev has quit [Ping timeout: 252 seconds]
M-Kodo has joined #ruby
perry has joined #ruby
uber has joined #ruby
zacstewart has joined #ruby
bahar has joined #ruby
zacstewa_ has quit [Read error: Connection reset by peer]
Jello_Raptor has joined #ruby
ur5us has joined #ruby
spacemud has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
xMopxShell has joined #ruby
neanderslob has quit [Remote host closed the connection]
nuck has joined #ruby
crank1988 has joined #ruby
nuck is now known as Guest8906
chouhoulis has joined #ruby
mhoungbo has joined #ruby
Jardayn has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
c355e3b has joined #ruby
kalopsian has joined #ruby
mondok has joined #ruby
hightower3 has joined #ruby
minimalism has joined #ruby
jpoole has joined #ruby
firstdayonthejob has joined #ruby
jokester has joined #ruby
yxhuvud has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
jgt4 has joined #ruby
flughafen_ has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
sdothum has joined #ruby
kalopsian has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
<scepticulous>
hanmac: no, I did not. Its hard to debug since the error occurs only sometimes.
dlitvak has joined #ruby
<shellie_>
I have this, each block, where I need to track if a specific element is found and then use it after the block, so I have a 'found' variable in function block - is there a more ruby-ist way of doing this?
wolffles has quit [Quit: wolffles]
platzhirsch has left #ruby [#ruby]
AlexRussia_ has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
redasus has quit [Ping timeout: 240 seconds]
<scepticulous>
Is there a way to extract a specific element out of a ruby hash so that I end up with an array of the match and the rest of the hash ?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<scepticulous>
well no, not hash, i mean array
<scepticulous>
like match,rest = arr.myshift{|elem| elem == foo }
<scepticulous>
yes, I tried to not modify the original data.
william3 has quit [Remote host closed the connection]
<scepticulous>
paritition will work for me
<Burgestrand>
scepticulous alright, keep in mind I believe partition will return an arryified version of your hash, you need to convert either side back to a hash if you want it in that form, using Hash.[]
<scepticulous>
ok. I was confused anyway. I am working with an array. ( array of hashes )
Jonah11_ has joined #ruby
<scepticulous>
thus first,rest = partition{}.flatten seems to work
<scepticulous>
however I dont know if there is a more efficient way to move the matching element to the front
<Burgestrand>
Probably not worth it if this is just a fraction of the actual running time.
<Burgestrand>
No point in shaving off 3ms if things take 3s to run anyway.
ledestin has joined #ruby
<scepticulous>
yepp, totally agree, there is currently no need for optimization. I just wanted to make sure, that I am not misusing partition here to make it behave like someting I just missed
hamed_r has joined #ruby
Xeago has quit [Remote host closed the connection]
jottr has joined #ruby
<Burgestrand>
I can't think of any. :)
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Taxidea has joined #ruby
jgpawletko has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
mooru has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
gigetoo has joined #ruby
uehjvh has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 252 seconds]
c0m0 has joined #ruby
tilllt has quit [Read error: No route to host]
Jonah11_ has joined #ruby
Taxidea has quit [Remote host closed the connection]
Zai00 has joined #ruby
_ht has quit [Quit: Konversation terminated!]
<dajobat>
arietis: I assume you mean the :+ needs explaining?
<arietis>
yes
<EdwardIII>
hey, if i implement Enumerable but i want length... what should i do? is Enumerable the right thing to implement? .length doesn't seem to be available (i guessed maybe it would use .each?)
<shevy>
wat
<dajobat>
the :+ is a symbol which points to the plus method, injects can take symbols in. if you used :* then it would multiply them all.
avril14th has quit [Read error: Connection reset by peer]
<dajobat>
it's equivalent to doing array.inject(0) { |acc, x| acc + x} I think
Taxidea has joined #ruby
kp666 has quit [Quit: Leaving]
<shevy>
hmm question... some gems use something like:
<shevy>
VERSION = "2.1.0".freeze
Jonah11_ has quit [Ping timeout: 240 seconds]
<shevy>
why is this done?
<dajobat>
arietis: If you look at the Enumerable#inject documentation it has a little paragraph about injects where no block is passed, and what it does with the symbols.
sonOfRa has quit [Quit: Bye!]
arietis has quit [Quit: Leaving.]
akem has joined #ruby
sonOfRa has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
graffix222 has quit [Read error: Connection reset by peer]
mezcan has quit [Quit: Quitte]
adgtl has joined #ruby
blackmesa has joined #ruby
last_staff has quit [Quit: last_staff]
mdw has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
hightower4 has quit [Read error: Connection reset by peer]
hightower4 has joined #ruby
vikas027_ has joined #ruby
vikas027_ has left #ruby [#ruby]
adgtl_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
adgtl has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
Jonah11_ has joined #ruby
<heftig>
dajobat: without the 0
<heftig>
inject has no idea what the zero element is
Taxidea has quit [Ping timeout: 252 seconds]
<heftig>
i.e. the identity element
adgtl_ has quit [Remote host closed the connection]
<dajobat>
heftig: it's not the zeroth element, it's passing the value 0 to the accumulator.
despai has joined #ruby
<heftig>
dajobat: i was speaking in algebraic terms
kalopsian has quit [Ping timeout: 260 seconds]
stevemackinnon has quit [Remote host closed the connection]
<heftig>
what you said would be equivalent to inject(0, :+), not inject(:+) as you claimed
kalopsian has joined #ruby
sgambino has joined #ruby
adgtl has joined #ruby
lessless has joined #ruby
Burgestrand has joined #ruby
jgt4 has joined #ruby
govg has quit [Read error: Connection reset by peer]
<dajobat>
heftig: Ah, yeah. Thanks!
yalue has joined #ruby
govg has joined #ruby
aryaching has quit []
aryaching has joined #ruby
adgtl has quit [Ping timeout: 256 seconds]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
cdg has joined #ruby
User458764 has joined #ruby
mpistone has quit [Ping timeout: 256 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
Jonah11_ has quit [Remote host closed the connection]
adgtl has joined #ruby
<dajobat>
shevy: did you figure out the VERSION freeze thing?
<flujan>
Hello, I have some ruby scripts inside a Rails app. My script require some gems. When I start the script it will use the Gemfile of the rails app?
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
amb77 has joined #ruby
f4cl3y has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
n00bdev has joined #ruby
UtkarshRay has joined #ruby
blackms has quit [Quit: Leaving]
<EdwardIII>
hm i'm going crazy on something very basic
adgtl has quit [Ping timeout: 260 seconds]
<EdwardIII>
i've got def self.find(**opts) but in one place i'm getting ArgumentError: wrong number of arguments (1 for 0)
<Burgestrand>
flujan yes, Rails requires bundler, which in turn will utilize the Gemfile.
infra-re_ is now known as infrared
idefine has quit [Remote host closed the connection]
<EdwardIII>
.to_h results in ArgumentError: wrong number of arguments (1 for 0)
celly has joined #ruby
User458764 has joined #ruby
devbug has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
<Burgestrand>
EdwardIII keyword arguments (**options) work with symbol keys
<EdwardIII>
ah
<EdwardIII>
so what's the most estoeric way to handle this? just use .symbolize_keys?
<Burgestrand>
EdwardIII I'd advice you not to symbolize all of the param keys, it opens you up to abuse :)
<EdwardIII>
heh er well i kind of need it for another reason
<EdwardIII>
which is possibly satanic. let me show you
zacstewart has joined #ruby
<Burgestrand>
EdwardIII for one, you probably want to extract the parameters you actually want instead of passing them *all*
ramfjord_ has quit [Ping timeout: 240 seconds]
<Burgestrand>
EdwardIII if you do that, it becomes safe to symbolize the keys as well since there can never be more keys than what you extract, i.e. it'll be locked down
krzkrz has joined #ruby
adgtl has quit [Remote host closed the connection]
_ht has quit [Read error: Connection reset by peer]
<Burgestrand>
Or, well, it depends… which version of ruby?
_ht has joined #ruby
<EdwardIII>
2.2
william3 has joined #ruby
babblebre has joined #ruby
<Burgestrand>
EdwardIII ah, nice, ruby 2.2 is the first version that allows garbage collection of symbols, so not so dangerous any more
<EdwardIII>
but in a bit i will probably do some params processing of the params in the controller soon
<EdwardIII>
going from params straight to an api is kinda asking for trouble heh
amb77 has quit [Quit: amb77]
<Burgestrand>
EdwardIII additionally ruby keyword arguments are locked down so you don't need to do the fetching
<EdwardIII>
Burgestrand: well here's the dirty bit
<EdwardIII>
Burgestrand: that was just a quick check to throw an ex. if a required key was missing
aufi has joined #ruby
<shevy>
Burgestrand hmm I remember your nick as ancient from #ruby-lang but you must not have been active on IRC for like a few hundred years or so. Since when have you been writing ruby code by the way?
idefine has quit [Read error: Connection reset by peer]
nerium has quit [Client Quit]
<EdwardIII>
Burgestrand: ah, i should be using that instead then heh
Yeomra has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
adgtl has joined #ruby
<Burgestrand>
shevy very dormant for the past 4 years :)
jaiks has quit [Ping timeout: 245 seconds]
DoubleMalt has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Konversation terminated!]
ta has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
hmm
<Burgestrand>
shevy been popping my head in here every now and then during this time but not regularly
karapetyan has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<Burgestrand>
shevy used to be a regular for like two years, started doing professional ruby development at elabs (http://elabs.se/) and more or less stopped coding for hobby :)
sanguisdex has joined #ruby
davedev24 has joined #ruby
<shevy>
:(
minimalism has quit [Quit: minimalism]
despai_ has joined #ruby
TomPeed has joined #ruby
despai has quit [Ping timeout: 260 seconds]
<Burgestrand>
shevy or, well, I just stopped coding at home rather, I still had plenty of time to code non-client things at elabs :)
Deck` has quit [Ping timeout: 252 seconds]
<shevy>
work sucks the fun out of people!
<Burgestrand>
shevy in my case I was just having too much fun of one thing, so I compensated by having much fun with other things at home (such as gaming)
<Burgestrand>
but I don't disagree ;)
kobain has quit [Ping timeout: 240 seconds]
Yeomra has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
KensoDev_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brklyn has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
decoponio has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
william3 has quit [Remote host closed the connection]
amb77 has quit [Quit: amb77]
adgtl has quit [Remote host closed the connection]
amb77 has joined #ruby
saltsa has quit [Ping timeout: 248 seconds]
SwiftFox has joined #ruby
<SwiftFox>
hi
idefine has joined #ruby
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
MaveonRemaes has joined #ruby
dhollinger has joined #ruby
ruby_ has joined #ruby
johnmilton has joined #ruby
adgtl has joined #ruby
ramortegui has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
saltsa has joined #ruby
glcx has joined #ruby
sheperson has joined #ruby
<imperator>
Burgestrand, board or video?
jds has joined #ruby
dlitvak_ has joined #ruby
Macaveli has joined #ruby
amb77 has quit [Quit: amb77]
Yeomra has quit [Quit: WeeChat 1.4]
adgtl has quit [Remote host closed the connection]
x77686d has joined #ruby
Rodya_ has joined #ruby
n00bdev has joined #ruby
adgtl has joined #ruby
dajobat has quit [Ping timeout: 272 seconds]
william3 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
amb77 has joined #ruby
mdw has joined #ruby
dEPy has joined #ruby
whippythellama has joined #ruby
zast has joined #ruby
<dEPy>
Is there a way to see on how many other classes and object/class depends? Like A.constants ?
johnmilton has quit [Quit: Namaste]
mfb2 has joined #ruby
johnmilton has joined #ruby
duckpuppy has joined #ruby
mdw has quit [Client Quit]
amb77 has left #ruby [#ruby]
Rodya_ has quit [Ping timeout: 250 seconds]
BrunoSaboia has joined #ruby
n00bdev has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
akem has quit [Remote host closed the connection]
johnmilton has joined #ruby
sepp2k has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
effektz has joined #ruby
<shevy>
don't think so. you get the dependency chain perhaps via .ancestors but I don't think you can easily get more information, perhaps in ObjectSpace
BSaboia has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lorn has quit [Changing host]
Lorn has joined #ruby
<EdwardIII>
when i'm hacking around in the debugger is there a way for me to see the retval for the last line?
mary5030 has joined #ruby
FooMunki has quit [Quit: FooMunki]
Mon_Ouie has joined #ruby
agentmeerkat has joined #ruby
aganov has quit [Remote host closed the connection]
jxs_ has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
sandstrom has joined #ruby
rodfersou is now known as rodfersou|lunch
mooru has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roger_rabbit has quit [Ping timeout: 240 seconds]
<dEPy>
shevy: tnx. I'm trying to find a tool to easily check dependencies in my ruby files. Just look up what classes or modules it uses so maybe I could make a graph and see what files have too many dependencies. Any tool like that maybe?
uri_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
troulouliou_div2 has joined #ruby
scepticulous has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
scepticulous has joined #ruby
sanguisdex has quit [Read error: Connection reset by peer]
<shevy>
ah
<shevy>
that reminds me dEPy
<shevy>
I think hanmac wrote a graph-drawer in ruby graphviz
dajobat has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy>
I am not sure if it keeps any manual track of the amount of times any object is used or something, but I think he drew the proper ependency chain... the pictures created were huge though, dunno where the code is *poke hanmac*
stannard has quit [Remote host closed the connection]
dragon9783 has quit [Quit: Connection closed for inactivity]
<dEPy>
Maybe I could just go trough files and match any camel cae string including those seperated with :: :)
<dEPy>
That's the simplest thing I can think of
dlitvak_ has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
ElFerna has quit [Ping timeout: 248 seconds]
quaristice has joined #ruby
FooMunki has joined #ruby
karapetyan has joined #ruby
quaristice has quit [Client Quit]
B1n4r10 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
william3 has quit [Read error: Connection reset by peer]
infra-red has quit [Remote host closed the connection]
dionysus69 has joined #ruby
william3 has joined #ruby
karapetyan has joined #ruby
adgtl has quit [Remote host closed the connection]
shellie_ has quit [Quit: leaving]
jottr has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 250 seconds]
Shaboum has joined #ruby
karapetyan has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
idefine has quit [Remote host closed the connection]
gregf_ has left #ruby [#ruby]
karapetyan has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<dajobat>
Anyone working on anything interesting?
Conflict has quit [Ping timeout: 245 seconds]
gregf___ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
redasus has quit [Ping timeout: 245 seconds]
sepp2k has quit [Read error: Connection reset by peer]
william3 has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
uri_ has quit [Quit: --]
mechanicles has joined #ruby
mkosaki_ has quit [Ping timeout: 240 seconds]
<SaintAardvark>
Hi folks -- is there a particularly Ruby-ish way to validate JSON from a Rakefile? I can call out to jsonlint or something similar, but I'm wondering if there's a better way to do this.
rmrrn has joined #ruby
rmrrn has joined #ruby
<Gnut>
Ox0dea: Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator
<Gnut>
That's rubocop's response
william3 has joined #ruby
gizmore has joined #ruby
<Gnut>
And i don't really follow how it's expecting me to clean that up
<Ox0dea>
Gnut: It's only ambiguous to the computer; we humans can quite easily intuit what's going on. Proceed as you will.
<Gnut>
Ox0dea: Correct, i'm just wondering is there's a different way to write it so rubocop won't complain. Sorry, my ruby-fu is weak
adgtl has quit [Remote host closed the connection]
<Ox0dea>
Gnut: Just needs more parentheses.
ElFerna has quit [Ping timeout: 240 seconds]
<Ox0dea>
Alternatively, ignore the linter. It secretly hates you.
<Gnut>
Ha, tried to wing that
zambini has joined #ruby
rmrrn has quit [Ping timeout: 256 seconds]
stardiviner has joined #ruby
aep has joined #ruby
Abrin2 is now known as Abrin
mondok has joined #ruby
<shevy>
lol
codecop has quit [Remote host closed the connection]
glcx has quit [Quit: Quitte]
ElFerna has joined #ruby
<shevy>
rubocop will use its baton to whack you into submission!
duckpuppy has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 252 seconds]
<Ox0dea>
warning: `&' interpreted as argument prefix
banghous_ has joined #ruby
<Ox0dea>
Well done, parser. I'd give you a cookie if you'd eat it.
mdw has quit [Quit: Sleeping Zzzzz]
sepp2k has quit [Quit: Leaving.]
jgt4 has quit [Ping timeout: 240 seconds]
<gregf___>
shouldn't that be as simple as %w|foo bar baz|.map(&:to_sym)
Mon_Ouie has quit [Ping timeout: 272 seconds]
antgel_ has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
<Ox0dea>
No.
banghouse2 has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
<Ox0dea>
`map(&:foo)` is `map { |obj| obj.foo }`, whereas `map(&method(:foo))` is `map { |obj| foo(obj) }`.
banghous_ has left #ruby [#ruby]
celly has quit [Ping timeout: 276 seconds]
Yeomra has joined #ruby
<Ox0dea>
I suspect Gnut's #symbolize_object method is doing a little more than String#to_sym, but perhaps not.
devbug has quit [Ping timeout: 248 seconds]
DoubleMalt has quit [Remote host closed the connection]
flughafen_ has quit [Ping timeout: 252 seconds]
<gregf___>
ah - cool. thanks Ox0dea!
redasus has joined #ruby
hobodave has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
jottr has joined #ruby
tjohnson has joined #ruby
DonOtreply has joined #ruby
idefine has quit [Remote host closed the connection]
<Ox0dea>
I think tatsuo probably wants to remove the control sequences as well.
dmolina has quit [Quit: Leaving.]
mhoungbo has joined #ruby
<Ox0dea>
"\e[K" is for erasing everything to the right.
<tatsuo>
thank you for your kind! :)
Gadgetoid has left #ruby [#ruby]
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dudedudeman>
woo more parsing questions
<dudedudeman>
so i’ve got this API call i’m doing wtih httparty
SwiftFox has quit [Read error: Connection reset by peer]
<dudedudeman>
and it returns this JSON that has a ton of info, and then a child element. i want the three child elements it’s returning to me, but, it’s returning them to me with the same element name
<dudedudeman>
so body -> child -> uri uri uri
SwiftFox has joined #ruby
<dudedudeman>
when those uri’s are all different values
<dudedudeman>
any thoughts on the best way to parse that?
agentmeerkat has quit [Ping timeout: 264 seconds]
<Ox0dea>
dudedudeman: To be clear, you're getting back JSON data with an object containing a repeated key?
akem has joined #ruby
karapetyan has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 276 seconds]
Deck` has joined #ruby
lurch_ has quit [Quit: lurch_]
mechanicles has quit [Ping timeout: 240 seconds]
dudedudeman_ has joined #ruby
SwiftFox has quit [Ping timeout: 240 seconds]
dudedudeman has quit [Ping timeout: 256 seconds]
dudedudeman_ is now known as dudedudeman
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mechanicles has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
zacstewart has joined #ruby
amoeba has quit [Remote host closed the connection]
<acidrainfall>
logfile is defined there at the top, and used in file_to_array()
PedramT has joined #ruby
<acidrainfall>
Did I do that wrong?
<acidrainfall>
maybe I should pass logfile in as file?
<acidrainfall>
def file_to_array(file)?
zacstewart has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
idefine has joined #ruby
casadei has quit [Remote host closed the connection]
<acidrainfall>
Or could it be that the variable name is log_file and I used logfile in the defs? :P
polishdub has quit [Quit: Leaving]
kirillzh has quit [Client Quit]
kirillzh has joined #ruby
<Ox0dea>
acidrainfall: It's both. :P
kirillzh has quit [Client Quit]
anisha has quit [Quit: Leaving]
<Ox0dea>
The names mismatch, but you also don't have access to top-level locals from within methods.
zacstewart has joined #ruby
kirillzh has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
evidex has quit [Ping timeout: 260 seconds]
<acidrainfall>
Ox0dea: I was unaware of that
<acidrainfall>
Thank you
<Ox0dea>
Sure thing.
<acidrainfall>
Is the reverse true?
tomchap__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<acidrainfall>
my function file_to_array defines an array
<acidrainfall>
is that array available?
aep has quit [Ping timeout: 252 seconds]
<Ox0dea>
?try
<ruby[bot]>
Why don't you try it and see for yourself?
<Ox0dea>
^_^
casadei has joined #ruby
<acidrainfall>
lol
<acidrainfall>
thanks :P
aep has joined #ruby
PedramT has quit [Remote host closed the connection]
adgtl has joined #ruby
Anderson69s has joined #ruby
roshanavand has quit [Remote host closed the connection]
adgtl has quit [Read error: Connection reset by peer]
ixti has quit [Quit: WeeChat 1.4]
duckpuppy has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
mhoungbo has quit [Ping timeout: 245 seconds]
flughafen_ has quit [Ping timeout: 245 seconds]
hamed_r has quit [Quit: Leaving]
bigkevmcd has quit [Quit: outta here]
<acidrainfall>
Ox0dea: obviously not
<acidrainfall>
What's the best way to go about what I need done?
<acidrainfall>
Should I Just take that bit of code out of the function maybe?
akem has quit [Quit: Bye]
<Ox0dea>
acidrainfall: Giving your script a bit more structure would pay dividends.
<Ox0dea>
You could use a module as a namespace under which to put your state, or structure your thing as a class with instance variables, such that the methods all have access as appropriate.
ixti has joined #ruby
<acidrainfall>
let's start small ok?
<acidrainfall>
:P
<acidrainfall>
this is my first ruby script
RegulationD has joined #ruby
<acidrainfall>
I just need help with scope right now
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
KensoDev has joined #ruby
KensoDev has quit [Client Quit]
<bob_f>
Hi, is there an equivalent(ish) way of doing 'do; ... end.method` for a class ? I'm finding that `class Foo; end.cls_method` gives confusing errors.
<bob_f>
But it seems that it's not supported.
baweaver has quit [Remote host closed the connection]
<bob_f>
It's no big deal, just would've been vaguely convenient for setting up a subject for a spec.
<hanmac>
hm no that is only the Gemfile.lock fo the rack-test your project might have its own one
Rodya_ has joined #ruby
zacstewart has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
<Conflict>
hanmac: hmm my project directory is empty, i was trying to start a new project
jackjackdripper has joined #ruby
<Conflict>
rails new testapp
<Conflict>
/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'activesupport' (= 4.2.5) - did find: [activesupport-4.2.5.1] (Gem::LoadError)
<Conflict>
Checked in 'GEM_PATH=/home/conflict/.gem/ruby/2.3.0:/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1438:in `block in activate_dependencies'
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1427:in `each'
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1427:in `activate_dependencies'
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1409:in `activate'
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
<Conflict>
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in `gem'
<hanmac>
Conflict: first rails questions might be better in #rubyonrails
<Conflict>
from /usr/bin/rails:22:in `<main>'
<Conflict>
thats the full error
<Conflict>
cheers
<hanmac>
and next time use a pastie service like gist from github
ss_much has joined #ruby
<Conflict>
np
<hanmac>
Conflict: for now what i see is that some in the dependencies of rails does want a specific activesupport version but you have a newer one
<hanmac>
an easy way to fix that would be to install that special version of it
stannard has quit [Ping timeout: 252 seconds]
Deck` has joined #ruby
stannard has joined #ruby
ta has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
chouhoul_ has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
agent_white has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 250 seconds]
tomchap__ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
casadei has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
dudedudeman has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
<adgtl>
Did Ruby get |> operator?
zacstewart has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
<kspencer>
just so i know, if i ever see it, what does that do adgtl
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
ldnunes has quit [Quit: Leaving]
toretore has quit [Ping timeout: 276 seconds]
Sucks has quit [Read error: Connection reset by peer]
daivyk has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
zast has joined #ruby
agentmeerkat has joined #ruby
<Ox0dea>
adgtl: You're still missing the bangarang (!~). :P
f3ttX] has joined #ruby
freerobby has joined #ruby
konsolebox has joined #ruby
dlitvak_ has joined #ruby
momomomomo has joined #ruby
adgtl has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
hxegon_AFK is now known as hxegon
snguyen has joined #ruby
duncannz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
baweaver has joined #ruby
yfeldblum has joined #ruby
tilllt has joined #ruby
dupa has quit [Quit: This computer has gone to sleep]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
mfb2 has quit [Remote host closed the connection]
nazrath has left #ruby [#ruby]
ur5us has joined #ruby
DonOtreply has quit [Ping timeout: 276 seconds]
AciD` has joined #ruby
chipotle has joined #ruby
<AciD`>
hi. Big ruby noob here. I'm trying to install scss_lint following this installation guide (https://github.com/brigade/scss-lint#installation), but I really don't know what 'bundle install' do, nor where I should create the 'GemFile'. I want to be able to use scss_lint from my IDE, so where should I finish that installation (and with which user)?
baweaver has quit [Ping timeout: 276 seconds]
krobzaur has quit [Quit: WeeChat 1.2]
momomomomo has quit [Quit: momomomomo]
sftrabbit has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
symbol has joined #ruby
DonOtreply has joined #ruby
blackgoat has joined #ruby
dupa has joined #ruby
<Mon_Ouie>
If you're not using Bundler, just use 'gem install scss_lint' and make sure the directory where the binaries are stored is in your PATH environment variable
<Mon_Ouie>
(gem should warn you after the install if that isn't the case, as well as tell you what that directory is)
Rodya_ has joined #ruby
Spami has joined #ruby
<pipework>
Not using bundler without using gemsets sounds horrid.
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
william3 has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
last_staff has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
n00bdev has quit [Remote host closed the connection]
toretore has joined #ruby
dionysus69 has joined #ruby
danman has joined #ruby
idefine has joined #ruby
TomPeed has joined #ruby
adgtl has joined #ruby
mhoungbo has quit [Ping timeout: 240 seconds]
adgtl has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
govg has quit [Ping timeout: 245 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
jonathanwallace_ has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<adaedra>
shevy: so right now, it would be as if I just came to the channel and said "long live the old german double-s character"
jackjackdripper has quit [Quit: Leaving.]
<shevy>
the swiss did away with it!
<shevy>
we here still must use it... :(
jackjackdripper has joined #ruby
sheperson has quit [Ping timeout: 272 seconds]
jonathanwallace_ has joined #ruby
hxegon is now known as hxegon_AFK
dlitvak has joined #ruby
s0n1c- has joined #ruby
tomchap__ has joined #ruby
s0n1c- has quit [Changing host]
s0n1c- has joined #ruby
x77686d has joined #ruby
tomchap__ has quit [Client Quit]
ElFerna has quit [Quit: WeeChat 1.3]
<baweaver>
django_: This is the ruby channel. It would be better to ask in a security channel.
einarj has quit [Read error: Connection reset by peer]
heeih has joined #ruby
einarj has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
tilllt has quit [Quit: tilllt]
blackgoat has quit [Quit: WeeChat 1.3]
mfb2 has joined #ruby
CloCkWeRX has joined #ruby
benlieb has quit [Quit: benlieb]
arooni has joined #ruby
johnmilton has quit [Quit: Namaste]
yfeldblum has quit [Ping timeout: 252 seconds]
Al2O3 has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
jonathanwallace_ has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
Al2O3 has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 252 seconds]
Cohedrin has joined #ruby
bluOxigen_ has joined #ruby
benlieb has joined #ruby
tomchap__ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bronson has joined #ruby
mfb2 has joined #ruby
ropeney has joined #ruby
ESpiney has quit [Ping timeout: 252 seconds]
benlieb has quit [Client Quit]
ixti has quit [Quit: WeeChat 1.4]
Jackneill has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
B1n4r10 has quit [Ping timeout: 245 seconds]
polishdub has quit [Quit: Leaving]
TomyLobo has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
ljames has joined #ruby
flughafen_ has joined #ruby
yaroslav has joined #ruby
devbug has joined #ruby
crixer is now known as crowell
benlieb has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
jgpawletko has joined #ruby
neohunter has joined #ruby
hxegon_AFK has quit [Quit: BRB]
theunraveler has quit [Remote host closed the connection]
theunraveler has joined #ruby
dc1 has joined #ruby
CloCkWeRX has joined #ruby
theunraveler has quit [Client Quit]
kies^ has joined #ruby
heeih has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
celly has quit [Ping timeout: 264 seconds]
einarj has joined #ruby
moeabdol has joined #ruby
codecop has quit [Remote host closed the connection]
dudedudeman has quit [Quit: dudedudeman]
pushcx has joined #ruby
vdamewood has joined #ruby
<shevy>
hmmm I am trying to come up with a convention...
<shevy>
say there is a class called Foobar (and lots of other classes). Since some time I have added the option to have output from commandline programs, be prefixed with the name of the class
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
colourized too. So we have something like:
<shevy>
Foobar: Removing empty directories.
<shevy>
A bit later, I also decided that I should also display the proper namespace... so I have output such as Foo::Bar: now
srenatus has quit [Quit: Connection closed for inactivity]
<shevy>
And yesterday... I wondered whether I should also denote any travel path, say that you have a namespace Foo, and it invokes some class in namespace Bar
Spami has quit [Quit: This computer has gone to sleep]
zacstewart has quit [Ping timeout: 256 seconds]
mondok has quit [Remote host closed the connection]
pawnbox has joined #ruby
mondok has joined #ruby
travisthenavi has quit [Ping timeout: 276 seconds]
s0n1c- has joined #ruby
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has joined #ruby
zacstewart has joined #ruby
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
dc1 has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 240 seconds]
mg^2 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
sftrabbit has quit [Quit: sftrabbit]
Rickmasta has joined #ruby
MaveonRemaes has quit [Quit: Leaving]
casadei has quit [Ping timeout: 260 seconds]
persistence has quit [Ping timeout: 256 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
skweek has joined #ruby
sepp2k has joined #ruby
Zai00 has quit [Quit: Zai00]
sandstrom has joined #ruby
<pizzaops>
Anybody here with experience working with SOAP APIs in Ruby? As in leveraging them, not building them (god forbid). Most of the libraries seem unmaintained, although Savon has recent commits.
<pizzaops>
My question I guess being, what library did you use/like, if any?