« first day (1647 days earlier)      last day (3319 days later) » 

3:00 PM
UK's biggest postal service and they don't use JSON.
 
soap is terrible
 
Plus if you're using their portal, it only works with IE < 7
 
We use SOAP for some stuff, and we make our clients use our own DTDs and write their own XML files to interface with some of our other APIs... it's pretty gross
 
postal service websites are always a joke
 
More formal than a JSON API, but still nasty.
 
3:01 PM
@chronotrigga Facebook is a pretty big application that uses those!
 
@ShotgunNinja lol, you use DTDs
those actually are deprecated
 
Roel did they built theirs off pure javascript and css/html? It's not native right?
 
Yeah, asking what applications use HTML/JS/CSS is like asking what vehicles use internal combustion.
 
anyone know how qunit plays back tests?
 
Clearly not all of them, but quite a few big and notable ones
 
3:03 PM
@chronotrigga if you're talking about mobile apps, they will always lag, regardless of what you write them in
 
does it use jquery to click on things and fill out forms
 
@chronotrigga Every website ever uses HTML, often with CSS if they have some styling, and most likely they've got some JS in there too. Even this chat uses all of 'em. What is your real question?
 
Is 11% APR for a personal loan a good rate? it was the best I could find
 
@ssube why are you not use XML Schema?
 
@SterlingArcher I'm pretty sure that's specific to your region. Inquire there?
 
3:07 PM
@SterlingArcher you'll never get a good rate on an unsecured loan
it's not atrocious, but it's not good
 
@SterlingArcher
 
lmao wow
 
credit cards are usually like 22-25%, really good car loans are just under 4%
 
again depending on region
 
@RoelvanUden those figures go for most of the US
 
3:10 PM
@ssube I have no idea where SterlingArcher is from
 
@RoelvanUden VA, US
 
racist
 
From what I'm seeing, this % is actually rather good for a small personal loan in my area
Especially for somebody my age with good but not great credit
 
-1
Q: how to run a php file in node.js

David Nelbandi have a mean.js based app, which is an upgrade of on old php based web site. we have run into a problem with the password restoration. namely, the passwords are hashed with md5 & then with sha1. the problem is that md5 & sha1 behave diffrently in js and php. thats why we must now have the ency...

nope
 
3:12 PM
kek
 
top kek
nobody says kek anymore
 
old school
 
user1596138
I'm so busyyyyyyy
 
:d
 
3:13 PM
@Jhawins get a job, scrub
 
Procrastination is the practice of carrying out less urgent tasks in preference to more urgent ones, or doing more pleasurable things in place of less pleasurable ones, and thus putting off impending tasks to a later time, sometimes to the "last minute" before a deadline. The pleasure principle may be responsible for procrastination; one may prefer to avoid negative emotions, and to delay stressful tasks. The belief that one works best under pressure provides an additional incentive to the postponement of tasks. Some psychologists cite such behavior as a mechanism for coping with the anxiet...
 
wtf is kek
 
!!urban kek
 
@BenFortune XY up the wazoo?
 
@NickDugger kek Kek literally translates to lol on World of Warcraft. When someone from the Horde side types lol in /say, members of the alliance side see kek instead. Not specific to Orcs.
 
3:14 PM
@SterlingArcher lol in orc language
 
that's because kekekeke is used as an onomatopoeia for laughing in several countries.
 
oh jesus no
 
oddly enough, those countries where it's used tend to be the most annoying in online games.
 
u mean Durotar?
 
no, I mean Korea
 
3:16 PM
at least koreans don;t use "jajajaja"
 
das racist
 
hey bro i'm spanish, ¬¬
 
rekt
 
whats wrong with this laugh xD
 
hahahah
noob
use letters right
 
3:17 PM
at least we don't use huehuehuehue
 
I'd rather hue than ja
 
