« first day (1993 days earlier)      last day (2970 days later) » 

3:00 AM
1: Use { and } even when not required
2: Avoid Confusion
3: ???
4: Profit
 
so where did I miss a }
after the if's ?
 
yes, maybe. I don't know. I don't write my code loosely.
 
!!die littlepootis XD i just started today basically
 
@AlexGray I will shut up after 1 more invocations.
 
oi
 
3:05 AM
does anyone know if $.pjax is actually a jquery function, or not?
 
@acoder shouldn't the docs tell ya
 
i can't seem to find it, but it does show up on google
 
It's a jQuery plugin
 
@pootis where's the link?
 
156
Q: How can I check if a jQuery plugin is loaded?

Vitor SilvaIs there any way to check if a particular plugin is available? Imagine that you are developing a plugin that depends on another plugin being loaded. For example I want the jQuery Validation plugin to use the dateJS library to check if a given date is valid. What would be the best way to detect,...

 
@acoder I think it'd show up here if it was official api.jquery.com/?s=pjax
 
k, just thought i'd make sure
thanks @taco
>:D<
 
:DDD->--<
DANCE :D->---<
 
!!youtube dance
 
cap ded?
 
3:10 AM
!!no
 
@littlepootis wat?
 
@CapricaSix is dead
 
Oh, she hates you.
 
!!live
 
3:11 AM
@AlexGray I'm afraid I can't let you do that, Alex Gray
 
how do i get her back?
 
!!youtube dance
 
bada bing bada boom. Forget javascript, I'm a pro in Caprica language
 
@acoder She's my girlfriend now. Sorry.
 
3:13 AM
@littlepootis can I meet her?
 
why not?
 
( ͡° ͜ʖ ͡°)
 
@littlepootis that's so cool:
( ͡° ͜ʖ ͡°)
how did you type it?
 
!!vargo WELCOME TO THE FUCKING MATRIX
 
3:17 AM
@AlexGray That didn't make much sense. Maybe you meant: zalgo
 
!!zalgo WELCOME TO MATRIX
 
@AlexGray W̵̴̐ͣ̓̾͟͏̞̜͈̀E̷̹̱̬̪̪̺͔ͩ̌͜͢Ļ̵̶̸̡̜̯̦̳̮͇͇ͨ̆C̳͈̟̙̯̬͋̅̒̎͟͜͠O̫ͮ̉ͧ̑̒̾̓M̢̫̣͍͎̯̪̓̈̋̋ͯ̀̚͝‌​E̶̗͍̪ͪ̉̀͘ ̸̨̡̪̮͙͈̫͜T̸́̆̌O͗͂͆ͥ̎ ̿͒͂ͬ̋ͧ̈́҉̮M̿̅͑ͭA̢̛̛̩̞͙͇̰ͥ̐̒͆ͭ̅̎̀́T̹͙̳̭̺̲͂͒͂̈́͜R͙̖̯̜̰̟͆̎ͦ͋̚I̧̜̮̞̝̅̀ͩ̿̈̓ͤ͜ͅX͌ͦͥ̊̇̃҉̧‌​͙̮͇̪̞͚
 
!!tell alex sandbox
 
@alex Please go and play in the Sandbox
 
!!google tissues
 
!!zalgo FOLLOW THE WHITE RABBIT
 
please
 
