question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
1,056,314
Why do some wildcard certificates have asterisk in subject field and some not?
I'm trying to parse some output from SSL client to check if a bunch of servers have valid certificates. I'm looking at the output of this command: [CODE] I notice that wildcard certificates issued from Let's Encrypt only list "CN = example.com" in "subject" field, while wildcard certificates issued from some other CA u...
Certificates are valid for the Subject included in the certificate, but when there are any Subject Alternative Name entries, it is valid for those. So limiting the [CODE] output to only the subject is an inconclusive test. A certificate with [CODE] is effectively equivalent to [CODE] and although the Subject can only l...
1
5
1,790
2021-03-08T15:34:15.323
infrastructure
serverfault.com
47,303
Ping returns an IPv6 address
I have 3 servers, a DC an exchange server and an apps server. If I ping the DC from any server or ping any server from the DC I get an IPv4 response, as you would expect, however if I ping exchange from apps, or the other way round the result I get is an IPv6 address. All the NICs have IPv6 unticked so I can't understa...
are these actually responding on ipv6 or are they resolving ipv6. If they are resolving to IPv6 they might be cached or have ipv6 addresses registered in DNS. I'd try (at the command prompt) running: [CODE] then seeing if you have the same problem
15
7
143,114
2009-07-28T22:48:09.823
infrastructure
serverfault.com
139,527
Can multiple Oracle databases share a single parameter file?
I'm a developer working on an application team that supports a system with one production database and 4 test databases (2 Dev, a SIT and UAT environment). The prod database exists on it's own Unix server and the 4 test databases all live on a different Unix server. For various reasons, over the years these 6 databases...
No, you would have to use separate parameter files/spfiles for each database. As you've pointed out, you'll need some settings to differ (locations of files, database name, etc.). In many environments, you'd want to adjust memory and other performance settings differently because the development environments often don'...
0
2
137
2016-05-25T17:21:39.003
database_errors
dba.stackexchange.com
975,900
Resizable disk partition inside Linux VM
I'm trying to increase the size of the disk inside my virtual machine Ubuntu. I used the following sequence of commands: [CODE] Now I see the following: parted [CODE] fdisk [CODE] I use Webmin to manage my server, and after rebooting it continues to say that: [CODE] I am new to these issues, help me understand, please,...
Making the partition larger is a necessary, but not sufficient, step in making the space available to the operating system. You also need to modify the metadata in the filesystem, which is the algorithm by which the raw space in the partition is made available to store files, directories, permissions, and so on. Given ...
0
0
142
2019-07-19T11:20:04.063
infrastructure
serverfault.com
937,118
Display custom error page
I have an nginx web server that runs a Laravel application. The web.config and .htacces pages are forbidden pages. When I access the page, I get a 403(nginx) error. Instead, I want a custom html page to be displayed. How can this be done achieved?
With a statement like the following (e.g. in the [CODE] block) where [CODE] refers to your error page you want to display. [CODE] https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page
-2
2
378
2018-10-25T07:32:53.440
api_errors
serverfault.com
27,455
Automation tool for website testing
What are the automation tools for testing a website, which does load test, broken link test, Spelling check test and Compatibility test
There are commercial tools such as: testng http://testng.org/doc/ ranorex https://www.ranorex.com/web-test-automation.html ghostinspector https://ghostinspector.com/ gurock testrail http://www.gurock.com/testrail/software-testing-tools.l.html There are open source tools, primarily Selenium based tools. The seleniumIDE ...
1
0
138
2017-05-25T13:20:10.993
data_quality
sqa.stackexchange.com
32,413
java.lang.NullPointerException occured while implementing driver initialization through inheritance
Base class: [CODE] Page Class: [CODE] Main Class [CODE]
You were getting [CODE] because you are declaring another [CODE] instance inside the [CODE] method and creating an instance of [CODE] object whose scope is limited to [CODE] method itself. Make the following corrections in the code: In Base class: [CODE] And you don't need another [CODE] declaration in [CODE] class.( y...
-1
0
1,677
2018-03-06T14:36:29.470
data_quality
sqa.stackexchange.com
877,580
Terraform: How to reflect dynamic resource changes in remote state?
I stumbled upon a general problem in Terraform. For example, I have a resource such as [CODE] which has a [CODE] which can be scaled up or down based on CloudWatch alarms. However, when running [CODE] the Terraform state file does not know about these changes and tries to set the capacity back to the initial value defi...
Yes this is how terraform works. It looks at its state file for what it knows should be the state of your infrastructure and then it queries the API for what it currently is and basically does a diff and tells you this is what changed and I'm going to change this to make it the state you told me. Of course you are usin...
2
4
872
2017-10-09T10:59:49.340
pipeline_ops
serverfault.com
580,547
htaccess to Allow Downloads from Specific User agent and HTTP Referrer
i want to allow some files to be downloaded if only the user agent or referrer match the following These are the user agents uTorrent Bittorrent Transmission This is the http referrer www.niresh12495.com I'm trying the following code but shows Error 500 [CODE] Where am i wrong ?
There are multiple problems. There are syntax errors in your regular expressions. You're using [CODE] like a shell wildcard character, but in regexes it has a different meaning: it only modifies another character, to mean "0 or more occurrences of". What you probably want is [CODE] , meaning "0 or more occurrence of an...
0
0
2,250
2014-03-07T16:14:44.790
api_errors
serverfault.com
839,358
ip_conntrack_max not found
I did reconfigure /etc/sysctl.conf net.ipv4.netfilter.ip_conntrack_max = 65536 net.nf_conntrack_max = 65536 net.netfilter.nf_conntrack_tcp_timeout_established = 600 net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 600 net.netfilter.nf_conntrack_tcp_timeout_time_wait = 90 net.ipv4.netfilter.ip_conntrack_tcp_tim...
Thanks for your polite and quick response. I have figured out the solution by installing nf_conntrack_ipv4 module
0
1
7,167
2017-03-20T08:47:28.363
infrastructure
serverfault.com
231,250
Why an incorrect JOIN using correlated sub-query is so much slower
I'm doing some fairly lightweight data massaging/cleaning and ran into a problem where one version of JOIN using a correlated sub-query (probably an erroneous one) ran much much slower than what I believe is the correct one. I'm not asking how to do the query (I believe I've now got that correct), but I'd like to know ...
The difference is in how the correlated subquery does the search. The fast subquery looks like this: [CODE] There is an index on [CODE] , so the database can look up the matching rows in that index, and then remember and return only the smallest [CODE] value. The slow subquery looks like this: [CODE] The two values are...
6
2
419
2019-03-04T16:22:16.127
warehouse_errors
dba.stackexchange.com
24,448
How to get Object count UFT
I am working on a web application automation, My application has a list item which is having 10 items under it. When i expand the list item for the second time It's showing count as 20 ( though it has 10 elements in UI). Same way if i open for the 3rd time it's showing as 30 and so on ...... I tried adding multiple com...
Not clear from your question, but it sounds like you don't track which objects you've already counted, so when the popup is reopened, you're counting the previously selected list elements for the second time.
1
1
739
2016-12-20T12:22:01.247
data_quality
sqa.stackexchange.com
1,111,643
Unable to Create a Project in Google Cloud
I am creating first project in Google Cloud. But it seems I can not proceed because of the following error: [CODE] Please see a screenshot of the page below: I tried checking the "Quotas Page" but no help. Please see below screenshots: My objective is to train a PyTorch network on GPU. That's it!
You need to select the quota you wish to increase (tick the box in front of the line), then press the "Edit quotas" button.
1
2
663
2022-09-27T07:10:36.813
infrastructure
serverfault.com
149,427
Memcache on ubuntu server lucid and ruby 1.9.1
I'm trying to set up a memcache server on the above setup. I'm getting the following error: [CODE] But memcache-client 1.8.3 is on the gem list. What's the problem?
As far as memcached goes I can help: [CODE] ( [CODE] or [CODE] I always forget that.) If that doesn't work -- of course replace [CODE] with your real memcached server -- on Ubuntu and Debian the simple [CODE] will make it available. Since I have absolutely no idea what this ruby message means this is just a wild guess....
2
1
519
2010-06-08T22:15:08.100
infrastructure
serverfault.com
68,973
Postfix and dovecot configuration problem
i faced a problem in configure Postfix and Dovecot as Mailing System for my VPS on Ubuntu 9.04 for Virtual Users. where i can't send or receive any mails. from the errors i got : Fatal: postmaster_address setting not given kindly find the below configurations: Postfix main.cf [CODE] Dovecot-Postfix Config [CODE]
I don't know which version of dovecot you use, but have you looked at http://blog.janus.cx/archives/237-dovecot-Fatal-postmaster_address-setting-not-given.html ? If that is not the problem, can you detail your dovecot version?
1
1
11,475
2009-09-26T13:40:36.693
infrastructure
serverfault.com
252,603
Disabled Apache Directory Indexing not applied recursively, is my config or understanding in error?
I'm running Apache(2) on Debian. I want to disable automatic indexing in the /var/www dir and any subdirectories thereof. In /etc/apache2/conf.d I put a file with the following contents: [CODE] I was under the impression that this directive would be applied recursively on any subdirs of /var/www, but accessing, say, /v...
Your settings are right, that should work like you expected. Maybe you are overriding [CODE] somewhere deeper in your directory tree or in another vHost for example.
3
2
13,944
2011-03-28T08:16:01.927
infrastructure
serverfault.com
617,717
ethernet switch makes network down
I have a D-Link 8-port Ethernet switch which was perfectly working. Since 2 days ago it makes the entire network down. The problem is when I disconnect the cables it runs again and after I connect "the last cable" it goes down again. No matter which cable is the last one, it becomes unstable and the network goes down. ...
Swap it out for a different working switch. If it is still broken then your network topology HAS changed.
-2
1
190
2014-08-04T09:39:40.490
infrastructure
serverfault.com
189,218
What is the best high-performance solution for server side
We are building the server side of some gaming platform where a great load of mobile devices (thousands, if not tens of thousands) connect to a server, send some small information each second (let's say about 500 byte) and receive some small response based on calculations (about 1Kb). The data has a RDBMS back end (sql...
If a full relational database isn't a necessity, some of the NoSQL solutions scale much bigger/easier/faster than standard relationsal databases. Whatever you do, unless you like maintaining hardware, I suggest a cloud architecture If you need full system control, look at Amazon EC2. If you do decide to move it in-hous...
0
0
172
2010-10-08T23:14:04.053
database_errors
serverfault.com
1,010,902
linking G Suite and Windows Domain Controller for user management
I manage a small business and use G Suite for user management of all google apps as well as authentication for as many third party services as possible (like slack, atlassin and so on). Then we also have an intranet with internally hosted services where I use a Windows Server Domain Controller with AD to manage users a...
There is Google Cloud Directory Sync (actually the first Google result for [CODE] !): With Google Cloud Directory Sync (GCDS), you can synchronize the data in your Google domain with your Microsoft® Active Directory® or LDAP server. Your Google users, groups, and shared contacts are synchronized to match the informatio...
0
2
821
2020-04-04T15:03:09.353
api_errors
serverfault.com
143,846
Increase a counter for each changed row
I'm using SQL Server 2008 Standard, which doesn't have a [CODE] feature. An external system reads data from several dedicated tables of the main database. External system keeps a copy of data and periodically checks for changes in the data and refreshes its copy. To make the sync efficient I want to transfer only rows ...
You can use a [CODE] column for this. The documentation states that Each database has a counter that is incremented for each insert or update operation that is performed on a table that contains a rowversion column within the database. The values are [CODE] and you should consider them as [CODE] rather than [CODE] as a...
8
5
3,596
2016-07-14T09:31:30.507
database_errors
dba.stackexchange.com
26,409
Saving Large Spark ML Pipeline to HDFS
I'm having trouble saving a large (relative to spark.rpc.message.maxSize) Spark ML pipeline to HDFS. Specifically, when I try to save the model to HDFS, it gives me an error related to spark's maximum message size: [CODE] Making the following assumptions about the problem area: It's not possible to decrease the size of...
You can do the following: A Pipeline can be made of other pipelines. Isn't that great? A Pipeline inherit from the Estimator class and by definition, a PipelineStage can be either an Estimator or a Transformer. This way, you can build smaller pipelines, save them separately and on the other software/class, join them ag...
5
2
1,730
2018-01-08T16:19:33.187
hadoop_errors
datascience.stackexchange.com
1,050,340
Avoid use of SSH agent
I use ProxyCommand with the intention of avoiding ssh agent forwarding . Today I noticed that Gnome was starting [CODE] , which I'm trying to avoid using so I disabled it. I'd like to not have the agent running so I can't accidentally start forwarding it if I'm ever careless with setup/config of the ssh client. I'm a c...
https://man.openbsd.org/ssh_config#IdentityAgent or [CODE] on your system IdentityAgent Specifies the UNIX-domain socket used to communicate with the authentication agent. ... Setting the socket name to none disables the use of an authentication agent. ....
0
0
603
2021-01-18T20:12:34.293
infrastructure
serverfault.com
934,901
MariaDB cluster fails to create root user on second node
When I try to create a two node MariaDB cluster in Docker on Windows, I get this error: ERROR 1396 (HY000) at line 8: Operation CREATE USER failed for 'root'@'%' For the first node I run this docker run --network maria_db --name maria-0 -e MYSQL_INITDB_SKIP_TZINFO=yes -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mariadb --wsrep-n...
I have done it myself as part of something I call stack, https://github.com/mslot/stack . Build the Maria database image. It uses a consul as discovery tool.
0
0
258
2018-10-10T18:44:09.853
database_errors
serverfault.com
11,605
SD card will not mount on Ubuntu 9.04
I've got a video camera that records directly to SD(HC) cards; I've also got an Ubuntu 9.04 laptop (netbook) with an SD reader. I have a 16GB SDHC class 6 card that I was using for data storage on the netbook; it mounts automatically and displays just fine. The 16GB card is formatted FAT32. The 16GB card mounts and dis...
Try checking dmesg after you plug in the card. It should give you some information, and at least tell you what device the card is. fdisk -l should also list partitions for you.
2
4
6,200
2009-05-23T15:19:36.133
infrastructure
serverfault.com
703,325
apache kerberos authentication tickets are not visible under klist
when i configured the apache authentication using the kerberos. it is working fine. It is asking the password and logging into the website. and it is creating a log information like this. /var/log/kerberos/krb5kdc.log [CODE] but when i hit [CODE] It is not listing any obtained tickets. why? everytime when i open the fi...
When [CODE] fails because you don't have a valid (in your case any) ticket, Apache fails back to [CODE] , which is on by default. This is the expected behavior with your configuration. Side notes Apache shouldn't be using the system keytab. Configure an application keytab for it. If you are using the Basic Auth mechani...
2
2
1,727
2015-07-03T10:32:28.833
api_errors
serverfault.com
221,991
What and where to index, rapid increasing table postgres
I work as a software engineer with python and django. Currently I am struggling with a design choice made before my time. We have a transaction table that logs all customer activity. Due to the success of the platform the data in the table is rapidly increasing. I have issues getting the query time to a manageable size...
Assuming you're after Customers and their Transactions where the Customer has no Type 14 or 30 Transactions ... [CODE] You'll want to consider indexes on the customer ID fields in both tables and, for the transactions table, perhaps the customer ID and transaction date. Other things: Don't use "Date" as a column name; ...
1
0
133
2018-11-07T10:38:37.447
database_errors
dba.stackexchange.com
330,245
SQL Server database table was partition but table property showing partitioned false
Here orders table was partitioned but at the order table property, it was not partitioned. What is the reason for that? Because when I am trying to switch partition 2 from the old table to another table it shows orders table is not partitioned. OrdersTable [CODE] Switch Partition [CODE]
PRIMARY KEY CLUSTERED ([OrderID] ASC)) ON [PRIMARY] [CODE] means that the clustered index is not partitioned. To partition it place it on a partition scheme rather than a filegroup. To enable partition switching all the indexes must be on compatible partition schemes.
0
2
81
2023-08-13T11:26:53.023
database_errors
dba.stackexchange.com
491,107
DNS Server with dnsmasq
I'm trying to set up dnsmasq as a dns server on a virtual machine running Debian. I can successfully run nslookup from another computer: [CODE] and the answer I get is: [CODE] Now when I do a lookup for a local address such as [CODE] and the answer I get is [CODE] (However on the actual dns server, running a traceroute...
I left BIND enabled! Sorted now.
2
0
3,875
2013-03-25T13:35:28.573
infrastructure
serverfault.com
767,296
Why does .vhdx take up much more space than the actual files - NTFS
We seem to have a number of NTFS drives like this where they consume much more space on the virtual disk than they do as files. Noticed the problem when Windows Server Backup was taking-up much more space than the files themselves. As am example, we have a small drive with mainly office documents: Size of actual files:...
Deleting data inside of the VM doesn't cause the size of the VHDX to decrease. Once the VHDX grows it will remain that size, or grow larger as the amount of data inside the VM increases. If you want to recover some of the disk space on the host that is being consumed by the VHDX you can compact the VHDX. Additionally, ...
2
2
6,168
2016-03-31T10:58:24.120
database_errors
serverfault.com
192,129
SQL Parallel Stored Procedure execution using CLR - Performance
We have a main analytics SP that calls 100 other sub SPs, all of which act upon the same set of data (Claims), check it for some business rules, and output discrepancies. The SPs need not all be run sequentially, they can be broken out into sections, which are dependent on previous sections (sequential), but independen...
Has anyone used CLR for parallelizing Stored Procedures in Critical OLTP Production workloads ? Parallelizing? Yes. For "critical OLTP Production" systems, not really. This is not to say that you can't do it, but you are entering rather dangerous territory here given that this goes beyond the typical caution of accessi...
3
9
3,906
2017-12-01T04:41:55.767
database_errors
dba.stackexchange.com
518,819
How important is patch management?
Problem I'm trying to sell the idea of organizational patch/update management and antivirus management to my superiors. Thus far, my proposition has been met with two responses: We haven't had any issues yet (I would add that we know of ) We just don't think it's that big of a risk. Question Are there any resources ava...
I can tell you that Patch Management is high on the list of every IT Auditor and which does get checked quite often. Not patching your systems leaves them vulnerable for the prying eyes of attackers. Patching is required to be done, but it should also be tested before being pushed to production. The only mandatory patc...
4
6
606
2013-06-26T17:55:28.080
infrastructure
serverfault.com
139,246
Upgrading Fedora on Amazon to 12 but getting libssl.so.* & libcrypto.so.* are missing
I am upgrading to Fedora 12 on a Amazon EC2 using help here: http://www.ioncannon.net/system-administration/894/fedora-12-bootable-root-ebs-on-ec2/ I managed to do a 64 bit instance OK, however facing some problems with a standard one. On the final bit of the install from 11 to 12 I am getting an error: [CODE] This is ...
This answer comes almost certainly too late to help the original poster, but perhaps it will help someone else. The problem is that that howto is plain wrong. To upgrade Fedora online using yum, follow Fedora's guide for doing so (if you like living dangerously). The process goes generally like this: [CODE] to update t...
1
1
1,013
2010-05-06T15:30:24.527
infrastructure
serverfault.com
1,015,512
Certificates for Session Hosts on RDS Deployment
I have a RDS Deployment in Windows Server 2019 compose of 3 servers: 1 host with the Connection Broker, RDS Gateway, RD Webclient and License server The other 2 servers are the session hosts. I hace configured the SSL certificate for the Gateway, Webclient and Conection Broker, but should I install the same certificate...
They need to have their own certificate, when I connect to the gateway everything is ok because the cert matches the public FQDN published for the GW server. But then when the RDGW redirects connection to the host after CAP and RAP, a warning pops up regarding a certificate issue and I can see that the RDSH certificate...
0
2
661
2020-05-04T01:47:06.013
pipeline_ops
serverfault.com
1,031,424
GKE kill pod when monitoring tool still show that we have memory
I'm testing GKE with their default monitoring charts. Cluster summary say each node (n2-custom-4-8192) have 6.36 GB Memory allocatable. In the node details page, I can see the peak "Used" is 4.19 when the pod get killed. I'm missing something? Or this is an issue with the chart?
In this case everything working as intended. I guess you missed information about [CODE] . [CODE] is the value of [CODE] minus [CODE] and [CODE] . In [CODE] documentation Node allocatable resources you can find information about resource allocation. Some of a node's resources are required to run the [CODE] and Kubernet...
1
0
665
2020-08-25T13:47:38.917
pipeline_ops
serverfault.com
958,592
duplicity scp (ssh) working with IP-address, NOT with domain?
I'd like to use duplicity to create an encrypted remote backup. SSH-keys are in place and work: [CODE] opens a terminal on the remote host. Login is password-less since I created these logins in order to connect via scripts. Also: [CODE] works like a charme! But: [CODE] fails. By the way, I have of course also used ssh...
The only explanation could be that resolved (cached) domain name and IP address you expect does not match. So when you are connecting by domain - you are getting to a different server. Please double check that ping domain gives you the server you expect, and this IP address is matching the one you know working. If you ...
0
0
877
2019-03-16T18:58:14.090
database_errors
serverfault.com
280,768
SQL Error [1242] [21000]: Subquery returns more than 1 row (AMATEUR)
Basically, everything works in the brackets by itself. The statement in the brackets bring back 4 different values all on different rows. How can I get around the fact that I need to apply the sql statement outside the brackets to the 4 values returned from the statements in the brackets when subqueries can only return...
You should be joining between each table on the fields you're trying to compare in the WHERE clause. Then your statement can be on top of that.
1
0
3,720
2020-12-02T19:32:47.503
warehouse_errors
dba.stackexchange.com
370,790
Selecting test cases to run by checking what's changed
Problem: If running all test cases takes too long, I manually specify a subset of tests to run while developing. But when I finally push to CI, it can happen that I broke some other tests or a functionality that is checked by them. So I underselected tests to run. Similarly, sometimes after making changes I don't know ...
You may be interested in incremental test runner like pytest-incremental . pytest-incremental analyses the import statements in your code and test code to derive a dependency graph, which it uses to reorder and deselect tests that are unlikely to fail given the changes made since the last test run. Note, I've never use...
1
1
1,323
2018-05-11T15:24:50.467
api_errors
softwareengineering.stackexchange.com
839,688
Ubuntu Server + Nginx Catch all domains with same DNS and display same php file in everyone
I have dozens of undeveloped domains and I want them to display the same .php file for all of them by just pointing them to the same DNS: ns1.example.com ns2.example.com Both NS are pointing to my VPS IP address but pages are not working. I want that any domain I configure with that DNS point to the VPS and display the...
If you are using your own name servers for the domains, then you need to create a zone for each domain in your name servers. In this zone, you create an A record for the domain name which points to the nginx server's IP address. Then in nginx, you create a [CODE] block, which has the [CODE] option in the [CODE] directi...
-1
2
224
2017-03-21T16:13:12.587
infrastructure
serverfault.com
227,309
proftpd not working?
i've done some updates on my server , after which ftp stopped working ! proftpd is running and listening on port 21 , port 21 is open in the firewall ! but still all i get from filezilla is : [CODE]
To check if proftpd is running [CODE] To find out what is bound to port 21 [CODE] The output you get from the above should help you narrow things down a bit. Edit The problem you are seeing is likely because you are starting it in standalone mode but inetd is still configured to manage the service. You need to disable ...
0
8
11,941
2011-01-26T19:37:11.353
infrastructure
serverfault.com
14,960
Why is SQL Server 2008R2 using more memory than the "max server memory" setting?
Possible Duplicate: Microsoft SQL Server 2008 Memory I've explicitly set the Maximum Memory value in SQL server 2008R2 to 13,000 MB, however when I check task manager I see it is using 14,071,448 KB (13,741 MB) I'm concerned because the server crashed recently due to a low memory condition where SQL server had allocate...
For SQL Server 2008 R2, "max memory" is for buffer pool only (basically data cache) Other memory is used for other things. This is changed in SQL Server 2012
2
10
2,334
2012-03-14T00:28:22.953
database_errors
dba.stackexchange.com
323,002
Lots of "key value" joins causes SQL Server query to exponentially slow down
I am migrating some data that's stored "key value" style, from an attributes table that uses an Object ID and an Attribute Type as a Clustered Index (I've also tried as a nonclustered index): [CODE] I added the attribute value to select values into because the attributes table in the database has lots of other data and...
I'm not sure if this will resolve your issue, but have you tried pivoting the #attrs dictionary and then joining on it? I find sometimes taking a different tack will at least get it to work. Something like the below. [CODE]
1
2
253
2023-02-03T11:38:56.643
database_errors
dba.stackexchange.com
403,035
Software design/architecture of a patient simulator with multiple mathematical models
I am working on a simulator which simulates patients, so specific processes can be validated on "virtual" patients, before testing on real patients. The simulator is essentially a mathematical model which consists of multiple ordinary differential equations(ODE), which can be calculated using numerical method. These ma...
I have run into this problem many times. When the fields used are expected to change like this the best plan is to stop pretending you have a class. What you have is a key value collection. Single inheritance only works when change grows in one dimension. That is, our base class had these 3 fields. The child needs thos...
0
4
127
2019-12-28T13:50:01.020
api_errors
softwareengineering.stackexchange.com
76,979
Should I just slog it out or discuss with my PM?
Having "completed" my task, I have recently been assigned by my PM to work on a maintenance project by another PM. In this other project, the client wants to add new features and I'm assigned to do a feature. I'm finding my job over my head for various reasons: code is difficult to understand/read as not well-documente...
Unfortunately more times than not, you're not in the business of writing elegant code, you're in the business of shipping a product. I'd definitely raise your concerns with your PM. Risk mitigation is a major part of project management and risks should be raised as they're encountered. If you don't raise them, then you...
6
14
703
2011-05-17T18:16:02.377
data_quality
softwareengineering.stackexchange.com
1,088,013
Block traffic to/from host from one side of a bridge
If I have two ethernet interface eth0 and eth1. They are bridged (br0). The host running the bridge can communicate with the network using any of eth0 or eth1 depending on wich are connected to the network. Now to the question: How can I prevent the host to communicate with the network through eth1? What I would like t...
I'm sorry but the question needs more explanation as it does not make sense at this time. By joining eth0 and eth1 to br0 you have created a 2 port ethernet switch. What you would like to accomplish: [CODE] would be possible if you delete eth1 from the br0 and allow packet forwarding in kernel for eth0 and eth1. iptabl...
2
0
2,375
2021-12-22T18:44:18.490
infrastructure
serverfault.com
143,702
Getting rows in left table only if not present in the right table
I need to get only those rows which dont have the corresponding entry in the right table advlabel , so I am doing a full left outer join : [CODE] So is the above query correct sublabel is a column from the right side table advlabel ? both tables have primarykey(seqid,wordindex)
Here is an example : [CODE] So in your case, it will most likely be : [CODE] You just have to use [CODE] and select any field (I suggest a [CODE] ) in the right table that is [CODE]
1
3
15,730
2016-07-13T09:27:00.203
warehouse_errors
dba.stackexchange.com
560,589
ping -a sometimes returns host name and sometimes returns FQDN. Why? Does this mean DNS is corrupt somehow?
I have a Windows machine called [CODE] for example and it uses DHCP to receive an IP address ( [CODE] for example) When I perform [CODE] sometimes I receive [CODE] as the hostname. Sometimes I receive the FQDN, for example [CODE] , which is the preferred and accurate way. Why do I receive the hostname sometimes, and th...
[CODE] is not a name resolution tool. It's an ICMP tool that has some DNS wonkery tacked on. When using [CODE] as a name resolution troubleshooting tool on a Windows machine you're going to be batted around between responses from NetBIOS, potentially WINS, the hosts file, resolver cache, and (if you're lucky) a DNS ser...
5
8
19,304
2013-12-11T05:50:08.237
data_quality
serverfault.com
742,314
Remove "?xx=yy" part of the querystring parameter from $args in nginx
Developer here, with close to zero *nix abilities. After googling for a few hours I ended up here hoping to find a solution to this problem: I have a simple site set up like this: [CODE] and I need nginx to forward routes like [CODE] to [CODE] (I have an angularJS app which listens for this kind of routes) The problem ...
You have [CODE] inserted in inappropriate places. As indicated by this document , the [CODE] (which is equivalent to [CODE] ) contains everything following the [CODE] separator. The [CODE] contains everything including the pathinfo. [CODE] is checking for the existence of filenames by concatenating the [CODE] with the ...
3
2
1,894
2015-12-11T00:49:47.910
infrastructure
serverfault.com
1,075,910
Apache server not responding. It just loads and then gives a timeout
I have an apache2 server and have been trying to make it accessible to all but am unable to do so. Here are the outputs: [CODE] earlier it was :::80, but I changed it after seeing another post on serverfualt.com [CODE] [CODE] When I try to access it from browser, it just keeps on oading and after some point gives [CODE...
You already checked that the service is running. Try to access your server from the server itself, in order to check if the service is accessible. A adequate command to check is telnet or curl, to be executed on the same machine the server is running: [CODE] If this is working well, next is to check if the firewall on ...
0
3
1,973
2021-08-28T18:52:43.700
infrastructure
serverfault.com
161,840
Advise on How To migrate a huge monolithic java application towards something service-oriented
I am confronted with the problem of migrating a huge monolithic java web application towards a more service oriented approach. The application has grown for years from what it was originally desinged for and is still growing. That means a lot of changed customer requriements where development under time pressure with f...
Thoroughly construct and define an API, or set of different APIs if needed, then implement by just wrapping requests to this webapp (and/or packages which are used by this webapp). This will help you to "multithread" following development. You'll be able both build new tools, which will use your new API, and, at the sa...
4
6
946
2012-08-22T09:40:32.593
api_errors
softwareengineering.stackexchange.com
93,342
error when using filehelpers on IIS; sometimes : [PolicyException: Required permissions cannot be acquired.]
FileHelpers.dll are referenced within 2 class libraryies (Dto and Services) in my solution My webapp (asp.net mvc) is on IIS7 (Full Trust) Windows 7 PRO 64 and I sometimes get this exception when starting my app from VS2008: (to get rid of it I delete the FileHelpers.dll from bin, run, close browser, rebuild the soluti...
Could it be the running order of the dependencies? Another option for your dev machine is to drop the dll into the GAC instead of having it local. That ensures that it runs as full trust. My best guess for the trust error since you're running in full trust is that something in one of the dlls or in code is dropped down...
0
0
900
2009-12-11T10:04:40.430
infrastructure
serverfault.com
88,037
Why am I getting this 403 Forbidden error?
SOLUTION Apache needs at least execute permissions on all the parent directories of the vhost dir. I'm trying to set up a Rails app running under Apache on CentOS 4.3. I'm using Phusion Passenger ( [CODE] ) I made sure the app deployment dir is owned by group Apache and the permissions are set to allow the group to rea...
The only reason I can think of is that the web server user doesn't have access to that directory (/home/sneedmoure/deployed_rails_apps/myapp/current/public). You could verify that by su-ing to the web server user account and trying to list the directory.
0
1
2,621
2009-11-25T02:53:39.830
pipeline_ops
serverfault.com
855,473
Postfix - proper header settings
I'd like to ask you about setting up a proper header using to sending emails from my server which is running on Ubuntu 14.04 and Postfix is installed. All the emails sent from my server are marked as Spam by Gmail (to other mail services, emails are delivered with no problems). I read all the tips on this forum and not...
No, there isn't any additional secret "non-SPAM" headers that Postfix doesn't add by default. In this answer I explain the meaning of your suggested headers and the tests that have failed for you; they are not the cause for SPAM classification. Everything else is covered in the canonical question: How to send emails an...
1
2
2,538
2017-06-13T09:03:26.260
infrastructure
serverfault.com
708,027
Nginx: [emerg] "location" directive is not allowed here in /etc/nginx/nginx.conf:14
Iam facing with this error, Starting nginx: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/nginx.conf:14 nginx: configuration file /etc/nginx/nginx.conf test failed This is my nginx.conf file: [CODE] What is wrong in this ?
[CODE] directive can be used inside [CODE] and [CODE] directives. You have it inside [CODE] directive, which is not allowed.
1
1
25,346
2015-07-23T18:22:06.173
infrastructure
serverfault.com
56,576
PostgreSQL user permissions
I have a PostgreSQL 9.3 database with the PostGIS extension backing a web application and GeoServer. I have created three users. A read only user for accessing the data in the reference data schema. A read/write user for accessing and updating data in the schema that holds the application state. A read/write/create use...
This should work (as superuser): [CODE] You probably missed one of these steps. You may need do adjust existing objects additionally since default privileges are only granted to new objects.
1
5
6,605
2014-01-10T21:39:33.460
database_errors
dba.stackexchange.com
179,590
Coldfusion:-Firefox can't establish a connection to the server at localhost
I installed Coldfusion 8 trial version on my system (XP Professional sp3). I created an Folder in the “C:/Coldfusion8/wwwroot” called “buildProject” containing an Index.cfm and some other .cfm files. But I am unable to access the Neither my project files or CFIDE/Administrator I tried the following URLS [CODE] Firefox ...
If you installed with the built in web server you would access your pages at [CODE] If you chose IIS as your web server it would be at [CODE] assuming you are running IIS on default port 80
1
1
1,591
2010-09-09T15:59:16.047
api_errors
serverfault.com
42,806
Launching Twitter through Appium on a real device results in an error
I've just started using Appium with Python and I'm running into trouble when trying to launch the Twitter app. I have tried to launch the play store by typing: [CODE] into a command prompt to get the appActivity and appPackage names. That works and the play store launches. [CODE] Here is my script: [CODE] Am I missing ...
I managed to fix it :) The launchable activity was [CODE] .
0
1
629
2020-03-04T13:12:36.340
data_quality
sqa.stackexchange.com
126,377
How to unmount a VHD in Windows 7. There is no unmount option
I mounted a VHD file in Windows 7 using the Disk Manager. Once mounted, there is no option to Unmount it. The only thing close to such an option that I can find is if I click the icon in the taskbar notification area that I use to remove USB devices... there's an option to eject the virtual hard disk. However, when I c...
After you attach the vhd, you can remove it by going into disk management and right clicking the left side box of the vhd drive. The left side box is the area that says the Disk name, disk type and size. If you right click white area of the drive, the delete command is grayed out. Let me know if that helps.
8
13
24,175
2010-03-25T19:45:42.133
infrastructure
serverfault.com
267,188
A very simple database system with JSON
If we need to store some data in a database , but without the need of advanced SQL features, can we use this scheme (written here in Javascript / node.js) : [CODE] See the longer version here as a gist (8 lines of code). 1) Does this DB practice have a name? Is it really so bad? Is it possible to use such a 10-lines-of...
Nothing is wrong with this for development . If it has a name, I suppose it would be a mock database. It is not uncommon to create a mock database that can emulate very basic functionality. You have the added advantage that you start from a scratch database each and everytime, thus you know that your program would work...
2
3
1,439
2014-12-23T10:03:07.077
database_errors
softwareengineering.stackexchange.com
395,809
I'm writing an application that needs to log error/ exception messages but should still continue execution if it not a fatal error
I'm writing an application that needs to log error/ exception messages but should still continue execution if the error is not a fatal error. I was thinking of making a method that returns a Task but calling this method as a fire and forget and not wait for response from the method. What is the recommendation, is this ...
Fire and forget is what we actually did. The less code you have in the application that is initiating the log message the less code that you have to debug there. All you actually need to do is write your messages to a logfile(s), and spunk can be configured to process those log(s). You may want to have a process that q...
0
1
160
2019-08-08T17:54:08.307
api_errors
softwareengineering.stackexchange.com
119,125
Is there a reason why a DBCC CHECKDB should be ran every 15 minutes
I'm helping a client with a vertical market web application written in ASP.NET. It uses SQL Server 2005 for the back end. The client is having performance issues with the application and the vendor support has not been very helpful to resolve the issue. So the client brought me to have a fresh set of eyes look at the p...
DBCC CHECKDB can indeed affect system performance - CPU, disk I/O and memory can all be affected by it. Here are some documents from Microsoft that outline how DBCC CHECKDB can affect the performance of your system: http://msdn.microsoft.com/en-us/library/aa937548(SQL.80).aspx http://msdn.microsoft.com/en-us/library/ms...
2
2
694
2010-03-04T11:23:57.593
database_errors
serverfault.com
327,548
Do I need a clustered index on a table with only few columns?
Table: [CODE] Table size: 5GB, 60 million rows. [CODE] is sequential. Remark : 95-98% of queries used are just the same following query with variations of AddressID range in the [CODE] clause: [CODE] Question : Will it be worth creating a clustered index on [CODE] ? Or will it be counterproductive, since at least 95% o...
To Erik's point, an index is worth having when you have to apply any kind of predicate against the table (e.g. [CODE] , [CODE] , [CODE] clauses), and can also be helpful when using [CODE] or [CODE] , regardless if you apply a predicate to the table. The reasoning being, is an index logically sorts the data its key is d...
0
4
90
2023-05-25T23:02:21.587
warehouse_errors
dba.stackexchange.com
317,454
nginx: how do I track down a random 500 from nginx (not my application). Potentially has something to do with load?
We recently had some 500's from nginx itself that somehow were not logged (we have screenshots, but nothing in the logs). That is weird in itself, because usually errors show up there. Regardless, I am wondering if there is something like a connection pool size that if maxed out would result in a 500? We have correlate...
We use a combination of log formats in nginx and lmon to catch things like this. An NGINX log format like: log_format main '$status:$request_time:$upstream_response_time:$pipe:$body_bytes_sent $connection $remote_addr $host $remote_user [$time_local] "$request" "$http_referer" "$http_user_agent" "$http_x_forwarded_for"...
9
6
22,269
2011-10-01T06:34:08.097
api_errors
serverfault.com
362,606
Httpd.conf does not work on apache
I've installed [CODE] and [CODE] . I want to test my [CODE] by adding following code: [CODE] +apache restart It should raise [CODE] error while entering website, but I can browse my [CODE] normally.
These two lines should deny all IPs: [CODE] However, this is not the whole story. You need to place them in the right place. In Ubuntu, you need usually to edit the file [CODE] which contains the defined vhosts. If you have a different configuration, you can post the complete configuration to get help.
1
2
313
2012-02-22T11:28:26.143
infrastructure
serverfault.com
361,121
Deduplicating data during batch processing
I constantly struggling to solve data duplication problems efficiently (storing data from any source to RDBMSes). My main concern is speeding up inserts/batch processing. Scenario: I read data from different sources, mainly in json format and I need to process them in way (input: nosql documents), where I only store di...
I usually approach this by bulk inserting to a staging table and then use a merge sql statement ( https://docs.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql ) to the production table. In the merge statement you can use all kinds of logic to insert or update rows in bulk. For deduping I use rownumber ( htt...
1
3
1,528
2017-11-22T19:51:52.193
database_errors
softwareengineering.stackexchange.com
859,656
Security with nginx
Intro Okay, I have quite the complicated issue (at least for me) on my soon to be new production network. I am looking for advice from more experienced users with linux, especially advice on secure ways to setup the netwerk I am about the describe. I am still a newbie with all of this and yet I am now responsible for s...
SELinux is worth the time investment IMHO, It's actually not as complex as it appears when you just want to nail down rights to folders. But let me throw a curveball... If it's mainly Wordpress, I would go with Litespeed Webserver with the Wordpress Cache plugin. You get blazing fast Wordpress through caching at the we...
2
2
412
2017-07-06T09:39:06.220
infrastructure
serverfault.com
243,271
Obtain a "list" of stored procedures which include INSERTs without naming the columns involved
As part of some enhancement, a new column has been added to over 750 tables. Now my problem is within almost 3000+ of stored procedures, some old INSERTs do not name columns. Is there any way I can get a "list" of all the stored procedures that are inserting without column names? I have tried: [CODE] But it's still mis...
There is a DMV called sys.dm_sql_referenced_entities . It returns a column [CODE] documented thus 1 = The object is used in an INSERT statement without a column list (object-level only). This seems to be what you're looking for. Here's an example of it in practice. First we'll create a simple one-column table [CODE] No...
2
7
1,476
2019-07-19T04:00:33.607
database_errors
dba.stackexchange.com
70,354
Binary Classification of a ship Dataset
What are the best options for a big dataset classification? I am thinking of 2 solutions- 1. Autoencoders 2. PCA (Principal Component Analysis) I think the first approach is better.Does it works for my problem?Or maybe someother solution is better? Thank you
None of the methods you described may classify a dataset alone whereas both can be used to transform your data into another domain in an unsupervised fashion. PCA projects your data onto n-orthogonal components. A trained encoder (first component of the autoencoder) can project your data onto a latent space. Both of th...
0
1
69
2020-03-28T07:48:56.957
data_quality
datascience.stackexchange.com
270,809
Why should I choose an Enterprise Storage Vendor?
I have been basically psyched out by some of the sales consultants from enterprise vendors such as EMC and NetApp. We have a new requirement to store around 30 TB of unstructured data, and around 100-200 GB of structured data (mostly MySQL). I am considering setting up couple of JBODs which are custom built running Fre...
You don't pick a storage vendor (enterprise or otherwise) to keep your data secure. For the most part, you can get the same RAID resilience with an EMC SAN as you can with direct-attached storage, and many times performance can be equal as well. The reason you should pick an "enterprise storage vendor" is if (and only ...
2
4
337
2011-05-18T03:27:02.803
database_errors
serverfault.com
894,471
Connect 3 L2 switches to router
I own: 3 switches (layer 2, managed, 24 ports) model Zyxel GS1920-24HP 1 router model Zyxel USG 310 My network is segmented into 10 VLANs (1, 2, 3, 4, 5, 6, 7, 8, 10, 11), the central router routes packets between different VLANs (passing from an SPI firewall), from VLANs to Internet and vice versa (passing from an SPI...
The difference of your two solutions seems to be whether either switch3 or the router is the central hub. The better solution is the one where less hops are required for the majority of your network traffic. So, assuming that your internal traffic is more than your WAN traffic, I would prefer solution1. Additionally, s...
0
0
244
2018-01-28T10:46:35.850
database_errors
serverfault.com
530,511
bundle install throwing syntax error when setting up Rails
I'm trying to deploy a rails app to Passenger. When running bundle: [CODE] I get this: [CODE] edit 1 This are lines 31-34 if the gem file: [CODE] This worked totally fine in my local environment, any idea why it would be giving me problems on my VPS? Edit 2 (I was developing on Ruby 2.0, my VPS is on 1.8) Here is the p...
First, you need to use ruby 1.8 syntax in your Gemfile: [CODE] Second, I'm not sure if recent versions of Passenger will support Ruby 1.8. Even if it does, you should upgrade to at least ruby-1.9.3.
1
3
1,829
2013-08-12T21:53:18.267
infrastructure
serverfault.com
280,863
designing a star schema
I am a newbie and would appreciate suggestions/material to research I have 3 types on information in a single table problems reasons fixes problem data is related to reasons by 1 to many reasons data is related to fixes by 1 to many I am thinking of creating a dimension table for dates as mentioned here How could I des...
A very basic star-schema for your situation might look like this: The T-SQL statements to create the dimension tables for this schema look like: [CODE] The fact table, which you seem to have left out of your question, and I've named [CODE] , looks like: [CODE] [CODE] references the dimension tables such that you are st...
1
2
382
2020-12-03T23:35:54.080
warehouse_errors
dba.stackexchange.com
214,641
Uncommenting lines in php.ini file on 000webhost
I recently asked a question about a php error after playing with the php.ini file I found that after commenting extension=php_soap.dll I got the same error as I did on the internet so I relized that line on 000webhost's php.ini file must be commented Other than hack into 000webhost and change the file I don't know how ...
If 000webhost haven't enabled/installed the php_soap extension, there's probably sod all you can do about it. Have you tried [CODE] to load the module at run-time? Don't try and hack in and change it on their server config, they'll be pissed off, and you'll be breaking the law. You might also try and find a pure PHP SO...
0
1
3,701
2010-12-20T22:45:55.317
infrastructure
serverfault.com
566,904
/var/tmp size increasing. MYD file eating memory
i don't know much about linux file's system. there is centos installed on my machine. suddenly my web stopped working. sql_2031_0.MYD file in /var/tmp/ getting large when something browses in website. it consumes memory and web stopped opening at 100% filling of tmp. i knew there were some deleted files which was takin...
I would guess that your website is backed by a MySQL database, which has one or more queries that are either so complex or so badly written that they are spooling through more data than the server can handle. Either that, or the queries are entirely reasonable and it's the server that has been woefully mis-specified/co...
2
2
3,270
2014-01-13T13:47:58.807
infrastructure
serverfault.com
375,231
Is it possible to apply DRY without increasing coupling?
Assume we have a software module A that implements a function F. Another module B implements the same function as F'. There are a number of ways to get rid of the duplicate code: Let A use F' from B. Let B use F from A. Put F into its own module C and let both A and B use it. All of these options generate additional de...
All of these options generate additional dependencies between modules. They apply the DRY principle at the cost of increasing coupling. Why yes they do. But they decrease coupling between lines. What you get is the power to change the coupling. Coupling comes in many forms. Extracting code increases indirection and abs...
15
16
1,286
2018-07-15T17:18:19.753
data_quality
softwareengineering.stackexchange.com
49,720
Philosophical question on redundancy
Suppose I implement a supervised learning version of LSTM similar to this . Namely, I have these univariate time series data: [CODE] So Y at time 1 is 101, Y at time 2 is 105, etc. The goal is to predict Y at time t+1 given Y at time t and t-1. That is, I can rearrange this data set to look like supervised learning: [C...
Repeating samples will probably only slow down the learning process. As long as the mini batches are small this will probably not have a big effect. However, if batches and the number of repetitions become large gradient based learning can run into difficulties. If you don't shuffle the batches, the repeated samples wi...
2
2
75
2019-04-22T15:56:36.893
data_quality
datascience.stackexchange.com
50,321
Appium server GUI returned error "No route found for /session" & Appium inspector "Failed to create session. The requested resource could not be found
Error occur while launching the application using appium server gui with following Environment : Appium server GUI[1.22.3] Appium inspector [2022.5.4] Capability set as follows : [CODE] Observed error on Appium server GUI : [CODE] Observed error on Appium Inspector : Failed to create session. The requested resource cou...
Working tweek : In, Appium inspector just add [CODE] under field Remote Path Check it will start working now
3
7
12,850
2022-07-01T09:54:41.500
data_quality
sqa.stackexchange.com
1,076,695
Managed platform update failing with Incorrect application version error
I have 6 Elastic Beanstalk Python 3.7 environments running the same application. Over the course of the weekend, 5 of them have successfully, automatically auto-updated to the latest platform update: Platform update from 64bit Amazon Linux 2 running Python 3.7 3.3.4 to 64bit Amazon Linux 2 running Python 3.7 3.3.5 Auto...
It appears that a parameter setting was incorrect. I had been trying to get the AutoUpdate of the platform version to go through, and that was failing silently, but when I tried to manually apply a different version of the platform I got the following message: Configuration validation exception: Invalid option value: '...
2
1
3,291
2021-09-05T15:58:04.047
pipeline_ops
serverfault.com
228,805
Proxy - Some general questions
Is it possible to accomplish the following scenario with a proxy server? We are having one internet facing server that we want to put behind a proxy for some reasons. We want everything to work as before. When they do a request all connections will be forward to the internal server which will send back the information ...
You can accomplish this with nginx if you just want to proxy requests to your internal server (using [CODE] on nginx), nginx is available at http://nginx.org If you wish you would also have some cacheing on top of those rules you with to accomplish have a look at Varnish (available at http://www.varnish-cache.org/ ). B...
0
0
73
2011-01-30T14:52:16.770
infrastructure
serverfault.com
637,663
Apache redirect user if they are using SSLv3
I'd like to redirect any users on our site if they try to use SSLv3 (if I just disable SSLv3 and a browser like IE6 comes along, I couldn't seem to properly redirect it to an http version of our site with an error message - so I'd like to allow SSLv3, but redirect if they are using it to an error message). I think I wa...
The solutions for this is: [CODE] This works for me :)
2
2
2,237
2014-10-16T22:38:31.653
infrastructure
serverfault.com
695,969
Wordpress Site Broken After Updating Theme
If I leave out needed details, please tell me. I'm running Nginx on Ubuntu 14.04 x64. I use php5-fpm. Currently I am battling with my PHP installation, and it's causing a couple problems now. See my other problem here: https://serverfault.com/questions/695592/wordpress-502-bad-gateway The problem: Site was working fine...
I downloaded the theme again from the developer, and I uploaded the theme files to my server, not overwriting existing files, and it fixed it. How my files vanished is truly a mystery.
-1
1
361
2015-06-02T02:25:19.687
infrastructure
serverfault.com
181,315
How to access NFS shares from Windows 7?
We have a group of users who run Windows and access files on a Linux box. Historically, they've been on XP and we run Samba on the Linux box. No problem. Now we're testing Windows 7 and finding interoperability to be a huge pain between the older version of Samba (the Linux box is running Ubuntu 8.04) and Windows 7. I'...
Under Services for NFS in windows features you need to check off client for NFS. I beleive this requires profesional or better (I don't have anything under enterprise available to verify)
1
1
1,999
2010-09-15T09:32:34.577
infrastructure
serverfault.com
578,410
Is this USN Rollback?
I have 6 Windows 2008 R2 Domain Controllers, all GCs, across multiple locations (2+2+2). On my main site I have a clone of one of our DCs done a few month ago, usually totally isolated from the network. This morning I made a mistake of accidentally linking this clone to my standard network. (Never right click on edit s...
Your verbiage could be a little more clear, but assuming you ran [CODE] on and against the actual DC1 (not its clone), those results indicate that you probably have not suffered a USN rollback. From the article you linked (emphasis added): One way to detect a USN rollback is to use the Windows Server version of Repadmi...
2
3
1,568
2014-02-26T11:57:12.913
database_errors
serverfault.com
66,349
Find out the DNS server for a DHCP connection in Linux
I know they're defined in [CODE] , but what if it's not there? And more specifically, how do you find the DNS server returned by DHCP? In GNOME you can use the NetworkManager applet to see the primary DNS for any connection, so how would you do the same from the command line?
Usually dhclient.leases file is located at [CODE] , type the following command: [CODE] OR [CODE] OR You can just use grep command to get DHCP server address, enter: [CODE] OR [CODE]
17
24
62,732
2009-09-17T17:26:32.193
infrastructure
serverfault.com
425,736
should I use noanonymous?
I have postfix and dovecot on a machine and I don't want anonymous sasl. This is my main.cf [CODE] (As you see I'm not using smtpd_sasl_security_options = noanonymous) In dovecot I don't have anonymous as auth_mechanisms as I don't want it: [CODE] Is there any point in having smtpd_sasl_security_options = noanonymous i...
No, they don't overlap. Postfix can use the SASL authentication mechanisms provided by Dovecot, but it doesn't use Dovecot's configuration. In Postfix you configure authentication for SMTP, in Dovecot you configure authentication for IMAP and/or POP3. And yes, you probably should use [CODE] .
0
1
3,490
2012-09-09T16:05:35.127
infrastructure
serverfault.com
1,048,500
Postfix: How to malware & spam scan outgoing SMTP SASL auth users?
Although I have found two answers to this, I can't work out how to actually implement them, and at least one of them doesn't actually answer the question. So if anyone has any experience to share I'd be very grateful. I have a server (Ubuntu 18.04) running Postfix. I'm already rate limiting SASL senders using postfwd, ...
The answer to this, somewhat embarrassingly, was that the SASL-auth users were being filtered. However, I hadn't specified a [CODE] for the smtpd listener in master.cf so I wasn't seeing evidence of that working in all the noise (SASL-auth senders are perhaps 1% of all the traffic in the log). So in penance, the follow...
0
0
735
2021-01-04T13:04:25.183
api_errors
serverfault.com
581,626
How do I compile ImageMagick with support for a patched version of Autotrace?
yum is not an option here I have downloaded, patched, configured, compiled, and installed autotrace. Files on the system with the autotrace name are: [CODE] I am trying to compile ImageMagick with the command: [CODE] but I still get the following in the output: [CODE] What am I missing? How do I tell configure what it ...
I had a similar issue (in Ubuntu) and got it working by installing [CODE] from source and configuring [CODE] only with the [CODE] flag (without [CODE] and [CODE] ) [CODE]
1
1
467
2014-03-12T18:12:59.493
infrastructure
serverfault.com
432,628
Mechanism behind user forwarding in ScriptAliasMatch
I am following this tutorial to setup gitolite and at some point the following ScriptAliasMatch is used: [CODE] And the target script starts with [CODE] So I am guessing this is used to forward the user name from apache to the suexec script (which indeed requires it). But I cannot see how this is done. The ScriptAliasM...
I found the solution following https://stackoverflow.com/questions/3817478/setting-up-git-server-on-windows-with-git-http-backend-exe and https://stackoverflow.com/questions/8021167/git-debian-apache-and-smart-http which was to add the [CODE] to my apache configuration and use [CODE] in my script which contains indeed ...
1
1
853
2012-09-27T16:19:29.050
api_errors
serverfault.com
1,066,972
500 internal error in nginx centos
i'm trying to add a captcha in my wordpress login page. i get 500 internal error in firefox console when inspecting the page. i also have this in my nginx error logs: [CODE] these are some parts of my configs: nginx site config: [CODE] wordpress config: [CODE] and security config: [CODE]
in wp-config.php try to add [CODE]
1
0
373
2021-06-17T06:46:30.993
api_errors
serverfault.com
77,923
I'm trying to build a ResNet 18 model for Cifar 10 dataset, but I'm not able to fit the data dimension
At avergae pooling after the ConvNet, the error is displayed as the dimensions cannot be negative because the shape the previous output layer is 1,1,512 and on this the maxpooling cannot be done. Is it something that i did wrong in the architecture design? [CODE]
The problem is that your ResNet-18 follows the architecture for ImageNet as outlined in the ResNet paper : However, spatial input dimensions of ImageNet are different from CIFAR10 (32x32) so the architecture does not match your input. Instead you can follow the author's description of their CIFAR10 architecture in sect...
0
1
842
2020-07-18T14:08:56.763
data_quality
datascience.stackexchange.com
320,399
CTE vs. temp table for batch deletes
Two-part question here. We have a large table (between 1-2 million rows) with very frequent DML operations on it. During low volume periods, we have an agent job to remove older rows to keep the tables size in check. it uses the CTE below, which is causing lots of blocking when it runs: [CODE] CTE Query Plan I re-wrote...
weird The performance issue in both queries has nothing to do with CTE vs. temp table. I see there is a timing difference, but hear me out a little bit. just delete In the straight delete, you spend the most time deleting from tables, not selecting from them. The waits in this query are all related to reading from and ...
2
4
1,125
2022-11-30T14:42:55.490
database_errors
dba.stackexchange.com
257,810
Understanding INSERT ... ON DUPLICATE KEY UPDATE deadlock scenario
I'm trying to understand a scenario where an [CODE] statement is causing deadlocks under high concurrency. The two tables in question: hosts: [CODE] networks_interfaces: [CODE] Lastest deadlock info: [CODE] The program starts a transaction, updates a host row, and uses that same transaction in a loop through all the ho...
It may not be possible to eliminate all deadlocks; so write code to check for deadlocks and replay the transaction that gets such an error. Many deadlocks can be avoided by speeding up the queries in question. Let's look at what is slowing down the IODKU you have presented. Having multiple unique indexes aggravates the...
3
0
4,600
2020-01-20T20:32:43.747
database_errors
dba.stackexchange.com
235,098
Apache MaxClients Issue
In my error logs I see: [CODE] My MaxClients setting is 150. However when I calculate what seems to be an optimal MaxClients setting I come up with: [CODE] So should I knock MaxClients way down to 12 because my calculations show that is all the RAM I have available or should I raise the limit as the error log suggests ...
Consider setting KeepAlive Off in your httpd.conf if you are running a prefork Apache. Rather than each child holding an inactive connection open Apache will close each connection after fulfilling it. This will reduce the overall connections and child processes needed to serve. It does add a bit of extra time because e...
5
5
1,778
2011-02-13T23:59:45.990
infrastructure
serverfault.com
279,109
Optimizing concurrent read performance
I wrote a program to test concurrent reads to a single database table. I'm expecting high amounts of read (no deletes, inserts, or updates) traffic in the future, using ad hoc queries, which is why I am testing up front to simulate this. Based on the logs below you can see that as the number of concurrent reads increas...
The query consumes 2000ms of CPU time. So your throughput is limited by your CPU cores. With 4 cores throughput is 2 queries per second. If you have 30 concurrent requests it will take 15 seconds for them to complete. And SQL Server’s scheduler is very “fair” so each query will take about 15sec as SQL Server task switc...
1
5
1,120
2020-11-03T10:06:18.733
bi_errors
dba.stackexchange.com
333,402
Migrated to dedicated MariaDB makes app slower
I'm new to dba stackexchange, hope you can help me :-) I do have a Hetzner root server (EX52-NVMe Intel Core i7-8700 Hexa Core 64 GB DDR4 2× 1024 GB NVMe SSD) and Docker on it. At first, it was enough to start playing, but since ~2 years, I started tow public Friendica ( https://friendi.ca/ ) instances, which are REALL...
You have multiple Dockers, each configured as if it has all 64GB available? [CODE] Each instance of MariaDB needs to have only a share of the total RAM allocation. (This addresses bnth I/O and RAM issues. CPU is rarely an issue with MariaDB.) started a MariaDB Instance for each app. That may or may not be beneficial. M...
0
0
35
2023-11-23T08:56:45.130
pipeline_ops
dba.stackexchange.com
340,724
Mocking introduces handling in production code
Assuming an IReader interface, an implementation of the IReader interface ReaderImplementation, and a class ReaderConsumer that consumes and processes data from the reader. [CODE] Implementation [CODE] Consumer: [CODE] For testing ReaderConsumer and the processing I use a mock of IReader. So ReaderConsumer becomes: [CO...
Instead of initializing the reader from your method, move this line [CODE] Into the default parameterless constructor. [CODE] There is no such thing as a "mock constructor", if your class has a dependency that it requires in order to work, then the constructor should either be provided that thing, or create it.
15
66
6,721
2017-01-23T09:58:54.790
api_errors
softwareengineering.stackexchange.com
523,518
IP setting for client computers accessing internet via a firewall/router
I am a bit of a noob, I have a sbs server and client computers connected to a switch that is then connected to a firewall/router. The sbs server creates private ip address for the client computers, my question is when the client computers connect to the internet what ip address is seen and should it be translated to a ...
Typically (but not always), the IP that is displayed to remote stations is the primary IP of your firewall. That is assuming it is a basically firewall/router appliance with a single IP doing NAT. So outside of your facility, if one of your stations browses the internet, it will appear to come from the WAN IP assigned ...
0
4
97
2013-07-15T22:13:58.307
infrastructure
serverfault.com
708,570
Spam mail forwarded through my server using valid user
I am getting "Undelivered Mail Returned to Sender" messages. The relevant mail messages are being forwarded using a valid user (mike@proactech.com) on my server (server1.nbicharts.com). I control that email address, so it is not me that's doing the forwarding. I have tested that my server is not an open relay so I need...
You've done some digging, and found that the original outbound email was sent through your server. That means that, unusually in such cases, you weren't joe-jobbed . Digging through the logs has shown that the user in question authenticated to send email from Orange Slovakia, which will most likely be a mobile connecti...
2
3
216
2015-07-26T08:40:45.383
infrastructure
serverfault.com
153,384
mariaDB not caching queries cached by mysql
I'm migrating my database (MySQL 5.1.73) to a new server, and I am trying to replace it with mariadb (5.5.5-10). Globally mariadb seems much faster, but there is a couple of queries that it refuses to cache where mysql does. This is a big problem because those queries are used LOTS (there are sort of on the home page s...
There are many different "caches"; not all of them have 'cache' in their name. The most important is [CODE] . An that one is important only if you are using [CODE] (which you should be) instead of MyISAM. Furthermore, was the Engine of individual tables changed during the upgrade? Check the table Engines and buffer_poo...
2
1
678
2016-10-26T14:54:27.893
database_errors
dba.stackexchange.com
252,521
How come I can't redirect TCP ports on this wireless router?
I am configuring a router to redirect TCP port 5900 (yes, this is for VNC) to a specific IP address on the network. Here is what I have: From a local computer on the same network, I can [CODE] to 192.168.1.64 (port 5900) just fine. However , when trying to [CODE] to the machine (port 5900) using its external IP address...
You're running into the hairpin NAT problem. The problem is the following: Your client opens a connection to [externalIP]:5900 Your gateway converts the target address to [InternalIP]:5900 Your server on [internalIP] sees a connection from [InternalIP-2] and sends an ACK to [InternalIP-2] Your client sees an ACK from [...
3
7
792
2011-03-28T02:32:52.613
infrastructure
serverfault.com
518,156
sql server 2008 express, how login as admin
I am pretty newbie on sqlserver. I just want to logon by Management Studio on a sqlserver just for backup a db. But it seems that I haven't enough permissions because I am guest. Anyone could explain me how to logon as admin ? I am local and domain admin and the sqlserver 2008 was been installed just for a wsus server....
When you install SQL Server, there was a screen where you select a user or group to be administrators on that SQL Server instance. You must log in with an account that was granted that permission. Being a local admin on a server does not give you permission to MS SQL Server unless that group is explicitly added.
1
4
146
2013-06-24T16:53:09.290
database_errors
serverfault.com