« first day (602 days earlier)      last day (3186 days later) » 

12:35 AM
@Loktar bummer
 
TIL there were meta.SE chatrooms separate from the rest
 
@rlemon sign up to what?
ahahhahaha
 
12 days
Dec 17 at 21:53, by rlemon
rlemon's 12 days! new prizes every day so remember to check back!
 
@rlemon looks a scam site
2
:D
 
12:46 AM
no man, I give you guys all shit and then I get.. umm .. wait.. that fucking salesman.. he said.. dammit!
 
lol
how many subscribers you have so far?
my nephew is a robocraft fan too now anyway
i ruined him
forever.
 
I want to win this one tonight
 
for today, 15
each day you have to subscribe
you should sign up! free game :P
@TylerH good luck
 
what were the previous prizes?
 
12:57 AM
@rlemon thanks
@Mario yeah he needs a way to see the prizes without signing up (he sorta has that now) and a way of seeing what past prizes were
@rlemon definitely keep the site code around for next year and then you only need to do adjustments/tweaks
 
@rlemon you should have used php
^ drives him insane
:D
 
@Mario you're right. and mysql_* for db
 
lol
 
and CakePHP
 
no mysql
 
12:59 AM
ohhh the amount of CakePHP I will use
 
you should have it linked to an Access Database
 
1:28 AM
@rlemon mysql_ was a great extension! but like everything at some point it became old
 
in php what's the best way to store a session for a long time?
doesn't have to be secure
 
database?
 
maybe I should explain my situation
 
yes :D
 
thank god for :nth-last-child
seriously
what foresight
 
1:41 AM
true
 
a small website that has images/names of lots of different fabrics. Resellers will also be able to log in (most likely just using a password and no need for individual usernames) and it will show the price next to the the name
 
it's rare for css
they usually propose the minimum functionality
 
@Mario it is allowing me to avoid using JS to select an element 11th from the bottom of a long ass table with a dynamic # of tr elements.
 
@TylerH yea it's cool :P
@joshhunt the goal is?
 
@Mario I think that's changing now
 
1:44 AM
public not being able to see the prices, resellers can see the prices
 
@ZachSaucier pffffttt they always say so
 
@ZachSaucier also congrats on yesterdays win
 
thanks! :D
 
what did you win? :D
 
^
 
1:46 AM
gift card I think
 
amazon gift card
 
yay! free moneyz!
 
$40 USD
 
:O
very nice
 
wait
$35
my bad
 
1:48 AM
@TylerH I entered today's draw for you ♥
 
reading two lines at once ;) haha
 
@ZachSaucier <3
 
fucking windows terminal
 
@rlemon I hope you lubed up
 
use an alternative?
 
1:48 AM
@ZachSaucier not windows ;)
however I was gaming so i'm on my gaming pc
 
@joshhunt so why did you ask for long time sessions?
@joshhunt @rlemon ->
 
I will give you a hint for tomorrows prize
 
@Mario Well preferably resellers should only need to login once and then they will stay logged in for a month or so
 
Pfft
 
1:50 AM
@Mario Lol
 
You guys should always set the session to infinite
put the onus of security on the individual
 
I would love to buy things (real things) but shipping turns it into a daunting task
 
@joshhunt ok so search for "remember me" php login
 
so digital prizes are pretty much all I can do
 
I would say use the Silk Road to hire a courier for cheap but that's gone now...
 
1:51 AM
you basically send a cookie containing the token of the login
and store in the db
token | userid | expires
then do SELECT * FROM sessions WHERE token = :token and expires > NOW()
if you get a line the user is logged
 
expires sooner than now?
 
@TylerH thanks
 
cool thanks, given me a starting point which is what I needed
 
the token could be a simple sha1(uniqid()) or something
 
don't need user ids so it can just be a random token?
 
1:54 AM
and you need to use only the setcookie func
 
and everyone can have the same one?
 
no clearly must be a different token for each session
users must not be able to guess it
 
use node.js and I can help!
I swears it
 
@Mario how come? As i said security doesn't matter
as long as a "normal" person can't do anything
 
Mario helped someone write an unsecure application once before
Then someone kidnapped his princess and imprisoned her in a castle
He doesn't do unsecure anymore
 
1:57 AM
:D
seriously the only difference is that the general public can't see the prices, nothing else
 
@joshhunt 1- you are learning something new 2- maybe in future it will be asked you to change the login architecture and you will have the job ready
 
true, but I also want to get it done before Christmas :D
 
lol
so do you want a password unique for all resellers?
 
I'm doing for my Uncle so nothing serious
nah they can all use the same password
 
so just use
$reseller = false;
if((isset($_POST['loginFormPassword']) && $_POST['loginFormPassword'] == "yoursecurepassword" ) || $_COOKIE['loggedReseller'] == "valid"){
    setcookie("loggedReseller", "valid", 3600*24*30);
    // if a login form was submitted or the cookie was present already, renew the session (now + 30dd)
    $reseller = true;
}


<? if($reseller){?> $400.31 <? } ?>
 
2:04 AM
@joshhunt is your uncle named Sam by any chance?
:-P
 
