« first day (678 days earlier)      last day (4286 days later) » 

2:00 PM
But you're just requesting useless data. You don't need any of it. Why don't I ask you for your mother's maiden name as well, because it might affect how I address you? YAGNI.
 
if you have a non english/french/stuff public, you have to think about something else indeed
 
@Florian thank you
 
@Zirak when I talk to you, I may either address you as "Harry," or "Harry Beasant,", it's two different formalities
 
O_O Uh-oh
 
But you won't, because I chose the name Zirak. And that's all that should matter to you.
 
2:02 PM
hi to all using javascript Exporting XML to Excel 2007 - please help!!
 
I'll call you Florian Margaine because that's what you chose. I'll call Raynos by what he chose, and Ryan Kinal and everybody else (except Esailija, whom I call "buttercup eyes".) So what's wrong with just "name"? Or in the likely event of asking for a username beforehand, why not give up on the name altogether?
 
as I said, it depends on the website needs for its relationship with the customer
if it doesn't need your name, it shouldn't ask you.
 
what's useful about having separate name fields is that in business software you often want to find someone by their last name, so you can do a "starts with" search on the last name field, instead of a "contains" on the name field
(in our case we do a soundex like operation on the name, so people can type "sounds like" values for the last name and get results)
 
2:05 PM
But that's the thing, they do. For some reasons, having "first name" and "last name" fields became a standard.
 
I want to punch him right in the feels.
 
@JoeriSebrechts But that's the question: Why? Do you do that because you need the last name? If you do (which makes sense if you're making a phonebook, but doesn't when you make pretty much everything else), then fine, but otherwise you're just forcing stupidity down every single one of your users.
 
What's even better: an application form for a large research institute mentioned "specify all of your names" but they had a ridiculous maxlength of 20 chars
 
well, in our case we have call center dispatchers who are handling incoming calls and often have to look up people by name
 
2:08 PM
@Loktar lol. That's terrible.
 
there's many cases where names are inevitable, but the most important reason is that all business software makes having full names important, so you can't choose not to, evne if it makes sense
we have to pick our battles on customer re-education
 
Business is stupid
 