@taco F̮̪ͫ̑̑Ơ̢̰͍̮̈͑̆̈̎̾͠L̷̠̬̳̭̝̜̩̂̾Ĺ̨̛̫̭̣̹̤̝̞̑̈́̏̀ͭͯ̍̕O̵̒̽̍̅ͦ͘͏̮̹̦̳̲̞̹W̗̼̗̳̠͔͔̃͆͐͂ͨ͝ ̴̛͓̲́̉̌̃̎͗̑T̡̛̖ͫ͂́̾H̶̩ͣͨͣͪͫE͚͔̞͉̠͚ͨ̈͛̽ͧͦͪ̀͜ͅ ̴̯̝̥͙̯͑̀W̸̢̥̗̙͕͗̉̌ͧ͒͂̓͝H̷̸̥̯̬̰̠̟̼͋ͭ̍͢İ̵̦ͤ̓ͥ͊ͯ̃ͣ̐T̔ͦ̈́̄ͤ̽̀͗̓҉͔̱̠͇̰E͇̰͙̬͛̒͑̂͌ͪ̂̀̕͝ ͎̞͓̖̍͐̓ͯͮ́͑R̹͈͚̳͕̖͎̱͒̽̽̋ͦ͘Å̸͙̹͍̥͈̟̒̑́͊̔ͦͣB̜̗̝̱̮̻̎ͥB̨̫̲̬̳̖̒̄ͧ͢Ị̖̮͗̊̇͗T̨̢̹͈̄̐̋ͣ͠‌​̫͎̮
 
!!alive
 
!!google kleenex
 
HAMMERTIME!
 
in the name of love
 
@nick OMG REALLY?
 
3:18 AM
^^ in case it hasn't been posted before
 
!!no
 
@nick It has been posted many times and everyone were as excited as you were when posting it
 
@nick :OOOOOO
Microsoft Marketing Team: Windows 8 - nailed it! Now how can we ruin Linux and Windows 10 at the same time?
 
3:21 AM
I imagine this going wrong somehow
 
how do you get @CapricaSix back?
 
They're just bringing the bash shell. Calm down guys.
 
!!live
 
@AlexGray You do not have permission to use the command live
 
!!live
!!magic
 
3:22 AM
@AlexGray DUDE stop playing with the bot here. Do it here: chat.stackoverflow.com/rooms/1
 
!!invoke
 
@AlexGray That didn't make much sense. Use the !!/help command to learn more.
 
!!invoke
!!/help
 
Fucking stop or I'll flag.
 
tell me how to get her back please
 
3:23 AM
!!google define:salty
 
!!kick alexgray
 
The user has been kicked and cannot talk for 300 days.
 
@AlexGray Now go play here: chat.stackoverflow.com/rooms/1
 
Bad, bad Alex
 
3:23 AM
lol ok dude X"D
 
!!kick @taco
 
/me kicks himself
 
no @
do it to pootis
 
@littlepootis fite me irl
 
Nice
 
3:25 AM
what is all this buzz about Win 10 bash?
 
user image
2
 
I think Win 10 is ok. I got very few support calls from the family. Unlike its predecessor.
 
user2620028
must star that message for its truth
 
been using win 10 here on a surface book for ~ 3 months now and it's been great
previously I was using win 8 and I enjoyed it as well
loved the fast boot times
 
3:36 AM
var size = 8;

var board = "";

for (var y = 0; y < size; y++) {
  for (var x = 0; x < size; x++) {
    if ((x + y) % 2 == 0)
      board += " ";
    else
      board += "#";
  }
  board += "\n";
}

console.log(board);
i dont understand how x + y causes the board to be offset
wouldn't it always be divisble by 2?
1 + 1 = 2/2 = % 0
2 + 2 =4/2 = % 0
or does it have something to do with counting starting from 0
I get it now I think
 
I haven't really used it. I planned to upgrade my pad to Win 10 but always instinctively uncheck the update and dismiss the popup.
 
I installed win10 on my security system for IP camera. It seems ok. I just wish Microsft stopped at win2k
 
@AlexGray Why won't it be 1 + 2 or 2 + 1 ?
 
the loop is saying x = 0 initially, so when it adds '1' that means 0 + 1 = 1 when /2 does not = % 0, therefore it prints a space first.

Then the second loop instructs the program to continue doing that until 8 new lines have been made
but then how does it print # first on line two? Is that because 0 + 1 = 2 when /2 = %0?
therefore it prints # first
idk lol im confusing my self
 
The longer you program, the more you'll become like a human computer. Or a wooly computer, in my case. ;)
 
3:43 AM
lol :P

I think I'm on the right track in thinking its because counts start from 0
and the order of the loops just works just because
so even though there are '8' lines, the value of the last line is actually '7', is that right?
 
Yes. x and y will be 8 after the loop. But they will be 7 in the last loop.
 
