question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
17,750
Two server failover in nomad
I am just learning about orchestrators and it's my first time using any orchestrator ( [CODE] in this case). Our software (video stream processing related) is installed on user premises, currently we have been using [CODE] to deploy our software (bunch of services as docker container). Now we have a client who needs fa...
I think you are conflating a few concepts here, let me try to separate them in your mind. First, separate availability of the platform, from the availability of your applications: Nomad, like many other distributed systems, uses the raft consensus algorithm to determine who is the leader of the server cluster. This is ...
2
2
146
2023-04-27T11:58:43.327
pipeline_ops
devops.stackexchange.com
55,679
Ubuntu Server SSH
I have a server with ubuntu. I do work on it over SSH. I had a problem with brute force attempts over port 22. I changed the port and I assumed it fixed the brute force problem. Am I right or are the attempts on another port just not logged anymore in /var/log/auth.log?
To avoid bruteforce attacks here is what i do: Change ssh port Install denyhosts Limit number of connections per second on ssh port Use only keybased no root ssh, instead use sashroot if needed, or console login port knocking to open ssh port in some case [EDIT] create a canssh group, add the people whom i wanna give s...
3
12
947
2009-08-18T17:01:12.420
infrastructure
serverfault.com
233,137
sp_BlitzIndex performance concerns in production
No real concern but I'm looking for some information of possible impact of running it on a busy server. Should I Be concerned? Would there be any loss of fidelity in the results by running it on a restored instance? Thank you.
When you run it on a restored instance, you won't get any data about which indexes are getting used, and which indexes SQL Server wishes it would have had. So it's not really all that useful - however, it IS useful to understand how long sp_BlitzIndex will take to run. If you're worried about performance impacts, you c...
0
1
204
2019-03-26T13:54:29.680
database_errors
dba.stackexchange.com
620,066
Graylog2 cannot send email alert
I have graylog2 v0.20.6 and when I try send test alert via mail I see this error: [CODE] Below I share my graylog2-server config file: [CODE] Anybody have some idea what's wrong, and why graylog2 cannot send email notification. Regards Mick
You need to bind your server address to another IP than 127.0.0.1 try (replace 192.168.0.1 with your ip) [CODE] Then it should work.
1
0
5,120
2014-08-13T08:49:23.887
infrastructure
serverfault.com
300,576
Compare & Copy missing files from identical directory on Remote Server
I have a development server on which I want to keep certain data directories in sync with the live server. Any files in these directories which exist on the live server, but not on the dev server, I need to copy over. Because I don't care about syncing from dev-to-live or have any concerns about overwriting data on Dev...
Put rsync in, coach. It was made for this game. It should do pretty much exactly what you need; big files will only transfer changed pieces, hash comparisons are done to avoid transferring unchanged files at all. You'll need some scripting around punching it through an ssh tunnel, but that should be trivial. It should ...
2
6
778
2011-08-12T19:23:33.153
infrastructure
serverfault.com
872,843
XenServer 7.2 Hot Fix - Can only apply to Pool not Individual Hosts
I'm running xenserver 7.2 on a few M620 blade servers . I'm trying to apply XS72E004 and 005 patches . I go to the notification section and select Download/Install next to each patch. I have a pool created and if I leave the pool selected I can apply the update. I only want to patch each server one at a time though. Wh...
I had the same problem. You can try this solution: In XenCenter after download patch from Tools/Install update, before screen with install, kill XenCenter with TaskManager ( if You use cancel button, patches will be removed from storage). Patch will be uploaded to hdd of xenserver. Next from xenserver console list down...
1
0
513
2017-09-09T17:33:59.060
infrastructure
serverfault.com
277,644
SSL: "point to point security" vs "end to end security"?
I've read that SSL is a good solution for "point to point" security, and not "end to end" security. For example, in this article at JavaWorld, it says: SSL/TLS is simply not designed for such a scenario; SSL/TLS only handles point-to-point security... SSL/TLS may secure the path between any two [intermediaries], but no...
Go read the article again. What it is talking about is relaying of data - in this scenario, the client talks to your server (over SSL), Your server talks another service over SSL. While the information sent from the client is intended for the other service, this model requires that your server has visibility of it - yo...
2
5
8,725
2011-06-06T22:51:28.347
api_errors
serverfault.com
750,794
PHP.ini file causing WordPress site to crash on Windows IIS
I'm running WordPress on Windows IIS (GoDaddy Hosting). The website was created using Visual Composer, which requires an increase in the memory limit. The website is also installed in a subdirectory off the root. When I create a file named 'php5.ini' file and place it in the subdirectory with the WordPress installation...
This tutorial looks good, what I understand is that you do not have to create a new php5.ini with just that string, rather you should edit your own adding that string. Plus, there's a trick I did not know.. look here for this tutorial hope it helps you
0
0
698
2016-01-21T14:56:03.940
api_errors
serverfault.com
1,096,169
Communication behind firewall
I am trying to solve a problem that appear to be simple but I can't find a clean architecture. The problem : I have a client trying to access grafana in a Local network. [CODE] When you are behind the router (and thus the firewall) then you can easily access grafana and use it. I would like the same to happen when outs...
This looks a lot like a question for Super User, not Serverfault. That said: The router in your picture is a computer that decides how traffic from the Internet can communicate with resources in your network and vice versa. Placing another computer in front of your router effectively makes that computer your router: tu...
0
0
180
2022-03-15T08:29:48.990
api_errors
serverfault.com
36,856
How to speed up Java Selenium Script,with minimum wait time
I'm currently working on a java selenium Project, which is usually a small script where I have to check for each element for it's presence and based on that some actions are triggered but our main concern is time duration to finish the script. Basically I have used each one from below in my script and ran the test, tho...
avoid using Xpath Think before you try xpaths Xpath identification is generally slower than other forms of object identifications. Another way to quickly get feedback from tests is to run them in multiple categories. Break the tests into categories according to the functionality or by nature of the tests Smoke test - t...
1
1
638
2018-12-14T11:43:42.670
data_quality
sqa.stackexchange.com
508,213
Outgoing mail through isp's smtp server is not getting delivered
What's the problem with the following emails? 1- [CODE] 2 - [CODE] But the email adresses exists. I thought i already fixed the spf records, so it (shouldn't) be that. Still, the mail seems to be filtered as spam... Anyone who can help?
The mail is being sent from [CODE] , but at time of writing your domain's SPF record says [CODE] The sending IP address isn't included in the SPF record, and it is configured to fail hard ( [CODE] ). You should ask your ISP for a list of addresses (or a CIDR block) for their outbound mail servers and add that to your S...
0
1
3,822
2013-05-16T09:34:56.483
infrastructure
serverfault.com
367,435
Django error saying "could not connect to server: Permission denied"
I am getting an error trying to visit my Django app. I am running Gentoo and the web server is Apache with the mod_wsgi module to display Django. The error says [CODE] I know Django can connect to the Postgres database since I can run [CODE] successfully. I can also enter the interactive terminal with [CODE] . The [COD...
Curious... as a quick test, try running [CODE] -- if that fixes the problem (as I suspect it will) then you'll need to diagnose why the permissions are screwed up on the directory. On my system (Debian Squeeze) the perms are 2775 postgres:postgres; while it isn't necessary to have that particular mode, you'll want (at ...
1
4
1,477
2012-03-07T23:43:32.600
infrastructure
serverfault.com
308,219
Get count of unmapped records when using a mapping table
I have 3 tables as such Product Product ID Product Details 1 ... 2 ... 3 ... Vendor Vendor ID Vendor Details 1 ... 2 ... 3 ... Product Vendors Product ID Vendor ID 1 1 2 1 1 2 2 2 3 2 How would I go about finding the number of products that are not mapped to a specific vendor. I tried: [CODE] but that doesn't seem righ...
I got it to work using [CODE] and a subquery. [CODE]
-2
1
139
2022-03-03T11:28:52.820
warehouse_errors
dba.stackexchange.com
675,690
Deployed Application runs on localhost but fails with a HostName/IP
I have deployed an ASP.NET (Webforms-C#) Application on IIS 8.5 (Windows Server 2012 R2). When I bind it to 80 port, it works fine as '\localhost\' but when I assign a HostName or IP address, I can no longer access the site. 'This Page cannot be displayed' error shows up when accessing the site. I checked similar quest...
Few things to check: Bindings Check your iis site bindings and if needed create additional binding with host name and ip address. if there are other sites then try a different port number [8080, or 8081 etc] Host file Run notepad as an Admin then browse and open C:\windows\system32\drivers\etc\hosts Create a new entry ...
0
0
7,096
2015-03-13T06:00:14.320
infrastructure
serverfault.com
591,569
Linux Transparent Bridge with trunk VLAN
I want to ask if this scenario is possible with Linux version 3.10 stock standard kernel to manage traffic in a transparent bridge mode. I have a connection now between the LAN switch to the one port of a firewall which inturn is connected to the internet. The LAN has 4 VLANs numbered(3,4,5,6) one four ports on the LAN...
Yes, because VLANs are handled in Linux with virtual interfaces eg [CODE] for VLAN id 75 on physical interface [CODE] . I don't know, but I suspect so; given the above, any normal rate-limiting tools can be aware of the VLAN on which a packet arrived. Yes, using the usual filters for input and output interface. I don't...
0
1
1,581
2014-04-27T06:49:11.460
api_errors
serverfault.com
831,708
How to find all link local ipv6 devices on a certain interface?
We have a setup where a program on a linux server controls its linux subordinates (talks to them via TCP and UDP). There are several groups of subordinates. Each group is connected via ethernet to a single network interface card on the server. It is important to tell the groups apart. Subordinates can go missing (they ...
I had a similar problem on a LEDE firewall; link-local multicast pings (e.g. to ff02::1) were not answered because the echo replies were dropped by an output rule for ctstate INVALID. Unicast pings (link-local and ULA) worked fine. I suspect that the conntrack system is missing a trick here - since the request's (multi...
0
1
1,110
2017-02-09T22:09:27.207
infrastructure
serverfault.com
1,083,891
Apache proxy removes double slash
I'm trying to send requests to a docker image by using apache's proxy functionality. The request to the docker should look something like: [CODE] but it is being forwarded like [CODE] (so missing one slash). I think this is probably some default to prevent issues with directories accidentaly having double slashes, but ...
You could handle the protocol in your receiving app, no need to have https:// in the url right? Perhaps use nginx as substitue for the proxy?
0
0
302
2021-11-18T08:41:11.717
pipeline_ops
serverfault.com
520,149
Multiple SQL Standard Instances on 4 Processor/32-core Server
We have a large 4 processor/32-core server with 192GB of memory available in the data center and over twenty small SQL Standard databases to consolidate. They are a mix of SQL 2012 and 2008 R2 for 3rd-party apps. Is there any issue with simply installing two instances of SQL Standard on the server - one for 2012 and on...
I run multiple instances of 2008 on the same server in production, and versions of 2008 and 2005 on the same server in QA for testing. Each instance is named and assigned a specific port. This hasn't caused any problems. It doesn't look like this would cause a problem with 2012; it looks like this is fully supported. h...
0
2
87
2013-07-02T10:54:47.107
infrastructure
serverfault.com
18,101
Should weights on earlier layers change less than weights on later layers in a neural network
I'm trying to debug why my neural network isn't working. One of the things I've observed is that the weights between the input layer and the first hidden layer hardly change at all, whereas weights later in the network (eg. the weights between the last hidden layer and the output) change significantly. Is this to be ex...
This is expected and well established - Vanished Gradient https://en.wikipedia.org/wiki/Vanishing_gradient_problem This has the effect of multiplying n of these small numbers to compute gradients of the "front" layers in an n-layer network, meaning that the gradient (error signal) decreases exponentially with n and the...
2
3
564
2017-04-04T10:03:04.610
data_quality
datascience.stackexchange.com
30,091
Get the windows account which runs the query?
I'm using sql server 2008 r2. I logged in to ssms which in turn connects to a remote sql server machine. im writing a query which writes a file. I need to know - which windows permissions I should grant to [CODE] is there any [CODE] which can provide me the windows account who is actually finally writes the file ?
It depends, and I'm afraid Martin give you only part of the answer. The credential used to access the file is different whether you logged in with SQL login or a Windows login. For SQL logins (ie. user and password based connection string) the credential used is either the SQL server process account of the login proxy ...
3
8
1,900
2012-12-10T11:48:34.553
database_errors
dba.stackexchange.com
992,069
SMTP error '554 5.7.1 Relay access denied' with using postfix
I have been trying to setup a mail server on my ubuntu vServer for the last couple of days. I use postfix with mySQL and Courier. For webmail, I use roundcube. I can receive emails to my address, but when I try to send an email using SMTP, I get the following error message: https://i.stack.imgur.com/oZtmr.png It doesn'...
The error you are receiving is because the mail server does not recognise you so won't let you send email through it as you may be a spammer. There are multiple ways to fix this depending on your scenario. By far the easiest is to register the IP address if the webmail server in postfix. If you look at the log, postfix...
1
1
9,462
2019-11-16T00:38:22.360
database_errors
serverfault.com
258,440
Delete relations efficiency in PostgreSQL
I've got a collection of duplicate relations of relations that I need to tidy up. The table might be described like this [CODE] I intend to remove the impression with id 1, but due to foreign key constraints, I would need to remove the related demographic_distributions first. From demographic_distributions I would want...
You can do all in a single data modifying CTE [CODE] First the duplicates from [CODE] are removed and all IDs that are returned from that query are then used to delete the corresponding rows in [CODE] as this is done in a single (atomic) statement the foreign keys are still valid.
0
1
466
2020-01-29T16:03:36.847
data_quality
dba.stackexchange.com
182,367
How to execute AFTER INSERT TRIGGER with an auto-incremented (seq.NEXTVAL) column value in Oracle PL/SQL?
Below is my AFTER INSERT TRIGGER in Microsoft SQL Server: [CODE] The above AFTER INSERT TRIGGER in Microsoft SQL Server works successfully. Another thing to be noted that there is also Airline_No column in the Airline table for which I didn't have to insert any values because Airline_No column has been set to AUTO-INCR...
The trigger you have written will try and insert a second row, and is causing the triggers view of the table to mutate (as it will end up in an infinite loop, essentially). You actually only need a [CODE] trigger that sets [CODE] : [CODE] You can then [CODE] using just: [CODE] [CODE] alters the given inserted value (in...
0
1
3,499
2017-08-01T13:16:36.813
database_errors
dba.stackexchange.com
989,444
Why is dedicated server cheaper than Cloud VPS?
I need to scale my infrastructure and do not really understand why on my provider (OVH), dedicated server seems to be a better value than a cloud VPS instance . For ~55€ you can get a dedicated server with 4 cores and 32 GB ram For ~42€ you only get 4 cores and 15 GB ram on cloud instances This makes me want to switch ...
Because the amount of resources needed fixed - you dont get to purchase what you want as you need it and scale up and down. This also requires less infrastructure to support, less redundancy etc. (That, and the cloud is overpriced). Cloud is "safer" because if hardware dies its not a major - although you can mitigate a...
-3
0
115
2019-10-25T21:56:08.480
infrastructure
serverfault.com
327,752
Finding process name that changes windows time
I have a problem in my server that the system time is automatically getting changed by a day and getting back to normal. I have some software installed for time sych. But the master clock seem to be fine. So I am suspecting if some other process is changing the time. I have enabled the event logging for time change. Bu...
Run [CODE] on the commandline. The svchost that hosts W32Time is your culprit.
2
0
2,012
2011-11-04T11:33:08.827
infrastructure
serverfault.com
149,866
After lowering maxmemory, redis still has high RSS memory
I would like Redis to return some memory. I lowered the maxmemory by 10GB but noticed Redis is still "holding onto it" in RSS based on "used_memory_rss". Based on http://redis.io/topics/memory-optimization , it looks like Redis won't return the memory to the OS. How do I force this? Is there any way to do this without ...
I had the same problem and this answer was helpful. even though Redis isn’t using the memory anymore, the allocator just hasn’t released the memory back to the OS yet. Reds v4 has a [CODE] command to tell the allocator to release the memory it isn’t using, but unfortunately that isn’t available to you on v3.2.
2
3
1,613
2016-09-16T04:01:56.487
database_errors
dba.stackexchange.com
106,051
Restoring Exchange 2007 MailBox DB to a New Server
Test Machine, Installed Server 2008 X64, installed the backup software I used to backup exchange, catalog the media, extracted the Mailbox database, catalogs, logs into the appropriate locations ( D:\Database and E:\Logs) exactly the same logical partition layout as the original server. (This server is completely separ...
I've never tried just copying files. Typically you dismount the mailbox and make sure the the checkbox for this database can be overwritten by a restore, then restore the database. Before even installing exchange I would restore AD from backups. You should be able to do a complete bare metal restore. you might get an a...
0
0
362
2010-01-25T14:27:03.593
database_errors
serverfault.com
693,822
Nginx as s3 proxy with private buckets
I'm trying to set up Nginx as a proxy for a static html/js webapp hosted on S3. I read a lots of tutorials and posts and I could make it work if my bucket is set as public. The reason I need Nginx as a proxy is that I don't want my bucket to be public. Following this guide, I added the set-misc-nginx-module from this G...
You've more than likely already resolved this, but you can try adding [CODE] inside your [CODE] directive
11
4
16,745
2015-05-22T11:29:01.423
infrastructure
serverfault.com
646,104
QNAP ts-1679u-rp RAID 6 rebuild with wrong order
I have a qnap ts-1679u-rp running on RAID 6. It has 2 disk error. Therefore, I replaced the 2 disk (Disk 3 and Disk 13) with new disk of the same model and capacity. It failed to rebuild. 1. I tried put back the old disk but i forgot the order. So i anyhow insert it into (Disk 3 and Disk 13). 2. It fail to start up. 3....
As often as not with RAID arrays, if you can't get it to rebuild itself, you're finished. It sounds like disk 6 might have failed as well. With the loss of three disks (even if the RAID controller is hallucinating that loss), your data is pretty much gone. I see you have no backups. That's too bad. But, for the rest of...
3
5
1,565
2014-11-21T14:39:00.300
infrastructure
serverfault.com
71,734
SVN over port 3690 failing over intranet
My company uses subversion (with the [CODE] protocol on port 3690, not over [CODE] ) with a local server on our intranet. Currently our developers have their SVN clients pointed to the local IP address of the server (192.168...). We are trying to open up access to the SVN server from the internet, so that developers aw...
This is not an SVN problem, but rather a firewall feature. Knowing the firewall model would be nice here. In any case, you should not and often cannot (in the case of Cisco PIX/ASA specifically, without major configuration tweaking) hit the outside IP of your firewall from the inside. Instead, you should configure DNS ...
1
3
2,365
2009-10-06T13:05:01.627
infrastructure
serverfault.com
79,720
Monitor network reliability between two windows 2003 servers
We have distributed caching software ( NCache , to be specific) that is deployed on two Windows 2003 x64 servers. The software is configured to run several caches, all in "replicated" mode (this is a typical active-passive failover clustering -- i.e. clients talk to one server, and that server copies all the data over ...
Network troubleshooting can be difficult and finding the root cause of a network problem can take a lot of work. If you can't install and run Wireshark on the servers themselves you could install it on another machine and set up your switch (if it supports it) to mirror the server switch ports to the port that the Wire...
0
1
240
2009-10-29T21:58:41.100
database_errors
serverfault.com
356,333
Apache 2 Listening on Port 9999, but Can't Reach Through DNS Host
I have an Apache server listening on port [CODE] . I can verify this by running an SSH tunnel (with port forward of [CODE] ) through PuTTY such that from a remote IP I can access this server through the [CODE] : [CODE] I have a DNS hostname for my dynamic IP that looks like this: [CODE] And I have a firewall with a rul...
After filing a ticket with the DNS company, I determined that it was not their issue at all. I've been able to successfully configure this to work as desired. Here is what I did: -Configured Listen port on server -Confirmed firewall rule -Started server Then it was available at [CODE] Not sure what was happening but it...
1
0
2,269
2012-02-02T21:24:00.807
infrastructure
serverfault.com
19,341
postgres composite index design
In my rails application using the Postgres database, I have a table called [CODE] which belongs to a [CODE] table (one [CODE] to many [CODE] ). In addition to the [CODE] foreign key (primary key " [CODE] " column from scenarios table), it contains two more foreign keys: type_well_id (primary key "id" column from type_w...
I would try making two composite partial indexes like [CODE] But, of course, everything depends on the selectivity of these indexes.
2
3
2,781
2012-06-15T20:42:46.977
data_quality
dba.stackexchange.com
190,099
Error - enabling bin log in mysql
I have a mysql server with 5.5. I tried to enable the binlog using the below config file. [CODE] /mysql/binlog/ is owned by mysql:mysql After restart mysql I got the below error. [CODE] So I tried this command. added this to my.cnf [CODE] And executed this commands. [CODE] But still its throwing the same error.
Please never mind, I found a solution on this blog. Still the mysql data directory points to [CODE] https://schworak.com/blog/e53/move-mysql-binlog-to-another-disk-or-folder/ Then did chmod 700 binlog.
0
1
630
2017-11-04T09:33:18.123
database_errors
dba.stackexchange.com
65,917
Is there a real C4.5 implementation in Python ? (handling missing value)
To my understanding, C4.5 comes with 4 improvements compared to ID3: Handling missing values in both training data and "test" data, Handling continuous data Handling costs on attributes. The pruning Source However, not one of all decision tree python modules that I found, even the so-called C4.5, handles missing values...
I don't think there is a C4.5 implementation in a popular python library. Your options are : Try github implementations such as : https://github.com/geerk/C45algorithm Try getting R implementations with rpy package : see over there for an exemple of how that would work (C5.0) https://stackoverflow.com/questions/4107008...
6
1
2,119
2020-01-05T19:22:58.450
data_quality
datascience.stackexchange.com
241,527
SQL server AlwaysOn database not automatically seeding, cannot find logs with reason
I've added a database to an availability group that already has a few databases, all of which seeded and syncing fine to the secondary. This last one gets added to the availability group, it would seem, but is marked as "not synchronizing" and no errors are returned. I've tried it multiple times with the same result. I...
On the secondary replica, you should be able to see the status / outcome of seeding attempts in the [CODE] DMV. This includes columns like [CODE] , [CODE] , and [CODE] , as well as timing related columns, that should give you a decent overview of seeding issues. I have often seen seeding errors written to the SQL Serve...
3
6
3,288
2019-06-27T10:30:22.067
database_errors
dba.stackexchange.com
74,362
Un-Explainable Bugs?
I've encountered bugs that are extremely difficult to reproduce reliably and/or explain definitively, but that appear to be solved. When this happens, how much time should I spend chasing it down? Example: this SO question and this related jQuery forum post , which offer differing solutions. The issue was reproducible ...
If I don't conclusively understand what caused the bug, can I claim with confidence that it won't come back in the future by surprise? No. So your next question should be: how bad will it be if it does come back by surprise? If the answer is "pretty bad, it will cost us millions of dollars and customers" then you need ...
7
10
674
2011-05-06T20:41:18.760
api_errors
softwareengineering.stackexchange.com
542,083
Why I can't execute SQL query on Amazon Redshift from VPC private instance?
I have an instance in a private subnet in an Amazon VPC. This instance uses a NAT to access the Internet. I use the Redshift JDBC driver to connect to a cluster hosted in the same region as my VPC (us-east-1). The [CODE] works and returns a connection. This should mean that the authentication succeeded. But when I exec...
Have you tried using the postgresql client from your VPC instance? I had the same issue and it was the security group applied to my instance.
1
1
1,217
2013-09-27T09:24:31.293
warehouse_errors
serverfault.com
174,597
Windows Server 2003 not automatically assigning drive letter to external drives
My newly rebuilt Windows Server 2003 doesn't automatically assign drive letters to external usb devices. I have to manually open the Disk Management Console and assign it a drive letter every time. It does this with two different drives in all USB ports. I have been doing some reading and I don't have any network drive...
Open command prompt: [CODE] reboot windows :)
1
1
6,396
2010-08-26T01:19:54.020
infrastructure
serverfault.com
941,402
Nginx load balancing as gateway (without SNAT)
I'm trying to configure Nginx as last-resort backup for F5-BIG-IP and I'm not sure if it's possible to configure it to behave similarly to F5 in terms of traffic handling? F5 is currently deployed as gateway in L3 like this (all addresses here begin with [CODE] ): [CODE] edge router performs DNAT to various addresses (...
I found following article on nginx website: https://www.nginx.com/blog/ip-transparency-direct-server-return-nginx-plus-transparent-proxy/ And it even seems to be supported on Nginx Open Source edition. This method doesn't seem to use [CODE] though but alternate routing tables and some packet marking mechanism for egres...
2
0
1,221
2018-11-23T20:56:27.270
pipeline_ops
serverfault.com
634,974
Powershell execution policy within SQL Server
Can anyone help? Firstly I apologise if this is the wrong forum and for the amount of text you have to read. I'm not allowed to post images yet and a picture is worth a thousand words..... When starting powershell from SQLSMS 2008R2 and SQL2012 (right click instance.... select Start Powershell), it reports that scripts...
First, run the powershell command "Get-ExecutionPolicy -List" (as mentioned in the error message). This will give you a list of the different execution policy scopes and which setting is defined in which scope. This list of scopes has an order of precedence (MachinePolicy, UserPolicy, Process, CurrentUser, LocalMachine...
2
4
6,487
2014-10-10T07:00:32.917
database_errors
serverfault.com
116,719
Virtual Fileserver
We are planning to move our production servers to the datacenter and virtualize remaining servers in the process.Datacenter will have HP blades with vSphere on top.Currentliy we are using Celerra NS20 as fileserver.Since datacenter is using HP kit and EVA 4400 as SAN, we cannot have Celerra there, as EMC supoprt for Ce...
How about a NAS appliance like Nexenta ? Can map FC or iSCSI luns (or however the EVA presents its volumes), integrates with AD, can share out volumes via CIFS, NFS, DAV, and a plethora of other protocols. Nexenta uses the ZFS filesystem on the back end so you get goodies like compression, de-duplication, file checksum...
2
2
561
2010-02-25T13:11:31.007
database_errors
serverfault.com
20,075
When would one use Manhattan distance as opposed to Euclidean distance?
I am trying to look for a good argument on why one would use the Manhattan distance over the Euclidean distance in machine learning. The closest thing I found to a good argument so far is on this MIT lecture . At 36:15 you can see on the slides the following statement: "Typically use Euclidean metric; Manhattan may be ...
According to this interesting paper , Manhattan distance (L1 norm) may be preferable to Euclidean distance (L2 norm) for the case of high dimensional data. The authors of the paper even go a step further and suggest to use Lk norm distances, with a fractional value of k, for very high dimensional data in order to impro...
43
12
69,210
2017-06-30T06:28:15.000
data_quality
datascience.stackexchange.com
241,022
MS Server 2003 Activiation Loop
Recently we had a motherboard failure on a terminal server so we replaced the faulty motherboard, re-setup the RAID arrays (same motherboard but still wouldn't recognize old RAID setup) and continued to recover the system from a previous backup. No problem up to here, after restoring the system you are prompted to rebo...
Ok, so in case someone stumbles upon this entry, everything had to do with some corrupt IE8 related DLL files in the backup. Finally figured out which ones and a quick re-install on IE8 seems to have done the trick.
0
0
906
2011-02-28T04:38:56.183
database_errors
serverfault.com
254,553
Best pratice to implement free and affordable VPN between branch offices
I need to find a good software solution to implement VPN so a new branch office can use without security problems applications in our main office. I need it to be very reliable and almost transparent for the end user Any hints? We have both linux and windows desktop/server on both ends.
Maybe your edge router supports a VPN? check the docs. If not, without changing your edge router, one possibility is to buy a couple of inexpensive routers, install a VPN build of ddwrt or openwrt. Then use OpenVPN or IPSEC. I prefer OpenVPN as it's easier to set up. You can install the routers behind other firewalls. ...
0
3
1,075
2011-04-01T10:28:56.397
infrastructure
serverfault.com
349,544
How much memory is required for base lamp setup?
I am planning on renting a VPS. How much memory is required for a base setup of Debian, Apache, Mysql, PHP? By base, I mean not considering traffic (which will be below 1k hits a day). No complicated databases or memory eating scripts. For reference, I would consider 512MB more than I need. (But i'm unsure of how right...
There are two primary factors: Size of your MySQL database. Number of simultaneous Apache sessions. Ideally you would have enough memory for your entire MySQL db to be held in memory. On top of that, you need enough memory for [CODE] . When I was doing this calculation, our tests indicated assuming 25MB / Apache+PHP5 p...
6
3
10,578
2012-01-13T05:06:29.483
database_errors
serverfault.com
1,058,314
sendmail - how to unknown local user
I'm using debian as my webserver and sendmail as my MTA I do NOT have mydomain.com in the hosts file. I have setup sendmail.cf with the following [CODE] However user@mydomain is still being reported as an unknown user by sendmail. What am I missing?
Sendmail by default auto-configures list of local email domains. It can be tuned off by the following line in [CODE] : [CODE] You can check list of local email domains using [CODE] You can manually add domains to local email domains via [CODE] file (one domain per line). ` Standard reminders: [CODE] needs recompilation...
0
0
222
2021-03-25T16:55:25.593
infrastructure
serverfault.com
295,226
How to Ensure all Log backups are restored on secondary server in log shipping
I have some concerns regarding the restore job on secondary server in log shipping in Microsoft SQL Server 2016 for below scenario : I have two servers, primary and secondary. The backup, copy and restore job frequency is 5 mins. Suppose some disaster happened and primary server is crashed and now we don't have any acc...
Reference: log_shipping_monitor_secondary (Transact-SQL ) sp_help_log_shipping_monitor (Transact-SQL) Monitor Transaction Log shipping using T-SQL and SSMS by Jignesh Raiyani View the Log Shipping Report (SQL Server Management Studio) Using TSQL get details of last restored transaction log Backup (Subscriber Side): [CO...
0
1
624
2021-07-03T16:56:35.140
database_errors
dba.stackexchange.com
694,516
ChefSpec - Coverage when testing for include_reciepe
I' am trying to write ChefSpec tests for some of our Cookbooks. One of those is including a lot of other cookbooks, to setup an Jenkins CI Enviroment. Iam wondering how other people are testing the included recepies. My "_spec.rb" looks like this in the moment (example to test, that jenkins master is included): [CODE] ...
If you only want to test the inclusion of an recipe from another cookbook, you can stub the include call. It's documented with examples in the ChefSpec readme at https://github.com/sethvargo/chefspec#include_recipe "Keep the resources from an included recipe from being loaded into the Chef run, but test that the recipe...
0
1
1,084
2015-05-26T14:48:53.623
pipeline_ops
serverfault.com
236,976
Best practice for configuration files in a website
I am creating something similar to a Content Management System , that can be downloaded and used by everyone that needs it. I've been working in web-development for a couple of years (mainly as a hobby, i.e. creating personal homepages for acquaintances), but have never had the need of a user to enter his own configura...
Have you looked at other CMS and how they approach the problem? For example, Drupal configuration responds to all your current needs and shows one possible way to not being limited by the constraints of INI. You may also consider: Ordinary PHP files (pros: simple, no parser needed; cons: the end user can screw the file...
3
4
5,669
2014-04-25T10:24:17.083
api_errors
softwareengineering.stackexchange.com
11,692
Linksys wireless NIC won't reconnect after coming out of hibernate
I recently bought a Linksys WMP110 wireless PCI NIC for my XP machine. It works fine, except when I take it out of hibernate it sometimes won't reconnect or even see any wireless networks. I have to reboot for it to work again. I figured there might be a driver setting that can be tweaked to fix it, but I'm not sure wh...
First thing to check is that the computer is not set to turn it of to save power: Open device manager Expand Network Adapters, right-click your Linksys Wireless device, and then click Properties. Click the Power Management tab. The Allow the computer to turn off this device to save power check box is displayed, make su...
2
2
674
2009-05-23T23:36:36.850
infrastructure
serverfault.com
58,159
Can't find shared lib on an amd64 machine
[CODE] On an i386 box this aapt launches, but not on amd64. /lib/libz.so.1 is there in both cases. How come?
I've looked at dev-util/android-sdk and turns out it's pulling app-emulation/emul-linux-x86-gtklibs as a dependency.
1
1
1,948
2009-08-24T21:45:22.787
infrastructure
serverfault.com
442,463
Cisco Aironet 1200 Series AP Configuration
I am attempting to configure a new CISCO Aironet 1200 Series Access Point to have a fixed IP. I have been searching online and I have come to the conclusion that the default IP address of this device is 10.0.0.1. These are the steps I have taken: My machine is plugged directly into the Ethernet port (not the Console po...
So, you use the console cable to connect to the device. This way you know you've got a connection that works and isn't dependent on network configurations on both sides. Once you boot it up with the console cable connected, you can configure it to whatever IP address you want it to have, as well as whatever else, witho...
1
5
5,731
2012-10-25T20:16:56.507
infrastructure
serverfault.com
39,032
Do Microsoft Certifications matter?
Possible Duplicate: Are certifications worth it? I'm curious what experience others have had, both from the perspective of an employer and an employee on Microsoft Certifications. I'm kind of sitting on the fence myself on this issue. I tend to have a cynical view of folks with massive amounts of letters following thei...
For me, a company's high regard for MS certs is the employer version of a "code smell". In other words, it's a fairly clear indicator that the company is not very good at evaluating a programmer's real abilities. The certification exams tend to focus on the minutiae of programming tasks; they're the programming equival...
10
20
6,267
2011-01-22T17:14:47.670
data_quality
softwareengineering.stackexchange.com
128,588
Who's responsible for a master / slave switch?
We are introducing a master / slave replication schema in our web application. At certain scenarios we would prefer to explicitly direct reads to a slave and writes to the master, which to me is an obvious advantage of the schema. Instinctually, I'd prefer for the switch to happen somewhere in the ORM, we use Doctrine ...
You'll need to be able to identify the entire transaction as readonly or read-write. The transaction guarantees durability on the database you're operating on, not on another database. That said, I think the controller is the right place to put this. You should maintain two sources for connections and use whichever is ...
4
4
194
2012-01-05T16:14:24.550
data_quality
softwareengineering.stackexchange.com
1,052,864
OpenVpn Server cannot ping Client
My network setup I have installed OpenVpn Server on a windows 2012 box behind a router. After many tries i cannot ping the client from the server. From Client ping 10.8.0.1 successful ping 192.168.0.1 successull ping 192.168.0.x successful From server ping 10.8.0.4 successful ping 192.168.1.116 UNsucceful ping 192.168....
The server doesn't have a routing table to 192.168.1-network, so it doesn't know what to do with those packets since. You need to tell the openvpn server where 192.168.1 network is located, by using the "ccd" dir where you create a file named as the client certificate name, nd there you do a iroute to map where the 192...
0
0
1,516
2021-02-08T18:37:02.180
infrastructure
serverfault.com
981,696
sysctl kernel core pattern not working with ~
I'm trying to put core dumps in home directory but for whatever reason a core pattern starting with [CODE] does not work while using full path works just fine. Can't seem to find this rule in docs . Not working, no core dumps generated: [CODE] Working, core dumps generated: [CODE] How come the lines works differently? ...
In the first command the substitution of the [CODE] isn't done. If you will check later the value of this sysctl variable, you'll see that. The path should be absolute. The [CODE] is a shell feature. And not every shell implements it. Better use the [CODE] environment variable defined by POSIX .
0
1
460
2019-09-03T14:00:05.807
infrastructure
serverfault.com
115,598
How can I justify software testing to management?
I work for a small company (less than 200 employees) whose software group only makes up a small part of our staff (4 employees, occasionally with a few contractors). The four of us have been making strides in transitioning to better practices, and one of the next logical steps is to improve our testing. As anyone who h...
I believe that you should convince your management not by using numbers, but by explaining the rational. Joel Spolsky makes some very smart points on the benefits of hiring testers in his article Top Five (Wrong) Reasons You Don't Have Testers , that may help convincing management. Also here : If your team doesn't have...
3
6
4,267
2011-10-21T14:38:29.673
api_errors
softwareengineering.stackexchange.com
22,462
"Mysql has gone away" heavy multiple insert
I am stuck because Mysql server will go away after executing this part of code this function will update the database with the new RSS feeds which are stored in ToUpdate but Mysql stops working. Every cell of the array contains a long string for description,for example at the size of 3000 words or more and may be that'...
I usually blame the size of your MySQL Packet I have written past posts on this [CODE] : MySQL server has gone away obstructing import of large dumps [CODE] : Fixing MySQL errors recorded in error logs [CODE] : MySQL Error Reading Communication Packets Just raise your MySQL Packet size ( max_allowed_packet ) in /etc/my...
1
2
3,923
2012-08-14T16:17:14.473
database_errors
dba.stackexchange.com
143,734
PXE E52 proxyDHCP offers were received. No DHCP offers were received
Have a Lenovo laptop which i'm trying to capture an image from as a test (we are moving from HP as our std laptop) and i keep getting the PXE E52 error when trying to boot from LAN. With things exactly as they are all the previous HP models are connecting ok. I'm at a loss as to what to test, as its working for the HP ...
The device may be "rejected" in WDS. Try clearing your rejected devices list by running [CODE]
0
2
19,526
2010-05-20T13:00:47.187
infrastructure
serverfault.com
218,702
Notify client about changes in database in Java
I'm working on a distributed client-server system that uses TCP. The program's functions is to transfer money to an from the server, but also between the clients, a sort of MobilePay. When one client wishes to transfer money to another client, that client will need to accept the transfer before it is succeeded (one of ...
There's likely a few layers to this solution. I'm assuming of course that the client isn't connected directly to to the database and there's at least one or more application layers in between. Between the client and application server, using a pub/sub protocol like STOMP of AMQP should fit the bill. Triggering notifica...
1
2
3,796
2013-11-17T14:32:40.677
api_errors
softwareengineering.stackexchange.com
71,227
Slow DELETE in MySQL with a subquery
I am running the following [CODE] on a MySQL database on a [CODE] table. The SQL is called in a loop, once time per Users (in this case):- [CODE] But it is taking over a minute per User - how can I optimize this at all so it takes far less time each user?
Try removing the nesting levels, mysql can not delete from a table that's referenced as a child, instead there's a propriety trick like: [CODE] Also, like @Mihal suggested try removing all function calls like trim from predicates, they are expensive.
0
1
2,681
2014-07-11T06:37:27.650
database_errors
dba.stackexchange.com
316,007
error to create sequence
trying to add auto_increment to an existing column [CODE] try 1: [CODE] Error: ERROR: sequence must have same owner as table it is linked to try 2: [CODE] Error: [CODE] As it should be?
With modern Postgres versions (i.e. >= 10) it's better to use [CODE] columns (they do use sequences in the background). To turn an existing column into an identity column you can use: [CODE] or [CODE] I prefer the [CODE] as it will through an error if you try to bypass the automatic generation of values. If the table a...
0
1
2,169
2022-08-24T16:10:28.860
warehouse_errors
dba.stackexchange.com
777,230
EC2 with AWS CloudFront?
[CODE] I want to do a geo-location based content distribution, so that the end user can reach an edge location geographically nearest to him and then get static content delivered to him from an s3 instance nearest to him whose address is know only to the associated EC2 instance. [CODE] I want to have these units act as...
Choose a single hostname for CloudFront to use as the origin server hostname when accessing the back-end. This hostname needs to be in a domain that you control, a domain is provisioned in Route 53. What we're going to do is arrange it so that any time an edge location in CloudFront tries to look up this hostname, it w...
0
1
3,022
2016-05-17T10:19:10.377
infrastructure
serverfault.com
293,957
Linux script to check settings and recommend tuning changes?
I'm searching for a script to run on our linux server and recommend various tuning changes we might consider making, as well as their suggested values for consideration. Any ideas if something like this exists? The server runs a Wordpress site and we'll be working on implementing caching, but based on the VPS instance'...
Tuning in this respect depends on the applications' needs. These needs vary from application to application. However, in general, the application vendor usually provides required configurations and usually includes some tuning ideas that could be explored. Thus something as general as you want probably does not really ...
-1
2
322
2011-07-25T19:24:42.073
database_errors
serverfault.com
116,576
How can I improve my error checking and handling?
Lately I have been struggling to understand what the right amount of checking is and what the proper methods are. I have a few questions regarding this: What is the proper way to check for errors (bad input, bad states, etc)? Is it better to explicitly check for errors, or use functions like asserts which can be optimi...
The easiest way for me to tell the difference is to determine whether the error condition is introduced at compile time or run time. If the problem is a programmer using the function wrong somehow, make it an assert to draw attention to the problem, but once the fix is compiled into the calling code, you don't need to ...
13
4
3,788
2011-10-27T15:50:45.220
api_errors
softwareengineering.stackexchange.com
460,500
Rsync show progress for individual file
I'm using rsync to upload/download a pretty large file (20Gb). I'm aware of --progress option, but what it does in my case is just showing me the result at the end. My problem is that during some unstable connection - I don't know whether it's still downloading/uploading or something went wrong. Is there a way to show ...
This might be what you're after. [CODE] The switches breakdown as follows: -avvz = archive, verbose x 2, compress --times = preserve modification times --stats = give some file-transfer stats --checksum = skip based on checksum, not mod-time & size --human-readable = output numbers in a human-readable format --acls = p...
22
20
21,239
2012-12-23T21:39:19.663
infrastructure
serverfault.com
212,770
Cursor causes SSMS to crash
I have a cursor that generates one record of JSON text from a group of tables. The cursor has been making SSMS crash. The script runs for a time then SSMS fails. Below is the code that I have written that is causing the crash. [CODE] From Windows Log: The following .NET Runtime error happened first: Error 7/20/2018 2:2...
First, it looks like you are doing a ton of extra work here. The query in the cursor is a subset of the query in the [CODE] loop, and the data does not change at any point in time. So it is just executing that same query over and over again, just for a different row. It should be far more efficient to store the results...
3
5
2,284
2018-07-20T12:16:34.740
pipeline_ops
dba.stackexchange.com
321,380
Enabling per-virtualhost email relaying through external user/pass smtp relay
Possible Duplicate: Postfix configuration: different outgoing hosts based on sender I've got a problem that's driving me mad. Basically, I run 10 virtualhosts in a CentOS distribution. From now on, I'll call these virtualhost domains www.example1.com to www.example10.com In the meanwhile, I've bought an external servic...
You have not indicated what MTA you are using, But that should be fairly simple to implement with both postfix and exim. For postfix look at http://www.postfix.org/SASL_README.html#client_sasl_sender For exim you need to write a lookup to pick up the correct auth details from a data source, e.g file.
0
0
376
2011-10-14T07:37:06.663
data_quality
serverfault.com
830,215
Testing/Dev and Deployment strategy for small scale app (prototype)
I'm building an application which is still in proof-of-concept/prototype stage. I use Amazon EC2 for my server needs. Its not open to the public yet and I develop and test on the AWS machine directly also playing around with other AWS tools and bring the server online/offline whenever necessary. My stack is Node.js, My...
To understand how effectively you are testing a product, I advise to have a test documentation. The need for this kind of documentation will be more obvious when you scale your product. If you don't know how to write such documentation, I suggest you read this guide: https://tech-stack.com/blog/test-strategy/ . It deta...
0
0
53
2017-02-02T18:19:45.393
pipeline_ops
serverfault.com
420,196
Ubuntu 12.04 Server Software RAID1 - Faulty Spare - Smart Output Passed - Confused
I think I'm having an issue with one of the hard drives on my array and I'm just trying to troubleshoot what's happening. Its saying Faulty Spare and then after reboot it just says removed: [CODE] Here's the parted l stuff so you can see my partitions [CODE] I ran the smartctl -a /dev/sdb2 and it said I passed, but com...
actually it seems like you have not successfully undergone any selftest, yet: [CODE] try running smartctl -t long /dev/sdb.
1
0
418
2012-08-22T20:11:44.083
infrastructure
serverfault.com
274,821
Creating Linked Server Object to same instance
I'm trying to create a Linked Server Object back to the same SQL Express 2014 server instance (see below for the context), but I'm hitting the following error... Cannot initialize the data source object of OLE DB provider "SQLNCLI11" for linked server "NewServer". OLE DB provider "SQLNCLI11" for linked server "NewServe...
I've already worked it out... The problem was incorrectly setting the provider string to [CODE] . When I removed it (leaving it empty) it connected immediately... Linked Server: [CODE] Server Type: [CODE] Provider: [CODE] Product name: [CODE] Data source: [CODE] Provider string: [CODE] (UPDATED) Security, Login: [CODE]
0
1
817
2020-09-02T08:51:35.997
database_errors
dba.stackexchange.com
1,015,653
Local domain name resolution with WSL & Docker
I'm developing an app that is a combination of a Chrome extension and Rails backend (plus redis, solr and postgres). I've recently switched to developing on my nice home Windows rig instead of my macbook. The extension (running in a chrome browser on Windows) needs to be able to talk to the host ( [CODE] ) backed by th...
Here is what worked for me: Open windows hosts file c:\Windows\System32\Drivers\etc\hosts Add a binding for your puma domain to localhost [CODE] Save and restart windows
1
2
3,836
2020-05-04T20:51:48.730
database_errors
serverfault.com
473,810
Postfix. User outgoing e-mail restriction
Is there a way to configure Postfix to restrict outgoing e-mail per user so that he/she can ONLY send e-mails to one specific e-mail address? For example: username@mydomain.com where username is actually user login.
Your best bet here is a policy service such as postfwd or policyd; postfix does not natively have very good 1:1 rules.
0
1
895
2013-01-30T13:14:26.623
infrastructure
serverfault.com
1,042,573
Mac sed not the same as linux
I have a bash script that I have used before on Linux and it runs fine on different distros, but not on a MAC. I am trying to read a file and then delete the current line. For some reason on Mac I keep getting the following error message. The file does get read line by line and prints out the correct output, but never ...
The [CODE] option requires an argument on BSD sed: [CODE]
-1
2
940
2020-11-15T02:03:55.527
infrastructure
serverfault.com
248,491
LDAP : Cannot resolve group *** to gid : not found
During the step User and Group Management in LDAP installation I wrote the following command [CODE] and got this error Cannot resolve group example to gid : not found
You tried to add user george to the group example but this group doesn't exist (yet). See what groups exist or use the command [CODE] first (this should report an error if the group example already exists).
1
1
2,496
2011-03-17T09:04:45.540
infrastructure
serverfault.com
14,838
Installing Tomcat on CentOS 5
Disclaimer: I am not a server admin, I am a windows user that has lead a life of sinful installation wizards and drag and drop I'm attempting to install Tomcat on CentOS 5 hosted by a MediaTemple dedicated virtual server. I basically followed this guide : Installed jpackage and configured the yum.repo.d jpackage file t...
I solved this one after carefully following this guide: http://de0ris.blogspot.com/2008/08/installing-tomcat-6x-on-centos-5.html As mentioned in the comments above, JRE and JDK are separate downloads. I couldn't seem to find them in any package manager, so I had to download them directly and run them.
3
3
20,275
2009-05-29T17:01:42.170
hadoop_errors
serverfault.com
979,012
regular timeout error at certain time period
My system sends the data to Redis via web server and ultimately stacks it in Elasticsearch. The thing is that Redis connection timeout error occurs when the traffic is small. The error always occurs at 5 AM in Korean time around one to five minutes. The memory usage rate of the Redis server rapidly increases at 5 AM, b...
That could come from many issues : Because you use the SAVE command (it is setup in your conf) generating a lot of I/O and hammering the server on that time or any backups are scheduled, especially if you use EBS volumes on Amazon. Also if you use a KEY * which is very slow on a lot of indexes. Try "slow log" command o...
0
0
97
2019-08-13T03:00:05.043
database_errors
serverfault.com
287,186
Why does a newly-inserted row show up in two filegroups on a partitioned table in SQL Server?
I partitioned an existing table by year. After inserting a new record for a date in 2020, the new record shows as part of the 2020 partition and in the primary filegroup. I'm having a hard time finding if that's what is supposed to happen, or if I have something configured incorrectly. This is what the partitions look ...
You have an index and a heap (the unindexed table) as shown by indexid (3 & 0 respectively) in edit4 so of course the row shows up twice. The index called PK_Punch does not seem to be partition aligned (as it is NULL in PartitionScheme) - which may or may not be a problem.
2
7
433
2021-03-17T13:45:41.627
database_errors
dba.stackexchange.com
11,795
Agile Tester vs Traditional Tester...........?
What is the Difference in Role of a Traditional Manual Tester, who works in a waterfall based Project and that of an Agile tester, who works in an Agile based Project? My project has started to follow Agile practices , but i don't know, that should i as a QA/Tester change my working style or approach? What should i do ...
I'd suggest you start by taking a look at some of the related questions and their answers, particularly this one and this one . Also, if you don't have Crispin and Gregory's Agile Testing , get it. Some things that I've found helpful include: Test plans will still happen - but they tend to be much more lightweight and ...
9
6
1,140
2015-01-14T12:28:27.510
data_quality
sqa.stackexchange.com
95,200
Bypass HR to get an interview
I recently sent in an application for a position that I am qualified for and received this response: "We regret to inform you that your current qualifications do not match those needed for our current openings. We will retain your resume and if a position opens that closely matches your skill set, we will contact you a...
I'm actually the hiring manager the original poster wrote about. We're a small but growing company, and until quite recently, I was reviewing all the resumes personally. Our developers all work from home, so the jobs are open to every dev in the USA. This results in a flood of candidates, qualified and (mostly) otherwi...
20
14
2,777
2011-07-22T16:22:34.900
api_errors
softwareengineering.stackexchange.com
458,110
JSP Content Issue in Tomcat
There is one application where I work where there are still manual builds used i.e manually moving the servlet classes and jsp files from Dev to QA and finally to Prod. This is the method used in this application which cant be changed for some wierd reasons.BTW this is not the problem. We did a manual build where we tr...
I don't know why this happened, but you should be able to force Tomcat to recompile all JSPs by deleting everything under [CODE] and restarting Tomcat. The frequency with which Tomcat checks whether JSPs need to be recompiled can also be tuned in [CODE] .
0
0
652
2012-12-14T15:31:45.670
pipeline_ops
serverfault.com
35,613
Python expected an intended block error if/else
Hello im getting in this script an indentationError [CODE] at the last else I'm getting this error: else: ^ IndentationError: expected an indented block I dont know what to do when i write an elif in between of those im getting this error in the elif. Hope you guys can help me
You seem to have "else" twice near the end of the code snippet. On some other things that I would change: You call time.sleep() twice at the start of the code, one right just after the other Remove time.sleep() altogether and wait until a certain element is shown instead. You can either set implicit wait globally, whic...
0
3
650
2018-09-13T05:33:13.527
data_quality
sqa.stackexchange.com
125,938
import mysql schema data folder instead of from a dump
current state I have prod and dev mySQL databases. To create the dev database, I used the various schema backups generated from production and imported them like so: [CODE] This was an extremely time-consuming process (over 24 hours for some schemas). I'd like to speed it up. ideal solution I'd prefer to just be able t...
The file [CODE] has "tablespace ids" in it that need to correspond to the .ibd files containing the data, etc. Since these ids are generated by the instance, when you reloaded the dump, they may be different than the ones on the production machine. Hence, the rsync could be copying wrong ids. Moral of the story: Don't ...
2
1
1,132
2016-01-11T22:12:09.670
database_errors
dba.stackexchange.com
228,552
Contained User within a Non-Contained Azure SQL Database
While granting access to Azure SQL databases I have been creating Contained Users directly in the SQL database like so:- [CODE] As this has been working fine, and users need to add the database name to the connection, I thought azure would know this is now a contained database. However, upon checking, I've found the da...
Azure SQL Database allows database-level authentication regardless of whether the database is contained or not. There is no need to change the database containment for the purpose of database-level authentication alone. The reason you might use a contained database is to ensure better portability. See the Contained Dat...
0
2
584
2019-01-31T11:51:53.590
warehouse_errors
dba.stackexchange.com
451,062
Does the Mediator Pattern Solve the Same Problems as a Queue?
I am very unfamiliar with the Mediator Pattern in practice, but it seems that the core is decoupling events from handlers ("Colleagues"). The benefit being "lose coupling" in the sense that you can change code in a "colleague" without breaking the caller and vice-versa. In that sense, this seems like what an in-memory ...
No, the mediator pattern does not solve the same problem as a queue. No, a queue doesn't solve the same problem as a mediator. Yes , a distributed queue happens to also provide something that mediators do. Let's tackle these in order. 1 A queue inherently contain the ability to defer execution of the queued items, i.e....
1
6
122
2024-02-15T22:42:13.167
api_errors
softwareengineering.stackexchange.com
723,493
forward slash and mod_rewrite
This might be a stupid question but it took me days to even figure out what the problem was. I'm using [CODE] and passing values separated by forward slashes. The problem is that the forward slashes are changing the path (I think) So I'm passing " [CODE] " which gets directed to [CODE] with the [CODE] parameter as [COD...
The login page loaded with no style and a link back to the homepage came up as [CODE] instead of [CODE] . Because you were using relative URLs in your client-side HTML. This doesn't really have anything to do with mod_rewrite or server-side "setup". Yes, "this is how it should be". The browser simply resolves relative ...
0
0
490
2015-09-19T17:23:12.977
infrastructure
serverfault.com
166,825
Processing CSV data on import
I have an externally-produced CSV filled with geographic points and associated data, but I would like to run some functions on the columns before saving them. For example I need to digest longitude/latitude columns into points, run some numerical processing on other columns, and discarding a couple altogether. What's t...
The common way is to use a staging table (the table you called "data_import" which conventionally would be called "data_stg" or similar variation). Preferably, no "updating" would be involved (maybe it was just a poor choice of words) but only a single [CODE] .
1
0
162
2017-03-10T12:05:48.107
warehouse_errors
dba.stackexchange.com
128,520
What are concrete rules for using a linked list instead of an array?
A linked list can be used when you want cheap insertion and deletion of elements and when it doesn't matter that the elements aren't next to each other in memory. This is very abstract and I would like a concrete explanation of why a linked list should be used rather than an array. I'm not very experienced with program...
Here is something part way between an example and an analogy. You have some errands to do, so you grab a piece of paper and write: bank groceries drop off drycleaning Then you remember that you also need to buy stamps. Because of the geography of your town, you need to do that after the bank. You could copy your whole ...
18
36
23,111
2012-01-05T12:09:52.200
api_errors
softwareengineering.stackexchange.com
471,459
Automatically remove instance from ELB on server stop
How to automatically remove an instance from its LoadBalance (ELB) when you stop the instance? I've tried to create a shutdown script and put it on chkconfig, but it is not working: [CODE]
There must be a [CODE] file Put a [CODE] in the startup function and a [CODE] in the stop function
0
0
1,140
2013-01-22T17:49:25.157
infrastructure
serverfault.com
735,353
Advice for creating CentOS mdadm software RAID6
EDIT: Solutions to my issue are below I want to create a well optimized RAID6 array with mdadm with an XFS partition on a CentOS system. It'll involve ten ST3000DM001 Seagate 3TB drives and I'll be writing a few terabytes at a time, all in files of over 100 MB, over a gigabit ethernet connection. The more I read about ...
I agree. Except you don't have to run parted on md0, just create a partition. [CODE] From my experience, changing block size doesn't improve the performance much. It is always as litle as 1-2%, no big deal. Creating raid on drives directly can make some problems on some systems, even worse if you want to use that as a ...
1
0
346
2015-11-10T19:13:51.180
infrastructure
serverfault.com
815,009
Windows server 2003, RDP and Printers
Hy all, OK, i have a problem related with RDP user, printers and runas. My main language is not English but I will try explain the best i can. We have a windows server 2003 installed with specific software, we have 4 different user that access that software via RDP and print with redirect printer to his office, so far ...
Please create a local user on the server with local admin privilege, you seem to have used a domain admin account to create your run-as. As such it's a normal behavior that an domain admin can list all printers that are listed in Active Directory. Solution B is to run a process monitor and watch where the application n...
0
0
165
2016-11-15T13:12:08.260
infrastructure
serverfault.com
851,964
Website is indexing non secure url only on ie and edge
I got a message from a client saying that they have the error screen. There is a problem with this website’s security certificate. I know the reason why but don't know how to resolve it, the website is https://kingsleyrecruitment.co.uk/ this is the url with the secure certificate on when i google "kingsley recruitment"...
Your setup isn't well. You should have www.kingsleyrecruitment.co.uk and kingsleyrecruitment.co.uk in your certificate (both in SAN section, CN can be any of these). A redirect to other alias is ONLY possible with a valid certificate for both domains. Of course you can always redirect port 80 to 443, but not 443 to 443...
0
0
33
2017-05-24T10:43:55.060
infrastructure
serverfault.com
242,887
HAProxy convert GET to POST
Is there any way to configure HAProxy to convert GET requests to POST when sending to the backend servers? The background of the problem is that we want to use a Cloud based logging service (e.g. loggy.com), which only allows log events to be created via POST to its REST API. Log events will be created via Javascript i...
Something like this should do the trick: [CODE] The key bit is the last line.
4
3
2,229
2011-03-03T19:20:04.047
api_errors
serverfault.com
49,141
I read Pro ASP .NET MVC 2 Framework - anything else for AJAX in MVC 2?
I read Pro ASP .NET MVC 2 Framework to try and learn the ASP .NET MVC Framework, but I'm really struggling with Ajax in MVC even after going over that chapter again and again. I seem to have a decent grasp on MVC 2 without Ajax. I used the Ajax controls from ASP .NET (non-MVC) and am used to user controls in update pan...
Were in the same boat, Ive been away from scripting too long and its caused me the same sort of challenges. At this point its more-so about getting a firm understanding of JS/jQuery/AJAX independent from MVC. There are a few books I can suggest, I am sure you can find similar threads on SO. Wrox Professional Ajax, 2nd ...
4
5
293
2011-02-18T01:18:28.100
api_errors
softwareengineering.stackexchange.com
172,807
Stop Sharepoint users editing shared versions of a site?
On Windows Sharepoint 3, users who have Collaboration permissions on a site can edit the shared view, so they can change how the site looks for others, adding and removing parts of it. Looking online, the only "fix" I've seen for this is using CSS to hide the Site Settings menu, which isn't really a solution. Can anyon...
I found what was wrong. The Sharepoint group [CODE] group had design permissions, and the users were part of the AD group [CODE] group - which made them [CODE] , so they had design permissions...
0
0
629
2010-08-20T16:34:26.763
infrastructure
serverfault.com
1,010,641
ubuntu 18.04, passenger ERROR: Phusion Passenger doesn't seem to be running
We just installed a new box with Ubuntu 18.04 with passenger and everything run fines, the site is up, but when we do [CODE] we get [CODE] Cannot find another question that fixes this, it's a clean install, any ideas? thanks, kevin
I doubt you're still having this issue, but it shows high on a G-search so, the problem I found on Ubuntu 18.04 with Apache and Passenger v5+ is to do with the systemd setup of Apache: The 'tmp' directories it creates are private to Apache, and so Passenger (which will fall back to looking in /tmp for it's Instance dir...
0
2
3,131
2020-04-02T19:30:02.203
infrastructure
serverfault.com
477
Preference Matching Algorithm
There's this side project I'm working on where I need to structure a solution to the following problem. I have two groups of people (clients). Group "A" intends to buy and group "B" intends to sell a determined product "X". The product has a series of attributes x_i and my objective is to facilitate the transaction bet...
This can be a cross between machine learning and simple matching exercise. I think X_i tend to be rather defined and finite, while A_i can be vague and not finite. From a pure algorithm perspective I would search for instances where X_i = A_i and store the results into a container of sort. The more hits for certain X'e...
2
1
793
2014-06-18T22:15:43.820
data_quality
datascience.stackexchange.com
876,018
SNAPT WAF Implementation
I just got the responsibility of implementing and managing the WAF for our SNAPT install. I have the WAF enabled on the Admin page for testing right now. I finally got an error so I can learn what the errors look like and how to fix them. So I need to put a URL exception in there. I followed the documentation and Naxis...
I figured out it is a bug in their code. I submitted for a fix.
0
0
56
2017-09-28T19:30:22.907
infrastructure
serverfault.com
726,492
Would this setup for MS Small business work?
I've just visited a friend's company and they have asked to help setup their IT infrastructure. At the moment they have around 20 laptops with 25 local accounts. I pity the guy who setup the local accounts on all the laptops. They don't have an IT person, just someone who knows a little bit about computers. Current set...
You need a product other than Windows Server Essentials. Sharing accounts to avoid license requirements actually violates the license requirements. If you can't get that right, you should pursue a product that is free or has licensing requirements that are more understandable to you. See section 3.3.2 of the Windows Se...
0
1
38
2015-10-03T14:20:25.570
pipeline_ops
serverfault.com