« first day (1009 days earlier)      last day (3946 days later) » 

8:00 PM
I need help with xampp htaccess
 
user1125394
s/xampp/apache
 
@cx Yes, I need help with that. It either is not recognizing my htaccess file and the mod_rewrite in it or the htaccess file is completely corrupt.
@cx what?
 
@CharlesTWall3 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.
 
user1125394
!!mustache CharlesTWall3
 
user1125394
8:15 PM
ouah the new heavy one
 
.
!!mustache AshKetchum
 
user1125394
!!Is u there?
 
@cx That didn't make much sense. Maybe you meant: z, /, !, .
@cx That didn't make much sense. Maybe you meant: z
 
@CapricaSix unban me
 
@cx Nope
 
user1125394
8:20 PM
!!Do you like @AshKetchum?
 
@cx All signs point to no
 
@cx Get him to unban me, pleeeeeeeeassseeeeee
 
user1125394
she said no
 
I promise I won't annoy him.
I was put on mind jail because I asked a question more than once and the guy got annoyed so he made the Caprica ban me.
Please get me out of mind-jail.
 
user1125394
!!Do you accept less than 18 years old?
 
8:23 PM
@cx Indubitably
 
@cx Except I am not less than 18.
 
user1125394
wow the new gmap!
 
user1125394
the only issue is the satellite views of my place are 2 years old
 
how's that an issue
 
You know, this sounds really interesting.
 
8:34 PM
Seriously, though. If anyone can help me with xampp mod_rewrite, please help me. I have been stuck on this issue for quite some time and can't get it to work.
 
Doesn't xampp use Apache?
 
-1
Q: jQuery scrolltop firefox not working

dfdfThis script: document.getElementById("bg").style.backgroundPosition=" -"+scrolltop +"px center"; Doesn't work on the latest Firefox version! What am I doing wrong? :) Thanks for the help!

 
@OctavianDamiean Yes, which is the reason I am confused. My live server uses Apache too, except the htaccess flawlessly works with it but it doesn't work with XAMPP (which also has Apache).
 
user1125394
did you enable the extensions? in httpd.conf
 
Yea I'm not too much into xampp and stuff like that, I'm not even all too much into Apache, I'm a nginx user so I can't really help.
 
8:39 PM
@cx Yes.
 
user1125394
sry not a fan of htaccesses also, always did put rules directly in the .conf
 
@cx Someone else told me that to, except I have never heard of that technique hence I don't know how that even works.
 
user1125394
RewriteEngine On
RewriteRule ^/?(static) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
 
@cx Directly into the httpd.conf file?
 
user1125394
yes near documentroot
 
8:47 PM
@cx In this case.. why are you using apache in the first place and not something more lightweight like nginx?
I think the only big advantage of apache is .htaccess files if you have users without access to the main server config
 
Kerball Space Program is on again for 60% off
I suggest everyone gets it
 
It's a nice game but I really wouldn't buy that one blind without having played the demo before
 
@ThiefMaster Yea or python -m SimpleHTTPServer 80
 
haha
 
That's my favorite quick testing webserver. :)
 
8:53 PM
Meh, just go with netcat.
 
btw, shibboleth is the worst SSO system ever in terms of using it. it REQUIRES apache because it's implemented as an apache module and additionally it requires a separate daemon which uses xml files for configuration
 
user1125394
@ThiefMaster totally right, I tested nginx too since, anyway in my work they just want apache.. but also using this server github.com/extend/cowboy/blob/master/examples/websocket/src/… with cool routing rules ninenines.eu/docs/en/cowboy/HEAD/guide/routing
 
ugh
well, at least it's not PHP
 
user1125394
could use nodejs too, but well for now it's good (wanted to learn a functional language at that time)
 
@ThiefMaster 60% off
and i'm telling you too
so it's not blind
you have a lemon telling you to buy it, what could go wrong?!
 
9:03 PM
yeah, what could possibly go wrong ;)
 
Yes! Found an working open network
hi, all!
 
anyway, I hope Trine ends up in one of the last community votes or flash sales
the demo was pretty nice
 
in a way i'm glad the sale is almost over
 
@rlemon I'm only getting 40%
 
i've spent way more than I said I would
@SomeKittens so you are right
my bad everyone!
 
9:07 PM
@cx I added htaccess code directly into the httpd.conf file and now "localhost" keeps redirecting to "www.localhost/Test" where "Test" is the name of the root directory and the name of my project.
 
I think FTL for $2.49 was the best deal I got.
 
* Sigh
 
The Walking Dead has been my most played so far
then FTL and left4dead 2
 
