« first day (1291 days earlier)      last day (3660 days later) » 

11:01 AM
you can access the HTML elements by its id / tag / class (nodelist), and replace the content.
it depends of your structure though
 
11:15 AM
0
Q: angularjs $q -> deferred API order of things (lyfecycle) AND who invokes digest?

artyThe $q service is very powerful in angularjs and make our life easier with asynchronous code. I am new to angular but using deferred API is not very new to me. I must say that I completely ok with the How to use part of documentation + there are very useful links for that within the docs + I ch...

 
11:32 AM
@Feeds actually, that was pretty fun.
 
@Feeds I should stop answering these Angular questions.
 
11:41 AM
I am open sourcing snapick
#what the duck ?
Is there an open source license which restricts the use for educational purposes only ?
I wish to open source the query parser thing and make it a separate open source api
Any collaborations would be amazing any collaboration is welcome
 
@user1295083 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.
 
@AbhishekHingnikar Why not GPL it?
Also, why open source it?
 
@CiprianStoica 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.
 
vs7
hi, is it possible on click on some link add to bookmark (bookmark bar) directly using js ?
 
user3071008
11:48 AM
not directly
 
vs7
i dont want to add current open link
i have 3 button
1. bookmark 1
2. bookmark 2
3. bookmark 3
when user click over 3
3rd bookmark need to be added in bookmark bar
 
hello evryone
 
@vs7 Have you read the link I provided?
Thought so.
 
vs7
@Miszy its going to else case
 
i want to know where my sql table stored in javascript
 
vs7
11:56 AM
press ctrl+D to bookmark
 
@vs7 voilla, you got your answer.
 
@vs7 @Miszy
 
@Bary12 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.
 
@NamoNamo Don't do that.
 
i want to see my db
 
11:57 AM
@NamoNamo What db?
 
i have cr4eated through javascript
 
@vs7 "Firefox, Chrome and Safari all alert"
 
database i have created. successfully created
now i want to see where it will created
 
i checked in doc directory
 
11:58 AM
What kind of db? indexedDB? @NamoNamo
 
sql DB
 
We talking node.js?
 
@NamoNamo SQL is a language not a database.
 
vs7
@Miszy cant be it done automatically ?
 
Do you mean webSQL?
@vs7 It cannot be done automatically for a good reason: safety.
 
11:59 AM
please check this.
 
vs7
@Miszy oh , btw thanks
 
@NamoNamo You're talking about PhoneGap/Cordova plugin?
 
yes
can u help regarding that
 
So it's some sort of web page for your phone app?
 
@NamoNamo What's your question? Does this code work?
 
12:02 PM
yes code works fine my db are created. now i want to see the created db where i look for this.
 
@NamoNamo Do a SELECT and you can see what's in the db :P
 
var results = tx.executeSql('SELECT * FROM DEMO');
 
i know that. but i want its location where its created means in doc ument directory or somewhere else
 
@NamoNamo Definitely somewhere else. Depends on the engine really.
 
o/
 
12:06 PM
I'm sure that while it probably exists as a file on the phone, you're probably not supposed to be able to tamper with it
 
And you don't need that info.
 
is there a way to tell google chrome to not show that "remember your password?" thing?
 
Seriously, you don't.
 
did anyone ever experience the geolocation error - callback not firing on Firefox when the user declines geolocation permission?
 
12:07 PM
hello
how to uncompress gzcompress data in javascript
in case browser dont support http encoding?
 
@MuneemHabib You can try github.com/gcanu/gzip.js
 
@MuneemHabib You generally are supposed to use base64 when you want everything to be nice and compatible
Though that isn't the same as compression
 
base64 is anticompression :P
 
thanks for repyl
i am using gzompression base 64 in php side
will it work?
 
o.O
 
12:15 PM
@Miszy maybe I'm bad at this but where does that flag... go?
 
@Crow From the developer or user perspective? :P
 
@MuneemHabib Sure, you could use gzip on the data, then use base64, then use gzip again for good measure, and base64 that
 
If someone could proofread that last answer that'd be nice.
 
what's wrong with you google developers ?
 
@Miszy developer. The problem is their little slide down thing slides down at the same time as mine and looks ugly
 
bah! It worked! Foul sorcery say I!
 
posted on April 29, 2014

OK, so Vitaly let the cat out of the bag: I’m writing a new book: The Mobile Web Handbook, and Smashing Magazine is publishing it. It’ll be roughly 250 pages and will be available in June. Pre-ordering is possible right now. My topic is the mobile web, which some maintain does not exist. However, for me it’s really a convenient shorthand for “touch-based small-screen w

 
12:34 PM
Is it possible to provide a Node module for a given name? Like when somewhere in the codebase, there is a require('debug'), it would load my module instead of the default debug module?
 
