« first day (1543 days earlier)      last day (3403 days later) » 

8:00 PM
Get drunk now
I feel super saucy today
 
@ZachSaucier he's trying to steal your thunder
get him!
 
That's a title you don't see everyday
 
my cats like to sit in my pants while I poop
it's annoying
 
I poop on my cats
 
8:01 PM
@SomeKittens @rlemon is going to like it but I'm out having a beer with friends, also tomorrow.
 
more beer? How are you not fat?
 
@BenjaminGruenbaum @SomeKittens I'm going to like what?
 
@rlemon what was it?
 
user1596138
-1
Q: How to include JavaScript in PHP to speed up a website

Davor SuljićIn this script, I have a PHP block of code that allows me to get video data from my database and JavaScript code, inside the PHP, that presents them as two images, video image and an image of a play button over it. When the user clicks that play button image, the second part of the JavaScript co...

 
user1596138
Dat title
 
8:04 PM
I really wish you could see the upvote downvote counts on imgur comments...
 
@FlorianMargaine nw-gyp needed to be brought up to date
 
I've got a comment that got 600 points and about 10-15 angry replies yesterday... I'm betting the downvote count is pretty high too.
 
user1596138
@rlemon You ever get flees on your manly bits?
 
@Jhawins no, but cat hair in the boxers is not fun
(neither of my cats have ever had flees, which is surprising - one was a farm cat, the other was a rescue from outdoors )
 
user1596138
lol that'd be weird
 
user1596138
8:07 PM
My dog likes to get in the shower with me.
 
my one cat does. he doesn't get under the water, but stands just out of reach
I think he enjoys the steam
 
user1596138
We have a ferret and it jumped in the shower one time while I had my eyes closed washing my hair. I freaked the fuck out!
 
fuck, I'm so pumped - I can't believe it is working
it's like christmas
 
user1596138
You sent the ferret after me?
 
npm clean; npm install nw-gyp -g; node-pre-gyp rebuild --runtime=node-webkit --target=0.11.2 # then rename the folder from node-webkit-v0.11.2* to node-webkit-v14*
and it was such a simple fix
 
8:11 PM
my life is over im hooked on reddit
 
I've never liked reddit
I'll stick to my imgur
 
@rlemon haha np
glad you got it working!
 
@Loktar ohh so am I
I was about to give up there
 
@BenjaminGruenbaum Senior-level Israeli tech guy looking for new adventures.
 
I started trying to solve this before the holidays
 
8:13 PM
Should I give him your contact info?
 
I feel bad for you man
always having to merge the physical world and the web world lol
 
At least it wasn't php
always a silver lining
 
@SomeGuy dude, are you being humped by mickey mouse?
 
@BenjaminGruenbaum keep it up
2
@rlemon such hump much mickey some guy
 
@FlorianMargaine ummm ...
 
user1596138
8:16 PM
 
@rlemon yeah, he's got some catching up.
 
@Jhawins it's only like 21% of the rooms fucks.
2
 
user1596138
 
the counts are all bound to be high
I have like 12% of the chats total messages
 
user1596138
 
my only current claim to fame is that I'm the most spoken chat user network wide (afaik)
 
my claim to fame is that everyone's hates me 'cause they aint me.
 
what's the most particularly extensible front end template framework?
 
@corvid ejs?
 
8:21 PM
I dropped EJS very recently in favour of Dust
 
ejs is great. does all things
 
I've used EJS before, just never on anything of scope
 
I use ejs in all of my projects now
 
Same here. It reminds me of classic asp, I like it
 
They took out essential features
 
8:22 PM
I like that it is just HTML and JS
 
which is why I switched
 
@rlemon yeah exactly
 
feels so natural
 
how does it differ from, for example, underscore templates?
 
you can just include stuff you need to which I like
 
8:23 PM
yup, everything in ejs is just easy (for me)
once you get a syntax guide, you're rolling
 
