« first day (816 days earlier)      last day (4118 days later) » 

9:03 AM
@AmaanCheval yay! ;)
 
Cute kitteh.
 
hey guys, seen new github profile page?
 
since yesterday I think.
 
9:12 AM
Oh, fancy!
 
@canon Not bad. Even though I don't quite like jsFiddle anymore.
 
0
Q: Where can i keep study according to new technologies

slash1zI hope my question will be clear enough, I am asp.net programmer and I am not dealing with this now(work in other field). Maybe someone knows a site or something that I can develop something according a requirements(guide lines)? Like a real job. For dealing with real life development in the web ...

 
aaah, screw you cornerstone!
 
@octavian what's not to like?
 
9:14 AM
@canon The constant 503s mainly. ;)
 
this is just retarded
 
It's an alpha!
 
Can anyone help me? I am developing a javascript Win 8 app and working on the search results. I need help working out how to bind my data, which is called from a web service, to a Listview template. I have it working if I try and bind to the listview with some sample data outside of the web service call, however when I try and do it after retrieving my data its not working. Anyone have experience with this kind of thing?
 
I'm well aware.
I used to like and support it a lot in the past.
 
is there a good svn-client for mac around?
 
9:16 AM
@OctavianDamiean Do you use an alternate site which provides the same functionality?
 
Yup.
jsbin and codepen
 
@canon CodePen
The changes they made recently kind of screwed it up more (JSFiddle, not CodePen)
 
I've been noticing a bunch of codemirror errors lately on jsfiddle
and it keeps wanting to add extra }s to my css
until now I wasn't really aware of an alternative
 
JSBin's been around for long
Before that I used a modified copy of drunkenotter.com
I still use it as a notepad
Basically edited it to save the code in localStorage and have separate "notes" as hashes
 
omg, a frameset
 
9:22 AM
Hahaha, yeah
 
holy crap, it's 4:22am
I need sleep
 
All of these have to use some kind of frames
Night
 
> "Could not contact repository to read the latest log entries. The log displayed may be incomplete"
you don't say, cornerstone, you don't say. the log you show me is effing empty
and all that after i tried to cache the existing log
but is there a "clear log cache" - option
fuck no, who would need that
 
Does anyone have two minutes to skim through this link and tell me if the function
`WinJS.Utilities.id` can be used to return a DOM element which is a class rather than an ID. Would be greatly appreciated :-)!
http://stephenwalther.com/archive/2012/02/23/metro-query-selectors.aspx
 
> ... return a DOM element which is a class rather than an ID ...
huh?
 
9:35 AM
Thought that might not make sense :-| will explain better...
 
Shit ... now I know what I'm missing at work.
I need mah music.
 
msdn.microsoft.com/en-us/library/windows/apps/br229831.aspx This function returns zero or one DOM elements matching the specified id. Now what I wanted to know is if my html says <div class="xxx"> rather than <div id="xxx"> will it still retrieve the element?
 
@OctavianDamiean I'm in training. Can't my music ._,
 
@James That particular function will only return a DOM element if you provide an ID apparently.
 
9:40 AM
Ok, any idea how I would adapt it, or use a different function for a class element? Is calling it a 'class' element correct terminology?
 
What you really wanted to say was, selecting one or more elements by their class attribute.
It is an attribute.
 
Ah ok, I think that was the terminology I was looking for! Thank you, and yes that is what I'm trying to do.
there is another function WinJS.Utilities.query however it seems to share the same limitation
 
The query function looks more like what you need.
I think it is just that the example is a bit bad there.
It should do what you want.
 
@James you should learn how to use selectors
if you know CSS, you already know them
 
My code looks like this but isn't returning anything:
var products            = new WinJS.Binding.List([{ title: "Milk", text: 2.44 }]);

var publicMembers = { itemList: products.dataSource };

WinJS.Namespace.define("ListViewDemos", publicMembers);
var listView = utils.query("termTest");
ui.setOptions(listView, {
    itemDataSource: publicMembers.itemList,
	itemTemplate:  utils.query("itemtemplate"),
	oniteminvoked: this._itemInvoked,
})
@FlorianMargaine I do need to catch up on that you're right. I learned HTML and CSS about 5-6 years ago and only coming back to it now so I'm rusty.
 
