« first day (721 days earlier)      last day (4221 days later) » 
00:00 - 15:0015:00 - 00:00

12:03 AM
lol
 
I'm here!
 
lol
 
why does maven have such a bad rep!??!?! waaah
 
12:23 AM
Holy crap. You guys close-vote a lot. It's awesome. And you don't even stick to specific areas.
 
it's because there's so much crap on so
 
@Stephane there are many new bad questions everyday :-(
 
Maybe things should have an upvote before they are accepted
 
@Stephane Even crap gets easily upvoted. If a few beginners think the question applies to them, they will probably upvote it even though the question is not constructive, off topic, too localized, or not a real question (according to the definition in the FAQ)
 
1:20 AM
@Stephane we do stick to specific areas (universally: and ) but most of the regular users have "favorite tags" to troll-about in, because reading strictly only new questions will rot your brain
 
 
2 hours later…
3:12 AM
Hi !
 
 
2 hours later…
5:28 AM
Good morning
0
Q: Reload top window from a popup window opened from colorbox

dskanthI am opening a colorbox in my page. In the colorbox iframe page, i have a link, that opens a popup window (window.open). Now i want to reload the top window page that opened the colorbox, from the popup window. I have tried the following code in my popup window, but it does not work: echo '<...

 
 
1 hour later…
6:31 AM
anyone here
 
ome
@tpae you may ask your question.
 
i have a large set of data
and would like to diff the data from mongodb
kinda like.. select where in
but it's a large set of data
insert if not exists, compare if it does, if field = 0, then return false.
anyway i can do this without iterating through each single one
 
ome
@tpae use a unique key maybe ?
 
unique key?
so let's say i have 100,000 records that needs to be processed.
i already have 300,000 in database.
out of 100,000, only 50,000 exist in database.
out of 50,000.. only 10,000 have field = 0.
i want to put 100,000 records, receive that 10,000.
not sure if that makes sense
 
6:51 AM
hi guys..
 
hi
 
@tpae hi.. i have a problem with codeigniter's default 'welcome' controller
i've inherited a badly maintained codebase of CI v2.0.2.. would need some help on that
 
sure
 
here is the question explained in greater detail - stackoverflow.com/questions/12757211/…
 
what's up
 
6:53 AM
the existing project isn't able to load the default 'welcome' controller..
you can see the debug logs in the question's body..
 
ome
@tpae Sorry your explanation is kinda of , well pretty, vague. if you need to compare your data with some 'external' data than you need to pull it all and do the comparing.
 
@HrishikeshChoudhari in routes.php, there's a default_controller set to "welcome" which is the default from 2.0.2 installation.
if you create a new controller called "helloworld" you would need to specify that in the routes.php as your default
 
@tpae exactly.. but even before i created the "helloworld" controller.. the default "welcome" controller wasn't loading at all
 
that's all the log you got?
 
6:56 AM
no error messages? just blank page?
 
i enabled the logs.. and then just loaded index.php.. and thats the log i got
nope.. nothing on the browser.. just a lank
*blank
 
have you checked the database config
i suggest you also check php error logs in apache
 
in application > config > database.php ?
 
yes
 
6:57 AM
in your index.php file, set to display all errors
set environment to development
 
yes.. i've set it to "development"..
and there's the config i'm doing --
case 'development':
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('ignore_repeated_errors', TRUE);
 
check the php error log
 
7:21 AM
hello all
 
hello
@mmmshuddup do you have any experience with mongodb?
 
a little
I set it up once and used it only once for only one project
but back when I set it up I wrote up a quick n dirty class for it
 
i see
 
@everyone never run an scp -r wordpress...
after about 20 minutes I was like why is this taking so long?
then i did find ./wordpress -type f | wc -l and found that there more than 16,000 files :O
@tpae why? what is your issue?
 
i heard mongodb is bad for pulling statistics with data
and i was reading about it and came across map/reduce
was wondering if that's a solution to pulling statistics?
 
7:31 AM
How find a php is INActive
somebody help me
 
@Sivashankar what's the question?
 
@tpae i want to prevent multiple login of a user and i want logout user if he is inactive for 30mins
 
is it session based authentication?
or cookie based
 
i used session
 
@alll can anyone suggest me whether this is the best way to start? I only downloaded php eclipse and xampp and have set these running. So, instead of saving the projects in the default workspace, I am saving them in a separate file which is in htdocs in xampp... and I am going manually to webbrowser and checking......
 
7:35 AM
@Sivashankar you need to store the sessions in database, store IP and user credentials. Then have sess_id be stored in cookies which expires after 30 minutes
If user tries to create a new session with same user credentials, then prevent it
 
@tp
 
@Kanth set the workspace directory to htdocs ?
 
154
Q: How do I expire a PHP session after 30 minutes?

TomI need to keep a session alive for 30 minutes and then destroy it.

 
@tpae thanks
 
@Sivashankar check out that quesiton I posted
that is the best way
don't use a database, it's unnecessary overhead
 
7:39 AM
i would only suggest database to prevent multiple logins
 
oh that's right..the multiple logins
 
@tpae and @all Yeah. Of course either way is okay Even I am saving in htdocs itself. Right? But this seems wrong to me. As it doesn't show any errors. If we run any java projects, we can click on run and in console we get the error messages if there is any wrong with the code..
 
@mmmshuddup i saw that.. what i'm not understanding is that when a user is inactive for 30min how that php function is checked
 
But how could we know in php
 
@Kanth that's how it works with web development.. but you can hook up a debugger and use breakpoints and such, see the errors on the IDE
 
7:42 AM
eclipse PDT has nice tools for that
 
personally, I use Zend Studio
 
which is basically the same thing with some added features
@Sivashankar what function?
 
hello
 
7:43 AM
Hi i Have to use Yii Framwork. i have to upload the project in server
i have to write site name they display admin part not show my home page ?
 
say work.php is the page i opened in browser and i haven't accessed that page for 30 min then how will user logged out from the site..
 
@mmmshuddup eclipse pdt and eclipse php are not same? Both are different? which one is best?
 
@Sivashankar for every action user takes, recreate the session
 
@Kanth what?
I've never heard of "Eclipse PHP"
I'm pretty sure the only eclipse for PHP is called "Eclipse PDT"...
 
@Sivashankar if user doesn't perform action for 30 minutes, then it will expire
 
7:46 AM
Eclipse PHP must be a nickname for eclipse PDT
@Sivashankar what tpae said is correct
next time user visits site, PHP will know
automagically
 
@tpae ok after some time what if user closes the browser
 
@Sivashankar then the user is stupid
 
@Sivashankar what do you want it to do?
 
lol
 
@mmmshuddup Okay okay That's what I have Eclipse pdt(php develpment tools) now. Zend is preferred?
 
7:48 AM
yes but Zend is not free
Zend cost me like 300 dollars :S
 
@Kanth i've been using Netbeans, try it out.
 
actually no.. I preordered Zend Studio 9 so I got a discount :)
I got it for like $220
netbeans is supposed to be good too
and it's also free.
personally I've used Eclipse for so long that it has become my favorite. eventually upgrading to Zend Studio just seemed like the next natural step
I use it together with Zend Server so It's nice for debugging
 
