I have a router that sets up rules like so:
TCP Any -> 5800
Any -> 5900
UDP Any -> 5800
Any -> 5900
Computer: ip-address
This would allow someone 'outside' to connect to my router's port 5800 and 5900 and forward that to the same port on my computer.
My issue is that I want the 'outside' port to be different without changing the port on my computer.
I have a MySQL table naming Invoice for a Inventory Monitoring site, invoice_number is bigint(19) AUTO_INCREMENT field.
Currently AUTO_INCREMENT value is 1.
Client want it to start the invoice_number from 50000.
With the following script reset the ALTER TABLE INVOICES AUTO_INCREMENT = 50000;
When I wrote an Insert Script to insert data in SQLDBX, it is putting the invoice_number from 50000.
But when i am trying to do insert a record using the application(web application), the invoice_number value is starting from 1.
We are making use of Spring-JDBC template to insert data into mysql database.
I have seen automated support ticketing systems which will email the user as soon as their ticket is created with a custom email address for that ticket.
For example, [email protected]
Does postfix support such a system? Are there any examples out there that might explain how this system might work?
I have a virtual machine with Mandriva 2007.0 (yes, old - unfortunately we do not have a choice here). Anyway, the problem:
Before reboot: active network interface = eth0. No other interfaces present, and network manager confirms this. Static IP address set to 172.31.2.22. No issues, everything working properly, routing et al.
-------Reboot---------
After reboot: active network interface = eth1, with a DHCP address. Network manager shows eth0 as disconnected, and not connectable. When I try to set eth1 up with the static IP address (same one), it says "In Use". I then tried ifconfig eth0 172.31.2.29 just to free it up from the eth0 interface so I could use it with eth1 (since this is connected).
Result:
ifconfig eth0 172.31.2.29
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
Nothing else changed. Any ideas what could be happening, or at least how I can get my IP address back?
Hi,
Let's look at a sample word 2010 file here.
In this file you can see that the first group of text has their indent modified. The 2nd, 3rd group keep their default format.
I want to apply the changed I've made in the group 1st so group 2nd and 3rd and for the new group I'm going to add instead of recieving the default indent. How can I do that?
ps. Currently what I have to do is quite boring: Copy group 1 and paste to create new group to get the formatted, then remove the old text, adding new text :(
my server currently would temporarily refuse a user to login for certain amount of time (maybe ~20min) if the user consecutively frequent ssh login for 3 times. Can I change this behaviour (say relaxed the definition of frequent maybe from 'within 5 sec' to 'within 10 sec'; or increase the # of consecutive login from 3 to 5)? Thanks.
Added: Ah.. now I think the problem was not with the ssh. I just tried on another newly installed server. consecutive successful login won't block the user. I have no sudo permission on the server I mentioned above. Now I suspect this behaviour may cause by the firewall in the system. Thanks everyone's comments.
ADDED 2: Ah... after some searches. I think the server is using /sbin/iptables to do it as I can see the iptables program is there even though I don't have permission to list the rules. Thanks everyone, special thank to jaume and Mark!
I have a very good server running an Apache instance with mod_jk for proxying the request to an Application server.
I'm doing a load test and although I'm sending over 600 requests, the status worker keep showing this:
256 requests currently being processed, 0 idle workers
I'm using 'prefork MPM'
<IfModule prefork.c>
ServerLimit 2048
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 1000
MaxRequestsPerChild 0
</IfModule>
Is there a compiled limit for Apache to handle just 256 request or what would I be missing?
I'm having a discussion with a work colleague. I'm saying that a network with 100 elements will have pretty much 10 times as many failures as a network with 10 elements, ie a tech will need to replace faulty hardware 10 times more often. He suggests that the failure rate doesn't go up in a linear fashion and the failure rate will be significantly less than 10x, in fact only slightly more failures. This is not the probability of an outage etc, we are just talking in relation to the amount of parts that a tech would need to swap out in a given time frame.
Hi,
I'm trying to find a generic CPU fan that will fit the air duct in an XW9300. Note that there are two CPU fan mounting schemes used on this machine. One with two grommets in the motherboard that the CPU fan screws into and one with a plastic collar and base plate. The form factor I'm looking for is the former (see picture below):
Two HP part numbers for fans in this form factor are 411454-001 (shown below) and 416055-001. Note that the dimensions are important as the machine has an air duct that fits over the fan. Can anyone tell me the manufacturer and model of an equivalent generic part? Better yet, do you know somewhere (preferrably in the UK) that I can obtain such an item from?
Sequential: for i in {1..1000}; do do_something $i; done - too slow
Parallel: for i in {1..1000}; do do_something $i& done - too much load
How to run commands in parallel, but not more than, for example, 20 instances per moment?
Now usually using hack like for i in {1..1000}; do do_something $i& sleep 5; done, but this is not a good solution.
I'm trying to accomplish something very simple in Word 2013, but the feature does not seem to be available, nor can I work it out with field codes.
I simply want to include, on multiple pages, "continued from page n".
In terms of field codes, I have tried this:
{ = PAGE - 1 \* MERGEFORMAT }
It just tells me that PAGE is not a defined bookmark.
Is there any way that this can be done?
Edit:
Per documentation I found somewhere, I also tried this - but with no luck:
{ = { PAGE } - 1 }
This just threw Syntax Error, { back, which leads me to assume that it's incompatible with newer versions of Word.
I am running a postgres 8.4.5 server on the linux 2.6.33.7 kernel on an 8 disk raid array with an LSI controller.
Most of the tables are around 1GB or less.
I know that XFS uses allocation groups (AG) to achieve I/O parallelism.
My first question is, does this mean that if two tables are in the same AG, all I/O requests are queued to both of them if either is being read from/written to?
If so, I assume I would want to spread my tables across as my allocation groups as possible, correct? Wouldn't this ensure that multiple users querying different tables would get the best performance?
Hello,
i got a server running windows server 2008, and i got a user which everyone can connect to via Remote desktop!
when 2 users a are logged to the user, it's fine.
but when the 3 is logged on, it says one of the other 2 should loggoff!
my question is, how i disable the limitation of concurrent logons to a single users?
Thank you, i must say this is a great site.
Hi,
I'm trying to find a generic Socket 940 CPU fan that will fit the air duct in an XW9300.
Note that two different CPU fan mounting schemes have been used on this machine. One has two grommets in the motherboard that the CPU fan screws into and the other has a plastic collar and base plate.
The form factor I'm looking for is the former (see the picture below). Two HP part numbers for fans in this form factor are 411454-001 (shown below) and 416055-001. Note that the dimensions are important as the machine has an air duct that fits over the fan.
Can anyone tell me the manufacturer and model of an equivalent generic part?
Better yet, do you know somewhere (preferrably in the UK) from which such an item can be obtained?
I have 3 Varnish 3.0.2 servers with Apache 2 as backends, which are being load balanced through a HAproxy separate server.
I need to find a very simple program (I'm not much of a sysadmin), which blocks requests from an IP, if that IP has made more than X requests in Y seconds.
Would something like this be achievable with a simple solution? Right now I have to block all requests manually with iptables.
Been having a problem with my router for a while now, might just be because it is really old but here's the problem:
If a lot of computers are connected to my home network someone will get disconnected. They are assigned IPs and it seems like at a certain point (and I don't know how many) you either get assigned the same IP as someone else or something else is happening and you get disconnected - until i soft reset it and it works again which takes 30 secs.
I'd say my tablet, my PC, my sisters iPad, 2 laptops and a netbook is the most that can be connected at one time so that is 6 but that should be fine.
The only way I know this is the problem is because I turned on my tablet and I was online on my PC, got disconnected but my tablet was still connected, this is just after i turned the tablet on so I know my router is having difficulty with IPs, it is like it assigned the same IP to the tablet which then clashed with my desktop and knocked me off.
I see that sometimes the following solves it as well so I wrote a batch file with a menu to execute these commands as I have to do it so often.
ipconfig /release
ipconfig /flushdns
ipconfig /renew
Any ideas? Or shall I just get a new router as this one is old and maybe can't handle giving out that many IPs?
Cheers!
In MS SQL 2005, how many columns can you create in a table before hitting the limit?
I think it is 1024 columns per table but I'm not 100% sure. Just need a confirmation. Thanks!
I have this string:
> HTTP/1.1 200 OK Date: Tue, 12 Nov 2013 15:26:17 GMT Server:
> Apache/2.2.3 (CentOS) Last-Modified: Fri, 08 Nov 2013 21:34:50 GMT
> ETag: "452//path/to/file"
> Accept-Ranges: bytes Content-Length: 26010 Connection: close
> Content-Type: text/plain; charset=UTF-8
And would like to extract 452 which is before // and after ETag, what regex to use?
I am stuck.
Thanks a lot
For some reason postgres is spawning 700 postmaster processes for handling database requests and the postgres log file if full of 'unexpected EOF on client connection', 'incomplete startup packet' and 'sorry, too many clients already'. netstat tells me that all the open connections are local and I'm pretty sure are coming from postgres internally. This particular instance has been running just fine for the last 230 days or so and nothing has changed configuration wise. Any thoughts on where I should be looking to try and resolve this issue?
This is my first time diagnosing a problem like this so if there is any steps I can take to help narrow down the cause that would be helpful as well.
How many processes can Windows support at the same time? This question is nothing to do with parellel processing of any sort. Processes can be running, waiting in the queue, sleeping etc,
I have a strange behaviour in my server :-/. Is a OpenVZ VPS (I think is OpenVZ, because /proc/user_beancounters exists and df -h returns /dev/simfs drive. Also ifconfig returns venet0). When I do cat /proc/stat, I can see how each second about 50-100 processes are created and happens about 800k-1200k context switches! All that info is with the server completely idle, no traffic nor programs running.
Top shows 0 load average and 100% idle CPU.
I've closed all non-needed services (httpd, mysqld, sendmail, nagios, named...) and the problem still happens. I do ps -ALf each second too and I don't see any changes, only a new ps process is created each time and the PID is just the same as before + 1, so new processes are not created, so I thought that process growing in cat /proc/stat must be threads (Yes, seems that processes in /proc/stat counts threads creation too as this states: http://webcache.googleusercontent.com/search?q=cache:8NLgzKEzHQQJ:www.linuxhowtos.org/System/procstat.htm&hl=es&tbo=d&gl=es&strip=1).
I've changed to /proc dir and done cat [PID]\status with all PIDs listed with ls (Including kernel ones) and in any process voluntary_ctxt_switches nor nonvoluntary_ctxt_switches are growing at the same speed as cat /proc/stat does (just a few tens/second), Threads keeps the same also.
I've done strace -p PID to all process too so I can see if any process is crating threads or something but the only process that has a bit of movement is ssh and that movement is read/write operations because of the data is sending to my terminal.
After that, I've done vmstat -s and saw that forks is growing at the same speed processes in /proc/stat does. As http://linux.die.net/man/2/fork says, each fork() creates a new PID but my server PID is not growing!
The last thing I can think of is that all process data that proc/stat and vmstat -s show is shared with all the other VPS stored in the same machine, but I don't know if that is correct... If someone can throw some light on this I would be really grateful.
If I have a text file in Unix that contains N-many independent entries (e.g. records about employees, where each employee has a separate record), is it expected that this file will take up less space than if I split the file into N files, each containing the entry for one employee? in other words, can one save significant space on unix file systems by concatenating many files together, or is the difference negligible? thanks.
I know similar questions have been asked but I think my case is a little bit diffrent.
Let's say I have a computer with 8 cores and infinite memory with a Linux OS.
I have a calculation software called Gaussian that can take advantage of multithreading. So I set its thread count to 8 for a single calculation for maximum speed. However I really can't decide what to do when I need to do run for instance 8 calculations simultaneously. In that case should I set the thread count to 1(total 8 threads spawned in 8 processes) or keep it 8(total 64 threads spawned in 8 processes) for each job? Does it really matter much? A related question is does the OS automatically does the core-parking to diffrent cores for each thread?