« first day (922 days earlier)      last day (4025 days later) » 

5:00 PM
smallest possible size whilst still being bigger than the minimum and maintaining aspect ratio
and I need to be able to scale up and down
 
@OctavianDamiean Let's not!
 
@BillyMathews Why can't you set background-size: cover?
 
I need to. :(
 
No, you should. I shan't!
Mwhahahahaha
 
because its not a background image
its an element
 
5:01 PM
@BillyMathews why?
 
@AmaanCheval Oh yea, I started working on my website!
 
@OctavianDamiean Oh, awesome! I bet it's going to be orange.
(Yeah, I was here when @GNi33 said that :P)
 
@BillyMathews step 1: create another dom element the size of body, step 2: set the image to background-size: cover, step 3: get the actual computed width/height in pixels for it, step 4:?? step 5: profit?
 
Ooooooh, nice!
 
5:02 PM
It's not an image by the way. :D
 
YOUR FACE IS AN IMAGE
 
(when you see yourself in the mirror)
 
@Shmiddty No, yea well true. It is my past me.
 
And we have got 2 tickets.
 
5:06 PM
every time i go to do something here I'm just perplexed by the fact that its so stupidly hard to do this
 
they got sold out in 30 seconds :D
aesome :P
 
@KendallFrey TOO OLD
 
@BillyMathews you want hard? try doing animation trig :/
 
5:07 PM
Pedobear is only sexually attracted to fetuses
 
pfffftttt no thanks
 
@rlemon, nah im cool
 
@rlemon I feel your pain.
 
lemonmeme.com/game/game.html for as little as this does, it was a fuck load of code.
and complicated as well
:/
game logic is here
it is my newest WIP
 
its sooo pretty though! :)
 
5:10 PM
I keep getting fucking infinite loop!
 
@rlemon needs autofire
 
@Shmiddty hehe, well once I get the low level mechanics working as I would like them I want to start to think about powerups and stuff.
 
@OctavianDamiean my terminal locked up, can't type anything ;_;
 
Another dumb question. In CSS, you can have a URL in the following:
background, background-image, content.
Have I missed anywhere?
 
1
Q: How do I only load js on the post-new.php and post.php pages in admin?

dcp3450I have some script that is loading in the admin. I only need it to load on the new post and edit posts screens. What is the best way to do this?

 
5:14 PM
0
Q: Javascript Array conversion

user2320735I was wondering how I could turn this: var data = [ {id:1,option1:'short',option2:'red',option3:'gold'}, {id:2,option1:'short',option2:'red',option3:'silver'}, {id:3,option1:'short',option2:'blue',option3:'gold'}, {id:4,option1:'short',option2:'blue',option3:'silver'...

^ close
is stupid
(too localized)
@mikedidthis @import
 
@BillyMathews jsfiddle.net/xT4hx There you go, fiddle and all
 
@GNi33 What terminal are you using?
 
Ahh ok. I need it as a selector, as I want to steal the URL, but not have the browser load it.
 
@mikedidthis list-style takes them as well
 
@mikedidthis Why?
 
5:16 PM
omg ... worked too much I'm so slow ...
Didn't get the joke. :P
 
@mikedidthis huh? use case
 
@OctavianDamiean have a look at where the reply goes to ;)
but yeah, wasn't really funny after all
 
@NJason 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.
 
@mikedidthis are you trying to do like [url="foo.html"] ??
 
@GNi33 I was about to tell you to press Ctrl + Q. :D
 
5:17 PM
Really dumb use case. I am using SVG's dynamically added to a page. The only access I have to anything writeable is a css and js file.
@rlemon So I am using JS to find a class, match to a 'file' and the last part is getting the file URL
 
Raj
hi
 
@Zirak Is there any way to tell the bot to greet a user although it didn't?
 
@BenjaminGruenbaum camography.org
^with your code
 
5:20 PM
In FF I can get the SVG fine, as content works on any css selector, but not in chroem
 
@BillyMathews I'm glad I helped
 
@BenjaminGruenbaum ...
It's not working :'( :'( :'(
why is maxwidth/width relevant?
 
Works in my fiddleâ„¢
 
> var svgURL = tempDiv.css('content').slice(1, -1);
^ this doesn't work in Chrome you are saying?
 
No it doesnt :/
 
5:23 PM
@rlemon correct
 
Billy is either A) insane, or B) really shitty at explaining his requirements
 
Yeah, it does, read th code
 
Probably A) by now >.>
and that fiddle does what background-size:contain does
I need cover
 
