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 |
|---|---|---|---|---|---|---|---|---|---|---|
245,245 | Install and enforce a scheduled task across a Windows domain | We have a small domain of about 70 Windows computers (XP and 7). We want to schedule a command (an update mechanism) to run on all computers periodically, and we want the task to run regardless of the computer's connection to our network (i.e. the task should run even on a laptop that isn't connected to our VPN). We ha... | You can create a computer based preference policy that contains the scheduled task with the appropriate command line you want to run. Preference policies were a new feature introduced with Windows 2008. With the preference policies you can create your scheduled task that will be pushed out via a GPO and you can central... | 2 | 1 | 5,116 | 2011-03-09T16:02:28.250 | infrastructure | serverfault.com | |
320,034 | What is the most efficient way, to create this output, from a single SQL table? | In short: I would like to use this input: [CODE] to generate this output: [CODE] Table sample: [CODE] The goal is to generate the output, in the most efficient way possible. max(x) will increase over time (->n) max(y) should remain constant but may increase by ~10% dynamic creation of z(x) columns & names So far I have... | As mentioned, it's impossible to create a query that returns a different number of columns each time you run it. In general I recommend to do this kind of pivot/crosstab in the frontend (UI) Possible alternatives are to aggregate into a JSON value: [CODE] This returns something like this: [CODE] JSON example Another al... | 2 | 1 | 290 | 2022-11-22T06:29:47.030 | database_errors | dba.stackexchange.com | |
55,742 | Error when trying to add additional mailbox in Outlook: The name could not be resolved | I am trying to open an additional mailbox in Outlook 2003 for one of my users. She already has three additional mailboxes in the list (found in the advanced account settings), and these work fine. When I click the "Add..." button, it immediately reports: The name could not be resolved. The action could not be completed... | I had this same issue for a remote user. Driving me nuts because I could do it in the office, but not on his computer. I found that by forcing Outlook to lookup his name (as though I was going to change the main mailbox) that I could then press Add and be prompted for a user name - which then was added as an additional... | -1 | 1 | 10,136 | 2009-08-18T18:43:27.850 | infrastructure | serverfault.com | |
826,249 | WAS not processing request hence web are not available | I'm newbie for supporting WAS(Websphere Application Server), currently I'm having issue with my WAS, my WAS was installed under AIX under 2 servers/nodes. While investigating it, I found in our application log that there are some activity which is "Performing Cache Maintenance":: [CODE] After this activity triggered, I... | Step one would be to get a javacore during the time during and shortly after the cache maintenance is done. It will likely tell you what resource is misused that causes the application server to basically lockup. Then take it to the proper support team for the com.ibm.srm application. | 0 | 0 | 1,258 | 2017-01-14T05:14:27.837 | infrastructure | serverfault.com | |
151,744 | Understanding connection string syntax | I am following How To Create a SQL Server Database Programmatically but find limited resources explaining the syntax is greater detail other than MSDN: Filegroup Options . Take the following code on MSDN for example: [CODE] Questions: Back in SQL Server 2012, I would have in code Server=localhost\SQLExpress where Confi... | The reason that localhost is acceptable would be because it is using a default instance of SQL Server. The default instance, by name, would be MSSQLServer, however you do not need to provide that. Previously the express was a named instance, which requires you to pass along the instance name (or port) in order to conne... | 1 | 2 | 618 | 2016-10-07T19:47:46.673 | database_errors | dba.stackexchange.com | |
16,576 | Using Selenium Webdriver For Firefox Testing | I have been doing research into implementing Selenium Webdriver (currently version 2.49) for testing on Firefox. Currently I am capable of testing Chrome with the framework, but would like to extend this. Based on my research so far, it seems Mozilla are pushing the Marionette API for interacting with the browser, rath... | Instead you should create Firefox profile in order to invoke it locally. Refer this : http://www.howtogeek.com/209320/how-to-set-up-and-use-multiple-profiles-user-accounts-in-firefox/ This should resolve your problem. | 4 | 2 | 2,921 | 2016-01-20T16:40:38.500 | api_errors | sqa.stackexchange.com | |
203,502 | Host projects safely on linux server? | I'd like to host php projects and perhaps asp.net prjs on my server. Theres two main issues i have. 1) The php files scanning my filesystem. I dont want it to visit /var/www/majorapp/config.xml and read the db or admin password. Along with source of other host projects (which are also in php) 2) track or kill processes... | One solution would be to use something like Linux Containers (LXC) to provide isolated environments to each project. This solution lets you assign hard limits to things like memory and CPU utilization, and it lets you set network firewalls and so forth for each project. This also means each project gets its own filesys... | 1 | 1 | 94 | 2010-11-18T16:52:56.443 | infrastructure | serverfault.com | |
596,623 | Can't access EC2 Instance through SSH After iptable Flush | Before i was able to connect to my EC2 instance, then after i flush the IPTABLE, i can't access it anymore, every time i try to connect, it get TIME OUT. Error i receive: [CODE] Problem trying to solve before this problem happen. Couldn't access my WHM through IP, but i had access to SSH, i read somewhere you need to f... | You've flushed all of your iptables rules, including the default ALLOW rules. You'll need to do a full recovery of these systems in order to re-gain access. If you have not saved the iptables rule changes to disk, there's a chance that rebooting will resolve the issue. If that is not the case, though, you'll need to go... | -1 | 2 | 4,690 | 2014-05-16T21:05:45.517 | infrastructure | serverfault.com | |
950,587 | SBS 2011 stuck applying computer settings | Hello we have an updated SBS 2011 server running in a VM on ESX. Recently there was a power outage and when rebooting the server is stuck at "applying computer settings". I have rebooted in safe mode and checked the logs but couldn't find something that said clearly there is an error. IPV6 is enabled in DHCP like alway... | So after reading pages of fixes that did nothing, it ended up being the ipv6 adapter's fault. Nothing had changed in the ipv6 config, I don't know how this could happen. Anyway I restored the OS from backup as said above and tried to disable ipv6 completely following : https://blogs.technet.microsoft.com/sbs/2011/02/18... | 0 | 1 | 3,684 | 2019-01-24T15:07:07.430 | database_errors | serverfault.com | |
543,951 | Amazon RDS - Can't connect to MySQL Server database? | I am trying to login to MySQL server using *nix shell prompt, following is my command : [CODE] (where the asterisks are my ID) I am getting following error : [CODE] Should I be specifying a username? If so, a username from where? And the password? I already created Security Groups, but I'm not sure how to relate them t... | To connect to a DB instance using the MySQL Type the following command at a command prompt to connect to a DB instance using the MySQL monitor; substitute the DNS name for your DB instance. [CODE] | -1 | 2 | 1,568 | 2013-10-05T00:17:40.257 | database_errors | serverfault.com | |
1,121,326 | Audit Log Partition keeps getting corrupted. How to prevent or boot anyway? | I am running RHEL7, and my audit log partition randomly (not often, but often enough to annoy me) gets corrupted, preventing me from booting. How can I either prevent the partition from being corrupted, or ignore it and allow the system to continue to boot? "Sledgehammer" answers are acceptable. Whenever the system bec... | Here are some suggestions you can Disable auditing via auditd -e 2 or systemctl disable auditd: This might solve the issue of audit log partition corruption, as auditing will be disabled and hence no data will be written to the partition. However, you need to weigh the pros and cons of disabling auditing on your system... | 0 | 0 | 183 | 2023-01-27T18:25:23.283 | data_quality | serverfault.com | |
294,288 | How to enable both IP and virtual name access in Apache 2.2 in Ubuntu? | I am trying to access my server as http://somedomain.com http://anotherdomain.com http://serverip With NameVirutalHost configuration, the domain names are redirected to their respective folders. But for serverip, I want apache to serve me a different folder. But it is serving me the content for anotherdomain.com. My sy... | Try defining a [CODE] for serverip as you would for any other name. It should also be the first one you define (this will make it the default virtual host if no HTTP [CODE] header is received, as often happens when you point a web browser at an IP address). | 0 | 1 | 154 | 2011-07-26T17:14:39.623 | infrastructure | serverfault.com | |
96,276 | SQLOS Resource Monitor and QueryMemoryResourceNotification Win API | Here's some info about SQLOS and the Resource Monitor I found from Jonathan Kehayias : As a general rule, SQL Server will use as much memory as you can give it, and it will not release the memory that it has allocated under normal operations, unless the Windows Server OS sets the memory low resource notification flag. ... | This is called external memory pressure assuming that you set the max memory setting to a reasonable value. Generally it happens when processes other than SQL server (ssis, monitoring agents, iis etc.) consumes memory. You can identify if a memory pressure is internal ör external from ring buffers which is explained in... | 1 | 1 | 523 | 2015-03-26T01:39:32.470 | database_errors | dba.stackexchange.com | |
306,710 | Is it normal to collapse VPS CPU with this script? | This is the script, it comes with mod_evasive: [CODE] If I run this script in my PC, replacing "MY_IP" with the ip of my VPS (openVZ, 3 CPU cores 2.53Ghz, 1Gb ram), the CPU load in the server increases really fast. If I run 3 or 4 instances of the script at the same time, CPU load reaches 100%. Once the scripts are sto... | How is having 100% CPU load an issue? Your script has no timeouts, so obviously it will fully load the target server. 100% CPU usage doesn't mean the server is dying, merely that it is working. Does the server actually become unresponsive or does it crash? | 1 | 1 | 187 | 2011-08-30T08:36:23.293 | infrastructure | serverfault.com | |
22,495 | Stopping too long filenames in Windows Server 2003 | We're finding a problem with long filenames, usually on "My Documents" or on shared drives. Basically, it seems that a document could be written that has a very long filename, and saved say in "My Documents". Which is fine on that computer, the document is "My Documents\verlylongfilename". The problem arises when you g... | The NTFS file system supports paths up to about 32767 Unicode characters with each path component (directory or filename) up to 255 characters long. But Windows Explorer and most other Win32 applications only support 255 characters in the path. You could use robocopy , a free tool from Microsoft that fully supports lon... | 6 | 4 | 7,716 | 2009-06-09T11:16:40.710 | infrastructure | serverfault.com | |
50,520 | Updating an indexed column performance impact in SQL server | I am trying to understand is there any performance impact if I am trying to update a column which is the key column of a non-clustered index in SQL server 2008 ? For e,g I have a column IsActive in the table TestTable . I have created a non clustered index on column IsActive. Now I am trying to update the value of the ... | Modifying the value of a field used in an index will certainly take more time than modifying the value of a field not involved in an index. Having said that, the [CODE] clause in your [CODE] statement could be used to speed the search for matching rows when the field in question is part of an index. In this example, wh... | 2 | 3 | 11,084 | 2013-09-25T19:53:19.917 | database_errors | dba.stackexchange.com | |
809,183 | Azure - Idle VMs from cli | is there a way to see identify the idle vms from a cli with either Azure PS or Azure CLi? if there is no way to look for "idle status", is there an option to get the cpu % usage? or memory % usage? | Azure doesn't know what your definition of Idle is, so it can't just show a machine as Idle, instead you will need to look at metrics that make sense to you, so CPU usage, disk usage etc. Fortunately the recently announced azure monitor service allows you to retrieve these metrics directly from teh Azure API, including... | 1 | 0 | 862 | 2016-10-15T02:55:32.547 | infrastructure | serverfault.com | |
227,494 | SQL Server Backup failing for just 1 DB ("The system cannot find the path specified.") | For the last few mornings, I have had a backup of our [CODE] fail. We are not using SSRS on this server yet, but will in the next month, so the DB is the default 8mb [CODE] and 8mb [CODE] (i.e. tiny). We are using Ola Hallengren's scripts to run backups to a network location, and all the backups run perfectly until the... | Ok i finally figured out the issue. It was completely random that it happened on the ReportServerTempDB, and i think that's what threw me off. My daily maintenance runs at 3AM and includes the backups as above. I also have 30min log backups happening 24/7, also with the specified 'Y' drive and deleting it. The Log back... | 1 | 1 | 967 | 2019-01-18T15:33:08.923 | database_errors | dba.stackexchange.com | |
990,629 | Requests made by nginx' proxy_pass fail, but they succeed if done manually | I am proxying a WP blog that sits behind a second nginx instance (which sends requests to PHP-FPM). If I make the request from the browser, or from a command line too like HTTPie, the request succeeds. E.g. [CODE] However, when using [CODE] the nginx instance on my computer returns 404. Upon checking the WP's blog ngin... | It is probably that the server at [CODE] is using name-based virtual hosting, and the two requests are being handled by different virtual hosts. The URL [CODE] sets the Host header value to [CODE] which is used to select one of the virtual hosts. The request through the reverse proxy sets the Host header value to [CODE... | 1 | 1 | 192 | 2019-11-05T10:18:44.133 | infrastructure | serverfault.com | |
171,637 | Rewriting query with subquery to improve performance | My query looks like that [CODE] However it takes 0.6s, I'm guessing that's because of the subquery that counts answers. Any other way to achieve this effect with better performance? | [CODE] Please provide [CODE] if you need to discuss this further. 500 is a lot of results -- more than a self-respecting UI should return. What will you do with them? Also Consider this approach: [CODE] It may run faster because of reaching into [CODE] only once. If, however, there could be zero replies in some cases, ... | 0 | 1 | 398 | 2017-04-21T14:19:18.023 | warehouse_errors | dba.stackexchange.com | |
243,780 | Converting MongoDB instance from Standalone to Replica Set and Backing Up | I want to convert my MongoDB 3.6 standalone server to a replica set so I can watch a collection using change streams, which requires an oplog. I only want to use change streams so will keep this as a single member replica set. The problem is that my standalone instance is kind of big (~400 GB) and I do not have a backu... | Is such conversion considered a safe operation? Converting a standalone node to a replica set is a straightforward procedure, but if you do not have a backup of your deployment (and this data is important) I would definitely prioritise creating and testing a backup. If you only have a single copy of your data (the one ... | 2 | 2 | 8,882 | 2019-07-25T12:44:02.930 | database_errors | dba.stackexchange.com | |
153,434 | apache log file size limit | Recently one of my apache installations went down, and after looking around we found out that it's the apache's error_log and access_log size that had reached 2GB. Once we rename the logs and create a new empty ones, everything's ok. My OS is Redhat 4 and filesystem is ext3. According to wikipedia , a file in ext3 can ... | What version of apache are you using? A quick google shows that older versions had a bug regarding logfiles that were 2gb. | 0 | 0 | 1,489 | 2010-06-22T01:48:44.220 | infrastructure | serverfault.com | |
1,070,127 | IBM iWelcome as federated IdP for Azure AD: any experience? | Is there any experience in configuring IBM iWelcome as federated IdP for Azure AD? The scenario is: A user register on iWelcome by specifying her/his original email as user identifier (NOTE: this email can be on different domains) The IAM behind iWelcome (IBM CGI) creates a guest account for that user in Azure AD and a... | Looks like it's not supported: https://github.com/MicrosoftDocs/azure-docs/issues/44482 | -1 | 0 | 99 | 2021-07-20T14:57:38.137 | api_errors | serverfault.com | |
186,471 | Unable to restart automount | I am trying to restart [CODE] as it consumes a lot of CPU: [CODE] I get the following error, however: [CODE] [CODE] then gives me: [CODE] | And try to kill automount first before restarting autofs. If you can't kill it, then a reboot is a must. Try to "kill -15 5885" and not "-9", where 5885 is the autmount pid as per above. | 2 | 1 | 5,744 | 2010-10-01T05:57:40.743 | infrastructure | serverfault.com | |
120,438 | Let CGI-PHP load a non-default shared library | In Apache2 I configured PHP as CGI in a virtual host: [CODE] Everything works fine. Now I have some issues with the standard version of the GD because it restricts me in settings several hinting and anti-aliasing stuff for fonts. Therefore I want to modify the GD source and create a new shared library. Since I don't wa... | Can you replace the php-cgi with a shell-script wrapper that sets the environment you need, then executes the real php-cgi binary? | 0 | 0 | 192 | 2010-03-08T19:15:06.880 | infrastructure | serverfault.com | |
228,981 | CPU usage constantly high after upgrading from Postgres 9.5 to 9.6 to 10.6 | I upgraded my RDS instance (db.t2.medium) from Postgres 9.5 to 9.6 couple of days back. Since the upgrade, the CPU usage was almost 100% all the time. This brought down my application. Presuming that the problem is with the 9.6 version, I did another upgrade to 10.6. It got better but still considerably higher than the... | [CODE] You need to run an ANALYZE query on the whole database using the above command. The issue is that the query plans postgres has generated are optimised for the previous version of postgres, when you do an RDS update it does not implicity regenerate these plans, this needs to be done manually (I'm sure there's a r... | 17 | 42 | 9,430 | 2019-02-06T01:29:20.583 | warehouse_errors | dba.stackexchange.com | |
97,194 | Can SQL Server 2008 R2 extended events execute stored procedure or query? | I'm trying to use extended events to track queries that never complete using Event Pairing as a target. (see this question I asked a few days ago). The event pairing target should let me find queries that started but never completed. My new problem is that I need to know what else was happening on the server when this ... | Out of the box, no. You'd need to hook into the event stream for extended events and then take action based on that. Tom Stringer has a good overview and sample code to do this! See also Introducing the Extended Events Reader by Mike Wachal. Jonathan Kehayias also describes it in detail in his Pluralsight course . | 4 | 8 | 585 | 2015-04-07T13:41:12.513 | database_errors | dba.stackexchange.com | |
544,050 | Cant connect IPv6 linux server via Putty | Cant connect IPv6 linux server via Putty. Server IP should be like this: 2001:14c0:2:2f6f::6 But when i replace working IPv4 in my putty by this address, it dont connect returning: Unable to open connection to MYIPv6 Host does not exist Please which files to check, commands to do to make IPv6 ssh connection working? In... | You should input the IPv6 address between brackets, like this: [2001:14c0:2:2f6f::6] then it will work. | 7 | 8 | 42,168 | 2013-10-05T18:18:44.727 | infrastructure | serverfault.com | |
49,000 | Data modeling membership and profiles | Anyone have an idea on how to solve this issue. Im modeling my membership and user profile DB and run into one issue I have to solve. I have this layout of tables. Membership (where all basic info is stored, like password etc.) UserProfile (where all extra info is stored, like name etc.) In my application I will have t... | First, you should never ever store user passwords! Read the following two articles before continuing: http://blog.moertel.com/posts/2006-12-15-never-store-passwords-in-a-database.html http://www.codinghorror.com/blog/2007/09/youre-probably-storing-passwords-incorrectly.html Your user profile table design depends on ext... | 1 | 1 | 2,157 | 2013-08-30T09:35:58.907 | warehouse_errors | dba.stackexchange.com | |
1,023,856 | nginx, handle 404s in another location with proxy_pass location | I have a basic django application setup under nginx. So far everything runs fine. What I need is a setup so I can handle 404s under /media/ with my proxy_pass application. Currently, it shows a bare nginx 404 error when no file is found. I've read https://nginx.org/en/docs/http/ngx_http_core_module.html#location , but ... | As easy as it gets, reading on and on. coming across this: https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms#when-does-location-block-evaluation-jump-to-other-locations So, basically, first try the public folder, if no match, @proxy_pass fallback. [CODE] | 0 | 0 | 1,365 | 2020-07-03T08:36:30.453 | infrastructure | serverfault.com | |
717,101 | Is there a downside to installing VNC? | We have an Intel NUC in my university's language department that will soon host a web application used by faculty and students in the department. The NUC runs Ubuntu (14.10). I'm comfortable with the terminal and SSH-ing into the server, however I find that a lot of tasks that I need to do are just so much easier throu... | There are a great many reasons: Attack surface: more programs, especially networked ones, means more opportunities for someone to find a bug and get in. Defect surface: as above, but replace "someone" with " Murphy ", and "get in" with "ruin your day". Actually, "ruin your day" probably applies to the previous point, t... | 20 | 42 | 2,271 | 2015-08-26T23:05:39.597 | infrastructure | serverfault.com | |
193,280 | Virtualmin Restore from Backup | I had to re install my VPS due to some fatal problems, it now has a clean version of ubuntu 8.04 and virtualmin. I have 18 domains that i have backed up on my home computer which i spent 3 hours uploading these files to the server so i could do a restore with them. But when i restore using the Virtualmin restore panel ... | It was to do with cross platform problems, when i re installed and used Ubuntu Server on both it works fine. | 0 | 0 | 607 | 2010-10-21T06:51:28.383 | hadoop_errors | serverfault.com | |
879,262 | Can't connect to WinRM on Domain controller | I have set up a domain controller server on Azure with Windows Server 2016. Now I want to connect to this server using PSSession. WinRM is enabled, all firewall rules are ok, inbound rules on Azure network security group too, but I can't connect to the server. Enter-PSSession : Connecting to remote server a.b.c.d faile... | I can connect to this server using RDP only, but no success with WinRM. To Winrm Azure VM, we should add port 5985 to Azure VM NSG inbound rules. Also we should add port 5985 to Windows server 2016 windows firewall inbound rules. We can follow this step to enable winrm for this VM: 1.Add port 5985 to Azure VM NSG inbou... | 1 | 1 | 4,220 | 2017-10-19T13:00:01.827 | infrastructure | serverfault.com | |
707,141 | Changing I/O scheduler for SSD | I have many CentOS systems, some of them have traditional hard disks, some SSD, and some mix of them. I would like to change scheduler for SSD to deadline. So at runtime I can simply scan check devices and for ones that have [CODE] as [CODE] . I could enable deadline by doing [CODE] But what about permanent changes? So... | While you could write a customer profile or modify one of the existing, I'd recommend [CODE] based on your hardware information. If you need more changes beyond that, just use "enterprise-storage" as a baseline. | 1 | 1 | 758 | 2015-07-20T17:17:58.860 | infrastructure | serverfault.com | |
298,237 | Nginx PHP mbstring | I used this tutorial to install nginx on my Centos server http://moon.mastipoint.net/research/nginx-php-fpm-mysql-on-centos.html . I have everything running, however, I can't figure out how to install the php mbstring extension. I've tried [CODE] but it returns the following error: [CODE] Thanks. | The script suggested by that blog post installs the Webtatic repo and uses it for its PHP packages. Try [CODE] | 0 | 1 | 2,373 | 2011-08-05T20:44:57.113 | database_errors | serverfault.com | |
359,936 | How to organize exchanges of non critical messages between servers in multiple data centers by using Kafka (or other solution)? | We need to organize a way to exchange messages between servers in multiple data centers. Messages are not critical. We just need to be able to send messages from any servers in any data centers to any other servers in any data centers. We are thinking to use Kafka as a message broker for this use case, but we are not s... | We have decided to use the architecture similar to the architecture which proposed Todd Palino (Staff Site Reliability Engineer from LinkedIn). I.e. the architecture they are using in LinkedIn. We have decided to use a unique topic for each server. Topic name has to have a data center identifier, and a server identifie... | 3 | 1 | 218 | 2017-10-29T21:54:00.043 | hadoop_errors | softwareengineering.stackexchange.com | |
414,024 | Apache httpd workers retry | I have an Apache httpd web server running mod_proxy and mod_proxy_balancer. The whole of /somedir is sent to 2 worker machines which service the requests using the round robin scheduler. Each worker machine is running IIS but I don't think that is important. I can demonstrate the load balancer working by repeatedly req... | I have spoken to a Dev on httpd mailing list and he confirmed that this feature has not been implemented in the current code base. I have also reviewed the code myself. The state machine inside mod_proxy_balancer cannot retry on HTTP error but can only do so in case of connection error. I tried to implement it myself b... | 7 | 4 | 10,832 | 2012-08-03T14:41:02.443 | database_errors | serverfault.com | |
934,456 | Squid: timeout after acl file load | I have installed Squid 3.5.23 like proxy on my server. I have downloaded a huge file (15MB) with domains to block and I have added this file to my squid.conf throught acl blocksites url_regex "file" (like many other time in many other conifiguration). After that I reload my squid configuration with */etc/init.d/squid r... | I've resolved using squidguard with squid! | 0 | 0 | 511 | 2018-10-08T08:40:56.290 | infrastructure | serverfault.com | |
254,259 | Using computed column in CharIndex | I am trying to first Concat two columns and then perform a search operation using [CODE] on that calculated column as below : [CODE] however, I am unable to use the calculated column (FullName) inside the [CODE] function. The error I am getting is : Invalid column name 'FullName'. What mistake am I committing here? | In addition to Scott's answer, you can just move the concat to the where clause as well. [CODE] Or, as a derived table. [CODE] As for why you can't use the alias in the [CODE] clause, it's because queries don't start with [CODE] . Your [CODE] is evaluated before the column list is selected. Julia Evans: SQL Queries don... | 1 | 3 | 180 | 2019-11-27T16:09:37.213 | warehouse_errors | dba.stackexchange.com | |
6,929 | How to disable instance recovery in ORACLE? | I want my DB to stop instance recovery during opening, how to do it? I want it because it crashes when trying to do instance recovery, I am testing some cases and want to disable it Is there any possibility? | Instance Recovery is necessary to get the database back to a consistent state after [CODE] or some other abnormal shutdown event. Oracle is never going to let you open the database in an inconsistent state, so no, there is no possibility that you can disable it. If Oracle is crashing during Instance Recovery you need t... | 3 | 6 | 2,149 | 2011-10-18T12:13:21.527 | database_errors | dba.stackexchange.com | |
852,161 | Active Directory Kerberos over VPN | I'm setting up an AD domain to authenticate my endpoints and users. The thing is my company frowns upon physical servers, so I've set up the domain on AWS. I am connecting to it via a VPN tunnel. Authentication, password sync etc works just fine, but I would also like to issue kerberos tickets for my users. We have all... | You need to ensure that SRV DNS records are created for the domain. Microsoft link | 0 | 1 | 1,844 | 2017-05-25T09:23:34.427 | api_errors | serverfault.com | |
1,039,230 | SSH connection timing out with Google Cloud | I'm pretty new to servers/cloud computing so please bear with me. Instance image: windows-server-1809-dc-core-for-containers-v20200908 My issue is that when I try to connect through SSH to my instance, the Putty client keeps timing out. But I can access the instance through Remote Desktop Connection just fine. I have a... | Turns out I didn't have SSH enabled server-side. Here's the web-page with the relevant info on how to do this. By default GCP Windows images do not have the SSH agent pre-installed. You will need to manually install the SSH agent | 0 | 0 | 847 | 2020-10-19T01:49:49.643 | pipeline_ops | serverfault.com | |
703,493 | how can I restrict kerberos service tickets by group? | I have multiple Linux servers all configured to allow kerberos authentication with active directory. All other user and group attributes reside in a separate directory server (389). I am able to log in and fetch user information (getent passwd, id, getent group, etc...) Now, each of these servers hosts a kerberized app... | Kerberos is meant for authentication , i.e. proving who someone is. It is not intended for authorization , i.e. figuring out what someone should be allowed to do. You'll need to use something else. To paraphrase, the application should say "Yes, I believe you are who you say you are, but you can't access what you're tr... | 3 | 1 | 1,238 | 2015-07-04T07:45:04.037 | api_errors | serverfault.com | |
294,323 | IIS7.5 Server - No sites running but returns 404 | I have two sites stopped in IIS7.5. Whenever I make a request to the site it allows the connection and returns HTTP Status 404 with the following message. Not Found HTTP Error 404. The requested resource is not found. Is there a way to ensure that IIS stops listening and doesn't reply to the request? | You might check and see if any other services or applications are listening to port 80. Maybe something else is answering and it's not either of your IIS sites after all. Weird though. | 2 | 2 | 253 | 2011-07-26T19:23:43.960 | api_errors | serverfault.com | |
822,881 | IIS Clusters within a Cluster | Updated to reflect John Mahowald's input After doing considerable research on the subject and exploring other options for our system, a cluster of clusters is not a good idea for the reasons that Mahowald gave and the following: Our system uses a custom database (not SQL), which can be easily partitioned to fit on a se... | Often saying cluster implies active-passive failover cluster, using some technology for high availability and coordination between nodes. Dealing with two-node clusters, scaling these to many nodes, or going active-active can be difficult. In many cases, active-active systems are instead behind a load balancer. Any sof... | -1 | 1 | 536 | 2016-12-27T15:02:18.813 | infrastructure | serverfault.com | |
238,715 | Routing port 25 to another machine | Say I have two Rackspace Cloudservers, or VPSes for that matter. I want my setup to be: Server1 would have my Apache web server Server2 would have my mail server where I want to setup postfix+mysql (virtual users, etc). Since Server1 is already visible to the web, I want that to be the domain for my mail. So let's say ... | You can do this with iptables, which is part of the Linux kernel. On your "public" server, run: [CODE] where XXX.XXX.XX.XX is the IP address of the server you want to forward to . You may need to change "eth0" to whatever your device is called. The first rule sets up the forwarding, and the second rule makes sure that ... | 2 | 0 | 3,911 | 2011-02-22T16:03:48.550 | database_errors | serverfault.com | |
107,259 | DECODE or CASE STATEMENT for PARAMETER in WHERE CLAUSE | I am having an issue where I need to make 1 parameter have multiple options, almost like a case statement or decode function. Here is a snippit of the query below, We were using 2 parameters so he can have either or, or use a wildcard but we want to narrow it down to 1 parameter. What I am looking for is.. if he where ... | I don't have a database on hand to test this but can't you do something like this: [CODE] With both of those predicates present you will default to both values if you enter [CODE] but be restricted to just one if you enter either [CODE] | 3 | 0 | 2,166 | 2015-07-16T20:20:06.587 | warehouse_errors | dba.stackexchange.com | |
16,098 | How to connect to remote PostgreSQL server | I wrote a web app, using java + spring+ PostgreSQL, which I have up and running. I have a tester for my system and I want him to be able to connect to my database directly to check the result of interaction with application. As always, the web is littered with articles on how to connect, but one simple thing they don't... | I suppose the simplest way is to let the tester use [CODE] to login to your server. Then the tester's execution environment is whatever your server exposes through the shell. (I presume that would include [CODE] .) As far as I know, all modern Unix derivatives install ssh by default. That would include Linux, Solaris, ... | 6 | 5 | 20,829 | 2012-04-04T23:20:56.663 | database_errors | dba.stackexchange.com | |
160,975 | SQL Server: Cannot resolve collation conflict between "Latin1_General_CI_AS" and "[garbage]" | So I'm writing a large UDF in T-SQL to be used in reporting. The UDF contains quite a few common table expressions. At one point I was adding another CTE: [CODE] When trying to persist the UDF mutation, I got this error: [CODE] And in fact on every attempt the message changed a little bit: [CODE] I was able to work aro... | UPDATE I finally had time to test this and was able to reproduce the problem. While not respecting collation precedence (noted in my original answer below) was a problem, it was not this problem (though both could be caused by the same underlying bug). Here is what I can now confirm: The O.P.'s test script (via Gist) d... | 4 | 4 | 33,746 | 2017-01-13T09:36:55.633 | data_quality | dba.stackexchange.com | |
25,255 | What stopping metric to chose to optimize 'sensitivity' for a GBM in H2O? | I am predicting a disease and want to get the highest possible sensitivity score for the predicted values on my validation and test set. What stopping metric can be used to optimize the sensitivity score on validation set? I have about 400 observations. The response variable is binary (0/1) and I have 40 predictor vari... | One solution to make the recall more important whitout getting to the problem mentionned by @Jurgy is to use $F_\beta$ , a modified version of $F_1$ where recall is considered $\beta$ time more important. As seen here : https://en.wikipedia.org/wiki/F1_score , $F_\beta$ can be formulated both in terms of recall/precisi... | 3 | 1 | 567 | 2017-11-30T14:25:55.480 | data_quality | datascience.stackexchange.com | |
136,200 | Limit disk I/O one program creates? | Hardware: one virtualization server. Dual Nehalem, 24GB RAM, 2 TB mirrored HD. Software: Debian, KVM, virt-manager on the server with several virtual machines that use Linux too. 2 TB Disk is a big LVM, each VM gets a logical volume and makes its own partitions in that. Problem: One of the programs that runs on one of ... | You want the [CODE] command. For idle priority (lowest priority): [CODE] You can use the regular [CODE] command to slow down the CPU priority as well which maybe would limit IO as a side effect too. You might be able to also limit the amount of FDs on the program with [CODE] . This might limit the max open files the ap... | 4 | 7 | 2,952 | 2010-04-27T11:59:05.493 | infrastructure | serverfault.com | |
71,472 | Importing SSL certificates on Win2k3 / IIS 6.0 | As part of a large site migration, I need to copy over numerous (about 50) SSL certificates for different sites. I have tried to export them on the current server and then import them on the new server, with no success. I can get everything to load and work correctly, but if I run SSLDiag on the new server, I get the e... | if I run SSLDiag on the new server, I get the error "#WARNING: You DON'T have a private key that corresponds to this certificate". [...] I can't find any way to import the key along with the certificate. I do not know the specifics of IIS, but yes, you positively need both the (public) TSL (SSL) certificate and the (pr... | 2 | 1 | 2,386 | 2009-10-05T20:05:45.003 | api_errors | serverfault.com | |
348,113 | RSAT slow performance | We are running Win 7 SP1 RSAT with a Server 2003 DC. We mainly use it to reset AD passwords. The performance is extremely slow (one minute of non-responsiveness per password reset). How do we improve the performance? | There aren't really enough details here to give a definitive answer, so I'll share this nugget of knowledge: If you have an AD problem, it's probably because of a DNS issue. If you checked DNS and you still have a problem, it's because you missed the DNS issue that's causing your problem. | 3 | 3 | 465 | 2012-01-09T15:46:34.010 | infrastructure | serverfault.com | |
321,212 | HTTP authentication is wrongfuly enabled on a server after i copied some files from that server to another | I have the strangest problem. Like the title says, I've moved some files from the first server to the second, i had http auth on the second server and now i have http auth on the first server but not on the second. That's right, I haven't uploaded any files from what i know on the first server. There are no .htpasswds ... | HTTP Auth should be configured in the Apache configuration file. It should only be configured in the .htaccess file if you do not have access to the Apache configuration file. Therefore, if you know that you have no .htaccess file in the directory in question, it only seems logical that your Auth is being implemented i... | -1 | 2 | 42 | 2011-10-13T16:46:11.347 | api_errors | serverfault.com | |
74,170 | SSL stopped working on IIS6 after Windows Update | I have a Windows 2003 image with IIS6 installed that just installed a block of Windows Updates. This webserver was using port 443 and an SSL certificate properly up until this patch, and it will no longer respond at all on port 443 to requests. I have tried removing and re-installing the certificate, and it will still ... | I think if you disable the Ec2Config service you can avoid this problem. My understanding is that after a bundle this service generates a new key for the server. Note that this may have other implications. | 2 | 1 | 417 | 2009-10-13T19:44:49.323 | data_quality | serverfault.com | |
159,424 | How to use function parameters in dynamic SQL with EXECUTE? | I have written a PL/pgSQL function in PostgreSQL 9.5. It compiles well but when I call it from pgAdmin3 it gives me an error. It seems like the dynamic query with columns to be replaced with the parameters passed in function is not working. Below is my function: [CODE] It compiles well but gives below error when I call... | You are confusing a couple of things. To pass values to [CODE] , use the [CODE] clause. You don't need [CODE] here. [CODE] Major points Do not concatenate parameter values into SQL strings. Very tedious, slow, error-prone and open to SQL injection. Instead pass values to [CODE] with the [CODE] clause. See: SQL injectio... | 9 | 18 | 35,396 | 2016-12-29T09:58:22.013 | database_errors | dba.stackexchange.com | |
1,022,434 | "Waiting for Google BigQuery" error while connecting to Microsoft Power BI | I have a few views created in Google BigQuery Project. I could connect all the GBQ data/views with my PBI till last week, but starting yesterday, I CAN NOT connect to 2 specific views from GBQ. It keeps on saying - "Waiting for GoogleBigQuery", and then nothing happens. Can someone assist here? Thanks a lot in advance! | I'm sharing this answer from this stack overflow thread . "I would not recommend using Power BI for Big Query analysis. As of Q1 2019 Power BI still do not support project billing unless manually editing the connexion script, it does not support Sheets federated tables, do not support nested and repeated fields and Pow... | 0 | 0 | 495 | 2020-06-22T07:42:46.320 | warehouse_errors | serverfault.com | |
1,113,329 | does it benefit if split multiple sites into multiple database in shared hosting env? | I have been wondering this for long time let's say I run a server where I hosted 2 PHP sites , they are both heavy on database query server is multi-core , let's say 4 core 8 thread with bunch of RAM spare frequently, specially during busy hour , I have been observing that in [CODE] or monitor tools the database proces... | Rate Per Second = RPS Suggestions to consider for your environment. For OS command prompt, ulimit -n 24000 and press Enter to enable more than 1024 table/file handles Review this url https://glassonionblog.wordpress.com/2013/01/27/increase-ulimit-and-file-descriptors-limit/ for making this change persistent across OS s... | 0 | 0 | 60 | 2022-10-18T04:27:39.607 | database_errors | serverfault.com | |
800,214 | How to build and update iptables latest version for CentOS 7 | Due to a bug (similar to this one) i'm facing with iptables in Centos 7, I'd like to update the version of iptables. [CODE] So I figured I'd update to either the latest (from their git) or to the tagged 1.6.0. I managed to add the libraries needed to get [CODE] to run, then managed to [CODE] and [CODE] and [CODE] . Now... | How about direct install [CODE] Ref: https://pkgs.org/search/?q=iptables | 2 | 1 | 7,488 | 2016-08-31T12:47:15.687 | infrastructure | serverfault.com | |
926,608 | How to setup an API, a webapp, a gitlab, and a showcase website on the same server? | I am coming today because, as a developer, I feel like I must know how to configure such things, however, I am getting stuck and I am not sure to understand why. I have 4 stuff let's say: An API ( [CODE] ) A WebApp ( [CODE] ) A Showcase website ( [CODE] ) A GitLab ( [CODE] ) In order to realise that, I bought a virtual... | If you really want to keep this all on one server, you could look into using SNI . As ETL was kind of suggesting, you can use NGINX here. If you aren't fimiliar with Docker you can just host the services on that server but use unique ports for each of them, then configure NGINX to handle the SNI portion and pass the tr... | 0 | 1 | 172 | 2018-08-16T00:25:44.540 | api_errors | serverfault.com | |
232,937 | TDD verifying dependency method invoked correctly | I am trying to follow TDD in my proj but I can't get my head around how to verify I am calling a dependency correctly or even if I should be trying to verify it. Here's the requirement: Write an AddSalesOrderTask class that is responsible for adding an order to an ERP system. The class can take any dependencies needed ... | If had a requirement that a SalesOrder needed to be added to an ERP system how would I do this in a TDD approach? In TDD you could start with unit tests for the mapper and the ERPClient, and afterwards add a test like yours for the [CODE] . You can also switch the order and start with tests for [CODE] first, especially... | 1 | 1 | 235 | 2014-03-19T17:35:27.790 | api_errors | softwareengineering.stackexchange.com | |
347,569 | When to actually use RAII? | I understand the concept of RAII: Use the destructor as a means to free resources, such as memory, or closing file handles/database connections. Coming from a Java background this was actually rather easy to understand because of the similarities to [CODE] . However, I do not quite understand when you actually should a... | when should I actually use RAII? When you acquire any resource in the member functions of your class and haven't delegated the responsibility to release those resources to another object/function, you need to make sure that you release those resources in the destructor. If your class acquires a file handle by using [CO... | 2 | 7 | 2,105 | 2017-04-21T21:03:08.057 | api_errors | softwareengineering.stackexchange.com | |
854,380 | Nginx proxy path return origin url | Nginx works as a proxy for a couple of websites. On one of the sites there is redirect to SSO login and in return URL displayed origin domain and not the proxy one. The conf: [CODE] How it works? When you load the /demo/monitor, you will be redirected to /Home/SignIn, from there you will be redirected to SSO website, f... | It seems that nginx only supports rewriting normalized URIs with [CODE] directive. Therefore one cannot alter any query arguments in the [CODE] header returned by the application. So, the only solution would be to change your application. | 0 | 0 | 1,258 | 2017-06-07T07:41:26.237 | infrastructure | serverfault.com | |
549,582 | Is disabling password login for SSH the same as deleting the password for all users? | I have a cloud server with only a root user. I SSH to it using RSA keys only. To make it more secure, I wanted to disable the password feature. I know that this can be done by editing the [CODE] file and changing [CODE] to [CODE] . I was wondering if simply deleting the root password via [CODE] would be the equivalent ... | Using public key authentication bypasses other authentication methods, so there's no need to use [CODE] , it's dangerous if someone tries to login as root and is not forced to present a public key. To accomplish what you want, disabling password authentication in sshd, use [CODE] in your [CODE] . This setting will not ... | 8 | 11 | 8,259 | 2013-10-30T07:42:42.600 | infrastructure | serverfault.com | |
829,880 | Replacing BTRFS snapshots with XFS+LVM | I working on replacing an unstable btrfs snapshot based backup system. One of the option was to go ZFS but it's not natively in the kernel. XFS was reliable for me since 10 years but as my research shows it cannot do snapshots on it's own, people are using it in conjunction with LVM. http://www.tecmint.com/take-snapsho... | LVM thinly provisioned snapshots - [CODE] - are dynamically allocated, so this might be an option. In my own benchmarks I found the performance of ext4+lvmthin to be considerably lower than btrfs for my backup applications. Although XFS doesn't have native snapshots (yet?), it does now have reflink support (although th... | 0 | 2 | 4,473 | 2017-02-01T13:06:52.887 | database_errors | serverfault.com | |
149,649 | Design: Calling back to the parent class | When modelling an object with children it's common to include the children via composition, as a member of the parent class. Sometimes however the children need to tell the parent something, they need to call a function of the parent. How can this be accomplished using C++? Some options are: Make the parent class globa... | First things first, this can be a code smell. The point of using composition for the parent/children is that the parent knows about the children but not vice versa. Especially if the relation is more of a 'contains' than 'is composed of'. A reference to the parent is possible and fairly common in C++. In other language... | 17 | 18 | 29,924 | 2012-05-22T12:36:00.783 | api_errors | softwareengineering.stackexchange.com | |
1,012,546 | Public facing WSUS - best practices | At the moment people from the company, who use company laptops at home, need to be connected via VPN to have Windows Update not throw errors, since the WSUS server is only for internal use. I know it's possible to make WSUS public-facing; given it's, essentially, an IIS website, this is relatively simple (and should, h... | my answers in order: 1) I would say that you create a replica downstream because it's easier to rebuild. 2) I would still use a replica if you are relying on a firewall to allow access to anyone from the internet to your wsus server. 3) In my experience, the replicas are easier to manage, I can't remember if I used to ... | 0 | 0 | 1,558 | 2020-04-16T09:27:48.653 | infrastructure | serverfault.com | |
262,572 | Select into query, insert fails, but the table is created | I am using SQL Server 2016 and I tried to the following query. [CODE] This query is obviously in error. Because it does not convert. However, the temporary table (#tmp) is created even if the query fails. Why? I think this is by design, but I want to know why. PDW (parallel datawarehouse) does not create temporary tabl... | In autocommit mode, [CODE] executes 2 separate transactions. The first creates the table and the second loads the table. The table create will be committed even if the subsequent insert portion of the statement fails. In old versions of SQL Server, both operations were done in a single atomic transaction but this was n... | 1 | 4 | 55 | 2020-03-24T05:27:51.383 | warehouse_errors | dba.stackexchange.com | |
382,854 | MIKROTIK - set proxy authentication | Is it possible to set mikrotik authetication to be used for set the connection of other applications to internet using mikrotik proxy? For example connect miranda IM using mikrotik proxy server: I've tried to use hotspot login, bypass hotspot for selected MAC/IP (IP Bindings rule and and login without credentials), but... | No. Here is the wiki link, nowhere is authentication mentioned. MikroTik used to have a Socks proxy, but even that didn't support authentication. EDIT: I e-mailed MikroTik support (support at mikrotik.com) to double check my info and got a reply from @Sergejs. The answer is definitely no. The Socks proxy still exists, ... | 3 | 3 | 9,028 | 2012-04-25T06:46:49.550 | api_errors | serverfault.com | |
228,517 | Does limiting commitment in Scrum lead to complacency? | In my organization Scrum teams almost never finish all of their stories 100%. I suggested that we commit to fewer stories each Sprint, but the R&D manager says if we do that people will still not complete the work, but will just do less of it thus slowing down development. He says there is a Student Syndrome at work he... | Your manager needs to understand that Student Syndrome / Parkinson's Law becomes a significantly larger problem when there is zero hope of hitting targets. Suddenly the time available for a task's completion is infinite. As an old colleague of mine used to put it, "Deadlines are just things that pass by here. We miss t... | 8 | 17 | 525 | 2014-02-11T11:09:58.397 | api_errors | softwareengineering.stackexchange.com | |
343,226 | Cacti System Utilities says wrong RRDTool and Graphs dont show up | Im using Cacti to try to monitor our network: www.cacti.net My graphs are just showing broken image links. I have just installed cacti version 0.8.7i for windows XP. Running RRDTools 1.4.5, and even went down to version 1.2.x I went to the system utilities link in cacti and selected "Technical Support" everything appea... | You can still run [CODE] and see if there is any data in the RRD files, if they exist. It is harmless and lets you know if the poller part is actually doing its job correctly. If the RRDs exist, but you are still getting errors then some part of PHP's library stuff may be unhappy. We had an issue with our CACTI install... | 0 | 1 | 12,542 | 2011-12-21T18:48:09.830 | infrastructure | serverfault.com | |
267,476 | ERROR 1067 (42000): Invalid default value for 'uploadedDate' | Hi everyone i am getting an error trying to run the below query ERROR 1067 (42000): Invalid default value for 'uploadedDate' [CODE] I have tried many many fixes on Google and other forums but none of them worked, few things that i have tried are Setting in my.cnf [CODE] Trying this [CODE] ...and many more. If someone c... | MariaDB (unlike MySQL) has special behavior if NULL is assigned to column that uses the TIMESTAMP data type. If the column is assigned the NULL value in an INSERT or UPDATE query (including implicit assigning via DEFAULT), then MariaDB will automatically initialize the column's value with the current date and time. So ... | 1 | 0 | 7,112 | 2020-05-19T18:00:52.093 | database_errors | dba.stackexchange.com | |
94,683 | Autoencoder train and test accuracy shooting to 99% on few epochs | I am trying to train an autoencoder for dimensionality reduction and hopefully for anomaly detection. My data specifications are as follows. Unlabeled 1 million data points 9 features I am trying to reduce it to 2 compressed features so I can have better visualization for clustering. My autoencoder is as follows where ... | The issue turned out to be MinMaxScaler. The issue was sorted after using standardization instead of normalization. (I am not sure as I did not completely verify but best possible guess as compressed output was mostly mapping one feature) One of the feature X had much higher values after normalization then the other fe... | 1 | 1 | 936 | 2021-05-20T13:21:05.280 | bi_errors | datascience.stackexchange.com | |
975,851 | HDD shows blank File System in Disk Management, unknown partition type | So I have a secondary internal HDD that was used as storage on an Ubuntu machine. I did a clean install on the boot drive with Server 2012R2 and the secondary drive shows the capacity in Disk Management but the File System shows as blank. When running diskpart, listing the partitions for the drive show the partition ty... | You can't change the data to NTFS as it is most probably an EXT4 filesystem. You can install this driver https://sourceforge.net/projects/ext2fsd/ to be able to read and write to your Ubuntu/linux partition. | 1 | 3 | 1,317 | 2019-07-19T00:42:38.790 | infrastructure | serverfault.com | |
564,424 | Can an SSL cert (not self-signed) be used to create another SSL cert for another host in the same domain? | I have a regular SSL certificate issued by Network Solutions for a given host, say "host A". Can I create another SSL cert for the wiki host that has the host A cert in its trust path and therefore works for use on the wiki host? Both hosts are in the same domain, for example: a.host.com wiki.host.com This question is ... | No . The reason is that there are different types of certificates for different purposes. The cert you have has the purpose of Server Authentication, which is reflected in the Enhanced Key Usage property: [CODE] Other certs have the purpose of: [CODE] To create (sign) other certificates, you need a certificate with the... | -1 | 3 | 101 | 2014-01-01T07:09:46.120 | api_errors | serverfault.com | |
214,376 | Error 1304 when creating a procedure after a drop if exists | I have some php code that runs queries stored in a database to update some thousand client databases. Now, for the first time, I needed to create a stored procedure because the update is complex. I'm executing the following queries: [CODE] This code is executed the first time each client accesses the system, in its own... | Is every client's updateProc100 identical? Or is that proc generated by code had has code specific to the client? If it is identical to all clients, suggest creating, but not dropping, a single copy of it in some 'common' [CODE] . Then only do [CODE] If there is something tailored to each client, could it be an argumen... | 1 | 0 | 7,895 | 2018-08-08T10:38:14.123 | database_errors | dba.stackexchange.com | |
222,688 | Using std::sort et al. with user-defined comparison routine | In the evaluator of a custom language, I would like to replace our own sort routines with [CODE] or other routines, possibly [CODE] . The problem is that we allow users of the language to supply their own comparison routine, and in the implementations I have tried, [CODE] does not take kindly to routines that fail to b... | Your question seems to boil down to whether or not C++'s [CODE] can be used with comparison functions that do not behave like the [CODE] operator. Operator [CODE] is a strict weak order, not a total order. Any container or algorithm in the C++ standard library that depends on operator [CODE] assume that it forms a stri... | 6 | 2 | 1,607 | 2013-12-30T16:33:00.380 | api_errors | softwareengineering.stackexchange.com | |
646,107 | "More than one MPM loaded" when trying to start apache on Vagrant Ubuntu box | Whenever I try [CODE] I receive the following message: [CODE] When I check [CODE] , there are no entries for this error. The only mods being included seem to be in [CODE] , and all I see listed there as related to "mpm" are: mpm_prefork.conf mpm_prefork.load In [CODE] , there are the following listed: mpm_event.conf mp... | This cannot happen in Apache v2.2 (which the question is tagged as), it can only happen in Apache v2.4 where you can compile the three [CODE] as dynamically loadable modules. Search all your configuration files for the following three lines. The paths maybe different of course, depending on your installation. There can... | 3 | 4 | 19,008 | 2014-11-21T15:14:26.760 | infrastructure | serverfault.com | |
236,733 | How can I handle Bots in a site that creates a database item every page | I have an eCommerce platform that creates a basket as soon as the user lands on the site if they don't already have one (from session or cookies). It then stores the basket information in session and in cookies to remember what the user has added to their basket for a month. The problem is if they aren't capable of hav... | Any agent that isn't capable of handling cookies or even sessions will probably also be unable to tell you reliably that it doesn't handle them correctly. However, indexing bots that crawl arbitrary pages will usually specify a characteristic user-agent string and/or obey your [CODE] rules, so you should deal with them... | -1 | 1 | 576 | 2014-04-23T12:53:19.377 | api_errors | softwareengineering.stackexchange.com | |
236,651 | Purposely raising exceptions to use catch | For a typical [CODE] wrapped with exception handling, is something like the following example a recommended practice to avoid code duplication? [CODE] instead of... [CODE] I know there is a slight performance hit, but I'm wondering if this is considered to be an acceptable practice. I currently do it the second method ... | Using exception handling for flow control is discouraged by Microsoft. And a round table on the topic is available. That being said, C# supports doing so, and I suppose it depends on the condition encountered whether an exception is the most appropriate response. | 10 | 12 | 7,110 | 2014-04-19T23:31:50.333 | api_errors | softwareengineering.stackexchange.com | |
954,947 | why is my apache2 server not serving localhost? | I have setup an apache2 server which successfully serves requests to my specific IP a-la [CODE] but requests (from the selfsame server) to localhost (a-la [CODE] ) fail with 403 errors, which furthermore aren't logged in /var/log/apache2/error.log. Does someone have a clue or two where the disconnect might be ? My /etc... | Check in your httpd.conf (where you configure the ports which you are listening to), if you specified the IP a.b.c.d by mistake. Documentation tells you [CODE] You can configure [CODE] or [CODE] to listen on port 80 with all NICs, but if you specify just one IP address, the server will not bind to localhost (127.0.0.1)... | 0 | 0 | 1,349 | 2019-02-20T17:24:56.167 | api_errors | serverfault.com | |
70,042 | Linux traffic shaping using TC | My internet connection goes like this: Internet Cisco Router (Public IP) Linux router/server (Public IP) Regular PCs (Public IPs) The Cisco router: the first Public IP allocated to my institution (/29) is programmed to send all packets through the Linux router The Linux router The second Public IP allocated to my insti... | Assuming eth0 is a 100mbit Ethernet connection to the Cisco Router, it should be something like this (Isn’t it?): [CODE] Would get me something like this: [CODE] And for each band: [CODE] And so on. The rules should be like this [CODE] and so on. Any suggestion, comments, etc? (I have no experience in the field) | 7 | 4 | 11,784 | 2009-09-30T16:41:46.503 | infrastructure | serverfault.com | |
1,049,713 | Which virtual alias concepts of Postfix can be migrated to Microsoft Exchange how? | My company uses some pretty basic Postfix setup, but makes heavily use of virtual aliases of different kinds. One example is using regular expressions to map special mail addresses of different test users for all kinds of different software tests to the mail addresses of the testers. This allows testers to easily creat... | Based on my research, I found a guide in GitHub : exchange-active-directory-to-postfix-map , the script in it is used to Exchange emails addresses from Active Directory to a Postfix map. " This project is a Python3 script that connects to Active Directory using LDAP protocol and extracts from there every email address ... | 0 | 0 | 106 | 2021-01-13T18:55:36.240 | infrastructure | serverfault.com | |
998,533 | DoS attack? Vast majority of apache workers in 'Reading Request' mode, site down last night, slow now | So I think my server might be suffering a Denial of Service attack. We got notified by pingdom (website monitoring) that our website was unavailable starting around 3AM. Early today we started checking apache error logs and saw a whole bunch of this error: AH00485: scoreboard is full, not at MaxRequestWorkers We also s... | Merely counting the number of connections on the scoreboard is not enough evidence to know clients are being rude and not following up on their connections. That is a drastic increase, so either the web app got very popular, or someone is making silly requests. Look at the rate of requests finished per second. Should b... | 2 | 1 | 1,487 | 2020-01-11T05:08:44.810 | pipeline_ops | serverfault.com | |
37,125 | How would you convince someone that the Page Object Model pattern is important? | I'm looking for canonical answers explaining the importance and advantages of the Page Object Model design pattern, specifically answers that I could point to for people who claim the pattern is unnecessary or outdated, or who claim to offer a "better" alternative. We have a lot of answers scattered around the site but... | Page objects are a classic example of encapsulation - they hide the details of the UI structure and widgetry from other components (the tests). It's a good design principle to look for situations like this as you develop - ask yourself "how can I hide some details from the rest of the software?" https://martinfowler.co... | 6 | 2 | 431 | 2019-01-02T16:47:09.577 | data_quality | sqa.stackexchange.com | |
104,397 | How to loop through multiple lists/dict? | I have the following code which finds the best value of [CODE] parameter in the [CODE] . Basically it is looping through the list of [CODE] and for each element, it is fitting the [CODE] to the model and in the end appending the result to an empty dataframe. [CODE] If I have more than 1 list through which I want to loo... | You can use the [CODE] class from scikit-learn for this. This allows you to supply a dictionary where the values are lists with possible values for that specific key. You can iterate over this to get all possible combinations between the specific hyperparameters, see also the examples from the documentation page: [CODE... | 0 | 1 | 847 | 2021-11-23T10:35:48.140 | data_quality | datascience.stackexchange.com | |
267,660 | Why does SQL Server Backupset table goes back a few months, but Agent Logs go back further? | I ran this script looking at the history of my backups for the past month. [CODE] No problem, but if I want to go back to Jan 2020, there are no records. So why does the Agent Log, with Log Type = 'DATABASE' go back further? Thanks | The Agent Log is limited by the number of entries, not by a date. The default is 1000 rows, with 100 rows per job. You can see this via Right-click SQL Server Agent in SSMS -> Properties -> History. So, if you've had fewer than that number of events since January, the history will go back further. You can change that l... | 1 | 2 | 217 | 2020-05-22T00:41:05.867 | database_errors | dba.stackexchange.com | |
177,235 | Connect to SQL Server over Internet | I want to connect to SQL Server via Internet: I turned off the firewall I enabled the the DMZ in the router, host address is 192.168.1.24 which is the SQL Server LAN IP I open port in the router for both SQL Server and SQL Server Browser (1433 - 1434) I checked the open port via (canyouseeme) website, and the result is... | The recommended way to do this is to set up a VPN between the two sites. The steps to do this vary depending on the particular firewall/router being used. If a VPN cannot be used, the following information is provided for how to set up a connection with port mapping. If port-mapping is used, it should only be used in c... | 7 | 8 | 49,351 | 2017-06-26T02:21:56.337 | database_errors | dba.stackexchange.com | |
634,294 | Nodejs Nginx error: (13: Permission denied) while connecting to upstream | I'm trying to run multiple Nodejs applications on Nginx server running on CentOS 7. I noticed that when I run a Nodejs app on some ports I get an 502 Bad Gateway error in the browser so I checked the error logs: [CODE] when I change the app to listen to 8008 for example everything is working fine. I checked permissions... | By default SELinux only allows the web server to make outbound connections to a limited set of ports. [CODE] To fix the problem, you simply need to add your own desired port number to the list. [CODE] Then you will see the port number added into the list, and your connections should then work. [CODE] | 8 | 24 | 20,814 | 2014-10-07T21:52:46.273 | infrastructure | serverfault.com | |
396,414 | Documenting Dependency Injection Parameters | Should documentation be added for constructor parameters that are passed via dependency injection? In my current project I have decided to omit documentation to describe each of these parameters and my reasoning for this is as follows: These constructors are not meant to be called by a developer (outside of unit testin... | If you can't refactor without changing your comments your comments are too coupled to your code. Comments should never describe how the code works. Comments should describe why the code is does what it does. Or at least, what it was supposed to do. Show your intent not your method of achieving your intent. As Doc Brown... | 4 | 4 | 495 | 2019-08-23T20:11:22.753 | data_quality | softwareengineering.stackexchange.com | |
564,135 | MySQL Tuning -- High Memory Usage | I'm trying to tune a mysql db using mysqltuner. Mysqltuner is advising that I increase the join_buffer_size and the query_cache_size. At the same time, however, it is warning that my max memory usage is high, which it is at 200%+ of installed RAM (which is 2GB). The bind I'm in is of course that if I do what mysqltuner... | You've got a rather strange database here - it's doing a lot more writes than reads. It's really important that you tune your DBMS to run well with Innodb or you tune it to run well with MyISAM - but you seem to have a mixture of both table types. You cannot have a DBMS which is optimal with both. You need to start mig... | 2 | 2 | 9,685 | 2013-12-30T10:32:41.663 | hadoop_errors | serverfault.com | |
125,079 | How do you solve large dependencies among files? | So basically I make several programs. Of course one program often used code from another. So I have my own personal "library" Well, I do write jerk codes. Then When I open a project, the project will require another file. I add that file and that file require another file, then I add that file and that file requires an... | You modularize and make libraries. Each library may contain much more than you will need in a project, but it is a single atomic unit that is easy to handle. For starters, keep the library version number in the file name. Remember to use a SCM like git. It will be very helpful in the long run. | -2 | 3 | 196 | 2011-12-14T11:40:20.027 | api_errors | softwareengineering.stackexchange.com | |
447,142 | Troubles with apache and virtual hosts | I have a BIG problem. I have VPS with Debian OS, and LAMP installed. Fresh install. For control panel i using Webmin. Now i trying to setup multiple sub-domains on my server using webmin for example: [CODE] But problem what is happening is next, while i using no virtual hosts, everything works perfectly when i accessin... | I fixed it by deleting all exist virtual hosts and manualy adding these code to my httpd.conf for each virtual host: [CODE] So if you have(or you haved) same problem, just edit these lines to match your own criteria and use it. You can use this editor/generator which i just created, to customize this code. http://apps.... | 2 | 1 | 130 | 2012-11-09T16:20:38.043 | infrastructure | serverfault.com | |
134,365 | My email server is blacklisted what can I do | I have discovered that my email server has been blacklisted by http://www.five-ten-sg.com What affect is that going to have on my sending and receiving emails and is there anything I can do about it to fix it. All the emails I am sending are going out by IIS6 SMTP server, so any suggestions for how to configure this be... | Have you tried going to http://www.five-ten-sg.com/blackhole.php and asking them why you are blacklisted? If you are listed as a spammer everybody who uses that blacklist are likely to drop your mail like it was anthrax covered... | 1 | 3 | 291 | 2010-04-21T09:45:52.927 | infrastructure | serverfault.com | |
246,909 | Simple QoS policy on Cisco 877 DSL doesn't appear to do anything | I'm trying to get a fairly simple QoS policy up and running on my DSL line using a Cisco 877. My aims are fairly simple - make sure that realtime and management stuff like RTP and SSH works regardless of congestion, then make sure that HTTP, FTP, SMTP etc. protocols get a good shout in times of congestion and throttle ... | The fundamental problem you have is that QoS in the inbound direction (in to your router) to control traffic headed in your direction is relatively useless. The congestion is occurring at the egress of the ISP device to which your Router attaches. That ISP interface has no relevant QoS applied - it is most certainly a ... | 0 | 3 | 2,863 | 2011-03-13T18:15:23.377 | infrastructure | serverfault.com | |
97,143 | How to manage many-to-many relationships when there is also a hierarchy among the many? | I have these entities – employee, task, phase, project – and these relationships: project 1:m phase phase 1:m task employee m:m task, phase, project The first two relationships form a simple part-of hierarchy. The semantics of the third relationship are slightly complex. An employee, in any given week, can be assigned ... | Martin, If I am understanding correctly, the employee can be associated with one or more tasks, phases, and projects. This implies a many to many relationship between an employee and a task, phase, or project. If this is the case, throw out the idea of the assignment table completely. Instead, create three different ju... | 1 | 1 | 1,069 | 2015-04-06T19:24:58.647 | warehouse_errors | dba.stackexchange.com | |
849,428 | HTTPS showing cpe.huawei.com instead of my certificate | I have ubuntu 14 server that runs apache and has huawei router. Recently I purchased and installed a SSL certificate for my domain (say www.abc.com) according to guide here . Then I tested my ssl cert using their tool. and it gives an error as common name not matched. Tool say common name as [CODE] So I also checked us... | "CPE" is a telco abbreviation for "Customer Premise Equipment", i.e. anything that they control but that they put on the customer site. In this case, it's going to refer to your router (it also commonly used for an ONT). Your huawei router is intercepting requests directed to your public IP address on port 443. My gues... | 0 | 2 | 621 | 2017-05-11T04:51:54.583 | api_errors | serverfault.com | |
141,657 | NFS caching on Ubuntu | We run a bunch of ubuntu servers (mostly 8.04 LTS) which all mount an nfs share at /nfs. We use the nfs primarily for two purposes: symlinking config files (such as apache vhosts) reading & writing uploaded files This all works great except it makes us fully dependent on the central NFS server (which is a DRBD cluster ... | Check glusterfs, I think you can easily get it to do what you want. Note: this is replacing NFS. | 1 | 3 | 1,052 | 2010-05-13T19:28:10.053 | pipeline_ops | serverfault.com | |
146,718 | What ports tend to be unfiltered by boneheaded firewalls? | I like to be able to ssh into my server (shocking, I know). The problem comes when I'm traveling, where I face a variety of firewalls in hotels and other institutions, having a variety of configurations, sometimes quite boneheaded. I'd like to set up an sshd listening on a port that has a high probability of getting th... | I don't see why 443 shouldn't work. However, i always question running sshd on a port other than 22. I haven't tried, myself, but is security via obscurity. It provides a mostly false sense of security. Many bots will take the time to port scan a host before attacking, or if 22 is closed. If 22 works on most firewalls,... | 2 | 1 | 924 | 2010-05-30T20:06:54.633 | infrastructure | serverfault.com | |
700,303 | 80% memory utilization on server- is this just caching? | Memory utilization is very high on this 2008 R2 server, but I think it might just be caching RAM- performance on the server is fine and CPU utilization is very low. It is running DFSR which I believe claims a lot of RAM. So here is what I see in task manager: Looking a the processes it doesn't look like it adds up to 3... | You have a kernel memory leak. The nonpaged pool is 2.5GB. You can use poolmon to see which driver is causing the high usage. Install the Windows WDK , run poolmon, sort it via P after pool type so that non paged is on top and via B after bytes to see the tag which uses most memory. Now look which pooltag uses most mem... | 2 | 6 | 6,395 | 2015-06-19T17:14:27.677 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.