should I have been able to write that code my self after reading the first couple chapters of eloquent javascript?
I can understand what the author did if I really really analyze it, but I was really unable to come up with it my self. I guess that means I didn't comprehend enough from the reading or something
 
Good question. From my experience, nobody can get it after the first read. Or the second. It is something you have to memorise, practice, and experiment, in this order.
Your feeling is perfectly normal and typical.
 
good book @AlexGray
 
I like the challenges in it. They frustrate me and discourage me when I can't come up with them on my own. But after analyzing the authors solutions my understanding increases, and I can modify the functionality of each program so I am at least understanding something
 
3:51 AM
everyone learns differently
 
these chat rooms have to be the greatest resource I've found. It's nice to be able to start discussions with those who have more experience aside from the fact that my newb ass questions might get annoying from time to time. But I try to just ask things once and if people want to respond they can or not
 
Ok. Normal and typical for my average human student. I remember I was relieved when I first learn the for loop, because I have been doing it with goto and recursion. I didn't even know the word recursion at that time.
 
I'm kind of beginner-intermediate. I've been using javascript out of necessity since 98 or so
 
I used to be happier with Java. Until, one day, the whole prototype inheritance things clicked for me.
 
I've worked on Angular and Meteor apps, but haven't worked with raw javascript too much
 
