« first day (222 days earlier)      last day (3033 days later) » 

1:15 AM
@AsmeJust That's exactly right.
 
OK, Thank.
I like the fact that we have many options to do things, the only downside is you really have to get a solid understanding of how Ruby work, and not only a basic one...
 
@AsmeJust That's true. Ruby is a bit like Perl in that respect. Actually, a lot like Perl.
 
1:39 AM
I just heard about pearl, never take a look on it yet. I learned Ruby in "one" day with The Little Book Of Ruby book, It was SOOO great cause everything was designed has I would if I had to design a programming language... so learning it was fast... compared to language like Java... However, that was not the case with Rails ... even though I didn't have much difficulties yet... Too much files and configuration makes me lost as a newbi.
 
2:14 AM
@WayneConrad I just take a brief look to Pearl... not for I think... it look so oldish
 
@AsmeJust Yeah, Perl has an awful syntax. Not pretty like Ruby. But what Perl does have, and what Ruby got from Perl, is the idea that it's OK that there be more than one way to do things.
 
@WayneConrad yeah the syntax... The only language I know similar to Ruby (when it comes to syntax) is the new Swift language by Apple.
 
Julia's syntax reminds me of Ruby, too.
 
2:41 AM
@WayneConrad Waaw, never hear about Julia till today.
 
I've had my eye on it. It has some significant strengths, especially in numeric processing, but I think it will be good for more than that.
 
@WayneConrad ha ok... I think it's too advanced for me... Sounds like Haskell.
 
Well, anyhow. I'm glad you've found Ruby. I hope you enjoy it as much as we do.
 
@WayneConrad yup, Am glad. Thanks for the chat... It was great for me.
 
@AsmeJust Ditto! I look forward to chatting again.
 
 
7 hours later…
9:42 AM
mornin
 
10:13 AM
Good morning
 
10:35 AM
Small problem that's been giving me a headache wonder if you guys ever saw something like it, when I attempt to upload a file using paperclip and active admin i get the following error
Exception ArgumentError in Rack application object (could not find a temporary directory)
 
@PatsyIssa No, sorry. What OS?
 
Ubuntu
12.04
 
Very strange.
 
Yup at first i thought it was a permission error, so I 777 all the public folders that are meant to have something uploaded to them
 
1
Q: Rails could not find a temporary directory (ArgumentError)