Room challenge: given two users, find out who used what word the most.
 
EJS no longer supports "layouts" (which is a problem for me)
 
@corvid its server side
 
@rlemon You mean yo mama's in it, too?
 
@SomeKittens so run two queries on the search page
 
8:23 PM
@SomeKittens oh I like that
 
@Zirak yea man
<%-dat.hoe%>
 
@rlemon Nope, throw in some D3 or highcharts
 
@SomeKittens I might write a scraper
 
You mean, usage of word over time?
 
I drank the css preprocessor Koolaid, but not the "totally not HTML to make HTML to save time" koolaid
thats why EJS is GrReeeeat
 
8:24 PM
someone in the HTML room wrote one, but it didn't look at the entire history
just a few weeks I think
@Loktar I can't stand Jade
 
Jade's much better. So much easier to see what's going on at a glance.
 
> here, write HTML by not writing HTML
Jade is confusing as fuck compared to a tag based layout
 
Hey guys, I get a syntax error if I pass in the following in dot notation. Is there another way to notate this controller.location data (besides a new variable)? function($scope, $modal, controllers.location){}]);
 
Jade's syntax is just as gross as coffeescript, so EJS is better in that regard, but it still lacks important features
 
controllers['location'] @taco
 
8:26 PM
@taco wat?
 
@NickDugger Dust doesnt look bad either
 {title}
 <ul>
 {#names}
  <li>{name}</li>{~n}
 {/names}
 </ul>
 
You're trying to name your argument controllers.location?
 
thanks, @rlemon that's what I was looking for
 
Meh, I'm not a huge fan of it, but it does what I need
I loved EJS, but I needed some features that it took out
 
function($scope, $modal, controllers.location){}
 
8:27 PM
@Zirak I didn't even notice that
 
I'm not hallucinating, right? You're naming your argument controllers.location?
 
unless it is angular voodoo that isn't allowed @taco ^
 
@Loktar dust was oook
 
yeah, It's not allowed
 
It's got several different implementations, with their own quirks, so finding help/docs is not fun
 
8:28 PM
I was looking for something like controllers['location'] but that doesn't work either
 
because it is an argument in the function
 
Look again at what you're trying to do
 
user1596138
10
Q: Users who can see deleted messages can one-box them in chat

StrixVariaIf a user can see a deleted message (either because it's his own message or he's a room owner or moderator), then if he posts a link to the message, it will one-box in chat, even though it's deleted. If another user (who can't see the deleted message) posts the same link, then it will not one-box...

 
user1596138
Hey there was a post about that it turns out
 
You're trying to name a variable
 
8:28 PM
function foo(a,b,c.d ???) {}
 
3
A: Templating language for both client-side and server-side rendering

RaynosUse EJS. It's pretty much got all the features you ask. It can be used with express.js out of the box and it works nicely on the client. As a bonus I would use backbone.js to do MVC on the client & server. Of course this does rely on node.js. I feel that using express, now & backbone allows yo...

Raynos supported EJS way back in the day
 
@Zirak, it's from this SO answer: stackoverflow.com/questions/26835846/…
 
lol jeeze.. 6 years ago now :/
 
@taco he doesn't have an object property for an argument?
 
@taco Where do you see that?
 
user1596138
8:30 PM
@Loktar Almost 4 ;P
 
@Loktar ohh god. I wasn't even programming 6 years ago
 
@Jhawins wtf I am retarded.
 
so main is down for me
 
user1596138
@Loktar It worked!!! lmao
 
LoginApp.controller(...) line that you probably saw
 
8:31 PM
hahaha I shouldnt be a programmer.. I'm bad at basic math
jesus.. 6 years.. wth
 
My math is weaker than scrawny Rob Lowe
 
user1596138
loktar.currentTime(curTime - 2years)
 
haha
 
