« first day (690 days earlier)      last day (4274 days later) » 

6:00 PM
what's HTTP_ACCEPT_LANGUAGE ?
thats we're talking about ?
 
no thats user prefrence
you can get it like this
$host = $_SERVER['HTTP_HOST'];
 
and what i do with $host ?
 
if($host == 'en.domain.com')
$hl = 'en';
else if($host == 'fr.domain.com')
$hl = 'fr';
else
$hl = 'sth else';
 
@user1301411 Have you conisdered reading a bit about php?
 
ok
yeah dude that's just there are so many things to know i cant know all php queries
 
6:04 PM
@user1301411 this is basic php what you are talking about
 
i never read it somewhere before while i have search about that since a long time
i know php since 1 year, no more
 
@user1301411 docs.php.net/manual/en start here
 
in one year one should easily be able to know how to access array items.
That's basic syntax
 
do you know if sites like docs.php.net/manual/EN rewrite all texts in several languages or do the same that we was talking about with $_SERVER['HTTP_HOST'] ?
sorry if i look stupid^^
 
6:11 PM
@user1301411 What do you mean?
 
The texts are rewritten by both users and people on the docs team @user1301411
 
mysite.com/en rather than en.mysite.com
 
@user1301411 {code}.php.net are mirrors (i.e. other servers) php.net/{code} are languages
 
i translated my site in 22 languages but not rewritten it, i did it with conditions and variables
 
6:13 PM
@user1301411 Sounds like a bad plan
 
why ?
 
Your code will be a total mess with all those conditions for languages
 
you mean the trouble with number of lines ?
 
It's not the number of lines it's the complete mess
 
it's bad for seo ?
 
6:16 PM
Instead of using a function call to get the text in whatever language you have made several statements if I read correctly what you have done.
Nothing to do with SEO
 
so thats just my problem that it doest disturb me not the design or web ranking ?
ok i have several thousands lines only for translation^^
 
It will disturb you when you have to change something at some point or you need help from somebody else who needs to go through your code at some point.
Or if you need to add another language???
 
o_O ^
 
what "nothing to do with seo" you mean it not makes shit to seo ?
 
@user1301411 That didn't come out in English I'm afraid
 
6:21 PM
no i already change a lot of languages i had no problems
@PeeHaa sorry
 
<h1><?php echo $text['header_text']; ?></h1>

then depending on the language selected the "language include file" changes.
 
@user1301411 Such a change should not take you any longer then 5 minutes max (besides the translation part)
 
no if statements for each term
 
How long does it take you
And what do you do with texts that are coming back in multiple locations? Chaqnge them everywhere? And you don't forget 1? Or you know where they are used?
 
it makes me less than 1 minute
yes i know to use them all
 
6:24 PM
@user1301411 1000 of if statements and it takes you 1 minute? I call shenanigans
 
to add a language
 
I call shenanigans
 
Wouldnt you want to pull the language from the users browser, pair that to a language include.
 
Either way you have a "solution" you think best. Use it. You won't hear from me anymore
 
from the language file populate the content on the site?
 
6:26 PM
don't care 'bout that ;)
what ?
i have to go, see you later
 
@Pheagey Something like that is what a sane person would do.
@user1301411 likes to do thing the stupid way
:-)
 
arg, and I was shooting for crazy...
 
:D
@Pheagey btw gratz on the chat privilege and welcome to the dark parts of SO :)
 
TY buddy. My current professional position Im the only developer. Need a place to talk 'developing geek talk' and continue learning.
and since Ive used SO in the past seemed like a good place to hang out...
 
Where are you from?
 
6:36 PM
Central Fl area.
 
Nice! I'm in Orlando
 
@MikeB Bloom? Yuck!! Too many details
 
Bloom?
 
Boom.
 
oh wait, you meant the city, not the person... i'm feeling relieved
 
6:38 PM
LOL
 
j/k
 
True, cpl hours from where I'm at....Florida weather people have it easy "Humid, hot, rainy in the afternoon...rinse / repeat for 11 months of the year...
 
7:02 PM
Should we cv/delv this or something? stackoverflow.com/questions/5166093/…
 
