« first day (1826 days earlier)      last day (3123 days later) » 

2:00 PM
_.chunk(_.range(300), 30).reduce(function (ord, product, i) {
  Array.prototype.slice.call(ord, product.length * i, product.length * i + product.length, product);
  return ord;
}, _.range(300))
should that work?
 
use pastebin man... how many times was it told to you in the last weeks?
 
what would prevent angular from changes i just made to a json file ??
from loading
??
 
browser cache
 
user5020521
 
@corvid there's gotta be a way to simplify that
 
2:02 PM
but I hit ctrl+f5
everytime
 
It was actually splice, not slice. confusing.
 
user5020521
i'm sorry @dievardump i just forget about it
 
@dievardump What else could it be?
 
 else { //code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
ouch
 
I'm doing this lesson
I've got everything set up, and I'm just messing around now
 
2:03 PM
@Riccardo990 idRecord isn't defined
 
I've reloaded the project multiple times
but the changes i make to the json don't reflect in the view
 
user5020521
@Cereal i'm not even sure I need idRecord or xmlhttp.responseText parameter
 
very weird
 
@Riccardo990 yes you need them. Plese console.log xmlhttp.responseText at the beginning of deloutcome function
 
user5020521
so why it can't work I've done the impossible to make it and I'm miserably failing again and again
 
user5020521
2:05 PM
just don't know what to try
 
it does not work because you do not understand what you are doing
 
yeah
 
@Cereal github.com/… PR space if you need more
 
you think you are passing a function
but you are not
 
you are trying to run before even being conscious that you have feet here
 
user5020521
2:07 PM
that's what I've got now
 
1 message moved to Trash can
@Riccardo990 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
user5020521
array(1) {
  ["idRecord"]=>
  string(2) "65"
}
1int(1)
 
user5020521
that's what I've got now
 
as your console.log?
 
user5020521
that's right
 
2:08 PM
...
are you var_dumping?
 
life tip, never let your wife's friend do your taxes. now new york state has a tax warrant against me and i never lived or worked there in my life
 
user5020521
yesyt
 
are you dievardumping?
 
user5020521
must I stop the dump?
 
What do you think, that JavaScript will understand what is debug code coming from your php and what is just JSON ?
 
2:09 PM
@AwalGarg Hah, that's funny
 
user5020521
i stopped the dum
 
user5020521
array(1) {
  ["idRecord"]=>
  string(2) "65"
}
1int(1)
 
lol
 
No you didn't
 
user5020521
i commented out the dump
 
2:10 PM
The result should be 0 or 1, else you are doing things wrong.
 
user5020521
wait
 
user5020521
old pust
 
user5020521
past
 
@jgr208 that's... that's impressive.
 
user5020521
the result is 1
 
user5020521
2:11 PM
array(1) {
  ["idRecord"]=>
  string(2) "68"
}
1
 
which indicates the row was deleted
 
You did not stop the dumping. Delete every dumping in your php and just echo the result
 
@jgr208 Superpowers?
I don't know how that could even happen
 
Got it. Array.prototype.splice.call(_.range(10), [index, products.length, products])
 
user5020521
@dievardump 1
 
2:12 PM
[].slice.call()
 
2
 
user5020521
now evey dump is stopped
 
user5020521
only 1
 
@SterlingArcher not fun. i said screw it we are going to h&r block she cant be costing me my job since i need to clean a good financial history at it
 
maybe you need a laxative
 
@jgr208 they'll fix you up. Unless you did something horribly illegal the IRS is very nice.
 
@SomeGuy haha i didnt either i was like what i have a warrant, but they never signed the warrant so idk if its legal
 
FOR WHAT POSSIBLE REASON
 
@SterlingArcher its not the IRS its new york state
 
@Cereal github search sucks anyway
 
2:14 PM
I'm pretty sure that this should just be phpObject = JSON.parse(xmlhttp.responseText);
 
@SterlingArcher You're the first person in history to say that. :P
 
@AwalGarg Send him a pull request changing it to "I am groot!"
 
New York sucks
 
@Riccardo990 now what happen in delOutcome if you actualize the page?
 
@ssube lmao
 
user5020521
2:14 PM
@dievardump what you mean for actualize the page?
 
I have faith in the system. I'd like to think in most cases they won't fuck him dry
 
@Neilos I do not even know why he would json_encode just an int.
 
yes they do. hate them i am like if they try to not let me get out of paying its illegal to charge someone if i never lived or worked there after we try to fix the mistake
 
user5020521
now I've deleted every row and the table is empty
 
did you pass an id?
 
2:15 PM
@dievardump I know but can assume he will want to expand the json to more meaningful data eventually??? That was my assumption
 
imgur.com/gallery/LjOuBYe @Loktar I... I need an adult.. what is happening..
 
user5020521
I don't know do I need to get rid of parse function?
 
@SterlingArcher senile adults don't count
 
you are just returning an int, in fact just 0 or 1 there is no need to json encode this
 
user5020521
and what should I do?
 
user5020521
2:17 PM
do I need parse function?
 
Learn the base before trying to do something that advanced.
 
you can just echo the count
 
does anyone else feel like doing this assignment with me?
 
@dievardump Is there any difference? MDN has Array.prototype
 
user5020521
2:18 PM
matter of fact delOutcome is a callback function
 
user5020521
its purpose as of today is to return the deleted rows
 
and explain why changes in the json are not showing in view?
 
@corvid Array.prototype is better I would say. I just thik [].slice.call is nicer :p it was just a joke sorry
 
user5020521
practically I can make it getting rid of json_encode function and as a consequence getting rid of jSON.parse function
 
@emporio look at your network console panel, open the json
 
user5020521
2:19 PM
this way i might have a far simplier JavaScript code
 
github.com/loreV/Steadlly/blob/… @Zirak did this when he was young and didn't have a mustache
 
do you even understand your javascript code?
 
@Riccardo990 yes you would delete both
 
You are trying to loop on an int...
 
user5020521
I'm going to stop that attempt
 
user5020521
2:20 PM
just let me delete those few lines
 
What kinds of advanced JavaScript knowledge should you have today?
 
This is painful to watch
 
I will see if Pluralsight.com has an ECMAScript 6 vid
 
2:22 PM
Why don't you just read the book?
 
user5020521
I've cleaned up both of the codes
 
@dievardump so I open the json through the network control panel ?
 
@SterlingArcher lol yeah that is pretty cool
@rlemon @FlorianMargaine rebecca.blackfriday
 
2:23 PM
@emporio well to be sure that the browser reload effectively your json file, yeah.
Can you see the changes in?
 
oh @FlorianMargaine for some reason I didnt see your ping
 
@SterlingArcher The title is wrong, he's playing it with the toaster.
 
until I went to SO proper
anyway happy Friday
 
@dievardump caniuse#search ECMAScript 6 or is that off in the future?
 
wooo fridaaay
 
@dievardump let me check
 
Going to a hockey game tomorrow with my dad. Totes excited
 
i.stack.imgur.com/uBlMb.gif custom redux :D @argentum47
 
@SterlingArcher That's incredible
 
@dievardump What do I need to be looking for ??
 
user5020521
2:29 PM
i'm quite sure that the responseText is what I have from json_encode
 
@emporio for the change you made in the json file...
 
user5020521
so if I wrapped up that response into an array I might handle it better
 
@dievardump nope, it's not showing
 
ctrl+f5
 
I did that too
 
2:30 PM
Do you see the change?
 
nope
 
Did you save your json file after editing it?
 
could it be that angular team put some kind of code in to prevent json data changes being committed?
@dievardump I sure did
Ctrl + S in Sublime
 
what? if your browser does not see the change, how do you want angular to see it?
 
funny thing is, when I link to a custom made json file with the same contents
 
2:32 PM
It's a browser cache problem if you reload the file without seeing the changes
 
then the changes can be seen
perhaps
let me try clear the cache throughthe options
 
not perhaps
or you do not load the good file, or the file is cached by the browser
or just try to add ?1 after the url in the browser tab to be sure it loads the last file
 
@dievardump that'll just cache it again
that's why jQ adds a timestamp at the end
 
Why can my computer search the entire internet faster than it can search my harddrive?
 
I just want to be sure it's a cache problem, then he can deal himself with how to handle this problem
 
2:37 PM
@dievardump sir you were right! the problem was fixed by literally going to settings and clearing the cache - An unknown error has occurred
@dievardump How come simply ctrl + F5 doesn't work in this case? - You must login to post
 
Why are errors being appended to his posts..?
 
@dievardump are you there?
 
I am.
 
@dievardump I thought Ctrl + F5 was the way to reload??
 
@Cereal he ctrl+c/ctrl+v without editing ;)
@emporio sometimes, not.
 
