« first day (771 days earlier)      last day (4195 days later) » 

4:01 PM
@cyril Careful though, with somthing like that you might be trimming valid data
 
user1125394
ah yes..
 
user1125394
I need to remove '\u0000' but not spaces, or just clean id for the moment
 
But something like that would be an improvement imho
 
@LeviMorrison Not to sure about offsetUnset, but what about just insert()?
 
hallo!
 
4:03 PM
@PeeHaa what was the issue? I only saw it quickly yesterday afterwards but didn't understood about what it was about.
 
@cyril Filter (don't confuse with validation) your variables as early as possible so the rest of your code can do what it needs to do
 
hallo @mmmshuddup
 
guten tag!
the internet stopped working last night so I had no choice but to go to bed early ¬_¬ haha
sad...I know
 
hi there
 
@hakre Closing question (which we also deleted for the wrong reason e.g. too localized instead of dupe). Because of the fact it was the 1000th dupe we closed it the lazy way, because it would end up deleted any way. @Shog9 didn't thought that was right as well as didn't agree that 1000th dupes onyl add noise
 
user1125394
4:05 PM
@MikeB like this filter_var($data['id'], FILTER_VALIDATE_STRING)
 
I always forget about that filter_var function in PHP
 
user1125394
nah I need a custom, one I think I already tried, it doesn't remove null chars
 
@PeeHaa any bottom line?
 
@MikeB That's it basically. I still think 1000 dupes only hurts the system and AFAIK @Shog9 still thinks it's a good idea
 
@PeeHaa Why for better google searches?...mmm not better but like more broad
 
4:08 PM
@PeeHaa Because people get banned for it?
 
@mmmshuddup More like a pain the find the correct answer underneath all the crap answers
@MikeB OP got a question ban yup
 
@PeeHaa true. but not all questions have tons of answers
 
@PeeHaa hmm, well. Okay. I'd say a new question can be too localized if enough existing duplicate questions already exist.
 
I don't know.. it's an interesting topic for sure
 
But probably that is not what Shog likes.
 
4:09 PM
@hakre Exactly
@hakre And exactly
 
well Lately i've been closing a lot of questions like that.
 
:)
 
questions that have dupes and are very localized
but I do so after it has an accepted answer
so it gives the OP and the answering user a chance... plus not all closed questions should necessarily be deleted, aye?
 
@mmmshuddup Also when searching on SO with the exact (specific) title of OP it turned out numerous dupes already. Which imho shows a lack of research
 
haha indeed
 
4:11 PM
@PeeHaa Okay, I can understand that it's better to close against a dupe. If too localized is used differently, then we can just take "not constructive" or "not a real question".
 
@mmmshuddup The 1000th dupe should just be deleted. It only adds noise for people itfunding
 
I get super sick of setting "php array print result"
or whatever (like as question titles)
every 40 seconds there's a new question about some stupid PHP array. and what's worse is some of them shouldn't even be answered and yet you see guys like 100k rep answering these retarded qeustions
haha
</rant>
:P
 
@hakre I think that's a good question
 
"what am i doing wrong?" is not a proper question
 
4:16 PM
@hakre On what accusation?
@tereško He said, the script seemingly drains the server's memory for no apparent reason, he included his code and what he has, he included what he's done to make it happen. Sure, it lacks a detail or two, but nothing worth closing IMHO.
 
@mmmshuddup and @MadaraUchiha - what @tereško said.
 
@MadaraUchiha I totally agree with that 100%
who?
 
@MadaraUchiha He said it does, but it's not clear if it does and where.
 
Well whoever's right.. it's not +7 worthy. Shows the bare-minimum amount of research. Noone else has dropped in experiencing the same problem so it's not really that useful
 
@hakre I can't read what that guy says I blocked him a long time ago
 
4:19 PM
@hakre What am I doing wrong is a perfectly good question, if all proper details are included.
3
 