@SomeKittens You know, I'm a Resident Evil and Left 2 Dead fan but FTL scares the living shit out of me.
 
9:08 PM
!!/google FTL
 
@OctavianDamiean ...how?
 
user1125394
@AshKetchum at least your apache works.. but try making .htaccess works that's the right way, can't help you with that
 
FTL is a pain in the ass
never beat the flagship once
 
Permadeath is the reason why I haven't bought it yet...
 
9:09 PM
made it to him a dozen or so times
 
Playing for hours and then losing everything? No thanks
I like games to be challenging... but not in that way
 
to get to the flagship only takes a couple hours
 
@SomeKittens I have no idea why and how but it scares me.
 
@rlemon You're doing it wrong, beat it the second time I hit sector 8.
 
@SomeKittens clearly.
I try for balanced builds. I think I need to look up some strategies
 
9:11 PM
You need strategic builds. The time I won, I went drones/ion. I could slowly wear away their defenses while keeping my shields up.
 
@cx Yeah, but that doesn't matter. It worked before too. It was the htaccess that wasn't working. I took your suggestion and put htaccess inside httpd.conf file. It started executing, except the code was messed up and I had to fix it, so I removed it, but the htaccess effect is still going on. The url is still being rewritten.
 
I tried that on one build but a fire took out my weapons and then I was fucked.
I'll try it again
 
My big weakness was boarding parties until I got a fighting drone
Ooh, fire can be a problem.
 
Fires always seem to kill me. If it is near a door I'm OK. Just vac the area.
 
Honestly, my favorite runs are when I survive by the skin of my teeth and recover (though usually die a sector or two later).
 
9:15 PM
Yes, I generally play 'guts or glory' type styles so I either die in 2 sectors. Or make it to the end.
 
The best build I had was lost when my oxygen got hacked and couldn't get it back online fast enough.
 
I want to be jakked going into sector 3 or its pointless
by sector three I try to have 6 crew at least and enough shit to sell for scrap to get me some descent upgrades
damn, now I wanna play it
 
Does V8 factor out empty statements? Will if (/* statement */); be executed?
 
user1125394
!!> if (/* statement */) 2;
 
@cx "SyntaxError: syntax error"
@RoryCombe 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.
 
9:30 PM
@rlemon Yeah, fire often gets me too
@SomeKittens I think only @Darkyen's tried to read through the entire source, so he may know
 
!!youtube Nero Me And You
 
posted on July 21, 2013 by Victor Rodriguez

Weird Gravity Waves Pulse From a Tropical Cyclone Hunting for Alien Megastructures What’s the Best Design for a Flying Mars Robot?

 
 
9:47 PM
Hahaha
 
@SomeKittens download v8, build it, run 2 test programs and see the assembly. Took me 5 minutes last time I did this.
 
@HuseinHusibegović 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.
 
Nice
Doesn't seem too useful
Could easily just do all of that myself with code
To keep track, I just need to Ctrl+F it
Aww, it's the last day of the Steam summer sale!
I guess being Indian does help sometimes!
(That's less than $20)
Shit. Out of stock.
 
m59
@BenjaminGruenbaum do you know of a way to get a single controller to control multiple elements with their own scope?

i.e.
<div ng-controller="foo">{{options.bar}}</div> //different value than below
<div ng-controller="foo">{{options.bar}}</div> //different value than above

I was thinking I could manually create a scope and give it an options object with the correct values..
 
game4u.com/… has a digital version available for less than $20
 
10:18 PM
!!learn dafuq "<> i.imgur.com/hXAqgSE.jpg";
 
@Gacnt Command dafuq learned
 
!!dafuq
 
I have this object:
var monitores = [
{ nombre:"", apellido:""}
];
How to add to it more pairs?
 
monitores[0].whatever 'whatveve3r
 
10:20 PM
I'm doing this, but it don't work the second time because the index don't exists
for (var i = 0; i < data.length; i++) {
monitores[i].nombre = data[i].nombre;
monitores[i].apellido = data[i].apellido;
};
data is the result of a PHP json_decode()
 
monitores.push(data[i]);
wat? Don't you mean json_encode()?
 
Yes, encode ;)
 
What are you trying to do?
 
@montogeek Maybe you need JSON.parse( data );
 
@Zirak Yeah? Man, I just have more and more recommendations piling up. I just started watching GoT, so everything else has gone into the will-watch-later list.
 
10:29 PM
@Connor I need to populate monitores, but only with nombre and apellidos
 
Sooo... that's not a question...
 
The question is, how to populate it?
I get that error Uncaught TypeError: Cannot set property 'nombre' of undefined
 
var monitores = data;
 
How to clear the value of a variable? Just foo = null?
 