3:57 AM
I toyed with html/css here and there over the years (I'm 22 now). I remember when myspace was out and everyone had to have a custom layout. I remember hacking into some layouts to change things/doing some on my own. I toyed around with it some throughout highschool.
Then in 2011 I got into making beats and wanted to make a site to sell them, so I started learning to hack around and do dumb things but nothing serious. Fastforward to now and I really want to become a developer. I have a lot of random skills like a jack of all trades deal. So I'm trying to solidify my HTML/CSS/Javascript and go up from there to I can build really cool shit haha
its a shame myspace faded away, because that could have been a really cool way to get kids into html/css/programming who wouldn't have before
I remember lots of kids who you'd never think would get into that or learn it were learning at least a little just because of myspace
 
Myspace did not follow HTML standards... they were a mess.
 
I don't think anyone did at the time
 
The whole codebase was a mess
@BoltClock Facebook and Friendster did
 
well you get what I'm saying
 
Jack of all trade is hard, you will have lots of things to learn. I spent Q1 this year learning video. I already used avidemux, but now I am comfortable with ffmpeg, avisynth, various options, and proper video editors.
 
4:02 AM
it was exposing people who'd never be exposed to the language the language
thats gotta count for something
 
@taco Facebook was relatively late into the game. IE6 was several years old and Longhorn (Windows Vista) was on the horizon. I didn't realize Friendster was standards compliant
 
@AlexGray yep I get what you're saying. In my day, it was Tripod.com and Geocities.com
 
I came from Neopets :v
 
I guess there's still stuff out there like tumblr or whatever, I don't really know much about it. I'm not a big social media guy myself
if people want to learn they can and I guess it's not social medias job to teach them
 
It can still be social though
One of my old customers gets kids into scripting
with Lua... Roblox
 
4:06 AM
@AlexGray Social media don't do the teaching, but it gives the students a mean to form study group and discuss.
 
I wonder what Tom is up to now
 
Living my dream basically :d
 
(unbelievable, I know)
These are wallpaper quality photos man
 
I'm a photographer
 
4:10 AM
MySpace was a massive spaghetti-ball mess? Is that news when Internet is the massive spaghetti-ball mess?
 
Sheepy, I spent hours poking through the code. It was spaghetti code, possibly because of bad includes
 
Cool, he was in Singapore couple of years ago instagram.com/p/ipgmSLASfy/?taken-by=myspacetom
 
They didn't even nest HTML right
Tom is a decent photographer. looks like he uses lightroom or something to make proper HDR photos
that's what HDR is supposed to look like
 
Ah, I thought so
 
what a beast haha
i'd love to be able to create something like that
just out of fun/love then it blows up and you can really live life instead of just existing
 
4:12 AM
I've tried
I just wasn't very good at it :/
 
Not suprised. Big sites has too many chance to do it wrong. Just yesterday I find a major page on Bing ad's report, the <th> doesn't even align with the corresponding <td> in document structure. The interesting part is, they used to align.
 
I've tried a lot of things too albeit maybe halfheartedly and haphazardly lol
 
year 2000 snapshot of my website thisrules.com web.archive.org/web/20000303005852/http://www.thisrules.com
 
dat domain tho
 
I did fairly well with podcasts on audiodisco.com ... I was one of the top sites for a while
 
4:15 AM
I won't post my site because I know it'll be p0wned in seconds at current state :p
 
i would crawl music blogs and stream indie music mixes
and let people create itunes playlists from the hipster blogs
Later version https://web.archive.org/web/20060111190137/http://avidbeauty.com/?

I also was starting a community for softcore, but I couldn't get funding. Rightfully so, I guess.
Still looks pretty good, I think!
 
https://myspace.com/larrykinglivehc

olllllld olllld band i was in and recorded
 
Rounded corner's weren't a popular thing in browers in 2005 without some image hacks
 
it was me and one other guy haha
 
nice
 
4:21 AM
@taco -moz-border-radius in Firefox 2 shudder
 
heh
 
i cant believe its still on there
theres some other stuff still on there I wish I could get rid of lmfao
 
"When your culture is engineering-focused, you do not understand social. Social is a very emotional experience. Engineers are not so much, in a lot of cases." - Sean Percival
 
I was webmaster for a few bands
 
im surprised how decent the recording is. I didn't know shit about proper technique then and the recordings arent the worst. I'd probably do worse now that i know more lmao
 
4:23 AM
milhouse.... I got them in the #2 spot on yahoo in 98 or so which was really tough
 
maybe not
 
I was also webmaster for honeylocust, of which a few went on to become Black Kids and get signed by Columbia
 
music was always my first passion, but my social anxiety doesn't let me make shit as an artist and put it out there even though id kinda like to
 
@taco Wow
 
I prefer to DJ because I'm not very talented
 
4:25 AM
i got into the producer thing for a while and was making beats. I made some sites and tried to sell around 2011 off and on up till now. I've made sales before, just nothing substantial. I always give up on the sites before they have time to grow into anything
 
It's hard to make money in music. I knew a lot of music bloggers and a few music industry people. Don't bother
 
I have $58 sitting in an adsense account im trying to get to $100 so i can cash out lol. Tried the little affiliate marketing things before but I cant do the cheesy popup make money quick type sites because the passion isnt there. I don't think theyre reliable for income anyway
 
Black Kids for example told me something interesting; if you're not the songwriter, then you're screwed
 
thats me, I'm a songwriter all the way
composer, songwriter, whatever
 
Even then you don't get much for streaming. You must tour
 
4:27 AM
yeah, especially now
all the money is physical merch, shows, and endorsements/ads
 
@taco nothing quite like meeting your fans, and them meeting you, in the flesh
 
I had these scheme worked out where I was going to become a touring rapper, I even recently recorded 6 tracks for a mixtape. But I can't put my self out there like that lol
 
Weezer is a good example of that. Rivers Cuomo makes all of the money because he understood this
the other guys make it on the tour
yeah well it could happen
Myspace was better for that than Facebook
I think Justin timberlake screwed up
 
myspace encouraged people to look for more indie music it seems like, cause a lot of people wanted to have songs from bands/artists no one heard of and stuff
 
I think Justin timberlake screwed up when he bought Myspace in that he should have saved peoples legacy media on the site. Disk space costs nothing. He could've lured me back if he saved all of those photos
99% of the old photos are broken or just thumbnails
 
4:30 AM
I felt like bands were treated like first-class citizens on Myspace
 
definitely
That's me ... just dug it up on Myspace
^from one of my studio shoots
 
holy shit i just found old music from 2007 i was chopping and screwing stuff
 
> old music from 2007
> chopping and screwing stuff
 
i was 14 years old lol
 
I was 15 :v
 
4:38 AM
lol
so glad that's over
you still on myspace?
 
shit i wish I could go back lol, i'd do a lot of things differently X"D and I wouldnt be here struggling with javascript now, I'd know it X"D
 
not your band i mean
 
hey peeps, I'm try to get ajax to display an image, from a url that is in mysql, ive tried this: $("#img_logo").attr(src.img_logo);
 
@AlexGray I'm 39.... the struggle never ends... especially with Javascript. It moves too fast
 
Sorry if I made you feel old :p
 
4:40 AM
I keep thinking there's gonna be this magical point where "I'm ready for my first client" but I think if I keep waiting for that i might be waiting forever lol
 
continues trampling on your lawn
 
obviously I'd ideally like more, but I'd be very happy if I could just find a way to make 50k/yr after taxes independent of location
!!afk brb
 
I would like to know the Jquery lib which provide month and year picker.
 
google is that way -> google.com
browsing myspace friends now, lol
 
4:53 AM
@user4246662 jQuery UI. It's right on the official jQuery site.
 
half of these people are married now
 
@Sheepy:thanks
 
anyone feel like having a crack at my question?
 
!!google jquery
 
4:59 AM
@AboutLeros And do you know where is the problem? That line do a lot of things and depends on many other lines, so you have to narrow down the problem.
 
@AboutLeros just hardcode a url first to debug. start off simple
 
hardcoded url functions correctly.
:29657230
 
So something is wrong with src.img_logo. Can you pinpoint whether it is a problem with src or with img_logo? Do you know how to use browser console to debug?
 
yes
i'll look
 
@BoltClock I was 8 :3
 
5:08 AM
did you guys take notes in a notebook when learning?
to help memorize things like what is a statement, what is an expression
when and where to use {}
useful global variable/operators
 
@Sheepy says the image is not found
@Sheepy so the problem is it doesn't know that img_logo is the field name of a mysql row, and that in that is the image.
 
Do you know what is in src? (Debugger tab) Have you checked that the server is giving you what you are expecting? (Network tab)
 
src="img_logo"
 
How are you reading from mysql? Which backend language are you using?
 
php
so it's placing the field name as the src and not what is store in the row
 
5:21 AM
Well, only you know your code.
 
any suggestions? :)
 
