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
1,026,610
AWS autoscaling and ELB, use different health checking mechanism
I need some advice about AWS autoscaling, loadbalancers and health checks: is it possible to distinguish two health checking mechanism, one is when to send or do not send traffic to an instance (but do not terminate/replace it), and the another is when to terminate/replace that instance. Scenarios: I have two instances...
It's not clear if you're using EC2 or ECS, and what type of ELB you're using and depends as well on type of app you're running. Please provide those details and little bit about your application stack if you want better answer. In general when the client request hits the ELB it determines on which instance it "routes/s...
1
1
65
2020-07-24T15:49:17.610
infrastructure
serverfault.com
364,775
Thoughts on Data Encryption Strategy for Large Number of Records MongoDB and Azure Key Vault
I have previously implement Client Side Data Encryption using Azure Key Vault using the following approach: Encryption Approach: Every record that needs to be encrypted gets a Content Encryption Key (CEK) The content is encrypted symmetrically using this CEK. The CEK is then encrypted asymmetrically using a Master Key ...
Option 1 you suggested seems like a reasonable approach. When we had a very similar problem (different technologies, but same encrypted key pattern) we gave data that was always queried together the same CEK (in our case data for one user). We used a microcache to hold the CEKs. Basically we cached each CEK with an exp...
0
0
116
2018-01-27T04:53:39.383
api_errors
softwareengineering.stackexchange.com
416,327
Pattern / solution for Boolean decision making chains
I need a solution for decision making chain. There are number of criteria that may return true, false or be inconclusive. A non-functional code (Java) would look like this: [CODE] I'm considering creating an extended predicate that would return a nullable [CODE] instead of [CODE] , so that an inconclusive result could ...
I think you're looking for [CODE] . As in: [CODE] Checks return [CODE] , so [CODE] if they don't decide, otherwise they contain the boolean decision. Result of the whole thing is a boolean with the first decision that was not empty, or the default value at the end if all were empty.
1
3
960
2020-09-28T10:28:08.573
api_errors
softwareengineering.stackexchange.com
167,735
MySQLDump issue with a special characters
Code: use test; CREATE TABLE Test_user(Username VARCHAR(15),path VARCHAR(100)); INSERT INTO Test_user VALUES('new1','C:\newfolder\one.xlsx'); INSERT INTO Test_user VALUES('new1','C:/newfolder/one.xlsx'); I have created a .sql file using MySQLDump, which has contents Filename : Table1.sql DROP TABLE IF EXISTS [CODE] ; /...
You should read about string literals in MySQL. There you’ll learn that a backslash character is used to escape some special strings, and to have literal backslashes in your strings (as in Windows pathnames), you have to double them: [CODE] The complete list of characters in need of a special treatment is at the above ...
1
1
1,561
2017-03-21T13:01:20.933
api_errors
dba.stackexchange.com
155,491
Sql Server 2005 Memory Management - Server Properties (Memory Page)
Which are the recommended values for the Memory settings: A)Use AWE to allocate memory ? B)Maximum server memory (in MB) ? C)Maximum server memory (in MB) ? My production scenario is that we are using the same machine that hosts SQL Server to do run other applications. The machine has: 1. A) 3.21GB or RAM 2. B) Runs Mi...
It depends... You should specify (at least): How much RAM installed in your server SQL Server / Windows server edition How many 'other applications' runs on that server and how much RAM it need to use
1
0
93
2010-06-28T11:06:37.567
database_errors
serverfault.com
561,736
apache2.4 + php-fpm + squirrelmail
I'm trying to make squirrelmail work with apache 2.4 + php-fpm (via mod_proxy_fcgi), I want it to work on all virtual hosts when requesting "/wm". On my old VPS, which had apache2.2 and php as its module it was achieved with next: [CODE] I tried ProxyPassMatch ^(/.*.php)$ fcgi://127.0.0.1:1302/usr/share/squirrelmail/$1...
Well, kinda dirty solution but it worked so I'll just post it here in case someone needs it. What I did to make it work was: 1. I created symlink in the root folder of virtual host. 2. Added [CODE] to open_basedir for pools that were handling these virtual hosts. Note: Follow symlink option must be on (it's on by defau...
0
0
661
2013-12-16T19:14:29.150
infrastructure
serverfault.com
55,435
Seaborn Violin plot error No loop for unfunc add
I'm trying to plot a violin plot with a split based on Sex ( like in the fourth example in the doccumentation but with Sex) I can produce a categorical scatter plot and split it by Sex. However, when i attempt the same but as a violin plot; it throws an error. [CODE] My code is: [CODE] Removing the kind argument produc...
I had tried the suggestion from @foxthatruns's answer to no avail. I found that changing my numeric column to [CODE] solved the problem ( reference ). [CODE] This was done with Python 3.7, seaborn 0.9.0, numpy 1.16.4.
6
6
3,624
2019-07-10T13:35:42.573
data_quality
datascience.stackexchange.com
273,221
Problem with enabling System Audit (Firebird's Trace and Audit Services)
I would like to enable System Audit on my Firebird 2.5.9.27139 (x64) database (Windows 10), to inspect all queries performed on it. I've already read some docs about what the configuration file should look like, but most likely I have some trivial problem with setting up all the paths and entries. I would be very grate...
There are a number of things wrong with your config file: [CODE] should be [CODE] [CODE] should be [CODE] [CODE] should be [CODE] [CODE] should be [CODE] Most of these errors could have been detected by inspecting the [CODE] file. And although the documentation in [CODE] says: Pattern is either database name without pa...
4
3
803
2020-08-04T21:00:11.690
warehouse_errors
dba.stackexchange.com
279,565
importing postgres tar file throws parallel not supported in postgres 12
I'm trying to import a db that someone sent me: testdb.tar (43GB size) First I've imported using: [CODE] It took 23 hours to complete. I supose it used just a single core. Now, trying to do it faster, using the available 16 cores, I tried: [CODE] However, it throws the following error: [CODE] Not really sure why it com...
I managed to make it work by using "-Fd" and the the directory source name, instead of the tar source file. Exported directory contains files like: 3235.dat.gz ... 3300.dat.gz, log.txt and toc.dat So, it works by using: [CODE]
0
0
1,268
2020-11-12T09:03:05.900
warehouse_errors
dba.stackexchange.com
17,469
Deploying models on bigdata platforms like Hadoop and Spark
Where exactly bigdata platforms fit in to a data science/ machine learning projects ? Say I have a large dataset for a binary classification problem - cats and dogs. Now I need to create a model for real time classification Here is my question. 1 Since dataset is huge I can make use any distributed platform for faster ...
1 Since dataset is huge I can make use any disributed platform for faster computaion and model creation right? Yes, that is what distributed platforms are for. 2 Once the model is ready, then there is no need of these disributed platform right ? or are they needed for feature extractions ? Yes for data extraction, feat...
3
2
262
2017-03-09T12:32:53.170
spark_errors
datascience.stackexchange.com
542,678
Jetty - java.lang.IllegalStateException: zip file closed
I'm getting some error with some connection to our web server. We are getting this error randomly: [CODE] I saw that a bug causing this was solved in Jetty 7.6. Yes we get this error on our application running under Jetty 7.5.4 but we also get this with another apps running on a newer version 9. Do you have any idea wh...
You have a bad jar file. The code that accesses [CODE] is trying to validate that some requested content exists. It opened the jar file and attempted to find the Jar file entry for the requested resource, but failed to find it in the specific jar file as that jar file was corrupt. (it then proceeded to check the other ...
0
0
527
2013-09-30T13:59:48.423
infrastructure
serverfault.com
4,171
SQL 2000 - tsql to find out failed jobs in last 24 hours
I want to find out which sql agent jobs failed in last 24 hours... How can I find it using TSQL for SQL 2000? Regards Manjot
And.... [CODE]
4
2
2,881
2011-07-28T08:47:00.357
warehouse_errors
dba.stackexchange.com
12,670
Is it possible to use Appium to install a second APK?
First a little disclaimer, I'm not an automator, but I'm trying to learn. I'm trying to maintain code that someone else wrote. We are using Appium capabilities to launch the APK under test on an emulator and then launching the tests. The problem is that in our latest build our APK now checks for another APK and if it's...
Of course it's better to take care about your test environment before test execution. It means if you have to have another app installed in test environment prior to test execution, you had better to do it in some TestSuiteSetUp class which will do common work preparing your application and environment for test executi...
2
1
1,281
2015-04-14T23:18:26.227
data_quality
sqa.stackexchange.com
5,033
Vmware server 2 performance?
Have you noticed any VmWare server 2 performance issues? Can it be used for less important production systems?
The performance for VMware Server 2 is decent. I always try to get the fastest hard drives, since that takes the biggest overhead hit from the virtualization layer. I would not recommend running database servers on VMware Server 2 unless the load is very light. If you are new to VMware, then I would gradually add virtu...
4
4
1,700
2009-05-05T21:46:01.530
infrastructure
serverfault.com
895,258
Cannot transfer large file(s) using remote desktop connection (Windows 2012 server)
I am trying to transfer over a large file using remote desktop. I end up getting this error from the image below. Source computer is a windows 7 laptop and destination is a windows 2012R2 server. Note: I was able to send small files over but when it comes to the larger files, I get this error or the RDP disconnects. An...
I resolved this by transferring the files using the command xcopy from the power shell. Ultimately, I think moving files over with a shared drive resolve the issue. [CODE]
3
2
6,281
2018-02-01T22:26:20.573
infrastructure
serverfault.com
218,862
Truncating a table with a foreign key constraint - SQL Server
I have two tables in a SQL Server Database, [CODE] and [CODE] with the following structure: Attendance AttendanceID TimeTableID AttendanceDate UserName StudentAttendance StudentAttendanceID AttendanceID StudentID IsPresent I run the following query and it works: [CODE] But the following query gives me an error: [CODE] ...
The documentation for TRUNCATE TABLE (Transact-SQL) is fairly clear on this topic. Referencing the Restrictions : You cannot use TRUNCATE TABLE on tables that: Are referenced by a FOREIGN KEY constraint. (You can truncate a table that has a foreign key that references itself.) Regarding your comment I don't want this o...
0
4
7,268
2018-09-29T02:35:37.353
data_quality
dba.stackexchange.com
267,973
Sql Server 2008 high availability in EC2
I'm currently evaluating a strategy that will enable high availability with SQL Server 2008 and redundant servers to limit DB downtime. My thought right now is to setup SQL server 2008 mirroring in high safety mode so two machines will be perfectly in sync with each other. These two machines will be in the same EC2 Ava...
You could use log shipping alongside mirroring to maintain the third instance See this article on msdn for more about this.
2
1
293
2011-05-07T19:49:36.763
database_errors
serverfault.com
1,117,925
Boot configuration Data error during PXE boot after add VMware drivers
I have WDS and MDT installed on a Windows Server in my network. The WDS server is on the same subnet as the client machine. I am getting the following error on my VMware VMs when trying to boot LiteTouch over PXE: I can't figure out how to get rid of the error. I've tried: Recreating the LiteTouch boot image in MDT and...
The issue appears to be WDS, not MDT. My fix was to use a different PXE server to boot the LiteTouch boot image.
0
1
398
2022-12-13T14:06:48.127
infrastructure
serverfault.com
171,626
Combining template method with strategy
An assignment in my software engineering class is to design an application which can play different forms a particular game. The game in question is Mancala, some of these games are called Wari or Kalah. These games differ in some aspects but for my question it's only important to know that the games could differ in th...
After looking at your designs, both your first and third iterations appear to be more elegant designs. However, you mention that you're a student and your professor gave you some feedback. Without knowing exactly what your assignment or the purpose of the class is or more information about what your professor suggested...
14
6
9,951
2012-10-27T20:25:23.213
data_quality
softwareengineering.stackexchange.com
847,631
SIP SUBSCRIBE requests fail
I have the problem, that my client can login with a password and call out, but does not receive calls. When i troubleshoot it via tcpdump, it tells me, that [CODE] works, but [CODE] does not. [CODE] Client: sipdroid (reachable via wlan0) Server: A Fritzbox (reachable via eth0) Router: A Banana Pi In between: a router, ...
You will need to do some packet captures to find out what's actually inside your SIP packets. Without knowing anything more about how your SIP is configured (is it a trunk?), chances are it is trying to issue a [CODE] with the IP address of the internal client which the upstream SIP server is rejecting. Running SIP beh...
0
0
298
2017-05-01T19:21:09.477
infrastructure
serverfault.com
403,777
Compiling to a binary from source
I'm using WKHTMLTOPDF on a 64-bit Linux server and I'm running into problems with the version. Seen here: http://code.google.com/p/wkhtmltopdf/downloads/list There's slim pickins when it comes to pre-compiled binaries. I started with version 0.9.9 which has a few bugs. I upgraded to 0.11.0 RC 1 to find a slew of new pr...
This is a pre-compiled static binary for 64-bit 0.10 RC 2: http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2&can=1&q= Here's a list of all the binaries you can have (note that this one is put down as Deprecated, but I used it for a previous project for very similar r...
1
3
571
2012-06-30T20:58:59.550
infrastructure
serverfault.com
174,803
Latency appear to be an issue with linked server
A client have a data warehouse server with a linked server set-up. The data warehouse server is SQL Server 2014, while the linked server is a SQL Server, but version unknown. Those two servers was previously physically at the same location, but a while ago the linked server was moved across the Atlantic. The performanc...
The queries are simple selects from single tables. There are a number of details that you need to include that may have an effect here. Are they many small resultsets (a few rows or small rows) or small numbers of large results (many rows and/or large columns like BLOBs)? If it is a mix can you separate them out and te...
0
1
936
2017-05-29T07:41:21.677
pipeline_ops
dba.stackexchange.com
180,825
How can I relay email through google apps from drupal website?
Possible Duplicate: Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587 I have multiple drupal websites running on an Ubuntu slicehost vps. Naturally, that means that I have a fair number of domains pointing to my one slice. For some of those domains, we use the non-profit version of google apps ...
You need to do research about email reputation. Things like SPF records. Check out senderscore.com. Your smtp server ip / sending domain could be on a blacklist. Check those as well
0
0
1,792
2010-09-14T04:22:52.220
data_quality
serverfault.com
48,886
Looking for other opinions on approach to classification problem
I'm looking to implement an "opt-out" filter for my company. The input is short, text-message style messages. A few examples of opt-out messages are: "remove me from your list" "remove from list" "please unsubscribe from list" etc. All other messages are "good", and should not be removed. My thoughts on approaches: I w...
You should use text classification techniques. The most basic one is multinomial naive Bayes classifier with tf-idf features. for this method, take a look at this: https://scikit-learn.org/stable/tutorial/text_analytics/working_with_text_data.html If you don’t get enough accuracy (or maybe precision, recall or f-score)...
2
1
24
2019-04-08T15:55:59.017
data_quality
datascience.stackexchange.com
358,106
What is versioning (as in GitVersion) used for?
http://gitversion.readthedocs.io/en/latest/why/ and https://github.com/GitTools/GitVersion explain the advantage of GitVersion over "Version.txt/Version in build script" and "Build Server versioning" Before being able to understand the differences between the three approaches, what kind of problem do the three try to s...
Isn't a new version number created, by simply incrementing the version numbers? Why do we need complicated ways to calcuate version numbers? Because we are programmers, and we don't like to perform repetitive steps manually. Why would I manually edit a [CODE] file when I can let the VCS compute it for me?
0
2
276
2017-09-26T19:10:51.687
api_errors
softwareengineering.stackexchange.com
372,131
Dealing with server errors/database data when processing client requests
Suppose my server PHP end point follows something along the lines of the following: Client sends request to server. Server updates a record Server might do some PHP processing... Server updates record again What to do if the server crashes whilst performing either of the SQL commands (either 2 or 4) or during 3. Is it ...
Given the hint in the comments I was able to discern the right course of action. Switching from the MyISAM SQL database engine to the InnoDB database engine, I can use transactions to safe guard against introducing errors into my database: [CODE] The InnoDB engine will not make any changes until the commit command is r...
0
2
52
2018-06-05T17:00:13.053
api_errors
softwareengineering.stackexchange.com
667,957
MySQL "Duplicate entry" Errors on the Slave break replication all the time
I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql Unfortunately the replication stops on the slave all the time with: [CODE] If I drop all the dbs then how can I tell the Mysql slave server to create them automatically? I didn't specify the binlog...
The most destructive advice among all - is advice to automate the disaster using [CODE] . This is the quick way to get the inconsistent slave database. Please avoid setting [CODE] at all costs. In the same time I can say that the most frequent cause of slave errors is the unawareness of the fact, that mysql slave is no...
0
3
10,453
2015-02-16T08:36:51.417
database_errors
serverfault.com
646,787
Why port 22 redirection causes lxc containers to ssh to host?
I have a host A on which I have 2 lxc container (X and Y). I originally had port 22 on my host (A) forwarded to X. Using this configuration, I wasn't able to ssh out of the container X and when ssh-ing out of contianer Y, it caused the ssh connection to be some how forwarded to X (even though I was ssh-in to an externa...
Fixed by adding the [CODE] to my iptable rules (to specify only outside traffic should be redirected to container X:22. iptables -t nat -A PREROUTING -p tcp --dport 22 -i eth0 -j DNAT --to-destination 10.0.0.4:22
0
3
2,087
2014-11-24T21:48:11.520
pipeline_ops
serverfault.com
194,872
Mails received with same message id every 15 - 20 seconds
I have SpamAssassin integrated on my postfix mail server via 'Amavisd-new'. The problem that I am facing is that I am receiving same email every 15 second from same sender with same message-ID on my production mail servers, following are my postfix logs: [CODE] How to determine that such mail is genuine or SPAM? Is the...
If you let the message queue up on your server (instead of rejecting it,) you should be able to do [CODE] to view the message and its headers. This should let you determine if its spam or not.
0
1
299
2010-10-26T13:27:01.007
infrastructure
serverfault.com
331,858
How to ignore all row modifications on a FOR EACH STATEMENT trigger without cancelling the query on PostgreSQL?
How to ignore all kind of table modifications [CODE] in a [CODE] [CODE] without throwing/raising an [CODE] cancelling the whole transaction? I know it can be achieved on [CODE] [CODE] triggers by returning [CODE] in the end of the [CODE] , but that doesn't work with [CODE] function calls as they always returns [CODE] a...
There is no way to do that. Transition tables using the [CODE] clause are out, because they can only be used in [CODE] triggers. You could use a view with an [CODE] trigger that only modifies the underlying table in some cases, but statement-level [CODE] triggers only fire if the event is handled by a row-level [CODE] ...
1
1
18
2023-10-05T07:05:07.203
database_errors
dba.stackexchange.com
289,439
How should I handle incompatible configurations with the Builder pattern?
This is motivated by this answer to a separate question . The builder pattern is used to simplify complex initialization, especially with optional initialization parameters). But I don't know how to properly manage mutually exclusive configurations. Here's an [CODE] class. [CODE] can be initialized from a file or from ...
You've got your Builder. However, at this point you need some interfaces. There is a FileBuilder interface that defines one subset of methods (not [CODE] ) and a SizeBuilder interface that defines another subset of methods (not [CODE] ). You may wish to have a GenericBuilder interface extend the FileBuilder and SizeBui...
9
12
1,047
2015-07-11T17:38:52.183
api_errors
softwareengineering.stackexchange.com
238,254
Javascript MVC application design (canvas)
I'm having difficulty grasping how to structure/architect a canvas application using an MVC like approach in Javascript. UI will be fairly fluid and animated, the games fairly simplistic but with heavy emphasis on tweening and animation. I get how MVC works in principle but not in practice. I've googled the buggery out...
MVC has been covered in so many places so there shouldn't be much to re-iterate here. Essentially you want your object graph, helpers, and logic to be contained in the model tier. The views will be the screens that get pushed out to fill the dynamic part of the page (and may contain a light amount of logic and helpers)...
9
3
4,263
2014-05-07T14:52:11.437
api_errors
softwareengineering.stackexchange.com
439,139
TCP connection stuck in SYN_RECV state despite ACK received, Linux 2.6.18, embedded, ARM
My client cannot connect to my protocol port (TCP) after some network glitches, even though all other protocols (telnet/HTTP/FTP) work fine. netstat shows that my server is listening and tcpdump on the server shows all 3 packets are exchanged: 18:29:16.578964 IP 10.9.59.10.3355 > 10.9.43.131.5084: S 2602965897:26029658...
The connection is in SYN_RECV state because the kernel has received a SYN packet for a port that is in LISTENING mode, but the other end did not reply with ACK. Check if the ACK is received by the server by running the capture on the server. Is the capture taken on the client or on the server?
4
5
60,534
2012-10-16T22:46:21.353
infrastructure
serverfault.com
203,913
Windows Installer cannot execute EXE install files
When I run the [CODE] with an [CODE] file, it runs perfectly. The problem is that many install files are not [CODE] 's but [CODE] 's. My question is: How can I run an [CODE] file with the [CODE] command? If it's not possible, is there a way to convert the [CODE] to [CODE] properly? Thank you very much, Regards.
You cant run a exe with msiexec commands. You need to use supported commands for the exe you are deploying. Check out this site www.appdeploy.com/packages for info on switches for software. Regards. Todd
0
5
702
2010-11-19T13:36:53.663
infrastructure
serverfault.com
741,443
Win7 pro stuck on welcome screen when logging in to the domain
In a domain environment, 2008 R2 as the master DC and 2003 SP2 std as the vice DC. Some computers in the computer room ran into this problem many times. Restarting the machine helped. But I wonder if it is due to a GPO locking up the machine or the computers had a difficult time communicating with the domain server. Ar...
Are you by chance using Roaming Profiles? If so you could have an exceedingly large profile that is being pulled to the Local PC. I have had this before where it wook 4-5 hours to copy and complete to logon.
1
1
5,564
2015-12-08T02:25:18.080
infrastructure
serverfault.com
693,255
Relay access denied (in reply to RCPT TO command) Postfix Issue
I am trying to configure my server for email taking reference form this link: SMTP Relaying Outgoing Mail in Postfix - using Webmin . I used Mandrill smtp server in my case. I have also configured a vagrent instance before configuring the main server. But when I try to send email from the server (both vagrant and main)...
The problem here is that you configured your server so that it should relay any outbound email to a server, namely [CODE] . That server, in turn, is not accepting to relay your mail. I don't know this company, but my guess is that they only relay mails from authenticated customers, and your are not logging-in. You shou...
5
9
47,898
2015-05-20T10:42:12.047
infrastructure
serverfault.com
864,666
AWS - shutdown EC2 of an ECS cluster after task is done
I have a small job in docker (10 minutes) which I want to run daily in the morning. What I'd like to achive from AWS is this: 1. Start EC2 instance. 2. Run my docker job. 3. Shutdown EC2 instance. What I tried so far: - Created an ECS task. - Created an ECS cluster with 1 machine to run the task. I can run the task man...
You can add scheduled actions in AutoScale groups. http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html So this will allow you to create and destroy EC2 instances on schedule. Just make sure you configure your AMIs to join the right ECS cluster and leave some overlap time for the instance to boot ...
4
1
2,279
2017-07-23T01:09:43.853
hadoop_errors
serverfault.com
533,554
High Availability on Windows Azure Websites
One of my main apps is hosted on Windows Azure's Websites platform. Given Friday's downtime, I realized that I need something that allows my app to stay online if Azure has an outage again. My current setup is 1 WAWS instance (w/ autoscaling set to 1..3 instances @ 70% CPU) and SQL Azure as a backend. I really enjoy ha...
First: Remember that all cloud providers have outages. Windows Azure did not "go to hell" as you put it. A subset of services, in a specific region, had an outage until it was mitigated. Changing cloud providers will not protect you from outages. Just bing it, and you'll find plenty of outage details across multiple cl...
0
0
920
2013-08-25T07:57:23.637
pipeline_ops
serverfault.com
634,785
OpenVPN route remote traffic depending of the subnet
I achieved to setup an OpenVPN to route all the traffic through a remote openvpn server. The OpenVPN server have two interfaces : eth0 -> Internet access eth1 -> Private network : 192.168.1.0/24 Now, all the traffic is natted with Eth0. server.conf [CODE] Iptables : [CODE] I want to do the same except for the range 192...
I think you should add the rules for the private network in the POSTROUTING and FORWARD too, but should define them before the rest of the POSTROUTING rules. Also, if I see correctly the first POSTROUTING rule without any source network specification matches all your packets so the next line will never match - remove t...
1
1
1,746
2014-10-09T15:41:56.467
infrastructure
serverfault.com
838,058
Windows Server 2016 Start Menu Options Disabled on Admin Login
Installed Windows Server 2016 and set up Remote Desktop services. After the RDS installation, the following occured: Logging into the session host server as admin, no matter with which domain login, seems to be interpreted by Windows as a RDS user login - I get a cut-down start menu. Is there a way to change this? (Thi...
Take a look at this blog post from MS a few months ago: https://blogs.technet.microsoft.com/askpfeplat/2017/05/08/mysteriously-disappearing-start-menu-tiles-and-roaming-user-profiles/ Like you, in our environment I found that Domain based Admin users were affected when logging into RDS servers via RDP. Local login was ...
1
1
4,744
2017-03-13T19:49:52.723
infrastructure
serverfault.com
317,334
need a large heterogenous windows test environment
We are building a product that samples various statistics from windows boxes in a domain. The product is similar in architecture to enterprise performance monitoring systems (although we are not doing performance work). The tricky bit is that we'd like to run our software in an environment with lots of variation in ter...
Honestly a school, church, temple, etc. in your area will probably be your best bet for a guinea pig to test your software on. Odds are a company won't let you in the door unless they see some serious value in helping you out. Microsoft has some large labs, but they are for running workloads against Enterprise hardware...
-1
5
96
2011-09-30T18:10:13.657
pipeline_ops
serverfault.com
586,370
Spf passes or fails depending on receiver address
I have postfix with dovecot set up on Ubuntu 13.10. I send emails via a node application (using email-templates). If I send an email from [CODE] to [CODE] ( email 1 ), the spf record passes. If I send an email from [CODE] to [CODE] ( email 2 ), the spf record fails. My spf record: [CODE] I've tried a variation by speci...
SPF is not failing. You're misinterpreting the results. Google is doing the check (properly) when the mail is sent to the GMail account. Google is also adding the check when it retrieves via POP3. It doesn't know where it came from, therefore it marks a softfail. I'm not sure why Google is checking for a POP3 retrieved...
2
4
2,426
2014-04-03T10:34:10.240
infrastructure
serverfault.com
238,539
Remote servlet by mod_jk?
I have remote servlet for example: h tps://[ip_address]/servlet (h tps://[ip_address]/ - Tomcat main page) that i need to configure on local Apache HTTPd server. My mod_jk configuration looks like below, but doesn't work. Something works, because when i type h*tps://localhost/console in a browser i get Tomcat error pag...
The pattern /console/* wont match /console. Normally it's easiest to set up the JkMounts as [CODE] For debugging things like this it's very useful to increase the logging level, so set [CODE] and have a read through the log you specified.
0
3
635
2011-02-22T08:23:06.280
infrastructure
serverfault.com
67,074
Windows x86 physical memory is 24-bit?
I am reading the new book, Windows Internals 5 about memory management (chapter 9 in Physical Address Extension PAE section). It is mentioned "A 32-bit system represents physical addresses internally with 24 bits" on page 770. I am totally confused, and I think x86 physical memory should be also addressed by 32-bit, an...
I think the confusion here may be as a result of physical addressing vs virtual addressing. On 32 bit Windows, a virtual memory address (i.e. that which is used by applications and other higher level processes) is 32 bit. Physical memory addresses are down at the level of talking directly to the hardware, which is (1) ...
0
7
597
2009-09-20T05:26:47.673
infrastructure
serverfault.com
447,613
My own Nameserver wont resolve domain
What I want to do is to make my domain name resolve using my own nameservers. I got 3 VPSes, all running debian and a domain name, mydomain.com 2 VPS are nameservers and 1 is a webserver. At my registrar i've put my domain name to DNS only and changed the nameservers to my two own nameservers. On my first nameserver I'...
http://ip.seveas.net/dnsgraph/png/www.epnddns.com/?skip_.=on&show_A=Show http://ip.seveas.net/dnsgraph/png/epnddns.com/?skip_.=on&show_A=Show So ns3 is working correctly, but ns4 is not responding. You also forgot to add an A record for the domain. Something like: [CODE] The @ means: the domain, not a subdomain of it.
1
2
546
2012-11-11T18:08:33.400
infrastructure
serverfault.com
297,649
MySQL 8 - Primary Keys - Sequential UUID or INT with AI?
My DB has ~100 tables and 3 for which I need UUIDs. For these 3 tables, the main goal is simply to hide sensitive IDs to visitors. MySQL 8 has introduced UUID support and I was planning for these 3 tables to use an UUID as a sequential PK doing: [CODE] My concerns are : No Last Inserted ID available anymore, I would ha...
Are you sure about the No last inserted id? Let's see the manual page or the error message. Why have [CODE] if you have [CODE] ? (Remove the column and all references to it.) Make the UUID the PK -- replacing [CODE] . uuid BINARY(16), PRIMARY KEY(uuid) Don't worry about the overhead on [CODE] ; you need the uniqueness ...
0
0
1,514
2021-08-05T18:50:45.633
database_errors
dba.stackexchange.com
454,628
Looking to Block Large Number of IPs
We have a server that consistently gets pounded by people trying to break in. We have DenyHosts and Fail2Ban running on the server but it still gets a ton of traffic from people who are up to no good. My boss is finally tired of it, he went to http://ipinfodb.com/ip_country_block.php and created a list of ip ranges tha...
Use ipset to create set of IP ranges (with a script probably) and then use --match-set in iptables rule. This way matching will be pretty efficient because ipsets are hashed.
4
2
365
2012-12-03T17:08:23.480
infrastructure
serverfault.com
1,098,485
systemd-resolve resolves incorrectly inside a network namespace
I have an Ubuntu machine with a network namespace (ns1) connected to the host network namespace via veth. I created a MASQUERADE rule in iptables to access the internet and I can ping 8.8.8.8 from the network namespace. When I do [CODE] from the host, it works and I see in the main interface: [CODE] However, when I exe...
[CODE] will rewrite your DNS to point to it on 127.0.0.53 by default. It isn't reachable in the namespace you created so DNS lookups fail. Try using [CODE] and it should work, whether [CODE] is running or not.
1
1
1,250
2022-04-13T08:21:25.567
infrastructure
serverfault.com
206,230
Unit test strategy for layered (or derived) method calls
Forgive the title -- it needs work. I am struggling to find better English to express my issue. Edits encouraged. Example to describe my issue: Checker Method I have an argument checking method called [CODE] . Given a string, an index, and a count, confirm the string is not null, and the index & counts are reasonable. ...
There is no need to test all the scenario's for the [CODE] method when testing [CODE] . All you really need to do in testing [CODE] is to ensure that it actually does use the [CODE] method, so you can indeed forego all those test input scenario's to [CODE] . The way to do that is the same way I would ensure that Assert...
3
2
237
2013-07-27T09:05:30.277
api_errors
softwareengineering.stackexchange.com
219,925
How do quotes/strings work in Powershell?
I'm have a command line that works in the regular old Windows Command Shell, but somehow gets misinterpreted in Powershell (I'm fairly new to Powershell). [CODE] Powershell seems to be stripping the drive letters out of the arguments that require paths. For example, I get the following when I attempt to run the above c...
Jaykul's start-process is how I do it as well. SQLCMD was designed with cmd.exe in mind and as a result there's some conflict between it wanting to see the quote characters and the way that Powershell uses them (or doesn't use them more to the point). Here's what you can use for a straight-up call, should work: [CODE]
3
0
4,515
2011-01-07T17:43:17.080
infrastructure
serverfault.com
36,885
Problems connecting to MS Dynamics AX 2009 Application Object Server
I've got a funny problem connecting to an AOS server. I got a domain network containing a (VM) Server running the Application Object Server (AOS). Client computer A) can connect to the AOS without problems and work. When client computer B) tries to connect, all I get is this error message: Logon Error Connection with t...
Problem may be with stored credentials in Windows 7. Clear appropriate credentials under: Control Panel\All Control Panel Items\Credential Manager.
1
2
12,816
2009-07-07T09:59:09.993
infrastructure
serverfault.com
408,670
Best practices for creating structured data from "flat" SQL query results
Recently I've been working on a project to teach myself PHP and SQL, and as the project has gotten more complex I've been wondering what the idiomatic approaches are for creating the backend models from SQL query results. For instance, I am building out a feature that lets users of my service invite each other to event...
It's worth nothing that SQL is not "unstructured". In fact, the flat structure of the columns is a key part of the overall structure which allows queries to be specified and executed efficiently and flexibly. That said, it does at times seem inconvenient that there is no concept of column groups, when a large number of...
-1
0
132
2020-04-11T15:08:59.473
api_errors
softwareengineering.stackexchange.com
161,995
using windows startup script to copy files/folders from network share
I'm having an issue running xcopy as part of a startup script. The server operating system is Windows 2008 R2 and the client operating system is Windows XP SP3. File server hostname: filesrv1 DNS Alias (CNAME): filesrv The command being executed through startup script is: [CODE] If I change the server's name to filesrv...
I added an entry for OptionalNames as well as DisableStrictNameChecking in the registry and that appears to have resolved my issue.
0
1
2,532
2010-07-19T21:55:38.807
infrastructure
serverfault.com
59,650
pgBouncer works great but occasionally becomes unavailable
I'm running pgBouncer in front of a busy postgres 9 database. For most of the time it works fine. But every few hours I'll get an error email from my application with an exception from psycopg2: OperationalError('could not connect to server: Cannot assign requested address Is the server running on host "neo-hulk" and a...
The " Cannot assign requested address " part in the error message comes from the kernel TCP stack. When encountered intermittently, this typically means that the space of available sockets is exhausted because of too much sockets in wait state ( [CODE] , or less probably [CODE] or [CODE] ) The range of socket ports can...
11
22
10,606
2014-02-25T22:40:13.233
warehouse_errors
dba.stackexchange.com
252,779
Why would I use ElasticSearch if I already use a graph database?
I don't find any deep explanation on the web about a comparison between ElasticSearch and the graph databases. Both are optimized to traverse data. ElasticSearch seems to be optimized for analytics. However Neo4j is also based on Lucene to manage indexes and some fulltext features. Why would I use ElasticSearch if I al...
I hesitate to call ElasticSearch a database. It is not a replacement for a database, but it makes a good addition to add functionality, specifically advanced text searching, along side your existing database. I see where you can get them confused. They can actually fit the same need, but not always. ElasticSearch does ...
22
25
34,269
2014-08-08T18:17:29.587
database_errors
softwareengineering.stackexchange.com
309,030
Looking for a diagnostic DVD or CD creation tool
I am looking for a diagnostic DVD utility (which tests hardware, create partition, fix partition, etc..) which can boot directly when the computer start. I am looking a solution which support Windows xp and 7 partitions. Any ideas ? Thanks.
http://www.ultimatebootcd.com/
0
1
79
2011-09-07T16:24:35.863
infrastructure
serverfault.com
108,140
MySQL query WHERE IN + ORDER BY, which EXPLAIN is better and how to avoid filesort?
This is my table definition, without any special index for now: [CODE] Sample data: [CODE] Most of the time I do a query with [CODE] and [CODE] and selecting only [CODE] and [CODE] : [CODE] This gives me Using index condition; Using filesort , quite bad uh? [CODE] With an index on [CODE] Using where; Using index; Using...
Given the structure of multicolumn B-tree index it is not viable to do a sort on [CODE] when using IN on [CODE] . But as the test data suggest the [CODE] is not "global" but seems to have a meaning only for given [CODE] . So as I suggested in comments, it is instead possible to [CODE] - that can use two-column index on...
4
2
693
2015-07-26T14:25:45.763
database_errors
dba.stackexchange.com
305,932
My xen installation is rebooting randomly. How do I track the error?
I have a test xen installation that is using the gfx_passthrough option. It appears to run fine. However, after about 15minutes the whole xen installation reboots for no obvious reason. I don't see anything in the logs that would hint at the reason. How can I track/narrow this down? i.e. there is nothing logged in /usr...
To force the installation to not reboot on error and also to enable logging on panics, add "noreboot" to Xen's boot options. Also, check your BIOS for power options relating to the CPUs. Turn off any low power settings as this has been known to cause Xen to crash and burn.
0
1
353
2011-08-29T05:08:11.727
infrastructure
serverfault.com
10,653
DB Master Key Encrypted By *Correct* Service Master Key?
My client has frequently run process where we move databases from a prod environment to lower environments (refresh QA with prod database, etc). These DBs have database master keys on them. We have no issues re-encrypting these into the service master key on the destination server, but here's the annoying part: sys.dat...
As per books online "The is_master_key_encrypted_by_server column of the sys.databases catalog view in master indicates whether the database master key is encrypted by the service master key." Here is the link http://technet.microsoft.com/en-us/library/ms174382.aspx
6
1
1,457
2012-01-13T17:41:56.377
warehouse_errors
dba.stackexchange.com
1,055,109
openssh, permitting some users to use sftp with passwords and limited privileges
I have a linux host with openssh that permits users to login with public key. [CODE] But now I have some users who will need to access the host as a file drop using sftp. In addition, these users will user passwords rather than key pairs. I make all of these users belong to the group [CODE] . [CODE] Now I create the fi...
I see these immediate issues: The order of directives. Try putting the [CODE] at the very end of the file [CODE] instead of a file in the [CODE] . This is because the last [CODE] seems to win. The [CODE] should contain [CODE] . This is apparently what allows the password login. When using the [CODE] directive, you also...
1
2
307
2021-02-25T20:16:42.720
infrastructure
serverfault.com
156,589
VirtualHost problem
this is my httpd.conf: [CODE] What is wrong when the browser always shows first entry - /home/www/domain1? Thanks, Etam.
Either: a. You're missing the NameVirtualHosts settings: https://stackoverflow.com/questions/2530418/wamp-server-multiple-virtual-hosts-are-not-working-on-windows/2530518#2530518 or b. the domain you're visiting matches domain1.com, or it doesn't match either (apache will default to the first one.) or c. the method/cli...
0
2
126
2010-07-01T08:16:40.820
infrastructure
serverfault.com
1,069,205
Clarification on the configuration of a mail server
I would like to start by saying that I have not seen any other forums or posts that clearly explain this thing. If there are, my poor English skills probably didn't make me understand the solution clear. As you already understood, I am trying to set up an internal email server to download mail from some providers. Look...
Let us assume you own a domain, example.com. Postfix / dovecot is the typical setup, to setup the domain: dovecot implements mailbox storage and does POP/IMAP(s) communication with the users email program. Postfix on the other hand handles the communication with other mailservers, which means postfix is accepting the c...
1
2
72
2021-07-10T12:18:11.270
infrastructure
serverfault.com
55,737
How to manage users and collections in MongoDB?
Im triying to create users in a database in mongo, I want to lock the usage of te collections for some users, I'll give an example: Lets say that I actually have a db with 3 collections: Books, Students, Proffesors And 3 users: Librarian, SecretaryManager, Director And I want the Librarian have r/w permissions just in ...
At the time of writing this (2.4 is the stable release) you would have to split up these collections into three databases instead. The ability to do collection level permissions is not available, so you need to do it at the database level. If you alter your model to have 3 databases (Books, Students, Professors), then ...
1
1
623
2013-12-28T18:56:59.200
database_errors
dba.stackexchange.com
452,515
How to give feedback on a badly reviewed PR
In my current workplace, I act as lead developer and architect in a team of software developers. The general policy for merge/pull requests is that 1 person has to review and approve the request. This person must not be the author. Sometimes code is merged which I personally would not have approved for one ore multiple...
Advice for gracefully giving feedback would fall into the "career advice" category of questions, which is off topic for this community, however there are some things you can do from a process perspective. For the Author Missed edge cases: this has been a challenge on every team I've worked on. Usually the best path for...
36
43
8,758
2024-03-19T11:55:33.123
api_errors
softwareengineering.stackexchange.com
1,025,952
Nginx, Wordpres & Laravel
I am trying to configure Wordpress and Laravel within Nginx, but am struggling to get the configuration right. Wordpress is installed in /var/www/site/blog Laravel is installed in /var/www/site/exam Navigating the the site.local brings up the wordpress site, but site.local/laravel shows "No input file specified." Looki...
I think you need to change location like this [CODE]
0
0
148
2020-07-20T12:00:52.800
infrastructure
serverfault.com
324,311
Mounting an S3 bucket onto a AWS Ubuntu instance issues
i'm using s3fuse to mount an s3 bucket onto ubuntu, so that i can take advantage of the storage space. here are some environment info: System Info : Linux ip-xxx-xxx-xxx-xxx 2.6.38-8-virtual #42-Ubuntu SMP Mon Apr 11 04:06:34 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Distro Environment Ubuntu 11.04 when i run the followi...
repost of my comment as the answer: I didn't mean to answer my own post, but this seemed to get the s3 mounted, though I could have swore I ran this command last night: [CODE] There is an added slash on at the end of the mount. It could have been sleepy eyes that could have thought this command was run.
1
3
2,379
2011-10-24T15:24:00.713
infrastructure
serverfault.com
695,344
IPSec VPN set up (Windows)
I am working on a project which needs to call a web service that can only be accessed whilst being connected via a VPN. The legacy platform that we're migrating from ran on OpenBSD and used the built-in IPSec tools to create the connection. The following config is how the connection is established. Can anyone help me a...
Use Windows Firewall's Connection Security Rules to configure IPsec on Windows 7. Open the Start Menu, search for "Windows Firewall with Advanced Security". Open it. In the left-hand panel, right-click on "Windows Firewall with Advanced Security". Select "Properties". Open the tab labelled "IPsec Settings". Click on "C...
1
2
2,215
2015-05-29T17:30:11.737
infrastructure
serverfault.com
263,942
Domain name DNS problem
I have domain name (novinhost.net) which is set as the primary dns pointers for my vps. the problem here is it's not accessible from everywhere. I checked the dns reports using the following url and there seems to be some problems and I can't figure out how to solve them. DNS Report I wonder how can they be solved?
The serial on the zone is 2011042301 so presumably 2011-04-23 is the date of the last change (it is 04-27 in the WHOIS) There is no MX - and I know of at least a registry that won't accept NS change without a valid MX record (inhospitable, but reasonable). Also, the DNS chnge will not take effect unless the proper regi...
1
1
174
2011-04-27T08:28:45.050
infrastructure
serverfault.com
82,010
Schema/Code for respecting different schedules
We accept leads from lead providers. We only allow certain providers to post leads to us during certain days/times. Currently, we have 3 schedules, but we might add 1 or n more in the future: Sunday @ 8AM - Friday @ 3PM -- all hours in between. Monday - Friday from 8AM - 5 PM. 24 hours a day, every day. In addition, we...
So, any lead provider can post leads to your site if the current time of day falls within one of your schedules, as long as that lead provider is allowed to post leads within that schedule? The above is true unless the current time is an exception? If that's what you're asking, then I'd say that there's several databas...
1
1
141
2011-06-06T20:25:28.693
api_errors
softwareengineering.stackexchange.com
125,509
I want to set lower_case_variables to 1 but I'm unable to locate my.cnf
MySQL was started with [CODE] only, but it is not showing the default path of my.cnf: [CODE] [CODE] is not under all our default locations. When I start MySQL by creating a new [CODE] it does not start up. I want to restart MySQL & add a variable in my.cnf. When I remove [CODE] from [CODE] , MySQL is starting up with o...
To locate all "my.cnf" in the system: [CODE]
1
0
37
2016-01-07T14:24:18.500
database_errors
dba.stackexchange.com
134,225
Why can't I register a domain name that a registrar owns?
I am interested in purchasing a .ca domain name. It was taken, and when I did a WHOIS it showed me that GoDaddy (a registrar) has control of it, however when I go to GoDaddy to purchase it, I have no such option. I have always wondered - why do registrars do this? I've come across this situation before with other domai...
With many registrars you can have the registrar listed as the contact. This is in order to provide privacy for the person or organisation that has actually registered the domain.e.g. I have a domain with DynDNS but you won't find my details listed anywhere. A whois on my domain will only show DyDNS as a contact.
1
6
295
2010-04-20T21:48:34.900
infrastructure
serverfault.com
435,307
RedHat Linux: server paging, sum of RES/RSS + buffers + cached < TOTAL. Who is using my memory?
We have a server with 8GB, running mysql, 4 java applications and a small postgres db. We're having some issues with the system paging when running some mysql queries, so in order to see what's going on we ran some commands to see how memory is being used. Now the problem is that we can't find who is using 4 of our 8 G...
Is the system a vmware guest? If yes, VMware Balloon driver can use some unaccounted memory.
4
1
2,850
2012-10-05T17:18:12.073
database_errors
serverfault.com
308,660
Why does SCP write 0 bytes in this case?
I'm trying to copy my ssh key from my local vm to another box, everything seems to work ok, but when I check the remote box the file isnt there... [CODE] scp doesnt look it's writing anything, but I have no idea why! I thought maybe it's because the internal network isnt exposed and maybe it's not able to talk to the r...
What's that "Bash Src is loaded!" in the verbose output? It's coming from your ~/.bashrc, isn't it? Make it go away. Basically, it's the same as this: Rsync seems incompatible with .bashrc (causes "is your shell clean?") but with scp instead of rsync. Hey, there's even an entry in the FAQ: https://www.complang.tuwien.a...
2
5
9,478
2011-09-06T18:44:24.450
infrastructure
serverfault.com
51,972
CPU issues after upgrade to Selenium V4.11.0
After using selenium 4.11.0 version and launch error for 116 browser launch error was resolved. Has anyone observed Maximum CPU utilization issue after changing to selenium 4.11.0? I was using selenium 4.8.3 before and I was not facing any issues. After changing to selenium 4.11.0 the CPU issue started. Before my selen...
For me, the solution turned out to be commenting out the "-no-sandbox" argument . This was added years ago to solve a problem running the tests on an Azure DevOps VM. Today we use our own build servers so I don't know if the argument is needed for the original cause, but many messages discourage its use.
1
0
267
2023-08-22T21:19:44.183
data_quality
sqa.stackexchange.com
278,814
Proper Imaging Procedures to Restore and Deploy Image with Separate System Reserved Partition
UPDATE: As per my experience here, no one responded. If I do not hear back from TechNet forum members about it , I will post a bounty here, if it makes a difference. I have banged my head against a wall for what seems like all week. I am going to explain my simple procedure, and how none of it, absolutely none, seems t...
I fully sympathise with your pain. This has been driving me crazy for several weeks. What's most annoying is that bcdboot isn't on any of my Windows Server 2008 boxes, despite every guide online saying it should be. My situation is that we are unable to run a PXE server (long story) so have to manually apply the Window...
2
1
6,797
2011-06-09T16:19:45.553
database_errors
serverfault.com
640,938
New to virtualization, new hardware, and Server 2012 Standard w/ Hyper-v role
I run a small web hosting company and we are in the process of replacing all of our old physical servers (HP Gen4/5) with brand new hardware (HP Gen9 w/ Dual E5-2650v3's, 128G ram, 6x300G 15k 12G SAS3 drives in Raid10). We have no experience with virtualization and we are considering running Windows Server 2012 Standar...
Beefy hardware! There's nothing necessarily wrong with this setup, though. I use similar configurations on the VMware side, but can't add any Hyper-V specific information to this. These days, you're safe virtualizing everything. I'm curious about the consolidation ratio. Why only run 1-2 systems (VMs) on each host? You...
2
2
60
2014-10-30T17:21:08.720
infrastructure
serverfault.com
541,945
Postfix: e-mail is not received on server mailbox. Forward does work
For this server I'm running virtualmin. It comes with postfix. One of my users is complaining he's not receiving all the e-mails. To check this I let postfix forward his e-mails to another e-mail address (gmail). He is receiving the e-mails in gmail, not in postfix. The messages are not marked as spam. The e-mails can'...
What you see in above snippet is log when postfix forward email without keeping local copy. In plain terms, forwarding was same with changing recipient of email. Above snippet contains to queue-id 6248E3BC0243 and 8BD433BC056E . When postfix get email from hotmail, it gives queue-id 6248E3BC0243 . Because you set forwa...
0
1
518
2013-09-26T18:07:11.313
infrastructure
serverfault.com
23,534
Discovering string "motifs" in python
I have millions of strings from different sources that tend to exhibit some common patterns. Is there a way to extract these common motifs? For example, in a list (of millions) that includes strings [CODE] ..is there a way to extract the following patterns? 'rs' plus one or more digits 'sxs-rs' plus one or more digits ...
Assuming that letters are indicative of "motifs" and numbers are considered as digits and not exact numbers, this is what I would do: First - transform numbers into a digit placeholder ( [CODE] ) [CODE] Then I would transform a string into a bag-of-bigrams vector in the char level [CODE] After these 2 steps, we got a s...
2
2
523
2017-10-04T14:19:26.723
data_quality
datascience.stackexchange.com
1,018,175
How much free ram should I try to maintain on a small server?
Due to budget constraints, I'm using the smallest droplet that DigitalOcean provides, which is running a small (4 or 5 users) legacy php application for a client until I can rewrite it for them. I have just installed redis in order to try to boost performance for a few of the more expensive database queries. I have loo...
Capacity planning cannot be avoided. As an answer you linked to said, "it depends". Maintain enough available memory (also known as cached as you won't have any unused left as free). "Enough" meaning memory pressure won't slow things horribly while its trying to reclaim. And worst case, the OOM killer is bad news. And ...
1
0
139
2020-05-21T23:47:33.817
database_errors
serverfault.com
436,374
How to show only most recent items in most efficient way?
Consider application where users rates products (e.g. 1-5 stars). Through passage of time, there might be millions of records. One can create desired indexes and/or keep sum and count of all ratings to easily get overall average score of particular product or seller. The problem I am trying to tackle is how to efficien...
This depends on how important the one-year window is. If you get a request at 3:15 PM on January 31st of a year, is it important that you exclude a rating from 3:14 on January 31st of the previous year? A nice thing about averages is that you can break them up and recalculate them. So if it is acceptable to include rat...
0
2
130
2022-01-31T10:33:21.660
api_errors
softwareengineering.stackexchange.com
800,079
Unidentified Network on Hyper V External Switch
I'm trying to install Windows Server 2012 R2 DataCenter on Hyper-V Windows 8.1. I've enabled Hyper-V Virtualization from BIOS/UEFI and installed Server 2012 R2 with no issues at all. But now when I want to install AD DS on server I need to assign the static IP to my network switch within the Hyper-V. After applying the...
First off all , the case is a server 2012R2 VM running on windows 8.1 . But now when I want to install AD DS on server I need to assign the static IP to my network switch within the Hyper-V . You need to apply static IP in VM 2012R2 server OS , not 'network switch' . If the following items are true , you will get a VNI...
1
1
3,861
2016-08-30T21:08:58.100
infrastructure
serverfault.com
302,685
Question regarding actors in a Use Case diagram
OK, so I have this homework question whereby we are given a rather complex system description and need to create several UML diagrams that describe the system being described. I'm having an issue with designing the Use-Case diagram for it. Here is a very simplified description of the system: The system being described ...
Since this is a homework assignment, the best thing that you can do is ask your instructor for input. The person grading you has expectations, just like in the workplace your coworkers, managers, and customers have expectations. The expectations need to be defined by the person receiving the work. That said, I can prov...
2
3
2,067
2015-11-16T15:23:01.537
api_errors
softwareengineering.stackexchange.com
673,484
How to filter settings within a GPO that only applies to Windows XP?
We have several GPOs containing many settings that have accumluated over time. I have spot-checked some of them and stumbled over settings that only apply to Windows XP (we exclusively run Vista and Win7 clients). As we are having serious performance issues caused by overloaded GPOs I need to get rid of this settings. ...
To my knowledge this isn't possible - the "Applies to" description is merely a string embedded in the adm(x) file. There's no "IF" processing for this - regardless of what version of Windows processes the Group Policy it'll set that setting, whether it has any impact or not. Group Policy is exceptionally quick at proce...
6
4
214
2015-03-06T12:43:24.097
infrastructure
serverfault.com
343,650
Re-run remote desktop after a user log off from the server
Greeting, I have about 20 PCs with windows 7 home edition and I want users when turn on these PCs have only one option to connect to the server using remote desktop connection. I wrote a power-shell script and placed it in start up folder to lunch it when windows started up. simply the script has two lines: [CODE] With...
Something as simple as this should work: [CODE] MSTSC (the RDP client) generally terminates itself when the user logs off. So, you use start /wait to start the program and wait for it to quit, then just launch it again. Note that you might need to start something like "mstsc C:\rdp.rdp" in order for this to work, check...
1
2
616
2011-12-23T03:04:33.477
infrastructure
serverfault.com
1,089,489
Why do I routes to containers locally and how can I do better?
I'm setting up a new server at a new site. The server is placed behind a router / firewall. The server shall run several LXC containers for various services. The LXC containers are connected to a bridge [CODE] . The server furthermore connects to another site using OpenVPN in yet another LXC container bridged to the NI...
I found a solution for the posted issue. I now use a tagged ethernet interface to the router and distribute the VLANs using the [CODE] interface to bridges with no address to the host. [CODE] And the host itself can use his VLAN interface immediately. This routes all traffic of the virtual machines / containers of the ...
0
0
85
2022-01-09T20:01:51.607
pipeline_ops
serverfault.com
401,066
How should I best structure my app when I want to sort a "parent" model by a property computed on another "child" model?
Question about OO-programming, functional programming, NoSQL, SQL databases, and software architecture Hi all, I am a intermediate-level self-taught programmer, and have been dying to get an answer to this general question about how to structure my apps. Having no CS degree and only a few programmer friends, I haven't ...
This question is very broad and there is no one-size-fits-all solution. I nevertheless go through the topics to help you to better narrow down the problem. Let's first have a look at the data model: Your data model is about two different entities, [CODE] and [CODE] , with a one-to-many relation between them. I also und...
2
1
108
2019-11-14T07:38:52.510
pipeline_ops
softwareengineering.stackexchange.com
292,690
Cannot continue the execution because the session is in the kill state under compatibility level 120
SQL Server 2014 SP3+CU4. Database compatibility level is 120. My SQL is like: [CODE] Executing this, SQL Server reports: [CODE] If executed without [CODE] or let [CODE] , no error, but [CODE] error again. If I change compatibility level to 110 or 100, no error.
The error message indicates that an unhandled exception occurred within SQL Server itself. This may occur as the result of a product defect, or a corrupted database. You should run a [CODE] and take appropriate corrective action. That might mean restoring from the latest backup you have without the corruption present. ...
2
3
2,885
2021-06-03T02:22:08.083
database_errors
dba.stackexchange.com
57,418
How to determine MySQL queries per day?
I'm investigating the big switch from MySQL to a NoSQL DBaaS and I've run into an issue trying to forecast expenses. Essentially, I can't figure out how many queries my current MySQL server handles per day to try and estimate the number of requests I'll be using with Cloudant , which charges $0.015 per 100 PUTs, POSTs,...
For SELECTs: [CODE] UPDATEs: [CODE] INSERTs: [CODE] DELETEs: [CODE] ALl values are "cumulativ" since MySQL last restart. So to get your SELECTs in one hour: At 9pm: [CODE] At 10pm: [CODE] The number of SELECT in the past hour : 672363 - 671664 = 699 Best Regards
21
24
23,596
2014-01-23T20:23:06.157
database_errors
dba.stackexchange.com
94,310
Setting realistic expectations for deadlines
I'm a tech lead for a small team. One of the major tasks on my plate is communicating with the client. One thing I find particularly difficult is dealing with deadlines because they are mandated by the client and I'm frequently not consulted. Usually, the interaction follows the following pattern. The client comes up w...
You really need to talk to your boss about this and set some ground rules: A deadline is not a deadline unless you commit to it. An estimate is not an estimate unless you give it, and then it is an "estimate" not a hard deadline. Robert Martin's Clean Coder has a really good chapter about how to communicate this stuff ...
15
13
1,251
2011-07-19T19:20:55.053
api_errors
softwareengineering.stackexchange.com
554,857
Is file copying limited by free space on C drive?
I have some Windows Server 2003 and 2008 boxes that have files I need to copy that are in the range of 20 GB to 80 GB ranges. The 20 GB files transfer without a problem from one server to another using UNC path. The 80 GB files do not. I get a message telling me that is out of space. I am transferring from the D drive ...
You can not copy file into network share bigger than available space in drive C: if offline files are enabled in Sync Center. Click Start - Type "Sync Center", and check if your share is marked as offline. This is not limited to servers, this can happen on any Windows version including Windows 7 and Windows 8. Offline ...
2
1
654
2013-11-13T22:06:57.080
infrastructure
serverfault.com
460,931
Verify if the files can be unzipped successfully from 7Zip archive
We want to 7zip many database files (mysql, Oracle, and SQL Server dumps), various standard files (excel, word, etc), but we are afraid that once we 7Zip them and delete the originals it can happen that archive is corrupted or it has some error and the files will be lost. Is there a way that once you 7zip something you...
You can use 7zip to do this. Either right click and select Test Archive from the 7-Zip context menu or you can use the command line [CODE] etc You get output like this from the command line [CODE]
6
9
11,497
2012-12-26T09:58:45.087
database_errors
serverfault.com
155,864
Bulk exporting SQL Server 7 data and bulk importing it to SQL Server 2008 R2
Like the title suggests, I want to bulk export data within an sql server 7.0 database into a file and then import it to an sql server 2008 r2 database, I did the following, I first typed this command on the windows 2000 shell: [CODE] it was executed successfully, then I copied the C:\test.fmt in a network shared folder...
The BCP utility attempts to connect to the default instance if you don't specify the -S parameter. My guess is there is no default instance available for the 'import' BCP.
0
0
235
2016-11-21T10:16:31.540
database_errors
dba.stackexchange.com
172,443
Find Job Calling Another Job
We have a job that is not scheduled to run but was kicked off by what we suspect was another job. There is no job history but it does appear in the error logs. How can we find out if this is being called by another job? I know that we could use sp_start_job to immediately call a job within a job step but, if that is th...
How can we find out if this is being called by another job? Search all your job steps for the string with job name that ran by other job (at least that is what you suspect). This query is from this website. [CODE] why would there not be any history for the job that ran? Depending of how your job history is set up. See ...
5
3
3,239
2017-05-01T16:14:16.963
warehouse_errors
dba.stackexchange.com
252,445
How does autocommit=off affects bulk inserts performance in mysql using innodb?
I know that turning off autocommit can improve bulk insert performance a lot according to: Is it better to use AUTOCOMMIT = 0 And I have made experiments to confirm that conclusion. But what I want to know is, why turning off autocommit can improve bulk inserts? And what happens internally in inno db when a transaction...
There are 3 ways to do transactions. All 3 of the following involve transactions. [CODE] Or... [CODE] Or [CODE] If you are doing a bulk [CODE] , you probably want it to be a transaction unto itself, since you have already combined a lot of 1-row inserts into a "bulk" insert. Speed: A transaction has some overhead. A st...
2
2
3,105
2019-11-03T08:37:42.080
database_errors
dba.stackexchange.com
354,311
Local server outside: How to access url internal over router?
i have the following problem: i installed a new test-mailserver in our office today and did some port-forwarding on our router to the specific mailserver ports. everything works fine, except the following situation: i want to use a url foo.bar.at, whos a-record points to our fix network ip. this work fine when checking...
Two options: "NAT Reflection" is the term for getting your router to do the NAT for the outside address for traffic originating internally. How this is configured (or whether it can be) depends completely on your router. DNS view splitting. For this, you'd configure your DNS for internal systems to resolve the external...
0
5
458
2012-01-27T17:24:21.823
infrastructure
serverfault.com
633,546
mail rejected from some domains on same VPS
I have multiple domains hosted on a VPS. Hotmail seems to reject email from certain domains (it does not even arrive in the spam folder), but accepts email from other domains (on that same VPS). What could be the problem? I already set up spf and DKIM. I guess this could not be a problem related to blacklisted ip's sin...
Your domain accumulates reputation scores managed by different organisations, which are mostly pretty hard to find out about. Smaller email hosts may be clients of external reputation scoring services. An organisation like hotmail probably runs it entirely themselves. A likely one is that you might be running mailing l...
-1
1
103
2014-10-04T14:33:48.617
infrastructure
serverfault.com
396,131
Can only connect to IIS site through localhost
I'm building a web service for my company's iPhone application, and everything's been working smoothly by running tests through localhost on the development machine. I'm now in the phase where I need to test connections from other computers within the network, and any connection other than localhost gives me a 404. My ...
It's not real clear if you are running on a sever or a desktop. I'm assuming you are running on a desktop with Visual Studio. If that is the case, the built-in Visual Studio web server, "Cassini" does not accept remote connections AT ALL! Try downloading IIS Express or actually spinning up IIS on your machine instead, ...
0
3
24,864
2012-06-06T15:24:22.653
database_errors
serverfault.com
75,006
PAL Report - 64-bit Windows Server 2008 R2, issues
I don't know anything about SQL Server, however I found the following issues while running the PAL report. It seems that RAM is the primary issue and it has to be increased. Kindly suggest. Critical: Less than 5 percent of RAM is available or less than 64 MB of RAM is available Less than 500 MB of free disk space (Tota...
Less than 5 percent of RAM is available or less than 64 MB of RAM is available Less than 500 MB of free disk space (Total Latch Wait Time) / (Latch Waits/ Sec) Looking at first two alerts it says that SQL Server might be facing memory crunch. It would be better to determine using perfmon counters. I use below counters ...
1
2
581
2014-08-26T20:31:03.610
api_errors
dba.stackexchange.com
988,090
Docker ports do not seem to be reachable from outside server
I am facing a weird situation with Docker in a SUSE Linux Enterprise Server 12 SP1. I am connected to the server using SSH. First, I tried to run a simple nginx server to test: [CODE] The container starts successfully. Then, running [CODE] works! [CODE] However, when I try to access it from a browser from my computer, ...
Here, our Docker container is reachable through docker0 (network: 172.17.x.x) From your browser, you're trying to connect to some 10.x.x.x address. Using a Browser on the Docker host Assuming you just want to connect from your browser to a locally-hosted container, then the easier would just be to reach your container ...
9
4
15,128
2019-10-15T14:16:12.440
pipeline_ops
serverfault.com
317,460
Hard drives, how to calculate read and write speeds supported?
Possible Duplicate: dell 2T 7.2k nearline SAS 6Gbps- ingress/egress throughput I don't have access to machine/drive, but need to define specs to purchase one. What all things would it be dependent on? Using RAID 10, would improve it? Would it be dependent on file size, which we read or write? How to calculate latency o...
Using RAID will improve it, but only if you choose an appropriate stripe size, if you have several small files, a smaller stripe size is recommended. And I think the only way to calculate is to put it to the test, every case is different. How many drives will you use? What raid controller will you use?
0
0
838
2011-10-01T08:24:00.867
data_quality
serverfault.com