« first day (1129 days earlier)      last day (3818 days later) » 

1:00 PM
@CJRamki okay np , Thanks for your help :)
 
@MehmetAkyel well kindly refer to the tutorial
 
asp.net c#
 
var iconBase = 'path/to/your/maps/folder';
var marker = new google.maps.Marker({
  position: myLatLng,
  map: map,
  icon: iconBase + 'schools_maps.png'
});
basically that
now how will you connect this to your c# server
is pretty simple
 
@CJRamki there ?
check this i have done :) jsfiddle.net/Ms678/6
 
@AbhishekHingnikar pastebin.com/ZpjCnBwU
 
1:02 PM
yuck !
 
I set istasyon.png for station on map
 
i got it
but that is just one type of marker right ?
 
I want to set truck.png for truck on map
yes
 
is there a field in your table which tells the type ?
 
1:03 PM
      for (i = 0; i < markers.length; i++) {
          var data = markers[i]
          var image = '/Images/istasyon.png';
          var myLatlng = new google.maps.LatLng(data.lat, data.lng);
          var marker = new google.maps.Marker({
              position: myLatlng,
              map: map,
              title: data.title,
              icon: image
           });

      }
 
data.lat and data.lng takes from Dealer table Lat and Lng of station
I dont have problem about station
 
@MehmetAkyel well my friend
can you give me an example for data ?
i mean does the data specifies a type for each marker ?
i will assume it does use some type of string
 
which data ? truck data ?
 
