« first day (923 days earlier)      last day (4250 days later) » 

01:34
Good evening
@igorw Interesting
02:19
Hey guys in the mail function for php I am using .....$header .= "Content-Type: text/plain; charset = \"UTF-8\";\n";
$header .= "Content-Transfer-Encoding: 8bit\n";
$header .= "\n"; to try and send a html email but that is not working all i get is the <html> tags i wrote in the message
1 message moved to Trash can
Entry 4: @Jack is scared of bitcoins, @Ihsan is turning into Gollum, @Uby is being stalked by a help vampire,and @uınbɐɥs died in the Great cv-flood of 2013 R.I.P.
11
user652649
lol, evening @crypticツ
02:55
user652649
i'm pretty sure on the internet there are better videos of fighting women
there are
do you watch women's ufc?
user652649
usa, right?
user652649
:P
03:21
@Wes yes
user652649
04:02
hi..
hi @igorw,
 
1 hour later…
05:17
http://stackoverflow.com/a/74905/1723893
05:31
Hello,
What is triple equal in PHP?
I have a code:
if ($pathInfo === null) {
}
$pathInfo is empty
so, will it enter the loop or not?
and what's === all about...
@udaysagar Meaning that it must be the same type as well as have the same value.
@udaysagar $a === $b TRUE if $a is equal to $b, and they are of the same type.
aha okay
thanks Null pointer.
@udaysagar yw
hello room
Uby
Uby
morning
05:45
Is there any book for .htaccess, most probably for beginners
I google and most probably i search through 5 pages over,
could not get book on .htaccess.
Uby
Uby
@Rafee What about Apache documentation?
oh! i even gone through that.. you know.. i lost it
httpd.apache.org/docs/2.2/rewrite i read this two times..
will be right back, coffee
@Rafee .htaccess and mod_rewrite is not the same thing
06:04
http://stackoverflow.com/q/16229308/1723893
would be fine ?
@andho you can define rewrite modules in .htaccess right and I want to learn .htaccess..
06:30
Morning.
just found cool
user image
2
@Rafee you can define rewrite rules in apache config files as well as .htaccess files which just another config file which is parsed on each access to an apache resource
apache itself has many configuration options and then there are different apache modules that has it's own configuration options
rewrite is one of the more different modules to grasp
@NullPointer brakish water?
@andho it will work with that too .. as salt will not vaporise
what's brackish water
gtg
Brackish water or briny water is water that has more salinity than fresh water, but not as much as seawater. It may result from mixing of seawater with fresh water, as in estuaries, or it may occur in brackish fossil aquifers. The word comes from the Middle Dutch root "brak," meaning "salty". Certain human activities can produce brackish water, in particular certain civil engineering projects such as dikes and the flooding of coastal marshland to produce brackish water pools for freshwater prawn farming. Brackish water is also the primary waste product of the salinity gradient power proce...
06:54
Uhm. A tag with one question and that dude wants to put stuff into the tag wiki that clearly looks like an ad...
@TillHelge which tag?
The edit was rejected.
Is there a guideline concerning the creation of new tags?
Here is the edit, if you can see that.
user652649
morning
how to integrate ads in video???
just like youtube ............ i have to play a ad every time when a video is on demand
07:10
Good morning guys! :-)
@upcomingdeveloper play first video then ..original video ?
will u plz elaborate a little more @NullPointer
@upcomingdeveloper first not sure its the exact way .. but you can do this like first play advertisement then original video
yay .. got another "Populist" badge
07:25
congrats :)
@tereško congrats :)
@tereško did you quit?
no =/
@tereško btw dont know why you havent got that badge on this stackoverflow.com/questions/3430181/acl-implementation/… answer
@tereško why not?
07:27
i decided to at first find another gig
@tereško fair enough
anyone here familiar enough with cake1.2 to know why it would create a query like this SELECT Client`. FROM `clients` AS `Client`. Note that it's missing the initial `
aside from "because it's cake" : no , sorry
good mornings everbody!
Hi there.
swipe swipe :)
heh, fixed
Mornings
they deprecated a method but the wrapper they suggested broke the query. gotta love borked migration guides
07:50
My summary network report has a yellow thing in it :-( :-(
Some dickhead has been logging on to my perfect server and not disabling their RDP printers. Not impressed.
> You've reached the maximum of 50 Closure votes per day; come back in 16 hours
@TillHelge I've never been sure if that's a misspelling of angels, or if the angles actually aren't real
@TillHelge lol it have pony :-D
08:00
Hey let's become awesome.
I'm already awesome.
@Duikboot That's definitely a very odd statement.
Either you are and thus don't need to become awesome, or you're not but would like to be, which makes you definitely not awesome. ;D
Just go like this-> z0r.de/L/z0r-de_3714.swf
Hey wait a minute, it's Friday!
>Error mounting /dev/sda5 at /media/mayank/mayank: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/mayank/mayank"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda5': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
08:02
yay! 5 upvotes for the wrong answer. People just love their cargo cults
@Gordon high rep effect
Ubuntu 13.04 suxxxxxx ... :(
> The disk contains an unclean file system
That sounds like a pretty accurate description of any Windows disk
@DaveRandom its working fine in ubuntu 12.10
has the process of deleting questions changed ?
@Jocelyn Doesn't look like another "header's already sent" question, but rather a broken session setup
@Gordon uh? The link to the duplicate links to the duplicate containing an answer uses DOM as well (and the answer is by you). Or maybe I don't get what cargo cults means?
@tereško why ?
08:05
i don't know why
@hakre Cargo Cult = NEVER use regex for html. I dont say that anymore for years now. Apart from that, his answer doesnt answer the question because it doesnt show how to fetch by attribute
@TillHelge this is explained in the duplicate too
@Gordon the answer you linked does contain DOM, doesn't it? Okay, if it doesn't answer then stupid :)
@NullPointer I suspect it's probably 12.10 that's at fault, it's probably skipping that check. Reboot the Windows machine, if that doesn't fix it, do a chkdsk /f /r on it
@hakre DOM is the right solution for the OP's case. But "NEVER USE REGEX" on HTML is not right.
@Gordon Yes, it's not right. I love those shallow parsers.
And as you know, validating XML element names with regex ;)
@tereško I think he means "in what way?" - I can't see any difference
i cannot deleted freshly closed questions anymore
@hakre Yeh but that's XML.
Okay here is an example where no delete vote link: http://stackoverflow.com/questions/15908287/how-to-remove-the-warning-session-start
I think this is missing because it has just been closed so now there is a penalty between close and delete.
@DaveRandom Also for other SGML dialects if you ask.
08:10
@DaveRandom not fixed after restart
@tereško Oh, you're right
> Delete-voting within two days of closing is disabled on questions scoring -2 or above, regardless of the voter's reputation.
Needz moar DVs before you can delv
@NullPointer chkdsk it then, if that doesn't fix it then it's actually a Ubuntu issue
@DaveRandom we can give free downvotes then...
ok, he corrected it. can revoke the downvote now
@Jocelyn ;-)
> Automatic deletion of closed, abandoned questions will be implemented next [...]
Awesome sauce
08:15
2
A: Add a Gold Badge for Chat, complete the series

