« first day (614 days earlier)      last day (4334 days later) » 

3:08 AM
How do you deal with a user who continually abuses the people trying to anwser his/her question by replying to their comments with strings of obscenities multiple times? I and a few others have flagged his comments, but I believe his account might need moderator attention.
 
user557846
3:20 AM
let me guess "http://stackoverflow.com/questions/11130854/exit-popup-redirect-execute-on-exit-only"
 
user557846
I flagged them to, mods are usually fast, just wait it will be closed and he will probably be suspended. i wouldn't keep feeding the troll like you are however
 
@Dragon Yep.
I wasn't trying to feed the troll. I was trying to subdue him. But I've given up.
 
user557846
i have some duct tape, we could use to tape him to his chair, ther than that jut leave him be, im sure a mod wil get to it.
 
@Dargon haha :) I was hoping that a mod would protect the question. He only has 1 rep so he wouldn't be able to comment on his own troll post!
 
@PhpMyCoder Flags are the way to go.
 
3:25 AM
@LeviMorrison Good! Sounds like that was what some others and myself already did.
 
user557846
i removed the unrelated php tag, that way i never see it again :-)
 
user557846
suprised it hasent got 5 close votes yet however
 
@Dagon It only needs one more..
What was removed?
 
Hi friends, I am a wordpress user.. I want to execute php shortcodes within custom fields.. is it possible?
 
@Desizner shortcodes? You mean shorttags like <?=?
 
user557846
3:30 AM
nope
 
user557846
wordpress
 
<?php echo do_shortcode('[download id='. get_post_meta($post->ID, 'did', $single = true) .' format=5]'); ?>
I want to execute the above shortcode automatically in custom fields and store the number of downloads integer in it.
 
user557846
i dont believe so, but i could be wrong
 
I am able to execute that shortcode in template files such single.php and other files.. But i am looking for a feature to sort posts based on number of downloads.. for tht i need to store the number of downloads within the custom field
 
user557846
search S.O - if no related question, post one.
 
3:32 AM
i too don't know whether is it possible to execute shortcodes within custom fields...
Ya sure.. @Dagon :)
 
4:01 AM
@ircmaxell @rdlowrey @gordon @NikiC I have officially picked up development again on the new SPL. I threw out much of what existed before for a much more object-oriented approach. Currently it only defines some interfaces but will add implementations later on.
Your suggestions are welcome.
For the next 8 weeks I will not work on Friday, so I will be working on this instead.
You will also notice that Queue, Stack, and LinkedList are notoriously missing. :)
 
@LeviMorrison Wouldn't that be better done in the PHP source code (in C)? Often arrays are used in heavily looped sections of code where too many method dispatches can have a noticeable impact on performance.
 
@Paul The final implementation will be in C. It's way too much work to start work in C without a working idea.
 
@LeviMorrison Nice, that sounds good then. Good luck.
 
4:19 AM
I started a thread yesterday on S.O regarding " Creating a separate page to pass custom fields from parent post " http://stackoverflow.com/questions/11120195/creating-a-separate-page-to-pass-custom-fields-from-parent-post

And i got answer for that too.. Now i am looking to customize it a bit.. Now the download pages are like download/?fileID=234534 , can we have better permalinks for download urls and to have custom post title for each download url.
 
@Desizner Yes, what you are thinking of is called a Front Controller. Search for that and you will find some helpful articles.
 
@Paul thanks.. i will search on that.. btw i am using Wordpress
 
@Desizner oh, I don't know much about Wordpress, it might make that harder. What I have seen of wordpress I have disliked strongly.
 
@Paul It's ok.. Yes, many experienced developers prefer custom php frameworks to wordpress.. But i started a site on wordpress and it has more than 2000+ posts, so i can't lose all those posts now if i change to other frameworks.. so trying to fix things on wordpress itself..
@Paul Sorry, but is there a way to do it using .htaccess? I have seen few change their permalinks using .htaccess.. I will search on this.. in case you know pls share your views sir
 
@Desizner You could do it with htaccess, that would be an ok way to do it if you don't have too many that you need to customize. That is probably the easier way if you aren't having too many.
 
4:32 AM
@Paul I have download url for each post.. so it means i am having 2000+ download urls as well.. am just thinking to drop ?fileID= from the permalink and make it look like domain.com/download/ID
 
@Desizner Oh, yes, you can do that. That should just be a single rewrite rule.
 