the marker data
@phenomnomnominal -_- helpvampire help day for me
@MehmetAkyel i quite don't understand why didn't you just made an if condition for the type of image
i mean
     var pointers  = { 'truck':'truck.png','default':'istayon.png' };

     for (i = 0; i < markers.length; i++) {
          var data = markers[i]
          data.type = data.type || 'default'; // this will set the data#type to default
          var image = '/Images/' + pointers[data.type]; // get an image from our map of images
          var myLatlng = new google.maps.LatLng(data.lat, data.lng);
          var marker = new google.maps.Marker({
              position: myLatlng,
              map: map,
@MehmetAkyel that should do it :P
 
1:09 PM
but just to make sure we have a type
 
@AbhishekHingnikar there are no display station icon and truck icon
map is empty when I use these codes
 
@MehmetAkyel -_- you have to actually put them
 
@AbhishekHingnikar didn't go too well
 
@BenjaminGruenbaum can we npm install sanity ?
 
1:14 PM
1 message moved to recycle bin
 
@MehmetAkyel oh god all your data is trucks ?
 
They are in Images folder
 
@AbhishekHingnikar that's just MVP
 
@BenjaminGruenbaum in brain@mehmat
 
@chintankhetiya Hmmm... It's working...
 
1:15 PM
i gave him example code he put it in production :-/
@BenjaminGruenbaum Uncaught TypeError: Object function Object() { [native code] } has no method 'observe'
 
@AbhishekHingnikar stop using a shitty browser ^^
 
@AbhishekHingnikar snag.gy/yCmxJ.jpg
 
@BenjaminGruenbaum Google Chrome
 
my datas from sql
 
No wai.
Works here
Update your chrome to a non-shitty version
 
1:16 PM
@BenjaminGruenbaum thats why i am fucking shocked
have you enabled the flag for ecmascript experiment or something ?
 
Google Chrome	31.0.1650.57 (Official Build 235101) m
OS	Windows
Blink	537.36 (@161986)
JavaScript	V8 3.21.18.7
Flash	11.9.900.152
my chrome
your move benji
 
lemme try coding it in Angular
@AbhishekHingnikar Don't know, maybe you have something messed up installed.
 
@CJRamki jsfiddle.net/Ms678/13 but same thing is not working
cannot call methods on dialog prior to initialization; attempted to call method 'close'
 
@BenjaminGruenbaum how can that even happen ... this is Windows !
i can install chrome - canary
 
1:19 PM
@CJRamki i have set that time 100 to 1500 , and its perfectly working in fiddle
 
@MehmetAkyel your question is beyond my understanding.. i mean i just can't understand whats failing on u -_-
..
 
@chintankhetiya If you call "call me()" in onload, it will work...
@chintankhetiya R U creating mobile applicaton?
 
@AbhishekHingnikar do you understand what I want ?
 
@CJRamki Yeah , i am mobile developer , and already build one app in Phone gap , this is second
@CJRamki Yeah , that is working in fiddle but not in my file
4 mins ago, by chintan khetiya
cannot call methods on dialog prior to initialization; attempted to call method 'close'
getting error ^
 
1:24 PM
Ok.I have a query from sql.This query show me all lat and lng of stations and all lat and lng of truck.I did display markers icon for station on map.I want both of station and truck on same map
 
@whitehat101 I think you can help me
 
@AbhishekHingnikar do you understand me now ?
 
Okay so i am trying to have multiple express app's running on the same instance of node.js , they just route seperately .. I wish to restart these child app's without starting my web-server itself. is that possible @BenjaminGruenbaum , @dystroy , @Thie
 
@chintankhetiya copy and paste this error in google search box... already So many developers faced this problem...
 
@MehmetAkyel why can't you have one field in the data you return from the query which tells if this lat and long is for a truck or station
 
1:26 PM
@CJRamki yeah , check that all one
 
then on your client u can loop through this data and set the icon field dynamically
 
@AbhishekHingnikar They are different table in sql
I have trucks and station table
 
@MehmetAkyel sorry can't help you ... i can't write code for you
you aren't even seeing the obvious
refer to the Googles example
to through it
 
I did not say you write code for me
 
then my friend i told you
 
1:28 PM
I dont know set multiple different markers icon on same map
I am asking that.
 
dude !!!
var marker = new google.maps.Marker({
  position: myLatLng,
  map: map,
  icon: iconBase + 'schools_maps.png'
});
 
thank you for your time
 
you see that function ?? do you ?
that icon attribute in your call
it tells which icon to display
you can change it to different images for different icons
so when you get back stations u can set it to station.png and when you get a truck query set that marker to truck
that function creates a marker with the GIVEN IMAGE
markers can thus have multiple images
 
ok thank you ;)
 
Which one is better to use in websites whether jpg or png?
 
1:32 PM
It always bothered me that I need scope.apply from outside angular.
jsfiddle.net/Z2y9M the fact I need to $apply here is totally broken.
 
posted on November 18, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Whee!

 
@CJRamki totally depends on the image
 
@mikedidthis I Understand... Thanks...
 
@CJRamki if its low colours / transparent pngs. If its a photo, jpg.
 
1:38 PM
@Feeds Hahahaha
 
@mikedidthis hmmm.... It's depends upon our image and also our need
 
@C5H8NNaO4 not a big deal - they just overwrote Function.prototype.call
 
Hi guys, what's going on?
 
@BenjaminGruenbaum I know, i wrote it^^

But it's overriding Function.prototype.call, to get a reference to InjectedScriptHost in order to override InjectedScriptHost.prototype.evaluate, to forward any entered expression to CoffeeScript.compile
 
1:42 PM
@C5H8NNaO4 ah, if you wrote it it's way cooler :)
Thought you found it. Nice hack ^^
 
now do u get me @MehmetAkyel ?
@BenjaminGruenbaum any suggestions mate ?
 
@BenjaminGruenbaum wanna face this :D
 
@CJRamki urm.. ok. I mean as a rule of thumb, that is usually the deciding factors.
 
i inject an app using app.use('injection_name',injection_app)
 
1:46 PM
kids = (x) -> x*x
function (x) {
    return x * x;
  }
kids 2
4
nice
 
@mikedidthis Can we create gif icons using fevicon?
 
DD.
bye tc frnds@AbhishekHingnikar @Gamex @chintankhetiya @CJRamki @all
 
@BenjaminGruenbaum :P :)

The only thing I don't like about is that any website could read what i enter into my console, and could fill my clipboard with stuff

It's now a bug in Chromiums issue tracker as Security-Severity-Medium at least
 
@DD. have a good day
@BenjaminGruenbaum yeap
 
1:47 PM
@DD. bye
 
now it works ... after restarting chrome -_-
 
@CJRamki you need to convert the image to .ico
 
express has a mount (use) but not an unmount :-(
thats sad
 
@DD. I'm also going to leave... Bye.. meet tmrw
@mikedidthis Thanks for the info...
@AbhishekHingnikar Bye... meet tmrw...
 
@CJRamki no problem.
 
1:49 PM
@FlorianMargaine What was that arrow-notation/lambda thing from?
 
@all bye guys
 
@Kippie CoffeeScript
 
Oh.. Is CoffeeScript the main way to go now?
 
not really
 
@FlorianMargaine any way to unuse a middleware in nodejs ?
that you can think off other then using something like
function conditional(condition,fn){
  /* returns a function which takes a req and res and only fires the req/res if the condtion is enabled */
}
function when(setting, fn) {
  return function(req, res, next){
    if (app.enabled(setting)) {
      fn(req, res, next);
    } else {
      next();
    }
  }
}
 
@SomeGuy lol
 
2:21 PM
Today is a good day!
Mexico is the fattest country in the world, not the US
 
@Loktar no wonder
China will most likely be the thinnest :)
How to dynamically mount - unmount a middleware in express ?
 
2:35 PM
Anyone good in regular expressions?
0
Q: Handle CSV rows with first value an empty string

イオニカ ビザウI use this function to convert a CSV row to an array function CSVRowToArray(strData, strDelimiter) { // return if strData is an empty array if (strData === "") { return []; } // Check to see if the delimiter is defined. If not, // then default to comma. strDeli...

 
@AbhishekHingnikar this is what visionmedia suggests, and is probably the cleanest way. What don't you like there?
maybe telling us your use case would be better (XY problem)
@イオニカビザウ why don't you use var lines = csv.split(/\n/), values = lines.map(function(line) { return line.split(','); }); ?
 
@FlorianMargaine It must handle quoted fields too.
 
ah, I see.
 
@FlorianMargaine So, what I need is to return ["", "2", "3"] for ",2,3".
 
Hi
 
2:47 PM
0
Q: Degrees of JS vulnerability

CodeMooseNever trust the client. It's my coding mantra. All javascript can, with enough effort, be overwritten or compromised. The thing I want to understand is how. Let's say I wrote a function checkStep() - each time the player moves one space, it polls the server to check for any events: HP regenerati...

 
@FlorianMargaine Can you give an answer...?
 
@FlorianMargaine I want to have 3rd party apps
and want to add/remove them dynamically :P
 
3:16 PM
how do you plan on implementing this?
 
Well have a server, where people can publish their apps
it just adds a git repository in directory of thier app, linked from github or whatever they want well its just a friken git repo :D
so to update a server all you do is git-push .. awesome ?
 
what's an app?
 
@FlorianMargaine you seen facebook apps ?
 
3:19 PM
they're basically iframes
 
i know but i don't want iframe apps
 
so I don't see how this relates to express middlewares
 
i want an ecosystem where apps can talk to each other
so i can have '/user/:id/:appname'
now each app will be an express application running independently but with the core as a parent app
the core allows these apps to talk to each other and stuff by providing a common functional authentication and some core services and also intents
 
doesn't make sense
 
-_- .. i think i am horrible at explanation
 
3:22 PM
each app can't be an express application running indepedently, you have a limited number of ports
yes, you are
 
@FlorianMargaine you can do core_app.use('/appName/',different_app);
makes sense now ? and i apologize for being very slow on explanations
 
so basically you trust the apps to answer some of your URLs with whatever they want?
how are you going to protect your database? an app is just part of your code in your architecture
 
they never get a reference to the db
 
they're in the code, they can easily use some reflection or whatever
 
how else do you think i can implement this ?
 
3:25 PM
why do you want apps to talk to each other?
 
if you can suggest something better please do !
 
hey guys i am trying to get a php file to repeat it's code over and over again after an Interval of so many seconds i realise i can't do this in php so how can i call the php to do it's thing in-between the setInterval tags .... setInterval(function() { Call .php file to do it's code },3000);
 