@tpae @mmmshuddup i'm having this kinda trouble in my clg those idiotic students will login for 5mins and then closes their browser and turn off pc always have my db indicating that their session is active
 
Zend Studio aotmatically detected my install of zend server and so I didn't have to do anything to setup debugging
@Sivashankar yeah but next time the user visits the page, the code would then immediately check the database and check the current time against their last activity time
 
Okay. But I already set up the eclipse and xampp. I will try your advices too..
 
7:52 AM
@Kanth Eclipse is perfectly fine for PHP, you don't need zend studio if you don't want to spend money
I used it for like 5 years before finally deciding to spend the money on ZS
 
@mmmshuddup what if i want to buid that as chat app... untill nxt time it will show user a online
 
@Kanth and by the way, I use zend server CE (community edition) because it's free. Normal Zend Server is SUPER expensive :O
 
Okay. Thanks . Yeah I don't wanna spend money now. As I am just jumping into this platform on my own interest. It's not my profession.
 
oh ok yeah then I wouldn't recommend zend studio!
XAMPP is good enough too
no need to change your setup
I only switched to zend server because of the zend studio debugger and it was an easy way to get ALL developers working with more or less the same LAMP stack
rather than one guy using eclipse/XAMPP, antoher guy using NetBeans/MAMP, and someone else using standard linux apache/mysql/php and some other IDE... we ALL use zend server
makes life simple
 
@mmmshuddup what if i want to buid that as chat app... untill nxt time it will show user a online
 
7:59 AM
@Sivashankar not sure actually.. never built a chat app before
@Sivashankar I'm not sure how I would go about handling that. I would google a lot though :)
 
@mmmshuddup fine.. will u help me with centos
 