LoginApp.controller('ModalInstanceCtrl',  ['$scope', '$modalInstance', 'modalData', function($scope, $modalInstance, modalData){
  ...
}]);
@taco Where?
 
8:31 PM
@Loktar haha you're old.
 
user1596138
TeleportJS
 
And nevermind that. Just think about it for a second.
 
> Kids let me tell you a story that happened 10 years ago
 
@taco BOOM! WHAT NOW SON! YOU JUST GOT TORN UP!
 
> Dad that happened yesterday
 
8:32 PM
@Zirak, yep that's the line
 
You're naming a variable. How can a variable name contain a period?
 
s/that happened 10 years ago/about how I met your mother/
@taco try this. var foo.bar = 1; that is what you are trying to do (essentially)
 
user1596138
s/.*/no/
 
I was trying to convert my code to his, to see what would be the point of doing that @Zirak
I'm using this:

app.controller('locationCtrl', ['$scope', '$modal', 'location', controllers.location]);
 
ok, that's much more logical
 
8:33 PM
but anyhow, I guess I'm missing something. :|
 
Now you're not trying to name a variable with a period, but accessing some property
 
I wanted to see what would happen if I put a function there
 
@taco controllers.location should be a function
 
it is
 
Me no understando problemo
 
8:34 PM
Don't mind me. I was trying to try something I didn't comprehend. Thought it would be simple, but I have the syntax wrong
so yeah, it seems I have to turn controllers.location function into locVar variable to pass it
But I guess all that would gain me is the function would be inline?
It's not really clean, so I don't see the purpose of doing it that way. It was just a mental excercise for me to see why that guy recommended doing it that way
Do I lose cool points or something for asking a dumb question now?
 
yes
 