So many "I no no how 2 do stuff. U do it 4 me?" questions in tonight.
@NikiC I don't think there's a "This question is totally dumb" cv option :(
 
@NikiC lol look at that deleted answer in there :P
 
Wish I could see it. But at this rate I'll never get to the magical 10k.
 
-6
Q: Please add a 'far too easy for this site' flag, or something similar

Aberrant Possible Duplicate: Introduce a “general reference” close reason Related: Closing 'easy' questions - yes or no? Stack Overflow gets flooded with questions of extremely basic things. Just some quick examples of recent questions: How to add a UIView above a UIT...

SO is for professional and enthusiast programmers not for first-grade math students
 
@Question: srsly? if $x < 0 its a negative :P
 
7:12 PM
Question was closed because "question rides the short bus"
 
I'm kinda shocked he hasn't deleted that question
When most repeat-users discover they asked a bone-headed question they delete it
 
By BD (Base de Datos? From the word "Usuaries" you might be a spanish speaker, I assume) do you mean DB (Data Base)? — Damien Pirsy 16 mins ago
I chuckled
 
So many close votes, so little time :(
 
@GordonM So many close votes so low vote cap :(
 
7:16 PM
It feels like stack overflow has entered the Eternal September. The PHP related portion of it at least.
 
@GordonM had to look that reference; very fitting..
 
Thank god you looked it up and didn't ask a question about it on stack overflow!
 
/emote runst o SO to ask "Whats Eternal September mean, can you make me one for my iOS game."
*runs to
 
@Pheagey +10
 
Are you in the your profile image Gordon?
 
7:24 PM
I wish! No.
Unless you mean the other Gordon, in which case, I don't think he looks like a G in real life.
 
:)
<- looking over your Github projects...constant reminder of how much of a noob I am...
 
@MikeB You can't delete your own question if it has an answer.
@Pheagey $.eternalSeptember();?
 
My mistake, maybe they got a mod to do it, or atleast anonymize it
Anyone know if it's possible to measure the frequency of auto-bans over time? meta.stackoverflow.com/questions/86997/…
Not sure if data.SO or the api publishes that info
 
7:40 PM
@MikeB On the subject of which , one of my own moments of temporary stupidy: stackoverflow.com/questions/7468767/… (dupe)
-2
Q: Get file name/line number from which function was called

DaveRandomA little background first: I am picking through one of the PHP-based systems that we use internally in an effort to understand some of the code (it is a project I have inheritted the maintenance of) largely because it is producing log files of 30-40MB a day, and the log files are filled with deb...

 
@DaveRandom "You have already voted to close this question"
 
haha @Gordon is always on top of things
 
@PeeHaa Wha...? Weird. The only close vote on it is mine. Also I'm a little surprised it won't give me, the asker, a deciding close vote.
 
Jon should be given a medal for deleting his answer after noticing he was beaten to the punch
 
@DaveRandom no hard feelings, eh? :)
 
7:45 PM
wish there were more people like that
 
@MikeB nah, the ones where he didnt outweigh that one
 
I have a quick question
$a = 0123; the output is 83
how to solve this
 
@BasicBridge there is nothing to solve. its octal notation and expected outcome
 
@BasicBridge Remove the leading 0.
Or put it in quotes.
 
7:46 PM
$a = "0123"; for string output
 
ya this is problem
can i assign 0123 or 0234 to variable without double or single quote
 
@ Gordon (G) is it the same as $a = 0x0123 ?
 
@Gordon When I look back on that question now I
 
@Pheagey 0x0123 is hex for 291
 
Force the data type? (int)$a = 0123 ~might~ work.
 
@Pheagey type casting is also not working. I think i have make it a string not use it as integer
 
> Integers can be specified in decimal (base 10), hexadecimal (base 16), octal (base 8) or binary (base 2) notation, optionally preceded by a sign (- or +).
 
-20
Q: How to build a notepad web server in windows/redhat

nicki know great HTML like <body> and <body/> but now I want to build notepad web server in windows/redhat. how i can?

 
0xDEADBEEF
 
@ircmaxell 0xB18B00B5
 
7:51 PM
lol
 
Ty gordon.
 
@ircmaxell apparently MS had that in their code somewhere and when it was found out it created a fuss because it's sexist
 
0xDEADC0DE
 
@DaveRandom Apparently users can cv their own question? This one is full of wtf
 
speaking of octal notation. given that the manual explains this quite well in the integer section, should stackoverflow.com/questions/1412712/… be closed?
 
7:54 PM
25 == 031
@Gordon No, because RTFM questions are allowed on SO
 
@ircmaxell How would you know what to look for if you've never heard of octal notation?
 
by reading the manual...?
 
Where would you start? Variable-types front to back? Not trying to be facetious, just trying to emphasize with someone whose never seen it before and what their best next step would be
I guess this would be the most intuitive and effective first-step php.net/manual/en/language.types.integer.php
 
@MikeB Dunno, maybe searching for "php integer starting with zero" or something like that?
 
8:07 PM
People are so inconsiderate. Please leave a comment when you upvote, don't let us wonder for hours why. — Tiberiu-Ionuț Stan 5 mins ago
^epic
 
lol
 
shabsta answer is kind of a tangent...
is SO chat XMPP based by any chance?
 
@Pheagey no. it's your plain old ajax pull type of chat. it sends a heartbeat in intervals fetching new messages.
 
If I have to read another php-internals post by Lester Caine I think my head is going to explode.
5
 
@Charles :P
 
8:22 PM
@Charles forward all his mail to /dev/null
 
@ircmaxell, I read using one of the web interfaces.
It's almost, but not quite, enough to make me go to actually getting email.
 
Lester Caine is an anagram for Ace Listener … and Canister Eel
 
I like the latter one there.
 
and also for Sterlie Acne
 
8:24 PM
and Leanest Rice
also Nearest Lice
 
Can we hell-ban him on the mailing list level?
 
and Eastern Lice and Senate Relic
 
@LeviMorrison yup. that's where I got them from
 
8:26 PM
@webarto I've solved many of those
 
It's a bit crude, but:
> Rectal Seine
 
nikic.github.com/2012/03/06/… Totally don't agree with his argument, the strict type hinting is the one that feels right to me and "It's not the PHP way" seems like an awfully weak argument against it!
@NikiC sorry. But just don't agree :)
 
@ircmaxell deadcode reminded me of deadbeef remind me of this
 
The problem is that "the PHP way" tends to mean "whatever takes the least effort and upsets the least people." It's a crutch.
 
@webarto And that has a wrong answer to How many times a day does a clock’s hands overlap?... It's not 22, because that's ignoring the second hand :-P
the answer is 2
 
8:28 PM
zOMG :D
 
@webarto 0xDEADC0DE
 
@webarto I like 0xDEFEC8ED
 
C15C:D06:F00D
:D
 
Another victim of w3schools:
0
Q: In HTML5, a <div> is technically a block-level element, but behaves as an in-line element. Is this a special 'hybrid' element?

Tony DiNittoA block level element as defined by the W3Schools has having a line break before and after the element, such as p, h1, etc. Non nested inline elements either start on their own line (no line break) or remain on the same line if nested. While span behaves normally (as well as all other inline el...

 
8:36 PM
:sad:
 
@ShaquinTrifonoff that isn't an answer
I love it how one can correct people by chat :D
 
@PeeHaa I thought it did provide a link to an explanation?
 
@ShaquinTrifonoff link only answers are not answers. Just like question answers should be self contained
 
@ShaquinTrifonoff Let me know when you have fixed it pls :)
 
8:46 PM
Meh, hate updating CVs and building personal sites. Too much stuff to fit in 2 pages for the former, nothing to say for the latter!
 
hiy'all
 
hiya
 
However it's got to be done. The only developer who understands the system has quit and will leave in 6 weeks. The code he leaves behind is an utter mess and totally uncommented, and spans tens of thousands of lines. Also, I just hate it there. And a job turned up on monster that pays nearly double.
 
@InGodITrust Do you really trust in god?
 
8:49 PM
gotta real funny situation here, set up my virtual hosts and was all working fine until...
@PeeHaa youre at least better then the people who ask me which one!
anyway
 
@InGodITrust That would have my second question.
But is that a yes or a no?
 
@PeeHaa will come back to that in a min, :-),
i changed my doc root to another path and now only the virtual hosts are loading and the main doc root never loads.,
 
