« first day (1068 days earlier)      last day (3879 days later) » 

@Mr.Alien Let me build my career first. :D
 
vaah vaah
 
@Gordon, this is whati meant by AOP approach: gist.github.com/Ivan0x32/6607047
 
I knw we start with a project which ends up in few days lol, we don't even complete it.. though my cms stuff is going pretty good
 
Is it viable solution or i better stick to creating those smart controllers?
I wish i could've read all those things somewhere :(
 
10:05 AM
@Mr.Alien but my not going good. You will understand it when you work far from home.
 
@YogeshSuthar I worked at ghatkopar, still I used to return home and work.. so urs is nothing in front of that
 
@Mr.Alien hmmm
 
@Baba Also old news ;) I have been following that thread and have seen you there :D
 
@PeeHaa Just saw it again and still very funny ... I guess i was drunk writing that too
Just asking my self how i came up with NullBabeException
 
10:08 AM
morning
 
@AlmaDoMundo what is it for?
 
@zerkms I need to estimate variable size for some purposes to predict if I can do some further actions in script
 
oh... good luck then
 
currently, no luck (
@zerkms so, actually, it's not too late to reconsider application principles (some of them), but that would be difficult, of cause. But if there's no possible solution at all, I'll think about that. But I should be sure that it's impossible in any way
 
10:13 AM
you need to wait for some php internals monsters
@NikiC @ircmaxell
 
@Ivan0x32 I know what AOP means :) If you feel like you want to clutter up your code with something that complicated, then go ahead.
 
or @Gordon ? :p
 
not sure :-)
 
ok, I'll wait - since changing some root things will be painful :p
@zerkms by the way
how to become such kind of 'monster' so I would be able to resolve such things by myself? :p
 
they probably have a better explanation for that, but I personally think you need from starting reading internals mail list + sources
plus may be buying some medicine
 
10:18 AM
@AlmaDoMundo Uuuuhm, why could you possibly need that kind of information?
 
Thanks for help and advices!
 
Also, there is no such thing as the memory usage of a variable, because the memory or parts of the memory of one variable are commonly shared with other variables...
 
@zerkms got the point about mailing lists. but why medicine?
 
@AlmaDoMundo it's heavy for mental
 
@NikiC I need that to predict if I can do some operations in future (in simple case it's "if size > X then do Y else do Z")
 
10:20 AM
@Gordon, btw that code was to check if I know what AOP is :) Thanks again :)
 
@Ivan0x32 np
 
@zerkms well, programming itself is heavy for health then :p I remember myself creating simple compiler for Oberon language (subset of it) - so I hope, I can deal with such cases :p
 
@AlmaDoMundo you're crazy. you must be crazy ^^
 
why?
my goal was to extend floating point operation so they would return "normal" algebraic values for standard limits (such as +INF if it's 1/+0 or -INF if it's 1/-0)
 
@AlmaDoMundo So call me maybe?
 
10:27 AM
@Fabien call what? :p
 
@Fabien Hi ;)
 
@AlmaDoMundo Taylor Swift lyric :P Crazy.
Hey @Recode
 
and yes, hey, @Fabien :p
ah, well. At least I agree now with my boss joke - about "If you can not resolve a matter via SO, you can not resolve the matter" :\
5
 
@AlmaDoMundo It's true, because you can answer your own questions^^
 
I can not now :\ The weird thing that all my question here either have an answer "no, it's impossible" or no answer at all :\
so I now have a though - may be I'm always doing weird things ? :p
 
10:35 AM
@DaveRandom Where did the NUL terminator go? Didn't you have that in yesterday?
 
10:51 AM
@Mr.Alien It's the worst thing you can give (especially to beginners).
 
stackoverflow.com/q/18869303/1542290 <--- sorry, voted wrongly, should be fav source
 
@PeeHaa for php, agreed, they are using mysqli_*, no escaping sanitizing tutorial, etc, but it's a good source to get started atleast, their lang is friendly
 
@PeeHaa Why has this question been put on hold?
Actually it's just a X-Y problem. Still something that could be valuable to later readers. If the title is altered.
 
10:58 AM
Morning.
 
