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
178,326
Distinguishing between UI command & domain commands
I am building a WPF client application using the MVVM pattern that provides an interface on top of an existing set of business logic residing in a library which is shared with other applications. The business library followed a domain-driven architecture using CQRS to separate the read and write models (no event sourci...
I tend to resolve these naming conflicts by simply choosing different names. Perhaps you have already started calling these things by different names internally, if so, have the codebase reflect that. If not, think of something (UserCommand vs WriteCommand, Command vs Request, Action vs Command...) Basically, the overl...
4
3
1,197
2012-12-05T03:21:36.560
api_errors
softwareengineering.stackexchange.com
466,155
When to use a MySQL socket and when to use a host:port?
Many applications allow me to connect to Mysql using a username, password host and port. Some allow me to configure a socket instead of the [CODE] . Is there any clear benefit of one over the other? I can imagine that a socket only works when MySQL is on the same machine. Is that so? And if so, are there benefits over ...
Well, it's simple. Socket is a file based communication, and you can't access the socket from another machine. On the other hand, ports are open to the world (depends on configuration) and you can access the mysql from other machine using host+port combination. Also, as much I understand sockets, they are just combinat...
25
26
18,012
2013-01-11T12:19:13.393
database_errors
serverfault.com
9,349
What is the difference between affinity matrix eigenvectors and graph Laplacian eigenvectors in the context of spectral clustering?
In spectral clustering, it's standard practice to solve the eigenvector problem $$L v = \lambda v$$ where $L$ is the graph Laplacian, $v$ is the eigenvector related to eigenvalue $\lambda$. My question: why bother taking the graph Laplacian? Couldn't I just solve the eigenvector problem for the graph (affinity matrix) ...
The concept is the same but you are getting confused by the type of data. Spectral Clustering as Ng et al. explain is about clustering standard data while the Laplacian matrix is a graph derived matrix used in algebraic graph theory. So the point is that whenever you encode the similarity of your objects into a matrix,...
9
5
11,664
2015-12-12T13:35:11.297
data_quality
datascience.stackexchange.com
1,118,304
NGINX Hosting multiple servers in same domain
I have a website being served by Nginx and I'm trying to do something that I don't know if it's possible the way I'm trying to do but the case is: I have Application A and B made with React / Node. The application A is the main, it has the frontend and backend on Dockerized. The application B is the Admin Panel, that h...
nginx returns 502 Bad Gateway error when the destination specified in [CODE] cannot be reached. In this case, make sure the 5001 port is accessible from where nginx is running.
1
1
372
2022-12-18T02:21:20.153
pipeline_ops
serverfault.com
850,941
PHP is not being executed by proxy_fcgi and php_fpm on Zabbix frontend
I have installed php7.0-fpm and enabled proxy_fcgi mod for Zabbix frontend. However when I try to get access from any page I get PHP source code of that page instead of normal page. My configs are the next: [CODE] I get only php source code during any page access: [CODE] In logs everything is clear, no errors at all. C...
Changed. Looks like there is error in your configuration file just put [CODE] instead of [CODE] . I check it on my VM and everything is working like it should.
0
0
1,344
2017-05-18T16:28:54.203
infrastructure
serverfault.com
202,109
IP changed when EC2 instance stopped and started
I have a strange issue here regarding and EC2 instance. I had just stopped and started an EC2 instance for windows after expanding the boot drive, not after I had started the instance, the IP it was assigned prior to the stop-start phase, has now changed to a new IP. Anyone has had a similar issue or is it usual in a s...
Any time you start/stop an EC2 instance, what you're really doing is turning on an entirely new virtual server. Which means it gets a new IP address each time. Luckily for you, Amazon offers Elastic IPs for EC2 instances so you can have a fixed permanent IP that you can assign to any of your instances (and change which...
10
18
11,149
2010-11-15T17:50:38.453
infrastructure
serverfault.com
1,005,180
Security when SMTP Relay is allowed from the Private Address Blocks
Is it safe to allow [CODE] from the [CODE] ? 10.0.0.0/8 127.0.0.0/8 172.16.0.0/12 192.168.0.0/16 My gut feeling is that it's probably OK, however I'm not sure if that will not make my server susceptible to something like [CODE] attacks or similar. Basically what are the chances that some black-hats will apply some smar...
A safer setup would be to generally block unauthenticated SMTP, whitelisting only those few services that are unable to authenticate - which by now should be none or nearly none.
0
1
290
2020-03-01T11:27:56.573
infrastructure
serverfault.com
139,784
How to keep user's guide in lockstep with branches for a non-developer?
Our current user's guide is built using [CODE] . The documentation is managed by a non-technical person, but we keep the source text files as well as generated HTML in source control. Issues arise when they are making doc updates for version [CODE] in the [CODE] branch. Typically, one of the developers will update thei...
When your documentation is under version control, it is typically not an unreasonable request for the person doing the documentation and/or managing the documentation to ensure that it is properly checked-in -- be they a technical developer or otherwise. In my experience, a sticky note on the desktop (virtual or not) w...
6
7
167
2012-03-14T18:15:50.883
api_errors
softwareengineering.stackexchange.com
387,985
Is the complexity of this code quasilinear time?
Algorithm explanation: based on an unsorted list I want to find the indexes of the values in another sorted list. Note that all values are unique and the two lists have the same values, only in different order, for example: [CODE] Can someone please confirm that the function [CODE] has quasilinear time complexity? Note...
Given that quasilinear time means the following: An algorithm is said to run in quasilinear time (also referred to as log-linear time ) if [CODE] for some positive constant [CODE] ; linearithmic time is the case [CODE] . it is clear that your algorithm runs in quasilinear time. The reason is because this function: [COD...
0
4
665
2019-03-04T00:05:35.803
api_errors
softwareengineering.stackexchange.com
390,302
SQL Server NIC Power Saving
We have a server running Windows Server 2008 which is dedicated to hosting a SQL Server 2008 Database. Whilst auditing the server OS we have noticed that the NIC Power saving feature is enabled. Could this cause any stability of performance issues for the database?
In theory, power saving mode for cabled NICs is only used for disabling the card if no network cable is plugged in. This shouldn't cause any issue with MSSQL during normal operation or any change in the NIC performances. It's not impossible that it could some issue if you're using a clustered solution, specifically it ...
0
0
68
2012-05-18T08:42:45.840
database_errors
serverfault.com
1,010,806
iptables port forward not working with libvirtd VM
For some reason, I'm unable to connect to my server inside a VM from the outside world, but I can definitely connect to my server from the hypervisor. The server application runs on ports 27500 and 27015. I'm a little inexperienced with iptables so it might be that I did something obvious wrong. Here's my iptables-save...
The problem here comes from the following chains: [CODE] They are added by libvirtd according to the network config in libvirt, if forward mode is set to [CODE] . One possible solution is to change the mode into [CODE] . However, be careful because you have to manually add forward rules by the following command: [CODE]...
0
1
4,036
2020-04-03T19:40:13.750
api_errors
serverfault.com
542,233
Internal and External dns name in EC2
My Application(openmrs) is running on ubuntu, apache, mysql. It is configured with Public dns name: ec2-174-129-227-190.compute-1.amazonaws.com in apache. The problem is within system ID of application. It shows Internal dns name: ip-10-250-78-208.ec2.internal. How do i change it so it does route to internal dns name.
The Amazon-provided DNS resolver that does recursive lookups on behalf of your instances has some built-in magic that translates your external hostname to your internal IP address when an internal host looks up that name. Note the difference in these examples. Pinging a machine's external name from outside of my EC2 ne...
-1
1
154
2013-09-27T19:28:38.757
database_errors
serverfault.com
47,478
HP Onboard Software SATA RAID. Knowing which drive failed
On of our HP Proliant DL320 G4's is reporting a failure. It's running Windows 2003 and configured using the built in software SATA Raid. The array manager shows only one drive attached labelled "Port 1" and so it's in a degraded state. I have the replacement drive sitting on my desk and I'm all ready to go to the hosti...
Ok, so I managed to get downtime on the server so I could shut it down and therefore pull the drives safely to see which one was which. On this server (I can't say the same for all) Port 0 is the left bay looking at the front and Port 1 is the right bay.
4
1
1,864
2009-07-29T11:05:22.370
infrastructure
serverfault.com
244,384
Java best practice Interface - subclasses and constants
In the case where a couple of classes implements an interface, and those classes have a couple of constants in common (but no functions), were should I put this constant ? I've had this problem a couple of times. I have this interface : DataFromSensors that I use to hide the implementations of several sub classes like ...
The other thing you can do is specify it in a config resource that you include with a jar. Constants are kinda funny: You think they never need to change until they do and then you have to recompile to code to change your TIMEOUT_VALUE. If you put it in the jar with the rest of the resources then it is, for all intents...
0
1
1,247
2014-06-09T06:00:12.370
airflow_errors
softwareengineering.stackexchange.com
1,123,644
Linux netfilter NAT based on SNI?
I am trying to do SNI proxying to a subnet on a router while keeping the src IP. Background: I have a router doing DNAT to do port-forwarding for many application ports, and it is connected to a subnet (using a VPN actually) with different backends. For protocols that do NOT have something like HTTP Host or TLS SNI tha...
In theory, using [CODE] to have userspace alter the first packet and do NAT you could imagine doing something like this. In practice you can't because you need to have received a full ClientHello message with SNI extension to guess the new destination address, and since the first TCP packet will be empty, or with UDP, ...
1
1
880
2023-02-23T23:15:56.113
infrastructure
serverfault.com
249,677
Unable to access Oracle DB from SQL Server with ODAC?
I've downloaded and install the ODAC for connecting oracle DB into my SQL Server 2008 using http://download.oracle.com/otn/other/ole-oo4o/ODAC112021Xcopy_x64.zip The OleDB data provider for Oracle is now available in the SQL Server, but doesn't seems to be usable for now, Shall I install oracle 11gR2 client 64 bit on t...
Installing ODAC 11g 64 bit first in the SQL Server and then editing the TNS names solves the problem. ODAC112021Xcopy_x64.zip and set the following Environment variables: [CODE] after that drop the TNSNames into the C:\Oracle\Client\product\11.2.0\client_1\network\admin directory
1
0
5,158
2011-03-21T03:23:30.633
database_errors
serverfault.com
247,563
How to compress and clean logs with logrotate but not rotate them
I have a Tomcat server which create access logs via a valve ( org.apache.catalina.valves.FastCommonAccessLogValve ). This valve takes care of rotating the access log file, but not of compressing them or deleting them after some time. For the moment, I have a cron job that uses [CODE] to compress and delete the logs. I ...
Fairly simple one that i have seen works like this. Create a file in /etc/logrotate.d called tomcat containing the following:- [CODE] This runs daily , compress es the file, and keeps 7 days worth ( rotate 7 ). copytruncate means that it'll copy then truncate the original file so that there is no need to restart tomcat...
10
18
53,026
2011-03-15T11:27:38.237
infrastructure
serverfault.com
33,754
Xpath worked during script creation not working when replaying
HTML Tag: [CODE] Earlier when I created the script, it did work: [CODE] Now it is not clicking on Update your profile
Xpath can change on reloading page. Also xpath is given the least priority while locating a web element while providing a web application testing services (automation). Priority should be ID,Class > CSS > Linktext > Partial Text > Xpath. You can try linktext or partial linktext here. It may help. Below is the syntax dr...
0
1
130
2018-05-18T11:43:41.770
data_quality
sqa.stackexchange.com
116,625
Is there any implications on updating Azure SQL server from V11 to V12?
We are planning to update our servers but we can't be sure if there will be any implications or problems if we do that? Did anyone experienced any issue and how big they were? Or should I expect an issue or it would be updated smoothly?
This Azure documentation page lists the limitations during and after the upgrade: Plan and prepare to upgrade to SQL Database V12
1
0
237
2015-09-30T13:50:07.197
database_errors
dba.stackexchange.com
303,645
Sorting array according to a formula
I need to sort the values according to the following problem: For every n, determine the triples (i,j,k) that satisfies i+j+k=n, then sort the triples (for every n) with respect to the value of the formula (4*i+5*j+4*k+1) in ascending order. Here is the rough pseudocode: [CODE] For now, I can only print the triples tha...
For this precise case, (4*i+5*j+4*k+1) = 4*n+j+1. Since n is a constant you need to sort it by j. Or just use j for your outer loop (after n). Also, you can compute k directly from i and j [CODE]
-2
5
93
2015-11-26T12:05:24.283
api_errors
softwareengineering.stackexchange.com
415,270
Approaches for comment duplication
For code, we know approaches like DRY and we tend to extract common functionality. What approaches are recommended for comments? Perhaps it's a really open question, so I'm going to go with my specific scenario: In a project I work for, we use a library for charts, which has a few bugs. It's not very well maintained an...
Ticket and work tracking systems change. Adding defects to the backlog is not ideal because nobody is going to fix them, clearly. Duplicating comments is not ideal either for the very reasons you listed. Commit messages are not that great either, because there are so darn many of them. A single voice gets drowned out b...
4
3
228
2020-08-27T13:57:36.440
api_errors
softwareengineering.stackexchange.com
54,380
Change MySQL 4.1 Windows to MySQL 4.1 Linux- Problem with the key Sensitive in query
I need help to resolve this problem. change the server MySQL 4.1 run on Windows to MySQL 4.1 run on Linux(debian). This all working, but same query not return the correct data because key sensitive . In windows server i type: selete * from acao; or Selete * from ACAO; this two query return data. But on Mysql 4.1 on lin...
There is a system variable that needs to be set in your my.cnf file. You will need to add: lower_case_table_names=1 in the [mysqld] section of your cnf file. Kevin
0
1
37
2013-12-03T20:33:59.413
database_errors
dba.stackexchange.com
118,037
What is Auto-Sklearn Dummy Model?
When I apply AutoSklearn for some datasets I get this error [CODE] What does it mean? what is this Dummy Model? How does it do classification/predictions?
Dummy model is a model which predicts by purely guessing or using simple rule. E.g. for classification randomly assigns a class or just uses the majority class; for regression just uses the mean. It serves as a basic benchmark and sanity check. BTW, It is not an Auto-Sklearn specific thing.
0
1
46
2023-01-26T02:19:54.663
data_quality
datascience.stackexchange.com
126,721
What cost optimisation problem is solved by F score?
I know the general expression of the F1-score: $$F1 = \frac{precision * recall}{precision + recall}$$ And its $F_{beta}$ variants (see: https://en.wikipedia.org/wiki/F-score ): $$F_{beta} = (1+\beta^2) * \frac{precision * recall}{\beta^2 * precision + recall}$$ I was wondering what optimisation problem it solve. That i...
There isn't a direct and perfect correspondence between the optimal cost-based objective and the optimal F1 score. Here's an example to show that, though it's perhaps somewhat unsatisfactory because it essentially constructs a sufficiently imbalanced dataset to break things. $\DeclareMathOperator{tp}{TP}\DeclareMathOpe...
4
3
103
2024-02-04T21:21:58.280
data_quality
datascience.stackexchange.com
127,811
SQL Server 2014 Minimum Memory configuration - VMware
I am taking over a SQL Server 2014 environment which has been built and configured by a consultant. They have set a minimum value for memory which I usually set to 0. According to the consultant and VMware documentation the minimum memory should be set in SQL Server when it is running on a virtual machine. I always set...
There is no clear best practice on this. It all depends on your VMWare configuration and failover requirements. The idea behind this is the fact that it should be preventing SQL Server from releasing memory when the VMWare balloon driver thinks it needs this. There are several possible problems with that. One of them b...
2
3
523
2016-01-30T16:23:09.790
database_errors
dba.stackexchange.com
811,346
I've switched back from HTTPS to HTTP now the page doesn't load in Chrome
I've switched my website [CODE] back from https to http and now I can't get on it using Chrome (my default browser). I was previously hosting with [CODE] which is a great platform, but I don't really need their data storage and my web design skills are poor so I am now using a Go Daddy hosted WordPress site. Firebase p...
You probably either had permanent redirect from HTTP to HTTPS, or you had HTTP strict transport security (HSTS) enabled which are still in your cache. As far as I know clearing your cache should work to delete a redirect, to clear the HSTS settings in Chrome: [CODE] and "Delete" your domain.
2
4
4,381
2016-10-26T08:06:52.903
infrastructure
serverfault.com
928,931
Webmail via imap unix socket - good idea or not?
I'm slowly setting up an email system on a Centos 7 server. The particular software I'm using will consist of postfix, dovecot and roundcube, although my question isn't specific to them (I think). I've gotten to the point where postfix and dovecot are working and now I just need to add the webmail (roundcube). It occur...
I don't see how roundcube could be configured that way ? Docs suggest that $config['default_host'] is a hostname. Also probably squirrelmail uses php-imap, and imap_open clearly asks for server. And imho wouldn't mean much for performance. That overhead ( on localhost ) doesn't mean much vs disk access or doing sorts a...
1
2
526
2018-08-31T23:29:52.573
infrastructure
serverfault.com
288,280
Can Wireshark help determine cause of latency in remote-desktop connection?
We have a small Remote Desktop farm using Windows Server 2008. We have a gateway and two servers. Most of our users have no issues, but we have two or three that get 1-2 second latency when typing. Graphics and screen updates work well, but typing is brutally slow. They connect from one of our client's networks. I'm lo...
Wireshark could help, depending on what's the actual cause of the problem. The caveat being that Wireshark is only going to show you one side of the conversation (unless you run Wireshark simultaneously on the client and the server) and can't show you anything that's happening in between the source and destination. I w...
3
2
5,693
2011-07-08T12:33:17.607
infrastructure
serverfault.com
685,535
How to recover MariaDB database after a failed update?
Due to a failed update, now my VPS system is broken. I can only access to my files with rescue mode. So, where does MariaDB store his .sql files? So I can make a backup. The update was made by my vps provider. And they didn't said to me that they would have update my system. And my last backup was some days ago. The si...
Somehow Google knew this already as first result on search [CODE] : The data directory location is controlled by the [CODE] variable. Look at your [CODE] file to see where your installation of MariaDB is configured to store data. The default is [CODE] but it is often changed, like for example if you are using a RAID ar...
-4
4
2,260
2015-04-25T11:59:38.913
database_errors
serverfault.com
785,701
How to setup failover with rabbitmq cluster with a loadbalancer like f5
I have been trying to find information on f5 developer central and internet regarding the following setup with no luck. We want to have a rabbitmq cluster with 3 nodes. 1 node will always be primary/master node for ALL queues. 1. Send all connections / traffic for all queues to the current primary node (A). 2. When nod...
I've done L4 loadbalancing for clustered RabbitMQ with Stingray load balancers - it works well, and we have done RR without any particular issue. In the event that one Rabbit node goes down, TCP connections fail and the load balancer sends traffic to the other node. Now this is technically inefficient, as any record se...
1
4
5,140
2016-06-23T01:21:23.087
database_errors
serverfault.com
729,754
Cannot configure TFS Express
I am running W2012 DataCenter edition I already have SQL Express 2012 installed (which works fine), and I want to start using TFS Express. When I try to run the TFS installation exe, the installation succeeds but if fails during configuration, at the 'readiness checks' section, specifically at Data Tier bit! The error ...
It sounds like you are trying to install an old version of TFS that does not support SQL 2014. You should download and install TFS 2015 as a minimum.
0
1
736
2015-10-18T11:05:27.960
database_errors
serverfault.com
922,944
after Disabled Bitnami banner, Apache not running, Httpd could not be started
I went to restart Apache after disabling the banner with [CODE] now Apache won't restart [CODE] I tried [CODE] Monitored apache for error log - [CODE] you can find it here in this link https://drive.google.com/file/d/1f2Xt0bwcMEhKcXkILLMf_kdBl0JoSZUr/view?usp=sharing for httpd-app.conf file here copy of it in below lin...
When looking at (error) log files the most recent ones are at the bottom and those are usually the most relevant when an application fails to start. That shows that the problem is not the banner but something else: [Fri Jul 20 23:52:07.232239 2018] [ssl:emerg] [pid 2058:tid 140169115285248] AH0 2565: Certificate and pr...
-1
1
972
2018-07-21T04:25:07.710
infrastructure
serverfault.com
445,175
Correct way to return JSON schemas in a REST API
in our company we have some APIs that return some JSON data. Before sending, for instance, data to the backend using [CODE] , [CODE] , or [CODE] , we need to do some kind of validation in the different clients (web, mobile apps, etc). Right now that's a ton of duplicated work, so we would like to start using JSON schem...
I have seen some people suggesting creating an endpoint called /schemas/ Most of the validation schemes out there are public, hence, have a route. So yes, you need to make it public. It doesn't mean it should be accessible to everyone. You could secure the document for only clients of yours. Now, the route doesn't have...
1
1
1,438
2023-04-23T03:58:07.397
data_quality
softwareengineering.stackexchange.com
877,251
How to automate OS/ECS-agent updating on a EC2 instance in ECS Auto Scaling environment?
First off: I feel like I still don't understand some of the fundamental concepts of AWS, so please bear with me, if this question is noobish. I have the following set-up in AWS: 1 ECS-Cluster with 1 single service The Cluster is configured to use 1 single EC2 instance This EC2 instance is part of an AutoScaling group, ...
I have created a Lambda function to update the instance agent in all my ECS clusters: [CODE] Then I created a CloudWatch event rule to execute lambda function daily. Works good for me.
2
1
1,884
2017-10-06T13:58:04.000
pipeline_ops
serverfault.com
346,214
One way traffic PPTPD Server / No Internet Access
I just set up a pptp server on Debian Linux yesterday by following this guide: http://poptop.sourceforge.net/dox/debian-howto.phtml When I tried to connect to the server using both XP and iOS, the client successfully connects to the PPTP server, however, I can't seem to access the Internet thru the pptp connection. Whe...
more than likely, your internet gateway (router?) does not have a route back to your PPTP gateway. So when a packet comes from x.x.x.x (VPN ip-range) the router throws it to the WAN interface instead of back to the PPTP server.
0
0
1,208
2012-01-03T17:29:53.447
infrastructure
serverfault.com
44,494
How do I open an event viewer file in Excel 2007
I have an event view that I need to filter and pivot the data from. I tried exporting the file as a CSV file, but that is missing the description. I tried exporting the file as XML, but there was no schema, so excel opened it as a table and it was of little to no use. Is there a way that I can open an event log in exce...
Have you looked at Microsoft LogParser? Download here With LogParser you can do the filtering you want on the Event log files and export to a type that you want. For Example the following command selects everything from the system event log, where type is not information (EventType 4 is "Information Event") and then ou...
1
5
4,801
2009-07-23T09:07:16.770
infrastructure
serverfault.com
466,325
iptables redirect UDP packet to multiple destinations
Possible Duplicate: How to Tee udp packets onto a different host I'm running some instances in Amazon's Virtual Private Cloud. One instance is inside a VPN only subnet (10.128.1.0/24) connected to a corporate network (172.16.32.0/24). I have no control over anything on the other end of the tunnel. I only control what's...
If the packet is address to neither target, you'll have to NAT it to the first target, [CODE] it so that it goes on towards that first target, and then NAT it to the second target. If the packet is already to one of the targets, then just [CODE] it to the target it is addressed to and then NAT it to the other.
0
0
2,242
2013-01-11T22:08:58.473
data_quality
serverfault.com
1,049,255
Access denied while accessing a public samba share on windows 10
I'm trying to configure samba to share folders on my network publicly, however I also want private folders. I have ran into a problem where when I create the samba account access to all the shares are denied if your login as a samba user. I'm connecting from a windows 10 PC The file system is running Devuan 2.0.0 (a fo...
This just turned out to be a problem with my computer and nothing wrong with the smb share. Their is something wrong with how my computer is communicating with my dns server, Just fixed it by reinstalling windows
0
0
2,407
2021-01-10T12:05:16.003
infrastructure
serverfault.com
986,105
Managing a single Kubernets Ingress with multiple rules
I'm using Kubernetes Ingress on GCP to route traffic to different HTTP services. TLDR: Is there a way to control a single Ingress object by adding rules to it from multiple different spec files? We want to allow each microservice to deploy it's own routing rules but only have a single (or few) Ingress instance. Service...
There is noway to do control one single Ingress object by adding rules to it from multiple different spec files with GKE Ingress Controller now. I would say that the GKE Ingress Controller implementation is simply to support you to create K8s Ingress resource with its utilities from the native K8s. To do something more...
0
2
323
2019-09-29T18:24:22.020
pipeline_ops
serverfault.com
418,358
How to efficiently communicate with Raspberry Pi using Django/Python
I have a raspberry pi that is sending an https request to my Django application every 2 seconds. The request is essentially asking the application 'Has a user requested data from me?' My Django application then responds to the request with either a 'yes' or a 'no'. If it is a 'yes', the raspberry pi will send the packe...
The essential difference between poll and push is that if you poll, you can control when and how much you pull, but you never know whether it is actually worth it. If the other one pushes, you will only do work when you need to, but you have no control over when that happens. In your case, you also have a second dimens...
1
1
359
2020-10-26T18:53:00.777
api_errors
softwareengineering.stackexchange.com
32,940
Selenium Python Bindings - Accessing Submenu Items
I am using Selenium to write unit tests for a website to test scientific software. The backend uses Flask to generate a sidebar where each project is clickable with a dropdown menu. You can only open one of the project tabs at once. I want to loop through the projects in this sidebar and verify that following each of t...
You can locate whole list of elements (like all [CODE] elements inside treeview_menu class, using CSS locators), loop over them, test other attributes (like [CODE] ), and [CODE] on the item you want. I do it all the time, it is much more robust than creating and maintaining complex XPATH expressions. You can edit sourc...
1
1
2,002
2018-04-05T17:32:04.893
api_errors
sqa.stackexchange.com
239,144
How other thread can show the incremented value unless the 1st thread reaches the return statement?
My code is given below. In the for loop I am getting unexpected output i.e. before completing the execution of for loop by 1st thread the 2nd thread comes in for loop and shows incremented value. [CODE] The question is when 1st thread executes for loop then other threads executing return statement is this the reason of...
first 2 points to make: there is not guarantee that the thread's execution will be interleaved, short pieces of code will likely complete uninterrupted. Add sleeps if you want to lessen this effect. [CODE] is not thread safe, it expands to [CODE] and the thread may be interrupted between the [CODE] and [CODE] . Instead...
0
1
2,721
2014-05-15T11:35:31.913
api_errors
softwareengineering.stackexchange.com
549,101
Get full list of host and services from Nagios
I need to get a full list of hosts and services from Nagios, to make a decision table. I think there is two methods, querying the Nagios CGI, and parsing the Nagios cfg files. But... Nagios cfg files may not be standard and this could be a problem. Anyone knows how do that? Thanks in advance
You can scrape this out of the object cache file (the path of which can be found in nagios.cfg, typically located somewhere like [CODE] or [CODE] ), or scrape it out of the HTML output from the CGI (which you can run via the command line), but why reinvent the wheel? You might want to try pynag , as it's made for exact...
1
2
10,368
2013-10-28T09:56:31.933
infrastructure
serverfault.com
545,915
apache2 virtualhost not working
Struggling with getting two virtual sits running on the same IP. The problem is that it always forwards all requests to the nagios virtual host. Even when I type in sugarcrm.domain.co.uk it still forwards it to nagios. Any ideas..... Could it be that my request is not coming with the complete domain name? Or is my conf...
First I would try simplifying your configuration and testing that. Something like this: [CODE] I'm assuming you already have a [CODE] in your Apache config if you're running 2.2. If that works, then you can slowly expand it and make it more complex. BTW, I noticed that the [CODE] directive for your sugarcrm domain poin...
0
0
650
2013-10-14T17:53:00.470
infrastructure
serverfault.com
41,369
In Azure Test Plans, how do you Move a Test Case to another Test Suite?
In Microsoft Azure DevOps Test Plans / Test Manager, Test Plan view, how do you Move a Test Case to another Test Suite in the same Test Plan? I am not able to drag and drop the test case to another suite in the same test plan like I was able to in Test Manager in TFS. Clicking the "..." on the test case does not give t...
According to the Azure DevOps Forum , The Move or Drag & drop test case functionality is currently not available in new Azure Test Plans. It will be available in the coming weeks. For now, you can turn off the “New test plan page” preview feature to return to the old view by performing the following process: Sign-in in...
1
1
11,769
2019-10-30T18:23:34.310
data_quality
sqa.stackexchange.com
521,613
How can I make the root logical volume smaller without problems and downtime?
[CODE] Tst-01 is a VMware Virtual Machine that runs RHEL-6 and uses LVM ext4-partitions. I would like to make the root-partition 4GB smaller and make lvvar 4GB bigger. How do I do this without any downtime?
LVM on Linux does not have this functionality. I was asking myself this question time ago, because I used AIX which has a "chfs -a size=-4G" command, so I was looking for something like lvreduce -L 2G /dev/mapper/yourfs. Sorry friend, but you will need an active-passive configuration with other linux box if you don't w...
0
1
138
2013-07-08T13:33:52.113
infrastructure
serverfault.com
1,073,828
RFC5321 and multiple RCPT TO
After analyzing https://datatracker.ietf.org/doc/html/rfc5321 I've got impression that some of its fragments contradict each other. A single notification listing all of the failed recipients or separate notification messages MUST be sent for each failed recipient. For economy of processing by the sender, the former SHO...
Different reasoning for the message itself - and notifications regarding that message. The part where spelling out unmentioned recipients in the headers defeats the purpose refers to the message as it is transmitted to the recipients . The notification about failed recipients goes back to the sender , who clearly at on...
0
1
470
2021-08-07T16:34:24.057
infrastructure
serverfault.com
66,787
Reasons that LIME and SHAP might not agree with intuition
I'm leveraging the Python packages [CODE] and [CODE] to explain single (test-set) predictions that a basic, trained model is making on new, tabular data. WLOG, the explanations generated by both methods do not agree with user intuition. For example, when leveraging the methods in a healthcare setting, they might list t...
As pointed by Sean Owen, this is probably linked to correlation in the input variables. Concerning LIME : you can read here : https://christophm.github.io/interpretable-ml-book/lime.html (paragraph 5.7) why a correlation between inputs could pose problem, more specifically due to an implementation problem. (gaussian sa...
2
1
506
2020-01-20T22:32:49.657
database_errors
datascience.stackexchange.com
126,344
Disk space consumed
I have a very serious problem here in one of my client server. The remote server is installed with REDHAT ES 5.2 and we have a postgresql as database. I was trying to clone the database. The hard drive had 32 GB of free space before taking clone. I started cloning the database and during the process, there was some int...
You need to find the file in question. Try the following: [CODE] That will find files under /path, created in the last day, over 25 GB and under 32 GB in size.
0
1
143
2010-03-25T18:20:22.337
database_errors
serverfault.com
221,971
How do MySQL joins really work?
In my case joining table inside subquery or outside subquery gives very few difference with [CODE] CASE 1: about 6202 rows. In this case [CODE] is joined inside subquery, but is only joined (No other actions for the table, not selecting any data or filtering whole query with that table). CASE 2: about 6235 rows. In thi...
I performed two queries in MySQL while using EXPLAIN. The first one being the following: [CODE] The second being the following: [CODE] They both returned 68 records, which implies if you're getting something different, it is because of a filter you're using, not the way in which the query is being performed. When I run...
2
5
2,103
2013-12-20T09:10:07.490
database_errors
softwareengineering.stackexchange.com
175,180
Can I safely reduce the number of processors on a VM?
I have a number of Virtual Machines that were created from physical servers. Some of these have (in my opinion) an inappropriate number of processors - for example, we have a web application, accessed internally only, running on a VM with 4 processors allocated. This is the highest specced of our VMs, but there are oth...
The only serious complication may come from going from multicore (ie 2 or more) to single core. Windows 2000, XP, and 2003 (im not sure about vista, 2008 or 7) used a different kernel for multicore than they did for single core. That said, its probably just going to be some kind of performance penalty, rather than thin...
4
5
14,201
2010-08-27T10:32:03.240
infrastructure
serverfault.com
304,411
Access to Service from Remote and Local JBoss 7
I have two different servers (i.e. a tomcat on port 8082 and a jboss on port 9080) on a Suse Linux machine. The first one has been installed some time ago and the second one I just installed recently. Now I have problem to access the second one from another machine. If I look at the netstat output there is a difference...
JBoss 4.2 and later only listens on localhost by default, you need to add -b 0.0.0.0 to your run.sh launcher (init scripts etc) to make it listen on all available interfaces.
0
2
2,795
2011-08-24T08:36:37.350
infrastructure
serverfault.com
329,108
Varchar for columns that store numerics/ids?
There is a table that has a column defined as follows: [CODE] I know that using [CODE] is optimal for storing text because it allows for variable length columns but in this case I am not sure if there is any [CODE] stored that is not in the form of a number so it is not clear to me if there is any benefit to store it i...
Your regular expression is looking for strings that contain only alphanumeric characters, that is why it picks out pure numbers – you've told it to look for them too. It breaks down as: [CODE] To match those that are pure numbers you want [CODE] and you can invert the logic with [CODE] to find problem rows. Possibly no...
0
1
93
2023-07-10T09:05:04.020
warehouse_errors
dba.stackexchange.com
416,676
Testing a React component which receives a function as a prop
Suppose there's a root [CODE] which houses multiple components, one of them being, say [CODE] . App component houses the app state (such as [CODE] array) and iterates the results underneath the [CODE] as [CODE] Inside the SearchBox component, a call to a library is made which in turn calls a remote API, which then retu...
Both, probably. Within a "unit test" suite you might have: Lower-level tests for [CODE] , which use test doubles for the collaborator (a service wrapping the library*) and the prop ( [CODE] ) to check that e.g.: for a given input the right call to the service was made; and for a given return from the service call the r...
-3
1
190
2020-10-07T21:03:47.717
api_errors
softwareengineering.stackexchange.com
176,640
Requiring multithreading/concurrency for implementation of scripting language
Here's the deal: I'm looking at designing my own scripting/interpreted language for fun. I'm only in the planning stages right now; I want to make sure I have a very strong hold on exactly how I will implement everything before I start coding. What I'm currently struggling with is concurrency. It seems to me like an ea...
writing anything multithreaded is hard I can think of at least one race condition of the top of my head you'll need to be aware of: there is an object [CODE] with field [CODE] the GC just started its mark phase and has examined field [CODE] and is currently examining some other part of the object tree meanwhile the int...
1
1
774
2012-11-21T07:39:19.373
api_errors
softwareengineering.stackexchange.com
88,941
Using Oracle Datapump when target table has additional column
Table 1 has 5 columns. Table 2 has the same 5 columns, plus an additional non-nullable column. I would like to use datapump to copy the data from Table 1 to Table 2. In Sql Server, I can use bcp and specify a query to be used on export, in which I can "SELECT *, 'New Data'" from Table 1. This has the effect of putting ...
Just import your data into a a staging table at the target database. Then write a SQL staement to copy the rows from the staging table into the target table while giving the two new columns an explicit value. So something like this; The following syntax should work on 11g [CODE] Then, simply do something like this; [CO...
0
3
4,979
2015-01-09T15:14:14.813
data_quality
dba.stackexchange.com
725,198
504 Gateway Time-out uwsgi + nginx django application
I'm trying to run my Django application using Nginx + uwsgi, but I receive [CODE] after one minute of loading. My app takes time to do what needed as it searches for specific things on several websites. My nginx conf is the next one: [CODE] My uwsgi script: [CODE] My nginx is giving me the followin error message in err...
I know I'm late to the party but after trying many of these suggestions (and others) I eventually found the timeout for me was occurring from my DNS - if you're using Amazon load balancers they have an "Idle timeout" set at 120s default.
3
4
17,604
2015-09-28T06:25:37.473
infrastructure
serverfault.com
34,775
How to wait till next page opens after a button click in Jest + TypeScript?
I want to pass or fail the tests of "Login" function based on fields available on the second page. I used "xpath" to capture the fields. But it does not capture the fields of the second page. I suppose the reason is the second page is not loaded when the code tries to check the fields of the second page. Because when I...
I could found a solution. login_page.ts [CODE] This worked for me. I added the answer in case if anyone faces the same issue.
1
1
864
2018-07-17T01:08:34.997
data_quality
sqa.stackexchange.com
232,952
Joining ~ 40 normalized tables for 200 columns to display detailed user profile. Can this be optimized?
A profile can have many profile types. That profile can have many fields, which are all tied to lookup tables. Some fields can have many selections. [CODE] A lookup table for the fields looks like this: [CODE] If the field is a single selection, we join the lookup table and we're done. [CODE] If the field is a multiple...
Option 4 - correct your schema design and stop using 'IDs' or whatever other surrogate key, the zodiac table is NOT a lookup table. it's a relation that holds all zodiac signs, and the way you tell the zodiac signs apart is their name, therefore, the key should be: [CODE] Use the Zodiac as the foreign key in your profi...
1
5
795
2019-03-24T14:42:03.447
database_errors
dba.stackexchange.com
869,397
ethernet bonding in Centos 7 - testing without network connections
I'm configuring a Centos 7 box to do Ethernet bonding of 2 nic's. I've edited the ifcfg files by hand and said no to NetworkManager. But it's not coming up. I'd like to eliminate the config on the network switch, just to isolate the problem, even tho I'm using mode=5 (no switch support needed). Am I right to think that...
If all physical slave interfaces are down (no link signal) , then bond interface will be downed automatically. Before start to edit [CODE] config file you should down this interface by command [CODE] . After editing config you can up this interface by command [CODE] .
0
0
262
2017-08-18T16:45:53.140
infrastructure
serverfault.com
320,351
Running a sequential trigger
I have my own triggers in my database. But my customer wants customizations. I need to give a trigger order according to the priorities he wants. I'm aware that I can do all of them with 1 trigger, back-to-back if. But I want to custom_xCompanyTrigger the trigger my customer wants and put it in the order I want. If the...
You can use the system stored procedure sp_settriggerorder to set the first and last [CODE] triggers to be run on a table. As per the docs on Triggers : You can specify only one first and one last AFTER trigger for each INSERT, UPDATE, and DELETE operation on a table. If there are other AFTER triggers on the same table...
0
1
253
2022-11-29T19:23:06.310
airflow_errors
dba.stackexchange.com
62,815
restrict network access only through vpn
I'm using a VPN on my PC and I want to limit ALL the internet connections on my PC to go through the VPN, if the VPN gets disconnected I want all my applications to go offline. How can I accomplish that?
You need to configure a little custom routing on your PC. Change your local area network settings so that you don't use the local default gateway. After doing this, no applications will be able to access the Internet. Then, configure a route to your VPN server's IP via your local gateway. Now you'll be able to hit only...
1
2
3,223
2009-09-06T12:23:43.563
infrastructure
serverfault.com
51,380
Explanation for kernel error - Eeeek! page_mapcount went negative
Internet says this is a genuine Kernel Bug but does anyone know what triggers it?? Server running CentOS x86_64 with kernel 2.6.27.24 Here is my crash output: [CODE]
This is not a standard kernel for CentOS, which means it can be any number of issues. If you truly need to run this particular, non standard kernel for CentOS I suggest following this guide
0
1
1,685
2009-08-07T09:58:48.280
infrastructure
serverfault.com
517,649
Recover/Recreate completely missing Mailbox Database
We're in the process of upgrading our servers from Exchange 2010 to Exchange 2013. During the installation of Exchange 2013 some things went wrong as why it could not be fully installed. It stopped at step 7 of 15 or so. After reinstalling the server and doing a disaster recovery, Exchange 2013 installed successfully (...
I would just wipe the server and start over again. Otherwise you're in for a long day (and calls with Microsoft) trying to get Exchange to behave.
0
1
7,335
2013-06-21T19:38:59.500
database_errors
serverfault.com
576,926
Intermittent performance issues on Azure Web Application with ASYNC_NETWORK_IO errors
Our web application is suddenly experiencing intermittently slow performance (slow page loads, slow ajax calls going from This application has been in place for several months without problems, the only recent changes Azure-wise being the addition of auto-scaling and SQL server fallback a few months ago. The applicatio...
ASYNC_NETWORK_IO means one of two things. Your code isn't processing the data from the application fast enough. You've got large rowsets, or row by row processing and the application server simply can't keep up for some reason. There's a network problem. As you are hosted in Azure odds are it's #1 and that the problem ...
1
0
889
2014-02-20T01:46:21.217
pipeline_ops
serverfault.com
595,019
SVN Authentication using Active Directory
Is it possible to use Active Directory (Server 2008 R2) to manage users for a subversion repo that's hosted on Debian (Wheezy)? I've tried linking the SVN hosted on Apache on a Debian server to the Active Directory on the windows server. I'm able to check out the repository however when I go to commit my changes I get ...
I needed to specify the global catalog port in the AuthLDAPURL. I got it to work using the config below: [CODE]
3
1
15,568
2014-05-14T11:16:50.880
api_errors
serverfault.com
586,015
sudo permissions without root access
I want to give certain users on my server access to run commands as apache, but I don't want to give them full root access. Is there a way to allow a user to run a command similar to [CODE] while preventing them from having root permissions?
Yes, of course, this is exactly what [CODE] is for. e.g.: [CODE] Allows the user ajon to run [CODE] . See [CODE] .
-2
3
1,459
2014-04-01T21:15:20.960
infrastructure
serverfault.com
246,832
Queries and updates extremely slow after IndexOptimize
Database SQL Server 2017 Enterprise CU16 14.0.3076.1 We recently tried switching from the default Index Rebuild maintenance jobs to the Ola Hallengren [CODE] . The default Index Rebuild jobs had been running for a couple of months without any issues, and the queries and updates were working with acceptable execution ti...
I suspect you've got a different sample rate defined between your two maintenance approaches. I believe Ola's scripts use default sampling unless you specify the [CODE] parameter , which it doesn't look like you're currently doing. At this point, this is speculation, but you can check to see what sampling rate is curre...
12
11
1,644
2019-09-03T08:34:44.183
database_errors
dba.stackexchange.com
977,952
Can I upgrade a managed disk used by an Azure VM without having to redeploy the VM?
I'm trying to convert a separate managed disk I added to my Windows 2019 Server VM from Standard SSD to a Premium SSD. According to the steps at https://docs.microsoft.com/bs-latn-ba/Azure/virtual-machines/windows/convert-disk-storage , I'll have to stop the VM to perform this--but I'm afraid that if I stop it, there w...
Eureka! I managed to upgrade my managed data disk without having to redeploy the VM! According to the Azure web portal, "Disks can be resized or account type changed only when they are unattached or the owner VM is deallocated." It seemed that if I could unattach/detach the managed disk in question, I could be home fre...
5
6
5,796
2019-08-05T04:05:21.463
pipeline_ops
serverfault.com
582,371
How to set umask for php-fpm in Fedora
I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
Here's how I finally did it, in case this helps someone: Create the file [CODE] (it must end in [CODE] ) with the content: [CODE] Then run [CODE]
7
12
9,499
2014-03-16T01:11:18.323
infrastructure
serverfault.com
176,028
Real-Time Multi-User Gaming Platform
I'm considering developing a real-time multi-user game, and I want to gather some information about possibilities before I do some real development. I've thought about how best to ask the question, and for simplicity, the best way that occurred to me was to make an analogy to the field (or playground) game darebase. In...
Overall, your question is probably too broad to be answered in any depth, but I will try to give you some pointers in the right direction. There are a number of good reasons why you will need to have your own server (web or otherwise): Firstly, any game of moderate complexity will be unique enough that you won't find a...
2
4
1,427
2012-11-16T01:38:14.747
api_errors
softwareengineering.stackexchange.com
20,139
good failover / high availability solutions for linux?
I have several cases where I need applications to be migrated from one server to another in the event of a failure (server hang or crash). On solaris we do this with VCS (Veritas Cluster Server). What options are available for Linux? Please indicate level of effort to setup/maintain or cost (if any) for each. -- More d...
http://linux-ha.org/ for all your high-availability needs. Like the song says, the best things in life are free.
9
10
18,339
2009-06-04T23:14:50.230
database_errors
serverfault.com
39,250
Is train/test-Split in unsupervised learning of neural network necessary?
I am using autoencoder for anomaly detection in warranty data. It is unsupervised. I calculate the reconstruction error by the model and the records with high reconstruction error value is considered as an anomaly. I would like to know, if it is necessary to train/test-split the data. Any help is much appreciated!
Yes it is still necessary, you are fitting your model on that data and learning it to find a good representation for that sample. Validating whether or not this was actually an anomaly is a lot more difficult then.
2
1
196
2018-10-05T19:43:35.990
data_quality
datascience.stackexchange.com
940,458
Why does my Windows DHCP server hand out a non-configured subnet mask?
We run the DHCP server role on our domain controller (Windows SBS 2011). We want our LAN subnet to be restricted 10.1.1.0/24 (unsure if this is the correct notation but our subnet to be restricted the address block 10.1.1.1–255) We have manually set the DHCP scope as follows: Range: 10.1.1.1–255 Sbnet mask: 255.255.255...
We want our LAN subnet to be restricted 10.1.1.0/24 (unsure if this is the correct notation but our subnet to be restricted the address block 10.1.1.1–255) You should know that [CODE] is NOT a valid HOST address for a DHCP range if the network is [CODE] (because [CODE] is the broadcast address of that network). However...
0
1
1,873
2018-11-17T06:03:20.940
infrastructure
serverfault.com
171,094
How does Apache handle port forwarding?
I setup a localhost portforwarding configuration in the coLinux .conf file, forwarding port 8090 to port 80 in the VM. When http://localhost:8090 is entered in the browser, I get the correct response from nginx, but with Apache the response get the error /htdocs not found in the log. However if I do a local port forwar...
Are you using the same domain name for each request? Apache is probably configured to serve up the site based on the DNS name you use, as well as the port. So if you request [CODE] on one machine, and [CODE] on another, you're going to get drastically different results.
0
0
556
2010-08-16T17:29:12.927
infrastructure
serverfault.com
630,141
Is it possible to restart a server without access to its SSL key?
I'm given a server (with root access) by a tech department to run a web-app app on some sub-domain. But the app requires authenification. So I requested the SSL key for the domain. The tech squad is reluctant to give me the key -- this is understandable. I need to restart the server from time to time. Is it possible to...
It is possible to grant root-rights for a single command to a user using a rule in [CODE] . Do [CODE] Add a new rule [CODE] As you can see, it is possible to also parameters. The user [CODE] is the allowed to do the following: [CODE]
0
3
496
2014-09-21T13:20:56.590
infrastructure
serverfault.com
785,768
HTTPS request fails in Docker >= 1.10 with virtualized network
I experience a problem that a HTTPS connections cannot be established from inside a Docker container with version 1.10.3 or 1.11.2. I tried with apt-get, curl and wget and all fail as soon as a HTTPS connection should be established. E.g., the following command fails: [CODE] The Docker image [CODE] is based on [CODE] ,...
I was given a solution by the Docker community OpenStack network seems to use lower MTU values and Docker does not infer the MTU settings from the host's network card since 1.10 . To run docker daemon with custom MTU settings, you can follow this blog post , that says: [CODE] Edit a line in the new file to look like th...
4
5
1,983
2016-06-23T09:23:58.700
pipeline_ops
serverfault.com
232,711
Complete immutability and Object Oriented Programming
In most OOP languages, objects are generally mutable with a limited set of exceptions (like e.g. tuples and strings in python). In most functional languages, data is immutable. Both mutable and immutable objects bring a whole list of advantages and disadvantages of their own. There are languages that try to marry both ...
OOP and immutability are almost completely orthogonal to each other. However, imperative programming and immutability are not. OOP can be summarized by two core features: Encapsulation : I will not access the contents of objects directly, but rather communicate via a specific interface (“methods”) with this object. Thi...
50
51
12,419
2014-03-17T19:10:43.147
api_errors
softwareengineering.stackexchange.com
841,896
Sendmail: rewriting the envelope sender
I am trying to find a way to rewrite the envelope from address based on what the envelope from currently is. This question here also has what I need: Sendmail: Setting envelope sender to a fixed value That issue has the following code: [CODE] This works to change the Envelope from address to john.doe@example.net if it ...
There MUST BE a tab (\t) before $: in the R line. [CODE] You can test it using the script below [CODE]
1
1
1,827
2017-03-31T21:44:27.957
infrastructure
serverfault.com
143,127
If view A is built atop other views and tables, does a user need permission to only view A, or everything down?
I'm talking about SQL Server in particular. I suppose a user tried it and got an error (you don't have select permissions on hidden underlying view B not explicitly mentioned in query). The main view A joins a table and another view (view B) together, and they don't have permission for view B. I'm not in charge of perm...
Do you need to grant permissions to every object built underneath the views? Or just the view itself? Or either one? Permissions need to be granted to the person executing the query for every object referenced by the view. Except if they are owned by the view owner. In that eventuality Ownership Chains come into play. ...
2
5
4,313
2016-07-06T15:05:29.513
database_errors
dba.stackexchange.com
1,120,381
Bind nginx to vpn address only
I am probably unnecessarily paranoid. But still also I think paranoid isn't too bad when it comes to security. I have a web server running on a VPS. I run zerotier on all my VPS and my home machines. I then use Letsencrypt to run a https webserver. Therefore, I have a DNS entry pointing to my webserver with the zerotie...
If you are using [CODE] , you can just simply allow port access only for specific ranges. Here is an example: [CODE] Change [CODE] to appropriate range. Also don't forget to make default traffic rules: [CODE] [CODE] And enable UFW: [CODE]
0
1
778
2023-01-16T19:49:46.517
infrastructure
serverfault.com
258,418
Migrate MySQL to another partition in same server
I have a instance of MySQL in a local server. To improve the performance, I put a SSD just for MySQL. Now I need migrate the MySQL instance, with my databse (a data has 25GB) for the SSD. What the best way to do that? I thinked in export the data and after reinstall the MySQL in SSD and import the data again. But how i...
For linux (as root user) Stop mysql service through systemctl rsync or cp -a the whole of /var/lib/mysql to your preferred destination. mv /var/lib/mysql /var/lib/mysql-old edit mysql configuration file and change datadir= under mysqld Start mysql service through systemctl.
-1
0
483
2020-01-29T12:26:47.147
database_errors
dba.stackexchange.com
582,043
Does a domain computer trust certs from domain CA
I have investigated this but have been unable to find a definitive answer to my question. I have never used certificate services in active directory before so am unsure of its possible usage/implentations. Quick background: we are looking to set up a remote desktop farm with a gateway server to allow remote users to co...
Essentially my question boils down to: does a computer joined to the domain automatically trust certificates issued by a CA on the same domain, or would they still need to be manually installed on each client device? Typically, the root certificate for your internal PKI is distributed via GPO to all clients. This makes...
1
6
21,049
2014-03-14T10:19:32.633
infrastructure
serverfault.com
928,404
Lost connection to MySQL server during query when dumping table
I'm trying to dump all my databases but it's giving me the error "Lost connection to MySQL server during query when dumping table" and the file always reaches 781M. I tried setting max_allowed_packet = 512M below [mysqld] and below [mysqldump] at /etc/mysql/my.cnf , but it didn't work. I tried setting to 1024M too. Not...
You appear to have a hardware problem. Specifically, it appears to be a faulty hard drive. When InnoDB is trying to read a page from the disk, it was unable to read due to an unrecoverable I/O error. This is fatal, so the server actually halts, crashes, which is why you lose the connection. Everything after [CODE] is M...
0
1
4,809
2018-08-28T22:57:38.617
database_errors
serverfault.com
24,507
Most effective way to determine the minimum set of permissions for user
I have a database that an application connects to using [CODE] permissions. How do I effectively determine the minimum set of requirements actually needed by this user (application) to run without causing service interruption? (ie. without trial and error)
This should be available from the developer who wrote the software. However, on occasions this information is not available - for instance if the software is written by a third party vendor. Most vendors tend to say it needs [CODE] or [CODE] which is generally down to poor coding on their part if it turns out to be the...
6
7
264
2012-09-18T21:54:19.300
warehouse_errors
dba.stackexchange.com
237,858
Sql server 2005 and windows 7
I have the symptoms in this articles, but I have Windows 7 32 bit, and "Group Policy Management Console" dos not work install due to compatibility problem so I can't follow the tutorial. Can you help me running SQL server 2005 ? http://support.microsoft.com/kb/941823 Thanks
Define the group policy on a domain controller, and filter the GPO so that it only affects your machine. If you aren't in a domain you can't do this as GPOs are only available when your computer is a member of a Windows 2000 or higher domain.
0
1
70
2011-02-20T15:01:34.160
database_errors
serverfault.com
562,668
Can't send php mail()
I just migrated to a new server and apparently I can't send a mail. I've "ipb board" installed there and every time I send a mail I get the following in error_log [CODE] [CODE]
To solve this problem I added [CODE] to php.ini
-1
1
708
2013-12-20T07:46:14.533
infrastructure
serverfault.com
212,991
backup and *restore* SBS 2008 from iSCSI
Has anyone successfully backed up and restored SBS 2008 from an iSCSI device? The backup itself works fine, but during restore, how do you tell Windows System Recovery how to connect to the iSCSI device? I'm trying to use WSB (Windows Server Backup) from within a SBS 2008 guest running under VMWare ESXi 4.1 -- I'm usin...
I figured out how to make this work under VMWare. I added the iSCSI drive to the ESXi host instead of using a software initiator inside of the SBS 2008 guest. I then map it to the guest as a Mapped Raw LUN. It appears to the guest (SBS or the recovery DVD) to be a local SCSI drive. For drive swapping, I add/remove the ...
0
1
2,689
2010-12-15T18:12:20.127
dbt_errors
serverfault.com
32,068
Linux Gigabit driver that survives resume
Currently, I'm using the r8169 driver (Realtek 8169 gigabit ethernet). I tried both the chips on the mainboard and with an external network card. When I boot my PC, the machine comes up with speed = 1000 and speed is as expected. When I resume after suspend to disk, the speed drops to 100. The driver doesn't support re...
The Intel e1000 in my laptop survives resume, but only ~20 times before thinking it's linked at 100/full (except plug in a 100mb switch and it's dead) Anything that can handle PCI hotplug should be OK.
2
3
290
2009-06-26T09:08:27.587
infrastructure
serverfault.com
785,600
Web app running on tomcat not updating when modified
I'm modifiying a web app coded by another guy with AngularJS. This app is fed by csv data files and is running fine in the first place. However, when I'm trying to change some data in the csv files, every part of the app that relies on data taken from those .csv gets broken. I first suspected this problem to be related...
I actually found the answer, it was actually two problems combined: the browsers, which didn't override their cache. Solution: delete the cache of Firefox/Chrome each time the app is updated. IE was actually checking by itself for new versions of the page so it didn't have this problem. An unix/DOS compatibility proble...
1
0
8,897
2016-06-22T15:39:59.403
infrastructure
serverfault.com
437,037
How do you specify the key size of a Certificate Signing Request?
I'm trying to generate a CSR with godaddy. I used the following commands to create the certificate: [CODE] But when I use the key generated in my server.csr file, I get the following error from godaddy: [CODE] How do I specify the key size of the CSR? P.S. I'm intending to use this on a domain hosted on heroku.
This should work for you: openssl req -new -newkey rsa:2048 -keyout your.key -out your.csr -newkey rsa:size - type and size of the private key
7
19
24,351
2012-10-10T21:53:35.780
infrastructure
serverfault.com
171,344
Fastest connection between servers in Switzerland(any city) and London. Best Datacenter
I've spend 2 weeks searching best datacenter to get fastest conection beetwen Switzerland (
Fast connections are all about the networking provider. Being in a datacenter with access to many top-grade ISPs is what you'll want. The largest carrier-neurtral data center folks in Switzerland that come to mind are: Interxion ColoZüri Green.ch Equinix There are plenty of ISPs in each of those vendor's data centers w...
-5
0
221
2010-08-17T11:23:21.243
infrastructure
serverfault.com
718,181
Public key authentication with strongswan
I have two systems r1 and r2, and I want to establish an ESP tunnel between them with Strongswan using public key authentication. I have generated public keys, store in r1-pub.pem and r2-pub.pem respectively, in both the systems using openssl. Now my ipsec.conf file looks like this in system r1 [CODE] and in system r2,...
You need the pubkey plugin to use raw public keys. If you specified charon.load in [CODE] make sure to include that plugin in the list. If you haven't then you either didn't build the plugin or your distribution does not ship it. In both cases you'll have to rebuild strongSwan from sources with the appropriate [CODE] o...
2
2
4,721
2015-09-01T04:32:13.173
api_errors
serverfault.com
400,468
Is it really always easier to write an interpreter than a compiler?
I've read that generally it's easier to write an interpreter than a compiler. If that's true, what's the reason? Writing an interpreter seems to me equivalent in the level of difficulty as writing a compiler, provided that the compiler simply translates the code to another high-level language (like c), and then uses an...
Yes, it is ! But only if you have a LL(k) grammar, where k is 0 or 1 . The reason is that you can parse the language using an easy functional decomposition corresponding roughly to the grammar terms. The functions then processes the input string from left to right: You may then interpret as you parse. But with slow per...
-2
6
2,989
2019-11-02T10:48:55.983
api_errors
softwareengineering.stackexchange.com
345,237
How much argument-parsing logic to test?
I have a program which may accept several dozen arguments. I am questioning whether there is value in testing every possible argument. (In the examples, I don't have the exact syntax for pytest readily in my head. If the imprecise pseudo-Python is causing problems, I can edit to something more correct.) About half of t...
You're almost certainly using a standard arg-parsing library to process these options. It makes little sense to test the processing like this, since all you're testing is the library code, which is unlikely to have blatant errors in it (and even if it did, you couldn't do anything about it except wait for a fixed versi...
1
6
107
2017-03-30T13:01:12.797
api_errors
softwareengineering.stackexchange.com
753,454
Purpose of SMTP message routing (relaying)
I am wondering why SMTP is designed in a way which allows intermediate MTA on the path of a message. According to RFC 5321, The objective of the Simple Mail Transfer Protocol (SMTP) is to transfer mail reliably and efficiently. Although I don't completely understand what are the benefits in terms of efficiency nor reli...
A common use case is if the target destination is temporarily offline, the sender may attempt to deliver to an intermediate host (typically the service provider of the target destination) with a higher MX record number. The intermediate host would periodically attempt delivery, and when the target destination host come...
2
2
130
2016-02-02T12:56:35.113
data_quality
serverfault.com
249,211
Split time in intervals of 15
This is my table with data: I want to select it as: Where 0=office, 1=home,2 = telemedice The time will always be a multiple of 5. How can i do that? I have tried this: [CODE] Result that i get is: My table script is: [CODE] My data script is: [CODE] How can i achieve the above mentioned required results? I have tried ...
Hello I create a temporary table variable type to not create the table [CODE] analyze it and you commit me. PD:The final result is different because in your insert there is more data, notice that by the ID it looks like it was. Demostration: https://dbfiddle.uk/?rdbms=sqlserver_2017&fiddle=b02953ffbc0d70fe1e863a43e63c5...
0
0
200
2019-09-19T17:44:31.623
warehouse_errors
dba.stackexchange.com
1,010,793
How can one identify what changes the SELinux file context of a file?
I'm noticing some files within a web directory with changed file contexts that deviates from system policy. There are developers that run [CODE] against at a higher part of the web directory and I'm wondering if that could be the cause, but my tests have shown git to respect the SELinux labelling rules. To be explicit,...
I ended up using auditd for this. File contexts are stored in the extended attributes of the file on the filesystem itself, thus to change a file context, a setxattr() syscall must be made. So I can audit all of the setxattr calls to files in a specific directory path, and to limit the noise a little more, I can only a...
1
0
789
2020-04-03T18:33:44.147
infrastructure
serverfault.com
448,006
How to Deploy an ASP.NET Web API- and Browser-based Application to a Production Environment
(Please forgive if this is posted in an incorrect forum. We didn’t know exactly where to post it.) We have an ASP.NET Web API single page application - a browser-based app running in IIS to serve up HTML5/CSS3/JavaScript, which talks to the ASP.NET Web API endpoint only to access a database and transfer JSON data. Ever...
I can understand your IT group wanting to break this out, but it seems they too also don't fully understand how this setup works. I won't go into that too much but essentially the only traffic you will be exchanging with the servers up to the [CODE] domain is standard HTTP traffic (assuming you are using the Web API fo...
2
0
2,787
2012-11-12T22:19:42.583
api_errors
serverfault.com
121,176
Why does seaborn plot my boxplots like this?
I'm doing a project on outlier detection, and as one of the methods for gaining an understanding of my dataset I'm using boxplots to visualize how the data points lie in regard to all the data points for that specific feature. However, when I use the seaborn module to plot it, it gives me a boxplot that doesn't make se...
Because the data points that are plotted as points are seen as outliers(generally defined as points that fall outside the 1.5 IQR). All other data points are not plotted since they are held inside the boxplot. If you change the length of the whiskers as a proportion of the IQR you simply change when data points are see...
0
0
803
2023-04-27T07:41:33.053
data_quality
datascience.stackexchange.com