JackProposal The "Toast Master" golden badge. Posted a chat message (which is not a reply nor a link or image) with a score of at least 5 for 150 days, starred by 50 different users. On chat room myths Lucifer: Adding this badge will encourage more users to ask question in chat rather then...

=D=D
Anyone suggetions, I have a website but company X want to generate a mobile application from it. They want to receive an xml with all the website data.
all the website data?
The website is a drupal website. So I have to parse the whole website in XML
yes
- menu - content
am i bad person for wanting my coworker with chronic rhinitis, who sits behind me, to die ?
@tereško yes
@Jack starred by 50 different users. ?
50* are almost unreachable
even 20 is rare
@NullPointer That's up for discussion :)
I suppose 50 is .... "kinda" high lol
Perhaps 25 is better.
Postgresql vs mysql
08:23
@NullPointer chat.stackoverflow.com/transcript/11?m=7911815#7911815, although I kinda cheated.
@Jack I don't understand the suggestion
is there a bitwise operator to check for either 2 or 4 set, with 6?
@NikiC okay ...
I.e. what does "score" mean?
08:25
@Jack I don't understand the "with a score of at least 5 for 150 days" part
And what does "starred by 50 different people mean"? (You know, that is virtually impossible, right?)
Yay ping fail
Monring guys
@NikiC Score is what you can see on the right side here, e.g. Baba's post has score 6.
meh @tereško I would liked to start a discussion :p
08:26
@Jack where?
@NikiC In this chat room, right side ...
okay, so what does "score 5" but "starred by 50" then mean?
@Jack But that's just the number of stars. You already stated that it must have 50 stars
@Jimbo yo
@DaveRandom Hmm, no, starred by 50 different users.
or well .. 25 now
@Duikboot just because i would like you to do anatomically improbable things to yourself and leave this room, does not mean that you should .. don;t you think ...
08:27
@Jack That's the same thing. One user can't star the same post multiple times and stars don't decay
@HamZaDzCyberDeV can you explain the pattern please?
@DaveRandom Yeah, basically you tally all stars from the posts you made and count the number of unique users, for posts with score >= 5.
@Jack Ahhh right OK, you could do with rewording the answer then, it seems to be talking about a single post
As if all those conditions have to be met for a single post
@DaveRandom Agreed .. let me think about that .. any suggestions would be welcome :)
I see
@Jack Ah, now I get it
08:30
Damn, this is hard to put into a single sentence =/
@teresko Ok u'r right.
Hello everyone !
HI hamazazadzycberdev
@Gordon I though it was clear ?
@Jack "Posted message with a score of at least 5 every day for 150 days, with stars being given by at least 50 different users" ?
"with stars being given by" is clunky but it gets the point across
08:33
wut, a message of score 5 every day?
@Jocelyn :P
That's what I read
Maybe I still don't get it
you're all getting trolled
@Shea is one giant unending troll
I think you've been talking about some score thing for the last 20-30min
08:34
@DaveRandom "Posted 150 chat messages with a score of at least 5, starred by 25 different users, over at least 150 days."
Does that sound right?
I am creating a db table for users, there I want to have a password_reset_code and an activation_code columns so I could check if the user is the real user. The thing is, why shouldn't I just merge those two columns into one?
@Jack Ahh OK, yes that clarifies it well I think
@DaveRandom Okay, updated ... and thanks :)
08:36
user image
2
regex is the best tool to parse html
'Cos parsing HTML with Regex is what all the cool kids are doing.
@Jack yeah
and it's so easy to read
Oooh new avatar is shiny
08:38
@DaveRandom s/shiny/insane
@uınbɐɥs hahahaha stackoverflow.com/search?q=user%3A1401975+[regex]+html and I think there are mooooore !
@MadaraUchiha that too
@uınbɐɥs because it's possible :p
@HamZaDzCyberDeV It's also possible to run a DOS-based server...
@uınbɐɥs for what it's worth: the OP says he's doing it with DOM and asked specifically about Regex out of curiosity. For the UseCase at hand, DOM is the better solution (which is why I closed it against a DOM dupe) but there is enough UseCases where using regex on HTML is okay.
@Gordon that's true
@Gordon It still makes me feel dirty whenever I have to do it. Also I think I've only ever needed to do it for something where the real problem is that someone is sending me HTML in the first place, where they should just be sending the data it represents
In other words, yes it is sometimes more sensible than DOM, but it's still usually code smell. IMO.
@DaveRandom depends imo. for instance, the cvbacklog uses regex to grab the cv links. there is no point in using DOM there because I know I am looking for [tag:cv-pls] http://stackblah./(this)
08:56
Is the room abandoned?
Hey guys
Hello @dragon112
Anyone here used djangoproject.com ?
And you are asking it in a PHP room?
09:01
Yes I do.
what's a better way to write (!$bitsort&2&&!$bitsort&4)?
@Shea I have no idea what that does
@Duikboot, you should really go here instead.
Joined
09:03
@Jimbo & is a bit-wise operator ...
I thought "bitsort" and the bitwise operators would be obvious.......
@Duikboot no, but i've seen Django Unchained. Does that help?
so he's using a bit operator &&(AND) bitoperator ....
That does help a lot!
(!$bitsort & 2 && !$bitsort & 4)
09:04
@Gordon I'm a fan. Best Django EVAR.
@Shea Logical nots and bitwise operators and no spaces? :-S
Right, I get ya
@dragon112 can't tell. I don't think I've ever seen any of the other movies.
oh how about...
Meh I want to learn so much bu tI don't have enough time to learn.. sucks
09:05
@Jimbo && ==> AND
& => AND BITWISE OPERATOR
!$bitsort | 6?
Ah okay, I've never used bitwise
@Gordon I'm telling you right now :)
Also add some parenthesis, the operator precedence of that expression is not something most people are going to know off the top of their heads
A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, primitive action directly supported by the processor, and is used to manipulate values for comparisons and calculations. On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. While modern processors usually perform addition and multiplication just as fast as bitwise operations due to their longer instruction pipelines and oth...
09:06
@hakre @baba @kaᵠ interesting ? stackoverflow.com/q/16231244/1401975
bitwise is confusing
Anyone here uses Shutter?
@Shea Is the objective here to verify that neither of bits 2 and 3 are set?
yes
OK well then !($mask & 0x06)
Will be true only if neither of them are set
09:09
oh nice. I feel retarded
bitwise, byte foolish.
why is hex prefered?
because hex asserts ur 1337'ness
And it encodes a byte into two characters, which is nice :)
@Shea It's always easier to think about if you use hex notation. If you are using 5.4 you can even use 0b110 notation. But also it's often easier to use constants for readability: !($mask & (FIELD_1 | FIELD_2)) where const FIELD_1 = 0x02; and const FIELD_2 = 0x04;
Hex bares a direct relationship to the number of bytes you are dealing with, dec does not
okay, that's a good point
09:13
Dec is fine for small numbers, but as soon as you have more than 8 meaningful bits you need hex really
IMO
I think I'm naturally going to agree on that
eventually
4
A: PHP Add Time to existing Date Object