@MadaraUchiha If, but I see the two most straight forward ones missing.
 
And most are included.
What do you find missing?
 
user1125394
sorry ultimate stupid css question: jsfiddle.net/qjqac < I'd expect that class order would work
 
yeah I have to agree with @MadaraUchiha on this one
 
user1125394
but it's just the order they are in css
 
4:21 PM
@MadaraUchiha First of all the error message / description.
 
@hakre There is no error message. The server crashes, he stated that.
@cyril Same specificity, the rule which comes last wins.
 
@MadaraUchiha Then his question could have been how do I find the error log :p
 
@MadaraUchiha If the server crashes, this must not be related to PHP automatically, right? He could have just "upgraded" the php version the wrong way which just crashes the server.
 
@MadaraUchiha @hakre, plus look at this guy. he was last seen 20 hours ago. you guys just posted comments about his quesiton... I mean give the guy a chance to log in, see the comments, edit his question etc etc anyway
 
Hi all
 
4:23 PM
@hakre That's true, which is why the correct answer would be "debug and find the error log"
 
I mean otherwise he's not given a fair chance. he'll come back and bang his question is closed and for what? I've seen way worse questions
 
@hakre have been coking a transaction system
 
hi @Baba
 
@MadaraUchiha But that's not an answer, that's a comment.
 
@MadaraUchiha how are you doing
@MikeB hello
 
4:23 PM
@hakre I don't think that this question should be quickly closed like common crap, because it's not.
@Baba I'm fine, how are you? :)
 
user1125394
@MadaraUchiha would have been more interesting if it worked with class="" order
 
@mmmshuddup There is nothing unfair in leaving a comment and close-voting or close-voting alone.
 
@cyril The order is calculated at the CSS level, it doesn't care about which class appears first on the HTML.
 
@MadaraUchiha am ok .... how is the bombing ? hope much more better now
 
@hakre true. but many other people see the "close(1)" thing and get trigger happy
 
4:25 PM
@Baba We're on a cease-fire ATM. Hope it lasts (and a small part of me hopes it won't).
 
it's only natural
 
@mmmshuddup Many other people see the ask question button and get trigger happy. I mean, what's the argument? That users are using the site?
 
true haha
 
@MadaraUchiha wow .... you would definitely be fine
 
4:25 PM
And please upvote my comment so it's visible
 
@MadaraUchiha i even wanted to ask you what you mean by Intead of rotating it N times, why not simply return the Nth index?
0
Q: Inefficient rotating of an array

dadordI'm trying to make a function that is able to rotate through an array a given amount of times and then return the first index. But what I have is really slow and clunky. Take a look: <?php /** * Get the current userid * @return integer */ public function getCurrentUser( DateTime $startDat...

 
@MadaraUchiha where's the dupe?
 
@mmmshuddup Look at the comments
(Open all comments)
 
Yeah I just saw that, thanks :)
 
Intead of rotating it N times, why not simply return the Nth index? — Madara Uchiha yesterday
@MadaraUchiha what do you mean by that
 
4:27 PM
@MadaraUchiha I'd say it's more the other way round:
 
@Baba Well, instead of pushing the Nth first pieces to the end, and return the first element, just return the Nth element, it'll have the same effect
 
but now both of these are going to get closed?
@hakre I agree
 
@MadaraUchiha not when Nth element is grater than total ....
 
@hakre I disagree. The linked duplicate has a working, accepted answer (which happens to be mine, but that's not the point).
 
@mmmshuddup perhaps, but likely not. Additionally, one can request a mod to merge the two.
 
4:28 PM
It's not always about date, sometimes you need to choose the best question/answer pair.
 
@hakre :O I didn't know merging could be done
@MadaraUchiha yeah that's a good point too
 
@MadaraUchiha And the answers given in the other question do not work?
 
@hakre Haven't checked, I know the answer I gave works for sure.
 
nmap -v @hakre
 
4:34 PM
@PeeHaa ping();
@NikiC ping();
 
@hakre that one should be moved to Meta imo
 
@mmmshuddup Look at the date. I'm re-tagging older questions right now, and with those I don't see much more use, I mark them for deletion if already closed. I mean nobody will care about those, right?
 
@MadaraUchiha haha
@hakre yeah I guess. sucks for us of low rep though :)
 