how do you add a new folder in a git repo?
 
like mentioned, print the src URL to Javascript console. I'd recommend putting it in quotes to rule out whitespace, e.g. console('img_logo url: "<?php echo $url;?>"');
 
do I need to be using some program on my machine to edit my repos or something?
 
a git client
 
5:26 AM
christ lol
always something
developers developers developers
 
@taco yeah, i tried this, $("#img_logo").attr("src", "img_logo"); but can i mix php and js?
 
yes?
I wouldn't do it there though
 
so it would look something like this: $(img_logo url: "<?php echo $url;?>);
 
var img_logo = '<?php echo $strImgLogoUrl;?>';
then do your checks in javascript to verify it is set properly
 
Also, that is terrible
 
5:32 AM
doesn't recognise there is an image at all
 
what
 
what does change the current working directory to your local project mean
 
if it's not getting it from php, then rule out the db, and hardcode the php variable... also this sounds like php issues, not js
 
@AlexGray cd /path/to/your/project
 
so
if I have a folder with all my files called html_5_audio_player
it would be

    cd C:\Users\AG\Documents\HTML\html_5_audio_player
 
5:40 AM
yes
you're using linux
 
i see what I did
I'm using bash
 
Windows 10 bash?
 
yes
hmm no such file still
 
path separator changed from \ to /?
 
I'll try it
 
5:42 AM
try pwd
 
that works
changing the separator
wtf
why did they make this so complicated lol
 
Who?
Microsoft?
 
i dont even know who to blame lol
I just wanted to make a git hub to store the little projects I make while I learn and show people what I've done, but it's not as easy as I thought
 
version control is something you'll have to learn anyways.
 
true that.
thats pretty cool.
 
5:54 AM
can anyone tell me why calling an image url from mysql with ajax isn't working? $("#img_logo").attr("src", "img_logo"); it works if i replace "img_logo" with the url of an image.
 
so I can use cmd prompt or this bash prompt thing to do this?
is git sort of like a library installed into my machine that adds commands and stuff?
 
:'(
 
@AlexGray it's a software, like any other. It installs default command line tools, but you can also use a GUI.
@AboutLeros code?
 
whats the GUI
 
@AboutLeros ask in PHP chat
 
5:59 AM
@AlexGray there are many
 
for some reason the bash thing seems to be stuck after trying to upload my files, maybe it's just some big files. I have three mp3's in there its on 23/26
yup, it was the mp3's im almost sure.
 
user3119231
its a me maurice
 
!!welcome maurice
 
@maurice Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
XD
 
user3119231
6:10 AM
!!ban Alex Gray
 
@Maurice The user will be thrown into mindjail in 1 more invocations
 
:(
So I just uploaded a repo from cmd line, now in theory when I make changes I could upload a new branch or whatever to github and that would be a new version?
 
@littlepootis here's the code jsfiddle.net/dwL0Le7o/1
 
@AboutLeros .attr("src", "img_logo") means writing <img src="img_logo"/>. img_logo, as a string, is unlikely to be the image url you want.
Have you got it working without ajax?
 
6:19 AM
@Sheepy yes))))
@Sheepy you mean adding a direct img url? if so yes and it worked
 
