« first day (1661 days earlier)      last day (3304 days later) » 

6:00 PM
I also have a poorly designed personal site: cwhart.co
 
stop sucking
 
@NickDugger My brain is stuck in suck-mode today.
 
@copy you might have more success with Windows 3.1? or 3.0 in real mode
 
my website is worse nickdugger.com
 
@NickDugger that is a nice website
 
6:02 PM
It's a lack of a website
It's been WIP for many moons
 
@Andrea 3.1 has the same problem as 95
 
:/
 
windows shell, now there's an OS
 
@Shmiddty depends on what you're doing
I have intranet stuff that runs only on Chrome for instance.
 
@SomeKittens congrats on #3 spot on HN right now!
 
6:04 PM
I may be using the wrong name... I believe there was an old version of windows called Windows Shell. It was one of the first graphical implementations of windows
 
@SimonSarris Thanks, man!
@SimonSarris Would like your thoughts on this
 
@Shmiddty Are you maybe thinking of Microsoft Bob?
It's like if you took Clippy from MS Word... and built an entire OS around it.
 
hey @Andrea I get an out of memory exception on firefox
 
@Prasanth wow
 
@Retsam That looks vaguely familiar, but no. What was the product name for Windows 1?
 
6:14 PM
did i missing something silly here?
 
@Prasanth Have you been here since the beginning of time?
 
na, just dropped in, tried load this thing up, ¯_(ツ)_/¯
 
If not, it would be safe to assume that you have missed something silly here.
 
@SomeKittens I will ponder
 
@Shmiddty As far as I can tell, the early versions are just windows 1, 2, and 3.
 
6:16 PM
hi
 
Hmm... too long ago. Can't remember.
 
nice 1
 
yeah I'm going to try that at work, pretty cool
 
my brother needs that
 
6:22 PM
Hey everyone, i was wondering if someone could explain how this JS works:

https://github.com/jimsparkman/RiotControl/blob/master/riotcontrol.js#L11

This is for a dispatcher that will take the events fired from a store, and make it look like it's fired from RiotControl. The store fires the event:

https://github.com/jimsparkman/RiotControl/blob/master/demo/todostore.js#L21

but somehow it can be observed on RiotControl as well. For the life of me I can't figure out how this works.
 
riot control? we could have used that last week
<- Baltimore
 
Hey @FlorianMargaine thanks for the Docker help. I almost have an app running.
 
Oops, forgot to link where it can be observed:

https://github.com/jimsparkman/RiotControl/blob/master/demo/todo.tag#L31

TLDR version is RiotControl contains a collection of Stores, a Store fires an event on itself, but the event is also observable on RiotControl, and I dunno why.
 
@Luggage you come out ok?
 
hehe, yea. i'm outside the city
 
6:29 PM
Stores generally fire themselves when the RiotControl fails.
 
@ssube I see what you did there
 
No you didn't. *pepper spray*
 
ow mah eyes
I won an eBay auction last night but I just noticed the guy has 0 rep... :|
For a Bang & Olufsen Beoplay A2 :D
Man, just googling it, they're really trying hard to be hip
I'm not gonna look that cool
 
What's wrong with this code guys? I'm trying to change the color of the H1

$document.ready(function(){
$("h1").css("color", "red");


});
 
I was going to say you can't accidentally be hip, then realized that I often am and it's awful.
 
6:35 PM
@JoeConsterdine Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
had to lookup to that device
 
@JoeConsterdine looks ok to me
 
maybe my HTML then
 
the css selector isn't right
it's a list of all h1 tags
 
@KarelG that's valid
it should set the text color of all h1 tags to red
 
6:36 PM
does you not have to loop through it ?
 
jQuery: it's magic, betch
 
joe, isn't it supposed to be $(document).ready(...)?
 
@Joe try it on a blank html page with one h1. Probably your element nesting screwing things up
oh wait
yeah
$( document ).ready...
 
I'm new to JS... I've just started a project trying to create a little game
 