@rlemon Isn't jsfiddle.net/xT4hx what he wants?
 
@mikedidthis tempDiv.css('content') returns the content: ''; of that elements css. I presume it's undefined in chrome
 
5:24 PM
But I think changing ratiox > ratioy to ratiox < ratioy worked
or the other way around
 
@BillyMathews then you should have said that... :/
 
@BenjaminGruenbaum I did :p
 
@MarkK 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.
 
@BillyMathews then just switch < to > jeez
 
can you give me a example of that elements css rules?
@mikedidthis ^^
 
5:24 PM
@BenjaminGruenbaum I did
 
@BillyMathews If you actually take the time to read the code you'll see that it chooses the minimal one. If you want to choose the maximal one invert the inequality -_-
 
^It was a hopeful guess that that would work
 
@rlemon .holder_mac_book_svg {
content:'http://dl.dropboxusercontent.com/u/2190797/mikedidthis-branding/site/img/mac-book.svg';
}
 
^ I didn't know changing the inequality would do that
 
@BillyMathews You would know that if you read the code
 
5:25 PM
@rlemon I presume it only work on puesdo :before / :after
 
yes
only
you can use NOT in css the data-* attribute on the html element
store it there maybe
 
@BillyMathews tada, jsfiddle.net/cjbRb do a DIFF to find out the differences between this and the prev version
 
@BenjaminGruenbaum Well thanks, you are an amazing person
 
@rlemon, I don't have access to the HTML :(
 
well as is; that will never work in all browsers.
 
5:27 PM
jsfiddle.net/h7e3y any idea why in network it says (canceled) ? bf3stats.com/api
 
and you cannot access the pseudo elements in js
:/ - you are shit outta luck
 
@rlemon I was trying to avoid hard coding all the links in the JS, bouncing off the CSS.
 
@BenjaminGruenbaum but I did read the code and I didn't know that the inequality would change the contain/cover
I still don't fully understand that
 
@rlemon true man! Thanks for the help though.
 
@mikedidthis yea, unfortunately you will have too it looks like
 
5:28 PM
@rlemon, I tried to use JSONP earlier, but fucked that up
 
But I can go home now.. Thanks again @BenjaminGruenbaum
 
@BillyMathews You should be able to figure this sort of thing yourself. I haven't worked with HTML Image objects for a few years and it took me less than a minute to figure out. You need to reconsider how you're learning JavaScript. Don't take that as an offense, take that as constructive criticizm.
 
@mikedidthis it's a lot easier to refactor others code when I can see the expected results. I suggest just writing it how you know how to make it work then come in here and we can discuss implementation alternatives.
 
@rlemon, thanks! :)
 
np, gl.
 
5:30 PM
@BenjaminGruenbaum I always take things like that as constructive criticism.
it's just common sense - you learn more that way
and It's not to do with HTML objects it's the maths..
You're obviously much better than me with maths
Or im really shit.
 
@BillyMathews I've been coding for over 15 years now, probably wrote more than 100000 lines of code over that time and read tens if not hundreds of coding books. I'm not bragging, I'm saying you shouldn't feel bad that it takes you longer to figure stuff out, if it took you this long, consider reading more coding books like Knuth's "The art of programming" and more specific books like "JavaScript: The Good Parts" it'll really help you
 
honestly, I was fucking around with it without looking on google, i'm sure there are thousands if not millions of tutorials on google on how to scale images while maintaining aspect ratios (it's where I got my original code working)
 
!!/karma Knuth
 
@BenjaminGruenbaum Knuth has no karma
 
Knuth++
!!/karma Turing
 
5:32 PM
@BenjaminGruenbaum Turing has no karma
 
Turing++
 
@rlemon Yeah I can maintain aspect ratio, it was the combination of needed to be larger than a certain amount but still as small as possible
 
yea just the question alone makes very little sense.
 
in fact aspect ratio didnt even have much to do with it because at first I was planning on only modifying width and leaving height as auto
 