@InGodITrust Which one? :)
 
The only way to make the main doc root work is not include the httpd-vhosts file. Is this normal for the virtual hosts to overwrite the main doc root even when browsing to standard localhost?
@GordonM there is only one! :-)
 
The highlander?
 
8:52 PM
@InGodITrust yes it is. If no named virtual hosts matches it will take the first vhost
trippleping yeah
 
@PeeHaa but before i had them both working and now only the virtual hosts. Are you saying that when you define virtual hosts at test.localhost then even going to localhost will set the test.localhost root?
 
@InGodITrust yep
 
so what to set the main DOC ROOT as or does it not matter
 
I don't remember is there also a servername directive in main config?
 
no i cant see one, you mean cos i havent defined a servername, oh, that clever
perhaps il try to pop one in and see
but as a standard one it is usual to load up the first vhost when browsing to the main DOC ROOT defined, thats all i need at the moment
@GordonM you probably mean the Highlander...
 
8:57 PM
@InGodITrust yup
 
@PeeHaa thanks for your help now where were we...
of course i trust!
 
@InGodITrust why do you trust in god?
What has he done for you lately?
And 2. What god(s)
:)
 
edit: What GOD
 
do we really have to get into the religion crap?
 
that i was trying to learn yesterday
 
8:58 PM
@InGodITrust There can be only one!
 