@NikiC With it, the resulting PHP string had a trailing null byte. RETURN_STRINGL doesn't (seem to) require that it be present because I told it the length of the data. I must say it's very confusing, the param parsing API and RETURN_STRINGL deal with the PHP string length (they don't count the trailing null).
Should I create the string with the trailing null and then pass len - 1 to RETURN_STRINGL ?
 
php strings are always zero terminated
if you'd develop with a debug build your current code would throw a warning ^^
@DaveRandom String lengths are nearly always without the NUL byte at the end. I think only the hashtable APIs include it (for reasons that are beyond me)
 
@NikiC That's really confusing. I can sort of see why (if (!valuelen) is nicer than if (valuelen == 1) or whatever) but it would be nice if it was at least mentioned in the parameter parsing API doc that this is how it works.
I'll fix it up anyway
 
@DaveRandom not confusing, this is standard practice
including the NUL in some places, that's the confusing part ;)
 
11:15 AM
@NikiC on a semi-related note, is there a better way to figure out the malloc size for the result string than iterating the input string twice (once for get-length, once for actual conversion) without a bunch of reallocs?
 
@Mr.Alien There is no reason to give anyone w3schools ever, except as an example of how not to make a howto site for anyone looking for advice on that..
 
hi @SweetieBelle by the way :p W3C != w3cschools ?
 
Noobs, can't even use google for linking images
@Starsong I don't advice, but I found d resource helpful for a beginner who has absolute no knowledge of the web
 
@Mr.Alien I totally disagree. A beginner has the best possible opportunity NOT to pick up the horrible habits fed to him/her by w3schools.
@AlmaDoMundo w3schools != w3c.
 
yes, I know (just to clarify your advise a little)
 
11:20 AM
yeppo sorry missed the sarcasm before
 
@Starsong I don't see it that horrible tbh
:p
 
wc3schools produces garbage and collection of bad practices & architecture glitches
 
@AlmaDoMundo can you show me some say for css?
 
i don't know about css (intermediate level since I'm not a designer)
 
@Mr.Alien Is mixing up html with php enough: w3schools.com/php/showphp.asp?filename=demo_intro ? :)
 
11:23 AM
hi, @Leri - long time :p
 
@LeviMorrison docs have $SIDEBAR_DATA defined, it's more about experience really, the layout should be consistent across all pages don't you think ?
 
@AlmaDoMundo Yep, busy in real-world. How are you? ;)
 
@Leri trying not to hang here too much :p caught myself at 2:00 AM with reviewing & reading wiki
 
@LeviMorrison docs doesn't need a sidebar but it should have the same layout as the help page, don't shift the content over it looks awful ..
 
11:27 AM
@Mr.Alien Getting started with bad practices is awful. Being friendly, does not mean being useful.
 
@Leri Knowing what's bad practice when learning something new is tough though. No matter what I read, usually someone in here thinks it's garbage :P
 
@JoeWatkins It's PHP. Making something consistent would be inconsistent.
 
@Fabien Depends who thinks that it's garbage.
 
@Leri I quit my opinions on that :p
 
@Mr.Alien w3fools.com ^^
 
11:29 AM
:)
 
Also sometimes you need to realize yourself that it was all wrong but that's painful in most cases.
 
I think though w3schools is a bad resource, learning yourself by reading around why it's a bad resource is a valuable skillset.
 
@Leri level-up is always painful
 
@Recode Am aware of that...
 
@AlmaDoMundo I'd say it's painful from noob to someone who understands stuff but not intermediate yet. From the latter position you can start making plans how to level-up.
 
11:33 AM
@Leri hm. May be - but noob could not be involved in something like projects with VLDB or high-load. But when you discover that 'all you did before in that huge application X is bad practice because ...' - that could hurt :p
 
@AlmaDoMundo if you discover: all you did before in that huge application X is bad practice because ... you are a noob, at least were, while doing project. :)
 
@Leri disagree. Real sample for me is @Gordon advise (sorry for ping) - when I've discovered that static methods are evil and could cause troubles.
 
posted on September 18, 2013 by bjori doesn't blog

