« first day (403 days earlier)      last day (4537 days later) » 

6:03 PM
@Loktar o/
 
@Raynos
 
user1385191
please elaborate on what you're trying to do
 
can you see my message
above
@MattMcDonald can you please see my message abnove
 
user1385191
please also refrain from superfluous pinging
 
user1385191
we're not idiots
 
user1385191
6:04 PM
we can read
 
user1385191
what you're doing is akin to running around in the middle of a coffee shop exclaiming "CAN YOU SEE I HAVE NO SHIRT ON? CAN YOU SEE?"
 
yes
but i said a simple question
 
If I took off my shirt Id probably ping all of you to be honest.
 
user1385191
and I asked you to elaborate
 
I´m very sorry,but I really cannnot understand your question
I am not fluent English spekaer.
but i can say it again:
can I make a system with jquery where teacher can create student a fill-in exercise
@Matt can you now understand question or do i need reformat it again?
is that possible
 
6:07 PM
Hi, do you have experience with a JavaScript parser written in JavaScript? I assume, JSLint has one...
 
@MattMcDonald
ah,you want i to be more specified
i´ll try:
1) it should have a page where is text written
2) then text should have some empty fields
3) when someone clicks an empty field, it shows a tip what includes something that helps student to figure out what word is teacher meaning
4) then student writes word, and when he presses enter exercise says: "Correct!" or "Wrong!" if its correct,it automatically jumps to next field, or if it is wrong, it stays in current field
can you now @MattMcDonald or @Raynos understand?
 
user1385191
you're describing basic form functionality
 
user1385191
point 3 would utilize JavaScript that shows and hides legend elements
 
yes i just want it
but is that possible with jquery
 
user1385191
6:15 PM
it's very possible with JavaScript
 
but i want to make it simplefied with jquery
because i want to learn jQuery
 
user1385191
you're heading down the wrong path
 
Could you say again, since I really cannot understand that.
 
user1385191
in your case, you seem to lack basic understanding of both HTML and JavaScript
 
user1385191
I'd advise that you study those first before jumping to a buzzword
 
6:16 PM
I can do forms in HTMl
but I mean about exercises
Your example didn´t show an exercise
I meant an fill in exercise for students
 
user1385191
what isn't "fill in" about a form?
 
user1385191
you're asking for a layer of JavaScript validation on top
 
user1385191
I gave you a basic starting point via HTML
 
Does make it more clear: hotpot.uvic.ca/wintutor6/jcloze1.htm
 
user1385191
that link is a very poorly constructed form
 
6:18 PM
yes, I know, HotPotatoes is very old
and because this I want to create better with jQuery
And I again ask - is that possible with jquery
 
user1385191
you're trying my patience
 
but I ask you simply question, and you dont understand it
you offer me a basic form
i´m sorry if I cannot explain
but please say, which part you cannot understand?
it clearly
 
user1385191
I don't understand you because you are unable to articulate yourself
 
you mean that I cannot explain well?
do you mean that by word "articulate"
 
user1385191
yes
 
6:24 PM
ok..
but were you able to open hot potatoes link i provided to you
and did you see the form that was in the link
 
user1385191
yes, and you'll find it easier to develop with the link I gave you
 
yes, but it is just a normal form
I know normal forms already
I know how can I type text there (document.getElementById(ewf).value)
but I just asked, Can I do same that was in link provided by me, with Jquery?
@MattMcDonald
 
give up , @MattMcDonald
 
@teresko can you help me better
because in some reason I cannot explain to Matt as simply he wantsw
 
no, i will not write code for you
 
6:31 PM
I´m not requesting code
I´m just asking is it possible?
 
Yes. It is possible.
 
Ok
finally someone told me a answer
thank you @Charles
now I can start coding it
 
18 mins ago, by Matt McDonald
it's very possible with JavaScript
you had your answer almost 20 minutes ago
lol .. looked at his profile
> I can program HTML, CSS, JS, PHP. Learning MySQL with PDO.
it would be funny if it wasn't so fcuking sad
 
Did I get troll pinged for de lulz
 
user1385191
relax, I'm writing code for him
 
6:37 PM
@ŠimeVidas if you want javascript parser in javascript use uglifyjs
I can recommend node-burrito that's build on uglify
@tereško is PDO good or bad?
 