Cristian Eduardo Lehuede LyonI'm uploading my Rails proyect to a Ubuntu Server running 12.04LTS and I can't seem to fix this issue! Whether I do a bundle install or try to use the whenever gem I get that error! I've read a lot but still I'm unable to fix it /lib/ruby/2.0.0/tmpdir.rb:34:in `tmpdir': could not find a temporar...

 
10:42 AM
I remember doing that last night let me recheck
 
10:55 AM
Added it to the env variable didn't work, does the tmp directory need a 777 perm?
 
11:13 AM
@PatsyIssa I saw another answer that said that it needed 1777 perm:
0
Q: Passenger Could not find a temporary directory

Clayton SelbyI am getting some 500 errors in my Passenger Rails app. When looking at the log it appears passenger cannot access the /tmp dir. I have validated that it is there and has RW access to root, and then tried www-data. What is going on here? 2014-01-14 16:01:16.6573 20624/7fa7c8806700 Pool2/Sma...

 
Yup got to that one just did it it had drwxrwxrwx instead of drwxrwxrwt
Salvation :DDDD
Cheers for the help @WayneConrad :D
 
Woohoo!
 
11:26 AM
finally i can have lunch :P
 
It's only 0430 here. A ways away from lunch.
 
2:33 here
 
11:45 AM
Good morning
 
mornin o/
 
It seems I spend most of time fighting stupid things that make no sense. Like a server that was serving publically, and is now somehow only bound to 127.0.0.1 instead of 0.0.0.0. For no reason.
 
If it was easy you'd loose interest ^^
 
Heh. Well. I could stand it to be just a little bit less interesting.
 
There's always a reason, and it never makes sense
 
11:51 AM
In this case, I told rackup to bind to 0.0.0.0, which is supposed to be the default, and it worked. So, the default isn't the default, apparently.
 
I believe the default is defined by the server rackup launches, isn't it?
So if it suddenly started launching webrick instead of puma, or something
 
In this case, I'm running geminabox. Which is an adventure. Looks like it ought to be easy.
 
12:05 PM
There. Got it.
As usual, it was a combination of me == stupid, and program == buggy. Put those two together, and it's fun times!
 
 
1 hour later…
1:09 PM
Can I borrow your brain for a second, @WayneConrad?
I have a hash filled with keys *, *lt*, and *rt*, where * are anything. I want to select all *lt* && *rt* such that both values aren't null
 
You want all the non-null values which have keys that match /lt/ or /rt/?
 
No, lt and rt go together, left and right. If both are null, discard
 
I don't get it.
 
D=
 
Vote to close, unclear what you are asking <grin>
 
1:19 PM
@WayneConrad Hello... Am ready for another day with Rails...
 
@AsmeJust Hello again!
 
resp.select do |k, v|
	flag = false
	if k.to_s.include? 'lt'
		right_key = k.to_s.sub('lt', 'rt').to_sym
		flag = v or resp[right_key]
	end
	if k.to_s.include? 'rt'
		left_key = k.to_s.sub('rt', 'lt').to_sym
		flag = v or resp[left_key]
	end
	flag
end
It works. It's gross, though
 
@Cereal What does the input data look like?
BTW, prefer "||" to "or". "or" has surprising precedence.
 
1:37 PM
Might be a stupid question but shouldn't .gitignore have the vendor/bundle folder in it as well?
I m dirty deploying and the last commit added the entire bundle folder 7k files
Disregard my last question, i installed the bundle in the project instead of the system that's why it's showing up
 
Disregarded :)
I was just regarding it, but I stopped.
 
hahahaha
 
1:53 PM
@Cereal is this a little better?
```resp.select do |k, v|
flag = false
key = k.to_s.gsub(/(lt|rt)/, 'lt' => 'rt', 'rt' => 'lt' ).to_sym
flag = v or resp[key]
end```
 
That's close to what I changed it to, but yours is shorter. Lemme ehck
 
go forth, and use or no more
 
:S will do
 
@jtzero Hit ctrl+ k
@jtzero Your code seems to work. I replace or with ||, though. I had no idea you could do that with gsub
 
2:02 PM
  resp = resp.select do |k, v|
    k.to_s =~ /lt|rt/
  end
  resp = {} if resp.values.all?(&:nil?)
 
I used_to/still do a lot of data processing, gsub and I became instant friends
 
That last line could also be resp = {} unless resp.values.any?
 
@WayneConrad I don't even understand what that does.
 
I think it might not do exactly what your code does. My spec is, I think, missing some cases.
Which part don't you understand?
 
returns empty object unless finds values?
 
2:07 PM
Returns empty object if all of the values are falsey.
 
ohh oki
 
@WayneConrad I Don't think that script works?

for example
{ rtthing: nil, ltthing: nil, rtthang: 1, ltthang: 1}

Would yours not return ntthing?
 
@Cereal Yes, that's the case my spec didn't have. Let me add it.
Oh, never mind. I don't think I'll beat @jtzero's solution.
 
@jtzero's solution actually still returns values without rt or lt in them, which is good for me too
 
WooHoo I win via technicality, the best way to win --jk
 
2:17 PM
Haha!
You mighty hunter of code, you.
 
I'm so rusty. :( All of my development has been javascript lately. Nearly no ruby
 
mine's been a toss up between Mumps (no not the disease but just as ugly) and ruby
 
Hm, I wonder
!!summon
 
3:07 PM
@Cereal summoning caprica?
 
I had such high hopes
 
need to summon her from the js room
@mikedidthis is gonna send her our way
tadaaa
 
!!live
 
@mikedidthis I'm not dead! Honest!
 
Woo!
 
3:11 PM
@mikedidthis cheers
 
\o/
 
We mostly hangout here

HTML / CSS / WebDesign

This room is now defunct. RIP.
 
Ceylons? What?
 
Ceylons?
Also @easwee @TylerH @rlemon o/
 
@PatsyIssa just passing by since you posted link
 
3:37 PM
@WayneConrad She's a bot
 
With some useful commands
!!define potato
 
@PatsyIssa potato A plant tuber, Solanum tuberosum, eaten as a starchy vegetable, particularly in the Americas and Europe
 
and less than useful commands
!!slidepoop
 
@Cereal That didn't make much sense. Use the !!/help command to learn more.
in JavaScript, Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
hahahahaha
 
3:41 PM
!!/help
 
@WayneConrad Information on interacting with me can be found at this page
 
!!/bring-me-a-latte
 
@WayneConrad That didn't make much sense. Use the !!/help command to learn more.
 
!!/sudo bring-me-a-latte
No latte. I think it's broken.
 
!!tel WayneConrad I brought you a latte
 
3:43 PM
@WayneConrad I brought you a latte
 
Haha!
 
4:11 PM
@Cereal Where did this machine come from? I know, resurrection ship and all that... but how did it arrive here?
 
@Zirak made it, @mikedidthis brought it here
 
Cool
 
She lives in @rlemon 's browser
 
She has a better chance of answering Rails questions than I do
3
 
True story
 
4:14 PM
@Cereal If anyone asks, I did nothing.
 
She liven's up the chat :P
 
And confuses newcomers
 
!!youtube rage against the machine
 
Stahp
 
4:14 PM
HAMMAHTIME!
 
Halt
 
HAMMERZEIT!
 
!!cowthink the bot is cool!
 
 _________________
( the bot is cool! )
 -----------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
How would I get -[A-z]* to make -wepfijwepifn but not just -
 
4:33 PM
Change * to +
 
Sorcery
 
4:47 PM
!!magic
 
5:46 PM
!!cowthink hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue hue
 
 _________________________________________
( hue hue hue hue hue hue hue hue hue hue  )
( hue hue hue hue hue hue hue hue hue hue  )
( hue hue hue hue hue hue hue hue hue hue  )
( hue hue hue hue hue hue                  )
 -----------------------------------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
:D
good script
 
!!cowsay e=ಠಠ T=\/ wut chu say?
 
 _____________
< wut chu say? >
 -------------
        \   ^__^
         \  (ಠಠ)\_______
            (__)\       )\/\
             \/ ||----w |
                ||     ||
 
:D
 
5:50 PM
t.t ruby room !== sandbox
Holy cow, you can change the eyes
 
6:17 PM
!!cowsay I'm touring complete
 
 _____________________
< I'm touring complete >
 ---------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
that's exactly what a non-touring complete cow would say!...wait or would it? `:-\
 
