Wordpress non registered comments slow to post / tracing php
I bought a cheap vps and installed apache 2.2, MySQL and wordpress.
Overall it runs pretty well with decent page load times. If I am logged in
as admin I can make post comments and they save very quickly however as a
non registered / anonymous user when I try to save a comment it takes 45 -
60 seconds to save.
I have tried using fast cgi and mod_php but the results are similar.
This is an out of the box install with no plugins or non stock themes
enabled.
Is there a way to trace the calls made during the post process? I have
tried setting wp debug but that doesn't provide much logging.
Tuesday, 3 September 2013
RepeatBehavior doesn't work in Expression Blend?
RepeatBehavior doesn't work in Expression Blend?
Is this just me or what? RepeatBehavior doesn't seem work for animations
in Expression Blend 4. I have the following animation:
<DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
Storyboard.TargetName="WaitDoc" RepeatBehavior="0:0:2">
<EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="180"/>
<EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="360"/>
</DoubleAnimationUsingKeyFrames>
I expect this animation to run for 2 seconds, but instead it runs only
once when I click Play button in Objects and Timeline pane. I have tried
values like 5x too, getting the same behavior.
I don't want to run the entire project to test every minute change. The
Play button SHOULD play it as defined. Am I missing something here?
Is this just me or what? RepeatBehavior doesn't seem work for animations
in Expression Blend 4. I have the following animation:
<DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
Storyboard.TargetName="WaitDoc" RepeatBehavior="0:0:2">
<EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="180"/>
<EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="360"/>
</DoubleAnimationUsingKeyFrames>
I expect this animation to run for 2 seconds, but instead it runs only
once when I click Play button in Objects and Timeline pane. I have tried
values like 5x too, getting the same behavior.
I don't want to run the entire project to test every minute change. The
Play button SHOULD play it as defined. Am I missing something here?
twitter like url and htaccess
twitter like url and htaccess
Below is my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
RewriteRule ^(.*)/$ index.php?url=$1
</IfModule>
I am trying to do the fancy twitter url.
www.mywebsite.com/home rather than www.mywebsite.com/home.php
in my index.php code its like this:
<?php
$key=$_GET['url'];
if($key=='index')
{
include('welcome.php'); // welcome page
}
else if($key=='login')
{
include('login.php'); // Login page
}
else
{
include('index.php'); // go back to index.php
}
?>
this keeps giving me a an invalid 404 error. and when I output: echo $key
it shows like this: index.php not index
what am i doing wrong?
Below is my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
RewriteRule ^(.*)/$ index.php?url=$1
</IfModule>
I am trying to do the fancy twitter url.
www.mywebsite.com/home rather than www.mywebsite.com/home.php
in my index.php code its like this:
<?php
$key=$_GET['url'];
if($key=='index')
{
include('welcome.php'); // welcome page
}
else if($key=='login')
{
include('login.php'); // Login page
}
else
{
include('index.php'); // go back to index.php
}
?>
this keeps giving me a an invalid 404 error. and when I output: echo $key
it shows like this: index.php not index
what am i doing wrong?
svn:// not working but http://
svn:// not working but http://
If i try to checkout a repos from a debian server via "svn:
//server.com/svn/repo" it throws:
Unable to connect to a repository at URL
'svn://server.com/svn/repo'
No repository found in 'svn://server.com/svn/repo'
But its working if i use "http://server.com/svn/repo" and the repo is
definately existing.
svnserve is running as daemon listening on Port 3690 (UDP/TCP)..
what am i missing?
If i try to checkout a repos from a debian server via "svn:
//server.com/svn/repo" it throws:
Unable to connect to a repository at URL
'svn://server.com/svn/repo'
No repository found in 'svn://server.com/svn/repo'
But its working if i use "http://server.com/svn/repo" and the repo is
definately existing.
svnserve is running as daemon listening on Port 3690 (UDP/TCP)..
what am i missing?
Does ASP.net MVC Suppiort Page_Load event?
Does ASP.net MVC Suppiort Page_Load event?
I am new to ASP.net MVC .
To start learning on MVC,i was going through a tutorial on MVC, where they
used Page_Load event which is same as in Web forms.
Does MVC Supports events,if so what events are supported.
Please Clarify me about this..
I am new to ASP.net MVC .
To start learning on MVC,i was going through a tutorial on MVC, where they
used Page_Load event which is same as in Web forms.
Does MVC Supports events,if so what events are supported.
Please Clarify me about this..
Going from boost::regex to std::regex
Going from boost::regex to std::regex
I ported some code from boost::regex to std::regex and now half of the
regular expressions don't match what they should.
I understand that boost::regex uses Perl grammar by default and std::regex
uses some ecma crap that I've never heard of.
Question: Are any of the new std::regex grammars similar enough to Perl
style for me to use or should I just stick with boost?
http://www.cplusplus.com/reference/regex/regex_constants/#syntax_option_type
I ported some code from boost::regex to std::regex and now half of the
regular expressions don't match what they should.
I understand that boost::regex uses Perl grammar by default and std::regex
uses some ecma crap that I've never heard of.
Question: Are any of the new std::regex grammars similar enough to Perl
style for me to use or should I just stick with boost?
http://www.cplusplus.com/reference/regex/regex_constants/#syntax_option_type
Monday, 2 September 2013
How to arrange items in list by drag and drop
How to arrange items in list by drag and drop
I'd like to be able to use drag and drop to reorder items in a list like
list Box or other in wpf similar to how you rearrange items on the Android
Program .but my Items are userControl. I test this. but It's not my
answer.
I'd like to be able to use drag and drop to reorder items in a list like
list Box or other in wpf similar to how you rearrange items on the Android
Program .but my Items are userControl. I test this. but It's not my
answer.
Subscribe to:
Posts (Atom)