:(
 
@taco but dont worry man, with a name like taco you started out with an unfair amount to begin with
 
yeah but if you remember I was accidentally "Anonymous" as well
 
if we lost cool points for asking dumb questions i'd have been stuffed in a locker by now
to be fair it would have to be a rather large locker though
 
8:41 PM
we could chop you up
no biggie
 
@SomeKittens Renamed to something else, and being demoed to my tech team on Friday!
 
@phenomnomnominal Boooo - that logo was awesome
pls share
 
Hopefully logo will be staying
Tentative title is Yotractor, but I'm not sold on it completely.
 
Is there anyone available to answer a question about Node.js + Angular?
 
user1596138
> Angular is on topic here stop asking. Don't ask to ask just ask. // room description ;P
 
8:43 PM
Node.js however is not.
 
node.js is terrible and if you use it you are a terrible person almost got the quote right
 
now IO.js, that's the real party
 
user1596138
Use IO.js
 
IO.js? really guys?
The Javascript community moves too fast for me. lol
 
@taco yes, I've never been more serious in all my life.
 
8:44 PM
io.js can suck it
node.js fo lyfe
 
weren't we just talking about IO.js in november? I guess it is gonna split up the community
 
lol, that video is for version 0.6.9... common rlemon... common
 
@Phil the guy is a troll regardless of the version
everything he says in the video is stupid
I called him out on youtube for being a scammer and he actually replied to my youtube post recently.
 
oh, haha, I didn't spend much time watching it... other then seeing the version number
 
"Popular thing is bad, give me ad revenue"
 
8:47 PM
SomeKittens is bad
/me waits for the ad revenue
 
$$$
 
wait, were you guys serious about saying that node.js is not permissable here?
 
@Phil we were being sarcastic
 
hahaha
okay
 
pretty much everything but Java is on topic here
shit, we even put up with PHP most days
1 message moved to Java
 
8:48 PM
@rlemon, I dunno, Java is short for JavaScript.
 
@phenomnomnominal actually, JavaScript is just a subset of Java
 
@rlemon ^^
 
it is Java's scripting language
 
Quick question.

I am using Node.js to server up a static index.html page that has <ng-view>. But when I use my router.use('/*') it picks up all static files like css and js

I am using app.use(express.static('/public')); prior to the catch all route...
 
app.use(express.static(__dirname  + '/public'));
 
8:49 PM
I have googled for hours, but they all seem to be using a view engine like jade which I do not want to do
 
@ssube HA! you think I'm popular.
 
rlemon > google
 
@SomeKittens With a face like that, you'd be very popular in West Hollywood ;)
 
tried that rlemon, doesn't work
 
doesn't fix the issue at hand, but you probably should (for sanity sake) use that
 
8:50 PM
if I don't do anythingin the route, it will server up my static files
 
@monners Is that "ha ur gay" or "ha you look like the guy from Home Alone"?
 
can you show us more of the code?
 
@SomeKittens Can't it be both?
 
@monners fair enough
 
yes, of what file? routes.js, server.js?
 
8:51 PM
@monners shut up and go double fist a coffee and redbull some more
@Phil where you setup the server
app.set and app.use crap
 
@rlemon I was actually just thinking about doing that. Already got the redbull (I assume you mean the drinks...)
 
var http = require('http'),
express = require('express'),
app = express(),
routes = require('./routes.js');

/* init static directory */
app.use(express.static(__dirname + '/public'));

/* mount to app, router handles all api routes */
app.use(routes.getRouter());

http.createServer(app).listen(3000);
 
Hey @rlemon did you send any message about your rlemon's 12 day's ?
 
@dievardump no, but thankyou for reminding me
now, someone remind me when I'm not at work! :P
 
Aha ok ^^
 
8:52 PM
!!nudge 3h prizes
 
@rlemon Nudge #1 registered.
 
I was afraid I missed the mail :o
 
@Phil and how do you render the page?
res.end()
 
Is it still time to wish everyone an Happy new year ?
 
?
 
8:53 PM
Hello fellow code lovers
 
@Catgocat I'm a code fighter, not a love
 
I'm a code artist, not lover.
 
I just tickle my keyboard until it pees fun
 
that is the part I am not too familiar with. because app.use(express.static(__dirname + '/public')); renders the page
 
8:54 PM
code slut?
 
( . )( . ) // bewbs
 
@Phil no, that just sets up where static resources come from
 
but in that directory is index.html
 
Hey guys! I have a new tablet and almost every day it is connected to te wifi of my House and one time it disconnected and it cannot be connected again while it tries to connect. Consequently I have to restart the router and after it it is connected. Why does it hapen? Do you have a solution for me?

Sorry if it isn't the appropriate place to ask but I am really disapointed...
 
lol @ this guy ^
 
8:55 PM
@Phil and browser automatically look for index.html
 
@rlemon nudge prizes
 
yeah
@dievardump Yes
 
@user159870 Use jQuery it solves everything..
 
@CapricaSix (@Zirak) you need to fix the timing there
 
@user159870 Try reinstalling AOL
 
8:55 PM
@Phil you might not like the answer, but it should work
 
@taco I'm a code whore.
 
@user159870 Have you tried calling your IT department?
 
include ejs and use it to render the html pages
app.set('views', __dirname + '/views');
app.engine('html', require('ejs').renderFile);
..
res.render('home.html');
 
It does work in rendering the index.html
the problem is the routes
 
@phenomnomnominal I am not a whore (but I like to do it)
 
8:56 PM
I am currently using node + angular
 
@taco Do what, whore or whores?
 
and I have absolutely no problems.
 
@monners I like to code
and my wife doesnt like it when I do whores
 
le sigh
Wives...
 
@dievardump do you use Angular routeProvider?
 
8:57 PM
Nope, I use ui-router
wait
it is routeProvider in
Yep
But I still use ui-router with $stateProvider that uses url property
 
@monners java guy is getting all snippity because I moved only one message
:P
 
@rlemon hrm?
 
@Zirak nudge 3h poop it defaults to minues
 

« first day (1543 days earlier)      last day (3403 days later) »