« first day (1280 days earlier)      last day (3668 days later) » 

5:02 PM
You're right, he wrote "Related" not dupe :)
So how is 10:1 calculated on negative scores? Does -3 become 1/3?
 
lol max($acceptedVotes, 1)
 
So sort order should be: accepted ? 10 * score : score
Or: max(score,1) * (accepted_by_someone_else ? 10 : 1) ... then, of course, there's the exception of self accepted answers ;-)
 
^^ Yeop. That works.
 
5:17 PM
eeeeeeeeeeeeeeeew they took my meta
 
ow meta.se
 
@PeeHaa They blue it.
 
e'nin peepz
 
eveninh
 
5:21 PM
Mmmmm, Peeps.
 
0
Q: [SOLVED]If logged edit content: SQL statement in PHP

user3490572I've a content page, and when I've submitted a content and the url page is for example: category.php?nameID=Categoryname&id=25 In the script I'm checking if the right user is logged in who submitted this content. If the same guy submitted this content and he goes to the submitted content page h...

LOL, Solved.
 
Also, shite answer from ~100k user.
 
That's how he got it, heh.
 
I'll be looking for something to do tonight ... anyone got any ideas I can steal for something to do ??
 
Do as in?
 
5:30 PM
something to write ...
 
No, your services are no longer required here.
 
A Datetime that doesn't suck? hehe
 
LOL
4 hours ago, by TOOTSKI
user image
Related. On a fresh 5.6 install.
 
Kurwa
 
@Charles nice 1
:)
 
5:33 PM
:O
I got a job offer ^_^
 
Yeah, I really don't like the "asshole" stance on forcing date.timezone to be set.
 
and a good one also! :D
 
@JoeWatkins I'm going to try your multi thingie, and set up latest majors going from PHP5 onwards, for the eval.al thingie.
 
good mornings
 
I think this answer is bad and dangerous not exclusively because the salt is bad, but because the unknowing may walk away from it thinking that cryptography is nothing more than bolting cryptographic primitives onto one another. — Dan Lugg 1 min ago
 
5:40 PM
@corpseRott Globally accepted term is Fuck. Kurwa can also mean an insult to a female, in fact, it's the main meaning.
 
I say: using your own "crypto" algorithm is like playing russian roulette
 
Nie wierzę że ty mi to tłumaczysz :p
 
dude, that's super foreign ...
 
nah
super foreign would be something like
No puedo creer que me lo digas, I can't believe your explaining that to me, Nie wierzę że ty mi to tłumaczysz :p
 
Yes, I am tumačim to you. I can understand what it says without translate.
 
5:43 PM
je ne peux pas croire que vous le expliquez
My french is horrible though
:p
 
indeed.
 
I say too Jack ol' sport, indeed.
 
TOOTSKI are you like polish-american?
or something like that?
 
polarican.
 
stereotypes are horrible about polish in US though,
 
5:49 PM
Polimurican.
 
Pelican?
 
No, I'm from Yugoslavia.
 
considering Poland is 13th in terms of education quality according to PISA 2012 ranking, the stereotype that polish people are stupid is harmful
 
@DanLugg LOL
 
5:52 PM
US is 36th
 
@corpseRott That's appalling. I would've figured them for 50+ plus.
 
Communism was destructive
Took us 20 years to finally become a western country once again after the soviet occupation.
 
Rankings (those kind of) don't mean much IRL.
 
Oh thats actually a really good one
PISA 2012 was the fifth survey of the OECD Programme for International Student Assessment, testing about 510 000 students around age 15 in 65 countries and economies on mathematics, science and reading. The test had a special focus on mathematics.[1]
 
Maths, pfffft, who uses that anyways.
 
5:55 PM
ummm
php programmers
:D
 
lol, no they don't.
 
I am not even actually a PHP programmer, I just spend my time here since Im writing my bachelors from Web Design and Integration
I am making an application for my university, timetable system for the faculty, going to integrate it for my finals.
 
0
Q: PHP Globally visible login

corpseRottI went through quite a few articles and couldnt find what I am looking for. I have previously tried using $GLOBALS but that doesnt work to well when querying mysql. The problem I have here is that I want a username visible on the entire page and all the php files included after a username and pa...

 
Yeah :)
 
If this is how you code, then, you are definitely not a programmer.
 
5:58 PM
I started learning PHP roughly 2 weeks ago
 
That explains it.
Everyone wrote code like that when started.
 
@corpseRott They do seem to make bad drivers though ;-)
 
You'd get bonus points if you named variables in Polish.
 