(i'm just hoping to convince all of them to drop IE6)
 
Business is pretty friggin' stupid
 
@Zirak makes sense for any e-commerce site too
 
2:09 PM
Let's burn everything
 
it's only stupid because it's too complicated for one person to understand, so it relies on negotiated rules instead of common sense
 
or any website delivering something to your home, for instance.
 
like traffic law
 
@JoeriSebrechts Honestly, I just stopped developing for IE6. Just stopped. Because I didn't want to deal with it anymore. Now all our customers upgrade to at least IE8.
@FlorianMargaine I actually thought about the e-commerce thing... but credit card processing mostly deals with "name on card", rather than first and last (IIRC)
 
@RyanKinal we dropped support last year, but now a customer has come out of the woodwork that's too big to ignore and is running IE6
 
2:10 PM
Wow. That's a terrible reason.
 
Just tell your customers due to recent solar flare activity IE6 will now suffer from unfixable bugs... then silently stop supporting it and removing all of the crap code you put in place to circumvent IE6 stupidness.. he will see bugs and you will be able to pass the buck to the sun. win/win
 
I mean, it's a reason you can't really ignore, but... really? Do they know that they're 10 years out of date?
 
that's business, i don't mind a lot though, ExtJS takes care of most of the IE6 compatibility
 
@rlemon What do you mean "will now suffer"? I think it's been suffering since its inception.
 
what? IE6 was the best browser when it went out
 
2:12 PM
Business is stupid because in business, business is the cause, concern and excuse. It's an internal system of recycled shit.
 
it was the google chrome of today (see the webkit prefix war)
 
@RyanKinal they know, they're a big international bank and have built a browser around the IE engine that intercepts all network traffic to secure it, and some of their branches are on IE8, and some on IE6 (waiting for an upgrade next year)
 
well i'm assuming code has already been put in place to support IE6. well now you can remove it and no longer worry about new features and applications needing support. blame sun spots. works every time
 
@JoeriSebrechts Ah. I see.
 
@FlorianMargaine that is very much true, i remember doing web development at that time and how much awesomely better IE6 was than everything else
 
2:13 PM
MS need to get their heads out of their behinds
and adopt the practice of faster release cycles
 
i actually like what they're doing with IE9 and IE10, pretty decent browsers, but they need to push updates out faster
and support older windows versions!
 
I only "like" vs 9 and 10 because so many people use IE
but if no one used IE, ie9 and 10 would be garbage.
its like, oh cool IE10 is going to finally support some of the stuff Ive been doing for years.
 
I think they need to push out an IE10 that supports everything down to XP AND contain an IE6/7 mode that works exactly like those versions, including unfixed bugs
 
so other people will see it now.. yay.
IE10 you so awesome.
 
Then nobody would have a reason to keep using IE6 just because some crappy application needs it
 
2:15 PM
IE not supporting webgl is huge.
Im just glad they are losing ground
 
@Loktar I agree that this is a major issue going forward, but I don't think they can hold on to it long term
 
yeah it just sucks we have to wait
I mean who knows when IE11 will be released...
 
hey how to get all css properties of element using jquery.
currently i'm trying .css("background-color") .css("font-size")
but it's hard to implement css all properties.
 
so we will all be making cool stuff utilizing webgl, but of course have to have fallback options for IE
 
hopefully they begin an auto update track so when it does, IE10, etc, are kaput
 
2:16 PM
Finally found the music i wanted , Any youtube rippers working ?
 
yeah, thats what Id love to see
 
fallback option for IE = chrome frame :D:D:D:D:D:D
 
if they had release cycles similar to the other browsers IE could potentially be a lot better.
 
@SimonSarris very much that, chrome frame FTW
 
?? anybody
 
2:17 PM
unfortunately where I work we cant install that :(
 
ofcourse, chrome frame only works in the standard IE, and this customer has a custom browser built around IWebBrowser2, so no chrome frame there
 
@Abhishek dunno, sorry
 
@Abhishek keepvid.com
 
dw i found one (XD)
@Loktar o/
same (XD)
 
nice
yeah that site is great
 
2:18 PM
i had it in bookmarks :x
 
@Abhishek try youtubedownload it's good for hd
 
I just want music
 
try youtube-mp3.org youtube sued this site.
 
@Abhishek cool
Ive never actually watched DBZ
<-- not an anime guy
 
The music is still incredible
 
2:21 PM
yeah it sounds pretty cool
what are you using it for?
 
@Abhishek i think nightcore of this also come soon :p
 
my game (XD)
 
oh nice
 
i was in a small group we called us DG-games
just a scratch group :-)
 
hey whats the link again?
to the rules for the game
 
cool ty
 
i am just finishing what we started 2 years ago on scratch
in JS ;-)
 
@Abhishek … and that is?
 
u got Java applet ?
 
@Abhishek Is it possible to use GoggleMap API to render the maps with the tiles etc...
 
2:28 PM
@Abhishek How would you define a "top down" shooter? Does Space Invaders, for instance, count?
 
@dievardump that would be cool as hell :$
 
@Zirak not literally space invaders
@dievardump you can :-)
 
Can you guys help me convince this OP that he is wrong? stackoverflow.com/a/12099210/561731
 
@Zirak there is no such definition but have you played something like Death Rally on iOS ?
thats a new view on top Down
since the timeframe is 1 month and 8 days
 
2:30 PM
Nope, but isn't it a racing game?
 
@Neal But you are the OP of that thread... :P
 
yes it is but u can also shoot init youtube.com/watch?v=A_mPGeOg-Mw
 
@Abhishek something like that : gw2siege.com/#plan
 
Then the actual question is: What would you consider to be a top-down shooter?
 
Something where the camera is viewing you over your players head
 
2:32 PM
So why isn't Space Invaders a top-down shooter?
 
because you are viewing the ships from the side iirc
if you just change the graphics a bit its a top down shooter
but for that game its semantics really
 
this is a top down shooter! - a simple but explains
 
BTW GIF is pronounced "jif", and PNG is pronounced "ping"
 
@Å imeVidas noooooo
 
2:35 PM
gee aye eff
you dont say "see poo" you say C P U
 
