« first day (998 days earlier)      last day (4176 days later) » 

08:00
@sectus 100/200K
and counting
@sectus probably normalizing i get less cpu usage right?
@sbaaaang , how many space do you have?
@sbaaaang , yes... and space... mysql does not need to build temp tables for searches
@sectus i got 1 TB but i use amazon s3 for db backups so the less size they has the less i pay :P
which is NICE!
ehehe
@sbaaaang , use MEDIUMINT for ids
@sectus but dude ids could be 255 i mean i can't limit ids :(
08:05
probably i'll never reach more then 456789 int
but who knows , and having limits on id will makes me paranoid :D
@sectus normalizing is the way right? i'll use 40% space more but i'll use less cpu and less php right?
in terms of scalability i mean it's better ...
@sbaaaang , normalize, and change numeric types... : ) later you would change it
@sectus right ok thanks both for your question answer and infos ;)
08:25
Hey people :)
@Jack: If you like, move your answer over ^^ - it's nice :) (if you fear the rep loss, duplicate it)
@hakre Hmm, I'll ask a mod to merge ;-)
08:38
Funny, room reservation questions are quite a popular thing.
I have used explode and string functions but I was looking for something smarter. I was afraid people asking "why you don't use regex" - now the oposite is the case :-D — DanFromGermany 18 hours ago
True story ;-)
@salathe Any particular reason to edit my answer that way? You didn't leave a reason, which is why I'm asking here.
@Jack the question isn't about benchmarking
Sure, but the typical complaint is that regex is "too slow" and using other string functions is faster.
There should be a regex.stackexchange.com
08:52
This wasn't so much about the difference as it was about the closeness.
@Jimbo The problem is that you never really deal with regex itself, but usually with an implementation.
@Jack Like preg_replace() etc I guess.. hmm..
Besides, not many people will phrase their question in a way that it singles out the expression only.
And that's if there's an expression to start with ;-)
@Jack So address that "complaint" if anyone ever raises it.
@salathe Sounds good on paper I guess ... in many cases you'd just get an anon dv ;-)
@DaveRandom I just found out that iOS version < 6.0 use the old WebSocket handshake protocol (with the two keys and the ugly md5 hash). I hate iOS 5.1.1 and lower.
08:56
md5 hashes are beautiful.
@Jack Suck it up, knowing you've provided a good, concise answer without a silly benchmark-all-the-things appendix.
@dragon112 Oh, you mean the one that was never standardised? Sounds about right.
@salathe Very well, anyway, the revision history will keep the retort handy ;-)
fn() use($foo); - does that even work? — Jack 3 mins ago
good mornings
@iroegbu monring
09:05
What does "yield" mean in #PHP? http://stackoverflow.com/q/17483806/208809
monirgn
Why is this question being upvoted?!
@Jack some users may be clicked on up arrow .. without looking at content :P
They somehow thought that fn() use ($foo) would even work in PHP?
@Alnitak, PHP is designed to confuse the hell out of anybody capable of logical thought. — Beetroot-Beetroot 7 mins ago
^ coming from a guy with a lotta rep in jquery :D
Gotta love it
@PeeHaa Yeah, it's easy to kick a language if someone states they can do something impossible with it lol
@Gordon Take that, C#
Cool!
09:27
@Gordon Now if only the "new" versions would be adopted faster :(
@PeeHaa Just like Windows Auto Update feature :)
7.5 more days till i'm free
I want to insert variable into database on insert event using trigger. Can someone please help?:
@Jack It shouldn't be that big of a deal if your code isn't entirely crap for a couple of years
0
Q: Retrieving values of php var in mysql trigger

KarimkhanI have php file which insert the sentence and perform trigger operation as below: < html > <body > <?php $s = $_POST['sent']; echo "Entered sentence : $s"; if (preg_match_all('/[^=]*=([^;@]*)/', shell_exec("/home/technoworld/Videos/LinSocket/client '$s'"), $matches)) //Va...