guys
oh hi @Miszy
aren't you supposed to be working or something
 
@dystroy :(
 
@dystroy :(
 
@dystroy yeah, saw that, disgusting
 
12:39 PM
"disgusting" ?
 
yup
as in, makes me want to puke
 
I'm sure some "hackers" are now exploring that list, just in case... and I won't pity the coders who get caught here
 
@Swarajghosh 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.
 
AngularJS "is built on top of JQuery"
true statement ?
 
> To use the source map in, for example, Chrome devtools, you must embed the Traceur compiler in a Web Server and serve the source map at a URL you assign to a X-SourceMap header when you serve the source .
sigh
that's FUBAR
that's just lame
that's a loophole in the whole sourcemap idea
 
12:46 PM
I think it can also get fetched at a standard relative URL without any server part. Am I wrong ?
brb, looking at how I use them
 
@dystroy please do
 
@dystroy : actually it doesn't matter if it's a GET / POST. If they don't even care to validate the GET/POST data ... then what with the sudo
 
@BartekBanachewicz to start providing a source map in miaou I just added a few chars here : github.com/Canop/miaou/blob/master/make.sh#L20
 
I don't mind copying traceur.js for development purposes, but installing Node.js for a static site is a bit of overkill
 
I'm sure you don't need node to provide a source map, just serve the file normally and if the user wants to look at the source, the browser queries the obvious url
 
12:52 PM
@dystroy I am serving a file as <script type="module"> and I'm using Traceur's boostrap thing to automatically compile it. And so, I don't get the sourcemap working.
 
github.com/gcanu/gzip.js its not working
 
I've also set up Traceur's sourceMaps property to true
 
i have found that browser automatically uncompress data
but my browser dont support http encoding
please help
 
http encoding ? What's that ?
usually gzip compression/decompression should be handled by the server and browser, they're good a negotiating that depending on their abilities
(meaning they always choose gzip or nothing now)
 
1
Q: Multiple grid areas in one gridster instance

Karl ViiburgLets say i have a functioning Gridster grid <div class="gridster"> <ul> <li data-row="1" data-col="1" data-sizex="1" data-sizey="1"></li> <li data-row="2" data-col="1" data-sizex="1" data-sizey="1"></li> <li data-row="3" data-col="1" data-sizex="1" data-sizey="1"></li> </ul> </div>...

 
12:55 PM
@dystroy my browser dpoesnt support it
its not decompressing compressed data
 
Mosaïc ?
 
nice trick
'#'+(Math.random()*0xFFFFFF<<0).toString(16);Mohsen May 6 '11 at 7:49
to get random color
 
The interesting thing for codegolf is that <<0 doesn't need parenthesis
a*b<<0 is shorter than my usual ~~(a*b)
I should edit that one : stackoverflow.com/questions/23277585/… :)
 
hm weird
they've changed question sorting on SO at some point
my own question got dumped insanely deep given my preferences :)
 
where is question sorting used ? In searches ?
 
1:07 PM
@dystroy mustache operator has failed :)
now i have to adapt it a bit, that green/red color ranges are ignored.
 
!!> Math.random()*0xFFFFFF<<0..toString(16);
 
@dystroy 8300283
 
i see 2 dots, but that's not an issue for the bot :p
 
what a joke that Chrome still does not support css hyphenation
 
!!/google css hyphenation
 
pretty much the last browser left, even IE and other webkit browsers do support hyphens
 
2 hours left until home time
 
@jAndy you're right, that's sad. I remember now to have tested that a long time ago
 
thought that it's an experimental CSS3 feature
 
If there's a filled bug, I'm willing to star it
@KarelG it's old, isn't it ?
 
1:13 PM
Firefox supports it like forever
 
btw, can I post that traceur question here?
 
@BartekBanachewicz yes. I don't know who can answer but we'll all be interested
 
0
Q: Is it possible to use source maps with Traceur used directly from the page?

Bartek BanachewiczI have a small static project written in ES6. It's compiled with Traceur dynamically every reload (for development purposes): <script src="lib/traceur/traceur.js" type="text/javascript"></script> <script src="lib/traceur/bootstrap.js" type="text/javascript"></script> <script> traceur.option...

 
well, tbf, i didn't have played with it (yet)
 
@dystroy the only reason for compiling client-side is ad-hoc development and similar tricks, and if you don't get sourcemap for those it gets kinda useless
 
1:16 PM
user image
6
nice one :P
 
I in particular will need a DSL
 
@jAndy heh, the female is driving at the right side while the male one is driving at the left side.
 
Is google moving things from code.google.com to github ?! code.google.com/p/traceur-compiler
 
@jAndy +1
 
hello are you gus also experienced in java ?
sry for the spelling mistake ^^
 
1:19 PM
@WarGodNT Bartek is. Ask him anything
 
