Just a simple question... Is there a book that describes how wordpress works in detail. So what I mean is e.g. Where this variable is declared, where used and so on..
With best regards
Our web servers are running IIS 7 and are configured to compress dynamic and static content. When I hit these servers directly, gzip compression works.
I recently placed nginx in front of them, and gzip compression has stopped. I was able to work around this by explicitly enabling gzip compression on nginx itself, but that seems a little inefficient considering I have half a dozen backends and only one active nginx box.
It appears that nginx is stripping out the Accept-Encoding header. Does anyone have any advice for how to 'correct' this behavior?
A sample configuration:
upstream backend {
server 127.0.0.1:8080;
}
server {
listen 80;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://backend;
}
}
I am using Microsoft Visio 2003 to define static classes with operations/methods and a sequence diagrams referring to these classes. The sequence diagram is almost done, but i realized that i missed one operation in middle of the diagram. When i try to move rest of the sequences down by selecting it as a block, all the operations in the block loose link with static diagrams. ( Methods which were referred to static classes as fun(), became fun, which means that now they no longer refer to static diagrams and any future changes would not be reflected in dynamic sequence diagrams automatically.)
The sequence diagrams have grown to A3 size paper and i have many of such diagrams which needs correction. Manually moving the operations one by one would involve lots of effort. Could someone kindly suggest a way to overcome this problem?
In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages saying the "connection was reset" in Firefox. See screenshot. I am connecting to the linux machine via local LAN.
I'm assuming it might be something to do with the new version of Apache or PHP, or the new LAMP stack which I downloaded from BitNami? It would seem to happen every 5-10 requests and throw this error, perhaps more likely to trigger it is if I send a POST request from a page. Is it timing out the script or something? These are just basic dynamic pages I'm loading and they worked perfectly in Apache 2.2 and PHP5.3.
Here are my httpd.conf and PHP.ini if that has any clues.
Any ideas? Any help much appreciated.
Hello,
How can I import a variable from an external file? What I want to do is to have a configuration file in which I can write all my website settings and then to import these settings to every file, so I can set the website skin and things like that..
How can I do this?
Thanks!
I'm looking into running clustered JBoss on Amazon Web Services (AWS).
I'd like to try out S3_PING, i.e. making JBoss use an S3 bucket for dynamic node discovery etc, since no multicast is available. I found a piece of example config XML related to S3_Ping, but I'm not sure where in JBoss installation you're supposed to configure this.
So, what JBoss config files would I need to tweak to get S3_PING working? Can anyone point me to a more complete example?
JBoss 5.1.0 GA. (This is probably more a JGroups/JBoss question than anything else. I've already got the S3 bucket for this set up, so no problem there.)
public void RemoveTask(int index)
{
SQL = "DELETE FROM Task where (...) = " +index;
dbConn.Open();
dbCommand = new SqlCeCommand(SQL, dbConn);
dbCommand.ExecuteNonQuery();
dbConn.Close();
}
What i want to do is to delete the record based on the index which specified the row number but I don't know what function or variable should be used ( note the blank ), i try something like rowNum but it does not work.
any help will be appreaciated
I have an initialization script to set up my MongoDB connection in the config/initialization directory.
It is my understanding that these initializers run after all of the plugins are initialized.
The problem I am having is that when a particular plugin I am using is initialized, it tries to access the mongodb before I have set it up.
I get this error:
uninitialized class variable @@database_name in MongoMapper
My question is: Where can I initialize Mongodb that will run after the mongodb gem has been loaded and before any of the plugins are initialized?
I have entity Person:
@Entity
@Table(schema="", name="PERSON")
public class Person {
List<PaymentType> paymentTypesList;
//some other fields
//getters and setters and other logic
}
and I have enum PaymentType:
public enum PaymentType {
FIXED, CO_FINANCED, DETERMINED;
}
how to persist Person and its list of enums (in this list
i have to place variable amount of enums, there may be one of them,
or two or all of them)
I'm using Spring with Postgres, Entity are created using JPA annotation,
and managed using Hibernate
function(deltaTime) {
x = x * 0.9;
}
This function is called in a game loop. First assume that it's running at a constant 30 FPS, so deltaTime is always 1/30.
Now the game is changed so deltaTime isn't always 1/30 but becomes variable. How can I incorporate deltaTime in the calculation of x to keep the "effect per second" the same?
Hi,
I just began working at this new job and I have to config a new host for stats with awstats. I once used awstats on my own server, no biggie.
Now, I'm on a multi-sites server with the acces_log files nicely splitted. I copied a awstats.conf file from one of the sites that already has (working) stats. I changed the LogFile and SiteDomain values as mentioned from http://awstats.sourceforge.net/docs/awstats_setup.html#BUILD_UPDATE, saved the conf and ran the commands
perl awstats.pl -config=mysite -update
and
perl awstats.pl -config=mysite -output -staticlinks awstats.mysite.html
(yes I changed it with my infos...)
PROBLEM IS : whenever I try to access the html file or the dynamic page (with the config option on awstats.pl like my working site does), I get the stats of the MAIN site from access.log itself (and not access_log-mysite) from what it says at the top of the page and from the hostname on the left tab (stats for mysite.com)...
what did I do wrong? There's no errors from what I see...
Thanks a lot for any help
I would like to put a large variable definition in a separate file for the sake of getting it out of the way. I must be doing something wrong though, because my puts call isn't putting anything out.
my_class.rb:
class foobar
def initialize
require 'datafile.rb'
puts @fat_data
end
end
datafile.rb:
@fat_data = [1,2,3,4,5,6,7,8,9,10]
Can you use require this way?
I would like to launch a Scala Swing application from the command line, then after the application is started, drop into the Scala REPL to use as a control interface.
Ideally I would also like to pre-bind some variable names. Even better would be using a Java2D terminal emulator for the REPL, but I couldn't find anything appropriate.
Does the Scala REPL have a public API?
I have a Linq query and I want to pass the ouput (userid) to another form for further processing.
var userid = from auser in allusers.Users where auser.Username == nameString select new { id = auser.UserId };
so only 'UserId' is stored in variable 'userid' and I want to use this value in another form.
Is there any way we can do this.
Thanks,
Ani
What is the best way to display a large chunk of text (taken from a .txt file in the app) in a UIScrollView so a user can scroll about it? Length of the text is variable.
Which way is better practice: return a value from a method inside an using statement or declare a variable before, set it inside and return it after?
public int Foo()
{
using(..)
{
return bar;
}
}
or
public int Foo()
{
var b = null;
using(..)
{
b = bar;
}
return b;
}
Let's say this page
www.example.com/mypage
returns some html that I want to parse in Actionscript.
How do i call this page from Actionscript while getting back the response in a string variable?
I'm writing a crossplatform python script on windows using Eclipse with the Pydev plugin. The script makes use of the os.symlink() and os.readlink() methods if the current platform isn't NT.
Since the os.symlink() and os.readlink() methods aren't available on the windows platform Pydev flags them as undefined variables--like so:
Is there a way to explicitly ignore certain undefined variable name errors (e.g. os.symlink())?
I would like to use the jquery slideUp effect when the user navigates away from the page just to make the page look cool as it closes.
I assume that I should use the onunload event but how can I delay the page closing long enough for the effect to run to completion.
One of the options that came to mind is effectively hijacking the page closing function, storing it in some variable and then executing it once I had run my effect but I have no idea how I would do that.
Any suggestions or alternative ideas are more than welcome
This following code is used to wrap up the contents within the textarea
<td> <textarea rows = "8" cols = "18" border ="1" class="input" style="border: none;overflow:visible;width:100%;" maxlength="5">'+col_det[data]+'</textarea> </td>
How to implement the same for a tag i.e, the conetnt within td tag should be wrapped
<td>%s</td>,(sum variable)
Thanks..
Can anyone help me for the following: I am having the error message. How can I correct that?
Error 4 Use of unassigned local variable 'url' on the url.Action...
UrlHelper url;
string fullUrl = url.Action( "Details", "test", new {test.ID } );
Thanks
I have apache2 running on a Mac OS X (10.6) machine, and it is currently serving PHP pages fine, using php5_module but I would like to configure fastcgi_module to handle the php pages.
I have tried using the configuration found on www.fastcgi.com but I get the following error:
[warn] FastCGI: (dynamic) server "/Path/to/script.php" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[warn] FastCGI: server "/usr/bin/php" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
I'm thinking this is because PHP has not been compiled with FastCGI, but seeing as it came with Mac OS X i'm not sure how to recompile it. Is this the problem? And if so, how do I recompile PHP with FastCGI?