I am not a programmer though, i code alot in c++ and java
but I am actually a Sys Admin
 
ehm ... so c++ and java aren't considered ... programming languages? ;-)
 
They teach us in Uni to never using polish naming :p
 
Hi there.
 
NEVER EVER
I code alot but I dont work as a programmer
Currently employed as Tech Engineer in Fujitsu
 
Why you don't start in it?
 
6:00 PM
What about Polish notation? ;-)
 
RPN better
:D
don't you use that in Lisp?
 
yeah probably.
 
@corpseRott why don't you start a career as programmer if you do it alot...?
 
Good question :p
 
@DanLugg Answer gone lol
 
6:01 PM
Perhaps because I am way better as a Sys Admin
 
But you can be good in both if you are willing to learn it xD
 
I mean, I am a decent C++ coder, but I do way better as an Admin, hence every single job offer i get is Sys Admin
 
sys admin needs perl / python / bash skillz
 
I use bash alot
But I am more around Wintel
 
Winwhat?
 
6:02 PM
I have MCSE: Private Cloud
 
Ah, so you're a PowerShell person.
 
@Jack why the hell would one sysadmin need perl/py skills?
 
Scripting is always useful
 
@bwoebi okay fine, they could use php too :P
 
but for Wintel its mainly powershell, batch and VBA
 
6:03 PM
you can script in PHP too.
^^
 
rofl
 
but as for existing tools / scripts, not as many are written in php
 
Plus i speak quite a few languages
 
so it would still be beneficial to know them.
 
And thats a huge + in any corporation for a Sys Admin
 
6:04 PM
I only talk money.
 
not that strong of an advantage for a programmer
 
Gotta feed the kids, innit
 
well I can believe that corpseRott because you want too understand more then 1 person while programmers most likely use english as language but multiple languages is always a plus
 
I speak Polish, English, Spanish, French, Polish being my native tongue
 
Most people speak American too ;-)
 
6:07 PM
Oh yeah :p
 
Which is vital when you discuss things like aluminium heh
 
I got a really nice offer at Symantec
hope my boss is not reading this, but I guess im moving jobs
 
I speak english -> London (more likely) and german (a bit) and dutch being my native one...
 
The Dutch have a hard time shaking their accent in spoken English :)
 
Back on Erasmus
I remember that Dutch girl speaking spanish
it was so cute, but i didnt understand a word
 
6:10 PM
Well more people think I am out of england even when my IGN clearly said NL
 
offensive
 
@MikeM. You're out of England? ;-)
 
@PeeHaa lol, 4 flags
 
no -.- jeez
 
thats offensive lol!
 
6:11 PM
-knows Jack is joking with me-
 
Sorry, what is offensive about that to receive flags?
 
YOU'RE ALL HORRIBLE FLAGMUCHERS
 
@MikeM. Yeah, I guess it could be considered a Dutchism heh
 
And Debian (and related distros) are fantastic. Anyone who thinks otherwise is wrong.
 
Thats why he got flagged
 
6:12 PM
lol wut @Jack
 
1 message moved to bin — flagging didn't work, now binning
 
getting close... I can feel it :-)
 
You guys are sensitive here.
 
rofl "Getting Close"
 
1 message moved to bin
 
6:13 PM
 
Seriously who the hell is flagging?
 
@MikeM. "out of" vs "from" :)
 
That's just stupid
 
Fellas anyone familiar with graphics/screens/graphic cards/etc?
 
SomeKittens not all :D
AH DAMN IT
 
6:13 PM
@bwoebi of course it didn't work, people should get some sense of humor.
 
What would it take to watch a movie in 3d on my current computer?
 
@bwoebi ...what?
 
1 message moved to bin
 
What do I need to buy/replace?
 
6:14 PM
"lemme bin this, I don't agree with it"
 
Made dat mistake I meant FROM xD
 
Why u remove it
It was amazing!
 
lol, I have no audio in this VM so as far as I'm concerned that video was alright.
 
@bwoebi oh okay, just a bit sleepy still :P should prepare something to eat
 
6:14 PM
Slavic girls know how to move her booties!
 
every freaking time...
 
Because gone for some magic reason:
It's funny caus it's true
 
RACISM! xD
 
Rofl again
 
hahahaha
 
6:15 PM
@@timpost ping
 
in JavaScript, yesterday, by rlemon
FLAGS ARE NOT TOYS! THEY JUST PISS EVERYONE OFF WHO HAS TO SEE THEM! STOP FLAGGING USELESS SHIT PEOPLE!
 
@mods handle the idiot please
 
PeeHaa it was flagged xD
 