i have a little chalange i realy need the help if i like the result solution i would wlso pay a drink :D
 
!!define java
 
@RyanKinal java A blend of coffee imported from the island of Java.
 
In that case, yes. I am experienced in java.
!!urban java
 
1:20 PM
@RyanKinal Java A programming language commonly used as a solution to everything and anything.
 
In that case, no. I am not experienced in java.
 
oh man.. imgur is pretty addictive once you're in
 
there is the chalange :D
 
@WarGodNT To be fair, you're in the JavaScript room. Not the Java room.
 
@jAndy It's good when it's not animated
 
1:22 PM
@RyanKinal hmm simmilar syntax xD
 
...
 
@WarGodNT you know, it's really not very similar
 
javascript doesn't have similarities to java. Moreover, it's superior to it.
 
@KarelG well let's not get overboard with JS superiority
 
@dystroy what did you just say :P ?
nyan cat 2.0
 
1:25 PM
@WarGodNT Yeah, they're both C-style languages. They have curly braces. But that's about where the similarities end.
 
@RyanKinal inb4 he goes to C room
 
lol
 
LOL AHHHH I'M OBSESSED
 
... gonna be one of those days, huh?
 
!!mhm
 
wiggle cat is awesome
1 message moved to Trash can
 
Jef
Does anyone know how to get the value of an yAxis label in with the label formatten in highcharts?

I want to get to value, so I can change it's color if it's an certain value.
 
0
Q: highcharts: get yaxis title?

MikeI have a graph with 2 yaxis and i am tying to get the yaxis title for each series in the tooltip formatter. This is my formatter function: formatter: function() { var s = '<b>'+ Highcharts.dateFormat('$hc_date_long', this.x) +'</b><table>'; sum = 0; var abweichung = 0; var stel...

(Google ftw)
 
Hello guys
I have a question about popcorn time, did they used node webkit to make it a standalone app?
 
no, they used cheese, as for everything else
 
1:41 PM
Mmm. Cheesy popcorn.
 
user1596138
20 hours ago, by Jhawins
Form spam free for: 6 days
 
user1596138
Come to work today and have ~30
 
so funny
 
user1596138
Because I accidentally broke the filter before I rushed out yesterday haha
 
@Mokkun Really, though. I have no idea what popcorn time is, or how it was built.
 
1:43 PM
@RyanKinal It's a nodejs standalone app that stream torrents from popular sources, sort of free netflix
 
@RyanKinal curly bracec is not whear the similarities end... if and while text("") everithing is the same
 
user1596138
@Mokkun That sounds awesome. HTML5 player?
 
user1596138
I'll just go look ha
 
it was shutdown within days because of media pressure but it was forked a lot and it's still working
 
user1596138
1:44 PM
Oh god dammit
 
user1596138
Yeah I'll just fork it... But not on github lol
 
@WarGodNT So... you mean common control structures that are in ridiculous amounts of languages.
@Mokkun So, you have the source code. And you've looked at it. And you're asking us how it was built?
 
@RyanKinal didn't you hear? JavaScript is just a subset of Java
everyone knows that. jesus
 
I haven't looked at the source code, since it made a big buzz I just asked, I thought people would know about that, I'm currently at work and I can't have a look at the source code right now
I know it's build with nodejs but since I don't know much about it I don't know how you can make node JS apps a standalone
 
uhm, just check the folders ?
 
1:47 PM
anyone know anything about premium bonds?
UK
or anyone able to help me with the maths of probability
 
it seems they used nodewebkit
 
> "grunt-node-webkit-builder": "git+github.com/gpt-modules/grunt-node-webkit-builder.git";,
yerp
 
@lenyapugachev 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.
 
I thought they used something else after reading stackoverflow.com/questions/13388108/… "Node-Webkit is an option, but it really isn't set-up to do a "server - client" type relationship."
 
!!s/Script//s
 
1:49 PM
@jAndy @lenyapugachev Welcome to the Java 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. (source)
2
 
@Mokkun Could be. :shrug:
 
@DrogoNevets : a question. Can you retrieve a leaflet object after an event on it ?
fe
var c = L.circle(); c.on('click', doSomething);
var doSomething = function(e) {
    // e.target doesn't get the circle obj but the map one ...
};
 
@KarelG should be able to, that your code?
 
0
Q: Handling errors in multiple calls of AngularJS promises

e.gluhotorenkoI have an AngularJS service with such async API: myService.asyncCall(['id0', 'id3', 'id2']).then(function (complexData) { // handle complexData }).catch(function (error) { console.log(error); }); asyncCall incapsulates multiple calls of $http which handled by $q.all. Each of the $ht...

 
i want to have the object ... it's a Path object (well a circle)
 

« first day (1291 days earlier)      last day (3660 days later) »