« first day (947 days earlier)      last day (4004 days later) » 

12:00 AM
Crap ...
 
@OctavianDamiean Adenau: 12.22C (285.37K), moderate rain
 
wat!? How did that become an edit?
 
Give it coordinates if you want more precision
!!/help weather
 
Nah, that's alright.
 
@Zirak weather: Gets current weather: /weather (lan, lon) or /weather city
 
12:02 AM
Adenau is a part of the race track.
 
every year the paypal sandbox gets worse and worse
 
@Zirak It is a really huge race track and spans several villages, so most of the surrounding weather data is correct in that case. :)
 
0
Q: Present SVG in non-accesible form for the client

BartoNazI want to make a presentation that consists from some number of slides. The actual content of the slides is going to consist of vector elements in SVG format. The transition between slides should be managed with JavaScript. The question is, whether is it possible to implement this in such way th...

 
neat
 
@Zirak can you go to 10minutemail.com/10MinuteMail/index.html and tell me which address you got?
 
12:10 AM
May I ask why?
 
He wants to send you goat porn.
 
I want to tell you something, and this is probably the simplest way I can do so without you exposing any additional contact information?
 
Well in that case f759884@rmqkr.net
oh. zirak@mail.com
The latter will be nicer
I send all my goat porn there
 
12:16 AM
He will forever have "goat porn" in his google search
 
I consider that a small victory
 
Google will show you local psychotherapists from now on.
 
@Zirak I already had goat porn in my google search
 
Ouch I guess.
 
12:21 AM
Inglor?
 
Hah, old nickname
mainly used on newgrounds.com
 
Tabs are better than spaces
 
I'm way past my sleeping time, I'm off, good night room
 
12:36 AM
@BenjaminGruenbaum That first order logic article begins to sound like a definition of a programming language environment. Awesome.
 
Liar, you're still here
 
shit, I'm waiting for git push to finish
 
I finally found a way based on this: https://github.com/joelpurra/jquery-mutation-summary

and here is
var $observerSummaryRoot = $(document);

