« first day (447 days earlier)      last day (3341 days later) » 

7:13 PM
I'm torn... using margin in CSS or adding <br> tags...
oh the choices
 
hi all
 
hi
 
hi
 
hi
@TylerH or width 100%
 
@ZachSaucier it's for vertical spacing
 
7:19 PM
margin all day then
why the heck would you use a br
 
so much hi's
 
i am working on canvas

here is the link http://jsfiddle.net/wkAsA/

I am trying to move up and down my middle line but that one is not happening can any one help me on this please
 
@ZachSaucier I wasn't being entirely serious about the <br> tags ;-)
Just hoping to incite some rlemon poop-rage
 
i created new variable call linevalue by default it will be in 40 so the position of line will be in somewhere middle
when i increase or decrease the value of the line value middle orange line has to move accordinly
can any one suggest me to solve this issue
 
@user3820621 I suggest you solve that issue
 
7:27 PM
actually i don't no whether i need to give linevalue 40 if i gave linevalue as 40 and i have added the variable as a parameter in my curve function but still not working
 
man I love this
 @media(max-width: @screen-sm){
        // some stuff
    }
 
@Loktar yay preprocessors!
 
heh makes it so easy to target specific things
I assume sass has that as well (media query bubbling)
 
@ZachSaucier lol, rude
 
7:28 PM
@ZachSaucier pretty much will never not use preprocessors again :P
 