you would probably want some sort of long polling system
but if you're a beginner, it might be difficult to accomplish that
have you checked out comet?
but I believe you'd need to setup an apache tomcat server
@Sivashankar use yum :)
$ yum update
$ yum install whatever
@Sivashankar what about CentOS?
 
thing is that i want to create a web server within lan... Currently i'm using IIS 7.5 but it was too slow so many suggested CentOs.. i searched for setting up a server but all tutorials are ter for setting it to DNS server
 
just install centos and then install apache/mysql/php
it's super easy with yum
 
@mmmshuddup i already done that i don't know how to publish my site
 
8:09 AM
$ yum install httpd
$ yum install php
$ yum install mysql mysql-server
put your site in /var/www/html
or setup vhosts
 
what is vhosts
 
u.u
virtual hosts
 
how to do that
 
hi I am working on joomla backedn custom component
How to create an ajax call in a joomla component view, ie i have language selection in the component view , based on the selection i have to change the countries list below that how to integrate ajax call in the component and update in same view with out refreshing.
 
9:13 AM
@Sivashankar plz search for tutorials.
@PeeHaa me has problems to understand :)
 
9:52 AM
position eliment relative to div not to page
how to do it ?
top and left in div
 
morning
 
@DextOr Give div position: relative;
 
i am doing like this
div.list_carousel a.prev {
position: absolute;
top: 86px;
left: 15px;
cursor: pointer;
}
 
You aren't listening
Give the div position: relative
 
9:57 AM
I want to align <img border="0" width="30px" src="../images/prev.png">
:P
ok @MadaraUchiha
 
mornings
 
@MadaraUchiha: "If you shout at HTML tags, it normally helps" - Longtime webmaster saying
 
Morning @tereško
 
good morning @tereško!
 
morning @hakre, @tereško and @MadaraUchiha :)
 
10:03 AM
@NikiC Mornin'
 
 
hello :)
I apparently angered someone recently, I got a few serial downvotes this morning
 
@Gordon Morning. So you suggest doing an interface for this type of methods. Okey. But interface hasn't mind of it own. So there should be a class, that implements those methods. How does it change the fact, that IMO, those methods could be called statically?
 
I wonder what kind of questions we can expect from a user with such nickname
 
@Gordon but with approach I suggest the SPL class loader will be able to autoload the class Util with it methods. As I know if it will be a separate file with functions, then it wount work and I will need to include it manually. Also read the article you suggested for my question kore-nordmann.de/blog/0103_static_considered_harmful.html and I still don't quite understand the issue with static methods.
 
10:49 AM
Yesterday, I asked this question on SO: stackoverflow.com/questions/12756462 Can a moderator please move it over to wordpress.stackexchange.com ? I simply forgot about all the stackexchange subcultures :)
@Jocelyn I think even the meta discussions about this nickname are fun! lol!
 
2
Q: How sql injection works

jhonraymosI have a url like www.example.com?id=34 my php code is <?php $id=$_GET["id"]; $query=$pdo->prepare("SELECT * FROM data where id=:id"); $query->execute(array(":id"=>$id)); if($pdo->numRows($query)>0) { //mycode }else { //else part -another code } ?> the question...

 
there are already a few excellent questions and answers on SQL injection
 
posted on October 06, 2012 by Sebastian Bergmann

Downloading a single file to use PHPUnit? Not an idea that is too phar out anymore! Starting with version 3.7.5, PHPUnit seems to finally work correctly when packaged as a PHP Archive (PHAR). The example below shows one usage scenario for the PHPUnit PHAR: ➜ git checkout -b use-phpunit-from-bundled-phar Switched to a new branch 'use-phpunit-from-bundled-phar' ➜ mkdir vendor ➜ curl

 
@Jocelyn Hi!
 
11:04 AM
@Jocelyn if you spot serial downvoting, flag one of the questions/answers this happened and say voting anomalies. mods will then take care of that.
 
@hakre yes, I'll do that tomorrow if the reversal script doesn't revert properly
 
gods below
 
@Trav no, this belongs to the wordpress support forums unless you can make it a real Q&A question which I think you can not do yet ;)
 
look at the answers in that injection topic
 
@Jocelyn no, just flag right away. that script must not be running. it's okay with mods.
@tereško lol, OP is using PDO prepare. User are putting answers in there as if not.
 
11:18 AM
> OMG, there is a new injection question. Let me get my pre-written piece of garbage and past it in.
 
^ please close this utterly useless question that can only leave a wrong impression for future users (and then delete it).
 