09:29
@Karimkhan lol $sql1 = "INSERT INTO table1 (sent)VALUES('$_POST[sent]')";
@PeeHaa In ye olde days, Rasmus used to log on to boxes and upgrade PHP. Maybe he could go back to doing that. :)
@Karimkhan (ab)using mysqli isnt mean you are safe
@salathe :D
@NullPoiиteя but it insert sent into database!
@Karimkhan what if any cool guy drop your database ?
09:31
@NullPoiиteя hhh, SQL injection. Actually it was not my main issue right now. But now i will take care of it. Could please how to manage it?
@Karimkhan manage sql injection .. ? :D
gods below .. i hate this place
2
@NullPoiиteя *what else?
Managing please.
i'm talking about my work, not the chat room
09:35
7.5 days till you quit or vacation?
here is the newest issue: client required a complicated system for attaching files to insurance policies (it involved adaptive scaling, SOAP, background services .. stuff). Now the masterful admins of the client duplicated the "accept-test" environment. The previous version of that environment used php5.3.8 .. but now they cannot install php-GD, because yum wants to force a version upgrade for PHP
... and now they want basically the whole attachment system take apart, because they do not php-GD on that one testing environment
... and i am constantly fighting the urge to throw things
lol, is gd discontinued with the newer version of php, or they just don't know how to install gd without upgrading php?
no, they are refusing the upgrade from php 5.3 because "the will not have time to re-test all the scenarios"
and then people act surprised that i have a short fuse
lol
is the upgrade to a minor version or 5.4?
who knows
their admins are so professional, that they request us to send them "scripts" for exporting mysql tables
09:44
@tereško pr0
pr0 testing environments which cannot possibly get upgraded because of unable to test scenarios... on the testing environment.
SOunds like a lot of fun talking to those guys.
1
Q: Insert correct arrays doesn't work

Anders HedeagerWell, now i am getting "has to be an array", before it had to be a string. Can someone help me out of this problem? Check comments. function publishPhoto() { var tags = []; var x,y=0; if ( harBilled == 0 ) { if ( profilSendt==0) { var c =0; ...

Look at the answers :) four from the same person.
09:51
do i have to ?
@Jack lol
@Jack Heh, flagged
Sounds like a rep farm to me.
I'm really surprised about how much love this answer has gotten: stackoverflow.com/a/8554054/871050
Probably very high in Google :P
@MadaraUchiha you have just got 1 more love
09:59
:P
> Yii: the framework where literally everything is a model, the autoloader takes 5 hours to fully understand and where caching doesn't exist.
But after those 5 hours, it works very fast yeah?
Hello
I have an error of 400 Bad request when I tried to access URL by file_get_contents
I'm using Yellow Pages search API
@MadaraUchiha uhhhhm am I reading it correctly that the only hack in there is the clearfix hack?
@iroegbu lol anyway google.com/… ;)
10:03
Ow wait. It's about that :P
lulz
URL is working fine when I run it on browser
@DaveRandom Yes, that one. iOS >= 6.0 use the standard.
Have been debugging it for many hours :p
@dragon112 I fucking hate ios7
Can anyone help me on that?
@PeeHaa How come?
10:08
@Jimbo ugly and again no real improvements
Besides some app management features etc
@PeeHaa Yeah, I watched the WWDC and was like "are you serious?"
@PeeHaa that is what apple do :P
@PeeHaa The app icons are awful
@Jimbo yes!
On first boot you seriously think you are setting op a winmo 8 device
@PeeHaa I just updated my iPad to iOS6..
10:10
@PeeHaa This image : The mail icon is indented, the message icon is outward and embossed.. what the hell were they thinking? Where has the professionalism gone?
It'll stay on iOS 6 for at least a year:p
@dragon112 I had to upgrade to test somethings
hello all! quick mysql question: any way to find out when (time or date or datetime) an index on a table was created?
@PeeHaa Meh I tend to use the simulator for that.
10:21
@dragon112 The thing cannot always be trusted :(
is there a way to save checkboxes in a session or post variable with different names?
{foreach $events as $event}
{html_checkboxes values=$event@key output=$event@key selected=$event name=$event checked="1" separator=''}
@Duikboot eeeeeh I have to puke now thank you
I got that code but they won't remember after a form submit where an error occures
I was thinking you are going to say that
Woahh... No answers?
1
Q: How do I log FTP activities?

Mr. AlienHow can I log FTP activities i.e upload/downloads of files, deletion etc, I searched for it but didn't found any reliable resource...

That is the only thing I have to do before my project is finished but
i can't get it working.
10:25
@PeeHaa I guess, but it's good enough for me at this point. When iOS7 is released we'll see
@Mr.Alien Not nearly enough info to be answerable. Also, that would depend on what FTP server software you are using, it almost certainly has something built in.
@DaveRandom nothing from the server side?
Hey guys, I want to send a form by using post. My file is .html and I don't want to change it to .php...... Is there a way to load a external php script??
You can't log events from a black-box application (your FTP server software) unless it informs you of the events.
how many browsers (if firefox, 1 profile = browser) are you using?
10:26
@dragon112 Yeah. It is kinda a waste of time atm, because there are just still too many bugs. I believe they just released a new beta yesterday though
@Mr.Alien Isn't that more for SuperUser / Serverfault?
should this work <form id="myform" action="send.php"> ?? would this load a .php that is in the same folder than my html
??
@PeeHaa Yes, beta 3. I doubt that'll be the last one, iOS 7 will reach beta 5 or even 6 (would be a first)
@Mr.Alien Belongs on SU. Also doesn't your ftp server log that shit? What server are you using?
@Prasanth daily: 2 (opera as primary, firefox as secondary) .. but i have installed IE10, Chrome and Safari
10:27
I mean, you could implement a packet sniffer and the entire FTP protocol in all its flavours and oddities and bits bolted on the side by random applications and watch network activity on port 21 and inspect the FTP server software configuration to resolve FTP file system paths to local file system paths. Or you could just RTFM for your FTP server software.
@PeeHaa well, it is programming related tool so should be posted here.. :)
@Mr.Alien Sorry man, this should be on a different site :)
neh. That would mean I could also ask how to connect my keyboard because it is a programming tool
2
Need help on wordpress. Anyone knows how to install WP for localhost?
10:29
ftp? Didn't they only use that in the 80s or something?
hmm stackoverflow.com looks down to me, I wonder why.
I always get "no data received" in chrome.
@PeeHaa There are a lot of tools on this programming website.
@hakre Who cares? Chat still works :)
Well I thought it should be programming related :p
@DaveRandom lol
10:30
yeah, so it's not only me?
@hakre Nah, it's you.
I mean people asks notepad ++ questions, so why not the ftp client
@DaveRandom I'm trying to sniff facebook messenger (mobile) geolocation data so I can fake my position in messages and therefore lie to people.
@hakre Works for me. Clear DNS cache?
@DaveRandom good idea; but didn't work :(
10:31
morning
Should HTTP/2.0 have persistent duplex connections (Persistent as in websockets, not as in Keep-Alive), and why?
@rdlowrey opinions.
Getting this error while installing wordpress on local host