// Simplest callback, just logging to the console
function callback(summaries){

// signature
var data = summaries[0];

if(data.hasOwnProperty('added') && data.added[0]){
// this could contain an iframe
$data = $(data.added[0]);

var el = $data[0]['localName'];
switch(el){
case 'iframe':
src = $data[0]['src'];
filename = src.substr(src.lastIndexOf("/")+1);
 
ack
acker
Found a way? Great. No need to leave a wall here (also, is that a single-case switch statement?)
 
12:41 AM
it's an example
would you like to tell me what you think regarding the logic behind it? i would like to know
 
I'm too old and too tired to wade through that unfamiliar territory
 
CoffeeScript is good
2
 
^ you don't mean that.
 
12:57 AM
Oh for god's sake ... STAHP RAINING!
 
Jebus, my body feels like it was hit by a bus. When did I get too old to handle staying up all night.
 
Yea, I know that feeling.
I'll hate myself tomorrow (Tuesday for me).
 
I think my eyeballs are sore?
 
If they don't continue the race within 15 minutes from now, I'll probably go sleep for a while.
 
Damn you being awake for fun!
 
1:05 AM
You ain't?
 
// global code
var www = {};
for (var p in this) if (typeof this[p] == 'function') try { www[p] = { com: this[p].bind(this) }; } catch (e) {}
Then:
www.alert.com(1234)
 
@OctavianDamiean I've been rendering images for a user study all night
 
@phenomnomnominal I've been watching a race. :P
I win. :D
 
you win by so far
 
user1125394
is there a function that does .shift() twice
 
user1125394
1:10 AM
.shift(2) would be cool
 
@phenomnomnominal The last couple of minutes I've been watching a race while playing a racing game. Win-ception.
2
Even on the same circuit as the real race.
 
> We all know Linux is great...it does infinite loops in 5 seconds. ~ Linus Torvalds
 
"The vanilla Javascript this gets all confused with lots of events quickly." What? You seriously think your 7 line solution that includes running a for loop with .val($(this).val().replace()... is cleaner than my 4 line vanilla one (that can be made even shorter, but less teaching,)? If so, how? — Benjamin Gruenbaum 1 min ago
Fine, I'm off to sleep
 
1:31 AM
Need some CSS help. Go to 47cr.localtunnel.com/yc2013demo name the tour anything you like, then open the "add videos" widget on the left. Click on "Add from Vimeo", then on "Add from YouTube." See how the Vimeo search box jumps? How can I fix that?
(It's more obvious when you don't search)
 
Hey guys, how would I go about using a callback function within a loop?
 
user1125394
example?
 
@dylanmaxey Async or sync?
 
async
 
1:46 AM
can you give us a use case?
 
2:13 AM
Why doesn't this log anything:
Number.prototype.valueOf = function () {
    console.log(this);
    return this;
};

1+2
 
Recursion is always the answer
 
Figured it out. The numbers are primitive values so valueOf is not invoked.
 
Any one know how to get the xposition of a div's background image ? i tried : var posx = div.style.backgroundPosition.xpos;
 
3:10 AM
@SomeKittens hey you still on?
 
yerp
 
such as breaking up an array into a for loop and within the loop sending the variables in an ajax request
@SomeKittens personally I'm slicing the array after every 50 keys
 
Is this for speed reasons?
One big HTTP request is MUCH faster than lots of little ones
 
@SomeKittens It executes a curl request for every item in the array, so it is limited to how many it can process due to most hosts limiting php uptime to 30 seconds
@Dave is the image centered?
 
technically possible, but there's GOT to be a better way
 
3:23 AM
@SomeKittens Have you had a play around with meteor?
 
@SomeKittens I'm sure there is, this is just the best I could come up with
 
@monners nope. is it fun?
 
@SomeKittens conversation.die();
 
@dylanmaxey What exactly are you trying to do?
 
@SomeKittens Yeah, it is. Looks like it's got some serious potential.
 
3:24 AM
@SomeKittens Get product info from each page by id.
 
Not sure how SEO-friendly it is though...
 
@dylanmaxey more detailed
@monners meh. SEO's overrated
 
@SomeKittens Everytime you say something like that, somewhere in the world a marketing associate dies.
 
If your site is good, people will come
 
@SomeKittens That's really about it, the site is a distributor of bike parts and I am part of a shop and the distibutors site is hosted by another company so I cannot get direct db access from them. So I'm getting the info via php curl js & jquery and adding it to my SQL db
 
3:30 AM
@monners I'll have to go around saying it more
 
@SomeKittens So I have a list of all part #'s, broke them down by part type, and getting the info for each part type 1 at a time because some part types are a higher priority than others.
 
user1596138
Why did the room name change?
 
“Knock, knock.”

“Who’s there?”

very long pause….

“JavaScript.”

:-o
 
@JosiahSouth This one's more accurate
 
Because Java copied us
 
user1596138
3:38 AM
Ah.
 
@Veekay JS is one of the fastest languages around, that joke must be old
 
0
Q: Help Improve this Code: Notifications Dropdown with TinyScroll

cuserjuicerI'm relatively new to jQuery and am trying to learn best practices/design patterns with javascript. Came across this link (http://addyosmani.com/resources/essentialjsdesignpatterns/book/) and decided to try and put it to something useful. So far I've made a notifications menu dropdown using Tiny...

 
@SomeKittens any suggestions?
 
@SomeKittens that joke was actually about Java.. :)
yup
But you catched it!
:)
 
user1596138
I need a new job....
 
3:44 AM
@JosiahSouth ?
@dylanmaxey just create a function that takes a part number and makes an ajax request for it.
 
user1596138
@SomeKittens Just a random statement.
 
@SomeKittens it wouldn't be async
 
@dylanmaxey Oh, sorry
thought you wanted the next function in the callback
 
well yes but you can't call a function from within itself
 
sure you can
 
user1596138
3:50 AM
@dylanmaxey Umm... Yes you can?
 
user1596138
@dylanmaxey Who EVER said you couldn't? lol
 
In some languages you can't
 
screw using a language without recursion
 
@dylanmaxey In bad languages, you can't.
 
IYO, sure
 
user1596138
3:57 AM
@SomeKittens This.
 
!!/urban IYO
 
@SomeKittens IYO Abbreviation for "In Your Opinion", or "In Ya'll's Opinion".
 
user1596138
@dylanmaxey Name a language that doesn't have recursion, but is a good overall language.
 
@JosiahSouth Prolog, kinda.
 
 
4:11 AM
> Everything should be made as simple as possible, but not simpler. ~ Albert Einstein
@vincent Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix Thanks! i was just checking out this page coz im new to Stackoverflow :)
 
@vincent So long as you're not a help vampire, you should be good
 
hi @SomeKittens !
 
user1596138
@SomeKittens Was AFK...
 
hi ya'll how long have you been JScript-ing?
 
4:31 AM
~year
 
Javascript is really powerful but it is also very vulnerable because it is visible to the Client. It is not safe to use/consume Web Services directly. Is there any best practice to do these kind of stuff especially doing AJAX to APIs especially post,put methods?
 
...?
Is that from a book or professor?
 
Either way, it's poorly stated
 
my mouse is wireless, my battery is dying and it started to moves without my permission
 
Sorry for poor english, it is from me.
 
4:43 AM
Well, the obvious answer is to keep everything that you don't want your users to have access to on the server.
 
just for you buddy :P
 
@vincent javascript is like tire on a car. You don't absolutely need them to use a car but it if you don't you don't use the web at it's full potential
 
any meteor.js gurus in the house?
 
@monners and @happyninja Thanks for your great thoughts about it.
 
@SomeKittens Can I get hired based on my WPM :D
 
4:48 AM
@XCritics Yeah, as a secretary.
 
@vincent So what class was that question for?
 
Does anybody here play Path of Exile?
 
@vincent this chatroom is a great example of the power of ajax technique applied properly
 
*sockets
 
@XCritics yup!
 
4:52 AM
@monners It was just a question that I want to ask. @Happyninja I just want to have a conversation with some JS experts.
 
@SomeKittens yup to socket, or yup to PoE?
 
We should play some time
well, both
 
I'm dling it right now, me and 2 other buddies
 
@vincent lol
 
Sadly can't game for a while
 
4:56 AM
yeah, i just replace my bogus mouse
 
@SomeKittens how come?
 
user1596138
I feel like crafting...
 
don't worry ;)
what language did you start with?
 
I'll either need to get Win 7 on this MBP or my own apartment
@JosiahSouth Minecrafting?
 
Why can't Elvis Presley drive in reverse? Because he's dead
 
5:10 AM
@CapricaSix that's a good one
 
user1596138
@SomeKittens Yup.
 
user1596138
@SomeKittens Get an apartment...
 
@JosiahSouth Got a server?
@JosiahSouth I wish it was that easy...
 
user1596138
@SomeKittens Not right now. Xbox only for the week till I get my other machine finished.
 
user1596138
@SomeKittens But it is. Haha.
 
5:14 AM
 
user1596138
@SomeKittens If you don't have a few months living expenses saved up I wouldn't even consider it. I was working 70+ hours a week 6 months ago when I started living on my own, I still barely made it by for awhile.
 
Not in San Francisco...
80k salary helps a bit
 
user1596138
@SomeKittens Why not? You can't just go find an apartment?
 
@JosiahSouth It's a seller's market. Demand outstrips supply
It'd be easy if I would take anywhere, when in reality I have some fairly specific needs.
 
user1596138
@SomeKittens Oh shit. I know who you are, we talked about zaption and such. Haha I didn't look at the name. I assumed I was talking to some kid living with his parents still.
 
5:17 AM
haha
nope!
But a fair assumption, given this room at times
 
user1596138
@SomeKittens Nothing wrong with being picky... I hate this shithole I live in right now hahaha. I only pay $575/month... But I live in a pretty small town.
 
user1596138
It's actually the most expensive apartment complex in the town. Although there's only 4.
 
user1596138
And I wouldn't call the others complexes.
 
Lucky. $1,815 for this housing. I'm trying to find something below $2,200 for my long term.
 
user1596138
@SomeKittens I can't even imagine....
 
user1596138
5:20 AM
Although I'm only working 25 hours/wk right now for $12/hr. I have no money.
 
user1596138
At this point I'd literally work at the McD's part time. But they aren't even hiring.
 
Got a GitHub?
 
user1596138
Not yet. Haven't started any of my projects yet officially. Just on paper.
 
user1596138
I was going to work tandem on a few things with a good buddy of mine who seemed pretty good. But he just got a year of Academic Probation for flunking a VB class twice. So I think I might not have as much help as I'd expected.
 
It's good to work solo
don't ever let your awesomeness depend on other people.
 
user1596138
5:27 AM
Also true.
 
"Oh, my buddy did X, so we never got to do Y" - Translation - "I'm lazy and require others to do my work"
You want to be awesome. Learn what recruiters hear.
 
user1596138
Really all I'm confident in right now is JS and PHP. Aside from the obvious HTML and CSS for web design. Although I never found web design complicated in the slightest. I want something bigger.
 
As a starter, write a blogging system.
Use as few libraries as possible
 
user1596138
Very true. Currently I have to completely re-write my jobs website. It's malformed and overall just trash. Problem is that it functions, which means the boss man is fine with it and isn't willing to pay me for the time it takes to fix it. I can't have a horribly written website in my portfolio.
 
@JosiahSouth Instead, you could have a detailed breakdown of what's wrong with it and how you'd do it better.
 
user1596138
5:32 AM
I'm using all my extra time I can squeeze in at the end of the day to work on it too. Shouldn't take too long. I just resent it insanely because I'm doing all this work for free because in short my boss is a dick.
 
Don't do extra work for free
there is absolutely no reason for it
 
user1596138
Not a dick. But he doesn't understand my reasoning. He says "If it isn't broke, don't fix it," When in reality it is broken. Just not as far as the average visitor would know, or him.
 
Hello
Anyone know about webRTC in HTML5
I am facing a problem
in voice call in webRTC
 
@SomeKittens What if you really love your job?
 
@monners Then it's not work.
 
user1596138
5:34 AM
Well what happens when I apply for a new job. Then they see the site from my old job which is horrid and assume I did that. They'll want nothing to do with me.
 
@SomeKittens Then what is it?
 
I was coding for Zaption for 5 hrs today. Awesome time.
@monners something you really love.
@JosiahSouth Like I said, work on your GitHub
 
Morning Folks!
 
Excuses get you to a dive bar surrounded by drunkards who nod just long enough so they can launch into why they never made it big.
 
@SomeKittens When's happy hour?
 
user1596138
5:36 AM
When I started I loved my job. It seemed so interesting and new because I was learning so many new things and all. Now that I see the reality of the situation I'm not really happy. Also as a (The only one in the corp I should add) Dev for over a year now I'm only getting $12/hr.
 
user1596138
I was also promised full time. I quit my other job (Would have anyway honestly, just not so soon) expecting FT and now I'm struggling to keep my truck.
 
user1596138
And no, I didn't go buy a new truck or anything. It's a 99 haha. I just have no money. I make less than $250 a week and have my own apartment.
 
user1596138
I think I'll take a full time job at a factory here in town honestly. Because really I don't think this job is helping my future and I could be making more money somewhere else for now.
 
my html has the form and some javascript that fires at the submission of the form. I have separated the form html(form.php) and javascript(base.js) into two files and loaded them into the main file which is shown below-
<html>
    <head>

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
        <script src="./base.js"></script>
        <script>
            var flag = "";
            $(document).ready(function(){
                $("body").load("form.php?type=insert");
       });
        </script>
    </head>
<body>
</body>
</html>
But the logic i have written in js is not triggering during the submission
when i isolate this way
its working fine when all are in the same file!
 
user1596138
Then it must be the order they're in.
 
user1596138
5:42 AM
You didn't show how the form page is included.
 
@JosiahSouth sorry, didnt get you..
 $("body").load("form.php?type=insert");  loads the form into body tag
 
user1596138
What?
 
user1596138
Oh yeah. I overlooked it. Hahaha
 
form.php contains the form tag html
 
user1596138
PasteBin of Base.js?
 
5:44 AM
            $(document).ready(function(){
$("#myform").submit(function(){

                    var x = $('#emailid').val();

                    var atpos=x.indexOf("@");
                    var dotpos=x.lastIndexOf(".");
                    if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
                      {
alert("Not a valid e-mail address");
return false;
                      }
                      return true;
    });
       });
myform is id of form tag
 
user1596138
That's the problem.
 
aha, you got it? great! whats the mistake?
 
user1596138
At document.ready when your function is called #myform doesn't exist.
 
user1596138
Try loading base.js at the end of the body. Below $("body").load("form.php?type=insert");. I bet it works.
 
ok, i should interchange the order
right?
okay!
got it
i try and get back to you. thanks
 
user1596138
5:46 AM
Should work.
 
user1596138
If indeed the problem was that #myform doesn't exist at document.ready
 
No, its not triggering...
 
user1596138
I'm too tired to do this by hand. I'll throw it into a fiddle.
 
Do I need to give $(document).ready(function(){ again in base.js or omit?
 
@udaysagar do you use html5?
 
user1596138
5:51 AM
Can you dump form.php aswell?
 
nope @Happyninja
hang on..
 
user1596138
I kind of wonder why you've seperated them. Also I've never used JS to include a page. I would just use PHP.
 
This is neat
 
<form name ="myForm" id="myform" action="task5_<?php echo $_GET['type']?>_show.php" method="post" onsubmit="return checkEmail();">
<label for="file">My Image Location:</label>
<input type="file" name="file" id="file"><br/><br/>
        Username:             <input type="text" name="username" id="username" value="<?php echo $_GET['username']?>" required><p color="red" id ="un"></p><br/><br/>
        Firstname:             <input type="text" name="firstname" id="firstname" value="<?php echo $_GET['username']?>" required><br/><br/>
 
format your code bro
 
user1596138
5:53 AM
You seem to be caling the checkEmail() function that doesn't exist?
 
user1596138
Just an observation.
 
user1596138
Also, I would have base.js running on document.ready and then call a function to include the form from within base,js.
 
user1596138
Then the rest of base.js runs. Just seems more efficient to me.
 
Actually, i have truncated my base.js here, I now paste the whole
            var flag = "";
            $(document).ready(function(){
$("#myform").submit(function(){

                    var x = $('#emailid').val();

                    var atpos=x.indexOf("@");
                    var dotpos=x.lastIndexOf(".");
                    if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
                      {
                          if(flag)
                              {
alert(flag + "Not a valid e-mail address");
return false;
                              }
 
user1596138
Use pastebin!
 
user1596138
5:55 AM
Nvm
 
how to do that? i am a newbie?
 
user1596138
I was afraid you'd dump pages of code into chat haha. Don't worry about it. Check out Paste Bin on google later though.,
 
ha ha, okay!
 
user1596138
Ok. Open the error console and type '$'
 
user1596138
What's it say?
 

« first day (947 days earlier)      last day (4004 days later) »