or $(function () {
 
6:37 PM
here is my HTML...

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<head>
<title>Tika Taka Game</title>
<link rel="stylesheet" link href="CSS/tikataka.css">
</head>
<body>
<h1>Joe's Tika Taka Game</h1>
<div id="pitch"><div id="ball"></div></div>
<script src="JAVASCRIPT/tikataka.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</body>
</html>
 
<style type="text/css"> h1 { color: red; } </style> This would work much better, and wouldn't require including a giant library (jQuery) :P
 
can never remember which is preferred
 
@ssube they're both the same, just one is shorthand for the other
 
what @nderscore said..... seems kind of silly to use jQuery for this unless you need to do it on an event
 
@DanielT. but $(document).ready( is far more readable
 
6:38 PM
also, if you wait until dom-ready to change the text color of the element, the visitor will see the color change
 
Looks like you're loading tikataka.js before jquery
 
@joe your issue is probably $(document).ready instead of $document.ready
 
I will need JQuery.. I just wanted to test it's working
 
I don't remember if the $(document) part has some different behavior, though
 
Is your jQuery inside tikataka?
 
6:38 PM
@JoeConsterdine if that's all you need, then just console.log($)
but to fix your styling, you need to fix the syntax: $(document).ready(function () { ... })
 
@ssube isn't $ in the console the equivalent to querySelector?
Wait nevermind, that's when typed in the console directly
 
@SterlingArcher no?
 
if you have jQ on a page and you type $ in the console, it prints:
 
6:40 PM
this is embarrassing ... I have written a simple 1controller 1 factory application with es6 and angular to see how to do things .. github.com/argentum47/es6-angular .. I transpiled it with babel-node .. but how to run it .. ?
 
> > $
> < jquery.min.js:2 function (a,b){return new e.fn.init(a,b,h)}
@argentum47 node app/app.js?
 
app/app.js is his client
 
still not working... will it show up when I preview locally?
because my JQuery link is the internet version
not the download/local version
 
@argentum47 npm install to install dependencies, then node app/app.js
 
ok trying
 
6:42 PM
@JoeConsterdine Document ready will make sure the page is ready before the jQuery executes that function
 
[breathes deeply]
 
hallo
 
[breathes jquerilly]
 
I was about to finish a really complex pen, while I accidentally made an infinite for... it's all gone -_-
 
:(
 
6:44 PM
@taco Yeah so surely once the page had loaded the H1 should go red?
I'll try console.log
 
I really liked it tho, I'm going to write it all back from scratch..
 
yeah try console
@JoeConsterdine make sure a browser plugin is not blocking jQuery
 
@towc I tried codepen today, it is like... jsbin, but buggier.
 
console didn't work either :D
"$ is not defined" on line 1 on javascript console..
 
@AwalGarg never codepenned before?
it's awesome
 
6:46 PM
nope. I write all my code in dev tools only.
 
I am having this error:
module.js:338
throw err;
^
Error: Cannot find module 'factories/weather'
 
:D
 
@argentum47 you have require()'s in your client but no module loader
 
@argentum47 It seems it can't find a module 'factories/weather'
:P
 
you need webpack or browserify, ro convert to amd and use require.js
 
6:47 PM
ow .. ok
 
webpack for life!
 
use webpack or browserify
I haven't figured out webpack yet and it's still simpler than requirejs.
 
i also vote webpack
 
webpack should probably be a gulp plugin :D
 
it's mostly redundant wit your simpel gulpfule
but there is a plugin, i'm sure
i'll see if i can whip up a webpack.config
 
6:50 PM
@darkyen00 SHOULD THE MARKERS BE DRAGGABLE??
 
@AwalGarg nope
i just want mere ripples
but that looks fantastic :D
 
:D
 
get rid of the ui (i mean chrome)
 
cool
 
I got it working... it was because my JQuery script link was below my JS script link.

Why does it have to be this way round?
 
6:55 PM
@JoeConsterdine can't use jQuery before it's loaded
 
@Cerbrus the next ubuntu is a wolf like you :D
 
Does anyone here with PhoneGap/Cordova experience know if I can just zip all these folders except for the .git? My .git is 99mb i.imgur.com/86nkEDj.png
 
zipping your .git has nothing to do with phonegap
 
@chronotrigga for any project, .git is not meant to be deployed.
 
and yes, you can zip and exclude anything you want
or include anything you want
 
6:57 PM
unless someone put actual stuff forcibly in that directory, in which you case they... need medication.
 
@KendallFrey But wouldn't JS load first and then your JQuery would work after instead of the other way round?
 
I uploaded the whole folder build.phonegap.com but when I extracted my .apk it was like 66mb
so I think it might be including the .git since I included it o_o
 
Don't include it
 
@AwalGarg: What kind of?
 
And your .DS_Store is a mac Finder file. You can delete it
 
6:59 PM
@Cerbrus it is codenamed "willy wolf"
or something
 
@JoeConsterdine no, your code calls jQuery, so if jQuery doesn't exist yet, it will fail
 
@argentum47 my fork. webpakc is working and i moved angular form bower to npm
but there is another error
 
ok I am looking into it
 
you'll need to:
npm install
npm install -g webpack
webpack
 
ow ok :P
 
holy shit I almost flagged luggage's comment while clicking the reply button
> -g
xD
 
i think this line makes no sense: WeatherFactory.$inject = [$resource];
since $inject is not definesd in that scope
 
Anybody familiar with Docker
 
oops, i mean $resource isn't defined there
 
I almost have my Docker container working, but my CMD script isn't running composer install
oh wait, it is, hmm
composer.lock must be incorrect I guess
 
7:08 PM
Is there a JSDoc alternative that supports ES6? JSDoc throws a lot of fits with classes
 
ow.. but won't it get it from angular.module(['ngResource']) ?
 
@Luggage your repo is incorrectly named, sir
 
i didn't name it, i just forked it
 
@argentum47 your repo is incorrectly named, sir
it should be named by what it is, not what it depends upon
 
@Shmiddty It is correctly named. es6-angular depend upon weather.
 
7:11 PM
-_-
 
oh, hmm.. i may be applying the babel loader to too many files.
 
!!afk lernch
 
@Shmiddty Your afk message contains a non-standard compilation of two standard words which is incorrect, sir
ok, back to @darkyen00's work
!!afk s/k/chat/
 
A portmanteau (/pɔrtˈmæntoʊ/, /ˌpɔrtmænˈtoʊ/; plural /ˌpɔrtmænˈtoʊz/ portmanteaus or portmanteaux) or portmanteau word, also called a blend in linguistics, is a combination of taking parts (but not all) of two (or more) words or their sounds (morphemes) and their meanings into a single new word. The word comes from the English term "portmanteau luggage" for a piece of luggage with two compartments, itself derived from the French portemanteau (from porter [to carry] and manteau [coat]). Nowadays these terms are false friends as the French term has since evolved to mean a coat rack, while the English...
 
:P
 
I started a Docker room for anybody learning Docker like me
 
@SterlingArcher I haven't done PHP in a while, but I don't think that's valid syntax for an array. I think you have to do array(thing1, thing2, ...)
 
@nderscore it's valid since PHP 5.4, which came out in 2012
 
PHP 5.4 introduced that array notation
 
lol looks like @nderscore hasn't done php in 3 years now
... my god that makes PHP sound like a wretched drug
 
7:21 PM
Ah @Andrea lurks here lol
 
The bit between the square brackets is identical to what's inside array() though. It's ["key" => "value"] still, not [key: "value"] (despite my best efforts D:)
 
More like 7 years :P
 
@taco very occasionally, and today just for self-promotion linking to something cool
 
yeah I'd prefer the second style too
@Andrea whats so cool
 
1 hour ago, by Andrea
http://win95.ajf.me/
 
7:23 PM
If more people knew about PHP 5.4's improvements, I don't think they'd be as likely to leave PHP behind
@Andrea lol
 
@taco Maybe. PHP is still awful in a lot of other ways, though
 
yeah, I guess
 
Though they're ways you'd probably get used to. It's not going to become appealing for new people I guess, but existing PHP users might be less tempted to switch, maybe?
(gosh that's depressing)
 
We've moved away from PHP, towards a Java SOA backend, and whatever on the front end
I was a LAMP admin for a long time
dev now though
 
I love how sometimes I get mails from SO telling me that a week ago I was pinged in chat
 
7:26 PM
I just prefer to spend most of my time in the front-end these days
 
@Andrea I figured you were mainly a PHP dev since you're so passionate about it
 
I do PHP occasionally but I'm not really sure why I ended up developing the runtime
Doing that made me use PHP more, though :p
 
Every community needs people like you and @BenjaminGruenbaum and @ircmaxell
because honestly I don't give a shit about some of that stuff lol
 
Dont forget Florian
Doesn't he work with developing PHP?
 
and Florian
he got me on the right path with Docker with a gist
 
7:32 PM
@Loktar you know how I often say that I think something is dumb, and then try it and really like it? JSDoc...
 
@Luggage I cloned, I did a npm install -g webpack , npm install, gulp and node app/app.js .. I have
/home/crotona/dev/javascript/wa/es6-angular/node_modules/angular/angular.js:26307
})(window, document);
^
ReferenceError: window is not defined
 
@Andrea very cool. crashes a lot but hey... it is windows after all :D
 
speaking of which, I think my Docker app is working now. Woot
 
now that I have code documenting down, I need to learn testing... yuck
 
@argentum47 no views/weather.html
also,i'm still fixing webpack, some of my config aws medssing up angular, so i removed it
 
7:35 PM
ok
 
some bower config., but i'm not using bower anymore
 
@NickDugger haha
so jsdoc is cool?
I've never tried it actually
 
give me the weather.html someehow. even a pastbin / gist
 
@NickDugger in your defense, at least you dont just ignore stuff after you say its dumb
 
I like it so far, but I'm only trying it on a single file
 
7:36 PM
<section class="content">
	{{data.weather.query.results.channel.item.title}}
</section>
 
> thats fucking stupid, Im going to show you how stupid it is... actually ok its not so bad.
 
My issue was that I don;t want large, excessive comments in my code. Turns out, they're helpful...
 
@Loktar it's just like javadoc or doxygen
 
Im a document noob
 
although since JS didn't have a class keyword, you had to do more work
 
7:37 PM
I haven't used anything for documentation.
 
with es6, it will be really nice
and doxygen will probably start working with JS
 
my documentation is usually wrapping a section with /* */ and calling it good :p
 
	/** Get the phone number or the contact type.
	* @method phone
	* @memberof Ad
	* @instance
	* @param {number} n - Phone index (1|2).
	* @param {boolean} e - Is this the contact type?
	*/
 
Found out I need to get a liver biopsy today :/
 
@Loktar doxygen is this style of commenting
 
7:38 PM
@taco :( I hope everything comes back alright
 
Well, somethings wrong. High liver enzymes in my blood, high ferretin levels
 
stop eating so many tacos
 
can I get rid of my ant-build/ant-gen folder if im exporting to build.phonegap.com?
 
@NickDugger you sound like my doctor. shutup I <3 tacos
I guess we'll see what I hope. Just want to figuire out what's up. It's been a slew of doctors visits since 2013
I also had a portable EKG for 24 hours to check why my heart races. Doc said that shouldn't be liver related, but it happens when I drink, so I don't know
It's gotten to the point where I don't enjoy drinking because it feels like my hearts gonna pop
Anyways, sorry for being a debbie downer. This is cheaper than therapy :d
 
Maybe they can replace your heart with a taco
 
7:44 PM
@taco nah its cool man
anytime you want to talk go ahead, we don't mind
 
Thanks :)
 
lol figured I'd phrase that better :p
 
meow, meow!
Probably my favorite SNL skit ever
 
i was trying to use an angular template loader for webpack.. it's not working. it look like it's putting it tin eht $tempalteCahce
 
is this supposed to be a little complicated ! :P ..
 
7:48 PM
webpack is cimplicated, but it packs everything up together
angular seems to want to use a xmlhttprequest to get the views and you don't have a server,
just files
 
yeah but, isn't my node server running for that purpose ?
 
Does webpack do the same thing as browserify?
 
there's a node serveR?
 
they all use "event loops"
there are a million
 
none in the repo i cloned
 
7:51 PM
ow.. then I have to write a simple one that serves static assets ? can I not use node http-server
or I can use connect ...
 
all of those
but this shoudl work without since you aren't using any api's yet
i know webpack, but not angular, so i'm trying to figure this out
 
I thought I would be writing es6 transpile it and a simple http-server ./ should do the job
it doesn't work that way ?
 
yeah those are nice. I bet @rlemon is well versed with those.
rlemon is a dom mutating foo.
 
gist.github.com/argentum47/6b89646aba4bc27775f1 here is a simple serve.js file from my previous work @Luggage
 

« first day (1661 days earlier)      last day (3304 days later) »