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 |
|---|---|---|---|---|---|---|---|---|---|---|
900,569 | How do I get a server side umask to be honored in scp -r when creating directories? | I am trying to setup an scp receiver that allows select users, based on ssh keys, to scp files to a specific server as a user different than themselves. This is to satisfy access restrictions by corporate figures. [8^) The ultimate setup would include a user's .ssh/config file having an entry like: [CODE] Their scp com... | I think that the [CODE] switch you're looking for is "-p". from [CODE] : [CODE] So your command would look like: [CODE] I also think you should consider using [CODE] instead of [CODE] because it verifies the integrity of the files it transfers and it also has the "-p" switch which preserves permissions of the source lo... | 0 | 0 | 3,640 | 2018-03-08T01:23:57.690 | infrastructure | serverfault.com | |
110,057 | Easiest way to send an Email from the command line, using windows 2003 R2 | I have a Windows 2003 R2 server and I want to send an email from the command line. This server does not have the SMTP service configured. Is there a one liner that will let me send an email? My specific use case at the moment is to send an email when a performance alert is triggered, but it would be useful in general. ... | I'd try blat . You could write a vbscript but there is no built in executable to send mail | 11 | 15 | 50,244 | 2010-02-05T18:36:17.417 | infrastructure | serverfault.com | |
354,634 | DDD - Performing simple operations on complex Aggregates | I'm reading the DDD blue book and there is one thing that's pretty unclear to me as of yet and that is how to efficiently perform simple operations on Aggregates that have a lot of child Entities in them. An example Considering I have an [CODE] , (Aggregate Root) that has [CODE] s. Each [CODE] can only have 1000 [CODE]... | Add a method to your repository called [CODE] , pass it the ID of the order you are interested in, and return the number of items currently in the order. This will satisfy your business rule, and you can optimize it any way you want. You don't have to load all of the existing items in an order to add a new one, especia... | 3 | 2 | 2,172 | 2017-07-28T00:08:21.587 | api_errors | softwareengineering.stackexchange.com | |
31,315 | Good performance metrics for multiclass classification problem besides accuracy? | I am trying to solve a multiclass classification problem. The dataset is balanced. I have been using accuracy as a performace metric till now. Are there any other good performance metrics for this task? I already know about precision and recall but as far as I know they are used when the dataset is imbalanced. | If you can use python I suggest PyCM module. A vast variety of performance evaluation parameters is in access by this module and also you can use its documentation if you want to implement it by yourself. There is an example of it: [CODE] | 8 | 3 | 13,737 | 2018-05-07T05:33:13.923 | data_quality | datascience.stackexchange.com | |
1,001,174 | Can't ping (permission denied) | I have an issue with my docker installation. For some security reasons I configured my "daemon.json" that the namespace is switched to another user ( [CODE] ). Now I have the problem that if I run a container (with switched user context ( [CODE] ) and try to ping another one which is in the same container network I get... | TL;DR [CODE] Explanation Alpine is based on busybox which implements the linux usual commands in a single binary. If you look at the [CODE] directory on your base alpine image, you will see that the [CODE] command (like others) is a symbolic link to [CODE] To be ran as a normal user, [CODE] needs the suid bit set. You ... | 18 | 24 | 31,265 | 2020-01-31T02:58:38.410 | pipeline_ops | serverfault.com | |
50,460 | What is the best aproach for coding in a slow compilation environment | I used to coding in C# in a TDD style - write/or change a small chunk of code, re-compile in 10 seconds the whole solution, re-run the tests and again. Easy... That development methodology worked very well for me for a few years, until a last year when I had to go back to C++ coding and it really feels that my producti... | Several things come to my mind: Make use of distributed compilation . You can do this with GCC ("distCC"?) or VC ( Xoreax' IncrediBuild is not exactly cheap, but worth every cent spent on it.). Split your project into dynamically loaded libraries, and carefully try to minimize the dependencies on them. Smaller executab... | 16 | 16 | 4,065 | 2011-02-22T13:01:49.943 | api_errors | softwareengineering.stackexchange.com | |
298,147 | why it is not recommended to run mongod process as root user as per documentation | Why is it not recommended to run mongod process as root as per the documentation? Is it only security that we run it as a non root user ? Will running as root cause any specific issues like Out of Memory issues that kill the mongod process? | It is best practise to run as little as possible as root, or any other account with significant privileges. Each application or service should run with the lowest privilege set that will allow it to operate correctly, then if there is a problem (security bug in the service itself, security bug in the application softwa... | 0 | 2 | 281 | 2021-08-17T07:51:26.873 | database_errors | dba.stackexchange.com | |
165,231 | Postgresql deadlock lock with lock table in exclusive mode | I'm getting this deadlock error in my database: [CODE] I have a trigger which is called on insert in table Transaction, that lock table Niv (Other table in my database) in exclusive mode. This is the trigger: [CODE] Looking in I can see that the deadlock ocurrs when have two inserts into table transaction, which calls ... | It looks to me like both transactions acquired a weaker lock (probably [CODE] (but now clarified in a comment to be the more rare [CODE] )) on NIV earlier in their transaction. Now both want to upgrade that lock to EXCLUSIVE, but neither can do so until the other gives up their weaker lock. But neither is willing to gi... | 4 | 4 | 2,341 | 2017-02-22T21:24:04.247 | database_errors | dba.stackexchange.com | |
358,009 | Kerberos Logging with Server 2008 R2 and Server 2003 SP2 | Good morning everyone. I've been working with a Microsoft support technician for the last several days on a problem that appears related to delegation and/or Kerberos. The domain is running in a 2003 mixed mode operations level and the two domain controllers are both using Windows Server 2003 with SP2 installed. The me... | I see kerberos events within the event logs with loglevel not enabled. | 3 | 1 | 1,762 | 2012-02-08T14:26:51.743 | infrastructure | serverfault.com | |
594,593 | WMI: Win32_PerfRawData_Counters_ProcessorInformation versus Win32_PerfRawData_PerfOS_Processor | Folks, I am looking to monitor stuff like "PercentProcessorTime", "Timestamp_Sys100NS" (Total Processor Time) using WMI. The problem I am facing is, I find that Windows Server 2008 R2 have following two WMI Class: Win32_PerfRawData_PerfOS_Processor and Win32_PerfRawData_Counters_ProcessorInformation Anyone know the dif... | They are exactly the same except that Win32_PerfRawData_Counters_ProcessorInformation provides more properties to measure. PerfOS_Processor does not count the following as it's properties: [CODE] | 2 | 1 | 794 | 2014-05-12T16:55:04.460 | infrastructure | serverfault.com | |
400,245 | Centos 6, apache mod_perl configured but not working | I just received today my dedi server access, I installed apache: [CODE] After it, I configured httpd.conf located in /etc/httpd/conf, I modified server name, added server IP, and my email. Perl was installed already, when I type perl -v I get: [CODE] I installed mod_perl: [CODE] I edited again /etc/httpd/conf/httpd.con... | see http://www.centos.org/docs/4/4.5/Reference_Guide/s3-httpd-v2-mig-mod-perl.html | 1 | 1 | 6,019 | 2012-06-19T18:15:59.540 | infrastructure | serverfault.com | |
520,283 | pool www exited on signal 15 (SIGTERM): execution timed out | I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site was getting too heavy, so I'm still learning the ropes. I have moderately high traffic, I don't really monitor it close... | Well, I'm going to answer my own question. The problem apparently had something to do with the [CODE] value that I was using, possibly combined with the [CODE] FPM process manager. The double post always coincided with a PHP-FPM timeout error combined with a killing of a child process immediately after. So I disabled t... | 7 | 11 | 24,619 | 2013-07-02T18:06:18.050 | data_quality | serverfault.com | |
709,349 | Allowed memory size of (whatever) bytes exhausted - Windows PHP | I have been trying to find advice on troubleshooting this issue for while but have been unable to find anything which relates to my situation. I am running PHP 5.6.0 on a brand new Windows 2012 R2 VPS. My PHP App was originally on another 2012 VPS and ran absolutely fine with 128 memory limit set. I have simply copied ... | There are a few windows tools that can help a lot here. One is a download, the only link I could find in short order is from CNET so I think you can trust it, it is a Microsoft program called PROCMAN (or Process Manager) ProcMan The other tool is the Resource Monitor built into Task Manager in Server 2012, it is much i... | 1 | 0 | 525 | 2015-07-29T11:02:43.933 | database_errors | serverfault.com | |
843,645 | Need a backup of entire event log of windows servers using cmd or powershell | I am tasked to take a backup of all the eventlogs across all the servers and retain them for 30 days. I written a simple powershell to do this. [CODE] This exports the log files for the NTclassic event logs only, for the rest of the logs i get a system cannot find the path specified error. I changed the wevtutil and in... | The problem is the [CODE] variable. If you check which export files get created an which not you'll notice that all log names that contain a forward slash [CODE] generate the error message. The reason for this is that the [CODE] is an invalid character in a file name (under Windows). You can run the export by replacing... | 0 | 1 | 2,211 | 2017-04-10T11:11:47.023 | database_errors | serverfault.com | |
1,032,674 | Disk usage in LVM: Which directories contains most data? | We have following volumes: [CODE] So volume [CODE] uses 91% of memory. Now, I'd like to find out where most data is in [CODE] , but only in that volume and not in all. Can I do this anyhow easily? I'd like to do something like [CODE] , that is [CODE] without [CODE] , [CODE] , [CODE] and so on. Eventually, I'd like to f... | You can do a sneaky: [CODE] Then go through the results, of course you can change the size you are looking for. There is also the possibility that you have something still clinging to a fd, i.e deleted a log instead of rotating it. For this you can check: [CODE] Example: [CODE] Temporary solution to recover the used sp... | 0 | 1 | 653 | 2020-09-04T11:04:57.037 | infrastructure | serverfault.com | |
875,891 | LXC 2.0 Ownership problems | If I launch an Ubuntu 16.04 container and install for instance memcached on it, then almost all the processes /proc//* descriptors are owned by nobody.nogroup or 65334.65334 Where as if I would install memcached it on my host machine these would be owned by root.root In effect I can't see which processes are bound to w... | This happens because you are trying to install memcached as 'x' user however, that user ID might not exist or might be different. A good script could be found here: https://gist.github.com/bloodearnest/ebf044476e70c4baee59c5000a10f4c8 | 1 | 0 | 87 | 2017-09-28T07:36:29.917 | pipeline_ops | serverfault.com | |
330,042 | Does a dropbox on a separate computer compromise the security of other devices on the same LAN? | I wish to create a dropbox like service to reach my files remotely. Let's say I setup a linux box, connect an external hard drive, share it via password protected ftp and use a dyndns service to be able to connect to my network. Will I compromise the security on the other devices on the same LAN (other computers connec... | Installing anything creates a potential for vulnerabilities - e.g., if there's a vulnerability in the dropbox daemon (or whatever protocol you use for sharing files), or in any other software on your Linux box, it would be possible to exploit it (once it's known). You'll need to evaluate how much of a risk this is for ... | 1 | 4 | 183 | 2011-11-11T08:52:27.440 | infrastructure | serverfault.com | |
815,323 | WAN Static IP with Carp but different GW | I have the following problem, and I cannot find the solution, even after googling and reading the pfsense documentation. my ISP gave me the following information: [CODE] If I use these information in my pfsense box, it works without any problem. Now, I want to have some HA with Carp and multi-WAN. Before doing the whol... | Just for the sake of completion, and also for me in the future... even after doing everything, even if the answer from SmallLoanOf1M was helping me a lot to solve my problem, it wasn't working all the time... I found out that the problem was that the ARP entry for the gateway wasn't filled. I needed to do a arp -s 1.2.... | 1 | 1 | 822 | 2016-11-16T17:09:53.227 | infrastructure | serverfault.com | |
345,006 | Why popular repositories use release version as a "Release title" in GitHub? | What is the reason to use release version as a release title on GitHub? It looks like this And it looks like a common practise. Almost all popular repositories use it. What is the use case to duplicate release tag to the release title? UPDATE : Examples: Facebook React , Atom , Kubernetes , CryEngine | How to manage release with Git and GitHub ? The Git standard way of identifying a release is to create a version tag . This tag marks a specific version of your software in the change history of your repository. Most teams work with tags, because these are directly available in the repository and can be used in git com... | 20 | 25 | 14,965 | 2017-03-27T14:15:12.790 | data_quality | softwareengineering.stackexchange.com | |
206,772 | It is XFS reliable? In case of a power gone off is xfs riskier that ext3 in data corruption/safey? | I have been having some electrical issues,mostly power going out suddenly for a few months,and although ups solve the thing mostly. But still i am worried about filesystem corruption,and data lost. It is xfs worse than ext3 or less reliable when the computer goes off,or crashes or other filesystem issues? Having a ups ... | My personal experience with XFS has been that the fsck for it is not as good as for ext3. We ran our mirror server on XFS, with around 3TB of space for linux distros and the like which we mirror. At one point it had some issue (we didn't have a power failure, IIRC it just started reporting errors). So on a reboot it wa... | 7 | 6 | 7,940 | 2010-11-28T20:24:05.867 | data_quality | serverfault.com | |
316,557 | Direct Storage with XenCenter | I am looking at this new Lenovo ThinkServer RD240 I got. Since we are using NAS for file storage, and most of our servers are more function/application oriented (not requiring lots of data) I am trying to decide how I should order my drives. Basically, I can put 8 250GB 7.2k drives in a Raid 5 array and still have plen... | The size of drive doesn't affect performance- 8 250GB drives will go the same speed in terms of IO/s and MB/s as 8 2000GB drives, so long as the spindle speeds (7.2k RPM) are the same. Also, regarding raid level, if you have space to spare (and it sounds like you do), consider raid 10. You lose half of your usable capa... | 2 | 1 | 79 | 2011-09-28T20:18:50.177 | database_errors | serverfault.com | |
87,515 | Does SQL server log shipping require a 2nd SQL license | Possible Duplicate: Can you help me with my software licensing question? I'm currently working on a high availability solution for SQL Server 2008. I have 2 servers with 1 license of standard edition SQL Server. Can you implement log shipping with just 1 license? For example if you had SQL installed on the 2nd box, but... | If the SQL instance is used ONLY for purposes of receiving the log shipping (and no queries are executed against it), you do not need a second SQL license. If you use that second server for snapshot reporting or any sort of querying at all, then a license would be required. From the SQL Licensing FAQ: http://www.micros... | 6 | 7 | 8,520 | 2009-11-23T20:57:30.373 | data_quality | serverfault.com | |
763,162 | Tomcat SSL not available outside | I do have a Tomcat8 server running, currently in the development environment. It's been working for a while on the port we have picked (8085) and was available outside of our network (unblocked on the firewall). Recently we have made decision to run https also. I did configure our certificate and added connector direct... | You are redirecting 8085 to 8443 which gives me the idea that 8443 is closed. When it reaches 8085 tomcat redirects the traffic internally on 8443(acts like a proxy). Do a telnet on 8443 and you will find out. Please have a look here https://tomcat.apache.org/tomcat-8.0-doc/config/http.html | 1 | 0 | 1,022 | 2016-03-11T13:08:43.317 | infrastructure | serverfault.com | |
677,281 | "Unsupported osfamily: Linux" when trying to install Apache using Puppet | I'm trying to setup a simple Puppet setup on AWS EC2 using the latest Amazon Linux AMI. I've followed through the install guide for RHEL and have a [CODE] daemon running. When apply the following manifest in [CODE] : [CODE] I get the error: [CODE] From [CODE] of the Apache module for Puppet I can see why the manifest i... | Don't use Amazon Linux. The Puppet Labs Apache module is not compatible with Amazon Linux. You will need to use one of the distributions which it is compatible with, or create your own Puppet module. | 3 | 4 | 893 | 2015-03-21T22:39:21.257 | pipeline_ops | serverfault.com | |
44,675 | Locate for Linux that includes filesize and permissions? | Anyone know if there is a program for Linux that acts like locate / updatedb and family but includes file sizes and permissions? I know find can do this, but I am looking for something that puts all this information in a db so the information could be looked up quickly. The idea being, for example, that you could find ... | You could always [CODE] | 1 | 2 | 513 | 2009-07-23T15:29:49.180 | infrastructure | serverfault.com | |
303,719 | Execute Query only if a Oracle DB Table Exists | Hi Database Experts, Could anyone of you please suggest how I go about executing the following SQL Query against a Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 Database. I am running this query on a daily basis for some reporting. The below query is called by a BASH Script which passes it all the variables... | How do I add a condition to my query such that it executes only if the only if the view exists You can't. The SQL statement will fail to Parse well before you get to the [CODE] clause. The decision to run/not run needs to be handled in the BASH script by checking the exit code of the script ( [CODE] ) There are a few w... | -1 | 2 | 531 | 2021-12-09T06:44:57.363 | database_errors | dba.stackexchange.com | |
213,889 | Poor iptables network forwarding performance | This is my firewall script: [CODE] The thing is, when I connect from outside in one of the forwarded ports, i.e., 4899 (radmin), the connection works as expected. If I try to browse the web using http (80), it also works as expected, since we are using a transparent proxy. However, when I try to browse using https (443... | SSL obviously uses encryption, so depending on the spec of the machine that's running the SSL-enabled webserver, there could be a noticeable difference. | 1 | 1 | 2,297 | 2010-12-17T23:24:19.147 | infrastructure | serverfault.com | |
29,886 | How can I handle dependencies in Cucumber tests? | When I have dependencies such as http or authenticate, how can I use Cucumber without being slowed down on these services ? | You should mock / stub those dependencies. WebMock can do that. It stubs at a low HTTP client lib level. Add [CODE] in the support/env.rb file Examples: Simulate basic http [CODE] Simulate OAuth [CODE] | 1 | 1 | 176 | 2017-10-01T22:28:28.150 | data_quality | sqa.stackexchange.com | |
650,620 | Secondary IPs on DMZ machines not working | I am moving some virtual machines from my DMZ in a bladecenter over to my new cisco UCS. We are using Hyper-V, and are running Server 2012 on the old bladecenter, and Server 2012r2 on the new UCS. We have a Cisco ASA 5515 firewall, asa version 9.1(4), that is our gateway for both LAN and DMZ traffic. In the old bladece... | Thanks to joeqwerty who helped get me pointed in the right direction. The problem was twofold, the ASA was not correctly creating ARP entries dynamically. We got that squared away, but then found that we also had a VLAN problem. | 0 | 0 | 240 | 2014-12-10T18:03:39.250 | infrastructure | serverfault.com | |
769,533 | Configure Azure AD Connect | I'm trying to set up an domain in Azure AD Connect on a Workgroup computer. The challenge that we have is, we have a dedicated domain controller for the purpose of Azure AD Connect and the other domain controllers are in a non-routable network for AD Sync server (We chose not to install AD Connect on Domain Controller ... | Finally, we ended up upgrading the AD Connect version which resolved the issue. Appears to be a glitch in that particular version we had. | 1 | 0 | 2,154 | 2016-04-11T15:45:33.143 | infrastructure | serverfault.com | |
444,112 | Client-Server-Architecture: Move computation logic from client to backend - Algorithm needs certain new values while running (User input) and continue | Background: At work I was tasked with developing a new demo web client to replace our Windows Form application in the future. Our back-end is developed in Java and works stateless as REST services. The demo client should be based on Angular as we want to try out some things first. Both I and other developers already ha... | The real problem lies typically in the part you forgot to draw in your image: Such requirements can typically be solved by doing some preprocessing on the server (a small part of the "heavy calculation") in the first request/reponse step to determine which input from the user is required. Then, after the user provided ... | 1 | 1 | 127 | 2023-02-23T11:50:06.987 | api_errors | softwareengineering.stackexchange.com | |
126,432 | Hyperparameter tuning | Jane trains three different classifiers: Logistic Regression, Decision Tree, and Support Vector Machines on the training set. Each classifier has one hyper-parameter (regularisation parameter, depth-of-tree, etc) that needs to set, so she chooses a set of 10 reasonable values for each and performs a sweep over those va... | This is called data leakage. She should choose hyper parameters based upon the training data. And then report performance when evaluated using the test data. Being able to make good predictions on already seen data is uninteresting . Any relational database could accomplish that trick, it is trivial. What we care about... | 1 | 1 | 20 | 2024-01-15T15:55:12.663 | data_quality | datascience.stackexchange.com | |
218,699 | sp_getapplock not working in multiple Connection | I wrote below script and run it in two tab of SQL Server management studio: [CODE] One of the execution wait 8 seconds and another wait 16 seconds. I was expecting it and every things is fine. But when I open two SQL Sever management studio which connected same instance, and run this script, It is not working and both ... | Detailing the answer added to the question, according to the sp_getapplock documentation , (emphasis added): The lock resource created by sp_getapplock is created in the current database for the session . Each lock resource is identified by the combined values of: The database ID of the database containing the lock res... | 1 | 1 | 1,231 | 2018-09-27T07:53:15.243 | database_errors | dba.stackexchange.com | |
369,842 | Assemblers Used During the Development of a Programming Language? | I am currently designing and developing a programming language from scratch. Mostly as a learning experience. Although it's not entirely related to the question, it's important that you know a little bit of the backstory . I have a fairly good idea as to how I'll turn the code from my language into the target assembly ... | Most compilers bundle an assembler and linker as part of their backend. These may or may not be standalone programs. For example, LLVM will not generate textual assembly language, but generates machine code directly from the in-memory IR (intermediate representation). Using LLVM as a library in your compiler is the eas... | -4 | 5 | 175 | 2018-04-23T11:06:17.467 | database_errors | softwareengineering.stackexchange.com | |
484,091 | enable/disable resuming downloads feature on the server side | How is it that some servers doesn't allow resuming downloads? Where - in terms of server configurations - you have to configure to disable/enable this feature? Is it an http config? or it has something to do with your TCP connection? or both? of course the problem isn't specific to http. FTP and HTTPS protocols must ha... | FTP and HTTP are completely different protocols, so the mechanisms are different. FTP clients uses the [CODE] command to inform the server that the next file transfer (either download or upload) will start from a specific point in the file: [CODE] HTTP client use the [CODE] header to request that the server send a spec... | 3 | 0 | 2,538 | 2013-03-02T17:34:13.867 | infrastructure | serverfault.com | |
219,759 | Semantic versioning when fixing an important bug | I currently manage a library which has a lot of public usage, and I had a question about semantic versioning . I want to refactor one fairly important part of the library which is implemented incorrectly - and has always been implemented incorrectly. But doing this would mean changes to the public API, which is a major... | You hesitate because you don't want to make semantic versioning, you want to make "advertisement supporting versioning". You expect a version number "2.0" to tell the world that you have a bunch of new cool features in your library now, not that you changed the API. That's ok (many software companies and/or developers ... | 18 | 29 | 1,579 | 2013-11-28T13:07:24.980 | api_errors | softwareengineering.stackexchange.com | |
496,321 | Syncing Google Apps Directory Information to Mac Contacts over cardDAV | The Problem: Our company runs Google Apps. Some users prefer to run native applications on their laptops, such as Mac Mail, Mac Calendar, etc. If you are not logged in to Gmail, you will not be able to access the Google Apps Directory (what is this person's E-mail address, what is this group's E-mail address, etc.). Th... | Syncing contacts only works on a per user basis, eg., each persons private contact list can be synced, but the public directory probably can't be synced. I've looked for a solution but have no luck yet. | 5 | 0 | 4,404 | 2013-04-05T00:49:08.037 | infrastructure | serverfault.com | |
871,189 | Postfix send mail from a specific IP for specific mails | I have a server which has 2 public IPs. When sending an e-mail (With PHPMailer to installed postfix) it uses one of the IPs to bind and send the message. Is there a way to tell postfix to use the other IP, but not for all mails? | To bind your postfix to a specific IP, add to main.cf this line [CODE] Then restart your postfix This can be used in the master.cf also, read more about it on postfix site: http://www.postfix.org/postconf.5.html#smtp_bind_address | 0 | 1 | 1,676 | 2017-08-30T07:53:13.947 | infrastructure | serverfault.com | |
673,037 | setting numerical hostname in Proxmox | I am using Proxmox. I tried to run new OpenVZ container and I set my recently registered domain as a hostname in format "three digit number dot ie" (XXX.ie). The problem is, that after starting server, no matter what is written in files /etc/hosts and /etc/hostname the command [CODE] alway gives me answer just XXX (wit... | Problem sorted for me. Just changed distro to CentOS 6 and numerical hostname works fine. No clue, why it didn't work with Debian 7 | 1 | 0 | 1,345 | 2015-03-04T17:09:36.130 | pipeline_ops | serverfault.com | |
218,644 | How could Clang release under BSD license? | I found that llvm could only generate assembly code. If someone want generate and link assembly code to native executable code, they should use external tool(GNU as/ld, for example. Currently lld is not ready, and there no more information about llvm-mc). This question's answer and other answers imply that Clang use Bi... | AFAIK (though I am not a lawyer), running a GPL'd application from the command line or similar does not count as derivative work. Aside from that, the LLD subproject is creating a similarly-licensed linker. Although I don't think it's used by Clang yet. | 1 | 4 | 443 | 2013-11-16T18:18:45.040 | api_errors | softwareengineering.stackexchange.com | |
64,632 | How to create a versioning DDL/DML change script for SQL Server? | I have an application which has a database, and some versions of the application introduce schema changes. To make installation easier (?), I figured I want to create a meta table which contains the current version of the schema, and I want to create a single script that upgrades the schema from any earlier version to ... | I did something very similar, but not as a single script. I used migrations . I also described this in Version Control and your Database . And indeed, every step is a different script, and the application drives the upgrade (the migration). Every step is tested. Every change is an upgrade, be it DDL or DML, it matters ... | 0 | 0 | 2,753 | 2014-05-07T09:09:29.933 | database_errors | dba.stackexchange.com | |
1,054,329 | Exclude remote syslog client logs from /var/log/syslog on host machine | Background: I have a lil Raspberry Pi server running the latest Raspbian OS running a number of network appliances to help manage a complex IOT LAN for a client. I have been using rsyslog to write logs from the network hardware and servers to an external drive, mounted to /media/syslog. This is working fine. No, I can'... | You need an [CODE] after each line. The [CODE] means apply the same filter, and if it matches [CODE] further handling of this event. [CODE] | 0 | 0 | 1,936 | 2021-02-19T20:38:39.543 | hadoop_errors | serverfault.com | |
560,535 | 3ware card in RAID-5 configuration slow and causes load when writing | I have a 1Gb/s bandwidth between my computers. The source can actually read and send data at 25MB/s via SSH. My test file is 4GB, I use scp without compression for the test transfer. The rate is 25MB/s at the beginning, but after a point it starts to decrease quite suddenly. After sending 2GB the rate is down at 4.5MB/... | The output from tw_cli shows that the write cache is disabled. By default, 3ware cards disable the write cache if the BBU is not present. When the write cache is disabled each write operation must be flushed to all disks to prevent possible corruption in the event of a power failure. Write cache can be enabled by runni... | 1 | 3 | 2,113 | 2013-12-10T23:29:43.337 | api_errors | serverfault.com | |
206,573 | refresh squid rules after every change | I have squid proxy server running on ubuntu. I wrote set of rules for acl including something like: [CODE] if any user exceed the bandwidth limit then his name will transfer to exceeded list. but the problem is to apply this change i need to restart squid. Is there any way to apply like these changes automatically with... | Running [CODE] will cause it to reload the configuration without restarting. You can use incron to monitor your [CODE] list to automatically trigger the reconfigure command whenever that file is written to. | 7 | 12 | 14,605 | 2010-11-27T18:36:34.777 | infrastructure | serverfault.com | |
29,022 | What are the signs of an understaffed QA team? | What are the typical signs and signals of a Quality Assurance team being understaffed? How would you justify/explain a request for a new addition to a team? A little bit of background: We currently have few full and part time testers but with growing demands and products we've built a rather long backlog of test storie... | I will answer this question with Agile iterations in mind. (An iteration could be a full Sprint or a single-user-story-cycle if you do Kanban or swarming .) The QA department is understaffed when: Not every cross-functional Agile team has a someone with QA knowledge The ratio defects versus released features is getting... | 9 | 8 | 517 | 2017-08-11T04:08:18.567 | data_quality | sqa.stackexchange.com | |
256,228 | linux centos root crontab will not run | I added the following using "crontab -e": [CODE] when I do [CODE] I see the line. am I missing something? It's not running. It does run manually. | The PATH for cron is unlikely to be the same as the one you use interactively. Try changing [CODE] to [CODE] . | 1 | 1 | 292 | 2011-04-06T07:05:21.577 | infrastructure | serverfault.com | |
292,230 | Cannot connect new users to pluggable database | I'm new to Oracle DB (coming from MS SQL Server). For a start, I downloaded a Docker container for Oracle Database 18c XE. When I run that container, after creating a pluggable database, I don't seem to be able to connect with new users I create: As far as I can see I provided all necessary bits and bites to get these ... | This is the SQL statement that SQL Developer generated: [CODE] This makes the username case-sensitive, so the actual username can be used as [CODE] . You tried to login in SQL Developer using the username [CODE] . This is not case-sensitive syntax, and it is automatically treated as [CODE] , but that user does not exis... | -3 | 2 | 1,120 | 2021-05-25T14:55:08.673 | database_errors | dba.stackexchange.com | |
28,518 | How do I identify a specific <div> by id with Selenium? | I want to grab everything within this [CODE] with an [CODE] of "storytext": [CODE] Trying to grab this div: [CODE] Execution log: [CODE] whether to iterate, parse or persist. Playing with Selenium. | [CODE] What you are actually asking Selenium to do is to find all "storytext" elements. Selenium will be looking for [CODE] elements which, I am pretty sure, you have none. Instead, you intended to use the "by id" locator: [CODE] | 3 | 3 | 3,595 | 2017-07-13T03:22:16.977 | data_quality | sqa.stackexchange.com | |
315,849 | Curl POST - 411 Length Required | We have a RestFUL API we build in PHP. If we make the request: [CODE] We get back: [CODE] Though if we simply add [CODE] onto the request it works and no 411 error. Is there a way to not require adding -d to the curl command? We are using lighttpd web server, and believe its lighttpd NOT php who is returning the 411 er... | You are correct -- lighttpd doesn't support POST requests with an empty message body without a 'Content-Length' header set to zero, and CURL sends such a request. There's argument back and forth about who's right, but in my opinion, lighttpd is broken. A POST with no Content-Length and no Transfer-Encoding is perfectly... | 47 | 71 | 79,788 | 2011-09-27T08:05:33.813 | infrastructure | serverfault.com | |
615,411 | Private Nameserver not working properly with Godaddy domain registry | My domain name is http://www.markupchop.com The domain was registered with GoDaddy. My hosting provider was youhosting.com. But as per their words i created the private nameserver as [CODE] under GoDaddy's hostname section. Then the created nameserver was updated at youhosting.com. Even the website and the FTP is can't... | If subdomains work and the main domain doesn't, this is likely to be due to DNS propagation. If your address has been cached, you will need to wait for your DNS TTL to expire before the address is cached again - your TTL is currently set at 14400 seconds (or 4 hours). Querying the system default DNS server (in my case,... | -1 | 0 | 478 | 2014-07-25T07:10:43.610 | infrastructure | serverfault.com | |
821,445 | Elasticsearch Curator unable to connect with AWS ElasticSearch service | From a server on AWS, I push data into AWS ES service. This data appears on Kibana just fine. I am also able to perform cleanup via cURL commands from this machine. However, no machine of mine is able to run ElasticSearch Curator successfully and connect to AWS ES. [CODE] My access policy allows me to access this machi... | Curator is attempting to connect to port 9200, the default ES port. AWS ES is on port 80. Add [CODE] to your command line. | 1 | 0 | 1,220 | 2016-12-18T15:26:48.217 | bi_errors | serverfault.com | |
150,878 | change SSIS package protection level before deployment | I'm developing SSIS project locally using project deployment model. I use SQL Server Authentication to connect to remote server. During this period Protection level is set to EncryptSensitiveWithUserKey . However, upon deployment this package will be executed in a completely different environment, using SSPI security c... | Since you're in project deployment mode, which means you are deploying to the SSISDB, there's no need for what you're doing ;) When you deploy, the isdeploymentwizard.exe is handling all that for your As part of the deployment, the "Changing protection level" step switches the packages to ServerStorage level | 4 | 3 | 3,176 | 2016-09-28T13:14:10.473 | api_errors | dba.stackexchange.com | |
425,680 | API: should a problem with data be announced by a HTTP code or in the response body? | After years of (amateur, dirty) personal API development I finally decided to follow some best practices. My problem : the API may have problems, say, retrieving some data. It will gracefully handle the problem but needs to pass that information back to the requester (a JS front of mine, if that matters). My question :... | Annoyingly, it depends on how meaningfully the issue (in the backend) is actually considered a problem (to the end user). Just to prove the range of possibilities: If a main server failed, but the failover server worked, you'd likely not even tell the user that there is a problem. If your endpoint is supposed to find c... | -1 | 2 | 312 | 2021-04-22T13:12:18.420 | api_errors | softwareengineering.stackexchange.com | |
70,438 | What is an edge router and how does it work? | Possible Duplicate: What is an edge server / router / device? Can someone tell me what an Edge Router is and how it works? Examples and analogies are always welcome. | An edge router is simply a router that connects the network you control to a network that you don't. In most cases, it is the router that's connected directly to your internet connection. This is in opposition to a core router, which is a router that routes between multiple networks that are all under your control. An ... | 2 | 8 | 7,191 | 2009-10-01T16:01:06.457 | data_quality | serverfault.com | |
66,301 | removing duplicate lines from file with grep | I want to remove all lines where the second column is 05408736032. 0009300|05408736032|89|01|001|0|0|0|1|NNNNNNYNNNNNNNNN|asdf| 0009367|05408736032|89|01|001|0|0|0|1|NNNNNNYNNNNNNNNN|adff| | This might do what you want: [CODE] However this sorts the input according to your field, which you may not want. If you really only want to remove duplicates, your best option is Perl: [CODE] | 0 | 3 | 6,957 | 2009-09-17T15:51:28.030 | data_quality | serverfault.com | |
71,717 | Trouble quering a join in oracle sql | Theres a question on an exercise which asks me to write an SQL statement to show the SKU, SKU_Description, WarehouseID for all items stored in a warehouse managed by ‘Lucille Smith’. I have to use a join, but not use the JOIN ON syntax. I came up with: [CODE] with the following errors [CODE] | I've made a couple of assumptions here but one of these should work or be close: [CODE] Or [CODE] | -1 | 1 | 3,783 | 2014-07-17T01:33:54.607 | database_errors | dba.stackexchange.com | |
993,595 | AWS EC2: SSH security group inbound rules do not work | I have the following setup: [CODE] Both security groups have 'All traffic' enabled on 0.0.0.0/0 for outbound connections. With this setup I can ssh from Instance B to Instance A. However, if I remove Rule 2 (the 0.0.0.0/0 rule), ssh now hangs and the machine does not respond to pings. Am I misinterpreting how ssh acces... | When you specify a security group as the source or destination for a rule, the rule affects all instances associated with the security group. Incoming traffic is allowed based on the private IP addresses of the instances that are associated with the source security group (and not the public IP or Elastic IP addresses).... | 2 | 3 | 4,699 | 2019-11-28T11:20:12.200 | infrastructure | serverfault.com | |
951,296 | Finding SMART status of SATA disks in HP SmartArray | I'm trying to find SMART params of the disks in my array, it seems that simple way does not work: [CODE] Is there any other way I can query status of those (SATA) disks? | You can do [CODE] or [CODE] you can count the last number then up to select the new HDD. this will result in: [CODE] | 4 | 6 | 7,957 | 2019-01-29T14:31:52.940 | infrastructure | serverfault.com | |
870,319 | IP Tables intercept exception | I've got a set of iptable rules that look like this: [CODE] It's designed to send 80 and 443 traffic to Squid, a http cache proxy. I'd like to put some lines in the iptables rules that would NOT direct 443 traffic to specific IP addresses to 10.10.1.1:3127 (squid) Use case: I have a websocket server that the clients be... | I'd do the following: [CODE] Every time a packet destination matches [CODE] it will skip the rest of the intercept-nat rules. I also changed your rules a little bit to make them more readable and easy to change ;-). | 2 | 3 | 1,013 | 2017-08-24T17:08:54.263 | api_errors | serverfault.com | |
434,442 | Installing .NET application on IIS 7.5 issues | I am trying to install a webservice that some other guy wrote in .NET. I have some basic IIS understanding. The webservice works just fine on my dev computer, but when I try to move the webservice to a production server, bad things happens. The webservice is located at [CODE] on the dev server. But on this production s... | This may be a better question for stackoverflow.com but I'll take a stab at it for now. From an IIS perspective if you can find out the specific 500 error it may give a big clue. Check the IIS logs in c:\inetpub\logs\Logfiles\w3svc{siteid}. Find the records for your failed tests and towards the end of the records you s... | 0 | 0 | 1,827 | 2012-10-03T13:59:26.963 | infrastructure | serverfault.com | |
288,726 | How can I avoid needing to check for the existence another vertex when adding to an adjacency list? | I'm writing a Graph, and decided to make the Adjacency List its own class. Right now, (stripped down) it looks like this: [CODE] Which was fine, until I realized that it's possible to add a vertex to a vertex's outgoing list that doesn't have its own spot in the hash map. This could lead to someone adding a vertex to a... | Checking whether an element exists in a hash map is fairly cheap. Hash maps give fast lookups; it's what they do. I wouldn't worry about it, especially if you aren't actively encountering bad performance. The value of having good, resilient, failfast code is better than having code that might be trivially faster but ma... | 1 | 3 | 59 | 2015-07-04T22:55:38.427 | api_errors | softwareengineering.stackexchange.com | |
1,024,416 | Has Microsoft documented XSS mitigation for bootstrap and jquery XSS vulnerabilities in their online hosted products? | I am reviewing a web scan vulnerability report and believe Microsoft has mitigated the vulnerabilities reported (based on jquery and bootstrap versions) but finding documentation from Microsoft would be helpful. "According to its self-reported version number, Bootstrap is 3.x prior 3.4.1 or 4.x prior to 4.3.1. Therefor... | Based on the Microsoft article you forgot to link to in the original question (emphasis mine): Microsoft Dynamics 365 is leveraging stable branch versions of jQuery, this includes 3.x, 2.x, and 1.x. While there are risks associated with specific functionality within the library, all usage of jQuery has been extensively... | 0 | 0 | 173 | 2020-07-07T21:19:01.717 | infrastructure | serverfault.com | |
625,477 | Moving MYSQL database Cache issue? | I moved a mysql (myisam) database using rsync to aother server, I realized after doing this that I forgot to run 'flush tables' before moving the files so not all changes were written to disk I guess. I did this out of hours but I was wondering how consistent the data will actually be after the move? Does mysql keep da... | To reliably copy database tables, the database has to be stopped (not just flushed). If it is not, a consistent copy is not guaranteed, but is it impossible to say if and what data might be lost. That said, if the database was not active and some time passed since the last write operation before you started the copy, i... | -1 | 3 | 51 | 2014-09-01T13:48:36.530 | database_errors | serverfault.com | |
254,191 | How to combine url rewriting and fastcgi in nginx? | I have trouble to set up a combination of url rewriting and fastcgi for nginx. The application server behind the fastcgi interface expects /myapp/ as base path. And I want to make this accessible under my http://myserver.com/ [CODE] No matter what I try I always get the root path of the application server displayed. I ... | I don't think you need two locations here. Here's a piece of one of my configs: [CODE] | 2 | 3 | 13,058 | 2011-03-31T16:06:35.737 | infrastructure | serverfault.com | |
285,501 | MySQL: Updating large data set including time aggregation | I am having a large MySQL (5.7) table with millions of rows (contains data for each second). Based on these values calculations should be performed, in some cases for large data ranges. Therefore, I want to perform a preprocessing where I perform the calculations beforehand and store the result in a separate table. Due... | An [CODE] can be done by Joining the SELECT that you have, only you need some aliases for the columns. The logic isd simple you can join both tables with the ddate and the time which is for example always [CODE] as You group by data and hour [CODE] | 1 | 0 | 270 | 2021-02-16T15:57:59.720 | database_errors | dba.stackexchange.com | |
846,389 | Missing space on ZFS (Nexenta) | I am facing an issue where ZFS appears to be missing around 4TB of space on a 16TB volume. The ZFS pool is reporting the correct size (16.3TB): [CODE] The [CODE] command however reports 4TB less: [CODE] Further to reading this post I also ran [CODE] and [CODE] to verify that there are no snapshots using space, which co... | Oh my god... what did you do?!? In general, RAIDZ1/2/3 will show zpool listings with the full (raw) capacity of the drives, while zfs listings will show the space minus parity... But what you've shown above is: A 9-disk RAIDZ1 striped with a 3-disk RAIDZ1 and a 6-disk RAIDZ1. That's pretty bad if you weren't intending ... | 5 | 4 | 333 | 2017-04-25T09:07:17.190 | infrastructure | serverfault.com | |
634,136 | CENTOS 6.5 x86_64 fails to install httpd using yum | I am trying to install apache httpd but it fails [CODE] Edit : Here is the repolist [CODE] I used the link http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/ to install I downloaded centos-release-6-5 and installed using rpm -ivh . The result is as below [CODE] I tried using -U... | I have no idea how, but someone has managed to delete your [CODE] and [CODE] repos, which gives you the operating system itself. All you're left with is a bunch of extended repos that provide more up-to-date versions of certain tools. That isn't going to work. The package that owns the repo file you need is called [COD... | 0 | 2 | 5,089 | 2014-10-07T12:18:23.403 | infrastructure | serverfault.com | |
211,292 | SQL 2008 R2 express: Server Cannot open database requested in login 'xx'. Login fails. Login failed for user 'NT AUTHORITY\SYSTEM' | I have SQL Server 2000 installed on the server. I installed SQL Server 2008 R2 express edition as required for new application. The application runs on the same server which is Windows Server 2003 with IIS 6. SQL Express was installed as named instance. I can connect to SQLExpress via Management Studio. The web applica... | SQL Server Express doesn't allow remote connections by default, after installation. You need to take some extra steps to allow this to work. Check out this Microsoft Knowledge Base article on how to do this. The KB article is about SQL Server 2005 Express, but the same still applies to SQL Server 2008 R2 Express. | 0 | 0 | 986 | 2010-12-09T20:39:17.780 | api_errors | serverfault.com | |
579,123 | Automatically acquire IPV6 address in CentOS 6 | The network has fixed IPv4 address, and automatic acquired IPv6 address. Does anyone have an idea how to setup? Thanks a lot! I didn't use NetworkManager. The following is my setting, but it does not work :( /etc/sysconfig/network: [CODE] /etc/sysconfig/network-scripts/ifcfg-eth0 : [CODE] I could not get the a global I... | In order to do SLAAC, you have to have a router that's sending Router Advertisements (RA), to provide the network prefix and prefix length. That will also have the default gateway. Something, somewhere on the local subnet needs to send the RAs. Usually its the router, but there are some tools to have a Linux (or BSD) b... | 2 | 1 | 3,594 | 2014-03-01T03:38:45.307 | infrastructure | serverfault.com | |
233,794 | MySQL failover: how application can be switched to a new master in master-slave configuration? | In my case I have two MySQL servers. One is master and second one is slave. When slave is not available, my application can read and write from/to master. When master is not available, assume there is a tool [CODE] which successfully nominates a new master (from slave). It sounds good, but application has master hostna... | We had faced a similar kind of problem. A Multi-AZ MySQL-RDS provides an automatic failover feature. Everytime a failover occurred, although the URL of the new master would remain the same but still JDBC was not able to connect to the new master. By default, once a connection to database is made some setups will never ... | 1 | 1 | 553 | 2019-04-02T23:49:01.420 | database_errors | dba.stackexchange.com | |
547,655 | Another domain other than localhost? | I have a LAMP installed on my computer without problems. I can go to [CODE] and it will by default show the contents of [CODE] . Is there a way to add new "domains" that refrence localhost? For example, can I do a [CODE] and have that point to [CODE] folder? I just want to use something other than the word "localhost". | Yes you can put entries in your /etc/hosts file; the first line should look like this -> 127.0.0.1 localhost Change it to 127.0.0.1 localhost johndesktop Then you need to edit your apache vhosts config and add a record for johndesktop to point to the desired folder, something like this in httpd-vhosts.conf [CODE] | 2 | 2 | 948 | 2013-10-21T21:58:14.133 | infrastructure | serverfault.com | |
121,451 | Is there an equivalent to MySecureShell for Centos? | I have some issue to install MySecureShell on CentOS 5.4 because I want to use Yum to install it (for maintainability). I get this error : [CODE] I assume that the issue is that openSSL shipped with CentOS 5.4 is too old... I don't want to install everything manually so I would like to know if there is an equivalent to... | This is expected when trying to install Fedora apps directly in CentOS. This results from Fedora having more up to date apps and libraries. You have a few of choices: Install openssl from Fedora and hope it doesn't crash other ssl using apps - NOT RECOMMENDED! Grab the source rpm from Fedora and build your own package ... | 1 | 1 | 1,615 | 2010-03-11T11:56:52.467 | infrastructure | serverfault.com | |
108,200 | What is the correct implementation of handling concurrent SQL inserts while ensuring a non-primary key column (i.e. wid) unique and auto-incremental? | What is the correct implementation of handling concurrent SQL inserts while ensuring a non-primary key column (i.e. wid) unique and auto-incremental? Note: There was a design constraint that led this field (i.e. wid) in not becoming the primary key. A separate auto-increment PK is included in the column called id. Chan... | All three options you are looking at are bound to perform poorly in a concurrent environment. Wrapping [CODE] in a transaction won't prevent race conditions; you'd need to write-lock the entire table for that. If you don't need the sequence numbers to start from 1 for every branch, as long as the values are increasing ... | 2 | 3 | 2,116 | 2015-07-27T11:45:17.950 | data_quality | dba.stackexchange.com | |
448,306 | Most efficient mapping of pixel to colors with colormaps | I'm working on a module that handles colormaps and I want to make the mapping of pixel to colors as efficient as possible. It is a performance critical section of our app. Our current solution works like this: I have a normalized double value x (range [0, 1]) per pixel that denotes the position inside the colormap. The... | Is this on the CPU or GPU? On a GPU this is a "one dimensional texture", which is a highly optimized lookup. By default it will linear-interpolate between values, which may cause problems for your "hard border". If the number of hard borders is small (one or two) it may be more efficient to just split at that and then ... | 1 | 4 | 345 | 2023-10-25T07:54:03.400 | api_errors | softwareengineering.stackexchange.com | |
826,034 | Switching from OVH kernel to default kernel without reinstalling Ubuntu | I have a dedicated server hosted by OVH. When installing the server I must have left the default choice of kernel which is to use the stable/tested OVH kernel rather than the distribution's native kernel. I have recently switched to using APF firewall rather than UFW and after setting up APF with all my rules and start... | You can install a new kernel with [CODE] as usual, and then it should show a menu where you can select the kernel you want to use. If that does not happen, you can look at the question https://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader/52990 for further information on e... | 0 | 0 | 811 | 2017-01-13T06:45:45.190 | infrastructure | serverfault.com | |
212,857 | Pass authentication from Apache to JBoss | I have an Apache server setup that is passing requests over to a JBoss server to serve Java content. I've been able to get this working without a problem. However, it appears that the authentication from Apache is not being sent. When I go to a given URL, Apache challenges me for the username/password, but when the req... | Several possible solutions; if you're using mod_proxy_ajp or mod_jk for the connector then make sure that this is set in your server.xml connector: tomcatAuthentication="false" That will most likely fix the problem. If not, it's a bit more difficult depending on which module you're using for the AJP13 connection; we'll... | 0 | 1 | 1,062 | 2010-12-15T13:23:19.237 | api_errors | serverfault.com | |
91,334 | Apache mod_auth_digest doesn't work | I've been following the Apache guide to using the mod-auth-digest module but I can't seem to make it function properly. My .htaccess and .htpasswd test files are located in 'localhost/php/private', and the containing code is: [CODE] The browser keeps returning Error 500. The corresponding apache error log entry says "L... | That is because Location isn't allowed inside the .htaccess context. Any particular reason why you need to specify Location, instead of just putting the .htaccess file in the folder you want to protect? If you really need to specify Location you will have to do that directly in your Apache configuration. | 2 | 2 | 5,533 | 2009-12-05T12:35:43.383 | api_errors | serverfault.com | |
1,053,485 | How to set AWS EC2 security group to allow SSH from all computers connected to 2 different home networks? | I have a Verizon router and a AT&T router at home and multiple computers that are connected to one of the two routers. I just started a free tier AWS EC2 Ubuntu server and would like to set its security group to allow SSH connection from all of my home computers. How do I do that? (Currently it's just set to one comput... | You’ll have to find out your public IP - websites like ifconfig.co or whatismyip.com will tell you. Then put that IP into your security group. | 0 | 1 | 288 | 2021-02-12T22:33:30.383 | infrastructure | serverfault.com | |
71,190 | Does code generation increase the code quality? | Arguing for code generation, I am looking for some examples of ways in which it increases code quality. To clarify what I mean by code generation, I can talk only about a project of mine: We use XML files to describe entity relationships in our database schema, so they help us generate our ORM framework and HTML forms ... | Code generators cannot generate better code than the person who wrote the generator. My experience with code generators is that they are just fine as long as you never have to edit the generated code . If you can hold to that rule, then you're good to go. This means you can reliably re-generate that part of the system ... | 12 | 38 | 1,934 | 2011-04-25T19:05:06.330 | api_errors | softwareengineering.stackexchange.com | |
299,756 | TfsConfig Identity /change for workgroup accounts to domain accounts | I have successfully migrated a TFS 2005 Workgroup server to a new Team Project Collection in TFS 2010. I am trying to use the [CODE] command, but nothings is being changed. Is this even possible or will I have to fat-finger the SQL Database directly to get this mapping working? Or is there another way to fix-up those n... | The solution was to map the WORKGROUP accounts to newly created (temporary) domain accounts. | 0 | 0 | 752 | 2011-08-10T17:57:33.287 | infrastructure | serverfault.com | |
28,472 | Classification of very similar images | I have two groups of images, each one with 1000 samples. The speckle pattern, in this context, is the same as a random pattern or "white noise" image. So these images are fundamentally different. In group one, each figure is generated by considering a random function that returns something similar to a speckle pattern ... | I found the answer in the paper linked above. The authors use a CNN to solve the problem. I will post the code. https://link.springer.com/article/10.1007/s00170-017-0882-0 | 4 | 0 | 3,618 | 2018-03-01T16:23:04.153 | data_quality | datascience.stackexchange.com | |
158,990 | Diagnostic policy service is not running on windows 7 | I have rebuilt my machine 3 times (Windows 7) and upon next boot the network will not connect. (Wirelessly or Wired) If I right click to troubleshoot, I receive the error Diagnostic policy service is not running. When I try to start it, I receive "Access Denied : Error 5". Thus, I have to do a System Restore to get it ... | Ended up being an issue with McAfee Antivirus. Tweaked some security settings and now it works. | 1 | 1 | 2,218 | 2010-07-09T15:01:11.370 | database_errors | serverfault.com | |
107,413 | Procedure to read from crontab like table and populate another one periodically | Postgres 9.3 Debian 7 I'm working on a mobile game project (poker like) where an admin user can register a recurrent tournament. As it's recurrent, I modeled it crontab like as follows. [CODE] And I need to create a job (procedure) that will populate a queue of the next tournaments in the history table as follows. [COD... | After some time i figured out how to do this. Lets put as sample data 2 recurrent tournaments: One daily at 16:20 and another every sunday at 14:00 [CODE] My solution was to make a full join between the schedule and every minute timestamp (as it's the smallest division) from now until the days limit and comparing each ... | 1 | 0 | 73 | 2015-07-17T22:41:49.590 | warehouse_errors | dba.stackexchange.com | |
1,038,913 | Mixing Galera and MariaDB/MySQL replication | reading about it online, it appears we can use both Galera replication and native MariaDB/MySQL replication together. Can anyone confirm that this is correct? I'm thinking of a scenario where Data Center A has 3 Galera nodes synchronously replicating with each other, and Data Center B also has 3 Galera nodes synchronou... | [CODE] is probably not usable. [CODE] need care to avoid accidental dups. How far apart (in ms) are the datacenters? | 0 | 0 | 271 | 2020-10-16T03:24:15.477 | database_errors | serverfault.com | |
980,677 | XFS with No Barrier Mount option deprecated | I tried to perform SQL Server database restore with xfs filesystem and barrier=0 in Azure cloud environment. It performs restore of some 15GB data in around 8 minutes. I heard this option is getting deprecated in near future. Without this option restore time increases to 25 minutes. Do we know any alternatives to this ... | Since kernel 4.13, the nobarrier was removed for XFS. This article suggests two workarounds: switch from XFS to ext4 echo "write through" > /sys/block/$device/queue/write_cache I tried myself the [CODE] option (e.g. [CODE] ) option and performance on my nvme went 20x up! For me, results were twice faster than ext4 with... | 4 | 4 | 9,522 | 2019-08-25T21:56:57.483 | database_errors | serverfault.com | |
1,119,500 | Create shared folder as active directory would in powershell | With Active Directory I can manually create new users. Every time I do that, I use [CODE] on that user, then I modify some things like Name, Surname and SamAccountName. This process creates a new user with common properties with the copied user and also a home folder in our NAS (with path [CODE] ). I created a script t... | If you create the user with [CODE] the folder will be created on logon with the user as owner. The user needs to be able to create folders on [CODE] . You could give this permission to a group like "all_users" which every user will be put into when creating. Give Create files / write data and Create folders / append da... | 1 | 0 | 674 | 2023-01-05T08:39:00.430 | infrastructure | serverfault.com | |
308,497 | SQL Main query value used in the WHERE in the subquery | I'm really confused by this SQL here, I have this sample where I am using the value from the main query in the subquery and then using XML PATH to add a comma between the dates. The setup is 2 tables one with the dates I want to string together. I am not sure why the subquery where statement is not retuning the correct... | In your subquery, [CODE] is ambiguous. LogID exists in two tables, but the query doesn't tell SQL Server that you intend to use [CODE] from one table to join to the [CODE] in the other. In your version of the query, SQL Server is interpreting that within the scope of the subquery only, so that it is using [CODE] which ... | 1 | 6 | 727 | 2022-03-09T16:02:01.083 | warehouse_errors | dba.stackexchange.com | |
924,118 | Echange 2013 internal server IP and name on message header | I have a server with Exchange 2013. Each message that is sent externally contains the IP and the internal server name. How can I hide this IP and internal name? Because some domains that reject the messages because of this with the following error: ...local>: Helo command rejected: ACCESS DENIED. Your email was rejecte... | For reliable mail delivery, among other things, your Exchange server should identify itself to other mail servers with a FQDN (fully qualified domain name) and not with its Active Directory domain name. Both the forward and reverse DNS records with that FQDN should match the effective public ip-address that will be use... | 0 | 1 | 1,275 | 2018-07-30T14:32:56.397 | infrastructure | serverfault.com | |
314,823 | Issues with echo commands? | I run this script as quanta suggest me [CODE] I checked that and it seems that your script want to check log file line by line. Since it has more than 14000 items it takes a lot. So when I run it the cursor goes to next line and next line and I should press it 14000 times so that the whole log file be checked! It's imp... | This one liner (I've split it for clarity) should give you the same result. You can optionally add [CODE] to the end to redirect the output to a file. Put the path to the apache log file where I've put [CODE] [CODE] The [CODE] command doesn't need an explicity UTC formatted date for the [CODE] argument, although it doe... | 0 | 2 | 452 | 2011-09-23T13:27:22.070 | database_errors | serverfault.com | |
231,752 | documents don't go into newly added shard | I have added a shard to an existing cluster, and when I do db.printShardingStatus() I see a distribution: [CODE] But when I access the newly added shard (shard0002), the collection is empty? Does anyone know why? | Add Shards to a Cluster As mentioned in MongoDB documentation, Adding a shard to a cluster creates an imbalance since the new shard has no chunks. While MongoDB begins migrating data to the new shard immediately, it can take some time before the cluster balances . | 0 | 0 | 160 | 2019-03-09T21:16:39.633 | warehouse_errors | dba.stackexchange.com | |
664,507 | server standard 2008 r2 unable to boot(blue screen error) after configuring raid 1 | server standard 2008 r2 unable to boot(blue screen error- STOP: 0x0000007B (0xFFFFF880009A98E8, 0xFFFFFFFFC0000034, 0x0000000000000000, 0x0000000000000000) after configuring raid 1 & Board Intel - x10DRL-I how to fix | Preinstall the controller driver in the OS before upgrading. If you can go back to a normal drive setup, install the driver and reboot and redo the config after. Be sure to have a good backup. In the best case, you did a system image before such upgrade, thus you can switch back easilly | -4 | 1 | 366 | 2015-02-03T03:59:23.317 | infrastructure | serverfault.com | |
782,919 | How to avoid VMware stunning a client during imaging with Veeam | Recently our MySQL server has been "going away" (ie. the client connection drops out). After weeks of trying different things (like adjusting packet size), we've discovered that it's our Veeam imaging backups which use the VMWare API to snapshot and copy the vmdks etc. We are using ESXi 5 with a Centos 6.4 guest, runni... | This is an HP ProLiant server running with a Smart Array RAID controller without a Flash-backed cache module. As a result, you have no write cache ( or read cache ), and operations like snapshots of virtual machines will suffer. You've experienced the effect of this. The current configuration is unsuitable for most wor... | 4 | 7 | 2,924 | 2016-06-09T09:21:15.957 | database_errors | serverfault.com | |
478,632 | Constantly having to net stop start dnscache after adding new entries in dns | Occasionally I must add new DNS entries in AD DNS. The zone is the domain's zone, and the server which I use to add it is in the same subnet as the clients affected by this issue. After adding the entry, clients cannot resolve the name. If I wait a sufficiently long enough time, I believe that they eventually do resolv... | Keep in mind that DNS clients cache negative responses as well as positve ones. Maybe this accounts for some of the time you spend waiting on newly added records? You can configure the negative caching time on your clients: [CODE] NegativeCacheTime value (DWORD). The default data is 300 seconds. If you do not want nega... | 2 | 5 | 1,497 | 2013-02-14T01:54:15.637 | database_errors | serverfault.com | |
405,997 | favor composition over inheritance: practical problems | In a C# application, I've got a behaviour that I would like to be available in different classes that not necessarily share the same ancestor. What better opportunity to 'favour composition over inheritance?" In this case not only composition is a better way, but can also be the only way. Unfortunately, the code is the... | There are certain things that do require inheritance. In absence of other language features, this example would be one of them. Note that the phrase is to favor composition over inheritance. That does not mean throw out inheritance where it is warranted. However, C# specifically does provide a nice out here. That's the... | 0 | 4 | 406 | 2020-03-02T15:01:33.400 | api_errors | softwareengineering.stackexchange.com | |
727,310 | libmysqlclient.so.18: cannot open shared object file: No such file or directory | I am trying to launch a script off of server I have which is running 64 bit CentOS 7, however whenever I launch the script I am getting this error in the server log. [CODE] As such the script is failing to launch. I believe the problem the line that reads libmysqlclient.so.18: cannot open shared object file: No such fi... | On CentOS 7, libmysqlclient.so.18 is in the package mariadb-libs so check if that package is installed and if not: [CODE] | 1 | 2 | 11,227 | 2015-10-07T12:12:18.940 | database_errors | serverfault.com | |
1,134,546 | Delombok Lombok cannot find symbol location: package javax.annotation after spring boot 3 and jdk17 migration | I've migrated my project to spring boot 3. Once I've done it project stopped working. cannot find symbol [CODE] I've looked into target and see that generated class has javax annotation [CODE] . Once moved to spring boot 3 javax annotation must be moved to jakarta. How to force lombok to use jakarta import [CODE] ? spr... | Had the same issue. In my case solution was to remove from [CODE] this line: [CODE] | 1 | 1 | 2,072 | 2023-06-22T09:49:46.040 | infrastructure | serverfault.com | |
1,095,898 | How can I use a legacy ssh-rsa key on CentOS 9 Stream? | I am setting up a new CentOS 9 Stream container as a part of a CI system. It needs to make an SSH connection to download some code from a legacy Git host using an [CODE] key (which is considered an acceptable risk on this network with this host). I start by generating a key. [CODE] Running with the key I get a "no mutu... | Found an answer, courtesy of a similar issue somebody else had on the Red Hat Bugzilla. The issue is caused by the deprecation of SHA1. You can work around this by setting a crypto policy of [CODE] (to only re-enable SHA-1) or [CODE] (for compatibility with even older things) following the instructions here . The comma... | 9 | 11 | 18,050 | 2022-03-11T03:34:20.253 | pipeline_ops | serverfault.com | |
244,715 | "Cannot open user default database. Login failed" after altering MDF and LDF locations and bringing DB offline | I was attempting to move my database to a separate hard drive on the server, so I ran the following commands in the following order (I was following this question : How to change location of SQL Server 2012 database which is already configured with a merge replication ): [CODE] [CODE] Here is where my mistake happened:... | I may have input the incorrect Name parameter above (Would the mdf/ldf files be dropped in this case?) This would not have dropped the files, if the NAME values weren't correct, the command would have failed. I also did not do step 2 in the answer referenced above (Stop log reader agent, distribution and merge agent (i... | 0 | 0 | 228 | 2019-08-07T00:15:19.063 | database_errors | dba.stackexchange.com | |
472,029 | nginx redirect dynamic page urls | After changing the URL structure of my site I am getting a lot of 404 not found errors. Can some one point me into the right direction how to change certain page urls to a single page url using nginx . Here are some examples of the pages which should permanently be redirected to the location domain.com/gallery/ . Since... | try this (tested on Nginx 1.2.6 - Linux): [CODE] | 0 | 0 | 3,097 | 2013-01-24T11:26:05.607 | infrastructure | serverfault.com | |
1,016,092 | Exchange 2016 on server 2012r2 port 25 closed | Port 25 won't open anymore since a few days. I don't know what exactly preceded it, maybe server crash or update. /owa and /ecp work and I can also connect with Outlook, but I can't get any mails. I verified it with https://testconnectivity.microsoft.com/ I tried connecting from the Server via Telnet localhost 25 but t... | Agree with what they have said above, you could check event log and if there is any error messages? Do you run Windows antivirus programs on Microsoft Exchange servers, you could follow this article to Check AV exclusion state. Can you send out mails? Have you ever updated windows? You could try to restart server and c... | 0 | 0 | 558 | 2020-05-07T11:37:34.580 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.