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
591,098
nginx says "unknown directive" even though module appears to be installed
So I ran into this problem. I was trying to use the [CODE] module to forward the correct remote address for an nginx install behind a load balancer. Using the directive: [CODE] Resulted in nginx: [emerg] unknown directive "set_real_ip_from " in /etc/nginx/conf.d/example.org.conf:6 Even though ngx_http_realip_module was...
Looking at the error message a little closer answered my question. The directive it could not identify was [CODE] not ]"set_real_ip_from"`. Apparently, white space matters in nginx configuration files . Turns out the configuration (which I must have pasted in from somewhere) had special non-breaking spaces in it. That'...
1
2
10,119
2014-04-24T14:23:41.497
infrastructure
serverfault.com
148,742
I installed DKIM and SPF. Do I need to install Domain Keys as well?
I have linux apache mysql and php server. My website uses the php mail() function and the server's postfix server to email other people. I successfully installed SPF and DKIM on my server to reduce the likelihood of my website's email-outs from ending up in people's spam boxes. In my research, I stumbled on Domain Keys...
DKIM is sufficient and includes Domain Keys as part of its specification. If you're running DKIM and signing outgoing mail, you're in a good position.
2
2
432
2010-06-06T21:52:36.060
database_errors
serverfault.com
877,397
Can't Connect To Wordpress on EC2 With Cloudfront and SSL
I have instantaudiobook.co registered at Name Cheap and pointing to AWS Route 53. I have CloudFront in front of my AWS server (just running WordPress). I created an SSL cert in AWS Certificate Manager and associated it with my domain via CloudFront. When I try to access my domain, I get various errors: Regular HTTP Req...
Your origin should be pointed to the host. In this example it looks like your origin is pointed to the cloudfront distribution as well. See sample
1
1
2,209
2017-10-07T21:15:54.277
api_errors
serverfault.com
563,246
php5-fpm maxes out all cores (nginx+php5fpm+wordpress)
We have a 16 gig linode running with 8 cpu cores and I'm trying to debug an issue that when I try a load test that the server starts to freak out around 250 requests a second on a pretty basic wordpress site. Im only hitting the front page of the site fyi. When I log in to the server and view the server stats on Htop I...
First, you really should ask yourself the question: Is 250 req / second something your site really should be able to handle? That is a LOT of requests for a page. Quite frankly, I think 250req/s maxing your CPU is normal given what you have -- a virtualized system. [CODE] You probably kept on raising this because you k...
3
1
1,228
2013-12-23T20:51:27.617
infrastructure
serverfault.com
946,190
How to tag an EC2 instance on creation
Deploying EC2 instances using AWSPowerShell, I find myself unable to apply tags on instance creation using the [CODE] parameter in [CODE] . I am generating tags dynamically and the best I've been able to come up with so far still requires that I deploy the instance(s) without tags and then apply [CODE] to the captured ...
This seems to be the best way to go about it: [CODE] Basically you create the [CODE] object, then you need to add the [CODE] you're targeting (see the below link to that type's doc page for a full list of valid ResourceType values). You can create the tags like this using the hashtable cast method, as it has a default ...
2
4
1,986
2018-12-20T21:31:04.433
infrastructure
serverfault.com
274,257
Virtual IP or Load balancing for a http/ mysql cluster
First of all i have to say i'm very very newbie as sysadmin. I'm trying to do someone else's work, and i have almost 0 experience in clustering / load balancing and related stuff. This is the situation. I have 4 phisical servers. The wanted configurations would be: 2 replicated Webservers, they are the public interface...
A few Questions do you want it to be load balanced cause if you have 4 machines 2apache and 2 mysql you get set up a fail over setup such that if one server goes down it will use the other server.And to achive this you can use HeartBeat http://www.linuxjournal.com/article/5862 IF you have a high load you maby have 3 no...
0
1
3,619
2011-05-26T22:29:23.960
database_errors
serverfault.com
27,408
How to use Jmeter JDBC Request for For Dynamically changing Xml elements?
According to my previous example How to get API response XML values in to variables in Jmeter tool for matching purpose with DB? first time run API shown in Jmeter -> Xapth tester this is defined in jmeter Pattern to test ${ID_1} - Value in DB Dynamically changing so it will fail the result in API - Response Assertion ...
You can use [CODE] instead of [CODE] and then check for XML tag, in your case Patterns to Test: [CODE]
3
1
450
2017-05-23T05:43:47.303
data_quality
sqa.stackexchange.com
318,217
Why aren't ordereded partition scans happening as often as I expected?
I have a table in postgres 13, declaratively range partitioned by ID. I am selecting a small number of rows in descending ID order and I was hoping it would reliably use ordered partition scans, where the partitions are searched in reverse order until the required number of rows are found. I know that in nearly every c...
Yes, it will only do an ordered partition scan when there is a suitable index that can be used, which has a usable subset matching the partition/sort key. In this case, an index on [CODE] would work, as after testing uuid for equality it allows id to be delivered in order. You could imagine cases where it might be wort...
0
1
222
2022-10-14T04:21:22.973
database_errors
dba.stackexchange.com
1,141,010
Network share with an untrusted domain
We have a network share on a Windows Server 2022 which hosts a number of both "production" files as well as development files. We have two domains - a prod domain (ex. "prod.local") and a dev domain ("dev.local"). Some folders have been set up with "Everyone" access and, while a trust relationship was present between t...
You were asked to configure a trust from two way to ONE way so that a that a share in PROD (and any other resource in PROD) is only accessible to PROD and NOT dev. Now dev users are unable to access the share in PROD. This is the expected behavior. Removing the two way trust is the correct thing to do. It should never ...
0
2
321
2023-08-08T05:49:01.107
infrastructure
serverfault.com
287,468
Algorithm to find the optimal trade route (negative cycle with lowest cost per edge in a digraph)
Given the following problem (a slightly simplified description of trading in the computer game Escape Velocity: Nova ( system map )): Given a set of (solar) systems. Each system is connected by hyperspace travel route to one or more other systems; each route connects two systems. Making a hyperspace jump has a cost in ...
This is not a traveling salesman problem if there is no prohibition on revisiting a system. The problem for Question 1 is canonically referred to as the minimum mean cycle problem , which has polynomial-time algorithms. This is a subroutine in some min-cost flow algorithms. Question 2 is sort of ill-defined because the...
6
4
1,269
2015-06-21T21:08:04.887
api_errors
softwareengineering.stackexchange.com
5,092
design pattern for extracting features
I am looking for a design pattern that is relevant to a module that extracts features. I want to define a certain number of features over my data points, and then according to the performance and the feature selection, I may want to remove some of them and add others, and also I may want to consider any subsets of them...
When I think about how to implement a certain ML or data mining process in an OOP (like Java), I usually go to see how smarter people than me designed their system. In this case, I'd see how Weka, RapidMiner, JAVA ML or others decided to tackle this problem. In your case of feature/attribute selection, i'm adding a lin...
1
2
166
2015-02-09T23:22:05.547
data_quality
datascience.stackexchange.com
370,059
Internet Explorer and IPv6
I can't seem to stop the IPv6 address being registered by our server. Does anyone know how? This is causing slow browsing issues when browsing to spiceworks server using Internet Explorer. The problem is due to Internet Explorer accessing spiceworks using an IPv6 address when it should be using a IPv4 address . I've fo...
solved the answer by typing the following command "netsh interface 6to4 set state disabled". Not sure on the ramifications but its solved the immediate problem.
0
1
1,219
2012-03-15T13:48:58.737
infrastructure
serverfault.com
405,401
Mod_Perl Install Error
I am installing software and one of the dependencies is mod_perl, when i run [CODE] I receive this error: ************* WARNING ************* Your Perl is configured to link against libgdbm, but libgdbm.so was not found. You could just symlink it to /usr/lib/libgdbm.so.2.0.0 EDIT: I am using RHEL 5 HELP me???
I ran into this issue awhile back, check to see if libgdbm is installed, if it is do the following to ensure its linked correctly: Just noticed you said you were using RHEL5 same system I was using so these should work perfectly for you [CODE] It may look similar to this: [CODE] If so you can run this command to symlin...
2
3
746
2012-07-06T14:34:04.397
infrastructure
serverfault.com
302,884
Cisco site-to-site VPN, Site B has voice but no data or internet access
I am working on my first Cisco project. Site A has a Cisco UC520 with working VoIP phone system configured. Site B has a Cisco 880 router. My goal is to connect each site with this VPN connection. At site B, I have a single VoIP phone with PoE (only FastEthernet0 and FastEthernet1 are PoE). The phone connects and regis...
It sounds like connectivity to the internet is ok, but DNS resolution is not. Is your [CODE] grabbing a valid DNS configuration? I don't see an dhcp client interface in the config for it to pull options configuration from. Does the client system have get valid DNS configuration after getting an IP lease? If it's not co...
0
1
936
2011-08-19T02:16:12.593
api_errors
serverfault.com
400,790
Sending huge amount of emails using SMTP
I have an issue. I have situation where I need to send around 3000 emails per request using SMTP. However, only 30-40 reaches destination. Do you have any idea what can be a problem and how to solve it. as server side script I am using PHP.
I created a mailer for my last job that sends a bit over 3,000 emails every Monday morning (in batches of 50 with a delay between batches depending on the size of the message). 3,000 is not a particularly large amount and there's no reason your system shouldn't be able to handle it with ease. I suspect that your real i...
-3
3
1,911
2012-06-21T02:43:25.527
infrastructure
serverfault.com
579,774
Uwsgi configuration - No module called site
I am trying to get uwsgi working in combination with nginx for a flask application. This is UWSGI ini file: [CODE] In the directory /var/www/test I have this file run.py [CODE] When I run it I get this error: [CODE] Can anyone tell me where I am going wrong please?
In my case, being new to uwsgi, I didn't understand where virtualenvs end up by default (under ~/.virtualkenvs directory). For my moztrap app, the appropriate configuration turned out to be: [CODE] I messed around with module and virtualenv, and this is the combination that worked for me. Note, the wsgi.py file contain...
2
1
5,138
2014-03-04T17:42:09.660
infrastructure
serverfault.com
175,794
What are the caveats of the event system built on Messenger rather than on classic .NET events?
MVVM Light and PRISM offer messenger to implement event system. the approximate interface looks like the following one: [CODE] Now this model seems beneficial comparing to classic .net events. It works well with Dependency Injection. Actions are stored as weak references so memory leaks are avioded and unsubscribe is n...
One of the native .NET event's attributes is that it's immutable, which makes their access locklessly thread-safe. I'm guessing the same can't be said of this implementation you're referring to, though it may handle the locks under the covers for you so at least you don't have to. Alternatively it may have it's own for...
2
2
476
2012-11-14T06:35:40.293
api_errors
softwareengineering.stackexchange.com
681,940
Use the DFSR Module on a Windows 2012 R2 Server Core
I have a standard Windows 2012 R2 box setup with server core. I have the file server roles installed along with DFSR. I want to use the powershell tools like [CODE] and other [CODE] to examine the health of my system. This tool is present on one of the systems I have setup with a full GUI. But it isn't clear to me what...
Although I don't have a resolution for you, I did spot a couple of people with the same problem and no resolution. See last comment on this thread and comment by 'regexaurus' here . It wouldn't surprise me if this is "by design" in the sense that there may be some sort of dependency that was difficult to break from a s...
4
1
11,214
2015-04-10T21:56:00.677
infrastructure
serverfault.com
896,448
Qemu TRIM and discard on a physical SSD device
I am running Windows 7 in a Qemu/KVM with a passed through GPU which I use for work-related stuff. I recently got fed up by it's unprecedented slowness due to it running off a mechanical drive, so I added an SSD to my box to 'give' to my Windows-KVM. I'm using the following qemu command-line options for the 'passed thr...
Research Qemu treats [CODE] and [CODE] the same as you can see in its source code: [CODE] (L 1102): [CODE] It also seems to support multiple of the Linux ioctls as described here for writing or discarding zeros at the block level: [CODE] (L 744): [CODE] [CODE] (L L1621): [CODE] [CODE] (L 1788): [CODE] So based on this,...
8
11
13,291
2018-02-09T04:17:13.573
infrastructure
serverfault.com
3,275
How do I use PSR.exe - all the time or when replicating a problem?
I'm going to be running a software testing session in the near future. It will be a whole day of hands-on testing by a group of users. I'm thinking of using Problem Steps Recording (psr.exe) but am not sure what the best method of using it is. Would I get the testers to fire it up at the start of the test session, and ...
Mark, welcome to SQA. In my experience, worrying is not a good use of time. You can figure out for yourself how much disk space psr.exe consumes per unit time: write down the current time, start psr.exe, work as you would if you were testing, stop psr.exe, write down the current time, and then divide the size of the im...
2
3
569
2012-06-13T21:08:16.597
data_quality
sqa.stackexchange.com
1,030,567
activemq url starts with scp://
I have inherited a system where the activemq address looks like this [CODE] ActiveMQ itself only seems to be configured for [CODE] . I can't find any reference to that protocol here: http://activemq.apache.org/activemq-connection-uris Has anybody seen this before?
SCP is not supported by default in ActiveMQ for the connection string (checked in 5.16.x, 5.15.x e 5.14.x), but there may be a few explanations for why that works: The code is manipulating the URI to ignore the protocol definition. You can confirm this behaviour by replacing [CODE] to anything else and checking if it s...
0
1
29
2020-08-18T10:26:29.290
infrastructure
serverfault.com
310,338
What kind of security enforces a tree of permissions on it's users?
I'm looking for a name or design pattern on an ACL Based permission system (at least, I think it has some features of ACL). The case An admin is allowed to create Managers. These managers will be granted several permissions based on what the admin submits when creating the manager (note that the permissions per manager...
This is typically recognized as a roles access control approach, apparently NIST has written quite a bit on it and titled it "RBAC" - Roles Based Access Control. Moreover, they have given a standard name to the particular flavor of roles access control you described: They call it "Hierarchal RBAC". Here 's a NIST PDF w...
2
3
280
2016-02-17T16:31:08.790
api_errors
softwareengineering.stackexchange.com
787,014
how should I divide a network into several smaller vlans on a extreme switch?
I get a C-network from my ISP, and there's a static route in ISP side pointing to one ipaddress(192.168.0.2) in my C-network so that this C-net can be reached from outside world. I use a Extreme X460 switch to connect to my ISP, it works fine when I define the C-net on my switch. Now I'm trying to break the C-net into ...
You're using /24 on one switch and /28 on the other. That means 192.168.0.1 thinks 192.168.0.17 is in the same subnet, it is not. You'll need to route between the networks.
0
1
199
2016-06-29T20:42:26.437
infrastructure
serverfault.com
1,121,888
Can't connect to mysql after managing systemctl (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock')
I needed to run a program (just a compiled c++ program, not script, i.e., like [CODE] ) on startup on CentOS 7. I followed this guide https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/ Rebooted via [CODE] command, checked if my program is running via [CODE] , it is. But now, I can't co...
The problem was, that [CODE] was not enabled in [CODE] , i.e. it was not on startup, and hence was not running. So I ran [CODE] , as far as remember (I have done it yesterday) And rebooted the server, now it run on startup. As for my program, I need to run on startup, I removed it from [CODE] , and going to use [CODE] ...
0
0
196
2023-02-03T15:29:45.437
database_errors
serverfault.com
120,601
Do transformers (e.g. BERT) have an unlimited input size?
There are various sources on the internet that claim that BERT has a fixed input size of 512 tokens (e.g. this , this , this , this ...). This magical number also appears in the BERT paper ( Devlin et al. 2019 ), the RoBERTa paper ( Liu et al. 2019 ) and the SpanBERT paper ( Joshi et al. 2020 ). The going wisdom has al...
You are right that a transformer can take in an arbitrary amount of tokens even with fixed parameters, excluding the positional embedding matrix, whose size directly grows with the maximum allowed input length. Apart from memory requirements (O(n²)), the problem transformers have regarding input length is that they don...
7
8
2,124
2023-03-31T09:47:49.863
data_quality
datascience.stackexchange.com
200,497
Tex and Absence of bugs
I have been reading a lot lately and I have come across articles in which people make the 'grand' assertions that there are no bugs in the Tex program by donald knuth. Is this in any way possible and if so how is this possible?
(even though it's been marked as duplicate, my answer is not ;) It is possible but no one can prove it, not for TeX size. http://ertos.nicta.com.au/research/l4.verified/ is an example of a verified piece of software. There are two things that anyone can do to say that their software is bug free (not saying that Don sai...
1
2
3,073
2013-06-05T00:38:10.340
api_errors
softwareengineering.stackexchange.com
956,105
Redirect archive.ubuntu.com to a mirror on DNS level
I rely a lot Docker images, and is impractical to change the /etc/apt/source.list for each of them, so I want to redirect [CODE] to a mirror on DNS level (I have my own dnsmasq/unbound on the network already). My setup is a Pi-Hole running on port 53 (pihole-FTL 4.0, with dnsmasq underlying) which points to an unbound ...
Looks like unbound itself can do it: [CODE] This yields: [CODE]
0
0
664
2019-02-28T07:51:23.670
data_quality
serverfault.com
1,023,614
Postfix send mail only to GMail, all other domains are deferred and not sended
My Postfix server is running on Debian Stretch. It is able to send emails to a GMail address without problems which are not considered as spam. At the DNS level I configured DKIM, SPF and DMARC and GMail informs me of the "Pass" value for all three. Messages are also encrypted by my domain name (Google does NOT put the...
"connection timed out" may be related to reputation issues. Try to enter your ip address here: http://multirbl.valli.org/ Then try with the sending domain name.
1
0
715
2020-07-01T13:58:16.320
infrastructure
serverfault.com
612,872
Apache authentification error
I've installed Apache 2.2 on my Debian-based distr (kernel 3.2.0-27) and apache2.2-common package with default configs. Trying to run simple script info.php I got the error found in /var/log/apache2/error.log: [CODE] I've searched for hours in the internet, but haven't found solution. Script info.php: [CODE] Config fil...
Sorry, guys, I've found out that I work not with original Apache but with its custom build in which work without authorization is disabled. Thanks for your comments.
0
1
3,699
2014-07-16T05:47:29.627
infrastructure
serverfault.com
330,987
namespaces and header guards with naming conflicts
C++ has namespaces to prevent collisions of things with the same name. Header guards serve a different purpose. They prevent [CODE] ing the same header twice. However, they can suffer from the same problem: what if two header guards from different files use the same popular name? What if there are two libraries that ha...
One method I use is to build a more complex macro name that has a practically zero chance of colliding with other names. This could be built from the following components: Project name Namespace name File name Random number or GUID Example: [CODE] Overkill? Yes. Easy to do? Yes. Has such an infinitesimally small chance...
3
2
2,531
2016-09-13T21:08:57.663
data_quality
softwareengineering.stackexchange.com
174,427
Mongoimport 'error connecting to db servers' for cluster
I'm unable to use mongoimport to load some documents to a cluster hosted by MongoDB. I followed this tutorial Load File with mongoimport and then used this command in Powershell to try and load my documents: [CODE] This gives the error: [CODE] I can connect to the above host using Mongo Shell so I don't understand wher...
Replacing [CODE] at the start with [CODE] (which is the replica set) and removing [CODE] made it work.
1
2
1,645
2017-05-24T12:27:06.363
database_errors
dba.stackexchange.com
789,823
Port won't open on new EC2/AWS instance
I created a new instance, added the same security groups as before in EC2, selected the same VPC as before (everything exactly the same afaik), but now I get: [CODE] when I try to connect to port [CODE] I have a simple [CODE] running on port [CODE] : [CODE] This: [CODE] outputs: [CODE] And: [CODE] [CODE] I'm totally at...
Your nodejs server is listening to the local loopback device 127.0.0.1 as you can see in the [CODE] output. [CODE] You need to change the nodejs server to listen to [CODE]
0
1
1,814
2016-07-14T13:55:55.703
infrastructure
serverfault.com
66,147
Descriptive Locking and Concurrency
I'm thinking about how one would go about designing a descriptive concurrency model for an OOP language that helps simplify concurrency scenarios for programmers (no easy task, concurrency is hard). I've read a bunch about software transactional memory, the actor model, immutability etc etc but they don't exactly seem ...
The problem with locking is that--by definition--it doesn't scale. Only one thread can lock a data structure at a time. A better solution to concurrency is generally the actor model, or some variant thereof. That is, share state by passing messages, not by locking. Erlang is an obvious example of that paradigm, but if ...
2
2
299
2011-04-07T22:22:19.807
database_errors
softwareengineering.stackexchange.com
906,617
ipfilter: is possible to redirect ssh on every zone?
I have a server for testing,I have installed on it OmniOS,because can emulate linux(lx branded zones) and Solaris(works perfect with kvm-qemu). I can run all on 192.168.0.0/24 network,but I prefer to do something like this: A server with 2 nics: bge0 and bge1,bge0 has 192.168.0.30 ip,and bge1 with 10.2.0.1. The vm(zone...
A workaround which work. In this case i can reach the dns server and can ssh to machines with ip 10.2.0.2 ,10.2.0.3, 10.2.0.4... [CODE]
1
0
222
2018-04-08T11:53:30.363
infrastructure
serverfault.com
268,647
Is there appreciable overhead from having a large proportion of empty table partitions in SQL Server?
I recently inherited a project using partitioning on date where a daily scheduled task implements a sliding window scheme with 30 days in the past and 60 future dates. In reality the data that is inserted uses [CODE] for the partitioning column so the 60 future partitions are always empty. Is this an issue that needs a...
Having a large number of partitions can cause a noticeable performance impact, so removing the relatively large number of empty ones in this case may provide an easy benefit. Setup [CODE] This sets up a situation somewhat similar to described in the question. The first 25 partitions have data and the remaining 66 are e...
11
15
1,272
2020-06-06T16:14:37.207
database_errors
dba.stackexchange.com
293,810
How to query JSONB field type
I have a jsonb field named 'queues' it contains the following: [CODE] I try the below query to search omni_queue_pid = 5 [CODE] but it returns SQL Error [22023]: ERROR: cannot extract elements from an object what I missed? need help thanks Don
You need to unnest the array: [CODE] It's unclear what result you exactly want, but an EXISTS condition might be more efficient: [CODE] Or using a jsonpath operator: [CODE]
0
1
91
2021-06-05T08:02:01.483
warehouse_errors
dba.stackexchange.com
416,796
Squid Proxy Not Allowing Web Access
I have just installed Squid on my Ubuntu 11.04 system by entering [CODE] I then edited /etc/squid/squid.conf and added [CODE] after [CODE] I then went into Firefox, chose Edit:Preferences:Network:Settings and made the following changes. [CODE] I then went to the terminal and entered [CODE] which resulted in [CODE] Now,...
Thank you to the people who answered my question. My problem was HTTP Proxy 10.0.2.2. I was apparently supposed to use the host IP address, 192.168.1.6 in my case. I changed 10.0.2.2 to 192.168.1.6 and that has fixed the problem.
0
0
3,924
2012-08-12T23:28:09.407
infrastructure
serverfault.com
1,057,602
Rewrite instead of redirect with Azure Web App/Linux
I'm trying to configure rewrite rules with [CODE] on an Azure Web App with Linux+Apache(+PHP), however I can only get redirects to work (but no rewrites). The source is structured as following: [CODE] My [CODE] is: [CODE] EDIT: The problem also persists with [CODE] My [CODE] is: [CODE] What I need, is to have an intern...
What I get is a HTTP 301 Redirect to [CODE] Yes, because [CODE] is a physical subdirectory so mod_dir will (by default) "fix" the URL by appending a trailing slash to the URL-path via a 301 external redirect. This is necessary for mod_dir to be able to serve the [CODE] (if you have one). If you changed your URLs to inc...
1
0
1,282
2021-03-19T12:44:01.850
infrastructure
serverfault.com
16,126
What does a performance engineer test on a day-to-day basis?
What are the usual responsibilities for a mid-level employee with 2 to 3 yrs of experience and familiar with a load runner tool?
Your daily routine will be completely dependent on your company and the responsibilities you have in your role. In simple terms below are some of the potential things in the day to day of a (performance) tester Attend agile ceremonies (standup, look ahead, etc) Evaluate previous performance reports Raise any issues and...
0
1
93
2015-12-15T08:31:38.867
data_quality
sqa.stackexchange.com
65,144
Python Pandas agg error
I am trying to generate descriptive statistics using agg function in Pandas. I am having trouble with one line with a lambda function. They work when I run them as separate lines of code, but when I put them as a single line I get errors. Any guidance is much appreciated. The following two lines of codes work when I ru...
If I am not mistaken the dataset used is the Boston home values dataset from http://lib.stat.cmu.edu/datasets/boston The given code works fine on google colab if the dataset used is correct. Please check the dataset before proceeding further. Here are the screenshots for the same. Step 1: Reading the dataset Step 2: Pr...
1
1
2,645
2019-12-19T17:03:14.447
data_quality
datascience.stackexchange.com
138,424
Linux - What do the common root folder names mean?
Possible Duplicate: Meaning of directories on Unix and Unix like systems I am rather new to linux, but I have installed a few different flavors. I noticed they all have similar folder names in the root directory [CODE] I googled around, but couldn't find anywhere that explained the purpose of each of these. I understan...
This is well defined by the File System Hierarchy Standard (FHS). Wikipedia Link FHS Website
2
5
3,407
2010-05-04T15:34:25.533
data_quality
serverfault.com
69,179
How to solve the gradient descent on a linear classification problem?
I have a problem which i have attached as an image. Problem is in image attached what I understand error function is given by: $e(y, \hat y)=0$ if $y \cdot a(x-b) \ge 1$ or $e(y, \hat y) = 1-y\cdot a\cdot (x-b)$ if $y a(x-b) . Gradient descent at current $t$ is (1,3). Gradient Descent( $E_{in}(a,b)$ ) as per definition...
It appears to me that your gradient calculation is off: $$ \frac{\partial E_{in}(a,b)}{\partial{b}} = \frac{1}{|D|} \sum_i \frac{\partial e(y_i,h_{a,b}(x_i))}{\partial b} $$ Where (with some lenient notation) : $$ \frac{\partial e(y_i,h_{a,b}(x_i))}{\partial b} = \frac{\partial e(y,s)}{\partial{s}} * \frac{\partial h_{...
4
1
413
2020-03-04T23:55:09.470
data_quality
datascience.stackexchange.com
514,185
How to create a redundent webserver using virtual machines
I would like to create a fail-over web server using one physical box and 2 virtual instances. What I am aiming for is the host OS monitors performance of a web server running in a virtual machine (ie virtualbox), and if it finds that the web server is non responsive, it will start the backup virtual instance of the sit...
You can't. Redundancy requires two physical machines. The best you can do with one physical machine is set up a virtual environment to simulate redundancy (for the purposes of testing and debugging your failover process). You should not rely on it as a production solution, because you still have the same single point o...
1
4
162
2013-06-07T17:30:53.540
database_errors
serverfault.com
911,226
apache2 how to host multiple ssl in single server
I'm trying to get 2 ssl server on one apache server, on is the main site and the other is the subdomain, Here are the .conf files: [CODE] for some reason, the main ssl ends up picking the ssl certificate from the sub domain, can anyone see where I did wrong?
I don't think it makes a difference, but maybe move the ServerName entries to the top of each VirtualHost section. Another option you might explore, if it fits your business need, would be to use an SSL certificate with Subject Alternative Names for each FQDN (sometimes referred to as a "Multi-Domain" certificate). The...
0
0
159
2018-05-08T09:31:02.007
api_errors
serverfault.com
47,453
Assigning keyword return value to variable not working in Robot Framework
I have the following Robot Framework keyword, designed to get the full path of the "Downloads" directory in Windows: [CODE] This is being assigned to a variable: [CODE] However, it seems that the proper value is not being assigned. The following: [CODE] logs [CODE] to the console. Why is this the case? Note that the as...
[CODE] you have to use set variable keyword to set a variable, [CODE]
0
2
2,590
2021-05-11T04:57:56.430
data_quality
sqa.stackexchange.com
232,788
Permission on Database
I have a login user called TestUser created at the server level that is assigned to a read only role, now I need to create a user for the TestUser login on MyDb [CODE] everything is good but when I script that Test user created, I don't see in any place the script that I'm giving select and denying insert, delete and u...
I have a login user called TestUser created at the server level that is assigned to a read only role There is no any [CODE] that can be called "read only role". Maybe your [CODE] >= [CODE] and you granted [CODE] to your login? If so, this server level permission can be seen this way: [CODE] Then you did some unnecessar...
2
0
386
2019-03-21T19:32:05.857
warehouse_errors
dba.stackexchange.com
318,069
Parse expressions on custom interpreter
I'm currently developing my own (sort of) programming language. It currently looks something like this: [CODE] And [CODE] And surprisingly, it works. (Both output [CODE] ) However, the problem is I can't do this: [CODE] I also can't do this: [CODE] My big problem is I can't use functions in of arguments and variable de...
You have to evaluate the inner function first, take its result and feed it into your outer function. In most interpreters, this is typically done by pushing the outer function (and its parentheses) onto a stack. You then evaluate the inner function, obtain the answer, pop the outer function, hand it the answer from the...
-1
1
176
2016-05-10T15:35:40.137
api_errors
softwareengineering.stackexchange.com
430,545
API for input stream operation read until
I want to create a stream class The input stream should read/parse a continuous range from left to right providing convenience methods. The implementation isn't a problem but choosing a consistence API. A basic example would be: [CODE] I also want to support an operation known as read until to read the input stream unt...
Slightly differently named API functions doing almost the same thing are a recipe for confusion and coding errors. You should have very good reasons for including all three versions. Since [CODE] can be used easily to construct the other two cases if necessary, it would be my personal choice, but depending on the plann...
1
2
200
2021-07-24T15:45:50.923
api_errors
softwareengineering.stackexchange.com
812,123
Connecting Ubuntu machines using a switch
For what I've looked up, this is not a duplicate. I need to connect a number of Ubuntu 16.04 machines together using a switch. I don't want them to be connected to the Internet, so I have no router or ISP info. I have set manual IPs but don't know what to put for dns and gateway. Also, I don't know the switch IP. [CODE...
You have to statically configure everything. On both servers (the relevant section for the interface): [CODE] If networkmanager is installed, you may want to remove that. There is no gateway IP. There is no DNS either. Specify hostnames for convenience in [CODE] Look at the output of [CODE] (you may need to install it)...
1
1
1,583
2016-10-30T04:11:55.373
data_quality
serverfault.com
144,357
Ubuntu 10.04: unable to login after fresh install
I,ve just installed a fresh copy of Ubunutu 10.04, downloaded a couple of days ago. The installation seemed to go fine. However I can't log in: the login screen just seems to reset and asks me for my password again. It's not an authentication / incorrect password issue. If I stick in a wrong password, I get "Authentica...
what session are you using? try to use GNOME or GNOME failsafe from the drop down menu at the bottom of the login screen it happens with me when I try to use sugar for my children also, I read some complaints about compiz compatibility with 10.04
2
2
7,362
2010-05-22T10:46:22.067
api_errors
serverfault.com
620,081
Weblogic security store on PostgreSQL
I am trying to port a Weblogic environment from Oracle to PostgreSQL. When I configure a domain with the security store on PostgreSQL, it fails to start. Weblogic 12c, Java 7, PostgreSQL 9.3.4 here on Mac OS X but same problem on Linux. The domain was created with the security store datasource as PostgreSQL (option ava...
Unfortunately the most useful part of the exception is hidden, because a batch was used, and the wrapped exception wasn't examined with [CODE] . It might not be easy to capture that, since you didn't write the code. I suggest examining PostgreSQL's server error log, probably after setting [CODE] , it'll show you more u...
0
1
609
2014-08-13T09:33:42.433
database_errors
serverfault.com
176,688
Exchange 2007 UCC SSL
I feel like I must be doing something quite stupid but I can't figure out what. I have a UCC cert for email1.domain.com, email2.domain.com, webmail.domain.com I have two CAS servers email1.domain.com and email2.domain.com they aren't using Microsoft NLB. I generated the CSR on email1.domain.com and all went well with i...
Your problem is that the second server, the one you didn't generate the csr on, does not have the private key for the cert and so can't use it. The easiest option is to export the cert from the first server as a pfx file, with the private key then import on the second.
0
0
226
2010-08-31T20:39:58.450
infrastructure
serverfault.com
132,980
Lighttpd getting 403 forbidden page
i have newly installed lighttpd in ubuntu 9.10 first it showed the detault page and i changed the permission of /var/www/ directory to 777 and now its saying 403 forbidden my php-cgi -v [CODE] php -v [CODE] and i have added these line in lighttpd.conf file [CODE] still getting same error....
Most probably the user you are running Lighttpd on doesn't have access to /var/
3
1
8,258
2010-04-16T06:04:59.723
api_errors
serverfault.com
866,752
downgrade cluster functional level
I would like to try to add a Server 2012 Hyper-V server to my current cluster, Currently 2 server 2016 Hyper-V servers clustered. I need to be able to add the third because I have to do some reconfiguration on the cluster, I have to be able to Live Migrate the couple of VM's to the new 2012 server take both 2016 server...
After doing some research, it looks like you can't downgrade cluster functional levels, nor can you live migrate instances from 2016 to 2012 anyways. I would suggest using server 2016 instead of a 2012 to get this job done. You'd have to put a lot of work into using the wrong tool for the job if you were to try to use ...
12
9
901
2017-08-03T18:07:45.317
infrastructure
serverfault.com
7,515
Query Running Differently on SQL 2005 vs SQL 2008R2
At my office, we have a query that is pretty ugly, but runs pretty well in production and in the development environment (20sec, and 4sec respectively). However in our testing environment it takes over 4hrs. SQL2005(+latest patches) is running in production and development. SQL2008R2 is running in testing. I took a loo...
I'd like you to rework the query. You have sargability issues, and are even using scalar function calls in there, which will be hurting the query too. You may want to make a FullName computed column on Table2 and put an index on that, making sure your index INCLUDEs FirstName and LastName. You should also add indexes t...
9
5
4,105
2011-11-02T15:42:23.587
database_errors
dba.stackexchange.com
6,304
When is a defect a duplicate?
We have a minor debate going on in our QA team, and I'm curious what others think. Two test cases fail with similar behavior, but different execution paths. Two defects are opened. Development team says the root cause of both defects is the same, thus one is a duplicate of the other. The debate is whether duplicate def...
In our organization, there's one defect (2nd one opened is a duplicate), but there are two test cases which fail.
6
9
7,439
2013-06-24T16:35:10.150
data_quality
sqa.stackexchange.com
406,970
Need help running CGI scripts on Mac OS X Apache
I'm trying to run a simple CGI perl script (see below) using Apache on my Macbook running OS X Lion and I'm having difficulty getting it to run even the simplest of scripts. I have turned on web sharing in settings, and I am positive that I have perl installed but I can't get it to run properly. I think it has somethin...
Put "first.txt" in the same directory. Can you see it? If so, you know that the issue has to do with being a CGI script, not some other issue. Also, try this: Put the file here: [CODE] [CODE] [CODE] Then try this URL: [CODE] If that doesn't work, reality check that Perl is where you think it is: [CODE]
0
2
8,815
2012-07-12T00:35:03.013
api_errors
serverfault.com
636,926
Are there any performace gains to using Varnish along php-fpm and nginx?
PHP-FPM 5.6 and Nginx 1.6.2 would no doubt give maximum performance, at-least speed wise. So, I would like to know if there are any pros/cons to adding varnish cache to gain probably few more speed. I have read many blogs that state nginx + varnish alone is a bit overkill, but I still haven't gotten a feedback that can...
It depends on how you use nginx. If you are not using any of the caching features of nginx, then you will definitely gain from Varnish. You have to decide what function each will have. This said, if you are looking to do "double-caching", I doubt this is a good idea. Perhaps you could tell us about how your stack is se...
0
1
426
2014-10-14T14:18:34.050
infrastructure
serverfault.com
206,664
SSH'ing to my server fails depending on what the target host is
I have a NAS which runs a custom linux distribution (it's a QNAP). [CODE] -> linux 2.6.30.6 #1 SMP ... i686 unknown I've set it up to do key and password-based multiple-user authentication, and that has worked for awhile. It's running OpenSSH_5.4p1, OpenSSL 0.9.8n 24 Mar 2010. I run a dyndns client on the host, so ther...
The fact that you see an authentication error rules out /etc/hosts.{allow,deny} firewall issue. What remains is are you connecting to the right server? Just check that when you are trying to connect using the dyndns address, you see the TCP connection on the server. Check also the ssh logs (/var/log/secur*/var/log/auth...
1
2
335
2010-11-28T04:07:50.187
api_errors
serverfault.com
555,357
force group assignment in chrooted sftp environment
I've got the following setting: There are several users /home/user1, /home/user2, and so on. Additionally there is a user /home/sftp-all. The folder /home/sftp-all/shared is mounted in every other users /home directory, e.g. /home/user1/shared. All users user1,user2,...,sftp-all are members of a group called 'sharegrou...
You should look into using ACL permissions on the filesystem. You can set a "default" permission, and you can have multiple groups, users, etc. https://help.ubuntu.com/community/FilePermissionsACLs See the answer to this other post for more info: https://superuser.com/questions/381416/forcing-group-and-permissions-for-...
1
0
2,036
2013-11-15T23:19:07.747
infrastructure
serverfault.com
370,148
Unit testing EventArgs - will there be timing issues?
I am writing a small game library. I capsule the logic in my model named [CODE] . My model [CODE] communicates only via events to it's clients (Is this a good thing to do!?). I wrote a simple unit test that tests some of that logic. It looks like this: [CODE] As you can see anytime I call a method of my model [CODE] I ...
As explained in the comments, events in .Net are synchronous, so with the system as shown in the question, there is no possibility of something going wrong. However, a more interesting question would be: how would you handle testing if the scenario was in fact asynchronous? This is a scenario that often pops up in game...
2
2
207
2018-04-29T15:47:47.033
api_errors
softwareengineering.stackexchange.com
661,747
Windows DNS stub zone with 2 NS listed inside, which one will be queried?
For a Windows DNS server stub zone, we have 2 NS servers listed there and the SOA information is correct. Both NS servers are "identical" (they sync the zones, so both are masters, so to speak, but obviously only one of them is "THE master" according to the SOA record). Now, for different versions of Windows server, wh...
"By default, DNS will perform round-robin rotation for all resource record types." https://technet.microsoft.com/en-us/library/dd197418(v=ws.10).aspx That document is specific to Windows Server 2003 and Windows Server 2008. I'm not aware of any change in the default behavior in 2012. The DNS server you use will ask for...
0
2
350
2015-01-23T04:46:43.773
infrastructure
serverfault.com
971,452
Dovecot LMTP rejecting mail from address with apostrophe
I have an OpenSMTPD / Dovecot installation on an OpenBSD server. I recently came across an issue where Dovecot LMTP would reject a message sent to a local user from an address which contains a single apostrophe (e.g. [CODE] ). Apparently apostrophe, as well as a number of other special characters are valid characters i...
Ignoring the debate on whether an LDA should require any remote address to match the spec, I do believe that the dovecot parser is very close to RFC5322 and what you are seeing is not dovecot LMTP rejecting an address with apostrophe. You can verify that dovecot is accepting your address by initiating an LMTP session y...
1
1
778
2019-06-14T14:03:46.670
infrastructure
serverfault.com
320,061
How do I increase the size of file descriptors on mac
I am getting an error from squid [CODE] What should i do in my mac to prevent this error?
I think you can use something similar to: [CODE] To make it persistent edit /etc/sysctl.conf like this [CODE] Later method needs reboot or reload via sysctl. You may also need to raise the ulimit settings for regular users: [CODE]
1
1
402
2011-10-10T08:00:47.803
infrastructure
serverfault.com
635,033
NTP offset between PDCe and DC (Both Hyper-V)
I'm facing an issue, here is the context: 1 PDCe (192.168.1.3 and Hyper-V virtualized) is set as NTP server, its source for time is VM IC Time Synchronization. 1 DC (Hyper-V virtualized) is retrieving NTP informations from PDC, mentioned above, configured with: w32tm /config /manualpeerlist:192.168.1.3 /syncfromflags:d...
Don't use a manual peer list if you're syncing from the domain hierarchy. Sync your PDCe from an external time source - not the Hyper-V host. Disable Hyper-V host time sync for your virtual DCs.
1
1
768
2014-10-10T10:44:44.783
infrastructure
serverfault.com
353,888
Mysql full text search cause high usage CPU
We built a news site. Every day we will input tens of thousands data from web api. In order to provide a precision search service, our table use MyISAM, build fulltext index (title, content, date). Our site now test in Godaddy VDS with 2GB RAM, 30GB space (No swap, because VDS do not allow to build swap). with [CODE] w...
A couple of strange things stand out here. Your system is 94.5% idle and yet MySQL is using 129% of your CPU. Something's very screwy there. MySQL is only using 3% of your available memory. I see a PHP process running there too so I guess this is a combined web and database box, but nonetheless I would expect you to gi...
1
4
2,247
2012-01-26T15:01:06.363
pipeline_ops
serverfault.com
994,499
Having difficulty connecting IIS to Tomcat
I'm attempting to set IIS up as a 'front end' for Tomcat but have run into a frustrating issue. I can't seem to get the Tomcat connector to recognize when it should be handling the appropriate requests. The isapi_redirect.dll seems to be getting initialized successfully according to the log file, but that's as far as i...
I seem to have figured this out after a lot of digging in the tomcat log files. Apparently step 6A in the tutorial I linked to above breaks Tomcat. I changed "Connector port=”${port.http}" to "Connector port=”8080" and it started working.
0
0
1,647
2019-12-05T18:43:01.547
infrastructure
serverfault.com
986,242
git pull on EC2 instance accessed by ssh works on some workstations and not others
I have two machines at work, a laptop and a desktop. Both are Ubuntu. Both have synced .ssh folders including the RSA keys. On both I can ssh to our EC2 instance succesfully and work within the EC2 instance via Terminal, run python, etc... Except git usage. On the tower, [CODE] on my repo works fine. On the laptop, [CO...
If you're pulling via SSH, and if you use [CODE] to manage your keys on either the laptop or tower (or both), this could be due to SSH agent forwarding : SSH agent forwarding can be used to make deploying to a server simple. It allows you to use your local SSH keys instead of leaving keys (without passphrases!) sitting...
0
1
1,224
2019-09-30T16:16:34.307
infrastructure
serverfault.com
195,388
Saving Multiple Sizes of Images
We have lots of user-generated images on our site. When users upload their images, we only store the original. However, depending on the page, we show different sizes of those images (small, medium, large, original). Is it necessary to store all sizes of these images or is there a better way? Currently, we are resizing...
Storing multiple copies of the image at the required sizes is probably your best bet, for a few reasons: Disk space is relatively cheap, As @Jalayn commented, downsizing images doesn't require much processing power, As @Dan Pichelman commented, serving smaller images when possible will save on bandwidth costs. Once a f...
5
6
1,244
2013-04-18T17:10:56.907
api_errors
softwareengineering.stackexchange.com
309,773
Samba login question
I have a samba server set up with a couple of shares that I would like to access using authentication. As an initial test I was able to set them up to allow guest access, then I disabled that, enabled the 'user' authentication, and added+enabled a user using smbpasswd. I am unable to connect to the share from my window...
I am unable to connect to the share from my windows machine, using the username@ipaddress for the username field Enter [CODE] in the username text box to see if it works.
0
0
168
2011-09-09T14:35:58.507
api_errors
serverfault.com
509,130
Needing to mass export all exchange boxes into individual PSTs on exchange 2010
I'm not really an exchange admin, and I've tried using the [CODE] commnand. Which errors out. It screams by and hits each mailbox and fails with the following. [CODE] I added the user (administrator) to the [CODE] If I do it wrong let me know. I've just been following guides like from this site here I really need to ge...
Tested, works in the Exchange Management Shell: [CODE] Use [CODE] to monitor the status of the process, it will take a while if the mailboxes are large. Use [CODE] to cleanup afterward (use [CODE] to cleanup while still in process).
0
4
851
2013-05-19T23:54:56.147
infrastructure
serverfault.com
470,528
Disconnected Citrix Users
We have a problem where a couple of users keep getting disconnected from their Citrix sessions and we cant understand why it only affects a few users where other users going through the same Web Interface to the same Citrix server don't get suddenly disconnected. It doesn't log them off either, when they go back into t...
Id probably start with the simplest things... network errors, check managed switch interfaces for errors if possible. maybe its terminal issues, switch a user to a different terminal that doesn't exhibit the issue? on the citrix web server look at windows event viewer, there should be a citrix specific log that could i...
-1
0
1,258
2013-01-18T21:22:47.637
infrastructure
serverfault.com
586,010
Server stopped working after update to php 5.5.0
I'm running nginx on ubuntu server 12.04 and I just updated to the most recent php package as follows http://phpave.com/upgrade-php-5-3-php-5-5-ubuntu-12-04-lts/#.Uzsho1RdURg . In the final part of the installation I was asked if I wanted to substitute the conf file since the one on the server was different from the or...
When you upgrade packages and the config file differs from the existing one and you decide to replace the config, the old one is saved to a file with [CODE] extension. If you do not replace the config, the new config from the package is saved with [CODE] extension. So, you can search for your old config file with [CODE...
1
0
382
2014-04-01T20:56:34.330
infrastructure
serverfault.com
77,051
MySQL Server 5.6 won't start on Windows
I'm having an issue getting MySQL Server 5.6 (community edition) running. It was working just fine until I restarted my server. Now it won't start at all. After doing a bit of research, I discovered there is a log file that it writes to, which has helped a little, but I'm not entirely sure how to fix the issue it's rep...
[closed] Reinstalled MySQL, removed old DB's. starting over. [closed]
3
2
1,179
2014-09-19T04:21:46.510
database_errors
dba.stackexchange.com
322,479
Postfix and .forward files: mail forwarding
First of all: I'm working on a rented server setup here (hosted at Ulyssis.org). I only have access to my user folder (/home/preparee) folder and an online application that allows me to manage my account, and set up mail aliases. Now, I want to be able to manage mail forwards for my domain, which is called preparee.be....
The behavior is described in http://www.postfix.org/local.8.html in the paragraph of Address Extension: [CODE] But to be honest: Ditch that provider. Letting you configure mail forwarding only by .forward files is technology of the last century.
0
1
4,020
2011-10-18T09:53:01.267
database_errors
serverfault.com
792,642
rsync: no matching host key type found. Their offer: ssh-dss
I get this error when using rsync: [CODE] How to fix it?
Here is the solution [CODE]
5
15
10,260
2016-07-29T08:16:49.410
infrastructure
serverfault.com
815,054
Reverse DNS Setup for an IP with multiple domains
I am trying to clarify my Reverse DNS PTR lookup for a domain. I have a server with a single IP addresses and multiple accounts, all sharing that IP address; My PTR is currently: [CODE] But the domain that the IP address reverses to is [CODE] , therefore should the PTR record on the account reference the primary return...
Mail servers will cross-check your SMTP server's advertised HELO hostname against the PTR record for the connecting IP address, and then check that the returned name has an address record matching the connecting IP address. If any of these checks fail, then your outgoing mail may be rejected or marked as spam. So, you ...
10
17
35,622
2016-11-15T16:16:53.210
data_quality
serverfault.com
311,820
Apache: mod-rewrite to look up missing images in another directory
I am new to Apache mod rewrite. What I would like to achieve is this. If an image (gif, jpg, png) is requested from an url and is not found there, it should automatically try to deliver this image from another directory.
Try this: [CODE] This will act on every image file request that these rules are applied to; to restrict to just a specific "original" directory, then adjust as needed: [CODE] And if you're putting this in [CODE] or changing the [CODE] , change accordingly.
1
5
4,027
2011-09-15T15:25:56.180
infrastructure
serverfault.com
643,999
Postfix not receiving external 550 5.1.1 bounce messages
I'm running Postfix 2.6.6 on CentOS 6 and, as the title of this post states, I'm having an issue with receiving bounced email messages from external sources. Here is an example: test 1: sent an email from gmail to an invalid email account on "my domain" and received a 550 5.1.1 message from our server. Working as expec...
As expected, the problematic line comes from [CODE] . Here your culprit [CODE] And this is the default master.cf content [CODE] This change has caused the bounce of failed delivery will be silently discarded. The solution : Replace that line to default one. I don't know who responsible of this change. Maybe someone who...
0
3
1,500
2014-11-13T05:41:19.483
infrastructure
serverfault.com
827,334
How to use a bash script as a user's shell in centOS 7?
I have user [CODE] and I want to provide a bash script as a login shell for this user. I was able to do it on centOS 6 easily by using the command [CODE] . But in centOS 7 I am unable to do it like this. I copied the script to [CODE] and added it to [CODE] . But still no luck. My script is the following: [CODE] I am ab...
If you need, to some script or program acts as user's login shell - you must append it's full path to [CODE] file. pam_shells module checks for user login shell in this file.
1
2
1,520
2017-01-19T16:04:35.737
infrastructure
serverfault.com
851,456
Nginx reverse proxy trailing slash
This question is already answered multiple times but in my case there is a twist. I am having a node app which is running on port 3000. I am using nginx to reverse proxy. Now the application only works if there is a slash in the end. So this works: [CODE] This does not: [CODE] Here is the configuration which I am using...
Your config looks good. Just add the rewrite at the end: [CODE] Also have modified regex which will handle slash before query params.
2
2
4,668
2017-05-22T04:53:58.473
infrastructure
serverfault.com
23,928
Novell Xen cloud
I'm trying to set up a mini-cloud with Novell Xen (SLES 10 SP2 so it's Xen 3.2.x). I have an iSCSI server in the back, using a Starwind 4.1 target. The problem is that I when I write to the iSCSI server with the first host, I can't see the file on the second host and visa versa. I also tried out Citrix XenServer and th...
I have not used Novell Xen or Starwind, I have worked with XenServer as well as the Xen packaged with both Debian and RHEL5. I did not try LVMoiSCSI when I tested XenServer as I didn't have an iSCSI host available at the time. That said from my understanding of iSCSI and LVM I can definitely hazard an educated guess wh...
0
4
761
2009-06-11T08:19:53.710
infrastructure
serverfault.com
270,511
Perl decode exim4 subject in Cyrillic
I've already looked at this article . Problem is like that; when I'm sending a letter through exim4 and subject is with Cyrillic letters I've got something like this in maillog: [CODE] instead of something normal. Is there any function that can decode that in Perl? $var1="\320\235..... PHP" printf("$var1") prints \320\...
[CODE] Dont know why, but that works
0
0
1,101
2011-05-17T11:51:04.337
infrastructure
serverfault.com
329,538
using two database in .net
I am trying to implement the use of two database in my application, sqlite and mysql. Currently i added references to both database connection library, and duplicate all first checking which database option the end user selected, and calling the appropriate function. Though i only implemented a test, i thought this wou...
This is a situation where things have gone wrong for a lot of developers over the time. In a perfect world it would just be to inject the chosen connection everywhere a connection is needed. But SQL isn't just SQL. There are so many minor differences between to different database providers. This means that you most oft...
0
3
109
2016-08-28T11:36:19.240
database_errors
softwareengineering.stackexchange.com
7,634
How do you manage dependencies between automated UI tests?
I am currently helping out with the TodoMVC project by adding automated tests. I have been 'exercising' my tests by trying them out on new submissions, such as this one recently . One problem I have discovered is that the test results often look worse than they actually are due to dependencies between tests. Because th...
Whenever possible, instead of managing dependencies, I work very hard to eliminate them, or at least reduce them. Another high priority goal for me is to eliminate any technology that is not directly involved in the feature I'm testing. Every additional element of technology offers possibilities for the tests to fail i...
2
2
2,372
2014-01-27T21:32:04.913
data_quality
sqa.stackexchange.com
224,312
Sharepoint 2007 Not updating Username, resulting in not sending email notifications
We are running Sharepoint 2007 here and I recently changed a number of details for one user's account in Active Directory (she changed her last name). I left her account name the same (lets say jsmith). So, she went from Jane Smith to Jane Jones, but her user account and login name is still jsmith. Everywhere in Active...
Go to your Central Administration on the local server, navigate to SSP (Shared Services Provider), and go to your "Users and Profiles". From there you can do a "Full Crawl" and that should fix your issue. Active Directory uses the username "firstinitallastname@domain.com" in order to send emails, when you changed it, S...
0
1
515
2011-01-19T18:02:42.777
infrastructure
serverfault.com
264,308
Ubuntu wired network disconnected
I am not able to establish a wired network connection between two computers on which I just installed Ubuntu 10.04. I am new to this environment. Unlike in the Windows environment, where it happens by just connecting them with a cable, Ubuntu keeps flashing a notification saying "Wired network disconnected". Am I missi...
Just assign some static IPs and you'll be on your way.
5
1
2,970
2011-04-28T13:27:41.850
infrastructure
serverfault.com
326,636
SQL Server alternatives to triggers for default-value logic
In SQL Server, we have a pattern of creating triggers to set default date and GUID on insert: [CODE] It's checking whether the inserted values are null or essentially zero value. It feels like there's a better way to accomplish this. Simply using a default value function for the field would allow the zero value to popu...
You can easily prevent those 0 values from getting inserted by using a check constraint, as exampled below. This will require any client who wants to write or update those values to either specify a valid value or to leave it blank and let the database use the defined defaults. [CODE] However, if you have a simplistic ...
0
3
224
2023-05-01T14:14:43.133
database_errors
dba.stackexchange.com
1,078,367
Obtain Let's Encrypt SSL Certificate for Internal Server on Internal DNS Server
I currently run an organization and we use a internal website that is hosted within our network that runs a Gitea Server so that we are able to access important documents without having to rely on a third-party service. I have already setup a DNS server using MaraDNS that routes to the proper IP address. We also run ad...
Let's Encrypt is intended for public facing services, and does not support entirely internal names not accessible to the global Internet. The first requirement for obtaining a LE certificate is that the hostname(s) for which you want a certificate must exist, or be able to be created, in the global DNS. Once that is sa...
0
2
1,700
2021-09-22T21:02:57.287
api_errors
serverfault.com
29,788
Increase Oracle buffer cache gets slower
So we're contemplating increasing our Oracle 11gR2 buffer cache. They said they tried it in the past and things appeared to get worse - so they undid the change. They, however, have no idea why things could have gotten worse. Its possible they were preemptive and just didn't give it time considering it was full server ...
In any system, if you make the part of the system that is not the bottleneck more efficient, there is the potential to make the system as a whole less efficient. If, for example, your system's bottleneck is the CPU, making I/O more efficient by increasing the size of the buffer cache may end up causing many more thread...
3
3
2,458
2012-12-04T16:08:06.460
database_errors
dba.stackexchange.com
6,979
Is SQL Server Backup single or multi-threaded?
If you perform a... [CODE] Will that perform a single or multi-threaded write? Our Server support company advised us that if we were to multi-thread our backups we would get better disk write performance. They advised us that SQL Backup is multi-threaded, but i think the above statement would be single-threaded. If we ...
Backup to multiple files is perhaps what your adviser is referring too. You'll often see improvements (although usually modest) if you're backing up to multiple files on a single disk/array, up to the point that you're saturating source and destination IO paths obviously. [CODE] Compression is the obvious addition if y...
4
5
5,056
2011-10-19T13:19:52.380
database_errors
dba.stackexchange.com
321,458
Reverse DNS with Private NS :: ns1.example.com & website example.com must be on same public IP?
Fairly noobish question, kind of ashamed to be asking ;-) At any rate, I'm using a commercial control panel (similar to Plesk) that I use to manage DNS. I have ns1.example.com setup with the registrar, and a secondary ns with zoneedit -- both point to a public ip in my /27. The name server lives behind a Cisco ASA; tra...
Reverse DNS is not required for anything but mail servers, due to spam checking there. However it does help identify what a IP is used for. Name servers and Web servers may live on different IP's. it seems your setup is fine.
0
1
420
2011-10-14T13:26:24.987
infrastructure
serverfault.com
411,994
How to use an SSH Gateway with Chef's Knife Bootstrap
I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based authentication on both the gateway and the destination node. [CODE] When running the command [CODE] where *.node is replaced with th...
Try "yourusername@gateway.node", it will prompt for the password Looking very briefly at the code in chef I did not see a way to pass in gateway password info. I would set up key-based access between your host and the gateway, anyway, only takes a minute and saves typing.
2
1
2,388
2012-07-27T22:17:23.197
api_errors
serverfault.com
324,422
Query Store plan does not include parameter list
I use the query store to get an overview of executed queries on our databases and to generate performance tests where I execute those queries in parallel on multiple hosts. My task is to test how many concurrent users we can sustain before database response times increase. In all databases that I looked at with query s...
ugly Using the optimize for unknown hint will remove the parameter list from the query plan XML in the same way that using local variables will. Note that this only applies to local variables in cached plans, and plans in query store. They will still show up in actual execution plans. [CODE] baffling [CODE] is consider...
1
3
294
2023-03-06T13:23:09.967
database_errors
dba.stackexchange.com
1,022,587
ubuntu - sssd - unable to login when system partition is full
we have many ubuntu servers that are joined to active directory using sssd. However, domain users are unable to login when the root partition reaches full capacity. After some research I found the following thread: https://bugzilla.redhat.com/show_bug.cgi?id=849538 which suggested to solve the issue (or rather avoid it...
In my environment /var is a separate filesystem. I think you can try separate /var instead of /var/lib/sss. Because when users login some logs writing in /var/log/. I think best practise not only separate /var, you must separate /usr, /tmp, /opt, / and /home. You can do this with LVM .
0
0
288
2020-06-23T11:26:28.147
infrastructure
serverfault.com
10,013
Error while using AzureFile storage with CockroachDB
I'm getting an error trying to run CockroachDB (v19.2.1) on AKS. I'm able to spin up cluster using the default storage class. However, when I attempt to specify AzureFile storage, I get errors. Storage class: [CODE] Helm command: [CODE] The first node starts up, but the second node crashes with the following: [CODE] Fu...
AzureFile didn't support that operation, so I tried AzureDisk and it worked. This is what I used: [CODE]
1
1
120
2019-12-03T17:32:06.137
pipeline_ops
devops.stackexchange.com
116,563
CPU Time Slower in SQL Server 2014 than in SQL Server 2008 R2
We’re upgrading a virtualized database server from an old [CODE] Standard (vmware) to a new shiny [CODE] server (hyper-v). We were doing some performance testing and to our surprise it seems that CPU times are worse in the new server system compared to the old, crackling one. These are the systems: Old Server: Runs in ...
Differences in CPU time in this scenario can be affected by many things and it could be just that SQL 2014 is a bit slower but scales better. However, I think more interestingly, the elapsed time is more than double the CPU time on the new server whereas it is less on the old. This could point to IO (as well as many ot...
1
0
587
2015-09-30T07:10:49.167
database_errors
dba.stackexchange.com
125,817
What is a value object in domain-driven design?
I have an entity and I've realised that there is a group of properties that work together. So, I moved them to a value object (together with their behavior) and now I have a reference from my entity to this value object. I've read " Domain Driven Design Quickly " (PDF) and I came across the following statement when exp...
To expand on the answer by ques, a value object does not have a surrogate identity such as a customer number, but the object itself is its own natural identity. Take an address for example. All addresses are unique, and the various components of an address (number, street name etc) make up the addresses identity. When ...
11
8
9,239
2011-12-18T12:21:27.400
api_errors
softwareengineering.stackexchange.com
539,091
Linux system configuration management: versioning and deployment
I'm looking for the best way (for my purposes and situation) to version system configuration files and manage deployment (ownership and mode) between just two machines (live and backup, both should be regarded as 'production'). I would like to be able to use this system to automatically (but selectively) duplicate and ...
Don't reinvent the wheel. The tools exist to do what you need. You may want to look at bcfg2 , especially since you seem to be particularly focused on configuration files. Think about services, too. Where does the central repository need to be in relation to the production server? Maybe an intermediate option could be ...
5
5
2,060
2013-09-15T18:57:56.713
data_quality
serverfault.com
359,642
Refactoring god-class leads to feature envy
I'm trying to refactor a 2.5KLOC god-class (with about 68 data members and 62 member functions) that performs a wide variety of text formatting and layout operations. After a careful analysis based on: Which member function reference which data members and, The logical formatting sub-tasks I've partitioned the data mem...
There are a few things that could be going on that have different solutions depending on the data that's being cross referenced and how its used in each class. You need a better Data object to pass to each new object that does contain all the information, if these are primitive values that other objects don't need to m...
1
2
551
2017-10-24T09:50:26.047
api_errors
softwareengineering.stackexchange.com