@TylerH XD The rude thing is he won't understand
@Loktar unless work requires you not to :(
 
fortunately I'm the lead front end dev here :p
preprocessors always
^ always said like satan
 
(I sometimes write SCSS functions and only give the CSS functions when I'm told to only do them in CSS - shhh)
 
haha
yeah thats the cool thing you can just do whatever on the client side/compile it and provide the css
 
@ZachSaucier You have to compile to CSS for production anyway, dont you?
I mean, not necessarily you, but someone does
 
7:31 PM
@TylerH ya, have to
 
You guys want to know the main reason to never ever ever ever use SharePoint?
It strips out JavaScript and sometimes HTML/CSS whenever you add it
for "security"
 
well, they're secure in their knowledge that nobody will ever like Sharepoint
 
@TylerH ugh man screw sharepoint
 
@TomW from what I hear 2013 is kind of like IE11; not awful but still kind of the redheaded step-child
I'm still stuck on 2010
 
haha yeah before I left Startcom last nov we were still on 2007
 
7:34 PM
D-: jeez
I'm starting to hate the fast iteration cycle of software and programs/apps
because it is serving to further highlight my "not with it-ness" as I get older
"Twitter? Oh, yeah, I have one, but I don't use it... it's so old"
 
haha
yeah you have to have adhd to a certain extent to keep up with everything imo
 
@Loktar having a brain fart
for( var x = 0; x < width; x+=size ) {
  for( var y = 0; y < height; y+=size ) {
    // I want to now average the values in between. not just the points, but the 'size' between them.. get those
  }
}
I know i've done this before but can't remember how :/
and can't find the fiddle
 
If only you could name your fiddles
seriously jsfiddle get on it
 
or search them
 
@TylerH you can
left panel, second section (IIRC)
just have to do it on the first save
 
7:41 PM
@Loktar nvm sorted
 
@ZachSaucier oh my god
amazeballs
Why that's not in the top menu is beyond me
It's like the most important function
JSHint, TidyUp, Fork, all that stuff should be on the left menu
 
nyt~
 
1 message moved to Trash can
 
@user3622856 Please do not post spam in the chatrooms :)
@Mr.Alien good night!
 
ok thanq
 
7:50 PM
If I need to move a <script> from the middle of a document to the <head>, then that means I need to add document.ready, right?
or wait
that's jQuery isn't it
 
@TylerH not sure what you're talking about
 
@ZachSaucier Sometimes JavaScript code needs to be run after certain elements in HTML
IE if you try to just put it in the <head>, it won't work, because it's trying to apply to HTML that hasn't been created yet.
That's where document.ready comes in, AFAIK; it makes the script wait until the document is ready
 
ya
so you want it to run after everything but it's in the head now?
 
@rlemon sorry had a meeting impromtu lol
glad you got it sorted
 
well no, this is referencing that SharePoint problem from a while ago. I have an inline <script> that I need to move to the <head> and I couldn't remember exactly what I needed to add so that it ran at the right time
but after looking at it for a minute I think it's not a matter of running it at the right time but rather applying it to the right parts of the HTML using getDocumentbyID
 
7:57 PM
@Loktar well I thought I did
 
or similar
 
just wrote a smaller 'scan' method
but it didn't work
and I locked jsfiddle like a chump
 
@ZachSaucier I'm just embedding google maps basically. Nothing fancy
 
however I know i've done this
 
7:57 PM
^^ Fun stuff
 
so I'm just going to find my old code
 
@TylerH you can run the javascript in the head tag or at the bottom of the body. But the related Google Maps code needs to be in the same section you are calling it
 
protip: you can run it anywhere.
only certain places are better than others for given needs
 
@BuddhistBeast due to SharePoint's security restrictions it must be in the <head> tag
otherwise it will be removed automatically when I save
 
At least I have had problems trying to run my jQuery and reference the Google Maps API outside of the area I called it
 
7:59 PM
@TylerH document.ready just waits for document.body to be appreciated
it doesn't actually mean everything is ready, just that the body is parsed
 
@TylerH what are you trying to do in Google Maps?
 
@rlemon effectively the same in this case
 
only if you are waiting for a element to be seen.
 
@BuddhistBeast embed it, but I may end up just trying an iframe if this JS doesn't behave
 
images / downloaded resources, etc, all still need to load
 
8:00 PM
Have you gone into the Google Maps API and looked at their code?
 
@BuddhistBeast see my last message about iframe
IIRC that's what Google Maps API provides
 
Hmm.. I see...
I think you're better off with running the JS at the beginning and then having a div hold the map.
 
posted on July 21, 2014 by Chris Coyier

The overall point here by Harry Roberts is to keep the specificity on your selectors as low as you can. The end result of that effort is: More reusable styles. When you need to override that style, you have opportunities to nudge that specificity a bit higher while still being reusable and not fighting yourself. Direct Link to Article — Permalink… Hacks for dealing with specif

 
> [id="widget"] {
...
}
wow that handy to know that it has the same specificity as a class
 
-_- It is saying my API code is rejected... rude
 
8:06 PM
I will totally impress the ladies with that bit of knowledge
dayum
he gives code revew for 750 euros
 
MOTHER FUCKER! JUST SAW MY ENDLESS LOOP!
for (var _x = x; _x < x + size; x++) {
    for (var _y = y; _y < y + size; y++) {
DAMN VARIABLE NAMES!
 
@Feeds Didn't this get posted like yesterday or last week or something
I've had it up on my computer at home for a couple days
 
lol I usually go with xx yy when doing loops like that.. but yeah messy regardless
 
@rlemon Ew
 
@RyanKinal shh your face :P
 
8:09 PM
:-P
 
8:27 PM
@Loktar I'm 90% done my ambitious project, but I have to go AFK for a bit
tl;dr I scan an image and get averages over a scan_size, then I randomly select images from imgur and scan them and average them, if their average fits a colour on the original image I paint it to the original.
basically make an image out of randomly selected images from imgur
 
cool
 
just improving the performance a bit
all of the parts are written, but need to be placed together and not crap out the browser :P
 
can the user specify the random image size? Meaning the final resolution/number of pictures?
 
Hola guya, I just want to ask a confusing question: Is there anyway from our code we can download files from a browser on IOS?
 
What kind of files?
 
8:29 PM
Er... elaborate?
 
@rlemon For example a 10x10 photo could be cut into 1x1 images, 2x2 images, 5x5 images, etc.
 
zip files or any video file, just to donwload, like a simple download button do
 
@ZachSaucier that is a variable.
so yes.
 
yay!
might want to allow to filter imgur photos by content maturity then
 
@softgenic short answer: no, long answer: yes, but limited
@ZachSaucier and how the fuck would I know the content?
:P
I'm not using the API
 
8:31 PM
imgur doesn't have a "hide mature" filter or something?
oh
 
I'm literally selecting random images
 
@rlemon limited in terms of
 
even still I would think there would be an option in the URL for it, though obviously I haven't checked
 
function makeImage(url, cb) {
    var img = new Image();
    img.crossOrigin = 'Anonymous';
    img.onload = cb;
    img.src = url;
}
function makeId() {
    var id = '';
    for (var i = 0; i < 5; i++) {
        id += parts.charAt(Math.floor(Math.random() * parts.length));
    }
    return id;
}
function checkImage(img) {
    return img.width !== 161 && img.height !== 81;
}
those image dimensions are their 404 image dimensions
it is a pretty damn good way to go about it
@softgenic in HTML5 there is a download attribute
not everywhere respects it however
otherwise you can do some 'funky' stuff to target specific browsers
 
8:43 PM
@rlemon nice I do that with procedurally generated images
woah imgur updated the sites design
 
StackExchange is ranked 54th in pageviews yet only has 25 servers and around 20 staff. Crazy.
 
Anyone know of a good PHP framework?
 
@Loktar yes but the fun is random images
might take a while to complete - if the image fits no 'cells' I dispose it and try again
 
yeah there was a script to do that with assholes I remember :P
iirc there was a george w bush image created with it
 
lol
well SHUT UP! THIS IS MY THUNDER NOW!
:P :sobs: always pissing on my parade
 
8:45 PM
haha nah, its a cool idea
 
mmk. gunna create some svg icons sprites
 
LOL just saw that on reddit on masterace
 
how do i manipulate the viewport?
 
er no /r/steam apparently
 
m59
Throwback funny SO post title: stackoverflow.com/questions/20132202/…
0
Q: jquery create new divs with sql script

Cristiano MarquesWell, I was making a tooltip script, it was working but I realized as soon as I had many tooltips my webpage would get slower, so I tried to change the script to only create what was needed. This JS finds a 'itemtooltip' class (wich is a img) and then calls the script to create the tooltip. jQu...

 
8:59 PM
@Loktar well fuck. mine wasn't going to overlap, but now I kinda see I have too
:(
 
Hey peeps, are there any hacking fourms on here?
 
y u make this harder than it needs to be
@TyreeBrown depends on why you need them
 
apparently they used paint.net
theres a built in feature to do that
 
Just to learn how these hackers do what they do, so I can be better prepared for a hit.
 
^ The new Dread Pirate Roberts
 
9:05 PM
Can anyone direct me to a pro/cons list of using SMTP rather then the web server to send emails?
My manager just asked me 'why i'm using smtp' and all I can think of right now, is 'well, it's the best way' which isn't a good enough answer.
I don't actually know myself why it's the best way, apart from it being handled properly and authenticated so the chances of it landing in other users junk boxes
 
@TaylorWilliams Might be more of a networking question
 
No networking chat rooms about really
 
Then this is probably one of those moments when you break it down to a technical book and look into the advantages of each protocol
Maybe ask your boss what they think would be the better option and then do research based on that.
Start here: it.med.miami.edu/x1111.xml Then you can go into the wiki pages and do more reading.
 
They aren't web developers at all, they're network admins.
They suggest using php-scripts, skiping authentication
i've already put a smpt authentication in place, which works
 
Network admins probably know significantly more about protocols than a web developer would ever know..
 
9:21 PM
yes, but they are basically telling me to use php mail() function over smpt
something inside me knows that's awful compared to smpt
 
smtp*
The PHP mail function will just use the server it's running on.. I mean.. SMTP either delivers a message or doesn't. SMTP has a huge security risk as well.
Really, in all reality, are you calling an SMTP in your php code right now?
To be honest, you are using SMTP no matter what. The mail function is a SMTP
 
i'm a ruby on rails developer, so using ActionMailer with smtp authentication
but i've found out what i needed! :)
 
So do you honestly want to know why your manager probably brought this up? It's probably because it's ten fold easier to use 10 lines of the PHP mail function than it would be otherwise. They are both the same thing. Don't believe me? php.net/manual/en/function.mail.php -- Control + F "SMTP"
 
I'm aware how easy it is to use php mail(), but i've already done it the smtp way, it's now asking why
But i've just done some research:
-What makes the PHP mail() function so simple is its lack of flexibility.
-I think the php Mail() function should be removed from PHP entirely; it's not helping anyone and no real mail service will accept it because it's so easy to abuse and so many sites code have been hacked because of people using this.
-It’s a lot more efficient to use a SMTP Authentication over PHP Mail(), the server won’t panic if million of users try sending an email at once with AMTP Authentication, however with PHP Mail(), the server will take a hit.
thank you for your help and insight @BuddhistBeast
 
9:47 PM
@TaylorWilliams do what you want with it but if the network admin is questioning you between using SMTP and the PHP mail function, then I would ask him what he truly wants you to use. He obviously knows what he is talking about here.
 
9:57 PM
Anyone a fan of Laravel?
 
Sounds way too much like PHP.
 
Hmm, what about symfony2
 
Anonymous
Hello, guys. How do u think, I should learn js, jquery, or php first?
 
jQuery is JavaScript
 
m59
jQuery isn't a language, so scratch that.
 
10:01 PM
JavaScript is all frontend. Php is all backend
 
m59
@BuddhistBeast jQuery is NOT javascript.
 
What do YOU want to learn first?
it is a framework of javascript
 
m59
Also not a framework.
jQuery is a javascript library (code written in javascript that MIGHT be useful in a javascript project)
 
Gotcha
 
m59
though I don't find it useful anymore.
 
10:02 PM
 
m59
@user3790069 I actually would recommend learning javascript and php at once
but only after learning more generalized basics first
try learning Karel
It's sort of an intro to computer science
I wish I had known about it when I got started.
 
I mean... Karel syntax looks difficult compared to Python...
 
Anonymous
@m59 Who/what is karel?
 
m59
@user3790069 ^ the Karel program on codehs is really based on JavaScript, so I recommend that for you
 
Anonymous
10:09 PM
@m59 "but only after learning more generalized basics first" In your opinion, where can I learn it?
 
m59
I just said that lol
codehs.com Karel course
 
@m59, why Karel versus any other language?
 
m59
It's not really about the language, it's about the lessons.
The lessons aren't about things specific to a language
It's more about teaching you to think properly in general (on a basic level)
 
Anonymous
@m59 http://codehs.com/course/1

^^^^
 
Aye, but Karel's syntax seems to be much harder to process than the normal Python or Java
 
m59
10:12 PM
@BuddhistBeast like I said, codehs has it based on JavaScript
 
Simple enough. However, I wouldn't classify Computer Science to be solely web development
 
m59
I don't know that anyone suggested it was....
 
Eh, forget it. This isn't worth bickering over
 
m59
lol I didn't know we were bickering!
I'm confused.
 
Na, I would have been bickering haha
It's not you, it's me.
I'm currently trapped in an Internship with a bunch of CIS people who think they know what CS is. Any little thing is beginning to set me off :(
 
Anonymous
10:16 PM
@m59, I can start to learn it now, but is this course really high-quality? Their page has only 4k likes on fb ;/
 
Go here and learn it this way: codecademy.com/en/tracks/javascript
 
m59
@user3790069 They are newer and mostly market toward middle schools and high schools
I'm a tutor there and I even found the course to be helpful (for basics)
 
Anonymous
@BuddhistBeast I have an acc on codecademy
 
m59
I haven't tried any others, so I dunno about them. Others are probably good too.
 
@user3790069, codeacademy is a good place to start. You will only get better if you actually do projects enhancing your knowledge and skill related to the language.
 
Anonymous
10:19 PM
@m59 Ok, thnx
 
IE if you want to further enhance your JS skills, you can try to create an online tip calculator that calculates your tip and total bill without refreshing the page
but of course, you need the basics first...
 
Anonymous
@BuddhistBeast I know, I'm finishing their CSS course
 
Boom. Then you have a pretty good idea of how well codeacademy teaches material
 
m59
In my opinion, the worst thing people do when they get started is think that every detail of what they are learning is meant to be applied on a professional level
like global variables.
You'll probably use them exclusively when you start and not know what they are
then you'll learn that later and hardly ever use them again lol
(I hope)
 
Anonymous
@m59 Your site isn't free :o
 
m59
10:27 PM
It isn't?
"Access the first unit with help except challenges"
 
Anonymous
@m59 Cool, I'm going to create an account
 
m59
Nice, let me know if you don't get a response on anything
It's summer, so the tutors have been on there a LOT.
I've got a lot of work going on, so I haven't had any time this month, but I'd be glad to give you some help if no one else gets to it quickly.
A lot of them are college students.
 
Anonymous
@m59 "let me know if you don't get a response on anything" Thanx, but when can I find u?
 
m59
@user3790069 ping me here
 
10:44 PM
Does anyone know someone that is good at building computers or a forum where I can get some advice?
 
m59
When you submit an exercise or ask a question on the help tab, tutors can see it and answer your questions and grade your exercises. If no one give you any feedback after a while, just ping me and I'll help if I'm around @user3790069
 
Anonymous
@m59 I will keep that in mind. Also, do I need to learn only Karel here codehs.com/course/1?
 
m59
@user3790069 yeah, and I think you can earn some free credits for other exercises as well
 
@joshhunt weight the pros and cons of building versus buying
 
10:56 PM
^ what would you do?
 
Want to hop in a chat?
 
m59
@joshhunt man...I went through the building phase (I prefer over buying a desktop)
but at this point
I ditched my desktop altogether and bought a gaming laptop
 
whats the price difference like?
 
m59
well, the gaming laptop is pricy
but, everything is on one computer, which is much better for me
 
true
 
Anonymous
11:02 PM
@m59 Some days ago I saw a post on an imageboard, a guy was talking about his programming experience : he finished js lesson on codecademy, but when he tried to create a simple calculator, he couldn't aply his knowledge and create anything. Karel lesson will help me to avoid it, right?
 
m59
I need a laptop anyway, and I don't want to be in two places, if you get what I mean
@user3790069 no, I wouldn't expect that. Like I said, it's best to learn to think properly before you try to build something
Karel is about thinking, not about building
@joshhunt I got this newegg.com/Product/…-pla--All+Gam‌​ing+Notebooks-_-N82E16834152589&ef_id=U4qoTAAAAJA0PE2e:20140721230347:s
It is FRIGGIN awesome man
so powerful
 
^ thanks for the advice, I'll look into it
 
The only downside to having a laptop is you cannot interchange the pieces to it
 
m59
Right, but you know what
I never changed anything on my desktop
By the time I needed to, I pretty much needed to change all of it (mobo, cpu, gpu)
 
True that.... I am at that point..
 
m59
11:06 PM
This computer is going to be awesome for gaming for 3-5 years in all likeliness
 
But at the moment, throwing in an SSD, i7, GTX 770 will leave you not having to change anything for quite some time
 
m59
by then, I could just replace it with a new one and get all the newest good stuff
ok, I really gotta focus on work. Peace guys ;D
 
@m59 Have fun, thanks for your help!
 
11:29 PM
In php if I want to filter an array based on the value of an array key should I use foreach or array_filter? I need to match the array key to a variable.
 

« first day (447 days earlier)      last day (3341 days later) »