@Zirak is such a noob :(
 
document.write("<img src='foobar'>") when he wants to add an image dynamically.
 
That's the most dynamic way to add images
 
3:19 PM
He is baffled by what $ means in jQuery and how they accomplish it.
 
I don't even want that there...
 
@Zirak $ is the money variable and jQuery got it because the multinational GMO corporations sued independent fermented cheese crafters and acquired it for them through a trust. Duh.
 
@BenjaminGruenbaum it's just a variable, lol
 
@ShotgunNinja thanks, captain
 
Tell that to @Zirak ^*2
 
3:21 PM
@NickDugger sure thing buddy
 
isn't jajaja just how brazilians type a laugh?
 
lol
 
teehee
 
3:21 PM
wtf xD
 
I always pronounce it as german when I see it
 
yayayaya
 
aieieieieieieie
 
@BenjaminGruenbaum the problem with pinging Zirak in stuff is that he shows up 12 hours later and demands a working example, the relevant section of the spec, a dozen squirrels, an explanation of how coroutines work, etc.
 
3:22 PM
brazilians use hue
 
ehuehuehuehue
 
brazillian croutons
 
@ssube that's the thing with noobs, they always want to vamp
 
how many times are we gonna ping @Zirak
 
3:23 PM
@SecondRikudo if you get mod position are you going to leave us? :(
 
espanish is worst
@SterlingArcher Some of us hope so
 
> I am really sorry for being late in answering to the question but I was busy in some of the personal tasks and duties which were on high priority.
 
i know bjb said he's quit SE if he did
 
when running for mod, we love to see that everything else is more important
 
3:24 PM
@SterlingArcher I keep wanting to make fun of his name, but I'll get banned :(
 
@NickDugger bjb isn't in a position to ban anyone
 
bjb
 
@ssube No, but he's made big enough fuss that the message will get flagged, and he'll make a big deal out of it and claim he's being victimized by our room, and then I'll get banned
 
who the heck is bjb?
 
he's a child who likes to get mad
 
3:26 PM
I think I cracked today's #KerbalCountdown riddle. HYPETRAIN!!!!!
 
@NickDugger fun
@KendallFrey nice!
 
I'm now 95% sure KSP 1.0 will be released one week from today
 
I played sandbox mode the other day and I've realized how many necessary parts I don't have...
 
hey all -- new to angular. What is the best way to conditionally add a class in a view? basically I have an <li> with a child <a> inside it. If the content length of the child <a> exceeds 15 characters, I want to add a specific class to its parent <li>.

was going to ask in the angular room but it seems pretty dead
 
hey, anyone here mess with Google Analytics?
 
user1596138
3:29 PM
@NickDugger I think I'm moving on like the 6th
 
Nice.
Have you quit your current job yet?
 
@Prefix ng-class="{myEpicClass: something.length>15}"
 
@Prefix child view?
 
user1596138
@NickDugger I told him lol. He pissed
 
user1596138
I'm at that job now though
 
3:32 PM
oh, a class, not a view
 
@Jhawins he try and keep you at all?
 
0
Q: Rewrite the below JavaScript using jQuery to minimize the number of redraws and reflows required

Aung Thet Ko Kofunction() { var element, index, length, content = document.getElementById("content"), data = [{ id: 1, name: "John", color: "green" }, { id: 2, name: "Sally", color: "pink" }, { id: 3, name: "Andrew", color: "blue" }, { id: 4, name: "Katie", colo...

 
@Jhawins Ha, I'm glad he's mad, but hopefully he doesn;t try to pull some bullshit legal stuff
 
user1596138
@Loktar He asked what my salary was, I told him. He laughed and asked if I knew anyone else who could do my job
 
hah
 
user1596138
3:33 PM
He was like I can't even try lol
 
@RoelvanUden perfect -- thank you :)
 
you should say, "maybe you should suck less" -- but don;t actually say it. just think it.
yeah
 
3:47 PM
Hi, I'm having some trouble with ajax... I have a loop with several call in it, and I'm trying to print the index in the success function... But as it is async, I currently get the last index print multiple time as result... is there a way to add the index as parameter ?
 
@Luckyn use bind on the success handler before you pass it
ajax(stuff, things, {success: function (index, results) { ... }.bind(index) });
 
I'll try it, thanks
an additionnal { } around the success function ?
 
depends on your ajax lib
 
Hey guys. Can I use a ternary if statement without the else part... For instance: condition ? function1() //without :
 
Technically you can, but you need to reverse your logic, as it only works for the else part. !condition ?: function1();
Why not just an if statement?
 
3:56 PM
A guy asks why his program doesn't work, and everybody answers with a totally different implementation for his common problem, not answering the question :(
People should not propose better implementations, that's not the question (OP rightfully wants to know why his program doesn't work) and is totally off topic. — dystroy 8 mins ago
 
@BenFortune Well, I've been using ternary for a while and wanted to stick to it... Could I do condition ? function1() : null?
 
Wait, does that work in JavaScript?
I know it does in PHP
 
@ssube It return "success" x3... not my index
for (var key in datas) $.ajax({url: .., dataType:'JSON', success:function(json,key) {console.log(key);}.bind(key) });
 
@dystroy no way. Suggesting improvements is completely on-topic.
 
@HelpingHand It's completely unnecessary, unless you want to explicitly assign null to a variable on the left-hand side of your ternary.
 
If you have a typo in a query and some SQL injection, I'm going to point out both.
 
@dystroy upvoted
 
if(condition) function1();
 
If you have parameters backwards when calling search and are using the wrong kind of search, that's worth pointing out.
 
3:59 PM
@HelpingHand but yea, it should work. is it not?
 
If you're using the wrong algorithm, it's completely reasonable to point that out in the question.
 
when page loads and I change drop down value...it works fine...however the first char I type in the search box disappears....swallowed up...
why?
 
sorry about that
 
@Luggage I haven't tried... I just was wondering if it would...
 
@ssube OP already knows there are answers on how to check a string is a palyndrom, he doesn't want a totally different algorithm, he just want to know why his own code doesn't work (that's not an algorithm problem)
 
4:00 PM
@dystroy it's common courtesy to fix the existing code and then suggest better algorithms/other improvements.
so IMO you should have both if a question is broken in more than one way
 
TIL !condition ?: do() doesn't work in JS.
 
if (condition) do(); ?
 
just do condition && do()
 
@ssube Yes, but other answers just gave the usual solutions
 
Yeah, that's what I explained above.
 
4:02 PM
do(me);
 
I just thought all ternary implementations were the same.
 
javascript is javascript
 
And javascript ain't takin' no advice from the likes of c.
 
@SterlingArcher fuck(you);
 
4:04 PM
@dystroy that's far from off topic.
It's a working solution to the problem posed in the question. If it's not the answer the OP wants, then it shouldn't be upvoted.
 
@r3wt buy me a drink first damn
 
is it possible to target last-child with a jQuery selector?
 
@r3wt :last-child?
 
jQuery selectors == CSS selectors too
 
4:05 PM
its angering me because i can't get my code to work. computer y U No Listen!
 
@SterlingArcher jquery selectors are more powerful than CSS, in fact (but slower)
 
@ssube not sure if you see my previous msg, cause it's not returning the index :(
 
@dystroy yeah, but sometimes you need power :)
 
Yea, I like using a css3 seelctor and not caring about what the browser supports.
 
@SterlingArcher so is there a short hand way to access the last element in a jQuery array?
 
4:07 PM
in the rare case I even need ot do that anymore..
 
What was the second most popular VCS GUI after SmartGit?
 
ie, $('selector').[-1]
 
It was smthng "tree"
 
I suggest commandline if you need to really understand git, but the github client is ok.
 
!!tell r3wt jquery last
 
4:08 PM
but limited.
 
@Luggage I've been having issues with SmartGit lately. Always conflicts, complications.
 
I really, really prefer to use the CL when doing git
my coworkers uses SourceTree, and it's terrible
 
@r3wt google is powerful :) All I did was search "get last element jquery"
 
same, but I understand not everyone likes to live on the commandline as I do.
 
4:09 PM
most git clients are... questionable
the IDEA one screws up all the time
 
You can access it with bracket notation, but that reverts to a DOM element and not a jQuery object
 
the github one seems to be the best yet
 
yea, the clients let you get yourself in trouble.
 
I'm not even super familiar with the git model to be honest
 
@ssube there are bugs in Linus' implementation as well. my favorite is the inevitable fast-forward bug when using amend-author flag
 
4:10 PM
and branching, I have a vague idea
 
Any Angular-js framework fans here ?
 
That's the real problem. Don't worry, we all go though it. Git seem foreign and ovrly complicated at first. Once you 'get' it, it's simple and powerful.
 
Read the git book
 
yea, git-scm.com has good info
 
it makes the object model seem super simple
 
4:10 PM
I first started learning git as a designer... man, the learning curve made me want to die. Now that I get it, I love it.
 
@KendallFrey Which one would you recommend
 
@StevensHaen the git book
 
If you aren't in a hurry, there was a good article on how git works internally that really helped me.
 
TDWTF has a great article on what version control is
 
Ok, "Pro git" it is
 
4:12 PM
no
read THE git book
 
atlassian has some decent git docs, too: atlassian.com/git/tutorials
 
@r3wt don't edit history
 
oh wait, the book is actually titled pro git
 
the author, Scott Chacon, has some decent videos on youtube, too
but i forget which are useful and which are just advertizing github.
 
4:13 PM
@Luggage This: condition ? function(); does not work; however, this: condition ? function() : null; does...
 
then stop abusing ternary.
 
what's it called when a sidebar scrolls with you?
 
you only need to know a handful of git commands to use it in the basic sense
 
is it a persisting sidebar?
 
static or fixed
 
4:15 PM
@Luggage Point is, you said it should work...
 
fixed looks better I think
 
no, I said the vesion with : should work
you can't chop out half the code, then complian it doesn't work :)
 
@Luggage What's the point of exporting the module's functions? Why would I write a function that I wouldn't want to export in there?
 
Because your function may call other funcitons internally for organization
and those funtions may be subject to refactoring and shoudln't be exposed becaseu they don't make sense on thier own
 
@Luggage I see
 
4:17 PM
@Luggage Didn't chop anything... I just figured that since an if statement can do without the else, a ternary could do without the :. That was my initial question. Doesn't matter now, thanks for the help.
 
Separating out what you want to expose and waht you consider 'internal' is key to keeping a large project organized and refactorable
 
@HelpingHand condition && function()
 
yup.
what he said. Also, I find:
if (condition) { function(); }
even more readable, if slighty more typing
 
Also just because you can, doesn't mean you should.
 
We have uglify.js to make your code unreadable, if you desire. :)
 