9:45 AM
You have to add the class symbol apparently. So utils.query(".termTest");
Note the period.
 
0
Q: How to verify data from localStorage on a server

Hobbes of CalvinOn my mobile app, I am storing the username of a logged in person, and downloading some data for the given/stored username. When the user checks for updates to his data content on the server, the server dishes out a delta of the content, based on the username. The app then updates its local displ...

 
Hmm, I've tried that and still no luck. It doesn't break, but it just doesn't bind the data to the listview either. Do you know of a way in Visual Studio to verify that it is getting the correct element? Is there something I can view in debug mode?
It's definitely storing the data in publicMembers.list so its not an issue with that.
 
I don't know what kind of element your binding function expects because the query function returns a QueryCollection, not a DOM element.
 
I'm sorry, we don't have much experience with the framework you're using
 
Can't help with Visual Studio questions. Never used Visual Studio.
 
9:51 AM
Ok, no worries. Thank you for your help so far anyway :-)
 
10:31 AM
i have to use gasp flash on my site. It is a widget from espn that shows current scores.. Is there any way to resize flash elements but make them scale with javascript or css? when i try to change height or width it just cuts stuff off
 
Hey all
I have a question :
1
Q: Why can't I bind directly console.log on IE9 with developer tools open?

dystroyWith developer tools open in IE9, this code works : var log = Function.prototype.bind(console.log, console); But if I type console.log(console, console.log); var log = console.log.bind(console); then I get this : Why ? Is that a known IE bug or a normal behavior ? Does it affect other...

 
10:59 AM
@dystroy hi, I have an answer
0
A: Why can't I bind directly console.log on IE9 with developer tools open?

Florian MargaineAs the related answer says, it is simply because the log function from the console object in IE doesn't inherit from Function. It's a host object, and it uses whatever rules IE sees fit. But it's a function-like. That's why using Function.prototype.bind works, just like using Array.prototype.for...

 
I saw
And I commented
I'll accept it if I don't get anything better but it's hardly satisfying
I interpret the whole console.log state as "It's buggy but nobody cares because the spec we refer for most of our implementation doesn't specify it"
 
that's the way it is
IE is a bitch, deal with it
do you know that you can't do anything with most DOM prototypes in IE8?
 
IE8 ? What's that ?
 
it'll just throw errors at you when trying to extend it and tell you "FUCK YOU"
that's IE. IE9 still sucks.
although it's mostly acceptable, IE9 still sucks.
no strict mode, no css3 transitions, no... many things
@dystroy edited ;)
 
Oh... I didn't knew about the "no strict mode"... I guess I'll stop asking myself if I should use it...
 
