« first day (233 days earlier)      last day (4711 days later) » 

6:10 AM
Morning all ye
 
hi...
 
The Community user is quite active today.
Monday clean up, I guess.
 
6:24 AM
more like Sunday pass out in US time zones...
 
7:10 AM
It seems the Community user only bounces old questions with at least one answer, which makes them nice candidates for votes to get them off the "unanswered" list
 
7:22 AM
@JanFabry As long as this is not the only reason to vote – yes.
 
Oh no, of course not. It's just more likely you'll find a good answer without upvotes there than in the larger "unanswered" list (skipping the first few pages with new questions of course)
 
8:13 AM
morning all
 
8:33 AM
morning guys
 
 
1 hour later…
9:44 AM
7
A: Should 'Hi', 'thanks' and taglines and salutations be removed from posts?

Jeff AtwoodWe now automatically remove salutations from posts as they are entered. I got really tired of performing this edit over and over, so anything matching the form of … ^\s*(hi(?![a-z])|hii|hiya|hello|dear).*?([.,;!-]+\s?|\r?\n(\r?\n)?) … is removed automagically at the time of submi...

 
9:58 AM
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
^^ that should point everything to index.php?
for some reason im getting a 404 if i dont visit index.php
^^ the above only seem to not work on my local dev. work on live server
 
@Brady mod_rewrite is enabled on your local server?
 
yes checked that
thats first thing i checked :P
 
Have you enabled the Rewrite Log?
 
10:13 AM
no whats that do?
 
It gives detailed logs about how Apache processes the rules
URL comes in, and you see what rules Apache applies to it
 
ok ive enabled it and it doesnt write anything
RewriteLog "C:\xampp\apache\logs\rewrite.log"
in my httpd.conf file
 
You must set RewriteLogLevel too
 
ok
still nothing
RewriteLogLevel 3
RewriteLog "C:\xampp\apache\logs\rewrite.log"
 
And your .htaccess file gets read?
If you put an error in there you get a 500 server error?
 
10:22 AM
let me try
think you got it. its not reading my htaccess file
any ideas why not...
 
Is AllowOverride enabled for that virtual host?
 
<VirtualHost *>
	DocumentRoot "C:\xampp\DEV\Wigmore"
	ServerName wigmore.dev.philosophydesign.com
	<Directory "C:\xampp\DEV\Wigmore">
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>
setup a vhost
so you saying there should be an allowOveride in there somewhere?
 
Yes, in the <Directory> part
You probably have a generic AllowOverride None somewhere higher in your server configuration
 
what overides should i be putting in?
 
AllowOverride Allshould enable everything
 
10:30 AM
just testing that now
thats got it :)
 
The "generic AllowOverride None" was the cause of my security problem with phpMyAdmin last week
 
easy when you know the answer :P
thx jan for your help
I can get back to dev now
 
Well, it's just the basic question: "is it turned on?"
 
on a tight deadline for this site im working on atm
speak later
 
10:41 AM
0
Q: License my own answers under the GPL too?

Jan FabryIf I add a notice to my user page that my answers are licensed under the GPL, in addition to the "standard" site-wide Creative Commons license, how does this affect posts by other users that I edit or other users that edit my posts? Personally, I don't mind if others can use my code to write use...

 
11:08 AM
I dig Yoast/WPMU situation... Something, almost completely in line with GPL, off by [optional as far as I remember] attribution and it still manages to become a clusterfuck... yay for licensing and professional ecosystem! :)
 
11:24 AM
Hi
 
12:07 PM
Quick question: who is the Mark behind plugins@wordpress.org?
@Rarst Weird that sorich87 was involved - I still see him as part of "our" WPSE community
 
@jan - guessing it's mark jaquith?
 
@JanFabry my weak guess is Mark Riley, only Mark on the list of Automattic employees and he does come up via google in relation to repository
 
@spartacus I don't know - I was thinking that they would (need to) pay someone for this "administrative" work. It's not as sexy as hacking core :-)
 
definitely not Jaquith
 
12:26 PM
wild guess fail :)
 
@JanFabry What exactly are you guys talking about... just curious about the "our community" stuff
 
@kaiser sorich87 is a user on WPSE. He is still around, but not so active anymore.
Because I learned to know him via WPSE, whenever his name pops up, I think of WPSE
 
@kaiser summary - WPMU DEV hired Sorich to code SEO plugin, he reused code from Yoast's plugin, plugin goes in business without mention of Yoast, Yoast goes ballistic, WPMU guys go passive aggressive
 