The God who made the universe, of course there can only be one!
 
@InGodITrust Why would that be of course? Sounds like damn lots of work for one.
 
@PeeHaa , of course , only real one is Achuhucanac
 
@tereško We got that bastard here all the time :(
 
How could there be more? Who would have made them?
 
9:01 PM
@InGodITrust the same as made your so called god?
 
@InGodITrust Who would have made the one?
 
This is an index to polytheistic deities of the different religions, cultures and mythologies of the world, listed by type and by region. This is not a list of names or epithets of God in monotheistic religions, for which see "Names of God". For deified individuals see "List of people who have been considered deities", "Apotheosis" and "Imperial cult". For deities whose cult is fictional see "List of deities in fiction". {| align="right" | __TOC__ |} By classification Lists of deities by classification: Ruler of the Pantheon Celestial, Cosmological *Creator *Moon *Sky *Sun *Time *We...
 
and who would that be?
and for that matter if you dont believe in God who then made the world
 
why do all the god freaks have to assume the world was made at all?
why couldn't it just be?
 
becasue we have an IQ of more then 2
 
9:02 PM
@InGodITrust Idunno? So if I don't know who made something (i.e. no made in china sticker) it must be god who created iot?
 
@InGodITrust , define "world"
 
umm, no. "god did it" is decidedly a non-answer til you can produce this "god".
and let him be interviewed.
 
@tereško everything
 
@PeeHaa I took too long to edit my post and it got deleted.
 
@cHao he has no need to prove it
 
9:03 PM
@ShaquinTrifonoff :P
 
@InGodITrust yeah. he does.
 
Let me check
@ShaquinTrifonoff can you pass the link again?
 
otherwise he doesn't even exist.
 
back soon, goes for a shower
 
how do you know that your deity is male , @InGodITrust ?
 
@ShaquinTrifonoff Flag it. I cannot undelete it because @thiefmaster deleted in. Or maybe my suprtmega summon ping does the trick, but I doubt it
 
undeleted
 
@ThiefMaster Thanks!
 
lol I just flagged it again after it was undeleted.. by mistake
 
@MikeB lol
 
9:06 PM
race condition!
 
@MikeB cheap "helpful" flag for you :p
but your flag was actually there before i undeleted it
 
whew
 
Wow I can summon @ThiefMaster. Prepare yourself for lots of super requests! ;-)
 
lol
 
hmmm, or wasn't it?
 
9:08 PM
now I can flag @PeeHaa's comment for being obsolete - back to work @ThiefMaster! :D
 
according to the timestamp you flagged it 17s later - so mabye i just remember it wrongly :p
 
:P
What comment? @MikeB
 
@MikeB when you start getting "race conditions" for your spinal and brain , it is a clear sign that you have been spending too much time on the internet
spinal cord is partially responsible for the "reflex" reactions
 