i don't know what i wrote lol
wait
 
@TylerH Damn it! you got me now!
 
@Mario lol drunk Mario just writing random code and giving to people
 
@Mario Thanks so much! I appreciate the effort you have gone to to help me out
 
2:06 AM
yw
i hate laptops
need to get a 19'' laptop with a proper keyboard
 
My wife said she will send you biscuits (cookies) as a thank you but I don't think they would taste very nice by the time they get to you
 
to me? lol
 
But if you do ever visit NZ feel free to stop in, same goes to anyone in here
 
also you are married?
at 22?
 
yup :D
 
2:08 AM
thefuck
 
I got married when I was 20, 2 years in Feb
 
is there a document.getElementbyContent or something in JavaScript?
 
you mean check the text inside the element?
 
I want to select an element based on its content
eg there's one element that has text "apples" and I want to select it but I don't know where in the list of elements it will appear
 
@joshhunt did you get married by accident? like you were drunk? that's the only "getting married at 20" i can understand
:D
@TylerH DOM, not js, and no, there isn't
 
2:14 AM
@Mario damnit
 
do you want to select the outermost or the innermost <b><span>this</span></b>
you want to return the b or the span here?
@TylerH it's pretty easy to implement yourself tho
 
@Mario I have like 50 tablerow elements (more or less depending on user's permission levels) but I want to select the one that will always be 11th from the end and apply an ID to it
I figured I could do it based on its content because its content is not changing and I thought I recalled seeing code for that somewhere
 
it looks counting the 11th from the end is easier than checking its content
 
@Mario Nah I just knew I wanted a stable relationship
 
@Mario kk
@joshhunt so you said "you, I like you. Put this ring on!"
 
2:19 AM
Pretty much :D
 
@Mario something like this stackoverflow.com/questions/2338439/… but not in jQuery
 
@TylerH ok, afk 2min then i will write it :P
 
\o/
will send you some pizza
 
2:33 AM
var table = document.getElementById("mytable");
for(var x = 0; x < table.rows.length; x++)
{
    if(x == table.rows.length - 11)
		table.rows[x].classList.add("the11thFromEnd")
	else
		table.rows[x].classList.remove("the11thFromEnd")
}
lol
ok sorry, i'm drunk
 
@Mario the best way to be
 
that should be fine
mixed tabs and spaces too, sorry that's not a computer for dev :P
 
lol
thanks @Mario
 
yw
 
@BoltClock lol, I didn't expect your name in particular to show up in this search. Good SEO XD
 
3:00 AM
@Mario Harold for president 2015
 
?
 
@Mario bumped you up to 300 rep
with just two upvotes, thanks to association bonus hehe
 
@TylerH but but weren't we talking of a free pizza? :D
 
@Mario it has to bake first
sheesh
impatient kids these days
 
@StephanMuller made me think i still have to watch harold and kumar 2
 
3:07 AM
Which was that again, Guantanamo Bay?
not really that great, but not bad either
3D Christmas sucked, but then I quite dislike NPH
 
ah there's a third too
cool
@Mr.Alien my mother is driving me insane, i think i'll get an hotel room lol
 
3:29 AM
@Mario got it to work for ID jsfiddle.net/TylerH/z492h5w3/1
 
@ZachSaucier Screenshot? Not seeing it here :P
 
@TylerH dammit you jquery noobs! :D
 
@ZachSaucier :O
 
3:33 AM
jQuery?
 
also, I'm in second in the Lifehacks pro tem moderator election :D
 
@ZachSaucier better go vote for the other guy! :-P
 
@ZachSaucier whore!
 
lol, I knew you guys would support me <3
 
@TylerH don't you know jquery?
 
3:34 AM
@Mario @Mario why the else line
 
@Mario I'm far away from top rep
 
@Mario no
 
@TylerH drunk mario
 
@TylerH because if i understood correctly you need to run that several times
 
@Mario no just once when the page loads
 
3:35 AM
and that prevents from having two elements with the same id (which is wrong)
okkk so you can get rid of the else :P
 
\o/
in my defense, I was close to that when messing around
 
i bet you were, dom is easy
 
but I had id.("target") because I was am an idiot
 
:P
 
so that is faster than setAttribute I am betting
 
3:37 AM
was that you working on a forum with a green theme
it's not necessarily faster, it's the same, but shorter to write :P
when you want to know the api of a certain html element, just google this way: HTML(tag-name-ish)Element
for example,
!!mdn HTMLSelectElement
 
!!mdn HTMLAnchorElement
 
or way easier, check the interface in developer tools
inspect an element > Properties tab > list of dom interfaces implemented
 
@Mario I don't recall that. This has to do with a forum though
 
3:43 AM
you wanted to remove all the surrounding html code to the main forum table
 
I don't think that was me
I needed to select an anchor to display in an iframe
 
4:00 AM
hi everyone
please help me with this
 
hi
 
3
Q: MouseOver CSS3D effect with javascript

DramorianI am trying to achieve mouseOver effect used here BigHero6. I am able to generate css3d matrix required for each and every tile according to their position. Here is what i have achieved so far with slow mouse movement, but if I am moving fast from one tile to another tile its notupdating prop...

problem is that, when I move mouse over one tiles other tiles updating late because of which there is gap. I want to update the tile so that they all animates synchronously
Can anyone help me with mouseover effect question please??
 
4:20 AM
@Mario Hmm it isn't working
probably me failing at combining JS and PHP
oh yeah I'm an idiot
did <script language="javascript">
 
@TylerH i'm surprised that doesn't work actually
i'd have expected browsers to ignore the language attribute
 
should be <script type="text/javascript"> I'm assuming
 
iirc in html5 it's just <script>
since js is the only language possible now
 
well I'm in a .php file atm
I'm dropping it after the last ?> to make sure the page is loaded
 
window.addEventListener("DOMContentLoaded", function(){ .... });
 
4:35 AM
Why is web development a battle with the browser
 
@MoonOwlPrince because computers can't think
 
coz god hates us
 
And programming languages don't have the same depth as English
@Mario still not working. Wahhhhh
 
I am thinking along the lines of CSS
Programming languages are fine and simpler
 
@MoonOwlPrince if you think it's a battle now, you have no idea how it was when msie6 and 7 were popular
 
4:38 AM
@MoonOwlPrince that's probably just a case of forgetting something then
 
@TylerH can you share the link?
 
ahah, it was you
 
the js is at the bottom of that index.php file
 
i remember the forum :P
 
4:39 AM
@Mario I have to support IE all the way down to IE6 and Safari at the same time
 
@Mario was it? my memory must suck X-P
@MoonOwlPrince IE6? ouch
I have to support IE9 and, on rare occasions, IE8
 
@MoonOwlPrince if i were you, i'd just use table layouts and html4
 
WHAT?
 
there's no shame in that
 
XHTML + CSS2 is not good enough?
 
4:40 AM
lol HTML4
 
msie6 was made when table layouts were normal
@TylerH html4 is 99% of html5 you know that :D
 
yes
the page I'm trying to edit was written with php in 2001
my life sux
 
Yeah and I have to relearn PHP as well
 
@TylerH i don't see the <script> in the pages source
 
@MoonOwlPrince IE6 does not have a lot of CSS2 support
The only CSS2 selector it supports is probably *
The rest are CSS1
 
4:43 AM
@TylerH i promise that's not that bad, phpbb right? was pretty well made for that year. you haven't saw nothing until you get to watch oscommerce / zencart or phpnuke
 
hi
 
@Mario yeah I don't really have anything to compare it to
@Mario can you see a date on the page source?
 
OK, :hover and :focus too
 
is here anyone who have experience with phonegap?
 
4:44 AM
@TylerH hm? line?
 
I mean like
the file's date
 
@BoltClock i don't remember... how about :first-child?
 
@Mario no
 
Things look shitty
I doubt if the IE team gave a middle finger about this
 
Only *, :hover and :focus
And CSS1 selectors
 
4:45 AM
@TylerH uhhhh?
 
ie page info
 
last-modified you mean?
 
yeah
okay, this is where shit gets annoying. The page source looks nothing like the code from the page I edited.
 
Date:Tue, 23 Dec 2014 04:46:14 GMT
 
Interpreted languages can go die in a fire
 
4:47 AM
cache?
 
@TylerH which programming language did you use for your templating
 
@TylerH don't blame the language
 
Blame the tool when it gets in the way of reason
Blame the mechanic when he gets in the way of his own work
Clearly the tool is getting in the way
 
aha
I will try the func.php file instead
 
@TylerH I like: jsfiddle.net/9oLrg37w/9 but how do I set the "width: 100%" instead of "width: 500px"
 
4:50 AM
How were people streaming video prior to the existence of Macromedia Flash on web pages that is
 
javascript :D
 
Using JavaScript?
How so
 
@13375 just change 500px; to 100%; ?
I don't understand your question
 
@MoonOwlPrince try following something like: youtube.com/watch?v=hsSXzdn_0Gg
@tylerh
it's in pixels, but i wnt it to be as wide as td
 
@13375 IE6 does not support HTML5
 
4:53 AM
you could hand code slider with javascript
 
@13375 yes I'm aware that's what you want, why can't you just change 500px to 100%?
 
I am talking about getting the video to play in the browser since the video tag is not supported
 
@MoonOwlPrince the guy is building a video player with javascript for an example of how to use rnge sliders
 
user3949359
Why am I getting an error on this LESS line : @font = "'Open Sans', sans-serif;" ?
 
user3949359
should I append on it?
 
4:56 AM
@13375 oh thanks. I apologise for my ignorance
 
you forgot the '
 
damn, still didn't work with func.php
 
go to the last of that series, and you'll see
@tylerh what are you trying to do?
@TylerH I don't know why the % is switching to pixels
 
Trying to add an ID to a tr that is 11 trs from the end of a list
@13375 I don't know what you're talking about. jsfiddle.net/TylerH/9oLrg37w/11
 
maybe it''s in my TD
 

« first day (602 days earlier)      last day (3186 days later) »