I am surprised, this time there has not been any comment or answer advising to use addslashes
(using addslashes for escaping is bad, of course)
Sometimes I wish it were possible to select multiple reasons (or all) when casting a close vote...
 
public function query($sql="",$parameter=array()){ global $pdo; try{ $result= $pdo->prepare($sql); $result->execute($parameter); $this->confirm_query($result); return $result; }jhonraymos 2 mins ago
 
this is what the user from that topic is actually aiming at
 
11:29 AM
it is sad to see that many users do not know how to do very basic debugging (like echoing values of the variables, enabling error reporting and display_errors...)...and it is even worse with those who expect us to do all the debugging for them...
 
is week today
 
morning people
 
11:44 AM
good morning :)
 
@hakre found a access array items answer by you yesterday :)
 
@PeeHaa that "I can see print_r but have no f**king clue what to do, please send me the codez" one?
 
yep
 
yeah it's a great duplicate favorite.
we also need one for "this code does not work but I have no f**king clue what to do, please send the codez" one where users didn't know they need to enable error logging and checking first.
 
Yep. Maybe let someone who needs delv power make a canonical for that if it doesn't exist yet. :)
@jhonraymos yes as I have stated don't flag posts for nothing
brb bios flash
 
I think I'm going out for breakfast and a beer. I need it to wake up
 
12:16 PM
good idea, I'm actually hungry after days.
it's a good sign that my cold is getting away.
 
@hakre Good
Now start drinking! ;)
 
@PeeHaa yeah and fall-back on monday, right?
 
That's what the mondays are for right :P
lol
 
loled
 
12:25 PM
@hakre: do you refer to the questions manually or is it done with chrome extension?
 
@zerkms I did install the chrome helper two days ago on this computer
 
is it published or should we install it using dev mode?
 
@zerkms just go to github.com/cv-pls and then chrome and there's the link to current stable CRX file.
 
ok
 
Depending on chrome version and os, you need to download it and drag-drop (windows) or you need to start chrome with a commandline switch and then click the link to install it.
google has made installing without their "gimme 5$ shoppe" more complicated.
 
12:44 PM
test
 
yes , this thing actually works
 
1:11 PM
God PHP why do you suck so hard :(
 
hi. for some strange reason I really cannot get linebreaks working in my file
I have tried to convert it to UTF8
but always when i display the file in browser, it does not display linebreaks
what could cause the problem?
 
@Olli , did you check your meds ?
 
meds?
 
pce
morning
 
what are meds
 
1:13 PM
@pce morning
 
pce
/me is working on a websocketserver, it works really good, and i don't need nodeJs for a chat.
 
good morning @pce.
@pce but what if you want node.js?
 
pce
@Olli Linebreaks? \n in a pre tag, <br> in html?
@hakre then i apt-get install node ;)
 
@pce I mean when I look the file using chrome's view-source: the linebreaks wont' display
 
@Olli meds = short for medicaments. the sentence means, if you are confident with your current level of medication.
 
1:15 PM
@hakre I do not have medication at all :P
why is @teresko asking it
 
maybe you should have ..
 
pce
@Olli echo "\n"; ?
 
@Olli oh, I would not take it that lightly. you might be better with medication.
 
@tereško why
@pce what you mean by it
 
now i remember why this guy was in the ignore list .. c ya
 
1:17 PM
is it him?
 
ahoy hoy
 
heja @ircmaxell
 
@ircmaxell Aye matey :)
 
hey there
 
How's it going?
 
1:18 PM
Same PHP shit, different day
@ircmaxell How was the conf?
 
@pce no, I cannot get the linebreaks to work
 
it is very good
 
What are you up to?
 
hacking in the bar for this session
 
@Olli live with it. linebreaks are not supposed to work anyway, you only need them in source, for display use the <br> tag.
 
1:20 PM
"Hacking in the bar" is the best hacking there is
 
@NikiC I think I have all the issues solved with the hash_password PR. Installing valgrind (again) to confirm before the push
 
@hakre yes of course I know that. but code readability , I would like that the linebreaks would work. of course, for user viewing I need <br>. but when I look the code, I would like the linebreaks to display. but it does not display them
 
@Olli Only because you want and look at something, it must not mean that something follows suite.
so now back to ignore list.
 
@hakre I'm sorry but I cannot understand what you mean.
 
I have a question about the compat lib @ircmaxell I want to start using it at my job, because I have to start making a lib from scratch (was is already there sucks big time). Is it production ready / safe / peer reviwed enough?
*reviewed
 
