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,049,012
Running nginx with SSL on AWS
I've installed nginx on AWS using this configure script [CODE] and I've issued a Certificate for my URL (let it be mydom.com) using the AWS Certificate Manager (ACM) and its status is displayed as Issued Then I've edited the relevant section in the nginx.conf [CODE] I've selected the files: [CODE] and [CODE] only becau...
ACM certificates can only be used by AWS managed services, primarily load balancers. You can't access the private key so you can't present an ACM cert using Nginx installed on your EC2 instance. Your best options are: Terminate https at an ALB, forward traffic over http to the web server Use a Let's Encrypt certificate...
0
1
5,443
2021-01-08T00:15:45.670
infrastructure
serverfault.com
142,897
Why Is it better to use unreadable bytes for client server communication?
I'm composing communication lyrics for client-server and what am I thinking about: "authme username passord" (maybe encrytped) "accept" "get archive of H2O from 03.02.2005 to 20.12.2064" transferring binary structure or "error descrtiption" why I always need to do something like 0x0FA52FD + CRC 0x0D34423 + CRC ... I ca...
I would advocate a binary protocol based off something like Protocol Buffers . There's little benefit, in my opinion, in a human-readable protocol assuming the protocol isn't meant to be read by a human. Using protocol buffers gives you the compactness of a binary protocol with the flexibility of a text-based protocol ...
3
7
904
2012-04-04T07:45:32.473
hadoop_errors
softwareengineering.stackexchange.com
611,651
Error sending emails from a mail server relay type falling into the spam folder (using postfix)
Here I show one of the emails that come to Yahoo, which are falling directly into SPAM folder. The SPF goes smoothly, the DKIM passes without problem, even DMARK passes without problem, but just keep falling in SPAM. [CODE]
Can you try sending an email to a different email service? If Yahoo has detected the sender as spam before, perhaps there is now an email rule that moves all mail from that sender into the spam folder. Have you tried sending to a Gmail address or other email provider?
0
1
408
2014-07-10T16:47:33.287
infrastructure
serverfault.com
272,777
FreeBSD server - certified compatible hardware?
I am looking for recommendations for hardware that is "certified" with FreeBSD (8+) I suspect I am looking for a small server manufacturer that will build me a server that "just works". I have read http://www.freebsd.org/releases/8.2R/hardware.html , but I miss the connection between a machine advertised by Dell and th...
Pretty much any piece of server hardware will work fine with FreeBSD - I've used Dell hardware with no problem, as well as several SuperMicro variants ( IronSystems is the one I deal with most frequently, though they don't "certify" hardware for compatibility). If you must have "certified" hardware and don't want to wa...
7
11
2,733
2011-05-23T15:08:47.257
infrastructure
serverfault.com
286,148
mySQL Group Replication Error "ERROR 3092 (HY000)"
The full error (on 2nd node) is: [CODE] This is after starting the 1st server without error. The log shows: [CODE] I am following these instructions . The instructions say that the UUID should be the same for all servers. My droplet is a LAMP Ubuntu 20.04 droplet. mySQL 8.0.23 Anyone run into this? Any thoughts on what...
Turns out the 2 servers had the same server UUID since one was cloned from the other. Deleting auto.cnf on one server and restarting fixed the problem. Newbie error for sure!
1
1
3,656
2021-02-27T22:30:55.863
database_errors
dba.stackexchange.com
49,928
How to load chrome profile with Selenium correctly?
So I am trying to write a test in which the first step is logging in, but it is denying me access as it detected automation tools because the javascript has not been enabled and there is no profile. So I am trying to load my default profile. The problem I'm getting is that the browser does open, but it quickly fails as...
In UI automation testing, it has become almost necessity to set the profiles for browsers for security reasons. So by considering this many outsourced QA testing companies are following this practice of adding chrome options and making it a mandatory coding standards in their organizations. These options can be set usi...
0
0
3,684
2022-03-21T22:52:31.600
data_quality
sqa.stackexchange.com
249,939
Grant User permission to view XE results via sys.fn_xe_file_target_read_file
I need to grant a user ( [CODE] ) permission to view one particular XE session results using [CODE] I thought the best way to do this would be to encapsulate the logic within a stored procedure in a database which John Smith uses called [CODE] and then grant him access to the stored procedure. I have solved this so far...
I have managed to do this now thanks to this article the missing piece of the puzzle was to copy the certificate to the master database [CODE]
0
1
330
2019-09-30T15:18:27.827
database_errors
dba.stackexchange.com
251,282
error when I try to open table on sql 8.0
I need to open table that represents what owner adopted what animal (the relation is one to many). I start with foreign keys and some columns but after I try to open that table, I get an error This is the question from my test: Primary Key is the combination of both ​ [CODE] ​ and [CODE] [CODE] ​ references ​ [CODE] ​f...
Reference: https://dev.mysql.com/doc/refman/8.0/en/create-table.html No parentheses after in either of the places you used them. [CODE] So: [CODE] --> [CODE]
-2
0
94
2019-10-16T19:03:06.237
database_errors
dba.stackexchange.com
10,130
Selenium Webdriver get() shows intermittent TimeoutExceptions - how do I proceed?
I'm using Selenium Webdriver for testing a Django/Python based web application. I use both, the phantomjs and firefox drivers. We use django's LiveServerTest test case, which basically starts up a test webserver for the app. Now, on our CI environment (wercker), I sometimes - but not always - get a TimeoutException fro...
In selenium the wait command doesn't really wait sometimes. That is there is some problem with that command. You can try the time.sleep(); command of python. It is an equivalent of the Thread.sleep(); command of Java. It will pause the execution of code for defined time limit. So you can give sufficient time that will ...
2
3
6,181
2014-10-30T16:40:30.677
data_quality
sqa.stackexchange.com
637,274
Cannot resolve host as non-root user
I recently setup a VPS server running Centos 6.5 together with Web Host Manager. My current problem is that I can't resolve hostname either by nslookup or ping on the command line. But when I login using root I can ping and perform nslookups etc When logged in as non root user I perform the following commands and get n...
That's a lot of rules and quite restrictive. Find the rule creating this : [CODE] To also match your "normal" user id or/and apache user id and adapt it to accept outgoing UDP traffic port 53. For instance for user "apache", right after the previous rule add : [CODE]
0
3
3,570
2014-10-15T18:53:59.203
infrastructure
serverfault.com
776,154
MySQL processes gets killed after 900 seconds
I hope this is the right place to ask.. I am facing a strange issue where the connection to the mariadb server gets terminated after a certain time. Like I am trying to connect to the mariadb server through HeidiSQL app, and after 900 seconds of idle state, the connection gets closed. I have been monitoring this by log...
Well, in the end the issue was related to the hardware firewall as there was an inactivity timeout set at 900 seconds. Kinda embarrassing if I think why I haven't thought about it earlier, but yea thats the reason for this issue. Just thought I should update it here instead of deleting the question so that others can r...
1
1
600
2016-05-11T14:33:44.753
database_errors
serverfault.com
295,468
Efficient dimension and fact joining
I have large fact table, and a much smaller dimension table in a simple star schema: [CODE] Running the following simple query, which filters on fact table, and joins in the dimension: [CODE] We get the following ugly query plan: Interestingly the dimension table tend to scan ALL its 500 000 rows in 4 iteration, but in...
Here's a sample to play with: [CODE] The plan is here . You'll see that the loop join with the index seek is more expensive than scanning the dimension on each thread of the parallel execution and doing a hash join: [CODE]
-1
1
352
2021-07-09T15:08:43.813
database_errors
dba.stackexchange.com
128,270
Combine multiple row's records in one row with MS Access Query?
I have a table (name- tbl2) with 21 column but I want to combine multiple rows records in a row by using a unique reference number as below: Table Field and Records Type Expected Result: Please help me to resolve this issue.
Try the below query will solve your problem: [CODE] Since you add many tags in the post, I solved in MSSQL using STUFF. Working fiddle: http://sqlfiddle.com/#!3/d805d/4
2
2
59,402
2016-02-04T11:55:16.273
warehouse_errors
dba.stackexchange.com
341,862
Use multiple languages and then compile them all in a common language (kinda like Unity3D editor)
I am looking into the logic behind applications like Unity3d, that allow you to write code with JS, C# or Boo, and then compile in a common language (I believe it is plain C++), making the editor independent from a specific language. Allowing users to write code in either language (or all of them at once, in different ...
Python, and I believe many other languages , first parses the source code into an abstract syntax tree , AST, as do the GCC, (GNU Compiler Collection) , tools which is then further processed including, depending on settings, flags, target, etc., optimisations, etc. The AST can then be used to generate either machine sp...
0
1
70
2017-02-09T03:27:01.857
api_errors
softwareengineering.stackexchange.com
346,862
Bare metal boot over WAN?
Is there a service offering iSCSI/iPXE boot targets over the Internet? i.e. on a blank machine with an internet connection available to it, it can be configured to look at a public internet host and pull down an OS image as if you'd got a local iPXE server or similar bootstrapping setup. Edit: It's clear now that block...
Trying to boot from a publicly hosted iSCSI target would be 100% terrible. Insufficient bandwidth, high latency (relatively) and potential for intermittent connection... = recipe for disaster. iSCSI and any other block-level network-boot architecture requires near-0 latency, in addition to a high-amount of bandwidth to...
1
5
927
2012-01-05T09:52:42.733
pipeline_ops
serverfault.com
63,615
Neural network is not giving the expected output after training in Python
My neural network is not giving the expected output after training in Python. Is there any error in the code? Is there any way to reduce the mean squared error (MSE)? I tried to train (Run the program) the network repeatedly but it is not learning, instead it is giving the same MSE and output. Here is the Data I used: ...
It looks like your loss is improving (the loss is decreasing every epoch), so I wouldn't say the network isn't training. Try looking at a training plot (which would have epoch on the x-axis and loss on the y-axis). See if there are any jumps or strange patterns in the training. If you don't see a roughly decreasing tra...
0
0
120
2019-11-22T15:36:23.053
data_quality
datascience.stackexchange.com
966,034
OpenBSD 6.5 /etc/mail/aliases correct format?
What is the correct entry format for an alias? Right now I have [CODE] Running [CODE] yields a syntax error. Are there examples in the manual page for aliases?
Your alias file format is correct but you are using the wrong file with the -f option, that's why its giving an error. See the relevant man page here: https://man.openbsd.org/newaliases [CODE] As you can see there, -f option is to use a configuartion file other than the default one and not the alias file itself. You ca...
0
1
321
2019-05-06T11:02:33.997
infrastructure
serverfault.com
279,759
Does logging affect query performance
I want to benchmark the performance of MySQL, I want to know if logging affect performance. MySQL has logs: general-log, binlog, errlog, redo log. Do these logging behaviors affect performance? For performance, I mean throughput, TPS obtained from benchmarks like [CODE] [CODE] [CODE] [CODE] . I know that the redo log (...
Log files Error log -- very little activity; don't worry about it. redo/undo -- Mandatory; you cannot avoid their use (for InnoDB). binlog -- for replication and/or recovery. Clearly state in your benchmark results the setting of log_bin. general log -- This should normally be turned off. It is a disk hog. Leave it off...
1
2
634
2020-11-16T13:59:44.907
database_errors
dba.stackexchange.com
885,969
Best practices for user account audits in Linux machines
What is a good way to audit the user accounts on a Linux machine? I will like to have a list of users, the folders they can access and the process they are running, so I can pinpoint security risks, like a nodejs express server running as root, or nginx running a root, or folders with permissions too open. It will be v...
First: before you can audit you have to establish a (base-line) security policy . That is where you decide on a lot of (often seemingly extremely obvious) security and risk control/mitigation policies. Many will be phrased generically, regardless of OS platform, others may be concepts and settings specific to Linux, Wi...
-1
1
816
2017-11-30T13:35:14.713
infrastructure
serverfault.com
76,640
Group by + Order by Behavior Explanation?
Suppose I have: Product( _id ,Name) Provider( _id ,Name) Provides( ProductId , ProviderId , Price) If I want to obtain the providers who sell the most expensive products, and whose name starts with A . Could you tell me how the following snippet runs? It seems to be returning the results I ask for. Does group by get a ...
(this grew a little long to be a comment) As miracle173 says, this is not standard SQL as there are fields in the [CODE] clause that are neither in the [CODE] or in an aggregation function, meaning their values are undefined: for any given [CODE] there could be any number of prices and providers by there is only space ...
0
2
7,853
2014-09-16T03:13:12.663
warehouse_errors
dba.stackexchange.com
316,036
Most efficient strategy for search large text areas for multiple values
I have a requirement for a service that does the following. Take a block of text and identify the server names in it (by name or ip address). So given: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero felis, accumsan in nunc id, lacinia rutrum libero. Server1 Praesent iaculis consequat est quis ele...
If your current code is simple and fast enough for your needs, do nothing. Just to optimize because "it seems a bit brute force" is not a good reason, it will mostly complicate things for no benefit. Do not fall into the trap of premature optimization. However, if your current code really is too slow for your purposes,...
3
3
1,293
2016-04-18T06:09:33.627
api_errors
softwareengineering.stackexchange.com
1,123,472
Nginx returning 404 on new installation
On Linux Mint 20.3 I had working setup for my local development of website: [CODE] This is a Laravel application located in [CODE] directory, and the [CODE] entrypoint is located in [CODE] subfolder. After fresh installation of Linux Mint 21.1 the same nginx configuration gives me 404 not found: 404 Not Found nginx/1.1...
Looks to me like you're most of the way there - you've set up a specific directory to host the content and applied appropriate permissions to the directory, although you haven't confirmed what user nginx is running as, and whether that user is a member of the [CODE] group on the host. I would suggest adding the user th...
1
0
3,206
2023-02-22T09:19:33.210
infrastructure
serverfault.com
287,159
windows server CLT vs CAL
Possible Duplicate: Can you help me with my software licensing question? What's the difference between windows server CAL and CLT license for attached workstations? For example i have Microsoft Windows Server Standard 2008 R2 64Bit 10 Clt and vendor claims it can be run on server plus 10 workstations without limitation...
License questions really should be directed back to the manufacturer. Regardless of what anyone tells you, the only information you should bank on is what you get directly from them. When you talk to them document it, dates, times, who you talked to etc if you're worried about any of the legal aspects.
0
1
2,936
2011-07-05T15:22:45.170
data_quality
serverfault.com
169,422
Cannot connect Power BI Desktop to Azure SQL!
I'm trying to connect Power BI Desktop to Azure SQL , but I get " We couldn't authenticate with the credentials provided. Please try again. " it works fine if I try from Microsoft SQL Server Management Studio I can connect with no problems with the same username/password what I'm missing?
To get around this problem, notice that "Windows" is highlighted at the left of the dialog box. I clicked on Database, entered the database credentials, and then it worked.
6
7
5,923
2017-04-07T09:08:12.447
bi_errors
dba.stackexchange.com
133,984
How should I plan and start a project?
Every time I start a project, I decide at crucial moments to completely change the core classes and get caught up in obscure errors. I try planning in advanced and usually start off on a good foot but then I go to it another day and decide I would like to do it 'another way'. Is there a standard, of sorts, when startin...
When you plan, don't plan every possible thing about the application in advance. Plan in baby steps. What is the absolute minimum functionality you need to start using the application? Start there. When you start your project, only code out the absolute minimum functionality. When you do code it out, make sure you are ...
21
19
11,486
2012-02-08T17:24:05.647
api_errors
softwareengineering.stackexchange.com
228,127
How do I order the columns of a SQL statement (not the rows)?
I'm an ERP analyst, and when I find something I haven't seen in a long time, I need to jog my memory to know which column contains the data I want. I need to examine the data to do this, so a query against [CODE] isn't sufficient. I normally just do a [CODE] and start scrolling. The tables often have over 100 columns, ...
I came up with this solution but would definitely welcome improvements and other answers. [CODE] It creates a view, then examines the metadata of that view to build a new query. To support a limited amount of concurrency, it works with a set of 10,000 possible view names. In case the system crashes, it checks to make s...
0
1
273
2019-01-25T20:57:35.460
warehouse_errors
dba.stackexchange.com
547,371
How to install 32-bit libraries using Debian Testing
Question: What is the way to determine, ahead of time and without doing a full install of 64-bit Debian Testing NETINST, when Debian Testing has 32-bit libraries available and fully working and installable so that the following command works without broken package errors?: [CODE] The errors that occur when 32-bit libra...
I went back and installed Debian Stable and the command still failed in the same way: [CODE] Those packages no longer install on what is now called Debian Stable. Apparently, Debian has moved to a Multiarch mechanism, causing those packages to no longer be valid. What did work was installing some packages with the ":i3...
3
1
33,205
2013-10-20T17:35:41.683
infrastructure
serverfault.com
61,959
Connection with SQL*Plus to Oracle
I've installed Oracle Database Express 10g on Ubuntu, but the following error occures when I try to connect to sql plus using the sysdba as username and it's password which I gave during installation : [CODE] These are some iformations I think they may help : [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] [COD...
You must install Oracle as a non-root user. Generally, that user would be called [CODE] , but it can be anything, as long as it's not [CODE] .
0
1
820
2014-03-03T20:00:07.290
database_errors
dba.stackexchange.com
1,058,534
systemd service produces Exec format error
I have created the following systemd service to automatically keep an autossh tunnel open between two servers: [CODE] The file is loacted in [CODE] When I run it I get the following error message: [CODE] [CODE] yields: [CODE] I have also tried to run the exact same command [CODE] in the console and I did not have any p...
Quick answer: Make sure to check the output of [CODE] for detailed error messages. Long answer: Okay, I found out what the problem is. Shortly after calling [CODE] I check the output in [CODE] and I got the output: [CODE] So I changed the service file to call [CODE] instead of just [CODE] . That did solve the prolem. N...
2
1
8,624
2021-03-27T14:30:02.080
infrastructure
serverfault.com
632,650
nginx reverse proxy not passing requests
I have a domain (example.com) and a subdomain (sub.example.com) both hosted on the same server. I want to proxy a request so any file requested on http://sub.example.com/api/ will be requested on http://example.com/api/ (along with the arguments) Here is my nginx code from the sub.example.com: [CODE] This does not work...
You are passing the initial request [CODE] header [CODE] to [CODE] : [CODE] When proxying the request, it's likely falling in [CODE] vhost or default vhost, not [CODE] vhost, depending on your setup. Remove this line.
5
1
9,597
2014-10-01T08:07:55.267
infrastructure
serverfault.com
1,146,383
Configure kubectl command to access remote minikube cluster on virtualbox debian VM
i have set up successfully on debian minikube with simple cluster Debian VM : [CODE] As you see above all working now In my windows host i try to connect this cluster i downloaded the certificates from the debian server vi ./kube/config_debian [CODE] when i try to connect im getting : [CODE] and in virtual box i set th...
As per the Github issue #2575 , check the causes for connection issues & mitigations as explained below : Check you might have an issue with having both Docker Toolbox (old version using VirtualBox) and Docker for Windows (using Hyper-V) installed. Removing Docker Toolbox and re-installing Docker for Windows may help t...
0
0
188
2023-10-23T09:24:50.930
infrastructure
serverfault.com
715,586
GidNumber Powershell?
I see someone posted this small script for assigning Gid's but unfortunately im getting an error. I modified it a bit to better fit my needs but was wonder what the $groups variable meant in it? (See below) I get an error whenever i try to run it [CODE]
That use of [CODE] looks like a failed attempt at combining 2 lines of code in to one. This is probably what the code originally looked like: [CODE] And this is the equivalent as a one-liner: [CODE] [CODE] must be defined as [CODE] . I don't have any GID's assigned to AD object in my domain, so I can't test this, but y...
0
3
3,045
2015-08-20T15:50:58.343
infrastructure
serverfault.com
1,041,534
Can somebody help me on how to zip these individual log files within while loop
I am able to break o/p of a big logfile (filename.log) into individual log files of 1 min each (filename.log.140108) using while loop, but I want these files to be saved as zip files due to capacity issue on VM. Can anyone pls help ?? [CODE] ----------- current output --------------- [CODE] ------------ expected output...
For compression, you can use an arbitrary compression tool, such as [CODE] (multithreaded [CODE] ), [CODE] (multithreaded [CODE] ) or [CODE] . The old and well-known [CODE] format is generated by [CODE] or [CODE] . A few more tools and algorithms (some multithreaded, some single-threaded): [CODE] , [CODE] , [CODE] , [C...
-1
1
274
2020-11-06T13:59:32.443
api_errors
serverfault.com
429,400
iptables rule to allow all outbound locally originating traffic?
I was wondering if someone could help me with the following iptables rule: We would like to allow ANY and ALL locally originating (as in, on the server running iptables) traffic. DNS, HTTP, etc... all of it. Any connection initiated by the server running iptables should be allowed. Currently we are using basically OUTP...
You need two rules to do that: [CODE] Some notes. Preexisting rules that you may have may do this already, but look different. This uses [CODE] to force these rules to be first. [CODE] rules are evaluated top down. The [CODE] and [CODE] flags mean "out" and "in" respectively. Replace [CODE] with the proper ethernet int...
14
30
91,320
2012-09-18T09:45:58.100
infrastructure
serverfault.com
180
How to deal with testers who do more than test
In my firm, we don't have testers, exactly. We have analysts who translate business requirements into specifications. (Think the guy from Office Space, except these guys actually provide some value. Kind of.) Because they have an agenda (keeping the people who gave them the requirements happy) they are often lacking in...
I dealt with the same issue several years ago, and frankly, as a portion of this issue is personal integrity, corporate accountability can only go so far. As a realist, I acknowledge that increased accountability did help, but only temporarily. As soon as the individual realized they can get away x amount of misunderst...
13
7
1,072
2011-05-04T22:56:25.813
data_quality
sqa.stackexchange.com
878,203
Nginx catch-all config file
Gave up on this, I'll leave it up in case someone has a solution for someone else in the future. Deleted vbox so I cant test them anymore. I, instead, will use apache2. I would like to configure my nginx server on my dev machine to work for all paths matching a file name. For example a project has the following branche...
You should make it work with this location block: [CODE] Then you need to use the standard PHP [CODE] block from normal nginx configuration in addition to this. [CODE] first tries to serve the physical file with [CODE] and [CODE] variables. If no such file is found, then it tries to load a filename with a [CODE] added ...
0
0
849
2017-10-12T19:03:55.887
infrastructure
serverfault.com
394,721
Strange boot behaviour
I have installed Arch Linux on a server machine with a LSI hardware RAID 5. When the machine boots, it says: [CODE] Now if I do type "exit", I get the following message: [CODE] ...and the machine boots nicely. What's wrong here?
udevd died because of PCI device PCI ID: 0000:01:07.0 Look here: http://igordcard.blogspot.com/2012/01/waiting-for-udev-events-to-be-processed.html
1
1
898
2012-06-01T14:15:26.343
infrastructure
serverfault.com
10,388
Oracle not using index when > used in where clause
We have a relatively classic scenario where the date clause of the query generated by the application uses a "greater than" for a given date. Because there is no end clause to the date range, oracle doesn't choose to use the date index and ends up doing a very expensive table scan instead. However we know this data is ...
Oracle should be able to use the statistics to determine the high and low values for any column if you are keeping them up to date: [CODE]
3
3
5,289
2012-01-09T10:52:45.693
database_errors
dba.stackexchange.com
982,618
fatal error openssl/opensslv.h : No such file or directory
I'm trying to compile latest stable kernel version 5.2.13 on centos 7(kernel 3.10.0). In make bzImage step, I got following error. How can I sort it out?
It was sorted out by install openssl development package with following command on centos 7. sudo yum install openssl-devel
1
1
1,395
2019-09-10T02:22:24.450
infrastructure
serverfault.com
300,190
Hacked? How does appending a filename allow access to data on site... see example
Visiting all of the following sends you to the login screen: [CODE] However if you visit (note the last two portions of the url string are both .php): [CODE] You can see the configuration screen and all of its data! Further, if you append some GET variables you can even get editable fields: [CODE] What is going on here...
In the includes/application_top which gets included by all the scripts in [CODE] you'll find this little gem (I have thrown some uninteresting parts out): [CODE] This code gets only executed when you are not logged in. What it basically does is check if the [CODE] of [CODE] is login.php. If it is login.php then it proc...
5
16
1,067
2011-08-11T17:25:37.583
data_quality
serverfault.com
861,216
Use check-bind.sh to monitor DNS Server
I want to monitor two DNS Server with Nagios and Check the DNS performances. I have found a check_bind.sh plugin with Nagios in : https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/check_bind-2Esh/details But I'm really beginner with Nagios. Should I install this plugin on my DNS server and use another...
According to the documentation from the plugin it needs to run in the server where [CODE] is running. check_bind.sh is a Nagios plugin to check the bind daemon whether it's running via its pid file and then gets the statistics via rndc stats. The user that run the script needs the ability to 'sudo rndc stats'! One way ...
1
1
1,197
2017-07-10T07:10:47.270
infrastructure
serverfault.com
163,343
How should I incorporate a hotfix back into a feature branch using gitflow?
I've started using gitflow for a project, and I have an outstanding feature branch as well as a newly created hotfix. Per the gitflow workflow, the hotfix gets applied to both the master and develop branches, but nothing is said or done about extant feature branches. Nevertheless, I'd like to incorporate the hotfix cha...
I don't see anything wrong with rebasing your feature branch onto develop to pick up the latest hot fixes. Actually, frequently rebasing your feature branch against develop can be helpful, since it lets you keep your branch "up to date," which makes merging much easier when you get to that stage.
12
13
6,686
2012-09-02T00:45:29.903
api_errors
softwareengineering.stackexchange.com
188,387
"Cannot find data type" restoring a SQL Server 2014 backup on SQL Server 2008 R2
I have been passed a SQL Server 2014 backup that needs to be imported onto one of my SQL Server 2008 R2 servers. The backup is valid as I can restore it onto one of Dev 2014 SQL servers. I have done the script out task and that works fine for the most part. However one issue I face is that the SQL Server 2014 database ...
Actually, [CODE] sounds like it might be a true UDT (a user-defined type implemented using CLR) rather than a UDDT (a user-defined data type, which are just aliases for other types created with syntax like [CODE] See the answers to https://stackoverflow.com/questions/35494575/sql-server-udt-versus-uddt for more informa...
2
1
1,483
2017-10-13T07:47:52.753
database_errors
dba.stackexchange.com
91,616
RMAN backup set, nothing else, how can I duplicate?
I have what appears to be an RMAN backup set, it has been multiplexed in 32 files, each containing 2-3 dbf's inside. The backupset refers to an SPFILE file, but it was not included in the set, the backup piece containing just that file was not included. I have no catalog, no infrastructure, and no way to connect to ori...
If you know the sid name, you can copy a pfile over and edit it to change the values to match the database name. Make sure that you set B_CREATE_FILE_DEST to where you want the data files. Then do a startup nomount on the database. In RMAN do "CATALOG START WITH '/full_path_to_your_backup';" You can then use DB_FILE_NA...
1
1
270
2015-02-10T17:10:59.200
data_quality
dba.stackexchange.com
786,357
Obtain instance IPs behind ELB in order to add to iptables
What: We're using iptables and have our server rather locked down to only specific ports and IPs. Recently we have a requirement to open traffic to a third party service. However, the third party service uses AWS with their backend instances behind an ELB. Of course the backend instance IPs can change at any moment as ...
You're probably not getting all the IPs from DNS because some of the instances that communicate with your service are background workers or task boxes etc. Without a reliable way to determine what IPs are likely to attempt to access your service, you won't be able to limit access by IP. You could use Amazon's IP range ...
0
1
353
2016-06-26T13:56:16.020
infrastructure
serverfault.com
146,823
Task Scheduler not able to execute .vbs scripts successfully
Apologies if this has a really obvious answer! We have several daily tasks we run via a .vbs script on our server (through the Task Scheduler ), and for months it has been fine, but recently we've hit a problem. The .vbs scripts stopped successfully executing (always timing out)... but could still be executed manually ...
It was actually lack of memory, as it turns out. Restarting the server and freeing up 16Gb again, allowed it to be run after all. No issues with user permissions. No issues with user credentials. It was just a weird memory problem (I noticed something was up when I couldn't start SQL Configuration Manager or successful...
1
3
17,306
2010-05-31T11:24:14.830
infrastructure
serverfault.com
52,549
What's the least intrusive method for creating a backup of a couchdb database?
We're looking to create regular backups of a couchdb database, to ship offsite. What's the least intrusive way to obtain these - ideally without interrupting or significantly slowing down performance on the existing database server?
Luckily couchdb is append only, so just copy the file and you'll have a non-corrupt backup.
1
1
227
2011-02-27T06:30:20.577
database_errors
softwareengineering.stackexchange.com
31,323
XPath error for Google Sheets
I want to get live data from a website. I select inspect and copy the XPath from where I want the data to import, but I get an #ERROR!. [CODE] Not sure what I'm doing wrong or how to get the results I desire. When I enter: [CODE] I get results, but more data than I want to import. In the screenshot from the website, I ...
The following xpath will return the ten data columns on that page: [CODE]
1
1
156
2018-01-02T19:16:37.953
data_quality
sqa.stackexchange.com
13,639
Unexpected type error in ansible community.aws.cloudfront_distribution: "origins" parameter: "'list' object has no attribute 'get'"
I get an unexpected type error, for what I assume to be the "origins" argument to the community.aws.cloudfront_distribution module: "Error validating distribution origins: 'list' object has no attribute 'get'" I filed a bug report: https://github.com/ansible-collections/community.aws/issues/504 The documentation says t...
It's a bug; [CODE] is defined as a list here , then the code tries to treat it as a dict here (which is the line referenced in your stack trace.) As a workaround, it looks like the code might accept [CODE]
0
2
291
2021-03-30T17:55:09.197
pipeline_ops
devops.stackexchange.com
898,614
Restart all Jenkins Nodes
I manage a Jenkins server (running 2.89.4) with about 40 nodes or so attached, each running either Centos7, OSX, or Windows (7, 8, 10). Recently, we suffered some power outages and many slaves lost their connection to the master. This required a lot of manual remoting and ssh'ing to reconnect them all. Since, I have ma...
I solved this by creating a Multi-Configuration job and selecting all the slaves by name. Then, I added two Conditional Step based on "Execution Node." I selected only the windows slaves for the first one, and only the Mac/Centos slaves for the second one. For each conditional step, I added a single step: Execute Windo...
0
1
11,698
2018-02-23T16:45:24.953
pipeline_ops
serverfault.com
528,257
Processes spawned by taskset not respecting environment variables
I've run into an issue where an intel compiler generated program that I'm running with taskset has been putting its temporary files into the working directory instead of /tmp (defined by environment variable TMPDIR). If run by itself, it works correctly. If run with taskset (e.g. [CODE] Then it seems to completely igno...
I don't actually see evidence here that [CODE] is set in your environment. I can replicate the behavior you describe if I set [CODE] as a local shell variable, like this: [CODE] Which yields: [CODE] But if I export [CODE] to the environment, it works as one would expect: [CODE] Are you certain that [CODE] is set in you...
0
0
1,048
2013-08-02T14:00:09.760
infrastructure
serverfault.com
1,023,479
remediation script for centos 7 throws syntax errors
thanks in advance. i am running a fresh download of openscap on centos7 (patched). it produces a remediation script, but the script throws an error repeatedly. its the same syntax issue many times in the script [CODE] it seems not to like the [CODE] portion. can anyone help me out and let me know what i need to change ...
I think that your shell doesn't support process substitution . Some shells don't support this, eg. plain [CODE] throws this error. It should work with Bash. Try to run the script as [CODE] . If that doesn't help, check also if Bash isn't run in POSIX mode .
0
0
192
2020-06-30T14:15:13.317
infrastructure
serverfault.com
585,264
Bind outgoing SOCKS-server traffic to a specific IP
At the office we get access to the web via a SOCKS server which is started with the command: [CODE] . This server has 2 IPs (but only one network card): eth0 xx.yy.zz.1 eth0:1 xx.yy.zz.2 So the browsers are configured to use the socks proxy [CODE] When I check what is the IP that websites see, it gives me [CODE] (the s...
The SSH protocol has no way for clients to tell the server to bind to a certain address when doing a dynamic port forwarding, so no, you can't tell your SSH client to do it. You can't tell the OpenSSH server to do it either. It will blindly use [CODE] to connect to your remote host. The only way to fix is to configure ...
7
5
6,201
2014-03-29T01:13:12.817
infrastructure
serverfault.com
362,374
Domain Controller thinks its on a Public Network
We have a Server 2008 R2 Primary Domain Controller that seems to have amnesia when it comes to working out what kind of network it is on. The (only) network connection is identified at startup as a 'Public Network'. Yet, if I disable and then re-enable the connection, it happily figures out that it is actually part of ...
Do you have a default gateway on that connection? Does it reply to ping requests? Windows uses gateways to identify networks; if it doesn't have a gateway configured, or if it can't succesfully ping it, it will not be able to identify the network it's connected to and will assume it's a public one.
40
18
220,472
2012-02-21T20:30:54.887
infrastructure
serverfault.com
841,428
sftp No supported authentication methods available
I am trying to setup sftp to upload/download files from a specific directory (var/www/mysite.com) My issue is when I try to connect using Filezilla and I get an error stating No supported authentication methods available (server sent: publickey) So I think I missed a step when settup up and configuring sftp on my Ubunt...
[CODE] You put these configuration options in the [CODE] instead of [CODE] . They are not valid in the first one. [CODE] This is also wrong, because the [CODE] directory has to be root-owned and not writable by any other user as explained in many answers and in manual page for [CODE] .
2
1
1,808
2017-03-29T21:39:59.393
api_errors
serverfault.com
114,692
Visualize time series data
I have a time series data set with 3 parameters and 5 dates per time point which I would like to visualize. The problem is that the date time points (year) are not equal over the parameters: [CODE] What would be the best way to visualize such data?
Color line for each [CODE] differently . The gaps in the data should show up in the graphs as-is . [CODE]
0
1
70
2022-09-26T08:40:09.747
data_quality
datascience.stackexchange.com
809,557
Which certificate store do I put a third party self-signed SSL certificate to have authentication working without extra security risks?
I'm trying to setup client certificate authentication in an ASP.NET MVC3 application running in IIS 8. The client (Good Third Party) uses a self-signed SSL certificate to authenticate himself and my application knows the thumbprint in advance and checks that the request has a proper certificate with it. It doesn't work...
You cannot solve your problem without security risk. The only option for you is to install the certificate in the [CODE] store. As the result, this 3rd party certificate will be trusted by all applications that use Windows Cert Store. If it is CA certificate, then all child certificates below that root will be trusted ...
1
3
1,502
2016-10-17T16:14:29.053
api_errors
serverfault.com
934,092
How do you set a max connection limit with nftables?
I'm looking to limit the number of concurrent connections to a given service running on a Linux server. My understanding is that this can be done in [CODE] using the [CODE] module. So for example, if I wanted to limit concurrent connections to my SSH server (and assuming the default policy is reject), then this should ...
There is a new extension nft_connlimit that was added since Linux kernel 4.18, providing a [CODE] expression. For this case, the equivalent rules (from scratch) would be: [CODE] Some remarks: As usual [CODE] is optional and is used to get a counter with [CODE] to know how many times the rule triggered. Replacing above ...
5
2
6,257
2018-10-05T04:48:30.517
api_errors
serverfault.com
306,981
How to debug "General error: 1030 Got error 0 "Internal error/check (Not system error)" from storage engine Aria
(In other similar questions, the error number has been 168, in my case it's zero.) This occurs on attempting to load a massive view (which itself is a select query on another view). Many JOINS are involved. So I'm wondering if I can see somewhere what limit may have been reached, and whether I can raise it temporarily,...
MariaDB-10.5.13 has this commit that potentially improved the error message. You could try CHECK TABLE on the underlying tables though I suspect if there was errors here they would have shown up in the mariadb error log. To test if 10.5.13 is released has fixed this error (unlikely, can't see anything in the release no...
0
1
287
2022-02-03T21:00:44.373
database_errors
dba.stackexchange.com
279,762
MariaDB (RDS) going temporarily offline (with memory drop)
We have an issue with a database of ours on RDS running MariaDB 10.4.8 on a t3-large instance type. For the past week or so, it's been sporadically inaccessible with no errors I can find. During the minute or two that it's down I can't run 'show process list' it just hangs. It fixes itself and is back working within a ...
Enable the slow query log to see what is going on: https://mariadb.com/kb/en/slow-query-log/ Running a fulltext index with a minimum token length of 1 also slows things down, if not necessary: https://mariadb.com/kb/en/innodb-system-variables/#innodb_ft_min_token_size
0
0
122
2020-11-16T14:54:05.920
database_errors
dba.stackexchange.com
459,183
How to update debian dns server? New VM with same hostname as old VM
We run several linux VM's on our Hyper-V cluster. Our old IT manager configured the dns server to resolve the url 'devlabs.ourdomain.com' to a debian squeeze apache webserver hosted on the hyper v cluster with the hostname: devlabs. We recently created a new Ubuntu vm to replace the original squeeze vm. When we created...
You just have to replace the IP address in the DNS record for [CODE] . How this is done depends on the kind of DNS server you run, which you don't name. Another option would be to just give the new server the same IP address as the old had. Of course, the old machine has to be down for this to work without conflicts.
-1
3
336
2012-12-18T22:08:28.873
infrastructure
serverfault.com
450,022
My Apache 2.2 local test server with php none cgi automaticly removes logged in ipad users
My Local httpd Apache 2.2 test server with php installed is having problems with a ipad user. I have scripted a loggin script that uses php sessions to keep them loggedin, the page has a javascript that reloads an iframe and its php checks if the user is still loggedin or not. The problem is when my webhotel is running...
It is possible that you have hard-coded references to the hostname that are still present when you connect via IP address? My guess is that when you are connecting on the iPad to the site via IP address you are breaking the Same Origin Policy .
2
0
162
2012-11-19T09:21:26.347
infrastructure
serverfault.com
616,153
Windows SBS 2008 has two DC's, what will happen if the master crashes
This is the first time I am doing this sort of configuration on a windows Env. Hailing from a strong linux background , I just wanted to check on what the expected outcome was. Its a network of about 20 PC's which had 1 Domain Controller (Server 1), A hard drive crash and a recovery kept it half dead and most of the Sn...
My question would be, If i am to physically pull out the Network cable of Server 1 Who has all the current FSMO's would Server 2 automatically be promoted to these FSMO's No the FSMO roles will not be automatically moved. If you move the FSMO roles from one DC to another while the domain controllers are both healthy an...
2
2
303
2014-07-29T01:25:43.810
database_errors
serverfault.com
202,053
Access "couldn't use ... file already in use"
I have an Access 97 database that is used by some software on multiple (up to 4-6) computers (running Windows 7). Once in a while (maybe 1-2 months) something happens where computers on the network can't access the database. The program accesses the database through a ADO/JET driver (the program is written in LavVIEW) ...
From what I have read this problem can happen on a network if computers are unable to create/modify the .ldb file. The .mdb file is on a Novell network drive that all the computers have read/write/create permissions on, and everything works fine until the computers stop being able to open the file. What you're doing is...
3
3
11,322
2018-03-22T20:22:38.333
warehouse_errors
dba.stackexchange.com
232,953
Select Oracle clob field from remote table over dblink
I am trying to select a clob field thru flink from a remote table.I am able to see the values in editor result but not able to select thru program or any export. [CODE] I am able to select local fields and use them in application but failed in these.I can view in the toad result perfectly when running queries in editor...
Remote database: [CODE] Local database: [CODE] The problem is, CHAR types are limited to 4000 bytes, so: [CODE] A possible workaround: [CODE] The above is from a 11.2 database. Starting with 12.2, the limitation of selecting a LOB through a dblink was removed, no workaround needed.
2
1
7,702
2019-03-22T18:07:38.933
database_errors
dba.stackexchange.com
47,608
"an agent job has not been created for this subscription"
I have set up merge replication with a publisher on my SQL Server 2008 R2 box with the distributor on this box too; in Express I have created a subscriber but the subscriber won't run because of the error: an agent job has not been created for this subscription How can I solve this?
I don't know how to get past the error (I'm not sure how you're trying to "run" the subscriber), but you obviously can't use Agent to distribute changes back to the publisher, because SQL Server Express does not include Agent. This thread seems to imply you can schedule the task outside of SQL Server using [CODE] from ...
0
2
2,149
2013-08-06T09:29:07.253
database_errors
dba.stackexchange.com
203,045
In "The Social Network", what linux program is Mark using to monitor traffic in near real-time?
Possible Duplicate: How to watch logs in real time via Terminal? The scene where Mark is monitoring TCP/IP connections to his Facemesh website, and comments "look at all this traffic". What program was he using? Netstat?
netstat -anp | grep :80 | wc -l
0
1
1,305
2010-11-17T17:46:22.167
pipeline_ops
serverfault.com
86,736
Best way to improve resilience?
One of the major projects I have lined up for 2010 is attempting to mitigate some of the Single Point of Failures (SPOFs) in a network I currently manage. We currently have a single datacentre rack containing a couple of dozen servers. Inside the rack, we're redundant and resilient, each server has 2 disks, and can wit...
Well you're right, DNS is definitely not the answer - take that from someone who has run multi-homed ISP networks, and now does DNS for living. What was the £80k quote for - just BGP and an additional transit feed, or for the necessary Cisco routers too? The 2800s you're currently listing probably aren't capable of run...
5
4
1,494
2009-11-20T17:20:13.567
database_errors
serverfault.com
405,650
Why are these UDP packets being dropped?
On trying to resolve [CODE] from a host using an Unbound resolver that is configured to use DNSSEC validation, the result is "no servers could be reached": [CODE] Nothing is logged by Unbound to suggest why this is the case. Here is the [CODE] : [CODE] If I add: [CODE] (thus disabling DNSSEC validation) then I am able ...
I had the exact problem and I found that the information from http://comments.gmane.org/gmane.network.dns.unbound.user/1891 solved the problem for me: Your trace shows that unbound thinks the connection drops MTU 1500+ packets. Faa.gov uses large keys and has a lot of answers above 1480 - i.e. DNSKEY, NXDOMAIN answers....
2
4
6,121
2012-07-07T11:17:13.497
data_quality
serverfault.com
274,041
Messages in PHP log missing normal information
I have PHP configured to use a log file directly (i.e. not using syslog). I'm noticing that I occasionally get very strange messages that lack the normal PHP logging information. Normally a PHP log entry looks a bit like this: [CODE] But I'm getting entries that look like this: [CODE] And recently: [CODE] Tweetly is so...
Seems the PHP function error_log() is what is allowing these messages.
0
0
103
2011-05-26T12:48:49.487
infrastructure
serverfault.com
94,448
Dealing with high frequency tokens during masked Language modelling?
Suppose I am working with a Masked Language Model to pre-train on a specific dataset. In that dataset, most sequences have a particular token of a high frequency [CODE] So if I mask some tokens and get the model to train to predict those masked tokens, obviously the model will gain a bias in predicting [CODE] due to it...
The goal of language modeling is to build a statistical model of how language is used in a specific context. One of the important components of that is token frequency. Bias can mean many things in machine learning. I think you bias in the sense of high chance of prediction. That kind of bias is useful in language mode...
1
1
102
2021-05-14T17:19:06.210
data_quality
datascience.stackexchange.com
298,641
What does it mean when slave status shows SQL running but IO not running?
What exactly does this mean, when the SQL is running but the IO is not running on the Slave in a Master-Master replication setup? There are no other errors showing when running [CODE] Image as per the below; and of course the log file and log positions do not match that of the master.
Replication works in 2 steps: The information in the "binlog" on the Primary is continually shipped to each Replica, where it is written to the "relay log". [CODE] means that that has stopped for some reason. Possibly network issue. The Replica will try several times (tunable) before giving up. Use of [CODE] and [CODE]...
0
1
4,787
2021-08-27T06:49:30.423
database_errors
dba.stackexchange.com
204,157
Optimize Reading of Multiple files
I have a unique problem which I'm hoping someone can assist with. I have One big text file, our Production file. The data in the file is delimited in the following format [CODE] The average size of this file is about 30MB. with about 120000 rows. and then I have about 20 Regional files. these files are similar to the C...
The solution is to read each file once, storing the date in memory. Keep an associative array or similar data structure where the key is the reference number. Then, as you process the master file, looking up each reference should take just microseconds. If the data is too big to fit in memory, you can create a temporar...
3
4
3,263
2013-07-09T10:18:08.330
api_errors
softwareengineering.stackexchange.com
235,005
Closing the MySQL server to gain performance?
I plan on making a (servlet) application that stores its data in a MySQL server, but only reads them at startup time and write them every 4h. I wish to let this application have as much RAM & CPU power as possible (hard drive access doesn't matter). Would open, write the data in the DB, then close the MySQL server ever...
You can configure mysql to use a low amount of ram- however you obviously take a performance hit by doing this- however if your not dealing with much data, this might be worth it. It does sound like using a database here might be overkill (from what you have described)
0
1
56
2011-02-13T16:58:24.537
database_errors
serverfault.com
252,028
Distinguishing data from different sources
I want to store data that comes from multiple data sources, the issue is that the row identifiers have no guarantee to be unique across sources, which wouldn't satisfy the unique key constraint. I'm not really familiar with databases, and if I had to model this in an imperative programming language I would have probabl...
1) Add a column to the table which holds the source system. Change the primary key of the table to a compound key including source system and source id. Then value ('System A', row 1) is distinct from ('System B', row 1). There are a few downsides to this. If the source system were ever to revert to previous values (sa...
1
2
44
2019-10-27T21:37:08.010
data_quality
dba.stackexchange.com
455,841
Microsoft Online Directory Sync is using sub-optimal Domain Controllers
When we make changes and need to force an immediate synchronization , some significant annoyances have hindered us. The primary problem is that our DirSync server is pulling directory information from a tertiary DC that can be as much as half an hour out of date... sometimes. Other days it is using an appropriate DC. S...
I don't know anything about DirSync, but if it is leveraging the built-in Windows operating system DC Locator function, it is entirely possible to contact a suboptimal DC. If you have a hub-and-spoke configuration, it is traditional to configure the spoke DC's to not register various records using DNS Mnemonics: How to...
2
2
70
2012-12-06T21:29:20.563
database_errors
serverfault.com
281,069
How can I transpose multiple unrelated columns into rows in SQL Server?
I have a table that looks like the following: [CODE] My desired result set is this: [CODE] So for each PersonId, each group of columns (2 ColorInfo cols, 3 FavoriteInfo cols, and 1 BirthInfo col) is transposed into rows. I've tried variations of [CODE] and [CODE] , but I can't seem to get it just right. I know it's a w...
I think that this will give you what you are looking for. You have to hop through a few CTE's to unpivot the data, then add some attribute information and then pivot it back, but the output does match what you provided... I had to add a CTE_RawData to convert everything to the same data type since the unpivot doesn't l...
1
1
3,028
2020-12-07T22:17:25.457
database_errors
dba.stackexchange.com
603,803
OS X Server - How do I clone or transfer users from an Open Directory I'm planning to disband, to another server?
I have an OS X Server I've been using for the last two years or so. During this time it has been upgraded and fixed so many times it developed some certificate problems now turning into a gangrene. I would like to transfer the network users in the OD, via Workgroup Manager or something, maybe even keeping their passwor...
Well, I found a nice method posted here https://support.apple.com/kb/PH15633 : First archive (backup) your current OD on the server. Using the Server app interface backup your current OD, clicking on the sprocket and choosing Archive. Destroy the current OD. (*optional) sudo slapconfig -destroyldapserver Create a new o...
2
0
819
2014-06-09T10:31:29.253
hadoop_errors
serverfault.com
219,906
Select sales from different stores and group by product
I have three tables (SalesTable, StoresTable and ProductsTable) and the structure is the following: [CODE] What I want is to display a report to show the sum of qty sales from each product and group by store. Something like this: [CODE] At the moment I have the following query: [CODE] This query returns something like ...
Take sales out of the group by [CODE]
0
2
940
2018-10-11T21:26:53.503
warehouse_errors
dba.stackexchange.com
973,538
How to set keyboard layout with a VNC client to KVM (libvirt)
I have both kvm guests and hosts installed on a Debian 9.9 with kde on an AMD Machine [CODE] When connecting with a virt-viewer , my keyboard layout is working (fr-ch) actually, I don't know where is the list of available layouts to confirm my [CODE] is available When connecting with any vnc client , my keyboard layout...
The standard key handling in VNC protocol is a very bad match for virtualization because it involves sending X keysyms to the server. Hardware scancodes on the VNC client machine are turned into key syms, which are sent to QEMU, which then turns them back into harware scancodes which sends them to the guest which turns...
8
12
9,475
2019-07-01T10:29:47.267
infrastructure
serverfault.com
66,205
Predicting Missing Word in Text
I know about BERT and other solutions when you masking some words and try to predict them. But let say I have a text: Transformer have taken the of Natural Processing by storm, transforming the field by leaps and bounds. New, bigger, and better models to crop up almost every , benchmarks in performance across a wide va...
It's not simple, but doable. I suggest you to create training data in the following way: take a text corpus, as large as possibile, and remove words sampled randomly. Then train an seq2seq RNN to map this "deteriorated" text with its original. The RNN you need won't be too different from an NMT model, but it's goal is ...
1
1
670
2020-01-09T17:07:08.743
data_quality
datascience.stackexchange.com
28,636
processlist showing '%' as host from trigger
I'm trying to populate a certain column in a table with the host/IP of the caller. I have an insert trigger on the table which sets the column like so: [CODE] I end up getting [CODE] as the hostname even though when I manually run the same query on the [CODE] table I get an actual hostname. I've checked the [CODE] valu...
Are you doing the insert that fires the trigger from inside a stored procedure? Apparently, when inside a stored procedure, the row matching your thread in information_schema.processlist is populated (albeit somewhat half-heartedly) with the DEFINER username and hostname if the calling user is not the same as the defin...
4
6
3,058
2012-11-13T22:23:08.433
database_errors
dba.stackexchange.com
233,147
Can I use GPLd code I wrote on the job as code samples without permission?
I'm currently employed by a business to do website development in Wordpress. I've written a number of custom plugins specifically for a number of clients over the time of my employment. Today, I asked my boss what I would be allowed to use as code samples because I'm quitting. My boss has forbidden me from taking any o...
Insert normal lawyeresqe disclaimer here. With that out of the way, your current employer would have a case against you. The GPL, or any copyright license for that matter, comes into play only when the work is redistributed. As your plugins have not yet been distributed, they are not really subject to the GPL, or any o...
4
10
176
2014-03-21T04:15:01.800
api_errors
softwareengineering.stackexchange.com
65,022
advantage database server current database name
How to get current database name in advantage database server? I don't know which query will answer this question. I have tried [CODE] but I got below error message: Error 7200: AQE Error: State = HY000; NativeError = 5004; [iAnywhere Solutions][Advantage SQL][ASA] Either ACE could not find the specified file, or you d...
In Advantage/SQLAnywhere, the database names are stored in sysdbspaces To access the name of the database you are currently in use the [CODE] function. [CODE]
-2
0
1,647
2014-05-13T09:28:10.310
api_errors
dba.stackexchange.com
22,825
Java + Selenium + Table : How to access link[present in td] when you have text of sibling[td itself]?
I am trying to access table using selenium. I wanted to take action on one table data i.e. link. But I dont have any attribute of that link which could be permanent. I have table data of other field which is having fixed text.Its sibling of link td. [CODE] Q: How to access that link using text of other td using Java + ...
If element is link text then you can use by link text element locator to locate that element. Use below operation: [CODE] or [CODE] .
0
1
1,078
2016-09-29T04:17:42.003
data_quality
sqa.stackexchange.com
448,482
Load Testing for Large-Scale Architecture Involving Cloud Servers and Switches
We currently have an architectural setup as described below. Our plan is to conduct a load test, but we face a challenge due to the high cost of real switches. We have two options: either build the architecture directly or create a simulation. However, our tasks must pass through a cloud server that only recognizes rea...
However, our tasks must pass through a cloud server that only recognizes real switches. Unfortunately, this cloud server lacks a mechanism to recognize simulated or 'fake' switch signals. In that case, your best option is to construct a "mock" for the entire third party service. That may be a substantial amount of work...
0
1
65
2023-11-06T01:27:50.347
api_errors
softwareengineering.stackexchange.com
248,636
How to create location blocks in nginx for a single file but have it follow the rules of another location block in addition to it's own?
I have a location block for / that does all of my fastcgi stuff and it has a normal timeout of 10s. I want to be able to have different timesouts for certain files(/admin, sitemap.xml). Is there an easy way to do this without copying the entire location block for each location? [CODE]
I think there are two possibilities, of which the second would be the most flexible. 1 You could try: [CODE] File [CODE] (no need for location block there): [CODE] 2 Or I guess you could go like this. [CODE] NOTE: All include paths are always relative to the Nginx main config folder. And yes, you can put them wherever ...
3
2
782
2011-03-17T16:03:10.020
infrastructure
serverfault.com
306,701
Query Performance for Reports in PostgreSQL
I use PostgreSQL 12 to store my raw data and ElasticSearch as the datawarehouse for reports. It happens that there are situations with [CODE] (eg, data that exists in one table but does not exist in another) ElasticSearch not attending me, having to make queries that return a large number of results directly in Postgre...
What you are currently doing is key-set pagination (except you don't show the necessary ORDER BY to make it work correctly--I'm assuming it is really there). With many queries and with the appropriate index this can work very well. You mention some concerns about it, but without any details on those concerns it is hard...
2
3
183
2022-01-27T20:00:27.387
warehouse_errors
dba.stackexchange.com
274,136
Complexity analysis: Finding common members of unsorted arrays
I've been going over previous tech interviews I've had (got another one coming up). The problem Anyway, one question I had was... Given 2 unsorted arrays how would you find all of the common objects between them? Say I have array A and B. Worst case A and B are both of size n. Initial thought Initially my thought was t...
I don't think that there's a better answer for worst case complexity in the general case. You could probably only improve specific cases in which the input is somehow limited (say numbers between 1 and N). In that case you could use something like a Radix sort . Karl Bielefeldt's idea of converting the arrays to sets d...
3
1
1,047
2015-02-23T11:54:52.053
api_errors
softwareengineering.stackexchange.com
285,875
Windows Mobile 6.1: Can't access internal site via https
Whe have several Motorola Symbols (don't remember the exact model) running Windows Mobile 6.1 They are used for entering data in the field, and then at the end of shift the employees come in and "sync" them via an application which utilizes web services. We recently renewed our SSL certificate, and since then we've bee...
Reissuring the certificate appears to have resolved the issue. We corrected the address issue. I also ended up generating a new private key, but I can't see how that's related as both should be 2048 bits.
1
1
2,277
2011-06-30T17:54:00.710
api_errors
serverfault.com
923,607
Cloudfront GoDaddy DNS - SSL Certificate Issues
I have a CloudFront distribution setup and working correctly. I also have an SSL certificate issued using ACM. My GoDaddy DNS has a CNAME entry for www which points to the cloudfront distribution The following URLS work as expected and display the CloudFront distribution... [CODE] But this one does not.. [CODE] It give...
No, you can’t CNAME your root domain name, and for that reason you should avoid using or promoting it. However, if you move your DNS to Cloudflare, they have a workaround for this .
0
1
1,791
2018-07-26T08:36:47.143
api_errors
serverfault.com
180,099
Ola Hallengrens code for Index Optimization - Clarifications
I am trying to deploy Ola Hallengrens code for Index Optimization in our PROD environment. What is the difference between using USER_DATABASES and AVAILABILITY_GROUP_DATABASES in the place of @Databases in below code . Also I was going through the blogs and read : Ola Hallengrens code for Index Optimization is meant to...
The difference between user_databases & availability_group_databases is that when specifying user_databases you will optimize every user database (also the ones in the AG group) if you specify availability_group_databases you will only optimize the indexes of databases inside an availability group. If you do not have t...
1
3
465
2017-07-18T08:56:12.113
database_errors
dba.stackexchange.com
38,679
MySQL subqueries that use range based on values of main queries don't use indices properly
I think I've isolated a problem that has been affecting many of my queries lately. And would like some help to figure out a solution for this. Ok so my findings are that a normal query that runs very fast using like a couple of rows can actually use indexes improperly when used in a subquery which is based on values fr...
This small data sample doesn't serve to illustrate that the behavior you are attempting to identify exists. Indeed, I've tested it on a larger data set and it did use the Index (using MySQL 5.5.30). The problem is that when the optimizer determines that using an index would result in an inordinately large number of mat...
2
1
1,634
2013-03-27T15:38:59.207
database_errors
dba.stackexchange.com
120,291
Connecting to a SQL server whose IP changes
I want to connect to a server whose [CODE] is dynamic via a VB.net application. I have configured the connection string in my VB application to a static IP. I also gave a static [CODE] to the database. However, this work-around can be dangerous. Can someone please suggest an efficient way to connect to a [CODE] server ...
The most efficient way to connect to a server is to use it's hostname and not an IP address. The local DHCP should be updating the DNS records so connecting to a hostname should always work, if not talk to the people configuring your network.
1
3
447
2015-11-06T09:31:41.577
database_errors
dba.stackexchange.com
992,184
Move SOFS shares to File Server in general use
I have a task to move SOFS shares to FS in general use for cluster server. Unfortunately, I am not expert of Windows Server. Has anybody do this task? I'd like to have help for it and step by step reconfiguration of it. The idea is to delete SOFS shares and create FS shares with the same name. Attach disk where SOFS sh...
It won't work in general as SoFS shares have memory cache disabled (except read-only CSV cache) to allow atomic writes for SQL Server and transparent SMB failover for VM live migration. So rather than focusing on permissions which are copied easily with any data migration service like Storage Migration (WS2016+) and Ro...
3
6
589
2019-11-17T11:59:52.247
database_errors
serverfault.com
695,376
Ubuntu DHCP Server not assigning itself an address
I am setting up a virtual environment inside an ESXi server. I have a version of Ubuntu Server running isc dhcp. When the server boots up I issue the command [CODE] followed by the [CODE] . At this point the server issues a DHCP request, but itself doesn't answer that request with an ip address. Is there a reason why? ...
Yes it is possible. Assuming the ISC dhcp server in dhcpd.conf set [CODE] to 127.0.0.1. This will cause the DHCPOFFER to have DHCP option 54 set to 127.0.0.1 so the DHCPREQUEST will reach the server. Note if you want this DHCP server to be useful (other clients can request IPs from it) you'll need to set this parameter...
0
1
868
2015-05-29T20:09:27.647
infrastructure
serverfault.com
157,692
Is Google's Page Speed not working fine?
I've been making small improvements to a public ASP.NET site that I have and have ran it through Google's online Page Speed several times. I have a specific problem, but something that really threw me off was that even if I didn't make any changes and just kept running it time after time (5 minutes intervals) I'd keep ...
Google ain't perfect, humans make mistakes, maybe you found a bug on Google Page Speed Insights or maybe you didn't. Page speed's score is not consistent and yes it will be -1 or +1 of what you got from time to time. I think some of the reasons are some of the compression algos it uses and whatnot change slightly when ...
2
0
757
2012-07-21T15:11:03.533
api_errors
softwareengineering.stackexchange.com
290,164
MySQL: How to set the default string using another field by string-interpolation?
I have the following table and I wondering whether string interpolation using another is possible: [CODE] That is: I want different default values for each row using the primary key. [CODE]
This is possible in MySQL 8.0 because they support expressions in DEFAULT clauses now. But it won't work with interpolation like you show. It works like any other MySQL string expression: [CODE] Example: [CODE] In earlier versions of MySQL, defaults can only be a literal value, or NULL, or CURRENT_TIMESTAMP, but not an...
2
3
555
2021-04-21T04:04:05.790
database_errors
dba.stackexchange.com
187,522
8000 character limit on OPENQUERY against a linked server
I have a query that I'm trying to run through [CODE] on SSRS/SQL Server 2014, but I keep getting an error of: The character string that starts with [...] is too long. Maximum length is 8000. Is there any way to work around this limitation? For reference, I'm trying to run a query from SSRS through a linked MySQL Server...
You can bypass the 8000 character limit of [CODE] by utilizing [CODE] , as follows: [CODE] In order to make sure this doesn't throw an error, you need to enable the [CODE] option on the linked server, by issuing the following command: [CODE] Or enabling it within the GUI:
12
20
25,020
2017-10-03T13:12:05.770
bi_errors
dba.stackexchange.com
123,886
MySQL replication master-slave with 2 or more users in master
I've just configured MySQL replication master-slave. I have into master instance 3 user: root (with all privileges and grant), admin(with all privileges) and slaveUser(with replication salve privilege). I've configured slave server to, and if I modify (with root user) in my master instance some resource this are replic...
Not [CODE] , rather [CODE] (good idea for applications) or [CODE] (might be appropriate for [CODE] )
2
0
1,394
2015-12-17T00:26:05.273
database_errors
dba.stackexchange.com