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
281,925
search.com instead 404 on CentOS
I have a CeontOS 5.6 box. When I [CODE] (a non-existent domain) it opens search.com instead 404. I thought this is because of the DNS servers used, so I tried it on a windows box with the same DNS servers, but I get 404 as expected on it. How can I get rid of search.com on CentOS? Update Finally... The problem was beca...
I'm sure this is not a CentOS problem. On my CentOS 5.6 if I [CODE] I get NXDOMAIN reply back. In any case, you shouldn't get a 404. 404 means that the server exists, is reachable but the page requested is not found. You should get something like server not found. And I'm highly suspecting your providers DNS being the ...
0
4
214
2011-06-19T11:42:03.653
infrastructure
serverfault.com
104,928
Manager keeps changing requirement specification after every demo
Background of my working environment My manager has no background or understanding of computers or software whatsoever. It is highly likely he hasn't seen code in any form (not even from a physical distance of 10 feet or less) in his life. There is no one who understands the complexity of what I am asked to implement. ...
The short version : Run. The somewhat longer version : If the manager doesn't know how to run a project, and if the senior goes along with it, then you have next to no chance of fixing things. In order to manage software projects, a manager does need to understand something about software. If managers don't, they need ...
21
31
3,599
2011-08-31T09:58:16.793
api_errors
softwareengineering.stackexchange.com
94,318
Scripting Directory Services without passwords
I'm in an environment where user/group information is maintained in /etc/passwd and /etc/group files, which are NFS mounted. This is nice because we can just edit flat files to change user/group information. However, the OS X machines in our setup don't like this very much, because Directory Services doesn't pick up on...
Just browsing through my notes on dscl, which I've scripted fairly extensively. I'm fairly sure that the answer is no, there is no way to avoid supplying the password. The only exception might be if you were root on the local box (which, in your example, does appear to be the case). [I've almost exclusively done change...
1
1
235
2009-12-14T21:08:19.297
infrastructure
serverfault.com
306,578
Which port of my computer is my ISP connected to?
I'm trying to find out the port number of my computer to which my ISP actually connects & provides the internet service, given my ADSL modem is operating in Bridge Mode instead of PPPoE. I initially wanted to find out others users' port numbers, but I thought first I'd find out my own. I'm on a windows machine, so I us...
I think you are searching on the wrong OSI-Layer. When it is bridged, your PC does PPPoE, and as the name says it is over Ethernet, not over TCP/UDP. So there are no port numbers. Just have a look at the OSI-Modell on the right side of the wikipedia article: http://en.wikipedia.org/wiki/Point-to-Point_Protocol_over_Eth...
-3
4
614
2011-08-30T19:57:12.463
infrastructure
serverfault.com
290,776
Mod_pagespeed, Varnish and Apache cache issues after new code pushes
I have a rather strange issue. In my environment we are running a load balanced cluster of 8 apache servers with a master-master MySQL backend. In front of apache we have Varnish in the cache layer. We have been running Apache mod_pagespeed for several weeks now and for the most part it has been working great. The issu...
Just to make sure I understand the problem it seems like you are modifying files that were served up to mod_pagespeed from varnish with expires headers that are keeping it cached beyond when it has been changed on the backend. You have a couple options here if that is the case. You can configure your backend(varnish) t...
2
1
1,772
2011-07-15T16:22:01.827
database_errors
serverfault.com
660,416
Details on the utility `memhog` in Linux environment?
I'm working on reviewing memory usage on an EC2 instance running the Amazon kernel and ran across the utility [CODE] but it has no manpage. Before blindly running, I was wondering what it does and how it use it. Anyone use this and know what it does?
I'd never heard of it before your mention of it. In an article on SCO Unix , My system is slow (Old Sco Unix) on the utility, though, it doesn't sound like it is apt for what you want to do. Linux systems have "memhog" if numactl is installed. Numactl can assign specific a process to a specific cpu and control memory p...
5
7
7,246
2015-01-18T14:38:59.863
infrastructure
serverfault.com
601,926
Why no "System Restart Required" message after Amazon Linux kernel update?
I ran [CODE] on an Amazon Linux instance and it updated the kernel. On other distos I've seen, this causes a message to appear when you login saying [CODE] . Why don't I see it here? [CODE] Reboot system and confirm the new kernel is running... [CODE]
That's mainly an Ubuntu thing (and I suppose Debian). It's part of the update-motd system, where there's a bunch of scripts in /etc/update-motd.d that occasionally rewrite the Message Of The Day that gets displayed when you first log in. Here's the Ubuntu wiki page on this Amazon Linux is derived from Red Hat Enterpris...
3
4
1,570
2014-06-05T02:12:13.030
infrastructure
serverfault.com
852,981
DD File Not Updating
I am following this thread to guide me from FreeNas VirtualBox to bhyve. https://blog.yuo.be/2017/01/04/migrating-a-vm-from-virtualbox-to-iohyve-bhyve-on-freenas-9-10/ However, I am stuck with this command. [CODE] I cannot see any progress on the terminal, and when I use WinSCP to look at the file directory, disk0 size...
You can use [CODE] command to follow your [CODE] process (all in one line): [CODE] If you have installed the coreutils 8.24, dd has a new option which enable to follow his progress : [CODE] To verify your dd version : [CODE]
0
1
209
2017-05-30T10:16:54.293
infrastructure
serverfault.com
9,109
Genetic Algorithm to find best parameter values of an estimaor
I am making some stochastic training ensemble classes in Python, and I want to get hyperparameters values. Grid search will take too long for moderate data sets, because in my stochastic training I train different learners on different dropouts, as in cross-validation, then I average or weight-average on best error for...
Having used genetic algorithms extensively in both professional projects and for my own entertainment, I think it is best to just code your own set of functions/classes for the specific project. As you have seen, there are quite a few well-intended open-source GA packages out there. However, many of the fine details an...
3
2
651
2015-11-28T19:36:54.963
data_quality
datascience.stackexchange.com
42,032
The trust relationship between workstation and domain fails for ASP.NET app as soon as the connection goes down
We have an ASP.NET app which has been installed onto a Vista laptop in order to take it offsite for a demo. The app uses Windows authentication. The problem is that the moment we disconnect the laptop from the network we get the following error: The trust relationship between this workstation and the primary domain fai...
Having seen someone report the same error on this forum . I found I was able to fix the problem by editing the web.config file and removing [CODE] from the [CODE] node.
1
1
1,359
2009-07-17T08:22:40.143
api_errors
serverfault.com
40,250
How to recover data from corrupted innoDB table from a crashed mySQL server?
Some background: I had a MySQL server running on Ubuntu Server. I don't remember which versions they were running but it was likely a Ubuntu 12.04 with MySQL 5.5. During the course of a day, connections from the client application to the server kept dropping. On the next day, the server crashed and mysql wouldn't start...
You could try to use MySQL's CHECK TABLE and REPAIR TABLE functions (but make sure you grab a copy of the table first): [CODE] If that doesn't work, try using: [CODE] According to the CHECK TABLE documentation: EXTENDED is to be used only after you have run a normal check but still get strange errors from a table when ...
2
1
10,748
2013-04-17T17:17:36.683
data_quality
dba.stackexchange.com
1,050,211
Kibana cannot be accessed through port 5601 in browser
I cannot get to kibana through web UI. I'm set the necessary ports in firewall-cmd, I've configured kibana.yml and elasticsearch.yml. I'm not seeing any relevant errors, or at least don't know if they are if they are there. It just shows 'Site cannot be reached' for the appropriate port. Later on I would like to have p...
With the help of @user9517 asking if I'm aware that localhost and 127.0.0.1 (the same in the context of external connections in this case) I was able to update the kibana.yml file with my server's IP [CODE] And this answered a follow up I was bound to have as to why my proxy_pass to kibana wasn't working for a subdomai...
0
2
10,541
2021-01-18T07:11:59.027
database_errors
serverfault.com
31,822
SpamAssassin trying to read config files under /root/
I have mail gateway servers configured to use MailScanner + Postfix + SpamAssassin as described here , along with MailWatch as a web front end. When sa-learn is run from MailWatch (it's run as the postfix user), it throws this error: [CODE] Running "sudo -u postfix spamassassin --lint -D" gives this bit of info: [CODE]...
The real fix is to disable "per-user" config in spamassassin and globally set the Baysean DB, but a quick patch would be to add the "-H" option to sudo to use postfix's home directory where it should have permission to write as postfix.
3
2
3,856
2009-06-25T19:42:48.217
infrastructure
serverfault.com
62,264
Why are my predictions bad, if my accuracy in train is roughly 100% (Keras CNN)
In my CNN i have to handle 2 classes in a binary system, I have 700 images each class to train, and others to validation. This is my train.py: [CODE] And after Run this code, it return a strange result of roughly 100% of accuracy after 5 or 6 epochs. So I try to run my predict.py code: (I know that I have to encapsulat...
This phenomenon is called overfitting . In short it means that your CNN has memorized the dataset, achieving $100\%$ training accuracy. This knowledge, however, doesn't generalize well to unseen data. I'd suggest reading this post for more details on overfitting and ways to combat it.
3
7
1,163
2019-10-26T22:06:50.823
data_quality
datascience.stackexchange.com
259,541
Unable to get the DBMS Logs in Oracle SQl Developer
I am using Oracle SQL Developer ( Version 18.4.0.376 ) and Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production "CORE 10.2.0.1.0 Production" TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production. In the SQL Query Builder the out...
This works just fine: [CODE] Then your output will look like this: [CODE] Reference: DBMS_OUTPUT (Oracle | Docs) If you want to get rid of the [CODE] message, then you can turn if off with the command [CODE] . The whole thing will then look like this: [CODE] Your output will then be: [CODE] Reference: How do I Suppress...
0
2
1,006
2020-02-12T16:54:06.657
database_errors
dba.stackexchange.com
10,324
Has anyone ran into this replication breaking bug before?
I've been having this issue where replication was breaking on colliding primary keys. The annoying thing was these were auto increment generated. I think my issues been tracked down to http://bugs.mysql.com/bug.php?id=45677 for a couple reasons The slaves that were breaking were using triggers Slaves with identical sch...
That bug is referenced in the MySQL Documentation for 5.5 and 5.1.40+ as that condition being unsafe. Note the bottom of the bug report: [10 Dec 2010 3:34] Daogang Qu Any statement that causes a trigger or function to update an AUTO_INCREMENT column is considered unsafe for statement-based replication after a patch of ...
2
1
367
2012-01-06T23:10:18.320
database_errors
dba.stackexchange.com
130,429
SELECT query types and optimization
I'm using a database monitoring system that, amongst other data, shows the following values for SELECT queries: number of joins that use ranges on the first table number of joins that do a full scan of the first table number of joins without keys that check for key usage after each row number of joins that perform tabl...
None of the above. A "full scan" is irrelevant if the table has only 10 rows. Ditto for "not using an index". There are many queries for which no index is useful; you stats will have you stumbling over them. For example, if you index a 'flag' (yes/no, M/F, etc), the optimizer will usually eschew the index and simply sc...
2
4
134
2016-02-25T10:50:26.887
pipeline_ops
dba.stackexchange.com
730,812
RewriteRule [E=let_me_in] and 'Require env let_me_in' don't work together
I have a problem similar to this: http://www.tek-tips.com/viewthread.cfm?qid=1144803 I'm trying to grant access, if specific [CODE] triggered. Setting a var using [CODE] flag, but the var seems unset when the subsequent authorization step is performed. Unconditional [CODE] doesn't work either, but surprisingly, [CODE] ...
[CODE] does not unset the custom variable on next round. It prepends its name with [CODE] (at least in cases described here https://stackoverflow.com/a/10128290/447503 ). So it's enough to change one line: [CODE]
0
0
318
2015-10-22T11:32:30.827
infrastructure
serverfault.com
327,491
How to make the task scheduler display the cmd shell when invoking a batch file?
I am using Windows 2008 R2 and I am trying to schedule my application in the Task Scheduler. I have created a batch with the right settings. The problem I have is: I need to display the Cmd shell window (with the bat running), but the task scheduler launches the application in the background and the Cmd window is no wh...
I don't think the task scheduler GUI gives any way to run an interactive task. But the AT command does appear to. I found this article on technet that describes (among other things) the /interactive switch for the AT command.
13
2
90,792
2011-11-03T17:27:10.813
infrastructure
serverfault.com
666,188
Automate NetBackup agent installation via RPM
We have an automated process of deploying new RHEL VMs. However, there's still an annoying manual step to install a NetBackup agent on the machine. This requires coyping a large archive (~ 1 GB) to the machine, extract the archive and run an interactive installation script. So I was thinking about building a custom RPM...
Take a look at fpm is allows you to build arbitrary .rpm ( and other package types quite easily). There's plenty of documentation , amongst other things you'll probably find the [CODE] useful as it names [CODE] .
0
0
2,462
2015-02-09T15:03:59.107
database_errors
serverfault.com
207,262
Create stored procedure inside try-catch block
I'm using sqlserver 2014 and trying to create a [CODE] inside try-catch block like this: [CODE] It fails to run with the error of: [CODE] Then i changed sp like: [CODE] (cover sp with BEGIN-END block), But the error did not change. I also add [CODE] after [CODE] statement and it just got worst. I'm getting to conclude ...
From the [CODE] documentation : The CREATE PROCEDURE statement cannot be combined with other Transact-SQL statements in a single batch. If you need a try/catch, you'll need to execute the DDL using dynamic SQL so that it is in a separate batch: [CODE]
4
7
4,686
2018-05-19T09:25:45.990
database_errors
dba.stackexchange.com
77,479
Cyclic relationships in ER Diagrams
I am trying to draw an generic entity-relationship diagram (ERD) to model a software object (Let's say a XML file). This XML file has references to other XML files. Also, if a XML file (say "file-A") is referred by another XML file (say "file-B"), then "file-B" cannot referred by other XML files. If I need to model tho...
Yes it is acceptable. In ER modeling, this is known as a reflexive relationship. In a relational model, it's implemented by a foreign key that references another row in the same table. The simplest example is a table of employees, where the PK is EmployeeID (or just ID) and there is an FK called SupervisorID. This kind...
0
3
2,190
2014-09-24T10:44:25.340
warehouse_errors
dba.stackexchange.com
354,611
Puppet Ubuntu remove packages no longer required
teaching myself puppet. Using Ubuntu 11.10 Puppet 2.7.1 (straight from apt) Running some test scripts on a single node (following http://docs.puppetlabs.com/learning/manifests.html ). I made a manifest that installs and starts the apache2 package ... all good. Now I want to reverse this, I make a manifest that purges t...
Unfortunately, there's no good way to do this with the built-in resource types, just two not-so-good options. The 'proper' way involves defining a [CODE] resource for all of the packages you want to get rid of: [CODE] And the 'improper' but far more manageable way would be to set up an [CODE] resource to run the autore...
5
7
5,382
2012-01-28T20:22:27.543
pipeline_ops
serverfault.com
956,936
How to manage multiple sites on the same server with Nginx?
I have 2 sites on the same Nginx server. My first site https://www.example.com all the following addresses must redirect to this domain: xx.xx.xx.xxx http://example.com http://www.example.com https://example.com My second site https://analytics.example.com the following address must redirect to this domain: http://anal...
[CODE] is redundant as this is the default. It does not need to appear in any [CODE] directives anywhere in your configuration. If present, it also can appear only once for any given address and port pair. You should remove it from all [CODE] directives.
2
4
1,860
2019-03-06T03:45:19.407
infrastructure
serverfault.com
258,080
Coordinating a complicated data migration process
A project I'm involved in has suffered a change in scope, and before I set about trying to cook up some homegrown solution, I'm wondering if there is something out there -- some framework, for example -- that will spare me from having to design and debug my own code. Let me try to explain the details as simply as possi...
It seems as though you want to keep your existing etl logic pretty much the same but need some new process to divert the data in a more dynamic way. Some type of software agent may act as a bridge between the transformation layer and db load layer, providing the extra functionality you need. I am sure something like th...
0
1
358
2014-10-04T17:55:19.503
warehouse_errors
softwareengineering.stackexchange.com
313,349
Error when i use impdp for restore from backup in oracle
[CODE] I use this command to take backup from remote oracle host and it successfully completed and I test that everything is ok. [CODE] When I use this command to restore my backup to source database that I was take backup from that I get this error: [CODE] What should I do?
PLEASE STOP calling these things Backups !! They're not. expdp and impdp are Data Transfer tools, not Recovery tools. To backup any Oracle database, you MUST use RMAN (if only for the sake of your sanity and any realistic expectation of keeping your job). According to the documentation pushing the data "uphill", into a...
0
2
429
2022-06-14T13:24:52.760
database_errors
dba.stackexchange.com
392,695
Force State changing of an Object only from Holder
Suppose I have a Button class with a color attribute. I also have a Canvas class which stores all Buttons. Every time a color is being changed, some side action must take place (in this example, for simplicity, a counter will be raised). As follows: [CODE] suppose buttons is private, so to add a new button to the canva...
This is feature envy. The method changeColor should be on the button. The attribute color is part of a button. It is the button class' job to choose how color gets mutated. So you make color private to the button class, and then the only way the color changes is if you call the changeColor method. Also note: It is the ...
-1
2
87
2019-05-31T22:57:05.033
api_errors
softwareengineering.stackexchange.com
1,139,721
How to connect to a GCP Cloud SQL Postgres server using client certs?
I'm attempting to authenticate with a cloud SQL instance using a client cert: [CODE] The server's cert is in [CODE] ; the client's cert/key in [CODE] / [CODE] . As you can see, that appears to be failing, and [CODE] is apparently falling back to password. How can I either debug this situation, or what is otherwise wron...
The password is mandatory for Cloud SQL even though PostgreSQL supports passwordless connectivity while using SSL. In your example, the user is [CODE] , which is specified by the command line argument [CODE] . Suggestion: Enforce SSL/TLS encryption
0
0
469
2023-07-28T23:30:33.310
infrastructure
serverfault.com
157,405
Css design skills
I have seen this article: CSS3 Loading elements at HTML5 and CSS3 Tutorials pages. How did someone made this calculations? what angle, how much space, how much rotation to give? If I do it with hand, starting number one, I fear it takes too long as a process to complete. Is there some tool, or some trick that do this o...
Angle / rotation: [CODE] . So, if you want an 8-sided (as is used by CSS code), use 45 degree angle increments. The time calculations are just [CODE] , with delay being 0.13. Hence, the animation duration is [CODE] and each element's delay is 0.13 higher than the previous one.
0
1
244
2012-07-19T12:57:58.080
api_errors
softwareengineering.stackexchange.com
296,111
How can I achieve predicate pushdown in my view
I have a reporting table (about 1bn rows), and a tiny dimension table: [CODE] ... to which I've added a reporting view used by an application for OLTP-style reporting. [CODE] The idea is that the user application will query this view with a SELECT query that filters on a range of dates and one or more BusinessUnits. Fo...
I'm trying to understand if this is a shortcoming of the optimizer, if it's the result of a deliberate costing/optimization mechanism, or if I've simply overlooked something. It's a little bit of all of those. There's a lot going on in the query presented — too much really — so to avoid writing half a book about it, I ...
8
11
2,005
2021-07-24T14:46:57.217
database_errors
dba.stackexchange.com
184,092
Insert Into table ommitting columns that have default values
I have a PostgreSQL database with lots of tables of the same structure, 36 columns in total: [CODE] In many instances I will have to insert records from another table with the same structure: [CODE] Is there a way of doing this without having to list all columns that don't have a default value? I think I can use [CODE]...
Is there a way of doing this without having to list all columns that don't have a default value? No you either insert all the columns using the [CODE] expansion, [CODE] Or, you insert just the listed columns [CODE] You can also use [CODE] to be explicit, but no one does that. It's in the spec however, Each column not p...
5
4
9,941
2017-08-22T16:11:25.373
database_errors
dba.stackexchange.com
266,883
Messages stuck in qmail queue forever
I have this problem with outgoing emails on one server. When the queue is clean, it sends emails pretty good, but in a few days, it happens that queue gets filled up with a few MAILER-DAEMON messages that seem to be stuck forever and new regular outgoing emails seem to be waiting for those MAILER-DAEMON messages to be ...
The messages are stuck in the queue because you are accepting and then bouncing spam, rather than rejecting it during the SMTP session. spam bounces like these are often undeliverable because the return email address is bogus or unreachable. Even when they are deliverable, it's still a Bad Thing. It's known as Backscat...
1
1
3,271
2011-05-06T05:44:01.120
infrastructure
serverfault.com
478,330
ELB Instance Out of service
After implementing ELB and Autoscalling on Amazon AWS. There's a wierd issue happens and we don't know either the reason or the fix. We installed Auto Scalling configuration to add instance of AMI ID of Windows 2008 R2 x64, SQL Express and IIS. We also let the ELB to check health on "/", normal configuration and suppos...
The health check in your ELB has five parameters: [CODE] When a new instance is started it is assumed to be in an "unhealthy" state and must successfully respond to Healthy Threshold requests, each of which are separated by Interval before it will be included in the pool. To reduce the time a new instance takes to be c...
3
7
6,897
2013-02-13T11:41:53.633
infrastructure
serverfault.com
1,372
PostgreSQL: SET-ing from psql arguments
Following this answer regarding limiting resources per query in PostgreSQL , I've been advised to set a timeout value for query execution : [CODE] This is great, but sometimes I want to relax the restriction for a specific script. Is there a way to set the timeout as a [CODE] argument? I've tried [CODE] , unsuccessfull...
You can use the environment variable [CODE] . Either set it permanently or just when you call psql, e.g., [CODE] This works for any libpq client, including psycopg. Of course you could also just put the [CODE] statement in the psqlscript.
8
10
5,492
2011-02-21T12:25:34.627
database_errors
dba.stackexchange.com
141,082
Printer deployment via Group Policy not working on a single system
One of my coworkers just got a new laptop running Windows 7 Pro x64. We use a GPO to deploy the printers to every system, but for some reason it is not working on this system. I have been breaking my head over this for the past 3 hours now without any result. The strange thing is that [CODE] seems to indicate that the ...
Is the driver already installed on the Clients? I am thinking that perhaps the users do not have permissions to install the initial driver and that is causing the addition to silently fail. update: If they don't exist already on the client you need to ensure that the point and print restrictions are set to allow silent...
5
2
10,447
2010-05-12T13:17:36.693
pipeline_ops
serverfault.com
196,945
Diff always fail to apply patch of files I make?
I have some files in my server that I wanted to make a patch for, so I took one of the files to test: [CODE] So now I have just the same file in my root directory so I make any changes I need on the file at ~/file and now I run the diff command on the 2 files: [CODE] I have also tried: [CODE] Now as you can see there i...
Is it possible that some of the files have Windows (DOS) line endings instead of Unix newlines? Try running [CODE] on them before doing the [CODE] . Both [CODE] and [CODE] (on my system, the former is a symlink to the latter) accept filenames on the command line and do the conversion in place. You can use the [CODE] op...
2
2
706
2010-11-01T15:39:53.380
infrastructure
serverfault.com
17,293
What is a GitLab locked artifact?
In the table [CODE] there is a column called [CODE] . What does this column do? It's not documented in the Job Artifacts API ? It's currently a [CODE] and it has 3 possible values: 0, 1, 2. [CODE] Even though I guess it should be?
It refers to the Locable mixin , [CODE]
0
0
132
2023-01-23T23:30:25.527
pipeline_ops
devops.stackexchange.com
670,340
Postfix POP3 NOQUEUE: reject: RCPT error
I am getting an NOQUEUE: reject: RCPT error when trying to send mail via POP3 and Postfix (note: IMAP works fine). [CODE] SSL and all else appears to work correctly, just outbound POP3 won't send to gmail I am testing on Outlook and SSL is selected with port 587 postconf -n [CODE]
Your Outlook mail client, as shown in your image: is not set to use SASL authentication. Outlook's "Outgoing Server" dialogue may not be self-explanatory: "Log on to incoming mail server before sending mail" means do not SASL authenticate, but POP first. However, your Postfix settings require SASL: [CODE] It's not clea...
-2
1
883
2015-02-21T07:05:39.857
infrastructure
serverfault.com
742,510
Elasticsearch Cluster Configuration
Brand new to Elasticsearch. I've been doing tons of reading, but I am hoping that the experts on SO might be able to weigh in on my cluster configuration to see if there is something that I am missing. Currently I am using ES (1.7.3) to index some very large text files (~700 million lines) per file and looking for one ...
Is there anything that jumps out as fishy about my cluster configuration or some advice that may improve the process? I'd say run Logstash on the Master node, so that it can make better use of the resources (RAM) it has, and leave the Data nodes to their primary job of indexing in ES. You're likely going to be CPU-boun...
0
0
695
2015-12-11T19:03:09.170
api_errors
serverfault.com
965,685
404 Not Found nginx/1.15.9 (Ubuntu)
I am running a PHP Website Where all Sub Pages are showing 404 Not Found nginx/1.15.9 (Ubuntu) But Homepage and Admin Panel {example.com/admin} is working fine. I am running Php website which is running on Nginx Server - Here is my Default Nginx File [CODE] And Nginx.conf file as [CODE] Homepage Working Fine But other ...
sudo nano +92 /etc/nginx/sites-enabled/default add a } to get the server up again.
-2
0
1,674
2019-05-03T02:53:40.773
database_errors
serverfault.com
136,428
Cardinality Estimator Question after 2014 SP1 + CU4 Upgrade
We recently upgraded from SQL Server 2008R2 to SQL Server 2014 SP1 + CU4. After a couple of weeks, there were problems with execution plans not properly estimating row counts. The problem got so bad at one point that the decision was made to revert back to the old cardinality estimator by enabling the 9481 traceflag an...
Based on my experience with such issue and as mentioned in This Blogs.msdn article You need to apply SP1 but you must also enable trace flag 4199 in order to activate the fix.SQL Server 2014 Service Pack 1 made various fixes on new Cardinality Estimator (new CE). The release notes also documents the fixes. So I suggest...
5
2
813
2016-04-25T08:48:54.290
database_errors
dba.stackexchange.com
186,196
Load balancing with one server and IIS7(.5)
Is it possible to configure loadbalancing on one server with IIS7? What I would like is to have three applications in IIS7 (sites). One site should forward the requests to the other two sites (loadbalanced). Problem is that at a customer of ours loadbalancing is used (with virtual servers). We on the other hand do not ...
I'd suggest running a load balancer in a VM on your server. Real load balancers do a lot more than redirect requests, and developing web applications to work properly when balanced raises a number of unique issues. There are a number of open source load balancing programs (in fact, many commercial load balancers are ju...
0
2
190
2010-09-30T07:33:08.037
infrastructure
serverfault.com
83,394
Need licensing recommendations for in-house written software
Currently I do a lot of development on my free time to improve my productivity at work. I've got around 50 man hours of unpaid work into a few pieces of software, but I'd rather not have them end up on work computers until they're licensed to prevent redistribution without my permission. Of course, I'm not charging the...
As the other commenters said, your work may actually be owned by your boss. In case it's not and to answer your question about the licence, take a look at the Creative Common Attribution-NonCommercial-NoDerivs 3.0 Unported Also, take a look at the list of non reusable licenses on this page: opensource.org/licenses/cate...
4
0
1,111
2011-06-12T20:39:48.457
database_errors
softwareengineering.stackexchange.com
477,972
"Forms" authentication is enabled but still see "Unauthorized: Access is denied due to invalid credentials."
"Forms" authentication is enabled in web.config but I still see: [CODE] I think it's a file permission problem. I just added a new website to IIS. is there any thing I'm missing?
When using forms authentication, it is traditional to redirect a request that is not authenticated/anonymous to the logon page. You should also disable Windows authentication if using IIS 7.0 Integrated mode.
0
1
3,282
2013-02-12T12:47:25.217
api_errors
serverfault.com
18,186
Unknown relationship
I have a problem with a database design: I have an EReport . This EReport will have a QAPCategory . User must select a QAPCategory from an set of QAPCategory . To know which QAPCategory can be selected I have done this design: Is this correct? Is this a circular reference?
There's no need for both relationships. Generally speaking, your category table should have one row per category , not per fact table row. It's OK if multiple [CODE] rows refer to the same category record, but having a category record per [CODE] record defeats the purpose of normalizing in the first place.
0
2
111
2012-05-19T05:32:20.730
warehouse_errors
dba.stackexchange.com
141,393
XAMPP vs WAMP security and other on Windows XP
Not long ago I found WAMP and thought it was a God send because it had all the things I wanted/needed (Apache, PHP, MySQL, and phpMyAdmin) all built into one installer. One thing about WAMP has been making me mad is an error I get in phpMyAdmin about the advanced features not working. I have tried to fix that error lon...
XAMPP has suffered from very serious vulnerabilities in the past and their development team is slow to respond. I know this from first hand experience because i have written an exploit for XAMPP that can still be used even if Apache is firewalled off. If you are concerned about secuirty the best approach is to an insta...
1
0
1,931
2010-05-13T06:40:24.390
database_errors
serverfault.com
1,050,313
Cannot access azure ubuntu vm after restart
I am not able to access an ubuntu vm on azure after restart. This is happening several times. Basically I created an ubuntu 18.04 LTS VM on azure and after creation I can access the machine using ssh and the correspondent keys. When the machine is shut down by the next start I got a connection refused: [CODE] I created...
You can use the serial console to either fix issue with datdrive mount or comment it out in the fstab and the VM boots up.
1
1
538
2021-01-18T17:00:18.970
pipeline_ops
serverfault.com
150,922
Flash messages in ASP.NET MVC without sessions
I'm developing a web application for Windows Azure using ASP.NET MVC 4. I would like to enforce one restriction in the architecture: do not use Session . To achieve availability on Azure, and since there is no sticky sessions, I would need to store the session data in some central service, probably either SQL Azure or ...
I worked with Azure for almost 2 years, I had dreams of building my own caching service using an Azure worker role and something like memcached. I never got around to it but it still sounds like fun, and I think it would meet your needs. Steve Marx (former azure evangelist) wrote about it on his blog a while back... ht...
1
1
2,154
2012-05-30T23:36:17.253
api_errors
softwareengineering.stackexchange.com
124,396
MySQL : table organisation for very large sets with high update frequency
I'm facing a dilemma in the choice of my MySQL schema application. So before I start here is a picture extremely simplified of my database : Schema here : http://i43.tinypic.com/2wp5lxz.png In one sentence : for each customer, the application harvest text data and attached tags to each data collected. As approximation ...
My 2-cents based on my experience using MySQL for many years is that your latter option sounds more logical and realistic. Going with one Data and one data_tag per customer has simpler overall manageability than your current schema. Coding for your second option will be simpler as well. You can ask many more MySQL expe...
2
2
1,341
2010-03-19T19:45:37.490
database_errors
serverfault.com
254,158
Processor queue length but not very high CPU usage
I've a virtual server running SQL Server 2016 (4 vcores) where most of the time there is a processor queue length of 4 (sometimes it goes up to 15) but the CPU is using 25% on average. There are about 3000 batches/sec. Using a query found in an article of Glenn Berry found on SQLSkills.com I found out that there is an ...
While the recommendations below may not specifically reduce the processor queue length below 4 on a 4-CPU VM, they will help with overall performance, which is presumably why you're asking your question. Best practices published by VMware and Microsoft recommend explicitly that you should set both a CPU reservation, an...
2
2
3,192
2019-11-26T13:10:38.280
database_errors
dba.stackexchange.com
236,955
Why does SQL Server table partitioning stop working?
For a number of reasons, but mostly the sheer volume of data, we have 5 MS-SQL (2017) sharded servers to break up the overall load on any individual server. Secondly we have a real-time table that is partitioned by asset ID in order to store the real-time data. Data packets arrive approximately every 2 seconds for each...
I imagine the slowness (and thus deadlocks, etc), and the perception that partitioning "stop working," are because your queries suddenly stop getting partition elimination. There are lots of reasons that you can miss out on partition elimination: data type mismatches and auto-parameterization (see Why Doesn’t Partition...
0
5
542
2019-04-29T16:26:10.993
database_errors
dba.stackexchange.com
1,070,369
Google VM with a postfix and mailman issue
I have a VM with Google running postfix 3.5.8 and mailman 2.1.29. The original that Google generated was similar to this: "new-host.c.agile-being-111111.internal". I've now reset the server to its final name i.e. host.org but the original Google generate name is embedded into all email and urls associated with mailman....
@Michael - I can't say as as it was earlier in the day. So I repeated the exact command in order to replicate the problem/error except this time it worked. I used the exact syntax from my .bash_history. Doing a dumpdb on the config.pck produces the correct 'host_name' and 'web_page_url'. Thx
0
1
365
2021-07-22T21:38:48.987
infrastructure
serverfault.com
507,110
dsn=5.6.0, stat=Data format error when forwarding e-mail
Our Linux host (CentOS) has several shared domains, one of which is example.com ( fake host and user names used throughout this message ); We use [CODE] to have all mail to example.com delivered to the "exmpl" user, and [CODE] forwards mail as appropriate. This method allows exmpl to maintain their own forwardings, whi...
Many others have solved this by fixing the "localhost" entry in [CODE] and/or setting up appropriate DNS entries. We did that, and it didn't fix our problem. We finally noticed this: [CODE] For mail which was correctly delivered, those log entries showed that as a full email address, e.g. [CODE] What was missing was th...
2
2
16,233
2013-05-12T17:43:31.817
infrastructure
serverfault.com
799,142
Trouble running this simple cronjob on the server every 24 hours. What is wrong?
Trying to run an 'R' script at 00:30 every day. The script is located in /home/username/Desktop/folder/runnow.r and [CODE] reveals that the absolute path to binary Rscript is [CODE] . The crontab entry that I made was using the [CODE] command and then inserting the line: [CODE] Time right now is 14:36 of course. And I ...
I figured it out after the last observation I made regarding time. This is going to make me look silly, but I had gotten the time wrong. I'm testing this cronjob in a virtual machine that has a time different from my host machine. I was scheduling the job in the virtual machine, and looking at the time on my host machi...
0
2
100
2016-08-25T18:42:50.910
infrastructure
serverfault.com
30,923
Practical application of EXISTS vs. LEFT JOIN to find addresses for delivery
Our end users have many ways of shipping product to our customers. They can use the customer address in one table ( [CODE] ), a specific delivery address in another ( [CODE] ), or yet another delivery address in another table (for customers with multiple locations) ( [CODE] ). These all have roughly the same structure,...
While you can use [CODE] to determine whether, say, a dropship address is present, you can't use it to tell what the actual address is. [CODE] doesn't return any data. For that, you'll need the join. A better design might be well-served here, for example a single [CODE] table with a type. But as I understand it your mo...
6
5
255
2012-12-21T18:34:12.437
warehouse_errors
dba.stackexchange.com
790,506
The request was aborted: Could not create SSL/TLS secure channel
I have seen a few of these questions around but they are related to IIS or something similar. I am using Apache with Nginx reverse proxy and cloudflare enabled with full (strict) SSL and the PEM and KEY files installed on the server my end. However when I check out my domain health report I get this error for the webse...
I believe the domain health report is simply telling you that it can't create an https connection to your website. I don't know why it can't create an https connection, because https works fine for me, and the various SSL checking and general testing sites say it's fine (example here , here , and here ). I would guess ...
0
0
1,170
2016-07-18T17:36:45.520
infrastructure
serverfault.com
538,524
HPC / EC2 - optimizing NFS for relialibility
In AWS-EC2, I've set-up a cluster of linux virtual machines made of an NFS fileserver and many clients. If the number of clients is above ~20, under heavy I/O, I am experiencing loss of file integrity: e.g. gzipped files written by a client to the server are corrupted. I am wondering what is the best set of NFS paramet...
For the size of the cluster being used it may be a good idea to consider moving to a parallel file system like gluster . Alternately if the cluster is configured correctly every node should be aware of every other node either via DNS or by lookups to [CODE] and should have appropriate ssh keys to access them without a ...
1
0
272
2013-09-12T21:35:16.270
api_errors
serverfault.com
90,810
How to identify the feature that make the model misclassifed in text classification
Hi I am working on social media financial THAI text classification, the problem with this one is the confused classes, the misclassified prediction has a pattern that consistent as a pair. and I want to know how can I identify the word/feature that responsible for the misclassified and lead the model to confuse with th...
I think we would need more information about the model architecture you are using and the features you engineered for training. Something I like to do when starting to work on text classification problems is to gradually increase the complexity of the architecture and start from simple approaches. So if you are using [...
0
0
121
2021-03-18T02:51:14.563
data_quality
datascience.stackexchange.com
24,656
Machine Learning algorhtm that can be trained to learn Pig-Latin
Pig-Latin , and other similair argots , were quite popular when i was young (but since i grew up in Sweden the biggest was Rövarspråket ). These language games almost always consist of a given set of rules from which letters and words are translated into something else. For example in Pig-Latin the rules are the follow...
Look at Neural Machine Translation models, you could either 'cheat' and tokenize both the English and the Pig-Latin words or you could make it character based which I think is more interesting and it allows to generalize for words out of dictionary. These models are called sequence to sequence models and there are plen...
0
1
262
2017-11-13T07:45:19.650
data_quality
datascience.stackexchange.com
319,339
How can I refine my query in a best way with optimum results (for large database)?
How can I refine my query in a best way with optimum results (for large database tables) ? See the tables structure and the query below [CODE] I tried to optimize the query with same results. please see my query. I used two inner join by using the same derived tables which is fine. Our client is now experiencing the sl...
stop right there Before you spend any more time on the query as written, you need to understand that you're writing this type of query in the second worst way possible, and incorporating a lot of other painful anti-patterns that will haunt this query for the rest of its days. optional parameters The optional parameter ...
1
4
174
2022-11-08T13:12:07.973
database_errors
dba.stackexchange.com
182,542
MongoDB responds slowly during the WiredTiger Checkpoint writing process
We have 3 instances of MongoDB [CODE] configured as a replica set. Journaling is enabled, the storage engine is WiredTiger. Most of the time our application produces a very low load on the database server and it works well, but rarely we launch a background maintenance causing x10...x100 load increase, mostly due to [C...
We have updated MongoDB and the issue disappeared. Most likely it was related to the bug: https://jira.mongodb.org/browse/WT-3362
3
0
1,360
2017-08-02T20:15:24.863
database_errors
dba.stackexchange.com
483,971
Why do Layer 7 load balancers configuration not require any client configuration changes?
For example, for [CODE] (layer 7) load balancing, you only need to configure the "real servers" or "backends" behind the VIP (i.e., cluster IP). E.g.: [CODE] However, with [CODE] (layer 4), I'd need to either: Set the [CODE] machine as the router to implement "NAT Routing" The [CODE] machine and the backends have the V...
With LVS, your network traffic essentially goes from the client directly to your backend server. Having a third host (semi-transparently) involved here is not a normal network configuration, which is why it's fairly difficult to implement. With haproxy, your network traffic goes from the client to haproxy, then haproxy...
2
7
1,022
2013-03-02T01:03:45.180
infrastructure
serverfault.com
250,819
How to develop cross platform mobile applications with native UI and Javascript backend?
I want to build a cross platform(Android, iOS, Windows) mobile application. I want the UX of the application to be different on the different platforms so that it will be more platform specific and does not force different platform users to stick to a common UI, as this common UI might not gel well in terms of look and...
To 1: I know that Xamarin has a proprietary way based on their implementation of .NET. You can use one language to build the common application backend and there are wrappers for the native libraries. They share the philosophy of building the GUI with the native libraries. It is not javascript though.
5
2
2,412
2014-07-23T06:18:52.153
api_errors
softwareengineering.stackexchange.com
680,609
Allow domain users to modify local printer settings Windows 7 via Group Policy
I've been scouring the internet for days and thus far have had zero luck in finding a solution. Short Version: I need to allow users to modify their locally installed printers. Specifically, they need to be able to rename the printers and change the assigned port (IP address). I'd like to be able to push this out throu...
" Load and unload device drivers " should do the trick. (Computer Settings -> Policies -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment -> Load and unload device drivers) Be aware that this may grant more privileges than you intend. That said, granting "Load and unload device drivers...
5
2
9,497
2015-04-06T01:41:31.120
infrastructure
serverfault.com
121,340
Windows XP IIS 5.1 MetaBase corrupted somehow, reinstalling doesn't help
Somehow my MetaBase.bin is corrupted on my Windows XP machine. I've attempted to uninstall and reinstall IIS numerous times. I did see the Reinstalling IIS on WinXP machine post here which I made sure to follow exactly however after uninstalling IIS the Inetserv folder does not get completely removed it is left with. M...
Looks like the problem occurred when trying to write the Cryptographic information in the Metabase i.e. iis_core:WriteSDtoMetaBase:Start. I suggest you uninstall IIS. Rename the MachineKeys i.e. machinekeys those are starting with c23 and 7a4. Then try reinstalling IIS. Hope this helps.
0
2
1,657
2010-03-11T00:12:54.480
data_quality
serverfault.com
477,617
ldapsearch -ZZ hanging
I have just setup Openldap using the following instructions http://www.computerglitch.net/bin/texts/CentOS6_LDAP.php The normal connection returns what is expected but the tls test just hangs. Any idea what I done wrong here. I spent a day and a half searching the web for answers but I have yet to find anyone with a si...
Have you symlinked the cert to it's hashed value? i.e.: [CODE] If you have intermediate cert(s) you'll need to do it for that/them too. If you have an your are still getting problems could you run: [CODE] and paste in the output (assuming openldap is listening on port 636). Assuming your cert is: [CODE] Then you would ...
1
2
2,843
2013-02-11T14:00:10.350
infrastructure
serverfault.com
964,184
Data corruption when rsync command fails
I am using rsync to copy data from machine A to machine B over a network. If rsync fails while copying the data from A to B, will the data at B get corrupted ? Does rsync has any inbuilt mechanism to tackle this data corruption ?
It does have a built-in mechanism. The new file will be created with a temporary name, and will only be renamed to the "real" filename once it's completely transferred. You should read the rsync man page for more information about this, including ways to override it.
-2
4
406
2019-04-23T09:53:59.100
data_quality
serverfault.com
314,446
How to use WMIC to connect to remote machine and output netstat to a file?
I'm trying to issue the following command remotely: netstat -ano > C:\output.txt but cannot figure out how to do that with WMIC! Any idea? I've got: [CODE] working but I cannot figure out how to pass the -ANO nor the output. Help please :)
When issuing remote commands, quote the entire string to execute, like: [CODE]
1
2
51,993
2011-09-22T15:51:28.190
infrastructure
serverfault.com
396,959
Never make public members virtual/abstract - really?
Back in the 2000s a colleague of mine told me that it is an anti-pattern to make public methods virtual or abstract. For example, he considered a class like this not well designed: [CODE] He stated that the developer of a derived class that implements [CODE] and overrides [CODE] has to repeat the argument validation. i...
Saying that it is an anti-pattern to make public methods virtual or abstract because of the developer of a derived class that implements Method1 and overrides Method2 has to repeat the argument validation is mixing up cause and effect. It makes the assumption that every overrideable method requires a non-customizable a...
23
31
5,925
2019-09-04T13:57:51.013
data_quality
softwareengineering.stackexchange.com
858,321
Centreon Installation on RedHat 7.
If anyone has experience of installation of centreon on Redhat your help is much needed. I'm following Guide https://documentation.centreon.com/docs/centreon/en/latest/installation/from_packages.html to setup centreon on Redhat 7.3. Step Install a central server [CODE] completes without any error. Next i have to access...
If you already had MySQL server installed for other purposes, the Centreon installation may not be able to add database user without root password. I'm not sure whether the installation has asked for it at some point or not, but you can probably add the user manually and set the same password in Centreon configuration ...
2
0
1,998
2017-06-28T10:46:20.080
infrastructure
serverfault.com
213,756
What exactly does it mean that storing “large blobs in the database reduces performance”?
To someone who knows database internals this may be an easy question, but can someone explain in a clear way why storing large blobs (say 400 MB movies) in the database is supposed to decrease performance and what exactly does that mean? This is a claim often found throughout the internet, but I've never seen it really...
This really depends on the DB system, but one major thing you have to consider with BLOBs is transaction processing. By externalization to the filesystem, one takes changes to the binary data out of the transactions. That will typically result in faster write operations, opposed to the situation where the DB assures yo...
8
9
1,568
2013-10-08T11:28:05.830
database_errors
softwareengineering.stackexchange.com
1,105,788
account lockout policy - what happen user tried logon with wrong password 3 and use the correct PWD on 4th time?
Password settings attribute in question: A number of failed login attempts value set to 4. Reset failed logon attempt counter reset to after 1 min Scenario: When the user use the wrong password to login thrice and he used the right password on 4th time. Within a min, he lock the system and tried with the wrong password...
A successful login should clear the bad password counter on the PDC Emulator. This attribute does not replicate.
-1
0
345
2022-07-16T21:35:08.817
infrastructure
serverfault.com
134,341
Session size management
From what I know, the session information is usually saved on the server. In Java the data is handled as a Map which I guess contains the a String identifier and an object reference which points to a memory zone from the server. Considering that, is it safe to assume that storing a [CODE] file on the session will not h...
You shouldn't store it in session but at the same time you also shouldn't load the Properties file after each request because of the detrimental impact that repeated file I/O will incur. Store it on the ApplicationContext which allows the one Properties file to be loaded into memory once and can be used to the beneft o...
6
6
1,454
2012-02-10T11:33:19.970
api_errors
softwareengineering.stackexchange.com
78,522
is this a hacking attempt?
So today I was surprised to find this in my error.log. The domain was registered a few weeks back, and its private. No one but knows me. I put an authtype login. [CODE]
the [CODE] is a very common request signature from the "Dfind" vulnerability scanner. The Dfind scanner appears to be something that gets installed on people's Windows boxes as malware or trojans, but it can be downloaded legitimately from a few sources (just Google it). It's basically checking for holes in your securi...
0
2
554
2009-10-27T00:24:04.917
infrastructure
serverfault.com
284,436
Generate a table that shows a monthly series and the number of tasks done per month
I'm trying to generate a table that will show the number of tasks that were completed in each month. The table has the following columns: id job_name job_status date_completed My goal is to query the number of completed jobs per month between two values (e.g. 2021-02-01 [Feb 2021] to 2022-02-28 [Feb. 2021]), with the c...
The order of the months are not arranged in ascending order To sort by date, the ORDER BY should be applied on the date or timestamp column. If the ORDER BY is applied on the result of to_char(), which is text, then the rows will be sorted alphabetically... and since August starts with an A, it will be first. So, using...
1
0
2,078
2021-02-01T13:16:01.457
warehouse_errors
dba.stackexchange.com
850,933
Debugging OpenLDAP when using SSL/TLS
I have [CODE] version: 2.4.31-1+nmu2ubuntu8.3 spun up on Ubuntu 14.04. It's configured for TLS over port 389, as well as SSL on 636. I've run into a query problem testing a new application and not quite sure how to debug it. I can run [CODE] on the ldap server but unless I drop port 389 to cleartext, it's not much use....
You will want to set [CODE] to include [CODE] and [CODE] . This will cause OpenLDAP to log query and response information to syslog facility [CODE] . You will also need to ensure that [CODE] is sent to somewhere you can read it, e.g. make [CODE] and have it contain [CODE] .
1
2
2,990
2017-05-18T15:43:42.093
infrastructure
serverfault.com
13,699
Testing docker image builds when low level libraries change
Background In our organization we have many small repos for shared libraries used among our applications. Particularly, we have many Python libraries and Python applications. We have a structures like: [CODE] : produces package [CODE] [CODE] : produces package [CODE] [CODE] : produces a package [CODE] , depends on [COD...
So I believe I came up with a somewhat re-usable solution for this problem using devpi . It allows you to use the same Dockerfile for the testing and production image. Devpi allows me to create my own index which can shadow my production index with versions of software that haven't been officially released. Steps to ma...
1
1
47
2021-04-10T05:51:28.390
pipeline_ops
devops.stackexchange.com
628,147
Nginx proxy based on SNI without decryption
I am currently using the following (simplified) configuration to proxy http and https connections over the same port (required by aws elastic beanstalk): [CODE] I want to change upstream to uwsgi and let uwsgi handle ssl because it would simplify deployment. How can I adjust my configuration to work for SNI HTTPS and H...
NO , you can't do with Nginx. By default, Nginx is always decrypting content, so Nginx can apply request routing. Some solution that can be tried: There are 3rd party module called nginx_tcp_proxy_module . I haven't tried it yet. Because that module do proxy on network layer, so it will passing request without decrypti...
5
2
9,572
2014-09-12T17:54:24.240
pipeline_ops
serverfault.com
708,393
Laravel: default route will render but others will not. Ubuntu/14.04 / Apache2 configuration issues? Not sure what I am doing wrong
Laravel will render the default / root page normally. but will not render default routes or error pages. My web browser will return with Apache (NOT Laravel) error pages with I try and access /test Here is some info (please let me know if you need more detail) Server Directory Tree [CODE] Views (test view is copy of th...
Changing my Apache config file to the below resolved the issue. [CODE]
0
2
4,341
2015-07-25T00:53:59.560
infrastructure
serverfault.com
197,897
MariaDB optimisation
I stuck a bit with setting the best performance of MariaDB on my VPS. I have: 6 cores; 16GB RAM; 300GB SSD; CloudLinux; LiteSpeed [CODE] I've installed some monitoring tool for SQL. This software emails me every hour about slow queries. Log file is now 500mb... log created in 12h :/ I run on this VPS only WordPress web...
You "can't tune your way out of a performance problem". My tips: Don't use MyISAM; switch to InnoDB: http://mysql.rjweb.org/doc.php/myisam2innodb WP has a sloppy table definition for wp_postmeta. Improvements: http://mysql.rjweb.org/doc.php/index_cookbook_mysql#speeding_up_wp_postmeta Slow queries is huge. Tips: http:/...
1
0
322
2018-02-14T12:41:35.247
database_errors
dba.stackexchange.com
12,494
Methods for Determining Possible Causation Between Two Time Series
I'll set this question up as a simplified example: We hypothesize that there is a causal relationship between average gasoline prices and road traffic in a particular city. The data cover the same time period at the same frequency (e.g.: weekly) and contain no missing values. We'll put aside the idea that there could b...
I find two possible solutions: Granger Causality and Convergent Cross Mapping (CCM) . Granger Causality is based on the t-test of lagged value of first variable with the second variable. The limitation is that it could not eliminate the confounding effect. The CCM first build the manifold for the first variable X. Then...
4
4
396
2016-06-29T19:50:30.070
data_quality
datascience.stackexchange.com
83,487
Automating install of several applications
I'm trying to discover a reliable way of bundling several applications that may use different installer software (InstallShield, MS installer Service, Wise, etc) and automating installation of them all in some fashion. I haven't seen any product out there that reliably does this. Here's what I would like it to do: Inst...
I have used a technique along the lines of pjhayward's solution for years. Our company uses hundreds of different programs, some from large commercial providers and others from one-person side businesses. The technical proficiencies of these vendors are all over the map, particularly when it comes to designing installe...
4
3
1,805
2009-11-11T01:49:45.847
infrastructure
serverfault.com
302,264
Delete redudant values of resultset
Using MySQL Workbench I managed to make a create and insert script (see all they way down). With the script [CODE] I can generate the resultset below: Question : How can i manipulate with SQL the resultset to have duplicate values not visible, for example having a resultset like this: Create script [CODE] INSERT Script...
One way of achieving it is using [CODE] function in mysql if you are using [CODE] above. [CODE] Here is a complete repro in dbfiddle Note as you haven't given how to define the duplicate, i have added [CODE] as [CODE] clause and in the order of highest [CODE]
0
0
36
2021-11-07T13:48:40.433
database_errors
dba.stackexchange.com
813,782
is it bad practice to rename computers in the domain?
in some of our Work routines. IT supporters will eventually take a device that has been prepared for 'unnamed user' then when 'Peter' is hired.. he will rename it 'win10peter01' that is our naming convention. I can't change that so no bother discussion it'. Now a colleague is saying, that the IT supporters should first...
The names are only there to make the work easier for puny humans. The DC identifies objects by their SID.
1
3
1,841
2016-11-08T13:04:01.487
infrastructure
serverfault.com
390,412
wall command + broadcast message not appears on second cluster machine
I have two cluster solaris machine ( machine1 , machine2 ) I have connection between two machines ping and ssh work fine ( cluster is fine ) [CODE] I execute the following command: [CODE] on machine 1 I see the message “TEST” But when I check the message “TEST” also on machine2 , then I not see the message “TEST” Pleas...
Working as Designed. [CODE] writes a message to the terminal of any user currently logged in to the local machine . It has no concept of "cluster", and no ability to talk to other machines (and even if it did, having such behavior as the default would be highly undesirable in the majority of situations). If you want to...
0
5
975
2012-05-18T14:30:56.033
infrastructure
serverfault.com
853,032
Nginx Vhost shows the default index page and not the one that defined
I recently installed nginx on debian 8.8 server. I have registered a domain name and now I want to create a virtual host to serve it. (In the future I might add more virtual hosts for other domains.) The problem is that every time I enter [CODE] I get the default nginx welcome page rather the one I created under [CODE]...
The issue is that your virtual host where you specify your domain names has no other content. You need to delete the first [CODE] block and move the [CODE] directive to the second block.
1
2
1,986
2017-05-30T14:12:13.087
infrastructure
serverfault.com
802,098
How to filter out identical double requests on server
I've noticed that my Django application from time to time makes double database queries, instead of just one. The log file shows two similar requests at (almost) the exact same time. Example: [CODE] This is a critical flaw in my system and I need to fix it asap. Question: How can I filter out double requests? Im using ...
It's doesn't look like a double db query, but a 301 redirect from [CODE] to [CODE] (it adds the trailing slash)
-1
1
459
2016-09-09T12:55:26.247
infrastructure
serverfault.com
240,995
Can we put an equal sign (=) after aggregate functions in Transact-SQL?
I have encountered a script like this: [CODE] I can't understand the meaning of the equal sign (=) after the second keyword sum. When I run the query it is not showing any errors both with the equal sign and without. I want to know the purpose of putting an equal sign after the keyword [CODE] . Is that a mistake or not...
This is documented in UPDATE (Transact-SQL) : SET @variable = column = expression sets the variable to the same value as the column. This differs from SET @variable = column, column = expression, which sets the variable to the pre-update value of the column. In your code example, [CODE] is the (unwise) name of a column...
11
19
1,001
2019-06-20T05:24:29.327
warehouse_errors
dba.stackexchange.com
926,492
How to add a second router to LAN for certain destinations
I have an office LAN 192.168.1.0/24 which has a general internet connection via Router1 which is the default gateway on our LAN. I wish to add a second router/gateway which will route messages to a certain WAN IP via a private Ethernet connection (WAN side is 192.168.12.153/30). What steps do I need to take to make thi...
I think you can use two approaches: On your DHCP server for 192.168.1.0/24 subnet, use DHCP option 121 to push static route on your clients (with 1.2.3.4/32 as a network and 192.168.1.250 as a destination) and for devices with static IP addresses you have to create static persistent routes manually. // this is direct r...
1
2
1,449
2018-08-15T10:39:29.177
infrastructure
serverfault.com
115,349
SSAS - what could I monitor in SSAS to fine tune its memory settings?
This question is a follow up from the SSAS - what could be a good starting point for memory settings? What and how can I monitor the server resources in order to best identify the settings that I should apply to my SSAS instance? In this case we're talking about sql server 2014, and the server is a windows server 2012,...
When trying to fine-tune your memory settings there are two things you'd want to watch: MSOLAP Memory counters for your server in Performance monitor Specific DMV queries over discover_object_memory_usage rowset and discover_object_activity rowset. You can always use a third-party tool to monitor your resources. Also, ...
2
1
1,072
2015-09-17T11:36:03.970
database_errors
dba.stackexchange.com
8,893
How to protect against against data access if USB drive gets lost?
Using any external USB drive under Windows XP, how to encrypt/decrypt files on the fly, but without too much slow-down from the overhead. Most of the obvious solutions like Truecrypt won't work because with these the host system needs to have first had some drivers installed by a system administrator. How to have an en...
I second the vote for TrueCrypt. As to the problem of accessing it on Windows: You can use FreeOTFE to read TrueCrypt data under Windows. It offers FreeOTFE Explorer, which, unlike regular TrueCrypt (or FreeOTFE) does not need admin privs (it also does not need installation).
4
2
535
2009-05-16T10:26:23.460
infrastructure
serverfault.com
68,697
How to deal with errors of defining data types in pandas' read_csv ()?
I have a table with 118,000 rows and 80 columns. I would like to select 8 columns from the table. I am reading the file using the pandas function [CODE] command as: [CODE] I would like to change the data type of each column inside of [CODE] using [CODE] , but this does not work. There is a message that column 5 has mix...
If you see the warning that your column has mixed types, but you only see numbers there, it could be that missing values are causing the problem. In Pandas 1.0.0, a new function has been introduced to try to solve that problem. Namely, the [CODE] ( docs ). You can use it like this: [CODE] then check the type of the col...
0
0
3,127
2020-02-26T02:06:08.323
data_quality
datascience.stackexchange.com
802,529
Do you trust LACP?
Are there any reasons why I should not rely on LACP when designing network topology? I exactly mean L2 switch to hypervisor connection, so it is the place where agregated traffic of VMs cumulates. We are talking about 5 x 1 GbE LACP bonding. I am in disagreement with my colleague. He says: "Why we should add another la...
To tell the true, LACP was born exactly to solve a dangerous problem itself caused by LAG (Link aggregation Group). When used between directly attached interface, LAG is not dangerous. In such a setup, basically any network problem can be tracked back to a port with no link - which automatically instruct the switch to ...
4
6
794
2016-09-12T10:46:22.840
infrastructure
serverfault.com
455,955
Cpan/m fails to install Cache::Cache because of method "set_size"
just starting out with perl (trying to get an Request Tracker install working): For some reason I can't install Cache::Cache! (or rather the tests are failing): Notes: perl 5.8.8 on CentOS 5.8 Final (x86_64, 2.6.18-308.13.1.el5), Apache 2.2.23 (I've seen no reports for 2.6.18-308 on cpan.org, but some versions of 2.6.1...
Is there a reason you are installing modules from CPAN on CentOS instead of using the CentOS repository /RPMs for the perl modules? If not, then you might try using RPMs from the EPEL repository: http://fedoraproject.org/wiki/EPEL They have version 1.05 in EPEL for CentOS 5: http://mirrors.kernel.org/fedora-epel/5/x86_...
3
1
953
2012-12-07T07:32:23.007
infrastructure
serverfault.com
82,110
Can I use the code created by another agency when working for a client?
Let's assume that my client ( C ) has a corporate website, created by an agency ( A ). A created a pretty simple, yet well designed website which uses plain HTML and no backend to edit any of the data. C has to issue (and of course pay) A every time they want any changes to their website which has become pretty expensi...
This is really a question for client C . They should know what the terms of their contract with agency A were. Having said that, I would be beyond astonished if their contract did not state that they (client C ) owned the copyright on the graphics, HTML and CSS that agency A produced for them.
0
3
144
2011-06-07T06:23:07.027
api_errors
softwareengineering.stackexchange.com
927
Bug in bounty system? +100 bounty from a rep 65 member
So a reputation 65 member put a +100 bounty on this question: Why does cold water always mix in bathtub mixing valve, even on hottest setting? I thought it odd, but whatever. Should it have been possible to set that level of bounty, and what happened to the bounty in the end? Can bounty draw from other SE sites, and if...
As noted in the other answer , the OP had over 160 rep at the time he created the bounty, so a 100 rep bounty was within the rules. See the FAQ on [Meta Stack Overflow] for more than you ever wanted to know about bounties. In this case, the bounty expired about 7 hours ago as I write this. The person who created the bo...
bug,status-bydesign,reputation,bounty
0
3
95
2014-02-07T23:42:54.443
other
diy.meta.stackexchange.com
45,051
Formatting T-SQL in SSMS 2012
According to this Microsoft document: http://msdn.microsoft.com/en-us/library/ms174205.aspx I am supposed to be able to use ctrl+K then ctrl+D to format my SQL documents in SQL Server Management Studio 2012 but when I use that combo I get the error: The key combination (Ctrl+K, Ctrl+D) is bound to command (Format Docum...
The keyboard combination you're after ( Ctrl + K , Ctrl + D ) is for "formatting" - but not to the extent you seem to expect. It is not a prettifier, it is just used to insert correct spacing and tabs as found in [CODE] - so if you highlight a portion of text and hit the keyboard combination, it is supposed to convert ...
40
43
79,596
2013-06-21T15:15:31.817
database_errors
dba.stackexchange.com
218,455
Date parameter format problem
On a report parameter of data type DateTime, when I select a date using the date picker, it uses my local format (dd/mm/yyyy), but then I get an error that the value is not valid for the data type, but as soon as I enter a date in the US formt (mm/dd/yyyy), the report runs but the date gets displayed correctly in my lo...
An application ran by a different user account (eg networkservice localservice etc) may have different locality settings. This will effect how datetime objects are parsed to strings.
0
0
1,357
2011-01-04T06:27:33.317
infrastructure
serverfault.com
286,928
Openvpn basic configuration for full traffic routing
My client machine is Ubuntu 11.04, my server machine is Ubuntu 10.10. I'm trying to achieve the simplest quick and dirty solution possible to get all my client machine's traffic to be redirected to the server machine and from there to the internet. For the I'm trying to follow this guide http://openvpn.net/index.php/op...
I do this on my home Wifi, because I don't trust WEP/WPA. The relevant setting on my OpenVPN server is: [CODE] That tells the client "I want you to route all your traffic through me". From there, I can deal with the traffic on the server as I would any other traffic that I need to route. The only caveat is that you nee...
0
1
1,237
2011-07-04T21:06:55.867
infrastructure
serverfault.com
905,332
getting ipv6 via radvd/dhcpd6 in an LXC guest working
what i want my setup has a dynamic amount of LXC containers and therefore i need some dynamic ipv6 address allocation. the interface brNC-internet is a simple bridge which is mapped into the LXC based container. i need a way to assign ipv6 addresses in LXC containers to the [CODE] interface of each. manually doing so w...
ok, here we go: after 3 full days of trying different configurations, reading about 40 webpages and a hell of luck, here is how i got it working: needed a special dhcpcd.conf (default won't work) needed a special dhcpd6.conf (default won't work either) needed a special radvd.conf (there was no default) and only with th...
1
4
2,420
2018-03-30T12:27:55.093
pipeline_ops
serverfault.com