« first day (1686 days earlier)      last day (3262 days later) » 

7:00 PM
PHP, C# and JavaScript... not that many but i'm starting to mix them together sometimes :) I'm like "wtf is wrong with var foo = bar" in PHP
 
@StephenWolfe did you have an issue with ports in a rewrite?
 
@Stephen yeah
 
what are you trying to do, and what isn't working?
 
Hello frndz
 
7:01 PM
@Stephen I have a zend2 project i am trying to get working on my domain.com:8443
and the homepage works but not the sub page
 
leave out any reference to the port
it should just work
 
i have
 
Has anybody worked on localization ?
need some help
 
@StephenWolfe have you tried setting LogLevel to debug and trace the rewrite activity?
 
@Stephen My code works on my other machine but i get a 404 on my domain thats setup to use ssl and port 8443
@Stephen no i dont know how to set that up
 
7:04 PM
I'm out for a half of hour and there are 84 new messages.
Oh, lord.
 
@Stephen is it easy?
 
@StephenWolfe as simple as putting LogLevel debug in an apache config file
i.e. in the file where you define the vhost is a good place
 
okay one moment
@Stephen where do the logs go?
 
that depends on the ErrrorLog directive
but there are some defaults
depending on OS/Distro
e.g. for debian check /var/log/apache2/ directory
for redhat/centos/etc check /var/log/httpd/
but look in the same vhost config file, its probably defined in there
 
@Stephen nothing is showing in the error logs
 
7:12 PM
did you restart apache?
 
@Stephen i put it in the vhosts part of the conf and restarted
then refreshed my page
 
did you find where its erroring?
sorry, did you find where its writing error logs to
 
@Stephen yes
 
hmm.
 
7:14 PM
don't forget you need that entry in the :8443 vhost too
as thats the one you're having issues with
 
@Stephen this is my htaccess pastie.org/10214055
@Stephen imgur.com/Cgve9Ib this is my log
 
what is the LogLevel set to for the *:8443 vhost?
 
@Stephen debug
 
also, where did that .htaccess come from? it seems overly complex for a single app with a basic front controller
 
@Stephen thats the zend2 htaccess
 
7:19 PM
for shits and giggles, try replacing it with
# Handle URL Rewrites to the front controller
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php [NC,L]
 
@Stephen nothing
 
:S
 
@Stephen can u pm me
 
i don't think SO chat has PMs
does it?
i can create a room but its not private
 
/oh
I always thought they where private
 
7:22 PM
@Stephen Click his name and you can start a private chat room with him
 
@Gordon kitten-baiting... lowest of the low, scum, evil...
 
@Machavity @StephenWolfe from the 'new room' dialog: "Please note that the room will be public, and anybody can join your conversation."
 
Well, yes. But that assumes people actually look for it
 
It's the closest SO gets to PMs
 
7:27 PM
Nobody wants your room.
 
What is a good length for text()? if I'm storing description of a post.
 
42
 
isn't that too low
 
42 is the answer to everything
 
i mean someone might write 1000 char
lol
 
7:28 PM
Well use 1000
 
Yeah but i want to know the average
 
why not use like VARCHAR(65535)?
 
average of what ?
 
@BrianS (42 + 1000) / 2
 
wait VARCHAR max is 255
 
7:30 PM
 
@tereško how many char to use for description of an post
 
varchar max has not been 255 since mysql 5.0.3
 
@BrianS for mysql ?
 
Yep
 
@BrianS Why would you care about an average when define a column size??
 
7:31 PM
just use TEXT data type
 
Makes no sense
 
yeah but i want to know what to put for text(?)
text (2000)
 
nothing, nor you should use parentheses at all
 
don't use text
text columns have to be read from disk, they can't be read from the index
use varchar with an appropriate maximum.
 
here is the option postimg.org/image/x168f31rr
 
7:32 PM
@Stephen what are you talking about? Mysql 5.6 has fulltext index in innoDB
 
@BrianS use Varchar. And if size is a problem just set it to 64k like I said. That's what VARCHAR is for
 
hey mods :)
 
@ScottArciszewski gordon is AFK
 
stackoverflow.com/a/6381189/2224584 - would it be okay if I prefaced this with a disclaimer and a reference to stackoverflow.com/a/12118602/2224584?
 
how about MEDIUMTEXT
 
7:34 PM
why ?
 
Could I please get the hold removed on my question stackoverflow.com/questions/30535593/…. It is broad for a reason to provide a knowledgebank for the current security methods. Thanks
 
@BrianS what is the problem that you are trying to solve ?
 
1. prepared statements are safer
2. it doesn't tell them HOW to use this function (i.e. you must use a safe charset and wrap every escaped string in single quotes)
 
When did this become the moderation room?
 
@Machavity for PHP questions?
some time before I started coming here
 
7:35 PM
@Machavity its an "on-and-off" thing here
 
from mysql docs: Instances of BLOB or TEXT columns in the result of a query that is processed using a temporary table causes the server to use a table on disk rather than in memory because the MEMORY storage engine does not support those data types
 
oh sorry I thought it was, my bad
 
@KVohra95 Oh hey, I voted to close that. Your question is too broad
 
@ScottArciszewski Wut? No
 