In cosmogony, the nebular hypothesis is the most widely accepted model explaining the formation and evolution of the Solar System. There is evidence that it was first proposed in 1734 by Emanuel Swedenborg. Originally applied only to our own Solar System, this method of planetary system formation is now thought to be at work throughout the universe. The widely accepted modern variant of the nebular hypothesis is Solar Nebular Disk Model (SNDM) or simply Solar Nebular Model. According to the nebular hypothesis, stars form in massive and dense clouds of molecular hydrogen—giant molecular cl...
 
@GordonM , he meant "everything" .. based on bronze age belief system
 
9:11 PM
@tereško I don't believe people where that stupid in the bronze age
 
@tereško i dont! he isnt eoher sex. It is just a formal way of speaking
 
Super ping for emphasize
 
it does not describe multiverse concept from superstring theory .. but then again , it is just a theory
 
everything as in even the tinies molecues
 
An excellent question by a first-time poster:
1
Q: XSLT: Sort by the lower of 2 values

MarkSI have some XML that is formatted as follows: <products> <product> <name>Product 1</name> <price> <orig>15</orig> <offer>10</offer> </price> </product> <product> <name>Product 2</na...

 
9:13 PM
@cHao thats like people saying Gravity didnt exist because they couldnt prove it!
@tereško i was explaining my own words, not the article!
 
You couldn't prove gravity?
 
@LeviMorrison Good question, but it's begging for a "What have you tried" comment
 
Before Issca Newton?
 
Of course you could prove it! You let go of something, it falls. Gravity proven.
Newton didn't discover gravity, he was the first to model it mathematically.
 
So why do you think Sir Issac made it big and you are stuck here posting here
 
9:14 PM
> Is. 40:22 It is he that sitteth upon the circle of the earth, and the inhabitants thereof are as grasshoppers; that stretcheth out the heavens as a curtain, and spreadeth them out as a tent to dwell in..
@InGodITrust , this is what you magical books says about shape of the earth
 
The bible also says that Pi is exactly 3.
 
@tereško sorry, dont believe magic exists
@GordonM and where is that
 
 
@GordonM and for your information, if you look at the bible more closely
 
riiight ..
 
9:16 PM
(you'l find it by King Solomns pool)
the word circumfiernc is spelled incorrectly.
 
@InGodITrust I Kings 7:23
 
@MikeB Yeah, it is his first post though. It's really well done overall.
 
@InGodITrust , i seriously doubt that you have even read that book
you have only heard what other people say about it
 
when you divide the numerical value of the word circumfernce in Hebrew by the way how you pronounce it it comes to an exact .142
 
And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and a line of thirty cubits did compass it round about.
10 cubits across, 30 cubits circumference, pi = 3
 
9:18 PM
@GordonM , that's kinda vague
 
Not to mention the cubit is not a very precise measurement in that time period . . .
 
it's like hoping to see math facts in spidermen comics
 
@LeviMorrison True, but its highly unlikely even guys back then would have used one type of cubit to measure one dimension and a slightly different type to measure another.
 
@GordonM My point was how do you get a .14th of a very imprecise measurement?
 
@LeviMorrison I'm just going to do what the religious do, and ignore an inconvenient fact.
 
9:21 PM
i hope you ARE aware that you are talking about the book , which considered slavery to be good moral behavior
and punishment for raping an unwed women was monetary compensation to father
 
@tereško link
 
lol
 
@tereško Like you said yourself, he probably hasn't read it. A lot of the more vocal religious types tend to cherry pick the bits they like, or worse let their priest do the cherry picking for them. Best way to argue with a Christian is picking out the bits he's probably not read.
 
@tereško link 2
I don't know if you are interested in it though :-)
Oh, are you still ignoring me?
 
I hereby ask that we return to the chatroom's official topic. I'm a very religious person and have mentioned small bits from time to time, but let's not get into anything that could be considered an argument, please.
 
9:26 PM
@tereško slavery? do you have a source for that
 
Perhaps a rule against inflammatory screen names would be in order.
 
@GordonM I really don't think In God I Trust is inflammatory. It states one's belief's and is not degrading anyone else's.
 
do you need others ? but i personally really like that one
 
@tereško dont believe everything you read, instead open a bible
The bible only lets taking a slave who is so poor that he sells himself to you
 
9:29 PM
anywho
I think codeigniter is the best framework in php - discuss
 
@LeviMorrison Muslims may see that differently. Or Buddhists. Or pastafarians. If you advertise your religion, other people are going to think you're getting up in their faces about it.
 
This one is going on a tile:
1 min ago, by In God I Trust
@tereško dont believe everything you read, instead open a bible
7
 
lol
 
@GordonM The concept of god is so generic that saying you believe in god should hardly be offensive.
 
9:31 PM
@GordonM did you see the link?
 
did you read mine ? =]
 