4:28 PM
I still don't get how Browserify is useful. So, it merges all of your dependencies in a single file, the same way as require does and then how does the browser come into play?
 
It lets you write as if you were writing for node.js (for the most part) and use commonjs style require()
also, it'll grab the dependencies from node_modules letting you use npm.
 
@Luggage Isn't node using the commonJs style require to begin with?
 
which, in my experience, if usually more complete/up-to-date than the browser alternatice like bower, component, etc
node is, browsers do not.
Not without browserify, webpack, or some of the others (like even require.js can use commonjs)
browsers support a <script src="..." only, and that can get unmanagable when you have dozens or even 100's of files
 
Morning
 
AFAIK it also converts some native node modules/methods, such as http.get into ajax
 
4:34 PM
Yup.
If you are using require.js and like it, keep it. As long as you have your code organized into modules is the important bit. Later you may decide to switch to an alternative and as long as your code is organized, you can do it.
 
Hey, nice!
> Congratulations -- you are one of the top new Worldbuilding Stack Exchange users for the week of Apr 13 2015!
 
I don't mean to discourage you from trying browserify, I just mean, organizatino is more important than making all the right choices up front.
 
@StevensHaen because require does a lousy job of merging them into a single file
browserify and webpack handle resources (templates, stylesheets) much better than require
 