4:42 PM
@mmmshuddup Write good questions, and good answers on good questions, and you won't find this "sucks"
 
@MadaraUchiha that is becoming increasingly difficult since most good questions have already been asked/answered but yeah you're right
 
@mmmshuddup What do you mean? The extremely low quality of new questions?
 
@hakre He means the deletions of rep-whored questions.
 
@hakre no no. I mean like people only seem to upvote or consider a question to be "good" if it's useful to many people. but I disagree with that mentality. I mean it's true for some cases but not all. like for example:
 
6
Q: Is there a way to make PHP's SplHeap recalculate? (aka: add up-heap to SplHeap?)

md2k7I am using an SplHeap to hold graph nodes of a tree with directed edges that will be traversed from the leaves to the root. For this, I precalculate the "fan-in" of nodes and put them into the heap so that I can always retrieve the node with the smallest fan-in (0) from it. After visiting a node...

 
4:45 PM
8
Q: jquery selector "or"?

Hellnar$(".box :text").tooltip({ //do stuff } now it works well for selecting :text areas under box classes however I also want to include :password areas aswell. How can I combine selectors without writing 2 seperate selectors and execute 2 different methods?

to me, it's questions like that which should be deleted
but those questions are usually the ones that get protected. that kind of question could easily be answered by looking at jquery.com for less than 5 minutes
 
LOL :P
 
Just left a downvote, too. Was asked only a month earlier ;)
 
Poor M4N, he's about to lose approx 370 reputation all at once.
 
@hakre :P nice
 
4:48 PM
355 to be exact
 
lol yeah he can take it though. but if it were me I'd be shocked :( haha
that would be like half my reputation :P (exaggerating of course)
 
One more, no one?
Where's @webarto when you need him?
 
here's a thought: should all closed questions necessarily be deleted also?
 
@mmmshuddup No.
 
@mmmshuddup no.
 
4:54 PM
Questions with no standing value should be deleted
 
agreed. some questions should be closed simply because no more good answers could possibly be added. but I mean it doesn't mean they're bad questions you know?
 
Okay, to give a poster-case, here is just a standard bad question from the past:
0
Q: php flush the output to the textarea

hkvegaI want to flush the output to the textarea, I wrote the script but not successful, any one can give some ideas? Edit: the following code will write the output to textarea while the program running: <textarea name="test" id="test" cols="45" rows="5">abc</textarea> <?php ob_star...

 
Is there anyway to edit the predefined formats in the wp wysiwyg editor?
 
I doubt it can be reasonably answered, so I vote for "not a real question".
 
5:09 PM
That ^
 
@MadaraUchiha Hey...
 
@benlevywebdesign Yם
Yo
 
@MadaraUchiha see my last message 4ish up from the dotted line
 
@benlevywebdesign I'm not an expert on WP, I can only suggest you to look at the codex, and perhaps search for plugins.
 
Anybody has the latest tinyMCE image and filemanagers up for sharing somewhere?
 
5:15 PM
oh @PeeHaa do ya use tinyMCE?
 
@benlevywebdesign I've created a website for a non tech savvy friend so yes
Why you have the latest image/file manager for me?
 
well im trying to get the wysiwyg editor in wp to work with tinyMCE and I installed it and did what it told me to do but when I go to select some text to apply a style to it, it doesn't apply the formatting/styles
 
"It doesn't work" is not an error message nor a problem description
 
re-read
@PeeHaa it doesn't apply the formatting/styles
 
have you checked for JS errors on the page?
 
5:22 PM
where would that be?
 
Is google blocked in Israel?
 
I don't see any errors
and I'm in the US
 
Have you tried to debug it?
 
@PeeHaa Not yet it's not. Pretty sure it's blocked on Gaza though..
 
I don't think anything is wrong because the plug in gives no errors but when I try to style something it doesn't take the format/styles
 
5:26 PM
@MadaraUchiha I doubt it is blocked in Gaza tbh
And I have no idea what makes you think it is
I know the reception would be bad in the desert, but the same think could be said about Israel ;-)
 
