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
32,541
Maximum size of an indexing service catalog
Does anyone know what the maximum size on an indexing service index is on Windows 2008? We are having all sorts of problems with the index hanging and not processing new documents. I just deleted the catalog and and recreated it. I've added in 4 of the folders that should be indexes, but have 8 more to add. The index h...
It's been awhile since you posted this question. Can you drop in an update on the behavior / performance you're seeing? I hate to say it, but I'm going to guess that you're into "benchmark it yourself and see" territory. I'm not aware of any published "limits" on the Indexing Service. Indeed, the "Microsoft Index Serve...
1
1
5,966
2009-06-27T02:14:35.403
database_errors
serverfault.com
979,901
Minikube files do not persist after restart
I'm using [CODE] version 0.28.0 and files don't persist after a restart. I ran into the problem after noticing my database data disappears after a restart (even though the pods, [CODE] 's, and [CODE] 's say they've been up for days). I used [CODE] to create some files and noticed those disappear, too. FWIW - I ran [COD...
According to the official documentation [CODE] persists the data stored in the following host directories that can be mapped inside the particular PV via hostPath volume type: /data /var/lib/minikube /var/lib/docker Hence, in order to mount some custom host folder inside [CODE] VM, keeping the relevant data to retain a...
0
1
1,782
2019-08-20T00:12:15.250
infrastructure
serverfault.com
422,501
Too many conversion between layers
I'm developing a back-end application and I ran into the problem of too many conversions between layers. For a single type it is like this: So every time I update the model, I need to update six classes and several converters. How to tackle this complexity or maybe I shouldn't? EDIT: On the second thought, after some m...
This complexity may not be that big in general depending on the application and the complexity of your business case. If we presume that: Your entities are your persistence layer - understand hibernate/jooql or whatever. You business logic is in some domain objects, for example, agnostic of the persistence. On top, you...
7
5
430
2021-02-20T14:01:32.343
api_errors
softwareengineering.stackexchange.com
165,127
What is the best way to handle references in a .NET application
Recently at work we ran into a problem where we tagged/branched a project and had some compiling issues because of dll/project references that was pointing to the old folder structure. We created an 'external bin' folder for each of the projects and copied the referenced dll's to these folders. Is this the best way or ...
I would say that nuget is the best way to handle dependencies. nuget can manage versions AND automatically download the dependencies from your local nuget server. It's quite easy to create/configure a local server. Simply create a new empty ASP.NET project and install the [CODE] nuget package (using nuget ;). That also...
9
21
11,054
2012-09-17T10:31:20.053
api_errors
softwareengineering.stackexchange.com
171,066
Is it OK to push my code to GitHub while it is still in early development?
I have some projects that are in a very early development state. They are nowhere nearing completion but I do host them (as public repos) on GitHub because: I have multiple computers and I want access to my code everywhere I want a backup for my code I want it to be easy if someone wants to collaborate in some way I us...
Of course it is OK: it is hard to imagine that over 4,098,118 projects currently hosted on GitHub would all be 100% great and useful! You are not forcing anyone to use your code or even to look at it. If you host the project primarily for yourself, the quality of your code is of concern to you, and nobody else. You lis...
19
38
7,311
2012-10-23T18:56:15.073
database_errors
softwareengineering.stackexchange.com
1,039,476
Incorrect Folder Pemissions on CIFS Mount
(I'll start by acknowledging that there are lots of questions and answers out there about mount permissions and I have tried a lot of the proposed solutions without success.) I'm on Ubuntu 20.04 and I'm using CIFS to mount a directory from a Windows 10 machine. I'd like all directories and files to have write permissio...
Apparently the issue was on the Windows side. I logged in to my Windows box and verified again that both the NTFS permissions and the sharing permissions gave my user full access to the folder and its files/sub-directories. Even though everything looked correct, I decided to try running [CODE] from Git bash (which I ha...
0
0
1,214
2020-10-20T19:23:27.633
infrastructure
serverfault.com
408,137
Phantomjs fails on Amazon EC2 (Ubuntu 12.04 AMI)
I'm trying to run Phantomjs (most specifically Casperjs) on a Amazon EC2, using Ubuntu latest image (12.4). To be sure, I tried with two different builds. One compiled on my dev machine (Phantomjs 1.6.0) and another built in the EC2 itself (Phantomjs 1.6.1). Both with same results: The connection doesn't happen. Using ...
In that example, the Phantom script will throw "unable to access network" if the request doesn't return 'success'. In fact, a request to the URL in your example returns a 301 'moved permanently' and redirects back to yelp.com/search. I believe the example is outdated and Yelp have since updated their website UI. Url fo...
0
0
1,203
2012-07-16T13:40:09.280
infrastructure
serverfault.com
24,328
How to measure a relationship between interests of topics between two users?
I was trying to find a way to calculate the relationship between two Users and their interests. A user can have multiples interests, and an interest can be duplicated in a user's interests. Example: [CODE] Comparing [CODE] & [CODE] : They have in common 2 interests, but [CODE] seems to be a very fan of golf . Comparing...
You can create a sparse user-interest matrix, impute missing values with some reasonable value, and apply a similarity function. E.g., center all non-missing values on 0 and mutate each value to adjust for the user's and interest's mean. Then impute 0s for all missing data, and use a traditional similarity function lik...
0
1
46
2017-11-03T17:11:27.323
data_quality
datascience.stackexchange.com
16,948
Multi-class text classification with LSTM in Keras
I'm quite new to Deep Learning and trying to solve the problem of Multi-Class, multi-label text classification using Deep Learning. https://github.com/fchollet/keras/blob/master/examples/imdb_cnn_lstm.py . I've another dataset. int form of a csv file ("text","classifier"), on which i want to perform text classification...
After I read the source code , I find out that [CODE] doesn't actually load the plain text data and convert them into vector, it just loads the vector which has been converted before. As for your problem, I assume you want to convert your [CODE] into vector. Maybe you can try sklearn.feature_extraction.text.CountVector...
3
3
6,303
2017-02-14T03:24:29.140
data_quality
datascience.stackexchange.com
726,234
Wiping failed drives with sensitive business information
I have some failed drives that are about to be written off and sent for recycling. Some were members of a RAID 5 array, some I'm not too concerned about wiping information on them, but some of them were backup drives that failed. Most of them seem to have failed due to power surges, stuck heads, or fried controllers, s...
In the case you can not use "wipe" linux command (most used for this scenarios), nor other software tools (as far as drives are not working well), I just can say the same as Peter Gutmann's said: "The only way to sanitize a magnetic/solid drive is to expose it at 2500º K" So, prepare a good torche (first choice) or a c...
0
0
40
2015-10-02T09:56:01.957
database_errors
serverfault.com
527,440
Too many TCP connections causes disconnections
I have a game server which runs with TCP connections. Server disconnects users randomly. I think its related with TCP settings of server. In local development environment written code can handle 8000+ concurrent users without any disconnection or error (at localhost). But in real deployed Centos 5 64bit Server, server ...
Do you increase the FD limit? You can obtain some info here http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
6
1
35,113
2013-07-30T21:37:15.370
infrastructure
serverfault.com
471,597
What is a single drive RAID 0 array?
My understanding of RAID 0 is that the data is split and striped across all of the drives in the array. If there is only one drive in the array, then what is the point of a single drive RAID 0 array and how does it work? From these ceph benchmarks it appears there is a tangible performance difference as compared to JBO...
In the case of this implementation (the LSI SAS2208 controller), JBOD does not use on-board cache, single disk RAID0 uses on-board write-back cache. The ceph benchmark explains it in the test setup . The performance increase comes from caching not striping. Most RAID controllers allow you to setup single disk RAID0 or ...
8
16
42,714
2013-01-23T04:06:47.323
infrastructure
serverfault.com
410,403
Nagios Hardening
I've been trying to look into hardening Nagios (if there is such a thing...), but haven't found anything too definitive on what to do or guidance on what to even look at. I'm wary to keep Nagios running until I know more about its potential security vulnerabilities and how to best remove those vulnerabilities, or at le...
I found some tips in the Nagios documentation that deal specifically with security: Use a Dedicated Monitoring Box. Don't Run Nagios As Root. Lock Down The Check Result Directory. Lock Down The External Command File. Require Authentication In The CGIs. Implement Enhanced CGI Security Measures. Use Full Paths In Command...
4
4
1,743
2012-07-23T20:39:13.230
infrastructure
serverfault.com
568,166
How to recover an mdadm array on Synology NAS with drive in "E" state?
Synology has a customized version the md driver and mdadm toolsets that adds a 'DriveError' flag to the rdev->flags structure in the kernel. Net effect - if you are unfortunate enough to get a array failure (first drive), combined with an error on a second drive - the array gets into the state of not letting you repair...
Just an addition to the solution that I found after I experienced the same issue. I followed dSebastien 's blog post on how to re-create the array: I found that that method of recreating the array worked better than this above method. However after re-creating the array, the volume was still not showing on the web inte...
14
3
36,870
2014-01-18T03:01:49.630
infrastructure
serverfault.com
177,353
My Windows 7 PC receives a double gateway from the DHCP server. Why?
I have a windows 7 pc in a windows 2003 server environment. every now and then (about twice a day), the gateway setting is changed to 0.0.0.0 and 192.168.1.1. Now, the 192.168.1.1 setting is correct, but the 0.0.0.0 is not correct. In fact, it blocks all network traffic. There are no other computers showing this behavi...
I would indeed look for a rogue DHCP server dishing out incorrect information. DHCP should not ever issue 0.0.0.0 as a default gateway, but it is possible to implement this. It might also be a problem with one of the other virtual interfaces. Windows 7 adds several of new virtual interfaces for features like the 4to6 b...
1
2
11,294
2010-09-02T14:20:25.260
infrastructure
serverfault.com
632,025
Postfix conditionally forward email
How do you set up automatic email forwarding based on conditions like: forward if from emailaccount@domain.tld forward if from domain is domain.tld forward if subject contains word 'Urgent' and so. I'm only able to forward (redirect) all emails from one mailbox to certain email address.
You'll need procmail and a procmail recipe similar to this: [CODE] Note that you will probably have to play around with the From regex. That will match some, but by no means all From headers for that email address. The other conditions you mentioned: [CODE] I highly recommend you make use of the procmail log file (loca...
-1
1
707
2014-09-29T09:58:09.873
infrastructure
serverfault.com
671,888
Linux - show dropped packets form firewall
I am trying to set up a sip trunk and so far everything has gone well. The only issue I face is that the call does is not received when the iptables service is running. By stopping the service everything works as expected. What I need is to ideally start the itbales and monitor the packets that are being dropped. Ideal...
I used chain which logs everything with limits so it won't spam your syslog [CODE] Entire firewall script is located here
1
4
2,780
2015-02-27T14:02:19.287
infrastructure
serverfault.com
388,906
Too Many ESTABLISHED connection from a single IP address in Apache
[CODE] shows too many [CODE] connection from single IP address. Around 300 of them and it is not an attack and user is using a 2G connection to access Apache. This is the case with other 2G connections also. As a result of this Apache is running out of children. Earlier it was showing too many [CODE] and after enabling...
tcp_tw_reuse and tcp_tw-recycle and tcp-fin_timeout to 30 The fin timeout helps here but reuse and reccyle? Why? keepalive timeout 10 This is just silly. Even with dialup, this should be 3 or less. timeout 300 Do you know what this does? This might be the default but it is way too high again. You might try capturing so...
2
2
6,912
2012-05-14T14:24:35.503
infrastructure
serverfault.com
589,607
Automatically reconfigure WinRM HTTPS listener with new certificate?
I am looking to enable WinRM HTTPS listeners on all of our servers for secure communication when using CredSSP between servers to get around the double-hop issue . Setting this up is fine , we have CN-appropriate certificates from an internal CA so the initial setup of the listeners is fine and works great. The only th...
I have recently put together a short script in order to do the same thing you are trying to accomplish, here are the relevant parts. Be aware that you will get an error at the end as the Invoke-Command is going to reset the WinRM service while you are waiting for the result of the Restart-Service command... [CODE] This...
7
6
29,280
2014-04-17T02:34:53.933
infrastructure
serverfault.com
495,557
How to reset Services.msc console
After updating to Internet Explorer 9 on a Server 2008 R2 SP1 box, I noticed that my services.msc console looked a little off. If you check out the screenshot ( http://www.flickr.com/photos/nosenseworrying/8614996608/in/photostream ), you'll notice a huge gap at the top of the window before the list of services starts....
I found an old Windows XP website that tells you how to fix this. I had the same issue. You have to run "regsvr32.exe jscript.dll" as administrator to correct this. http://www.winhelponline.com/blog/fix-services-mmc-extended-view-blank-xp/
1
0
27,399
2013-04-02T21:42:53.137
infrastructure
serverfault.com
530,349
NGINX Reverse Proxy Sharepoint 2010 authentication fails
When presented with the Windows forms based authentication after entering the users credentials I am prompted again for a username and password. This just keeps prompting you, I see no errors in the logs that would help. I feel the Microsoft side may be seeing some errors but I do not have access to that server. I am s...
I've wanted to achieve the same thing, and have been researching online as to why this occurs. From my understanding, nginx fails the authentication because it closes the proxied TCP/IP connection after each HTTP requests. Where NTLM requires a single instance TCP/IP connection for multiple HTTP requests for authentica...
2
0
1,744
2013-08-12T09:36:50.700
api_errors
serverfault.com
232,660
(POSTGRES) ON CONFLICT ... WHERE condition doesn't seem to be working
We're trying to populate a new table for a new feature with information from an old table, but we are going to be running this query as a script multiple times because we want to catch any user updated data. Table 1 Schema. [CODE] Table 2 Schema. [CODE] This is my query [CODE] So, we're copying Table 1 information into...
With the help of @a_horse_with_no_name, I was able to find the error in my thinking. There is a great example in the PostgresSQL docs that really clarified it for me: Insert or update new distributors as appropriate. Assumes a unique index has been defined that constrains values appearing in the did column. Note that t...
5
10
14,697
2019-03-20T21:23:57.423
warehouse_errors
dba.stackexchange.com
152,104
SQL memory usage with freetext indexing
Does full text search and freetext indexing drastically increase the memory usage of a SQL Server database instance? Today, on my development machine, I installed the fulltext feature on a SQL Server 2014 instance and created a catalog on one of my tables with a fulltext index. I set the index to track changes automati...
As Shanky implied in the comments, your Max Server Memory value is probably not changed from the default. SQL is designed to use everything at its disposal. I've written a script , based off work from Jonathan Kehayias of SQLskills, that will let you know the value you should use. Jon advises reserving the following am...
0
2
315
2016-10-12T15:03:16.277
api_errors
dba.stackexchange.com
211,477
Postgres: query planner not respecting table inheritance constraint when querying for null
I'm having an issue with slow queries that is caused by the planner checking every inherited table instead of only the one with the constraint. I have a table with 0 rows called "search_result". This table has a few inherited tables with different constraints based on the "polarization", where all our data resides. For...
Constraint exclusion has some caveats. This very case (that non-NULL-ness is not considered, even when the existing check implicates it) is not listed in the documentation , but it's still there in later versions, too. The solution is to add another check that explicitly excludes NULLs: [CODE]
7
2
215
2018-07-05T21:11:13.060
database_errors
dba.stackexchange.com
231,216
Keep IIS7 Failed Request Tracing as a sysadmin only diagnostic tool?
I'm giving some of our customers the ability to manage their sites via IIS Feature Delegation and IIS Manager for Remote Administration . One feature I'm unsure about permitting access to is Failed Request Tracing for the following reasons: Customers will forget to turn it off The server will be taking a performance hi...
I've heard it said that the performance overhead to have FRT enabled and listening on all page requests is about 5%. I haven't confirmed that personally, but if it's anywhere in that ballpark, it's really not a lot of overhead. Additionally, the FRT default is to keep 50 log files per site and overwrite the oldest once...
0
1
558
2011-02-04T16:11:22.430
api_errors
serverfault.com
146,910
Performance and correctness of selecting only most recent entries across joined tables
I have 2 tables: [CODE] and [CODE] . I am trying to select only the most recent purchase record for each thing. [CODE] The following query (based on this answer ) appears to work. My questions are: Is this actually doing what I want it to? How can I optimize the performance of this query (indexes, etc.)? Is there a mor...
Something like this: [CODE]
0
0
36
2016-08-16T04:29:01.087
database_errors
dba.stackexchange.com
350,287
I have a set of variables that are not known until run-time, and will be shared by all instances of that class.
Without getting into specific language or implementation: The value of the variables are not known until runtime. All instances of this class will need this variable. The obvious solutions: Use a static variable that I set before I start using that class, but this feels messy because any user would have to remember to ...
Some languages have constructs just for performing once only calculations. Java has static initializer blocks 1 . C# has static constructors . Other languages may have similar constructs. These consist of code that is called either at program startup or when the first instance of the object is created. They usually can...
3
5
490
2017-06-06T18:47:41.157
api_errors
softwareengineering.stackexchange.com
42,225
Python vs. Java for embedded wireless module
We are developing a product at work which interfaces with basic I/O and sends data to a webserver over a GPRS connection. What i need to know before we commit to a product, is which language is more suited for this task: Java or Python? (or any language to be honest) As i said, it will run on a wireless module and open...
If you are only choosing between the two, I would say Java. But the real tool for this kind of project is C or C++. Any memory-managed language can kill you if it does garbage-collection. For GPRS you are looking at real-time needs, and a resource-strained environment. There's a reason all of these types of projects us...
2
4
1,976
2011-02-01T15:55:26.307
api_errors
softwareengineering.stackexchange.com
138,600
Postgres database deadlock issue
I am using Cloudera Manager to monitor and configure Hadoop. I choose PostgreSQL as metastore of HUE - a web portal to submit your SQL to Hadoop. When I submit a SQL, the HUE says the database is locked. I don't have any database management experience. So, how to find the root cause and diagnose? I try to connect to th...
Your software is most likely not using the default [CODE] database (that is a database that is normally reserved only to store the list of databases, users, and other globals). From psql, run [CODE] to list the available databases. Your database will be something other than postgres, template0, or template1. Try connec...
3
3
373
2016-05-16T04:55:06.527
hadoop_errors
dba.stackexchange.com
41,691
Find element within another element using explicit wait
I have the following code: [CODE] I want to do the same except that I want to find the [CODE] variable using explicit wait. So I want to find the [CODE] variable inside the [CODE] variable using [CODE] How can I do this? I don't want to do it using one immense Xpath. Besides, I don't even know how to find the last elem...
Try something like this: [CODE]
0
1
615
2019-11-27T15:41:12.710
data_quality
sqa.stackexchange.com
74,556
Converting a column to a DataTimeIndex and query by day
I've a time series dataset which I thrown into Pandas. I have later converted the Date column into a DateTime column and then transformed to an index. To here, everything is ok. Problems arise when I try to segment the data by day. If I do something like [CODE] python thrown an exception. If I limit the selection to Ye...
Solution- [CODE] Borrowed from- https://stackoverflow.com/questions/36871188/how-to-access-pandas-dataframe-datetime-index-using-strings
0
0
26
2020-05-20T22:00:44.977
data_quality
datascience.stackexchange.com
835,632
NGINX workers not enough
I'm not very familiar with nginx workers so I'll need some help here. I have two sites on one server http://example.com http://example-second.com Second one is used to make API call through first one and receive json array. This is the scenario. In http://example-second.com/api_call.php file I have [CODE] In http://exa...
Nginx have asynchronous event-driven architecture, single worker is processing multiple connections. [CODE] is maximum number of connection that worker process can open simultaneously. Not just client, but also proxy connections etc. You have this option set to very low value 10. At least you should reset it to default...
1
2
1,946
2017-03-01T12:51:11.700
infrastructure
serverfault.com
814,838
Azure security center recommandation: issues installing endpoint protection
i am having a hard time with applying the recommandations of the Azure security center for my Windows VMs: it asks to install endpoint protection, but the issue is that whenever i try to install it for one of my vms, the creation fails, saying that i have an RBAC issue . The account i'm using has admin rights and owner...
Has anybody ever succeeded to setup the endpoint protection from the azure security center and if so, how did he/she do to succeed ? I didn't encounter any issue when I deploy the endpoint protection. The endpoint protection is deployed as an extension. Deployments of extensions are handled by VM agent. To troubleshoot...
1
1
752
2016-11-14T17:34:31.750
infrastructure
serverfault.com
445,302
Why do some machines respond with many RST packets instead of RST-ACK to refuse a connection?
I have recently been trying to track down a problem with one of our systems and have noticed that it is simply not allowed to connect to a remote machine. However, the remote machine (not controlled by us) is responding to our request for a connection with many TCP [CODE] packets on a different port (26469, 26497, 2649...
What I see here is that [CODE] is attempting to open HTTP connections to [CODE] , and these connections are being refused. The high port numbers that you're seeing originate as the source port numbers for the connections from [CODE] . The [CODE] segments are getting sent back to the exact same port numbers that the [CO...
2
2
8,394
2012-11-04T14:53:59.463
infrastructure
serverfault.com
935,814
CentOS7 - cannot change spamassassin required_score
I have a CentOS7 server running an yum-based install of Spamassassin (spamassassin-3.3.2-4.el6.rfx.x86_64). For some reason, I cannot change the required score setting to a custom value. When mail gets flagged as spam, I see this in the mail header: [CODE] I tried editing /etc/mail/spamassassin/local.cf to this: [CODE]...
[CODE] is a standalone program which utilizes Spamassassin engine and is used to check manually single emails and to verify configuration, rules, etc. When you use Spamassassin engine in conjunction with postfix or other MTA, your MTA uses some filter program to process emails. This filter utilizes the same Spamassassi...
1
1
834
2018-10-16T19:57:18.913
infrastructure
serverfault.com
360,588
Email header analysis
I have an email header which is showing the following information, which i believe is faked. The mail purports to be from a gmail account but I'm not sure if this is the case. Ordinarily you read the headers from the bottom up, which suggests the email came from [CODE] [CODE] (a Microsoft server) but then, bizarrely, t...
While the headers look odd for a variety of reasons, not the least of which is that they're partial headers. It's entirely possible that the e-mail was originally from Microsoft, to a g-mail account, which is forwarded to another e-mail account. This will cause the e-mail to have headers from Microsoft, receiving heade...
-3
1
561
2012-02-15T17:31:41.750
infrastructure
serverfault.com
142,222
How to restore MySQL databases from database files?
Our MySQL on Ubuntu 15.04 stopped working after we moved the computer to a new location and kept giving the missing socket file error. We couldn't really fix it after trying [CODE] and there was an error about mysql-server-5.6 being corrupted. So after a lot of trail and error I was able to remove mysql-server-5.6 foll...
This is what I do to start the mysql daemon manually. I've also included my own my.cnf. By specifying the correct corresponding paths in your system, you should be able to do the same thing. I would also point out that this is a source install, but again, it should apply generally. Start the daemon like this: ./bin/mys...
1
1
945
2016-06-25T03:38:41.610
data_quality
dba.stackexchange.com
200,388
Log Shipping back up location to a network share instead of clustered file share
Below is my current cluster set up Node 1 - Active Node 2 - Passive While doing Log SHipping can I save the back ups to a network share instead of a clustered file share? The service account will have read/write permission on the network share.
Log shipping backups aren't anything special under the hood, they run an executable (sqllogship.exe) that fires off a standard [CODE] . They can be configured to point anywhere the service account has write access to (and since this is a FCI, anywhere that is reachable from both nodes). What's the point of writing thes...
0
2
94
2018-03-15T17:16:41.057
warehouse_errors
dba.stackexchange.com
61,805
Make MySQL dump from parts of each table
I need to export some data from different tables. I tried this query [CODE] After this query, the SQL file was created. When I use id i in the the same query to export data from other table. Thus, an error happens. I need additional data from the other table. So, the result must be not dump of all database but part of ...
You need to use mysqldump option [CODE] like this: [CODE] Give it a Try !!!
1
2
1,311
2014-03-26T14:44:48.513
database_errors
dba.stackexchange.com
223,874
Poor postgres performance when deleting rows with large BLOBs
I have a PostgreSQL table like [CODE] the [CODE] blob is typically in the 1 .. 10 MB range per row. The [CODE] text is just a few characters. The table contains about 35000 rows currently. Deleting 50 of these rows is taking about 15 .. 20 seconds on three different systems. Tested with Postgres 8.something on Ubuntu 1...
The vacuum itself operates on each table in isolation. Propagation of the deletion marker from the main table down to the TOAST table happens at deletion time, not at VACUUM time. Perhaps it theoretically could be done some other way, but this is how it works.
2
2
1,792
2018-11-30T21:17:54.057
api_errors
dba.stackexchange.com
564,294
Iptables subnet
I have an iptable rule where I allow a subnet of IPs. The rule is as the following: iptables -I INPUT 2 -i eth0 -s x.x.x.x/24 -d x.x.X.x -j ACCEPT For example, I want to allow subnet 172.16.0.0/24. May I face up with a problem like an IP from this subnet has no access, although I have configured this subnet to be allow...
You can debug netfilter rules by enabling the TRACE target: First load the relevant kernel module to log directly to syslog: [CODE] And then create a rule to log all traffic from your misbehaving system: [CODE] The packets are logged with the string prefix: [CODE] where type can be "rule" for plain rule, "return' for i...
1
2
762
2013-12-31T10:13:11.963
infrastructure
serverfault.com
895,918
How do I properly configure a FQDN for sendmail to work with PHP mail()?
I'm sure variations on this question have been asked and I apologize if this is a duplicate, but I just can't seem to find something that works in my situation without breaking something else. I'm using my VPS as a webserver and I need contact forms on websites to send mail through the server. I installed sendmail and,...
I had the same issues - our relay rejected the ctladdr, confDOMAIN_NAME didn't work, and changing the hostname would affect other programs. I'm using CentOS 6.x but I believe these will work with Ubuntu as well. I found two solutions that worked with mail() and sendmail. Our end solution was using CodeIgniter's email c...
2
2
5,431
2018-02-06T15:44:53.390
data_quality
serverfault.com
103,821
Best index for similarity function
So I have this table with 6.2 millions records and I have to perform search queries with similarity for one for the column. The queries can be: [CODE] More conditions can be added in the where(year = X, worksite_state = N, status = 'certified', visa_class = Z). Running some of those queries can take a really long time,...
Worth mentioning that you installed the additional module [CODE] , which provides the [CODE] function. Similarity operator [CODE] Whatever else you do, use the similarity operator [CODE] instead of the expression [CODE] . Index support is bound to operators in Postgres, not to functions. To get the desired minimum simi...
17
29
15,120
2015-06-11T17:50:20.080
database_errors
dba.stackexchange.com
830,987
SSH Tunneling on Windows
I'd like to perform SSH tunneling on Windows. This is extremely trivial on Linux. [CODE] This would cause SSH client to listen on 127.0.0.1:7456, and then connections on that port would be tunneled to the remote SSH server (A.B.C.D:8080) and then proxied to someurl.com:7456. For some reason, I cannot find a similar way...
You don't need to use the GUI to initiate a PuTTY connection. I actually prefer to just launch it from the Windows Run dialog or a powershell/cmd prompt most of the time. The [CODE] button in the screenshot you posted will open the PuTTY User Manual. In it, there's a whole section called [CODE] within the section calle...
2
1
2,518
2017-02-07T02:44:15.950
infrastructure
serverfault.com
447,734
Strategies for Adapting SQL-Based Data Retrieval to a Newly Introduced REST API in a Short Timeline
I'm in a pickle following a recent executive decision by our parent company. They have elected to abstract away our SQL data warehouse, transitioning to a REST API for data retrieval. The purported aim is to streamline data access, though, as anyone previously accessing the data warehouse will now have to make web requ...
Definitely write a middle adapter layer, which accepts app requests and retrieves corresponding DB results. Start doing it right now, on your most important apps. Let the app's needs dictate what you implement. Add to the layer as you work through the apps and discover additional needs. Write automated integration test...
3
1
127
2023-09-22T18:18:15.853
warehouse_errors
softwareengineering.stackexchange.com
203,122
Steps to diagnose performance bottlenecks on Mac OS X
If you wanted to track down performance issues on a machine running Mac OS X and find out what was causing slowdowns, which command-line or graphical tools would you use, and how would you use them? I'm interested in advice on the best tools, and explanations of how to use them - when a machine slows down or freezes up...
I would begin with [CODE] (to see the process list at work). Take into account cpu usage / per process and memory usage. Followed by [CODE] (lets you monitor file system activity). If your finding something using the disk often or using too much cpu your heading in the right direction. Also try [CODE] ; good for overal...
5
1
5,156
2010-11-17T20:34:38.243
infrastructure
serverfault.com
121,617
Architecture Question
I am writing a rules/eligibility Module. I have 2 sets of data, one is the customer data and the other is the customer products data. Customer data to Customer products data is one to many. Now I have to go through a set of Eligibility rules for each of this Customer product data. For each customer products data, I can...
The Specification pattern seems to suit your needs pretty well. The sample code given is precisely about Customers and Products.
5
3
585
2011-11-24T23:56:20.947
api_errors
softwareengineering.stackexchange.com
349,564
How to config the parameter in puppet sudo module in order to replace the client sudoer?
I'm configuring sudo module in puppet according to this code [CODE] and got the following error : If you have arranged other means to access the root account, and you are sure this is what you want, you may bypass this check by setting an environment variable (export SUDO_FORCE_REMOVE=yes). What parameter and where sho...
The error message you're getting indicates that by installing [CODE] that dpkg is removing [CODE] and the remove script is trying to warn you that this might leave you in a state without root access. You can't set an environment variable from Puppet for dpkg, so you would need to launch the Puppet agent with the enviro...
2
2
1,722
2012-01-13T07:50:17.180
pipeline_ops
serverfault.com
17,743
How do I configure SQL Profiler to show me queries to the views sys.databases and sys.tables?
I have a simple C# app that iterates through all databases on a server examining their schema. As such it performs a [CODE] , iterated through those and does a [CODE] . Then if it finds the table its looking for it does some queries, and does stuff with the data. The connection string has an application name. If I setu...
There's nothing inherent in Profiler that would prevent those queries from being displayed. I think you're just not catching the right events. It sounds like you're filtering for Stored Procedure events. Try also filtering for TSQL events.
4
2
5,460
2012-05-11T14:10:51.783
database_errors
dba.stackexchange.com
134,803
How to keep a pylons web-application server running on windows server 2003
We have a pylons web application running on a windows server 2003 machine. There is a startup script that runs in a "dos box". From time to time the script crashes and the server is then down. How to keep it runing / monitored? Edit : On a linux box I would use a monitoring tool like "monit" that can check if the servi...
Have you considered running it through IIS which can then monitor processes and restarts through application pools? Check out: http://code.google.com/p/isapi-wsgi/ and: http://sourceforge.net/apps/trac/pyisapie I use the first, but the second has better performance.
1
1
249
2010-04-22T09:45:26.957
pipeline_ops
serverfault.com
679,148
should anonymous access to the IPC share be allowed on Windows 2008 r2
During an audit the question of anonymous access to the IPC$(null sessions) share was raised. The audit lists the following as being a risk on a Windows 2008r2 file server: [CODE] I've confirmed that the following settings are configured [CODE] and that anonymous enumeration(shares, users, etc..) does not work, but I'v...
Change the registry value: [CODE] Or, if you'd rather do it via Group Policy: Network access: Restrict anonymous access to Named Pipes and Shares = Enabled. Also you want to make sure that Network access: Let Everyone permissions apply to anonymous users is set to Disabled. This corresponds to the registry entry: [CODE...
5
4
9,189
2015-03-29T19:17:05.067
infrastructure
serverfault.com
270,799
Kernel mode web servers: A clever optimization or a security nightmare?
I was reading a Hacker News thread where one user posts a link from 2011 explaining that IIS is much faster than most other (*nix) web servers. Another user replies, explaining that IIS gets that advantage by having a kernel module called HTTP.sys . To my knowledge, most other popular web servers in 2015 do not do this...
Http.sys is not so much a web server as a proxy-forwarder. Its designed to allow many web servers co-exist on a Windows box, so you can have IIS running a web site, but also several WCF services running with http/REST or SOAP interfaces, all on standard port 80. (this is why you can't run Apache on Windows without a bi...
29
25
4,752
2015-01-22T06:12:10.997
api_errors
softwareengineering.stackexchange.com
424,908
How to objectively monitor REST APIs performance based on the request/response size
We recently integrated a monitoring solution (Data Dog) for our REST-APIs based microservices. The monitoring solution gives us many useful metrics. For example, we can see the average response time for each API. It also alerts us if the average response time increases for a specified period etc. However, we recently s...
It all depends on what you need, and what you have available. Using the example of Azure Log Analytics, the request/response sizes are logged alongside the performance: Therefore, you could write a query to group your performance metric by those sizes, or to base your metric only on requests that fall within an accepta...
-1
2
383
2021-03-29T10:45:08.807
api_errors
softwareengineering.stackexchange.com
1,097,091
error The Process class relies on proc_open, which is not available on your PHP installation
after change server and setup centos with cpanel lumen cron job not worked and every minutes add this error to lumen log: The Process class relies on proc_open, which is not available on your PHP installation . in /home/username/public_html/api/vendor/symfony/process/Process.php:143 i see active php version ini and rem...
i find solation for my problem i change cronjob in cpanel (the best php versin after remove this function from php.ini for me was 7.4ea) then i change cronjob command in cpanel to: (you can change ea-php74 to custom version) [CODE] have good time :D
-1
0
4,442
2022-03-26T13:00:34.827
infrastructure
serverfault.com
213,973
How to ask management to increase the number of programmers in the team without sounding incompetent
I am currently working for a small-medium sized company (~50 employees) as the sole IT staff. Recently, we are on track to replace one expensive yet critical legacy system in favor of an application I am currently working on during my free time at work. However, its been very busy lately with issues spawning left and r...
This is what we did in a similar situation. It's kinda scrum in a nutshell. Gather the stakeholders (consumers of IT services, director level). Tell them, "I am spending X hours a week supporting the legacy system and doing my other tasks. At the rate of 40-X hours a week, I cannot deliver the replacement system before...
2
12
460
2013-10-10T05:22:32.720
api_errors
softwareengineering.stackexchange.com
1,145,827
What is it I don't understand about Redirects?
This is in the configuration file of "this.com": [CODE] Server is restarted. Then I curl an address that should match: [CODE] Why doesn't it work? And yes, the server reads this config file (I confirmed this by deliberately misspelling the directive, which caused an error on restart). I would have expected a redirect m...
Turns out what I don't understand is that directives in an alphabetically "later" conf file will take precedence over an earlier one. The documentation says the files are processed in alphabetical order which I had taken to mean that an incoming request is checked against the directives in the order of the files. Soo ....
0
0
25
2023-10-13T14:44:31.417
infrastructure
serverfault.com
1,013,059
How do I completely remove cilium from Ubuntu 18?
I installed cilium with: [CODE] A couple minutes later the network connectivity on the host went down (could connect out from the host but not in from another host). I deleted cilium with [CODE] and rebooted. That restored my network connectivity, but the syslog gets messages like this every 5 seconds: [CODE] What do I...
hi,you can try check this directory of each node [CODE] and delete this file: [CODE] e.g: [CODE] Finally, restart the flannel daemonsets [CODE]
2
1
4,341
2020-04-19T16:10:43.760
database_errors
serverfault.com
56,646
How to predict past test set on time series data using LSTM
I'm trying to do a regression on some inventory amounts with the following model using Keras: [CODE] I have a time step of 60, how do I predict past my test data to make actual predictions into the future?
The best answer I found is here Unfortunately I couldn't get it to work for my solution but reworked my solution and just incremented the sliding window, appended that answer to my test data, and iterated like that.
2
1
162
2019-07-30T21:43:42.793
data_quality
datascience.stackexchange.com
40,017
Need - fast exhaustive memory testing tool for Dell server
I've got a Dell 2950 running ESXi. I'm having weird issues in one of the VMs and I would like to do a memory test to eliminate (or identify) faulty RAM as the problem. What is the easiest/fastest tool for me to use to do an exhaustive test of the system memory? It would be nice if the tool came as a bootable CD/DVD ima...
memtest.org is exactly what you're looking for.
3
10
1,259
2009-07-13T17:57:16.443
infrastructure
serverfault.com
62,739
How do I validate all my constraints in postgresql?
It seems like I have been bitten by the first bug described in the release notes of postgresql 9.3.4: http://www.postgresql.org/docs/devel/static/release-9-3-4.html I now have e.g. duplicate primary keys. What is the best approach on doing a loop of re-checking of all my constraints (pkeys, fkeys) -> fixing issues -> c...
Well, if you need a way to check if all the foreign keys in your table are valid, this might help ( it just validates all foreign keys in your schema ) [CODE]
10
7
12,058
2014-04-08T08:01:38.333
hadoop_errors
dba.stackexchange.com
317,679
Should object enforce validation rules on read as well as write?
I have a class that enforces database-friendly formatting for some of its properties in the [CODE] method. This guarantees that if a new object is created and saved, it will be saved correctly. But saving new objects happens rarely. Retrieving them happens thousands of times more frequently, and these same rules are ap...
A good rule is to avoid having objects that are in a illegal state. Therefore creating objects based on data from the database that is illegal (or indeed has become illegal because you have changed the rules) without anyone knowing about it would be bad. It would of course also be bad if noone were able to start your s...
0
1
74
2016-05-05T22:57:09.807
data_quality
softwareengineering.stackexchange.com
138,999
Corrupt Transaction Log on database
I have reason to believe the transaction log file on my database is corrupt. This database is involved in transaction based replication (both subscription and publishing), and I'm unable to start its log reader agent with an error message which cites "Operating System Error 23". I essentially just want to do what it ta...
OS error 23 is "Data error (cyclic redundancy check)." you can check those by running executing on the command prompt [CODE] , this basically means that you have a serious error on your disk. As the database is running what you need to to is to DONT PANIC Find your backups Script your replication setup Do a tail-of-the...
0
1
842
2016-05-19T13:27:18.607
database_errors
dba.stackexchange.com
192,117
Windows Server Local Account Migration from 2003 to 2008
We have a windows 2003 server with around 2000+ local accounts on it. Most of these accounts are used simply to authenticate a user accessing a web application on the server (basic authentication in IIS). They do not use desktop logins. We are now moving to a new server that runs windows server 2008, and are facing the...
We went with the Winzero Server Migrator software and it successfully migrated 2000+ local accounts on a 32 bit windows 2003 server to a 64bit windows 2008 server, passwords intact.
0
0
1,323
2010-10-18T14:42:28.187
api_errors
serverfault.com
762,340
Trying to get qsub to work on my cluster
Trying to get qsub to work on my cluster (single node right now but more are coming) So far trying to submit with qsub was returning [CODE] I followed some posts on gridengine.org suggesting: [CODE] this seems to have made progress since now qsub says: [CODE] but it stays pending forever. [CODE] returns: [CODE] I would...
I get that error if I've forgotten to load the module before running the command. [CODE] (Assuming we're talking about torque.) That should fix it :) Or put it in [CODE] so you don't have to type it each time.
1
0
1,216
2016-03-08T12:20:35.527
infrastructure
serverfault.com
930,966
How can I determine which request is periodically timing out through my ssh tunnel?
I am using a ssh tunnel from OSX combined with the SwitchyOmega chrome plugin to browse via a ubuntu box like this: [CODE] This timeout only occurs after I've started chrome. but even after killing chrome it continues to periodically time out every 30 seconds. [CODE] I'm trying to determine what is causing the timeout ...
using the -v option for ssh allowed me to home in on the offending chrome extension.
0
0
230
2018-09-14T19:31:55.560
infrastructure
serverfault.com
241,087
what does 'Create Unique Index' do?
Let's say we have a emptyCustomers table (CustID, Age, FirstName), and we create a unique non-clustered index on Age column. Obviously, there could be a lot of duplicates on Age. So what does 'Create Unique NONCLUSTERED Index XXX' do here? Do it mean once I add a person whose age is 22 in the table, I can't add another...
what does 'Create Unique NONCLUSTERED Index XXX' do here? Does it mean once I add a person whose age is 22 in the table, I can't add another person whose age is 22 too? Yes - it enforces that the combination of key values are all [CODE] . If you only have one key column then that will enforce only one row per distinct ...
-4
1
214
2019-06-21T05:36:41.587
data_quality
dba.stackexchange.com
1,152,931
IIS - 2 Issues in one > SSL Binding Cert selected but will not stick | Index was outside the bounds of the array
Using WACS, I created individual certs for each domain. (I have been using WACS for years, but only creating one bundled Cert with all Domains in one Cert. Which has worked, but now I am creating each domain with its own Cert.) Windows 2016 Server Core IIS 10 Following Steps. IIS > Sites > DomainName Step 1: [Bindings]...
It seems a little more checking, and I would have found the answer. Binding SSL certificate to a new site, changes other's certificate So, what I need to do is put enough local IP Addresses into the server, and then I will be able to run individual certs so until that time, I will have to do them all as ONE cert. Which...
0
0
73
2024-02-05T11:49:19.187
infrastructure
serverfault.com
1,090,549
AWX: Unable to SSH as root into target host only when using a specific Ansible role
In our AWX environment we have an Ansible role "Nessus Applicaiton" for RHEL 7/RHEL 8. It deploys the Nessus agent application just fine for new RHEL 7 servers, but not for RHEL 8.5 servers as it seems it cannot connect via SSH port 22. We have several other templates that allows AWX to connect as [CODE] to the RHEL 8 ...
In case anyone runs into this...I had investigated the known_hosts file, but wasn't looking in the right place for it. The known_hosts file in question was located inside of the AWX_TASK container /root/.ssh/known_hosts. Line 120 had the conflicting ed25519 key there. I removed it. Reployed the role and the role deploy...
0
0
3,543
2022-01-19T21:27:58.357
api_errors
serverfault.com
768,628
How to force connection only from hostname to specific ports?
I'm running a few dockerized applications on a Digital Ocean server behind an nginx reverse proxy, this one to be exact: https://github.com/jwilder/nginx-proxy . I have it configured so that app1.domain.com goes to app1, app2.domain.com goes to app2, and etc. However, I noticed that if a user does public_ip:port they c...
Depends on how you configured nginx. Generally, the difference between the one and the other type of request is that one time the HTTP [CODE] header is set, the other time it probably is not, or contains the IP (not sure). So you can filter on that. Probably the following might work too (shamelessly copied from How can...
0
0
49
2016-04-06T19:33:00.050
pipeline_ops
serverfault.com
475,056
How do I get individual SCSI drives to show up as primary/secondary drives?
I am working on decommissioning an old server for a client. The server is an older Dell PowerEdge 1600sc with four SCSI drives. Two are stand-alone, and the other two are in RAIDx (not sure the actual RAID id). It does not have an integrated RAID controller (nothing under integrated devices in the BIOS related to RAID)...
Taking a few minutes to go read the Wikipedia article on SCSI won't be a bad idea. The "primary" and "secondary" are referring to the IDE controllers. You're not going to get SCSI disks to show up there. It sounds like you've got fixed-mounted drives rather than hot-plug. If I'm wrong then this needs to be edited. That...
2
4
3,190
2013-02-04T01:51:44.673
infrastructure
serverfault.com
477,179
Hyper-V 2012 move fails to another Hyper-V 2012 host while using Windows 8 machine to do the move
I have 2 machines with Hyper-V 2012 (free, console version) that I manage from Windows 8. Whenever I want to move any machines from there's always this error. I have enabled Kerberos, I setup delegation on both hosts (all delegations, not just the necessary ones), I have disabled firewall's and I am even logged in as D...
I have encountered this myself and it ended up being a small omission on my part in the confirugation. Did you remember to change the Authentication protocol for Live Migrations from the default of Credential Security Support Provider (CredSSP) to Kerberos? This needs to be done on both servers. I am including a screen...
3
2
2,830
2013-02-09T13:52:24.917
infrastructure
serverfault.com
87,362
What are some general tips to improve my MNIST classifier?
I have built a CNN from scratch in python using Numpy, to tackle the MNIST hand-written digit recognition problem. It's composed out of a convolutional layer (3 3x3 filters), a maxpooling layer (2x2 pooling) and the 10-label output layer. I'm using softmax for the output activation function and cross-entropy as loss fu...
You may find this OpenML interesting In there several benchmarks on different datasets are shown so that you can see how different models score across the same dataset For your task MNIST the plot shows: that might give a good idea of how well your model is performing as compared to other implementations/models Metric ...
0
0
419
2020-12-30T20:22:47.093
data_quality
datascience.stackexchange.com
101,211
Get MS SQL Server to release disk space
A poorly managed database table has grown to be enormous. 48+gigs of orphan records. I am trying to clean it up and put my dangerously full hard drive back to a normal state. I will be deleting approx 400 million records from this table. This is running as I type. I notice that I am not seeing any drop in my hard drive...
I will be deleting approx 400 million records from this table. Hopefully, you are doing it in chunks - to avoid bloating transaction log. notice that i am not see any drop in my hard drive space You wont, as you have to explicitly shrink the database file to release space. Just deleting the records, SQL server wont rel...
8
15
17,967
2015-05-11T19:34:19.287
database_errors
dba.stackexchange.com
858,259
Broadcom QLogic 57800 shows up as two adapters in ESXi 6
I don't have another quad card as a reference, but the Broadcom QLogic 57800 is a 2 x 10GbE + 2 x 1GbE quad card, which has sequential MACs and same PCI slot, but shows up as two dual adapters in ESXi 6. Is this normal? I'm seeing other oddities and am wondering if there's a VIB/driver issue.
There may be a need to change the firmware of the NICS take a look here - http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=THCKX
1
0
569
2017-06-28T01:25:47.727
infrastructure
serverfault.com
1,109,426
Apache 2.4: owncloud in sub-directory outside of DocumentRoot
I am working on moving current setup of owncloud from sub-domain [CODE] to sub-directory [CODE] to make all my apps covered by one SSL certificate. The problem is that owncloud makes redirect to login page, but Apache makes it within virtual host's DocumentRoot. Alias /cloud doesn't work - every request from /cloud fal...
Solution is to set RewriteBase in OWNCLOUD_HOME/.htaccess: [CODE] Everything works as expected now.
1
0
131
2022-08-30T02:34:10.437
api_errors
serverfault.com
15,974
What backup software offerings are fit for "enterprise" use?
Coming from the FOSS area, there are few backup solutions which are fit for use in larger environments. There's an abundance of existing commercial backup software and I'm interested how they measure up when used in the field. Most offerings look quite nice on paper, but they tend to show their ugly side as soon as the...
Bacula is an Open Source Backup solution. It's architecture is designed after that of major commercial solutions. Platforms Bacula supports Windows as well as any POSIX compliant Unix system. Encrypted communication Authentication between daemons is always secure, to encrypt the communication between the daemons, a ful...
9
6
1,143
2009-05-31T01:14:46.950
data_quality
serverfault.com
140,346
MongoDB aaS - administrate volumes/disk size - consequences of full volume - new file allocation failure
We run MongoDB (currently 3.0.6) as a Service. MongoDB is running inside Docker Container with a small volume 8 GB where mongod data files are stored permanent. The volume can't be extended. This is an automation and business constraint. Customer doesn't see disk size ( [CODE] ) and has only rights [CODE] . So a [CODE]...
You mention the smallfiles option (from ObjectRocket docs) but your [CODE] output suggests that you are not actually using it. If you were, then your maximum file size would be 512MB but you have 2GB files (the default). It also explains your issues. As soon as you fill up your existing data files and another write com...
2
2
1,123
2016-06-03T16:45:55.310
database_errors
dba.stackexchange.com
917,449
NFS "-mapall" doesn't include anonymous clients?
I am accessing Unix-like NFS servers using Client for NFS in Windows Server 2008 R2. Since the server is not part of AD, and there is no "User Mapping server" active, the documentation states that the client uses anonymous UIDs and GIDs of -2, -2. Now, on the server side, NFS exports have -mapall= option specified. Why...
The NFS server doesn't map anonymous identities to anything. If your mount is guarded by UNIX style permissions, you need UNIX-style identity. Enter Windows Client for NFS, for Windows Server 2003 - onwards. Take a few tips from this short story. User Identity Mapping feature has been deprecated in Windows Server 2008 ...
0
0
502
2018-06-20T10:35:14.843
infrastructure
serverfault.com
177,110
Transforming start and end times to simple graph
I've been struggeling with this problem for a while now. I have a table [CODE] which stores the start and end times of sessions. What I am trying to archive is a simple graph that shows the number of active sessions for the last 24 hours in a reasonable interval. My current solution is to just query the number of activ...
I've upgraded and worked a bit with CTEs. The following query runs in about half of the time. [CODE]
0
0
66
2017-06-23T12:16:39.130
database_errors
dba.stackexchange.com
132,005
Run client applications from VMWare Workstation Host
Does anyone know how to run applications hosted on a client VM from an icon created on the host computer? For example I want to run IE8 installed on the client VM on my host XP computer running IE6. I cant update to IE6 on the host because of compliance issues. I'm trying to do this with VMWare Workstation 7.
if you mean fully integrated in the host environnement, you would install at first wmare tools and place you guest system in unity mode (i think it is called like that). i've done this using vmware workstation on Linux with Windows Guest system
0
0
514
2010-04-13T16:19:23.483
infrastructure
serverfault.com
274,713
What is the name/origin for this C code indentation style?
Look at the formatting of the variable declarations. I haven't encountered this indentation style in the past, but lately I stumbled upon two different code examples which use this style. Where does it come from? Is it still used today? [CODE] ©
This is a variation on the kernel style or Allman style with the modification of variables within the block are outdented to the level of the open brace to set them clearly apart from the code that follows. This also superficially resembles aspects of early C dialects where the parameters and types are declared outside...
2
4
283
2015-02-27T19:59:59.420
api_errors
softwareengineering.stackexchange.com
870,293
Is it possible to filter an absolute path from Apache ErrorLog?
Using Apache is it possible to edit the Virtual Host to exclude a certain absolute path (such as [CODE] ) from log to the [CODE] file? I need to stop it from log warnings like this: [CODE] However I need to see other warnings, it's only about one file that's the reason why I would like to keep my [CODE] unaltered.
That error message comes from php framework and mod_php, so the answer is no. If you don't want to see them in httpd you will have to separate them (interpret php with php-fpm and proxy requests to it through mod_proxy_fcgi). Apache httpd has no control over error messages generated by mod_php, so you do have to change...
0
1
53
2017-08-24T14:47:23.007
infrastructure
serverfault.com
267,050
Can't Access Database when Logged in As SA
We are using mixed mode authentication. I can see and qbe uery all of the databases on the server except for one. I am logged in as the SA account. One database does not expand in SSMS when I attempt to look at it and I get the error: "The database is not accessible (ObjectExplorer)" When I try to look at it. Error log...
If you can see the database while logged in as you, but not as SA then it's a permissions issue. The SA must have been restricted from that database. Check with the database administrator. If you're the database administrator, log in as yourself and check SA's permissions. If you can't see it no matter who is logged in...
2
1
6,474
2011-05-06T15:24:04.453
database_errors
serverfault.com
597,751
WEB page loads only with second attempt - DNS issues
I'm having this issue that I've never run into and wanted to ask the community for help. I think I may be missing or overlooked something small. The issue I'm having is that I try to hit an external site, the first time usually errors out but the second time will catch. For instance if I try to hit Cisco from Chrome, t...
From the comments So i figured it out. It was the wrong settings on the DHCP/Firewall, one of the circuits was issuing the wrong the wrong DNS servers. Thanks everybody – MannyFresh May 2 at 22:42
1
1
2,035
2014-05-02T17:07:56.400
infrastructure
serverfault.com
234,695
Does adding a postgres index concurrently take up disk space gradually or all at once?
I'm adding a unique index (concurrently, over the course of hours or maybe even days, on a column of 5 billion bigints, all of them NULL) on a Postgres 9.6 server that's pretty low on disk space. I can see that it's increased disk utilization from 94% to 95%, and I'm not sure if it's set aside all the space it wants, o...
It allocates the space slowly. First it sorts all the data it needs into temp files, allocating as it goes. Then it builds the index, allocating that as it goes as well. Then it removes the temp files. In the case of a concurrent index, it then sorts a portion of the data again into temp files so that it can detect any...
1
2
1,855
2019-04-12T21:00:48.267
warehouse_errors
dba.stackexchange.com
242,704
Website with optimal cache control
My goal I would like to let browsers cache my whole website, but only download the new information when I have changed one or more files. My situation After some research I have found a way to do this. That is to add a [CODE] to my htaccess file and add a querystring to my files using the [CODE] function. The problem W...
As suggested @symcbean, and is the recommended practice to use unique URLs to avoid any problem with stale/new content. Anyway to eliminate the 304 requests remove the ETags and Last-Modified tag. The URL below provides good tips for speeding/caching web pages. http://www.askapache.com/htaccess/apache-speed-last-modifi...
0
0
1,229
2011-03-03T12:36:40.697
infrastructure
serverfault.com
421,543
Alternatives to pessimistic locking in the DBMS for load balancing
A simplified version of my problem looks like this: the database contains two tables: one contains account balances ( [CODE] ) the other contains account withdrawal and deposit requests ( [CODE] ) the application consists of N identical workers that process these requests Two workers processing two withdrawals from the...
If you're using a database that supports transactions, you can solve the race condition problem by wrapping each deposit/withdrawal in a transaction. You can then run these transactions on any node you want. Further Reading Transaction Management from Oracle
1
1
229
2021-01-27T12:56:43.573
api_errors
softwareengineering.stackexchange.com
354,332
Possible way to handle multiple reset password email
It's a C#, ASP.NET MVC Project and here is the problem: User can enter their email address in the reset password text field and click on the Reset Password button. Each time the user clicks on the Reset Password button a new email will be sent to that email address. I am trying to limit the user reset password email to...
The second approach works well. I used something similar in a recent project. When someone requests a password reset, it generates the verification code (used for the verification link) and puts it into a table along with the email address and a timestamp. If a password reset is requested again, it checks that table fi...
1
4
490
2017-07-24T02:27:01.587
api_errors
softwareengineering.stackexchange.com
460,719
Hyper-V PowerShell get disk usage and CPU usage (as seen by guest OS)
I am writing a control-panel for Hyper-V (new to it; please forgive). Using this as a reference: [link] Problem 1:I can only get the CPU usage as seen by the host-OS, which could be maximum 11-12% on a single-core guest. (I could divide this by [1/8] for a 8-core server and it would be approximate). On the guest, it wo...
I'll attempt it and I'll try to give some Hyper-V specific information here. I'm using Hyper-V Server 2012 as an example. Problem 1: I can only get the CPU usage as seen by the host-OS No, you can get the CPU usage however you want to get it. If you want to get the overall CPU usage of the guest OS as the guest itself ...
2
3
8,132
2012-12-24T22:16:16.970
infrastructure
serverfault.com
987,452
Centos Apache 2.4 exec suphp bin with chmod 0444
I am stuck on this since fews days, I am using suPHP & Apache 2.4 on Centos 6 on VPS (OVH) since few years, then since sunday, the binary chmod is always restored to 0444 so it cannot execute and throws a 500. It works correctly when I set to it website user group with chmod 4750 OR 'nobody' group with chmod 4755, but ...
Normal server ops (exception: using php as an apache module) file permissions are set to 644 and the files are owned by you. Most servers now run php-as-cgi or an equivalent and use some version of 'su' to allow the httpd process to run properly without ownership and thus permission issues. Actual problem: there are ha...
0
0
162
2019-10-10T07:27:38.420
api_errors
serverfault.com
195,184
Stubbing and mocking boundaries
Suppose I'm building a JSON API and would like to include an endpoint that returns a list of recently created posts. Somewhere in my system is an existing Post model with the following test: create a few posts in the db (some new, some old) posts = Post.recent assert that posts only contains new posts Now I want to tes...
Integration tests help test that the interactions between all your objects work correctly. And helps to outline the expected functionality of the entire system. These tests are the similar to the ones where you actually try the system out and make sure that it works. Or that QA would use to give the system a once over....
3
1
292
2013-04-17T03:08:06.453
data_quality
softwareengineering.stackexchange.com
301,956
insert missing data into a result (mysql)
I have the following table : id site date id_action id_customer id_sim id_plq 7 mmg 2020-10-31 15:34:19 9 119 8 mmg 2021-10-31 15:34:29 9 119 11 mmg 2021-10-31 15:34:29 10 118 12 chrono 2021-10-31 18:31:29 9 118 13 mmg 2021-10-31 20:08:25 9 118 14 mmg 2021-09-30 21:09:14 9 118 15 plx 2020-10-30 21:09:14 9 119 16 plx 20...
Build another table of all the needed dates, then do [CODE] [CODE] could be manually created once, then kept for use. Or write code to generate. Or switch to MariaDB with its [CODE] type pseudo table.
1
0
97
2021-11-01T00:32:47.817
data_quality
dba.stackexchange.com
40,665
Having issues with Jmeter Login Test keep on failing
I am trying to learn the Jmeter and performing simple login test for a test website. but I am keep on getting following error, [CODE] Response headers: [CODE]
Don't have enough reputation to comment, but you could try to investigate by displaying the HTML of the response to see what you get. You can find this feature in the View Results tree component Also, sometimes there are tokens or other variables that are shared or incremented between your pages. In such case, you have...
1
0
825
2019-09-05T07:06:32.620
data_quality
sqa.stackexchange.com
987,660
OAUTH / OIDC - Client auth using a signed JWT instead of a secret
I'm sending out the signal flare after exhausting my search efforts. I feel I'm real close to getting this working but hit the wall. Below details an example of what I'm trying to accomplish and the steps taken so far. Please point out errors and make suggestions where able. I have an OAUTH/OPENID/OIDC application that...
Had to panic before finding the answer. 5 days of searching and here's my findings in case anyone else finds this question and needs help. Quick Steps: Generate your private key (the below uses PowerShell) Generate your Public certificate Convert your public cert and private key in to a PEM format Upload your public ce...
2
1
3,366
2019-10-11T14:54:38.113
api_errors
serverfault.com
401,734
Apache directory access with virtual host
I have a virtual host with a configuration like that. When i'm trying to get into foobar.com/dir providing valid username/password pair i get 403 forbidden page instead of that directory contents. www.foobar.com/dir has 777 rights, .httpaswd is chmoded 644. But i can't figure out why i am still not seeing contents. Ple...
Add [CODE] in the last [CODE] statement
1
2
1,052
2012-06-24T09:04:27.610
api_errors
serverfault.com
152,341
Does querying fragmented tables in SQL Server Affect the database?
On SQL Server 2008, I'm running the following query on a 220GB database to list out the indexes and their levels of fragmentation: [CODE] It's taken 8 minutes and then I cancelled the query, as it's a production DB (no DEV to test on), on this page someone stated it affects the server and should be run at slow times: h...
The link you posted refers to rebuilding the indexes, which can have a performance impact as they may take indexes offline and they also cause a high amount of I.o when rebuilding. As far as your query there will be a slight performance impact from the amount of I.o you are doing but I doubt it will be noticeable. In y...
0
1
132
2016-10-14T20:40:29.750
database_errors
dba.stackexchange.com
425,070
Exchange 2010 and DAG - all roles on both servers?
Possible Duplicate: Can Exchange 2010 high availability be achieved with only 2 servers? We just recently migrated to an Exchange 2010 server. Currently all of the roles and mailboxes are installed on 1 server (we are a small company with less than 100 users). I am wanting to use DAG for replication however it seems mo...
Yes, this is possible, although somewhat tricky; see here for details. You'll need a load balancer, and each server should have enough storage for a full copy of the mailbox database(s); also, an additional network adapter on both servers to handle replication traffic would be nice. On the software side, you'll need th...
1
1
1,377
2012-09-06T19:19:59.990
data_quality
serverfault.com
205,518
Getting related foreign keys from parent entities
I'm thinking about a design issue which affects my project's data base. Supposing there are three diferent tables: CLIENT ORDER PACKING_SLIP Each order has its client and different packing slips . So there are some foreign keys which are compulsory, there would be clientId for the [CODE] and orderId for the [CODE] tabl...
That's bad design. Why? Not only it is redundant, but also allows for inconsistencies, i.e., insert, update or delete anomalies. You could have a packing slip pointing to a client which is different to the one its order points to. If that happens, a query that joins through [CODE] will fetch a different customer that a...
1
2
175
2013-07-20T17:19:26.587
api_errors
softwareengineering.stackexchange.com
1,032,689
Appending the query params the right way when using proxy_pass with nginx
I have my nginx proxy pass config setup as follows: [CODE] This works fine. But the problem is when someone from the browser tries [CODE] The final URL that gets created after the proxy_pass is: [CODE] The query parameter formation is completely incorrect. How can I make sure that Nginx appends any query parameters for...
It may be better to use [CODE] rather than trying to get [CODE] to do it properly. For example: [CODE] The [CODE] directive will append the original parameters correctly. See this document for details. In the above example, any URI that begins with [CODE] will be rewritten to [CODE] with the adjusted query string.
2
2
11,366
2020-09-04T13:11:39.380
infrastructure
serverfault.com
261,542
Postgres - Revoke access to public schema for a user
As a DBA, I have created a user [CODE] to access [CODE] schema as per the request. But, the user I have created is also getting read access to the schema [CODE] in the database. An application owner requested me to [CODE] the access to [CODE] schema from the user [CODE] that I have created. For that, I am using the fol...
The [CODE] schema is unique in that anyone that connects to the database inherits a [CODE] role. Unlike other user-defined roles, the public role cannot be dropped -- it's a "reserved" role -- but its permissions can be modified. Removing Permissions The solution might be a little more cumbersome than you'd think. Firs...
1
4
15,003
2020-03-09T17:30:04.127
warehouse_errors
dba.stackexchange.com