My xenophobia is tingling; this room is full of abnormals. I'm out.
 
@ircmaxell super ping!
 
6:16 PM
@MikeM. 10k+ users can see what gets flagged
 
@ircmaxell do double pings even work?
 
@bwoebi yes
 
Yeah it sends an SMS
 
if($Dan_Lugg == "In PHP Chat"){ $Dan_Lugg = "Leaving PHP Chat"; }
 
@ircmaxell they work, but not for us
 
6:16 PM
session_end()
}
 
@Jack lol
 
@NikiC they worked for us last time I tried
 
@@@@@@@@@@@@PeeHaa
Yes?
 
@DanLugg That launches a billboard into orbit that, if not seen in two days, crashes into the recipient's front yard.
 
lol, wait; just read @NikiC... nevermind
 
6:17 PM
@DanLugg ping, sms and mail :)
 
No carrier pigeon? No carrier pigeon ...*yet*!
 
@DanLugg we can launch one of those into orbit, too
 
Did you know that the majority of today used Computer Core's are created in Poland
:o
 
@PeeHaa how can I use phone service?
 
Did @rdlowrey go splat again? I haven't seen him in awhile.
 
6:20 PM
@DanLugg he's just off for a few days…
 
@DanLugg he was in the front yard after an orbital ping.
 
@corpseRott that's because it's cheap to produce them there
 
but not for sky diving ^^
 
lol @SomeKittensUx2666 you're on the ball ;-)
 
Not produce
design
they re produced in US
 
6:21 PM
Not in China? I'm surprised.
 
also mass production of graphene was also invented in Poland
on my University ^_^
 
I thought the designed it in the Sillecon Valey...
 
Sillycon Valley? heh
 
nah, mainly designed by Digital Code Design
its a company from Poland
 
yeye Jack that one
 
6:22 PM
Core*
also Blue-Ray was invented in Poland
 
and like 50% of other modern super computer science inventions
Daisy, the hadron accelerator is also programmed on my Uni
I so proud!
 
@corpseRott yeah, but what have you done?
 
Drank in the library.
 
I programmed tetris on my Object oriented classes!
 
6:24 PM
xD mothing :P
 
Thats against the stereotype!
which is visible in the US
~.~
 
@ircmaxell maybe they changes something ... they used to be only for mods
 
@NikiC you could superping mods only
 
huh, didn't know superping was actually a thing
 
6:28 PM
@corpseRott You are one hell of a proud Polak, aren't you?
 
yup
 
@corpseRott OK, you can stop now.
 
Anyone familiar with git please help stackoverflow.com/questions/23159417/…
 
SNR of PHP has gone down
 
6:36 PM
Oh I see, I didn't open all those links
SO's URL regex is a bit broken, the URL breaks at "*" and there's a missing '/' because of that
well if it isn't a photo of your hand, sure
seems like some kind of fungus
lol
 
10 messages moved to bin
 
idk what it is
 
Please stop.
 
@SecondRikudo thank you
 
@MikeM. and @FabrícioMatté
 
6:38 PM
okay okay -.-
 
@SecondRikudo I've only sent one gif anyway
 
You can create your own room and talk there.
 
what causes the access denied error when trying to connect to a database?
 
@FabrícioMatté Yours was the worst.
@JoshC. Denial of access.
 
@SecondRikudo thank you :D
 
6:40 PM
Josh C. Are you sure you filled in the correct info?
 
Need some help @ PHP
I am using a gpl from one guy for drag and drop functionality (around a table)
gpl lib*
 
If the problem is with the drag&drop functionality, you'd probably be better asking at the JS room
 
im having issues copying stuff into the database, the guy previously used string as table_id in the database (sic!), Can't seem to switch it to int now
Nah, its a database to php issue
drag and drop works fine
il just drop stuff into pastebin, sec
insert is the first function, not quite sure how to change it properly for it to save id as int
 
Well, if it a numeric string which it seems to be, the sql is correct
 
nope
u see the guy used the string to enumarate css files (sic!)
 
6:55 PM
 sqlQuery("insert into dmcstimetable (sub_id, tbl_row, tbl_col, tbl_author) values ($sub_id, $row, $col, '$email')");
if $sub_id wasn't a numeric string, that query should throw a syntax error
 
i changed it to now
 
oh I see
 
before it was '$sub_id'
I also changed the database to enumerate it as int
 
makes sense then, are you trying to make it auto-increment or assigning an int value yourself?
oh auto-increment then
 
auto increment
I also created 2 more columns in the db
 
