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
773,160
OpenSSL - is it necessary to test on every cipher
I want to check if it is necessary to test on every single possible ssl,tls which my testsslserver has listed. The purpose is to find out as many http response as possible. And on top of that, I want to check if HTTP response code other then 200 is it valid or not: [CODE]
If you are trying to check compatibility of your Ciphers with browsers, you can run it with SSL Labs . And for up to date ciphers, you can use Mozilla .
0
1
159
2016-04-27T03:56:25.653
infrastructure
serverfault.com
714,517
Unable to run logstash config file (permission denied)
my config file is stored in [CODE] and I ran the command [CODE] as root. However, they told me that permission denied when I tried to do that. Is there any way to solve this?
The way to solve this is to use the correct path to the [CODE] executable. According to your description [CODE] is a directory, not an executable file, so you cannot use that as a command.
-1
1
579
2015-08-16T14:01:46.080
infrastructure
serverfault.com
56,762
Oracle OS Authentication only works on certain databases/clients
We currently face a problem where Oracle OS authentication only works on certain client/server combinations. The environment consists of a development client with its own database server (excluded for this example), an "integration" client with its own database server (for integration tests) and a "reference" client wi...
Fixed the problem: The source of the problem was that the broken clients and server were referencing a central [CODE] file on a different file server. This was intended; however, I did not know that this also makes those machines search the [CODE] there. Someone - or some installer or something - placed an empty [CODE]...
1
2
3,021
2014-01-14T15:34:10.117
api_errors
dba.stackexchange.com
185,721
Granting SELECT permission on a object
I am not sure if this is an odd question, so please let me know if what I describe below is possible. We have a server, which is configured by someone else and none of us are "added in it". As of now I have only [CODE] login in said server. I am checking this via [CODE] and then by [CODE] And the output is [CODE] I wan...
I wanted to just run a SELECT statement against a table to see the value. Question Is there anything I can do at all? To find your permissions on the object you can use the function sys.fn_my_permissions Just run this query to figure out your permissions on that table: [CODE] If you have no [CODE] permission on the obj...
3
6
1,805
2017-09-12T14:35:39.567
warehouse_errors
dba.stackexchange.com
1,110,365
When installing docker on Ubuntu, why isn't it as easy as apt-get install docker?
I've installed docker a dozen times on Ubuntu using the instructions on the docker website (7 commands including removing old versions, adding a gpg keychain etc). I always just powered through, but today I paused to wonder why it's not just one command. Surely apt is smart enough to do all that. Surely the hundreds of...
Since I wrote this, there are at least two new versions: the snap version ( [CODE] ), which works well but isn't the latest and does not support all the bells and whistles that the Docker Desktop supports. Depending on your needs, you can just use the default Ubuntu version: [CODE] The list of available packages is: [C...
3
8
2,255
2022-09-09T21:51:20.570
pipeline_ops
serverfault.com
67,366
How is the target_f updated in the Keras solution to the Deep Q-learning Cartpole/Gym algorithm?
There's a popular solution to the CartPole game using Keras and Deep Q-Learning: https://keon.github.io/deep-q-learning/ But there's a line of code that's confusing, this same question has been asked in the same article and many people are confused but there's no a complete answer. They are basically creating a main ne...
Hi David and welcome to the community! I think that the [0] is for accessing the array of actions as it is in double brackets. After this you need the action index to update appropriately. The Q network would have as many outputs as the actions available (in your case 2). Then you want to update the weights of the netw...
2
1
107
2020-02-01T13:17:18.950
data_quality
datascience.stackexchange.com
1,058,306
HAProxy stick table rate expiration
I am using HAProxy on Ubuntu to perform some rate limiting. Here are the most important fragments from my config: [CODE] I did not include my actual backends here but within this example my expectations would be: requests are usually answered with a status 503 the 101st request within a sliding window of 10 seconds is ...
I've hit this as well. It seems to be regression . Switching to 2.3.X (specifically 2.3.7) resolved the issue for me. If you're running it from docker using [CODE] as I was, you'll have to switch to a different image for now.
1
1
1,455
2021-03-25T16:12:17.950
api_errors
serverfault.com
99,219
Who can explain mongodb with ssl?
I created certificates according to the instructions on the official website of MongoDB, but it doesn't work properly. I have a replica set and self-signed certificates. I need a full encryption of traffic between replica members. How do I properly set up these replica members? And how do I enter the MongoDB shell? I c...
When you create the self signed certificate, you need to use a valid host name in the "Common Name" field, e.g.: Common Name (eg, your name or your server's hostname) []: host.domain.com If you want use a domain certificate, you need to change "host" with "*", e.g.: Common Name (eg, your name or your server's hostname)...
6
1
8,890
2015-04-30T08:07:50.310
database_errors
dba.stackexchange.com
125,521
How to fix SQL Server Management Studio 2014 IntelliSense when intermittent
Our remote SQL Server was recently upgraded to 2014. I installed SQL Server Management Studio 2014 on my Windows 10 client computer. At first, everything seemed to be going great, until I noticed that IntelliSense is intermittent. By "intermittent" I mean that on the same computer, while working on the same script, Int...
If possible, I'd suggest trying SSMS 2016 instead. It's still supported to use it against SQL Server 2014 (in fact, it's supported to use it against instances as old as SQL Server 2008). With 2016, SSMS is now free, and the installer for it is separate from the installer for the SQL Server server components (Database E...
5
1
8,245
2016-01-07T15:40:18.757
database_errors
dba.stackexchange.com
109,321
Any SQL where clause performance similar to where 1=0
(i'm using SQL Server 2008R2 or later) For centralize manage and consistent, there is a view definition as follow: [CODE] so if the value in parameter_table.col1 = 1 then return table_fee_detail else return table_fee. (Note: parameter_table only have 1 row) As the first part require 10 secs and second part require anot...
You are looking to choose rows from one of two tables dynamically. This is generally possible to achieve without dynamic SQL. To demonstrate, here is a simplified version based on the AdventureWorks sample database : The idea will be to choose rows from either the TransactionHistory or TransactionHistoryArchive tables ...
4
4
1,173
2015-08-07T07:07:56.420
database_errors
dba.stackexchange.com
275,521
IIS 7 not reporting PHP errors?
When I encounter an error in a PHP site running on my local IIS7 error, I just get a blank page. I have tried disabling the "Show friendly HTTP errors" option in IE. In my PHP.ini, the display_errors = On is enabled. In my script, I have the following set: [CODE] I'm not sure why IIS is still not showing the errors? Is...
Try use this way: [CODE] The display_errors is boolean value, i think it can not set to 'On'. Other thing is to install PHP Manager for IIS and then configure error reporting with this plugin, set it to development machine.
2
1
2,156
2011-05-31T05:53:08.403
api_errors
serverfault.com
46,168
SQL Server not using available memory
SQL Server 2008 R2 Standard Edition (64-bit) on Windows 2008R2 Enterprise Server has over 300 GB of memory but total memory use in control panel never goes over 86 GB Have SQL configured to use the maximum amount of memory Even under heavy use - CPU over 80% for minutes Dedicated SQL Server Several large databases One ...
Standard Edition is limited to a 64 GB buffer pool. To use all the available memory of the server, you'll need to upgrade to either Enterprise or Datacenter Edition, or scale out to multiple instances of Standard Edition.
8
17
1,058
2013-07-11T16:39:32.137
database_errors
dba.stackexchange.com
132,742
Windows 2003 Server Suddenly Drops Connections to everything but PING and port 80 (webserver)
I'm running a Windows 2003 Dedicated server, and the box has been rock solid for more than 2 years now. Just recently, I have had an issue where after a certain ammount of time the server will just stop accepting connections on all ports except 80, and still responds to pings. If you surf to a static HTML page on the b...
Sounds like there's some outbound firewall filtering going on. You could install and run Wireshark and see where your packets are going.
1
1
612
2010-04-15T15:04:53.750
database_errors
serverfault.com
449,659
Nginx: Bad Gateway 502 error
I am running Nginx with PHP5-FPM on Amazon EC2 on Ubuntu 12.04 64-bit. I get a bad gateway error whenever I got to my site. I know that it is a configuration issue but I am not sure what is badly configured. My error log: [CODE] My [CODE] : [CODE] If anyone can help me figure this out, I will really appreciate it.
php-fpm isn't running. Restart the service.
1
1
3,475
2012-11-17T06:06:13.797
infrastructure
serverfault.com
110,129
Planning to buy some cat5e cables. 568A or 568b?
I plan to buy about 20-30 feet of Cat5e (or 6) cables. I have 30 mbits connection. I was looking around and the ones we are considering are 568B. I was looking for quality in my cables. Is this appropriate? If they're no good, what should I be looking for?
568B is a termination standard and has nothing to do with the cable itself. 568A is an alternate termination standard and not as widely used. Both perform equally the thing is you need to choose one and stick to it at a particular instalation so as to avoid confusion later on.
5
16
551
2010-02-06T00:56:15.813
infrastructure
serverfault.com
5,645
Any disadvantage to using oraToolkit for installing oracle
I am going to install oracle 11gR2 on a redhat enterprise 5.6 machine. Is there any disadvantage to using oraToolkit ? For example, could it cause any problem or difficulty for future complimentary installations, like data guard, or RAC?
This is an open question. It's a tool kit so its certainly possible for you use it in a way that would not be optimal for some other future use. It may not include tools for some of the things you want to set up or in the way you'd like to set them up. The oracle installation process isn't difficult, is well scripted a...
0
2
795
2011-09-12T04:59:31.793
database_errors
dba.stackexchange.com
939,301
Can't connect to ipsec server running in docker behind firewall
I have a setup which I dont think is very difficult but cant get it to work. Working setup : An ipsec server running in a docker connected directly to internet. The clients can connect. Not working setup : An ipsec server running in a docker connected to internet behind a firewall. I have [CODE] in an esxi server which...
Your iptables rules from the question comments: [CODE] I don't really see why you'd need the port 53 forwarded: making the DNS server of your internal network visible to everyone on the internet is asking for DNS spoofing attacks - not a good idea. After the VPN connects, you'll be able to access it securely through th...
2
3
813
2018-11-09T11:30:37.953
pipeline_ops
serverfault.com
215,795
Should programmers itemize testing for projects?
I recently hired a programming team to do a port of my iPad app to the iPhone and Android platforms. Now, in a separate contract, I am asking them to implement a bunch of tips on how to play the app, similar like you would find in Candy Crush or Cut the Rope. They want to charge 12 hours @ $35/hr for the "Testing all o...
To determine whether or not the software "works" you and the software developers evaluate the software against the software requirements that you provided to them, and determine whether or not the software they provide to you actually meets those requirements. The way you direct this process is by providing testing req...
0
5
340
2013-10-28T22:17:16.567
api_errors
softwareengineering.stackexchange.com
434,107
Code-First Database Creation During TFS 2010 CI Build
I would like to automate code-first database generation during the automated CI build of a web project in Team Foundation Server 2010. When run locally the tests create a code-first database specified by the connection string in the app.config of the tests project. How do I configure the TFS Build Configuration to mimi...
The problem, it turns out, was that the TFS build server was successfully running the test which was using the default connection string in the app.config which pointed to the local SQL Server, not where I expected it. The solution was to use SlowCheetah on the TFS server as a means to transform the App.config file usi...
2
0
176
2012-10-02T16:12:09.823
infrastructure
serverfault.com
162,256
In C and C++, what methods can prevent accidental use of the assignment(=) where equivalence(==) is needed?
In C and C++, it is very easy to write the following code with a serious error. [CODE] The error is that the if statement should have been: [CODE] As coded, it will exit every time, because the assignment of the [CODE] variable occurs, then [CODE] is used as the result of the expression. Are there good ways to prevent ...
The best technique is to increase the warning level of your compiler. It will then warn you about potential assignment in the if conditional. Make sure you compile your code with zero warnings (which you should be doing anyway). If you want to be pedantic then set your compiler to treat warnings as errors. Using Yoda c...
19
64
5,346
2012-08-25T06:28:38.553
api_errors
softwareengineering.stackexchange.com
322,992
Bypass cache for mobile user agents, VARNISH+NGINX+W3CACHE
Right now I'm running Wordpress w/ W3 Cache on nginx with varnish front end. I'm trying to use the WP Touch Pro plugin for wordpress to display mobile sites, but it is not working. Shows the desktop theme still. I've put the mobile user agents in the rejected user agents box in w3 cache. Here is the nginx config w3 cac...
It doesn't look like you're adding the X-Device header to your hash, assuming you've not posted that part of your VCL because it doesn't exist? There's a full set of instructions here, slightly drupal based, but still relevant: http://fangel.github.com/mobile-detection-varnish-drupal/ The main bit, you need to have thi...
2
2
3,953
2011-10-19T18:06:29.983
infrastructure
serverfault.com
716,077
Automating user password creation and User privileges restriction in solaris 8
I have couple of questions. Here is the first one We are trying to automate the creation of a user in solaris 8. We provide a default password and then force the user to change the password at first login by using the command [CODE] but the issue is we have to type the password two times so as to confirm it. I have tri...
I don't think you can easily do what you want to do on such an ancient 1 system. I don't think this will work but you could try [CODE] You could try to use the expect utility. This will do what you want and there are plenty of example scripts on how to change a password using it. The trouble is it may not be natively p...
1
3
582
2015-08-23T05:44:01.203
infrastructure
serverfault.com
84,867
Running scikit-learn with large volume
I need to run a Random Forest process with [CODE] . To train the model, I have a database table with 10 million rows of features. The question is: what is the best way to approach this, should I load into memory the 10 million rows, for example with numpy or pandas or there's a better way to load the data progressively...
There are multiple possiblities from dusk, to others model etc. Here are my 2 favorites, not to loose you in the number of possibilities: www.h5py.org/ "It lets you store huge amounts of numerical data, and easily manipulate that data from NumPy. For example, you can slice into multi-terabyte datasets stored on disk, a...
1
3
608
2020-11-02T21:37:31.057
data_quality
datascience.stackexchange.com
259,205
Get a truly RANDOM row from a PostgreSQL table quickly
I always used to do: [CODE] For large tables, this was unbearably, impossibly slow, to the point of being useless in practice. That's why I started hunting for more efficient methods. People recommended: [CODE] While fast, it also provides worthless randomness. It appears to always pick the same damn records, so this i...
Interesting question - which has many possibilities/permutations (this answer has been extensively revised). Basically, this problem can be divided into two main streams. A single random record Multiple random records (not in the question - see reference and discussion at bottom) Having researched this, I believe that ...
8
15
9,100
2020-02-08T06:31:00.833
database_errors
dba.stackexchange.com
611,832
Redmine imap issue
I'm having a big problem with redmine. I want people to send a mail to : it@myfirm.com and then redmine has to create a ticket. So first I tried doing it with rake but I quickly realized that its just too much for people to enter the project name and tracker in the subject so now I want to solve it via CURL/post. curl ...
Redmine offers you a solution which should work for your need: http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails
0
0
278
2014-07-11T08:21:15.190
infrastructure
serverfault.com
298,143
nginx + MySQL + php5 + Wordpress: Too much php5-fpm processes
I have this web server running on nginx + MySQL + php5 + Wordpress. The thing is, the server is to slow and I think it's due to the number of php5-fpm running. Look at the numbers of php5-fpm processes I have. It's too much! The server can't handle that much (I think). How do I decrease the number of processes? [CODE]
Depending on how you have configured php5-fpm, you need to look at the max_children setting.
0
0
393
2011-08-05T16:41:40.033
database_errors
serverfault.com
560,731
Bind DNS Server Error
I try to set up a Bind DNS server, if I test the actual configuration with [CODE] the following error appears: [CODE] Unfortunately I don't know how I can fix this problem, please can anyone help? Many Greetings Content of ect/bind/db.domain.de: [CODE] Content of ect/bind/db.0.168.192: [CODE]
You have specified that your first nameserver should be [CODE] but you don't have an IP address assigned to that subdomain. You should add an A record like this: [CODE] Your other name server is on a different domain (domain2.de) so the A record for that nameserver should exist in the config for that domain. I'm not su...
0
3
466
2013-12-11T18:19:51.740
infrastructure
serverfault.com
89,760
Prevent MySql from mangling queries by casting string to int
On one of my tables I have an auto incrementing ID field. It also has another field (richter_code) with a unique constraint but, over the seasons, this field can change - that's why I'm not using it as the primary key. In my program's code, I have a load function. First thing it does is check the richter_code field for...
Gotta love MySql ;) I searched Stack Overflow for a MySql equivalent to some [CODE] function, and found this . This rather convoluted WHERE clause would return the expected 0 rows: [CODE] The idea is to only match the parameter against [CODE] when it is a valid numeric value . Hope it helps! I'd create an actual [CODE]...
12
10
5,962
2015-01-20T23:38:43.123
database_errors
dba.stackexchange.com
788,585
MariaDB won't start after server lost power at datacenter
CentOS Linux 7.2.1511 MariaDB version 10.1.14 Server was running fine, there was a power failure at the datacenter. When the server came back up everything is working fine, however MariaDB won't start. I don't see any log files in var/log or var/lib/mysql journalctl -xe returns, [CODE]
Added innodb_force_recovery= 3 to my.cnf and it is now fixed. I incremented from 1 and it was fixed at 3.
1
1
1,328
2016-07-07T21:59:15.570
database_errors
serverfault.com
124,930
Application losing Printer within Terminal Services for remote users
Question: What I need to do is have a permanent link to a printer, normally only accessible through Terminal Services (Printer Redirect), to allow Sage Line 50 layouts to see that printer persistently, even after users have disconnected and reconnected to the Terminal Services session? Although the printer is accessibl...
Some assuming, if these are local users and are just logging into this server or are logging in remotely via VPN for this one application, wouldn't it be easier to just install the Ricoh locally on the Server pointing to the IP Then just tell users to print to that printer, as it's IP based they wont have to play with ...
2
1
2,258
2010-03-22T13:15:04.730
infrastructure
serverfault.com
453,974
Two Exchange 2003 servers, Internet SMTP Connector using port 587 on smarthost: no longer internal connectivity between the Exchange servers
To summarize: I set things up (this is a virtual test/tutoring environment), broke internal connectivity by introducing Internet mail connectivity, figured out where the problem was, but now I'm wondering if I'm overlooking some easy setting to fix this instead of what I'm thinking about. Situation: two Internal Exchan...
Quick question Did you configure the SMARTHOST on the second Exchange 2003 server to use the first one to deliver emails ? Assumption: Exchange 1 - TLS587 > Outbound to Google. Port Forward 25/80/443 from Firewall to Internal IP Exchange 2 - Use Exchange1 as SmartHost to deliver emails, anon auth, Exchange 2 Exchange S...
0
0
1,115
2012-11-30T18:15:45.967
infrastructure
serverfault.com
75,303
Edge-synchronization failed, invalid credentials
We have a simple Exchange 2007 setup with Mailbox, Hub Transport, CAS and Edge Transfer. The Edge Transport server is located outside AD in a DMZ. My problem starts 24 hours after successfully configuring the edge-subscription as per Microsoft's guidelines on technet... I get InvalidCredentials and the synchronization ...
It turns out that the service "Microsoft Edge Credential Service" on the Edge-Transfer server had stopped, and this caused the "InvalidCredentials" to pop up in the eventlog on the Hub Transport server. Therefore I'll just keep monitoring this service for a few weeks, and hope it doesn't stop again. I fixed this by sta...
2
1
1,557
2009-10-16T19:05:54.163
infrastructure
serverfault.com
102,249
Does schema normalization enhances query efficiency
I understand the importance of normalization in reducing data redundancy and various anomalies but I am wondering if it can also enhance the performance of your query?
It depends on the situation. If normalization leads you to split your relations into multiple tables, and if you build those tables with primary keys and foreign keys which are defined to the database so that they are properly indexed, then in that sense query performance is enhanced. Similarly, if your table is not in...
2
3
606
2015-05-22T10:35:04.923
warehouse_errors
dba.stackexchange.com
192,116
"Login failed for user" when using admin user in SSMS
I am trying to connect to an Azure SQL database via SSMS. The connection string supplied by Azure is: Server=tcp:SERVER_NAME.database.windows.net,1433;Initial Catalog=DATABASE_NAME;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertifi...
Pretty sure the problem is in the username. When you connect to an Azure SQL Database instance, foo@bar implies that you're connecting as the login "foo" to the instance "bar.database.windows.net". The credentials you use when logging into the Azure management portal won't work when you're using SSMS. Verify that you'v...
2
2
1,979
2017-11-30T22:45:33.617
warehouse_errors
dba.stackexchange.com
251,799
How to check what/why stopped Tomcat?
I have Tomcat 6 on Debian 5 on VPS. Sometimes Tomcat stop responses, and when I then checked server there is no Tomcat process and none exception to this in Tomcat logs. How can I check what killed Tomcat process?
You could try to search in syslog: /var/log/* for the messages (syslog) use the following command: [CODE] and you will get the last 5 or so log messages. here's an article on debians syslog: http://www.aboutdebian.com/syslog.htm Oli
2
2
15,967
2011-03-25T13:12:54.497
infrastructure
serverfault.com
1,835
How to get Ansible playbook ouput in one line?
In Ansible we are running a playbook using [CODE] . The output will be multiple lines (like below). I need output in single line. How can I get that? [CODE]
That's still a XY problem IMHO, why do you want an output in a single line at all ? what's the need for it ? If you can't explain more and wish to footgun yourself by replacing newlines with spaces the use [CODE] (you'll probably end up loosing the end of the log). If your goal if to parse the last line then [CODE] wil...
-3
5
2,668
2017-08-23T12:15:47.670
pipeline_ops
devops.stackexchange.com
25,206
Why I didn't get any significant variable in my logistic model?
I decided to apply the logistic regression method to my categorical and quantitative data. So, I followed these steps: Eliminating the bad and inconsistent data. Preparing the target variable (categorical variable). Testing the dependencies between categorical variables and the target variable using the Ki-2 test for s...
Welcome to the site! So far what you have done is good. Before going to modelling you need to take care of couple of things(Exploratory Analysis), Like: Removing all the unnecessary variables based on business knowledge Imputing Missing values Removing Outliers removing unimportant variables Correlation analysis betwee...
1
0
149
2017-11-29T09:06:26.693
data_quality
datascience.stackexchange.com
149,464
Small MySQL table swap/replace taking incredibly long time
We have an import job that commits data to a staging table, and then swaps the production/staging tables using the below SQL: [CODE] Aside from writing to the staging table during the import, the tables are only read by our application (no other writes). The staging/production tables are always around same size (~40k r...
Rename table requires a LOCK on the table to complete. In your 0sec case there were no connections using the table and it works immediately. In you 8 min case, The RENAME table waits in a stage something like "waiting for table metadata lock" until the existing SELECTS are done. Also the SELECTs that are issued after t...
1
0
388
2016-09-12T18:55:04.917
database_errors
dba.stackexchange.com
583,338
Uncorrectable Machine Check Exception on HP DL360 G7
i have about every hour in IML (hplog) from HP DL360 G7 record: [CODE] [CODE] Can someone tell me what part is being referenced by the IML status codes above? Thank in advance!
Please upgrade the BIOS on the server to the current revision. If this is reproducible on such a regular interval, that is absolutely the first thing I would try. The safest way to run this update is to use the offline HP Service Pack for ProLiant DVD image. If not, can you tell us what operating system is in use? You ...
1
2
15,842
2014-03-20T07:58:50.533
api_errors
serverfault.com
579,318
.htaccess errordocument disable header
I want to redirect error to specific page, so i wrote: [CODE] This is working, but in the HTTP response header I can still see [CODE] . Some browsers (like IE) that see that message, ignores the HTML code in the response (of [CODE] ), and showing their own page instead. Is there any way to tell the server that if [CODE...
Internet Explorer is silly and displays its own custom error pages instead of yours , if your error page is less than 512 bytes after compression . Make your error page at least 512 bytes (maybe add a long HTML comment, if you don't have that much to say).
0
1
678
2014-03-02T17:15:41.010
api_errors
serverfault.com
409,592
Using the symbol ⎋ to denote any "escape" in Javascript, CSS, HTML etc
I know that: Computer keyboards have an Escape Key The symbol for the Escape Key is [CODE] and I also know that: HTML5 & CSS3 both have escape characters Javascript has the backslash escape character ( [CODE] ) etc. But are we using the same word "escape" in these two distinct contexts? Or are "escape" (in escape chara...
The name of the escape key and the phrase "escape character" are certainly linked, but I think you are stretching the definition to cover your use case. The "escape" key on keyboards is so called because it sent a reserved "escape character" to the connected terminal (if using ASCII, this would be character 27). That "...
0
2
449
2020-05-02T15:10:15.890
api_errors
softwareengineering.stackexchange.com
13,469
The meaning of failure - what is the flaw in our process?
A company I've started working for uses a QA process I haven't come across before, and it seems flawed to me. I'm keen to know what we should do to fix this process. We use a JIRA workflow. After our developers have sent a new/fixed software item to QA, we will fail the item if the new/fixed functionality is incorrect....
We can't tell you how to fix your process because it depends on your own circumstances. That said, this does not sound like a hard problem solve. It sounds as if your Jira configuration is not expressive enough for your workflow. If it were me, I would do start by getting agreement on which workflow problems need fixin...
1
1
220
2015-06-14T14:12:09.400
data_quality
sqa.stackexchange.com
878,145
Raspberry Wi-Fi Access Point doesn't transmit traffic from mirror port
I'm setting up a Raspberry Pi as an Access Point (Wi-Fi) and I'd like to use it to monitor a switch traffic. I setted up a mirror port on a Cisco Catalyst switch and configured my Raspberry Pi to work as an Access Point (with hostapd). I configured a bridge between my eth0 and my wlan0 interfaces with brctl. My problem...
This isn't going to work for several reasons: As Ron Maupin said in the comments on the question, the frames that come out of the span port don't "work" the same way as "regular" frames, because they're already Ethernet frames destined for another MAC address. Bridging them is unlikely to work very well at all. 802.11,...
0
1
128
2017-10-12T14:13:40.743
infrastructure
serverfault.com
340,548
MySQL update fatal error on AWS Ubuntu server
I was just browsing the system logs on my alestic Ubuntu 10.04 AWS EC2 production server, and found this: [CODE] I'm assuming it came from a routine [CODE] . Is this something I need to address? It looks serious.
it looks like you deleted the debian-sys-maint user, or the password for this user needs to be reset. The init scripts use this account for stopping/starting and maintanence. It expects the password for this account to match the password found in /etc/mysql/debian.cnf. The user is typically created having all privilege...
1
3
399
2011-12-13T17:06:29.810
database_errors
serverfault.com
259,336
Apache/wsgi "Script timed out before returning headers"
I have a custom Django app that's becoming unresponsive roughly every 5,000 requests. In the apache logs, I see see the following: [CODE] I believe I am running WSGI 2.6 (/usr/lib/apache2/modules/mod_wsgi.so-2.6) with the following config: apache config [CODE] /somepath/django.wsgi [CODE] When this happens, I can kill ...
You could try to add a limit of requests after which the daemon processes are recycled (before an external process does it). This is done by adding the [CODE] parameter of [CODE] . See https://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#Defining_Process_Groups Alternatively, you could investigate how much pr...
9
0
9,249
2011-04-13T16:53:35.620
database_errors
serverfault.com
14,793
Deployment Error: getaddrinfo ENOTFOUND <appServiceName>.scm.<appServiceEnvironment>.appserviceenvironment.net
Issue We're getting the error: ##[error]Error: Error: Failed to deploy web package to App Service. Error: getaddrinfo ENOTFOUND {appServiceName}.scm.{appServiceEnvironment}.appserviceenvironment.net {appServiceName}.scm.{appServiceEnvironment}.appserviceenvironment.net:443 When running the below pipeline task: [CODE] T...
The official solution is documented here: MS Docs: Create ILB ASE - DNS Configuration You need to have DNS entries for your ASE so that the deployment task can reach it; but if you have an internal only ASE, those entries aren't created in public DNS, and MS don't manage private DNS. MS propose creating the DNS entries...
2
2
11,642
2021-10-06T20:15:37.207
pipeline_ops
devops.stackexchange.com
174,202
How many sessions can you cram into a terminal server?
I have a customer who plans to deploy an app to one server and have 100 or so users remote desktop into that server. It's currently planned at 4GB RAM. Obviously there are problems to explain with this idea, but the customer seems willing to scale up the hardware (and his licenses) as needed and take everyone offline t...
To accurately plan capacity for this, you need to investigate the characteristics of the application and the load it'll place on the terminal. First off, if this is a critical line-of-business app that will lose the business money if it's not available for a few hours, you want to be looking at 2+ terminal servers runn...
0
7
13,565
2010-08-25T05:07:56.513
pipeline_ops
serverfault.com
1,028,658
Setting Default Write permissions for group in Linux
How can i achieve the following behaviour; If user1, which is in group2 creates directories or files, the group should have write permissions by default on this files/directories. I already tried putting umask 002 in /home/user1/.profile and .bashrc but this gave me the following: [CODE] So how can i achieve this? The ...
You should be able to do it with ACL. [CODE]
0
0
279
2020-08-03T09:18:07.627
infrastructure
serverfault.com
283,958
Database Normalization vs dependencies
I am developing 3-4 interdependent programs. Call them foo bar baz and auth. I want them to be independent of each other. Imagine if I were to license out each program to other companies. Some companies may want foo and bar, others may just want baz, etc. It also seems like good practice to keep auth independent as wel...
If you have 4 independant services, then they have to independant. No data should be shared in common DBs or similar, as then you simply make them dependant! Now while its OK to share a single DB in production, the services should use their own schemas as to DB is just there as a common container, similar to how a sing...
8
4
297
2015-05-14T22:04:14.293
api_errors
softwareengineering.stackexchange.com
929,411
Is there any performance benefit to Bond Virtual Adapters?
I am using XenServer and wondering if there are any performance benefits to bonding two "virtual" network adapters on a virtual machine? I am certain it would benefit a bare metal server (make one inbound, and one outbound). The actual server only has one adapter active at this time.
Performance-wise, you may have a penalty using a vNICs bond. The physical NIC may have to change mode, while your Guest OS changes vNIC. However, from availability point of view, there may be some small benefit: A vNIC can be blocked somehow, in OS level and then a second vNIC may take over - a very low probability cas...
0
1
154
2018-09-04T15:17:59.100
infrastructure
serverfault.com
1,091,280
Remove Missing Drives from ZFS Pool
After an embarrassing session trying to replace a disk in my ZFS pool, I have a bunch of entries representing disks that are no longer present in the system: [CODE] How can I get rid of the disks listed as [CODE] ? Once this is cleared I should be able to correctly add the new disk to the system and run the [CODE] comm...
You're mixing terms, and this could lead to the pool corruption/destruction. So you have a spen comprising two mirrors, and one mirror is degraded because the disk died. you should replace the failed drive if first mirror. Actually, both of them, the original drive that died and the replaced drive that for some reason ...
0
0
983
2022-01-26T19:00:18.920
infrastructure
serverfault.com
71,510
How do I follow DRY when documenting module structure and interfaces?
In this paper , it is recommended that one document the following: module structure module interfaces If I'm writing detailed module structures and interfaces in a standalone document, aren't I repeating work that is also done with object declaration statements, unit tests, and docstrings? If so, and if this is bad rep...
Automatically generate documentation from tests/docstrings/code Correct. Find a tool that fits your language and creates documentation from comments embedded in the code.
4
4
263
2011-04-26T20:28:02.363
data_quality
softwareengineering.stackexchange.com
32,202
Reinforcement Learning in 2018, best tips and tricks?
Putting aside things applicable to neural networks such as dropout, l2 regularization, new opitmizers - what are the cool things I should be adding to my Reinforcement Learning algorithm (Q-Learning and SARSA) to make it stronger, in 2018 ? So far, I know these: Experience Replay (gather experiences, then train at once...
Have you looked at the Rainbow RL ? It combines all improvements of RL. Apart from structural changes other improvements come from Reward Shaping, Curiosity-driven Learning, RL with Unsupervised Auxiliary tasks and RL with external memory (e.g. Neural Episodic Control, Model-free episodic Control). It's pitty that you ...
2
1
528
2018-05-26T15:38:53.270
data_quality
datascience.stackexchange.com
84,652
Stemmer or dictionary?
I have recently ported a stemmer from Java to Python for a highly inflectional language. The stemmer learns how to change suffixes from the dictionary of words and their inflected forms. It basically builds a stemming table with learned stemming rules. As I was porting the algorithm I decided to train it on a larger di...
There is another reason: words which don't appear in the dictionary. Of course a dictionary approach will correctly stem all the forms which are known in the dictionary, and depending on the language this may indeed lead to better accuracy. However the dictionary approach cannot do anything about unknown words, whereas...
4
3
153
2020-10-29T13:08:31.543
data_quality
datascience.stackexchange.com
686,177
Windows 2012 DNS does not answer queries about zone itself (SOA, NS, A, ...)
I have several Windows servers with DNS and AD roles, some are Win2003, some are Win2012. There is an AD-integrated zone [CODE] that contains an ip 192.0.2.1 for [CODE] and an ip 203.0.113.1 for [CODE] . A DNS query for [CODE] returns the ip 203.0.113.1 as expected, no matter which server is asked. (Especially, we can ...
To be honest, the zone [CODE] (or [CODE] as someone later edited) was really [CODE] . Therefore I needed to remove [CODE] from the globale DNS block list applied.
1
0
500
2015-04-28T14:37:03.043
database_errors
serverfault.com
1,095,344
How do you set a self-destruct or maximum uptime in AWS?
Situation We have a sandbox AWS account for trying things out. It is not for production, purely just for playing around with all the toys that AWS provide. We want to encourage everyone to explore and learn. We have many AWS accounts in our estate, including but not limited to, sandbox development test production Finan...
At one previous employer someone had written a Lambda function to list all running instances and stop them each night at 7pm if they didn't have a specific tag. This was a pretty simple, effective way to handle it. The python [CODE] libraries are pretty easy to use. The lambda was deployed in the Organisation and used ...
2
1
211
2022-03-04T13:59:23.917
infrastructure
serverfault.com
733,956
Windows Server Backup Problems
I've got a bit of a problem here that I have inherited. Currently, I have two Windows 2012 servers running. One server is a production server with 1 Hyper-V VM on it that has SBS 2008 on the guest VM. The other server is a standby server just in case the other server goes down, we can restore the production server to t...
http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx "You can use a network location (i.e. \servername\foldername) as a backup target in above commands. However, network backups will save only the latest version of the backup, deleting the previous version, as multiple v...
2
1
2,857
2015-11-04T19:32:46.870
database_errors
serverfault.com
305,025
Why is dealing with multiple threads considered difficult?
You can say this is opinion based, but the problem is that everyone's opinion on this issue is same. Even the lead developers say that creating the threads is easy, dealing with them together is difficult. It isn't a newbie's job. All I know is that to deal with threads you have to lock all shared data till each thread...
Locking objects can be the cause of deadlocks if you're not careful. Suppose you have two data structures A and B that need to have data in them synchronised. Thread 1 updates A with new information, then updates B to match. Thread 2 updates B with new information, then updates A to match. So the workflow for thread 1 ...
1
3
583
2015-12-14T08:34:59.117
database_errors
softwareengineering.stackexchange.com
738
What Key Performance Indicators (KPIs) are used to measure DevOps?
I am trying to drive good behaviors within a DevOps transformation programme, to support this I am looking at identifying actionable metrics around the operations disciplines: Problem and Incident Management Capacity Management Change and Release Management To be absolutely clear, these are functions that used to belon...
I don't think there are any "universal" DevOps KPIs. For example, velocity is great, unless it's not a key driver for your business. Amazon cares a lot about velocity because they have a massive retail operation. That's less important for a small app with 100 users. This begs the question: how do you select the best KP...
13
12
1,953
2017-03-31T13:00:35.180
pipeline_ops
devops.stackexchange.com
167,909
Help troubleshooting mysql deadlock
We have a query, which is trying to update a row, placing a user at the end of a queue. To do this, it needs to grab the MAX(initialPositon) and set this row's initialPosition to MAX(initialPosition)+1 Due to the mysql restrictions on updating the same table you are reading from, we've designed this using a join It's i...
This is an ugly solution that may introduce other issues. It is offered as a means to eliminate the lock you are experiencing. Auto_increment is preferable to managing numbers in this manner. The number could be managed in its own table incremented as needed. This table could be locked at no detriment to the main table...
0
0
58
2017-03-22T17:43:33.347
database_errors
dba.stackexchange.com
345,451
Convert a team from VB.Net to C#.Net
I am currently running a team of 5 VB.Net developers and have decided to make a switch to C#. The team builds and maintains around 20 different applications that run our whole platform, so the code-base is fairly moderately sized. There are several factors for making the switch, but the biggest is to overcome recruitme...
If you currently have VB.NET devs who know C#, I don't think all 20 applications need any rewriting all at once. It's just too much coding, testing, rolling out and for what? Because your next few hires won't understand the code? Don't confuse C# coders who just hate VB with their not being able to understand it at all...
3
12
2,653
2017-04-03T12:01:58.650
pipeline_ops
softwareengineering.stackexchange.com
657,965
Why is permission denied during pssh?
I am trying to add an ssh public key to a bunch of servers authorized_keys file. My thought was to use pssh and a list of hosts. To test, I tried to pssh to one host: [CODE] When I run this, I get: [CODE] If, from the same server I run pssh, I just ssh into the host [CODE] , I get in okay and I can run [CODE] just fine...
The output redirection is happening on the local machine. You need to quote the command to protect the >>.
0
2
852
2015-01-07T20:35:30.867
infrastructure
serverfault.com
568,010
Apache URL resolution - serve html file as directory
I've changed my web hosting provider and now I have a configuration problem: In the root of my site, I have a file called [CODE] . The Apache configuration on previous webhost would serve its content even if accessed as [CODE] or [CODE] . The Apache on the new webhost treats those two cases as 404 error. Note that ther...
Enable [CODE] for the [CODE] in question. [CODE]
0
1
273
2014-01-17T14:30:54.487
infrastructure
serverfault.com
521,631
error on \Device\Harddisk11\DR26 but Disk 11 doesn't exist
On a Windows 2008R2 server, I am getting this message in Event Viewer: [CODE] However, there is no disk 11 on this server. The disks stop at 10. This particular server is a Hyper-V host in a cluster. All of the disks are either CSV disks or pass-through disks, all backed by iSCSI. How can I identify which drive this is...
This is a bit of a WAG but have you tried recompiling the iSCSI MOF files? I've come across similar behavior where NetApp's SnapDrive can't enumerate all the of the iSCSI drives on a particular server. This blog pointed me at this KB2001997 . Try comparing the results of the following WMI query on this server to anothe...
5
1
3,421
2013-07-08T14:43:14.307
infrastructure
serverfault.com
930,658
Postfix Alias issues
I am having an issue with setting up an alias "support-notify" in Postfix. Recipient address rejected: Access denied; I am running Postfix with OpenDKIM, OpenDMARC, Policyd-SPF, and Dovecot on Ubuntu 18.04 LTS. The map looks like this in /etc/aliases [CODE] The user support-notify does not exist while users1-3 are actu...
I decided to blow away my entire postfix configuration and rebuild it to utilize virtual users/domains with mysql as a database.
0
0
559
2018-09-13T00:06:27.393
infrastructure
serverfault.com
212,224
Import a 260GB csv file into MySQL
I have a really big csv ~260GB and I want to import it into MySQL. I use the following mysql script in MacOS DROP TABLE IF EXISTS tmp_catpath_5; create table tmp_catpath_5( a1 BIGINT(20),a2 BIGINT(20),a3 BIGINT(20),a4 BIGINT(20),a5 BIGINT(20), c1 BIGINT(20),c2 BIGINT(20),c3 BIGINT(20),c4 BIGINT(20),c5 BIGINT(20), INDEX...
I don't know if there are limits for particular DB engines but I've met with some Department of Defense admins who manage a MySQL system which imports 10TB every day and they are not experiencing this kind of problem. Rather than use macros I recommend writing a script to parse the input file and create insert statemen...
7
5
5,250
2010-12-13T22:37:41.160
database_errors
serverfault.com
1,140,574
Certbot failed to authenticate some domains (authenticator: nginx)
Im running nginx as reverse proxy and for some reason im unable to renew letencrypt certificate, i have tried to upgrade nginx and certbot to latest version. It has worked before and im not sure if some server configuration have been changed. When running certbot renew i get following error from certbot: [CODE] Certbot...
You've looked at your logs - which is good start! Since it appears that LetsEncrypt is accessing your site, you can rule out a lot of issues related to DNS and HTTP. The next thing you should try is to run through the HTTP-01 challenge yourself and see what happens. Certbot renewals will be run as a cron job - so this ...
2
0
8,624
2023-08-03T08:32:03.023
infrastructure
serverfault.com
957,860
Https not working
I have a site running on Apache. My site is working properly for http requests, but not for https. This site is behind ProjectShield and I followed this tutorial in order to activate my own SSL certificate https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04 When I ve...
It looks like you've just put your site behind ProjectShield by making the changes to DNS and then assumed that HTTPS will simply work if it was setup on your origin server. This is not the case. ProjectShield is essentially a CDN which does content inspection. In order to do so with HTTPS it needs to have a certificat...
0
3
150
2019-03-12T07:47:58.837
api_errors
serverfault.com
196,401
Local web server
I want to create a local web server and different domains for eg. apple.com,abc.apple.com,xyz.apple.com etc.I installed LAMP in CentOS 5.4. The problem is i am not able to configure ssh username and password for each of my subdomain.I want to keep a single document root for each subdomain. can anybody explain the whole...
1 "create a local web server and different domains for eg. apple.com,abc.apple.com,xyz.apple.com" Set up virtual hosts on the Apache httpd server. Edit httpd.conf: [CODE] 2 "configure ssh username and password for each of my subdomain" First, set up users to maintain the content of each site. There are a number of ways...
1
3
154
2010-10-30T10:45:37.707
infrastructure
serverfault.com
1,143,280
IIS 10 - IP Address And Domain Restrictions is denying all traffic
I have a server that has multiple sites set up on it in IIS 10. On one of the sites, I want to allow access to a range of IP Addresses, and deny traffic to the site from all other IP Addresses. In IIS, in the IP Address and Domain Restrictions settings, I have added an ALLOW rule for the range of IP addresses, and a DE...
At [CODE] you can set the option [CODE] to [CODE] and remove the lower entry.
1
2
507
2023-09-07T21:27:24.647
infrastructure
serverfault.com
219,936
SQL server database backup - Destination Disk - Adding multiple files - does it duplicate or split backup into the files?
When we do full data backup (using SSMS UI), at the bottom of the window we have the option to specify the destination as Disk and also to add multiple files. My question is - does adding multiple files create duplicate copies of the full backup? or does it create a split backup - that is split the full backup into the...
Don't rely on the behaviour of SSMS, which has historically been buggy or poorly documented and also sometimes changes from version to version. The easiest way to be sure is to click the "script" button on top of the dialog and compare the output to the documentation. For example when you click the script button after ...
4
7
3,400
2018-10-12T08:22:51.793
database_errors
dba.stackexchange.com
1,101,684
Docker: error could not translate host name to address: Name or service not known in psql
We have the following [CODE] : [CODE] ...and the following [CODE] : [CODE] The custom entrypoint ( [CODE] ) looks like the following: [CODE] And the [CODE] : [CODE] We are trying to setup this project for anonymization of PII, PHI and similar. The problem is that when why we try to run [CODE] the following error appear...
The problem is that you are running [CODE] at the build phase. At that point there is no hostname of the container in /etc/hosts, and the postgresql server is not even running. You can either add the hostname during build phase and start the daemon before you run the script, or you run the init-script on first start of...
1
1
14,231
2022-05-24T12:26:15.833
database_errors
serverfault.com
331,155
pg_cron: "policy ... for table ... already exists" error while restore postgres database from dump
I'm trying to restore postgresql database from dump on fresh new server. Source database uses [CODE] extension, target server have [CODE] extension installed. This is how I create dumps on "source" server: [CODE] This is how I restore dumps on empty "target" server: [CODE] [CODE] on the first command is used to left "p...
This is caused by a shortcoming in PostgreSQL. Normally, all objects created by an extension automatically become members of the extension. The effect is that such extension members of an extension don't get dumped separately by [CODE] , as these objects are considered part of the extension, and the statement [CODE] in...
3
2
279
2023-09-13T10:13:25.187
database_errors
dba.stackexchange.com
303,381
Performance difference between environments when adding column
We have 2 exact same Database Environments. The second environment contains a copy of the production database and hosts approx 11M records in the Invoice table. The goal of this environment is used to see how long specific upgrade queries will take to know if there will be any downtime (as tables are locked during sche...
Adding NOT NULL Columns as an Online Operation Starting with SQL Server 2012 (11.x) Enterprise Edition , adding a NOT NULL column with a default value is an online operation when the default value is a runtime constant. This means that the operation is completed almost instantaneously despite the number of rows in the ...
2
5
601
2021-12-02T07:01:05.237
warehouse_errors
dba.stackexchange.com
112,785
Can I improve the performance of this MySQL query by adding an index?
I ran SET GLOBAL slow_query_log = 'ON'; in MySQL and this appeared in the log: [CODE] Can I add an index for this query to make it run faster? explain [CODE] Table definition: [CODE]
Can you get rid of the leading [CODE] in '%uggjplove13@gmail.com%'? If so, that will make a world of difference! Any index starting with [CODE] can be used (assuming you get rid of [CODE] ), and the query will be fast. If not, read on... [CODE] , when it can be used, will be very fast. But you may have to build some in...
4
2
162
2015-09-01T05:20:40.897
database_errors
dba.stackexchange.com
785,247
Available RDS licenses but still no access
We have two Remote Desktop servers (Windows 2008 Server R2), with one of them being the license server. We had 30 CALs so only 30 sessions could be opened. We bought 5 more CALs and installed them on the license server. Licences seem to be installed and working but we cannot get more than 30 users at a time. Licensing ...
The problem was i was trying to set that GPO in the Local Group Policy for each RDS Server, once I set the same GPO on the Domain Controller (Domain Policy), it allowed me to have the connections that I want.
0
0
258
2016-06-21T09:55:27.407
infrastructure
serverfault.com
278,187
MSSQL - Should I change min server memory to 0
I Works as a DBA and "inherited" about 50 instances (all server has about 8GB-24GB of RAM), all of them are configured Min Server Memory equal to Max Server Memory, and 4GB RAM reserved to OS. Should I let SQL server to acquire and release by itself (Min Server Memory = 0)? Is it possible to get CPU overload by MSSQL D...
all of them are configured Min Server Memory equal to Max Server Memory, and 4GB RAM reserved to OS. Barring few cases keeping min and max server memory same can be counter productive. In such configuration when low memory flag is signaled SQL Server will not trim down its memory consumption below min server memory val...
0
1
242
2020-10-16T12:15:30.357
database_errors
dba.stackexchange.com
153,967
For accessing Oracle 12c RAC database by JDBC to ensure high availability, should I use TAF or FCF?
The case I encounter is that if one of the database on RAC array is suddenly down, the transaction is rolled back and connections between JBoss and Database are broken. What I want is to preserve the JDBC connections and redirect them to another oracle database on the array. Also, can transactions preserved? In this ca...
In this case, should I use TAF or FCF? TAF- Transparent Application Failover is a database session-level connection failover mechanism and works only for OCI clients. FCF- Fast Connection Failover is a application-level failover mechanism. It depends on the implicit connection cache feature and implicit connection cach...
3
7
632
2016-11-02T03:16:13.660
database_errors
dba.stackexchange.com
49,183
Combining multiple left join for one single line
We have a query as below. [CODE] Structure for the tables are as below: [CODE] Sample output is. [CODE] The problem now is how to show say for e.g. A1 all the Alert Message in one line and same goes for A2 etc. Now each alert message is on a different line.
Use the GROUP_CONCAT function [CODE] or [CODE] A good index to create for this would be [CODE] What good will this index do ? This will get everything for a specific [CODE] All [CODE] rows are ordered by [CODE] The [CODE] column will be available for use from the index rather than the table because the Clustered Index ...
1
2
1,449
2013-09-03T16:26:46.910
warehouse_errors
dba.stackexchange.com
901,253
NFS traffic going to interface with different IP address but same subnet
My NFS server has 3 interfaces: 0 : 1Gb, 1 : 10Gb, 2 : 10Gb. Iface 0 is just used for admin purposes and 1/2 are for two different mounts. All of the interfaces are on the same subnet (/24). | server | ----> iface 0/1/2 ----> |private switch| ----> |all clients| My clients are configured to connect to nfs via interface...
To make this work you have to configure separate routing tables and rules for all three inet interfaces and enable [CODE] . You also might first want to test this in a VM environment as you can easily interrupt any connection during the next steps and there will be definitely some hickups. First enable [CODE] . [CODE] ...
2
2
3,716
2018-03-12T17:16:52.717
infrastructure
serverfault.com
906,184
Is removing IPv6 remote IP addresses safe to do on Exchange 2013 on a single Receive Connector?
I've seen numerous mentions that you can't turn off IPv6 functionality on Exchange 2013 servers without suffering serious problems. However, on my Exchange 2013 server, I have the Port 25 default receive connector set to only accept connections from certain IPv4 IP addresses (blocked out in red): https://i.stack.imgur....
You shouldn't turn off IPv6 functionality generally, but if you're deciding to accept mail only from a limited set of hosts, then it's reasonable to list only that set of hosts here. You should remove the line which permits mail to be delivered from all IPv6 addresses, and add the individual IPv6 addresses of the hosts...
0
0
492
2018-04-05T14:43:23.627
infrastructure
serverfault.com
127,640
Where are my Tomcat Logs?
I installed Tomcat6 on a Ubuntu 9.04 server using apt-get install tomcat6. I uploaded a WAR using the manager interface and tried to start the application but get a pretty generic error on the Web interface saying it couldn't be started. I am trying to find the logs to determine why my war won't start (I suspect low me...
Very late to this discussion, but it appears that the 03catalina.policy file in both tomcat5.5 & tomcat6 doesn't actually permit writing to logfiles. The simplest solution is to change the JULI permissions to: [CODE] Obviously, there may be security issues I'm not aware of, but I really can't be bothered to dig deeper ...
35
9
383,859
2010-03-30T12:20:51.127
infrastructure
serverfault.com
329,288
How can I create a set of pixel coordinates for a line in Python?
I've got some code that's searching pixel by pixel from a starting point, at a certain angle, until it finds a pixel (a non-white pixel) It only has to search around 300 pixels: I'm currently using polar to Cartesian function 300 times... [CODE] ... but it's very slow, up to 68 milliseconds per search (if it goes the w...
Digging around I found an Eye Diagram which includes a pure Python Bresenham implementation and a Cython one, HTH :)
-1
0
1,596
2016-08-25T11:59:01.727
api_errors
softwareengineering.stackexchange.com
849,422
Redirect/tunnel (Tight)VNC traffic over (Open)VPN connection? (Windows)
(updated routes list/OpenVPN connection data to reflect the current situation) This probably has been asked/answered before, but i'm really lost (and i can't comment on other/existing questions yet due to lack of points). What i'm trying (and want) to achieve , is to let my remote (WAN) users connect to my VNC server, ...
Great to see your working with Tight VNC. I was running with Ultra VNC in my user's machine and connect them while I was working in the home. I connect with Open VPN, I will just use VNC clients such as tight VNC viewer or Ultra VNC viewer. I just put the IP of the user I want to connect as like I was in office. I can ...
3
1
11,936
2017-05-11T03:48:36.523
infrastructure
serverfault.com
397,301
Check if all files in a directory exists elsewhere
I'm about to remove an old backup directory, but before doing so I'd like to make sure that all these files exist in a newer directory. Is there a tool for this? Or am I best off doing this "manually" using [CODE] , [CODE] , sorting, comparing, etc? Clarification: If I have the following directory listings [CODE] and [...
I'd make my own tool. Go the manual route for this one with some fancy find-ings: [CODE] That's incredibly sloppy, but the basic algorithm should be alright. You could also do some catting to figure out which files didn't have copies in both like so: [CODE] I can explain the bits and pieces if you need.
4
1
4,143
2012-06-10T07:06:33.473
database_errors
serverfault.com
352,701
Login/Startup Scripts Not working
My test network setup is as follows. A Windows 2008 R2 Server acting as a DC (AD, DNS, DHCP) it is on its own vlan (10.20.99.0/24). I then Have two XP test computers each on there own vlan (10.20.98.0/24 and 10.20.97.0/24). For the vlans with the test computers I have the IP helper-address set to 10.20.99.255, they are...
It sounds like the permissions on the share holding those scripts isn't right. A startup script is executed as SYSTEM on the local machine. That means that that computer account, or the Domain Computers group needs read access to the share.
0
1
2,228
2012-01-23T13:16:28.057
infrastructure
serverfault.com
878,630
QNAP-NAS / git clone on NFS share not working
I'm using a QNAP NAS as storage server for my Ubuntu home directory. Everything seems to work fine, so far I did not encounter any problems with file permissions. The output line of mount is: [CODE] However, when I try to clone a git repository into my home directory, I get the following output and error messages: [COD...
Same problem. I guess there's 2 ways. Turn off Advanced ACL in QNAP-NAS. Go to Control Panel > Privilege > Shared Folders > Advanced Permissions > Uncheck [] Enable Advanced Folder Permissions or Add [CODE] option in [CODE] like follows. Options may differ depending on your preferences. [CODE] I did the latter and it w...
4
2
1,902
2017-10-16T08:01:09.573
infrastructure
serverfault.com
139,644
PowerShell Pipeline Binding examples on SQL server?
I am learning PowerShell, my training machine (VM) is a Windows Server 2012 R2, with SQL 2014 and PS 4.0. I am try get a handle on the two Pipeline Binding methods ByValue & ByPropertyName. I am a hands on learner so I like to try things and play with them a bit to get the real feel of how they are doing what. Some of ...
Getting specific to SQL Server would require there be any cmdlets within SQLPS that actually use the ByValue or ByPropertyName binding. I only know of a few like those for the Backup or Restore, but don't really use them. I think the ones around Azure SQL might use them as well (e.g. [CODE] ). So in the end this is rea...
2
2
228
2016-05-26T17:18:18.413
pipeline_ops
dba.stackexchange.com
17,216
Alias Names and Two Table Query Problems
I'm quite new to querying databases, I've only been doing it for about 2 weeks in the current job that I'm in and have never touched SQL prior to this. I'm working on trying to use alias names to pull two different sets of tables and display the fields in each table, all while ordering them by a specific field. Here is...
Oracle does not support using the [CODE] keyword for defining a table alias, only for column aliases. Just rewrite the query by placing a space between the table name and the alias and see if it runs that way. In particular rewrite the [CODE] clause like this: [CODE]
2
4
2,165
2012-04-30T03:28:44.077
database_errors
dba.stackexchange.com
281,102
SQL Server Indexed View and TOP
I'm struggling to persuade a query plan to behave as I think it should. The addition of a TOP clause when querying an indexed view is causing a sub-optimal plan, and I'm hoping for some help in sorting it. Environment SQL Server 2019 StackOverflow2013 database (50GB version), Compat Mode 150 (problem is not specific to...
Outer Apply You're using [CODE] , but with a where clause that would reject [CODE] values. It's converted to an inner join without the [CODE] : [CODE] I've formatted your code a little bit, and added an [CODE] to validate results across queries. No offense. Outer Apply + TOP (1) When you use the [CODE] , the join is of...
5
9
446
2020-12-08T12:25:33.897
database_errors
dba.stackexchange.com
232,766
dtexec returns immediately without any messages
I'm trying to setup a command-line call to dtexec to validate packages, using the project model. I'm calling dtexec like this: [CODE] Though the real paths to the ispac and dtsx are longer. WHen I run this, all I see on the console is: [CODE] The whole thing runs in under a second which leads me to believe that it did ...
When you run dtexec with the parameters I used, you cannot specify the file extension .dtsx with the package name. That causes the program to exit immediately, without error messages. Why dtexec doesn't issue some kind of error message, as I feel it should, remains a mystery.
3
1
425
2019-03-21T16:51:42.273
warehouse_errors
dba.stackexchange.com
34,737
SQL Server connection failed for domain user from Mac OS machine
I have SQL Server 2008 R2 SP1. I am using connection string to connect to SQL Server. In connection string I am passing the driver path, server name, TCP port number, user name with which I want to connect, password, DSN name, TDS driver version number, db name. I am using Free TDS driver for connecting from Mac OS mac...
As Jason Cumberland mentioned in his comment connecting from a Mac is problematic since the Mac does not support Active Directory so is not likely to work with [CODE] or [CODE] . You will need to use standard SQL Server Authentication where you specify the username and password, and set [CODE] .
2
1
3,845
2013-02-14T07:14:38.300
api_errors
dba.stackexchange.com
224,196
Performance gain with MultiSubnetFailover for single subnet
On BOL I read following about [CODE] =True: The MultiSubnetFailover connection option should be set to True even if the availability group only spans a single subnet . This allows you to preconfigure new clients to support future spanning of subnets without any need for future client connection string changes and also ...
When [CODE] is set, SQL Server Native Client will aggressively retry the TCP connection. So in a multi-subnet scenario, it will attempt connections in parallel, which you already know. a single subnet scenario, it will aggressively retry the TCP connection faster than the OS default TCP retransmit interval, so your rec...
5
5
1,003
2018-12-05T13:17:25.633
database_errors
dba.stackexchange.com
153,377
Fastest way to do a mysqldump restore on Amazon RDS?
We need to restore a database from a 7-Gb mysqldump file to a RDS Amazon instance. The full restore takes between 3 and 4 hours (probably because of network latency since the dump has to reside on a EC2), and it's too long for us. For reference, a restore to a local mysqld would take less than 30 minutes. Is there a Am...
You must now think in terms of the RDS Instance Provisoning more IOPs Is it safe to use innodb_flush_log_at_trx_commit = 2 Set innodb_flush_log_at_trx_commit = 2 Set sync_binlog=0 Since max_allowed_packet = 1M by default in Amazon RDS, this could cause mysqldump's multirow inserts (extended inserts) could fail. You may...
1
3
5,067
2016-10-26T13:58:45.007
database_errors
dba.stackexchange.com
232,160
sendmail error "Relaying denied. Proper authentication required. (state 14)."
I am an absolute newB on sendmail, now I installed sendmail, configured it (as far as i know) added localhost-names, added access entries added virtuser entry, opened port 25 in iptables. My DNS is pointing to my server! Now when I connect from another location on the internet, and use telnet server.com 25 and use manu...
According to your sendmail.mc your sendmail setup supports SMTP authentication and STARTTLS. When you connect "by hand" (telnet) on port 25 you are not using any of these options. However, it seems that your client is setup to connect to your sendmail server and use either SMTP authentication or STARTTLS (or both) and ...
1
3
11,288
2011-02-07T14:07:32.683
api_errors
serverfault.com
233,954
Import data from excel to table in sql
Please I have issue that when I try to import data from excel to table in SQL it fails with below errors even I modified all the tables in the tables to be nvarchar(max) and I tried to enter dummy data in the first row
It worked correctly for me with the below 1- Convert from XLSX to XLS 2- Add incremental primary key at XLS sheet 2- Then save as text Unicode 3- Go to Microsoft SQL then right click on the database then import flat file 4- Convert data types to nvarchar(max) if need it
0
0
997
2019-04-04T13:31:12.577
warehouse_errors
dba.stackexchange.com
412,464
How should I handle a scalability problem during routing my requests from server?
I have faced a problem with the initial design of my system where sensitive information was being sent to the front-end and front-end was responsible for calling 3rd party APIs. As you have probably guessed it was extremely vulnerable to attacks. To remedy this I added a back-end system to proxy those requests and call...
Tokens Depending on your collaborating third-parties you could use a token system. User Obtains a suitable permission restricted, and signed token from your server. They use this token to talk to the third-party services. The third party services verify the integrity of the token with you, alternately you already clear...
-3
1
53
2020-07-07T21:27:26.867
api_errors
softwareengineering.stackexchange.com
82,473
Data are not saved to database - Auto creating new datafile in oracle
I have some problem with Oracle database. Before it works like that, if INDX[Counter].dbf file reach its maximum size (8GB) Oracle automatically created new datafile INDX[Counter+1].dbf. But on server wasn't enough size to create new datafile. I increased space on server, I created new datafile manually: [CODE] Right n...
In your example, you have Autoextend on with 4M as the next extension, but you also have MAXSIZE set to 8G, which means that Oracle is being told that once a tablespace reaches 8G, it will no longer automatically add space. This is for safety purposes, as sometimes administrators want to know when a datafile is growing...
0
1
1,132
2014-11-12T13:40:05.090
database_errors
dba.stackexchange.com
290,988
Restoring full back up taking forever
I am new to DB Admin in SQL Server. I am more of a SQL Developer. I am trying to restore 95GB size of BAK file to SQL Server (in Azure VM). The issue is that it is taking more than 24 hours now.. I realized that since I have multiple more BAK files to restore after this one, I have to restore the main BAK file (95GB on...
This is the expected behavior. When you restore using "With no recovery", it tell SQL to leave the DB in the "recovery" state (allowing you to restore subsequent backup). If you want to make the database available, you can run a [CODE] Note that running this command will bring the DB online and you will be able to run ...
1
4
217
2021-05-04T17:09:06.390
database_errors
dba.stackexchange.com
118,170
The ideal function in R for fit fitting n LASSO Regressions on n data sets
As part of a statistical learning research paper I am collaborating on, I am running/fitting two hundred sixty thousand different LASSO Regressions on the same number of different randomly generated synthetic data sets and calculating some standard classification performance measurements (True Positive Rate, True Negat...
Brian Spiering's answer was correct Marlen, however, I clicked on the link you posted in a comment below his answer and spotted the problem. You have alpha = 0 instead of alpha = 1, not sure if this was a typo or you were confused which means what, but you want it to be set equal to 1 in your glmnet function. So, what ...
0
0
51
2023-01-31T05:32:18.903
database_errors
datascience.stackexchange.com