In my previous blog post I mentioned that the 1.5.0 release of the MongoDB driver for PHP has improved notification support using the PHP Notification API, and showed off a fairly useless (but fun) progress bar. Now its time for a little bit more practical examples using this system: Query logging and profiling. Those of you who clicked through to the github Pull Request may have noticed the

 
@AlmaDoMundo That's not in all you did category, is it?
 
@Leri and I always used such things as singletons and so on (obviously, relies on static methods) - so that was painful for me to know that I always was doing architecture glitch
@Leri ah, yes, of cause - not all
 
11:39 AM
Off to real-world work. See you later. ;)
 
see you
 
is there any way to increase readablity?
any tool available to past this type result and view perfectly.?
 
widen your screen?
 
maximum...:)
 
reduce font size?
 
11:45 AM
no this is result in CMD.
command line.
 
Save it to a file and view the file?
 
a tool must be there..
that will view similar..
 
@Fasilkk ctrl + and ctrl - should increase/decrease font size
 
any tricks/tips to automate image mapping of a country map? something like the MagicWand of Photoshop which outlines the edges perfectly
so that the co-ordinates of <area> tag are auto generated
 
@Gordon :( not working.
 
11:48 AM
instead of manually plotting
 
I think a web-tool will be there to convert..
 
@Fasilkk windows or linux?
 
windows..
 
on Win.. hm. I guess there's no native way
 
that result form sublime text editor. but im facing this problem from cmd also.
 
11:49 AM
Have you tried googling how to reduce windows font size for cmd?
 
so im searching for an online too to convert it..
do you know what is the name of that type of formating..
?
 
@Fasilkk powershell?
 
Fasil you tried saving output to a file then just looking at the file in Sublime?
 
@Fabien yes, i have tried..
 
@Fasilkk on windows you can change the font size by left clicking the window icon of the commandline window and choosing properties. there is an option to change fonts
 
11:52 AM
@Recode, powershell is not this. I mean formatting table using +,-,|
 
@Fasilkk just because of fontsize
 
@Gordon, @Recode what will do if it is much wider? reducing font size not a good solution. at least may work, thanks. anybody know a tool to convert it automatically?
 
use powershell instead of cmd
 
@Fasilkk your table-rows are 1,6 lines long, so how about limiting the cell-width (having 2-3 lines per cell) ?
 
push your data to a file and view how you like
 
11:56 AM
@Fasilkk But I also think, pushing the data to a file would be the best solution, as others suggested
 
@re
 
@Fasilkk you could increase screen buffer size width... so the cmd window occupies more space and allows more text to show in one line
 
any tricks/tips to automate image mapping of a country map? something like the MagicWand of Photoshop which outlines the edges perfectly
so that the co-ordinates of <area> tag are auto generated

This is what I've tried so far
0
Q: Convert SVG Co-ordinates to HTML Image Map Co-ordinates

asprinI followed http://stackoverflow.com/a/7669029/1223045 's instructions to automate the process of plotting co-ordinates on an image and was successful in generating the SVG co-ordinates for a area. Now in order to use the same co-ordinates in area map, I will need to convert it to its equivalent ...

 
@ThiefMaster : For the novice dev , it is required to be simple. No one can goto sql injection without reading what is basic sql connection. None of resource is bad resource. it is based on the person who takes it.. — Rajesh Subramanian 1 min ago
.............. (guess which awesome site the discussion in the comments is about ;x)
 
yahoo answers? @ThiefMaster
 
12:06 PM
@DaveRandom you cannot consistently insist on inconsistency; it too is inconsistent ...
 
:-)
@ThiefMaster But yeah I had the exact same discussion yesterday with somebody
 
1 min ago, by Joe Watkins
@DaveRandom you cannot consistently insist on inconsistency; it too is inconsistent ...
^^ paradox alert!
 
@kaiser See those two comment. 1 from me and one from @prix?
That's no question. That's a RTFMFM request
Read The Fucking Manual For Me
 
lol
 