Ohh.... you want this?
var monitores = [
   { nombre:"", apellido:""}
];
monitores.push({nombre: "", apellido: ""});
 
10:37 PM
@Connor yes
 
@montogeek well... did it work
@montogeek yes
 
@Connor Yes, it worked
Thanks
 
cool, and foo = null; should work
 
Don't work
Wait
 
@m59 Did you read the Angular tutorial, or watch the videos at egghead.io ? This is pretty basic stuff :)
 
10:45 PM
-1
Q: scrolltop() doesn't work in IE9 at all

dfdfhttp://jsfiddle.net/QF47A/7/ function onscroll(){ document.getElementById("fly").style.top=""+ $(document).scrollTop() * 5 +"px"; } Check that out... sigh Not working one bit in IE9... Haven't tested in IE10 yet. But yes, it works in Chrome, Firefox, and almost every browser under the sun ...

 
m59
@BenjaminGruenbaum tons...talking about John Lindquist? Are you sure you got my question?? I can't find anything about it anywhere, and I've been searching for a few hours now.
 
@dfdf again..
 
oh hello @Connor :3 so we meet again!
btw thanks for your help on my previous q :)
It was so helpful, gave you a bounty
 
@m59 Pretty sure.. You just want to use the same controller twice in an app?
 
but I'm having compatibility problems @Connor
 
m59
10:47 PM
with a different scope that I can give a property to in advance yeah...
 
Yeah, that seems pretty simple :) Maybe you should create a fiddle illustrating what you tried and didn't work?
 
m59
  var newScope = scope.$new(true);
  newScope.options = params.options;
  $compile($plugin)(newScope);
@BenjaminGruenbaum
 
@m59 Whenever Angular detects an ng-controller directive a new scope is created, your above example (with the two ng-controller directives) creates two scopes by design.
 
m59
$plugin contains that div
with ng-controller
Where is the scope that is created??
I don't get how to access it from outside of the controller, I guess.
 
@m59 I don't understand waht you're trying to do... whenever Angular detects an ng-controller a new scope is created for that controller. They're using different scopes by design.. if you want them to share the same variables you need a service for example.
Show me a fiddle.
 
m59
10:52 PM
I'll strip it down then. What I have right now is really complicated. It's a directive that has a TON to take care of.
 
if (1 == 1) return true else return false
this code is wrong, by syntax
what is the correct one ?
if (1 ==1) return true is correct
 
@m59 "directive that has a ton to take care of" sounds really bad.
 
but when I add else, suddenly no one likes it.
 
@purplecircles return 1==1;
Well, more likely return 1===1;
 
m59
@BenjaminGruenbaum it loads plugins
 
10:53 PM
yeah, I know that
just putting it as exaple
example*
 
m59
which basically means it builds the webpage
 
@purplecircles What are you trying to accomplish?
 
one line if code
if (1 == 1) return true else return false
if 1=1 is correct, then return true, else false.
I keep mixing my equals but you get the idea
 
It's a boolean statement, why would you wrap it in an if?
 
its not
 
10:55 PM
Just return 1==1
 
1==1 is not the point here
 
You're always returning the value it's evaluating to anyway.
The 1==1 is not the point, it's the fact you're always returning true if it is true and false if it is false. 1==1 is an expression that evaluates to true or false anyway.
 
yeah, thats correct. but its basically a part of a loop of a function
 
I don't understand what you're trying to do at all...
 
its not important
im just trying to do if (1 == 1) return true else return false this
 
10:57 PM
Just return true;, no?
 
yeah but if its false, id like to return false ?
 
When would it ever be false?
 
@purplecircles (1==1)?true:false that's pretty stupid though, if I ever see that in a code review I'd flunk you.
 
1 always equals 1
Or do you mean if(somestr == another) return true; else return false;?
 
yeah.
 
10:59 PM
If so, just use return somestr == another;
 
benjamin alredy answered i think
 
It will automatically evaluate to true or false
even better, use return somestr === another;
 
the problem with using that its the fact my if is in a loop
so basically, if I do what you say, return will never get used
 
What do you mean in a loop?
What? That's not making much sense..
 
Give us a JSFiddle
 
11:00 PM
i will
 
aaaaand, 12:00... SVN server goes down for backup... time to procrastinate for half an hour :p
 
I hate SVN, it fails so much at merging :( I wish we had git at work
 
Merging's for girls, real men request lock :p
 
evening
 
how do!
so, am I still in the mindjail?
!!mdn alert
 
11:08 PM
@DannyBeckett You iz in mindjail
 
Damnnn :( lol
How do I get out?
@CapricaSix I repent my sins against Dreamweaver!
 
theres is no escape from it
 
just wanted to let you know: im dumb, you guys are correct, there is better ways.
 
telling us what we already know ;)
 
11:11 PM
come on, dont be like that :)
 