@AbhishekHingnikar
31 secs ago, by Florian Margaine
why do you want apps to talk to each other?
 
@FlorianMargaine I wan't them to be able to talk in terms with http, but this was the only method i found allowing core services
 
what do you call core services?
 
3:26 PM
like an app can do api.goph.me/users/me/airdrop/share?res_uri="foo"
 
@IamGnat What, exactly, is involved in "Call .php file to do it's [sic] code"?
 
where airdrop is a 1st party app
 
@AbhishekHingnikar seriously, open a google docs, write up a full example with explaination. Will save time for both of us.
 
good point :D
 
@RyanKinal all i need to to do is just say to do what the php file has in it, the only method i know of telling the php file to do something is to actually send information to it however i am just trying to get it to do code it already has inside it.
 
3:28 PM
@IamGnat you don't want to refresh the page constantly?
 
@RyanKinal the php file contains code that checks the user is still on the user database, so if say they are banned they drop off the user database however i want to redirect them off the page
 
@IamGnat You'll want XHR/AJAX for that, I think
 
@RyanKinal yeh i believe ajax would be involved within the setintival tags se i can check it when they login however i want it to constantly check it as they might get banned within there stay in which case i want the user to be redirected off the page
@RyanKinal should i go find a ajax chat room ?
 
No, we can help you with that
We probably just need more details
Can you post the code you've tried? Maybe in a gist, a pastie, or something similar?
 
