« first day (1722 days earlier)      last day (3227 days later) » 

12:08 AM
@MadaraUchiha I find it fun
 
I love summer, and patios, and lounge chairs, and beer, and WiFi
damn battery, 26 mins left :(
 
m59
12:26 AM
cordova prepare browser is what I was looking for.
 
@FlorianMargaine how's it going?
sleep at all over the past few days?
 
Yeah, step mom is helping out
But it's 2am here, I have to clean up the baby bottle and go to bed
Cya
 
later
 
ok, i got until here,,, i need help
 
12:44 AM
oh mah gawd
new monitor just got setup
love it
heh sites are so tiny in 1440p
 
12:56 AM
I'm finally thinking of updating from my old laptop and building a PC... no clue where to start...
@Loktar Is that a good thing or a bad thing....?
 
lol idk yet
but the monitor itself is awesome
 
as are most shiny things...
 
thats the one I got
supports amd freesync as well, that was the primary reason I grtabbed it
 
wow. That is not a cheap monitor... haha
 
yeah I waited for ups to get here before leaving the house
didnt want it sitting outside at all lol
 
1:03 AM
So often I start to answer a question on main, and get like one sentence in and just think "silly OP, you're doing stupid thing and IDGAF." and then close the tab.
 
lol
 
That's interesting, because I often start to ask a question and I get like one sentence in and just think "silly me, you're asking stupid thing." and then close the tab.
Writing out the problem as a question is really helpful in figuring out the solution. Usually because I forgot what my actual problem was.
@Loktar My plan is to buy 3 monitors, and it will cost about half as much as your 1 monitor... ha
 
lol
I have 3 well 4 I guess
I considered going the 144hz route for all 3 and removing the bezels
but idk that would suck for development imo
 
user2620028
2:06 AM
@loktar oh cmon nobody would steal a box that looked like a tv lol
 
2:38 AM
Do other people see a bug in the nightly build of firefox where onload of some HTML sometimes the JavaScript will not show up in the debugger?
 
2:59 AM
morning
 
Gooood morning!
Its 8:29 AM
 
Hi Ravi.
 
Hi Asher.
Asher, are you from India?
 
Have you tried using firefox recently? Do you see a problem where the source code for .js files load sometimes and not others?
(Boston, USA)
 
@Asher Can you file a bug on bugzilla describing the exact steps to repro?
 
3:02 AM
Yes.....
 
bugzilla.mozilla.org/show_bug.cgi?id=902152 However, they are playing it down like its not an issue?
 
That's a feature-request, not a bug report.
 
It is an Issue, but what we can do?
 
I'm looking at the Mozilla source code and a lot of the debugger code for the GUI is in JavaScript. I did a global search for "This page has no sources" just to see where that message was coming from. It only shows up in JavaScript. I don't really want to bother a lot of developers however, Ravi you are seeing this issue too? I always thought it was something with my code however. I tested this on some really simple code too. Not that my code is all that complex.
The reason its posted as a feature request is because its maybe difficult to debug?
 
Awal, can we send XMLhttpreq using Chrome's console
 
3:07 AM
I can send it, not you.
 
Kuch samjha nahi....
 
No Hindi here please.
 
:)
 
@Asher There is no bug, so nothing to debug.
 
It maybe difficult to reproduce... I can send you a zip with the file if you want to try it out on your computer... if you open it up 5 times maybe 2 will not show any .js files.
 
3:12 AM
Show it where?
 
In the debug view.
 
The debugger tries to find the most important source to display, and it could be different each time. So no surprises here.
status-bydesign
 
Granted... this is not a very complicated program. :)
 
It could be different with two empty files foo and bar only as well.
 
There is code in A and B since the console.log() shows it.
I moved the <script> above to <head> and reload... same issue.
 
3:19 AM
Oh this. That's a race condition issue AFAIK. It is also reported I think.
The same issue is with the Style Editor as well where stylesheets don't get displayed sometimes, or older versions of the stylesheet get displayed.
 
Really? Thats interesting... thanks!
Do you have a bug link on that? I kinda want to follow it... and see if I can help out...
 
I don't have it right now.
 