2:39 PM
@dievardump why did I have to go to settings clear cache this time??
usually ctrl + f5 always works
 
I don't know, it sometimes happen.
 
okok
;)
 
just restart the browser to be sure
 
@emporio What happens when you point your browser at the json file?
 
Promise.map(jobs, function (job) {
  if (job.status === 'ready') {
    // ...
  } else {
    return Promise.resolve();
  }
});
 
2:40 PM
You didn't return the promise
 
Will this resolve everything in a chain of promises, or just that one promise?
 
Just the one, of course
 
I don't understand Promises yet..
 
you will in the Future...
 
Okay.
 
2:42 PM
you can't understand Promises if you don't actually resolve your promises irl
 
philosophy is not your thing, is it?
 
Anyone here have any experience with datamapper?
 
@AwalGarg Latest indie game?
 
2:44 PM
yes
 
@Zirak Thanks
 
17
Q: How to speedup jquery mobile / phonegap?

PiTheNumberI have a small web app. Seven pages, 3.6 KB index.html and 855.5 KB total. The only odd thing i have is a database (~500kb) in Javascript with many lines like: $.data(db,'Aarstraße',['34236:1','34246:2','34270:4','34290:6',...]); I tested it on iPod/iPhone and Android (HTC Magic) and it is ver...

