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
499,802
Exec when service is ok with monit
I need to run a shell script if a service is ok with monit, to link to my other monitoring system (nagios). Basically what I need to achieve is to make monit send an alert when a service was restarted and another alert when the service is ok. I have tried the following without any luck: [CODE] The above complains about...
Since you say that monit is feeding into NAGIOS, why not use NAGIOS to do the heavy lifting (ie, deciding about, and sending, notifications)? If monit monitors the restarts, it can use [CODE] to notify NAGIOS that a restart has happened. NAGIOS in turn can receive this into a passive service which is designed to notify...
1
1
622
2013-04-16T12:30:17.917
pipeline_ops
serverfault.com
432,962
centos dedicated Server unresponsive for the first time
server was unresponsive for an hour so i rebooted it and checked /var/log/messages and found this. can anybody point out whats wrong ? [CODE]
As Safado says, you ran out of memory resulting in the oom-killer kicking and and closing things down. I had this problem too . I took the following actions: Increased amount of swap available, so oom-killer would not get invoked as quickly Setup monit to alert me when memory started to run out Setup munin so I could c...
1
2
1,133
2012-09-28T14:13:23.373
infrastructure
serverfault.com
19,661
Less restrictive query return less result due to simple removing one additional constraint
Look at this query [CODE] that's basically search all bizs whose TA.LatLong is in the box of 'MULTIPOINT(-6.2317830813328 106.72621691867,-6.1382169186672 106.81978308133)' and after that the box must contain kucing This returns 22 rows. Now compared that to this query [CODE] It's the same query but LESS restrictive. N...
If the second (indeed less restrictive) query returns zero rows while the first returns more than zero rows, then this is a bug. First check if you can repoduce the error with only table or not. If the error stays while you remove the [CODE] and/or the [CODE] . Then try to write the set of statements ( [CODE] tables, [...
6
3
636
2012-06-21T13:56:42.133
data_quality
dba.stackexchange.com
500,261
Virtual pfSense Appliance on VMWare Host
I am having some issues setting up the WAN side of pfSense. I have ordered a dedicated box through a hosting service with ESXi loaded on it. Along with that I have 3 public IP addresses that will ultimately be going to the box. Currently one of the IPs is set straight to the box and I can access VMware through the clie...
I needed to run a router on my ESXi host as well. I also could not get outbound. I found that the traffic I needed to traverse the external interface was being blocked because ESXi defaults all network cards to "Promiscuous: Reject". Set your promiscuous setting to accept, and the adapter should start flowing the traff...
0
1
1,330
2013-04-17T16:16:46.937
infrastructure
serverfault.com
179,850
Need help in writing stored procedures in MYSQL?
This is my update query : [CODE] I'm new to Mysql programming, can anyone help me in designing this update process in a Stored Procedure. My table looks like this: CREATE TABLE [CODE] ( [CODE] varchar(100) DEFAULT NULL, [CODE] varchar(1000) DEFAULT NULL, [CODE] varchar(100) DEFAULT NULL, [CODE] varchar(50) DEFAULT NULL...
It might some help you. [CODE]
0
1
90
2017-07-14T11:06:06.223
api_errors
dba.stackexchange.com
409,991
On Windows: is it safe to do a robocopy in order to clone the system?
Let me start by giving a bit of a background. On Linux systems, I frequently rely on the fact that as long as I can get all files over from one hard drive to another, and as long as I fix up the boot loader, I'll be left with an identical, bootable, fully functional system. Same thing works for backups and restores (no...
AD Servers are different. A Domain Controller has a directory junction on the C:\Windows\SYSVOL\sysvol directory that points to the C:\Windows\SYSVOL\domain directory: [CODE] Almost any type of a manual copy operation would result in a SYSVOL that does not come online due to a borked junction. Although to be accurate, ...
20
5
10,929
2012-07-22T03:25:59.053
database_errors
serverfault.com
1,214
Book keeping of experiment runs and results
I am a hands on researcher and I like testing out viable solutions, so I tend to run a lot of experiments. For example, if I am calculating a similarity score between documents, I might want to try out many measures. In fact, for each measure I might need to make several runs to test the effect of some parameters. So f...
you might want to look at http://deeplearning.net/software/jobman/intro.html it was designed for deep learning (I guess), but it is application agnostic. It is effectively an API version of SeanEasters approach
11
5
440
2014-10-05T06:25:27.303
data_quality
datascience.stackexchange.com
142,054
Have an unprivileged non-account user ssh into another box?
I know how to get a user to ssh into another box with a key: [CODE] But what about non-account users like [CODE] ? As this user doesn't have a home directory to which it can write a [CODE] directory, the whole thing keeps failing with: [CODE] I've tried variations using [CODE] and setting [CODE] to [CODE] and none of t...
Zoredache had it. Not a single option I passed on the command line could save me as the private key file was set to [CODE] permissions and owned by my own user. My bad. Apologies to everyone :-(
5
0
2,918
2010-05-14T22:02:51.670
infrastructure
serverfault.com
982,207
Changing from Localhost to Computer Name Throws 403 Error (Tomcat 9)
I am trying to run Tomcat 9. I have configured it to run with SSL. So when I am accessing the tomcat URL with: https://localhost:8443/manager/html It works fine. But when I try to run it with my computer name I get the 403 error saying I should rectify my tomcat-users.xml. I have the XML fine setup just fine. But not s...
You need to allow access to the manager GUI explicitly for hosts other than localhost by changing the Valve in [CODE] : Original: [CODE] Either comment it out like this: [CODE] Or change the IP inside the Valve to the IP you need, or add it to the list.
1
2
1,960
2019-09-06T13:00:50.980
api_errors
serverfault.com
755,040
failed to install docker on Debian 8
This is the first time I deal with Debian, and I need a docker. I was following https://docs.docker.com/engine/installation/linux/debian/ to get it installed, however I faced the error: [CODE] UPDATE As recommended, I updated [CODE] : [CODE] However [CODE] returns error (Unable to locate package apt-transport-https), [...
The package apt-transport-https is available in the official repositories (checked with [CODE] ) but does not seem to be included on the DVD you have used for installation. Modifying your sources.list to use internet repositories instead of the DVD should fix it. See also here: https://unix.stackexchange.com/questions/...
1
3
1,942
2016-02-09T16:43:14.210
pipeline_ops
serverfault.com
272,771
Apache - Load only certain modules based on remote hsot
We are trying to figure out how to "load" in htaccess based on remote ip. We want to use the limit-connection-per-ip(rate limit module) but only for certain ip's ? Can this be done ? Any other way to "Rate Limit Apache Connections" ?
This may be better accomplished in your firewall. Here's an example in IPTables, though it's written with MySQL in mind.
0
1
100
2011-05-23T14:51:23.163
api_errors
serverfault.com
780,473
Postfix Header_Check Regex 'Does Not Match' issue
I am trying to configure Postfix to NOT accept outbound messages with FROM addresses other than my own domains. The following regex successfully rejects only 3 domains: [CODE] I'd like to basically reverse it and block EVERYTHING BUT those 3. So according to the manual: !/pattern/flags result When pattern does not matc...
The problem is postfix use header_checks for every header line. So if there is header line like [CODE] and postfix will apply that regex into this line. The result is postfix will reject this email. The solution is adding [CODE] in your regex pattern [CODE] Basically you tell postfix to apply the pattern into From head...
1
5
3,187
2016-06-02T08:17:06.057
infrastructure
serverfault.com
485,747
connection lost to glustferfs when amazon ec2 internal ip address changes
My web site running on EC2 instances. Web servers stores dynamic data in glusterfs servers. When the glusterfs instances are restarted, their ip addresses changes, so that web servers lost the connection to glusterfs. How could I fix this problem?
This is expected behavior of EC2. If you want more granular control over your IP addressing, you're going to have to create instances inside of a VPC .
1
4
156
2013-03-07T20:10:54.903
infrastructure
serverfault.com
7,715
Online mod_rewrite testing tool
mod_rewrite statements can be hard to write and debug, therefore I need a lightweight online tool that enables me to test my [CODE] , [CODE] statements on the fly. Any such tool?
Here's one . You can also use a regex tester like this one , or this one .
8
7
47,756
2009-05-13T10:52:32.423
infrastructure
serverfault.com
186,952
TEXT data migrate from Sybase to SQL Server
I'm working on migrating Sybase ASE 15.7 SP134 database to SQL Server 2008R2, using SSMA for Sybase 2014. I'm facing an issue where a table in SybaseDB has 2 columns with the data type [CODE] . The SQL Server table with datatype "text" is mismatching on Japanese data characters. Questions are: How can we keep same text...
Your best bet is to change the default datatype mapping in SSMA to NVARCHAR for sqlserver since the default mapping for text is nvarchar. Make sure to save the settings... Choose Tools, Project Settings, Type Mapping from the menu. See https://blogs.msdn.microsoft.com/ssma/2011/03/06/access-to-sql-server-migration-unde...
4
3
826
2017-09-26T17:44:50.677
database_errors
dba.stackexchange.com
964,307
Kubernetes deployment "failed to pull image" with local registry, minikube
I'm getting a "Failed to pull image" error on my [CODE] in [CODE] with a local registry, despite other deployments using the same image registry working as expected. My workflow is to build the image from a Dockerfile called [CODE] as below. [CODE] The deployment is created as desired, but the pods don't start, and the...
1) You have to run [CODE] 2) Build the image with the Docker daemon of Minikube [CODE] 3) Set the image in the pod spec like the build tag - [CODE] 4) Set the imagePullPolicy to Never, otherwise Kubernetes will try to download the image. [CODE]
8
10
17,122
2019-04-23T20:33:11.743
bi_errors
serverfault.com
116,412
What can and can't the Garbage Collector do?
Will the GC take care of all memory management issues (memory leaks) ? Is there any case where you don't want the GC to take control of some part of your code ?
It will take care of the classical memory management issues (allocated memory not getting deacllocated when no longer in use), though it is still possible to have memory leaks with a GC system - this will be more subtle and will occur when objects still hold references to other objects, even when they no longer need to...
8
10
767
2011-10-26T16:04:38.390
api_errors
softwareengineering.stackexchange.com
255,297
Share Data Using HTTP / FTP?
I have a network of [CODE] , running Ubuntu 10.04. Each machine has about 200[GB] of data that I'd like to share with all other [CODE] for READ ONLY PURPOSES . The reading should be done at the fastest possible way. A friend told me to look into setting up HTTP / FTP. Is it indeed the optimal way to share data between ...
There are hundreds of ways to solve this problem. You can mount a FTP, or HTTP file system over fuse, or even use NFS (why not?). Search for httpfs2 or curlftpfs (or even sshfs, which should not be used if you are looking for performance) But the problem I see is, you have a single point of failure of the one and only ...
1
1
373
2011-04-04T00:05:04.427
api_errors
serverfault.com
109,936
Why doesn't batch normalization 'zero out' a batch of size one?
I'm using Tensorflow. Consider the example below: [CODE] There doesn't seem to be any change at all, besides maybe some perturbation due to epsilon. Shouldn't a normalized sample of size one just be the zero tensor? I figured maybe there was some problem with the fact that the batch size = 1 (variance is zero in this c...
Maybe you are running the batch norm with a running mean and it joins the mean and std of the single sample with the initial values of the mean and var. Try setting momentum to 0 (I think, also try 1, the point is to turn off the running calculation), and then, I guess it might solve the problem.
0
0
79
2022-04-12T18:28:36.190
data_quality
datascience.stackexchange.com
269,859
how to sum values from subquerys
i need to collect some values from multiple tables and sum this values as a column to the result table. my query looks like this: [CODE] the sum throws a "Error Code: 1054. Unknown column 'a170_score' in 'field list'" Error. what i get without sum: [CODE] what i expect with sum: [CODE] Why cant i access these values an...
You can't use the new columns that way. use a subquery to use the data to calculate [CODE]
3
2
5,804
2020-06-25T12:31:44.607
warehouse_errors
dba.stackexchange.com
397,420
Converting UTF-8 NFD filenames to UTF-8 NFC, in either rsync or afpd
I have a home file server running FreeNAS 8. A few days ago I used rsync to upload my entire iTunes library from Mac so that I could load my library over the network instead of off a slow USB drive. This mostly worked, and iTunes runs much better now, but I'm running into issues accessing any songs that have non-ascii ...
Note: If you are using version 3.0.0 or newer of rsync, the [CODE] option as mentioned in the other answers is clearly the superior solution. Something that should work is rsyncing between the source directory and the mounted remote file system (SMB, NFS, AFP), which rsync will just treat as local file system. However,...
31
4
19,402
2012-06-10T23:09:31.883
infrastructure
serverfault.com
250,453
Improve performance by combining two quieries
I have following submission table. A submission is an image. [CODE] [CODE] is the submission_pkey (md5) of another user who has posted the same submission (image). In other words if two users post the same image the later submission will contain an [CODE] to the submission_pkey of the first image. Now I am looking for ...
Can it be? [CODE] [CODE] will match submission which is copy from this user. [CODE] will match submission which current user copy from.
0
2
47
2019-10-07T17:34:55.287
warehouse_errors
dba.stackexchange.com
1,063,668
Port unavailable in Kubernetes pod
I have a three node Kubernetes cluster and a deployment with 5 replicas. Each pod of the deployment exposes port :3401 and :4000 (one for debugging, and one for the application). I have two services (one for each port the pods expose). I have an ingress controller, and a single ingress for the application that is expos...
I had the following lines in my pod spec for the deployment: [CODE] Must have copied and pasted it from somewhere without thinking. :(
0
1
452
2021-05-15T21:04:19.007
api_errors
serverfault.com
432,288
Long-running jobs in an event-driven environment with constrained max-execution-duration
Hello we have an async event-driven system (kotlin, spring cloud stream, rabbitmq) where there might be an event [CODE] , published by an ingress rest-controller. Processing this [CODE] and publishing the follow-up result in a subscribe may take some time, let's say 1h. Being in AWS and using a managed RabbitMQ via the...
Your event handler could copy the message to an "in-progress" queue (IPQ) or database table and confirm reception of the message to the MQ service before processing the message. When the message was processed successfully, it needs to be removed from the IPQ, and the next message is read from the MQ service. Note that ...
0
1
80
2021-09-28T07:21:15.710
api_errors
softwareengineering.stackexchange.com
284,116
MySQL stopped asking for passwords
I'm currently experiencing a weird problem with one of my MySQL database servers: It stopped asking for passwords when I try to access the database from local with the mysql command line tool. I need a valid admin username. I also still need a password for remote access (i.e. from another IP). And I need a password whe...
Are you the sole admin of the system? If not, I guess someone else has created a file named " /root/.my.cnf ", containing login-credentials. Can you verify this?
4
5
415
2011-06-25T15:15:18.857
database_errors
serverfault.com
237,826
Are the SATA power connectors on motherboards compatible with both 2.5 & 3.5 drives?
Are the SATA power connectors on motherboards compatible with both 2.5 & 3.5 drives? I want to switch my desktops internal 3.5 in drives to 2.5 in drives. I know that the signal cables are the same, but does that apply to the power connections too? Is it safe?
The connection is the same, and the power levels are both the same independently of the disk form-factor (3.5 or 2.5 inch), so it is absolutely safe to connect a 2.5 inch drive to your desktop PC. Watch the Wikipedia article to read more about SATA. Though, I've met some drives that had non-standard SATA-connectors (on...
0
2
836
2011-02-20T12:34:19.747
infrastructure
serverfault.com
745,207
postfix virtual_mailbox_maps causes Relay Access Denied
I have postfix 3.0.3 running with PostgreSQL 9.4. My main.cf is here: [CODE] please notice, that [CODE] is set to [CODE] . Once I set it as [CODE] , I keep getting this error message [CODE] However, whenever I run [CODE] , I in any case get [CODE] [CODE] looks like this: [CODE] What am I doing wrong?
Can you try [CODE] as postfix should send the domain name instead of email address when querying [CODE] . Also instead of performing [CODE] twice in every query,you can create a column for domain name and index the column for better performance. Hope this helps.
1
2
254
2015-12-25T02:11:51.720
database_errors
serverfault.com
305,658
Exceptions - "what happened" vs "what to do"
We use exceptions to let the consumer of the code handle unexpected behaviour in a useful way. Usually exceptions are built around "what happened" scenario - like [CODE] (we were unable to find file you specified) or [CODE] (we can divide by [CODE] ). What if there is a need to specify the expected behaviour of the con...
But imagine that is some specific component we do know the best course of actions for a caller. This almost always fails for at least one of your callers, for which this behaviour is incredibly irritating. Don't assume you know best. Tell your users what's happening, not what you assume they should do about it. In many...
22
49
2,305
2015-12-22T15:55:28.217
api_errors
softwareengineering.stackexchange.com
323,071
Resetting pst password on a system that is using Symantic Endpoint Protection
I work for a company that employs Symantec Endpoint Protection. I have a user that has forgotten the password to their pst file. I've tried running a few password reset programs but Symantec treats them as viruses and will not allow me to complete the task. Has anyone else had this problem?
You'll need admin rights depending on how Symantec is managed, but if you disable Symantec it should allow you to run whatever you want to run. Click HERE for a great post on how to disable most common AV/Security applications. I shouldn't have to note this, but I will anyway: Disabling Symantec is typically not a good...
-1
2
96
2011-10-19T21:51:42.570
infrastructure
serverfault.com
302,632
Lion 10.7 Software Update Server can not connect to Apple
Having an odd issue ever since updating my server from SL to Lion. Software Update Server can not connect to apple to retreive new updates. Here is the extremely non informative log: Aug 17 17:10:34 Pro-Server.local swupd_syncd[1001] : Performing scheduled sync. Aug 17 17:10:34 Pro-Server.local swupd_syncd[1001] : Aug ...
just had this same problem. check to make sure that these two directories are there and have the right permissions: /etc/swupd/ drwxr-xr-x 11 _softwareupdate _softwareupdate 374 May 27 03:02 swupd /var/db/swupd/ drwxrwxr-x 3 _softwareupdate _softwareupdate 102 Mar 8 20:15 swupd My var/db/swupd wasn't there. after I rec...
2
0
954
2011-08-18T16:20:24.133
infrastructure
serverfault.com
344,163
Approach to perform a calculation over a large dataset and calculate mean of scores
I have a table/collection called scores and it has 3 relevant identifiers based on which calculation need to be done. sample [CODE] Everyday we get huge amount of data in this scores table which has 3 identifiers. On client side dashboard we are bound to show progression for company, zone and unit separately for past s...
Everyday we get huge amount of data in this scores table which has 3 identifiers. On client side dashboard we are bound to show progression for company, zone and unit separately for past six weeks. The plan is to create a system which at midnight will take scores from records for past 42 days from that time and calcula...
3
1
764
2017-03-15T08:53:04.137
api_errors
softwareengineering.stackexchange.com
131,268
SSL certificates work fine from command line but fails in script
I'm trying to setup email notifications for my continuous integration server. I have a script which uses nail to send the email when the build works: [CODE] When I run this from the command line with [CODE] , it works and I receive the email. However, when I start the continuous integration server which executes the sa...
Problems where something runs from the shell but won't from [CODE] or [CODE] or [CODE] or some other environment are usually caused by differences in the environment. Use absolute paths to executables and data files Explicitly set your [CODE] variable to make sure it includes what you need Explicitly set other environm...
0
1
807
2010-04-10T16:52:33.670
api_errors
serverfault.com
12,441
How to reduce time R takes for model building
I am building machine learning algorithms in my laptop. It has i3 procesor and 16 GB RAM. Despite using multiple cores(3 out of 4), it takes 2 days to run all the techniques that i am trying to run an obviously data is huge (close to 1.3 million rows and 20 variables). Is there any way to reduce this time required for ...
Depends on the models you are trying to run. Your data isn't that big. For example using a support vector model from the [CODE] package, you run into problems. Not every model is fast or has a fast implementation. Without more information on what you are doing it is difficult to say what causes the bottleneck. But if y...
0
1
443
2016-06-27T12:07:08.097
spark_errors
datascience.stackexchange.com
171,265
Tomcat SSL integration issue
I've bought a wildcard ssl certificate from a company, i sent them the csr file and they send me two certificate files namely CA.txt and com_sertificate. I've searched on web and find some tuts about tomcat and ssl but i can not accomplish with these two files. All that tuts mention about different files that i don't h...
They probably gave you their certificates in x509 PEM format, which everything except Java uses. Java uses PKCS12. Most certificate vendors have a page of common openssl commands, including how to convert between PEM & PKCS12; here's one . com_certificate is almost certainly your site certificate and CA.txt ... well, h...
0
2
387
2010-08-17T05:52:25.050
api_errors
serverfault.com
39,285
SQL Server Instancing: Should I use multiple instances or databases?
I have a reasonable server connected to a SAN which will be running SQL servers for multiples of the same application. There are no security issues with one application being able to read anothers database. We are unfortunately in 32 bit windows as well. I'm of the opinion that it would be better to use one instance on...
SQL Server 2000 and 2005 Workgroup and Standard (32 bit, I'm not sure about 64 bit) will only use a maximum of 2GB memory so having two instances would allow you to use the full 4GB. This would be true even if you're running 32 bit SQL Standard on x64 Windows, more so in fact since you'd want an instance per 2GB of mem...
1
3
9,095
2009-07-11T11:38:03.420
database_errors
serverfault.com
1,073,950
PHP-FPM Docker container behaves differently regarding engine (docker-compose vs Swarm)
one PHP-FPM container (7.2), member of classical LAPP stack, correctly exposes port 9000 when launched with [CODE] but nothing when started by Docker Swarm . Should I mention that container is running (see output below) and I can launch a TTY bash on it. So with [CODE] , web application is fully functionnal, but with S...
How did you make the build? Swarm is unlike docker-compose: " a deploy is a deploy " - and NOT a build ! (you need to build the images before you deploy them - and the (probably available) compose ones' might not meet the requirements...) With: [CODE] you are deploying an existing image into the selected swarm (it like...
0
0
840
2021-08-09T10:14:37.083
pipeline_ops
serverfault.com
606,478
Asterisk inbound trunk unauthorised without allowguest=yes
I am trying to configure an Asterisk (Elastix) box to receive SIP calls from a provider without requiring [CODE] to be enabled in [CODE] . Basically the SIP trunk provider uses multiple IPs to send the calls to our PBX and so without the matching [CODE] field, the call is dropped. However, by enabling [CODE] , anyone c...
Correct solution - ask provider all ips and add all as trunk1-trunk2...trunkX
3
1
2,575
2014-06-19T15:18:41.907
infrastructure
serverfault.com
115,075
Are expdp/impdp commands appropriate for daily schema sync?
I've done following comands: [CODE] It runs great, without errors. But when I use command: [CODE] It gave me bunch of errors that tables, sequences and other stuff already exist. So I have a question, could I use such an approach or it's wrong and I should use something else?
Check the documentation for more information or type [CODE] . There is a parameter ( TABLE_EXISTS_ACTION ) that defines if you want to overwrite existing objects or if you want to append. TABLE_EXISTS_ACTION Action to take if imported object already exists. Valid keywords are: APPEND, REPLACE, [SKIP] and TRUNCATE.
1
0
2,324
2015-09-15T13:10:27.713
warehouse_errors
dba.stackexchange.com
233,231
Interview Question:- I have one table with following data in sql server
[CODE] The desired output should look like this:- [CODE]
You need a rolling string aggregate function. [CODE] doesn't allow [CODE] clause, so a solution is to use a correlated subquery with [CODE] to generate the list. [CODE] Result: [CODE]
0
0
107
2019-03-27T09:31:10.420
database_errors
dba.stackexchange.com
618,960
Nginx rewrite rule not working
Can someone help me convert this rule? I have over 50 rules, but I can not make this rule work: [CODE]
nginx always requires the leading slash in the URI part of the rewrite, while Apache doesn't want it. Without seeing the complete configuration, this is just a guess what the problem might be. Try this: [CODE]
-2
3
651
2014-08-08T10:53:07.230
infrastructure
serverfault.com
1,095,488
Nginx server blocks not redirecting
I am working on a project at https://modernamedia.no/ and I am trying to do a multiple of things redirect all calls to www.modernamedia.no to https://modernamedia.no/ proxypass localhost:5000 to api.modernamedia.no redirect all http calls to https. the last one is working. however, the first two are not working. You ca...
You should make sure Certbot does not touch your nginx configuration files. It uses a problematic and fragile approach to configure things. Use the following approach instead: [CODE]
0
1
600
2022-03-06T21:31:32.257
api_errors
serverfault.com
236,819
Storing Social Security Number as DECIMAL(10,9) for Columnstore
I am working on a VERY large database (10B + rows) that performs matching on SSN and BirthDate to try and find duplicate records. The table is using columnstore compression (SQL SERVER 2016) and it occurred to me that i could save the SSN as a DECIMAL(10,9) to preserve the leading zeros and not take the performance hit...
I wouldn't use a DECIMAL to store SSNs with rowstore or columnstore tables. The INT data type has the following advantages over DECIMAL: It's generally faster for SQL Server to work with It allows bitmap filters to be pushed down to the storage engine If the column doesn't allow NULLs then it allows for a "perfect hash...
2
6
819
2019-04-26T20:29:42.583
database_errors
dba.stackexchange.com
893,961
Trouble with 802.11ac from a WLE900VX card (QCA9880 ath10k) via hostapd
I think this is where I am going wrong-- But I am not sure if it really is the problem and even if it is, I am not sure what to do about it. nl80211: Could not configure driver mode nl80211: deinit ifname=wlp6s0 disabled_11b_rates=0 nl80211: Remove monitor interface: refcount=0 nl80211: Remove beacon (ifindex=8) netlin...
For the next poor sap that happens along... This is my hostapd.conf file for the XB140 reference board based Compex WLE900VX QCA9880 card: [CODE] Also, if you are stuck at 54Mbps-- 802.11g speeds --I needed to install the wpa_supplicant package . My Samsung Note8 connects at 650Mbps with this configuration. I have not ...
0
0
3,521
2018-01-24T21:14:05.903
infrastructure
serverfault.com
293,494
how to add a static route to external gateway(external IP)?
I am having an issue with setting up a static route in Fedora. I need to route some traffic to an external gateway(105.101.67.70 - public IP address of a VPN router). Any request sent to 125.106.67.70 needs to be routed to VPN router gateway 105.101.67.70 and the router will connect it to a VPN network. Fedore server, ...
This almost certainly means that you don't have a route for [CODE] (i.e. 105.101.67.70). Given lack of detail, I am going to assume you don't have anything unusual going on. Basically your route statement is never going to work given the addresses you have posted currently. To add a route the gateway must be on a netwo...
0
2
7,248
2011-07-24T06:59:24.470
infrastructure
serverfault.com
340,666
What is the core philosophy of functional programming?
I come from an object oriented programming background, therefore, I am pretty curious about the core philosophy of functional programming? Why does it exist at the first place, and what types problems it is trying to solve?
Introduction Functional programming is a broad tent and so I don't think there is a single answer here. Rather, functional programming is a confluence of several ways of thinking about what a program is each with separate historical roots. I'll talk briefly about three, with an acknowledgment that the boundaries can ge...
3
9
1,018
2017-01-21T19:17:52.637
api_errors
softwareengineering.stackexchange.com
36,052
If the bug is 5+ years old, then is it a feature?
Allow me to add details: I work at an institutional place with many coders, testers, QA analysts, product owners, etc. and here is something that bugs me: We have been able to sell crappy (albeit pretty functional) software for over a decade. It has many features and the product is competitive, but there are a some ser...
I feel your pain. But fixing something just because it is a bug is not a good enough reason. You have to make sure your fix will not break any other code (not just yours but your clients code that uses your code). If you push out a fix and this breaks every customers system you will have some very disgruntled customers...
18
14
698
2011-01-12T17:14:38.547
api_errors
softwareengineering.stackexchange.com
90,739
Lost Interest in Programming
I am a computer science student currently in my 2nd year of bachelors. My problem is pretty straight forward yet still so far has not been self-resolvable. It is simply is that I am tired of programming. I don't know why but it just happened. When I started my first course in c++ I was very excited. So excited that I f...
I think you need to see some results from programming. In other words, go and make a simple project that you or others would use. The excitement from actually developping an application from start to finish might rekindle your interest in programming. Something else you could try is to explore a different domain of pro...
22
42
38,959
2011-07-07T18:23:56.423
api_errors
softwareengineering.stackexchange.com
231,618
What does Quick Initialized RAID status mean?
We have re-created RAID1 on our IBM X3400, with the 8K-l RAID card, and now the RAID1 is in status of Quick Initialized. I've read online that the performance of this status is might not be optimal, and some actions required to bring the operation paramters to optimal. Is this correct, and would the synchronize action ...
The quick initialization process initializes the first 1024 sectors of the logical drive. After initializing the array should go to the status Optimal. There is no need to synchronize after you create the array.
2
1
11,636
2011-02-05T16:50:31.997
infrastructure
serverfault.com
234,944
Database not going into single_user mode
I have a corrupt database with wrong checksum error. When I try to put database into single_user mode to repair it gives following error. I am using following sql command from management studio to put it on single_user mode. [CODE] But it just returns with following Msg 5069, Level 16, State 1, Line 1 ALTER DATABASE st...
From Comments As this error is related to I/O and most likely this has to do with server hardware where your database is hosted. Please try putting database into emergency mode before setting into single user mode with below command: [CODE] Once database is set into emergency mode, try to put database into single user ...
0
1
2,810
2019-04-16T16:16:35.283
data_quality
dba.stackexchange.com
89,437
Using dynamic database name for DML in trigger
I am using SQL Server 2008 in my application. Here I need to do database operations between multiple databases. The complexity is database names are user defined except one masster database. I can have information about secondary database name in my master database, from which I have to fire DML statements. I am using ...
What a brittle solution. Does the return value of [CODE] really change that often? Where does its value come from? Would be much easier to hard-code the database in the trigger, and change the trigger when that changes, rather than change the function and try to "save work" by not having to update the trigger. Your cur...
0
1
978
2015-01-16T05:32:32.373
hadoop_errors
dba.stackexchange.com
254,373
Powershell Active Directory Cmdlets: Quest or Microsoft
Is there any reason to choose Quest's Active Directory cmdlets over Microsoft's at this point? I haven't come across anything that isn't doable with Microsoft's ActiveDirectory module yet, but I'm genuinely curious why Quest's are hanging around. I realize they were quicker on the draw in bringing something bit more us...
Simply; inertia. Two things: The effect that you're seeing. People do a google search on how to do something, and the Quest cmdlets are used. They download and work with them, not knowing there's an alternative. Smaller install base of Windows 2008 R2 (a domain controller must be on R2 for AD Web Services to use the Mi...
1
3
489
2011-03-31T21:54:59.717
infrastructure
serverfault.com
317,743
ubuntu server 9.04 nics not visible only lo loopback under ifconfig
hi i have a problem with a 9.04 server deploy, i have two nics and both are now not visible after the server had been off for a month. the client had turned it off as they were moving and now when we boot up the nics are not seen under an ifconfig command, only the lo is listed. i will have to check on monday to see wh...
After moving equipment one thing that you should check that your card is properly seated. ifconfig -a showed eth2 eth3 and eth4, it seems something happend to eth0 and eth1, when i did a dhclient on eth3 it came up. On a Debian/Ubuntu system the interface naming is controlled by [CODE] . Feel free to go in and edit tha...
3
3
1,169
2011-10-02T18:33:09.813
infrastructure
serverfault.com
514,900
Apache VirtualHost: Different IP(Different NIC), Same Port won't work
I want apache to serve differnt cert to a different network. [CODE] When I connect via other internet(connect X.5): WAN Cert used [OK] When I connect from network(connect Y.5): WAN Cert used [WHY?] The question is: Why Network cert won't used when I connect from network? And how do I fix this? (Of course I connect to 1...
Do you by any chance have the [CODE] in your configuration? In this case apache will use the first ssl cert to establish the connection. See here for more details
0
1
79
2013-06-11T10:42:06.927
infrastructure
serverfault.com
275,074
How to organize predefined queries with Entity Framework?
I have some queries that I use all the time (like get rows only of some specific type, or count something etc.). I'd like to organize them somehow (better then I currently do). Currently I have them all in a [CODE] called [CODE] which I don't really like because it's like a I-don't-know-how-to-name-this-class . Is ther...
Extending the ORM Context is a good approach, but in a system with lots of predefined queries, I use to take another approach, using Extensions methods in order to group the related queries. Let me give an example: The usage is kept simple like this: [CODE] I create a file [CODE] : [CODE] PS: I don't know if this patte...
6
3
1,809
2015-03-03T13:42:01.267
api_errors
softwareengineering.stackexchange.com
8,360
Auto create new directory for new user on Windows File Server
On our network we give each user a network share at \\fileserver\users\username . These are intentionally NOT set up as their home directory , and are instead mapped by a login script every time the user logs on. For new users, this drive mapping fails, since the folder does not exist yet. Is there a way that when we c...
Set the permissions of \\fileserver\users as described in the Microsoft TechNet article entitled "Security Considerations when Configuring Folder Redirection" http://technet.microsoft.com/en-us/library/cc775853(WS.10).aspx . The situation you are describing is exactly the situation in which folder redirection operates....
1
3
15,876
2009-05-14T20:20:26.510
infrastructure
serverfault.com
414,128
What does a DHCP-client consider to be the "best" answer?
We have training rooms where normally Windows XP is installed (via PXE). The "normal" DNS/DHCP infrastructure are Windows-Servers. The training room has its own VLAN (different from the Windows servers), so there is most propably an IP helper for DHCP requests active on the Cisco router where all PCs from that room are...
It is vendor, even firmware specific how a client reacts to multiple DHCP answers. Variants I have seen over the years are: 1) Accept the first regardless whether it is an ACK or NACK. 2) Take the first ACK, ignore NACK's completely. 3) Take the last ACK received within a set time-interval (usually 5-10 seconds). Examp...
13
4
2,293
2012-08-03T20:23:26.503
infrastructure
serverfault.com
190,350
Restore PROD database to QA with AlwaysOn
I want to create a script/job that will run weekly to backup my PROD database, and restore it to my QA server, then run a custom maintenance script against it to cleanup and prepare the data to be analysed. The problem is that my QA server is running AlwaysOn Availability Group. I have access to Powershell, "DBATools.i...
what are my options to get rid of the old secondary target database? You can create linked server and use [CODE] . This is what I am doing in my current scripts when I have to refresh AG env in Dev / QA from PROD. You can use powershell, etc .. but [CODE] just works fine for my needs. anyone has a super hot way to get ...
1
2
1,074
2017-11-07T20:41:57.800
database_errors
dba.stackexchange.com
679,230
How to use two different ISP on same LAN with one Ethernet switch?
Sorry if same question is asked on Stackoverflow. I searched and tried some configuration but are not working in my case. I have a LAN with 6 machines which are on same network (each other can be accessed using name and IP Address). I was using BSNL net connection till now. Now I have bought AIRTEL 4G connection. I don...
Connect the Airtel to the switch first. Then configure the Airtel with a free IP address on the same subnet as the other hosts and then change the default router on the three desired hosts which need to connect through the Airtel router. If you use DHCP on the LAN, make sure you have DHCP configured (disabled) correctl...
1
3
5,544
2015-03-30T08:44:29.873
infrastructure
serverfault.com
315,556
Warnings in a REST API as not critical errors
I have a REST API that for some of entpoinds like DELETE, POST or PUT I have some validation rules that can return an error. Now I need a new type of an error like a non-critical error, that it should fail in a normal way, but should go for the action if there is a "supress warnings" flags send. Such an user can be ask...
There are no warning result codes in http, you either return a success (200) or an error (400, 500). The only thing I know of that could be analogous to what you want is something like code 401 'unauthorised' - which is an outright failure, but causes most clients to automatically re-attempt connection with credentials...
11
5
7,758
2016-04-12T21:52:34.867
data_quality
softwareengineering.stackexchange.com
484,872
DRBD LVM - backed vs. physical & LVM filter
We're experimenting with DRBD/pacemaker on top of an existing Debian 6 Encrypted RAID1 setup. We have one comparatively general and one comparatively specific question: 1) DRBD - backed vs. physical volume (general design option question) We want to run a number of virtual servers in our DRBD/pacemaker setup. Having lo...
If I understand your requirements correctly, this is what I would be doing: Create a single DRBD device mark it as a PV for LVM. Create Pacemaker resources for the DRBD volume and each of the LVM logical volumes, with the logical volumes depending on the DRBD volume. Your pv filter looks correct. Have you verified that...
4
1
2,890
2013-03-05T15:07:28.927
infrastructure
serverfault.com
188,152
Do I have to include the license of a third party library imported as a DLL?
I have code using a third party library, QrCode.Net, in the form of a [CODE] file. The library is licensed under the MIT License . Do I have to include the license in my project if I did not use or modify the source code? Full license text: The MIT License (MIT) Copyright (c) 2011 George Mamaladze Permission is hereby ...
If you distribute the QrCode.Net DLL as part of your project, then yes, you have to distribute the licence text along with it. If you use the QrCode.Net DLL, but you don't distribute it (instead, you tell your users to get it from somewhere else, then you don't have to include the MIT licence in your project, as you ar...
3
6
3,441
2013-02-23T13:47:37.783
api_errors
softwareengineering.stackexchange.com
185,748
Will RADIUS allow me to have authentication from an SBS domain in a 2003 domain?
I'm no RADIUS expert. But my understanding is that RADIUS can use Active Directory as a 'realm' to authenticate. This got me thinking - We have 3 separate clients in one building, and we manage the infrastructure. It would be sweet if we could have one entrance point back into the network for VPN access to all domains....
I setup RADIUS (IAS 2003) to bridge 2 domains in the past during a migration, so our users could still roam from one location to another with their laptops and still authenticate via wifi back to their respective home domain. You can do some cool stuff. You'll need some way for the clients to send which realm they are ...
0
1
219
2010-09-29T10:26:13.550
api_errors
serverfault.com
65,189
SSAS tabular browse Excel relationships not working
I'm currently building an education data warehouse. I have three factless fact tables for distinct set of grades due to the fact I have no measures (I'm not aggregating anything), the grades are completely unrelated to each other hence why they're in different tables. I'm only slicing student dimension by grade fact ta...
I think i've found the problem. SSAS doesn't seem to relate data between tables if there are no measures defined. I added a simple measure like grade count and voila i have my data relationship.
1
1
2,918
2014-05-15T13:02:46.303
warehouse_errors
dba.stackexchange.com
644,604
Squid HTTPS Tunnelling using CONNECT very slow
I use squid on my network to cache content. I launch chrome with a command line switch that tells it to use the proxy. For the most part this works great as squid caches a large amount of content and with a limited number of users it performs fine. when I visit a website that is HTTPS using chrome, the first page loads...
I know it is a old question but i had the same problem and solved using this in squid.conf dns_v4_first on Regards
13
13
22,499
2014-11-15T15:28:40.470
api_errors
serverfault.com
163,917
SELECT COUNT(*) returns no data SQL Server 2012
I have a query, that as far as I know has failed exactly one time. It's a simple select count(*) from one table, no joins. But at least this once, executing that query resulted in no data read from SqlDataReader. Not even null, just nothing. First call to Read returns false. No exception was raised. Has any one ever he...
Is there a class of error that will thrown an exception out of the query, but not raise it to the application when executing a command or reading from the resulting SqlDataReader? If the query errs in the scope of T-SQL structured error handling, the empty or partial result set is returned to the client followed by the...
2
4
1,553
2017-02-10T18:39:31.243
data_quality
dba.stackexchange.com
524,404
Why does DRBD infrastructure resyncs whole partition several times a day
I have a Primary/Secondary 2 nodes DRBD setting as shown [CODE] I moved to Protocol B as nodes are in different networks and B it is enough for my needs. And rate limited to 4Mb as total bandwith between servers is 12Mb (low, I know, but writing is really really few bytes a day). Trouble is, probably due to a nightly p...
Ooook I will answer myself: After no few testing and work, I can confirm :: Partitions/Disks involved in a DRBD replication brick, must be absolutely identical in their geometry. That's all ! So If you use Virtual environment, the most reliable thing to do is just clone right the same file used for the virtual volume. ...
0
0
151
2013-07-18T13:54:59.320
database_errors
serverfault.com
38,920
Does batch normalization mean that sigmoids work better than ReLUs?
Batch normalization and ReLUs are both solutions to the vanishing gradient problem. If we're using batch normalization, should we then use sigmoids? Or are there features of ReLUs that make them worthwhile even when using batchnorm? I suppose that the normalization done in batchnorm will send zero activations negative....
See, the basic concept behind the batch-normalization is that (excerpt from a Medium article)- We normalize our input layer by adjusting and scaling the activations. For example, when we have features from 0 to 1 and some from 1 to 1000, we should normalize them to speed up learning. If the input layer is benefiting fr...
11
3
4,291
2018-09-28T16:39:25.563
data_quality
datascience.stackexchange.com
950,083
Messed the SSL certificate files of my VM
I am trying to create a new SSL certificate with [CODE] . I am getting this output error : [CODE] How can I fix this ?
The [CODE] file (which should be a symlink to [CODE] ) is missing, so openssl can't read its config. I'm not sure how you managed to delete it, but I think the most surefire solution is to reinstall the [CODE] package with the following command (I'm assuming you're using a Debian-based system): [CODE]
0
1
1,885
2019-01-21T16:24:14.137
api_errors
serverfault.com
270,151
Why does TempDB spill happen even though statistics are correct?
I read a great article published by Brent Ozar and came up with some questions related to memory grant. I am unable to address my questions in the comment section of his article, so I thought to get any help from here. Question: How much data is spilled into disk? 400 MB or 60 MB(7643KB*8)? in the article he states: An...
As the tooltip shows, 7643 8KB pages are spilled = 59.71MB. The rest of the sort occurs within the allocated memory. The sort spills for two reasons: The sort is parallel. The accurate memory estimate is split evenly among the sort threads, and cannot be dynamically reallocated between threads at runtime. If the rows a...
1
8
398
2020-06-30T19:37:59.977
database_errors
dba.stackexchange.com
271,789
Tracking down high Windows Server CPU utilization
I've got a Windows 2003 server (64-bit) running as a VM on a remote hosting facility. (I'm just leasing this one particular virtual instance, so I don't know what sort of underlying hardware it's running on, other than that it's presenting itself to the VM as having 8 CPU's available.) The problem is that starting abou...
I see two possible things you should look into. First, whenever I hear someone talk about high CPU load, without being able to identify any offending processes, IO contention is my first guess. When there is high IO contention, processes stack up in uninterruptible sleep state, filling the OS's process scheduler with t...
1
1
3,591
2011-05-20T03:57:39.450
infrastructure
serverfault.com
638,520
Why is it so important to backup your transaction log?
We're currently implementing a backup solution for a client and their ERP solution uses SQL Server. The ERP solution was set up by a different company. And they are telling me that it is super important to back up and truncate the transaction log. I've been reading up a bit on this transaction log and I don't get why t...
You only have to do this if your DB Recovery Mode is set to "full". If it is set to "simple" you don't have to make a backup of the transaction log. But watch out for the difference between these two options! First of all: If you want to be able to restore the DB to a specific point of time you have to use the "full" m...
14
12
15,357
2014-10-21T09:54:59.203
data_quality
serverfault.com
275,716
difference between a VPS and linux-vserver
So i'd like to know what is more exactly a Vserver and if in terms of performance can be compared with a VPS
It's an apples-to-flamethrowers comparison. A VPS is a pricing/service delivery model. A VServer is a particular way of delivering a VPS; other options include paravirtualization (like Xen) or whole-system virtualization. Indeed, the linux-vserver project even refers to itself as a method of creating a VPS .
-2
4
430
2011-05-31T23:04:39.363
infrastructure
serverfault.com
364,615
Selective Routing Between Subnets
I have a configuration with two subnets. For this example I will call them 192.168.1.128/26 (128) and 192.168.1.64/26 (64). The 64 subnet contains all the internal devices that guests should not be able to access. The 128 subnet is basically the wireless broadcast subnet. My problem is that I have two kinds of users th...
Generally you block or permit access using firewall rules (packet filtering). If you are using the stock firmware of a linksys, I am not sure if this is possible, if you are using dd-wrt or something, then you can do it with iptables rules. Since this is your guest wireless network, it would probably be very unwise to ...
2
3
221
2012-02-28T19:05:16.287
infrastructure
serverfault.com
164,168
Optimizing hash lookup & memory performance in Go
As an exercise, I'm implementing HashLife in Go. In brief, HashLife works by memoizing nodes in a quadtree so that once a given node's value in the future has been calculated, it can just be looked up instead of being re-calculated. So eg. if you have a node at the 8x8 level, you remember it by its four children (each ...
What I'm trying to figure out is if the "nc := NodeChildren..." line causes a >memory allocation each time the function is called? Yeah. Everytime you call the FindNode() function, nc := will be assigned to a new struct that lives in a new block of memory than the struct created from the previous function call. How thi...
6
2
774
2012-09-08T13:35:02.317
api_errors
softwareengineering.stackexchange.com
870,473
macOS port forwarding for remote ssh login
I want to do remote ssh logins from outside my network to a server (macOS Sierra) on my LAN, using a port other than 22. ( I hear that it improves security to use a port other than the default. Is this true?) I have successfully configured my router ( Cisco RV325 , which has a fixed WAN IP address of, say, 99.99.99.99)...
As @yoonix suggested, you can accomplish the desired goal entirely in the router, without tinkering with the server (macOS or otherwise). The summary questions #1 and #2 (and even the title of the post) are perhaps a bit misleading. As to summary question #4, see the comment by @Gordon Davisson. To accomplish the goal,...
0
0
4,251
2017-08-25T15:40:18.073
infrastructure
serverfault.com
343,573
In Scrum / Agile, how to deliver a validation / rules engine incrementally?
Let's say you have a validation engine that needs to cover 100 rules to be useful. Let's also assume the team can only deliver about 10 rules per iteration. How would you go about making a "potentially releasable product increment" by the end of the first iteration, when the rules engine would still be missing 90 of th...
How would you go about making a "potentially releasable product increment" by the end of the first iteration, when the rules engine would still be missing 90 of the core rules? You release the first ten in the first sprint. Just because it's "potentially releasable" doesn't mean it has to be usable by the customer. It ...
8
7
672
2017-03-06T15:57:30.167
data_quality
softwareengineering.stackexchange.com
153,521
Insert statement sometimes runs slow and sometimes fast SQL Server 2014
we have an SSIS package that starts around mid night and does bunch of things. one of the insert statement in that package is causing slowness sometimes, runs for 90 minutes and sometimes runs in 42 or 20 minutes and during weekends it runs in 7 minutes. I have checked for any resource contention, there is nothing goin...
You may have a disk bottleneck. Run a Perfmon.exe recording specifically you want the individual "average disk read wait queue" and "average disk write wait queue" of all drives. Perfmon is part of windows functionality and is on all Windows PC / servers / etc. You will want a recording from a weekday and a recording f...
2
1
2,348
2016-10-27T18:58:07.080
database_errors
dba.stackexchange.com
144,787
What kind of problems does MapReduce solve?
I have been reading about MapReduce for a while -- but what I can't understand is how someone would make a decision to use (or not use) MapReduce. I mean, what are the problem patterns that signal that MapReduce could be used.
It's basically problems that are huge, but not hard. Travelling salesman depends crucially on the distance between any given pair of cities, so while it can be broken down into many parts, the partial results cannot be recombined so that the globally optimal solution emerges (well, probably not; if you know a way, plea...
63
49
32,318
2012-04-17T06:09:30.153
hadoop_errors
softwareengineering.stackexchange.com
1,050,057
Error Phpmyadmin
i have this problem after updating ubuntu. It asked me if I wanted to update the configuration that it already had, and I said no. phpmyadmin was working correctly before the upgrade. If anyone knows the error, and how to solve it, I would appreciate it. Version of php 7.3 on ubuntu 18.04. Thank you very much. Error: [...
I found a fix (also Ubuntu 18.04), I downgraded the package [CODE] back to 1.6.0-2. It appears the version that was upgraded no longer includes all the same files, including the [CODE] file that is causing the issue here.
2
3
736
2021-01-16T04:18:00.283
infrastructure
serverfault.com
439,598
Use Cases in Clean Architecture, in Requirements Specifications from Software Engineering and Use Case Diagrams in UML
Well, I've been studying software architecture a lot, Clean Architecture in specific and I came across some multi meanings terms and " Use Case " is one of them. I'd read in some places that we don't have a defined connection with use cases from CA and use cases from requirements specifications in software engineering ...
In short In the general sense, use-cases are meant to focus on user objectives and answer the question: "why would a user use this system? And for what purpose?". They therefore focus on user objectives and business needs. Clean architecture used this term to refer to elementary business transactions and business logic...
5
6
1,330
2022-07-01T14:55:36.727
api_errors
softwareengineering.stackexchange.com
302,409
exitStateAction not working as expected on MySQL INNODB Cluster
I'm in the process of setting up and testing an [CODE] . So far I have three nodes running 8.0.27 and two routers all working fine. I now want to test what happens if the network connection suddenly dissapears on one. I have all three nodes set up with: [CODE] So when I remove the network connection from node 3 using: ...
To answer my own question, it was because of the [CODE] value. Basically, assuming a value of three, it does: Network Fails 5 seconds passes a “suspicion” that a problem has occurred happens on all nodes 5 seconds passes to see if the node re-appears ( [CODE] ) Node is expelled from the cluster try and connect (1) wait...
0
0
133
2021-11-10T12:38:11.250
database_errors
dba.stackexchange.com
520,006
Concurrent users with Quickbooks?
I work in a company with 3 people who regularly use the same Quickbooks file. However, they work remotely on different networks. I need to implement a solution that allows all three of us to access Quickbooks at the same time remotely (and each make changes at the same time). We have a spare desktop PC that can be util...
One of the biggest problems you will have with QuickBooks is that the connection to the "QuickBooks Server" or the computer with the company file needs to be a low latency, minimum 40mbps connection. To give you a for instance. We have a dedicated fiber connection from one location to another. One houses the QuickBooks...
0
5
2,274
2013-07-01T19:33:26.847
infrastructure
serverfault.com
78,430
Encrypt backups with GPG to multiple tapes
Currently, I use tar to write my backups (ntbackup files) to a tape drive fed by an autoloader. Ex: [CODE] (/root/advancetape just has the logic to advance to the next tape if there is one available or notify to swap the tapes out) I was recently handed the requirement to encrypt our tape backups. I can easily encrypt ...
I'm using this script: [CODE] To adapt it for your needs, here are the main points: [CODE] reads from the current directory and outputs to [CODE] . This way tar doesn't deal with changing tapes or encryption. [CODE] has compression switched off as this slows the process considerably (100MB/sec+ down to 5MB/sec) [CODE] ...
2
3
1,212
2009-10-26T19:08:09.033
database_errors
serverfault.com
243,307
Syntax of passing lambda
Right now, I'm working on refactoring a program that calls its parts by polling to a more event-driven structure. I've created sched and task classes with the sced to become a base class of the current main loop. The tasks will be created for each meter so they can be called off of that instead of polling. Each of the ...
Your main problem appears to be that your design makes your classes know too much about each other, which will give you headaches with cyclic dependencies and inextricable ownership issues – especially since you're apparently using raw pointers a lot. Your [CODE] abstraction shouldn't know anything about [CODE] , or if...
0
5
4,311
2014-06-08T02:59:28.300
api_errors
softwareengineering.stackexchange.com
164,254
Redundant plans in cache because of missing type length
Today I realized that our sql server's plan cach is stuffed with hundreads and thousands of nearly identical Compiled Plans. The total number of plans is around 30.000 on a live system consuming around 4500 MB. Lookin at them there are thousands that are nearly same. Some samples: [CODE] The application uses sp_execute...
We ended changing the application code. It was not possible to avoid the dynamic character lengh in the resulting Sql statements to save the creation and storage for additional execution plans by configurations of sql server. So what we did was to read the schema of the source table from the dataset where the command b...
1
0
125
2017-02-14T10:20:54.723
api_errors
dba.stackexchange.com
889,408
Postfix/Dovecot ++ mail server. Can send mail but not receive mail
Some back story I have the 3 last days struggled hard to try to get a mail server up and run. After first trying to get it up on a server with blocked ports I decided yesterday after several reinstalls to transfer my server over to linode.com so I dont have the struggels with blocked ports. I finally have a mail server...
I managed to fix this by just chainging connection security from SSL/TLS to STARTTLS on dynu. Everything is working perfectly now!
0
0
567
2017-12-22T22:24:36.040
database_errors
serverfault.com
650,588
haproxy timing connection diagram
I'm trying to understand more about the Haproxy timings. Below is a snippet of the timings from the Haproxy manual: Tq: total time to get the client request (HTTP mode only)... Tw: total time spent in the queues waiting for a connection slot... Tc: total time to establish the TCP connection to the server.... Tr: server...
Nice picture :) timeout connect is on server side, it is the maximum time to run the TCP handshake http-request starts from the ACK on the client side until whole HTTP headers have been received Tq starts from the client Handshake TCP. Tr is until we receive the response Headers Baptiste
15
7
11,769
2014-12-10T16:28:48.330
infrastructure
serverfault.com
753,417
Apache 2 no authentication from ips
I have a deployment with apache 2.2.22 server behind varnish. What I would like to accomplish is that password protect a directory with htpasswd but make this accessible for certain users coming from ips without authentication. [CODE] What I do right now is this, it is a workaround but it is working. If the X-Forwarded...
[CODE] This works like a charm for me though I'm on 2.4.10 and don't have an older one to test.
2
0
322
2016-02-02T10:00:01.187
api_errors
serverfault.com
1,042,725
Cron jobs stopped working
I have an issue almost identical to what is here: Cron jobs not working anymore However I can't seem to find any memory-related problems as per the accepted answer, so I thought I should open a new question instead of answering on that one. Versions: [CODE] My hourly cron jobs were executing successfully for a few week...
Huh. So similarly to the other question I mentioned, it was a completely different application. A Tomcat 8.5 which is running on same server, I restarted it on both servers for a different reason, and cron jobs are running again... I'm stumped. Although I notice there is a bit more memory available: Server01: [CODE] Se...
0
0
621
2020-11-16T12:44:32.383
infrastructure
serverfault.com
1,152,141
nginx install wordpress on /blog under my domain address
I have a domain [CODE] , it serves my website using nginx webserver that points to a nodejs docker container 3000 port using [CODE] option under [CODE] location. [CODE] now I want to add a wordpress website under [CODE] so I added these configuration under server block. [CODE] Why I cannot access to fresh installed wor...
As you are probably aware, Wordpress uses a front controller architecture - i.e. the entry point for running any PHP script is $WORDPRESS_ROOT/index.php. You need to tell nginx to route the requests accordingly: [CODE] Note that requests for most static content would be handled by one of the first 2 values. There's no ...
0
0
40
2024-01-24T08:59:31.787
pipeline_ops
serverfault.com
128,572
Can iptables allow Squid to process a request, then redirect the response packets to another port?
I'm trying to test a fancy traffic analyzer app, which I have running on port 8890. My current plan is to let any HTTP request come into Squid, on port 3128, and let it process the request, and then just before it sends the response back, use iptables to redirect the response packets (leaving port 3128) to port 8890. I...
Turns out my original plan is not possible. But I can achieve the original intended goal, which is to allow any remote client to see this fancy traffic analyzer doing its job, by running OpenVPN on the host, and then using iptables in a typical way to capture packets for port 80 from one subnet (the tunneled one) and r...
1
0
1,190
2010-04-01T19:59:27.397
infrastructure
serverfault.com
648,307
Iptables doesn't open port 53
I have been trying different ways of opening the port but for some reason doesn't work. The last set of lines that I have used is as follows: [CODE] What am I doing wrong? I have a plesk installed on my server, so it should handled dns for me. I have accessed the components page within Plesk and I can see BIND Support ...
Assuming you're running a dns server (this is serverfault after all and 'opening the port' suggests that's what you're trying to do) then your dport and sport are round the wrong way. You want --dport 53 on the INPUT chain. You've also got the connection state tracking wrong in that case. If you only allow ESTABLISHED ...
-2
6
1,140
2014-12-01T18:05:10.177
infrastructure
serverfault.com
256,733
Best Practice for Oracle SGA and PGA Memory Components Size
I have a Server that has 128GB RAM. I have read here and there that the size of SGA + PGA can bee 80% of the RAM. I wonder if there is any best practice for this configuration that could allow Oracle Database to utilize hardware even better? There is also this consumption that this server will be used only to serve the...
What version of Oracle are you using? Are you actually setting values for the SGA components and/ or the PGA separately? If so, why? If you're using a recent version of Oracle, the starting point would normally be to set [CODE] and let Oracle size the various memory components automatically. Unless, of course, you have...
0
1
9,067
2020-01-05T12:02:21.857
database_errors
dba.stackexchange.com
56,906
Memory for SQL Server 2008 Web
I am going to upgrade the shared hosting of my web site to a VPS mainly because my database is getting too big, > 200mb. The basic VPS plan on CrystalTech where I am hosting has 512mb ram, disk space shouldn't be an issue. If I install SQL Server 2008 Web Edition (which I have license) on here do you think it will slow...
512 Megs of RAM isn't a lot any more. I'd recommend upgrading that to atleast 2 Gigs if you are going to run SQL Server on the server. The general rule with SQL Server is more RAM is always better (as long as the SQL Server can use that much RAM). SQL Server will very quickly take all the memory available in the machin...
3
4
442
2009-08-20T22:47:59.800
database_errors
serverfault.com
914,872
iis error code 0x80070520. A specified logon session does not exist
I have received that error when I'm trying to bind a certificate on a website. I have read some information about it. But they did not work for me. They said to set all permissions to the actual account (administrator) on [CODE] but, when I apply the permissions on the folder, I got a warning dialog saying that I do no...
I just fixed it. It was maybe a problem installing the certificate key. I installed Digicert . With it, from the certificates list, I select the certificate I was having problem with, then click on the [CODE] , it gave me an error like certificate key problem then I click repair. It fixed it.
1
0
6,777
2018-06-02T07:30:14.707
infrastructure
serverfault.com
331,346
Amazon Ec2 Slow Spin Up
I am attempting to use Amazon EC2 for a web site and noticed extremely slow spin up times. The first request to a server that has not been in use for awhile (couple minutes) can take 5 or so minutes to display a simple web page. After that first request the server responds very quickly. Is there a way to host a web app...
Amazon EC2 instances don't have a "spin-up" time. The culprit is likely your code or your server setup, not EC2. Reserved instances aren't any different than any other type of instance other than the payment details.
0
5
226
2011-09-06T17:36:51.653
infrastructure
serverfault.com
51,873
Scaling features separately?
I have some features which are in the thousands, which I scale to the max values of these. This solves the general scaling problems, as well as preserves an important absolute value relationship between these features that would otherwise be lost. But, I also have some other features which are naturally in [0,1] (since...
Yes, these features should not be scaled together. Normally ALL features are scaled individually, so grouped scaling is the exception not the norm. From the Wikipedia on feature scaling : Since the range of values of raw data varies widely, in some machine learning algorithms, objective functions will not work properly...
2
3
1,039
2019-05-13T09:14:17.667
data_quality
datascience.stackexchange.com
881,260
No dialect specified on mount error, where to set vers=1.0 with autofs/Fedora 26, Drobo FS
We are using Fedora 26 with the 4.13.9 kernel and NIS, and I'm aware of the issue where the default CIFS/Samba version is now 3.0 . However we use an older Drobo FS which their support says only works with SMB version 1.0. We do not put the Drobo in [CODE] as it will fail on boot some times so we use autofs/automount. ...
I found where to add the [CODE] option. On the primary NIS server we have a couple files for both Drobo units for each campus: [CODE] But the other thing that escaped me was I had to run [CODE] after making a change to the above file, and then the other workstations/servers in the NIS domain starting seeing the change....
1
1
9,816
2017-10-31T20:23:11.813
infrastructure
serverfault.com
543,754
How to use `rsync` to securely push to a mirror?
I am using [CODE] to push to a mirror. Setting the necessary file system permissions on the mirror requires [CODE] to run with root privileges on the mirror. However, the mirrored files are under a single hierarchy and I would like to allow [CODE] to access only that hierarchy and nothing else on the mirror. How would ...
You should be running [CODE] from your mirror with your original as the source. Depending on your use case you should either run it as a [CODE] (periodic) or an [CODE] command (push initiated pull, effectively a push).
0
2
1,214
2013-10-04T08:42:51.123
infrastructure
serverfault.com
308,201
Temporarily disable SELECT for one table (during an update)
We have a dedicated data mart SQL Server with several really big tables that are updated one partition at a time via parametrized SSIS loop. Quite often when clients try to read such a table during an update, they get in between ETL loop steps, so the whole table is locked until all the reads are finished, and that goe...
Sorry for the late entry, but I was testing out the direction that David Browne pointed out — and it works just as needed! A more intrusive method is to put the database in SINGLE USER mode killing all the other connections. Turns out that a database Restrict Access option has not only MULTI_USER and SINGLE_USER modes ...
2
1
644
2022-03-02T21:12:45.683
data_quality
dba.stackexchange.com