ok... no problem.
 
Try waiting for a while when the sources are not displayed.
 
(still nothing... I have to reload everything then sometimes it shows up)
 
3:22 AM
Lol
 
super bad bug really. It maybe only effects really small files? lets hope so... :)
@RaviPrakash Whats so funny buddy? Its a bug! :)
Thats what its suppose to look like...
Haha.
 
ABCD2
 
So, whats new where you are from these days?
 
@Asher btw this will go away if you switch to a real server (start a python server in the project root maybe)
 
@AwalGarg Huh? I have a python demon running I think? I did notice that firefox uses some python... however, only for compile time? No?
I'll try and trace this down a bit thanks for the help!
 
3:28 AM
I mean you are presently accessing the files through the file:/// protocol instead of http://. Do it via the latter and the issue is no more.
 
ooh yeah. good point. however...
 
1 message moved to Trash can
@RaviPrakash Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
@RaviPrakash So, what's going on where you are these days? Any coding issues you need help with? Here to help! :)
 
I need to display the traffic condition in Toronto with Bing map. The purpose is to show the traffic condition when I select one route in a webpage. And the result should be text format. Is there anyway to achieve that?
 
@Darren 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.
 
3:34 AM
In fact, I hope that I can see the exact traffic flow for the traffic tie. For example, when the color of one route turned into red, after I clicked the route, I should be able to see how heavy that route is (let's say 10km/h out of 90km/h, which is the speed for free flow). How can I do that, could you help me on that side?
 
@Asher thanks, I will tell you.(now breakfast)!
 
@Darren Have you looked at the Traffic API? msdn.microsoft.com/en-us/library/hh441725.aspx
 
@Asher Yes, I saw that. But could you give me a complete example for the Traffic API in one HTML file
 
You need to do a GET request and send a URL with the data you want. dev.virtualearth.net/REST/v1/Traffic/Incidents/…
Have you done that part yet?
 
@Asher In fact, I haven't done that part. I do hope that I can have an example then I will understand how to do that
 
3:46 AM
Coloring the routes? That gets complicated unless you have route vectors. Look into an easier way to do it.
 
@Asher No, the route's color was determined by the traffic flow already, I have done that. But, I want to create a infowindow when I clicked one route in the map. The infowindow should show the exact condition of the traffic flow for that route (let's say 10km/hour out of 90km/hour)
 
