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

10:00 PM
-ms-scroll-snap-type:mandatory 460px;
what !
 
@SomeKittensUx2666 Totally. I wasn't joking at all.
 
@Zirak He's playing Guild Wars.
 
GW2?
 
Yeah
 
Sweeet
 
10:02 PM
Do you want to see him?
 
Romantically?
He doesn't want me
 
@Zirak where is the start button?
 
Top left, something like that
@BadgerGirl That small screen makes me sad
 
thanks. I thought it was just a header
 
10:07 PM
@Zirak He's visiting, no big screens in Mexico allowed.
 
now I'm getting narration, then music, but only a newsgrounds logo for display, and a "flash not responding" bar
 
Well that's your fault now
 
Can you see his lovely hair?
 
how?
 
With your eyes, dummy.
 
10:10 PM
0
Q: canvas animated slide appearing in slideshow not working

t1wcI'm trying to make a canvas based image slideshow, and I want the current slide to move out of the way with an animation rather than appearing or disappearing in a blink. I've tried quite a lot of things, but noone worked correctly. HTML <canvas id="slider"></canvas> <script src="slider.js"></s...

!!afk sleep, please look at stackoverflow.com/questions/23188157/…
 
I'm stuck on the final level...died so many times now
It's not an impossible badge for nothing...
And it's always on the stupid things. Dodged a 7 obstacle long shitfest, and tripped on a small rock after a stretch...
 
J L
Is there a good resource somewhere that could help someone gauge how much they're worth on the marketplace (as a software engineer)...would be useful to know when going into a yearly review
 
in javascript!! emm i think no..
 
"How much they're worth"? What are you, a steak?
 
TS anyone?
@Zirak @RyanKinal
 
10:24 PM
Gimme a sec
 
-1
A: CSS - 4 columns (fixed fluid fluid fixed)

bjb568You can use calc. .first, .last { width: 300px; } .middle { width: calc(50% - 300px); } You may want to apply vendor prefixes too.

 
hey folks :D
 
Hi
 
@rlemon Only when I win the impossible badge, give up, or die trying.
I need my ears for this game
 
Lol:
@bjb568 calc is not a standard . developer.mozilla.org/en-US/docs/Web/CSS/calc , you may consider cross browser compatibility before posting , The following features are at-risk and may be dropped during the CR period: ‘calc()’, ‘toggle()’, ‘attr()’. source : w3.orgProllyGeek 5 mins ago
I just hit 3k reputation! Hooray!
Then somebody undid their upvote…
 
10:39 PM
let me help you
 
Oh, really? Don't like, serial upvote or anything.
 
keep calm.. my internet is too slow to do that
 
Oh. :P
 
Hi
 
10:45 PM
whats wrong with this: var items = form.querySelectorAll("input[id]");
if I use it as input[name] it works for 1 element which is a button
same when I use class
 
@KissKoppány nothing
 
@shortCircuit I see fishy +10s coming into my rep thing… It really isn't necessary (assuming it's you that's doing it).
 
addressbook.uphero.com/addressbook2 click on Save button and you can see it
this is when I use "id"
 
