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 |
|---|---|---|---|---|---|---|---|---|---|---|
838,136 | rsync for software update / multiple clients | I'm building a game launcher / updater and need to make clients download the last game version if an update is avaiable or if there is a problem with files integrity. I need something able to produce a "delta patch" between a client local game and the official relase on the server. rsync seems to be what I need, with i... | One possible solution would be packaging your software using the native format of the OS (e.g. RPM), signing your packages (normally done using GPG), and exposing your repository over a HTTPS channel (optionally with client certificates, which you can control). The advantages of using a trusted, verifiable and known te... | 1 | 0 | 229 | 2017-03-14T09:19:34.083 | infrastructure | serverfault.com | |
325,458 | IP Binding Issue in IIS with Windows Server 2008 | I have 2 servers connected to my router. One is running Windows Server 2008 R2 and the other is running Ubuntu. I have port 80 open on my router and sending traffic to Ubuntu. I have port 801 open and sending traffic to my Windows Server. My question is, what do I need to do in IIS on the windows server that will allow... | In the IIS manager, select the site that you want to modify the bindings for - in your case, it's probably just the "Default Web Site". On the right side, under "Actions", one of the options is "Bindings...": There, you can see the bindings that are configured - each has a scheme (http/https), IP (which, by default, us... | 0 | 2 | 472 | 2011-10-27T19:21:46.477 | infrastructure | serverfault.com | |
308,414 | How to benchmark the memory requirement fo sql server? | I have a production sql sever with 200GB ram. Of this 150GB is allocated to sql server (by setting max memory settings in sql server properties) The rest is used by ssis, os, anti-virus, apps. I want to benchmark whether the 150GB memory is sufficient for sql server because there are around 20 databases ranging from 5G... | Consumers SQL Server has two main consumers of memory. There are many others, but under normal circumstances they don't consume enough additional memory to be notable. The buffer pool Query memory grants Buffer Pool Since SQL Server doesn't work with data on disk, queries need to bring the relevant pages into the buffe... | 0 | 5 | 1,135 | 2022-03-08T08:26:27.613 | database_errors | dba.stackexchange.com | |
9,953 | ERROR: Unable to read database state: No such file or directory | I was trying to install Photon by pulling the docker image. But when I run [CODE] I am getting the below error. [CODE] I observed the same error before when I tried to install some other application. So, I am guessing this is not something specific to Photon. What is causing this error? How to fix this? | Please try splitting this line: [CODE] into two: [CODE] This will tell you exactly which piece of the command fails. If it is the [CODE] part maybe try this: [CODE] . Also you may fixing to a specific tag in the [CODE] as [CODE] follows the latest alpine release which may have some unknown/unfixed issues. See https://h... | 5 | 0 | 2,933 | 2019-11-27T11:03:44.157 | pipeline_ops | devops.stackexchange.com | |
120,240 | Multiple queries (if conditions) in the best performing way | I would like to create a simple licensing system. Upon the very first authentication with a valid license key I need to set a "start date". Every key has a specified validity (for example 30 days). So once the [CODE] is set to the current timestamp I also have to set the [CODE] which is [CODE] . Of course it is possibl... | You could possibly rid your entire else block in pseudo if you used default values correctly. Also why have start time, wouldn't expire time sound more reasonable? Preset expire time with default value of getdate()+whatever. I see set operations that are meaningless too. Hope this advice you find helpful. I'm not a mys... | -1 | 0 | 56 | 2015-11-05T19:53:51.127 | api_errors | dba.stackexchange.com | |
992,336 | Apache2 not working with port 80 but working on port 8000 in Proxmox (same configuration) | Some months ago I hired a Kimsufi server, I tried to forward ports without luck. I abandon the server, some days ago I started to reconfigure everything again, but I'm having still problems. I discovered that some ports are blocked by default, but I still don't have a clue how to unblock them. The main problem is that ... | check the httpd.conf/apache.conf file, the [CODE] port should be 80 rather than 8000. Is this a cloud instance? if yes, even though you allow it with [CODE] it is not exposed to the world. You will need to open the port in your provider's ACL. | -1 | 1 | 3,484 | 2019-11-18T19:10:54.427 | infrastructure | serverfault.com | |
217,161 | Read/Select:Connection reset by peer (10054) during remote logoff in RealVNC | I am using RealVNC 4.5 Enterprise on my Windows 7 client. I use this to connect to a remote system which is also running RealVNC 4.5 (on Windows 7 again). And then i logoff the remote system (server) and all of a sudden the realvnc viewer on the client closes with the message : "Read/Select:Connection reset by peer (10... | I find it ! Enable protocol 3.3 and use VNC password with encryption : prefer of :) | 0 | 2 | 25,637 | 2010-02-15T13:27:13.417 | infrastructure | serverfault.com | |
108,553 | Apache dav modules produce cadaver: Could not access / (not WebDAV-enabled?) | I installed apache then I am able to access the default page from the command line: [CODE] Using webmin in web browser: [CODE] Enable the dav modules: [CODE] Restarted apache at command line: [CODE] Invoke command line dav client: [CODE] What is missing? | What does Apache's error log say? I find the error log to be very useful in troubleshooting WebDAV errors. Did you enable WebDAV for any URLs? Example: [CODE] Did you set up a [CODE] ? | 4 | 4 | 6,967 | 2010-02-02T00:49:21.157 | infrastructure | serverfault.com | |
275,698 | missing a step in windows server 2008 FTP set up | I have a similar directory set up to this: http://learn.iis.net/page.aspx/301/creating-a-new-ftp-site/#01 if the ftp site 'my new ftp site' has a number of folders underneath it such as 'images', 'media' - how do I set up ftp://media.mydomain.com on the media folder? I have created a user named 'media' and set the pass... | if the ftp site 'my new ftp site' has a number of folders underneath it such as 'images', 'media' - how do I set up ftp://media.mydomain.com on the media folder? You should be able to do this with IIS 7.x the same way you add a host header value to a Website under IIS. Off the top of my head, it should be right-click >... | 1 | 1 | 119 | 2011-05-31T21:34:45.740 | infrastructure | serverfault.com | |
184,290 | How to connect several (mobile) devices | I want to start a little project, where I want to connect several of my devices. Some are Android mobile devices, others are desktop devices like a PC or laptop. Furthermore I want keep the project as generic as possible. Means I want to share it, so other people can use it. By connecting I mean send messages between t... | You can use ZeroConf (a.k.a. Bonjour ) to discover other devices on a local network and create an ad hoc network between them. If you want to be able to connect devices across larger networks, though, you're going to need a server with a fixed address so that all parties have some well-known address that they can conne... | 1 | 1 | 160 | 2013-01-20T18:32:34.700 | api_errors | softwareengineering.stackexchange.com | |
750,199 | error "Test failed: Main server ADSrv" when integrating directory | I'm trying to integrate GLPI with Active Directory. I'm using windows XAMPP V3.2.2 and GLPI 0.90.1. While setting up the LDAP Directory, I'm getting an error "Test failed: Main server ADSrv". What am I doing wrong? | There isn't enough information to know the answer for sure. It could be a hundred different things, but I'll just take a stab and guess that your "RootDN" should be: [CODE] instead of [CODE] . I highly doubt that your user account is not in a container or OU of any kind. Reference: http://wiki.glpi-project.org/doku.php... | 1 | 0 | 2,320 | 2016-01-19T14:20:04.827 | infrastructure | serverfault.com | |
206,667 | Where to put entity model classes in case of using a dataservice layer? | If my solution has both a "dataservice" project and a "business logic" project, where do the entity models, which represent database tables, belong? At first i thought putting them in the dataservice layer, but then i would need duplicate models in the business logic layer, if i wanted to provide reusable logic dealing... | Create a separate "Domain" project that contains your Domain Entities. Important note: Your Entities may not be the same thing as your datatables. Your "DataService" project should know how to map from Domain Entities to datatables. | 1 | 4 | 395 | 2013-07-31T14:13:21.407 | data_quality | softwareengineering.stackexchange.com | |
339,083 | Apache mod_autoindex and declaring a favicon in the <head>? | All browsers are not equal. Hence I need to explicitly state that I have a favicon ("shortcut icon") for [CODE] -generated pages. How can I do that? Using header ( [CODE] ) and footer ( [CODE] ) is not an option because those get included into the HTML-body. I need to manipulate the [CODE] part of the generated HTML. E... | Add the [CODE] option to the .htaccess file to suppress mod_autoindex 's automatic injection of the preambulatory [CODE] tags and then include those tags and your desired [CODE] tag in your Header.html file. This option is available in Apache 1.3 and later. | 0 | 3 | 816 | 2011-12-08T18:02:34.147 | infrastructure | serverfault.com | |
207,641 | SQL Server Service Account - Things to test post change (from Local System to Network Service) | We needed to change the SQL Service Account for the SQL Server Database Engine & Agent Services from Local System as it has extensive predigests. What are the things that we should do to test within the SQL Server database itself to ensure that there are no issues / permission problems with this change? Note the servic... | In Short: Everything and Anything. And Nothing. But seriously: A few thoughts about changing the SQL Server service account: ALWAYS use the SQL Server configuration manager. This tool is smart. It knows what permissions need to be assigned to the service account. And generally does it. If you change it from windows ser... | 0 | 2 | 1,074 | 2018-05-23T15:26:29.677 | database_errors | dba.stackexchange.com | |
749,206 | Exchange server: send mail using alias | I use different domain addresses (ie a@aa.com a@bb.com), alias of the same exchange mailbox. DNS MX records for 'aa.com' and 'bb.com' points to the same exchange server. Receiving mails works perfect, the issue is sending mails. How can we setup outlook and/or exchange to allow us to send mails, using a different 'from... | As far as Exchange is concerned, you have one email address for outbound email -the default. Any other addresses are aliases for inbound only. If you want to send using one of the other addresses, then you need to attach it to another option. The option you have said is "Not the Answer" I am sorry to say is the only an... | 0 | 3 | 903 | 2016-01-14T20:03:10.790 | infrastructure | serverfault.com | |
1,110,513 | Share cache between multiple location blocks | Considering a nginx server with the following two locations which each serve a webapp, including some static resources and a REST API. Is there a way to cache the common resources, e.g. [CODE] and [CODE] such that nginx only downloads [CODE] once from an upstream webapp server and caches it for requests of [CODE] to di... | You can modify the cache key used by nginx with [CODE] directive. A warning: You need to understand the caching system in detailed level before adjusting the key, because incorrect settings might lead to issues that are hard to debug. For example, two separate URLs that are supposed to show different content always sho... | 0 | 0 | 277 | 2022-09-12T13:38:43.927 | api_errors | serverfault.com | |
203,823 | RAID 5 Maxtor harddisc failed | In my company in server Maxtor HardDisc faild-> status Error. I cant buy new one cause it isnt produced any more. Is it possible to buy any other disk with similar space (little bit bigger) ? thanks for help | Generally, this shouldn't be a problem (never had any problems with it myself), but of course no one can guarantee you it will work. But you should do this immediately, because with a failed disk in a RAID 5 you don't have any redundancy left and when another disks fails, your data will be gone. Also, make sure you hav... | 0 | 2 | 57 | 2010-11-19T09:05:39.950 | infrastructure | serverfault.com | |
443,413 | Recieving a 500 Internal Server error after login success? | Having issues creating login for website: PHP: [CODE] Neither the console nor log are catching any errors. | change: [CODE] to: [CODE] Also, [CODE] is a common source of errors, often due to permissions. Turn on error reporting with: [CODE] | 0 | 4 | 1,259 | 2012-10-29T16:14:37.060 | api_errors | serverfault.com | |
134,674 | Troubleshooting / traceroute within Oracle Instant Client? | I am troubleshooting a freshly reimaged backup server Win2000 / Oracle 10.1.0.5.0. Here's what I did: Installed Oracle 10g by copying Basic Instant Client package and ODBC package into same directory, then running odbc_install.exe. Copied [CODE] from the original Win2000 server (where the DB connection works just fine)... | There is no [CODE] for the instant client, but even if you had the full administrator client, [CODE] may not return anything useful. By the way, from the command line I can ping the destination DB (defined in tnsnames.ora) just fine, so I believe I can completely rule out the networking (e.g. DNS/firewall/accessibility... | 1 | 3 | 2,990 | 2016-04-07T14:38:23.267 | database_errors | dba.stackexchange.com | |
421,220 | Negative unit testing | Let's say I have a class like this: [CODE] Now, I want to write unit tests for this class. Positive unit tests are easy for this. However, how about negative unit tests? Basically, I want to make sure that if I pass anything but specified seven values to this method, I get an [CODE] . Would passing all the possible byt... | I would probably decouple the data part of the validator from the component itself: [CODE] Now this class can be unit tested with all the usual testing techniques you know, some of them mentioned here in the other answers (boundary tests, edge case testing, testing the "happy" paths, the "unhappy" paths, coverage testi... | 5 | 5 | 795 | 2021-01-18T16:56:18.070 | data_quality | softwareengineering.stackexchange.com | |
198,599 | Create View using table and column names from data in a table, then build SQL | I need to create a view using data in a table for the table name and column name. Preferably I’d like to do it with set processing. I have a sample of doing this for one record in the table with a script of stored procedure, which won’t do for the application. The resulting view pulls data from a data logger for displa... | You can use a dynamic query. [CODE] 8 rows affected [CODE] ✓ [CODE] TmStamp | site_id | value :------------------ | :------- | :---- 25/07/2017 13:00:00 | G0025890 | 32.50 25/07/2017 13:00:00 | G0025891 | 29.60 dbfiddle here | 0 | 1 | 1,630 | 2018-02-22T18:43:33.013 | database_errors | dba.stackexchange.com | |
246,444 | How should one implement the dependency-injection for a geocoding client that aggregates different coordinate provider implementations? | I am new to DI and I would like to know how DI might be used to help resolve this problem. If I have an [CODE] which implements a [CODE] and [CODE] , then given two of these I can produce a [CODE] using a variety of algorithms, but I can also reasonably pick one of these as the "best" algorithm at design-time without l... | I would only implement the dependency-injection for a geocoding client that aggregates different coordinate provider implementations if you either have more than one provider (i.e. location based on ip-adress instead of zip code) or do Test-driven_development . For me your design looks over-complicated. I have implemen... | 1 | 3 | 245 | 2014-06-30T10:02:51.273 | api_errors | softwareengineering.stackexchange.com | |
122,697 | check history of cpu/memory usage in ubuntu? | Is there a way for me to review cpu or memory usage on my ubuntu linux server? I've noticed my server (lamp set up) being slow at times, but by the time I log in as root and run a PS command, everything may have returned to normal. It would be great to review a log of what resources different parts of the server consum... | The sysstat collection of tools contains sar which is able to save system activity information: http://pagesperso-orange.fr/sebastien.godard/documentation.html | 26 | 13 | 76,357 | 2010-03-15T17:56:01.590 | infrastructure | serverfault.com | |
261,271 | Why Jira can't connect database with pgBouncer? | pgbouncer.ini [CODE] userlist.txt [CODE] It can be connected by [CODE] : [CODE] But try connect from application: Jira dbconfig.xml: [CODE] When restart Jira, the database can't be connected again: [CODE] I am testing it in one server. Jira is installed at [CODE] user. pgBouncer is running under [CODE] user. | This works: [CODE] | 0 | 0 | 528 | 2020-03-05T10:04:01.053 | warehouse_errors | dba.stackexchange.com | |
389,924 | Linux directory permissions | I have a folder created by root and I want to be able to add permissions to a usergroup so they can move around the files etc. I did the following: [CODE] The file owner is now root and the group owner is developers. Why can a user in developers not make changes yet? | For standard unix permissions you must always consider, the owner (user/group/other), permission bits, and the umask. The combination of these things are what describe your effective rights, and the permissions of new items. chown/chgrp set the ownership. chmod set the permssions the umask is part of each users environ... | -5 | 8 | 929 | 2012-05-17T07:15:12.913 | infrastructure | serverfault.com | |
311,043 | For entities with common columns, which better to process separately or centrally | We all know that there are many types of invoices Take the invoice for my environment as an example Invoices include VAT invoices, which are divided into general invoices and special invoices Both general and special invoices have columns such as [CODE] , [CODE] , [CODE] , [CODE] , [CODE] , [CODE] , etc. In addition, t... | Not an Answer, but some tips: There may not be an obvious answer as to whether to have 10 tables, each with specific columns; versus 1 table with lots of nullable columns. Or a compromise -- 3 tables, each with a few nullable columns. Sketching out the Inserts, Selects, etc will give you a lot of insight into whether t... | 0 | 1 | 23 | 2022-04-17T05:14:23.193 | warehouse_errors | dba.stackexchange.com | |
334,076 | How to find out why a request takes long to appear in apache access log? | I have a client software which calls and apache httpd server installed on the same machine. Before calling the apache logs a log entry: [CODE] As you can see the call is made on 13:27:43 local time. The domain mydomain.com resolve the external IP of the same machine. However , when I look at the access.log file, I say ... | This is because the access log is written at he end of the request, not the beginning. So if you make the request at 12:00, and it takes a minute to complete, the entry will not be written until 12:01. The fact that it can include things like the number of bytes transferred is a sure indicator of this. You can also per... | 1 | 1 | 2,171 | 2011-11-23T13:18:16.270 | infrastructure | serverfault.com | |
73,163 | Un-learning a single training example from a trained model | I was going through the paper " The ML Test Score: A Rubric for ML Production Readiness and Technical Debt Reduction " by google on which suggests best practices for models in production. In a section about privacy controls in the data pipeline it says: Finally, test that any user-requested data deletion propagates to ... | is it even possible to "un-learn" a single training example without retraining on the new data? To the best of my knowledge, the answer is no except in some very special cases. The most obvious exception that comes to mind is instance-based learning , such as kNN: since the "model" itself consists only of the set of tr... | 6 | 2 | 132 | 2020-04-28T14:11:34.333 | pipeline_ops | datascience.stackexchange.com | |
438,587 | TCP Window Scaling for Satellite Connections | A satellite connection generally has a RTT around 500ms. Connections generally suffer sub-optimal transfer speeds, in spite of large amounts of bandwidth because TCP acknowledgements take too long to arrive. My understanding is that a good way to address this problem with TCP connections is to set the TCP Window size t... | You should generally use a TCP stack that implements proper Window scaling. But of course you are right that your window size needs to mach that bandwidth-delay-product (BDP). In case you have a varying BDP you can set the window size to something you'd expect as a common "worst" case. Interestingly enough most connect... | 7 | 4 | 2,422 | 2012-10-15T17:01:28.380 | api_errors | serverfault.com | |
220,959 | Why is my apache2, mod_fcgid, php configuration causing 100% cpu usage? | Page load makes a quick initial connection, then hangs about 10 seconds before the page renders. When the server load goes up I start watching top & I see that both CPUs get pegged at times to 100% by between 4-8 processes of php-cgi. My theory is that since I never see RAM usage never go above 50%, that apache is able... | Couple of things I would check off the bat ... First, do you have anything printing out to your Apache Error logs ? You may need to up the log level to "warn" so as to see output from your CGI processes. Though in this case bringing it up to debug may be more beneficial as apache will print out fcgi related logging inf... | 0 | 2 | 2,612 | 2011-01-11T03:58:04.340 | api_errors | serverfault.com | |
198,623 | problem installing sql 2005 related to msxml6 | Sql 2005 client tools won't install due to a problem with msxml6 How can I fix this? | Delete [CODE] from the registry then reinstall MS SQL Server 2005 alternatively Better is: Win + R , cmd, regedit navigate to [CODE] CTRL + F enter 'msxml6' then delete the key | 0 | 1 | 353 | 2010-11-05T14:28:39.300 | infrastructure | serverfault.com | |
143,687 | Alternative to xp_cmdshell for emailing a report as a CSV file | I've got an issue that I could do with some ideas as to how to achieve what's needed without using (or enabling) [CODE] if possible. I know that [CODE] itself poses risks, even with a proxy account, however - in our environment it's disabled and convincing the IT Manager to enable it is going to be difficult at best. T... | Since using sp_send_dbmail is an option here, I don't see why you need to export anything given that [CODE] can run a query and include the results, either in the body or as an attachment. I would first try to make use of the [CODE] , [CODE] , [CODE] , [CODE] , [CODE] , [CODE] , [CODE] , and [CODE] parameters. Please k... | 5 | 6 | 2,572 | 2016-07-13T07:31:48.537 | database_errors | dba.stackexchange.com | |
98,289 | SSH doesn't ask for password, gives "permission denied" immediately | Trying to SSH using a user account; root account works but I am specifying a private key. User account simply gives "Permission denied (publickey,gssapi-with-mic) without prompting me for my password at all. How can I fix this so I can log in with a password, and NOT a key? I don't want to use a private key for this ri... | The server has setting [CODE] Change it to yes and after a restart you'll be able to use password authentication. | 21 | 41 | 49,168 | 2009-12-30T17:24:14.310 | infrastructure | serverfault.com | |
339,513 | .htaccess file not working | I'm on CentOS 5 with Apache. I'm trying to make this directory get a 403 error and it still continues to show the index of. Here's the .htaccess file. I gave it 644 permissions: [CODE] Thanks! | Chances are the main config for that site doesn't have -/+Indexes allowed in it's [CODE] directive | -1 | 1 | 62 | 2011-12-09T18:36:35.327 | api_errors | serverfault.com | |
27,397 | Jmeter load test: verifying the speed of the service response | I'm doing load test with Jmeter on web application. Recently I noticed that some of the service responses from the application server started taking longer time to arrive to the client (browser). While inspecting the application code I saw that those particular functions, responsible for the service request/response, d... | In most of the time, Reading and Writing from an external resource plus network latency has a negative effect on performance and people love to prevent it, if possible. That is why the most common ways to increase the performance are: To cache data (so you don't need to read the data from external resources like Databa... | 1 | 1 | 142 | 2017-05-22T13:51:30.837 | data_quality | sqa.stackexchange.com | |
192,752 | Blocking two tables | We have a simple postgres database: [CODE] And now I would like to "borrow a book" [CODE] to a user [CODE] . So, I make a transaction: (pseudocode) Let's assume [CODE] isolation level. [CODE] and it doesn't work. Because it allows to borrow a book to blocked user. When? For example if an admin would blocked user [CODE]... | and it doesn't work. Because it allows to borrow a book to blocked user. When? For example if an admin would blocked user u after executing statement (*) On what basis do you say that this doesn't work? If the admin blocked the user 1 billionth of a second after he checked out the book, the end result is that the book ... | 0 | 0 | 61 | 2017-12-09T09:03:29.857 | database_errors | dba.stackexchange.com | |
267,750 | How to avoid tempdb spill | I have several tempdb spills in queries which are currently serving business purposes. I am told by online searching that tempdb spills should never be ignored as they can cause performance problems. It's still a bit unclear to me as to why that is. Since I have also read that SQL Server by itself will request addition... | Ok. You've got the Entity-Attribute-Value (EAV) pattern there, and it's notorious for poor performance. If the tables are not too big, you won't notice. But don't expect blazing fast performance. You should expect TempDb spills, memory grant warnings, locking issues, and poor execution plans. So if you really care abou... | 3 | 3 | 3,603 | 2020-05-23T13:13:38.980 | database_errors | dba.stackexchange.com | |
108,083 | Understanding which variables impact your variable of interest the most (correlation, linear regression) and correctly interpreting results | How do you ascertain which variables lead to the greatest increase in another variable of interest? Let's say you have a correlation matrix. You look at the row of the variable you are particularly curious about, [CODE] , and see that [CODE] is the most correlated with it out of all the variables in the matrix. I would... | Suppose you have data like in this R code: [CODE] If you look at the correlation... [CODE] ... it hints that [CODE] has "highest" impact on [CODE] . You may also expect that [CODE] and [CODE] are negatively related. However, keep in mind that correlation measures linear effects and does not give a good idea of "how str... | 1 | 0 | 117 | 2022-02-11T15:45:07.977 | data_quality | datascience.stackexchange.com | |
1,054,552 | Masking link with a 302 redirect through nginx not working | I'm trying to mask an affiliate link, so I want to have a 302 redirect through nginx I want to redirect all [CODE] links to the respective affiliate link, so all link redirects would be like [CODE] redirects to > [CODE] Right now this is what I have [CODE] I have tried everything and I cannot seem to be able to get it ... | Your rewrite doesn't work because the URL path you are requesting is [CODE] but the [CODE] matches on the exact path [CODE] , which can never be found in [CODE] anyway. Fixing that is trivial and obvious, but for performance reasons you should avoid regex whenever possible. Instead of this sort of [CODE] , use one of t... | 0 | 1 | 1,157 | 2021-02-22T02:31:16.380 | infrastructure | serverfault.com | |
1,004,045 | Problems proxy requests to multiple backends with http2, "connection coalescing", connection reuse in google chrome | We are looking for a way to use http2, one proxy with SSL termination and multiple different backends for different subdomains. I found this explanation of the problem and I am looking for solutions that would work for haproxy. Which would probably work for other proxies as well. [CODE] Is there a way to force our prox... | Not the answer, just a workaround. Has to disable HTTP2 on web server. Then everything works again. Sometime new standard just breaks old things. | 2 | 1 | 686 | 2020-02-21T11:17:51.953 | infrastructure | serverfault.com | |
454,277 | SSD suddenly full | Today the hard drive of our server was suddenly full. The disk usage always stayed around 50 % in the weeks and months before (old data is regularly expunged from the server). I deleted 10 GB of files in /tmp, which strangely freed 51 GB. Here is what I did: [CODE] Any explanation as to why deleting 10 GB in /tmp gave ... | At a guess something had one or more very large files open, but had deleted them so they were no longer visible in the filesystem. This is a common technique for temporary files. It was probably blocking trying to write to those file(s) and failing because of the lack of space, and then when you made some space it was ... | 0 | 2 | 748 | 2012-12-02T09:25:00.357 | database_errors | serverfault.com | |
295,717 | Tables that Link To Many Other Tables (but only one at any time per record) | I am redesigning the application that drives our company phone system. There are various types of features within the phone application, such as menu systems, announcements, time-based routing of calls etc. Those are all currently stored in one table called "features", with an Enum which describes the feature type. How... | Handling Different Types With The Same Relationships For breaking entities with common relationships (and perhaps other properties) but entity specific properties, look into table inheritance. Some DBs have build-in support to help out a little with this pattern, but it is a common pattern you can implement anywhere: [... | 0 | 1 | 75 | 2021-07-15T16:40:05.847 | warehouse_errors | dba.stackexchange.com | |
1,042,664 | Making Exim use different MX servers in a random fashion | When some (large) email providers have more than one MX, it happens sometimes that one MX refuses SMTP connection incoming from my host while another one accepts it (for reasons unknown to me). My question is if it's possible to ensure randomized (or round-robin?) selection of MX in a given domain in Exim on subsequent... | You can use the manual route to bypass the normal DNS routing that looks up MX records. The manualroute router is so-called because it provides a way of manually routing an address according to its domain. It is mainly used when you want to route addresses to remote hosts according to your own rules, bypassing the norm... | 0 | 1 | 232 | 2020-11-15T21:59:40.800 | infrastructure | serverfault.com | |
1,050,293 | New virtual host on apache returns the default vhost, other times returns the normal content | I'm having some really strange behaviour on one of my Debian servers. When requesting stuff.com ( example ) or stuff.com/image.jpg, let's say 50% of the times I have the correct response, the other 50% of times I have an 404, in case of the image, if I'm requesting a normal HTML file I get the default page of apache. I... | The solution, was to simply restart apache. Like I read somewhere here, very rarely the only solution is to restart apache. | 1 | 1 | 761 | 2021-01-18T15:22:13.140 | infrastructure | serverfault.com | |
50,944 | Unbalanced target variable in Orange, how do I balance it? | So I want to perform a predictive model to predict churn. I have 2 datasets, one with churn and the other without (so I can later perform predictions). The issue is that I think my Confusion matrix is kinda bad since my target variable is highly unbalanced: which mostly leads to this confussion matrix: (Similar values ... | For unbalanced classes use the Python Script widget, with imblearn add-on, you will need to code! Link for thread in github | 0 | 1 | 3,104 | 2019-04-25T21:28:20.223 | data_quality | datascience.stackexchange.com | |
112,852 | Catch exception in DB2 function | I want to catch exception in DB2 function and return 0 if there was an exception. I don't know how the right syntax [CODE] | Like @mustaccio pointed out, you need to select into something, and you need to declare the handler before the actual code. Something like: [CODE] should work. I used @ as a statement terminator | -3 | 2 | 6,382 | 2015-09-01T15:00:02.903 | warehouse_errors | dba.stackexchange.com | |
90,031 | Confused about sys.dm_io_virtual_file_stats num_of_reads/writes column | I'm trying to use the sys.dm_io_virtual_file_stats DMF to generate so IO wait information across a number of my servers. I came across this post by Paul Randall: http://www.sqlskills.com/blogs/paul/survey-tempdb-and-transaction-log-io-latencies/ . In it he asked people to respond with the results of this query: [CODE] ... | The latency of of the I/O system (which the average latency per IOPS is an indicator of) tell you if you are adding more load on the I/O system than it can handle. Because of this, the average latency, when compared with the media you are running on provides a good indicator as to whether I/O is the problem or not. As ... | 3 | 4 | 1,692 | 2015-01-23T17:27:50.313 | database_errors | dba.stackexchange.com | |
50,412 | Where does PHP's syslog write error messages in windows? | I'm currently running a drupal site on windows using WAMP. From reading the API docs, I think that drupal uses PHP's syslog function to log status messages. I was wondering if there was a way to configure the event viewer to show the log messages generated by PHP's syslog function. | probably event viewer? | 2 | 0 | 3,619 | 2009-08-05T15:18:29.517 | infrastructure | serverfault.com | |
380,632 | awstats mail log analyser | i have configured mail log analyser(awstats) on my mail server,but i am not getting reports of users who send or receive mail from my mail server,i want a cron job to automaticaly update the mail logs when a user send or receive mail,what can i do to achieve this. My mail server configuration is as following:- centOs 5... | The awstats documentation was plenty detailed for me. In short: post-process the log files with the provided postfix-specific (!) script, then load up as usual, optionally excluding or tuning certain output tables and graphs. | -2 | 1 | 233 | 2012-04-18T12:26:19.387 | infrastructure | serverfault.com | |
77,119 | What is the best way to do offline failover of a desktop based client that uses a web service? | I have three incoming projects that share a common problem: they need to have the logic on a web system and they need a local application (e.g. point of sale) that communicates with such system through a RESTful web service. My Solution The solution I managed to come up with is to implement in the desktop application m... | I know your question is java, but I really like this message bus style architecture for this type of thing. Basically when messages are sent they get potentially two responses. The first is from the local cache, the second comes from the server once it gets connected. I'm pretty sure you could adapt this architecture (... | 13 | 3 | 2,554 | 2011-05-18T05:10:07.073 | pipeline_ops | softwareengineering.stackexchange.com | |
98,463 | Delaying when connecting to server through telnet | Here we have multiple servers which are running on different Operating systems, some are running on windows server 2003, red hat linux 4.0 and oracle unbreakable linux 4. when we connect from client machine (which is running on windows XP) to servers running on linux using telnet it delays the connection for about 30 s... | Could this be a DNS issue? Is there a reverse DNS record for the client machine? Servers commonly need to resolve the hostname of the connecting client machine to see if they're allowed to connect, as well as to log. Since the DNS lookup is synchronous, everything else will wait until the hostname is resolved, or it fa... | 0 | 3 | 1,490 | 2009-12-31T09:42:41.290 | database_errors | serverfault.com | |
1,065,591 | Not able to place a lien on a project | I am trying to set the VPC sharing for my organization. To start with I am trying to create a lien on central project. Even though I am the oranizational admin, I am not able to set restrict lein project removal on my organizational policy. Here is my command and error that is thrown [CODE] I did a gcloud init and also... | A user with the orgpolicy.policyAdmin role can define an organization-level policy constraint (constraints/ compute.restrictXpnProjectLienRemoval ) that limits the removal of liens to just the following roles: Users with roles/owner or roles/resourcemanager.lienModifier at the organization level User with custom roles ... | 0 | 0 | 417 | 2021-06-03T14:48:37.737 | infrastructure | serverfault.com | |
38,175 | Code coverage in react webapp | I'm a little bit stuck with a task that I have been researching. It's about code coverage in a react webapp. I implemented a few unit tests using jest + enzyme. also some functional test, using cucumber to get gherkin features and puppeteer for browser automation. I have able to get the coverage from the code built by ... | has sense, mesure the code coverage on unit tests and functional tests? If you want to get 100% coverage it probably makes sense to measure a combination of unit, integration and functional end2end tests. Because some parts of integration are hard to test without a deployed version. I do like to advocate for the least ... | 1 | 0 | 167 | 2019-03-10T21:18:18.250 | pipeline_ops | sqa.stackexchange.com | |
361,092 | Chinese characters in CentOS are garbled | I have a CentOS 5.6 on Linode VPS, and a nginx, mysql, php installed. But when I transfer my old data from my old server, which I have no shell, to this new server, all the Chinese characters are garbled, hence pictures that have chinese names become 404. I tried to change [CODE] to below: [CODE] And I also installed s... | Have you installed Chineses Langauage support? [CODE] | 3 | 3 | 1,141 | 2012-02-17T05:32:46.593 | database_errors | serverfault.com | |
357,395 | Is it better to have separate projects for Frontend and backend? | I am running an ecommerce website built in Java using Spring and Hibernate. If I have to briefly describe current architecture then it is like this: I am having two projects by name - store front and admin Storefront project holds DAO, model, service, controller and views for showing the storefront view of website and ... | Code duplication is definitely a tell that you have some re-usable components that haven't been factored out yet. It sounds to me like you have a situation something like the following at present: If you're seeing a lot of duplicated code, you might try something more like the following: You can then build a web servic... | 2 | 3 | 1,255 | 2017-09-14T16:31:46.550 | api_errors | softwareengineering.stackexchange.com | |
87,428 | Can squid http proxy dump all client/server headers? | Can squid dump the client and server HTTP headers? There are some complicated web flows from machines we don't control, but which passes through our proxy, that we'd like to debug. | Google suggests that you want the [CODE] directive. | 3 | 3 | 5,006 | 2009-11-23T18:29:47.737 | infrastructure | serverfault.com | |
313,844 | PolyBase :: How to setup EXTERNAL DATA SOURCE through ODBC? | Microsoft states that: [...You can also use the generic ODBC connector to connect to additional providers using third-party ODBC drivers.] The reality is much far away form that. I've been trying to follow several guides about how to query DB2 from PolyBase. I know this should be possible. I've also find guides about h... | When you create the linked server, it uses OLE DB which seems to work with DB2, but Polybase can't use it only ODBCs. Have you enabled polybase? I guess yes. [CODE] Why are you using ALTER instead of CREATE? The master key encryption and database scoped credential exist before? I've only used CREATE for both. I have so... | 2 | 1 | 1,375 | 2022-06-28T10:59:14.100 | spark_errors | dba.stackexchange.com | |
274,857 | How to use node.js as a production web server? | I'm currently developing a project using node, and as I'm approaching the launch, I'm struggling to find resources on how to setup node for use on a commercial, production server. Most resources I have seen have consisted of contrived, simple examples without taking into account scalability and fault tolerance. So, my ... | Check out this link: http://cuppster.com/2011/05/12/diy-node-js-server-on-amazon-ec2 For load balancing and static content delivering i would use nginx. | 46 | 26 | 25,927 | 2011-05-28T15:58:12.300 | infrastructure | serverfault.com | |
93,891 | Found input variables with inconsistent numbers of samples: [11232, 5616] | I don't know what is the reason for the error please guide me and help me out. I am at a learning stage. | It seems like the train and train_w2v dataframes have s variable number of rows. You will have to make their shapes consistent before doing a train-test-split | 1 | 0 | 1,112 | 2021-05-03T06:02:05.240 | data_quality | datascience.stackexchange.com | |
146,605 | Understanding this error: apr_socket_recv: Connection reset by peer (104) | So, if I do some benchmarking with apache benchmark (ab), and I use large numbers of requests. Then sometimes in the middle of a test I get this error. I don't even know what it means. So how can I fix it? Or is it just something that will happen if the server gets too many hits anyway? The problem is, if I run 10,000 ... | The error means that the other end (webserver) suddenly disconnected in the middle of the session. have a look at the apache or nginx error logs to see if there is anything suspicious there. | 18 | 9 | 40,406 | 2010-05-30T00:59:36.550 | infrastructure | serverfault.com | |
425,418 | Command line import of database using latin1 encoding | I'm using a particular cloud hosting solution (one which i won't name) and they don't provide ssh access so i'm at a whim on how the database is dumped. I downloaded the dump which is packed into a tar.gz file. I discover that this file utilizes latin1 encoding. Which i don't get to specify the encoding for the host i'... | Figured it out when i installed mysql workbench [CODE] | 1 | 0 | 5,035 | 2012-09-07T18:55:28.860 | infrastructure | serverfault.com | |
742,916 | Linux user to access and execute only on one location | I am trying to figure out a solution for this: I have some user which I created using command useradd. I want to allow this user do whatever he wants on a special location, say /var/www/. He might require to upload or download a file, extract a zipped folder, list the files and folders, change permissions etc. He shoul... | Users created with [CODE] do not have sudo access by default, and cannot install packages, add users etc... Only root can do that (via sudo or directly from a shell or script). Give the user theuser a home dir, (several ways to do that, use a command for instance [look near the bottom]). And set accesses Eg in [CODE] (... | 3 | 0 | 599 | 2015-12-14T15:01:21.007 | infrastructure | serverfault.com | |
190,153 | MySQL create table: error 1005 errno: 150 "Foreign key constraint is incorrectly formed" | This fails when trying to create the EXCHANGE table: [CODE] The last create statement returns: [CODE] | At times the best way to overcome an error within your InnoDB table is to check the InnoDB table status by using this command. SHOW ENGINE INNODB STATUS; This will enlighten you on what you are doing wrong. | 4 | 14 | 61,479 | 2017-11-05T15:34:57.540 | database_errors | dba.stackexchange.com | |
271,092 | Why is index not being used? Can I replicate plan? | I have been tuning a query/ indexes in a dev environment, but cannot replicate the new query plan when applying the same changes to a UAT environment. Specifically, in the UAT environment the optimizer chooses to ignore a particular index and instead performs a nonclustered index seek on an existing unique constraint, ... | This was totally a workaround, but it worked for me. I had 4 servers running the same database with different data sets. Three of them would chose an optimal plan, but the fourth would never choose that plan, and was consistently taking significantly longer. In my case I could see the good plans seeking one of the tabl... | 1 | 2 | 386 | 2020-07-16T18:28:37.123 | data_quality | dba.stackexchange.com | |
859,303 | IP white list for docker containers with iptables and ipset | I want to restrict access to docker container ports just from specified IPs. I set up iptables rules with ipset. I have exposed the port 8888. The requests from port 8888 are forwarded to simple docker web server. I defined ipset with white list IP addresses. [CODE] Then I created iptables rules. New chain with name [C... | You can access your 8888 port because your docker container is running on localhost and the FORWARD isn't blocking it. Please use -i option to specify lo interface. | 0 | 0 | 1,326 | 2017-07-04T13:41:10.250 | pipeline_ops | serverfault.com | |
293,695 | Corrupt Linux sda3 var drive - need some files | It's 3 a.m., and my hosting company says a 'networking issue' occurred and, in summary, they can replace the hard drive that has developed a 'fault', but they will not assist me in recovering my data off it. I need to access and download the contents of a single folder from a (CentOS) sda3 drive, one I missed in my bac... | You won't be able to fsck [CODE] directly. From your example, [CODE] doesn't have a filesystem on it, it has an LVM "physical volume": [CODE] This physical volume most likely has (at least) one "volume group", which can in turn have multiple "logical volumes": [CODE] These logical volumes are where the filesystems live... | 2 | 2 | 1,807 | 2011-07-25T02:15:07.673 | database_errors | serverfault.com | |
213,763 | How to code review without offending other developers | I work on a team that does frequent code reviews. But it seems like more of a formality than anything. No one really points out problems in the code for fear of offending other developers. The few times I've tried to ask for changes were met with very defensive and reluctant attitudes. This is of course not good. Not o... | This seems to be a pretty common prevailing attitude among some developers. Everyone seems to feel that a code review is some challenge to their work, and that makes no sense to me. A code review is a quality assurance mechanism that has the added bonus of education to go along with it. We implement code reviews extens... | 38 | 64 | 5,882 | 2013-10-07T14:26:13.640 | api_errors | softwareengineering.stackexchange.com | |
296,844 | Why is Windows 7 booting up with Mapped drives showing as disconnected? | We've got numerous Windows 7 machines that will show a mapped network drive as disconnected on boot up. Seems to be all versions of Windows 7 as well. In the "My Computer" windows the mapped drive is visible, but with a RED X on it. If you double click on it, the red X goes away and displays the contents of that share.... | This is a common issue with Windows 7, the best solution I've been able to find is to run a batch file that remaps the drive upon logging in. [CODE] | 7 | 4 | 12,526 | 2011-08-02T20:56:05.893 | infrastructure | serverfault.com | |
299,281 | Why HTML5 got rid of Rich Desktop applications? | I recently noticed that Rich desktop applications (I define it as an application running inside a virtual machine embded in a web browser, based on tools like Java Web Start, Adobe Flash or Unity web player) seems to become more and more rare. I only see some when I play some plain old flash video games online. They ar... | I think you answered your own question partly. People are designing applications for browsers and mobile devices. In order to target both, and share code, using HTML5/JS is a very quick approach. Technologically speaking, I see important advantages to RDA, especially the possibility to download the application once and... | 0 | 7 | 753 | 2015-10-07T17:22:51.830 | api_errors | softwareengineering.stackexchange.com | |
425,788 | Initializing instance variables from json file | I have a class whose instance variables should be initialized from a file ('settings.json'). That file does not always exist or is sometimes not filled with useful values, so I have to check for that first. I am now wondering what the best practice would be, I currently see two options but I am open to better ones. Che... | To keep your [CODE] clean and tidy, let them do one thing: represent [CODE] . What you should do is: provide sane defaults. What you could do is: accepting a dictionary with custom settings. [CODE] If you feel fancy, you could add a [CODE] doing the loading of a json file: [CODE] The point is: You separate the behaviou... | -1 | 1 | 1,860 | 2021-04-26T12:59:16.347 | api_errors | softwareengineering.stackexchange.com | |
563,989 | IBM Domino url redirect rule processed by closely matching substitution rule | We have moved a lot of pages on our Domino based web site. Using internet sites, we have added 301 redirect rules for the old urls so that the various bots will stop indexing the pages and not ding the site in search results because we didn't handle the move (404 not found is not great for SEO). But Domino processes su... | Also not a direct answer on your question there may be a workaround. Starting with Domino 9 on Windows, the product ships with IBM HTTP server (IHS) as an install option. IHS is just an IBM fork of Apache. In your case you can use Apache filter rules and mod_rewrite to create more powerful rules. Good thing worth menti... | 2 | 2 | 1,240 | 2013-12-29T01:32:14.013 | infrastructure | serverfault.com | |
319,810 | MS SQL Server : How to get query history along with SQL id and the user who triggered the query | I know this is a duplicate one. But i did not find a solution for my requirement in this forum. Is there a way to identify the list of completed queries that were triggered along with its SQL ID and user details in SQL server for a particular day. Expected Output: SQL_ID, Query_Start_Time, Query_End_Time, Query_Execute... | You can accomplish this two ways: Setup an Audit Auditing an instance of the SQL Server Database Engine or an individual database involves tracking and logging events that occur on the Database Engine. SQL Server audit lets you create server audits, which can contain server audit specifications for server level events,... | -2 | 1 | 358 | 2022-11-17T00:43:19.063 | data_quality | dba.stackexchange.com | |
442,096 | Gluster bricks are offline and errors in logs | I have substituted all the IP addresses with hostnames and renamed configs (IP to hostname) in /var/lib/glusterd by my shell script. After that I restarted Gluster Daemon and the volume. Then I checked if all the peers are connected: [CODE] I could see mounted volumes size change on all the nodes when I execute [CODE] ... | I have resolved the issue with the help of JoeJulian from Freenode#Gluster. When I examined process list, there were some processes using old configuration: [CODE] . After executing this command: [CODE] Situation is resolved - all bricks are online: [CODE] | 4 | 1 | 14,622 | 2012-10-25T03:36:59.493 | infrastructure | serverfault.com | |
375,037 | Cisco ASA - routing traffic between multiple site-to-site tunnels | We have a Cisco ASA providing multiple site tunnels to our clients. Most of our employees use standard VPN client connections to the ASA. However, we also want to allow employees who have a static connection or multiple PCs to use a site tunnel. How can we allow traffic from Employee1thruX Cisco ASA All Customer Tunnel... | Something along these lines - [CODE] seems a bit smallish; if you need to, then make an object-group for them too. [CODE] And if you have any NAT whatsoever going on, which you probably do since you're using RFC1918 ranges, you need NAT exemptions all around, matching all the traffic in your crypto ACLs. [CODE] Of cour... | 1 | 1 | 6,151 | 2012-03-29T20:25:27.123 | infrastructure | serverfault.com | |
65,967 | How can I use time stamps for classification? | My data consists of entries when an event is [CODE] , namely, when a train crossing is down. So I will have entries within a day like so (just examples): [CODE] [CODE] The state is of course [CODE] for these entries, and the times not logged throughout a day are when the state is [CODE] , aka traversable. (however I ha... | Not knowing your data in detail, my intuition is that you could go for dummy (one hot) encoding. You could split each day in (say) 10 min. intervals $x$ (144 columns) and attach labels (up/down) $y$ . Each time interval $x$ would be one dummy encoded column (true/false). The model would be a binary classification (logi... | 3 | 1 | 165 | 2020-01-06T14:46:47.663 | data_quality | datascience.stackexchange.com | |
366,935 | Installing hamachi v1 on centos 6 64 bits | I'm running into some issues trying to install hamachi v1 on a centos 6 64 bits server. I know that version is pretty old, but I need it to connect to a windows server which I don't have control on and only has hamachi v1 installed on it, and since it seems that the v1 and v2 networks are incompatible, I don't have muc... | You can download and install the beta for hamachi v2 from here: https://secure.logmein.com/welcome/labs/ The 64 bits rpm package runs pretty well on centos 6, and I just tested it and seems to connect to v1 clients without problems. | 0 | 0 | 3,365 | 2012-03-06T18:11:42.867 | infrastructure | serverfault.com | |
277,830 | Permission Inheritance Problems on Shared Folders - Windows Server 2003 | I'm having a problem with file and folder permissions not inheriting. I've set the permissions on the main folder but the permissions are not inheriting down to the sub-folders and files. Even if I set full control permissions directly for a user, that user is still unable to write to that directory or modify the files... | To propagate folder permissions down a structure, you must use the Advanced dialog. When viewing the permissions tab of the advanced dialog, edit the access control entry (ACE) that you wish to have propagate down the hierarchy; ensure that "Apply onto:" is set to "This folder, subfolder and files" . Afterwards, tick t... | 0 | 2 | 23,037 | 2011-06-07T13:20:48.087 | infrastructure | serverfault.com | |
148,535 | mail takes too much time to send emails, why? | I'm sending emails by PHP method [CODE] and every time it takes 20-40 seconds to produce a result. Looks like my server ( [CODE] ) is configured to synchronous sending of emails. That's why the PHP script has to wait.. How can I fix it? Thanks! | Sendmail does not do synchronous sending of emails. The most common problem is delays in doing DNS lookups. It may also be delays in doing verification of some of the data you are supplying. Sendmail is likely verifying: the address provided in the HELO message, the email address the mail is supposed to be coming from,... | 0 | 1 | 1,396 | 2010-06-05T18:24:55.840 | infrastructure | serverfault.com | |
213,663 | C# Design for SQL connection and commands | Currently I'm working on system that works with database, and I would like to have it done elegant way. So I have abstracted DBConnection into one class, DBCommands into another class. (DBCommands : DBConnection) There is also a class SQLUsage in which I'm creating new thread that works in a loop, it checks all the tim... | I don't see a really answerable question in there anywhere, but I can at least address some general concerns here. Over the years I've noticed a few common mistakes in this area. I'll list them below, in hopes of helping you avoid them: Re-using the same SqlConnection object. It's counter-intuitive, but .Net is designe... | 0 | 7 | 2,534 | 2013-10-07T12:38:29.867 | database_errors | softwareengineering.stackexchange.com | |
1,101,269 | Can't connect ssh via wireless interface but t works using eth0 | Suddenly I can't connect via [CODE] to a server using my wireless interface but I can do it using the eth0 interface with a cable connected directly to my router. From my wireless interface I got: [CODE] and the [CODE] is: [CODE] From my eth interface: [CODE] and the [CODE] is: [CODE] My working interface is enp0s31f6 ... | I had the same [CODE] trace that you mention and turns out that, for my specific case, I solved it with this answer , which was related to how my router managed the QoS of the WiFi. Simply by adding the [CODE] I was finally able to connect: [CODE] By adding this into the top of my [CODE] file I got if fixed for every [... | 1 | 9 | 10,793 | 2022-05-18T20:12:12.713 | infrastructure | serverfault.com | |
257,444 | What do I need to know to get VNC working? | I usually access remote machines over ssh via the commandline, but now need to connect to one using VNC so I can actually use the desktop. Other people can successfully connect to this PC (running Win 2000 or XP, I think) using Chicken of the VNC on their Macs, but I'm not having any luck setting up a connection on my ... | It might be that you have a firewall with outbound restrictions - I would check to see if the VNC ports are allowed out. Yout can also use telnet to see if a basic connection can be made e.g. run the command [CODE] | 0 | 0 | 308 | 2011-04-08T16:54:50.090 | infrastructure | serverfault.com | |
310,052 | "The slave is lagging behind"-mystery | I have a testing scenario with one dedicated server (6 vCore x 3.6 GHz AMD Ryzen 5 Pro 3600, RAM: 32 GB, HDD: 2 x 1000 GB Software RAID 1 if that matters) and a [CODE] ( [CODE] ) replication setup with 1 master and 2 replicas on the same machine, just to see how it works. For a production setup this does not make too m... | (I may be one of the few old-timers around who has used MyISAM with replication.) "not use the InnoDB" -- Ouch! Especially for such large tables. Testing on single server -- Fine. But I suggest encapsulating them in some form of VM, such as Docker, so you can closer simulate the ultimate configuration, which will proba... | 0 | 0 | 134 | 2022-03-23T00:01:45.453 | database_errors | dba.stackexchange.com | |
843,908 | Gateway Timeout Error with Nginx reverse proxy to Apache on the same server | I'm working with Ubuntu 16.04 ang Nginx running Port 80 and 443. I use Proxy_Pass to forward traffic to Apache listening on Port 8080. Both Nginx and Apache are on the same server. Problem is that Nginx can't seem to forward traffic to Apache. I'm getting 504 Gateway Timeout Error. I can confirm that Apache is running ... | if you're trying to connect to apache on 127.0.0.1:8080, you need to make sure that apache is listening on specifically IPv4, as you're trying to connect to it using IPv4. If you want to use IPv6, then specify the IPv6 address on your reverse proxy. | 0 | 0 | 971 | 2017-04-11T14:34:26.850 | infrastructure | serverfault.com | |
254,130 | Windows firewall advanced security & mail | How do you allow Windows Mail through Windows firewall with advanced security? I have included in exception lists, both in and out, winmail.exe and ports 25 and 110. But Windows Mail still only works if I allow all outbound traffic. | It's not the email client that dictates which ports on the email server are used for client connections, it's the email server. Which ports does your email provider use for incoming client connections for POP, IMAP, and SMTP? Those are the ports you need to allow outbound in the Windows firewall. | 0 | 1 | 192 | 2011-03-31T13:40:56.417 | infrastructure | serverfault.com | |
125,187 | Oracle connection through visual studio | I installed oracle client 11.2.0 version in my machine and also installed Oracle data access providers for visual studio.I also installed Oracle Data Access 11.2.0.3.20. I am trying to connect to the database through the visual studio i am getting the below exception [CODE] The tnsnames.ora file contains the folloing c... | Just alter [CODE] to [CODE] : [CODE] | 1 | 1 | 1,219 | 2016-01-04T21:37:03.680 | database_errors | dba.stackexchange.com | |
917,042 | SFTP client can't write to own home directory when chrooted there | This is a tougher variant of the previous question bad ownership or modes for chroot directory component . In that other question, we learn that openssh refuses to chroot a user to its own home directory, if that home directory has the normal permissions. Instead you have to make root the owner of the user's home direc... | I found several working solutions to this problem, most of which were only usable because of my willingness to throw away the server after I got this one upload. But there's one that I think is pretty reasonable. Ugliest solution first: Bad idea #1 - Forget the chroot and [CODE] . Openssh only checks for sane permissio... | 2 | 2 | 3,352 | 2018-06-18T00:12:53.600 | infrastructure | serverfault.com | |
266,168 | Transfer data from MS SQL to PostgreSQL with SSIS ODBC destination | I try to sync data from MS SQL to postgres with SSIS. I configure ODBC destination using psqlodbc_12_01 driver downloaded from here My SSIS package has a single data flow task which just gets data from a single MS SQL table and transfer it to Postgres. Here is MS SQL table [CODE] And this the PostgreSQl table [CODE] );... | Isn't this a case for a tools rethink ? How about BCP from SQL Server to write out a csv text file & Bulk Load on the PostgresSQL side to do the load ? | 0 | 0 | 1,578 | 2020-04-30T10:06:31.203 | database_errors | dba.stackexchange.com | |
164,492 | iis7.5 and classic application pool | I have windows 2008 - 64 bit and IIS7.5 , I can't use web sites under Classic Application pool. if I set Classic application pool, site shows error 404.17 , and try to use static handler for it's content. If I use integrated application pool then some of my sites that use custom http module in their web.config dont wor... | if I set Enable 32-bit ... to true , classic application pool works | 1 | 0 | 701 | 2010-07-27T15:16:50.083 | infrastructure | serverfault.com | |
117,400 | Shapley Values - How to interpret each value for each feature for a specific instance? | I am using Shap Values(the 'shap' module in python) to help me understand a bit better the relation between my features and my target. I am currently working on a binary classification problem. I know that the base line value can be calculated considering the proportion of negative(or positive class) in my training dat... | Depending on the explainer and whether [CODE] , you may be able to get the values in probability space directly with the option [CODE] . It can take a lot of "evidence" in (log-odds space) to make a small step in probability space (see explanation here ), so you can not directly make your statement. (And it will depend... | 0 | 1 | 655 | 2022-12-29T23:15:13.970 | data_quality | datascience.stackexchange.com | |
208,396 | Ruby: Multithreading a CSV with output | I have a script written in Ruby that has maxed out a core in my server's Xeon processor for the last 2 hours. Since it's currently only using 1 of four possible cores, I want to try and rewrite the script to take advantage of all four cores. I can use the .each_slice(n) method on the array that contains my data, but I'... | You didn't mention if it matters what order the output is in. If it really doesn't matter I'd use a single-threaded Queue to receive messages from multiple reader/processor threads. Then another thread could be in charge of reading from the Queue and writing to the output file. If order matters then your #2 seems a goo... | 1 | 2 | 2,383 | 2013-08-15T20:29:15.043 | api_errors | softwareengineering.stackexchange.com | |
191,775 | How to perform backup on quite active 500G+ MariaDB Galera Cluster? | what would be your preferred method to perform backup on quite active 500G+ MariaDB Galera Cluster? Using mariabackup/innobackupex (fork of Percona Xtrabackup) with throttle. You must think about FLUSH TABLES WITH READ LOCK which can cause problems to whole cluster if lock lasts to long. When using Percona XtraDB Clust... | Plan A: Using just the nodes of the cluster: take a node out of the cluster: [CODE] (See wsrep_desync and wsrep_on .) back it up via Xtrabackup (or whatever). add it back to cluster: [CODE] eventually IST will get that node in sync with the others. Cons: You lose a node for some time -- steps 2 and 4 are time consuming... | 3 | 3 | 3,569 | 2017-11-27T09:41:00.090 | database_errors | dba.stackexchange.com | |
5,601 | How to classify whether text answer is relevant to an initial text question | I have a text classification problem in which i need to classify an answer to a message as either relevant or not. In the first phase of my calculations, I have already used a SVM to determine if the original message was relevant or not, deciding whether a message contains a hint or question if somebody's twitter accou... | Both message and answer are your input, so your feature vector should contain information about both. Here's a simple structure of a possible solution using scikit-learn: [CODE] Now, the hardest part is to decide which features to extract from both messages and answers. It's up to you. One of the simplest solutions wou... | 1 | 2 | 1,418 | 2015-04-24T07:50:31.950 | data_quality | datascience.stackexchange.com | |
392,790 | Best way to prevent duplicate payment of order in multi user environment? | I have an application in which users can create an order and payonline using stripe.js When the order is created it's status is set to unpaid. The user then has the option to review the order on a checkout page and make a payment on a payment page which has the form for them to enter their card details. I use the order... | This is exactly the sort of thing transactions are for. User see an order in one tab. Gets distracted by email. Opens new tab. Sees order again. Pays for it. Closes some tabs. Sees the old tab with the order unpaid. Tries to pay for it again. See's error indicating that they've already paid. Multiple users. Multiple ta... | 0 | 2 | 1,465 | 2019-06-03T11:02:44.250 | data_quality | softwareengineering.stackexchange.com | |
555,846 | Domain.com vs domain.local issue in Windows server 2008r2 | We are using domain.com instead of domain.local for our domain name on the Windows Server 2008r2 box. We are hosting email the website to domain.com offsite and now... we cannot connect to the server internally. Emails appear to be coming in for now, but the website will not load. Shouldn't we be using domain.local ins... | Don't act panicky to begin with. Even though it certainly is not the most convenient setup (it's a royal pain to be frank), using your registered domain internally as well as externally is certainly possible. Though like most admins I wouldn't recommend it. First thing would be to check if it's just a connectivity thin... | 0 | 1 | 1,663 | 2013-11-18T22:01:13.587 | infrastructure | serverfault.com | |
531,155 | I'd like all files created in a specific directory to automatically get 755 permissions, is that possible? | The relevant folder is over-written every couple of days but I want it's content to retain the 755 permissions. I've tried [CODE] but to no avail. Is that even possible? | You can't do that with the posix permissions model; there is simply no provision for it. A related provision (setuid and setgid on directories) allows ownership to be inherited to one level, but not permissions. You should consider using ACLs if you need this functionality, as those can be made to be inherited (at file... | 1 | 2 | 621 | 2013-08-15T07:33:10.350 | infrastructure | serverfault.com | |
388,131 | Amazon S3 - Automated Backup Using S3Sync, Windows Schedule & BAT file | I am trying to build an automated background backup program to backup my entire website and its heavy photo folders, using Amazon's cloud storage service, S3. I am using S3Sync from S3Tools and have successfully tested a dummy backup using only the command line window. When I save the working command line to a batch fi... | You can set the directory from the .bat file: (in your case) cd "C:\home\p\h\photos\private\s3sync\" prior to calling the S3Sync.exe. That should get you to that path, given its on the same drive. If the file is on a different drive, issuing the C:\ (or whichever drive you'd like to navigate to) before calling the appl... | 0 | 2 | 2,241 | 2012-05-11T04:12:07.663 | database_errors | serverfault.com | |
192,436 | Cannot connect to Aurora RDS using workbench over ssh | I set up an environment on AWS that consists of a VPC with a private and public subnet following the instructions for Magento Quick Start: http://docs.aws.amazon.com/quickstart/latest/magento/architecture.html The private subnet includes: an EC2 instance (web server) an Aurora RDS that connects to the web server The pu... | This took me forever.... Other than the permissions in the security groups that i set initially, i had to allow port forward on the bastion instance. connect to the bastion instance via SSH go to /etc/ssh sudo nano sshd_config Set: AllowPortForwarding yes restart the instance Connect with workbench | 0 | 0 | 1,117 | 2017-12-05T15:33:58.937 | database_errors | dba.stackexchange.com | |
757,373 | Chef recipe not working | I am working on chef and vagrant. I am trying to configure nginx with php-fpm and spin-up new server using chef-solo. Here is the configuration of my vagrant file. [CODE] When I run vagrant up everything runs perfect but nginx do not install and in stacktrace of vagrant instance I get below exceptions. [CODE] While ngi... | If you've made the dependency known in your cookbook's metadata.rb, the next step chef-solo will take is to look for a cookbook named [CODE] . This means the cookbook must be downloaded/supplied to the running vagrant box in some manner. You may want to explore using Berkshelf on your host machine with cookbook retriev... | 1 | 0 | 214 | 2016-02-15T20:06:53.090 | pipeline_ops | serverfault.com | |
299,301 | "Disk Not Found" Error when trying to install iso image of CentOs on ESXI using VSphere | When trying to install CentOs setup as an iso image on datastore, i get an error : "Disk Not Found". I am using ESXi 4.1 as host VM. Is there a way to attach DVD/CD as iso image ? I tried "Connect at Power on" Checked and Connect CD/DVD on the VSphere Console, but i still am unable ot get the iso image recognized as a ... | Solved: if i look at the image size, it was 11 MB, so it WAS a boot iso, but nithing else, if we compare it with other boot images with complete iso's therein lies the solution. This boot.iso was from rBUILD/Conary packaging | 1 | 1 | 2,895 | 2011-08-09T16:39:34.480 | infrastructure | serverfault.com | |
431,028 | Confused about inheritance and correct usage. Should I avoid using members in base class? | I am using C++ , but as far as I understand most OO principles are cross language. In most of the articles that I have read and liked about inheritance the advice are about : not to use it for the purpose of code reuse. inherit interface not implementations. use "interfaces" (pure abstract class ) as base class. prefer... | There are more than one road to Rome. It is always a question of evolution and balance. The quoted wording does not prohibit base classes with data members. It just recommends not to overuse inheritance and keep interface as simple as possible: Abstract classes that are empty (have no non-static member data) are more l... | 2 | 1 | 1,461 | 2021-08-13T12:51:58.890 | api_errors | softwareengineering.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.