@PeeHaa I was just kidding.
 
I know. Just shitting with you
/me sees torrent of image and filemanager, but doesn't trust the source
 
wollut
 
Yo dawg
 
so idk whats wrong
 
5:30 PM
what's up?
 
5 mins ago, by PeeHaa
Have you tried to debug it?
 
@MadaraUchiha wow, that's even terrible for a homework question
 
@Lusitanian Trying to get my hands on a gray image/filemanager download @Lusitanian. you?
 
the plugin works it just won't apply the styles when I select it
 
5:31 PM
@Lusitanian Someone clearly hasn't listened in class and is hoping for us to bail him out.
 
@benlevywebdesign That's not debugging. That whining in some random chatroom about the fact that some tool doesn't work.
Not the same thing man
 
@PeeHaa what's a "gray image/filemanager?" eh just fixed up a pull request which i submitted to doctrine/dbal last week
 
@PeeHaa I'm trying to load my site right now and its being a little slow so hold on
 
@Lusitanian Gray as in free tinyMCE plugin which should cost money
:()
Pirate all the things!
 
Why do you want a tinymce plugin? lol
Assuming you mean that
 
5:33 PM
@Lusitanian Unless you have a better WYSIWYG editor for non tech savvy person ;)
 
lol, i like mercury editor
 
@Lusitanian yeps
 
@Lusitanian Haven't heard ot if... checking it out
Looks somewhat promising although I don't see an upload option (as in upload image)
Also:
 
That's why you use the latest tagged version :)
 
5:36 PM
:)
 
But yeah you'd need to add that...if you're feeling lazy than tinymce is the way to go
it does support drag and drop uploading of images
 
@Lusitanian wut
 
by default but for whatever reason there's no select-a-file-do-whatever
you can drag an image from your filesystem into your browser and it uploads it
i have it used in that capacity on someone's blog
 
That would be just perfect
 
What's your use-case?
CMS for someone who thinks HTML is a type of sports statistic?
 
5:38 PM
@Lusitanian I've created a website for a friend with no understanding og HTML whatsoever
 
ah :)
 
It looks pretty good. What does the HTML which comes out of it look like?
bad or terrible?
 
just bad, not terrible
go test it :p
 
@Lusitanian Great! I'm definitively going to try to drop tinyMCE for that.
 
Alright, lemme look real quick at what I did for the image uploading stuff
I know it's built-in but I can't remember if I had to modify it slightly because the silly thing is built for Rails
 
5:41 PM
@Lusitanian Neh. It's working by default by drag and drop.
 
According to the demo that is
 
uploading: {
  enabled: true,
  allowedMimeTypes: ['image/jpeg', 'image/gif', 'image/png'],
  maxFileSize: 1235242880,
  inputName: 'image[image]',
  url: '/admin/upload/mercury/image/s3',
  handler: false
  },
'tis all
 
Sweet. tnx :)
 
lol nice symbol. you're welcome!
 
5:49 PM
@MadaraUchiha closed, your argument is invalid :P
 
@webarto you didn't use jQuery, your argument is invalid :)
 
heh :D
 
lol
 
I googled "jquery guy" and that's the image I got...
 
5:53 PM
They are fat just as the jQuery ... I'm fat, I have a right to joke on that account.
Your arguments are invalid :P
 
I don't like when my site is down for just me
 
@webarto you don't really look fat
I look really fat in my gravatar though
 