No. I mean using PHP to read the url from mysql and output it as part of html.
Static html.
 
oh yes of course, but i'm using the id to echo from mysql, so it kind fucked up echoing an image. lol
 
or static javascript
 
@AboutLeros Sorry. I don't quite understand that. Can you explain more what you have coded before?
 
dude thats cool
thanks pootis
 
6:28 AM
@Sheepy when echoing instead of writing in the html element <?php echo $userRow['data_blabla']; ?> i'm using this <li class="list-group-item" id="data_blabla"></li>
 
Ok. Next step. You are loading image url with ajax, right?
We know it works when you use a static url on js side. Have you tried using a static url on the PHP side, instead of loading it from database?
 
@Sheepy yes, tried and worked.
 
I mean, feeding static url with ajax?
 
I'll try echo it directly in the html element
 
If you take away the database part but keep the ajax part - so that js still ask the server for the url, but the server doesn't read from database and use a static url instead - would it work?
 
6:36 AM
@Sheepy no, coz i have a foreach loop and each image will be different.
 
user3119231
@littlepootis static vs dynamic
 
@Maurice preprocessed javascript
 
@AboutLeros Your current problem is you cannot load any image, if I recall correctly. If you can load the image when the server respond with static url, we know it is a problem on how you read / pass on database data. Otherwise we know it is a problem with the ajax communication.
 
@Sheepy yes, i can load a static url image if placed in the ajax call
@Sheepy and it doesn't work if i echo it directly into the src like <?php $userRow['img_logo']?>
 
@AboutLeros It seems that we have problem understanding each other. Sorry I give up. Try get some working example from the internet and modify them. When it breaks, you will know immediately and find out why.
 
6:45 AM
@Sheepy Thanks for trying
 
NOW THERE'S APTITUDE ON WINDOWS 10 WTF
 
when you clone a repository with Git, where does it save it?
 
user3119231
wonderland
 
@AlexGray currentdirectory/repositoryname
 
aha, so you would create a place for the repo then cd to that before cloning
 
6:49 AM
no, it creates for you
 
based off of whatever directory you're in in the cmd line?
 
gotcha
 
@Sheepy the problem is similar to this stackoverflow.com/questions/30591080/…
 
@AboutLeros wow, how are you still stuck on that
 
6:57 AM
@taco :'( yes. it' s a bitch
 
Just pay some kid to fix it for you so you can move on. It shouldn't be that hard
 
@AboutLeros I am not certain. Since I cannot narrow down your issue so I can't even tell whether the actual problem is really similar.
 
@taco don't see you trying to fix it :P hahaha!
 
46 mins ago, by little pootis
@AlexGray https://try.github.io/levels/1/challenges/1
 

« first day (1993 days earlier)      last day (2970 days later) »