@Paul great. i will give it a try now.. btw if i change the permalinks, will this code still work

<?php

if (isset($_GET['fileID']) && is_numeric($_GET['fileID'])) { // to verify that fileID is passed
// we now have the post ID in downloads page and can create download link
$file = get_post_meta($_GET['fileID'], 'durl', true);
}
?>
I mean will i get the fileID number in that code? or should i need to change something in that too
 
Really quick question: Why won't this fiddle work? jsfiddle.net/cnPKX
 
@Desizner Yes, you will redirect download/ID to download/?fileID=ID so the $_GET parameters will identical.
 
@Paul Great.. thanks paul for your support :)
 
4:42 AM
@Desizner no problems
 
@Paul I tried this code

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} example.com$ [NC]
RewriteCond %{HTTP_HOST} !?fileID=
RewriteRule ^(.*)$ http://example.com/dls/?fileID=$1 [R=301,L]

the redirection works, but i am not getting the fileID into the page :(
 
@Desizner Does the proper page get called?
 
yes.. the page loads with proper page template.. just i am not getting the fileID
 
@Desizner What does print_r($_GET) give you?
 
btw here is my site :

http://windows7themer.com/dls/?fileID=17379 (this works fine)

http://windows7themer.com/dls/17379/ (this doesn't)
 
4:54 AM
@Desizner Your $1 is coming from the match ^(.*)$ (Yep, do what Levi does, so you can make sure of that)
 
@Desizner By the way, your conditions aren't very good.
They are way too generic.
 
@LeviMorrison I tried inserting, but its giving T_variable error..
Can you please suggest a easy .htaccess code if possible
 
RewriteEngine On

RewriteRule ^dls/([0-9]+)$ /dls/index.php?fileID=$1
That should do it.
Note that if you don't give a number-only id afterwards it will not route you to the given php file.
 
The page is working.. Still i am not getting fileID into the custom field.

<?php

if (isset($_GET['fileID']) && is_numeric($_GET['fileID'])) { // to verify that fileID is passed
// we now have the post ID in downloads page and can create download link
$file = get_post_meta($_GET['fileID'], 'did', true);
}
?>


<?php $dwn_id = get_post_meta($_GET['fileID'], "dwn_id", $single = true); ?>
@LeviMorrison I will give only number after fileID= , its the post ID of the post.. so just numbers will be there
 
@Desizner Then you should be fine.
 
5:09 AM
@LeviMorrison But I am not getting the fileID still within the page content..

if you see the original page http://windows7themer.com/dls/?fileID=17379
you can see that i am getting the proper dwn_id for the fileID as "2244"

but http://windows7themer.com/dls/17379/ prints nothing for

<?php

if (isset($_GET['fileID']) && is_numeric($_GET['fileID'])) { // to verify that fileID is passed
// we now have the post ID in downloads page and can create download link
$file = get_post_meta($_GET['fileID'], 'did', true);
 
@Desizner And you are using the .htaccess snippet I gave you?
 
yes.. I am using that only
 
And the file is named index.php?
 
the file name is dl.php
 
Then it should be RewriteRule ^dls/([0-9]+)$ /dls/dl.php?fileID=$1
 
5:15 AM
@Desizne - where is your PHP code located?
@Desizner Is your code located within a plugin on in the index file?
^ or in the index file
 
@Nitin the code is located in dl.php file
@Nitin its a separate file and i am using it as template for page named "Download"
@LeviMorrison Sorry the server is down it seems.. I will it in few mins..
 
5:28 AM
@LeviMorrison I changed the name to dl.php but still its not working
i guess there is some problem getting $_GET function to work..
 
5:47 AM
May anyone tell me why this css code not working in IE9
`.speech-bubble {
background: #999;
background: linear-gradient(top, #444 0%,#999 100%);
background-clip: padding-box;
border: 5px solid rgba(0, 0, 0, 0.2);
padding: 20px;
width: 200px;
height: 100px;
position: relative;
}
.speech-bubble:before{
content: ' ';
border-color: rgba(0, 0, 0, 0.2) transparent transparent;
border-style: solid;
border-width: 17px;
position: absolute;
bottom: -39px;
left: 16px;
}
.speech-bubble:after{
content: ' ';
 
@Somebodyisintrouble :before/:after pesudo elements are supported in IE9..
 
 
2 hours later…
7:26 AM
You may like some more regular expressions works here:
http://www.aliencoders.com/content/few-important-validations-using-regular-expression-perl
 
Flagged it for several hours ago - stackoverflow.com/questions/11131238/…
without any actions
Hey, moderators, stop sleeping
 
j0k
I flagged it too
 
7:41 AM
posted on June 21, 2012 by Liip

SPDY? SPDY is an “upgrade” to HTTP 1.1 proposed by Google to circumvent some of the shortcomings of HTTP 1.1. It’s one of the canditates for “HTTP 2.0” and is already supported by Chrome and Firefox. It's goal is to make the web experience faster (and more secure). The main feature from my point of view is that with SPDY the browser only has to open one TCP connection to the server and all res

 
 
Sem
Good morning fellow nerds.
 
A very good morning and a happy new day!
 
7:58 AM
happy Thor's day
 
j0k
Hey this is summer ! (actually poor weather in France ...)
 
we have poor weather in germany, too. Does someone has summer?
 
@PiTheNumber Even so I actually think about going to swim
 
Sem
@PiTheNumber Was beautiful weather in the Netherlands yesterday. Today it's just warm and moisty with a gray sky.
 
Sem
stackoverflow.com/questions/11133961/… Is this the way to answer? hehe
 
@Sem I think plugins are good. we don't need to write the same code over and over again.
 
Sem
@PiTheNumber Lets say it this way: Maybe a plugin for a calendar, or a nice dialog. But not for a delay on hovers. C'mon that's just too lazy.
 
8:32 AM
@Sem true...
 
Hi every one
 
hey guys
anyone have any experience with mongodb?
 
@Petre sorry i don't have :(
 
thanks anyway
 
@Petre no problem
 
8:39 AM
Hi Guys,
 
Hi Anyone from Perl and Linux domain
 
need some help:
Is yii php framework suitable for making social networking site
 
@webmaster yes, why not?
 
hi friends!
I had a discussion few hours before regarding a .htaccess help..
 
@hakre did you start with the Lean Architecture book yet?
 
8:51 AM
LeviMorrison guided me with htaccess

RewriteEngine On

RewriteRule ^dls/([0-9]+)$ /dls/index.php?fileID=$1

but But I am not getting the fileID still within the page content..

if you see the original page http://windows7themer.com/dls/?fileID=17379
you can see that i am getting the proper dwn_id for the fileID as "2244"

but windows7themer.com/dls/17379 prints nothing for

<?php

if (isset($_GET['fileID']) && is_numeric($_GET['fileID'])) { // to verify that fileID is passed
// we now have the post ID in downloads page and can create download link
 
Sem
@Gordon Talking about books I started with "Clean Code" today. Enjoying it so far :)
 
@Sem yery good book. remember to buy Clean Coder, too
 
Sem
@Gordon Yes, yes I think I will.
 
@Gordon Jup, but not much more than preface so far.
 
hello guys
 
9:12 AM
is there anything like ?
 
I have an annoying problem with Codeigniter and multiple applications in the same installation
 
@designer what is it?
 
i can't get either /applications/app or /app/application to work with htaccess
 
does anyone know where can I find telecommute jobs for PHP?
 
alright, CI says (in their docs) that one should do this:
/application/
/app1/
/app2/
 
but then it would be best to hold one index.php to connect to all of my applications so that i won't need to make a new htaccess every time i add something new
 
@shiplumokaddim careers.stackoverflow.com, workfu.com and basically all other IT job boards
 
@designer , while CI is one of two most dreadful "mvc" frameworks for php , i am pretty sure that that is not what the manual says
 
@designer it does not matter where you put your application. It matters every application includes the CI.
 
I've tried to do like this:
/application/
.. /app1/
.. /app2/
index.php -> where i need it to look for the uri to make the application folder equal to that
but nothing is working at all, i get 404 no matter what i do
 
9:18 AM
I put my CI in /usr/share/php/libci
 
@tereško why is it the most dreadful?
 
because of code quality .. or lack thereof
 
hello
 
@tereško hmm i just picked it because people around the web seems to like it, and it is a small framework .. i needed something small
 
and for every application root (http document root) I just keep the .htaccess, index.php and application folder. index.php is edited to include my libci and application folder
 
9:22 AM
@shiplumokaddim i see no point ,since all the answers are more or less the same
 
@shiplumokaddim i want a url like this mysite.com/app/app1 and /app2 eg.. so i have all CI in /app folder and then divided application folder into subfolders where all the default files and folders are duplicated into app1 and app2 - but then how should i write my htaccess and should i use one index.php or multiple?
 
morning
 
one index for multiple application? I think every application should be in separate domain.
what you are seeking is grouping your controllers
make a folder controllers folder named "app1"
and put all the app1 related controllers in app1
then you can access them by mysite.com/app1
 
@shiplumokaddim don't think I'm seeking grouping of controllers, i am doing that atm.. but my applications doesn't share anything else than CI so it gets a lot difficult to get an overview
 
There is another way.
 
9:28 AM
@LeviMorrison I think Collection should have a Collection select(callable $callback) method.
 
create app1, app2... folders in your document root
then in each app1 folder put your index.php and application folder. Change the index.php contents as your need
 
@shiplumokaddim yes together with CI system and that? i was actually just trying that, but then i couldn't get rid of index.php in my urls
 
You have to delete mysite.com/.htaccess and put .httaccess on each of mysite.com/app1 folder
@designer if you haven't ask this question on SO, please do so.
 
@LeviMorrison I think you have over-OOP-ized your new APIs
I mean, everything as a Comparable, seriously?
That will basically make it completely unusable
 
i would like this setup: mysite.com/app/ -> all CI and then mysite.com/app/app1 cause i need wordpress to function on the root as well :)
so everything app related will be in /app and every app will have their own folder and url
 
9:32 AM
@tereško I though my answer is different as it says "form with GET method is not that useless"
@designer I think now you know where to change it.
 
@shiplumokaddim no i still can't get it to work without index.php - my htaccess is within the app1 folder where application and index.php are located
 
@LeviMorrison Instead you should add a comparison function / hash function parameter in the concrete implementation constructor
 
@shiplumokaddim it looks like this: pastebin.com/hehd7hfj
 
@LeviMorrison This (among other things) has the additional advantage of allowing you to use the same set of objects, but with different comparison criteria
 
@designer , if you had really gone my general consensus , you should be using WordPress as your framework
 
9:36 AM
@tereško hmm but I'm building some small gift card apps and i thought wordpress wouldn't be the framework to choose then - CI seems quiet alright for this job, although it is a bit annoying now when i can't divide it
 
@LeviMorrison E.g. you could have new Spl\HashSet(function(User $user) { return $user->name; }); and new Spl\HashSet(function(User $user) { return $user->age; });. Both would be different sets, but based on the same data
 
@designer This .htaccess thing always troubles me. I guess you have to remove RewriteBase /app/app1/
 
@shiplumokaddim unfortunately not working either
 
@designer , the point was : things that most people use and advertise are usually crap
 
@NikiC if you are already using strategies for the comparison why not do compare(callable $strategy) instead of supplying a ctor argument? It's not like we will be able to use operators for comparison anyway.
 
9:38 AM
@tereško maybe yes, but for a small and fast online payment system to deliver gift cards what would you then use?
 
@Gordon Not sure what you mean
 
for multiple clients but no sharing of code, cause every client are different
 
@LeviMorrison Also, why are Vectory toArray-able, but Collections are not? E.g. a Set can be converted into an array too. And a Map can at least to some degree be converted.
 
@NikiC not sure what you mean either ;)
 
@shiplumokaddim its annoying cause your setup is working fine, although i can't hide index.php from the url as i can if it was a default CI setup
 
9:41 AM
@Gordon I just mean that object don't necessary compare in one single way, but they can compare in several ways, depending on the situation. Thus it's better to pass a hashing function into a HashSet instead of getting the hash through Object->getHash() (from Comparable)
Because in that case you'd be limited to only one comparison behavior
At least unless you want to wrap all your objects just to change the comparison behavior ^^
 
@NikiC yes, but if they compare in many ways depending on context, wouldnt it be smarter to have a setter or a method for comparison instead of supplying it as a ctor argument, which limits you to one comparison only.
 
@Gordon That doesn't make much sense to me
 
@designer I have not separated applications in different folders. Rather they are in different domains, in fact subdomains.
 
You mean like, you want to change the comparison function in the middle of building a set?
 
@shiplumokaddim but that doesn't matter i guess? I'm just using ssl and therefore not subdomains
 
9:45 AM
Your problem is in .htaccess file. You can ask a question on SO.
 
@shiplumokaddim yes will do now
thanks for your help
 
@NikiC ok, let me ask differently: is the comparison strategy passed to the ctor for defining the behavior when adding/removing from the set (e.g. like SplObjectStorage's getHash()) or is it strictly for comparing the elements in the HashSet against other elements by arbitrary criteria?
 
How to set Session time out?
 
@Gordon not sure what the difference between the two is
 
9:49 AM
i read a code in which they have given as $timeout = time() - $ _session["time out"]
 
@LeviMorrison Btw, there is a certain discrepancy regarding the use of ->add and ->insert. Set uses add, Map uses insert and Vector uses add again, but in a different meaning (append)
 
@NikiC well, one is about defining the way by which the objects in the Set are Hashed in the HashSet while the other is about comparing the objects in the HashSet by arbitrary criteria.
 
@Gordon Could you give an example for "comparing the objects in the HashSet by arbitrary criteria"?
 
@Gordon I read example from this site and i am not understand what is ['time out'] .is it default?for example . $session_life = time() - $_session['timeout'];
 
0
Q: CodeIgniter multiple applications htaccess

designerI wan't to divide my CI into multiple applications. I should say that it is within a folder called app on the root /var/www/app/. First I tried this setup: /system/ /application/ /app1/ /app2/ app1.php app2.php .htaccess But I couldn't get my htaccess to point correctly. Therefore I went a...

 
9:59 AM
$ _session["time out"] is it default?
 
@NikiC I think what you mean is the first part, right? providing a function that defines how the objects in the set are indexed? I mean the latter, providing a way to compare the elements in the set with those in another, by arbitrary criteria.
 
I'm officially proclaiming today as a douche bag day on SO
@zerkms & Blender: You should have been more intelligent about understanding that whoever posts a question like this, probably already knows about the option of adding an EXTRA tag. — Registered User 13 mins ago
 
@NikiC makes more sense now?
so we are probably talking past each other
 
Sem
10:18 AM
Hmmm, Opera is starting to be my favorite browser to develop CSS/JS in. The look and feel, the console that doesn't refresh with a page refresh, The easy timeline with live post and get reads.
 
morninbg
@Sem Isn't that a button in other browsers: "the console that doesn't refresh with a page refresh"?
 
Sem
@PeeHaa Yes yes of course, but here it's just set default. And Opera doesn't really have new functionality it's just a bit better placed visually, same goes for the search in a JS file for example. it doesn't jump between found words with next. It just shows a result list with where and on which line it found something. And good morning mr.RepWhore
 
Is it only me, or do some websites are crying for a meme generator?
 
10:36 AM
@zerkms , not sure ho it is different from every other day
 
posted on June 21, 2012 by Liip

 We recently reimplemented a search in a client project with solr (version 3.5). For the communication between our PHP application and the solr server we used the PHP library solr-php-client (http://solr-php-client.googlecode.com). After the first release to the stage server our client run loadtests on the whole application and the results for the search use case were pretty bad: 80% failures

 
@zerkms I wish I could upvote a deleted answer :)
 
In javascript, who can have (or typically has) focus the window, document, or body?
Similarly, who should I use to listen for key events?
My scenario is as follows; a client has this terminal thing with a barcode scanner. The website I'm building should basically stay "focused" and listen for barcode values (which are regular keyboard events with an additional return key).
 
@Christian Events bubble up the DOM tree
 
Users are not supposed to interact with the website in any way except with the barcode scanner.
@PeeHaa So it's enough to listen for key events at the window object?
 
10:50 AM
@Christian Yup. As long as the propagation isn't prevented
 
@PeeHaa What if the current focus is on a text box, does propagation stop?
And I presume the window would receive this event the last, right?
 
Could someone have a look at a small however really annoying problem
0
Q: CodeIgniter multiple applications htaccess

designerI wan't to divide my CI into multiple applications. I should say that it is within a folder called app on the root /var/www/app/. First I tried this setup: /system/ /application/ /app1/ /app2/ app1.php app2.php .htaccess But I couldn't get my htaccess to point correctly. Therefore I went a...

 
@Christian no. Propagtion stop when you return false; or when you do e.stopPropagation()
@Christian Excactly
damn typing sucks
 
11:05 AM
is there anything we can do about stackoverflow.com/a/173479/208809 short of flagging it for deletion?
 
@Gordon / rewrite it?
Or summon @greg
 
Ping?
 
Wrong greg :)
 
Oh good
 
hehe I was talking about comment and did a ping automatically
 
11:10 AM
@PeeHaa given that we'd never get it below zero to delete it, we should probably fix it. then again, he got -20 already and didnt bother to fix it himself, so why should we do him that favor? he's clearly just out for the rep there and not interested in providing a correct answer.
 
Good morning
 
morning @ircmaxell
@Gordon Or we can ask OP to at least change the accepted answer
OP still is active on SO
 
@PeeHaa yeah, will leave a comment after I posted my own answer to it
0
A: PHP Arrays: A good way to check if an array is associative or numeric?

GordonThis would work too (demo): function array_has_numeric_keys_only(array $array) { try { SplFixedArray::fromArray($array, true); } catch (InvalidArgumentException $e) { return false; } return true; } Please note that the main point of this answer is to inform you ...

 
Hello @ircmaxell
How's it going?
 
good, how are you?
 
11:20 AM
Very good, a little too much workload at the moment though but can't complain
 
@PeeHaa not sure it deserves uv's :) but thx.
 
Sem
Does anyone here have some experience with OOP javascript?
 
@Sem Javascript isn't object oriented
 
Sem
@Greg I know, but it's possible to imitate the design.
 
11:25 AM
@Sem sure, but don't let OOP style hold you back. I would heavily promote the modular pattern from JavaScript: The Good Parts book.
It is a nice approach for people from OOP backgrounds
Hmm ... this is PHP room, can someone move this conversation where it belongs?
 
@Gordon I believe it does. Because it answer OP's question
BTW for people who haven't seen it yet. I'm working on a proposal for a new tutorial on the php site: github.com/PeeHaa/php-net-tutorial
The current tutorial is a bit... hmmm well see for yourself: nl.php.net/tut.php
 
Sem
function AdBox() {
 this.width = 200;
 this.height = 60;
 this.text = 'default ad text';
 this.prototype.move = function() {
 // code for move method goes here
 }
 this.prototype.display = function() {
 // code for display method goes here
 }
 }
Doesn't that look pretty :D
 
@PeeHaa +1
 
@Sem, why are you adding the functions to the object prototype?
this.move = function() {
    // code for move method goes here
}
 
Sem
@Greg "You can code your methods without adding the keyword prototype into the definition but if you do then a separate copy of the method code will be created for each object that you derive from the class." src: javascript.about.com/library/bltut35.htm
 
11:30 AM
about.com ^^
At least you're not on w3schools.
3
 
Sem
@Greg I'm just searching for some nice examples.
 
@Sem what would you like an example of?
 
Sem
@Greg A simple javascript Class with some initialization.
 
@Sem I mean, what are you trying to achieve? JavaScript doesn't have the concept of classes, so it would probably be best to show you an example of how to do what you want using the language as it's intended.
 
Sem
@Greg let's say it like this then, how I seperate my functions now is in JSON object trees. after 40 functions or so things look kinda messy. How would you "list" your javascript functions then?
 
11:35 AM
@Sem You can use the module pattern to split huge object trees into separate files
 
Sem
@Greg I don't like imports. They start to load when the first javascript is loaded.
 
@Sem This book (available in paper or online) has loads of good info on what you're looking for: eloquentjavascript.net/chapter8.html
 
G day
 
Sem
@Greg So you don't detest OOP JS? :D
 
@Gordon Yes, now I see what you mean.
 
11:42 AM
@NikiC so we talked past each other?
 
ROTFL
 
@Sem As long as it isn't just an excuse to make JS more like C# or Java, for no real benefit, no.
 
@Gordon Something like that ;) Though currently the Set interface as proposed by Levi does not have something like ->compare(), right? (What would that function do anyways? How do you compare two sets?)
 
it's amazing, how often 'security through obscurity' is misunderstood and used as an argument against best security practice
 
@NikiC by arbitrary criteria ;)
 
11:45 AM
@markustharkun The reverse is just as true ;) People much too often try to do security by obscurity
 
@markustharkun Yes, yes it is
 
@Gordon I think that a general ->compare() doesn't make sense for sets. Rather stuff like ->equals(), ->containsSet(), etc. Because it's hard to say when a set is "smaller" than another one ^^
 
well, it is easy if you consider "smaller" to contain less elements
 
me: just set 'expose_php = off', it can potentially make you more secure
guy: this is security through obscurity, experts say not to do it
me: facepalm. it's only StO if hiding it is your only defence strategy, otherwise it's obscurity as a in important additional hardening step, information is the start for every attack
 
@NikiC yeah, equals is probably a better name
 
11:51 AM
@Gordon But there again, can you meaningfully compare two sets which have different insertion criteria?
 
Does anyone know how to generate a Salary Slip using PHP or does anyone having the code for generating a Salary Slip using PHP so that I can get the idea?
 
@markustharkun it's not obscurity, it's called preventing information disclosure, which is a valid vulnerability
 
@ircmaxell yep!
thanks for naming it
 
@markustharkun Though I'm not sure you are right on this one
I seriously doubt that you are really getting any additional security by disabling expose_php
 
@AnujJain what's a salary slip, is it when you get your salary and it slips away right after getting it? :)
 
11:54 AM
I think the only thing you do by that is mess up statistics
 
@NikiC well, if you want to compare the data in the sets, then I'd say yes, you can, e.g. when you are not interested in the set as a holding structure.
 
@Gordon maybe :)
 
dudes
HelLo
 
I'm not sure. I could well imahine
 
what would be the best to implement a multiplayer boar game?
board*
I mean what technology (I want it in a browser)
 
11:55 AM
@markustharkun It's just way too easy to detect whether the system is running PHP, even without expose_php.
 
@MeLight not a question that can be answere, VERY broad
 
@markus very funny.
 
@markustharkun ok, ill try to focus it down
 
@NikiC the point is not whether it is running PHP, it is what exact version of PHP it is running
 
Im thinking of how to implement the back-end, IE the board engine that will validate, calculate the move of a player and let the other player know that a move was made
 
11:57 AM
@AnujJain yeah I know, but really, I don't know what a salary slip is
 
I can't decide coz of that callback issue, how to call the browser when the other player has made a move
 
@markus salary slip will contain all the details of your salary like what is your basic salary,extra incentives,house rent allowance etc and after adding all you will get the net salary.
 
@NikiC How would you detect whether php is installed. I know http fingerprinting, but I don't see how it is possible to tell whether php is installed?
 
12:05 PM
If you would have a decent config of PHP (no errors displayed / expose off etc)
 
array to kml/rss ? possible using php?
 
@ShyamK Yes.
 
@PeeHaa you can use some of the peculiarities of how PHP handles HTTP to find out
 
@PeeHaa E.g. a combination of max_input_vars and and handling of array appends after max_int can be used to determine whether you are running a 32 or a 64 system (and obviously whether the server runs PHP). If you just want to find out whether it uses PHP there probably are even easier tricks. I haven't looked into it
 
@Gordon how did poncha's answer get 3 up votes?!
 
Any one says ,Is this default $_session['timeout'] variable for setting time out for session ?
 
w00
opens google "set session timeout" -> 1st result -> prajapatinilesh.wordpress.com/2009/01/14/…
 
12:35 PM
I think the moderation of some answers is not only rude but innacurate, as it seems deleting the first correct response where a subsequent response writer down voted the first, because they posted same because they wanted theirs to look better is just rude. So the fist right answer is then deleted because its deemed a dup.
 
Hey all.
does it make sense for me to change my static class to a singleton with one get singleton function?
Or just make one version of the object, and then pass it to all classes?
 
How to get thumbnail image in wordpress for a particular post ID?
 
@Neal Hey
@Neal singletons never make sense
I.e. there is always a better way
 
does mysql query cache work on optimized queries or on the user written queries... question is, does it cache the select part of an update query too or just user written SELECT queries?
 
@PeeHaa You can use &thinsp; also
 
12:48 PM
@Neal agree with @PeeHaa
 
@markustharkun I need to change the Config from static to something different: maniator.github.com/SmallFry
what can I do?
 
Let's have some fun with a jQuery user:
Why don't you just use the appropriate plugin for that? I mean it's jQuery, that's what the jQuery afterText Plugin is for: stackoverflow.com/a/11138498/367456hakre 1 min ago
 
lol
 
@Neal Inject it either in the class or the method that needs it
 
@Neal just make it a normal class, which you can test (you can't test singletons)
 
12:55 PM
@markustharkun yes, but it needs to be the same object throughout all classes.
I am trying something. give me a couple minutes and you shall see :-)
 
@Neal make sure that it is yourself
 

« first day (614 days earlier)      last day (4334 days later) »