@InGodITrust Yeah, I did. It felt like people arguing over plot holes in Star Trek episodes to me.
 
@LeviMorrison I tried :) - gnite all
 
@MikeB lol
 
9:32 PM
@MikeB later
 
poor thing ... got scared away
 
If you all must know, when i signed uo my username i had just finished watching Saving Privat Ryan and was crazy on Jackson the Sniper!
And he kept on saying as he shot, in god i trust, the shield in whom i beliver
because he expects me act noramlly, he doesnt look after idiots so much
 
Please, let's get back on topic.
 
Oh sweet, I forgot the murderball started today
 
nite all!
 
9:36 PM
ehh .. internet makes me sad
 
@InGodITrust later
 
I never what to put on the home page of a site. I know you shouldn't start with "welcome to $site" but the temptation to do so is so huge
 
usually it's because the owner/investor has no imagination and is unable to make a tagline for project
 
@InGodITrust never mind that we have verifiable evidence of gravity's existence. we can't say the same for your sky fairy.
 
well, this is gonna be one of my stupid questions....... if i am having a string
$str="ABCDE" how to extract each charecter of a string into an array....... actually i need to check wether a number entered is 2 22 or 222
 
9:42 PM
@InGodITrust actually we do not know HOW gravity works. The Newtons theory only covers the subject "how strong the gravitational force is" but forces in physics are abstract concepts
currently the two most popular hypothesis AFAIK are bases around existence of graviton particles and deformation of space
 
wtf is going on?
 
@ircmaxell Everyone is talking about God and gravity.
 
just standard evening bullsh*t
 
@blackbee Do you want to know the string length, or what?
 
oh .. and i have reasonable suspicions that @ShaquinTrifonoff is jehovah’s witness
 
9:50 PM
@tereško i know how gravity works. you jump off a cliff. you fall down. you're dead. Gravity!
 
lol
 
@tereško Oh balls, has he not shut up yet?
 
@tereško not you in particular (just to clarify)
 
^^
well .. the bottom line is that current theory of gravity does not explain all the anomalies and i honestly find it an interesting subject
then again , i had hard time to decide if i wanted to learn physics or programming in university
 
9:52 PM
no, i want to write an algorithm, which will check the number of 2 or 3 or 4... entered simultaneously...
fyn, the thing is, i am making a mobile like keypad, so if the user is entering 22272 then output is cpa if the input is 2022045 then output is a b gj @ShaquinTrifonoff
gravity is not responsible for falling in love
 
the interesting science thing i found today was femto cameras that can take pictures from around corners
 
so what is the discussion, god resides in the earth, still he remains afloat like a hydrogen balloon
 
@blackbee After your previous visit I implemented this and I got it down to two (or three, depending on how you look at it) lines of code. 2 hints: use a 2D array for your map, and use preg_replace_callback().
 
@blackbee Use str_split($string);.
That will split it into an array.
 
@blackbee god lives in classes :)
 
9:57 PM
@DaveRandom u mean this whole program in 2-3 lines??
 
anyways, gravity pulls me to bed now.. nite all
 
@blackbee .. emmm ... i think you do not understand why balloon of hydrogen flies
@Gordon sleep is god , go worship
 
@blackbee Well, something that takes an input string of numbers and converts it to an output string of letters, I don't know if that's the whole program...
 
+---------+
| O -> O  |
| \--- |  |
| ###| v  |
| ###|    |
| ###|    |
| ###| O  |
+---------+
^-- Gravity.
 
no i surely do, hydrogen is lighter than ..... and it the balloon wont float for ever coz the ballon and air at the contact surface performs a diffusion kind of thing.......
 

« first day (690 days earlier)      last day (4274 days later) »