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 |
|---|---|---|---|---|---|---|---|---|---|---|
31,382 | Binary classification of every time series step based on past and future values | I'm currently facing a Machine Learning problem and I've reached a point where I need some help to proceed. I have various time series of positional ( [CODE] , [CODE] , [CODE] ) data tracked by sensors. I've developed some more features. For example, I rasterized the whole 3D space and calculated a [CODE] , [CODE] and ... | You are facing a very common problem: handling imbalanced data. For neural networks, typical procedures are: Having the proper metrics: global accuracy should not be used. Oversampling the minority class: randomly generate replicas of the minority class until the imbalance disappears.You can also perform data augmentat... | 9 | 10 | 2,225 | 2018-05-08T09:23:04.467 | airflow_errors | datascience.stackexchange.com | |
535,629 | Best raid configuration for my sql Server 2005 | I have SQL SERVER 2005 database running on windows server 2008 with following configuration SERVER:HP Proliant ML380 G7 CPU: 1 RAM: 10 GB of RAM HHD: 3*300 GB HHDs with RAID 5 configuration. It has 10 live databases and 10 history databases with different sizes from 500MB to 6GB. These databases have around 100 users w... | It would be very helpful to have such statistics. Usually, I try to estimate number of IOPS an application may require to run smoothly and to be responsive. With such information, I can then perform a kind of capacity planning to evaluate which RAID level is optimal to use and to estimate number of spindles/disks to ac... | 0 | 1 | 497 | 2013-09-02T11:35:42.143 | database_errors | serverfault.com | |
7,910 | How to find the fixpoint of a loop and why do we need this? | I know, that in [CODE] of program, we need to find [CODE] to analysis the info [CODE] provided. I have read the wiki as well as related meterials in the book [CODE] . But I'm still confused with the concept [CODE] , so my questions are: could anyone give me some explanations of the concept of [CODE] ? What is the pract... | Most of this comes from Wikipedia and these lecture notes . Wikipedia defines a fixed point this way: In mathematics, a fixed point [...] of a function is an element of the function's domain that is mapped to itself by the function. [...] That is to say, c is a fixed point of the function f(x) if and only if f(c) = c. ... | 2 | 4 | 935 | 2014-03-03T16:17:35.833 | data_quality | sqa.stackexchange.com | |
483,392 | Majordomo: Duplicate mails due to being on more than one list | I have a debian server set-up with sendmail and majordomo to handle incoming mail for some mailing-lists. Some of the users are in multiple lists and receive a mail twice when the mail is sent to both lists. Although not unexpected behavior it would be nice for these people to only receive the mail once. So basically t... | In your majordomo source code distribution there exists [CODE] . There you will find a suggestion for running sendmail with the -odq switch in order to have sendmail queue first, instead of trying immediately to send them. So in your [CODE] have the following line: [CODE] Sendmail expands the list that it has to proces... | 1 | 0 | 385 | 2013-02-28T12:12:23.703 | data_quality | serverfault.com | |
330,828 | Is there any way to improve performance on like searches that have the % to the left of the searched value? | I have a query that does a like statement on a column that stores fullpath locations of files on a computer. Example [CODE] Which never seems to use an index and is very slow compared to doing a fullpath = 'value' (obviously) But my question is, is there any way or ideas on how to speed up query results or get it to us... | FWIW, I don't think the previously provided duplicate questions were actually duplicate of this specific question and instead answered a more complex tangentially related question on how to improve searching with double wildcards ( contains type of searches). Some of the answers probably can be applied here as well, bu... | 4 | 9 | 442 | 2023-09-01T15:25:47.850 | database_errors | dba.stackexchange.com | |
394,752 | Local Call Classification in CDR records from Cisco CallManager | I am trying to analyze our telephone usage to evaluate our phone plan with our PRI provider. I have enabled CDR records within Call Manager and am able to generate "Gateway Summary" reports which appears to create a report of total number of calls in each "Call Classification" group (On Net, Internal, Local, Long Dista... | I contacted Cisco TAC support, and they were able to track this down: Log into the Cisco CallManager Serviceability page. In the Tools menu, choose CDR Analysis and Reporting From the System menu, choose System Parameters, then choose Dial Plan Configuration The filters/patterns defined here will drive the classificati... | 1 | 0 | 637 | 2012-06-01T15:11:38.663 | infrastructure | serverfault.com | |
106,444 | MySQL GRANT PROXY - what does it mean? | I run: [CODE] and I see [CODE] From mysql docs: https://dev.mysql.com/doc/refman/5.5/en/proxy-users.html This enables the external user to be a proxy for the second user; that is, to have the privileges of the second user. In other words, the external user is a “proxy user” (a user who can impersonate or become known a... | MySQL User Authentication is a rather lengthy process to explain. I refer you to my 3.5-year-old answer to MySQL error: Access denied for user 'a'@'localhost' (using password: YES) so you can see the steps a user takes to authenticate. What the PROXY grant does is allow one user to masquerade as another user and bypass... | 18 | 4 | 21,635 | 2015-07-09T12:31:19.270 | database_errors | dba.stackexchange.com | |
241,504 | net card not installed | i have many times try to install nic drivers but it is showing one error check old drivers and unload it. [CODE] pls send the answer my question , i amwaiting for u r message,, pls help me | You need install kernel source packages: [CODE] | 0 | 0 | 43 | 2011-03-01T06:16:53.500 | infrastructure | serverfault.com | |
24,069 | Count total where owner_user_id = some_value and deleted_by_owner = 0 or to_user_id = some_value and deleted_by_to = 0 | I didn't know if this is possible using just a query or if I need some procedural logic on this one. I have this table: [CODE] And a simple record for testing purpose: [CODE] For the query: [CODE] If [CODE] then the query should return this row if [CODE] or [CODE] , is the same as [CODE] but always checking in pairs as... | Unless I'm misunderstanding your question, I think this solves your problem: [CODE] Note the addition of [CODE] and [CODE] to denote the order of operations for the [CODE] and [CODE] operators. To clarify, order of operations dictates that [CODE] conditions will be evaluated prior to [CODE] conditions. My intent with t... | 2 | 1 | 119 | 2012-09-11T01:33:55.087 | warehouse_errors | dba.stackexchange.com | |
288,370 | Best way to synchronize data between two different databases | I have to implement data synchronization between two big databases which have completely different structures. Basically, I need to grap some data about products in different tables in the first database and re-arrange them for other tables in the second database. Creating my products on the first time is not very comp... | This is pretty much what I have been doing or a living the past few years, and my gut instinct is that the time to read 500,000 items from the source database and sync in the destination will not take as much time as one might think and the time taken to read the "key" fields, compute the MD5 hash, and cross check with... | 42 | 17 | 135,973 | 2015-07-01T07:21:14.427 | api_errors | softwareengineering.stackexchange.com | |
499,429 | Setting up SSL: Recompiling Apache with mod_ssl | I've got an old machine running Ubuntu 12.04 32bit in my office to host our internal wiki and bugzilla sites. We're also testing our new php app with it and I'm trying to get SSL working with a self signed certificate on it so that we can test everything before we make it live on our production server (which is also ru... | It seems your Apache is listening on port 443. I think you need to enable SSL virtual host which you probably have not done: [CODE] and [CODE] . Check if you have this vhost enabled with: [CODE] . BTW: [CODE] is an effect of requesting [CODE] - you went to SSL port with non-SSL request. | 0 | 1 | 6,366 | 2013-04-15T09:07:45.467 | infrastructure | serverfault.com | |
9,622 | Decision to separate or combine Test Procedure and Test Case documentation | Background: Combining separate Test Procedure and Test Case documentation has advantages, but so does leaving them separate. IEEE std. 829 mentions system level of complexity as a contributing factor to the decision to combine. From experience, it seems the tradeoff in terms of complexity is whether including test proc... | I have wrestled with this problem a number of times. For instance, I have had a number of occasions where I needed to hand each member of a group of testers a stack of paper to describe the steps they had to take. The first time a tester needs a detailed procedure it has to be there for them to read immediately. Simila... | 2 | 0 | 614 | 2014-09-04T20:09:20.993 | data_quality | sqa.stackexchange.com | |
412,542 | SCCM 2012 - some remote clients unable to download some applications, 401.2 error | I've got a small SCCM 2012 deployment with about 35 clients attached. Most of these clients are in the same network as the single SCCM host, but three are about 1000 miles away. Oddly, these three clients have stopped being able to download some application packages over BITS. Publishing a new package works for all the... | Unsure if you resolved this yet, I'm dealing with similar issues but have found this article to help with some, but not all, clients having this issue. http://support.microsoft.com/kb/2682514 | 1 | 1 | 35,737 | 2012-07-30T14:47:16.520 | api_errors | serverfault.com | |
917,875 | Error configuring 2 network interfaces on the same server | I'm setting up a server with 2 network interfaces each one with it's IP address. I have 2 different programs listening on port 8080 (each one on each IP address) and I'm using iptables to redirect traffic from port 80 to 8080. The problem is that I'm unable to actually connect to the IP address of eth1 from another com... | I think you need to create individual rules for the 2 NICs. I'd try something like this: [CODE] | 1 | 1 | 134 | 2018-06-23T05:03:22.320 | infrastructure | serverfault.com | |
838,251 | Nginx: non-www site inaccessible via SSL (connection refused) | I'm trying to get a site secured with SSL, using nginx on Ubuntu 14.04. Here's what my server block file looks like: [CODE] The 3rd block is the "main" block which serves the www url with https (works fine). The 1st block redirects any http and non-www requests to the 3rd block (works fine). The second block does not w... | Solved -- This was a case of failure due to magic. The domain name registrar control panel has a www/no-www convenience setting which causes a redirect that overrides the DNS settings. Disabling the convenience setting (i.e. choosing "no preference") made the actual DNS settings work. | 1 | 2 | 1,165 | 2017-03-14T17:35:14.607 | api_errors | serverfault.com | |
162,427 | No data coming from the perfmon statistic SQL Server: Replication Dist | I am trying to get the statistics from my 2008 sql server replication SQL Server: Replication Dist. statistics, but no data is coming even while replication is in full swing. I am using SQL 2008 peer-to-peer replication and use a load test on our web site to generate the load on the database that is replicated. There a... | is the server running as a default instance? if not then look for the perfmon object that is in the form of MSSQL$instancename:Replication Dist. | 0 | 1 | 126 | 2010-07-20T22:52:03.340 | pipeline_ops | serverfault.com | |
48,552 | SQL Server 2005 login issue | I have SQL Server 2005 SP3 running one server with mixed mode authentication. I tried to connect to the database engine, using the SQL Management Studio installed on the same machine. But I get a login error that says [CODE] Strangely I'm able to connect to the Database through SQL Server Management Studio running on a... | Okay, I solved the problem myself. Thank you all for your answers. I found this link which solved the problem http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ff81398a-c959-4d87-89b1-57f6aa843bab/ Basically, I started Reporting Services configuration by going to Start > Program > Microsoft SQL Se... | 0 | 1 | 176 | 2009-07-31T14:17:45.350 | database_errors | serverfault.com | |
274,778 | Estimating run time of algorithm | For instance if i have an algorithm that is O(n 2 ) and it will run for 10 seconds for a problem size of 1000. Now if i were to double the problem size to 2000 i want to know the approximate run time in seconds. I know the answer for it but i want to understand the logic on how to get to the answer. So here is what i a... | Complexity classes such as [CODE] or [CODE] are not meant to calculate actual running time. Instead, they are meant to compare how different algorithms scale when we change the input size. For example, here we have two algorithms that apply [CODE] to each matching item: [CODE] Obviously, the 1st algorithm has [CODE] co... | 3 | 11 | 30,263 | 2015-02-28T16:40:10.057 | api_errors | softwareengineering.stackexchange.com | |
157,450 | No Event Logs in Diagnostic on Windows Azure? | I'm trying to get .NET Remoting to work on Windows Azure, with a web role. I get a 500 internal server error when trying to access the URL. I've tried using Azure MMC ( http://code.msdn.microsoft.com/windowsazuremmc ), but I'm only able to get Infrastructure Logs. No Event Logs, Azure Logs or similar. What am I doing w... | Here's an example of using .NET remoting on Windows Azure - http://blogs.msdn.com/b/cdnisv/archive/2010/05/31/net-remoting-on-windows-azure.aspx Regarding diagnostics, you can check this nice post by Neil Mackenzie. Hope it helps. | 1 | 0 | 301 | 2010-07-04T20:48:40.807 | api_errors | serverfault.com | |
809,666 | SSL certificates and DNS CNAME | I am wondering if an SSL certificate would work and be accepted in the following circumstances. In each of these circumstances, one DNS name returns a CNAME record for another DNS name, and the client is connecting to the server based on the alias name: 1) The DNS name [CODE] returns a CNAME record for [CODE] . The ser... | The only thing which matters for certificate validation is the domain name used to connect. Since this name does not change on DNS CNAME you get: The DNS name www.example.com ... web server ... certificate returned by the server is for only www.example2.com The browser will fail but might give you an option to override... | -1 | 3 | 2,648 | 2016-10-18T04:53:03.650 | api_errors | serverfault.com | |
868,355 | Different linux page cache behavior for servers doing the same work | I have two sets of servers w/128G memory, distinguished by when they were provisioned, that are behaving very differently while running the exact same daemon (elasticsearch). I am using elasticsearch for full text search, not log storage, so this baically a read heavy operation with minimal writes (less than 1MB/s). Th... | This ended up being an overly aggressive disk read-ahead. The well performing servers had a read-ahead of 128 kB. The poorly performing servers had a read-ahead of 2 mB. Wasn't able to track down why exactly the read-ahead was different, but the most likely cause was that the new machines had LVM in front of the softwa... | 6 | 3 | 670 | 2017-08-12T22:03:17.630 | api_errors | serverfault.com | |
916,667 | Postfix + Dovecot + Sieve + forwarding + sieve | Let's suppose my domain at exampleserver.com. I have following sieve rule: [CODE] user@exampleserver.com wants mail forwarded to xxxxx@gmail.com. It is done via /etc/postfix/virtual as [CODE] The forwarding is perfectly good, but mail sent to user+Something@exampleserver.com is now forwarded to user+Something@gmail.com... | Postfix' aliasing via [CODE] is performed before any [CODE] proceeding. Therefore you have to disable postfix aliasing completely and forward messages by dovecot's sieve only. There is number of modes address is compared against the pattern: [CODE] [CODE] means the strict matching the whole recipient's address [CODE] m... | 0 | 1 | 3,617 | 2018-06-14T13:26:37.543 | infrastructure | serverfault.com | |
659,445 | Sensu/Uchiwa - No 'checks' listed | I've configured Sensu and Uchiwa using Puppet. I have clients reporting in, and raising events when checks fail. I have checks in my server's [CODE] folder, created by Puppet, for things like ping checks etc. Example: [CODE] If I look at the server in the 'clients' page of Uchiwa (because it's also running the sensu-cl... | The solution for me was to restart the sensu-api service. Once I did that the publish-subscribe checks appeared in my Uchiwa dashboard on the Checks screen. I'm using Sensu 0.21, Uchiwa 0.14.1 on CentOS 7.2. I admin I don't know why the sensu-api service restart is necessary. I tried separately restarting the sensu-ser... | 3 | 2 | 1,716 | 2015-01-14T14:16:11.263 | pipeline_ops | serverfault.com | |
33,191 | How to use the time-sampled data(50 samples/Minute) as input for classifying the output | I am working on a classification problem and the data I have is a time sampled data(50 samples/Minute). [CODE] I need to classify whether it is a walk or run for each set of 50 samples Any idea/suggestion on how to deal with this problem or how to take these 50 samples as Input and map it to single output and then trai... | Try with LSTM-RNN for sequence classification, which is your case. This is a very good tutorial . | 1 | 2 | 48 | 2018-06-15T07:37:52.897 | data_quality | datascience.stackexchange.com | |
403,091 | forEach over branching over null check? | I was watching Zoran Horvat's "Making Your C# Code More Object-oriented" on pluralsight paywalled . And he says that instead of : [CODE] We should have a list that has either 1 or 0 no. of items of that type: [CODE] If the list has no objects it would not perform operation but if it does then it will have perform the o... | Wouldn't a forEach be same as if here? As far as branching goes yes. Loops have branches. If you seriously need to avoid branching (maybe because of some branch prediction optimization issue) the branchless fix is the null object pattern where you create a class that has a [CODE] method that does nothing, quietly. Do t... | 1 | 4 | 9,758 | 2019-12-30T13:02:35.297 | api_errors | softwareengineering.stackexchange.com | |
286,660 | Best way to handle blank dates | I'm trying to create a contact book application, and currently I'm working on a class called Person. One of the fields of person is dateOfBirth, however I don't know how to handle unknown dates. Until now I have been using java.time.LocalDate for dateOfBirth and I've been initialising the field to null at instantiation... | Use the class [CODE] This useful container class was introduced in Java 8. It is a wrapper used for values which you might or might not know. It is unboxed with various methods which all allow you to handle the case that the value is unknown in a graceful manner. [CODE] unboxes the LocalDate, but throws a [CODE] in cas... | 9 | 9 | 52,707 | 2015-06-13T09:14:21.250 | api_errors | softwareengineering.stackexchange.com | |
290,180 | Is there still any legitimate reason (in 2011) to use proxy servers instead of NAT for sharing an internet connection? | Proxies were around before NAT, and so early on in the internet, they were popular ways to get an entire network online with only a single public IP. NAT initially required complex software and/or hardware to get it working, and so understandably some organizations still used proxy servers to provide access. In the las... | Proxies are still used for a few main reasons: Content filtering Authentication Caching While NAT and proxies are similar in some respects, they operate at different layers and as such, differ in many ways and they fulfill different needs. NAT is largely a layer 3 technology and HTTP proxies are a layer 7 technology. | 2 | 8 | 2,783 | 2011-07-14T04:37:23.220 | api_errors | serverfault.com | |
1,043,412 | Ubuntu 18.04, 1.5G Swap 100% used (32G RAM), soft RAID1. How to increase SWAP size? | I have a production server, recently, I have seen server becomes slow sometimes, and SSH is slow, and once get into the terminal, even press ENTER is slow. When the server is OK, I checked the memory usage and CPU, CPU looks fine, RAM looks fine except SWAP is 100% used. I googled it seems SWAP should not be 100% used,... | The simplest is to create a swap file. To create a file of suitable size. Based on your question, you only have a lot of free space available in [CODE] , so it makes sense to place it there [CODE] The size is bs*count, in this case 10GB. Modify count to suit your needs. After creating the file (this could take a while)... | 0 | 2 | 777 | 2020-11-21T10:39:24.663 | infrastructure | serverfault.com | |
162,805 | NULL out value in table 1, depending on a time-log in table 2 | I have two tables in MS SQL Server 2012. The first is a minute by minute production record which looks like (can't guarantee every single minute gets its own record, but never two records for one minute): [CODE] The second table is a journal-style log of whether to consider the [Produced] column from Table 1 or not. [C... | This will get you the result you want, but it's a strange requirement. If you want to make it fast, we'd need a lot more information, like table and index definitions, query plans, etc. "It's slow" isn't particularly helpful. [CODE] | 2 | 2 | 30 | 2017-01-31T22:39:33.443 | data_quality | dba.stackexchange.com | |
984,536 | httpd and curl: Configure https connection prom a p12 file form client validation | I'm deploying an httpd. I need to configure ssl in order to validate client according to its client certificate. In order to do that I've a [CODE] file containing private key, client certificate, and chain ca certificates: CA chain certs : [CODE] Client cert : [CODE] Client private key : [CODE] In order to split this [... | [CODE] | 1 | 1 | 9,257 | 2019-09-17T11:24:12.453 | data_quality | serverfault.com | |
541,701 | Repairing CentOS files permission | I've screwed my CentOS 6 server. I've ran chmod on a few symlinks and changed permissions important file such those in /bin and all commands even clear says Permission Denied. Now It is unable to boot. How do I restore permissions? | Honestly, boot a live cd and grab a backup of the files you need. Then head to re-install town.... :( You MIGHT be able to install over your broken version and only break a few [hundred] things... | -2 | 2 | 1,014 | 2013-09-26T00:05:03.980 | database_errors | serverfault.com | |
236,240 | NSclient++ NRPE issues | I have had NSclient++ working with Nagios for a while now. Recently I started testing Nagwin just to see how it would work, out of pure curiosity. I stopped checking a test server with my main Nagios config, set NSclient++ to NRPE mode, and pointed Nagwin at it. It worked great for a few hours then suddenly I started s... | This might seem like a silly answer but I had a similar issue and it turned out to be a bug in the version of nsclient++. I would recommend upgrading to the latest stable version and see if the issue still occurs. If a fresh configuration file isn't working it does sound like an issue with nsclient++. In this case it m... | 0 | 2 | 6,047 | 2011-02-16T14:37:02.370 | infrastructure | serverfault.com | |
451,174 | Does turn "global state" into "passing parameter" increase the whole system coupling or not? | As far as I know, coupling is about counting number of other classes in a class, so for the following program that emulates a UI program that shows "WelcomePage" at start and also pops a AboutDialog that requires token to fetch information to show, lets count the number of "other classes": Global state version: [CODE] ... | In my answer to the question Are open-closed principle" and "less coupling" rationales to use global state? , I was not talking about metrics which measure the number of direct dependencies exclusively, like efferent and afferent coupling. What I had in mind was simply "can a component or class like [CODE] put into a l... | 0 | 1 | 326 | 2024-02-22T07:52:02.327 | api_errors | softwareengineering.stackexchange.com | |
74,406 | Does it make sense to run a cluster of database servers in docker containers? | I'm currently looking into setting up a database cluster (MySQL Galera or Percona) but I have only 2 machines. However, according to many sources I've read (This article from the Mariadb KB), the minimal node size in the cluster should be 3, to avoid split brain conditions. In order to avoid a split-brain condition, th... | Galera (for MySQL, Percona XtraDB Cluster or MariaDB Cluster, they are essentially the same but from different vendors and base mysql version) can work perfectly with 2 machines, and it is a very common setup for substituting standard MySQL replication. Requiring 3 nodes is not a requirement of Galera, but of any clust... | 5 | 4 | 3,722 | 2014-08-20T05:48:59.413 | pipeline_ops | dba.stackexchange.com | |
874,025 | How to hide part of path in nginx error log | It is possible to configure nginx to output in error log specified part of files path? F.e: [CODE] The user has chroot on "/home/user/", so "favicon.ico" for this user has this path: "/www/favicon.ico". Real path of file is little bit confusing. | This error message is being output by the PHP FastCGI server. To make it use paths relative to the chroot, run the FastCGI server in the chroot. (This will also sandbox the PHP scripts, which is probably a good thing!) | 3 | 1 | 380 | 2017-09-16T19:04:15.447 | infrastructure | serverfault.com | |
312,795 | MySQL/Aurora increase column size behavior | I would like to increase the size of a column. The column currently is varchar(1000) and will be changed to varchar(2000) . Null value is already permitted. The tables has about 2 millions of records, huge reads and many writes (less than reads). MySQL/Aurora version = 5.7.mysql_aurora.2.09.3 1 - I wrote this command: ... | If you are using Engine=MyISAM, you should convert to InnoDB. With InnoDB, you probably don't need [CODE] . Why not switch to [CODE] (in this case)? For long-running [CODE] , consider using Percona's [CODE] . Increasing a [CODE] is faster in new versions of MySQL (including, at least, 8.0) It is faster because it is a ... | 0 | 1 | 1,069 | 2022-05-31T23:41:35.203 | data_quality | dba.stackexchange.com | |
403,015 | Design of a Router/UrlMatcher | Note: I am not sure if the question belongs to this particular stackexchange . If it does not, please let me know and I will delete it here and post it on the relevant exchange. Though it seemed more suited to this exchange than StackOverflow. I am trying to create a REST server. My problem is to optimise a router/rout... | If I understand correctly, your problem is directly solved by Knuth Morris Pratt algorithm for pattern matching; way more efficient than regex processing, with the additional advantage that you can precalculate the matching table for all possible routes. https://en.wikipedia.org/wiki/Knuth–Morris–Pratt_algorithm | 1 | 1 | 193 | 2019-12-27T19:13:55.830 | api_errors | softwareengineering.stackexchange.com | |
401,817 | Any way I can correct DNS spoofing against our domain | This morning I found out that our domain and subdomains have been poisoned on the 4.2.2 and 4.2.2.1 DNS servers along with others I think, though I have not confirmed others yet. Using OpenDNS resolution works correctly. I have updated our local DNS servers and cleared their cache which has fixed things internally. The... | Sounds like you need to implement DNSSEC . Since you haven't given many details about your setup, it's difficult to recommend a software solution, but googling DNSSEC with your current setup should yield you some good tutorials on how to do it. | 6 | 7 | 1,682 | 2012-06-24T19:00:10.503 | infrastructure | serverfault.com | |
286,178 | Is there any way to automatically prevent running out of memory? | I am often running out of memory on my VPS ubuntu server. I wish there was a way to simply restart apache2 when it starts running out of memory, as that seems to solve the problem. Or am I just too lazy to fix the problem? I do have limited memory on the server... Okay, more information: I'm running apache2 prefork, he... | Monit can do this. You could use a config line such as: [CODE] (Modified from this config example on monit.com ) This could play into the ulimit option mentioned earlier as well. Restarting the service is a bandaid. You should instead try to find out why it's leaking memory. | 5 | 4 | 3,307 | 2011-07-01T15:04:07.847 | infrastructure | serverfault.com | |
372,772 | Circular dependency in composition root | I have a MDI MyMDIWinForm that needs an instance of IGUIErrorHanlder for error handling, At the same time IGUIErrorHanlder depends on the MDI MyMDIWinForm for having a place from where to launch pop-ups and other stuff. [CODE] I want that MyMDIWinForm has a instance of FormGUIErrorHanlder and that FormGUIErrorHanlder h... | Can you not just use delegation ? [CODE] | 0 | 1 | 269 | 2018-06-19T06:01:23.797 | api_errors | softwareengineering.stackexchange.com | |
613,963 | Is there anyway to find what php scripts consume more resources | I want to easily find load cause, Is there a way to display resource usage for php scripts like this. Cpu: index.php 30% something.php 10% ... memory: index.php 50% something.php 10% .. | New Relic is probably the simplest answer. Xdebug is also useful for profiling code, although it won't necessarily give you performance of one script verses another unless you manually profile each and then compare the traffic each script gets. Another PHP profiler is XHProf , I haven't used it myself but I think it al... | 0 | 0 | 803 | 2014-07-20T10:29:18.953 | infrastructure | serverfault.com | |
480,280 | Used malwarebytes now i have missing .dlls | I did a maleware search and got rid of few trogans but now I kep getting messages like error in C:\documents and settings\lindam\application\ntcdsr.dll miss entry c:\documents and settings\lindam]application\ntcdsr.dll c:\documents and settings\lindam]application\ipsuiz.dll missing How do i fix this.. | When your computer is infected you can never trust it to work correctly ever again. You should have reinstalled Windows in the first place, and you should still reinstall Windows now. PS> Those errors look very much like the virus trying to reinstall itself. You're almost certainly still infected . This is exactly why ... | -1 | 3 | 76 | 2013-02-19T13:56:25.810 | infrastructure | serverfault.com | |
912,529 | Is load average affected by lack of memory? | I've read several articles about load average and all explained that the load average is the amount of processes in running/waiting to run state on CPU , so it's actually the CPU's run queue + the processes waiting for I/O . I then saw a blog post about lack of memory being a 3rd reason . Is that correct ? Turns out th... | Yes, lack of memory can cause swapping which means processes will stick in the processors queue for much longer and start building up. I've seen servers go up to hundreds of loadavg because of swapping. | 2 | 1 | 645 | 2018-05-16T15:24:05.563 | infrastructure | serverfault.com | |
406,079 | Testing the wording of an Exception message | Doing a code review, I ran into this assertion in a unit test: [CODE] I feel that testing the literal text of an Exception is bad practice, but I'm unable to convince the author. (Note: this is not localized text; it's a String literal in the code with the item ID as a parameter.) My reasoning: If we decided that, e.g.... | I feel that testing the literal text of an Exception is bad practice Never try to interpret the wording of an Exception message. They're just too darned easy for somebody [else] to change! If the handlers of an specific Exception need specific data, then these should be added as custom properties on a custom Exception ... | 40 | 37 | 10,284 | 2020-03-04T07:47:05.497 | api_errors | softwareengineering.stackexchange.com | |
1,012,501 | Cannot PING between two network interfaces | I am playing around AWS EC2 instance and I came across a strange problem. I created an EC2 instance (Instance A) with 2 network interfaces, and the following is the routing table: [CODE] Now I try to ping from interface eth0 to eth1 using the command: [CODE] , but it did not work. Then I use tcpdump to listen to icmp t... | Why would you want to ping from one interface to another? If you want to test them create a separate instance and ping them both from there. Remember that VPC network is not your usual ethernet segment but instead a routed network with one segment per device. It may sometimes be difficult to play tricks such as these t... | 1 | 0 | 536 | 2020-04-16T00:26:16.833 | infrastructure | serverfault.com | |
323,531 | Fail2ban not configuring properly | I have just installed a fresh version of iptables followed by fail2ban, but fail2ban fails to do anything with iptables and I am stuck with no changes being made, this fail2ban not working properly. Any help please? Thanks! My iptables -L: http://pastebin.com/srks3DyH | Your [CODE] -output looks normal, for a fail2ban-setup that haven't detected anything bad going on. Verify the following: is fail2ban running? Run [CODE] , you should see a [CODE] -process. Does [CODE] have any content? (If this file does not exist, check [CODE] for logtarget.) Does [CODE] exist? Does [CODE] exist? If ... | 1 | 4 | 2,901 | 2011-10-21T03:21:19.077 | infrastructure | serverfault.com | |
741,861 | Monitoring Debian 5, 6, 7 hosts with icinga2 | I successfully installed icinga2 and icinga2-web on Debian 8. The problem is that I need to monitor servers with Debian 5, 6 and 7 installed. Is it even possible? If I understand correctly - I need a icinga2 client installed on host I want to monitor and there is no such thing like specific client in icinga2 - one need... | While it may be confusing that you'd just install the icinga2 binary package on a node you're calling a "client", it is reasonable to do so. That way you'll benefit from the following things: Same setup for all nodes in your (cluster) distributed setup, be it master, satellite, client, agent, or any other role you'll a... | 1 | 3 | 874 | 2015-12-09T14:20:53.937 | pipeline_ops | serverfault.com | |
230,043 | SELECT very slow when JOIN and LIMIT are specified but no/few results found | I am running into an issue where the query planner does not take into account how a JOIN effects the frequency of particular values. For some context: I am storing sessions in an append only log where each session will have multiple entries, (with all data of the session) one for each update. [CODE] To keep track of th... | There are several things that you can try: Add the [CODE] in [CODE] table. Since this table is like a "cache" of the latest session, it makes absolute sense to do so (@jjanus suggestion). The [CODE] would all involve columns from the same (and smaller) table, so a suitable index could be used effectively (and then the ... | 3 | 1 | 136 | 2019-02-18T13:06:30.157 | database_errors | dba.stackexchange.com | |
463,951 | Apache available on LAN but get timeout over internet | I have a LAN network and a server runs on 192.168.1.90 The apache listen parameter is set to 192.168.1.90:80 I have enabled NAT to forward all http port 80 request from the web to the server at 192.168.1.90 for a different machine 192.168.1.3 I can access the server by typing in 192.168.1.90 in the browser address bar.... | Ok at last figure it out, was issue with iptables firewall. I just reset the entire firewall and then used my own rules :) you can use webmin if you need a gui, I personally prefer the terminal. | 0 | 0 | 1,073 | 2013-01-08T09:52:30.730 | infrastructure | serverfault.com | |
21,381 | VMware Fusion: Stale NFS file handle w/o NFS | Here's a pretty strange one: I am getting the following error in a VMware Fusion Virtual Machine: [CODE] The weird part being that this is not actually an NFS mount; I don't even have the NFS client installed on this server! I'm not really sure where to go with this as mount -O and restarting don't fix anything. I've r... | I've seen it relatively often that a "stale NFS file handle" really indicates that a file system is corrupted or unclean - try running [CODE] on it. | 1 | 4 | 2,109 | 2009-06-07T05:51:51.867 | database_errors | serverfault.com | |
1,002,671 | How to hide tempfs from the df output on CentOS 7 in ssh? | I know this can be done because I've done it before on previous servers but I forgot how and web searches did not come up with the result. I know what tmpfs is and that you should not remove it. What I want to do is to hide it. Basically I did something like modifying the output so that when you ran the df command it w... | The df from GNU coreutils have this option: [CODE] You can run df -x tmpfs so you will get this result: [CODE] as you can see tmpfs is omitted from the listing. | 0 | 4 | 2,443 | 2020-02-11T17:45:42.480 | infrastructure | serverfault.com | |
169,229 | Does Amazon Redshift support MVCC? | According to documentation , Amazon Redshift is derived from PostgreSQL 8. PosgreSQL 8 supports Multiversion Concurrency Control (MVCC) which is in my understanding achieved on physical level by appending new row versions rather than updating in place or marking rows for deleting rather than deleting rows in place. Adv... | I found an answer in Redshift documentation soon after asking the question. The chapter is called Managing Concurrent Write Operations : Amazon Redshift allows tables to be read while they are being incrementally loaded or modified. In some traditional data warehousing and business intelligence applications, the databa... | 0 | 1 | 1,241 | 2017-04-05T16:50:10.243 | warehouse_errors | dba.stackexchange.com | |
203,250 | Getting specific key values from JSONB into columns | In this query [CODE] a JSONB column: [CODE] I have data like this: [CODE] I would like to specifically names to a column, value to another column. Desired result is to select attribute and put them in 2 columns "name" "value" as column name, and the contents listed under it as rows. How can I do this? I read a lot of w... | Not sure about your precise objective. The query you display says you want to count identical values in the column [CODE] and list the keys "name" and "value" in separate rows for each. This query would do that: [CODE] dbfiddle here Assuming that [CODE] the [CODE] and there is a [CODE] constraint from [CODE] to [CODE] ... | 1 | 0 | 2,104 | 2018-04-06T15:28:56.027 | database_errors | dba.stackexchange.com | |
12,294 | How do you test your unit-tests for false negatives? | How do you test your unit-tests for false negatives (tests that pass but should have failed). For example, I am writing a mission-critical class in JavaScript. To make sure every little nook and cranny is covered, we have well over 300 unit tests for it. From time to time, bugs are introduced but one or two relevant te... | There are two (actually both are very similar) techniques in order to reveal the tests which tend to be "false/positive" ones – Error Seeding and Mutation Testing. The both principles are based on introducing the errors in the application's program code, mainly in the places where it will have the most dramatical effec... | 6 | 7 | 2,313 | 2015-02-27T12:26:51.197 | data_quality | sqa.stackexchange.com | |
295,567 | PHP file permissions | This question may sound trivial, but it's been giving me trouble. I've written two simple php scripts for a web interface, and they only work with other being given read and execute permissions. I don't understand why the read permission is necessary. Can someone explain or direct me to a reference? | PHP isn't executed it is 'interpreted' by the php executable. To that end your .php files do not need to have execute permission set. They do though have to be read by the php interpreter so they have to have read permission set. | 0 | 3 | 102 | 2011-07-29T16:25:46.577 | infrastructure | serverfault.com | |
1,022,273 | Dante SOCKS server with two external interfaces (e.g. Wired Ethernet and Wi-Fi) | I want Dante to transparently choose between either of the two interfaces [CODE] (Wired Ethernet) and [CODE] (Wi-Fi) regardless of their status (up or down). That is when wired, it should choose [CODE] indeed, when [CODE] is added, it should preferably stay on [CODE] (or maybe do some other clever stuff, I care less ab... | For the time being, I went with [CODE] , what a gem! Essentially, [CODE] does the trick without any hassle about binding any particular outgoing interfaces. I got the following response from Michael Shuldman (maintainer) on the official mailing list for Dante server [CODE] : Perhaps there is no technical reason, but in... | 2 | 2 | 2,421 | 2020-06-20T13:02:11.090 | infrastructure | serverfault.com | |
761,431 | How to make HAProxy wait for successful health check before bringing server out of maintenance mode | I am using HAProxy socket communication to put my backend into maintenance mode before bringing the web server down for maintenance via this command: [CODE] The problem is that when I mark the backend available again via the socket enable command, HAProxy does not wait for any successful health checks before sending re... | Using [CODE] prior to putting the server back in service with [CODE] appears to do what you need. The server would eventually be taken out of service by subsequent health checks, but that doesn't help if the server was healthy when you took it out, but not healthy when you bring it back in, since HAProxy appears to ass... | 2 | 1 | 2,788 | 2016-03-03T21:10:54.920 | infrastructure | serverfault.com | |
213,608 | Enable TLS 1.2 for SQL Server 2016 database mail | I have been puzzled by this issue for almost 1 week. Hopefully someone in our community has experienced the same issue and already found a solution. So here is my problem: As per our company policy, we want database mail to be able to send emails over port 25 with TLS 1.2 enabled and with TLS 1.0 & TLS 1.1 disabled. Ou... | Since it seems nobody can answer this question, I opened a support case with Microsoft, and still it took almost 1 week for MS support to come back with an answer as he went through various internal resources to get the definite answer. The summary is: SQL Server Database mail uses System.Net.Mail to do the work, the S... | 24 | 5 | 52,369 | 2018-07-30T20:27:28.383 | api_errors | dba.stackexchange.com | |
119,650 | Unique code based on category - a sort of auto_increment | I have to create a unique code to every user registering. The thing is that the unique code needs to be generated based on which city the user is from. So the tables I have are: [CODE] [CODE] is for unique identification of users in DB. [CODE] is the readable code generated for the use of users. They access their accou... | Assuming you are using an ACID compliant engine (i.e. InnoDB) the "get max, add one, then insert" method should work if wrapped in a transaction. I would query the requirement for the user code to be a specific item though given you have a user ID which is presumably an auto-incrementing integer. If there is no need fo... | 0 | 1 | 241 | 2015-10-30T11:01:08.447 | database_errors | dba.stackexchange.com | |
752,412 | teamcity, setup vcs root using bitbucket (git) behind proxy server | I've installed TeamCity on a Windows Server 2012 box behind a corporate firewall that requires user authentication via a proxy server to access the internet. I want to connect TeamCity to Bitbucket (git) which hosts our projects, to pull down the code and build and deploy within the corp network. Git on it's own via So... | So the answer to how to get TeamCity working behind a NTLM proxy server is to cheat. In the end I installed an application called CNTLM Authentication Proxy , this sits between TeamCity and my NTLM proxy and handles all the requests. When it works it's great I can connect to bitbucket and builds are triggered etc. But ... | 2 | 0 | 2,372 | 2016-01-28T14:12:49.717 | api_errors | serverfault.com | |
342,407 | Linux: How to port forwarding with iptables between 2 hosts on different networks? | I'm almost desperate... I've been reading for about 2 days iptables forwarding examples and I cannot do a simple port forwarding. I got 2 machines on different networks. server1 (S1 with ip 195.21.2.41) is at my house and server2 (s2 with ip 10.234.141.126) is at Amazon EC2. I need to forward all the traffic that goes ... | If you just need to redirect all incoming traffic to a specified port forwarded to your another machine try rinetd instead of iptables. It's a traffic redirection server. | 3 | 3 | 25,322 | 2011-12-19T15:21:31.357 | infrastructure | serverfault.com | |
613,386 | suPHP : proper use of the chroot feature | I started using suPHP recently, and I'm spending an amazing amount of time debugging the configurations and different compile options to get something that actually works . I've tried contacting the development team through their mailing list, but it's obviously made of ghosts... I am trying to use the [CODE] parameter... | Your problem is caused by the fact that you do not understand how chroot works. Once you chroot into /home/user, that's the new root and the paths are "relative" to it. So, if you have your files in /home/user/public_html and want to chroot to /home/user then the chdir should actually be /public_html and the fastcgi do... | 1 | 0 | 846 | 2014-07-17T16:41:11.383 | api_errors | serverfault.com | |
9,131 | How can I weigh observations differently that were provided for a time horizon? | I have 623 observations with one continuous dependent variable and 13 independent variables (continuous, categorical, and ordinal), defined based on researcher experience and literature review. I considered planning to do several regression analysis to estimate the dependent variable and study the predictive factors (i... | Therefore, the year of the observation was considered as a predictor variable which had a positive impact on the dependent variable. However, the year itself doesn’t have any effect on the dependent variable per se; rather, it is the other factors occurring in the same time period which result in improvements. This sou... | 4 | 1 | 221 | 2015-11-30T14:32:56.113 | data_quality | datascience.stackexchange.com | |
993,690 | GCP networking from VM compute to GKE service in same VPC | I have a compute instance VM named [CODE] in the same account, same VPC as a GKE cluster. I have a k8s service deployed: [CODE] On the VM I have mysql running on 3306 [CODE] from a k8s pod I can connect to the vm: [CODE] from the VM I can’t connect to the haproxy service using both internal and external IPs: [CODE] whe... | Pod IPs are routable, service IPs are not. Creating a VPC-native cluster : Cluster IPs for internal Services are available only from within the cluster. If you want to access a Kubernetes Service from within the same VPC and region, but from outside of the cluster (for example, from a Compute Engine instance), use an i... | 2 | 2 | 5,166 | 2019-11-28T21:14:21.313 | pipeline_ops | serverfault.com | |
216,114 | How to stop my wireless adapter from received dhcp from router (windows) | I have a windows 7 computer which is connected via vpn to an OpenVpn server which happens to be in another country. I have all internet traffic being routed from my computer through the vpn to the server. However dns queries are not going through the vpn, but are instead going directly to my isp's dns via a route outsi... | I've tried selecting 'use the following dns server addresses' and then just leaving them blank, but ipconfig /all shows me that this hasn't worked and i'm still getting dns form the router. So why don't you just configure there the IP address of the DNS server in the VPN? Leaving it blank makes your windows to keep the... | 0 | 2 | 240 | 2010-12-25T22:02:20.677 | infrastructure | serverfault.com | |
119,358 | Azure TempDB and Log files | I'm setting up an Azure D11 SQL Server to be used for a data warehouse. I can only attach 4 data disks and have done so, now I need to determine how to configure them and split the DB files. I'm trying to adapt MS guidance to my specific situation. Traditional Design: [CODE] I'm expecting their guidelines are for gener... | Azure IaaS is a different animal than traditional on-premise servers (virtual with a SAN or purely physical). You will get at best 500 IOPS per drive attached. General recommendation is to use storage pools to stripe multiple drives to increase throughput. With only four drives available on a D series, I would do the f... | 2 | 2 | 1,184 | 2015-10-27T21:15:47.117 | warehouse_errors | dba.stackexchange.com | |
445,446 | Encoding hierarchy information in objects | I am writing code that will assign entities to transaction. Each transaction has a counterparty entity. Requirements The entities should be (de-)serialisable (from pydantic models into JSON and vice versa) Individual entities will be stored in a database Entities have some hierarchy, e.g. a Supermarket is a type of Com... | Option 2b limits the levels artificially. At the same time, it forces all levels to have all the identifiers without ensuring consistency. And using the identifiers may require complex hard coded rules, which makes maintenance difficult. Option 2a is more powerful and convenient to use. But you loose the benefit of the... | 2 | 0 | 132 | 2023-05-09T07:31:21.967 | api_errors | softwareengineering.stackexchange.com | |
284,361 | database server on domain? | Are there any significant drawbacks to joining a SQL Server machine to the domain (i.e. security, performance, etc)? Our box is currently off the domain so we just manage users locally, but we were thinking that security may be a little stronger with it off the domain. Edit - Forgot to mention, this is a database serve... | Add it to the domain. Performance issues due to adding a domain would be so minute if anything at all. | 1 | 5 | 147 | 2011-06-27T01:33:23.650 | database_errors | serverfault.com | |
336,321 | How do I migrate Amazon EC2 Windows AMI (or instances) from one region to another? | I have a Windows EC2 AMI and instance in Virginia but want to migrate it to Oregon. My guess is an instance migration may be impossible since it's live but at least an AMI+EBS volume transfer would help! Also, I know this has been asked before, but none of the answers apply as of late 2011. Old solution 1,2 @ Is it pos... | Hmmm, no responses, so I went ahead and tried a variant of solution 4. The original solution as-is failed because of incorrect usage of netcat changes to the newer linux kernels in how they refer to Windows volumes So I'll document what worked for me. Setting it up We're going to use Linux to copy the Windows volume, b... | 4 | 7 | 2,517 | 2011-11-30T17:55:35.077 | hadoop_errors | serverfault.com | |
77,928 | What is the safest way to admin a firewall remotely? | What are you sysadmins doing to make sure that your ability to remote admin a firewall is the safest it can be? What is the safest setup you have, short of only using the console connection and having to physically touch the firewall? | Having a separate (ie isolated from production) Management Network is generally a good starting point - put the Firewall management port on that and disable in band management from the production interfaces if at all possible. Other than that if your firewall hardware has something similar to DRAC\ILO\RSA then enable t... | 2 | 3 | 203 | 2009-10-24T16:10:24.033 | infrastructure | serverfault.com | |
318,756 | Telnet exit status are equal for connection refused and connection tiemout | I create a bash script that check the connection to an host with telnet. That's the core code: [CODE] I want to have three separated message: ONLINE for telnet estabilished OFFLINE for connection refused TIMEOUT for connection timeout The problem is that both "connection refused" and "connection timeout" return an exit... | I'd be tempted to time it- if it comes back quickly assume refused, otherwise timed out. You may get some edge cases where it is refused just before time out period, but at least you should get reasonable results. Using bash's time command will give you what you need. You'll need to figure out what the thresholds shoul... | 1 | 1 | 3,786 | 2011-10-05T15:09:48.477 | api_errors | serverfault.com | |
60,932 | Update Statement takes forever to complete | I have table around 1250000 records, and 80 columns Table Structure [CODE] It has 2 Update triggers also to perform background calculations which will update same Table when status changes and some other conditions When I Update one is its column with normal where condition it is running more than 1 hour but still coul... | It's difficult to say exactly what's causing it without seeing the code for the trigger, but I'd bet some non-zero amount that misuse of the INSERTED and DELETED virtual tables is to blame. The thing about INSERTED and DELETED is that they have NO INDEXES. If you join them directly back to the base table (or to each ot... | 6 | 5 | 12,285 | 2014-03-14T12:32:52.297 | api_errors | dba.stackexchange.com | |
300,878 | Split a File into Multiple Objects Functionally | I want to read a file into a collection of objects. The data (it's a Leica PTX file if you're curious) is formatted as follows: [CODE] I.e. Two lines each containing a single float/double (as text) signal the beginning of a new item, and no other lines are exactly one number. It's easy to do if there's only one item pe... | If the whole file is small enough to fit into memory, then I think one way would be to parse the file into a list and then process the list piece by piece, something like: [CODE] As you surely noticed, this code is pretty repetitive, but you can simplify it using the state workflow (known as state monad in Haskell) fro... | 3 | 2 | 208 | 2015-10-26T09:33:04.937 | api_errors | softwareengineering.stackexchange.com | |
102,075 | Creating a 'shadow' database in MySQL | A while back, a friend told me of a facility that would allow us to "shadow" a production database using a local database. The term shadow may be incorrect (so please correct me if so) What I understand, and want to do is: When I make an update / insert, it only impacts the database that is local. I make a select state... | In Oracle Database world, what you are describing sounds like dNFS-based cloning ( http://www.oracle.com/technetwork/server-storage/hardware-solutions/o13-022-rapid-cloning-db-1919816.pdf [PDF], https://oracle-base.com/articles/11g/clonedb-11gr2 ). Start with a read-only copy of all the data files, which are read by th... | 4 | 3 | 2,872 | 2015-05-20T19:11:38.133 | database_errors | dba.stackexchange.com | |
926,317 | Oracle 12c 32-bit client and direct GOT relocation R_386_GOT32 against `lxecerr’ | When trying to install Oracle 12c 32-bit Client (12.1 or 12.2) on Oracle Linux 7.3 or 7.5, it throws error during linking static libraries: [CODE] 32-bit client error Not very specific, I found only one reference in Oracle KM Doc ID 2246237.1. Rootcause and resolution in there was: REASON SLES 12 SP2 ships with binutil... | Workaround is to downgrade the binutils: [CODE] After this, the libs can be compiled and linked: [CODE] I do believe that after finishing the installation, binutils can be upgraded again to the latest version (but not forget about this problem in case of installing the RSU). PS: I’ve raised SR 3-17356002141 : Error whe... | 1 | 0 | 296 | 2018-08-14T11:52:00.287 | database_errors | serverfault.com | |
179,653 | How to find malformed - corrupted - dos - BOMByte Files in Linux | I've several problems maintaining large production servers, in which some developers drop files from Windows environments, sometime with BOM-bytes (We use UTF8, and no need for that), causing lots of troubles. Other times, I got a "no end of line" and "[DOS]" labels when vim-editing files directly on the server. I rece... | Yeh, BOM-bytes are bad. The locale should determine the encoding of a file. The other thing as you've rightly pointed out is line endings. Dos tends to be CRLF and Linux is LF only. dos2unix will take care of this problem for you. | 0 | 0 | 948 | 2010-09-09T19:20:18.973 | data_quality | serverfault.com | |
79,828 | How to enforce/redirect HTTP to HTTPS | I've been hosting a domain on a Win2003 server for the last 3 or 4 years, but I now need to make this domain accessible only via HTTPS. I've installed the certificate correctly and it works fine (the server hosts several domains, but this domain is hosted on a different public IP address), but I'm struggling to get IIS... | Redirecting HTTP to HTTPS using IIS With SSL enabled, anytime you attempt to access a page via http, the server generates a 403.4 error. IIS is now configured to run your sslredirect.asp page every time this error occurs. The error page will include a querystring which contains the error number and the page causing the... | 2 | 5 | 7,026 | 2009-10-30T11:26:40.417 | api_errors | serverfault.com | |
770,003 | How do I ensure that a CoreOS cloud-config service is able to download files? | I am defining a one-shot service in my CoreOS cloud-config, but it is failing due to not being able to download files from Google Cloud Storage (via wget): Apr 13 11:09:56 staging-node-ys9y.c.experimentalberlin.internal sh[1132]: Connecting to storage.googleapis.com|74.125.133.128|:443... failed: Connection timed out. ... | I would take a multi-step tactic to troubleshooting this. Pardon the extra info and over explanation, everyone here at CoreOS has to deal with this from me. ;) First and foremost you want to make sure that the URL you are trying to download from can be retrieved from inside the cluster. Presently, I don't see any reaso... | 1 | 2 | 806 | 2016-04-13T11:21:02.210 | infrastructure | serverfault.com | |
222,574 | Data Migration: Unload/load of GENERATED ALWAYS TIMESTAMP | While migrating data from one Db2 database to another we need to retain the ROW CHANGE TIMESTAMP of the migrating data in the target table [CODE] We have a [CODE] attribute in the target tables. The constraint is like in the table shown below: [CODE] The data being migrated already has the [CODE] values and these need ... | I'm not sure you can alter a column with that clause. The knowledge center suggests that this syntax should do it, [CODE] but it does not appear to work. One option would be to use LOAD. E.g. https://www.ibm.com/developerworks/community/blogs/IMSupport/entry/DB2_Preserving_existing_timestamp_data_when_moving_tables_whi... | 0 | 1 | 1,053 | 2018-11-14T21:22:55.807 | data_quality | dba.stackexchange.com | |
10,734 | Is there a limitation in AWS to open an IPSec VPN connection? | Consider the following situation (for test purposes): there is a public IPSec VPN endpoint (StrongSwan); a machine with either Ubuntu (Strong Swan client) or Windows OS (native client) running in the cloud should be the VPN guest. Result: Windows Server 2019 machine establishes VPN connection successfully but can't sen... | For me it looks to be tunnel misconfigured - "there is a message about protocol mismatch" Regarding the limitations quick google took me here: [strongSwan] strongswan limits | 0 | 1 | 45 | 2020-02-06T13:21:07.517 | pipeline_ops | devops.stackexchange.com | |
637,588 | Routing from VLAN to Internet via L3 Switch | Please excuse the brain-dump - trying to solve a problem that's had be running around in circles for an entire day! TL;DR - Clients on two networks separated by a L3 switch can see and ping eachother, but only VLAN 99 can access the Internet, despite a default gateway being set (and routable) on the switch. Packets end... | The SonicWall needs a route to the 10.50.1.0/24 network via 192.168.50.254. 10.50.1.0/24 is not directly connected to the SonicWall so it has no idea how to route traffic back to that network. Also, I don't understand this statement: [CODE] | 0 | 1 | 5,958 | 2014-10-16T16:52:05.067 | infrastructure | serverfault.com | |
329,525 | Service Account in SSRS 2019 Configuration | I have two questions please: BOL tells me that Group Managed Service Accounts (gMSAs) are not supported as a report server service account. BOL Reference - Configure the Report Server Service Account (Report Server Configuration Manager) however, some articles I've seen on the internet seem to be suggesting that more r... | how do I configure it to stop giving this error message? Create user in ReportServer, ReportServerTempDB, msdb databases and grant it [RSExecRole]. Also grant db_owner for ReportServer, ReportServerTempDB and [SQLAgentOperatorRole],[SQLAgentReaderRole],[SQLAgentUserRole] for msdb. | 0 | 1 | 442 | 2023-07-21T11:07:47.490 | bi_errors | dba.stackexchange.com | |
493,299 | Apache2 Environment Variables on CentOS | I'm trying to use Environment Variables in Apache2 httpd.conf. The point would be to redirect port 80 to a https connection on same host and stay there. I need it to get the HOSTNAME or HTTP_HOST as i don't previously know it. Using redirect or mod_rewrite is not the real question. The problem is, I can't even output a... | Are you sure that HTTP_HOST is defined? Remember, these are shell vars, not the same as you would use in .htaccess If apache cannot find the env variable you specified, it will leave the text as is. The values of shell environment variables can be used in configuration file lines using the syntax ${ENVVAR}. If "ENVVAR"... | 0 | 0 | 1,033 | 2013-03-28T17:40:25.570 | infrastructure | serverfault.com | |
75,156 | How do you distinguish between conversational text and possible news article? | Context When you receive messages in group chats, how do you detect if that message belongs to conversational dialogue or if it is a 'news' article (could be fake or real) that they are sharing? Examples Conversational dialogue: "Does anyone wanna have dinner today? I am pretty free this evening and I don't have dinner... | News sentences will have more unique tokens than normal conversations. Conversations have more stop words than news articles. I think you can use bert or normal wordvect classification to train a baseline model here. I would play aroud the pipeline of fake news classifier and news-conversation classifier. like passing ... | 1 | 1 | 92 | 2020-05-31T06:03:18.530 | data_quality | datascience.stackexchange.com | |
445,991 | How to properly use Data Transfer Objects | I feel something is wrong with my approach handling MVP and the Repository Pattern. I'm making an album winform app just to practice MVP, crud and the Repos. Pattern. First some code. The model: [CODE] Now the DTO: [CODE] It's basically a copy of the model. Already I feel nervous. It's just copying the model in this ca... | Disclaimer : I wanted the OP to write and check the answer, but at the time of this writing he hasn't enough reputation. OP and I came to the conclusion that, for this specific case DTOs are unnecessary complexity. The MVP provide enough decoupling between view and model. DTO is a pattern widely misused, often than not... | 2 | 1 | 198 | 2023-06-09T12:03:54.713 | api_errors | softwareengineering.stackexchange.com | |
321,793 | Huge Increase in Storage Needed to Store Data in Oracle | I have a table stored in a tablespace where the size growth is usually not too big. However, on the last data loading, it suddenly needed so much more additional space, while inserting the same exact data. Here's a history of the tablespace size [CODE] On Jan 5th I inserted some data into the table, and since there's d... | Oracle pretty much never reduces the size of a file automatically: truncating a table doesn't actually shrink the size of a tablespace or the datafiles in the tablespace, or even the amount of space allocated to the table. It only releases rows of the specific table so that space can be reused unless you include the [C... | 1 | 1 | 207 | 2023-01-06T10:28:49.310 | data_quality | dba.stackexchange.com | |
839,787 | Two adapters communicating on same subnet | I have two sensors that each provide approximately 1Gbps of data and have static IPs on the same subnet. I have one PC with two 1xGbps adapters that I am using for processing the incoming data (OS is Ubuntu). There is also an internal network of other machines that must be communicated with on the same subnet. I though... | Configure the ".15" NIC as you would normally (I'm guessing 192.168.1.15/24, etc.,) then route that one specific address through the other interface (let's call it [CODE] for example's sake): [CODE] | 0 | 0 | 151 | 2017-03-22T00:55:38.280 | airflow_errors | serverfault.com | |
1,143,761 | How to fully remove a mongoDB replicaset? | I have a mongoDB cluster with 4 different replica set. Lately 2 machines crashed in an unrecoverable way, the data are fully gone on this. Sadly 1 replica set was installed on those 2 hosts. The issue I'm facing is that the configuration still indicate that some data are on this replica set hosts and when client applic... | Change the config file and comment lines [CODE] Restart the Mongo service. Connect to the node and drop the [CODE] database. [CODE] By this you revert the ReplicaSet back to a Stand-alone MongoDB. After this you con configure the ReplicaSet again, see: Convert a Standalone mongod to a Replica Set Have also a look at Re... | 0 | 2 | 311 | 2023-09-15T07:26:46.243 | database_errors | serverfault.com | |
866,847 | Authenticated SMTP relay not working if from and user don't match | We have an Exchange 2016 and we have this issue: on some of our customers servers we must configure some email alerts that are sent through a SMTP connector (with STARTTLS and AUTH-LOGIN enabled) the destination address is To: [CODE] the SMTP user is [CODE] if we specify [CODE] then everything is fine but if we specify... | If the server is the mail server for all these domains, it's possible for example to add all these addresses as [CODE] in AD, e.g. [CODE] . If the address already belongs to another account, the account should have a send on behalf / send as permission for that address. If your server is not a mail server for these dom... | 0 | 0 | 944 | 2017-08-04T09:47:59.843 | infrastructure | serverfault.com | |
233,903 | How can I restore VM on a new Hyper-V server? | I was working gladly with my VM on my local Hyper-V server. But, after installing some updates on the host the system only show the famous blue screen. I couldn't start my host so I reinstalled it and configured as new Hyper-V server. My VM was in a another disk to prevent this happening but I don't know how to add it ... | First things first - make sure you back up your Hyper-V VHD just incase. If you know the configuration of your previous Hyper-V I would advise that you simply create a new Hyper-V on the server and attach the existing hard drive too it. It is probably the quickest way to bring things back as I understand your situation... | 3 | 1 | 2,266 | 2011-02-10T15:36:56.620 | database_errors | serverfault.com | |
835,112 | bind9 reverse resolution not working | My forward resolution works and the reverse resolution fails, unable to figure out the problem. I appreciate if someone point the configuration error. Here you go for some files and output [CODE] /etc/bind/zones/db.192.168 [CODE] named.conf.options [CODE] named.conf.local [CODE] /var/log/syslog [CODE] | As we determined in the comments, your problem was that your reverse zone did not contain the data you thought it contained. You also had some kind of serial number issue, where you showed us zones with serial number 3 but zone checks and zone load logs for serial number 4. When you tried to look up the reverse record ... | 1 | 4 | 6,848 | 2017-02-27T08:42:57.640 | infrastructure | serverfault.com | |
872,856 | Using example.net instead of sub domains for AD (2016)? | From my research so far, it’s not recommended to use example.com as a domain/forest for AD due to split brain issues, website, and direct access issues. It’s recommended to use corp.example.com instead. However, if we have example.net could we use this instead without facing any of the common issues for our AD design? ... | Sure you could, but why? Stick to the current best practice of using an unused subdomain of your public domain name, whether it be a .com, a .net, or something else. You might find that in the future you want to use your .net TLD on the internet and then you'll face the issues you've pointed out in your question. | 0 | 3 | 58 | 2017-09-09T20:53:56.777 | infrastructure | serverfault.com | |
9,619 | How do you converting a double partitioned hard disk to a single partion? | I have an XP Home laptop that has 2 NTFS partitions on it that I want to convert to a single NTFS partition. I haven't done this for a while but from what I recall this is as simple as running something like FDISK and deleting the 2 partitions and creating a new single partition. The obvious problem is that you have to... | The best solution would be, if WHS supports it, to restore the C: partition to your new single partition, then extract just the files from the D: partition and place them where you want on the new, restored system. | 1 | 3 | 121 | 2009-05-18T20:01:36.707 | database_errors | serverfault.com | |
360,598 | Using vectors of shared pointers to objects in my C++ code to prevent object duplication | In my C++ project, I have three classes, [CODE] , [CODE] , and [CODE] . The [CODE] class will have N particles ( [CODE] ) and Nc contacts ( [CODE] ). [CODE] objects will each have a number of contacts, represented by [CODE] objects, and contacts are shared by pairs of particles. It will be necessary for me to know what... | The right solution will depend a lot on your non-functional requirements. How many particles will you typically have? How many contacts does a particle typically have? How much is a network updated, and in what ways? How fast does it need to be? I suggest referring to objects by index if you can and then particle conta... | 12 | 7 | 19,983 | 2017-11-10T18:24:58.410 | data_quality | softwareengineering.stackexchange.com | |
658,984 | Rename NTFS file to eliminate multiple periods via batch | I at wits end trying to rename NTFS files that have technically legal, but problematic multiple periods in my Windows 2012 Server share Files are dropped in a share that look like this: THIS.IS.THE.FILE.NAME.20150102 THIS.IS.THE.FILE.NAME.20150103 (etc) (Note: the date in the extension does not match the current date o... | I think this answer should get you most of the way to what you need. It covers getting the extension from each file and then doing a rename. | 1 | 0 | 246 | 2015-01-12T21:58:06.903 | infrastructure | serverfault.com | |
591,798 | MailboxExportRequest ContentFilter is "Received -ne $null" when querying by date | I am trying to export a mailbox to a PST. All email that was received before yesterday is what I am trying to export. [CODE] Something is not right here. I end up exporting the entire mailbox. When I run a: [CODE] It says that my content filter is: [CODE] I am sure something is wrong with my syntax here, but I can't se... | It's a finicky syntax error and made worse by incorrect/unclear documentation. Please try the following -- [CODE] | 2 | 3 | 1,849 | 2014-04-28T15:39:04.233 | infrastructure | serverfault.com | |
59,193 | What is the fastest way to insert large numbers of rows? | I have a database where I load files into a staging table, from this staging table i have 1-2 joins to resolve some foreign keys and then insert this rows into the final table (which has one partition per month). I have around 3.4 billion rows for three months of data. What is the fastest way to get these rows from sta... | One common approach: Disable / drop indexes / constraints on target table. [CODE] With credit to JNK of course, you can do the above in batches of [CODE] rows, which can reduce the strain on the transaction log, and of course means that if some batch fails, you only have to-start from that batch. I blogged about this (... | 32 | 27 | 144,222 | 2014-02-19T14:28:37.990 | warehouse_errors | dba.stackexchange.com | |
410,611 | Is it a good idea to start a function with a bunch of assert statements? | Sometimes when I look at other people's code I see functions that make a bunch of assumptions about the inputs but do not explicitly [CODE] their assumptions. For example, look at the code below: [CODE] My first instinct when I see code like this is to add a bunch of [CODE] statements, like so: [CODE] My argument is th... | In general, it is a good idea to make your code easier to debug by adding extra tests, assertions and validations. Using a lot of [CODE] for this is not even a very new idea, it is a common practice for decades especially in languages like C, where without explicit checks program can easily run into undefined behaviour... | 7 | 8 | 1,477 | 2020-05-26T02:47:22.463 | api_errors | softwareengineering.stackexchange.com | |
13,356 | Can I move SSL certificate files from one server to another for the same domain? | I have a website running at https://domain.com and IP a.a.a.a, with an SSL cert issued by GoDaddy. The server is deployed with Nginx. Everything is working fine as it is. However I'm trying to deploy the same website with Docker in a new server with IP b.b.b.b, so I did the following: Pull nginx image from Docker Copy ... | Your listen 443 need to have ssl parameter to tell Nginx that all connections accepted on this port should work in SSL mode. See example at https://nginx.org/en/docs/http/configuring_https_servers.html#single_http_https_server Shown here for convenience: [CODE] | 0 | 1 | 440 | 2021-02-12T18:26:53.380 | pipeline_ops | devops.stackexchange.com | |
83,658 | Apache SSL New Domain Redirect | We just switched domain names from www.olddomain.com to www.newdomain.com. We have a number of short cuts on desktops to https://wwww.example.com . I have setup Rewrite rules in both vhosts and the SSL vhost that if the domain is not www.newdomain.com to redirect to www.newdomain.com. The VirtualHost rewrite works flaw... | Given that the rewrite/redirect doesn't happen until after the user has made a request, it makes perfect sense that HTTPS requests to a site with the wrong SSL certificate provoke a browser warning. The correct way to handle this is to have two separate SSL vhosts, on separate IPs, each configured with their own SSL ce... | 1 | 3 | 2,627 | 2009-11-11T15:59:53.847 | api_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.