6:57 PM
if it is auto-increment, you don't have to list the field nor its value in the query so
 sqlQuery("insert into dmcstimetable (tbl_row, tbl_col, tbl_author) values ($row, $col, '$email')");
 
color and desc to hold the stuff that was maintained with id before
uhm its actually a little different
you see
theres 2 tables dmcssubject which holds the subject id (auto increment)
 
and dmcstimetable which holds the actual events, this one should copy the id
 
@corpseRott I see, you should retrieve the inserted row's auto-increment field value, with mysql_insert_id (right after the query which inserts it) then use it as $sub_id in the forearch loop
 
7:06 PM
Hmpf
 
Going off for dinner have fun all!
 
I actually changed it to string in the query and it works
the funk
~.~
 
@MikeM. cya man
@corpseRott that's a bit weird, well, mysql handles string to int conversion when inserting into int field, but you shouldn't need to pass a string if it is actually an int number already
 
7:21 PM
@FabrícioMatté fyi, mysql_* api is deprecated. :)
@Jimbo morning.
 
@Leri I know, but does anyone listen when you tell them so? Of course not. So I gave up, lol
 
@FabrícioMatté Yes, they do.
 
Well, send the usual copypasta deprecation notice to @corpseRott if you have one handy
 
@corpseRott Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
@corpseRott And also that code is exposed to SQL injection. Though it should be fixed if you use prepared statements properly as Leri just mentioned
 
7:27 PM
Off to bed. night.
 
night, @Leri
 
@Leri night
 
@LeviMorrison I see you're already developing software for PHP 5.7 :D
That's ... a lot of foresight you got :)
@LeviMorrison You should now argue that there is already code in the wild depending on this feature, so not introducing it in 5.7 is a BC break. That makes sense, right?
 
7:44 PM
lol definitely
 
@Leri Your rep - 6666. A sign?!
 
Basically we added test cases to Joe's patch and then I tried using it on my project. We found some bugs, so it was well worth it.
Nothing like real code to find bugs ^^
And then I thought... meh, I'll push this ^^
 
Hello guys, I wanted to ask is it necessary to keep all files which were downloaded from composer? For example it also contains some tests which I think I don't need.
 
@Almis Basically, you should ignore vendor totally, I doubt tests are heavy in terms of disk space, but it can't hurt if you delete them.
 
@TOOTSKI I suppose you right, ok ty
 
7:49 PM
eeey guys
question
how to stylize text inside <option value="something"></option> tags
more html question but since im sitting here ;p
 
using css?
 
@corpseRott I think you can't
 
css or pure html
anything that will work will do
 
Very limited options; color, font-style, etc.
 
although, i think pure html sucks due to old standard i.e google doesnt want to index it nice.
 
7:51 PM
15
Q: how to style the option of a html "select"?

MrClanHere's my html : <select id="ddlProducts" name="ddProducts"> <option>Product1 : Electronics </option> <option>Product2 : Sports </option> </select> Now, what I want is to make the name of the product (i.e. 'Product1', 'Product2' , etc) bold, and its categories(viz. Electronics, Sports, etc) ...

 
But it doesnt matter anyhow, this site will be relatively secret, internal app
 
Don't waste time on it then.
 
that sucks
Q_Q
 
Use bootstrap and call it a day.
 
I wanted a cool looking icon in that app
client will be mad, no icon Q_Q
 
7:53 PM
icon as an option o_O?
 
Your client sounds like he needs to reprioritize.
 
@corpseRott here is a js for that: bug7a.github.io/iconselect.js
 
Here we go! 5...4...3...2...1
 
7:54 PM
2
 
Apr 11 at 13:20, by Dan Lugg
Apr 4 at 21:30, by Dan Lugg
Mar 28 at 7:31, by Dan Lugg
Mar 21 at 14:04, by Dan Lugg
Mar 14 at 13:43, by Dan Lugg
Mar 7 at 14:15, by Dan Lugg
Feb 28 at 15:17, by Dan Lugg
Feb 21 at 14:01, by Dan Lugg
Feb 14 at 3:32, by Dan Lugg
Feb 7 at 5:00, by Dan Lugg
Jan 31 at 12:54, by Dan Lugg
 
dafuq?
 
Friday rabbit hole. Go down it. I dare you.
:-P
 
@SecondRikudo fuuuuu, i had to google it
 
7:58 PM
lol @CarrieKendall Really? You don't have the YouTube ID burned into your brain yet?
 
> 513 days, 13 consecutive
and i seldom get over 5 ;]
 
...but ..but ... it's Friday!
 

« first day (1280 days earlier)      last day (3668 days later) »