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 |
|---|---|---|---|---|---|---|---|---|---|---|
268,922 | Got error while creating database in postgres | I want to create user and database in linux server. I am able to create user with the following code: [CODE] but when I tried to create database with code : [CODE] I get following error: [CODE] I am new to linux so I am unable to figure out why I was able to create user but while creating database there is connection e... | You need to learn more about HBA configuration. There are some basic authentication methods: trust - every users can connect to database(s) specified at second column where all means just all databases in cluster (yeah, excluding template0, because datallowconn in pg_database system catalog is set to false.. nevermind)... | 0 | 1 | 742 | 2011-05-12T08:51:26.167 | api_errors | serverfault.com | |
1,463 | How to instantiate a .NET FirefoxDriver when FF is installed in non-default location? | My Firefox 5 is installed not at the default location. So, I tried with the following to create a [CODE] : [CODE] But the [CODE] instantiation throws an exception, stating that: " The system cannot find the file specified ". But my firefox.exe is there. Also, I added it to my [CODE] . I saw some suggestion to use webdr... | Try [CODE] You don't need to declare the binary. It works for me and I'm using FireFox 9 on Windows 7 | 3 | 1 | 4,658 | 2011-07-20T03:40:25.220 | data_quality | sqa.stackexchange.com | |
393,917 | Classes with lots of injected dependencies | I'm often finding that my classes end up with many (10-15) dependencies being injected. I realise there is no hard and fast rule, but someone once told me that more than 4 or 5 can be a code smell. The classes themselves typically aren't that large, at least in my opinion (1000-1500 lines). Such classes aren't your typ... | However registering ClassB with my DI framework doesn't feel right, as it will only ever be referenced by ClassA. That is fine. In fact it's typical. Code reuse is something you aspire to do. Not something you insist on achieving every time you create a class. What you need is to do is focus the interfaces of what you ... | 1 | 4 | 165 | 2019-06-27T14:07:20.067 | api_errors | softwareengineering.stackexchange.com | |
270,221 | Exim authentication using Dovecot driver | Been following the instructions at the Dovecot Wiki for setting up Exim to share authentication credentials with Dovecot. I have setup Dovecot to deliver mails for virtual users and setup a router and transport within exim to deliver to these v-user's Maildirs. I cannot seem to get the configuration detailed below to w... | The SASL authenticators are only included in [CODE] , including the Dovecot SASL authenticator. More information on that here . | 5 | 6 | 6,035 | 2011-05-16T15:39:00.957 | api_errors | serverfault.com | |
275,389 | Database Shrink, Backup, then Restore | I understand all the reason why it's not advisable to shrink I only preface this to avoid falling into that conversation.. so, I have 1.4tb database.. about 700gb is free. This is due to the fact that people have been really irresponsibly making duplicate copies of the data and never cleaning up. In other words, this i... | The restored database will have the same file size as it had when the backup was produced. I sometimes call the files "containers". Same number of containers, and same size. They don't have to be at the same location, though (the MOVE option of the RESTORE command). I don't know what "initial" you refer to above, but w... | 1 | 1 | 726 | 2020-09-11T16:17:54.400 | database_errors | dba.stackexchange.com | |
16,410 | How to understand and resolve Jenkin job failure - Angular 13 app? | I'm new to Jenkins environment. I was asked to upgrade Angular 7.x app which was built 3 to 5 yrs back into Angular 13 . Upgrading the Angular app is done. now I want to deploy my UI changes through JENKINs. But my build getting failed. its been 4 days I'm trying to resolve the issues but couldn't make it, Could someon... | Part one is a failure to install node-gyp . The error is a connection timeout to some ipaddress: [CODE] The second error is because chrome is not installed on the Jenkins Agents where you are running the build. [CODE] Neither of these are really "Jenkins" issues. | 0 | 0 | 1,111 | 2022-08-09T09:05:38.567 | pipeline_ops | devops.stackexchange.com | |
1,145,596 | TCP connection not arriving at process depending on source interface | I have a strange case where a TCP connection seems to not arrive on the listening socket, depending on the source interface. The context: I'm trying to configure the Zabbix agent on a specific host (AGENTIP). This involves the Zabbix server (SERVERIP) connecting to AGENTIP:10050 (tcp). The tcp connection seems to work ... | The problem has been resolved by rebooting the server during a downtime window. | 1 | 1 | 78 | 2023-10-10T13:19:40.100 | infrastructure | serverfault.com | |
777,299 | Proper way to deal with corrupt XFS filesystems | I recently had an XFS filesystem become corrupt due to a powerfail. (CentOS 7 system). The system wouldn't boot properly. I booted from a rescue cd and tried [CODE] , it told me to mount the partition to deal with the log. I mounted the partition, and did an [CODE] to verify that yes, it appears to be there. I unmounte... | If you're attempting to run xfs_repair , getting the error message that suggests mounting the filesystem to replay the log, and after mounting still receiving the same error message, you may need to perform a forced repair (using the [CODE] flag with [CODE] ). This option should be a last resort. For example, I'll use ... | 28 | 29 | 115,241 | 2016-05-17T15:32:15.343 | data_quality | serverfault.com | |
288,318 | Apache fails to serve request or pauses for extended period of time | At seeming random intervals, my page requests will timeout. It happens the most to me when I am working on either a Drupal 7 project or a CodeIgniter project. Chrome gives me the error [CODE] and suggests that I refresh the page (very helpful!). I am using SSL on the CI project but I believe I have pretty well ruled ou... | If there's nothing in your log files, and you've got debug logging turned on, then the problem is that the requests aren't getting to Apache. Check your network. | 1 | 0 | 1,330 | 2011-07-08T14:12:45.743 | infrastructure | serverfault.com | |
340,897 | Unit Testing: Method per test versus data provider | I'm having a bit of a philosophical argument with one of my colleagues regarding the "right" way to do unit tests (in this case with PHPUnit). I'm of the opinion that you should write one test method in the unit test per test you want to run. [CODE] My colleague, however, thinks that it's better to use data providers. ... | It depends. You should ask yourself: what property of the code is this particular test testing? What do I know when I know that this test is green? I don't mean this as a philosophical exercise, but in a very practical sense. Take your Adder, for example. You can ask it "Can you add 2 and 2 correctly?" and "Can you add... | 6 | 11 | 2,656 | 2017-01-25T15:16:30.537 | api_errors | softwareengineering.stackexchange.com | |
278,803 | Excluding log shipped DB from current database maintenance plan (Ola's solution) | The Senior DBA and I were discussing our most recent rollout of log shipping to 25+ servers and one of the issues we had ran into during our pilot was the log chain breaking randomly. We narrowed down several other factors that, at one point, were causing this issue (VEEAM backups were not using "copy only" in applicat... | When you set up Log Shipping, it creates a job for transaction log backup. If you already have an existing transaction log backup job, irrespective of kind (maintenance plan, Ola's solution, SQL Agent job) should be disabled/deleted. There is a workaround to keep the existing transaction log backup job and set up Log S... | 1 | 1 | 125 | 2020-10-28T13:47:06.197 | database_errors | dba.stackexchange.com | |
630,371 | apt-get source: Unknown command "source" | Following this tutorial , I'm stuck a this line: [CODE] Why does my apt-get/aptitude does not support this command? I don't know if this has something to do with this, but my [CODE] did not contain any [CODE] lines. After adding this, [CODE] did run run without any errors. | An error message from [CODE] wouldn't mention [CODE] . Did you alias [CODE] to [CODE] and forget about it? It may be time to [CODE] | 0 | 5 | 381 | 2014-09-22T17:22:08.570 | infrastructure | serverfault.com | |
47,887 | Help setting up OpenVPN server | I set up an openvpn server on ec2 following the directions here: http://alestic.com/2009/05/openvpn-ec2 That all works great. I'd like to change this to use asymmetric keys, and allow multiple client connections, but I'm finding the openvpn documentation hard to get follow. Anyone know of a good tutorial that could bri... | I don't think you're going to find a way to use existing SSH keys with OpenVPN. OpenVPN needs X.509 certificates to operate, and I don't believe that OpenSSH will use x.509 certificates w/o patching (see http://roumenpetrov.info/openssh/ ). The key to understanding OpenVPN and assymetric encryption is to understand how... | 3 | 5 | 2,016 | 2009-07-30T03:30:26.983 | infrastructure | serverfault.com | |
274,283 | Adding Python package to Sql Server 2017 machine learning services breaks it | I am trying to get started running python inside of Sql Server 2017 with Python Machine Learning Services. Out of the box it works and I can run simple scripts like listing the installed packages: [CODE] When I want to add a new package I follow the Microsoft documentation for 2017: https://learn.microsoft.com/en-us/sq... | I had the same type of issue with the pandas module on SQL Server 2017 with the same ImportError message that you received. The issue surfaced after installing CU22 for SQL Server 2017 recently and was not present when I set up the environment in question about two months earlier. In my setup of the environment I perfo... | 0 | 1 | 1,190 | 2020-08-25T06:54:02.537 | database_errors | dba.stackexchange.com | |
52,919 | How to update where subquery value is null in SQL Server | I am attempting to update a column if another value from a subquery is less than a certain value or null: [CODE] However, when I then check if the PriceClassID was changed, I see it was not changed for any row where last_sum was null. What am I doing wrong? | Many of your NULLs may be excluded by the fact that you're using an INNER JOIN between the tables. Try flipping it around: [CODE] Incidentally, relatively simple queries like this are usually better on StackOverflow; DBA.SE is meant more for server administration, database design, performance tuning, and such. | 1 | 1 | 2,673 | 2013-11-06T23:42:11.873 | database_errors | dba.stackexchange.com | |
331,192 | FreeBSD 8.1 64bit logrotate - ELF interpreter /libexec/ld-elf-so.1 not found | I am trying to get logrotate running on a FreeBSD 8.1 virtual machine. I installed the logrotate with pkg_add, I have created the logrotate.config file and also run: [CODE] Now when I do: [CODE] I get this error: [CODE] The file ld-elf-so.1 exists: [CODE] | You installed a 32-bit Port on a 64-bit OS, or vice-versa. Use [CODE] to remove the old version. Try installing via [CODE] Also, as Stefan noted, FreeBSD comes with newsyslog, which is enabled by default (just edit [CODE] to add log files as necessary), and does everything 99% of people need. Edit: To configure newsysl... | 3 | 6 | 4,731 | 2011-11-15T17:37:39.060 | infrastructure | serverfault.com | |
858,371 | How to prevent nginx from creating index.html on startup | I'm using the latest official nginx docker container . Whenever I start the container, two files are created in [CODE] [CODE] How do I prevent these files from being created? The commands I'm using to launch the container are: [CODE] The default configuration file ( [CODE] ) is: [CODE] And there is one file in [CODE] c... | The nginx docker image is responsible for the [CODE] and [CODE] files: https://github.com/nginxinc/docker-nginx/blob/48a4c531fc4bfa80d4270f20a67e2e958856860c/stable/alpine/Dockerfile#L101-L102 To prevent them from being created it would be necessary to extend the official nginx docker image and remove the files. Altern... | 0 | 1 | 2,381 | 2017-06-28T15:50:12.493 | pipeline_ops | serverfault.com | |
228,370 | Splitting large database into smaller ones | Our system currently stores all customer (merchant) accounts in one "flat" MySQL (5.6) DB namespace. We would like to scale out better - we are considering breaking our data up based on the merchant account ID. So instead of having: [CODE] Break up merchants into separate namespaces: [CODE] Above has several benefits: ... | If we were to break up the accounts into separate db-namespaces the dot-notation used inside of the stored procedures cannot be parameterized We would have to duplicate the stored procedures (~150 count) for each of the account-namespaces. That should not be an issue: when calling a procedure in [CODE] it will have tha... | 1 | 2 | 1,453 | 2019-01-29T15:38:36.543 | pipeline_ops | dba.stackexchange.com | |
318,374 | What's a common mechanism for emailing in the background? | When users sign up to my site, the connection from my server to our 3rd-party SMTP provider is very bad and the app takes from a few seconds to a few minutes to connect. While it is trying to connect and send, users are forced to wait there and sometimes they would just give up and leave the site. This is horrible user... | You can use Postfix as a nullmailer (relay only to ISP). This is nothing more than a four-liner: [CODE] [CODE] Reference: http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client | 1 | 1 | 176 | 2011-10-04T15:33:56.883 | api_errors | serverfault.com | |
10,428 | How Can I Correctly Pass a Table to a Stored Procedure in Oracle in SQL Plus? | Being new to Oracle, I'm almost certain I'm missing something simple here. This is what I'm trying to run: [CODE] This is the error: [CODE] This is the output of DESC for the function: [CODE] | I discovered that collections must have the same data type for an assignment to work. Having the same element type is not enough . Armed with this information, I set out to figure out what type I needed to use: [CODE] [CODE] returned a bunch of garbage which included a line having: [CODE] . That prompted me to try chan... | 4 | 2 | 5,515 | 2012-01-10T01:16:04.233 | database_errors | dba.stackexchange.com | |
858,879 | postfix: connect to Milter service inet:127.0.0.1:8891: Connection refused | I noticed that there is a error with milter if I type service postfix status : [CODE] but what does that mean and how do I fix that? It is related to DKIM? Because I tried to set it up and it's still not working. which files do you need to help? Here is my opendkim.conf: [CODE] | As Esa answered, it is related to OpenDKIM. However, through looking at the Service file (Ubuntu 16.04, using [CODE] ) I noticed that the service uses a file located in [CODE] [CODE] Note line 6, which states that settings here will override any Socket value in opendkim.conf I tried simply commenting out all the lines ... | 15 | 8 | 34,043 | 2017-07-01T15:50:20.550 | api_errors | serverfault.com | |
383,861 | WatchGuard proxy error - header-line too large | When trying to access new threads on a forum, I am receiving the error below. It seems like post count on the forum may have reached a point that it is generating a HTTP response header that is too large. Which setting in the WatchGuard HTTP proxy will allow me to fix this issue? Response denied by WatchGuard HTTP prox... | The Watchguard HTTP proxy's maximum line length setting is to small for that response. If you open the Watchguard HTTP Proxy policy, switch to the "Properties" tab and edit the "Proxy action" you can select "General Settings" under "HTTP Response" and increase the "maximum line length". Here is a screen shot from WSM 1... | 1 | 5 | 15,564 | 2012-04-27T15:47:27.590 | api_errors | serverfault.com | |
153,018 | traceroute does not work, output is * * * but network is fine | On my Linux box, [CODE] does not work. The output is like this: [CODE] Can anyone tell me why it's not working? Any possible reasons behind it? | By default, [CODE] uses high UDP ports for tracing hosts. However, sometimes firewalls block these UDP ports. Try to add the [CODE] (uppercase i) parameter to the command line, eg: [CODE] This will use ICMP instead of UDP for tracing hosts. | 34 | 33 | 96,804 | 2010-06-20T20:33:10.030 | infrastructure | serverfault.com | |
165,156 | MySQL 5.7 group replication disables access over TCP/IP | I'am testing new group-replication feature on MySQL 5.7 with multi-master replication on a Windows 2012 R2 system. I'm using for testing a single server and install to MySQL instance onm TCP-Ports 3306 and 3306 using diffent data-dirs and tcp-ports, etc. All works fine, even setting up group replication. But when i use... | The MySQL error log should have some clues. Can you show the log snippet from just after you issue [CODE] ? Edit : after seeing the MySQL error log snippet... It looks like you're perhaps using the same port for the mysql protocol and the GCS (group communication system)? You have to use different ports. For example, i... | 1 | 1 | 2,687 | 2017-02-22T10:15:16.403 | database_errors | dba.stackexchange.com | |
51,844 | File upload permission problem IIS 7 | I am unable to upload files to website hosted under IIS7. I have already given write permissions to "IUSR_websitename" and set the property in web.config also. I am able to upload files with out log in to application at the time of user registration. But once log in to application, if I upload files, it is giving "Acce... | It's your app pool identity user that is used for most things on disk. That's Network Service by default. Grant Network Service write permissions to your website path, or change the identity and grant the new user permissions if you want to lock the server down further. In IIS7, as long as you have 1 site per app pool,... | 1 | 3 | 16,806 | 2009-08-08T17:57:08.900 | infrastructure | serverfault.com | |
240,677 | Large Table Times out - Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding | We have a customer who is experiencing Time-outs in our .NET application which uses SQL Server as the backend. The table in question is the OrderLines table in a SQL Server Database that has 4155151 rows Lately, the customer has reported, that intermittently they would get these Time-Outs during the process of updating... | The code doesn't have a specific Time-out set in the Connection String to the Database but on the SQL Server, the Time-out is set to 10 minutes. You are most probably reaching a client timeout which by default is 30 seconds for C# SQL Server client (ADO.NET?). Consider increasing this timeout until you find a decent so... | 0 | 2 | 2,957 | 2019-06-17T03:55:35.860 | database_errors | dba.stackexchange.com | |
282,708 | best VNC Server for Linux? | I know this may be a question about personal preferences. But, in terms of: speed / memory usage / ease of configuration/ licensing , which is the best VNC server you know? I have tried TightVNC, TigerVNC, UltraVNC and RealVNC , but right now I can't figure out which one is the best (any of these I listed or any other)... | well, TurboVNC has VirtualGL support. This allows hardware acceleration over VNC, and has been one of the only two killer features I've ever seen in a VNC client/server. Of course, you have to SSH tunnel it to make it secure... The second was X11vnc's ability to attach to native X screens or virtual framebuffers. This ... | 17 | 11 | 61,326 | 2011-06-21T18:00:49.217 | infrastructure | serverfault.com | |
783,323 | How to simulate a WORM environment w/Active Directory/NTFS | In NTFS/Active Directory, assume I have two drives mapped: [CODE] Users can edit files in H:\, but not in I:\ . I want users to be able to, using a script, move their files to the I:\ drive unless an overwrite would occur. After the files are copied, the script removes write permissions to the copied files in I:\ , in ... | After a bunch of trial-and-error, this powershell script seems to do it: [CODE] It is not fool-proof though since an admin can take back control with: [CODE] I will say that if you need an industrial grade solution for SEC-compliance or whatever, you may have to invest in NetApp and SnapLock: https://library.netapp.com... | 2 | 2 | 1,434 | 2016-06-10T22:29:29.633 | infrastructure | serverfault.com | |
728,857 | Can't get included CSS and JS files to be compressed | I have enabled compression via .htaccess and in httpd.conf However when I run it through the various online testers, its always saying that various included files are not compressed. Apache version is 2.2.15 .htaccess currently looks like this: [CODE] httpd.conf includes this: [CODE] Can't find anything online that spe... | You can try to add cache control: [CODE] and set your compression level [CODE] | 1 | 0 | 469 | 2015-10-14T10:56:48.007 | infrastructure | serverfault.com | |
157,577 | Snapshot too old from materialized view refresh job | This Oracle database has a DBMS_JOB that runs the following materialized view refresh script : [CODE] If I run it by hand, it's finebut if the job executes it a [CODE] occurs. It will also around 1/5 of the time simply succeed for no apparent reasons. Here is the error in question (Database is installed in french): [CO... | Hints Just a quick summary of possible ways to provide you with additional information. Job History You might get additional information if you query the job history: [CODE] Reference: My refresh materialized view is not refreshing – Part 1 Depending on what results you get, you might be able to look for additional inf... | 4 | 2 | 5,679 | 2016-12-08T14:23:16.770 | warehouse_errors | dba.stackexchange.com | |
348,720 | More detail EC2 instances monitoring? | I am currently using AWS Cloudwatch to monitor basic metrics of my EC2 servers. But it is lacking of detail monitoring such as partition space used, memory free etc. Should I install and use Nagios, or other better alternatives? (I want to automate as much as possible, do I don't prefer Nagios...) | What I have is a simple script that I wrote and checks if the CPU or memory reaches the threshold which I consider it as high load. If it is, the script will call another script that will gather information for me to analyze what causes the highload and sends it to my e-mail address as an attachment. Below is a sample ... | 0 | 3 | 997 | 2012-01-11T05:30:26.263 | pipeline_ops | serverfault.com | |
317,897 | Find best layout to reduce use of space or material | Example case: You have a truck, that can hold 2.8m by 3.2m by 16m of storage capacity. You you get a bunch of physical objects you want to store in that truck. These objects are not always cubic, but sometimes rounded, or have concave shapes. The problem to solve I want to implement an algorithm, that finds the optimal... | Threre is a herustic I use for packing grocery bags. Basically the key is well ordering prinicipal. First use the space on the back and sides first . Basically max distance from loading cross sectional area. That is for practicality of not stuffing objects in the very back after most the space is used. The most big obj... | -1 | 0 | 335 | 2016-05-08T21:00:43.980 | api_errors | softwareengineering.stackexchange.com | |
305,924 | How to backup from MySQL Ubuntu to Synology NAS MariaDB | I am facing difficulties when setting up MariaDB on Synology NAS as slave to replicate my server on Ubuntu. But there are missing commands and files (my.cnf) in the installation. Need help on any guidance or instructions! Thanks | The protocol changes of MySQL-8.0 replication and some of its syntax aren't compatible with any Mariadb version. Recommend looking for options where both master and replica are the same version. | -1 | 0 | 618 | 2022-01-11T06:33:09.303 | database_errors | dba.stackexchange.com | |
637,275 | How can i speed up an XWiki installation on debian? | We installed XWiki on Debian. Page load times in default config were about 2 seconds. Tuning the memory parameters according to the XWiki performanve guide brought it down to 1 second. But for a local installation on decent hardware without users this seems still really slow. What can we do? | if you're using stock version of xwiki - a bundle containing jars, jetty etc downloaded from xwiki.org - chances are you use HSQLDB as a data storage. migrate your data to mysql . my xwiki became much more responsive after doing that. | 1 | 1 | 990 | 2014-10-15T18:54:26.023 | infrastructure | serverfault.com | |
394,702 | Strange 'df' output + broken /etc/mtab | I just installed Arch Linux on a server machine with a LSI hardware RAID 5. During the installation, I created (and cfdisk properly reports) three partitions: [CODE] Everything seems to be working fine, except that the df command is showing strange output: [CODE] Note that at this point, /dev/sda2 isn't actually mounte... | You are most likely inside a "chroot" shell. The installer has done something like this: [CODE] The [CODE] command creates a shell where /target is /. In that environment, the installer did [CODE] . Since this environment is not the one that mounted /, it doesn't end up in [CODE] but [CODE] does. I would assume however... | 3 | 2 | 881 | 2012-06-01T13:29:12.937 | infrastructure | serverfault.com | |
439,681 | Zpool list showing blank values | My problem is that when I call [CODE] it gives this blank output.... [CODE] However a [CODE] shows that syspool is imported [CODE] also backed up by [CODE] [CODE] If I import a second pool and run a [CODE] again... [CODE] This is causing problems in Nexentastor. NMV's create-dataset page will crash because it uses zpoo... | Problem was caused by the latest version of libzfs. I rolled back to previous version of the library which cured the issue. | 0 | 0 | 405 | 2012-10-18T09:31:42.237 | infrastructure | serverfault.com | |
182,723 | Coding Problem - Do I Use Pivot, XML, or Something Else | I'm having a brain-not-working moment and could really use some help. This is SQL Server 2014 Standard ed. I have 3 Tables - for simplicity, we'll call them "name", "address", and "international". Sample data below: [CODE] I need to put all this in a pipe-delimited format to later be exported to a file. It needs to loo... | There is almost certainly a better way to do this but this one works and will probably get you started on a better solution. [CODE] And again there is probably a better way to do this but: [CODE] | 1 | 3 | 1,184 | 2017-08-04T16:49:13.280 | database_errors | dba.stackexchange.com | |
780,840 | Multiple network interfaces in VMware machine | I have a virtual machine running Windows Server 2008 R2 that is used as a build machine for our projects. To run the build, the vm must be connected to a VPN (using a GlobalProtect client). The problem is that when the VPN is connected, the VM sends all the data through the VPN and becomes isolated from our local netwo... | You don't need two NICs for this. What you do need is to configure a route to your local network after bringing up the tunnel. Note that some VPN software (not sure about GlobalProtect) will detect this type of trickery and prevent it or disconnect. You may want to talk to your GlobalProtect administrator about setting... | 1 | 0 | 2,512 | 2016-06-03T16:10:34.897 | infrastructure | serverfault.com | |
454,001 | Low priority batch processes on live Mongo database | We want to run MapReduces on our live Mongo database, mainly so that we can extract metrics. However, we've had some bad outages caused by these MRs bogging down the Mongo server (in particular 100% disk IO). We think it's due to missing indexes. Is it possible to perform batch processes like these with low priority su... | There is no way to "nice" the MR jobs you are running - they will yield etc. but in the end (especially if you have poorly chosen indexes) you are going to impact the primary by evicting its working set from RAM, causing disk IO contention, etc. Hence I would definitely recommend optimizing your indexes to avoid that a... | 1 | 1 | 1,286 | 2012-11-30T19:43:39.410 | database_errors | serverfault.com | |
26,302 | Which algorithm to use to match two categories with n dimensions | Suppose I have examples of two categories, Products, and Aisles. Each product has variables like price, weight, moisture rating etc and then Aisles has variables like max weight it can handle, moisture near it, etc. Now I want to run some algorithm which classifies which products should go in which aisles based on prod... | There is no generalized algorithm to match two categories of data where the dimension is different and perhaps the attribute could also be different. However you can transform the data into similar dimension. One method I would suggest you is to take PCA of both the data. After taking PCA you can pick the first k princ... | 1 | 1 | 83 | 2018-01-05T00:14:14.103 | data_quality | datascience.stackexchange.com | |
314,141 | DB2: Working with concurrent DDL operations | We are working on a data warehouse using IBM DB2 and we wanted to load data by partition exchange. That means we prepare a temporary table with the data we want to load into the target table and then use that entire table as a data partition in the target table. If there was previous data we just discard the old partit... | This is because the ALTER TABLE DDL statement is changing the table definition . Db2 has to update the catalog tables to record the DDL changes, and it uses a Z-lock (Super Exclusive) when it does that. This means no concurrent ALTER TABLE can run against the same table. https://www.ibm.com/docs/en/db2/11.5?topic=manag... | 0 | 1 | 200 | 2022-07-07T06:37:38.330 | database_errors | dba.stackexchange.com | |
1,035,407 | supermicro IPMI web interface through shared LAN is blocking the operating system | I recently hosted a supermicro 4029 server in an IDC facility. The IDC provides a static IP, subnet mask and DNS. After setting up the internet in CentOS without problem, I then proceed with setting up the IPMI which helps me with remote maintenance. The IPMI is configured with the same IP, subnet mask and DNS. It is c... | The shared interface port on the server for IPMI remote management has a Different MAC internally than the OS accessible port. You need to use a different IP to reach it. Using the same IP gives you all of the same issues of having two devices with the same IP on the network. If you have another system on the remote ne... | 2 | 1 | 1,704 | 2020-09-26T02:44:19.523 | infrastructure | serverfault.com | |
446,548 | smartctl for fedora 17 | I got myself a hard drive that is making funny noises. I want to check for errors, I want to use smartctl, This command [CODE] produces an error: [CODE] [CODE] doesn't work. How do I yum install smartctl? | Find out which package it's contained in: [CODE] Then install the package indicated, which should be [CODE] . | 1 | 5 | 2,915 | 2012-11-08T01:58:22.297 | infrastructure | serverfault.com | |
270,608 | DCOM Access Issues through Windows Server 2008 Firewall | I am trying to connect remotely to a Windows Server 2008 Machine through WMI Protocol using J-Interop Library. Although I have not been able to configure the firewall properly even after following quite a few online guides. I get the "The RPC Server is not available." error every single time. I have added following exc... | RPC generally uses port 135 and a random port above 1024. Here is an article from Microsoft on setting some RPC services to use a specific port(s). Also, DCOM will not work through NAT, since the actual client and server IP addresses are a part of the handshake. | 2 | 2 | 1,801 | 2011-05-17T16:05:17.443 | infrastructure | serverfault.com | |
117,066 | MIN, DATEADD, DATEPART, DATEDIFF functions cause table scan | A performance issue has been brought to my attention. It appears an application executes a query from time to time that takes nearly 3 minutes to execute successfully. The column is of data type 'datetime, not null' The column is the clustered index of the table. The query does not use this index however, it uses a non... | Try this approach instead (assuming the point of all the dateadd/datediff operations are just to set the millisecond component to 0). The query was adapted to the AdventureWorks database: [CODE] The trick is to find the rows before you start messing with the column values applying all kinds of formatting and date manip... | 2 | 4 | 1,155 | 2015-10-05T18:40:01.040 | warehouse_errors | dba.stackexchange.com | |
412,079 | Nginx & PHP-FPM - .php File not found - Can't figure out why | I have done days of reading on this issues, as admittedly, I am an Nginx newb. I have read official and unofficial documentation alike and can't seem to solve my problem. Hopefully, someone here will be kind enought to help me out. I can server my html pages, such as 403, 404 and 50x.html so I know nginx is working in ... | Is there anything in your access / error logs? Also, why do you include fastcgi_params and then pretty much define them all? This is what my location block looks like in nginx with php-fpm: [CODE] Try moving fastcgi_pass up towards the top. | 4 | 1 | 16,054 | 2012-07-28T11:16:15.430 | api_errors | serverfault.com | |
238,368 | Biztalk 2009 logshipping with SQL 2008 | I am setting up biztalk logshipping for Biztalk 2009 database. Following http://msdn.microsoft.com/en-us/library/aa560961.aspx article, I am doing the following to setup biztalk logshipping on destination server: Enable Ad-hoc queries by: [CODE] Execute LogShipping_Destination_Schema & LogShipping_Destination_Logic in ... | The above process creates linked server with integrated security for authorisation. Work around-change the security on linked server to use service account. | 1 | 1 | 604 | 2011-02-21T21:49:54.233 | api_errors | serverfault.com | |
179,812 | Matrix Pattern Recognition Algorithm | I am designing a logic analyzer and I would like to implement some Matrix Algorithm. I have several channels each one represented by a row in the matrix and every element in the column would be the state, for example: [CODE] I would like to detect a pattern inside my matrix for example, detect ALL the matches of the bi... | EDIT: after you clarified things a bit, I see you are after some kind of different thing I was thinking of first. When your matrix changes for every search, creating some kind of lookup structure beforehand won't help you much - instead you probably may need some low-level optimized bitmap processing library (or write ... | 6 | 1 | 3,880 | 2012-12-18T00:36:50.150 | api_errors | softwareengineering.stackexchange.com | |
442,080 | cygwin sshd service crashes whenever I open certain file in /etc | When I try to vim /etc/profile or vim /etc/motd it stops. When I try to [CODE] those files it stops. Any ideas? Nothing in the ssh logs that seems to be pertinent. | There was a similar message on the Cygwin mailing list on July 31, 2012. The solution quoted there is: I've just applied a patch to fix this problem. It seems this is a long standing bug which could result in random stack corruption after changing or adding any file to /etc. I'm just generating a developer snapshot. Pl... | 2 | 3 | 225 | 2012-10-25T01:34:48.747 | infrastructure | serverfault.com | |
41,267 | How to include class features to linear SVM | I am planning to do a simple classification with a linear SVM. One feature I have is another classification of some sort done previously. Can I just use this class feature as a 1-hot encoded array? So, e.g. for 3 different classes, I'd have 3 binary features being 0 or 1? The problem I see is that this feature is not l... | The quick answer is yes, you can use a liner SVM in presence of an encoded categorical variable. Short explanation: The linearity of the model has nothing to do with the features of model, and actually linear feature doesn't mean anything. The linearity refers to the model, i.e. the equation that links the target to th... | 2 | 1 | 46 | 2018-11-15T14:31:32.523 | data_quality | datascience.stackexchange.com | |
244,565 | Table design and query Optimization: Query to find the suitable work from a list of work items | I have table with jsonb column as below [CODE] sample data is as follows: [CODE] I created a gin index for for work_id as below: [CODE] Postgres documentation says gin index works for [CODE] containment operator. But I need to find all the work records which has work_id's that user inputs, for which I need to use [CODE... | You could use a helper function that converts a [CODE] array to an [CODE] array: [CODE] This can be used with an index: [CODE] A modified query can make use of that index: [CODE] | 0 | 1 | 101 | 2019-08-05T12:58:34.403 | database_errors | dba.stackexchange.com | |
898,017 | Apache vhost returns two different sites | I have two sub domains configured on server (main and staging) and for staging it is returning two different paths. Sometimes it is returning correct ( [CODE] ) but sometimes (when you refresh web browser couple of times or when you go to subpage) it is returning main website ( [CODE] ) Apache 2.4 on Ubuntu 16.04 There... | Just in case you have the same problem as explained above. Just restart whole server, not just apache. After server reboot everything works correctly. There was probably some kind of cache or configuration that hasn't beed removed properly and it was affecting whole server. | 1 | 0 | 86 | 2018-02-20T13:18:05.760 | infrastructure | serverfault.com | |
914,332 | RDS Mysql point in time restore fails - incompatible state | I have an RDS MySQL instance with MySQL version 5.7.19 for which a point in time restore failed with a status of "incompatible-state". Through experimentation I have determined that point in time restores fail up until the next snapshot taken and work immediately after the snapshot was taken. AWS Support tells me that ... | In the instance's parameter group, set [CODE] to [CODE] . The default on RDS is [CODE] even though there is not a compelling reason for this default value under a majority of conditions. In my systems, [CODE] is always used because it has substantial advantages over [CODE] . One of the more compelling reasons in this s... | 1 | 1 | 2,026 | 2018-05-29T21:12:12.977 | database_errors | serverfault.com | |
460,265 | iptable localhost connections reported to be blocked, but work ok | I am using fwbuilder and have tried setting up rules that both allow [CODE] interface and source ip [CODE] , as follows: [CODE] The connection appears to work fine, but then why do I see several of these errors in [CODE] ?? [CODE] UPDATE : output of [CODE] | Can you show all your rules? For solve your problem, just make rules: [CODE] | 2 | 1 | 970 | 2012-12-22T13:38:58.703 | infrastructure | serverfault.com | |
783,335 | Can't deploy from private git repo using r10k | I'm working on learning to use r10k to deploy my puppet code, and I've run into a snag when trying to deploy from my control repo. The error message I get is: [CODE] I've verified that my ssh key works when directly connecting to the server. The documentation for r10k is a bit confusing, but from I what I can tell the ... | As per the edit of Jason: I haven't really solved the issue of trying to configure the 'rugged' provider, but I did figure out why 'shellgit' wasn't working - I was running r10k using sudo and the git server was not in root's known_hosts file, causing key authentication to fail. Once I added the host to the file everyt... | 2 | 1 | 1,228 | 2016-06-11T00:15:40.043 | pipeline_ops | serverfault.com | |
128,652 | What is the purpose of including header files in the solution in Visual Studio? | So I have including the files to my projects by simply : [CODE] and adding the headers into the solution explorer. But recently I have realized that I may omit the step of adding the headers to the solution explorer because it does not change anything. The only important fact is to define proper include directories in ... | Mainly just to give you single click editing. The solution explorer doesn't effect the dependancy of the build/compiler. edit. Sometime's it's necessary if you need to 'compile' a header eg. a COM .idl or some Qt moc header file. | 5 | 8 | 1,941 | 2012-01-05T18:48:49.247 | api_errors | softwareengineering.stackexchange.com | |
252,156 | MySQL - Advice for using two tables, one each for open and closed records? | I'm migrating an app from ASP/MSSQL Server 2008 to PHP/MySQL. In the previous app, I had an object using multiple joins and advanced search queries with hundreds of thousands of records. I split the records into 'table1' and 'table1_closed' so I could keep the open-records table speedy. This worked in speeding up the q... | Add a column to distinguish open/closed. It should be small ( [CODE] or [CODE] ). Then pick one: Plan A: Then have most indexes be composite and start with that column. These indexes will make it efficient to find just opened (or just closed) rows. If you also need to find both opened and closed, then also have index(e... | 2 | 0 | 78 | 2019-10-29T16:54:50.367 | database_errors | dba.stackexchange.com | |
147,433 | Is it safe to download VS11/.NET4.5 beta and still deploy to servers with .NET 4.0? | I've been wanting to try out VS2011 and .NET 4.5 beta, but the upgrade path is confusing at best. If I understand what I've read, the .NET 4.5 framework overwrites the .NET 4.0 libraries on your local machine, so libraries such as mscorlib.dll and System.dll will be replaced with the 4.5 version - fully backward compat... | It's true, but not an issue. Looking in the frameworks directory where you have one directory per version, there isn't one for 4.5. However, I have VS2010 and VS11 on this machine and they coexist happily. When you start VS11 you can pick 4.0 or 4.5 from the list of target frameworks. VS2010 of course still only target... | 6 | 2 | 408 | 2012-05-06T01:07:37.990 | api_errors | softwareengineering.stackexchange.com | |
144,634 | MYSQL inner join , if not match try another table | I've got a very quick issue here, how can i join a table with two other tables in a way if one's info doesnt match, it goes try another one. something like: [CODE] Much appreciate any response guys, i'm kinda stuck now :/ | Always outer join them, then just use a [CODE] statement to pick out the info from the relevant table: [CODE] | 0 | 1 | 294 | 2016-07-22T06:16:33.803 | database_errors | dba.stackexchange.com | |
996,240 | Is there a way to listen to all traffic on my router, using e.g. Wireshark or tcpdump? | I have a crazy stupid problem driving me to an early grave and I'm trying to trouble shoot what the problem is. Is there a way to listen to all traffic going through my router, including dropped SYN packets and whatever else? I would imagine using Wireshark or tcpdump for this. According to this post the answer is "no"... | If your router doesn't support traffic mirroring/monitoring you could do it this way: Get a network a switch that supports traffic mirroring/monitoring or get a network hub and plug it in between the router and the rest of your network. If using a switch you'll need to configure it accordingly for traffic mirroring/mon... | 1 | 2 | 6,729 | 2019-12-19T22:56:51.753 | infrastructure | serverfault.com | |
343,231 | MongoDB schema for tracking matches | This is the first mongo-backed-application I am trying to make beyond tutorials, so I lack imagination when it comes to document schemas. Context : On a dating application, there is an algorithm that identifies matches between users. Currently trying to identify how these matches should be stored. Current schema : Crea... | When you design database schemas for MongoDB, the decision criteria number one is not "how is my data structured?" but rather "what queries do I want to perform on my data?". Your data schema should then be structured so that all performance-relevant use-cases can be fulfilled with a single query. If your most importan... | 2 | 4 | 855 | 2017-03-01T11:51:41.633 | database_errors | softwareengineering.stackexchange.com | |
77,916 | Training with less data | Most problem with machine learning projects I have faced is the lack of data. The samples available are enough to disqualify rule based approach but not enough for a neural network to train. For example, to train a neural network (or even fine tune a pretrained model) on a new entity in an NER system takes a thousands ... | As rightly pointed out by @erwan, it is a bad idea to use data augmentation with 'text data' The problem of 'training with less data' can be approached in many ways, here I enlist two ways which helped me with significant impact: (a) One approach would be to use semi-supervised approach. There are open sourced language... | 1 | 2 | 147 | 2020-07-18T09:34:58.860 | data_quality | datascience.stackexchange.com | |
412,201 | IP Tables Issue on VPS | Running a VPS with Centos 6. If I run ifconfig, the adapter with net is named venet0:0-00 [CODE] So I run this: [CODE] But it tells me, iptables: No chain/target/match by that name. Does anyone see the issue? I need to allow UDP/TCP traffic for OpeNVPN on many ports, 1194 included. In past usage, the above command work... | Unfortunately this IPtables feature is not virtualized within OpenVZ. This means you can not use it. | 0 | 0 | 76 | 2012-07-29T00:00:30.770 | infrastructure | serverfault.com | |
15,040 | Git keeps asking for ssh passphrase when SSH is already defined in GitLab | I'm playing around with a personal GitLab account to get familiar with its' ins and outs. First, I followed this primer on setting ssh keys and added public and private ED25519 keys to [CODE] . I added the public key to my GitLab account. Then, using the [CODE] CLI I was able to set up a repository which I could push t... | You can try adding your passphrase to the keychain using [CODE] , this will ask you the passphrase for the first time and later on it won't ask. | 1 | 5 | 3,933 | 2021-11-25T15:48:58.533 | pipeline_ops | devops.stackexchange.com | |
168,097 | Is it a bug or a task when something doesn't work, yet, in development process | We usually have this dilemma in our team. Sometimes, in order to implement a task or a story we find out that the system must be in a specific state. For example, a specific system configuration has to be made beforehand. The task / story can be completed and it is working as specified on it with the proper configurati... | I would call this a task. If I understand you correctly, it is meant to enable a new feature, so it is not a bug fix - otherwise everything should be called a bug. If the change made by this makes a meaningful difference to end users (independent of the main feature it is meant to support / enable), you may consider ca... | 3 | 9 | 2,543 | 2012-10-09T07:53:00.000 | api_errors | softwareengineering.stackexchange.com | |
157,083 | Ideal configuration and structure for single db + single table + 20 million static records | I've spent the last few weeks trying to learn SQL the best I can and after doing research and reading many articles, specifically (This SO Thread) , I have ran out of luck and was hoping to get some better advice to achieve the result I need. My setup: Single Database (Running MariaDB, Though this could be changed) Sin... | All you're missing is an index on postcode. In your query you're doing this: where('postcode', '=', $pcode It almost certainly translates at the database layer to select a, b, c from table where postcode = x. Without the index on postcode you're doing a slow scan of the entire table, with an index you can do a fast see... | 0 | 3 | 72 | 2016-12-03T16:55:18.757 | database_errors | dba.stackexchange.com | |
429,274 | How to redirect from HTTPS to HTTP before server error? | I used to operate a website with an SSL certificate, but have stopped using the SSL certificate. The problem is that most of the external links to the website use the https:// prefix. I have tried the https:// to http:// redirect in the .htaccess file: [CODE] But it seems, as has been pointed out elsewhere, that the se... | The difference between http and https is that https requests are sent over an ssl-encrypted connection. The ssl-encrypted connection must be established between the browser and the server before the browser sends the http request. Https requests are in fact http requests that are sent over an ssl encrypted connection. ... | 10 | 19 | 42,952 | 2012-09-16T20:30:39.630 | api_errors | serverfault.com | |
288,954 | OOMKiller causing machine hosting Java to become unresponsive | I have two servers running in a private vSphere cloud, both running JBoss and Tomcat. Machine 8 - RHEL5.3, 3 gigs of 'physical' memory, 1 gig of swap Machine 25 - RHEL4.6, 2 gigs of 'physical' memory, 1 gig of swap Every so often, machine 8 will become unresponsive, with OOMKiller effectively taking over the machine. R... | It's the JVM that's causing the problems. Basically, the JVM "pre-allocates" all the memory it wants, but the kernel actually only "gives" the memory to the JVM when it really needs it. Thus, you can very quickly get into the situation you describe (swap usage shoots up, OOM killer goes on a rampage) without anything "... | 1 | 0 | 333 | 2011-07-11T10:24:14.753 | infrastructure | serverfault.com | |
144,038 | mod_rewrite RewriteRule is not working | This is a follow-up of this question: Rewrite URL - how to get the hostname and the path? And a copy of this: mod_rewrite RewriteRule is not working I got this Rewrite Rule: [CODE] it seems to be correct, and exactly what I need. But it doesn't work on my server. I get a 404 page not found error. mod_rewrite is enabled... | According to the documentation, by default The Pattern will initially be matched against the part of the URL after the hostname and port, and before the query string. If you wish to match against the hostname, port, or query string, use a RewriteCond with the %{HTTP_HOST}, %{SERVER_PORT}, or %{QUERY_STRING} variables r... | 1 | 2 | 271 | 2010-05-21T10:12:51.930 | infrastructure | serverfault.com | |
324,906 | How to update table keeping data available to users (Oracle)? | I have a table [CODE] in an Oracle data warehouse. This table contains number of customer visits during every month and is rather big (~130 mn rows). [CODE] The data itself looks like: VALUE_MONTH USER_ID N_VISITS 31.12.2022 43254 25 Every night a job executes a stored procedure, which updates this table. The data for ... | So how can I keep the older version of the data for the last 3 months available to the users of the table during update process? Remove the [CODE] , and Oracle's Multi-Version Read Concurrency take care of the rest. You should generally not COMMIT in stored procedures anyway. | 0 | 1 | 112 | 2023-03-18T21:26:46.927 | database_errors | dba.stackexchange.com | |
349,776 | Is client-server application with direct connection to database good idea? | Can you made secure, multi-user, client-server application with multiple clients (1-5) directly connecting to database? Or you have to make custom server application and connect them via WCF or something similar? Right now I have connection directly to DB but didn't implemented authorization yet. Using SQL Server Authe... | It all depends on the requirements of your system. If you have 1-5 users who will only use the application internally and there's a Windows domain, yes, a physically 2-tier application is a fine design. Logically you'd want to code for n-tier though, so that if those requirements do change you can more easily separate ... | 3 | 2 | 2,783 | 2017-05-29T13:09:20.630 | database_errors | softwareengineering.stackexchange.com | |
558,709 | Debug: Cisco VPN Router runs 100% CPU | I've turned logging on and all I am currently getting are Debug/Kernel logs. Nothing above debug. This was also during offsite hours when hardly any traffic was going on. I have also upgraded to the latest firmware and cisco confirmed that the firmware is glitch free. What would be my next course of action to debug thi... | I would recommend not using an RV180. We've seen problems with that line of routers. Get an 861 or something running real IOS. The ISA500s turned out to be OK even though they've been discontinued - if you want a GUI. That said, try to be more selective with what you are logging if possible. Pull back on the scope of t... | -1 | 1 | 900 | 2013-12-02T16:52:05.703 | infrastructure | serverfault.com | |
410,844 | Pros and cons of position as properties of a spatial object? | Building games and simulation frameworks, it seems I am regularly hounded by this conundrum: Let's say you have a 2D grid, and you have an crate in that grid. I can put the coordinates on the crate, or somewhere else. [CODE] I prefer option A because why should the crate know where it is? Its position only makes sense ... | The reason that option B is used almost everywhere is that it enables very streamlined rendering operations. If you don't look at positions but at coordinate system transformations, it is apparent that each object needs a transformation relative to the coordinate system of its container so that it moves and rotates wit... | -1 | 3 | 76 | 2020-05-30T17:44:52.283 | api_errors | softwareengineering.stackexchange.com | |
499,142 | Unfinished transaction remaining in Fedora 17 software update | When I doing the software update on Fedora 17, I get this message prompt to me: [CODE] I follow the instruction and I get this error: [CODE] How could resolve this problem? | Install the [CODE] package, and run [CODE] (check the manual pages for other options), then try again. You might need to update [CODE] and possibly [CODE] beforehand. | 0 | 1 | 199 | 2013-04-14T02:34:40.847 | infrastructure | serverfault.com | |
1,113,571 | Postfix -- Not sending and not receiving and mails! | I've installed yesterday the Mododoa mail server on my linux Ubunto maschine, which is hosted on internet. Source of installation is: https://github.com/modoboa/modoboa-installer DNS should be working correctly. That what is been told on https://mxtoolbox.com/ When i connect my laptop over iamp and stmp it gives me tha... | I could solve it. Problem was, that i had to add [CODE] to the following line: [CODE] in the file: [CODE] and then restart the system. after that i could receive emails normaly. However, i couldn't send E-Mails over STMP, because it was restricted to local networks only. i had always following error: [CODE] this could ... | 0 | 0 | 603 | 2022-10-20T10:28:51.607 | infrastructure | serverfault.com | |
24,803 | Why can't I create files larger than 2 GB on Linux? | I wanted to share some knowledge I picked up when I ran into trouble using libpcap and snort to sniff a high-capacity (1 GB full duplex; 2 GB max aggregate) network link. The applications would sniff all traffic successfully, but would crash when the file size hit 2 GB captured. If you're having issues with creating 2 ... | Large file support ( >2GB ) for Linux needs to be addressed in three separate locations to ensure you do not run into the 2 GB max file size limit: Large file support enabled in the kernel A filesystem that supports large file sizes (many Linux-based filesystems do (ext3, reiserfs >= 3.6, etc)) Large file support withi... | 8 | 22 | 5,509 | 2009-06-12T14:29:43.613 | infrastructure | serverfault.com | |
34,145 | Web page performance issue | At the moment im testing a web page which contain 45 youtube videos in a one singlr page. And client is asking me to do a performance test and i did. This is what i get as a 1 suggestions from the performance test tool which i used. Can some one please explain me how to fix this issue? | The screenshot you have attached is the GTMetrix page speed of that particular page. If your page loading speed is low then following steps to improve the page speed: Minify the JS and CSS. Merge the CSS and JS. Inform your designer to optimize the images using lossless compression. Proper scaling of images needs to be... | 0 | 1 | 73 | 2018-06-08T09:58:22.657 | data_quality | sqa.stackexchange.com | |
320,792 | PostgreSQL - Index efficiently on REGEX_REPLACE() | I have a query which is designed to loop and search addresses for duplicates, the query uses REGEX_REPLACE. I am trying to index on the regex as on doing an explain and its doing a sequential scan on the user_property table with a filter on the regex [CODE] Explain result: [CODE] https://explain.depesz.com/s/cbmv#html ... | I found this an interesing question +1! In order to answer, I went down the old-fashioned route and did some testing. All of the code below can be found on the fiddle here . The strategy employed uses [CODE] columns ( Manual ). You could also use expression (aka functional) indexes - see note at the bottom of this answ... | 5 | 3 | 707 | 2022-12-09T21:58:38.193 | data_quality | dba.stackexchange.com | |
483,209 | route packets through hardware loopback interface, not lo | My embedded Linux board has 3 interfaces: eth0 - For all outbound traffic eth1 - A hardware loopback (traffic leaves board, but comes immediately back in the same port) lo - Standard loopback interface [CODE] reveals the following: [CODE] And, [CODE] yields: [CODE] I can [CODE] the eth1 interface's assigned IP, like so... | Local traffic doesn't go through Ethernet interfaces. Fundamentally, local traffic goes through the local interface. The OS has no idea that your eth1 interface has hardware loopback. | 2 | 1 | 6,450 | 2013-02-27T22:33:55.207 | infrastructure | serverfault.com | |
464,079 | Dell Open Manage physical disk failure predicted | I've installed the Open Manage Server Administrator on my Dell T100 to monitor RAID Controller and disks. From the Physical Controller report web page I see a table listing the two disks I have but under the column "Failure Predicted" I see the capacity in GB! is it an error or what? If I expand the details for the als... | Have you attempted to run the command from the console of the device (ie. over the drac via ssh or through the console via activex plugin and java console)? I'm not 100% on the command from a windows/rdp terminal, but you can run OpenManage commands via command line in Linux like this: [CODE] Of course, this depends on... | 1 | 1 | 9,024 | 2013-01-08T16:28:42.960 | api_errors | serverfault.com | |
796,236 | HAProxy, how add variable "dst" (IP client) to option httpchk GET line | I have memcached cluster with couchbase. For balancing using HAProxy. But have problem with check health. For check is good following request: [CODE] Response is 200 or 404. In HAProxy: [CODE] Problem with "/pools/default/buckets/default/nodes/ 10.0.110.1 %3A8091/stats". How add variable IP of hosts. Maybe use a variab... | Why not just install Couchbase's Moxi (memcached proxy) on each application server node pointed at Couchbase buckets? Then you get all of the HA features of Couchbase, but do not need to modify your application code? And no need for HAProxy either. Moxi will on your behalf use the power of Couchbase's sharding to distr... | 1 | 1 | 441 | 2016-08-11T12:57:33.060 | hadoop_errors | serverfault.com | |
324,981 | Win XP Pro, IIS 5.1, PCI Compliance | I have a client that was scanned and determined not to be PCI Compliant. I looked and they had IIS setup to allow a program from central office to push/pull info from their server. Many of the reasons they failed appeared to have been fixed in SPs (they were on SP2) or security updates. I fully patched the server to (W... | It's been said in comments, but I don't see an answer posted, so I'll say it here: Use a real Server OS, and a current version of IIS. Support for IIS 5.0 ended on July 13 2010, so any newly-discovered security vulnerabilities for that version will not be patched. Even if you apply all the available patches, any zero-d... | -1 | 8 | 305 | 2011-10-26T15:16:12.807 | infrastructure | serverfault.com | |
342,361 | IIS 7 issue - HTTP Error 403.4 - Forbidden | We have a site set up under IIS7 that requires SSL. If the user accesses it by typing in https://www.site.com it comes up but if they type any of the following in the address bar...: http://site.com http://www.site.com site.com www.site.com ...IIS returns the following error page: [CODE] How do I tweak the settings so ... | Several ways: The easiest is simply to create a web site bound on port 80 containing only a default page with a meta refresh in the header: [CODE] A little more complex: install URL rewrite for IIS and configure it to forward all HTTP request to the equvalent HTTPS request. Watch it because you might need to rewrite th... | 0 | 2 | 7,528 | 2011-12-19T14:21:52.363 | api_errors | serverfault.com | |
30,017 | SQL Server 2005 / 2008 Licensing question | Possible Duplicate: Can you help me with my software licensing question? I have read up online, and through some threads here like this one . But I'm still confused and need to see if anyone can shed some light. My company is deploying a clickonce application that will be on multiple computers (about 50). It will be ac... | Nope. You have one SQL user, but you have 50 seats hitting the box. Last time I ran through this sort of scenario, the magic number for CALs was just about 50 where it became more economical to get the per-processor license. That said, if you don't have more than 4gb of data and don't need that much horsepower, SQL Exp... | 2 | 5 | 722 | 2009-06-22T15:50:28.590 | data_quality | serverfault.com | |
107,966 | Multi-thread Informatica connections to use different processors on target database server | See this question for reference. Can data streams from Informatica to SQL Server be multi-threaded? I've got most of my problem figured out. I've split up the one large table into four smaller tables. I'm now moving the data from the four source tables to four target tables. Each in their own mapping. In Workflow Manag... | When the "Max Degree of Parallelism" configuration in SQL Server (server properties > Advanced) to 0, the server will split up the connections to use as much of the server as it can. With the way I set up the commands in Informatica, there are four separate processes. When I tested on a 2 core server, it used two cores... | 1 | 0 | 1,651 | 2015-07-24T02:59:07.527 | database_errors | dba.stackexchange.com | |
77,471 | Resources for text classification algorithms | I'm mining raw Facebook comments (irrelevant) and i am looking for an algorithm that can classify their context as negative/positive/neutral. So you can think of the output in the form of two columns. First column the comment (exists), and second column its classification. If possible i'd like for the algorithm to be a... | So, I believe what this question is asking for literature around sentiment analysis of Facebook comments (positive/neutral/negative) sentiment. There is quite a good paper on this using an encoder-decoder architecture here: https://www.aclweb.org/anthology/Q18-1002/ | 1 | 0 | 51 | 2020-07-10T06:26:48.510 | data_quality | datascience.stackexchange.com | |
264,170 | Adding a MySQL user when no MySQL users have admin rights? | I'm working on a MySQL installation that has a user already created ("admin"), but that user doesn't have a password, and doesn't have any permissions, so I can't create new users or even reset the password of that user. I'm using Ubuntu Server, and after looking through the help files I still can't find a way to add a... | AS a user who doesn't have admin access you can't add another user. This would defeat the whole purpose of authentication/authorisation. You can reset the root password following the step outlined in this link . | 3 | 8 | 14,253 | 2011-04-28T03:39:43.130 | database_errors | serverfault.com | |
298,756 | How to correctly restrict access to some folders via htaccess? | I have such directiry structure: [CODE] I allowed all image files to be accessed [CODE] I allowed all all files in certain folder to be accessed [CODE] I allowed all [CODE] files to be accessed [CODE] And at the end I added password restriction [CODE] But when I try to access any image file via browser, I get password ... | [CODE] means that the [CODE] rules are processed before the [CODE] rules. Therefore, you will get a password prompt. For any folders and filetypes that you want to allow access, just put the below config into your [CODE] : [CODE] | 3 | 1 | 12,296 | 2011-08-08T08:01:53.097 | infrastructure | serverfault.com | |
644,013 | Centos 7 with 2 network interfaces on same network one of them doesn't respond to ping from outside | I have a centos7 just installed with 2 active interfaces on the same network like this ip addr show [CODE] routing table looks like this ip route show [CODE] the problem is that i have access only to the interface with 213.78.236.190 from the outside world ie another network. I can ping-it, connect to ssh do whatever. ... | Though you mentioned that iptables was clean, you mentioned that you just recently installed CentOS 7, so I was wondering if the default firewall software for CentOS 7, firewalld, is active and, if so, whether it is blocking ICMP echo replies for one of its zones. E.g., if firewalld is active, for its GUI, running fire... | 1 | 1 | 2,671 | 2014-11-13T07:19:24.483 | infrastructure | serverfault.com | |
171,212 | Update Query With Count | I am attempting to run the below update query [CODE] However, I am getting the error: Msg 157, Level 15, State 1, Line 2 An aggregate may not appear in the set list of an UPDATE statement. How should this statement be altered in order for it to be valid update statement? | You need to do your aggregation separately in a CTE or derived table. Here's a CTE version that should work for you. [CODE] | 4 | 6 | 11,294 | 2017-04-17T15:22:01.923 | warehouse_errors | dba.stackexchange.com | |
227,641 | Help starting to design a VAR's backup strategy for many independent customers? | Is there any particular backup / imaging software which seems to be a good fit for our situation, or is there some other direction I should be looking in to meet our requirements? I realize this is a strangely-written question. Please comment if there are specifics that would help answer. To give the necessary backgrou... | This can be hard to achieve with Windows, as you would have to roll the drivers into your Windows image so it can cope with new chipsets :-/ You need to look into PXE, teach your staff how to enable customers to toggle PXE in the BIOS, and rolling out system images by handing over from PXE to TFTP to something else. De... | 2 | 0 | 188 | 2011-01-27T15:14:29.703 | database_errors | serverfault.com | |
140,633 | security issue of Linux sudo command? | I am using a Red Hat Enterprise 5 Linux box. I find if a user is in /etc/sudoers file, then if the user run command with sudo, the user will run this command with root privilege (without knowing root password, the user runs sudo only need to input the user's own password in order to run a command with sudo). Is that co... | It is not a security hole, at least no more than [CODE] is. [CODE] is just of way for an administrator for having a quick root access without using a root shell (which can be dangerous). [CODE] just requires the user to enter his own password and will indeed give him root access (try [CODE] ). However, not everyone sho... | 7 | 19 | 12,128 | 2010-05-11T12:05:14.123 | infrastructure | serverfault.com | |
241,727 | Is it possible to host a static site using Amazon S3 and still have email via MX records? | I am trying to host my private site using Amazon S3. I would like the site to be setup at the root, or at the minimum setup at WWW. S3 requires that you create an alias using a CNAME record. However, when I setup a CNAME for WWW, the MX records no longer work. I have read that this is per spec. As I am not overly famil... | A CNAME on [CODE] pointing to S3 should not interfere with MX records configured on [CODE] . However, a CNAME configured on [CODE] would definitely prevent MX entries from working correctly. To keep both email and the S3 CNAMEs, you're probably stuck with just CNAME'ing www and not the root. The MX entries should be wo... | 3 | 2 | 651 | 2011-03-01T16:08:32.280 | infrastructure | serverfault.com | |
410,370 | Mysql remote connections logging | I need to allow remote connections to my mysql server running on latest stable CentOS. I don't like this idea at all so I want at least to collect as much relevant information as possible. To be exact, I need (want) following: [datetime] 1.2.3.4 connected [datetime] 3.4.5.6 wrong password According to mysql manual , th... | There is actually a way to log all connections into a mysql itself: Assumptions: The name of the database we will use to store this information will be called admin. Create the table to store the connection information in. You don't have to include the unique key if you don't want to. [CODE] Set the init-connect variab... | 4 | 5 | 5,499 | 2012-07-23T18:30:22.427 | database_errors | serverfault.com | |
14,106 | Separate Address Table, Latitude, Longitude | We are designing a DB for a limited functionality social networking application. Users (Registered Users), Retail Outlets, etc are several entities we need to store. We need to store Address of each of these entities. Also we need to store latitude and longitude of Registered Users, Retail Outlets, etc. Initially we de... | The right answer is choice #5: use PostGIS . An example from OpenGeo : "Note the magic [CODE] operator in the [CODE] clause. This is where the magic occurs. The [CODE] is a “distance” operator, but it only makes use of the index when it appears in the [CODE] clause. Between putting the operator in the [CODE] and using ... | 5 | 1 | 1,791 | 2012-02-29T04:21:28.787 | warehouse_errors | dba.stackexchange.com | |
185,125 | How to identify the origin of a invalid connection with sql1060 | I am getting a message similar to the next one: [CODE] I want to know from which machine the connection is being tried. Do I have to use a sniffer, or does DB2 have a tool to identify this point? | The APPID in the diagnostic log entry contains the IP address and port, albeit encoded in a weird manner (see note 11). The APPID is formatted [CODE] . When the connection is local the "address" portion will be something like "*LOCAL" but obviously in this case it's remote. The remote address and port are encoded in he... | 1 | 2 | 202 | 2017-09-05T20:25:07.897 | warehouse_errors | dba.stackexchange.com | |
248,847 | Mysql InnoDB recovery, transferred from a dead Mac to Windows | After a Mac server crashed, I'm scrambling to recover records from an InnoDB table. All tables shared a single data file. I've copied ibdata1 and the two log files over to a new mysql server hosted on Windows for recovery, along with the single .frm file for the table I need. So far, recovery has failed miserably. Tryi... | try installing Subsystem for UNIX-based Applications Thsi either installs or makes available the ability to install a *nix version of mysql that might solve your problem. Technically speaking the problem isn't that windows can't handle the upper case charactors(windows can certainly display them), the problem has to be... | 1 | 1 | 484 | 2011-03-18T02:42:36.693 | database_errors | serverfault.com | |
350,239 | How to inject not Unit-testable component into Unit-testable class? | I have a class that would highly benefit from Unit tests, but few methods that call remote web server must be replaced by something delivering mock results. The probable solutions I see are: Test the derived class that overrides problematic methods (no test-related code in production, just methods must be non-private a... | Separate the remote calls into a separate object, and supply it through the constructor. This is the cleanest solution, since you would want this separation anyway (due to separation of concerns), and it mean you can introduce a dependency injection framework if you feel it would provide benefit, but you don't have to,... | 1 | 5 | 137 | 2017-06-06T09:12:02.357 | api_errors | softwareengineering.stackexchange.com | |
434,175 | Hyper-V snapshots – unable to start VM | I restarted my Host server after shutting down three guest VMs. After I restarted the machine I tried to start the VMs and got an error stating the the VM failed to start. SERVERNAME failed to start. Attachment 'avhd file path' is read only. Please provide read/write access to the attachment. Error: 'General access den... | Based on the scenario and the discussion in the comments, I would attempt to import the exported VM as Hyper-V exported it. You may need to adjust the location of files in the .exp file. You will want to delete the previous machine's configuration from Hyper-V before importing the VM, if you want to keep the same VM ID... | 0 | 0 | 1,043 | 2012-10-02T19:25:05.847 | infrastructure | serverfault.com | |
431,767 | ASPICE assessment: detail of test logs | The "VDA Automotive SPICE Guidelines" (excerpts: https://vda-qmc.de/fileadmin/redakteur/Software/Automotive_SPICE/Veroeffentlichungen/VDA_Guideline_Rules_and_Recommendations_2017.xlsx ) tells to lower the score "If the verification results (…) contain only a pure passed/failed information without a supporting verificat... | Although I've never worked in automotive and had to deal with ASPICE, this is very similar to some standards from the aerospace, medical device, and pharmaceutical industries so it's possible to draw some parallels. I don't think it's safe to assume that the key point of interest is the failed part, although it's proba... | 0 | 1 | 234 | 2021-09-09T18:08:24.527 | 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.