Can we close this as too broad or opinion based?
At 5 delete votes so far.
 
2012...
 
Why are we necro'ing old questions?
It's clearly helped a number if individuals.
 
@BenjaminGruenbaum That'll take a lot of hammer power
 
2:48 PM
Because it contains bad and incomplete advice
 
the speedup one didn't help anybody
it's textbook too-broad
 
Library x vs library y questions are terrible, and "speedup x" is just generally a bunch of irrelevant information that's specific to OP.
 
@Zirak how many deletes do you need on a question with +58?
 
@ssube From the prompt it gave me, this one takes 16 delete votes.
 
I don't even see a delete flag.
 
2:50 PM
You're not a Chosen One
 
I am not.
 
Good. Because I am the Dark Lord.
 
I need to spend more time answering questions.
 
You get it with your grade 10 or 15.
 
I just don't have the time while at work, and who wants to answer SO questions after work when they could be drinking beer on the balcony reading a book?
 
2:52 PM
I don't read.
 
I read...a lot.
 
Downvoting helps too, it reduces the number of needed votes..
 
I read balcony on the beer while drinking books.
 
I'm on my second book this week. It'll be even better if Amazon gets off their ass and incorporates spritzing into the kindle.
 
I used to read a lot
Then I got a job, and now I don't have enough time to do anything
 
2:56 PM
Guys, what can I make to get my Github profile up and running?
 
@Trasiva Oh, I'll spritz your kindling
 
A kind of library?
 
@ssube Promise?
 
I never make promises in bed
 
@JacquesMarais Dickbutt: The Game
 
2:57 PM
......
 
@Cereal South Park may as well have done it
 
@Cereal I don't handle civilians very well, so I just go home after work, cook dinner, stream a movie while I read.
 
@JacquesMarais Anything you want. Whatever catches your interest.
 
ie8 fun>

how come if I poly fill Array.from and for each this only works in ie8 in emulator?

Array.from(document.querySelectorAll('.foo')).forEach(


ie8 native doesn't
 
@ssube Smart man.
 
2:57 PM
@JacquesMarais No?
It can be about the origins of dickbutt
How he used to be a normal butt
 
@Cereal No
:P
I just want to make a library that will get some attention.
 
Best way to get attention: controversy
 
@KendallFrey Lesbian dickbutt
 
Make a library for airports to identify potential terrorists based on headgear
bam, you're on the news
 
um wow
 
2:59 PM
Terrorists wear fedoras.
 

« first day (1826 days earlier)      last day (3123 days later) »