11:05 AM
you should
because when testing in other browsers, strict mode will tell you what's wrong with your code
in IE it will just be ignored, but that still allows your code to be better written.
and seriously... strict mode is so cheap
just put "use strict" and you're done
it gives me confidence that my code is not so fucked up when strict mode doesn't fire any warning/error
(e.g. there's no implicit global et al)
 
Not just put "use strict" when you're concatenating js files in a big js applications. But I see your point, even if I'm not sure there won't be case where the ignorance of strict mode by a brower would result in a different behavior.
 
there won't be
the ignorance of it is total, that's the great point of this mode
it was thought for this
@dystroy do! then fix all the sucky libraries you included :D
or use browserify and put "use strict" at the first line of your file :3 github.com/Ralt/Snake/blob/gh-pages/js/Snake.js
 
11:22 AM
Good morning guys.
So.. I'm doing a script to SO Chat because I'm lazy. If anyone is there, mind helping me? :)
No one? :( feels bad man
 
Just like we have epic answers about why regexes aren't usable to parse HTML, should we have good answers explaining why regexes aren't usable to check regexes ?
1
Q: use javascript to convert string to regexp

atian25how to check a javascript string is a RegExp format, then convert it to RegExp? I found a way with RegExp, but the rule is too complex to make it right. function str2Regex(str){ var rule = /\/(\\[^\x00-\x1f]|\[(\\[^\x00-\x1f]|[^\x00-\x1f\\\/])*\]|[^\x00-\x1f\\\/\[])+\/([gim]*)/; var match =...

 
@AndréSilva I didn't understand "I'm doing a script to SO Chat". Maybe I'm not the only one ?
 
Yeah, I'm really bad at explaining stuff..
I'm doing a script to say good morning to whomever say good morning in the chat ._.
I have some code, but I'm getting stucked at retrieving the user name :(
 
I'm not sure I'd like to have more bots answering me...
 
11:37 AM
No bots.
I just want a freaking script to run in my user while I'm working..
 
You want to do it just as a challenge?
I think I'm in. But as a competitor. MWHAHAHAHAHAHA
Later :p Working now
 
Yeah.. lets call it a challenge.. But I call it nothing to do in work
So, if any of you is interested in helping me, here is the code :
var elements = document.getElementsByTagName('*');
var newElements = [];

for (var i = elements.length - 1; i > 0; i--) {
  if (/content/gi.test(elements[i].className)) {
    newElements.push(elements[i]);
    i = 0;
  }
}

var person = RetrievePerson(newElements[0]);

if (/^(good )?morni[ng]{0,2}'?$/i.test(newElements[0].innerHTML)) {
  document.getElementById('input').value = "Good Morning " + person;
  document.getElementById('sayit-button').click();
}

function RetrievePerson(el) {
  if (el.parentNode.tagName == 'a') {
 
Does it work without the name so far?
 
Your className check is wrong
Oh, no, never mind
Seems like it should work
Do you manage to get the element at all?
 
11:47 AM
Oh sorry.
At least I tested in the Sandbox chat and it returned me good morning!
But I tested without the person thing..
 
Log the element returned by RetrievePerson and see if you end up finding it
 
The problem is in the RetrievePerosn..
For some reason I get a TypeError: Cannot read property 'tagName' of null
 
@AndréSilva You probably reached the body then
And then html
Which ends up with no parentNodes
 
Makes sense.. I'm going to log each tagname that is in the recursion
 
Yeah, do that
 
11:50 AM
Yeah.. DIV DIV DIV DIV DIV DIV BODY HTML :(
Shit --'
 
What's your starting newElement element?
 
<div class="message"...
I think I know it.
 
Dude, you've been overcomplicating it
 
Of course.
I was looking in the wrong fucking element :(
 
Get the id of the newElement that you already have and replace the message- part with :
It'll link to the message
 
11:54 AM
i am soooooo proud of myself @AmaanCheval :P
 
Dude..
You're a genius.
 
@KirstyHarris What'd you do?
 
my first ever coded inline HTML email template for work codepen.io/rusticblonde/pen/riusK
 
Holy tables
 
11:55 AM
That looks great!
 
thankyou! honest im so proud lol!.... very corporate and my boss loves it lol
 
Congrats
 
:D hows u today hunni
 
Good
 
Looks really good @KirstyHarris
 
11:56 AM
thankyou @AndréSilva its slowly getting there :)
 
Finally nearly done with my game
 
oh yea? what games that?
 
For a client. About a pig falling through the sky, trying to eat donuts while avoiding boots
Kind of silly, but lots of reuseable code in this one
 
ha! that sounds WICKED!
i like childish things like that
 
var elements = document.getElementsByTagName('*');
var newElements = [];

for (var i = elements.length - 1; i > 0; i--) {
  if (/content/gi.test(elements[i].className)) {
    newElements.push(elements[i]);
    i = 0;
  }
}

var person = newElements[0].childNodes;
var personReply;

for (var j = 0; j < person.length; j++) {
  if (person[j].className == 'message') {
    personReply = person[j].id.replace('message-', '');
  }
}

if (/^(good )?morni[ng]{0,2}'?$/i.test(newElements[0].innerHTML)) {
  document.getElementById('input').value = ':' + personReply + ' Good Morning ';
Lets see if that works.
Nope. Returns a 0
 
12:00 PM
What part returns a 0?
 
No idea.
 
Haha
Log newElements[0].childNodes[0]
See which element that is
 
Yeah undefined...
It returned the innerHtml
From last message..
:(
...
Forget all about what I said.
 
I think I'll do what you're doing after I'm done with work
@KirstyHarris I'd link you to my older games, but they're all gameplay-only. No artwork or menus
I enjoyed making / playing this one
And I was so sure I'd finish this. I did not.
 
var elements = document.getElementsByTagName('*');
var newElements = [];

for (var i = elements.length - 1; i > 0; i--) {
  if (/content/gi.test(elements[i].className)) {
    newElements.push(elements[i]);
    i = 0;
  }
}

var person = newElements[0].parentNode.parentNode.childNodes;
var personReply;

for (var j = 0; j < person.length; j++) {
  if (person[j].className == 'message') {
    personReply = person[j].id.replace('message-', '');
  }
}

if (/^(good )?morni[ng]{0,2}'?$/i.test(newElements[0].innerHTML)) {
 
Ooh, this one was runner-up in Mozilla's Dev Derby
It was also a steaming pile of shit :p
@KirstyHarris Since you like kiddish games: smiletvgroup.com/play-a-game
The clients were annoying
 
What should I use to keep looking for good mornings ? setTimeout or setInterval ?
 
I generally use setTimeouts recursively
Did you manage to get it to work?
 
Awesome
 
12:20 PM
For some reason when I put that in a function, it doesn't work.
 
I'm back. Entertain me.
 
Go to Sandbox chat and help me

Sandbox

Where you can play with regular chat features (except flagging...
 
12:37 PM
 
hahahaa :D
Awesome.
 
0
Q: mat3x4 in webGL shaders

WillI am porting the IQM bone animation format to Javascript and have run into a problem... The vertex shader is failing to compile and the only error message I get out is 'mat3x4' : syntax error on the first occurance of mat3x4 in the file. Its the very data-type name itself that is unsupported, i...

 
did i successfully entertain you?
 
omg that game is awesome @AmaanCheval
 
Hahaha, the frog one?
 
12:40 PM
@GNi33 Mission accomplished.
 
very good
 
@AmaanCheval yes
 
@KirstyHarris you got fb / gmail anything else ?
 
yh i have fb
under kirsty harris :)
 
12:48 PM
@AmaanCheval ;D guess whut :D
 
@Abhishek What?
 
add me or just send me a msg facebook.com/djabhii @KirstyHarris
need talk
@AmaanCheval successfully did VOIP
 
ok sweet, :D
 
:D , and i wrote it in native Java :D
 
@Abhishek Using HTML5?
 
12:49 PM
it wont allow me
 
nope for android :-$
@KirstyHarris link me yers i ll add you
 
ive sent u a msg
 
@Abhishek Glad you came out alive! :D
 
@AmaanCheval HTML5 is doable
infact very easily doable
@AmaanCheval oh noes i kinda like java now :$
 
Hahaha, big deal
 
12:50 PM
@KirstyHarris cant see the message
just send me ur profile link i'd add y
 
hmm well i sent it you :S
one sec will send ya my link
 
k
 
Hahaha, special seal?
 
12:51 PM
yh lol! its my partners nickname for me... long story lol
 
We have time :p
 
ha basically im a proper prat at times and so blonde... so she barks like a seal and says awww special... lol thats how it came about
:p
 
Special Seal is your nickname? I'm all ears.
 
12:53 PM
:p
 
@OctavianDamiean How old do you think "Stack" is?
 
I don't know. Might be quite young.
 
Yeah
 
He's got his free friendship now. Just has to make sure he doesn't use it up too quickly.
Gave him only one.
:D
 
12:57 PM
He's a creep.
 
me yes i am L:D
 
@BadgerGirl Just got creepier
 
Join too, I don't want to be alone there.
 

« first day (816 days earlier)      last day (4118 days later) »