I am currently using the Google-Gson library convert Java objects into JSON inside a web service. Once the object has been converted to JSON, it is returned to the client to be converted into a JSON object using the JavaScript eval() function. Is the character escaping provided by the Gson librar...
Most well written plugins support a safe means for a developer to customize/theme the plugin by copying PHP files to the theme directory and modifying the copies rather than the original plugin file. But, unless I'm overlooking something, I'm not aware of any that support this with JavaScript/jQu...
Hi Guys, I have a question in backbone when I try something like $(this.el).delegate('select', 'change', this.method)...the function is getting bound to select view...can I make it bind to the current render view?
Using jQuery,
var mystr = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
var lipsums = new Array("dolor","consectetur","elit");
$.each(lipsums, function(i,v){
mystr = mystr.replace(new RegExp(v), '');
})
alert(mystr);
Test: http://jsfiddle.net/cu45X/
Watch the main video. the physics stuff and world interaction is astounding. the amount of detail is just wicked for a game. I mean, lightening and thunder being based on the real physics of it, sound travelling at accurate speeds... your movement is based on muscle movements and not pre movement events.... shit man...
It's like someone finally figured out that gamers want a "real world" in a video game
the art is all demo at this point made by the head dev guy - they are looking for an artist to improve on it. (although I think it is pretty damn good right now)
What gamers really want is a way to get away from the real world, into a fantasy world. If games get too realistic, eventually games will have games in them, to get away from the realistic fantasy world.
Hi Guys, I have a question in backbone when I try something like $(this.el).delegate('select', 'change', this.method)...the function is getting bound to select view...can I make it bind to the current render view? Can somebody help please?
guys im trying to extend the Object prototype like this: Object.prototype.slice = function() { var target = {}; for (var i in this) { if (this.hasOwnProperty(i)) { target[i] = this[i]; } } return target; }
To need JavaScript is to need jQuery, since it's faster (to type up) and easier to later review (and understand) jQuery = JavaScript on Steroids (only instead of shrinking anything else, it just shrinks your code length :) — VoidKing34 secs ago
> Most browsers have bugs in their implementation of getElementById, getElementsByName, getElementsByTagName, getElementsByClassName and querySelector.
better idea would be to randomly show a number on the screen on a pseudo random interval. Only show the number for 2 and a half seconds or until the user hovers their mouse over it. The only way for them to get any real information from this number is to press in sequence - up,up,down,down,left,right,left,right,B,A
I knew that vote counts existed because I saw it at my brother's screen, who has been a member of the Stack Exchange family for about year at that time.
tl-dr-update It's friday - another long day of support for mr. lemon so this was lacking all day - we (i mean I) talked about a new game, check it out. kickstarter linkwatch the main video. Kyle loves js (sharepoint was getting too you?) and Rob hates vote counts (idk, I likely made this last fact up.)...
tl-dr-update SharePoint 2013 (and Office 2013) has shifted gears in its development model. Apps are created using HTML/JS with a JS library (office.js) that allows integration with the app. OAUTH is used for app trust. Prepare for lots of JS newbs.
I like this tl dr update thing - Imma steal it for c# room
I am drawing a PNG image to an HTML canvas and I have implemented a filter system to allow convolute filters to be executed against the image data before it is blitted to the canvas.
Does anyone have an idea how to create a glow effect using either a convolute kernel / matrix (I'm not sure what ...
I have a JSON object
json = [{id:1,name:a, cat:1},{id:1, name:a, cat:2},{id:2, name:b, cat:8}]
I need it so that I just get the first of the duplicated id
json = [{id:1,name:a, cat:1},{id:2, name:b, cat:8}]
I need this using Javascript
Thanks,
Gerald