Another + is the ability to reuse code between server and browser
 
Yea. PErsonally I use and really like webpack
 
4:36 PM
they also work with the commonjs module standard, rather than the semi-arbitrary AMD setup
AMD doesn't work anywhere else, either
 
well, it works just fine in webpack.
I never bothers switching all my client code to commonjs
 
I don't manually write the module stuff anyway, so it was easy to switch
AMD is not a good module system and require is not a great loader
error messages are terse, at best. require doesn't use a lot of newer patterns that would improve life.
 
@ssube Require wasn't meant for CSS anyway
 
@SomeKittens Huh, didn't know that SE site existed.
 
All I wrote was one answer:
22
A: Possible Mage Jobs in an Urban Fantasy

SomeKittens Ux2666Celebrity chef Mages are fairly rare, so rich folks looking for the ultimate "Unique" experience would flock to mage-prepared food (and the mage could charge quite a bit for the experience). That being said, most of the food could be prepared as normal, with a few fireball-charbroiled steaks to...

 
4:41 PM
How similar is webpack to requireJS?
 
Not at all.
 
@StevensHaen webpack and browserify do all the stuff require does, but better, and do more
 
It can be compared to requirejs but being forced to use the r.js optimizer.
 
@StevensHaen it's not very helpful to pack your scripts but not your other resources
 
