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 |
|---|---|---|---|---|---|---|---|---|---|---|
430,903 | Clean architecture, Login UseCase with OAuth breaking Single responsability principle | I'm building a login system using [CODE] to integrate with various social networks. The flow is very simple, first, the user is redirected to their social network to grant permission to read the necessary information, and after that my application has access to the following user information: [CODE] example with Facebo... | The role of the interactor or use case object in clean architecture is to model the flow of logic for that specific use case, or as Uncle Bob puts it, "control the dance of the entities". That is a single responsibility regardless of how many steps are involved. A responsibility in this context is typically defined as ... | 1 | 1 | 1,508 | 2021-08-08T22:24:52.510 | api_errors | softwareengineering.stackexchange.com | |
106,267 | Example for Boosting | Can someone exactly tell me how does boosting as implemented by LightGBM or XGBoost work in real case scenerio. Like I know it splits tree leaf wise instead of level wise, which will contribute to global average not just the loss of branch which will help it learn lower error rate faster than level wise tree. But I can... | I think what you actually ask is "how does boosting work". LightGBM or XGBoost are implementations of boosting algorithms. I like the article by Bühlmann and Hothorn. They provide a very good overview of boosting options. P. Bühlmann, T. Hothorn (2007), " Boosting Algorithms: Regularization, Prediction and Model Fittin... | 3 | 1 | 160 | 2021-12-20T00:03:55.963 | data_quality | datascience.stackexchange.com | |
692,473 | ubuntu iptables DROP action has no effect | I installed zentyal web panel for ubuntu, And after a monument I removed it. After remove zentyal, iptables seems work not properly. DROP has no effect Run following code has no effect to block port 22. [CODE] After, client 218.78.1.23 also can access ssh service. iptables been empty after reboot Run following code bef... | It seems that you are not using the available tools in an appropriate way. The tool [CODE] will dump your current ruleset from memory to stdout. It will not save the rules in any file unless you explicitly redirect its output. Also, you are mixing two things: using iptables tool and using ufw at the same time. I recomm... | -2 | 4 | 408 | 2015-05-16T12:35:45.453 | infrastructure | serverfault.com | |
64,865 | How to create a secondary read-only reporting database with < 15 minute latency | We have a 2012 standard edition instance that is doing log-shipping of 2 related databases every 15 minutes to a secondary 2012 standard edition instance for DR purposes. Although it provides read-only access, users are automatically disconnected every 15 minutes when the restore job runs (it takes up to 2 minutes to c... | Transactional Replication is typically used to off-load reporting to another server/instance and can be near real-time in a best case scenario. The benefit of Transactional Replication is that you can place different indexes on the subscriber(s) to optimize reporting. You can also choose to replicate only a portion of ... | 5 | 1 | 2,943 | 2014-05-09T18:04:55.940 | database_errors | dba.stackexchange.com | |
337,063 | Do we need to reboot Ubuntu server after un-installing tomcat6 | i am on ubuntu 10.04 server, having tomcat6. because of some reasons i had to un-install it so i used [CODE] it removed tomcat and config files. now i am trying to install tomcat6 again, using [CODE] it says [CODE] looked into log [CODE] I am not tomcat expert, so not sure should i have to reboot server to install tomc... | If I were looking into this myself, I would run [CODE] (again). Once that was completed, I would run [CODE] to check for any stray running Tomcat processes. Once I had confirmed that Tomcat was no longer running, I would reinstall: [CODE] . | 2 | 3 | 1,409 | 2011-12-02T13:46:19.313 | data_quality | serverfault.com | |
238,953 | Is it correct to call the assignment symbol an "operator" when it is actually a statement? | In some languages (C++, Java, Ruby, etc.) an assignment returns a value and can be used in an expression: [CODE] In other languages (Ada, VHDL), an assignment is a proper statement and cannot be used in as expression: [CODE] However, in both cases, it is possible to find teaching material where the assignment symbol is... | The assignment statement is made up of three parts: The target , or lvalue. The assignment operator . The value to be assigned, or rvalue. The rvalue can be a constant or an expression that returns a value of the correct (or not necessarily correct, in some languages) type. The requirement is that the value to be assig... | 0 | 5 | 233 | 2014-05-13T17:13:06.110 | api_errors | softwareengineering.stackexchange.com | |
885,554 | Job for slapd.service failed because the control process exited with error code? | I have setup OpenLdap its starting properly after that due to some issue i kill the process.Now when ever i am trying [CODE] i am getting Job for slapd.service failed because the control process exited with error code. See "systemctl status slapd.service" and "journalctl -xe" for details. this command [CODE] giving bel... | [CODE] slapd runs as [CODE] user by default, if you attempted to start it (or loaded ldif etc..) as root user, it'd create files with incorrect permission. Try [CODE] to fix the permissions and start the service. | 0 | 3 | 26,274 | 2017-11-28T16:30:51.133 | infrastructure | serverfault.com | |
17,158 | Configure Azure Kubernetes user context for on-premise resource access | My question is hopefully simple.In the period where you have both on-premise and Azure based resources can jobs running in an Azure Kubernetes cluster be configured to use an AD user context such that things like network folders can be accessed or SQL Server connections made using trusted connections? If not, what is t... | You cannot take the Azure AD-based managed identities and grant them access to on-premises resources. One option would be to move your AKS cluster on-premises via Azure Arc service. That being more infrastructure required may not be ideal. The best option is to move those resources you need on-premises into the cloud b... | 0 | 0 | 23 | 2023-01-01T01:13:17.510 | pipeline_ops | devops.stackexchange.com | |
737,539 | Server response not being received | I have a python program that sends requests via a socket connection to a local 3rd party application which in turn forwards my request to a server. The server response then makes it's way back to my socket via the 3rd party app. Everything has been working correctly for several months, with the replies from the server ... | You need to make sure you are using TCP socket packets, and not UDP. So that there is a retry, since most ISPs will drop packets to limit the line. If you are using UDP the TCPIP stack will not retry sending the packet since UDP does not require an ACK. Switching to TCP will add a small overhead since an acknowledgemen... | 0 | 1 | 796 | 2015-11-19T14:19:23.003 | infrastructure | serverfault.com | |
403,310 | Event 36888: The following fatal alert was generated: 10. The internal error state is 1203 | I've searched online, but am unable to find any information; why this error is occurring? It has flooded my Event Viewer: with an interval of 1 minute, this Error keeps popping up. (i.e. the frequency is 1 minute) I don't have any IIS installed. This server is purely a Domain controller and no other role has been added... | I realize that you are not running IIS, but it appears other processes can cause this error message as well. This might help: http://social.technet.microsoft.com/Forums/en/winserverDS/thread/4c5430f5-43f6-41b4-97d3-03cfb3efa70b | 10 | 2 | 68,835 | 2012-06-29T06:36:56.780 | infrastructure | serverfault.com | |
562,094 | Not able to view data through Hive mapping to Cassandra | After loading data from Oracle DB to Cassandra via Sqoop, I was able to view my data through both Cassandra and Hive. I was told that while doing so, 2 files would be generated for each, creating space issues. To resolve this, I dropped the table in Hive and created an external table and mapped it to my column family i... | Try creating the table like this: [CODE] | 1 | 0 | 724 | 2013-12-18T07:05:22.897 | hadoop_errors | serverfault.com | |
249,838 | Does SQL Server's serializable isolation level lock entire table | Me and a colleague of mine discussed the implications of use of the serializable isolation level. He said it locked the entire table, but I disagreed to that telling him it potentially could but it tries to apply range locks and it doesn't apply true serialization as explained here: The Serializable Isolation Level . I... | Escalation, though Lock escalation under serializable isolation level may occur the same as it does with other isolation levels. Correct indexes can help to avoid lock escalation up to a point Locking many indexes will increase the likelihood of lock escalation; the count is cumulative across objects for a single state... | 15 | 23 | 4,779 | 2019-09-28T06:57:53.603 | database_errors | dba.stackexchange.com | |
43,800 | How to mathematically explain the translational and rotational invariance of PCA | There is a homework question for a course I am self studying (not a student) that is: let our $n \times d$ -dimensional data vectors be denoted by $x_1,\ldots,x_n$ and let $R$ be a $d \times d$ rotation matrix. For simplicity, you may assume that the $x_t$ 's have been centered at $0$ . Let $$x_t' = Rx_t + v$$ where $v... | Let $e$ be the all-one column vector of length $n$ . Let $X\in \mathbb{R}^{n\times d}$ be the original matrix. and $X'$ be the transformed matrix, that is we have $X'=XR^T+ev^T$ . Let's first compute the transformed mean assuming the mean of $X$ is $0$ . $$\frac{e^TX'}{n}=\frac{e^TXR'}{n}+\frac{e^Tev^T}{n}=v^T$$ To com... | 1 | 1 | 1,240 | 2019-01-10T21:03:40.613 | data_quality | datascience.stackexchange.com | |
9,162 | gitlab -ci script not being updated on runner | I have a problem I can't get my head around in gitlab-ci: I have a monorepo where I store some infra code (IaC), in this repo I have a script which allow me to lint the saltstack states code, as : [CODE] In this script I need to update the [CODE] to replace the [CODE] string by something lese, let's say [CODE] . But wh... | OK, as usual the error was between the keyboard and the screen... I did use the "try again" button on the jobs list, which, of course was making use of the same commit, and therefore the changed made to the script were not taken into account ... | 0 | 0 | 186 | 2019-09-13T11:57:54.827 | pipeline_ops | devops.stackexchange.com | |
254,819 | apache2 mods svn and webdav differences | Are those 2 mods supposed to be the same, do the same jobs or am i missing the big picture. What I want to achieve is have my subversion repos accessible from the web and be able work on them. Shall I go for mod svn or dav? Cheers | svn is for version control - subversion webdav is for web access on your files - no version control | 0 | 1 | 162 | 2011-04-01T23:44:00.643 | infrastructure | serverfault.com | |
161,420 | Performance issue in Sql Server | I have a master product table as like below : [CODE] So, if I create this table, a [CODE] will be created on [CODE] column and a [CODE] on [CODE] column. And I am using this table in a website to show the products. And I will be using the sql query like below. Query 1 [CODE] And there is an another option to search for... | Short answer: No, you need more indexes. If you're going to create a significant number of queries involving [CODE] and [CODE] , you should index both columns: [CODE] If you mostly query using both columns, and there are not queries involving [CODE] that do not also involve a [CODE] , a multi-column index would be bett... | 0 | 3 | 96 | 2017-01-18T08:48:31.880 | database_errors | dba.stackexchange.com | |
15,650 | Logging in Selenium Webdriver using Log4net | I am using log4net for creating execution logs of test cases which are created and being executed using Selenium Webdriver in C#. I was able to implement the logging functionality but I am facing an issue with the same or you can say I have a query related to this logging feature. I have seen that every web link which ... | Write some wrapper class with all the WebDrive Methods (add log messages there) and use those methods in your tests. Example [CODE] Use above methods in your testcase to get logs for each step performed. | 0 | 0 | 4,850 | 2015-11-16T15:38:41.330 | data_quality | sqa.stackexchange.com | |
622,217 | What could cause TFTP reloaded Cisco `running-config` on 871 to fail? | Cisco CCP Write Configuration borked my 871w config while I was trying to setup port forwarding. I went through the basic steps to reconfig the router. I looked to see if I could just reset the router . Nope. I tested the 871's flash memory with [CODE] to see if there was hardware failure. Nope. Then I rewrote the mini... | On Cisco devices, if you copy a backup config from [CODE] to [CODE] , it doesn't fully replace the [CODE] , but is merged into it. This means that any settings which are not explicitly set in backup config, won't be affected in your [CODE] . To cleanly restore your backup config, copy it from [CODE] to [CODE] and reboo... | 4 | 1 | 376 | 2014-08-18T14:59:02.950 | database_errors | serverfault.com | |
569,377 | Nginx ignores HTTP Authentication for WordPress login directory | I am running WordPress in a subfolder of my domain for testing and development purposes on a VPS LEMP-stack. In order to password-protect the [CODE] with an etxra layer, I used HTTP authentication for the wp-admin folder. The problem is that the http authentication is ignored. When the [CODE] or [CODE] -folder is calle... | Try: [CODE] | 1 | 0 | 918 | 2014-01-23T15:10:59.393 | api_errors | serverfault.com | |
60,900 | Do abstractions have to reduce code readability? | A good developer I work with told me recently about some difficulty he had in implementing a feature in some code we had inherited; he said the problem was that the code was difficult to follow. From that, I looked deeper into the product and realised how difficult it was to see the code path. It used so many interface... | This is really more of a long comment on @kevin cline's answer. Even though the languages themselves don't necessarily cause or prevent this, I think there's something to his notion that it's related to languages (or at least language communities) to some degree anyway. In particular, even though you can run into sort ... | 19 | 17 | 3,057 | 2011-03-22T23:01:11.013 | pipeline_ops | softwareengineering.stackexchange.com | |
520,699 | IIS 6.0 SSL Certificate | I have this issue with one of our websites. I recently purchased and updated and SSL certificate, installed on our server, running IIS 6.0: Now, every time someone goes to our site, we get this (typical) error: However, when you click on the certificate itself, it says it's valid: I am at a loss here. I tested it in IE... | The error in the screenshot indicates not that the certificate itself is invalid or cannot be validated or is installed wrong, but rather that the host part of the URI (eg. the DNS name or the IP address if the IP address was entered to access the site) does not match the subject CN (canonical name) or a SAN (subject a... | 1 | 1 | 98 | 2013-07-03T23:01:40.177 | api_errors | serverfault.com | |
365,346 | Preferred approach to mock a site to test a scraper | Subj. Atm I'm using Selenium and Python, but the same applies to any other scraping solution. I'm wondering: which of the options outlined below are optimal/recommended/best practices if there are existing solutions/helper libraries, which keywords I should look them up by. To stay objective, "optimal/recommended/best ... | An idea given by @RobertHarvey in c796112 is to not mock the site at all. If the goal is to rather test the scraper's internal logic, test exactly that: Split off the code that directly implements elementary page operations into subroutines and mock those. The idea is to make these subroutines as simple as possible (ef... | 6 | 0 | 2,701 | 2018-02-05T10:35:07.253 | api_errors | softwareengineering.stackexchange.com | |
1,004,783 | Deleting Pre-Packaged Tomcat WebApps | I currently work on an excruciatingly slow remote machine and on Tomcat. So, I was wondering, Tomcat comes with some pre-packaged webapps like: [CODE] Now I just wanted to know, can I delete [CODE] and [CODE] from the webapps folder without harming the server? I would assume that the other three webapps do serve some i... | You can safely remove [CODE] , [CODE] , [CODE] and [CODE] if you don't use them. The [CODE] application is almost empty. Removing it entirely can cause some small bugs in some valves (e.g. [CODE] ), but you can replace it with an empty directory. You should also consider other ways to speed up Tomcat's start up . If th... | 1 | 2 | 3,714 | 2020-02-27T07:34:04.470 | infrastructure | serverfault.com | |
191,235 | Why isn't LIMIT working here? | I commented out the LIMIT statement because it's not working. All selected rows are always returned, no matter what. Code: [CODE] I tried the statement in a couple other locations, without success. result of [CODE] with the LIMIT statement back in: [CODE] Addendum Here's the table structure: Each row represents one rid... | Your subquery has an aggregate function ( [CODE] ) and no [CODE] . This is an implicit [CODE] and all the rows of the table are grouped into a single group / row. As a result the [CODE] has no effect there. You could have [CODE] or [CODE] or [CODE] or no [CODE] at all. The result is the same (only [CODE] would make a d... | -3 | 2 | 6,117 | 2017-11-18T21:42:47.737 | warehouse_errors | dba.stackexchange.com | |
862,788 | Rewrite cond for domain and www.domain letsencrypt | I have this virtualhost in [CODE] [CODE] The lines [CODE] have been added by letsencrypt and I checked on google, it seems to be the good way to do it. But when I go to [CODE] it doesn't redirect me to [CODE] (it loads the 000-default.conf). Nevertheless it is redirecting me to [CODE] when I go on [CODE] Do you have an... | Let's take a look at this line: [CODE] Here, the [CODE] variable depends on the [CODE] , by default set [CODE] . Therefore, the variable has the content of [CODE] header, not the one specified in [CODE] . With [CODE] Apache httpd will use the hostname and port specified in the [CODE] directive to construct the canonica... | 0 | 1 | 8,286 | 2017-07-18T12:35:22.507 | infrastructure | serverfault.com | |
382,831 | What are some optimized LAMP or LEMP stack scripts with email? | In the "let's try not to reinvent the wheel" perspective, I've been looking for a packaged LAMP (or LEMP) stack for some time now, not only the basic Mysql, Apache , PHP etc... but ideally stuff like APC, Postfix... basically something that would implement recognized practices & standard for security, general performan... | There are installer scripts that exist for web applications and supporting services, but most of them to my knowledge are focused on the web hosting world. For example Scriptaculous and Fantastico , to name just two. There are also pre-baked virtual appliances made by places like JumpBox , BitNami , CloudZoom , and Tur... | 2 | 2 | 1,413 | 2012-04-25T03:52:18.130 | database_errors | serverfault.com | |
267,747 | Unable to run mariadb in safe mode | When I run following command [CODE] I get message [CODE] After that when I type [CODE] then I get following error: [CODE] How do I restart mariadb in safe mode to reset root password? | You startt the server with following restrictions (Then) ithout a password and with all privileges, and disables account-management statements such as ALTER USER and SET PASSWORD. Because this is insecure, if the server is started with the --skip-grant-tables option, it also disables remote connections by enabling skip... | 3 | 0 | 1,750 | 2020-05-23T12:30:18.493 | database_errors | dba.stackexchange.com | |
673,313 | really low iops on ssd raid (lower than 1000) | I'm having serious performances problems on a server, with really low iops. server : ProLiant DL360p Gen8 with HP Smart Array P420i Controller (firmware v6) with 4x Samsung 840 - 512GB on raid 1+0 here's one samsung 840 details : [CODE] and here's the benchmark result [CODE] running the same bench on normal hdd shows u... | Due to how MLC SSDs work, they need a decently-sized local DRAM cache to absorb incoming writes while simultaneously write to the backing NAND. However, hardware RAID cards often disable the disk's cache and exclusively rely on own (on-card) DRAM cache. While this is not a problem with classic HDD, the intrinsic not-ov... | 2 | 2 | 2,213 | 2015-03-05T18:07:08.140 | infrastructure | serverfault.com | |
116,376 | Defrag starting when not scheduled. What is triggering the defrag | I have a fileserver that is starting a defrag around 2:00 PM everyday. This is killing performance as it runs for ours becuase this is a file server and has multiple drives. All scheduled tasks regarding defrag have been disabled. I have verified that it is accessing the data drives(using SysInternals tools). The reaso... | It sounds like you may have already done this, but make sure to check both the Automatic Defrag setting as well as Scheduled Tasks. It may be that one or the other is set to fire at 2:00 PM. | 2 | 0 | 1,274 | 2010-02-24T19:15:09.353 | infrastructure | serverfault.com | |
920,201 | Google Cloud VPN connections from on-premise network | I have a project(Project A on 10.240.0.0) on GCP and VPN connections through this Project.. All is fine.. Now, we have a new project(Project B on 10.35.0.0) other than the first one. Should I create a new VPN connection for the second project or can I use the existing one by adding the new VLAN IPs to the routes Thanks | What I understood from your question is, you have a project in GCP which is connected to your on-prem using VPN, and now you have a second project which you need to connect to your on-prem. In that case yes, you should create a new VPN connection for Project B. You can see option 2 from the link [1] on how to create an... | 0 | 1 | 413 | 2018-07-09T23:59:48.517 | infrastructure | serverfault.com | |
605,229 | Server taking too much time to first load | I have a VPS server with CentOS 6 purchased from MochaHost. It has WHM/cPanel installed and I have full root access. The websites that are on this server load very slowly but when I use pingdom tools to check the site load speed it takes up to 60 seconds to load the site for the first time and from then it loads super ... | I don't think we have a generic answer specific to this question but a lot of "my server is slow" questions get closed as a duplicate of this question . The reason is that capacity planning is nearly always about performance. When you run out of capacity, the normal effect is that the website starts going slow. Your ca... | 0 | 1 | 2,253 | 2014-06-15T07:24:34.730 | infrastructure | serverfault.com | |
276,633 | What's going on with this strange MTU? | I have a server mike at our office communicating with a remote server through a VPN. There have been various problems which seem to be linked to the MTU size. Mike is a RHEL 3 server and the customer server is CentOS 5. I used the tracepath tool to attempt to find the max MTU and got this weird result [CODE] From anoth... | From what you've said, the path from the server "mike" to one customer is limited to 552, and a different path, from "nora" to a different customer, is not limited. You're not comparing the same path, so unless there's more information then I doubt this is specific to the server "mike". The PMTU is the constrained MTU ... | 5 | 4 | 7,178 | 2011-06-03T10:40:30.547 | infrastructure | serverfault.com | |
452,853 | cyrus-imapd is not work with sasldb2, but postfix work | centos6 64 bits: when i use pop3 for access cyrus-imapd: [CODE] and with USER "abc" failed too. my imapd.conf: [CODE] sasldblistuser2: [CODE] but my postfix is ok with same user. /etc/sasl2/smtpd.conf [CODE] /etc/postfix/main.cf [CODE] please help. use imap: [CODE] use pop: [CODE] it seems something wrong with cyrus-im... | It doesn't look like sasl problem or authentication problem at all. I think you misconfigured cyrus mailboxes. In order to use mailboxes with domain part like [CODE] you should specify [CODE] in your imapd.conf. And then you should create mailboxes like this: [CODE] I think this will be enough to make IMAP/POP3 work. U... | 1 | 0 | 943 | 2012-11-28T03:13:40.667 | infrastructure | serverfault.com | |
129,205 | Differential backups are 2/3 the size of the full backup | I was investigating why my differential backups were taking almost as long as my full backups and I noticed that the size of the first differential backup after the daily full backup was 2/3 the size of the full backup. However the subsequent differential backups for the remainder of the day only grew in size by about ... | After digging into the backup logs between LiteSpeed and SQL Server I noticed that the first LSN number between the daily full backup and the full backup LSN number in differential backups didn't match up. After doing some reading on how the LSN values are used in the backups of the database I did some digging on what ... | 1 | 4 | 418 | 2016-02-13T22:31:12.680 | database_errors | dba.stackexchange.com | |
39,366 | Adding slave to existing master-master config throws foreign key constraint failed error | We have two MySQL servers running in master - master configuration. Now we have to add a slave to the existing configuration, but upon adding the third database server and starting slave on it, it throws: Cannot add or update a child row. foreign key constraint fails We have tried taking a [CODE] from the master with [... | Given the Following [CODE] and You Want the Following [CODE] Given Master IP is 10.1.2.30 Logon to the Slave and run the mysqldump like this [CODE] If you have already performed this, let me address your comments. But upon adding the third DB server and starting slave on it, it throws Cannot add or update a child row. ... | 2 | 2 | 3,546 | 2013-04-05T21:44:55.830 | data_quality | dba.stackexchange.com | |
746,538 | PCIEX-8000-KP error in sun solaris OS on HP BL servers | Pls help me to resolve this problem in HP BL 660c server,It is installed with Sun solaris 11 and showing errors fmadm faulty.its coming again while it repaired with the command fmadm repair UUID. fmadm faulty TIME EVENT-ID MSG-ID SEVERITY Dec 30 00:22:01 0cc05440-0275-60dc-8a7c-d254a508aa2f PCIEX-8000-KP Major Host : a... | This recommended action is from OpenSolaris source code , (which does assume the error hasn't changed since Oracle bought Sun and ceased supporting OpenSolaris): If a plug-in card is involved check for badly-seated cards or bent pins. Otherwise schedule a repair procedure to replace the affected device. Use fmadm fault... | 0 | 0 | 740 | 2016-01-04T05:13:52.207 | infrastructure | serverfault.com | |
674,047 | Windows findstr with AND condition? | Is it possible, in one line, without a batch file to use findstr and only return a 0 %errorlevel% if all of the strings are found? I am doing a gem list, which lists out a bunch of gems. I then want to use findstr/find to make sure that EACH string I search for exists. If one of them do not, then it should return a non... | [CODE] Now if I can just get it to hold on to the error code for each return. A better way to handle it and error if one of the commands in the loop fails: [CODE] Then it will always return a non , giving you the correct errorlevel on exit | 1 | 1 | 1,845 | 2015-03-09T14:38:02.590 | infrastructure | serverfault.com | |
313,188 | If Repository Pattern is overkill for modern ORMs (EF, nHibernate), what is a better abstraction? | I've recently read a lot of arguments against using the repository pattern with powerful ORM's like Entity Framework as it incorporates repository-like functionality, along with Unit of Work functionality as well. Another argument against using the pattern for a situation like unit testing is that the repository patter... | I think you are conflating repositories and generic repositories. A basic repository just interfaces your data store and provides methods to return the data [CODE] It doesn't leak the data layer into your code via an IQueryable or other ways of passing in random queries and provides a well defined testable and injectab... | 15 | 11 | 8,808 | 2016-03-18T20:57:10.677 | api_errors | softwareengineering.stackexchange.com | |
634,562 | Postfix - private/rewrite | Postfix is giving me this error on startup: [CODE] Postconf - n: [CODE] Please help - this is urgent | You need to go back and re-read your error messages. [CODE] Says it all. Your mail service isn't running properly to begin with. Keep in mind, SysV init scripts do state management , not process management . State management deals with the state of the system; process management is a subset of state management that is ... | 0 | 1 | 1,941 | 2014-10-08T21:08:09.170 | infrastructure | serverfault.com | |
123,310 | IIS restart causes many Connection_Abandoned_By_AppPool messages in log | After about half a day the IIS 6.0 ASP (VBScript) web server appears to die. It accepts TCP connections (i.e. I can [CODE] successfully) however it does not return any response. When I restart the server (going through My Computer -> Manage -> IIS -> All Tasks -> Restart) I get a lot of entries in [CODE] at the time of... | My guess is that something with the app fails, causing a whole bunch of requests to queue. When you restart IIS, it's not able to catch up in the 90 second timeout, so it has to forcible end all outstanding requests. So, what you see in httperr is the affect and not the cause. When it fails, do static pages work? That ... | 0 | 2 | 6,336 | 2010-03-17T10:19:28.100 | infrastructure | serverfault.com | |
59,897 | SQL Server - Recursive "find all FK connections for ID through the entire DB" query | I'm dealing with a DB with hundreds of tables, with interconnecting FK references producing potentially thousands of different permutations for how for example table A and table K can join together. Now, I need to create a query that will be given a single table name and it's PK ID, and then using FK references in the ... | How about implementing a child/parent relationship in a table including the hierarchical structure. You could fill that iteratively for every table in your DB, if you add a parent you'd update all its children's hierarchical structure. To find specific results for a certain table you'd then simply have to select all re... | 2 | 1 | 654 | 2014-02-28T12:20:01.487 | database_errors | dba.stackexchange.com | |
29,474 | Send few api calls in parallel and rest serially in Jmeter | I have to create performance test cases based on views in UI, for example one view makes 2 api calls in parallel and third one is called after first 2 have finished. I am going to have multiple views. How can i achieve this in Jmeter? I created many thread groups with api calls but each of them runs serially. | Just add more virtual users to the Thread Group - this way requests will be executed by different users and you will be able to achieve the concurrency. If you need 2 (or more) users to execute a certain sampler at exactly the same moment - add Synchronizing Timer as a child of this sampler and set [CODE] to the desire... | 1 | 1 | 2,020 | 2017-09-11T20:26:29.287 | data_quality | sqa.stackexchange.com | |
143,514 | XML Parsing Illegal XML character error in SQL 2008 | I was running this query in SQL Server 2008 (10.0.5890), Collation: SQL_Latin1_General_CP1_CI_AS [CODE] But it was always ended with the following error: [CODE] Even if I changed it to VARCHAR(max) it remains the same. Though this same script was running fine and without any issue in another server with the same versio... | Here is how to find the "illegal" character: There are two places in your query that cast to [CODE] , so start with confirming which one is throwing the error. I doubt it is the outer [CODE] since that is just taking a subset of the data that is already valid XML. And, if it was the outer CAST, that would mean that an ... | 3 | 2 | 18,272 | 2016-07-11T15:33:40.560 | database_errors | dba.stackexchange.com | |
48,237 | Renaming Sql Server database unusual result | This is some behaviour I observed from renaming databases. What is the cause of this? The example is simplified for the purposes of this question. [CODE] [1]. when I run the stored procedure TestSP the result as expected is the contents of DatabaseB Table_1. [CODE] [2]. Renaming Database_B to Database_B_Original will c... | What SQL Server is doing is, it is caching the query plan for [CODE] This can be found using : [CODE] When you execute your stored procedure during step 1, 2 or 3, it gets cached in the procedure cache. Hence during your 4th step, it throws an error. If you do a [CODE] , and then rerun the SP [CODE] , it will work. As ... | 1 | 3 | 1,208 | 2013-08-16T12:47:25.417 | database_errors | dba.stackexchange.com | |
369,769 | How to architect a communication of objects between 2 software (B2B, so called, communication)? | There's a 1st software module (s1) that generates data and then there's one or more software modules (s2, s3) that will receive that data (objects), based on pre configured actions that define the type of data to transmit. A middleware (api) needs to get the data from s1 and convert it to s2 or s3 structure depending o... | Changing the parameters could be easier if you pass an object - property is added, can just reference in code vs changing signature of a method. The configuration for destinations could be driven by database tables vs a config file (not sure if that's already in place). This way it's easy to add a new destination. Soun... | -1 | 0 | 104 | 2018-04-21T21:06:19.627 | data_quality | softwareengineering.stackexchange.com | |
175,278 | debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process | I ran apt-get upgrade on my debian/testing system and now I get the error above. How can I fix this? shell transcript follows: [CODE] | You can look at what process is locking the file with: [CODE] Depending on the program, you might want to try to terminate it with something like [CODE] . On Debian you can find [CODE] in the psmisc package. Install this package if you get a 'fuser: command not found' error. | 9 | 11 | 9,564 | 2010-08-27T14:17:00.577 | infrastructure | serverfault.com | |
147,939 | Best overview to modern C++ paradigms? | I used to write C++ extensively between 8 and 10 years ago. I have since moved on to C# for professional reasons. However, from time to time I see statements like "If you're still manually tracking pointer references, you're doing it wrong" or "C++ is perfectly safe as long as you're using modern concepts like RAII and... | It may have more to do with the instructional materials than most other things, but 8-10 years ago it seems to me that the way the language was used differed a great deal to today. The focus today is more on leveraging templates, type safety, and generic programming where before there was more fear of all that and peop... | 16 | 5 | 4,316 | 2012-05-09T19:18:05.223 | api_errors | softwareengineering.stackexchange.com | |
300,890 | 16 Cores 12 GB RAM Dedicated MySql Configuration | I have a dedicated 16 Cores 12 GB RAM Mysql server which is performing quite badly since I configure it for a 16 GB server and I guess that explains why in the world the site now takes more than 500 seconds to render a single page. Im using memcached for caching the quires and using InnoDB as database engine. [CODE] An... | The only way that a config for 16GB on a 12GB box would be an issue is if MySQL is trying to use more memory resources than the system has. Most MySQL servers are configured to use too much memory, but that doesn't cause them to run poorly from day 1. If the box isn't swapping and MySQL getting OOM killed, it's not the... | 5 | 3 | 2,417 | 2011-08-14T00:48:11.900 | api_errors | serverfault.com | |
450,119 | What to do when test data takes up most of repo size? | TL;DR: Given a repo with a lot of big fixture tests, when should I look for a solution where the golden files are not part of the repo anymore? Where should they be stored? The setup Testing a complex data processing project with very diverse input sources Around 10^2 CSV files as fixture tests, each a few MB in size (... | Is this a common pattern in larger code bases that deal with data processing? Yes. When starting out developing a processing pipeline, checking some "real" inputs against some known good outputs is probably the simplest test strategy, especially if unfamiliar with unit testing and TDD. Is this a sign of a deeper, funda... | 6 | 2 | 298 | 2023-12-14T13:18:20.433 | api_errors | softwareengineering.stackexchange.com | |
104,460 | Backup internals - What happens when a backup job is running - in terms of locking and performance overhead in SQL Server? | For MySQL I know the database is backed up table by table in SQL Statements, this results in locking and if you update columns while backing up you might end up in integrity problems. To my understanding this does not apply for the Microsoft SQL Server, but how does the SQL Server handles this? Is there some internal f... | Your all points are covered in backup myths - by Paul Randal 30-01) backup operations cause blocking No. Backup operations do not take locks on user objects . Backups do cause a really heavy read load on the I/O subsystem so it might look like the workload is being blocked, but it isn't really. It's just being slowed d... | 14 | 10 | 7,247 | 2015-06-18T14:38:44.873 | database_errors | dba.stackexchange.com | |
1,079,556 | Rancher on k8s gives 404 page not found | I installed a kubernetes cluster with k3sup on a VM on my local hypervisor and the pods are up and running. Now I wanted to add a deployment with rancher in its latest version (2.6) to manage another cluster according to this guide . But the DNS and IP return a 404 not found. Here are some terminal commands with result... | As the problem has already been resolved in the comments section, I decided to provide a Community Wiki answer just for better visibility to other community members. The commands/steps listed on this page are really useful for checking network related issues in the cluster. First, I recommend checking that all the requ... | 0 | 1 | 6,949 | 2021-10-04T23:34:07.887 | api_errors | serverfault.com | |
320,042 | Copy between database using pg_dump and SSH | I want to copy a tabel from one server to another using pg_dump and SSH. Here is the script that I run from the source database : [CODE] There is error: [CODE] Questions : Is the command correct? How to remove the error? Thanks | You can run the [CODE] via the [CODE] command so you have a one-liner: [CODE] | -1 | 0 | 577 | 2022-11-22T08:56:07.747 | warehouse_errors | dba.stackexchange.com | |
338,219 | What to do when code submitted for code review appears to be too complicated? | The code is difficult to follow but it appears to be (mostly) working well, at least with superficial testing. There might be small bugs here and there but it's very hard to tell by reading the code if they are symptomatic of deeper issues or simple fixes. Verifying overall correctness manually via code review however ... | If it cannot be reviewed, it cannot pass review. You have to understand that code review isn't for finding bugs. That's what QA is for. Code review is to ensure that future maintenance of the code is possible. If you can't even follow the code now, how can you in six months when you're assigned to do feature enhancemen... | 119 | 248 | 13,896 | 2016-12-15T16:23:01.317 | api_errors | softwareengineering.stackexchange.com | |
219,322 | Improve performance of bind9 service restart | I'm setting up a name server hosting DNS for a large number of domains, 50,000 - 100,000 domains. I will be using Bind9 and the service will need to be restarted several times a day. I have made some tests and it seems that restart of the Bind9 service scales very poorly with the number of domains. [CODE] Is there some... | That's a lot of domains :) Okay - there's an inherent problem with BIND and its flat file configuration method which you've encountered; it doesn't scale. I think you're actually doing well to start it in 7 mins, I've heard of the same amount of domains take over 30 mins. The recommended solution is to move to a databa... | 0 | 0 | 1,010 | 2011-01-06T09:20:22.520 | infrastructure | serverfault.com | |
16,924 | Python+Selenium: Continue script execution by ignoring timeout error | How can I get this line [CODE] to move on further in the code if it doesn't find anything after waiting for 10 sec? Edit: I'm looking to scroll down the site till it hits the bottom (which works currently) and then when the above-mentioned line starts waiting as there are no more further posts to scroll, I'm looking to... | try...except block will allow you to bypass the timeout. But if you need that you are doing it wrong. Check presence of element before you wait of it's visibility. | 0 | 1 | 2,892 | 2016-02-09T12:51:59.443 | data_quality | sqa.stackexchange.com | |
50,974 | External DNS completely fails every once in a while | We have a problem that affects our entire local network where the external DNS completely fails for a minute or so a few times a day. I'm not sure if it happens on all computers at the same time or just on one at a time, but basically for a minute or so, the victim is not able to access anything that requires a DNS loo... | Your question left out a few relevant details such as who is your ISP and are you using THEIR DNS servers or your own? I've seen something similar to your problem. A client of mine had a Comcast business connnection. The DNS servers assigned to them (Comcast's) were really strange. About once or twice a day they would ... | 0 | 2 | 544 | 2009-08-06T15:28:33.127 | infrastructure | serverfault.com | |
61,737 | Using an Apt Repository for Paid Software Updates | I'm trying to determine a way to distribute software updates for a hosted/on-site web application that may have weekly and/or monthly updates. I don't want the customers who use the on-site product to have to worry about updating it manually I just want it to download and install automatically ala Google Chrome. I'm pl... | Overall, I love the approach. Piracy issues can't be countered anyway, whether over traditional distribution or automated, and you can avoid the inconvenience of a licensing scheme. You might get problems with the random selections. Is a customer picked to be an early adopter for the whole duration of your business rel... | 8 | 1 | 667 | 2011-03-25T00:59:17.310 | api_errors | softwareengineering.stackexchange.com | |
404,142 | Populate values in a map from a series of function calls | I have the following common pattern that I need to use in an application: Given a list of keys, call a function with a parameter to find values for the keys. The function may return null for a given key where no value can be found. For those keys missing a value, go to step 1 supplying only the keys missing values and ... | Personally, I would pass in the API call ( [CODE] ) as a list of functions ( [CODE] ) and then simply loop over the missing keys and supply functions until either all keys are found or no more lookup functions are available: [CODE] You can then call the function in this way: [CODE] You can have the supply chain stored ... | 0 | 1 | 732 | 2020-01-22T20:23:58.667 | api_errors | softwareengineering.stackexchange.com | |
830,109 | Linux pxe boot is successes, but how do I make it muti OS (7.1 and 7.2) for each MAC? | I did a setup a pxe boot recently and it’s works like a charm without any issues, so the phase 1 is okay and success. Now the question is, I have two client with mac address and how to configure a profile for each? At present whatever system (client) boot from network the installation will happen with default (current)... | You need to create a file for a part (or whole) of the mac address. Have a look here: http://www.syslinux.org/wiki/index.php?title=PXELINUX#Configuration | 0 | 0 | 30 | 2017-02-02T12:09:12.393 | infrastructure | serverfault.com | |
435,174 | how to use check_graphite plugin for nagios & graphite integration? | I attempted to use the [CODE] plugin but was not successful. Can anyone point out where I am going wrong? [CODE] and thus it ends. Any ideas? check_graphite.py [CODE] | Instead of enclosing your render URL with parentheses, try the following instead. [CODE] | 1 | 1 | 2,794 | 2012-10-05T11:38:34.473 | infrastructure | serverfault.com | |
752,060 | Can't send to compressed (zipped) folder | I'm IT Technician at a Secondary School and our Network Manager is away on long term leave. Currently our student's aren't able to send to - compressed folder. When trying the error 'File not found or no read permission' appears. It works for staff so I can only imagine it's a group policy setting. I have minimal knowl... | I had files locked in the folder. Once I closed the programs that had the file locked, I could create a zip file successfully. | 12 | 8 | 42,633 | 2016-01-27T09:42:37.593 | infrastructure | serverfault.com | |
423,075 | rsync - failed to set permission - operation not permitted | I got the following command with this error [CODE] But the thing is that i don't want to change permission of "/home/tasklite/temp/". How can i set that? | Replace [CODE] with [CODE] . (The [CODE] option is equivalent to [CODE] .) | 12 | 13 | 40,493 | 2012-08-30T21:19:44.377 | infrastructure | serverfault.com | |
14,639 | Finding the inverse of a matrix with neural networks | I have a generic matrix A which is symmetric, positive definite and sparsely populated (it's also quite big, say composed of tens to hundreds thousands rows). I would like to have a neural network learn how to find a matrix B that resembles the inverse of A (ie: that multiplied by A will yeld a minimal spread of the sp... | In general this problem falls under the umbrella of "structured prediction" since you are trying to estimate a number of things that are related by virtue of being embedded in a PSD matrix. Instead of estimating the inverse in one swoop, I'd pick an appropriate algorithm, say inversion by eigendecomposition, estimate t... | 12 | 10 | 9,602 | 2016-10-19T17:10:11.757 | data_quality | datascience.stackexchange.com | |
502,105 | Intermediate SMTP server (exim), how to handle backscatter? | I have a dedicated Ubuntu Lucid box at a hosting provider that is my backup MX (running exim4 4.71-3ubuntu1.4) for domains that I have configured on an Exchange 2007 server on my LAN. So my Exim server is the relay, and if my Exchange server or ISP connection goes down, the Exim server caches it all up and will relay i... | IMHO, your best option is using an exim/spamassassin combination, cofigured to reject mail at [CODE] (i.e. before accepting it) to mitigate backscatter. Add in some RBL whitelisting/blacklisting to refuse or (better?) greylist inbound mail at [CODE] . This should be sufficient to reduce the queue size. There's lots of ... | 4 | 3 | 1,793 | 2013-04-24T02:44:33.867 | database_errors | serverfault.com | |
1,103,280 | Fedora 36 Workstation vs Fedora 36 Server | The description of the environment might sound complicated at first, but it is a typical small office setup -- Windows Domain, Windows and Linux workstations, a few NAS. I have two machines that are the subject of my problem. One was recently installed with Fedora 36 Workstation and the other with Fedora 36 Server. "In... | The problem turned out to be DNS search domains. For whatever reason, Windows did not return a FQDN, and my search sequence, which was unintentionally different between the two machines, appended the wrong suffix in the case of SERVER. | 0 | 1 | 616 | 2022-06-14T16:19:21.453 | infrastructure | serverfault.com | |
4,654 | Does hybrid hard drive improve programming experience? | I'm tired of how luggish my developments PC is. It's Core2 Duo, 2GB RAM, Seagate ST3500320AS HDD - not the top model, but quite a decent one. Typically I open several copies of Visual Studio 2008, lots of tabs in Firefox, Outlook, MSDN, plus the programs I debug are quite huge, plus whatever Windows thinks it can't liv... | It sounds more to me like getting more RAM in your machine would be the best thing you can do. | 11 | 6 | 1,127 | 2010-09-17T06:34:58.360 | api_errors | softwareengineering.stackexchange.com | |
125,651 | Why database partitioning didn't work? Extract from thedailywtf.com | Original link. http://thedailywtf.com/Articles/The-Certified-DBA.aspx . Article summary: The DBA suggests an approach involving rigorous partitioning, 10 partitions per disk (3 actual disks and 3 raid). The stats show that the performance is non-optimal. Then the DBA suggests an alternative of 1 partition per disk (wit... | The whole thing is moronic, sorry. If you have 6 disks, you could try 3 pairs of RAID-1. Each with one partition each. First partition for system/tempdb, second for data, third for transaction logs. 1 pair of RAID-1 and one 4-disk RAID-10. One partition each. If the data is mostly read-only, one big RAID-5 volume, with... | 1 | 1 | 283 | 2010-03-24T09:03:15.107 | infrastructure | serverfault.com | |
189,191 | Why is test driven development missing from Joel's Test? | I was reading this blog by Joel Spolsky about 12 steps to better code . The absence of Test Driven Development really surprised me. So I want to throw the question to the Gurus. Is TDD not really worth the effort? | Test driven development was virtually unknown before Kent Beck's book came out in 2002, two years after Joel wrote that post. The question then becomes why hasn't Joel updated his test, or if TDD had been better known in 2000 would he have included it among his criteria? I believe he wouldn't have, for the simple reaso... | 23 | 31 | 3,775 | 2013-03-04T17:38:13.247 | api_errors | softwareengineering.stackexchange.com | |
199,496 | MySQL logging slow queries | I've told MySQL to log queries that take longer than a second ( [CODE] in the config)... however I'm seeing queries like this that take much less than a second.... [CODE] My settings are... [CODE] I should ask... this means that it's only logging queries that do not have any indexes at all? | What is long_query_time set to? log-long-format or log-queries-not-using-indexes active? The most likely explanation either an incorrect setting of logging. --log-queries-not-using-indexes and log-long-format both cause queries not using Indexes to be logged. Sometimes not using an index is faster, and this can cause a... | 2 | 1 | 289 | 2010-11-08T17:43:11.937 | database_errors | serverfault.com | |
1,053,360 | phpMyAdmin in a seperate domain in centos 7 | The issue right now is that I want to maintain a database and I have planned to manage that with phpmyadmin and i have configured it but right now what it looks like is mydomain.com/phpmyadmin What now is I Want anotherdomain.com ==> phpmyadmin management site so are there any ways to do this I am using centos 7 any he... | First of all, consider not installing phpMyAdmin : phpMyAdmin is a completely unnecessary and insecure software that has already collected 252 CVE registered vulnerabilities over its lifetime. If for some strange reason you still want to use it, then you can install it on a separate subdomain, and ideally, make it "sec... | -1 | 2 | 252 | 2021-02-12T04:13:29.450 | infrastructure | serverfault.com | |
341,000 | Permission, apache user and www folder in Linux | The httpd process runs with [CODE] user/group credential, while /var/www/html folder is owned by [CODE] user/group. What's the best practice to manage permissions on public html folder? Leave them as owned by [CODE] or assign each file and folder to the [CODE] user? | Leave them owned as root until some other user needs write access to the folders. The apache user should not own anything at all unless it is strictly necessary, as it can make security vulnerabilities worse. As an example, if somehow an attacker was able to figure out a way to get apache to be able to create files som... | 2 | 3 | 1,589 | 2011-12-14T19:42:45.667 | infrastructure | serverfault.com | |
337,423 | Index usage for NULL values | If there is index for a column, will it speed up search if condition is [CODE] ? In fact it is composite index on 2 columns and second column can be NULL ( [CODE] ). | Short answer: It may. Long answer: [CODE] optimizes like [CODE] . ( [CODE] does not.) There are many reasons why the optimizer may shun the index and do a table scan, tossing rows that don't match. For a single column index where the column is tested for [CODE] or a constant, the Optimizer will usually ignore the index... | 0 | 3 | 50 | 2024-03-02T14:50:54.560 | data_quality | dba.stackexchange.com | |
1,127,813 | Used P2V to reduce size opf LVM VHDX - Issues with grub and booting now | Hi All hoping for some Linux genius advice I inherited a VMWare VM cluster with a few production VM's they were all way over provisioned and all have 1tb Thick drives But are only using 100gb odd each I want to reduce the size of the VHDX but with it being lvm it is proving tricky I have used P2V to "move" a test vm on... | I figured it out This solution is only valid for LVM systems carry out the clone operation and let it fail at 97% boot failed clone to live cd mount file system run in terminal pvdisplay & vgdisplay & lvdisplay & blkid to get the new UUID of your system edit fstab and boot.cfg and replace the current UUID with the new ... | 0 | 0 | 100 | 2023-04-03T15:04:27.943 | infrastructure | serverfault.com | |
14,293 | Dimension reduction techniques in R that do not use the full distance matrix | I try to apply non-linear dimension reduction in R. As usual in machine learning I have a large data set (100 K rows). I tried the packages [CODE] and [CODE] : [CODE] The first algoritms use the distance matrix internally and crash as they want to allocate 32GB. The second approach needs the distance matrix and crashes... | You can try using an auto-encoder which also is a non-linear dimension reduction technique. It uses a neural network framework to find the most efficient transformation from $p$ dimensions down to whatever you choose. It then finds how well it can reconstruct the origianl $p$ variables, and keeps tuning until it can op... | 0 | 3 | 868 | 2016-09-30T11:53:22.803 | data_quality | datascience.stackexchange.com | |
26,552 | Facing problem while returning page objects from a method based on the arguments provided to the method | In the web application i am trying to automate there is a Login page and a Secure page. When user enters valid credentials in Login page s/he is navigated to Secure page with a success message. If the credentials are invalid s/he would stay in the same page with an error message. I have created two page objects to repr... | The login action could always return the securePage as this is the location you would expect it to end up if a login was successful. In the case you use invalid credentials you best use the old pageObject again in your test to verify you are still on the same page. Here some example pseudo-code: [CODE] And two tests: [... | 2 | 2 | 1,475 | 2017-04-01T08:34:16.173 | data_quality | sqa.stackexchange.com | |
734,670 | VirtualHost https and non-www | I'm attempting to redirect all requests to my main site to https://example.com with VirtualHost. I want to remove the www from the domain and force https. Currently all http:// requests are redirecting properly, but https://www.example.com is throwing an SSL privacy error. I have a couple subdomains I'm hosting as well... | No there isn't a way around that, SSL socket opens before redirects are processed. Some ssl providers give you www.example.com SAN free, contact them. | 0 | 0 | 342 | 2015-11-07T17:33:17.963 | api_errors | serverfault.com | |
533,248 | How To Solve WP-DBManager Permission issue? | I've installed WordPress on a LEMP stack which is powered by CentOS 6.4. I installed WP-DBManager plugin today and it's showing an error which is mentioned below: [CODE] But guys how can I do this as Nginx does not support .htaccess file. Please tell me what permission should I give to backup-db folder that is located ... | That .htaccess just denies all requests. You can easily do the same in nginx with a second [CODE] . For instance this will [CODE] every request in that directory: [CODE] | 1 | 1 | 326 | 2013-08-23T13:07:24.247 | database_errors | serverfault.com | |
300,247 | /etc/hosts entry for single IP server serving multiple domains | Running Ubuntu 10.04 My server serves 3 different domains using named virtual hosts in Apache2. I'm current using different Named Virtual Servers to 301 redirect www to the non-www equivalent. It's working, but I don't understand the correct entries for my /etc/hosts file and I think that is causing problems for me try... | I'm assuming this is for testing, otherwise you'd be setting up proper DNS records, not your [CODE] file. What you want is for every name you want to call your web server with, to resolve to your server's IP address. If you are testing from the server itself, then you can make everything point to 127.0.0.1, but of cour... | 5 | 6 | 8,457 | 2011-08-11T19:59:20.890 | infrastructure | serverfault.com | |
1,671 | How to create Golang Linux binaries using a Windows host | When [CODE] is issued on a Windows host a .exe binary is created. How to ensure that a Linux binary is created on a Windows host? The following was tried, but did not solve the issue: [CODE] | You can easily set the target operating system and processor architecture using the environment variables GOOS and GOARCH respectively. So, as you want to build it for linux operating system, following command with above environment variables will do, [CODE] Here is the list of all the supported operating system with w... | 5 | 4 | 2,534 | 2017-08-06T19:07:08.207 | pipeline_ops | devops.stackexchange.com | |
345,896 | nginx reverse proxy to apache: php doesn't work | I'm trying to make a reverse proxy from nginx to apache on my Ubuntu 10.04 server. It is working fine right now with HTML files... the requests are sent directly to apache. But whenever I visit a PHP file, I see a nginx [CODE] error. I'm guessing this means that there's a problem with apache's PHP configuration. Here's... | You can try to access the PHP site on apache directly without going through nginx. To enable PHP on your apache, you need to install the PHP module [CODE] . If you are being prompted to save PHP file, you need to make sure you have a line similar to this in your apache config: [CODE] Don't forget to reload/restart your... | 0 | 0 | 1,015 | 2012-01-02T14:59:33.430 | infrastructure | serverfault.com | |
390,276 | Configuring a new View Screen in JIRA | I am attempting to reconfigure the "View Issue" screen on a basically default JIRA 4.4 installation. So far, I am unable to actually see this new screen I have created in action on any issues, and I am unsure what I am doing wrong -- though it is probably something simple. The steps I took were: Created a new screen Cr... | If you mean by sentence Attached my screen scheme to a new issue type scheme that you have created a new Issue Type Screen Scheme , make sure that target project is configured to use the newly created Issue Type Screen Scheme. Also note that some fields cannot be actually removed from the issue view like Resolution and... | 0 | 0 | 114 | 2012-05-18T07:19:00.053 | infrastructure | serverfault.com | |
193,746 | Master master replication in mysql | i am new in mysql and trying to establish master master replication in mysql on first server i have added these lines to mysqld section of my.cnf(mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1) [CODE] On second server i have added these lines to mysqld section of my.cnf(mysql Ver 14.14 D... | Seems that like it's a problem with communication between the two mysql servers. Last_IO_Error: error connecting to master 'abc@192.xxx.x.xxx:3306. Did you verify that 1) 192.xxx.x.xxx is listening either on 192.xx.x.xxx or 0.0.0.0/0 2) the other server, lets call it 192.xx.x.yyy can connect to it? Determine with mysql... | 0 | 1 | 2,167 | 2010-10-22T07:09:25.590 | database_errors | serverfault.com | |
368,044 | Postfix + Courier + MySql mail server with SASL | I am really at a loss configuring this mail-server deployment. I am following the excellent guide posted at http://flurdy.com/docs/postfix/ . I'm using Ubuntu 10.04 LTS on Linode. While following the guide to the letter I encountered an error from Postfix when sending outgoing from Thunderbird Mail Client. [CODE] Which... | Getting SASL to work is the most difficult thing. Anyways you got that to work. Go ahead follow flurdy's part to enable TLS, that part is not going to break anything for you. The snakeoil files are already there so there is no need for generating the ssl files. | 0 | 1 | 1,215 | 2012-03-09T14:21:06.007 | database_errors | serverfault.com | |
370,961 | Apache2 Virtual Host with ScriptAlias returning 403 | I am trying to reference my libs directory which is a sibling directory to my [CODE] . I am using the following [CODE] to try to accomplish this. [CODE] But when I go to example.com/libs/ I get a the following error [CODE] I am able to view the [CODE] directory using the following configuration so I don't think it's a ... | The following is conflicting with each other: [CODE] See this link: http://httpd.apache.org/docs/2.0/mod/mod_alias.html#scriptalias Both instructions are basically the same thing, except that you're missing the SetHandler line in Directory. Try removing the Options line, or adding the SetHandler line in your Directory ... | 2 | 1 | 1,991 | 2012-03-18T23:46:04.237 | api_errors | serverfault.com | |
881,853 | Samba, FreeBSD, ZFS: Group permissions are ignored | I am running Samba 4.6 on FreeBSD 11 with ZFS. Each user belongs to the fileserver group . In addition, there are additional groups for each department, such as sales group . And here comes my problem. On the server is a folder called sales . Which is owned by fileserver and the group sales. Why can't my group members ... | So, you expect the read-write access to work without [CODE] , [CODE] and [CODE] ? This is just wrong, you are not inside the legacy 3x3 POSIX permissions system, it's NFSv4 ACLs. They aren't additional to POSIX 3x3, they are normalized. Basically you need the [CODE] ACL, in you need more fine-grained control you need t... | 1 | 0 | 1,144 | 2017-11-04T18:02:45.937 | infrastructure | serverfault.com | |
959,385 | Connection refused with internal private DNS name | I have a Cassandra cluster set up on 5 EC2 nodes. The nodes can communicate using the private IP addresses just fine, but get connection failures when using the private internal DNS name. Localhost also fails. I am trying to use the cassandra-stress tool but I get the [CODE] , and when turning on verbose logging I get ... | Your command [CODE] fails because you configured [CODE] to listen only on the given address. If you want to listen for CQL traffic everywhere, you need to set [CODE] to [CODE] , and set [CODE] to [CODE] - it's all described in the [CODE] itself. Regarding JMX - it's not really required that you had it enabled - it coll... | 0 | 0 | 855 | 2019-03-21T17:58:10.983 | database_errors | serverfault.com | |
61,876 | Replace missing values of numerical features with unique numbers | Let's suppose that I have a dataset with 5 numerical features of which each of them has some missing values and all of them have only non negative values. Some suggested ways to deal with missing data are: Remove the rows which have even one missing value Impute the missing values I do not prefer (1) because then you m... | This depends on the exact learning algorithm which is used, but most of the time numerical values are treated... numerically. It's easy to see with the case of linear regression: let's say a feature has values between 0 and 100, but with a few missing values. Now replace missing values with -999: the coefficient learne... | 0 | 2 | 141 | 2019-10-17T14:40:07.233 | data_quality | datascience.stackexchange.com | |
309,938 | Hyper-V Development Server - best 4 drive configuration? | We're building a development Hyper-V server that will be shared among 4-6 .Net developers. We'll be running mostly Win2k8R2 VMs with services including MSSQL, SharePoint, TFS, continuous integration, etc. Again, this is a dev machine used for development and testing - so no production-grade SQL performance is expected ... | Probably just a single RAID 10 and you should be fine. If you need more than 2 TB of space go RAID 5, but if 2 TB will do then RAID 10. Those are pretty much your two options. | 1 | 1 | 153 | 2011-09-10T00:39:42.870 | api_errors | serverfault.com | |
1,128,044 | apache2.4 (debian11): access of /.htm or /.html sites lead to 403 (and not 404) | If I install apache2 on debian 11 and access one of the following urls: http://localhost/.htm http://localhost/.html I don't get the expected HTTP status-code 404, I get a HTTP-status code 403 instead! However, if I access the url http://localhost/.abc I get HTTP-status code 404. Does anyone know, why apache returns 40... | This is because the Apache config contains the following snippet by default: [CODE] It's pretty well explained by the comment. [CODE] and [CODE] are files that can contain security relevant configuration, and be present in the web root. Thus the default config simply blocks files starting with [CODE] . | 2 | 2 | 75 | 2023-04-06T11:13:38.323 | api_errors | serverfault.com | |
767,763 | Unable to install Subversion on Centos 6 | I am attempting to install the subversion client on Centos 6.7 but after running: [CODE] I get the below response: [CODE] Do I need to manually install the above dependencies? Or is there another way of installing subversion? | You're running CentOS 6, but you've installed third party repositories [CODE] and [CODE] , possibly among others, which are designed for CentOS 5. Remove them (and any other inappropriate repos) and replace them with the correct repositories. After doing so, you will need to clean old metadata from your system and repl... | 0 | 1 | 298 | 2016-04-02T19:23:56.830 | infrastructure | serverfault.com | |
573,588 | MySQL demon already running with same unix socket | When trying to start the [CODE] demon on a CentOS 6.5 box I get the following error: [CODE] Which is odd because the service isn't started (it's configured to run on the default port) : [CODE] I'm not sure how to find the Unix socket that's causing the problem: [CODE] I use this box as a Git server, running GitLab, and... | You can use [CODE] to see which process (if any) owns the socket and take appropriate action If you're sure that there is no other MySQL process running, you can simply delete the [CODE] file. When MySQL starts, if the socket doesn't exist, it will recreate it. | 2 | 5 | 12,332 | 2014-02-06T09:23:49.790 | database_errors | serverfault.com | |
1,091,546 | Very slow mysql on Azure App Service w/ PHP (Wordpress) | I am trying to fix issues with very slow Azure App Services to Azure Database connection. After Wordpress migration form cheap OVH hosting I noticed extremely long TTFB: increase from 300-400ms to 1500-3000ms. I narrowed the problem to app service - database connection issue. To pinpoint the problem I created clean Wor... | A couple things to look at since they were not mentioned in the question. Ensure the web app and database are in the same region. This may seem basic but I have seen it before. Enable Always On in settings for the Azure App Service. Always On : Keeps the app loaded even when there's no traffic. When Always On is not tu... | 0 | 0 | 4,112 | 2022-01-29T11:30:50.597 | pipeline_ops | serverfault.com | |
1,032,638 | Delaying delivery of emails out of business hours for Exchange | I am having an interesting problem to solve. We want to be able to delay the delivery of certain business emails sent from some managers to their staff after business hours to the next working day. These messages would need to be queued somewhere and then released at the start of the day. To complicate matters further,... | Based on my research and knowledge, to delay a email, we could use the delivery option, vba and rule in Outlook to realize it, but they couldn't apply as global settings to other clients(e.g. OWA, Mobile devices), and there seems be no settings in Exchange Server too. However, according to the official documentation Ho... | 0 | 0 | 1,185 | 2020-09-04T04:42:59.883 | infrastructure | serverfault.com | |
352,559 | What problems arise from writing PHP for IIS/SQL Server rather than Apache/MySQL? | I'm a .NET developer, currently writing an ASP.NET site hosted on our local servers with Windows, IIS, and SQL Server. We're speaking to a company in India about hiring a developer for a different site, written in PHP but ideally running on the same server: Windows, IIS, SQL Server. He does not know English very well. ... | Absolutely no additional ones. Surely, there are differences. But these are differences, not problems: If you write SQL-Server tailored SQL you will obviously not be able to run it against MySQL/Maria/Aurora or Postgres Some PHP packages ship with a [CODE] file which is Apache specific. You might have to translate thos... | 1 | 4 | 820 | 2017-07-11T14:47:37.037 | database_errors | softwareengineering.stackexchange.com | |
45,259 | Is premature optimization always bad? | I work in a small sized software/web development company. I have gotten into the habit of optimizing prematurely, I know it is evil and promotes bad code, but I have been working at this firm for a long while and I have deemed this as a necessary evil. It has never caused me an issue so far in the past, but it might if... | IMO, 'optimising prematurely' is only bad if reduces readability. Programming tends to be a write-once read-many activity, and if your optimisations make the code significantly harder to understand then I would be concerned. I would take a guess that the effort required to refactor your code would not be worth the bene... | 8 | 14 | 2,603 | 2011-02-08T02:38:43.843 | api_errors | softwareengineering.stackexchange.com | |
66,316 | group by+where on calculated column | [CODE] If you take ( [CODE] ) not error Thank you Answer | I presume you mean that you get an error with this query, and that if you remove the where clause you get no error, but not the right answer. You need a [CODE] clause, which is like [CODE] but can be applied to the aggregated results: [CODE] Alternatively, you can move the whole statement to a subquery and perform the ... | 1 | 3 | 91 | 2014-05-31T10:03:08.407 | warehouse_errors | dba.stackexchange.com | |
812,358 | no httpd connection for monit started from systemd | When starting [CODE] my logs show that [CODE] despite having [CODE] in [CODE] . Is there anything else needed to have the httpd server enabled when [CODE] is started via systemd? Note: A previous answer pointed to an extra [CODE] , which is not my case (the [CODE] was there, but an an introduction for following configu... | It seems you have to specify at least one between the [CODE] and [CODE] directives. In my case I solved the issue simply adding the [CODE] directive [CODE] See the relevant code from monit sources. | 2 | 4 | 1,351 | 2016-10-31T18:51:50.343 | infrastructure | serverfault.com | |
101,665 | Error when installing SQL Server 2008 on Windows 7 | When installing SQL Server 2008 on a Windows 7 machine, it experiences the following error. TITLE: Microsoft SQL Server 2008 Setup ------------------------------ The following error has occurred: Attempted to perform an unauthorized operation. Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this a... | Are you installing SQL Server Enterprise? Only the SQL Server 2008 Standard and Express editions can be installed on Windows 7. http://msdn.microsoft.com/en-us/library/ms143506.aspx | 0 | 1 | 3,626 | 2010-01-11T19:35:06.447 | api_errors | serverfault.com | |
368,638 | Optimistic locking vs separate lock store for background workers | I need to compute the value of a row R on a table based on rows queried on another table B. I need to do it in a queue worker because the computation of the value can be slow. A message is queued everytime B change. If the two workers start the computation of row R almost at the same time, and the data on table B chang... | A message is queued everytime B change. Arrange so that the message is monotonically versioned (e.g. after the first message is assigned [CODE] , the next message can only use a greater number). Arrange so that a message is only consumed by at most one worker. Workers can disappear in the middle of computation, so a re... | 3 | 1 | 212 | 2018-03-31T15:05:44.073 | api_errors | softwareengineering.stackexchange.com | |
1,021,376 | Network adapter issue | I have installed server 2016 in VMware workstation 12 and i am facing some weird issues. I have set my ip address and my default gateway but whenever im trying to run the command ipconfig /release it shows the operation failed as no adaptor is in the state permissible. What to do ?I have tried solving by changing the v... | [CODE] releases a DHCP-assigned IP address. It doesn't work for manually configured IP addresses which need to be changed manually. If you want to use DHCP you have to configure the NIC to use a dynamically assigned address. If DHCP doesn't work and falls back to APIPA the connectivity to your DHCP server has failed. Y... | 0 | 1 | 99 | 2020-06-14T07:14:39.103 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.