I think your biggest problem (we've all been there) is articulating your actual needs and problems.
 
5:33 PM
I knew in my head what I needed :p
 
but we are not in your head
 
Anyway, I'm off to a company dinner, we're eating out at 2eat.co.il/eng/hatarnegol-hakachol . I'll be back later
 
or are we?
 
Who doesn't love legal speed? MMM Pseudoephedrine
 
Communication in a team is as an important skill as actual coding when programming :)
 
5:34 PM
@BenjaminGruenbaum Enjoy, and thanks again
@rlemon if you're not, you should be
 
is that a rooster standing on a cow?
o_O
Steak and Eggs?
 
@BenjaminGruenbaum Someone put their cock on a cow
 
or in your country do roosters ride cows?
 
Guys im off, thanks again @rlemon
and everyone else who helped me through that bollocks, @mikedidthis @BenjaminGruenbaum
 
inter-species transportation agreements?
I wanna see a squirrel riding a pot bellied pig!
 
5:36 PM
 
@rlemon :)
I don't know why the background image is missing though.
Would look way better.
Oh wait, it does.
wat!?
 
:)
 
I should get a Heroku subscription just for their awesome web design.
 
m59
doing a rewrite rule, I need the rewritten part in a form like this:
Definitely add this first part AND optionally add this second part IF there's anything in this captured part
testOPTIONAL$1 the word OPTIONAL should only appear if $1 captured something
 
@SomeKittens I think I fixed that bug
 
5:43 PM
@rlemon Yay, new link?
 
quick solution was to just make the explosions happen from their own emitter, hence the check will not check against those particles.
nvm, just made it worse.
dammit rlemon! test shit before you upload it!
aha!
forgot to update the new emitter in the animation loop
oops
 
!!>b=(function a(t,i){return i?a(t.replace([/A/g,/B/g][i%2],['A-B-A','B+A+B'][i%2]),--i):a})('A',6)
 
@Shmiddty "function a(t,i)i?a(t.replace([/A/g,/B/g][i%2],['A-B-A','B+A+B'][i%2]),--i):a"
 
zzz
 
@Shmiddty "function a(t,i){return i?a(t.replace([/A/g,/B/g][i%2],['A-B-A','B+A+B'][i%2]),--i):a}"
 
5:47 PM
o.O
 
@Loktar you are right, the more and more I look at the code I'm writing the more and more I am starting to plan out an almost-framework :/
 
oh duh
!!>b=(function a(t,i)i?a(t.replace([/A/g,/B/g][i%2],['B-A-B','A+B+A'][i%2]),--i):t)('A',6)
 
@Shmiddty "A-B+A+B-A-B+A+B+A-B+A+B-A+B+A+B-A-B+A+B-A-B+A+B+A-B+A+B-A+B+A+B+A-B+A+B-A-B+A+B+A-B+A+B-A+B+A+B-A-B+A+B-A+B+A+B+A-B+A+B-A+B+A+B-A-B+A+B-A-B+A+B+A-B+A+B-A+B+A+B-A-B+A+B-A"
 
great..
@Shmiddty I blame you for putting Dancing Queen in my head
 
@Shmiddty "A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A-A+B+A-A-A+B+A-A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A+A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A+A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A-A+B+A-A-A+B+A-A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A-A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A-A+B+A-A-A+B+A-A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A-A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A-A+B+A-A-A+B+A-A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A+A+B+A-A-A+B+A+A+B+A+A+B+A-A-A+B+A+A+B (snip)
 
5:50 PM
Dancing Queen?
 
The list can be comma separated, or a JSON Array or a URI encoded array How might I do the 'JSON Array'? I tried: players = '{{"name":"test"},{"name":"this"}}';
 
@XCritics that's not valid anything
 
players: [{name: 'test'}, {name: 'test'}],
 
@XCritics that would be an array
 
Would it be a, JSON Array
 
5:54 PM
gonna go eat lunch now
xoxo
 
@Shmiddty ABBA
!!/google ABBA Dancing Queen
 
@Zirak can we have a !!/youtube and have it onebox videos?
 
@rlemon How are you going to make sure it selects the right video?
 
5:58 PM
[redacted]
 
you won't
it will select the top result
 
Ah I see.
 

« first day (922 days earlier)      last day (4025 days later) »