(I'm looking at the API)...
 
@Asher Thank you for your help
 
@Darren There is a variable called "locationCodes" however, they don't say how to interpret these. Have you seen anything on that?
 
4:02 AM
@Asher No, this is the first time I head that word
 
Also, if you where giving the speeds how would you return the results? (it maybe difficult on their side too) mapquestapi.com/traffic
@Darren If you want send me a private message. Gota Go! Happy to help.
 
@Asher I think it can be a realtime data upgrade, I found out that every time I run the code, the traffic flow is updated automatically. The speed can be the average speed for those cars on that route.
 
5:03 AM
Browserify + ES6 = Backbone is probably not needed?
seems like models can be implemented just fine with ES6 classes
 
5:14 AM
How do most tab managers manage open tab history? Say if there are 4 tabs, I am on the 3rd one right now, switched to the 4th one, closed the 2nd one, so now the 3rd one is the second one and the 4th one is the 3rd one. So if there is a request to re-open the last closed tab, what happens?
hashes are the obvious solution but they sound in-efficient to me for handling a large number of tabs.
 
5:27 AM
how can I garbage an object ? using null or undefined (regarding that only one variable reference that object)
?
 
what kind of object is it? a DOM object?
 
var o = {}
 
It will be automatically GC'd when all references to it are lost. So if you explicitly want to remove a particular reference stored in some variable, say foo, then yes, foo = null shall do.
 
 
1 hour later…
6:50 AM
why the absolute shit does this: stackoverflow.com/a/23681489/3459110 - have 15 upvotes
 
$.ajax({url: xxxx,....., success: function (responseMsg) {},error: function (responseMsg) {}})
not working android mobile tablet
 
then get a new tablet
or ask the tablet manufacture for a repair
 
7:51 AM
pastie.org/10272640 when I run this the first time with a new tab.. runs fine, but then I rerun the code with the version changes , nothing happens :( why ?
 
you are working on especser?
sec is not the database name then
 
um, I am getting acquainted with indexedDB , sec is the storeName? as I see from the config. database.objectStoreNames.contains("sec") == true ?
 
Guys suppose that I have an array like this:
[tr.purchase_info, tr.purchase_details, tr.purchase_details, tr.total]
Then how do I select all .purchase_details ?
 
yes. database name is especser. sec is the table name.
storeName is just a weird localforage terminology.
 
@AwalGarg can you help me ?
 
7:58 AM
I will be promisifying indexedDB myself anyways. localforage abstracts way too much.
@ZahidSaeed probably. I don't understand your question though. Create a fiddle showing the issue.
 
@ZahidSaeed Array.isArray(array[3]) === true ? then maybe loop it with map/forEach
 
javascript doesn't have a concept of "selecting" anything, so I am not sure what you mean by "select all .purchase_details"
 
:P
I think he meant $(array[3]).nextSibling and loop them until the end and get the nodeType === 1
 
instead of looping till the next element of nodeType 1, you can use nextElementSibling. Even then, that is not selecting anything.
 
8:05 AM
line8 :P
 
all that code could be replaced by adding array prototype to nodelist prototype btw
 
is it not bad to extend native prototypes unless I am Zirak :P .. atleast that what I used to know
 
yeah I am just saying. your implementation is nice.
you can do [].map.call(...) instead of [].slice.call(..).map
 
ok
the Object.prototype can also be changed to ({})
 
8:24 AM
bah fuck it. I will write my own tabbing system.
@Abhishrek I will need your flux mind with this (not using react though)
 
tabbing system ?
 
like browsers have a tab system. actually only the state manager and controller.
 
oh, cool thing.. is this going to be in this specer ?
 
no
@argentum47 this is actually for the chat client. I thought instead of pre defining rooms, I can just let the user join any number of sources and create a new "view". total freedom.
so those views need to be listed somehow :P
that way I can finally get rid of gmail's horrible small chat windows.
 
8:57 AM
@GNi33 Do some Italian!
I thought you were going to make a comeback a few days ago :p
 
9:16 AM
@ThiefMaster i'm not able to add an event in my js that detect when a page is loaded in landscape view. Now I only detect change in orientation, how can I do? (Please explained in a really basic way, i'm a noob!)
(Question also for anyone else if is interested in, of course!)
 
Can't I use the result set multiple times when mysqli_query is performed using Ajax ?
Check this please:
function createVoucher($voucher_id){
	global $connection;
	$query = "SELECT *, (SELECT SUM(Amount) FROM `ogygafsf_pos` . `purchases` WHERE `Purchase_ID` = $voucher_id) AS Total FROM `ogygafsf_pos` . `purchases` WHERE `Purchase_ID` = $voucher_id";
	$result = mysqli_query($connection, $query) or trigger_error(mysqli_error($connection));
	$i = 1;
	while($row = mysqli_fetch_assoc($result)){
		echo "<tr class=\"purchase_info\"><td>" . $row['Purchaser_Name'] . "</td><td>" . $voucher_id . "</td><td>" . $row['Date'] . "</td></tr>";
why that $test is not echoing ?
Remember this function is called using Ajax
Can anyone help me ?
 
Don't bother the PHP room with this.
 
When you got it, also post your code on codereview.stackexchange.com/questions/ask
 
9:37 AM
a capturing listener on document will be too much right?
 
9:49 AM
posted on July 04, 2015 by Alex R. Young

Today security updates for Node 0.12, io.js 2.3 and io.js 1.8 were released due to a UTF-8 decoding bug in V8: Node.js v0.12.6 (Stable): http://t.co/UyKGamlZFB fixes a severe security issue #nodejs — node js (@nodejs) July 4, 2015 Security

 
10:05 AM
mysqli_query was when i learnt my first php, which was 5 years from now probably.. then as soon as I completed writing my "next big facebook" (haha) I was told mysqli_query was no longer cool because of prepared statement and pdo in php 5 ... (I blame Oriely headfirst series for this)
 
I need to try rust
 
I am hungry and I am bored.... There4 I shall eat .
 
I like cookies.
 
10:17 AM
@argentum47 better than mysql_query already... mysqli_query has prepared statements php.net/manual/fr/mysqli.prepare.php
 
and mysqli is a core mysql plugin. so there is stuff pdo can't do but mysqli can.
same with pgsql
 
like what?
 
async queries
 
10:20 AM
in php5 though?
nope, it can't
 
@FlorianMargaine nope
 
mysqli_prepare is a part of mysqli_query !
 
> Prépare une requête SQL pour l'exécution
 
Anyone familiar with LazyLoad plugin for jQuery?
 
@copy oops
 
10:22 AM
@KasperRT 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.
 
Ah
 
@copy can't change two letters in the url?
:P
 
Anyone know how to get the LazyLoad plugin for jQuery to load images if the content of the div its applied on is shifted upwards?
Only found a dirty solution with scrolling up and down 1 pixel..
 
10:46 AM
why do i get the error,module xmldom not found when i am not using using it anywhere?
i am trying to browserify with browserify-shim
i have never heard of this module before...
 
If I have a json data, how can I save that to a file? I mean using the url
most of the places I find saving tolocalStorage
ah wait let me try with text/json
 
@argentum47 blobs
 
Apr 28 at 20:39, by copy
    function dump_file(ab, name)
    {
        var blob = new Blob([ab]);

        var a = document.createElement("a");
        a["download"] = name;
        a.href = window.URL.createObjectURL(blob),
        a.dataset["downloadurl"] = ["application/octet-stream", a["download"], a.href].join(":");

        a.click();
    }
 
^
also consider doing revokeObjectURL if you are doing this a lot of times.
 
ab stand for ArrayBuffer. Great naming, I know. You can pass anything that Blob can handle though
 
morning
 
11:32 AM
@copy jsfiddle.net/cL7vv0nh my version
yes I know it is the same as yours. but I just like to call it "my"
 
It's yours because it has a bug
 
file a bug report :P
 
I'll leave that as a challenge to the reader
 
@copy fuck you and your string properties.
 
Closure Compiler didn't know download and downloadurl and renamed them
 
11:38 AM
fuck you and your using closure compiler
or not, that seems reasonable.
 
Obviously there's a better way to solve this problem, but I didn't know it back then
 
12:11 PM
0
Q: Warn when people link to GitHub but not a specific commit

Benjamin GruenbaumOften, people link to relevant source code on GitHub. Many times - the link is to line numbers on the master branch. After some time, the code on the repository is updated and the link goes out of sync - pointing to something completely irrelevant. A simple regex that checks links to GitHub for...

 
12:29 PM
@copy renamed them to what? (and yeah I was aware of that but I don't use closure compiler (anymore, specially because of these stupidities))
AFAIK, it doesn't rename them, but simply removes them.
 
@AwalGarg It renames them to something shorter, just like it does with variables
 
wow that's really stupid.
 
That's awesome
 
:(
!!afk
 
1:01 PM
@BenjaminGruenbaum I actually have an example of this: stackoverflow.com/questions/29033499/…
see "either -F or -E" link
(now fixed)
 
@BenjaminGruenbaum +1, also what if the repository gets (re)moved?
 
@AwalGarg it's much more rare to have the repo (re)moved than lines moving
 
yeah true. but basically the problem is still there. It is a half solution to add a warning (although the solution is pretty good).
 
so If I want to build this !!> functionality I have to get the value from the input field, wrap it in (function() { ... }) and then create a Blob and make an inline worker ? do I have to JSON.stringify the input .. Although I am looking the SO-chatbot code I am not that good at reading codes ..
 
His solution addresses the 99% case
@argentum47 get better at reading code
Especially the bot code, it's usually nice to read
 
1:06 PM
@FlorianMargaine bot code is horrible
zirak's more recent commits are way better though
 
I'm not going to argue about code quality with someone who thinks php is awesome
 
I think he will slowly make it all easy on eyes.
 
ok, I have just started this code reading thing, bcoz of my urge to contribute to open source.. its not that I have ideas everytime to write something
@FlorianMargaine haha
 
@FlorianMargaine then argue with zirak. he himself says bot code is horrible. (he convinced me that it is indeed horrible)
also, says a php internal ~_~
 
I will, if the topic comes up
@AwalGarg exactly.
 
1:10 PM
I am stuck on github.com/Zirak/SO-ChatBot/blob/master/source/eval.js#L14 and Line 16 .. the function is empty
 
@argentum47 see the codeWorker.js file
he implemented his own #include compiler, basically.
 
:O awk.. that is going to b hard ..
 
.stringContents is defined on function prototype in utils.js to return function body as string.
 
also I noticed the use of CoffeScript compiler ...
 
it is for compiling coffeescript code which no one does. Not even sure if it still works or not.
 
1:13 PM
!!> function foo() { console.log('bla') }; foo.toString()
 
@argentum47 "SyntaxError: expected expression, got '.'"
 
!!c> console.log "foo" if true
 
@argentum47 "function foo() {\n\"use strict\";\n console.log('bla') }"
@AwalGarg "undefined" Logged: "foo"
 
!!c> [1, 2].map(x -> x*x)
 
@FlorianMargaine "ReferenceError: x is not defined"
 
1:13 PM
aha! still works :D
@argentum47 if you are hacking on bot code, one serious contribution could be replacing coffeescript compiler with babel :D
or even changing content type of scripts to "application/javascript;version=1.6" so we can use let. most other stuff is already in spidermonkey.
!!> let(a = 3) { console.log(a); }
 
@AwalGarg "SyntaxError: let is a reserved identifier"
 
yeah, like I am pro at this stuff...
 
!!b> for babel
 
you just have to replace a string...
 
@argentum47 I estimate adding babel to ~10 lines of code
 
1:17 PM
github.com/Zirak/SO-ChatBot/blob/master/source/eval.js#L17 just add ";version=1.6" to the content type. done.
 
ok I can try that .. babel
 
@argentum47 the hardest is not writing code, it's going to the sandbox to test it.
 
1:32 PM
@BenjaminGruenbaum Is there any way I could privately contact you?
 
CoffeScript interpreter? waaaaaaaaaaaat
 
I have build the bot with node build.js no-min ... how do I run it? @AwalGarg
 
Apr 21 '13 at 9:07, by Benjamin Gruenbaum
TipRanks (Israel) is hiring web developers. High pay, good conditions. JavaScript. Anyone interested email me at benji@ tipranks.com
 
@FlorianMargaine Thanks!
 
1:35 PM
plus one more thing to ask before I fade ... where is that #build code
 
@argentum47 Don't fade away, use new Fogg for men
 
pretty sure you can't smell me over the internet
 
What is the markdown in stackoverflow to put a line across the text?
 
A bunch of dashes or underscores or something I think.
 
Well I can get around with it with <strike>
 
1:45 PM
ohhhh nevermind
I thought you meant like an hr
 
Is promisifying stuff like this ok?
 
Does anyone here use Atom? Sublime Text is starting to annoy me.
 
@twiz I do.
 
Is it pure awesomeness?
 
I don't like that it uses text inside comments for text completion
I like all other aspects of it
 
1:52 PM
This is so embarrassing. I just asked something on stackoverflow, and then I realized what the problem was and then answered my own question after 5 minutes.
 
And most likely that problem will be solved soon
 
You mean if you type a word in a comment, that word will show up in autocomplete?
 
@afonsomatos I have a question unanswered for 1 year
@twiz Yeah
(Only tested with javascript)
But I like the performance and task switching
 
@afonsomatos I do that a lot, or once I type it out I figure out the answer and realize that the question isn't worth asking.
Ok, cool. I'm going to give it a try.
 
1:56 PM
@GabrielTomitsuka I'm having a cocktail (old fashioned) and reading philosophy on the beach - so if it's not urgent I'll answer later but you're very welcome to contact me at benjamingr @ gmail
Cheers
!!afk
 
That was so polite. haha
 
Now I am jealous
 
Um yea, I could tolerate being there...
 

« first day (1722 days earlier)      last day (3227 days later) »