ankit$dSet = gmdate('Y-m-d', strtotime($date));

Ehmmm, I'm completely clueless why that gained 4 upvotes.
@Shea Network-y stuff (specifically IP addressing and subneting) is good to help you get your head around bitwise stuff IMO. Have a go at implementing something that determines if, given a network address and subnet mask, a particular IP address lies within that subnet. Also a nuance of PHP: you can perform & | ^ on strings, but both operands have to be strings. You can't have one operand a string and one an int and get a meaningful result
And, to my eternal annoyance, you can't shift strings :-(
that's good to know
09:21
And verify that all numeric operands are ints, if you do bitwise operations on float you're gonna have a bad time
I plan to build a permissions system around bitwise
I think having it in strings will help
@Shea Remember that strings accept hex notation as well "\x01\x02"
I wonder if this is how PhpBB stores their permissions
I just remember looking at it and wondering, "what?"
I think that's better done with a many-to-many intermediate table in the DB, personally
Often a given permission has multiple levels (no access, read, write) in which case it makes sense to store them a separate fields with an int value, rather than just assigning each permission a bit IMO
09:26
yeah, I haven't really figured it out yet
I was thinking about storing permission names in a separate table, that gets cached into an array, when it's changed
so that they assigned bits can easily be changed, and new permissions can be added
but that seems like more work than it's worth
@Shea do you know you unix-like system deal with permissions ?
like filesytem permissions? 0777?
think on it for a moment
I just have the idea of a new strategy:
Please use the search. We have all PHP date questions answered already. If you have a new one despite what I say, I give you a 500 rep bounty so that you can see that I'm serious. — hakre 29 secs ago
4
I like it. ;)
09:38
I need to wiggle the wording I guess, but I like the idea.
Sounds fair.
Only question is: Do new users even know what a bounty is?
So better tell them they get 500 reputation points for just proving me wrong :)
Good thing you're not offering anything else or people in here might feel challenged. ;)
Rules and Conditions apply: Users who already have asked a PHP date question which has not been deleted yet can not take part.
I should probably announce it on my blog.
Something like the PHP Date Question Pledge
@Shea I prefer this kind of a model: sqlfiddle.com/#!2/76ac2/1
09:44
Hah! -3 votes and I don't feel anything, CW ftw =D
Lets chew a bit on it, I mean it's friday ;)
hi.. any help on
0
Q: url query parameters gives wrong values with htaccess apache