@Rarst Thanks. What's WPMU "DEV"?
 
@kaiser company, WP plugins, subscription-based. google it
 
12:40 PM
Just found it. Never heared of it before. Seems like they take GPL plugins re-release them and call that ... a buisness model??
 
I have no idea about specifics. there seem to be plenty of people who consider them dirty abomination, but I am long past trusting generic opinion of WP community
 
just reading this all now - storm in a teacup from what I can see - if sorich had added a copyright notice, then this would be a complete non-issue
 
Could you share a link to some post or a discussion? Can't find anything about that
Ah, ok. found it
 
scribu created a Q&A plugin for them, based on the Stack Overflow model - and theme. This was discussed on the Meta Stack Overflow site as a possible rip-off
12
A: WordPress Q&A plugin blatently ripping off Stack Overflow design

scribuHi, I'm the developer of the WordPress plugin in question. I used the StackOverflow design as a placeholder. It was never meant to be used in the final version of the plugin. I shouldn't even have made available a testing version until a proper design was in place. For that, I apologize. I've ...

 
12:56 PM
It seems to work for me?
 
I don’t get a stylesheet. cdn.sstatic.net/wordpressmeta/all.css does not return any content, not even a status code.
Now it’s back.
 
That could be a CDN cache issue. It works fine for me.
Maybe they just updated it
 
Spend half of the day teaching a pro support how to program a wp plugin.
I can fully understand why some customer doesn’t want that.
 
no one will ever beat specialized WP hosting asking details for migration - "if your wordpress blog currently hosted at blogger?" :)
 
1:28 PM
Those Silverlight pros will have to learn something new.
Imagine: if WordPress would switch from HTML to Silverlight …
 
1:43 PM
@toscho it's easy to hit the road :) I am fickle :)))
we have it easy, newish technologies, Internet-worth of info... it's nothing hard comparing to working with some decade old abomination of proprietary software that speaks in crappy C++ dialect
 
2:03 PM
 
2:31 PM
New "shortcodes" when you write comments:
11
A: Add data.SE style "magic links" to comments