how can I solve the issue of my site being down for only me?
 
@Lusitanian Your fur looks really good too
 
@cspray thanks!
 
5:58 PM
Hi, I do not want to ask a non constructive / duplicate question on SO, but I've been working on PHP for almost a year. I use php.net, but I really need a GOOD book (I spend 4 hours on travelling) . Is there a (JS The good parts) sort of book for PHP?
 
@AaditiSharma Not really related to PHP in specific, but I thought amazon.com/Patterns-Enterprise-Application-Architecture-Martin/… was a good read
 
@PeeHaa I hate that that book is so expensive
 
@Lusitanian You can always torrent it, but I think it's worth its buck
 
Nah, I don't support piracy
A family member actually has a copy anyway but at some point I think I'm going to swallow the pain of spending $30 on a book and get the Kindle version
 
@AaditiSharma Like PeeHaa suggestion it isn't specific to PHP but Clean Code really impacted the way I code and is a good read
 
6:04 PM
@cspray : i"ve had my eye on that book since quite a white, waiting for it to come in the library
 
is there a fix when my website is down for just me?
 
@benlevywebdesign : proxy ?
 
It just times out
it will load for you I'm sure
why would it do this?
 
user1125394
anyone here have redis-server installed (on linux based system)
 
user1125394
redis-server --version is returning shit: 25 Nov 19:17:26 * Fatal error, can't open config file
 
user1125394
6:19 PM
ls -als /etc/redis/redis.conf -> 8 -rwxr-xr-x 1 redis redis 8142 2010-01-14 16:51 /etc/redis/redis.conf
 
@benlevywebdesign Some hosts block access when you access too many pages in an hour.
What host are you using?
 
@ShaquinTrifonoff 000webhost.com and I have not usually had this problem
 
@benlevywebdesign Yep, that's one of the hosts that just does that. All hosting services by 'Main Hosting'.
I use HourB.com, it has the same problem.
HourB has the same server setup, but it's unlimited (and free). HourB == 000Webhost without disk space and bandwidth restrictions.
 
@ShaquinTrifonoff you ever have any problems with your server/service
 
@benlevywebdesign The same problem: if you request too many pages in an hour, it will block you for that hour.
 
7:06 PM
mine is free too but it has a 1500.0 MB limit and 100000 MB (100GB) limit
 
The only place I experience being blocked is in my chat system, where it sends requests to check for new messages.
Other than that, it has 99.6% uptime.
 
@ShaquinTrifonoff besides the blocking is it a good service and it sucks that it blocks
its only blocking me
 
Yep.
I created my own proxy system to work around that.
 
how?
so you don't get blocked?
 
I used to help administrate a free webhosting service, when I was a kid.
Now, I no longer use free hosting, ever.
 
7:08 PM
since I'm doing wp and php I kinda need to be able to get to my website lol
 
@benlevywebdesign No, so that if it blocks me, I just start using the proxy until the hour has ended.
 
@ShaquinTrifonoff what does the proxy do?
 
In computer networks, a proxy server is a server (a computer system or an application) that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource available from a different server and the proxy server evaluates the request as a way to simplify and control their complexity. Today, most proxies are web proxies, facilitating access to content on the World Wide Web. Uses A proxy server has a variety of potential purposes, including: * To k...
 
how do I set that up or use it?
 
I'll post a link to my code, just a min
 
7:11 PM
ok that would be great
 
should be easy to set up right?
 
@PeeHaa needz moar tutorials
 
.htaccess:

RewriteBase /

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L,PT]
index.php:

<?php
$host = 'YOUR HOSTNAME HERE';

$host = "http://$host/";
$path = substr($_SERVER['REQUEST_URI'], strlen(dirname($_SERVER['PHP_SELF'])));
$url = $host . $path;
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['USER_AGENT']);
curl_setopt($curl, CURLOPT_POSTFIELDS, $_POST);
curl_setopt($curl, CURLOPT_HTTPHEADER, getallheaders());
header('Content-Type: ' . curl_getinfo($curl, CURLINFO_CONTENT_TYPE));
curl_exec($curl);
?>
 