@Luggage so you don't use the optimizer on the side, it's all default
 
4:42 PM
require can handle templates and styles via plugins, but those obfuscate errors even more
 
Yea, it packs by default
 
@Luggage minifying + concatenating?
 
i think it doesn't minify by default, but you can set it up to
probably
 
module-aware cat with ordering, merging, pre-compiling of templates, etc
 
I wouldn't worry about minifying until you are ready for production
 
4:44 PM
And there's uglifyjs for that
 
jsut using a system like webpack gives you the options to change those setting at any time
 
I've never worked with UglifyJS, how does it compare to the above mentioned?
 
it' sjust a minifying or formatter.
 
it doesn't
it's a different tool entirely
 
I see
 
4:44 PM
JS in, differently formatted JS out
 
let's take a medium-sized project. Maybe 80-200 classes, each in a file, about 10-25k LoC. You don't want to load all of that separately when someone loads your page.
Some of those classes (20-25) are also views, each with 1-3 handlebars templates (another file).
 
Too many requests
 
You don't want to load up 400 files, that's for sure.
 
My webpacked resources are about 3.5mb total. Is that a lot? I do have some dependencies I'm working on dropping
 
Require can help with the scripts, but not a lot. Webpack or browserify can take all of the scripts and templates, turn them into a single file, and you go from there.
 
4:47 PM
I'm thiking that with some proper cache settings, 3.5mb is reasonable.
for an internal company app
 
3.5 is totally normal for anything
 
Also have a little loading animation .css inline in my initial index.html which makes it feel all fancy.
 
is the define() function for AMD default in JS?
 
it doesn't exist unless an AMD loader has already been loaded
 
a single 'static' html file: gist.github.com/luggage66/43c353e5c024ae43ffc0 and allother resouces are in webpack bundles
 
4:56 PM
@Luggage How is WebPack compared to Browserify?
 
I've never used browserify. I migrated from require.js.
 
more complex configuration.
easier code splitting.
inlining resources is a breeze.
 

« first day (1647 days earlier)      last day (3319 days later) »