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 |
|---|---|---|---|---|---|---|---|---|---|---|
148,642 | What's the best way to clean up after a fork bomb? | [CODE] Uh oh. Looks like someone made a fork bomb. Where I used to work, this pretty much meant that the shared server would need to be power-cycled, since even the sysadmins with root often couldn't get the problem cleaned up. Often, they couldn't even get a prompt. I've heard a few tricks (notably, to send STOP signa... | Prevent the fork bomb from exhausting the process limit with a reasonable per user process limit using ulimit . That way, a single user will exhaust their process quota long before the system limit is reached. | 22 | 11 | 8,438 | 2008-10-07T22:19:02.163 | infrastructure | serverfault.com | |
133,720 | Why does Deadlock occur for this INSERT/UPDATE combination despite seemingly holding an X lock? | I am regularly seeing deadlocks in a production MySQL 5.5 database but cannot determine exactly what the cause is. For context, we're inserting new records into a database which are triggered by another system. In some cases, these actions can be triggered twice, which has caused exceptions where the system correctly c... | Can some or all of the 4 steps be replaced by a single query: [CODE] or maybe [CODE] and check [CODE] ? It would be better if you showed us all the SQL between [CODE] and [CODE] . Are you doing any time-consuming processing between [CODE] and [CODE] ? Can any of it be moved out. The faster the transaction runs, the les... | 3 | 1 | 1,596 | 2016-03-29T18:44:59.890 | database_errors | dba.stackexchange.com | |
1,094,273 | zpool import Failure: can I recover data? | I have a personal zpool server that was going down, and I want to know if there is a way to recover what I have. Most of my critical data (photos, tax into, etc) got backuped to OneDrive, so I am mostly ok, but would like the rest of the data if possible. I watched the LTT video on ZFS maintenance/data loss, saw I have... | If you want to backup zpool, you can research more with key "zfs snapshot", now you can use 2 external tools (I'm using them for backup and restore) https://www.zfsnap.org/ https://github.com/someone1/zfsbackup-go Take snapshot zpool with name "music-pool" and rolling-out after 3 days [CODE] Full backup snapshot to ext... | 0 | 0 | 892 | 2022-02-20T19:43:39.760 | database_errors | serverfault.com | |
292,713 | Multiple left (I think) joins to obtain unrelated records from junction table | I have a database in which many-to-many relationships between records (e.g., customers, suppliers, products) work through a junction table that contains the ID (a unique code (i.e., no two records in the database, regardless of their table, have the same ID), not an autonumber) of the two related records. [CODE] Record... | Given your setup, you know that a customer linked to a given supplier can be found either in [CODE] or in [CODE] Therefore, in order to get the customers not linked to the said supplier, you need to select the [CODE] rows that are not found in either: [CODE] You can, of course, [CODE] the two subsets and thus use a sin... | 1 | 1 | 75 | 2021-06-03T12:33:53.537 | warehouse_errors | dba.stackexchange.com | |
375,869 | About radiusclient command | I have installed freeradius server 2.1.12 and freeradius client 1.1.6 on different virtual machine (redhat linux) ,and tested the server using radtest which is running . I have set up the connection between client and server and tested the connection using radlogin which is also running properly, but the problem is wit... | If you are trying to check your radius server installation and configuration, it is enough to use any radius client such as [CODE] or [CODE] . Do you need to test it specifically with [CODE] ? I did not try this tool before. I think it will be a good idea to find an example on how to use it. | 1 | 2 | 4,713 | 2012-04-02T11:33:49.127 | infrastructure | serverfault.com | |
432,995 | Relating ping to perceived browser GUI response | We periodically get complaints of poor GUI (browser page) response that we need to explore. I am looking for a quick and cheap first check to see if the issue is network latency, or server performance. Has anyone encountered any discussion of ping time and perceived GUI response? I understand that GUI response is compl... | At least two full round-trips are required over the network to start loading a page, and that's after the DNS lookup occurs, which can sometimes take even longer. So, take your ping times and double them for how they affect a page load. A browser debugging tool like Firebug or Chrome's developer tools will tell you spe... | 1 | 3 | 166 | 2012-09-28T15:34:26.890 | api_errors | serverfault.com | |
360,618 | How to prefix logs with date and time | How to prefix all logs with date time before they are written to the log file? Let's say I am logging unexpected errors in crontab in the following way: [CODE] Is there an easy way to prefix (perhaps by piping through some third party command) all lines in the output.log with the date time so I would know when a given ... | One way is to use logger (1) (usually [CODE] ), and simply send everything to syslog: [CODE] Syslog will automatically prepend the time/date to the log entry for you, and write this information to [CODE] (or whatever is specified in [CODE] ). And this way, you have the advantage of all of the normal syslog/logrotation ... | 1 | 2 | 931 | 2012-02-15T23:42:38.280 | infrastructure | serverfault.com | |
549,483 | nrpe check_load results in unknown error? | I'm using the nagios check_load plugin. I have the following line in my [CODE] [CODE] And on my icinga server in [CODE] I have the following service definition [CODE] When I check my icinga dashboard it lists this check as a pink colored, unknown error. Is there anything I need to change in my configuration to get ever... | Try running the command on the server with the same arguments and see if it responds. it will tell you the error or if it's an unknown error chances are you just need to either enable sudo with no password for user nagios OR chmod 4755 and ownership root:nagios the check script. | 0 | 0 | 3,552 | 2013-10-29T19:42:42.223 | bi_errors | serverfault.com | |
106,228 | Data Preparation for dates | I have two columns, a birth year and the first year of being a customer. There is a large number of samples that have a birth year less than the first year of being a customer which does not make sense in real life. For example, a customer is born in 1992 and was a customer since 1983. I would like to know to can I sol... | Given that you cannot modify the data, I assume you are looking for data analysis techniques that can highlight a systematic pattern? If so we need more info. Make use of context of the problem. Is the product young children or grown adults could buy? How was the data collected? Could some entries be from scammers or l... | 0 | 1 | 40 | 2021-12-17T22:21:55.190 | data_quality | datascience.stackexchange.com | |
132,253 | ORA-01652 : unable to extend temp segment by 128 in tablespace HFDORA_TEMP | I have increased temp tablespace [CODE] by the following command [CODE] But after increasing it same error is coming. Kindly suggest. ORA-01652 : unable to extend temp segment by 128 in tablespace HFDORA_TEMP | Error message [CODE] means: you don't have enough free temp space (enough free memory inside temp tablespace) or local temp segment not being able to extent space even though there is space in other instances. To troubleshoot this issue: execute the following commands: [CODE] then take the result from first SQL command... | 3 | 4 | 49,870 | 2016-03-15T07:45:10.017 | warehouse_errors | dba.stackexchange.com | |
63,993 | Detect blur image using ssdmobilenet and tensorflowlite | I have clear images of cards vs blurry images of card. My task is to capture photo when the image is not blurry, as you can see from the description I need this code to run in real time on android device. I have done some background reserarch on this topic 'Identify blurry image'. And found out few interesting solution... | One idea is to use a shallow (a handful of layers) CNN. Deep CNN's are good at detecting objects in images. Shallow networks focus on lower-level features, such as edges and textures and colors. So, my suggestion is to train a simpler network on a larger training set by training it on image patches rather than on full ... | 1 | 0 | 2,708 | 2019-11-29T13:32:19.713 | api_errors | datascience.stackexchange.com | |
536,474 | Serving .APK file from IIS 8 | I have created an .APK mime type and put up a test APK on the default IIS site. Everything downloads fine on an Android handset. Mime-type : application/vnd.android.package-archive I've then created a NEW site to host this file and added the same mime-type etc. When I download the file on an Andoird handset it sees the... | Turned out to be a certificate error. In the test environment the root CA was not trusted. Once this was trusted it worked fine. | 1 | 0 | 1,939 | 2013-09-05T00:34:25.660 | hadoop_errors | serverfault.com | |
349,297 | WPF – Arrangable row of rectangles | I originally posted this on StackOverflow, but got the message that this was the correct forum for such a question. https://stackoverflow.com/questions/44077183/wpf-arrangable-row-of-rectangles . I am in the process of creating a small application which has the task of visualizing sorting algorithms. I am using the MVV... | Your problem is more animating then it is sorting. A sorting algorithm is expected to take an arbitrary number of elements and sort them. What you're doing is animating a fixed number of squares. You can work out the sorting on paper by hand. Once you have that what you need to do is find ways to break down what you wa... | 1 | 1 | 523 | 2017-05-19T20:15:36.477 | api_errors | softwareengineering.stackexchange.com | |
197,848 | Taking backups into the same disks as datafiles? | Our people who are managing databases (I can't call them DBA's because of the lack of DBA skills) are planning to take backups into the same physical disks as the database data (.mdf) files. Then all these backups are read into a tape. Although they are moving backups into the tape, I think that they should build a new... | It depends on whether or not you have a performance problem, or are close to a performance problem, already. If your disks are substantially under-utilized, there's no issue and cost becomes more of a concern than performance. If there is a problem, obviously more contention will be detrimental. It's impossible to say ... | 1 | 3 | 76 | 2010-11-03T18:54:02.877 | database_errors | serverfault.com | |
990,208 | Send User Credentials via PowerShell (Formatting) | Does anyone have an idea on how to fix this issue. I'm working on automating new user creation and notification in Active Directory (AD). I have written a PS script to import & create new users from a CSV file in PowerShell and I will like to communicate the "userid" and password to each of the users using PS Send-Mail... | I've found this post on Stackoverflow for passing credentials to Send-MailMessage Nick answered Sep 17 '12 at 16:01 I love to make functions for things, and I need all the practice I can get, I went ahead and wrote this: [CODE] To call it, just use this command: [CODE] Also, for your second part about the formatting, p... | 0 | 1 | 680 | 2019-11-01T01:45:37.273 | infrastructure | serverfault.com | |
1,041,551 | gunicorn stopped finding wsgi directory | I configured a django app with nginx gunicorn and supervisor. Everything has been working fine for months until today. I have not touched any of the config files but somehow I now get a [CODE] response when trying to access any page of my site. Gunicorn is at fault here, here the log that it is being output: [CODE] I a... | I found a solution to this issue in case someone stumble her, DISCLAIMER ^^ I am not capable of explaining why it stopped working and why the solution fixed the issue. the error shown in gunicorn log appeared to be a kind of default issue and the real issue was silent. I suspect it to be a CPU problem. I simply went to... | 1 | 0 | 805 | 2020-11-06T15:36:06.577 | infrastructure | serverfault.com | |
520,506 | Exchange 2013 SSL Warning in Outlook | I am currently having trouble with the last stage of configuring Exchange/Outlook in our organisation. We are having issues with an SSL Warning when opening Outlook 2013, where it is failing to validate the SSL, as it is using our (old) Internal URL (exchange.internal.local). Please see the config within Exchange below... | Ok - Changing the Autodiscover from a DNS A Record to an SRV Record fixed. Also this was still popping up on the Test Machines which were already setup. On deleting/re-adding the Exchange Accounts to Outlook this fixed. | 1 | 0 | 4,335 | 2013-07-03T11:31:18.050 | infrastructure | serverfault.com | |
274,877 | Testing generic errors | I've got a program that validates it's input, and then errors. So far for each kind of error I created a new derived class. But this was getting pretty unwieldy (the input is complex so there are many possible errors) so instead I made the base more flexible and removed all the derived classes. The core resulting issue... | I believe the standard approach is to use an error code (of enum type) and an error message (of string type). The "code" makes it easy to programmatically identify a specific type of error ( [CODE] ), and the "message" makes it easy to show something meaningful to the user ( [CODE] ). A new derived exception class shou... | -1 | 1 | 91 | 2015-03-01T19:42:57.947 | api_errors | softwareengineering.stackexchange.com | |
304,833 | How to scramble a word, keeping first and last characters the same? | I have a task, which is to scramble a single word, whose size is greater than 3 letters. The scrambled word must not be equal to the original, and the first and last letters of the word must remain the same. For example, the word [CODE] , could give the one of the following results: satck scatk stcak sactk etc While wo... | Something along the following lines; treating the string as a character array: Handle strings that are 3 or fewer characters, or all the middle characters are the same Create a sublist of the letters excluding the first and last Fisher-Yates shuffle the middle letters until they don't match the original (this can be do... | -1 | 2 | 5,318 | 2015-12-11T14:54:45.870 | database_errors | softwareengineering.stackexchange.com | |
285,455 | Which objectClasses are compatible for Ubuntu Ldap Authentication | I have an Ubuntu server running slapd. I've configured the same box as an ldap client. Logging into Ubuntu via LDAP works great as long as I follow these steps: Create group named 'testgroup1' using [CODE] Create user named 'testuser1' using [CODE] and add to [CODE] Then, I can successfully login to the server as testu... | I figured it out: Even though I added objectClass of "PosixAccount" to the existing LDAP entries, I needed to also add two attributes: loginShell and homeDirectory. Once those were added to an existing entry, I could login. | 0 | 0 | 286 | 2011-06-29T18:59:04.467 | api_errors | serverfault.com | |
2,730 | What specific tests need to be performed under Database migration from DB2 to Oracle? | Currently I am going to be testing (I am a Data Analyst) of a larger migration project where they are planning to migrate from DB2 to Oracle. My question may be little broader; however any information which relates to the following questions would certainly be helpful. 1) How to validate both under Source and Target ta... | Normally for a straight forward data migration it is enough to know that all data is complete, valid and accessible for the application. Typically subtle differences may pop-up with some data-types like those with date, time, binary fields and long text fields. In a straight forward data migration, data from table a fi... | 4 | 4 | 4,894 | 2011-05-15T03:03:16.180 | database_errors | dba.stackexchange.com | |
262,424 | Why is the result of a totally deterministic and all-encompassing "case" in select query in view nullable? | I have a table, with [CODE] as the primary key. [CODE] When I look at this table in [CODE] , I see this image of course: As you can see, column [CODE] is not null . Then I create a dummy view on this dummy table: [CODE] But this time, in Object Explorer I see this result: As you can see, in spite of this fact that my [... | To answer your actual question - I have no idea. My guess is that the parser can examine columns directly to determine nullability. If there's anything between the column reference and the output - such as a function or an expression - that might affect the nullability the output is assumed to be nullable. MS simply ha... | 4 | 6 | 352 | 2020-03-21T10:54:14.107 | database_errors | dba.stackexchange.com | |
1,138,413 | Exposing a LAN through an OpenVPN server running in a virtual machine | There's an OpenVPN server running in a VirtualBox virtual machine with NAT networking. The VM is running on a physical host, and that host is attached to a LAN. I would like to make the VM's host's LAN ( [CODE] ) available over the VPN. The VPN network is [CODE] . Here's what I've done: I've configured OpenVPN and clie... | You can add a static route on the VirtualBox host to let it know about the VPN client subnet. To do this, you can run the following command on the VirtualBox host: [CODE] This command tells the VirtualBox host that the subnet 10.8.0.0/24 is reachable through the VPN server's IP address (10.0.2.15). With this setup, the... | 0 | 0 | 332 | 2023-07-21T17:38:08.780 | infrastructure | serverfault.com | |
1,001,140 | RD gateway with Azure MFA | I followed this GUIDE https://docs.microsoft.com/en-ca/azure/active-directory/authentication/howto-mfa-nps-extension-rdg And the issue is all my users are able to login without getting prompted for the MFA.. this is the logs I see on the NPS server with Extension.. NPS Extension for Azure MFA: Radius request is missing... | I have the same issue. Apparently on the guide there are few steps missing. Looking online I found Go To Azure - Enteprise Apps - Filter per Microsoft and check if the following are enabled Azure Multi Factor Client Auth Azure Multi Factor Connector Unfortunately, for me it didn't work and I have a different error NPS ... | 1 | 0 | 3,195 | 2020-01-30T21:26:28.043 | api_errors | serverfault.com | |
328,925 | Moving window search which stops at longest substring matches | I'm trying to create a search which searches a field for a longest matches possible and then stop. Here's the basic idea in Python for single match: [CODE] This generates a moving window which gets smaller and smaller: [CODE] The search will be: [CODE] Which outputs: [CODE] Now to PostgreSQL (v15.3) side: [CODE] Search... | Perhaps this will satisfy: [CODE] | 2 | 0 | 57 | 2023-07-04T13:43:12.470 | database_errors | dba.stackexchange.com | |
373,512 | Set maximum requests per IP in IIS7 | I have a web site deployed to IIS 7. One page it is has 15+ .js files linked to it. Last two files referenced in [CODE] tag (loaded last) get 403 forbidden response from server. I have enabled FailedRequestTracing and have been able to see a detailed error code which is 403.502. I suppose over a very short period of ti... | Solved it. It turns out I had IIS Dynamic IP Restrictions plugin installed on the web server, with default configuration set to 20 max requests per 200 milliseconds. After increasing the limit the problem was gone. | 2 | 2 | 3,560 | 2012-03-26T16:12:38.087 | api_errors | serverfault.com | |
961,068 | Connect to a IPSec/L2TP VPN pre-shared-key | I want to connect to an IPSec secured L2TP tunnelled VPN network with a pre-shared-key. I'm using [CODE] for this. As [CODE] as well as for [CODE] I have: [CODE] Otherwise, I have like the standard settings. I've looked into the journal of my operating system but there I only see that the [CODE] /var/log/auth.log` that... | It seems to be a pppd related issue, could you do [CODE] to increase pppd debugging, see Debugging section of NetworkManager-l2tp's README.md file : https://github.com/nm-l2tp/NetworkManager-l2tp/blob/nm-1-2/README.md note: pppd logging output won't be going to stdout/stderr, so you'll need to use journalctl to view it... | 1 | 0 | 1,754 | 2019-04-02T09:31:14.970 | infrastructure | serverfault.com | |
17,517 | Jmeter CSV Data Set Config to skip first row | I am trying to run HTTP request using JMeter with parameters inside .csv file and it is working as expected. As i am using 8 different request, with different inputs, header would be really helpful. The problem is that i don't know how to make Jmeter to skip first row while | From the JMeter documentation : Versions of JMeter after 2.3.4 support CSV files which have a header line defining the column names. To enable this, leave the "Variable Names" field empty. The correct delimiter must be provided. | 0 | 2 | 5,771 | 2016-03-10T16:30:00.823 | data_quality | sqa.stackexchange.com | |
876,561 | i used cloudformation to create wordpress blog but domain not showing properly | I used cloudformation to create wordpress blog and then bought a domain from godaddy website and forwarded it to the domain name provided by cloudformation. -->godaddy domain: yetanotherdeveloper.in -->cloudformation domain: "ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/" Problem 1: when i search godad... | Most likely Wordpress is configured incorrectly. Go into the admin panel, settings, general, and check that your domain name "yetanotherdeveloper.in" is in there. I suspect you have the ec2 URL in there. CloudFormation is irrelevent in this context. You've installed Wordpress to a subdirectory - why have you done that?... | 0 | 0 | 74 | 2017-10-03T05:14:30.770 | database_errors | serverfault.com | |
954,451 | Lost connection to main interface after brctl addif | I was setting up a server recently, and I was supposed to assign one of the public IP available for the server to a KVM guest. The server have the following setup: eno1 - main internet connection of the host, assigned with a public ip lo - loopback virbr0 - bridge to virtual nic created by KVM using Open Nebula I assig... | You need a bridge on the host. Let's say it has address x.x.x.x now. [CODE] These are the settings to configure the network at boot. If you have only have a single nic, reboot your host with these settings to activate the bridge. Or restart networking with screen or tmux . If you have a dual nic setup, you don't need t... | 2 | 1 | 2,821 | 2019-02-18T08:38:45.833 | infrastructure | serverfault.com | |
84,307 | 60 minutes to shut down sql server service? | We recently merged with a new company and they have a server that has 265 DBs on it (6.6tb of mdfs). Shortly after we merged the other DBA said it takes 60 minutes to shut down the services which I thought was incredibly high. Last night they stopped and started the services and sure enough it took 60 minutes. I looked... | It shouldn't take 60 minutes to shutdown the server. As you mentioned, the DBA is performing a pause before shutting down - this is probably the major contributor to the slow shutdown. Unless he's planning to resume the database, there isn't normally reason to pause. Removing this step from the procedure should cut dow... | 1 | 3 | 5,364 | 2014-12-04T14:34:19.620 | database_errors | dba.stackexchange.com | |
1,046,751 | what's the meaning of Requested resource=<memory:-1, vCores:1> in hadoop web ui? | I want to insert some data in to hive table. but it is stuck. So I go to the hadoop web ui and find the following information: org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException: Invalid resource request, requested resource type=[memory-mb] Requested resource= , maximum allowed allocation= , please note ... | I just solved it,it's caused by tez. The solution is here | 0 | 0 | 724 | 2020-12-18T13:05:07.707 | hadoop_errors | serverfault.com | |
321,657 | Nginx with HTTPS:// Keeps download /index.php but everything else works fine | I've installed nginx and transfer my server over to nginx (from apache). I made a subdomain which has SSL. My http:// works perfect.. But when I access https://secure.gamegambit.com it starts to download file. Yet any other url with https:// works fine such as https://secure.gamegambit.com/gamegambit-wiki.html nginx de... | The location directive for php files should be like the following: [CODE] Have a look t this tutorial for the full setup details and configuration settings: http://www.idolbin.com/blog/server-management/vps-setup-guide/enable-https-httpssl-in-nginx-web-server/ | 1 | 1 | 2,057 | 2011-10-14T23:53:14.433 | infrastructure | serverfault.com | |
126,534 | Understanding mail failure notices, 554 | I'd like to confirm the meaining of a mail failure notice. Here's the message [CODE] The way I understand this is, that 1.2.3.4 is not setup to receive mail for this domain. dig domain.com MX shows [CODE] (1.2.3.4 is mx.anotherdomain.com.). The puzzling part is that I have reports that messages sent from gmail get deli... | It means to deliver the mail 1.2.3.4 would have to pass it on to another mailserver (because 1.2.3.4 is not the final destination) and it does not want to do that. | 2 | 1 | 568 | 2010-03-26T09:14:40.690 | infrastructure | serverfault.com | |
247,813 | How to fix windows 7 dns override of local hosts file? | I ran into the following problem under Windows 7: name resolution uses the result from a DNS lookup instead of using what I have in my local hosts file. This is different from previous versions of Windows. What workarounds are there to fix this bug? Example: My local hosts file contains the following entries (I disable... | [CODE] will return what the name servers actually return (as the name implies), but that's not the whole picture of name resolution. The hosts file takes priority, and netbios can be used, too. As you've said, ping is working correctly, as should other applications that use the OS's name resolution functionality. [CODE... | 1 | 5 | 8,018 | 2011-03-15T20:46:08.123 | infrastructure | serverfault.com | |
275,285 | MS SQL Server 2012 R2 SP4 | MS SQL 2012 R2 SP3 is out of support. We were having issues with DB Cluster which is 2012 R2 SP3 and Microsoft said it’s not supported version. We need to go for SP4 to have support. I suppose it’s not just MS SQL version, Service Pack is also associated. Can you correct me here? | ...I suppose it’s not just MS SQL version, Service Pack is also associated. Yes. You can read the lifecycle policy on service packs here . When a new service pack is released, Microsoft provides either 12 or 24 months of support for the previous service pack, varying according to the product family (for example, Window... | 0 | 2 | 112 | 2020-09-10T10:16:34.617 | database_errors | dba.stackexchange.com | |
392,956 | Inconsistent local network behaviour | I'm in an institution with a local area network with multiple labs, all of which access the net through a common proxy, set up in the client browser/app manually, now in one of the labs, the following settings work without issues: [CODE] This lab has a switch that goes though another lab from where it goes to the main ... | I think you answered your own question. Removing the HP switch allows everything to work. Putting the HP switch back breaks it. Start by testing the connection between the Cisco and HP switches and work your way back. We don't have enough information to debug the HP switch (L2? L3? model number? configuration?) but it ... | 1 | 0 | 206 | 2012-05-26T16:58:10.627 | infrastructure | serverfault.com | |
354,514 | Windows 2008 + IIS + Backup folder permissions or script to view all folders with X permissions? | I know how to backup IIS 7 configuration, but unaware of a way to backup which folder requires write permissions. If a server was to go down and I needed to restore, I could restore the config and files easily, but the folders would be lacking permissions that were set for user uploading etc. Is there a way to do this? | Windows Server Backup saves the NTFS permissions for all files and folders by default, just like almost every other backup tool for Windows. If you're unsure, I suggest doing a test-run by restoring your data to a new location, then take a look at the permissions on the restored files. On the off chance that your backu... | 1 | 1 | 424 | 2012-01-28T09:48:15.523 | database_errors | serverfault.com | |
426,267 | Enable a program in Windows to run multiple times? | I've got this legacy software that only allows you to run one copy at a time, it detects that you have another session opened and it won't allow you to open a second instance. The problem is this is a cpu intensive program and it only use a single core. Is there any hacks or tweaks so I can trick it and open more than ... | Limiting a program to just one instance isn't an OS function: it has to be coded right inside the code. This means the correct answer is: it depends on how the program performs the single instance detection. There are several ways of doing this: Using a mutex. This is the simplest way and the most commonly used. In its... | 6 | 8 | 26,588 | 2012-09-11T09:01:52.533 | infrastructure | serverfault.com | |
1,069,845 | How to pass through SSL traffic on nginx based on SNI? | In my current nginx configuration, I have multiple [CODE] blocks. These blocks are managed by third party software and cannot be changed by me. I can easily add another domain which is ssl-terminated by nginx by adding another block. However, I would like to add a domain which is not ssl-terminated on this nginx server... | http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass tells that [CODE] is allowed in [CODE] , [CODE] and [CODE] sections. However, if you use [CODE] block with TLS, the [CODE] always terminates TLS. In order to pass TLS through, you need to use the [CODE] module. | 0 | 1 | 1,299 | 2021-07-16T18:42:42.253 | infrastructure | serverfault.com | |
122,954 | Secure method of changing a user's password via Python script/non-interactively | Questions Is there a more secure/better way for setting a user's password non-interactively via a Python script? My current solution uses [CODE] from a Fabric script. Another option would be to use Pexpect from within the Fabric script. Is my current method of setting the password a security concern? The potential secu... | You pass the password in the command line you are executing. Those may probably be visible not only in your terminal, but also by other users issuing 'ps' command (that may depend on the system configuration). And the password is plain text. I don't know Fabric, but if it gives you a possibility to communicate with exe... | 8 | 3 | 16,615 | 2010-03-16T13:53:50.080 | pipeline_ops | serverfault.com | |
418,528 | How to understand the first and second readers-writers problems? | Computer Systems: a Programmer's Perspective says The readers-writers problem has several variations, each based on the priorities of readers and writers. The first readers-writers problem, which favors readers, requires that no reader be kept waiting unless a writer has already been granted permission to use the object... | No, while in the first case any additional reader can always join other readers, potentially starving writers, in the second it can only join if no writer waits. Yes, a writer always needs full exclusivity. Yes. Waiting readers have priority in the first case (thus happens only when a writer finishes), while waiting wr... | 4 | 4 | 2,173 | 2020-10-31T16:04:34.380 | api_errors | softwareengineering.stackexchange.com | |
547,372 | Why does this package (ppa:ondrej/php5, it's PHP 5.5) break the apache2 installation? | Problem Currently this package (ppa:ondrej/php5) is quite popular for installing the latest version of PHP 5.5. I've worked quite much with it, and everything ran smoothy, on several (dev) servers. But from today (?) this breaks the apache2 installation (it empties the [CODE] file). This is reproduceable. Way to reprod... | This PPA now comes with an upgrade to Apache 2.4 And the config files of Apache 2.4 have significant differences, including sites-available/sites-enable filename and syntax differences. The problem you are experiencing is exactly because the config filename change. | 3 | 2 | 3,430 | 2013-10-20T17:44:50.260 | hadoop_errors | serverfault.com | |
762,937 | After change, puppet now runs as the "ubuntu" user, and auditd is freaking out | This is a very strange question and I don't even know how to Google for it, so I'm posting here to see if anyone has encountered this sort of situation before. I have multiple Ubuntu 14.04 systems running in AWS EC2. We have several VPCs dedicated to different purposes -- prod/qa/dev/etc I'm running puppet, with a pupp... | Perhaps there is some underlying management activity that AWS EC2 does via this 'ubuntu' user. Start by investigating what commands the auid=1000 (aka ubuntu) user is executing. Turn on execve system call monitoring for a time to get more information if need be, as per [CODE] | 0 | 0 | 63 | 2016-03-10T15:49:12.223 | pipeline_ops | serverfault.com | |
999,386 | Allow a file to only be accessed by the server | I'm building a system which at some point utilizes viewing PDF files. These files need to be locked down so that no one can view them outside of the system. This means the files cannot be directly accessed, and only accessed by the server to display to the user. I have a folder [CODE] which looks like this: [CODE] In m... | You can specify IP address from you want access the files or if you have login then use particular email ID to allow viewing. All this you can specify at start of your load_pdf.php | 0 | 0 | 272 | 2020-01-17T17:08:38.143 | infrastructure | serverfault.com | |
460,965 | X86 Solaris boot failure | We had a power outage last weekend that seems to have done some very bad things to one of our x86 Solaris machines. It is refusing to boot, and dropping me to the "grub>" prompt when started. I can get it to recognize the multiboot kernel and module, and it will try to start booting, but it hangs almost immediately. Th... | For ufs file system 1) boot from solaris media (DVD) in single-user mode 2) Mount the root file system to /a, e.g: [CODE] 3)Install grub and update the boot_archive file on your boot disks: [CODE] 4) update the boot_archive via bootadm command: [CODE] if you using zfs file system 1) boot from solaris media (DVD) in sin... | 5 | 2 | 21,253 | 2012-12-26T14:58:16.570 | database_errors | serverfault.com | |
77,762 | How to reconcile the following error: "JVM cannot use large page memory because it does not have enough privilege to lock pages in memory"? | Please help!!! I wonder how can I reconcile the following error: "JVM cannot use large page memory because it does not have enough privilege to lock pages in memory"? The settings are: set JAVA_OPTS=-Xms20g -Xmx20g -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseLargePages -Duser.timezone="GMT" %DEBUG% | There is a page on Sun's website about this: http://java.sun.com/javase/technologies/hotspot/largememory.jsp Here's the relevant information for what is likely your problem: Only Windows Server 2003 supports large page memory. In order to use it, the administrator must first assign additional privilege to the user who ... | 0 | 3 | 6,837 | 2009-10-23T20:30:24.907 | infrastructure | serverfault.com | |
805,060 | Apache ErrorDocument without redirect? | I have an Apache server that has [CODE] forwarding to a Tomcat server. When the Tomcat server is down, I want to display an error message. Here's what I have currently: [CODE] I would like to show a relatively rich document (funny picture and stuffs), not just a one sentence message. The issue is, it doesn't appear I c... | If you specific a fully qualified URL for an error document you are implicitly causing a redirect because the browser must be told to "go get the error page somewhere else". However if you do something like: ErrorDocument /errors/my503.html The there will be no redirect as long as that URI path is served directly in ap... | 3 | 3 | 3,428 | 2016-09-24T00:37:37.087 | infrastructure | serverfault.com | |
248,710 | Problem in mysql database! | how to create a view of this query in (mysql) database. [CODE] | Assuming you use a recent enough version* of MariaDB, you can use window functions instead of variables to get a running total: [CODE] You can create a view with the above query. *: Window functions are available since MariaDB version 10.2 and in MySQL version 8.0 . | -1 | 4 | 38 | 2019-09-13T10:32:50.027 | database_errors | dba.stackexchange.com | |
862,271 | Avoiding unnecessary bounces with OpenSMTPD on OpenBSD | I am running OpenSMTPD on OpenBSD together with spamd, spampd and spamassassin, DKIMproxy and dovecot. My setup is to handle both local e-mail on the server and (external) email for my domain. My setup seems to be working (still in testing phase). I am happy to be able to realise my setup with an opensmtpd.conf file of... | In the new opensmtpd 6.4+ syntax, I was wondering about this as well. Currently I had a file with all my domains in it and I just had a rule that ensured I'd get e-mails only for my domains. This allows in messages for users that may not exist, resulting in bounce messages going back out. [CODE] To restrict on just you... | 3 | 1 | 986 | 2017-07-14T22:49:07.707 | infrastructure | serverfault.com | |
114,751 | Different Correlation Coefficents with different Time Ranges | I built a Time-Series that displays the price of the Electricty Price in South Italy and two of their most important commodities (commodities, gas) used to produce the eletrical energy. So I ordered all these data into DataFrame where there are the following data in details: First Column - Daily Price of Petroil Future... | This might be explained by the nature of your data in different market circumstances in the different timeframes, to elaborate, these are each market circumstances with a high correlation between prices of commodity A and B: A declines B increases (strong negative correlation) A increases B decreases (strong negative c... | 0 | 0 | 22 | 2022-09-28T14:04:28.760 | data_quality | datascience.stackexchange.com | |
496,335 | Open Windows Firewall to all connections from specific IP Address | Is it possible to "whitelist" an IP Address in the Windows Firewall and allow all connections from that specific address? | Assuming the IP address you want to whitelist is [CODE] : [CODE] | 17 | 19 | 60,301 | 2013-04-05T03:41:48.283 | infrastructure | serverfault.com | |
550,406 | web.config file changings guide | Hi experts how are you all? i am student, and learning asp.net c# visual studio 2010 with using sql server 2005. I have developed a website which has database. I developed this website with self studies taking help from internet. the website is completed and working perfectly in my computer. I have hosting server and d... | That error is extremely clear, and I question how much time you have spent thinking about it. The core message reads: Unrecognized attribute 'targetFramework' So it's clearly a problem with this line in particular: [CODE] The last line of the error message makes it very obvious there is a discrepancy here: Version Info... | -4 | 4 | 781 | 2013-11-03T14:34:25.097 | database_errors | serverfault.com | |
162,676 | Can't see mouse pointer in Linux VM | I have installed vmware workstation 7 on windows 7 on my thinkpad laptop. I have installed RHEL 5 inside virtual machine. The problem is i can't see any mouse pointer inside that machine. I see one more mouse pointer but it looks like that moves with mouse but when i click then its don;'t work. If i right click then th... | You need to install VMWare Tools in the guest operating system. | -1 | 1 | 6,419 | 2010-07-21T15:26:36.727 | infrastructure | serverfault.com | |
244,000 | How likely is fragmentation on a table with 40000 products likely to affect performance | So database administration is not a strong point of mine, so I have a few questions. This all relates to the performance of a website I'm looking at, and have spent a fair bit of time researching/diagnosing. There are two sites, a test site and a live site. I have noticed page load times are much longer on the live sit... | Based on the data that you have provided - there are 67 total pages. Index fragmentation for such a small table would not affect the performance. I would not worry about index fragmentation for the table that you have mentioned. You should update your table statistics so that sql server can generate better query plan. ... | 5 | 11 | 584 | 2019-07-29T00:41:51.423 | warehouse_errors | dba.stackexchange.com | |
904,262 | Remote encrypted mount | I tried this sshfs without shell access , but I realized I should ask opposite way I would love to mount remote file system automatically, over encrypted tunnel preferably using private/public keys. It should not mean any security risk (no ssh login or so), only reading/writing to remote sub-folder (like NFS over openV... | On remote server set up a sftp-only non-root account with these contents of sshd_config: [CODE] On local system install and configure sshfs. Use [CODE] like I describe in another answer . Optionally install and configure autofs, which will provide automatic mount/umount. No ssh access: check . Only reading/writing to r... | 2 | 4 | 207 | 2018-03-23T17:00:47.710 | infrastructure | serverfault.com | |
119,900 | Efficient way to get last 10 rows of each group in SQLite, can CTE help? | Consider there is a table of job runs history with the following schema: [CODE] and it is required to get the last 10 runs with [CODE] for each job (jobs differ by [CODE] ). To do that I wrote the following query: [CODE] It do what I need, but even though there is a multifield index on the [CODE] and [CODE] fields of t... | Since the number of distinct [CODE] is small, you can try this way of writing this type of queries. I've often used in MySQL that doesn't have window functions - and you can't even have a subquery with [CODE] . Try this with an index on [CODE] : [CODE] and this (with same index): [CODE] | 1 | 2 | 5,975 | 2015-11-03T08:36:36.047 | database_errors | dba.stackexchange.com | |
445,789 | Should GraphQL request for calculated object be mutation or query? | [CODE] is clearly a mutation. [CODE] is clearly a query. But what would be some [CODE] ? Is it a query, because no price is stored (no data written), it is just calculated? Or is it a mutation, because price was not stored anywhere previously, we are "creating" it in memory? | In GraphQL, query vs mutation doesn't matter that much. With different API technologies like REST there are substantial differences between methods like GET or POST. For example, there are differences in how requests can be cached or retried. The difference between a GraphQL query vs mutation lies mostly in how the res... | 0 | 4 | 113 | 2023-05-30T11:30:12.247 | api_errors | softwareengineering.stackexchange.com | |
952,355 | Proxy pass with host in headers causes loop redirects | Use case We need to redirect to current website (ip1 - https://host.com/path ) from a new server (ip2) that will host another website under root path ( https://host2.com/ ). In the end, this last website will be hosted as https://host.com/ , meaning that we will have one website on https://host.com/ (hosted on ip2) and... | We finally found a configuration to handle this issue : [CODE] Watch out to the protocol (https) and the trailing slash character. We moved the DNS to redirect host.com to ip2 and it's working like a charm ! | 0 | 1 | 1,546 | 2019-02-05T11:01:09.443 | infrastructure | serverfault.com | |
896,197 | Why does Kubernetes recommend a large VM for the master node? | I'm looking at this guide for deploying a Kubernetes cluster to AWS, it says: For the master, for clusters of less than 5 nodes it will use an m3.medium, for 6-10 nodes it will use an m3.large; for 11-100 nodes it will use an m3.xlarge. For context an m3.medium has 3.75 GB memory and one vCPU. My understanding is that ... | Master nodes run etcd databases that store not only current definitions of objects in kubernetes API but also things like event history etc, and they really do not like larger latencies on servers. Apart of that, they also run kubernetes apiserver, controller-manager and scheduler at bare minimum. While in small cluste... | 0 | 0 | 87 | 2018-02-07T22:33:31.270 | pipeline_ops | serverfault.com | |
266,616 | Best solution for cloud hosting | I'm located in Europe, and I'm looking for a flexible solution to host my Ubuntu server. I'd like to have a unique and scalable server using Virtualmin, where I could add/remove as much CPU, memory, and HDD capacity that I need. I have been looking into OVH and Gandi which seem to have good services, but OVH is not rea... | I can address the AWS offerings; I'm not familiar with the other vendors. For AWS, there are several different virtual hardware configurations; each configuration, which is priced according to what you get, has fixed RAM and CPU specs. It also has fixed ephemeral-storage specs -- that's the storage that you get "for fr... | 0 | 1 | 159 | 2011-05-05T13:30:56.157 | database_errors | serverfault.com | |
220,761 | Clean installation of RHEL 5.5 claims package "desktops" is missing | I'm a student worker in the CS department of my university, so please forgive me for any unprofessional descriptions. Simplified explanations are appreciated. I recently replaced some bad graphics cards in a few public workstations. The machines are all the same model. Before putting them back on the network I did fres... | Check the yum installed groups versus the available groups: yum grouplist [CODE] Then you can then try to run a groupinstall of the Gnome environment if it isn't in the [CODE] list: [CODE] | 0 | 1 | 556 | 2011-01-10T18:05:25.900 | infrastructure | serverfault.com | |
228,724 | Server high CPU load issue! ( Cpanel + CentOS 5) | Our server cpu load is high todays sometimes reaches to 560! .. We have the lastest Cpanel/whm and the kernel is update!while the load average is : Load Averages: 39.05 75.01 45.33 the apache log is: [CODE] What cause this high cpu load while the apache cpu load is fine? the mysql process is also fine.. the cpu load is... | See Apache access/error log file. Without logs, it is difficult to say something. If you have monitoring system(Cacti,Zabbix,...) see performance graphics. Install nginx frontend Check statistics(top,ps,iostat,vmstat,iotop) Read system log file(/var/log/kernel.log,/var/log/syslog) | 0 | 2 | 4,982 | 2011-01-30T07:07:32.977 | database_errors | serverfault.com | |
402,993 | Managing Multiple Applications With Similar Configuration Files | From the .Net perspective (C#, VB, etc.) and MSSQL, I have noticed that for a set of applications (maintained by the same development team) typically have the same defined configuration for connecting to the database. [CODE] For my question, should these applications with pretty much identical configurations have a sin... | You can't know every use case for your component ahead of time. So if you pull the config into a common component, can you test it thoroughly? Don't forget to comment your abstractions. Another consideration is the knowledge level of the programmers who will come after you to maintain the software. Will they know to us... | 1 | 2 | 115 | 2019-12-27T03:33:02.430 | api_errors | softwareengineering.stackexchange.com | |
413,943 | .svc web service broken when moving to IIS 7 | I'm trying to move an application from IIS 6 to IIS 7. I've managed to get everything working except for the web services (.svc files). These return [CODE] exceptions. In the failed request logs I get the following warning, and everything else appears fine: [CODE] when I do a GET request for service.svc it works fine, ... | Are you sure you're server and the application in general is set to allow the POST verb? It sounds a lot like the server, your application or a combination of the two is either not explicitly set to allow POSTs. Make sure your web.config file contains all of the relevant configuration settings needed to get an ASP.NET ... | 1 | 0 | 470 | 2012-08-03T10:49:23.663 | infrastructure | serverfault.com | |
25,367 | Cleaning Dusty Servers | Long story short, my server room is a bit ... dirty. Just had a little construction done, and there is pretty nice layer of dust on a few systems. From my knowledge, I can either: Use an Anti-Static vacuum Use an air compressor Which is better? Any recommendations on particular Anti-Static vacuums? (I don't want a litt... | As a follow up, we ended up buying a 3M ESD Safe Toner Vacuum . It works great, and I've had no problems during the clean up process. It comes with many attachments, and is the single tech product that sucks on purpose. | 12 | 6 | 10,162 | 2009-06-14T01:01:20.007 | infrastructure | serverfault.com | |
8,741 | How is localhost resolved by Oracle listener? | When I o an Oracle test installation on a Windows server accepting mostly the defaults, I end up with a listener.ora like [CODE] THat never seems to enable the listener, to accept requests from remote machines. I have to add a line with the actual IP address or DNS-name of the server. Giving something like [CODE] From ... | By definition [CODE] traffic is never supposed to enter or leave the server. It is a name for the addresses [CODE] and [CODE] . It will be bound to a loopback device. [CODE] is useful to allow IP access to services running on the local machine. You likely want to use the host name of your virtual server rather than loc... | 3 | 3 | 18,143 | 2011-12-03T18:40:13.947 | database_errors | dba.stackexchange.com | |
5,455 | Why might a table's data space take up 4x the size of the raw data? | I have a table with 490 M rows and 55 GB of table space, so about 167 bytes per row. The table has three columns: a [CODE] , a [CODE] , and a [CODE] . The average length of the text in the [CODE] field is about 21.5, so the raw data should be around 32 bytes per row: 22+2 for the [CODE] , 6 for the [CODE] , and 2 for t... | After discussions in the comments on the original question, it appears in this case the lost space is caused by the choice of clustered key, which has led to massive fragmentation. Always worth checking the state of fragmentation via sys.dm_db_index_physical_stats in these situations. Edit: Following update in comments... | 18 | 11 | 7,630 | 2011-09-06T20:43:45.087 | warehouse_errors | dba.stackexchange.com | |
136,699 | How can a developer evaluate the effectiveness of his workflow? | This question has been on my mind for probably 10 years. Ever since I've started programming for a living. And I've seen multiple discussions about good fit, distractions, being in the zone, etc. But I haven't seen links to some information/research that could give an objective self evaluation measure/tool to understan... | I don't know if there's a "documented best way", but I would suggest that you should try personal A/B testing. Pick your favorite metric - lines coded, progress towards goals made, features implemented, etc - and then switch things around on a bi-weekly schedule. Start using the Pomodoro technique . Try using multiple ... | 2 | 3 | 532 | 2012-02-24T04:03:22.603 | api_errors | softwareengineering.stackexchange.com | |
441,196 | AD Certificate Templates does not appear | I'm following what should be simple instructions to enable LDAP SSL on our domain controller ( instructions here ). Duplicating the Kerberos certificate is successful however, when attempting to select "Certificate Template to Issue", the created certificate does not appear. What gives? A long time ago, I actually comp... | You need to either use Windows 2008 Enterprise (which is allowed to issue v2 and v3 templates, such as the duplicate of the Kerberos template that you created), or upgrade to Windows 2008 R2 Standard from 2008 Standard (which gets rid of this pointless restriction on template versions for the Standard edition). | 0 | 1 | 3,827 | 2012-10-23T03:30:27.507 | infrastructure | serverfault.com | |
230,856 | Roaming profile configuration Problem | I am having a problem with enabling roaming profiles. I have a test user ittest. I went into their AD account and changed the roaming profile location to \servername\profiles$\ittest The profiles folder is shared out, and everyone has full permissions on the share level. On the NTFS level it looks like this. Domain use... | Windows is very particular about the access rights to profile folders; you should let windows create them, or study an existing profile and figure it out for yourself (handy when setting up a samba server for profiles :-) ). | 1 | 1 | 278 | 2011-02-03T21:29:26.050 | infrastructure | serverfault.com | |
10,034 | Making fake result in data mining using weka j48 algorithm | I have 130 records in one CSV dataset and I'm using j48 decision tree. I used the whole training set for testing, and the result was 79 correctly classified and 51 incorrectly classified records. Now! I want a result between 95% - 100% and don't have ability to add or remove any record to those 130. But I'm allowed to ... | I don't understand the purpose when the quality of the tree is not important but you should be able to make a tree to have 100% accuracy on training data set easily. Just avoid any pruning and let the tree grow as maximum as possible. As far as I remember Weka set a pruning policy for J48 by default, you should disable... | 3 | 2 | 690 | 2016-01-30T20:37:07.527 | data_quality | datascience.stackexchange.com | |
883,771 | Enabling Intel Turbo Boost for Hyper-V Guest | I'm trying to enable the max cpu frequance for hyper-v guests. In the hyper-v physical host displays cpu at 4.4GHz which is boosted speed: But the cpu speed is at default speed in the hyper-v guest which is 3.31 Ghz: I've disabled C1,C6 states from bios, and enabled turbo boost, turbo boost max 3.0. I've also set "high... | Disabling C-states hurts the ability to use TurboBoost. But remember that TurboBoost is not active on all cores at once, and depends on what else is happening on the system. It's not a full-time speed increase; it's opportunistic. To reach the maximum Turbo Boost frequency, you need to allow deep C-states (above C-stat... | 1 | 1 | 9,165 | 2017-11-16T14:57:51.867 | infrastructure | serverfault.com | |
710,424 | get dev.domain.tld to rewrite to correct app with nginx | I have two node.js instances running behind nginx proxy I also have a rewrite rule to push everything to https. My issue is that I would like to split dev.domain.tld to go to the second node.js instance and everything else to go to the first node.js instance. This is my conf file [CODE] I looked at using regex as per H... | For redirecting HTTP to HTTPS I use the form: [CODE] To make an instance default then you use [CODE] keyword. i.e.: [CODE] Hopefully that helps you do want you need. | 0 | 0 | 167 | 2015-08-03T09:16:21.030 | infrastructure | serverfault.com | |
171,346 | MySQL column that auto generates data, longer than UUID | My friend has the problem as shown below. He asked at StackOverFlow and there is no reply yet till now so I wish to help him to try the luck here. Thanks for everyone that helps. "I would like to ask if its possible to set up a database table that has a column that auto generates random alphanumerical data that is long... | You can create the pair of triggers [CODE] and [CODE] that perform any desired transformations 'on the fly' [CODE] When you run some INSERT or UPDATE query on the [CODE] trigger will replace submitted value of the [CODE] by string stored in the [CODE] variable. Sure you can do as complex and randomized transformation a... | 0 | 0 | 532 | 2017-04-19T01:00:06.763 | database_errors | dba.stackexchange.com | |
223,184 | How to create a new public AMI for windows with a random password? | I am trying to make a windows 2008 AMI that is a nice clean 64bit starter pack (IIS, SQL express, ASP.NET MVC, etc...) I would like to make it a public AMI when its done. There in lies the problem. I can make an AMI from my image no problem. But I can't seen to get new instances to generate their own passwords.. The re... | You could go to the EC2ConfigService Settings (Start -> all programs) on your instance. Under "Set Password" put a check in "Set a random password ....". The password will be generated on next boot and your ami created from the instance will have a random generated password. Alternatively you can edit your C:\Program F... | 6 | 6 | 3,572 | 2011-01-17T01:38:45.367 | infrastructure | serverfault.com | |
158,395 | EXECUTE stmt USING expression | I am writing an [CODE] trigger on a view. I need to split a string into 4 40 character long parts to insert into separate columns. I want to use [CODE] to break the variable up into these parts, but when I try to create the trigger I get the error: SQL State: 42703 Vendor Code: -206 Message: [SQL0206] Column or global ... | [CODE] requires host variable names, not expressions, while [CODE] is an expression. You will need to declare four host variables, assign results of the [CODE] expressions to them, then use those variables in the [CODE] statement. Alternatively, you could move expressions to the dynamic statement itself: [CODE] | 1 | 3 | 226 | 2016-12-16T17:45:19.943 | database_errors | dba.stackexchange.com | |
450,772 | Return response from controller or raise exception from service | I need some guidance on how to send error responses to client from WebAPI controller for an update operation. I need to check if data is changed and if it has duplicate data. I have service class that does database operations. Below is psuedo code Approach 1 CustomerController.cs [CODE] Approach 2 CustomerController.cs... | Approach 0 Controller [CODE] Service [CODE] If there has been no change, update anyway If the customer already exists, update it If the customer doesn't exist, add it. If there is a db error, throw it and convert automatically to a 500 in a global error handler | 0 | 2 | 98 | 2024-01-27T16:16:12.967 | data_quality | softwareengineering.stackexchange.com | |
11,726 | How to improve your ability to debug existing code | A common task in the working world is dealing with existing, but buggy code. What are some tips to improve your skills as a debugger? | Don't Assume Anything It's often tempting to just say "oh, I know what this bit of code is doing, it's fine". Don't do that. Test every assumption and step through everything carefully. | 29 | 33 | 8,282 | 2010-10-13T15:47:47.513 | api_errors | softwareengineering.stackexchange.com | |
86,214 | How to test the quality of a word embedding? | I have trained a word2vec model using GenSim 4. The problem is that my corpus is quite small. How can I test the quality of the word embeddings I have obtained? Is there some standard measures to do that? | One way to test your embedding is see how often your model agrees with the common consensus of how other embeddings complete word analogies. A collection of established word embedding analogies are here . | 2 | 3 | 1,301 | 2020-12-02T23:21:20.860 | data_quality | datascience.stackexchange.com | |
269,148 | SQL Server Cannot Create Transactional replication Error 14013 | I am trying to create transactional replication but encountered the following error: Please help, [ | You can follow these steps before setting up a Publication. Tutorial: Prepare SQL Server for replication (publisher, distributor, subscriber) Create Windows accounts for replication. Prepare the snapshot folder. Configure distribution. I believe you skipped this. If not, please edit you question with the steps you alre... | 0 | 0 | 322 | 2020-06-14T23:31:31.597 | database_errors | dba.stackexchange.com | |
83,326 | apache2, vhosts and servername directive | I'm running an apache development environment on my ubuntu desktop machine. When I start apache, I get the error [CODE] I attempted to fix this by adding a line to my apache.conf: servername myhost This eliminates the error message. However, with this configuration, requests for vhosts are not honoured. Only the defaul... | Undo your modification in [CODE] and change your [CODE] file to: [CODE] Erasing the duplicated alias in the first line should solve the problem. Apparently [CODE] can only map one FQDN per line. | 0 | 1 | 1,068 | 2009-11-09T02:56:46.063 | infrastructure | serverfault.com | |
151,753 | Unable to change innodb_buffer_pool_size MySQL 5.6 in CentOS 6.7 | I have searched all over but couldn't find where service mysqld restart picks up the configuration file from: [CODE] My MySQL 5.6.33 is running on 1 GB of InnoDB Buffer Pool whereas none of these files has that setting. I have setting [CODE] in the file copied from /usr/share/mysql/my-default.cnf to /etc/my.cnf - I did... | About [CODE] AFAIK it isn't correct way to pass argument. It should not be accepting that argument. Never done that; importantly it isn't even necessary for default location!!! Confirm the which my.cnf is being used: [CODE] Confirm we have correct entry in my.cnf [CODE] Verify your error log, you should see something l... | 1 | 1 | 4,410 | 2016-10-07T22:13:39.377 | database_errors | dba.stackexchange.com | |
134,996 | Problem in accessing Windows shared folder on Ubuntu using terminal | Description I have 2 systems with me, one running on Windows(Host) and one on Ubuntu, both on a LAN. On the Windows(Host) I develop software intended for the Linux system and because the Linux system has little external memory, my idea to overcome this is by making the project folder on the Host side a Shared Folder wi... | You need to mount it properly from the command line, like real men do : [CODE] | 0 | 1 | 2,411 | 2010-04-22T16:01:39.357 | infrastructure | serverfault.com | |
109,232 | Cannot restore grub for Ubuntu 9.10 | I have a hard drive with some partition for windows (NTFS) and 1 partition for linux and 1 partition for linux swap. Recently, I tried Norton Partition Magic Pro 8.05 (comes with Hiren Boot CD). It suggested me something related to ExtendedX. I choose [Fix] and then boom, after restart, my grub is corrupted (What's a m... | Try this: [CODE] About installing grub to a specific partition If you do this, your boot loader needs to be aware that the partition has something interesting. Microsoft's bootloader is configured by editing [CODE] . You do this by first copying the bootloader into a file: [CODE] Then saving [CODE] onto [CODE] then add... | 0 | 1 | 1,478 | 2010-02-03T17:09:55.790 | database_errors | serverfault.com | |
274,456 | Why is supplying the hostname sometimes optional and otherwise not in psql? | After having used [CODE] and [CODE] to create a user and database both called [CODE] I wanted to log in. Using both of these commands, I never said anything about which host the database was running on, so I would assume that when using [CODE] it would use the same settings. This is what happens if I do not supply a ho... | The default for all Postgres command line tools is to use "local" connections, i.e. unix sockets (unless this is "overruled" by environment variables ). The next step in the authentication process is to look up if and how the user should authenticate - which is defined by the entries in [CODE] . Most probably the defau... | 0 | 2 | 437 | 2020-08-27T09:56:15.350 | api_errors | dba.stackexchange.com | |
1,127,991 | SSH key for 2 client users to 1 server user | If this is a duplicate, I'm sorry. I have searched my case but I couldn't find the right scenario that resembles my situation, although I thought that this situation must have come up before for someone. Here we go: I have a user on my remote linux server, ServerUser. I have a user on my home PC, HomeUser. I have a use... | Just concat together public keys into a single authorized_keys file. Each key spans exactly one line. Any key found in that file is eligible for authentication. If you have working password (or other way) of authentication you may just run [CODE] from all machines. It adds to the remote authorized_keys all accessible l... | 0 | 1 | 40 | 2023-04-05T17:36:06.740 | data_quality | serverfault.com | |
597,922 | Mysql: GRANT command denied to user 'root'@'dhcp-x-x-x-x.<company>' for table 'testtable' | I am new to MySQL admin duties, and am trying to unsuccessfully grant SELECT Permissions to a limited number of columns in a table, using MySQL Workbench 5.2.44: [CODE] I get the following error: [CODE] I have gone through similar posts in here and have done the following tests: 1) SHOW GRANTS FOR 'root'@'localhost'; [... | First, you will need to connect to mysql locally, as stated. Try to do the GRANT for 'root'@'%' as suggested, byut if time is of the essense, a quick dirty way to accomplish this (yes, sadly, I have had to do this) is to specifically grant privileges to the fully qualified name 'root'@'dhcp-123.123.123.123.companyname.... | 2 | 3 | 21,334 | 2014-05-22T21:05:32.653 | database_errors | serverfault.com | |
35,193 | How do I find the reason for the last shutdown in Windows Server 2003? | I have a windows server 2003 system which restarted for no apparent reason. Everything seems to be running fine now, but I want to know why it shutdown. I don't see any obvious signs of problems in the event logs. It is running on a UPS so I don't think it lost power. How can I find the reason for the last shutdown in ... | Open [CODE] → System. View → Filter... → Event Id: [CODE] and [CODE] . Comment field will contain what you typed in. If there are no other events around that time to give you any clues, you may want to adjust your auditing settings to catch more items, but Sean Earp's link will probably give better details on that. | 6 | 11 | 42,887 | 2009-07-02T18:02:00.407 | infrastructure | serverfault.com | |
801,029 | Apache crashing occasionally with error 503 | I am running a library management software called KOHA. Once or twice a week, the server returns a "503 Service Unavailable". I can access the home page, but when I search for a book, I get the 503. Similarly, the staff can log in to the staff page, but when they do something after logging in, they get the same error. ... | Apache2 acts as a reverse proxy here passing the requests coming to the web server forward to the actual application server, in your case KOHA here. First log line tells that Apache2 cannot see the Unix socket for the KOHA server, which is used for communication between Apache2 and the KOHA server. Therefore the 503 er... | 2 | 5 | 1,356 | 2016-09-04T18:44:55.780 | infrastructure | serverfault.com | |
272,426 | How does putting swap space on an SSD affect performance? | This is more of a generic question I'm interested in, rather than something I'm planning to use in production. If I got, saym a 40GB SSD drive and allocated the entire drive to be swap space leaving just a small amount of 'real' ram in the system (For examples sake I'll say 512MB physical RAM), how would performance co... | Swap space is not a simple extension to RAM such that the CPU can access it directly, so on top of the lower speed (compare the maximum throughput of the DDR3 and SATA buses on http://en.wikipedia.org/wiki/List_of_device_bandwidths for instance) and higher latency (even if the access was direct any transfer will be goi... | 0 | 4 | 6,379 | 2011-05-22T10:44:01.307 | database_errors | serverfault.com | |
700,812 | View the SSL certificate of a page that immediately redirects to another | So I've googled quite a bit for this but it appears that my google-fu fails me - apologies if this is a trivial and already answered question, I could not find anything about this I'm trying to diagnose an SSL certificate hostname mismatch. When I visit the url in question, it redirects me to another page that has the ... | Use openssl s_client piped to openssl x509 : [CODE] (Add [CODE] to the s_client command if the server uses SNI .) The redirection of stdin from /dev/null for the first invocation of openssl will prevent it from hanging waiting for input. | 45 | 48 | 22,989 | 2015-06-22T21:54:02.653 | api_errors | serverfault.com | |
441,251 | Domain Driven design and representing process state | I'm trying to find a good way to implement state transitions for a job posting. This is just an experiment in trying to write better code. You can find the code and a diagram in this repo. The main problem I have is how can I write the code in such a way that there are as few as possible exceptions thrown. For example,... | I would have an anaemic model approach with the possible actions in their own classes implementing : [CODE] Apply will throw exceptions if you send an invalid [CODE] , ie not in a state where the action should take place, but you avoid this happening in less than exceptional circumstances by first evaluating [CODE] to ... | 1 | 1 | 399 | 2022-09-25T16:59:27.577 | data_quality | softwareengineering.stackexchange.com | |
332,718 | C# namespace and class naming | I have a small issue with namespace and class naming. Here is a practical example: [CODE] But I'm going to have a larger number of layers, each specialized so this is going to be replicated a lot. I have no idea how to namespace it in a conceptually correct fashion. Here are my ideas and why I believe they don't work: ... | Rename [CODE] to [CODE] and you can let it's namespace be [CODE] . Same with [CODE] and all the others. That solves the naming problem. Be sure you're comfortable with this cookie cutter design. It's easy to obsess on creating a predictable structure to work within and ignore problems caused because you insist on stick... | 2 | 1 | 1,937 | 2016-10-04T06:57:35.113 | api_errors | softwareengineering.stackexchange.com | |
150,927 | Recovering SQL Express 2016 RC1 database | This afternoon, I tried to log on to my local SQL Server 2016 RC1 instance and it failed. Looking at the logs I learn that the service won't start because the "Evaluation Period has ended", which was great, I didn't get any warnings about this period ending which has led me into my current predicament. I had quite a la... | You should be able to attach your database files using the instructions in the documentation: How to: Attach a Database File to SQL Server Express | 1 | 1 | 40 | 2016-09-28T20:20:49.257 | database_errors | dba.stackexchange.com | |
275,389 | Haskell build and artifact environment similar to Maven | I used to be a Java developer for a long time, but recently, I joined a Haskell team. In the java world, if you have a large project, with several teams working on it, a common approach is to use an artifact server such as Maven to ease and speed-up the development. Numerous build tools, such as Ant, Maven, Gradle, can... | You might consider using Nix , which is a general-purpose, cross-platform package manager with decent support for Haskell. Nix has a custom programming language for defining packages (which just so happens to be pure, functional and lazy). Defining new packages and extending existing ones is pretty easy (eg. to alter d... | 20 | 2 | 932 | 2015-03-05T18:43:28.530 | api_errors | softwareengineering.stackexchange.com | |
495,175 | Apache mod_ssl - can you refuse to respond to requests with incorrect hostnames? | I've had problems in the past with old DNS entries (belonging to other people) pointing to a server. To prevent the server responding and making those hostnames appear to hold exact copies of my content, I use NameVirtualHost and make the default virtual host always respond 503 forbidden. That seems to work nicely. Now... | What about just redirect clients from wrong domain name to your domain? Apache's mod_rewrite can help to solve this problem like this: [CODE] With this configuration all clients will be redirected to right domain name after ignoring SSL warning. Also, search bots will index your content with suitable domain name. | 2 | 3 | 336 | 2013-04-01T17:21:03.300 | data_quality | serverfault.com | |
174,709 | Access Macro: ApplyFilter w/values from 2 combo boxes | I'm getting started with databases in Access for a work project (technically a work-learn for my non-CompSci degree). I have experience using multiple filters on multiple columns through Access/Excel, but for my work learn I'm trying to design an interface with some "quick filter" functionality built into the UI. Since... | Oh. Well, I figured it out. I didn't realize that when I use [CODE] , the macro parses it like [CODE] . The solution is as follows: [CODE] I was hoping to be a little more efficient, but apparently macros don't dig that. :( Any other comments still appreciated! | 1 | 1 | 1,247 | 2017-05-26T18:33:14.610 | warehouse_errors | dba.stackexchange.com | |
739,562 | Why does New-SCVirtualNetworkAdapter fail for VMs with names longer than 64 characters? | I have 2 identical VMs, the first has a relatively short name while the 2nd has a name with 65 characters. Why does New-SCVirtualNetworkAdapter succeed for the first but fail for the 2nd? [CODE] | The length of VM name in System Center Virtual Machine Manager (SCVMM) console is limited to 64 characters by Microsoft. As such, the VMM PowerShell commandlets will behave as you have experienced. | 1 | 1 | 775 | 2015-11-29T10:03:56.667 | infrastructure | serverfault.com | |
313,919 | Update all instances of key inside nested JSON array | I'm trying to update a complex JSON document stored in a table in CockroachDB. The CockroachDB query language is mostly Postgres compatible except for the lack of procedural code, so a Postgres answer without user functions or explicit loops will most likely work. The below sample code is also Postgres-compatible. Amon... | This former question should be of help as well as the official CockroachDB doc for handling JSON. Here's an example of changing key values for an array of JSON objects, though nested arrays may require a bit more work. [CODE] | 3 | 4 | 1,057 | 2022-06-29T21:01:35.943 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.