balphaMost of these now work. My comment below has the following markdown source: On [main], you are expected to write proper English (as advertised on [english.se]), but here on [metaso] it's more important to have freehand circles, so please [edit] your post, otherwise I'll have to flag you (see ...

 
@JanFabry Cool
 
2:59 PM
problem is I will never remember those when I need them... it's a problem with interfaces that are feature-rich, but obscure (like command line) - you have to keep too much stuff in your head to use it constantly and efficiently
 
3:14 PM
ouch... I love ghacks but content about WP is not its strong side ghacks.net/2011/06/06/add-thumbnails-to-your-wordpress-blog
 
ouch indeed
 
3:38 PM
anyone ever encountered/used PageLines in the wild? they advertise aggressively, but I don't think I ever seen even a mention outside of ad
 
@Rarst No, but i remember a Theme that was there before: "Constructor" by some russian guy. Searching for a link... sec.
 
was there before?.. you mean like previous version or what?
 
@Rarst Here it is. I guess that was the orginal idea behind it. As far as i remeber this was originally some Google Summer of Code project (?)
 
I vaguely remember reading about constructor on russian site
 
No, just the idea.
And it's still maintained
 
3:43 PM
ah... I am weakly interested in product rather than idea... they seem nice but suspiciously underknown
 
Here's the original post... little hard to read :)
I haven't tested "PageLines", but i think it's more for those people who want to avoid coding...
 
4:01 PM
I now updated the "WPSE Plugin Repository" with a line about the license (Please update/edit if I'm wrong with something). Really not a nice day after reading the wpmu, the EAMann and other stories about such cases... Bäh!
 
4:27 PM
@kaiser My rewrite analyzer plugin is indeed GPL + CC, so I think you can remove your comment?
 
4:40 PM
@JanFabry Done. Thanks!
 
5:07 PM
if anyone makes GPL mess in our nice clean site - heads will roll :P just saying...
I am tempted to ask for "X days without GPL debate" somewhere in the corner... going so good so far
 
5:42 PM
Some of my clients are probably part of the One Laptop per Child conspiracy. *headdesk*
 
why so?
 
@Rarst Some e-mails just sound as if they are from a toddler.
… who wants a second birthday cake.
 
(Ow, that star is only meant for messages that are "useful / interesting for the transcript" - not just silly)
 
I clean up stars from time to time, some just don't make sense out of context
 
That's part of the fun, no?
 
5:57 PM
sure, but joke needs to make sense in sidebar, not in context of transcript from two weeks ago
 
6:16 PM
@Rarst I just read the discussion between you and Chip Bennet below my answer on this thread. I would really like to ask another Q on meta like "What exactly is inside the focus on WA and what's not", but i already feel like I'm spaming meta...
 
no worries, I just bumped question about FAQ and scope recently, it needs to be revised
 
@Rarst so I just wait until you raise it again
 
I mean FAQ needs to be revised... feel free to ask your own question
 
I never got around what "FAQ" really is here on WA...
 
6:33 PM
Ah, ok. Read that ages ago. I thought you might talk about the "faq" link at the Qs (and that's where i have no idea what it is).
 
7:06 PM
Short general php Q: When (in best practice examples) should a $var or function start with an underline like _wpse_cb_fn(); or $_some_var;? Couldn't find any do/don't list. Thanks in advance
 
It's an old convention to indicate "private" functions or variables
When you create a library that will be used by others
But now it's best to use the real private or protected modifiers
 
Ah, ok. Will use it, so reading the class is easier. Thanks!
 
after nine hundred answers browsing site is one massive deja vu for me... want to ask question -> similar one was asked -> and answered -> by me
so here is that URL-to-attachment I promised to post
0
A: Turn a URL into an Attachment / Post ID

RarstMassively improved function developed for plugin heavy on images: function get_attachment_id( $url ) { $dir = wp_upload_dir(); $dir = trailingslashit($dir['baseurl']); if( false === strpos( $url, $dir ) ) return false; $file = basename($url); $query = array( ...

 
Darn @Rarst, you made me look for a good source for "the network goals of Stack Exchange". It must be out there somewhere, but where?
 
@JanFabry my weak guess is somewhere on Atwood's blog :)
 
7:20 PM
Trying to narrow down by category. "community"? 178 posts. "background"? 81 posts
This one seemed promising, but it's more about duplicate questions and editing
Posted by Joel Spolsky on January 5th, 2011

Have you ever noticed how certain questions come up again and again on Stack Overflow sites?

Oh look, my PC is freezing. Should I use SELECT *? Oh, and, how can I host a server from home?

Really, people, do you want to be answering these same questions ten years from now? How about when you’re 65? That doesn’t sound so appealing now, does it?

We predicted this problem, even before we launched Stack Overflow. Why? Because the same thing happened on Usenet, where:

What happened next depended on the newsgroup. …

 
is there neat way to array_map() object creation? pass every field in array through new something($field); ?
 
7:36 PM
@Rarst Why don't you do this inside the class on __construct()?
 
I have array of string, I want to turn each into object. foreach is obvious, but I was wondering if there is more neat way to handle it
 
Sorry. Nothing useable in my brain. Call me a "ducktape"-coder (again), but it's simple & as long as it works...
 
sure... I just notice that sometimes I default to straightforward stuff and miss more clean and useful approaches... PHP is easy to get into, but mastering it is another story altogether
 
You can't call c::__construct(), since __construct() is not a static function.
If you really want to do this with an array_map(), you would probably need reflection
$rc = new ReflectionClass( 'ClassName' );
$myObject = $rc->newInstance();
Then you might be able to call array_map( array( $rc, 'newInstance' ), $myArray )
 
7:56 PM
niiiiice :) probably not wise for a public plugin, but great to know
 
function to_object( $input ) { return (object) $input; }
array_map( 'to_object', $arr );
 
yep, thought about that
damn, it feels good to be able to write something like this:
$image->resize('thumbnail');
echo $image;
$image->resize('full');
echo $image;
 
 
1 hour later…
9:06 PM
more PHP trivia if I am not boring the crowds :) function returns array, I only need first element (do not want to assign to variable, etc)... array_shift()? or there is something more efficient?
 
@Rarst reset() ?
 
yeah... seems to work... for some reason I though it would want variable... it's confusing with PHP when some functions refuse to take non-variable input, makes you wonder
 
true
but wait .. i checked cz.php.net/manual/en/function.reset.php and the most recent comment says: Don't use reset() to get the first value of an associative array. It works great for true arrays but works unexpectedly on Iterator objects. bugs.php.net/bug.php?id=38478
i had no problems with reset in the past
 
wp_get_attachment_image_src() returns numeric array... although it probably should be returning associative
 
I probably used it only on simple associative arrays ... honestly i don't even know what Iterator objects are...
 
9:15 PM
I think that is interface that allows object to be treated like array or something
 
probably the first time i hear about 'Predefined Interfaces' at all. will be investigated later...
 

« first day (233 days earlier)      last day (4711 days later) »