@PeeHaa I was searching for questions that ask for building tables (or other HTML MarkUp) from looped datasets to place an answer using DOMDocument and simliar. Couldn't find one, then you posted that. Searched a bit further and found severl of those closed, without anyone ever saying "basically it's that, but you could as well do foo, bar and baz for this task." That's why I was asking.
 
12:17 PM
@kaiser What is the question you are having now?
I am known to love my dom ;)
 
I don't have a question. I have an answer. Jeopardy situation.
:D
 
:P
 
:)
 
@kaiser If the community would really benefit and you are sure it is on topic and ir is not a dupe you can always add a self answer question on SO
 
Sorry for the non php question (mysql chan is dead :/), but I would like to select all records inserted yesturday OR ealier
I have:
`SELECT * FROM `stats` WHERE DATE(`stats_date`) <= DATE(DATE_SUB(NOW(), INTERVAL 1 DAY));`
 
12:20 PM
I hate git
6
 
can anybody confirm thats correct?
 
instastar
@deacs where stats_date is set to NOW() when you insert the row?
 
yep
 
@PeeHaa I know how the system works. Just thought that my SO-search-foo is rusted.
 
using the date type
 
12:22 PM
@Gordon You Would :-P
 
@ircmaxell I do
 
exactly!
 
@kaiser Eeeeeeew wordpress ;-)
 
@DaveRandom I just tested it with same fake data inserted with the date of yesterday and ealier, seems to be working
thnx anywho
 
@PeeHaa everybody has to eat :)
 
12:26 PM
BTW you have one of the nicest profiles I have seen :)
It's all icony and stuff :D
 
Thanks :)
 
Is your bread only WP btw? I think I only see Wp stuff on your github
 
@kaiser Yeh but you don't have to eat poop
 
How many of you guys actually pay for your github?
 
@PeeHaa No, but mostly. And I have the other stuff on private repos on BitBucket.
 
12:28 PM
@Fabien I do
 
@Fabien I do as well, and @rdlowrey
 
3
Q: Has anyone ever hacked Stack Overflow?