1:22 PM
@ircmaxell great :)
 
@PeeHaa I would consider it good
valgind passed the unit tests. Time to add more tests
 
Great. tnx
 
user1125394
// sometimes I believe compiler ignores all my comments
 
@cyril me too. I even sat it down and explained it carefully, but still nothing
 
1:32 PM
@ircmaxell good
 
@ircmaxell did you see my message from yesterday?
 
btw, what is the right pattern for dtoring if you do a convert operation?
I wasn't sure when I was looking at the code
 
no
 
@ircmaxell I linked to your blog and was wondering how you'd like to be cited (Ircmaxwell, or Anthony Ferrara?)
 
why float:right does not work in absolute positioned divs
 
user1125394
1:43 PM
because float is relative
 
ok
 
posted on October 06, 2012 by Evert Pot

I just released SabreDAV 1.7, after about 7 months of work. A lot of work has gone into optimizing operations, and a bunch of new features have been added. I also stopped supporting the PEAR packages, and fully migrated to composer. If you download the zip, the required composer files are actually shipped along. SabreDAV's uptake and contributions has also been very encouraging. This is e

 
When I do something like this use Yadeo\Storage\Medium\Database as StorageMedium. Would that be a WTF for people reading my code and suddenly seeing new StorageMedium instead of new Database?
 
yes
why would you want to do such a thing?
 
I thought (wrongly I get the feeling :P) that in that case if somebody wants to use a different storage medium instead of a db the user only has to change the top of my script.
But that's a big no no?
 
2:04 PM
@Eugene yes, you implement those interfaces in all the classes requiring that particular interface. something like toInt is class specific anyways. the whole point is separation of concerns and putting methods on appropriate classes, which an Util class is not.
 
@Eugene well, then read it again :)
@TimPost ping
 
good morning @Gordon
 
@hakre hi
 
DUH
SEPARATE_ZVAL doesn't actually duplicate it.
 
2:15 PM
@ircmaxell hows phpnw?
 
Really good... @edorian's was awesome
 
@ircmaxell how did yours go?
 
really well. Hopefully I have it on video
 
@ircmaxell cool
 
@PeeHaa as you do new StorageMedium('pgsql:host=127.0.0.1;dbname=yadeo', 'user', 'pass'); lateron that kind of "abstraction" (or whatever it is supposed to be) doesn't really make sense ;)
 
2:20 PM
how can I align element to bottom with CSS?
I mean bottom of a page
 
@NikiC k. Aaaaand it's gone :)
 
alright, I think I'm done
leaks tested for and fixed
going to push it back to github for the PR right after make test finishes running
 
user50049
2:36 PM
@Gordon pong
 
user50049
(back in a few, actually)
 
@TimPost i have been downvoted six times in 39 seconds a few hours ago. can you have a look please? something tells me this wasn't about the answers.
 
@NikiC: Pushed. Please review again, and if good, I'll try to merge it in tonight or tomorrow morning
for now, I am off. Later
 
user50049
@Gordon Nothing is glaring, it's probably not coming from just one person.
 
user50049
2:41 PM
I am going to make some notes, however. If it keeps up ping me and I'll look to see if some numbers changed.
 
@TimPost erm, six dvs in 39 seconds not from one person is a bit much of a coincidence, dont you think? especially given my usual reputation graph
 
user50049
@Gordon That's the primary reason why it would not yet be on my 'radar'
 
user50049
I can't really talk about the tools too much without explaining how they work, which of course I'm not allowed to do.
 
@TimPost ok thanks :)
 
sup bitches
 
2:50 PM
@DaveRandom who do u call bitch, bitch?
 
@DaveRandom Jo nigger
 
Way too hungover to think of a suitably amusing response. If you would all be so kind as to consider yourselves amused, I would be ever so grateful.
 
The bad thing is that it only gets worse when you get older
@Ikke Where are you from in NL?
 
-2
A: PHP extract data from text file and write to another file

GordonYour modfile barely makes any sense. You are passing $pos to the function but it will get overwritten in the foreach. Also the foreach is empty, so what's it good for? And I don't see you use $text anywhere either. To achieve your desired output, try this instead: file_put_contents( '/path/...

anyone can tell me what's wrong with that answer? it's one of the serial dv'ed answers but it had an additional -1 before and I never understood why. even has green tick.
 
00:00 - 15:0015:00 - 00:00

« first day (721 days earlier)      last day (4221 days later) »