RafeeI am learning about url rewriting on .htaccess and is there any good book where i can learn. I building an RESTfull webservices and i am working with pretty urls Now I wrote below syntax in .htaccess file to achieve other urls. RewriteRule ([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/users/([0-9a-zA-Z]) user...

3 minutes ago. Have some patience. ;)
@DaveRandom nice, I'll look into. thanks :D
@Shea ...where different values of value can be different levels - read, edit, delete etc. That could be a bitmask - but I wouldn't put the whole lot of every permission into a single bitfield. It would get confusing very quickly.
Oh lol fail my data is wrong. But you get the idea
09:46
so, it's a more organized way to use bitwise for permissions?
Hi all...
Hello, Good afternoon
@Shea It depends on the use case, but it probably makes sense. You might want to abstract that a level further and have a permission_sets table, so you can have pre-defined roles that use a permission set, and you can just assign a user to a particular role
Given the question, how is this answer so bad?
@Jack, i believe it will be in a string
09:49
0
A: htaccess rewrite on urls without common pattern

hakreThe method you describe is pretty common and well: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) /script.php?path=$1 [L] You can lighten it up by parsing the original request string in your PHP script directly, which is more direct. Look what your server offers in the $_SERVER PHP super...

@Jack wierd
@Rafee Eh?
@DaveRandom I've voted to close it, hence the CW post ... but still.
I am on it..
@Jack OP says $date contains 2015-03-11 and the result should be 2013-03-11 11:08. I have no idea how that makes any sense, to be honest.
Can someone tell anything about my crap answer to weird question? stackoverflow.com/questions/16052230/…
09:58
@Jack Seems pretty messed up overall. ;) Probably just very badly phrased.

« first day (923 days earlier)      last day (4250 days later) »