@PeeHaa Do you host your site on githubpages?
 
7:15 PM
@Lusitanian Better: needs to finish some tutorials and start doing some work on the blogging system and finish the php starterrs tutorial and finish the website for a friend
 
lolol
 
@Lusitanian Neh. Own server
 
I'm considering creating a blog
but there are no good blogging engines :(
 
I've created a blog, but it has nothing on it, and it's WordPress :P
 
@Lusitanian I know that's why I started creating it, but as you can see I've got sooooo much to do :(
 
7:16 PM
@ShaquinTrifonoff It's soo poorly coded and insecure :(
@PeeHaa I wrote a really simple one a while ago, but it sucks.
 
@Lusitanian Too bad, it works :P
 
@ShaquinTrifonoff That it does!
 
At least it has better code than my webhost...
 
lol
 
so whats my first step...
 
7:17 PM
@Lusitanian That's also my aim with Yadeo. Fuck off I don't need my blogging system to be a CMS
;)
 
@benlevywebdesign Create a new site, and upload those 2 files to the server.
 
@PeeHaa I literally cannot figure out the purpose in >50% of wordpress
I'm going to create a really simple one over the next hour until I get bored
 
Exactly. C'mon all one wants is post some messages and comments.
 
yup
and disqus handles the comments anyway
 
@Lusitanian I dislike disqus because it doesn't support comment formatting (that I am aware of)
 
7:19 PM
ok I'm kinda new/lost so once its explained I think I'll get it
so by a new site you mean?...
 
Might be wrong didn't look at it too extensively
 
@Lusitanian Yeps, but I want MD support :)
 
@Shaquin your help is so appreciated
 
7:22 PM
Or actually: I want it to be extendable to be able to drop in any formatting one likes
 
@benlevywebdesign Click 'Create New'.
 
ah ok yeah now i get it
then take your code and upload it and what else?...
 
@benlevywebdesign Then that's it. You can browse the new website, and you will see the one that is being proxied.
 
whats the 2 files part
 
@benlevywebdesign The code I posted earlier.
.htaccess and index.php.
 
7:25 PM
oh ok
so its .htaccess and thats the file extension
@ShaquinTrifonoff "your host name" is my website?
 
@benlevywebdesign Yea, benlevywebdesign.com
:6382114 Do you not know about .htaccess files?
 
You should really consider doing some research on the topic of webdevelopment instead of asking everything you encounter @benlevywebdesign
 
evenin'
 
7:33 PM
hiya
 
@tereško jo
 
.. i'm off to get some beer and drinkable water
 
Same thing?
:P
 
that solves my issue of not being able to access my site but I can't really work on my wp
so ill just have to wait
 
@benlevywebdesign Why can't you work on WordPress?
 
7:39 PM
@ShaquinTrifonoff idk I changed the host to match my wp and its not showing the styles and its a little slow so I'm checking something
@ShaquinTrifonoff bentest.net46.net and check it
 
This webpage is not available
The webpage at bentest.net46.net might be temporarily down or it may have moved permanently to a new web address.
Error 103 (net::ERR_CONNECTION_ABORTED): Unknown error.
That's amusing, I can access the proxy through another proxy :P
 
It's working now.
 
yeah and no styles
 
@benlevywebdesign It looks fine for me...
 
7:49 PM
this is me
 
so guys ... i was trapped on a buss for anded up reading PoEAA book again
 
I think something else is going on
 
@benlevywebdesign Check the requests in the Network tab of the developer tools.
esp. style.css
 
what do you people know about Identity maps ? In context of web and distributed caching ..
 
ok
today is just not my day
 

« first day (771 days earlier)      last day (4195 days later) »