function NewMember() {

    //Creating a new person and set its properties
    var form_elements;
    form_elements = serializeForm("new");

    //In case of successful validation creating a new member
    if (/*check_results === */true) {
        var JSONString = JSON.stringify(form_elements);
        alert(JSONString);
        $.ajax({
            type: 'POST',
            url: 'adapter.php',
            data: {
                data: JSONString,
                action: 'create'},
            success: function(msg) {
where?
 
function serializeForm(type){
var form;
var obj = {};

if(type==="new") {
form = document.forms['new_member_form'];
} else if (type==="edit") {
form = document.forms['edit_member_form'];
}

var items = form.querySelectorAll("input[id]");
for(var i = 0; i < items.length; i++){
obj[items[i].name] = items[i].value;
}
return obj;
}
this code is in onload.js
dont ask why, I'm just trying now :D
 
10:52 PM
i did that bcoz 1. i like php and pdo suggestion .. (although i stopped suggesting that bcoz there is no point in telling... coz there will always be beginners trying there own versions/combinations of two things.. a.mysql_real_escape string, striip_tags bla bla. b. sha1(sha1(...md5(.. )))).
2. i understood why to use clear:both
 
@KissKoppány
function serializeForm(type){
    var form;
    var obj = {};

    if(type==="new") {
        form = document.forms['new_member_form'];
    } else if (type==="edit") {
        form = document.forms['edit_member_form'];
    }

    var items = form.querySelectorAll("input[id]");
    for(var i = 0; i < items.length; i++){
        obj[items[i].id] = items[i].value;
    }
    return obj;
}
use items[i].id
@KissKoppány want a tip?
 
wow how could I miss that
thanks :)
yes
 
Look how much smaller this is
function serializeForm(type) {
    var items = form.querySelectorAll("input[id]"),
    	form  = document.forms[type + '_member_form'],
	obj = {};

    for(var i = 0; i < items.length; i++){
        obj[items[i].id] = items[i].value;
    }

    return obj;
}
 
doesnt seems to be working :S
maybe ecause of the "
 
0
Q: Bee Wi Kick Bee controlling Library

Marvin OßwaldToday I've got one of these little soccer robots called 'Kick Bee'. You control them with a smartphone app via bluetooth. So I asked my self how many hours would I need to control it with my pc?! Do I have to reverse engineer it ? Is it possible ? Any known libraries ? Any help is welcome :...

 
10:59 PM
> How do you auto scroll in CSS ? Simple overflow: auto scroll; ;-)
 
i have a question too.. how does a rotating electrically charged body creates a magnetic dipole with magnetic poles of equal magnitude.
 
!!wolfarmAlpha how does a rotating electrically charged body creates a magnetic dipole with magnetic poles of equal magnitude ?
 
i know passing current through a circular coil creates a magnetic field..
who is wolfarm??
 
@Connor I'm getting this error: serializeForm('new');
TypeError: Cannot read property 'querySelectorAll' of undefined
 
@KissKoppány what's the form for?
oh yeah
my mistake
 
11:08 PM
tried with "" but not good
 
function serializeForm(type) {
   var  form  = document.forms[type + '_member_form'],
   	items = form.querySelectorAll("input[id]"),
	obj = {};

    for(var i = 0; i < items.length; i++){
        obj[items[i].id] = items[i].value;
    }

    return obj;
}
form should be above items
 
Serializing by id and not by name?
 
thank you
I should practice a lot to avoid these errors
 
@Zirak there aren't any names
 
...your form elements have no names?
 
11:13 PM
ids only
 
Why?
What wrong has been done unto you?
 
should it have?
 
And why are you trying to select the form yourself, and not accepting it as input?
@KissKoppány Inputs should have names; that's how they're submitted to the server
 
I use it like <input type="text" id="city" maxlength="30"/>
I thought it was right
 
But why use an id? An id is a unique identifier. What if you have two forms, or have something unrelated which describes a city?
That's what names are for
 
11:17 PM
*pants heavily* Just finished my 40 close-vote reviews. That was hard work.
 
i agree name should be used...
 
can I use th same name in different forms?
 
That's the point of names
 
so does name belong to its parent form only?
 
any good idea for an innovative web application game or app for phonegap ?
 
11:19 PM
i guess when it comes to ideas.. most people donot have a spare one
 
thanks for the tips everyone :) I'm learn more and more from you :D
 
@KissKoppány You can always select all elements with a certain name with document.getElementsByName, but it's easier when you get a hold of a form: form.items
 
or place to get an inspiration ?
 
@Abraham Yes! Abraham Lincoln fights zombie ninjas from space to gain the love of Napoleon, who then stabs Hitler with a toast.
3
 
11:20 PM
to gory
too
simple idea
with story
like a dark room
 
that was gayish
 
yeah
 
I'm pretty sure there's a random story generator somewhere...
 
Put Napoleon and Hitler in a dark room with toast, see who makes out with the toast first.
 
no zirak
 
11:21 PM
abraham I've made a game in c#, its a simply "webbrowser like" game, where you create a character and make it stronger and stronger, but has no story so probably I'll never publish it
 
mmm
yeah something like that
 
I'm sorry, did you expect us to give you the next current Twitter or whatever?
 
mmm no I said game
 
Here's one: Go outside and run naked in a field.
 
a simple good game
 
11:23 PM
lol
 
Maybe you'll get an idea or two.
 
did not work for me
 
pretty small field..
 
Well then you're fucked beyond help and there's nothing we can do
 
easy zirak
just be nice
 
11:24 PM
Why?
 
because you hurt my feelings
 
Oh no!
 
@Connor would you like to be my mentor? :D I'd really appreciate it :)
 
I'm so sorry! Did I stub your toe? Do you want a pat on the head?
 
yes please
 
11:24 PM
Tough shit
 
Don't ask the internet for ideas. Live your own life. Want to get inspired? Go sky diving. Fall in love. Punch someone. Help kids in Africa. Fight a lion.
Make love to Abraham Lincoln while stabbing Napoleon with a toast.
 
fight a lion is overkill
make a sky diving game
billion dollar idea
 
mmm
 
11:27 PM
sky diving?
 
Does anyone know if e || window.event covers all major browsers?
 
ya... dive into the sky and make a big circle like they did on iron man 3... falling out of the aeroplane scene
 
Bah fuck this
 
Skydiving.... it was fun until I landed funny.
 
"funny" D:
 
11:31 PM
skydiving was one of the more boring activities I had done
 
@Zirak To the flaggers: This message is not offensive.
 
you should have tried that without a parachute ....
 
some wind for 6 seconds, then wait 10 minutes while my junk is being mangled by the harness
 
:v
lol
 
Wow, harsh.
 
11:32 PM
FYI, flagging something as offensive spams every 10k user and moderator using the SO chat
 
Beep~
 
@Lugia101101 Are there really "major" browsers left that need window.event? :p
 
No.
 
Well.... no...
 
Anyway, if you need to support oldIE you really want to consider using at least some lighweight abstraction library - or just use jQuery.
Even if that chack is simple, it'll end up being annoying if you have to do it all the time
 
11:35 PM
Eh true.
 
and querySelector is missing in those old browsers, too...
 
I just have a getEvent function.
To be fair if I was going to support oldIE I'd have to remake the whole site. No compatibility for browsers <IE9 anyway.
 
Tata.
 

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