you not seen the JS room title?
top right
 
I love how it used to say top left
 
you saw nuttin!!!
 
btw, I cant seem to find good documentation on JS. for example, id like to know what can I put after node.style, where can I look ? background-color is backgroundColor in js and so on so its not always obvious
 
From CSS to JS, you just remove the - and use lowerCamelCase
 
11:16 PM
yeah but there will be more questios like this, arent there some documentation on it ?
 
@BenjaminGruenbaum 895174 (?) 1355043 (?) 1079641 (Ash Ketchum) 1858108 (?) 1563422 (Danny Beckett) 1907358 (Connor)
 
damn you danny!
 
11:17 PM
You're better off just searching Google for mdn alert e.g. though
 
@purplecircles if you had googled " javascript documentation" the first link would send you to MDN
 
\o/
 
it doesnt answer it
it just sends me to page of css properties, not their js variants
 
That's because you haven't read it.
 
11:19 PM
oh well, I did. the only thing I get is I can give an element style and get its form
but no list
 
@purplecircles I told you the answer to that already
 
are you using jquery
 
I know, lower the case remove the "-"
no Im merely a dumb person trying to learn js
 
cos u might have better luck reading their documentation
tbh you're smart if your learning js rather than going to jquery first
 
Not lowercase, lowerCamelCase, e.g. background-color -> backgroundColor
Anyway..
 
11:21 PM
show us how you typed it @purplecircles
 
typed what ?
well if you want to know, yes, I did try .style.margin-top at some point.
 
marginTop
 
you did answer it 3 times alredy
 
yeh there is no dashes in any of the .style attributes
to my knowledge
 
11:23 PM
night everyone
 
night night
 
btw am I the only one thinks absolute should be relative and vice versa, I mean is there something wrong with me how can it be absolute if its relative to its parent
nite
 
absolute is fine in a relative parent
 
its not just fine, its what is supposed to be used
 
11:24 PM
but then it is relative, isnt it ?
 
its relative to the parent
if the parent is relative
 
its relative to its parent, then why its called absolute
 
because its position in the parent is absolutely defined
but it is based on the parent not the entire page
if you dont it wont take it into account and it ends up independant from everything
 
I know how they work
 
then you should know that its useful
 
11:25 PM
im not questioning that
its just relative one is called absolute
 
no ?
relative is relative
absolute is not relative
 
oh well absolute is relative to its parent
 
yes
if parent is relative lol
 
then why is it not relative but absolute
no point in arguing, i think
lets stop
 
HAMMERTIME!
 
11:26 PM
because its position in the parent is an absolute position
 
which means its not absolute at all
 
can some one explain better than i xD maybe im not good at explaining
course iti s
 
@purplecircles Because it's taken out of the flow of the document. It's position is fixed relative its parent.
 
aka you set its x:y to a fixed number which never changes
using parent as relative.... means 0:0 is top left of the parent instead of the top left of the entire document
 
makes a bitmore sense now
 
11:28 PM
Interesting video... big datacenter: neowin.net/news/…
A lot tidier cables than I've seen in other dc's :p
 
ive always wanted to explore a google data center its a life long dream >.>
 
@Dave Ask Jon for a tour :p
 
I feel like streetview isnt enough
I feel like I should be able to open that box
not every box
but the one says danger
 
i just went every where on it already
 
fucking rickroll
the dude sitting with beanie hat
watches rick roll on his desktop and laptop
 
11:36 PM
mysql, LIMIT 0, 4 will return 4 results yah? or 3?
 
oh dear
 
lol, j/k... 4
 
ah thanks :)
 
0, 1, 2, 3
 
11:38 PM
hi
 
m59
@BenjaminGruenbaum sigh. I have it just about good to show you what I mean, and I can't get angular to bootstrap. What the heck.
 
@copy where you at now?
 
Still Miami, going for Orlando tomorrow
 
nice
have you met with BadgerGirl yet?
 
Yeah
 
11:42 PM
good stuff, have fun you two!
 
Thanks bro
 
I can't imagine what it would be like to be in your situation (long distance relationship with such a gap apart) - I really do hope you two have a wonderful time.
 
m59
@BenjaminGruenbaum doh, I got it
no, nm, I didn't
this sucks
@BenjaminGruenbaum go figure, I forgot the []
angular.module('site', [])
be done in a sec
 
11:57 PM
Anyone got a favourite new or upcoming feature of ECMA?
 

« first day (1009 days earlier)      last day (3946 days later) »