When I run Emacs from Tmux, the Home and End keys do not work (Home key runs the Search command as if C-s was pressed). The problem started when I added this in my ~/.bashrc file:
TERM="xterm"
export TERM
I've read somewhere that TERM variable should not be set manually but this was the only way I was able to solve problems with colors. Without…
Is it possible to install a proxy server that will transform passive ftp to active ftp?
Details of my problem: I would like to deploy my web sites using Visual Studio's built in publish web site function. The problem is that my web hotel only supports active ftp, and unfortunately Visual Studio 2010 has a bug, so the publish function only works…
Mercurial's fetch extenson conveniently pulls and merges from a remote repository. Recently, this feature has been deprecated by the developers. They recommend avoiding it and it is on the unloved features list.
It is useful in many cases to be able to pull and initiate a merge with one command (which hg pull -u doesn't do). I assume there is a…
Hi fellow geeks,
recently my computer started to behave like an old car and won't start up anymore unless I flip the power switch repeatedly. What happens when I power it on:
CPU fans spins briefly and very slowly, then it stops
Same with GPU fan
No BIOS beeps or HDD activity
Screen stays black
After turning it on and off for like 10 times,…
What's the best course of action after the forwarding of domain has been done and apparently the email has been forgotten to be taken into account?
I just forwarded the domain to a new server hosting and i forgot to take into account the emails from the old provider? A few concerns arise:
the emails won't be lost, right?
will pointing the MX…
I use SSHFS to mount a directory on a remote server. There is a user xxx on client and server. UID and GID are identical on both boxes.
I use
sshfs -o kernel_cache -o auto_cache -o reconnect -o compression=no \
-o cache_timeout=600 -o ServerAliveInterval=15 \
xxx@yyy.yyy.yyy.yyy:/mnt/content /home/xxx/path_to/content
to mount…
I'm trying to use nginx for proxying requests to my internal backend.
My configuration reads as follows:
location /Shibboleth.sso {
proxy_pass internal-backend; # ip
proxy_redirect off;
}
But, my redirects are always rewritten.. My backend returns a response like https://www.google.de/test and my browser receives…
I rent a server somewhere out in Canada or so that I'm using to host a website of mine. That website has close to 400,000 pages that I wanted to index today. For that, I wrote a crawler a while back (see JCrawler on Stackoverflow.com). Now, I'm greedy and didn't want it to take too long so I ran multiple threads resulting in…
I want to remove directories of the following format:
C:\Program Files\FogBugz\Plugins\cache\PluginName@example.com_NN
NN is a number, so I want to use a wildcard (this is part of a post-build step in Visual Studio). The problem is that I need to combine quotes around the path name (for the space in Program Files) with a…
Is it possible to have two bibliographies in Word 2007? I want to use the first one as a reference list to external references and the second one to be a list of my own appendices.
I'm using dynamic DNS (the "adult" version from RFC 2136, not à la DynDNS), and for a while now I've been seeing my laptops with MacOS 10.6.x churning out updates about every 10 seconds. And seemingly redundant updates at that, as the IP is more or less stable (consumer broadband). I don't remember seeing that frequency in…
I'm very new to server-administration, but I was thinking the task of updating PHP to 5.2+ should be relatively simple. Online I found that the following was allegedly sufficient to do this:
yum update php
But when I run this, the following is output:
[root@ip-XXX-XXX-XXX-XXX /]# php -v
PHP 5.1.6 (cli) (built: Jan 13…
I am running Samba on a CentOS server, and I am experiencing a problem where it allows me to connect to the server and see a share, but shows the share as an empty directory. I find this behavior strange.
Here is the stanza in my smb.conf for the given share:
[seanm]
path = /home/seanm
writeable = yes
valid…
Hi All,
There are a million questions like this on Google, but I haven't found a solution to my problem. The default Apache install on my Mac is giving 403 Forbidden errors for everything (default directory, user home directory, virtual server, etc). After sifting through the config files, I figured I'd give nginx a…
How do you allow a specific user permission to write to an NFS partition?
I've mounted an NFS share on my localhost (a Fedora install), and I can read and write as root, but I'm unable to write as the apache user, even though all the files and directories in the share on my localhost and remote host are owned by…
I am running Samba on a CentOS server, and I am experiencing a problem where it allows me to connect to the server and see a share, but shows the share as an empty directory. I find this behavior strange.
Here is the stanza in my smb.conf for the given share:
[seanm]
path = /home/seanm
writeable = yes
…
Hi,
I haven't done much js. I am trying to compare two dates. From jconsole
a = ["01/01/2010","01/02/2010","01/03/2010"]
date1 = new Date('01/02/2010')
Sat Jan 02 2010 00:00:00 GMT-0800 (PST)
date2 = new Date(a[1])
Sat Jan 02 2010 00:00:00 GMT-0800 (PST)
date1 == date2
false
Can someone tell me why this…
declare @fieldForceCounter as int
declare @SaleDate as dateTime
declare @RandomNoSeed as decimal
set @fieldForceCounter = 1
set @SaleDate = '1 Jan 2009'
set @RandomNoSeed = 0.0
WHILE @fieldForceCounter <= 3
BEGIN
while @SaleDate <= '1 Dec 2009'
begin
INSERT INTO…
This is Part 2 of this question and thanks very much for David's answer. What if I need to extract dates which are bounded by two keywords?
Example:
text = "One 09 Jun 2011 Two 10 Dec 2012 Three 15 Jan 2015 End"
Case 1 bounding keyboards: "One" and "Three"
Result expected: ['09 Jun…
hey all. I have a table in my DB that has about a thousand records in it. I would like to reset the identity column so that all of the ID's are sequential again. I was looking at this but I'm ASSuming that it only works on an empty table
Current Table
ID | Name
1 …
I have designed Types as follow:
class Cricket
{
string type;
Team tm;
public Team Team
{
get { return tm; }
set { tm = value; }
}
public string Type
{
get { return type; }
set { type = value; }
}
}
class…
I have the following SQL statement which returns a single record as expected:
select * from geodatasource_cities C,
geodatasource_countries D
where C.CC_FIPS = D.CC_FIPS
and D.CC_ISO='AU'
and UCASE(TRIM(C.FULL_NAME_ND)) LIKE '%JAN JUE%';
However, If I use…
Let us say that we have following array:
my @arr=('Jan','Feb','Mar','Apr');
my @arr2=@arr[0..2];
How can we do the same thing if we have array reference like below:
my $arr_ref=['Jan','Feb','Mar','Apr'];
my $arr_ref2; # How can we do something similar to @arr[0..2]; using…
I'm working on a spreadsheet that two conditions have to true in order to be counted. If the month is January, and the number next to it is less than or equal to 30, then it's counted. Same rule applies for all the other months.
Thus far, I have:
…