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
324,065
CTE with UNION ALL not working as expected
The query below seems simple and straightforward, yet it produces unexpected results. [CODE] I would expect it to execute CTE A once, and then carry those results into CTE B to produce results something like this: QUANTITY UNIT 4 METERS 400 CENTIMETERS 4000 MILLIMETERS 4000000 MICRONS 4000000000 NANOMETERS However, it ...
It's helpful to think of common table expressions more like expressions and less like (permanent) tables. Each time you reference a common table expression, it must re-express itself. Here's a simple example: [CODE] The query plan will look something like this, with a join to the base table variable for each join betwe...
1
7
3,358
2023-02-26T17:07:31.107
warehouse_errors
dba.stackexchange.com
544,108
Server time off by 1 hour on linux CentOS 6.3 using NTP
So i've setup NTP on my linux CentOS server but my server time is still off by 1 hour. Currently it is [CODE] however, on my linux machine it shows "2:53 AM EST" this is with NTP and using [CODE] and couple other servers trying to sync my server's time but all of this still have my server 1 hour behind the EST time. An...
Make sure that you have an up to date [CODE] package. If you rely on correct time display, then this is a critical package you should keep up to date, as it holds all of the worldwide rules for daylight saving time. Make sure you set the desired timezone in [CODE] in addition to setting up [CODE] . Make sure you aren't...
5
4
12,266
2013-10-06T07:55:25.497
infrastructure
serverfault.com
187,974
How bad would it be to obtain a lock on every object?
Imagine a hypothetical programming environment that is largely like Java or .NET, i.e. object-oriented, garbage-collected, etc., but with one small change: Every time you call a method on an object, a lock is obtained so that no two threads can execute methods on the same object at the same time. The lock is relinquish...
You would almost certainly ending up single threading everything, because any attempt to multithread would end up in deadlock! The GIL in Python avoids deadlocks by having a single lock on a single object, a deadlock is simply impossible if only one object is locked. As soon as you have locks on two or more objects a d...
-1
7
277
2013-02-22T02:07:10.273
database_errors
softwareengineering.stackexchange.com
439,456
DHCP logging with three Linksys E4200s
I have a small public WiFi network where I need to keep track of the number of monthly users. With a single Linksys E4200, I can use the firmware's DHCP client log. I dump the log and use a script to count the number of unique MAC addresses per day. With three E4200s I haven't been able to do this. One router is connec...
I would suggest moving the DHCP function to a centralized DHCP server.
0
2
180
2012-10-17T18:07:26.853
infrastructure
serverfault.com
5,091
Extract company names/job titles from free text
I have a complete Hadoop platform with HDFS , MR , Hive , PIG , Hbase , etc., Python , R , Java . All data sets have a large size. The data set A, describing the jobs of people working in a company, is composed of the following fields: Id Person: a unique alphanumeric identifier per person. Start Date: a date format is...
I think what you want is to extract company names from "Job Title". In natural language process, we call this kind of research as "Name Entity Recognition(NER)". You can try to use Stanford Named Entity Recognizer (NER)[ http://nlp.stanford.edu/software/CRF-NER.shtml] . Stanford NER performs very well on English conten...
0
3
5,068
2015-02-09T17:28:54.390
hadoop_errors
datascience.stackexchange.com
878,100
Google compute site can't be reached and telnet connection refused
I have tried couple of things that were pointed out but cannot figure why I am not able to see my server page running on google compute machine running Debian. I have installed nginx on the compute instance. The output for [CODE] is as below : [CODE] I have allowed both http and https in firewall Here is my iptables : ...
On Compute Engine Vitural Machines, there are two separate firewalls that might need to be properly maintained. First one is internal firewall of the VM (iptables, ...) which usually you won't need to modify its rules as the default configuration is good for most applications. The second firewall is Compute Engine VPC ...
3
1
3,948
2017-10-12T09:39:43.623
bi_errors
serverfault.com
336,759
Real World - Liskov Substitution Principle
Background: I am developing a messaging framework. This framework will allow: sending of messages over a service bus subscribing to queues on the message bus subscribing to topics on a message bus We are currently using RabbitMQ, but I know we will be moving to Microsoft Service Bus (on Premise) in the very near future...
Yes, it does break the LSP, because you are narrowing the scope of the sub-class by limiting the number of accepted values, you are strenghtening the pre-conditions. The parent specifies it accepts [CODE] but the child does not. Whether it's unavoidable is a thing for discussion. Could you maybe completely change your ...
13
11
1,436
2016-11-24T11:40:03.660
api_errors
softwareengineering.stackexchange.com
956,408
How to graceful restart centos 7 along with mysql?
My system is centos 7.4 with Mariadb 5.5. I always run [CODE] to restart server.As my database is [CODE] ,I am not sure whether [CODE] will cause database inconsistency,maybe lost data,even database corrupt. Is there a safe way(without any data lost) to restart server? Thanks in advance!
A [CODE] is an ordered shut down, so you won't have any problems at all as everything, including the MariaDB service is sent a stop signal and given a chance to stop before the OS restarts.
0
3
1,783
2019-03-02T02:01:31.487
data_quality
serverfault.com
132,822
Is there a reason to use internal DNS over 8.8.8.8?
I've inherited a LAN where there is really no name resolution being done for local resources... i.e. all users enter IP addresses manually to access printers and network shares. There are no LDAP servers or domains either....workstations simply connect to the network without authentication. DHCP is handled via a core s...
As that server is clearly not being stressed I'm inclined to think that there is no reason to change anything. The network you have described really doesn't need internal DNS and not having it may even slow (briefly?) down the hacking attempts by the students, as it will not be immediately obvious what machine does wha...
5
6
18,148
2010-04-15T18:13:29.480
api_errors
serverfault.com
43,272
Keras save model FailedPreconditionError
Model works and fits. After adding [CODE] . I am receiving [CODE] I tried [CODE] saves the model but after trying to load the model I get: [CODE] After saving model to json and then trying to load it i get [CODE] What should I do? Thanks for help!
The error was caused because after training the model I opened another tensorflow session to save predictions to dataset and put [CODE] after. So moving this line up, right after the model finished training solved the problem.
2
3
2,154
2018-12-29T07:19:29.213
data_quality
datascience.stackexchange.com
391,673
How to monitor DFSR backlog more efficiently than dfsrdiag
Is there a way to monitor the DFSR backlog in a manner more efficient than using [CODE] ? I wrote a program that just slurps in the backlog count via [CODE] with five minute intervals. Each time it runs, it takes quite a while (between 2 to 5 minutes) to get the resulting value. That means that in the end, it runs for ...
There is another way to get at the information, and that's through WMI. An enterprising soul has put together a PowerShell script that gathers this information: http://gallery.technet.microsoft.com/scriptcenter/dac62790-219d-4325-a57b-e79c2aa6b58e No indication of whether or not is faster than [CODE] , but I suspect it...
7
10
41,964
2012-05-23T01:55:33.470
api_errors
serverfault.com
382,140
How to understand and design functions with enumeration arguments that work in tandem with bitwise operators in C++ and Qt?
In the C++, there are 6 bitwise operators: [CODE] In Qt, I have seen [CODE] , [CODE] , and [CODE] used fairly often in functions: [CODE] The source for that function looks like this: [CODE] The source code for the enumeration looks like this: [CODE] In the book I learned Qt and C++ from, it does not adequately touch up...
Your understanding is pretty good. To answer your questions: Yes, it the function will receive 0x0000 0000 0000 0000 0000 1010 as an argument. The significance of the decimal number 10 in binary is that it is composed of 2 "on" bits in positions 1 and 3. There's little reason to think about the number in decimal. The n...
1
5
343
2018-11-28T06:30:59.553
api_errors
softwareengineering.stackexchange.com
374,100
When you add a new node to a cluster, what do you do to the default services?
Everytime I acquire a new server or reload an existing server (CentOS 6.X) I have to decide what services to leave running in chkconfig. It seems the datacenter staff aren't using a single edition of CentOS and sometimes the default services running are different. I'm always inclined to turn off every service I've neve...
Create a standard build using something like [CODE] . In the build, configure your [CODE] to enable only the services you absolutely need on every server. This creates a lowest common denominator. Then, use [CODE] to differentiate each server depending on their particular purpose.
1
0
51
2012-03-27T19:55:28.360
infrastructure
serverfault.com
305,780
How to enable the rewrite feature in nginx 1.0.5?
I recently installed nginx 1.0.5 with php fpm, php apc and postgres. I just want to play around with nginx and learn how to configure the basic stuff. For extended testing I decided to install PHPBB3 (went well) to see if PHP + Postgres access work. Now I want to learn how rewriting URLs works and already found out tha...
[CODE] module is built-in compiled. I suggest you turning on [CODE] to see what happens.
5
4
20,275
2011-08-28T14:00:13.580
infrastructure
serverfault.com
283,736
When developing an MVC framework, how should I be using Knockout.js?
I'm currently using the Laravel PHP MVC Framework to develop a web application; and it's going along quite nicely. I'm very comfortable with the expectations of the framework and how my application should be structured. This is not a problem. My problem is with the front end, UI/interaction side. I am using Knockout.js...
Very purpose of ViewModel is to covert and display the data in your model to match the view. Simply creating a ViewModel per view would be the best way to handle this.
0
1
406
2015-05-13T10:20:01.917
api_errors
softwareengineering.stackexchange.com
38,767
Coefficient of determination is close to 1 but the value of RMSE is large. What does it mean?
I am working with the [CODE] and trying to understand how well the data fits the model. I calculated both [CODE] and [CODE] . At a certain depth, [CODE] has the value equal to [CODE] but the value of RMSE is equal to [CODE] . I cannot understand this. The value of RMSE is quite large but the value of the coefficient of...
Compared to $R^2$ $RMSE$ is dependent on the variance of values. Even if $R^2$ is close to 1 but the standard deviation is high the value of $RMSE$ will also be high. $$RMSE=\sigma_{y_{true}}\sqrt{1-R^2}$$ where $\sigma$ is a standard deviation As can be seen from the formula $RMSE$ and $R^2$ have a strict mathematical...
2
2
85
2018-09-25T12:59:46.937
data_quality
datascience.stackexchange.com
879,308
Does using SPF for GSuite open my domain to abuse from GMail?
Google's recommendation for SPF for both GMail and GSuite is [CODE] My concern is that this is the same for both Google and GMail. If I am not mistaken, this means that I can send from the GSuite server as my personal domain and not be marked as spam. However, this also allows anyone with a GMail account to craft an em...
The SPF record in itself would mean that any mail sent from the Gmail/Gsuite servers is ok. However, I firmly believe that the Gmail/Gsuite services do not allow users to use any arbitrarily chosen from-addresses without prior ownership validation. Ie, it wouldn't be an SPF policy violation that would make such abuse v...
3
4
370
2017-10-19T17:02:01.477
infrastructure
serverfault.com
873,064
Public Key Authentication Windows Port of OpenSSH
I have been attempting to get Public Key Authentication working with the PowerShell port of OpenSSH onto a VM running Windows Server 2012 R2. I have faithfuly followed the installation instructions and have assured that my file permissions are correct for [CODE] . (Can't post link to the specific instructions in the Wi...
Wow. Just spent a couple of hours debugging this. So, turn logging for the ssh server: Edit [CODE] Ensure you have [CODE] Ensure you have [CODE] Restart the OpenSSH SSH Server in Services CMD: C:> [CODE] C:> [CODE] GUI: a quick way to get to Services is to press the [CODE] key combo, and enter [CODE] in the resulting R...
12
27
22,179
2017-09-11T15:13:08.920
api_errors
serverfault.com
60,334
how to force oracle 12c to create histograms
I installed TPC-H on Oracle 12c and my goal is to get histograms on column groups (if anyone knows for sure that this is not possible anyway, please prove and I'll stop testing...). So I used [CODE] for creating extended statistics. Afterwards I gathered statistics: [CODE] I also queried some stuff on the respective co...
A friend of mine told me today, that using the following command [CODE] where [CODE] is the automatically generated name of the column group, one can manually create a histogram for a given column / column group. A description can be found here .
1
1
1,263
2014-03-06T16:41:23.393
database_errors
dba.stackexchange.com
51,137
Installing MySQL 5.1 & PHP 5.2 on RHEL5.3
I would quite like to be running the latest production releases of PHP and MySQL on my production RHEL5.3 server. PHP so that I can use Zend Framework 1.9 which only supports PHP 5.2.4 or later. MySQL because they claim 5.1 is faster. I am a little concerned about installing from RPM's because of breaking dependencies ...
I do not see why "this sounds too good to be true". Considerinh PHP 5.2 was released quite a few years ago, the problem is that Redhat/CentOS are really late about that (yeah, I know, "stable" and all that, which means not updating anything except for security reasons) Happily, some people stepped up, and did the job t...
1
2
2,497
2009-08-05T09:58:49.707
database_errors
serverfault.com
20,208
HttpClient- Read all resources headers for all resources for entire page
I need to check ETag from the header response of requesting URL. I know that when request URL, then response will be html, css, js and images. My issue: How to read header for all these resources including the html when requesting URL? For [CODE] if you enter URL then it will give header and response only for html!! it...
When your web browser requests a URL, the response is just the page and anything embedded in the page. Your web browser parses the response, determines what other resources are referenced by the page, and sends additional requests to fetch those resources, one resource per request. You will have to do the same thing.
1
1
78
2016-06-18T20:09:13.317
data_quality
sqa.stackexchange.com
262,200
What queries are supported by MySQL but not PostgreSQL?
In process of migrating to PostgreSQL and am looking for a list of types of queries I must change (or some online query converter should one exist). What originally prompted this is my attempt to execute [CODE] which works with MySQL but not PostgreSQL (turns out I must use [CODE] instead of [CODE] and I expect the sam...
re 1) very often they can be replaced with other features (e.g. I have seen query variables being used to simulate window functions or pass the result from one query to another) re 2) Postgres has insert ... on conflict() re 3) Postgres has logical replication re 4) Postgres has GROUP BY ROLLUP re 5) That's true. Other...
1
2
698
2020-03-18T14:24:24.967
data_quality
dba.stackexchange.com
1,085,573
Centos 7 server with Nginx reports errors when updating packages
I have a CentOS 7 VM with Nginx installed. I use Webmin to administer the server. It normally installs updates automatically, but the nginx update failed so I tried to manually do the update. It returns this: [CODE] I have tried to run the rpm command suggested - and then redo the package update. But that made no diffe...
I've solved this for my system, though my solution may not be applicable to everyone, depending on whether or not you use the [CODE] modules that are causing the dependency issues. My solution was to remove [CODE] , [CODE] , [CODE] , [CODE] , and [CODE] , and I was then able to [CODE] to get the latest nginx version. E...
6
5
4,821
2021-12-06T20:52:38.233
infrastructure
serverfault.com
629,375
How can I verify an XFS dump backup
I recently had a hard drive crash. Now I'm setting up incremental backups using XFS' dump tool. The setup I have is to make the dumps into files (rather than to a block device), my plan is to do a l0 dump every month or two, and l1 dumps every week, and l2 every day. So the commands I'm running are things like: [CODE] ...
Try to restore a single file from it and see what happens. If it works, then one can be pretty sure that the backup is ok. This is not 100% mind you. The only way to verify that would be to do a FULL restore and then (if possible) compare the files you restored to the files you backed up.....difficult on a changing fil...
1
1
1,659
2014-09-18T01:48:05.867
database_errors
serverfault.com
23,339
SQL Partioning on date, how does it work for future records?
I am setting up a new system and I would like to partition the data for speed. Basically what I would like to do is have one database with all the latest information (e.g. last 3 months). then have some partitioned tables for data older than that. Have not chosen mysql or sql server express as not sure which one has th...
In MySQL you have to add a new partition on your CREATE TABLE statement [CODE] as an alternative yuo can ALTER your table adding the new MAXVALUE partition [CODE] From the official documentation MAXVALUE represents an integer value that is always greater than the largest possible integer value (in mathematical language...
5
2
3,517
2012-08-28T04:54:04.073
database_errors
dba.stackexchange.com
257,468
When is it acceptable for business logic to be exposed on distributed applications?
When developing applications (for simplicity, use a client-server model) intended to be deployed on customer systems, when it is acceptable to expose business logic outside of compiled code (for instance in stored procedures)? I used to subscribe to the thought that any and all logic should always be within the compile...
Anybody with DB rights could change the behavior/break the application without you knowing There is relatively simple protection from this: just write it in your contract that as soon as someone manipulates your product, you will refuse to do any maintenance any more. Add also a note that with each new release of your ...
1
0
242
2014-09-28T18:25:47.747
database_errors
softwareengineering.stackexchange.com
39,290
Installing and running MySql on FreeBSD
Yet for a while I trying to install and run MySql on FreeBSD rooter that We using at office. I am totally beginner in Linux OS and I do not know what could go wrong on My installation, So please have a patient whit me, Here is some copy and paste text from Putty if someone had similar problems please help [CODE]
Normally that just means that [CODE] isn't running. Try [CODE] .
1
1
835
2009-07-11T12:16:00.350
database_errors
serverfault.com
47,399
SELENIUM - How to count IWebElement in IList<IWebElement> and get the position in the list
I have a problem and I don't know how to solve that... I have 5 exactly the same elements on the page (same div, same class, no id, same inner text). So I can build the XPath - where Selenium returns to me - the IList with IWebElements. My Goal is to iterate thru this list and "somehow" get the IWebElement that I have ...
SOLUTION HAS BEEN FOUND: I actually CAN use the code above, but I need to check HasCode - not the object itself: [CODE]
1
1
3,020
2021-04-30T09:21:42.223
data_quality
sqa.stackexchange.com
189,350
SQL Server Disk throughput slower than diskspd
This is a bit of a broad question but I am trying to understand a storage performance behavior with two of our servers. I was following https://www.brentozar.com/archive/2015/09/getting-started-with-diskspd/ On one server I ran dskspd with the below parameters on the same disk as the DB. [CODE] and got around 1400MB/s ...
There are a few conceptual things to work through. When you run a tool like diskspd, you're benchmarking theoretical limits of your storage, not guaranteeing a specific performance profile of a query. Additionally, you're only testing for the configured pattern (2MB block size, queue depth of 32, 56 threads, 100% read ...
1
4
1,184
2017-10-26T05:39:01.250
database_errors
dba.stackexchange.com
88,758
TokuDB + MariaDB 10: should I use a clustered index
I have a large table (200 Columns.. I know, but it wasn't my design) that will grow fast and I will have a lot of useless rows in it, identified by an IP (a [CODE] 32 column). The table will get hundreds of thousands of rows per day and I will need to delete few thousand rows with a specific IP in that column. During t...
That's a tough question to answer without more schema and workload information, but the key benefit to a clustered secondary index is that it contains not just the indexed columns and all other columns in the table. "Normal" secondary indexes contain the indexed columns and the primary key (which is used to look-up the...
0
1
758
2015-01-07T16:21:47.783
database_errors
dba.stackexchange.com
70,413
Windows 2008 on Sun Virtual Box
Does anyone else have problems running windows 2008 with Sun Virtual Box? We get an error when we try installing Framework 3.5 SP1
I didn't have any problems with Server 2008 on VirtualBox and had no problems getting it current with updates either.
0
2
101
2009-10-01T15:06:55.550
infrastructure
serverfault.com
506,092
SSH Error: unknown key type '-----BEGIN'
I'm having problems using authorized keys to SSH login to a remote server. The error messages I receive look like this: [CODE] Other questions on this site have posted similar questions, and the solution was usually to double check all the permissions on the client side, which I have done: [CODE] I am able to use the a...
Necroquestion! Based on the fact that you can use this key to log into another server @michael-hampton is on the correct trail: there is something (firewall / tcp wrappers / sshd config) on the destination server that is denying access. All this talk about incorrect key formats is a red herring based on incorrect inter...
9
13
46,905
2013-05-08T16:28:12.983
infrastructure
serverfault.com
55,118
To fix Postgres' login permissions for a new user
How can you enable the login for heo? I get the following The problem seems to be in permissions for the user/role "heo" and probably in [CODE] . I put the following line to the file unsuccessfully [CODE]
"local" Means this is a local connection via the unix socket, rather than over the network. So if you give a hostname to connect to, this line won't work. The "ident sameuser" section means that it relies on the unix user being the same as the postgres user. If your web server is running as a different user that heo, t...
0
2
718
2009-08-17T17:16:12.860
infrastructure
serverfault.com
96,368
Creating a database under a different owner
I'm trying to set up a role in Postgres which can a) Create a new Role b) Create a new Database c) Make that new Role the owner of the database d) Have no other rights (as far as is possible!) I have tried this: [CODE] Followed by (in another session) [CODE] Background: The requirement is to have an automated function ...
I found a solution involving a few extra steps. The "tenant_admin" role is still created the same way, but it is now used as follow: [CODE]
8
12
51,887
2015-03-26T18:13:09.027
warehouse_errors
dba.stackexchange.com
110,869
Display non-null and null count using case statement
In total there are 10 values in my table, 5 of which are null. I need to display the count using case statement in Oracle, like output below: Sample Data: [CODE] Output: [CODE]
This may not directly help you, since I only know SQL Server, but in any case this is how I would approach this: Sample Data: [CODE] My idea revolves around the idea that [CODE] does not count [CODE] , whereas [CODE] does: [CODE] Output 1: [CODE] If the specific arrangement of rows and columns is important, I would [CO...
3
4
1,828
2015-08-13T06:36:38.837
database_errors
dba.stackexchange.com
159,417
Verify A Partition is Aligned in Linux With RAID and LVM
Does anyone know the steps to verify that a XFS filesystem on top of LVM and md RAID is properly aligned on an array of 4096 Byte aka "Advanced Format" sectored disks? Some references are: http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/index.html http://thunk.org/tytso/blog/2009/02/20/aligning-files...
Verification is a tricky one. My first thought was to do a series of direct-IO 4KB reads from the media and watch the blinkin-lights. If every xth read causes two drives to flash, it's a sign of misalignment (4kb read just spanned a RAID stripe boundary). However, you're 3000 odd miles away from the hardware so that wo...
16
5
3,506
2010-07-11T20:06:01.193
api_errors
serverfault.com
274,327
MariaDB or MySQL @@SESSION.tx_read_only always returns 0
I'm trying to figure out possible "read only" transaction setup leak between pooled connections (on the same physical connection) in Java application which lead me to a question "How can I find out what the current transaction read-only-ness really is?" I'm using versions [CODE] and [CODE] and whatever I do, when I iss...
another fiddle test So both MariaDB on [CODE] and mysql on [CODE] have the session variable set to the current session value. The "next transaction access mode" remains hidden. Catching insert errors seems like the only option.
1
1
572
2020-08-25T15:57:26.867
database_errors
dba.stackexchange.com
277,915
Disabling IIS 7.5 server error response for 5xx and 4xx HTTP status codes
Is there any way to prevent IIS from automatically overriding the output of a web app that is returning a status code in the 500 or 400 range? Just as an example, in ColdFusion I can create the following page: [CODE] The behavior should be that I see a page that says "Sorry, an error occurred." and see in the headers t...
This was answered in another question: IIS7 Hijacks My Coldfusion Error Page Seems that the solution is changing the configuration so that IIS ignores the error and allows it to pass through, hence the setting [CODE] So the solution is to change the behavior of IIS, which is fortunate, because requiring every existing ...
4
7
12,396
2011-06-07T16:58:56.617
api_errors
serverfault.com
614,590
What is [PSH, ACK] doing during my connection to a global catalog server?
A linux server of mine is trying to establish a LDAPS connection to a global catalog server and the connection is getting dropped (presumably by the GC side). For the purpose of discussion, let's say that 1.1.1.1 is the Linux server and 1.2.3.4 is the global catalog server. If I try to use [CODE] from the Linux box, I ...
[CODE] is a Push flag: http://ask.wireshark.org/questions/20423/pshack-wireshark-capture The Push flag tells the receiver's network stack to "push" the data straight to the receiving socket, and not to wait for any more packets before doing so. The Push flag usually means that data has been sent whilst overriding an in...
21
29
133,915
2014-07-22T17:34:18.677
infrastructure
serverfault.com
1,128,361
Are sites normally hosted on www.example.com and example.com?
I don't like the idea of hosting on both example.com and www.example.com but I can't get my dns setup to redirect www.example.com to example.com. So what I have right now is both of them work and serve up the webpage. If I have: [CODE] shouldn't that do a redirect? I realize I can do this fairly easy with JavaScript. I...
Generally it's considered best practice for a web site to only actually serve its content under one domain name, and have any other alias names only redirect to that one canonical domain name. However, that redirect is an HTTP concept, not a DNS one. A [CODE] record does not redirect anything, it just makes it so that ...
-1
6
89
2023-04-10T18:10:15.900
infrastructure
serverfault.com
69,216
How do I count and order by unique entries?
I have this: [CODE] Now I need to get a count and sort by the number of times each unique "Printed Name" shows up. I've looked all over but can't figure this out from other questions people have asked. I'm not usually the one at my company that has to mess with Access. It seems like this is probably a simple problem, b...
Try this [CODE]
0
1
116
2014-06-27T17:52:20.940
warehouse_errors
dba.stackexchange.com
576,965
nginx proxy_pass with a backend requesting client certificates
We're proxying a backend that we don't control & the backend is requesting a client certificate when connecting on https. When we request these pages through the proxy the connection times out with no response from the backend, however the pages work fine if we bypass the proxy. Is this a problem with nginx handling th...
I'm not sure whether you realize this or not, but what you're doing is a Man-In-The-Middle attack on [CODE] . To understand why this can't work in your scenario we are going to need to explain the actual role of certificates and keys in TLS. So here we go. First of all, we need to establish a key in the clear. We don't...
3
3
5,591
2014-02-20T05:34:31.320
infrastructure
serverfault.com
179,746
Should developers be responsible for tests other than unit tests, if so which ones are the most common?
I am currently working on a rather large project, and I have used JUnit and EasyMock to fairly extensively unit test functionality. I am now interested in what other types of testing I should worry about. As a developer is it my responsibility to worry about things like functional, or regression testing? Is there a goo...
It is your responsibility to strive to deliver defect-free code. You should write, help write, or ensure tests get written or performed in order to give you confidence in the code you are delivering. Note: I'm not saying you are required to deliver defect-free code. Rather, you should attempt to write the best code you...
35
46
7,640
2012-12-17T16:29:37.310
api_errors
softwareengineering.stackexchange.com
1,068,005
What is the source of syslog message "Condition check resulted in MD array scrubbing"
On an Ubuntu 20.04.2 server with a software MD raid, exactly once a day when the system is doing its daily activities, the following message is output to the syslog: systemd[1]: Condition check resulted in MD array scrubbing - continuation being skipped. There are no issues with the MD raid. It is not in a degraded sta...
It simply means that the service responsible to continue a scrub was skipped because it was not necessary - ie: the condition to run it was not satisfied, for example because not much time passed since the last scrub. More specifically, the unit [CODE] check for the condition [CODE] meaning that it check for started-bu...
5
7
1,268
2021-06-27T18:16:40.527
infrastructure
serverfault.com
158,775
Eager Loading Constraints
The thing is, eager loading some object with all of it's associations reduces the queries made to the database, but the query time is greatly increased. The question is: This increased query time in the end pays off the database not being hitted so often? It seems to me that you are avoiding one problem and falling int...
The fact that you have to ask this question is, in itself, a big hint that there is no unambiguous answer. If eager loading were always better, framework writers would have turned it into the unchangeable default; if it were always worse, they wouldn't offer it. Here are some aspects of the situation I can think of tha...
1
1
108
2012-07-30T18:26:18.653
data_quality
softwareengineering.stackexchange.com
439,770
C# - Class creating instances of other classes requiring different services
Context I have a service class whose sole purpose is to interact with a specific API, let's say the Automotive API . The API mostly works with generic AutomativeRecord which basically represents a database record on the API backend with its fields stored as an array. AutomotiveService.cs [CODE] For readability and segr...
I think you are just going in circles here. You can either use an ADM approach with one or more services and objects with no logic ie [CODE] OR a OOP approach with no services and logic in the class [CODE] Either way it unrelated to populating Engine, Pedal etc objects from your data records, which you could do in a fa...
1
2
828
2022-07-12T18:34:49.040
api_errors
softwareengineering.stackexchange.com
117,818
Using human created small groups to identify entirely new small groups
I'm relatively new to data science, but an old hat at analytics. I'm looking for some direction on a project that I'm wanting to work on. I'm working with discrete objects, that when small changes were made to them would get brand-new IDs. Various aspects about them would remain the same, and a field such as a name fie...
Welcome to the Data Science World. Note: I am not 100% sure about your project and details are not known. So I will only point you in some directions. As I understand your question, your problem is to group "nearby" objects without a formal definition of "nearby". But you have some cases where humans annotated which ob...
1
1
34
2023-01-17T08:31:42.507
data_quality
datascience.stackexchange.com
1,105,127
How can I use a value returned from one dataset to build a query for a different dataset, in SSRS?
I'm using SQL Server Report Builder 3.0 to create a report. I have two tables and I want to look up a value in one table and then use that to select a value from the second table. Example as follows: Table : Staff | staff_id | Surname | | -------- | ------- | | 1 | Smith | | 2 | Jones | Table: Courses | Teacher | Cours...
Can't you simply do both of these things in the database and then return the resulting dataset in a single view?
0
0
2,509
2022-07-08T13:23:23.933
database_errors
serverfault.com
310,341
SQL Server 2014sp2 / SQL Server 2014 sp3 CU4 Primary Key Violation on Primary Key constraint on insert
Prod Env: SQL Server 2014 sp2 Test Env: SQL Server 2014 sp3 CU4 Prod and Test matches up. Recently updated Test Env to sp3 cu4. Since updating proc_a (within a SQL job) fails due the below error. Proc_a is using a cursor to insert into table_a. The errors are legit, there are duplicate records and I know how to handle ...
Turns out it the root cause was a combination of Compatibility level and SQL level. SQL Server 2014 sp2 and Compat level 100 combined ignores(suppress errors) "Msg 2627, Level 14, State 1". TEST: SQL Server 2014 sp2 and Compat level 100 combined. PROD: SQL Server 2014 sp3 CU4 Compat level 120.
-1
0
124
2022-03-30T13:15:45.887
data_quality
dba.stackexchange.com
1,121,499
PHP-FPM ERROR: [/etc/php-fpm.d/www.conf:xxx] unknown entry 'process_control_timeout'
I have a LAMP stack with Amazon Linux 2, Apache 2.4, and PHP-FPM for PHP 8.1 and I'm trying to set the value for [CODE] in my PHP-FPM config I added [CODE] to the bottom of the file [CODE] but on reloading PHP-FPM it fails and the status contains the error [CODE] According to the PHP-FPM docs , [CODE] is a valid option...
As pointed out by @GeraldSchneider in a comment, [CODE] is a global option and belongs under the [CODE] section The [CODE] section was already defined in my [CODE] file and adding [CODE] there works as expected By adding it to the bottom of [CODE] I was inadvertently adding it to the pool definition for [CODE] , which ...
1
1
353
2023-01-30T13:15:50.310
infrastructure
serverfault.com
597,524
nfs file transfers fail, "cp: cannot stat 'dir_name': No such file or directory" but sshfs works fine
We have a strange issue on our file server (Debian Wheezy 32-bit), where some files within folders contained in an nfs share fail during transfer using the cp command. Howerver, if we mount the same folder via sshfs and use that to transfer files, there is no issue. We have a few things that require nfs, so sshfs is no...
It looks like this issue may have been caused by a combination of nfs, xfs, and inode64. I've moved the data to an ext3 volume and exported from that, and it appears to have solved it.
1
1
1,976
2014-05-21T14:41:35.037
infrastructure
serverfault.com
888,795
tcpdump host unreachables for specific host
I'm trying to rule out some issues and needing to capture all ICMP messages except echo/echo reply. However the issue I'm struggling to find a way around is I only want these involving a particular host. The filter I've been trying is tcpdump icmp and 'icmp[0] != 8 and icmp[0] != 0' and host x.x.x.x However that is onl...
If I understand you correctly, you want to filter for [CODE] in the ICMP response. Let's assume the IP of the unreachable host is [CODE] , then you should replace [CODE] in your filter with the following filter [CODE] . If you only want the ICMP destination unreachable messages, consider using [CODE] instead of [CODE] ...
0
0
1,091
2017-12-19T05:55:55.517
infrastructure
serverfault.com
153,628
Postgres server not starting anymore
My postgres was working previously, but for some reason does not work anymore. I have tried several different searches in stack overflow and other sites, and after coming up with the same results and reading the same pages over and over again, without any success, it was time to post a new question. Trying to run my ra...
The /etc/hosts file was incorrectly configured, due to some changes to that file previously. It did not cause trouble immediately, but for some reason changing the file back to defaults (i.e., 127.0.0.1 for the local host and 127.0.1.1 for my machine) solved the problem. This was discovered by running [CODE] , which ga...
4
0
13,402
2016-10-28T18:05:26.527
database_errors
dba.stackexchange.com
11,548
Jenkinsfile script to waitUntil a folder is created
With this Jenkinsfile code, I am trying to test A/B folder creation, and also testing if waitUntil works till the folder is created, I expect it to wait for 0 secs as the folder is created before [CODE] gets called. [CODE] It fails with below error, what's wrong here? the folder is not gerrit created in workspace. [COD...
Your block expression doesn't return a value in all cases. Try this instead: [CODE]
2
1
9,158
2020-05-07T15:21:21.197
pipeline_ops
devops.stackexchange.com
449,712
getaddrinfo: command not found
Possible Duplicate: How do I fix “getaddrinfo: localhost Name or service not found” for telnet server? I've installed a new Ubuntu 12.04 on an AWS EC2 instance and everything worked fine till now. I followed the instructions in this great tutorial: http://www.exratione.com/2012/05/a-mailserver-on-ubuntu-1204-postfix-do...
[CODE] is a library function in the standard C library, not a command line tool. So trying to execute it is not quite the right path to a solution. You can call getaddrinfo from a python shell if you want: [CODE] but I doubt that this will help you solve your problem. Instead, follow the link in Michael's comment.
3
4
4,032
2012-11-17T14:46:35.523
data_quality
serverfault.com
191,859
Delete databases from oracle 12c
I want to delete multiple databases and its entries. These instances are not getting started. I want to delete data files also. EDIT: I am thinking delete all data files. Please help on below concern. Shall I delete data files manually? Will it cause any problem to my working database instance?
The easiest and safest way to delete a database is using the RMAN [CODE] command. If on Linux, set up your ORACLE_HOME and ORACLE_SID environment variables appropriately then start the database(s) using [CODE] . Then drop it using RMAN's [CODE] . If you want to delete the backups/contents of the FRA as well, then use [...
0
1
3,909
2017-11-28T05:26:28.613
database_errors
dba.stackexchange.com
1,106,366
SSH config file setup for port forwarding AND SSH access to bastion
I have a publicly-accessible bastion host. I am presently able to SSH to the bastion with [CODE] using this in my [CODE] : [CODE] Now I have a Redis instance inside the firewall which I would like to forward a local port to. This works: [CODE] But I want a config Host shortcut so I can just type [CODE] and have the tun...
The solution was to use the [CODE] option. So I have these two hosts defined in my [CODE] : [CODE] When I want to set up the Redis tunnel, I can just use [CODE] and it will re-use the config from the bastion host definition.
2
4
5,787
2022-07-22T22:03:29.810
database_errors
serverfault.com
334,011
Log .ldf file not truncate after several times of log backup on secondary database
i have always on setup in production environment. Scheduled backup (transaction log backup) already in place every 2 hours using netbackup on secondary database. The issue i am facing is sometimes the log .ldf file does not truncate. The size is growing until 300gb. I have troubleshoot on few items as below : Log reuse...
Log Free space is almost 95% on both primary and secondary It sounds like the log file IS being truncated. Make sure that you are not confusing truncation of the log with shrinking of the log file. Running log backups, as you are doing, causes the log to be truncated - meaning that portions of the log file (VLFs) that ...
0
1
66
2023-12-13T08:05:49.270
database_errors
dba.stackexchange.com
300,440
KVM on RHEL 6.1 makes host sluggish
I have been running RHEL 5.7 on a host just fine with several VMs (KVM). No major issues. Time came to upgrade to RHEL 6.1 as a few bugs had been fixed in this release. When I start a VM or two under RHEL 6.1, the system becomes really sluggish. Even through SSH, keystrokes appear with delay. System resources appear OK...
Maybe this is somehow about ACPI/APIC or kernel clock? I bet kernel in RHEL 6.1 has gained dynamic ticks (or, "tickless kernel") compared to one in RHEL 5.7. If you run [CODE] at your host, does it report huge number of interrupts during the lag? Interrupt storms, even if rare nowadays, can cause those stalls. Then it ...
3
4
4,094
2011-08-12T09:46:23.337
infrastructure
serverfault.com
692,458
Can I use the same client certificate in multiple OpenVPN tunnels to the same server?
I have a simple setup like this: SERVER ---- INTERNET ---- CLIENT On SERVER I already have OpenVPN set up with a sertificate for CLIENT. On CLIENT I already have OpenVPN set up to contact the server using its key and this is working fine. Now I would like to set up another OpenVPN connection between SERVER and CLIENT w...
Sure that you can reuse it. I'd say it's preferred if your client is same machine / user. You can also use OpenVPN config directive duplicate-cn, which will tell OpenVPN daemon to accept multiple clients with the same certificate. No, it is not good practice: because if one certificate compromises you may lose security...
2
2
7,882
2015-05-16T10:53:15.690
infrastructure
serverfault.com
592,404
Server freeze with "rcu_sched detected stalls on CPUs/tasks"
My web server is crashing several times a week. I see errors in syslog but I can't find a solution. I tried changing kernel to older or newer versions but no difference. I moved everything to a new machine, but problem is still there. This has to be software related. Any idea ? [CODE]
Problem solved by disabling SMP (added "nosmp" parameter in Grub conf). The server is running fine now.
2
3
17,038
2014-05-01T00:28:42.103
infrastructure
serverfault.com
41,236
Detect Missing Records in Dataset
I have a dataset that contains several measures from various widgets on a daily basis. While the widgets remain relatively stable over time, sometimes there are legitimate reasons for one to disappear and another to appear in the data as a whole. Occasionally, a widget will just disappear and so the dataset is incomple...
One option is hashing, assigning a numerical value to each widget. The best hashing option is if each widget had a unique id, something like a serial number. If a widget does not have inherent unique, then a hash value can be created by applying a hash function to the features of widget. After creating hash values for ...
3
0
77
2018-11-14T20:26:07.553
data_quality
datascience.stackexchange.com
390,204
aws ec2 elastic ip to multiple instance
I am new to EC2, just finished setting up my micro instance and ready for production. I want to start w/ 2 medium instances. How do i assign my elastic IP to both of them so they act as 1? also would they share dB as well? My visualization is like a pair of raid drives where you have multiple machines acting as 1. Am i...
If you want one ip address to go to two servers, you would need a load balancer instance using that one elastic ip address, and it sends the requests to either webserver. Such systems are typically done with HAProxy.
0
4
7,536
2012-05-17T23:59:49.510
database_errors
serverfault.com
952,595
can't bring https protocol to running
I have a wordpress website, hosted on Windows Server 2012. http is working, but https is not! I got a SSL certificate from the provider (via digicert), and installed in into the Certificate Store in "Personal" In IIS, on the website, I chose "Edit Bindings" and entered https protocol for the IP on port 443. And I selec...
Problem solved. Actually the provider was blocking from outside. It turned out the support guy has given me a wrong answer in the first place.
0
0
50
2019-02-06T13:18:05.180
api_errors
serverfault.com
338,802
Any drawbacks to having very descriptive table and column names in DB tables for Java web app?
I would like to know if there are any drawbacks to having descriptive names for database tables and columns. This would be for a Java based web application, and most of the times I have seen database tables or columns, they have had abbreviations for the tables and columns, such as "CD" when referring to "Code". Would ...
You need to find a balance. [CODE] is almost as hard to deal with as [CODE] - especially when you're looking at a block of code (or a sproc) that mentions a half dozen of them within 20 lines. If the names are too long, you'll see a significant performance hit - in your developer's brains. It will be harder to read the...
0
2
251
2016-12-23T19:18:26.723
api_errors
softwareengineering.stackexchange.com
5,442
Push specific changes (defect fix) and not feature changes
I am new to DevOps. I am using Jenkins and GitHub for salesforce deployment. Setup We have a [CODE] branch. Feature branches are created out of it. When merged to [CODE] , the deployment to the first Salesforce sandbox happens. After end of every sprint the [CODE] branch is merged with SIT branch pushing changes to SIT...
This sounds like a problem for [CODE] . If you can separate the user story code from the fix code, by committing them separately, you can cherry pick the relevant commit to merge back into the [CODE] branch. See https://stackoverflow.com/questions/9339429/what-does-cherry-picking-a-commit-with-git-mean
1
4
71
2018-11-14T09:57:39.247
pipeline_ops
devops.stackexchange.com
570,792
Postgresql WAL-E - Replication falling behind + can't catch up
Does anyone know how I can have my replications process the WAL segments faster while using WAL-E? https://github.com/wal-e/wal-e I have one master that leverages WAL-E to upload to S3, and I have 6 replications (hot_standby) that pull information down from S3 but some of them are falling behind. Interestingly enough t...
As I understand you're using log shipping using S3 as common storage. You should use streaming replication instead. This way your slaves should not fall behind more than a few seconds. But it may generate bandwidth costs - $0.01 per GB as I remember. You can use cascading replication to pay for this bandwith only once ...
2
1
1,029
2014-01-29T16:54:58.257
database_errors
serverfault.com
991,196
Am able to ping my domain, but not subdomain (digitalocean)
My main domain (say: example.com) on DigitalOcean is working ok. I've only one droplet in there. Then I created 'a' record under my main domain with another subdomain name (1.example.com). Then, I created another subdomain (2.example.com), in the way as we create a new domain in DO, and made it refer to the same drople...
[CODE] , [CODE] , and [CODE] should all resolve to an IP address (and as far as I understand you, to the same ip address). If they don't, you did something wrong in your DNS configuration. This could merely mean that your local resolver has cached old info, so try [CODE] etc
0
0
4,400
2019-11-09T13:17:24.360
infrastructure
serverfault.com
642,587
Unable to perform an unattended domain join using WDS and an answer file on Windows 8.1
I've already looked through the other questions related to this and none of them were able to help me. I've already spent several days on this damned unattended process and, miraculously, I was able to get it to work ONCE yesterday but, alas, I did a noobish mistake and didn't backup the file before editing it again an...
Added info, this also occurs with 2008 Std R2 with W7 Pro machines. To all whom it may concern, since this issue is applicable only at the Domain Admin group level, I thought to try with an account give all rights through Delegation control at the domain root level, which works as well, so there is no need to go and ch...
6
2
24,895
2014-11-06T20:55:31.493
database_errors
serverfault.com
1,075,806
Active Directory: pinpoint cause for access denied when modifying objects
I need a general way to determine the cause of access denied errors when modifying/moving/etc. objects in AD. I know that I can view "effective permissions" but not sure which permission corresponds to which real world action. For example, the computer objects in a certain OU have the Delete effective permission, but I...
You probably haven't unchecked [CODE] option in that OU.
1
1
847
2021-08-27T14:05:33.113
infrastructure
serverfault.com
95,831
What would cause intermittent DomainKey-Status: failures?
Every week, we send something like a small newsletter. Sometimes, the header in the newsletter says [CODE] Sometimes it says [CODE] All the other headers in the email are the same (besides expected time and message id differences). None of the email server configuration has changed. What would cause this problem?
Temporary DNS issues at recipient end could be causing the problems. If you want to know if the problem is at your end or recipient end, look at this . If it happens consistently, then you need to look at your Domain Keys signing software. Without knowing which software is being used, it is tough to tell. But a good st...
0
0
385
2009-12-18T23:46:56.563
infrastructure
serverfault.com
162,481
CTO has left — codebase is a huge kludge, any advice on how to manage/handle/damage control?
I began work at a company 2 months ago as a PHP developer. I stepped in to somewhat of a kludge, but I've yet to find a company that isn't... The development stable is currently two developers (including myself) who will act as the interim CTO while the company seeks out a replacement CTO. The company is a news site th...
If the code base is large as you seem to imply, you should freeze the development of new features, and take time documenting what you already have. Then do a first stab at the coding standards, trying to make sure that as much code as possible is compliant right away, at least in cases when you do not have a strong opi...
5
4
604
2012-08-27T13:56:02.917
api_errors
softwareengineering.stackexchange.com
718,437
GPG error; The following signatures were invalid KEYEXPIRED
[CODE] get this error: [CODE] even after use --fix-missing, still have the same error.
Actually the problem come from What should I do when I got the KEYEXPIRED error message after an apt-get update? I can not select the kynana's answer as the best answer so I just put it here. Thank you @Kynan https://serverfault.com/users/53358/kynan To find any expired repository keys and their IDs, use apt-key as fol...
12
28
20,343
2015-09-02T02:05:45.580
infrastructure
serverfault.com
278,210
Is lazy loading always required?
I know lazy loading is required when an expensive database call is being made. It would make sense using lazy loading in this example. The below example is in the context of asp.net so it's thread safe. [CODE] Even if it's just instantiating an object that is used in multiple places, I always use lazy loading. Consider...
There's an additional thing you may want to take into account besides the sheer speed factor. The code itself. And it's maintainability. Does this kind of lazy loading make the code slower to write, or harder to understand and change? Does it make the architecture more complex that it needs to be? Some examples follow....
2
7
2,152
2015-04-03T23:37:06.410
api_errors
softwareengineering.stackexchange.com
399,494
Customized access control using OAuth 2.0
I'm designing a enterprise infrastructure monitoring application which has customized needs of access control, beyond roles and authorities. The architecture include multiple nodes of REST API being load balanced, an angular client and an authorization server based on OAuth 2.0 using JWT. These Rest API nodes are gener...
here's a list of few things worth pondering: Resources are responsible for their own access control. The types of clients and use cases can inform how you want to break down or group together permissions into roles and similar, but ultimately those should all be things whose semantic is understood by the resource- and ...
2
3
79
2019-10-09T11:09:27.403
pipeline_ops
softwareengineering.stackexchange.com
241,212
How to reject messages to unknown user in sendmail cooperating with MS-Exchange?
I have an MS Exchange 2003 configured as a mail server for an organization. As this server is located in this organization internal network and I don't want to expose it directly over internet, I have second server - linux box with sendmail - configured as intelligent relay (it accept all messages from internet address...
Ok, finaly I manage to get it working. My changes to sendmail.mc was as follows: [CODE] I required to create in Active Directory an user named "sendmail_user" and put it's password in ldap-password file. But still I don't know how to delay server response in case of using invalid recipient address (to mitigate any spam...
0
0
2,177
2011-02-28T16:09:32.793
infrastructure
serverfault.com
123,962
Does everyone need a framework to work better?
I have been working with a complex system written with Java. It is made by with many java programs and many shell scripts which call them and some cronjobs to schedule them. The system is hard to maintain. Input/Output/Error/OK files were distributed in different place of the system by the hands of different programmer...
I agree with @Martin in that you don't necessarily need frameworks to solve these problems. Although for greenfield development, it is indeed advisable to pick and use an established framework, in this specific case it seems to me that most of your problems stem from the general disorderliness and inconsistency of the ...
3
2
398
2011-12-08T09:03:02.413
api_errors
softwareengineering.stackexchange.com
376,755
Can I restore a demoted domain controller from backup?
I demoted a domain controller and it broke some IIS (running on same machine) permissions in a way I couldn't fix and futzing with things has just made it worse. The idea was to separate stuff and make things more robust and I'd like to try to eventually do that, but right now I need that site back up and running. If I...
You can't do a non-authoritative restore it if it's been demoted. The other domain controllers now no-longer think that it is a DC. If you did an authoritative restore, then all of your AD info will be rolled back to the time of the backup, but your site should work again, but you'd have to demote and re-promote your o...
2
6
2,120
2012-04-04T17:54:58.663
database_errors
serverfault.com
1,000,053
Create VM from existing Linux server
I have been tasked with finding a way to create VMs for our existing Linux servers, as sometimes we have do deal with issues related to the entire machine (virutal hardware, OS, etc.). These are usually web servers and we (mostly) have backup systems in place, for the actual web sites. But, sometimes we need to deal lo...
You can use VMware Converter Linux P2V Conversion. The standalone converter is free to use. Step-by-Step Walkthrough To perform Linux P2V conversion, you should take the following steps: Download VMware vCenter Converter Standalone from the official web site. Install the converter on a Windows machine that can connect ...
0
1
1,594
2020-01-23T06:59:17.347
database_errors
serverfault.com
11,877
Does a slot swap cause an application to restart when using deployment slot settings?
My web application in Azure has two deployment slots - staging and production. The purpose of the application is to draw a shape. The version currently deployed to the production slot draws a square. The version deployed to the staging slot draws a circle. Both versions of the application have an application setting ca...
if both are running 'warmed up' and in 'Always On' mode then the swap would not cause a restart of any kind. But go to this URL and read the point #1 and if any of these things are done then it will restart. https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#what-happens-during-a-swap
1
0
2,268
2020-06-21T21:13:04.173
pipeline_ops
devops.stackexchange.com
837,684
Nginx proxy_pass to wordpress docker container
Hi guys sorry if I'm making a elementary mistake but I am really lost here. I have set up my Ubuntu 16.04 server is Nginx(Not in a docker container, running on host machine) and wordpress(In a docker container). Docker Hub Wordpress repo: (I can't post more then two links but its the official Wordpress repo) After some...
It may help to set some headers so that the upstream knows the correct frontend server name. See this document for more. For example, I use: [CODE] Also, check that your HOME and SITEURL settings are correct. See this document for details.
4
8
5,435
2017-03-11T16:23:05.913
pipeline_ops
serverfault.com
77,184
where is the oracle 12c logfile?
I am getting all of the following error first: ORA-12162: TNS:net service name is incorrectly specified When I export the ORACLE_SID , I can run any command and I get the following error: connected to an idle instance Where is the ALERTLOG file in 12C? I can't see any file in ORACLE_HOME/log folder. I am using ubuntu 1...
The alert log never has been under [CODE] . It is in [CODE] and is named [CODE] If you don't have [CODE] , this typically is equivalent to [CODE] This is no different in 12c than it was in 11g (or 10g if I recall correctly). You can also use the ADRCI tool: http://docs.oracle.com/database/121/SUTIL/adrci.htm#SUTIL1474
4
9
137,935
2014-09-21T11:42:17.487
database_errors
dba.stackexchange.com
34,353
How can I install a provider for linked server?
I have a provider for a linked server called PervasiveOLEDB.11.0 installed on a sql server 2005 machine. It always me to have a connection to a pervasive sql database. I would like to use this same provider on a sql server 2012 machine. Is there a way to transfer this provider from the 2005 to the 2012 machine?
The 'provider' is the driver required to allow SQL Server to talk to the remote server. These are normally installed pieces of software, so can't simply be copied between machines. While not being overly familiar with PervasiveDB, I would assume that like most other manufacturers drivers, it will be included in their c...
1
2
11,676
2013-02-07T22:03:33.587
database_errors
dba.stackexchange.com
299,360
UPSERT unless the date is the same
There's a table [CODE] where I want to upsert values IFF the [CODE] is not the same for a given [CODE] , which I'm doing like so: [CODE] But I'd prefer to add [CODE] and drop the [CODE] clause . Is that possible? But this isn't working, since values are still being updated even if they're on the same day; ie. the [CODE...
Use the [CODE] with the [CODE] condition as you showed it. Then check how many rows were affected, and if there was none, throw an error. You can do that either in client code or in a database function. With psycopg2, you can get the number of rows modified from the [CODE] property of the cursor, as shown in this answe...
0
1
945
2021-09-09T22:06:16.443
data_quality
dba.stackexchange.com
1,051,467
RDP to an Alias
I have a server that has since been decommissioned and I have some services that have been moved over to another server however these servers still point to the old server so I have set up a Cname for the old server to the new one, however when I try to RDP to the old server surely it should redirect me to the new serv...
I don't think it's a Kerberos issue. Funny enough, Kerberos isn't used for RDP . But RDP uses TLS for security. A CN in the certificate is a server FQDN (in terms of a domain). So, when you connect to alias, an (alias) name you're connecting to doesn't match a (real) name in the certificate and system says "the compute...
1
1
2,361
2021-01-27T19:56:47.823
infrastructure
serverfault.com
212,261
When will be safe to choose Multi-thread design without dead lock?
Sometime we really need to choose a multi-threaded design, because single-threading will block the UI or block another thread. But sometimes using multiple threads is just one of the choices, for example, you may able to replace multi-threading with timer. In that situation, you may want to avoid the effort of investig...
There are two sources of deadlock to consider. There is designed deadlock , where the actual architectural design is the cause of the deadlock. To solve this, you need to understand the mechanism that leads up to the deadlock, and redesign the architecture. Common issues include having two resources that need exclusive...
-1
0
292
2013-09-23T10:27:44.887
database_errors
softwareengineering.stackexchange.com
228,020
How can I set up a private internal DNS server?
We have a windows server box in our office and then a number of desktop pc's running xp, and windows 7. All of our project'd databases sit on our server and each person uses SourceSafe for controlling versioning of the files. The dns entry to the server is something like ourcompany.com I would like to set up each machi...
You can do as the comment states above by putting them in AD or you can set your DNS on all your clients to your server and setup a records to the effect of Justin.example.com 192.168.1.X and Bob.example.com to 192.168.1.xx. You need to make sure that your DNS and your clients all have static IPs or you will have issue...
0
2
2,139
2011-01-28T09:31:34.643
infrastructure
serverfault.com
45,956
org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 13; Element type "parameters" must be declared
Here is the xml file and not sure what is missing here . Any suggestions here? [CODE] The full exception details are here [CODE]
TestNG test tag doesn't have a parameters . Try just add many parameter entries. [CODE] Tutorial here .
0
1
752
2020-10-13T21:38:48.323
data_quality
sqa.stackexchange.com
361,985
DHCP range starts with 194.77.30. Could that lead to problems?
Just noticed that our Lancom router has a DHCP range of 194.77.30.50 - 150. Could that lead to problems? Because sometimes some devices can’t be reached (with static IPS above that range like 194.77.30.170) and I have not yet figured it out why. I can’t find a definitive answer on the net if it really MUST be 192.168. ...
You need (fanfare) RFC 1918 - Address Allocation for Private Internets Your private (IPv4) network MUST use one of the ranges allocated by this RFC: [CODE] Anything else is Just Plain Wrong. And you can tell them the people who built the internet said so. OK, so there's really no [CODE] anywhere in that RFC, but in pra...
5
16
571
2012-02-20T21:18:18.513
infrastructure
serverfault.com
11,059
What does the activation of a neuron mean?
In a neural network, each neuron will have it's activation. But what the activation mean? Does it just mean nothing but a temporal value to produce the final result or it's has something to with our understanding to the problem? For example, considering a neural network to recognize a handwritten character from a pictu...
The activation of a neuron is mathematically nothing but a function of its input. Consider a neural network with one hidden layer and one input vector $\mathbf{x}$. The input $a_j$ of neuron $j$ can be written as: $a_j = w_j^T \mathbf{x} + b_j$. The activation of neuron $j$ is then a transformation $g: \mathbf{R} \righ...
2
6
2,733
2016-04-06T02:30:41.510
data_quality
datascience.stackexchange.com
1,056,764
NTFS: When does Windows consider the newly added file exist in the system? When the writing process starts or ends?
When the file is being written to the disk, does the Windows System already consider the file exists or it waits until the writing process is done? Basically, I have a script that checks if a directory has newly added files per minute. If there's one, I programming upload it to an API endpoint. But the problem now is t...
When it starts writing the file, it has to create it, and as soon as it's created, it exists. This perforce is true for any file system. And it really can't be any other way, because the process creating the file may actually hold it open for possibly several hours, writing into it repeatedly, before finalizing and clo...
1
1
324
2021-03-11T21:15:29.310
api_errors
serverfault.com
245,875
Problems with self-signed SSL certificate for SSTP in Windows Server Foundation 2008
I am trying to configure SSTP in Windows Server Foundation 2008. I want to use a self-signed SSL certificate to do authentication. When the server is running, I get the following error when trying to connect: [CODE] I created the self-signed certificate in the IIS "Server Certificates" panel. From that panel, I exporte...
Here's the way I always recommend installing self-signed certificates for things like this: On the client machine: Go to Start > Run... (if windows 7, Win + R) > type 'mmc' and hit Enter. When the MMC comes up, File > Add/Remove Snap In... and choose the 'Certificates' snap-in. It'll ask you for user, computer, etc... ...
3
5
10,820
2011-03-10T19:24:41.083
api_errors
serverfault.com
647,206
FTP server | Filezilla | windows server
I have a windows 2012 server running Filezilla server for FTP. I have setup the server with a user which has a directory set to home dir. See picture to see setup: However, when I connect to the FTP - it connects fine, but displays this error and does not allow me to see the directory: [CODE] Anyone can help?
Based on the log you show you have a firewall blocking your connection or you did not fully forward/open all ports. [CODE] You can see here that the client is entering passive mode on port 50218 . You most likely did not forward this port and most likely not the entire configured passive range. According to the FileZil...
1
1
8,585
2014-11-26T11:18:04.813
infrastructure
serverfault.com
666,142
Is there a safe way to store passwords used for ssh by a script?
So first, I know, I should use key auth with SSH. No need to explain me that. Issue here is that I have a (big) bunch of servers, and I need to have a script be able to connect each of these. I use a key authentication whenever I can, however it's not possible on every server (I don't have control over this). So SSH wi...
If your script can connect to any of those servers, anyone with access to the script (or privileged access to the machine the script runs on) can connect to any of those servers. If the script needs to run autonomously, all bets are off. The answer here is no, there isn't a absolutely safe way to store passwords in suc...
17
25
7,662
2015-02-09T13:27:08.513
api_errors
serverfault.com
153,667
Windows Folder Redirection Permissions
I have a DFS share on "\\corp\content\", in this there is a folder named Personal. Owner Rights, Domain Admins and System all have full rights to this folder and Authenticated users can create folders, read attributes and permissions. I have a Group Policy redirecting all possible folders on desktops to this share, eg ...
I don't allow Windows clients to create their redirected folders. Frankly, it seems like a potential DoS attack to me to have a world-writeable folder on a server computer where any user account can create sub-folders. (The whole notion of the client creating important folders like this seems brain-damaged to me-- as d...
0
2
3,693
2010-06-22T16:35:18.457
database_errors
serverfault.com
466,405
System Center Configuration Manger 2012 SP1 PXE boot
I am trying to set up my System Center Configuration manager server to be a PXE server for client deployments but I am having no luck in getting it to work. It seems to bypass SCCM and boot right from WDS. I get a Windows 8 style blue screen saying: "The Boot Configuration Data (BCD) file from the PXE server does not c...
After deploying your boot image, operating system image and your task sequence, as mentioned by MDMoore313, you have to wait for a short period of time before you can do a PXE boot of your boot image and launch your tak sequence. One way to check if your deployment is complete is to head to Monitoring, then Distributio...
0
1
5,252
2013-01-12T07:57:17.813
pipeline_ops
serverfault.com
840,431
2 networks, but name resolution fully works only for one network
I have a Windows 2012 Server with DNS configured, on vmware workstation. Name Server is "ad.nuglab.local", with "Host (A)" record of 172.16.202.109 and 192.168.1.111 On my host PC, with dns server set to 172.16.202.109, I can ping/nslookup/browse any hosts configured on Windows Server, like "esxi-1" that points to 192....
My host PC is physically on the "172..." network, and only virtually for "192...". The Windows Server VM is bridged on the 172 network, and have a "host-only" interface for the "192..." On the host PC, I needed to add the DNS server address on the "192..." network adapter (not the "172...").
0
0
133
2017-03-24T16:16:34.153
infrastructure
serverfault.com
122,610
Problem creating a transaction in an SSIS package
I'm working on a package that needs to use a transaction but I'm currently getting the following error: [CODE] Here is what I know so far: 2012 package I'm running in package deployment The TransactionOption property is set to Required Running against a 2008 R2 instance I can create a distributed transaction manually o...
I solved the problem. I had read in several places that DTC needs to be started on the source machine as well as the destination. So in my place my workstation as well as the server the instance is on. Once I had turned MSDTC on I received a new error: [CODE] With the important part being [CODE] Once there I did additi...
15
12
9,131
2015-12-01T22:53:41.973
pipeline_ops
dba.stackexchange.com
716,097
Why are 093/8 IP adresses in both US and Europe?
According to this page of the IANA website, the IP addresses 093/8 are allocated to RIPE NCC (European network). However, when I use websites to locate IP ( like this one ), they tell me that 93.184.216.34 is in the USA. So I have a little bit of trouble understanding why is this RIPE NCC IP address located in the US. ...
The address block 93.0.0.0/8 is allocated to RIPE NCC. From this block, RIPE NCC has allocated a couple of smaller blocks to Edgecast, namely 93.184.208.0/24 through 93.184.219.0/24 and 93.184.220.0/22. Once allocated, Edgecast is free to use these blocks wherever they see fit.
1
4
109
2015-08-23T11:00:39.357
infrastructure
serverfault.com
18,922
Performance differences of using Remote Block Volume in Kubernetes?
In Kubernetes, there are various types of PVs, and local PV is mentioned as the most performant type among those. refs) https://kubernetes.io/docs/concepts/storage/persistent-volumes/#types-of-persistent-volumes https://blog.mayadata.io/why-use-localpv-with-nvme-for-your-workload When we utilize remote Block Volume (su...
If performance is a critical consideration, mounting a remote block volume directly to the node and using local PVs can potentially offer better performance compared to dynamically provisioned PVs through CSI. This is because data access is local to the node and may incur lower latency compared to network-attached stor...
0
0
55
2024-02-14T09:12:32.753
pipeline_ops
devops.stackexchange.com