You might be thinking of the Turing complete cow. The touring complete cow is just one that's been everywhere.
2
 
the cow might not be Turing complete - but I sure am.
 
Heh!
It would be hilarious if the bot could evaluate expressions in the jk calculus. Then it would be Turing complete.
 
6:25 PM
!!> navigator.geolocation.getCurrentPosition(function(position){ console.log(position); });
 
@rlemon "TypeError: navigator.geolocation is undefined"
 
I wonder..
yea blocked
yay!
 
!!> console.log("do");
console.log("you handle newlines");
 
@Cereal "undefined" Logged: "do"
 
!!> 1 + (2 * (3 / 4.0))
 
6:30 PM
@WayneConrad 2.5
 
!!> methods
 
@WayneConrad "ReferenceError: methods is not defined"
 
Ah, a clean room context.
!!> 10.times.select(&:even)
 
@WayneConrad "SyntaxError: identifier starts immediately after numeric literal"
 
!!> 10.times.select(&:even?)
 
6:32 PM
@WayneConrad "SyntaxError: identifier starts immediately after numeric literal"
 
Ah. It's not Ruby.
 
Javascript
!!c> for coffeescript
 
@Cereal Could not process input. Error: unexpected end of input on line 8
 
She's opensource, I'm sure you could find a way to get her to eval ruby
 
I guess she is Turing complete then. As well as having been everywhere.
 
6:40 PM
could embed hotruby into it
 
I was thinking pass the snippet off to ideone or something, but sure
that would probabky work too
 
or maybe opal? does that work on the fly?
 
Maybe she can have a 6502 simulator, and we can pass her some hex bytecodes...
 
We should fork her and make her super ruby specific
 
6:44 PM
No, wait. FORTRAN!
 
XD
 
7:21 PM
I think I have a use for the flip flop operator
this is exciting
 
If you're looking for someone to talk you out of it, it's probably not me.
 
Super exciting
 
nice
Ever find a use for #tr ? I always just end up using #sub or #gsub instead
 
Ditto
 
 
2 hours later…
9:34 PM
@jtzero I just grepped our codebase of ~800k lines for calls to String#tr. Not a single one. Found about 1000 calls to String#gsub.
 
2 hours later >.<
 
What's the hurry? :)
 
Are you gonna fork caprica?
 
That's kinda personal...
 
That sounded wrong :P
 
9:37 PM
Heh. No, I've got no Javascript mojo.
 
I m fighting with ubuntu right now, won't recognize my windows 7 install on an ssd
 
Does it see the SSD at all?
 
only if i go into manual partitioning
Auto install only sees my second hdd
 
Are you able to mount it manually using the "mount" command?
 
I can run mount even before ubuntu being installed?
Rebooting now and opening up my laptop brb
 
9:47 PM
Oh, you're installing ubuntu? Ah.
 
Yup installing as dual boot
 
I see.
 
 
2 hours later…
11:41 PM
@WayneConrad well it's nice to know I'm not the only one
 
@jtzero Same here
 

« first day (222 days earlier)      last day (3033 days later) »