user1671639While chatting with friends about hacking, a guy said that "if a site is getting popular/ or any competitive, it will somehow face severe hacks. Some used to expose it, others hide it". Out of curiosity I wanted to see if any such thing happened to Stack Overflow. Since Stack Exchange (being 5 ...

/me feels all warm and fuzzy there :-D
 
> Yes, ircmaxell hacked Stack Overflow once, although not intentionally.
@ircmaxell if you just stumbled over it, then you didnt hack it! :P
 
@kaiser Huh? WTF? Is that something like community user?
 
Do you guys also deploy to your site(s) from git?
 
12:32 PM
@PeeHaa Nope. Invisible UniCode characters. Discussed here
 
Lest we forget that "Urinary Slob" is an anagram of "Ruby on Rails". Lest we forget.
2
Bahaha, I love this guy ^.^
 
@kaiser Yeah that's what I thought, but why is there a button with meta / main on there?
 
@Gordon I got administrator access to the box, and had raw access to the database.
 
@PeeHaa in the upper right?
 
yeah
 
12:34 PM
@ircmaxell I know. but by accident. I mean, it's not like you did anything. you stumbled over it because the server was misconfigured
 
@PeeHaa every user profile got that.
 
Yeah...
Ok, off to work. Later
 
OW WTF I just picked one that didn't have it
 
@Fabien yes (sometimes)
 
12:37 PM
@Fabien Depends on the team I work with
 
How else do you deploy?
 
sometimes ftp
 
@kaiser Aaaargh why do I have a WPSE account????
At least I don't have any posts or rep
Oh it's OK, I got one to flag something at some point it would seem
 
@DaveRandom member for 10 month. guess you got a badge or hat for it.
 
@PeeHaa Fair enough. I take it that's one good reason to have a private repo. Deploying a site.
 
12:41 PM
I never went in for the hat-whoring, it was a stupid stupid concept
 
@PeeHaa What about him?
 
@MadaraUchiha ?
 
@Fabien Depends on the target. I'd use git through pref, if that's not available/practical I'd look at the other options, whatever they may be, and choose the least crappy.
 
@PeeHaa That user you linked, what about him?
 
Why? :P
Read the discussion
 
12:43 PM
Because I don't see anything special about him? :X
 
He doesn't have a meta account
I just found out that on apple.se there is a switch
 
@DaveRandom Fair enough.
 
-4
Q: waiting for help anybody please

RajanHow can I stop access to WordPress from cPanel ------>>(by doing From wordpress) or How can I stop making changes to WordPress from cPanel--->>>(by doing this from wordpress)

A typical day on WPSE.
 
Awesome title
 
Damnit I need 24 moar rep to downvote
 
12:44 PM
@PeeHaa I don't think all users have a meta account.
Users who never visited meta most probably don't have it.
 
I know that
 
> Vote Down requires 125 reputation
:-(
 
It's about the switch on the profile
The fact that it is there
 
@PeeHaa It's not there for users that don't have a meta account
 
12:47 PM
@DaveRandom just ask some random question. I'll upvote ;)
 
"Why is WP the worst PHP-based CMS ever created?"
That'd be a self ask/answer though
 
@DaveRandom Triple the rep then!
 
@DaveRandom A: "Because people tend to forget that there's Joomla and Typo3 when asking such a question."
 
@kaiser Don't forget MediaWiki :D
 
@PeeHaa do you know if there's any way I can modify /php repos I have commit access to via github (I'm guessing I can't but just in case I missed something obvious)?
 
12:49 PM
@MadaraUchiha Never dealt with that. But thanks to you I know another thing to avoid now :D
 
Just want to merge a PR without having to clone the git.php.net mirror
 
@kaiser I still wake up in the middle of the night after a horrible horrible nightmare involving Templates and JavaScripts
 
@DaveRandom IIRC you can do an onpage edit. That still clones it, but you can avoid all the rest.
@DaveRandom Just one thought: WP isn't the worst PHP based CMS in the world. Yes, you got callback hell, globals everywhere that change state silently in dozens of edge cases, etc. But you got a huge community like WP.SE that cures lots of the pain. The fact that makes WP the worst PHP based CMS is something completely different: The low level entry barrier for fucking stupid wannabe developers who ruin your day with the paid shit called code they load on you via your clients.
 
good afternoon
 
I guess everybody knows what filters and hooks are in WordPress? In short: plain function calls that let you either modify a variable or echo something. Here's the problem: Some idiots (a.k.a. "developers") place filters and hooks in their plugins or themes. Those were originally meant to be used by other, third party developers. But those guys use their own filters and actions. The result is called callback hell and is like the newage GOTO statement of WordPress. That much about worst.
And the really nasty thing: You IDE can't follow those callbacks from their execution point (the filter/hook call).
 
12:58 PM
Wordpress sucks.
:(
 
:p
hi, @tereško
 
@DaveRandom Modify how?
Push to it?
 
@PeeHaa I just want to merge github.com/php/web-doc-editor/pull/2
 
Are you a repo member?
 
I only created it so you could see the diff easily, I'll just delete it and do it directly to git.php.net
@PeeHaa I am, as are you
 
1:05 PM
Isn't that something you also have to setup on the github side per org / repo?
 
Presumably so, I was just wondering if you knew of a reason why that would not be the case/how I could work around it
 
The obvious way around is is the usual: start annoying @salathe way ;)
 
He's been slacking off of late, doing that whole RL thing I think :-(
 
user895378
@DaveRandom + @Fabien Yep, I pay $7 a month for the micro thingy so I can have a couple of private things in the same place with my other stuff.
 
@DaveRandom pffffff RL
 
1:08 PM
inorite
 
RL AKA GTA V
 
^^ this
 
user895378
^^ lol
 
lol. Those GTA people are even more strange than those applefanbois
:D
 
I have yet to push the shiny button on that, I have too much crap to do before I lose a few months to it
 
1:09 PM
I'm heartbroken that they don't release the PC version at the same time. Ah well. I can wait.
 
@PeeHaa It is pretty much the only game/series I am interested in, but I do have a weakness
 
@DaveRandom HA!
I haz found yur weakspot!
 
I bought a PS3 just for GTA IV
 
@DaveRandom it still exists? I remember myself playing GTA 2 on PS..
 
Maybe that's why they released it now. They probably have a contract with MS/Sony for additional sales before the next gens arrive in a month
 
1:11 PM
@DaveRandom considering it too.
 
Great. Asked question, deleted question, googled question, found own question as #1 search result.
 
I played GTA IV to death, put Fedora on my PS3, thought "well, that was pointless" and then barely even touched it since.
 
You should all wait for the PC version, if not for being able to play with me, then for the mods. Or buy both w/e.
 
@kaiser That's why we have the undelete link.
What was your question?
 
Compare console GTA IV to modded PC GTA IV.
 
1:12 PM
@Fabien I do not own a PC anywhere near good enough
 
@MadaraUchiha Don't want it undeleted. Just funny how fast it's indexed by google.
 
GTA IV was poor imho
 
@kaiser There's a reason Google calls it "realtime" in the sitemap.
 
and even though the antialiasing on the 360 for the new GTA V sucks, it's still impressive how much they've managed to push out of the console with the draw distance
 
Rockstar have always been great at pushing the limits with GTA. San Andreas was just insane for the PS2.
 
1:14 PM
What does ~ symbolise in nginx?
 
Regexp IIRC
 
I'm trying to block access to a directory. I am unsure why this isn't working
location /dir/(.+\.php)$ {
        deny    all;
}
dir is actually a symlink too.
 
The first GTA I loved was the one on the PSP.
Rockstar totally pushed the PSP to its limits, and also showed that high powered story-driven games ARE suitable for mobile play.
 
All I used my PSP for was watching movies during lectures.
 
My PSP probably did 100k miles in flights, stayed in more cheap hotels than most people will in their life.
I used it for movies, music & gaming (Lumines is awesome).
 
1:19 PM
@Fabien location ~ /dir/(.+\.php)$ {
 
Definitely a good system. Especially jailbroken. :)
 
Bought on release day, it's a bit battered but still works as well as ever.
 
That phonebloks thing on the right is awesome -->
 
@DaveRandom No joy, lamephp.com/dir
 
@Fabien What's the name of the index file that's serving?
 
Why not just location /dir {
 
I've tried a few things, that included.
Just switched it back to that now and it's still accessible.
 
@Fabien how about deny from all?
 
deny all works fine on my main site. So that syntax is right I presume.
 
And I'm in the office, what's going on?
 
1:26 PM
@Fabien nginx will blow up if you configure something with the wrong syntax, can you show your full config file?
@Recode nginx != Apache
 
@DaveRandom yep, just read it's nginx
 
@DaveRandom full config
 
Also don't use mod_access_compat directives if you can avoid it
@Fabien try location ^~ /dir/ {
 
@DaveRandom lamephp.com/dir/index.php that worked thanks.
 
@Fabien The others you tried were getting eaten by location ~ .php$ {
 
1:32 PM
hi guys!
 
Lousy ~
 
@Fabien Read the second <ol> at wiki.nginx.org/HttpCoreModule#location
Also the example config in that section may help clairfy
 
@Mr.Alien huh? :)
 
@DaveRandom ah awesome thinks. Bookmarked too as i am sure I will need this resource again.
 
@igorw still no response to my DM :(
 
user895378
1:43 PM
@igorw I'm going to preemptively offer all my +1s for your functional programming advocacy on internals going forward :)
 
Jesus Christ the javascript chat is full of energetic social people.
I'll ask here, anyone know how comet chat is keeping track of tab open or close in between page loads and keeping messages loaded? I'm building a small custom chat app and need to know how to keep open tabs if they were left open and keep the messages there (loaded from mysql or are they stored somehow in browser cache?)
 
so @Fabien whats new with your site today?
 
@reikyoushin Nothing much. Just securing postgres gui, trying to at least.
 
@Fabien nginx + postgres eh? not the usual ones i see on a server ^-^
 
@reikyoushin Blame @PeeHaa :)
 
1:56 PM
Yes! I have converted another soul!
 
It's my first time with postgres, and only really my 2nd with nginx.
My linux experience is essentially a few failed server setups, even less successful. Never fully set one up for use before.
 

« first day (1068 days earlier)      last day (3879 days later) »