" Error establishing a database connection "
@webarto Why not just phone them and withhold your number? :-P
@NathanLee Google
10:32
@BenjaminGruenbaum Isn't that just pipelining?
@NullPoiиteя aaaa I see
let me read that
@Mr.Alien - Did. Tried all permutations. Still not able to resolve.
No worries, I closed it my self
@hakre What IP are you resolving stackoverflow.com to?
what is wrong with this regex
10:33
@DaveRandom I faked this but I'm not able to set location like this ... I also found that's it's not easy to spoof this shit from browser.
preg_match('/account\/(.+\/.+){1}\/*/i',URI::current(), $matches);
URI::current() = account/listing/product/rrrrrrrrr/
@DaveRandom wat?
@DaveRandom $ ping stackoverflow.com; Ping stackoverflow.com [198.252.206.32] mit 32 Bytes Daten: Antwort von 198.252.206.32: Bytes=32 Zeit=106ms TTL=53; ...
it should take only listing/product but it takes listing/product/rrrrrrrrr/
@Kuraiinazuma Greedy quantifiers
10:34
how can i fix it?
Also don't use / as a delimiter when you need to match a literal /
@Kuraiinazuma plug it in rexv.org
or that one from Dave
This is how my HTML looks like: http://pastie.org/private/n5qmo2t4xolymfkg5ffbuw
I can't change the ev1, ev2,ev3 thing but I have to remember the values. So I can see if it was checked or not.
@NathanLee English please
grrr, I just get an empty response. also in opera.
I will try curl now.
10:36
Can anyone help me in wordpress? - @DaveRandom
@hakre I resolve to x.x.x.16, try sticking that in your hosts file temporarily
im afraid to change (.+\/.+) to (\w+\/\w+) just in case url would contain non alphabetical symbols
Also those round-trip times are shocking :-P
@Kuraiinazuma Read that article I linked down to the end of the Laziness Instead of Greediness section
@DaveRandom thx, works.
@DaveRandom ok
10:39
Greed, laziness and possessiveness make pcre a happy fella.
@Kuraiinazuma Here's a clue: you only need to add a ? somewhere to fix it ;-)
@DaveRandom ima gonna add it everywhere UNTIL IT WORKS !!!! jk
? all the things!!
Seriously though, lazy/greedy quantifiers are an important and quite basic concept in regex, I'm not giving the answer out for free because you need to understand it or you will have the same problem again very soon
@NathanLee Probably not, Wordpress itself is beyond help :-P
10:42
@Kuraiinazuma you might use something like this
@webarto That's gonna be pretty difficult to fake. Just looked at it for a few minutes, don't have a clue how the mechanism works :-P
Every time I perform a successful install of Wordpress I visit the bar and get drunk.
3
MGE
MGE
Hello, I have a form, and the browser write information saved before. How can I prevent this?
@MGE Wha?
@Jack You might have a higher success rate if you reverse the order
10:44
@DaveRandom lol
@DaveRandom I just randomly poked and nailed it :P Wireshark was difficult to me, but I used Fiddler2 and also discovered I can send messages in past from now :P Need to root Android to inspect what it sends from mobile app.
@Jack That's the EA slogan right? Challenge everything!
:-P
@tereško I notice you changed you bootstrap process for your framework
your*
@MGE try autocomplete="off" .. if that doesn't work - start randomizing field names
@MadaraUchiha not really .. started adding the functionality for aliasing URLs
@tereško Aliasing? How's that different from routing?
10:47
it's kinda part of it
it's basically for when you need to have multiple URLs pointing to same code
@tereško Can't routing handle that?
I mean, you just point several notations to the same resource and action, don't you?
you can , but in time it ends up creating clutter in your routing list
@tereško I see
So... aliasing to the rescue?
and every time you need to chnge a route, you also have to remember which others you need to alter
basically .. for cases when /home need to point to the same place as /user/landing ... or something
user895378
@BenjaminGruenbaum Well the problem I see with that is that HTTP has always been about statelessness. Regardless of whether or not we want to write fancy applications that duplex information back and forth, the vast majority of HTTP resources will still be stateless, single-connection-needed static files. Requiring persistent websocket-style connections is a violation of that principle. If anything, I think there should be some sort of negotiation for that sort of behavior.
user895378
10:51
It shouldn't be baked directly in as a requirement. And seeing how websockets already address upgrading from a regular HTTP connection to one that offers full-duplex I don't really see the point in HTTP/2.0 stepping on the toes of RFC 6455.
@tereško So how do you implement it?
i'm still thinking on it
I imagine you put some sort of identifier on the main route, and have the aliases point to that?
i hadn't opened that project in 4 month
(last commit is 16 days ago :D)
10:52
yellow
Hey @HamZa
@MadaraUchiha that was when i started thinkign =P
here is a better question: do you do this before routing has split the URL or after? And why?
user895378
@BenjaminGruenbaum TL,DR; Statelessness is a major plus for HTTP. I don't think we should be so quick to discard it.
@tereško I imagine some sort of foreign key (with the lack of a better term) system.
The aliases are treated like routes, but instead of specifying the resource/action/whatever, they point to a main route, which specifies it there.
Then you just take that from the Route object it returned.
It can be entirely transparent, without the Router even knowing about it (it only cares that a valid Route object is returned)
10:55
Hey @Jimbo, you got any jobs going at your place?
finally ^^ #account\/(.+\/.*?)\/*#i
I just prevented myself of ranting about ZF2 source.
@rdlowrey I expect the rest of that (minus the TL;DR) in the dart room :)
if i change that to #account\/(.+\/.+?)\/*#i it will take additional symbol
I've got to go back to studying right now, so I'll talk to you later
10:56
however it still has slash at the end
@DaveRandom Hmm, depends, well we advertise them on our website but may just collect CV's... middleware app developers and front end developers, why?
@Jimbo Because I am unbelievably f*cked off with this job and I am about to go into a "meeting" where I'm essentially going to get bollocked for not doing things that I can't do because the company won't spend any money on the things I need to do them, and I may tell them to go fuck themselves.
Sounds like a dream job.
@Kuraiinazuma what are you trying to match ?
@DaveRandom Ah crap man, you've gotta hold your tongue until you find another job to move to, and then tell them
10:59
@HamZa to the rescue!

« first day (998 days earlier)      last day (4176 days later) »