@tereško There is an iOS application I'm developing and i would like to store description of a post the user will post, my question is what data type should i use in mysql?
 
7:37 PM
@PeeHaa: see my points below that msg for why I'd want to :P
 
@Stephen so, you are not using InnoDB?
 
Oh you are asking about the specific answer?
 
@Machavity could you elaborate why this is bad? It will give a range of answers showing the current methods. I have not seen one of these questions for 3 years so they will be out of date
 
Downvote and comment if you think it deserves it
imo
 
@tereško temporary tables (which are created by Mysql during many types of queries) are inherently MEMORY tables
 
7:38 PM
Also "prepared statements are safer" is not really true
 
@Stephen so i should use text?
 
Both can be perfectly safe
 
@BrianS
@BrianS no, you should use varchar
as myself and @Machavity said
 
@Stephen actually, in most cases temporary tables are side-effect of either bad query or bad DB design
 
@Stephen but how about if there is 1500 words, can VARCHAR handle that?
 
7:39 PM
that depends how long the words are
 
lets say 1500 char
 
to 2500
 
varchar has a maximum length equal to the maximum row length: 65,535 BYTES
 
@Stephen do you actually have any queries which use temporary tables ?
 
7:41 PM
@tereško yes, and i suspect you do to
 
@Stephen oh i understand now, make sense, yeah i will use varchar
 
@Stephen actually, I don't .. it has something to do with liberal use of EXPLAIN statement
 
@KVohra95 Because it does not have a single correct answer - the tl:dr version of this is here news.ycombinator.com/item?id=9065721
 
ever used a UNION? ever used ORDER BY or GROUP BY on a table other than the first specified table?
 
7:42 PM
@KVohra95 Because it's Too Broad. Put simply, it's not a specific question about a specific problem. Check out this post for a good contrast
 
Basically it will store more char according memory
 
ever used GROUP_CONCAT or COUNT(DISTINCT) ?
 
@Stephen UNION never
and the rest of the fields are indexed
 
Any answer is also opinion based - as what is 'best' depends on different factors for different people.
 
@DanLugg definitely unpopular. Just look at that pile of crap called XHP...
 
7:43 PM
8 mins ago, by tereško
@BrianS what is the problem that you are trying to solve ?
 
@tereško There is an iOS application I'm developing and i would like to store description of a post the user will post, my question is what data type should i use in mysql?
 
point taken, I see now
 
@BrianS ffs you've been asking this question for like a half hour now
 
@tereško having an index doesn't explicitly prevent the use of temporary tables. see dev.mysql.com/doc/refman/5.0/en/internal-temporary-tables.html: Users have no direct control over when the server creates an internal temporary table or which storage engine the server uses to manage it.
 
go look at the list of data types and find one that you think fits and use it
 
7:44 PM
@BrianS will you be searching that description for specific words or verifying uniqueness of it ?
 
If it ends up being too small, fix it later.
If it ends up being too big, nobody cares.
 
@Gordon I starred that just now because it was that bad that it were funny again.
 
Tsk, fine
"Both can be perfectly safe" yes, but just using mysql_real_escape_string() without understanding how to use it safely is probably going to lead noobs into a false sense of security
also, prepared statements separate the data from the instructions, thus making the chance of SQLi virtually zero
 
Yes that may be the case I was just responding to "prepared statements are safer"
 
they're easier to use correctly
that's what I mean by safer
 
7:49 PM
That is true
 
sufficiently sophisticated developers can make almost anything safe
even Ruby's open-uri gem
I'll add a comment and give the original author some time to make the amendment him/her-self
 
@ScottArciszewski That is that remote execution thing right?
 
@ScottArciszewski Yeah. Go for it. Give it some time and if OP doesn't respond I am more than willing to take action when needed. Be it downvote be it whatever
 
I can edit, but I'm not in a hurry to abuse this privilege
 
7:53 PM
@ScottArciszewski If it's a valid edit then make it. They don't have a badge for doing it for nothing :P
 
I've adopted a comment, wait, then edit workflow after talking with ircmaxell :P
but I also generally ask here first
 
In this case, on a legacy question, it's probably best
 
8:43 PM
good evenings :D
 
Working on 5.2 project... switch gears to 5.6... still types array().... fml.
 
working on a 5.4 project but having 5.5 on dev-box. build fails because I used array_column in tests... ^^
 
@hakre require-dev with the polyfill for that^^
 
@bwoebi I just added array_column as a private function to the test-case :D
the one from ramsey
then the code checker reminded me of n-path complexity violation ^^
lol
 
@hakre ahahaha
 
9:03 PM
@hakre n1?
 
nice one
 
Ah, gotcha. Thanks.
Well, I didn't understand a chatronym. I'm officially an old man.
 
Me too, but I know that one ^^
 
lol, likewise now. I can continue masquerading as a 21 year old woman.
 
tough, I can imagine that requires some skill and a lot of sports and discipline
 
9:07 PM
...on the internet. It requires a keyboard.
 
does it even require a keyboard on the internet nowadays?
 
Well, some sort of input device.
 
9:20 PM
hi all
 
@DanLugg direct neural response interpretation? :-)
 
 
2 hours later…
11:49 PM
@DanLugg seriously, quit
That's like people making you write with win98 compat...
 

« first day (1686 days earlier)      last day (3262 days later) »