which is the best approach to logout from social networks from my app. I mean, in my website I provide the option to login with Google/Facebook. Which is the best approach to logout, I mean, should I revoke the access to facebook, and delete the user register from my DB?
or should I simply remove the access from cookie, and keep the user in DB. I still need his data on my server.
 
3:34 PM
@rogcg That one
 
?
 
The latter
The one I replied to
 
1 sec i have an idea
 
// With jQuery, but it shows the logic
$.get('/your/file.php', function(data) {
    // your request succeeded
    // might need to check the data
    // to see if the user is still there
}, function(data) {
    // your request failed
    // do some error handling
});
 
@RyanKinal so in case I logout, and the user wants to access again, I should just search for the facebook Id I store in database, and update with the new tokens, etc?
 
3:35 PM
@rogcg Yep
 
.get doesn't take error callback
 
Meh. Don't care.
 
Good morning
 
Visual Studio won't load my project. All I get is "not responding"
Restarting.
... apparently all it took was a threat.
 
> I think that code will be big, I need something small. thanks. stackoverflow.com/users/3003299/user3003299 stackoverflow.com/questions/20040731/…
 
3:39 PM
Hi
 
Welp.. that didn't work.
 
where can i post my code easy ?
 
@RUJordan omfg... wtf is this answer?
 
> tuteriols
tuteriols.
 
3:45 PM
> fuction
 
Not to mention .style="color:green"; should be .style.color = "green";
 
Truth
 
Wowwwww just tested my script in IE7.. shit doesn't work at all. Images are freaking huge.. yet in chrome, they are nice and small.
 
Gonna watch porn in IE from now on.
2
 
lol
Anyone work with D3 before?
 
3:49 PM
Literally that made my morning
 
user1596138
@Btuman Nope. But the Reingold–Tilford Tree looks cool as hell.
 
so do the "tadpoles" bl.ocks.org/mbostock/1136236
 
@RUJordan Actually, no, the sun literally made your morning.
 
Are images inline in IE7? They are side by side there, but in chrome they are stacked =x
@KendallFrey touche
 
I was hoping anyone would have a link for a good tutorial or documentation
 
3:52 PM
@RUJordan Images are inline in all browsers. By the spec.
@Btuman Not me, sorry
 
That's what I thought, but they are stacking in chrome and I don't have a breaktag in there
 
anyone? I will offer brownies for an awesome enough link
 
@RUJordan Something in your CSS?
 
@Btuman sorry doode, I don't even know what D3 is besides a hockey movie.
 
3:54 PM
@Btuman youtube.com/watch?v=n5NcCoa9dDU Brownies please.
 
@RyanKinal it's gotta be. I didn't write the CSS so something has to be in there. To the element inspector!
 
Ryan, i tried that one. Like nails on a chalkboard (if its yours, I am sorry, it just does not work for me for a ton of reasons)
 
user1596138
@Btuman You mean the sperm..
 
@Btuman Psh. Sez you.
(I really have no idea what I'm talking about... I just Googled it)
 
user1596138
"Spermatozoa" //svg. Not actual sperm
 
3:57 PM
@FlorianMargaine facebook
 
!!> 1+1
 
@rlemon [object WorkerErrorEvent]
 
damn, there was a FF update. Was hoping that fixed things automagically.
 
@Jhawins they need to be faster!
that is really cool though
 
@rlemon see PR
 
user1596138
3:58 PM
@Btuman Have you looked at the wiki? github.com/mbostock/d3/wiki
 
@AbhishekHingnikar I'm on it, you're not
 
@FlorianMargaine you see my presentation?
 
user1596138
@Btuman Big list of tutorials and docs here. github.com/mbostock/d3/wiki/Tutorials No way you won't find something useful haha
 
Jwanis, awesome thanks
 
So many um's uh's lol
 
3:59 PM
@Loktar yeah started seeing it
was awkward sometimes :P
 
haha yea
I knew it would be man
 
you didn't like the "challenge accepted" slide :(
 
Jhawins, so I think I owe you some brownies
 
well I did
 
LOL
 
3:59 PM
but I was too nervous to be like CHALLENGE ACCEPTED!
 
But first I'd like to talk about margarine and my great-grandfather. @Zirak
 
@jAndy Zirak is afk: learning to fly
 
<3
 
I didn't know any of the people there
so idk it was crazy
 

« first day (1129 days earlier)      last day (3818 days later) »