PDO is good , but in his profile it only means that he pretends to learn how php should interact with database
@MattMcDonald i honestly hope you are getting paid for it
 
@tereško do you claim that I´m not able to use PDO
 
@Olli He claims you don't know what your doing
 
@Raynos ok. But I know it very clearly
he seems not knowing it
 
well , you claim to program" in css and html , and you *claim to know javascript .. so by induction , everything else there is BS too
 
6:43 PM
^ that
 
@Raynos this is something that i cannot understand
@tereško If I can why sholdnt I write it in my proel
profile*
 
Your pinging me to help with your problem when i didnt offer you help
Thats annoying as hell
 
@Raynos I didn´t asked code from you
I clearly asked just is it possible
and I now got answer
And I ´m not waiting anything anymore from you
But still you complain.
 
...
 
Hey all, I'm trying to find a better way to do the following (perhaps something that doesn't consume so much processing capacity) jsfiddle.net/H4sjf/1 any ideas?
 
6:47 PM
0
A: Align Vertical By Fixed Height (CSS+HTML)

OlliActually I´m not sure what you are wanting, but does this help: <table border="0"> <tr> <td>1</td> <td>6</td> </tr> </table> You just need to repeat tr part and change contents.

his awesome css skills
 
@Olli Everything is technically possible with javascript. jQuery prevents you from really learning javascript (which, seeing your question, you don't know).
 
oh yeah @Zirak is it possible to make Skyrim with it!! IS IT?!
 
That is absolutely hilarious.
 
From the sound of your question, you want the client to submit a form with stuff, the server to write stuff to database and retrieve stuff from database. That's a very simple thing.
 
oh wait theres webgl :P
 
6:48 PM
@Loktar Yes
 
@Zirak, that you for friendly answer. But I have already used JavaScript
@Zirak i´m sorry,but i didn´t meant that
 
If you don't know whether it's possible, you don't really know it.
 
since when used === know ?
 
@Olli That's also something that should be very trivial to make.
 
I know tons of devs like that @tereško if that were the case I know everything!
 
6:50 PM
@Zirak, ok thank you
 
this is just sad
 
one guy wanted to work freelance for a company with me and I was like, well your required to know PHP, and he said "Oh I know it, I used it for my college project 4 years ago"
^ did not make up one bit of that
 
@Loktar it´s lucky that I´m better than your example
i have even used php
not just told about it.
 
@tereško @Raynos See what I just did there? I ignored the bullshit, and more of it stopped coming.
 
i need to go now
bye
 
6:53 PM
well if I dont show up on chat for a few days, for all the Americans/Canadians who celebrate it, Happy Thanksgiving
 
@Loktar this is why you give people test-exercises before inviting them to an interview
 
@tereško yeah this was just a casual convo with a coworker
 
This is why I send them here and grill them >_>
 
I just never asked the company for him lol
 
or send them to irc :3
 
6:53 PM
goes home
 
Evacuation Day is definitely more exciting than Thanksgiving
 
and lol @ " casual convo with a coworker "
watch video , if you haven't seen it already
it's not so much funny as educational
 
(It's both)
If my knee wasn't fscked up, I'd climb a pole on Friday
 
user1385191
7:16 PM
 
2
Q: jquery optimize looped animate function

sadmicrowaveI'm needing to find a more efficient way of accomplishing this outcome: http://jsfiddle.net/H4sjf/1/ The setInterval() mixed with the .each() and subsequent .animate() makes this script considerably slow. Is there a way to accomplish this outcome utilizing some other 'less expensive' process/f...

 
user1385191
(answers are in the js pane, of course)
 
What does the windows 7 PATH environment variable contain
I replaced it with the literal string "%PATH%" by accident
 
user1385191
now, back to wrangling Flash's print API
 
Holiday trolling guide part 1: buy a talking doll, reprogram eprom to say obscure phrases, return to store....
 
7:24 PM
echo %PATH%
%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Prio;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Prio;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Fi
@Raynos , here you go
 
thanks
I put program files back and stuff stopped breaking
 
its on win7 x64
 
So I think I need %CommonProgramFiles%
 
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
Trimmed plugins and stuff like that. Should suffice
 
> "C:\Windows\system32;C:\Windows;"
Those seem important, ill put them back :D
 
7:30 PM
well .. i got a lot of crap on my box
 
where's michael scott when you need him
 
Cat doesn't have a sandbox?
 
<3 modul8
shit just works. That is win
@OriginalSyn whos micheal scott
 
user1385191
7:45 PM
ha
 
Hello Everyone!
I have images which use the following markup: <img src="getgraphs.php?aid=4&amp;offset=4" width="188" height="62" /> This gets displayed in browser just fine. Now, I need to display images with this html markup in a lightbox without making additional request to getgraphs.php script. Any idea how?
 
8:08 PM
> Hey I miss hot code reloading with this extra build step for my javacript code
fs.watch("src", rebuild);
> Oh, that was easy. Why is automated building so hard on other platforms?
 
@tereško Run cc then hijack this to manually disable garbage.
 
amagad amagad amagad. (Windows 7) Start -> Accessories -> Math Input Panel
 
Tried lim x -> infinity of 1/x, and it didn't like that very much
 
@Raynos I'm looking for some thoughts here.
 
go on
 
8:22 PM
Lets say I have a whole series of functions that transform an array of numbers in some way.
For instance...
 
It does weird things, but it actually "learns" and recognizes its mistakes as you type more
 
function insertionSort(input) {
    var i, j, tmp;
    for (var i=0; i < input.length; ++i) {
        tmp = input[i];
        for (j = i - 1; j >= 0 && input[j] > tmp; --j){
            input[j + 1] = input[j];
        }
        input[j + 1] = tmp;
    }
    return input;
}
And you'd have all the other sorts.
 
user1385191
why do you redeclare i?
 
@MattMcDonald Good catch, it's just copypasta.
 
@MattMcDonald for the lulz I assume
 
8:23 PM
I'd like to be able to take "snapshots" of the array as it progresses.
 
user1385191
slice it
 
I've thought about putting largerArray.push(input) in there
 
@Incognito console.log(input) :D
 
Array.clone = function ( arr ) { return arr.slice(); }
 
:P no it's to export an array with all the steps taken.
I'd just like a semantically nice way of doing so.
 
user1385191
8:24 PM
I'm partial to array.slice(0);
 
Agreed, you need to clone it at every step
so .slice or Array.from
 
And have a series of undefined values in the array?
It might not be limited to sorts like this, simply an example.
I'd like a way to get the details from it without adding too much to the code of the algo.
So, that's my real question, is there a nicer way than capturing the array at each step?
function insertionSortFrames(input) {
    var i, j, tmp;
    var frames=[];
    for (var i=0; i < input.length; ++i) {
        frames.push(input);
        tmp = input[i];
        for (j = i - 1; j >= 0 && input[j] > tmp; --j){
            input[j + 1] = input[j];
        }
        input[j + 1] = tmp;
    }
    frames.push(input);
    return frames;
}
 
@Zirak y u divide by zero?
Almost
 
It's cheaper than Dr. Evil's plan
 
8:32 PM
@Incognito lol, that's the point it's "as x approaches 0"... it never really reaches 0
 
@RyanKinal And now we're zeno and his turtle races.
 
@Zirak Huh. Maybe I need to write sloppier ;-)
 
I think, for some reason, it didn't like my printing "lim"
It prefers "cursive" or "script"
Mmmm. Beer.
 
@tereško keeping stupid out of a chat room is an exercise in futility, it cannot be done.
 
8:40 PM
@Incognito You have 20 kg of radioactive matter (let's call it Snoofkin). You know it continuously decays at a rate of 100% a-year. How much Snoofkin will you have after 3 years?
((It's a Zeno problem as well. It wouldn't ever hit 0 kg.))
 
So, I was reading some news feed the other day, and I came across something that used the phrase "Free as in Dom", and I thought "Is this some sort of JS library for DOM access? What does that have to do with Free"?
 
((also, it's exponential progression))
 
And then I realized "Oh. Free-dom. Freedom"
 
@RyanKinal And here I thought it was the other dom.
 
@Incognito ;-)
 
8:44 PM
 
user1385191
 
user1385191
aaaaaaa so cool
 
initialAmt * e ^ ( rate * time ) = 20 * e ^ ( -1 * 3 ) = 0.9957
 
That's awesome
 
9:05 PM
Can anyone with chrome confirm this for me?
There's no way.
Like, i'm really wtfing here.
I create an array of random numbers, I do console.log, that's fine, they're all normal and weird.
I create an array of numbers, log it, then sort them. My logged data comes pre-sorted.
 
Hoisting?
Apparently not
Yeah, I'm not sure what to tell you on that one
 
@Incognito you looking at it in chrome?
 
@OriginalSyn 15.0.874.121 m
@RyanKinal I'm not nuts, right? It's actually doing this?
 
Chrome does some trickey where it's live
 
user1385191
no, that's not it
 
user1385191
9:13 PM
arrays are objects
 
user1385191
objects are passed by reference
 
user1385191
slice the array when you pass it
 
user1385191
you'll get the unsorted data
 
Yea that's what I mean
 
Right... but shouldn't console.log() log the current value?
Or does it get delayed until the current function has finished execution?
 
9:15 PM
no if you have an object that like var a = {foo: "asdf"}; console.log(a); then 10 minutes later you go a.foo='bar'; and then inspect tthat object in chrome dev tools it will say "bar"
chrome doesn't make a clone of that object it just keeps a reference
 
user1385191
the other problem may be synchronicity
 
user1385191
using alert (synchronous) seems to yield the unsorted data
 
The bottom line is, if you want to compare an object it's best to output it's dereferenced value
otherwise don't trust chrome
 
user1385191
it's the same in opera too
 
So, console.log is asynch? That's all I needed to hear.
 
9:20 PM
I haven't used firebug in a while does it behave this way as well?
 
@OriginalSyn I don't expect Chrome to keep a reference, but I do expect output to remain the same. If I output the contents of {a: 'sdf'}, then I don't want the output to change. I don't care if the object changes later.
Anyway, it's moot, as that's just the way Chrome behaves
And it's time for me to leave :-)
 
Looks like firebug also behaves this way
it will output some simple stuff at the time of the console.log but if you click on it to drill down later it will contain the updated data
 
Hmmm. experiments
 
console.log is strange
Anyway, leaving now
 
9:49 PM
news.cnet.com/8301-30685_3-57330431-264/… [Microsoft shoots down Google's Dart language]
 
@Incognito logs are live
 
user1385191
lol
 
user1385191
nice to see cnet still is full of bloat
 
user1385191
scrolling is the furthest thing from smooth
 
@MattMcDonald Firefox doesn't result the same.
It will console.log the unsorted values.
 
user1385191
9:58 PM
oh, and A+ to the CSS override controls in Opera
 
10:13 PM
Why do all "professionals" seem to not be able to keep the C word outside of any js article they make?
 
Is it just me, or is the second design of any project so much more elegant?
@Zirak class?
I use "class"
I mean A is the "class" of B if B.__proto__ === A
I could say A is the exemplar of B
But that would alienate.
 
  +-----+
  |     |
  |     O
  |
  |
__+___

"class"
 
What?
What's wrong with using the term class to be [[Prototype]]
 
((psst, hangman))
C------
 
...
Oh I see
Ehm P ?
 
10:18 PM
Closure
 
@IvoWetzel I like how you wake up when we play games :3
 
  +-----+
  |     |
  |     O/
  |     |
  |
__+___

"class" "closure" "*p*"
 
ZirakIsRight ?
 
decides between giving extra life for acknowledging the truth, or -2 for being wrong and sucking up
  +-----+
  |     |
  |    \O/
  |     |
  |
__+___

"class" "closure" "*p*" "ZirakIsRight"
Went halfway :P
Hint: CO-----
 
10:22 PM
coffee!
 
  +-----+
  |     |
  |    \O/
  |     |
  |      \
__+___

"class" "closure" "*p*" "ZirakIsRight" "Coffee"
One more try
You guys really suck
 
cocaine?
 
how to apply lightbox to dynamically generated images? normally, I use ColorBox but that seems to require markup like <img src="foo.jpg" />. However, since image is generated by a script. My markup is <img src="script.php" />
 
  +-----+
  |     |
  |    \O/
  |     |
  |    / \
__+___


"class" "closure" "*p*" "ZirakIsRight" "Coffee" "Cocaine"
Answer: Cowbell
 
i was close
 
10:25 PM
You just killed a stickman
 
he looks pretty excited about it though
 
Wouldn't you? Discovering what happens after you die. Not paying mortgage.
 
lol
 
@Zirak: Cowbell!
Am I too late? :D
 
10:41 PM
@Raynos Thanks. I'll try out uglifyjs. I'm curious what that AST thing looks like...
 
the AST is weird.
I didnt go into details of what it looked like
I just use node-burrito
Then inspect the structure, make wild guess and hard code numbers
 
@Raynos I'm fine as long as it contains all the relevant information about the tokens and stuff...
 
It has all the data, I think
 
I wonder what parser jsFiddle uses...
 
Good evening! Can any one answer me how does the Facebook login button works and if I can save basic user information into my data base?
 
10:49 PM
You have to click it to log in!
:)
@MerlynMoreno Where is your database?
 
@ŠimeVidas In my hosting.
 
@Merlyn You can execute a script on a Facebook web-page and grab the information from the page...
(in your browser)
... and then send that info via Ajax.
 
I already could make it to work in my Web page, but I want to know how to restrict pages from my Web page and how to sve basic information from the user.
 
How to restrict your web-pages?
In what sense?
 
so i find myself dealing with lots of async functions in node, is there a native way of handeling sets of async function calls and checking for them all to be completed
 
10:55 PM
To let loged users get into those restricted pages.
 
@Merlyn Ah yes, you want users to be able to log into your site with a Facebook login, right?
 
@ChadScira That would be a job for deferred objects but I'm not sure if Node has them...
 
@ŠimeVidas I'm testing it here: 85print.com/james/test/loginFB.php
 
@ŠimeVidas so write my own i guess, cool
 
10:59 PM
@ŠimeVidas I have all of that here, but I don't understand how to do it after reading that.
 
@ChadScira I'm not familiar with Node. I would say it has deferred objects...
 
@ŠimeVidas I have all of that here, but I don't understand how to do it after reading that.
Sorry, I thought I was doing something wrong.
 
@tereško what on earth is up with his comment?
 
@MerlynMoreno , FYI , you can delete your comments
 
11:01 PM
@tereško ok, thanks
 
and if you want deferreds, there are several libraries out there. I hear Q is good
 
=== "close vote, please"
 
@MerlynMoreno I'm not familiar with that topic, sorry.
 
q promises library: github.com/kriskowal/q
 
@ŠimeVidas Don't worry. Thanks.
 
11:02 PM
"QAIHAIH CINisnc isoncis cionsc oinscin siconcin ?"
 
@ŠimeVidas Do you know where can I find the answer?
 
@MerlynMoreno Hm, you could open a question on Stack Overflow...
 
@ŠimeVidas My native language is Spanish, so what would be the question?
 
@MerlynMoreno "How to use Facebook as my login system?". Note though that Stack Overflow users generally don't like this type of questions...
 
I need something more than that, because as you see in my testing page 85print.com/james/test/loginFB.php the button is already working.
I need to know how to restrict web pages and how to save basic information from the user.
 
11:09 PM
 
@MerlynMoreno Check this out: facebook.stackoverflow.com
 
Facebook engineers are answering questions on Stack Overflow...
 
Got it.
 
11:13 PM
@MerlynMoreno Didn't I write code for you a couple days ago?
 
give man a fish ...
 
I'm not sure.
 
@ŠimeVidas Facebook developer site was merged into SO a few months back.
 
@Incognito Thanks.
 
11:35 PM
Where is that website that is similar to micro js?
@ChadScira after.js
@david I heard Q was bad ;)
 
@Raynos orly? link? i was going to use it >< do you know any laternatives?
 
Hey! Looking to LinkedIn touch version & Trello I'm quite impressed that it has really only a few requests. I see they are using Underscore.js and lots of other libraries, like Backbone. And lots of base64 images. Which asset packaging tool do you recommend? Jammit is the best tool available?
 
@Incognito Cool :) Glad to see Facebook engineers on SO.
 
11:56 PM
@Raynos what is the point of the switch statement in after.js?
 

« first day (403 days earlier)      last day (4537 days later) »