GI: Joe
The creators of those standards defined such pronunciation.
 
@Å imeVidas I mean the answer :-P I am not the OP of the answer haha
 
@Abhishek Those tanks are WAAAY too easy
 
@Abhishek Example for a game idea I had some time ago: Player is a turret, shooting some boards in a grid. Boards are governed by rules like those in the Game of Life. All the while an enemy turret also does that as well. Is that a top-down shooter?
 
yes.
 
2:36 PM
Or do you just mean "if you have a gun and the screen moves towards you, then it's a top-down shooter", as opposed to "a shoot-em-up game"?
 
@SimonSarris You do say AS-KEY
 
I say a s c i i :D
 
the former zirak
 
That's an odd definition
 
@SimonSarris n s c i i
@Zirak yeap
 
2:37 PM
@Å imeVidas I pronounce it with a hard "g", not "george", but "get"
 
i am pretty sure we will get some seriously new concepts out of this
 
I say Gif.. because its not peanut butter bro.
 
I feel so powerful now that I can close vote
MUHAHA! FEAR ME!
 
@Abhishek would this count as a top-down shooter? i was toying around with recreating it in javascript last night: youtube.com/watch?v=Wjv2QinpozY
one of my favorite games growing up :)
 
yeah
thats a top down shooter
 
2:40 PM
oh commodore 64, where are you now?
 
its technically a shmup
my c64 is still in my room :)
 
It is a top down shooter
:-)
but dont go that antique (XD)
 
I set it up like 2 months ago and my kids were playing on it
 
i replaced mine with a c128, i have the 128; but it's been boxed up for a decade
 
@Loktar wanna see my soldier ?
 
2:41 PM
in all honesty thats the one I have
 
its really skinny so far
 
but most people have no idea what a c128 is
 
Guys , how can i fire window.resize event ( multibrowser) ?
 
so I just say c64, since it could go into 64 mode anyway
 
@RyanKinal Yea, me too. But the creator of GIF says it's meant to be pronounced "jif". Another example, in my country (Croatia) most people pronounce JavaScript with a hard "j" (as in yoghurt) :)
 
2:41 PM
@Abhishek sure
 
Yoga script?
 
told u hes skinny ^_^
 
haha
nice one
 
i probably wont do it this way though
 
just use an image :p
 
2:43 PM
So... what if I have a game concept that has the mechanics of a top-down shooter (2d x/y movement, "shooting" stuff that's around you), but the graphics are side-on?
 
so a horizontal shooter?
 
Nope. Vertical :-D
 
meh doesnt bother me
 
ASCII Graphics FTW
 
I think a better description would be just make a "shooter"
 
2:43 PM
it's fine
 
not necessarily so hard on the rule top down
 
I actually do have another concept that's top-down, though
I might end up making them both. If I ever even make one.
 
@FlorianMargaine Hi , How can I fire the window.resize event ?
 
resize your window
 
2:48 PM
If you rememebr I was asking here before 2 days about adding a hash to the url of the inside Iframe and trigger window.resize event so that the parent of this Iframe will be able to check its child url , and activate JS function.
The problem is that after the Iframe set to himself the #url , he needs to activate window.resize func
How....?
 
@RoyiNamir have you googled?
 
Sure.
 
window.onresize = handler;

function handler(e) {
    console.log(e);
}

handler.apply(this, [window.event]);​
something like this??
 
@rlemon crossbrowser ?
 
check for yourself.
 
2:50 PM
I need a JavaScript event to fire at the end of a mobile pan, ideas?
 
@rlemon ok. I will check. ( though , it might be helpful if you know the answer , so it can save me tgime).
 
0
Q: Change registered URL at time of print_scripts_array hook/filter

WalkerIs there a way to change registered URLs for Scripts referenced in $js_array at the time that print_scripts_array is run? I'm hoping to intercept scripts and modify where they're loading from at the last possible moment without doing it when script_loader_src is run.

 
@RoyiNamir doing the research will help you learn. Never take the shortcuts if you plan on doing this professionally.
 
window.addEventListener('touchend', function() { console.log('end!')}, false); does not work to my surprise
 
document.addEventListneer?
 
2:52 PM
tried that too
once panning initiates it seems to not do a touchend
 
document.body?
 
or send any more touchmoves
 
Ah, right
 
@SimonSarris did you try reading onscroll?
 
But it does after its been panned, right?
 
2:54 PM
nay I'll look at onscroll, any event that fires once panning starts would work as well
 
onresize?
 
ahhh scroll will do
 
@rlemon I got an error on ` [window.event]`
 
and what would you like me to do about it? yell at your code?
"CODE! STOP SUCKING!"
 
@rlemon I dont think chrome FF has the window.event property...
 
2:58 PM
chrome and IE have window.event
chrome also has innerText etc.. it wants to please all
while firefox are being douchey zealots
 
@Esailija hi , yeah I tried his core :
`window.onresize = handler;

function handler(e) {
console.log(e);
}

handler.apply(this, [window.event]);​`
 
@RoyiNamir Hit it with a rolled up newspaper
 
@RoyiNamir Do you understand what it does?
 
@RoyiNamir that doesn't make any sense :P
 
me ?
 
2:59 PM
@Esailija is it just an alias to textContent?
 
@FlorianMargaine probably
 
or does it act like IE's innerText?
 
@RyanKinal neither me
 
"Did you read my question at all?"
 
with whitespaces and HTML comments
 
3:00 PM
"No!"
Did you read my question at all? In order to differentiate by task, I'd have to have three different functions, which is what I'm trying to avoid. — SomeKittens 5 mins ago
 
I don't think they would write 2 implementations for it, just aliasing it makes more sense
 
I guess i'll never find an answer for this.
 
@RoyiNamir what you wrote makes no sense
window.event is only defined when there is an event going on... and only in IE and Chrome at that
 
@Esailija I didnt write it , it as an answer from rlemon
so Ive tried it.
 
I sent you the codes for triggering a resize
 
3:02 PM
Oh, good. He deleted it
 
var e = document.createEvent("UIEvents")
e.initUIEvent("resize", true, true, window, 1)
window.dispatchEvent(e) ?
 
yes
what is the point of it all
why do you need to trigger resize like this
 
the first argument is a task name, not a function name :/
 
@Esailija to observe that it's turtles all the way down
 
@SimonSarris jsfiddle.net/rlemon/egkWa/show i'm just mucking around on my Android (Chrome) and this (when I pan) fires Start, Move, then Cancel, and after Cancel End never fires. This is truly strange.... not the behaviour I expected.
 
3:05 PM
@Esailija for communicate (old fashion) iframes - diffrent domains
 
how about jsfiddle?
 
@rlemon yes it is very funny, I have made a workaround though
document.addEventListener('scroll', this.stopToolOnPan, false);
 
@Esailija Thank YOU.
 
@FlorianMargaine Stupid docs...
I'll try it
 
@Esailija FF and chrome : OK . IE- not working.
(8)
 
3:08 PM
@RyanKinal i am myself working on something like you
 
@FlorianMargaine It's not just an alias, at least not in webkit: webkit for innerText, and source for textContent
 
but i will use it for effects like perspective zoooming in and slowmotion on a sniper headshot!
 
@Abhishek Nice
 
its hard to do though :-/
i can do it with small objects but humans its hard
 
@SimonSarris jsfiddle.net/rlemon/M77Du I would have expected this to kinda of 'scroll' the random crap down as it generates new rows and removes the last row... what did I do wrong :S
 
3:12 PM
@RoyiNamir sigh
 
@FlorianMargaine s/Javascript/PHP
 
hhhh
 
in Ie you have to use their API of course
window.fireEvent( "resize", document.createEventObject() )
 
@Zirak innerText uses textContent
1663	    if (!renderer())
1664	        return textContent(true);
 
(sorry ........)
 
3:12 PM
dunno what's renderer though
 
Yes, but it's not just an alias
 
ah yeah
 
If it were, it'd just return textContent(blah blah)
 
@rlemon LOL
@rlemon call shift() instead of pop()!
you are adding a new row to the end and then immediately removing it!
 
3:15 PM
ohh snap i'm doing this backwards. :) cheers
 
those are the best bugs
everything is mechanically perfect
and then a slip of the mind ruins everything
 
lol yup
and I was all "omg this should work! Arggg!"
 
I go through it saying it out loud and sometimes it becomes obvious
like the sentence here "push a new row, if its too big, pop a row. ... wait a minute..."
 
Saying things out loud tends to help quite a lot
 
unshift just doesn't sound as sexy as pop. I would have called it cram if I were writing languages at the dawn of modern computer science.
 
3:19 PM
It's a good thing I wasn't around for that. I probably would have called them "load" and "pez" instead of "push" and "pop"
 
Oh... pez is good.
 
reminds me of cargo cult...
"xhr uses callbacks so I can use callbacks to magically fart threads"
 
jsfiddle.net/rlemon/M77Du/2 now to just make it so it's not random
 
whenever I use math random to make those images it really shows how non random it is :D
 
3:22 PM
@Raynos from early this morning: Damn, you read way back. I haven't really messed with the defineProperty methods enough to know their quirks in IE yet. What stopped you in IE?
 
har har har
 
@ErikReppen was he speaking of ES5 properties? I am using ES5 properties in IE9+ and have no issues
 
@SimonSarris I was contemplating attempting to normalize the dataset property for HTML5 and he said he tried and couldn't pull it off. It's more of a candy method anyway but I thought I'd give it a shot.
 
does that seem more random to you :D
maybe put the 2 side by side
pls do
I'll sit back and watch
 
3:25 PM
lol I don't want random
 
crypto what is this madness!
 
> now to just make it so it's not random
 
A maze?
are you making a scrolling game!?
 
@SimonSarris yea thinking about it
but I need the map to generate itself without much fuss.
 
@rlemon AHAAHAHA jsfiddle.net/M77Du/7
(resize the iframe to be bigger to see them side by side)
 
3:29 PM
OMG the Zirak Starred phrase.
I love it
 
MLS
hi all! any idea to show data in tabular form with left most column and header row fixed, just like spreadsheet?
 
lol
 
@MLS the HTML table element can't do that?
 
coooooooooooool
 
3:31 PM
again a very awkward api
though I suppose it has some cryptographic reason
to generate a random float with this beast you have to do
var a = new Uint32Array(1);
crypto.getRandomValues(a);
var myValue = a[0] / 0x100000000;
 
I'm pretty sure Moz had a DOM change event. Not sure if it got adopted into more recent DOM spec. Does anybody remember what it was called?
^e.g. remove an html element that event would fire
 
@ErikReppen "mutation events"
they're deprecated though
 
@Esailija nice
 
Here's my "abstraction"
Math.cryptoRandom = function() {
	var a = new Uint32Array(1);
	crypto.getRandomValues(a);
	return a[0] / 0x100000000;
}
 
3:46 PM
@Esailija ok so this is kinda close to what I want.
see the beginning
think of the black as walls
 
hmmmmmmmm what kind of walls do you want really?
must they be that normal?
or is that intentional?
 
see the beginning and how they are filled... then my crap code makes the jittered ones.. but keeps the general shape I am after.
 
I see
 
so instead of the 'noise' they are filled like how I have hard coded the first little section
with random little 'islands' in the mix
 
cool
 
3:50 PM
well not cool because I don't have it working :P
and no clue where to even start. @SimonSarris or @Loktar any tuts? terrain generation
 
heh ive done a little bit
old code
 
well if you just want that regular structure
you just need 2 numbers per row
how large the left side is, how large the right side is
and fill them to that large-ness
 
"islands" must then be made separately
 
3:52 PM
^ 2d
midpoint displacement is a pretty easy alg to learn
thats what I use in my first link
 
@Loktar that is pretty much what i'm looking for... lemmy read some source
 
that first link has nasty old code
its from like 2009 or something
there was a person who made a sweet html5 game who gave me a little credit
was happy it helped someone
/me tries to remember game
 
@FlorianMargaine Thx. Looks like they replaced with observers in more recent versions of the non-suck browsers.
 
that was the game
really cool
like a 2d minecraft
well im off to a meeting if I dont see you guys over the weekend have a good weekend1
 
@Loktar so long ole loke!
 

« first day (678 days earlier)      last day (4286 days later) »