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
763,233
Catch All Email for Old Domain?
We've been on our new domain for over a year now and we have removed our redirects from the individual accounts but my boss wants to have a catch all email account so just in case there are messages even if they end up as spam (we're limiting the quota to 1GB). I've checked online and found a article for a general catc...
You should still be authoritative for the domain, not relaying. The bounceback message you recieved was due to recipient filtering. The message was being rejected despite your transport rule since the recipient did not exist. You would need to disable recipient filtering on the Edge Transport server to get past this. R...
2
1
254
2016-03-11T20:19:37.397
infrastructure
serverfault.com
276,759
Corruption of files in postgres: The database subdirectory "base/13067" is missing
Right, my PostgreSQL database 11.1 is on top of a GlusterFS . My GlusterFS break, my backup was being done on another table and I don't have backups anymore. I started the database on a docker container, and i recived some erros: [CODE] Basically, I only have the postgres data directory. The files on directory are: [CO...
It is hard to know what the limit of the corruption is. If this is the only problem, you should be able to get the globals with: [CODE] And the data with: [CODE] If this works, it would allow you to reload your data into a new cluster.
1
0
3,258
2020-10-08T15:14:06.983
data_quality
dba.stackexchange.com
446,958
Class design using Open and Close Methods
As the title says, Im thinking if it's a good practise to have classes that have Open and Close methods in the sense that they can be reused without a new instance being created again. Also, if I want to use Dependency Injection with the class and use it with IoC, then I dont think I can pass for example a "filePath" a...
I am thinking if it's a good practice to have classes that have Open and Close methods Not in general. But in this example, where a class creates an abstraction for some file writer or stream writer service, where the terms [CODE] and [CODE] are well-established and popular, such methods make sense. It will allow you t...
2
3
171
2023-08-08T16:58:45.487
api_errors
softwareengineering.stackexchange.com
42,008
Multiple classification algorithms are predicting always exactly with the same scores. Is that normal? If not, what should I suspect?
I have been working on a multilabel classification problem. I am using Python machine learning libraries to implement the classification algorithms. For the cross-validation, I am using repeated K-Fold cross-validation. I have experimented with SVM, Logistic Regression, Random Forest, Decision tree, K-Neighbour, and Na...
Same accuracies and losses for multilabel classification usually refer to the fact that model just chooses majority class. Please check the confusion matrix. Definitely, it is not a normal occurrence and you need to deal with it.
0
1
231
2018-12-03T04:28:23.400
data_quality
datascience.stackexchange.com
313,943
Create a bridged network connection using only the command line
I want to bridge two network connections on a Microsoft Hyper-V Server 2008 R2. As I'm essentially using a "Server Core", GUI is not available, so I can't use the usual way. (Right click the network connections and select bridging). Also the [CODE] command is only available if you have already created a bridged connect...
The Technet documentation claims that [CODE] . Although there obviously must be some API (probably even a WMI API as this article is suggesting) for this purpose that the network connections control panel is calling, it seems undocumented. I'd try the reverse-engineering route and just use process monitor to see what r...
4
1
4,613
2011-09-21T14:38:49.943
infrastructure
serverfault.com
46,198
Which is faster among MySQL Community Server, Percona and MariaDB
I have a small setup of MySQL Community Server version 5.6 running on KVM based VPS. 4 CPU cores are available and total memory is limited to 1GB. I use MyISAM tables mainly for Wordpress and few other personal projects. Which server can best suit my requirements among MySQL Community Server(all 5.x versions), Percona ...
I recently ran into this benchmark results: https://blog.mariadb.org/benchmarking-mariadb-5-3-4/ The conclusion here was that MySQL-5.5 is the mos performing among others. The tested editions here are : MariaDB-5.3.4 – the Monty Program release candidate, both with XtraDB and the InnoDB plugin Percona-Server 5.1.61 bec...
1
2
3,133
2013-07-12T04:20:50.903
database_errors
dba.stackexchange.com
723,609
Moving /usr on ArchLinux
my root partition is full, and, by a mistake during installation, my /usr was not splited on different partition. Now, when I move this, configure fstab like following: [CODE] Next, I moved original /usr to a copy like /usr_old When I reboot my system, it give following message: [CODE] If I move back /usr_old to /usr, ...
Looking for a solution for a separated partition for /usr, I found important things about it on system inialization. root / partition is mount on ramdisk partition type It is managed by mkinitcpio, responsible to build an initial ramdisk environment during system startup If /usr is built on a separated partition, you s...
0
2
1,264
2015-09-20T17:09:05.880
infrastructure
serverfault.com
28,185
Database Indexing - Maintenance Jobs
I have created a script that runs every night to rebuild & re-organize indexes based on the fragmentation, Indexes with Fragmentation > 30% are rebuilt, Indexes with Fragmentation 10% - 30% are re-organized. After running the script I noticed we have about 400 indexes that are still reflecting a fragmentation count of ...
Thanks for your answers, I ended up using a script from there http://ola.hallengren.com/ Must have been something that my script was not catering for e.g. xml columns all is working great now.
5
0
2,030
2012-11-05T13:10:28.877
warehouse_errors
dba.stackexchange.com
337,153
Naming: Should you sacrifice briefness for clarity?
For example, the following function loops through an array which contains the name and errors of an input field. It does this by checking the name of the validating field and then pushing the error info to the invalid fields array. Is it better to be brief and write this: [CODE] Or be more specific like this? [CODE]
If brevity can be sacrificed for clarity, it should. But if verbosity can be sacrificed for clarity, even better. [CODE] When a variable only lives as long as one line it can be very short indeed. [CODE] is used in three lines and is the focus of this work. It deserves an explanatory name. As always, context is king.
11
24
1,294
2016-11-30T03:21:47.680
api_errors
softwareengineering.stackexchange.com
980,219
Postfix: ACCEPT if RBL and SPF checks pass, DUNNO/greylist otherwise. How to do it?
I would like to accept all clients that pass RBL and SPF checks (and possibly some checks, but these are minimum requirements for me), and greylist those who don't. When a client passes the SPF check (SPF record exists, no fail, no soft-fail), we can be pretty sure that it's not a botnet zombie, but an MTA that will re...
I don't know what I can put in place of [CODE] A: [CODE] Long answer: The postfix source implements [CODE] in [CODE] I expect it should work to add another function there which implements a copy of the [CODE] function with inverse logic - not replying with [CODE] but [CODE] for a successful check. [CODE] Which you coul...
6
5
1,039
2019-08-21T22:16:23.670
infrastructure
serverfault.com
857,376
Windows DC 2012 to 2016 Migration Issues
I'm having some very weird issues with migrating my 2012 Domain Controller to a new 2016 server. Most articles I have read state that all I need to do a set up the 2016 server as a Domain Controller and move the FSMO roles... then when all looks good, I can remove the Domain Controller on 2012. Well this certainly was ...
I was able to fix all my issues by manually sharing my SYSVOL folder and then copying the SYSVOL folder from my 2012 DC to my 2016 DC. I then edited the GP to include the Administrators group. Then I edited this registry key: [CODE] Then ran "gpupdate force" in powershell and everything was happy.
1
2
3,113
2017-06-22T21:24:10.693
database_errors
serverfault.com
183,664
Recover an SSH private key?
I have an RSA key (generated by PuTTYgen) that's set up for logging in to a bunch of machines via SSH. Or rather, i HAD such a key. (The computer it was on crashed, to the point that a reinstall of XP was required. The private key file is encrypted by the file system, and now that it's basically on what looks like a wh...
Presently the only way of "recovering" the Private key from the Public key is by exhaustive search (brute force). The system was specifically designed this way so that you could issue your public key to anyone without worrying about them being able to figure out your private key. Edit: Warning! Simplified explanation a...
8
15
29,552
2010-09-22T17:04:14.613
database_errors
serverfault.com
234,978
Force exact match from postgres ts_query
I've constructed a column of stem words called [CODE] from the column [CODE] . I've then created a GIN index on [CODE] . Here's and example of the type of query I'm running: [CODE] This returns a list of 15 journal names [CODE] In most circumstances this works really well but what I can't figure out is how to restrict ...
As filiprem says, you can combine the match and the equality by an AND. It will use the FTS index to get candidates and then just filter out the ones that it needs to for the equality But you can also build a regular index on 'journal_name' and then just write the query naturally. The 2nd index will take some maintenan...
3
1
2,292
2019-04-16T20:37:31.873
warehouse_errors
dba.stackexchange.com
144,575
postgres btree index on large text column
I have a table with big text column on which I want to enforce uniqueness, postgres can only do this with a btree index. I get the following error : [CODE] Are there solutions ? I'm thinking of using a trigger (update and insert) and find duplicates with a hash index (a hash index seems to have no limit on size of text...
You can use an exclusion constraint instead of a unique constraint: [CODE] An exclusion constraint is much more general than a unique constraint, and allows you to exclude on things like overlapping ranges. When you exclude "with =", it reduces to basically the same thing as a unique constraint, except it retains the f...
2
2
1,852
2016-07-21T16:48:45.040
data_quality
dba.stackexchange.com
134,748
Munin-cron fails "Nothing to do", possibly a munin.conf problem?
I have been working on this for a few hours now, and haven't yet been able to get munin to output the html files/generated graphs of resource usage on my CentOS 5.3 server. Here are some things I run as the munin user, and the results: [CODE] (above works fine, takes ~2.4 seconds to complete) [CODE] (And other options/...
Well, now I'm configuring another CentOS 5.5 server, and I installed Munin 1.4.5 from the EPEL repo (I was running 1.2.5 from the standard CentOS repos, and it was working fine). Since installing 1.4.5, I'm getting no graphs, and the same errors in the logs... also, since I'm using Klaxo on this server (ugh), I can't u...
1
0
10,553
2010-04-22T04:11:13.987
infrastructure
serverfault.com
931,743
Better way to use Perf on a Program in Kubernetes/Docker?
I am running Kubernetes on CentOS 7, and it doesn't seem that the version of [CODE] is namespace aware. If run perf on the PID on the host node (host node found with [CODE] ) I get an error about symbols not being found. This seems to be because it looks for the path of the file relative to the container but on the hos...
Since Kubernetes 1.17 it is possible to Share Process Namespace between Containers in a Pod . It seems like this is what you are looking for. Process Namespace Sharing is enabled using the shareProcessNamespace field of v1.PodSpec. E.g.: [CODE] The Kubernetes Docs I linked give a little more detail on how to work with ...
5
1
1,993
2018-09-19T18:11:25.390
pipeline_ops
serverfault.com
941,421
Servers fail to bind to addresses at boot
I'm dealing with a known issue in RHEL 7 whereby services that specify an address to bind to will not start correctly. I've found a number of similar reports, many say they have been resolved with updates to systemd but I still face this problem. This affects all the services on my box (sshd, sshd, vsftpd, nginx) that ...
If you're using NetworkManager, then in order for [CODE] to work as expected, you need to enable service [CODE] , which is the one that actually waits for the network to be online to satisy that target. The [CODE] needs to be "hooked" into your network manager (since NetworkManager is not the only alternative, there is...
10
4
3,928
2018-11-24T00:08:07.627
infrastructure
serverfault.com
3,892
How to minimise SpamAssassin (spamd) memory use
I'm using SpamAssassin on Debian (the default configuration with Pyzor, AWL and Bayes disabled, and sa-compile enabled), and each of the spamd child processes consume around 100 to 150MB of memory (around 50MB of real memory) on the 32 bit servers, and about double this (logically enough) on the 64 bit servers. There a...
I think you're misunderstanding the way Linux reports memory usage. When a process forks, it results in a second process that shares a lot of resources with the original process. Included in that is memory. However, Linux uses a technique known as Copy On Write (COW) for this. What that means is that each forked child ...
15
6
15,681
2009-05-04T09:20:29.367
infrastructure
serverfault.com
522,919
clamav can't find viruses in rar files on centos 6.4
I use ClamAV 0.97.8/17494 on CentOS 6.4. It's good but can't find viruses in rar files. It can detect same virus file as it is or in a zip file but in rar file ClamAV reports no virus. [CODE] option is already enabled I searched a lot on google but couldn't find a solution. Does anyone know if there is a fix for this? ...
Do you have unrar installed? It isn't part of the standard Centos Repos. Installation instructions are available online .
1
1
1,502
2013-07-12T17:13:28.950
infrastructure
serverfault.com
422,425
Good OO design pattern for variant return type needs
I've got a validation function something like this (pseudo-code): [CODE] This function is in a domain service class. It's called from lots of controller classes. 90% of the time, all I want is a boolean answer to "is thing valid?" But 10% of the time, I want to display a message on the UI as to why it's invalid, if so....
As you're apparently in a transactional situation - request/response (not ACID) - then consider: Go with a variation of #3 - but not a class property, just a thread property, and not a single value, but a stack or list of them. Push stuff on the "error message stack" as you're going. Put entire stack traces on it if yo...
1
0
105
2021-02-18T18:43:47.453
data_quality
softwareengineering.stackexchange.com
121,258
What to do when MySQL is not generating any logs at all on Debian?
The problem I'm having is that MySQL (5.5.46-0+deb7u1) is not generating log files. This on Debian Wheezy. The my.cfg file has been updated according to the required config for logging ALL queries (as per http://www.microhowto.info/howto/log_all_queries_to_a_mysql_server.html ). It's not writing to the specified locati...
Thanks to commenters for their insights. The solutions was: Add "log_errors = /var/log/mysql/mysql.err" to my.cnf See permissions error in error log chmod log files to "mysql:root"
0
0
1,402
2015-11-16T16:54:48.610
database_errors
dba.stackexchange.com
262,036
Akward delay to connect Apache's proxy request to a node.js App
In my Ubuntu Server 10.04 I'm running an example node.js app: [CODE] It simply listens to requests on port 3000, log in console this request and send to the client an HTTP "Hello World" The goal was to make this app coexists with Apache2. So after some research I edited the default file ( /etc/apache2/sites-available/d...
Changing [CODE] to [CODE] will give you more information in error.log. Please do so and post the results. Without that information, I have a guess that changing your ProxyPass line to [CODE] might help. In general, the Apache mod_proxy documentation has more details on the parameters available to you.
12
10
17,638
2011-04-21T05:33:42.273
infrastructure
serverfault.com
302,751
Mechanisms to ensure distributed systems do not sychchronize (anti-synchronize)
We have a service that based on a local timer does a GET request to our server on Azure to transmit some information to be saved on the server. At this stage we are only testing and we are finding that some of the clients are synchronizing so they hit the server at the same time. This seems to be caused due to delays w...
Two approaches come to mind. Cron allows specifying what amounts to an order of magnitude rather than a specific time. If you need these clients to hit an endpoint on a fixed interval, this may be an attractive solution. TCP handles collisions through exponential back off, which has the downside that it requires an irr...
2
2
105
2015-11-17T04:31:09.393
api_errors
softwareengineering.stackexchange.com
1,063,546
Unable to update to Wordpress 5.7.2: Could not copy file
I'm trying to update to the latest (5.7.2) version of Wordpress from a fresh installation on CentOS 7, however I keep getting the error message [CODE] This file is a new file added in 5.7.2 which does not exist in my current version. The entire contents of [CODE] is owned by [CODE] and even with everything set to 777 I...
As with many things CentOS, SELinux is the culprit! It blocks the [CODE] user from writing anything to the file system be default. This can be change with the following command [CODE] which allows the [CODE] user (in my case, [CODE] ) to read and write files in [CODE] , and allows Wordpress to update itself.
0
0
192
2021-05-14T14:45:00.027
infrastructure
serverfault.com
20,113
MOOC or book on Deep Learning in Python for someone with a basic knowledge of neural networks
I know the concept of a neural network, and I followed the Machine Learning course by Andrew Ng on Coursera, so I also coded some simple ones. However, I miss all the new tricks which are useful to prevent overfitting of Deep networks, such as for example: using ReLU instead than tanh neurons using dropout more advance...
These 2 are pretty popular: https://de.udacity.com/course/deep-learning--ud730/ - Tensorflow-Course by Google http://www.fast.ai/ - Deep Learning by a Kaggle hero The first is easy to follow and nicely presented, the second takes quite some time.
4
2
1,114
2017-07-02T12:19:20.067
airflow_errors
datascience.stackexchange.com
1,058,800
How to setup SSD's in RAID 5 on a MSA2060?
In the near future we want to replace our current MSA2050 with SAS disks to a MSA2060 with 10 SSD disks (HPE, 960GB each). We are going to use RAID 5. Since RAID 5 can go up to 16 disks, we can make 1 cluster of 10 disks. Is this good practice (subjective), but more important -> why? Or is the way to go making 2 cluste...
10 drives make an excellent RAID6 array. An array performs best when the number of drives is a power of 2 (e.g. 8) plus the drives required for redundancy (2 for RAID6). 8+2=10 RAID5 with a larger number of drives is prone to failing when rebuilding a failed disk: a single read errors on any of the remaining drives is ...
1
0
175
2021-03-30T09:19:57.227
infrastructure
serverfault.com
797,165
MRTG - HTML buttons to index page
My goal is to include HTML buttons in the Index page in order to classify my MRTG page in different subcategories. Right now what I have done is to make 6 empty graphs with a .png created by myself and it works fine. The only problem is that now I want to add more pages and I would want to have smaller buttons because ...
I finally found how to do it. I just have to create a HTML page and at the top I place an hoverable dropdown menu (dropdown menu that appears when the user moves the mouse over an element) and then with iframe I include the index.html MRTG page. Here is how to create the hoverable dropdown menu: http://www.w3schools.co...
-1
0
621
2016-08-16T15:43:36.270
infrastructure
serverfault.com
112,913
SQL Server instance service doesn't start
After manually stopping SQL Server instance service it can not be started both manually from a SQL Server Configuration Manager and automatically by restarting computer. If trying to do it manually I get a message: The request failed or the service did not respond in a timely fashion. Consult the event log or other app...
The problem is solved. It was because the VIA protocol appeared to be enabled. After disabling it (in SQL Server Configuration Manager there are protocols for this instance) everything is OK.
1
1
18,578
2010-02-15T10:27:08.330
database_errors
serverfault.com
147,730
Capturing the result(print statements) of SP_UPDATESTATS
I am creating a SQL Server [CODE] to update the [CODE] once in a week. To create a Job I came up with the below code. [CODE] Is there a way to capture the result( [CODE] ) of [CODE] inside the Job. I searched for the answer but no luck is there a way to do this?
I would use the free Ola Hallengren maintenance solution to update statistics. See Example C from the above link, where you can update the statistics in all user databases via: - C. Update statistics on all user databases [CODE] You can also edit this for your needs to only do an individual database. The logging you re...
0
2
571
2016-08-24T11:00:45.063
database_errors
dba.stackexchange.com
108,136
How to compute sentence embedding from word2vec model?
I am new to NLP and I'm trying to perform embedding for a clustering problem. I have created the word2vec model using Python's [CODE] library, but I am wondering the following: The word2vec model embeds the words to vectors of size [CODE] . However, in further steps of the clustering approach, I realised I was clusteri...
The usual approach is to average the vectors of all words in the sentence.
0
0
805
2022-02-14T08:20:45.747
data_quality
datascience.stackexchange.com
758,043
SCCM PXE Boot failed. No advertisements found
I'm encountering an issue with SCCM PXE deployment for unknown devices. Here is my current setup: 10.0.0.10/24 - AD, DHCP 10.0.0.15/24 - SCCM 2012 (app catalog webservice point, app catalog website, component server, fallback status point, management point, site server, site system) 10.0.0.16/24 - MSSQL 2012 (site data...
The solution was rather simple still not documented anywhere! You have to set the the availability time of the deployment to 12 hours in the past and it will work. Thanks Microsoft Moderator guy Jason!
2
2
13,610
2016-02-18T08:38:58.110
pipeline_ops
serverfault.com
19,468
MySQL - automatically update all references to specific table to use on delete cascade?
I have a specific table for one of my software packages on a MySQL 5.1 box which I need to drop a few hundred entries. These are user names with names in uppercase, the application is case specific and expects lower. This table is referenced by a ton of other tables however, some of which may have references back to th...
WARNING !!! Before you do anything, mysqldump the entire database or tarball /var/lib/mysql If you are concerned about case sensitivity, you need to hunt down the usernames in a special way I tried this little experiment [CODE] I loaded the sample data [CODE] I ran these queries (please note subtle differences) [CODE] ...
2
3
10,139
2012-06-18T19:51:31.330
database_errors
dba.stackexchange.com
1,140,488
root doesn't see a FUSE mounted directory
I have a service on my debian machine that mounts google drive to directory [CODE] : [CODE] I also have a cron job that copies a directory from one folder to [CODE] . The problem is that [CODE] user for some reason doesn't see [CODE] directory. [CODE] [CODE]
Fuse mounts are per user. Fuse has a mount flag, [CODE] that allows other users access to a fuse mounted filesystem. Simply add [CODE] to the mount command, so that it becomes [CODE] It's also possible to set it in [CODE] .
0
2
269
2023-08-02T17:25:21.377
infrastructure
serverfault.com
877,550
VMware ESXi - blue screen - no file configured to dump data
I have a VMware ESXi 6.0.0 running on a Dell server. It is up and running to about 1 year without any problem. Today, it show a blue screen, and all VMs are down suddenly. (please check the image below.) According to the error screen, is it related to diskDumpSlotSize? Thank you!! blue screen
It's a page-fault, I'm not sure if there's a way to tell from that whether it's a hardware or software fault - you'd need to get your coredump analysed by VMware to be sure sorry.
0
1
1,201
2017-10-09T08:09:31.307
infrastructure
serverfault.com
216,130
Kernel config file generator
could please anybody recommend some kind of kconfig generator that would trim modules and built-in stuff that is not needed according to current hardware ? The best I have found is this : http://lkml.org/lkml/2008/9/16/290 I don't care about compilation time and the amount of modules that are not built-in. I'm concerne...
You could look into genkernel from gentoo linux, it seems to deal with issues you are concerned about.
0
1
1,607
2010-12-25T23:19:18.870
infrastructure
serverfault.com
462,856
Connecting to Gest ip address usign host alias
I have RedHat OS running on VMWare Player. My host operating system is windows7. Network configuration i am using on my virtual machine is NAT. I have configured my Guest operating systems /etc/hosts to have following configuration. [CODE] when i ping from my host operating system, i can ping to 192.168.179.129, but i ...
In your case, the HOST is Windows 7 and GUEST is redhat. So, if you want to resolve the names [CODE] and [CODE] from you HOST machine, you need to include hostname to IP address mapping details in the [CODE] file of your HOST machine, NOT on GUEST machine. In windows the path for hosts file is : [CODE]
-2
1
59
2013-01-04T04:07:24.887
infrastructure
serverfault.com
37,271
What is a faster alternative to maintaining an automation testing suite using codeception & php?
We have been using Codeception/PHP for the past year and have had problems in making progress fast enough (automated coverage is very low). We have realized that hand coding PHP is something we want to avoid and utilize some sort of screen recording to generate the tests. I agree that hand coding allows the most contro...
I don't believe recorders will be faster in the short, nor the long run. Recorded tests need to be re-recorded, are harder to debug. Unless it is easier to get a lot of non-technical people who can continuously update the recorded test-suite. Faster would be writing test scripts and letting people in low costs countrie...
5
1
90
2019-01-10T15:22:03.043
data_quality
sqa.stackexchange.com
240,267
Glibc importance of error
I am following LFS 6.7, and I reached the point where I compile glibc-2.12.1 . I mounted the LFS partition with the atime option: here is a confirm on that I think: [CODE] I get the following errors on making the test, and I have no clue if I should try to resolve them, or just ignore them and go on ... [CODE] thanks i...
You can safely ignore this error when build LFS.
0
0
374
2011-02-25T14:13:14.917
infrastructure
serverfault.com
808,281
remote host can't send mail using sendmail in ubuntu
I have followed the below steps to configure sendmail [CODE] add the below content in [CODE] [CODE] [CODE] add the below lines in [CODE] before MAILER_DEFINITIONS define( [CODE] confAUTH_MECHANISMS', [CODE] authinfo', `hash /etc/mail/auth/client-info')dnl [CODE] service sendmail restart Test with telnet command telnet ...
Sendmail by default refuses relaying (accepting messages from external hosts to external email addresses). You may allow relaying based on sending host IP address or after SMTP AUTHentication. To allow relaying based on sending host IPv4 address use one of the following entries in access file (access file requires comp...
1
1
746
2016-10-11T07:12:28.857
infrastructure
serverfault.com
405,769
Persistent data structure changes for changing domain model
I've learned many ways to keep a domain model flexible over the years, but there is a remaining case where the setup resists change. Suppose that we have kept our domain model properly isolated: we can change it easily. Now a change requires a fundamental restructuring of the domain model. There is one thing in our way...
To minimize the amount of work and risk of updating the model and/or data, the best strategy I found is to co-locate data and its behavior. Also known as object-orientation . For example, if you have some object with "properties" (i.e. a record or struct) and you read those out at some other place to do something with ...
4
1
215
2020-02-26T09:57:16.487
api_errors
softwareengineering.stackexchange.com
702,510
Internet connection redundancy with 2 ISP
Setup is 1. One Linux server running web server and ftp server. 2. Two ISP which provided a range of public IP address 3. From the client(browser) side we can set only one of IP/domain name as target for web/ftp request. (Can not change the destination server ) What is the configuration required to have redundant net c...
DNS-based solutions are one solution to this problem, but they are subject to ISPs that ignore TTLs and cache your DNS responses for improperly large periods, thus torpedoing your failover. You can arrange for an IP range to be properly highly-available over multiple links to independent ISPs, but it's painful, expensi...
0
2
1,247
2015-06-30T06:10:37.887
infrastructure
serverfault.com
466,620
lighttpd: backend is overloaded
I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: [CODE] Current stats are: [CODE] The site itself is a very simply PHP site, no MySQL involved. I do have APC installed and configured. I have added suggested changes to /etc/sysctl.conf: [CODE] My lighttpd.conf looks like...
"backend is overloaded" - this means that one of the 14 [CODE] backends is overloaded (lighttpd creates different sockets for each [CODE] backend by append "-[number]" to the socket filenames). I'd go for a lower max-procs number, and instead increase PHP_FCGI_CHILDREN, for example [CODE] and [CODE] , or 4 and 100 (or ...
0
0
5,276
2013-01-13T14:06:28.223
database_errors
serverfault.com
830,689
Ping to IPv4 works but IPv6 does not
I have a hosted VPS running on arch linux. I'm trying to make outgoing connections from this server, but all of them fail. After a little bit of debugging, I figured that the reason for failed connections is that my server cannot access IPv6 addresses. Ping to IPv4 addresses work, but not to IPv6. Here is a sample. [CO...
It appears you are trying to use a privacy address (RFC 3972, RFC 4941, or RFC 7217) in a [CODE] which Linode is sharing among multiple customers. By default a Linode machine is allocated a single IPv6 address based on their MAC address inside a link [CODE] shared between all customers in the datacenter. Linode have ta...
2
3
10,324
2017-02-05T09:19:11.730
infrastructure
serverfault.com
1,105,879
Are Jenkins Debian Repo keys necessary
I am in the process of migrating an application that needs a running Jenkins instance on the same server. The deployment of the application happens through Ansible. In the steps, there is a requirement for Jenkins keys and repo. Snippet from Ansible deploy.yaml : name: Jenkins Repo Key apt_key: url: "http://pkg.jenkins...
Those are the keys for Jenkin's APT server. You need to add the key to verify that the files you download are official, but you don't need them to run the server. The key is necessary if you want to receive Jenkins updates. You can follow the following post for information about how to configure it: https://unix.stacke...
-1
1
253
2022-07-18T10:43:03.837
database_errors
serverfault.com
639,356
puppetlabs-postgresql: how to set globals properly without duplicate definitions
puppetlabs-postgresql's documentation recommends setting values in postgresql::globals like so: [CODE] However, this doesn't work: [CODE] Because postgresql::client inherits from postgresql::parameters, which inherits from postgresql::globals. So when it gets to the explicit instantiation of the postgresql::globals cla...
Yes, Hiera would be the best solution. Note that you can (and should) add Hiera to Pupet [CODE] in plugin form. Barring that, your options are limited. The [CODE] relationship between any two classes will not have an effect. On the contrary, observe that the following refactoring of your working manifest does yield you...
1
1
645
2014-10-24T10:37:31.710
data_quality
serverfault.com
550,331
Routing outgoing HTTP/HTTPS traffic over a different subnet
I am trying to set up a Linux Server which was initially only supposed to be in one "server-subnet". However I am forced to use a proxy to access HTTP/HTTPS services in this subnet, which causes a lot of problems with my web applications, that need to access an API over HTTPS. Fortunately the Server is connected to a s...
I know this post is really old, but just recently I solved this problem using another approach which involves source policy routing: Can't ping multihomed Linux machine on non-default interface . The host is connected to the two networks. The "client subnet" allows for access to external resources, however its clients ...
0
1
1,694
2013-11-02T22:54:16.433
infrastructure
serverfault.com
537,706
How to make Puppet fix SELinux types for home directories?
We are using pam_mkhomedir.so to automatically create the home directories of users logging in with SSH. There is a bug in pam_mkhomedir that sets the SELinux contexts to home_root_t instead of user_home_dir_t. The solution is using pam_oddjob_mkhomedir, which we've implemented. We however still have many home director...
Maybe this would be helpful? http://projects.puppetlabs.com/issues/2856 Recurselimit seems to work for /home/user1, but also sets /home to user_home_dir_t. [CODE] You could set up a custom fact that returns all home directories in an array (too many users could be a problem here): [CODE] Perhaps the best option in this...
2
1
1,432
2013-09-10T08:53:12.083
pipeline_ops
serverfault.com
1,113,982
socket doesn't exist; Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I know the problem isn't new. But I have tried lots of thing. What I couldn't figure out is, socket wasn't available since I downloaded mysql. [CODE] None of the above files are available. I had downloaded mysql-server at first. As it wasn't working I downloaded MariaDB. Still not working. What I can do with MySql is [...
After thinking longer than usual, I realized the MySQL is completely broken in my system. Even while removing MySQL, there's always some files left behind. SO I directly installed a new distribution again. Again downloaded Xampp from official page. [CODE] Then a dialog box (installation) appear, after completing the in...
0
0
1,362
2022-10-25T14:44:48.853
database_errors
serverfault.com
216,637
Remove duplicate records with timestamps
I have a table in my DB where I keep track of user data. So I have rows like that: [CODE] Now I want to remove all duplicate records, where user_id and stat columns are the same, but only between other rows with different data. So if I have [CODE] It should became [CODE] And not [CODE] So I want to save record progress...
[CODE] fiddle
1
0
1,784
2018-09-04T08:28:57.643
data_quality
dba.stackexchange.com
1,112,999
(PART 3) Docker environment for PHP Framework from scratch
i am runing this docker composer files with this enviroment: [CODE] and Dockerfile instalation look like this: [CODE] to implement a webserver lamp stack but when i try to run index.php to connect from php to mysql like this: [CODE] i get this error: could not find driver What do I need to change in my code or installa...
Try running like this: [CODE] Change form php8.1-lib to php-lib
-1
0
249
2022-10-13T14:31:24.157
database_errors
serverfault.com
185,948
Unable to recieve email from Google apps for domains
I have read the FAQs and checked for similar issues: YES My site's URL (web address) is: www.thesportslist.co.uk Description (including timeline of any changes made): My domain was registered by a 3rd party who pointed at everydns.net nameservers I entered the following A record [www.thesportslist.co.uk A 88.80.197.187...
You need to create the [CODE] records for your domain, following Google's very good instructions . No, you didn't. There are no publicly visible MX records for your domain, which is why you're having problems: thesportslist.co.uk IN NS ns1.everydns.net 86400s (1.00:00:00) thesportslist.co.uk IN NS ns2.everydns.net 8640...
0
1
324
2010-09-29T19:41:34.633
infrastructure
serverfault.com
283,229
Measuring accesses to files - apache
So, I run a website, that among other things serves some files (usually PDFs). All of these are stored under a specific directory on the server: [CODE] Due to storage issues on my VPS I am thinking of getting some S3 or other cloud storage, and mount it as a drive using S3QL/S3FS. Then I will be able to have the pdf_fi...
Assuming that you have your access log available, the quick and easy thing is to do: grep pdf_filename access_log | grep 200 Basically, you parse the log file for the pdf file and then get HTTP 200 code message, which means that the user have successful download the file. Here is a typical log file line with a successf...
0
1
49
2011-06-22T23:19:50.713
infrastructure
serverfault.com
106,765
Building a restaurant database
I am designing an Italian restaurant database, but I face some problems considering the database design, which lead me to a halt. The part that I find difficult developing is the dishes table . A main dish could be a pizza, or some kind of pasta, or other. So a pizza could have many pieces and a pasta dish could be req...
If the restaurant is that complicated I would use a simple solution. I would have an ingredients table and a entrée table to reference those ingredients. For example is you have a choice of pasta, sauce, cheese, and a meat on the side. I would have a table to store that information. I would then have a desserts and dri...
2
0
1,755
2015-07-13T14:08:54.780
database_errors
dba.stackexchange.com
818,759
Domain wide login shell for user
It is possible to change a user's login shell to a different then explorer.exe in the user's registry ( [CODE] ). For example we can setup it to [CODE] and the user can view in kiosk mode only this site. However, this configuration is done in the user's profile and there is only on the computer where it is made ( roami...
Just do it using a GPO. You can set reg keys in: GPO > User Settings > Preferences > Windows Settings > Registry > New > Registry Item Set it to Update set the hive (HKCU) set the Key Path (Software\Microsoft\Windows NT\CurrentVersion\Winlogon) set the Value Name (remove the V in the checkbox) to "shell" set the value ...
1
3
1,750
2016-12-05T09:16:52.157
infrastructure
serverfault.com
231,740
Crazy problem with Nginx, PHP5-FPM on Ubuntu
I've been trying to get a domain from shared hosting to my new VPS. Everything was working just 100% fine, and then all of a sudden rewrites stopped working, pictures that should work started returning 404s. I've got no idea why, but for some reason on my site: http://www.onlythebible.com/ only the home page works, all...
Problem Solved! Turned out it was an issue with Nameservers or something coming through from the old hosting account... Still quite weird. But It seems to be working fine now.
1
0
754
2011-02-06T03:12:03.303
infrastructure
serverfault.com
354,261
Apache reverse proxy with VirtualHost not serving a page
I have an Apache reverse proxy set to move requests to a Tomcat Applet. The config is similar to: [CODE] I also have a page called [CODE] that exists on [CODE] as: [CODE] When I browse directly to it I have no problem viewing it, however if I try to get there via the reverse proxy I get a blank page. Wireshark shows me...
I suspect you forgot "ProxyPreserveHost On". Without this directive, your app is contacted with the HTTP "Host: 1.1.1.1" header, while when you were browsing directly it would see "Host: the.domain.com".
1
1
4,360
2012-01-27T14:53:26.427
infrastructure
serverfault.com
125,257
gluster IOPS performance
Can "gluster" serve FLV files without any front-end server layers just using the built-in HTTP protocol ? How would the IOPS compare to standard apache serving? Would gluster help me with I/O limits of harddrives, if I chained a lot of machines together? Thank you!
Would Gluster help me with I/O limits of harddrives, if I chained a lot of machines together? If it would, it would replace that with.... network limits. I mean, seriously - if you distribute IO over 50 machines, your network needs to handle that. If you run into IO limits, not just storage area limits (i.e. terabyte) ...
2
4
4,256
2010-03-23T05:38:33.040
infrastructure
serverfault.com
34,114
Sparse IR with user feedback
I'm considering a problem framing within an information retrieval context. I have a sequence of documents that feature different attributes. In the web context, these would be webpages. One attribute could be "is this a top-10 content creator," etc. When we convert multi-labeled values to binary indicators, we end up w...
This is a learning to rank problem , in particular feature selection for learning to rank. There are many ways to solve the problem. One common method is maximizing feature importance while minimizing similarity. In other words, rank documents based on the most valuable and unique features. This is a variation of Minim...
3
1
82
2018-07-06T16:50:20.430
data_quality
datascience.stackexchange.com
1,057,623
Extend VMware persistent volume in Kubernetes
How to extend VMware persistent volume (PV/PVC) with Kubernetes's VMwware in-tree driver ? (using Rancher 2.5 with VMware/vSphere cloud provider, and Kubernetes 1.18) I created a storageclass with the following UI options: Provider: VMWare vSphere Volume and Allow Volume Expansion : Enabled . (I had to re-edit the SC a...
Kubernetes in-tree driver seems deprecated in favor of external CSI "drivers" . Only few in-tree drivers supports volume expansion , vsphere/vmware is not listed. furthermore, How to resize dynamic volumes once provisioned? Support for resizing existing dynamic volume is not yet there. Proposal is available here . vSph...
1
3
1,347
2021-03-19T15:14:03.310
pipeline_ops
serverfault.com
329,485
Solaris, capturing total TCP data in/out using netstat
On Solaris 10 say I wanted to capture the total bytes TCP bytes received and sent. Using netstat -s, it seems like the sum of these 2 values gives the total TCP bytes in: [CODE] While this value gives me the total TCP bytes out: [CODE] Would that be a correct assumption, or am I missing something?
You are correct, input bytes is the sum of [CODE] + [CODE] and the output bytes is [CODE]
2
2
570
2011-11-09T21:19:37.077
infrastructure
serverfault.com
311,816
Simple setup for intranet only mail server?
I want to set up an "internal only" mail server on a Linux machine. We need it for our integration test environment: Our integration test server will send mail (via SMTP) to "...@localmail.lan" The mail server must reject mail for all other recipient domains. Our testers will fetch the mail via POP/IMAP over SSL . They...
No there are no easier options. If you need a mail server then you need to install a mail server. If you need an IMAP server you need to install an IMAP server. If you can live with local mail storage then you do not need a RDBMS to store mails. (You don't need Postfix and Courier. You need either of them as MTA/MDA. A...
1
2
5,236
2011-09-15T15:20:40.613
database_errors
serverfault.com
941,719
Mounting an old amzon volume to a new instance because I got locked out
I got locked out of my amazon instance. I read that I can create a new instance and attach that volume to the new instance. I attached the old volume to the new instance and the management console says its at /dev/sdf. My question is how do I access that volume ? I read that I can access it by mounting. I tried doing t...
There will most likely be a partition [CODE] (notice the [CODE] ) so you have to mount that: [CODE] Then change what you need to change (e.g. add your new, working, ssh key to [CODE] ) and unmount is again with: [CODE] Finally re-attach it to your old instance as [CODE] (or [CODE] , depending on what it was before) - e...
1
3
45
2018-11-26T22:10:43.370
infrastructure
serverfault.com
108,457
Virtualized SQL Server Memory Oddity
I've not seen this before, though perhaps it is common. I am looking at a virtualized (VMWare 5.5) SQL Server (2008R2 on Windows 2008 R2). What I am seeing is that in Task Manager*, [CODE] is using about 163 MB of RAM, if I use procexp , the same service shows just under 500 MB of RAM used. The VM has 32GB of RAM and T...
What I am seeing is that in Task Manager, sqlserver.exe is using about 163 Mb of RAM, if I use procexp, the same service shows just under 500 MB of RAM used. You should never look at task manager to check SQL Server memory utilization. It would never show you correct result. You should use a DMV sys.dm_os_process_memor...
5
7
233
2015-07-29T16:20:26.320
database_errors
dba.stackexchange.com
156,175
THROW not including name of calling procedure unless custom error-message is specified
I am experiencing some behavior with [CODE] that I can't understand. Consider the following stored procedure: [CODE] When the procedure is executed, the following error is raised: Msg 8134, Level 16, State 1, Line 1 Divide by zero error encountered. Note, no information about in which procedure the error was raised is ...
Code the [CODE] like this: [CODE] That allows you to pass all the parameters into the [CODE] statement so it can send them back to the caller. I tested that like this: [CODE] The results: Msg 58134, Level 16, State 1, Procedure dbo.usp_division_err, Line 10 [Batch Start Line 16] Divide by zero error encountered. To obt...
7
3
1,057
2016-11-23T15:48:47.200
database_errors
dba.stackexchange.com
58,255
delete in stored procedure
i am write this stored procedure to delete one row [CODE] but when i call it from php its delete all table [CODE] then i try this sp but its not working [CODE] plz help ... while when i use this query its delete the selected row [CODE]
[CODE]
-1
2
13,409
2014-02-05T07:30:07.560
database_errors
dba.stackexchange.com
778,021
Unable to mount shares on Ubuntu client from MacOSX server via SMB
I'm trying to mount shares from our OSX server (10.11.5) onto my linux client (Ubuntu 15.10) after an upgrade to the server took place. Prior to the upgrade I was able to mount these directories without a problem using fstab entries like this: [CODE] However, after the upgrade I get the follow messages: [CODE] I also c...
I recently revisited this and finally got it to work by adding [CODE] to the [CODE] options, thus; [CODE]
0
1
6,669
2016-05-20T14:00:05.930
api_errors
serverfault.com
15,529
Recommendations for algorithm
I have a very large dataset consisting of approximately 15,000 rows of survey data. The surveys are quantitative summaries of interviews with investors regarding their rankings of financial asset managers. They rate a manager on a scale from 1-5 and we have approximately 5 years of data for each investor on asset manag...
A correlation matrix would help discover any pair-wise correlation (between any 2 variables). I think that would be a great place to start, as it is just one line of code for initial analysis. After that, if you want to investigate "an increase in parameter 1 and parameter 2 is correlated with a fall in parameter 10", ...
0
1
46
2016-12-05T16:25:07.073
data_quality
datascience.stackexchange.com
504,919
Disallow -p on sftp
We have a server that acts as a "dropbox" for (outside) users to upload data to us over sftp/ssh. We need to process these files (gpg decrypt, unzip, etc) as they come in. In the past, we simply processed each file in each users home directory without regard to whether we had already processed it. This turned out to be...
No, you cannot do this in the config. Looking through [CODE] , I see that the only way to disable this is to run [CODE] in read only mode, which is quite useless if you want to allow uploads :) If you don't mind maintaining your own openssh package, you can remove the calls to [CODE] / [CODE] in [CODE] before compiling...
3
6
1,634
2013-05-03T21:30:10.670
infrastructure
serverfault.com
1,126,795
Using AWS Blue/Green deployment, how do I modify the staging database?
AWS has rolled out a Blue/Green Deployment feature for RDS, allow you to create a staging (green) database that's in parallel with your production (blue) database. Their documentation specifically says you can make changes and test them out, however: It's readonly by default It's got replication, syncing the green to t...
I can confirm that the Green Deployment primary endpoint is read-only by default. If your use case requires you to make write operations or schema changes you will need to apply a new DB parameter group to the primary instance with [CODE] parameter set to [CODE] . (The [CODE] parameter is a dynamic parameter, and there...
0
2
1,945
2023-03-21T20:57:12.293
database_errors
serverfault.com
1,089,057
Openstack ubuntuVM SSH public key Permission denied on first boot
I am deploying Openstack(I tried victoria and ussuri) with kolla-ansible on 3 CentOS 8 Nodes (1=Control+Compute,2 and 3=Compute). Deployments works fine without any problems but when I create a new VM with an ubuntu image (focal-server-cloudimg-amd64.img) from here it looks like it doesn't come up cleanly. This causes ...
Some additional information: Problem observed with Openstack Ussuri and Victoria. This problem is observed with Ubuntu VM with one interface in the external openstack network. During the creation of the VM the cloud-init can not request VM related metadata from source "http://169.254.169.254/openstack". This leads to t...
2
2
3,138
2022-01-05T13:12:11.773
pipeline_ops
serverfault.com
447,678
Multiple objects using the same connection for communication, filter messages "above" or inside the objects?
I have a single connection being used by multiple devices, and I'd like to filter the messages so that each device only reacts to messages intended for it. This can be done with an unique ID field in the messages. I have two options. Option #1: Have each object filter the data from the connection themselves: [CODE] Opt...
I think this problem is in need of another layer of abstraction. Sounds to me like you are in need of a [CODE] object. That a device will link to the main connection. And it filters the correct messages to the device as an intermediary. So the main connection will receive the messages. And then those messages will get ...
0
1
30
2023-09-20T13:02:09.783
api_errors
softwareengineering.stackexchange.com
1,064,657
Running mysqld with root privilege
As we know running mysql with root privilege is not recommended which leads to privilege escalation using UDF's. I'm trying to setup a machine to demonstrate this and I wanted to run mysqld as root user. MySQL UDF exploitation for more info. Im running ubuntu 21.04 and with mysql-server mysql version: [CODE] Changing t...
The [CODE] service runs as the [CODE] user by default as is specified in the service file. There is no reason to run it as root as doing so wouldn't provide anything that isn't there with it running as the [CODE] user. PostgreSQL and MongoDB also run as their respective users and not as root. There's no reason to fix w...
1
0
1,460
2021-05-25T15:45:57.103
database_errors
serverfault.com
74,472
Cisco870, multiple VPN connection, same originating IP, possible?
I have 2 users that need VPN into the office from the same originating IP. They are not able to connect simultaneously though. Is this a limitation of the Cisco box, or of the Linksys router on site there? EDIT: Source machines are both using Cisco VPN Client, V5
If the source machines are connecting via a NAT router then standard IPsec VPN's wont work - the ESP protocol used by IPsec doesn't play friendly with NAT's as they use port remapping and ESP doesn't have a concept of ports. An L2TP\IPsec VPN can tunnel multiple concurrent clients through a NAT because it encapsulates ...
0
0
1,453
2009-10-14T17:51:39.710
infrastructure
serverfault.com
299,210
Do trace flags 1204 and 1222 give any more information than available via the xml_deadlock_report event in Extended Events?
I am exploring deadlock detection approaches. Trace flags 1204 and 1222 Extended events (xml_deadlock_report) Do the trace flags contain any more data than what is available via the Extended Events xml_deadlock_report event?
Both of these traceflags will just dump the deadlock graph into the SQL Server errorlog and contain no extra information and are just harder to read. The System Health event trace is already grabbing all deadlock graphs for you and there is a little reason to log them any more, except to keep a history. If you do, use ...
0
1
443
2021-09-08T04:50:58.170
database_errors
dba.stackexchange.com
65,096
Battery Backed Write Cache
I recently got some U server price quotes and some of them include BBWC: What exactly does it do? Is it just for RAID configurations? If there is a power malfunction, isn't the data loss inevitable? Are there any performance improvements from it (assuming the server will mostly do sequential reads and sequential writes...
What exactly does it do? The excerpt from this Compaq document explains it well: Power interruptions, even for brief moments, result in the loss of data which was being written to or read from storage... Power interruptions can have terminal effects on data which is in the process of being written and is temporarily re...
13
17
15,206
2009-09-14T11:12:14.890
infrastructure
serverfault.com
219,655
Flexible / Dynamic object creation or Alternative to list of lists
I have a xlsx file, that has some tabs with different data. I want to be able to save each row of a tab in a list. The first thing that comes to mind is a list of lists, but I was wondering if there is another way. I'd like to save that information in a object, with all its benefits, but can't think of a way to generat...
I assume that your worksheets contain tabular data, i.e., the first row contains field names and the following rows contain values. In such a case it would make sense to define a [CODE] class whose instances would each contain the contents of one worksheet. This [CODE] object could hold general information regarding on...
0
3
833
2013-11-27T13:47:21.663
api_errors
softwareengineering.stackexchange.com
196,099
'Refreshing' SSRS subscriptions (parameter values not valid due to lack of data in the tables)
In a place where I work we have lots of subscriptions set for SSRS reports. Some reports have as many as 100 subscriptions set up. Our data warehouse is refreshed every night, with all the data being dropped and loaded in again. Because of that, on occasion when things go wrong and the data isn't loaded up in the morni...
What you do is to create your subscription to run only once. Then you go to the agent job it created and copy the step's code. This you can then run in a stored procedure after checking if there are data: [CODE] The AddEvent will then execute the report to execute.
2
2
3,180
2018-01-24T09:09:35.610
bi_errors
dba.stackexchange.com
597,177
CentOS 5 - yum update dependency error
I'm trying to run an update on my CentOS VPS. Ultimately what I am try to do is upgrade php53 to php55. However I appear to run in to some dependency issues. Please find below commands and outputs. I have tried to include as much information as possible. Any feedback would be appreciated. (Also running Plesk 11, but I ...
in the error message Error: Missing Dependency: libXaw.so.7()(64bit) is needed by package t1lib-5.1.2-2.el5.art.x86_64 (atomic` i think you should check ,do you have install libXaw package? or you can [CODE] . Hope it can help you out
0
1
3,259
2014-05-20T09:26:57.120
infrastructure
serverfault.com
443,796
Why do we need middleware in FASTapi?
From official documentation: A "middleware" is a function that works with every request before it is processed by any specific path operation. And also with every response before returning it. But I would like to ask what is the point of a middleware in FASTapi? What problems does it solve? Can you please provide me a ...
You don't have to use middlewares – but it's a popular mechanism in web frameworks to allow you to do something for every request. For example, you might apply a middleware to log every incoming request. This is easier than adding the logging to every route. Or you might apply a middleware to certain routes to ensure t...
-1
3
520
2023-02-05T15:09:03.510
api_errors
softwareengineering.stackexchange.com
1,118,425
My debian server have a dynamic ip address. Have one program like a vpn to give
I have a problem with a debian server. I need put a website to work, but my desktop doesn't have a Static IP, only a dynamic IP. The internet provider creat a lot of dificulties to upgrade my internet to statics IPs, I tried to put in he a DDNS, but I wanted a Static IP to this machine. So I have an idea and I wanted t...
There might be VPN providers out there that will allow port forwarding but I don't think this is very common. Another option would be to use ngrok basically it will create a URL pointing back to your local web server on-the-fly. (this is an oversimplification) website here It will generate a URL that looks something li...
1
1
84
2022-12-19T19:41:53.450
infrastructure
serverfault.com
235,457
Job with a cursor is abnormally slow
I have a query that takes more than 9 hours to complete. Looking at the execution plan, I find this high-cost operator ( query plan link ): How can I improve this job?
Rather than focus on the scan, try to replace the cursor with a set-based approach. It's a bit hard to get into the details without your database schema (because I don't get any intellisense, and don't know anything about the constraints, etc), but I will outline the general approach below. You would want to test this ...
0
1
140
2019-04-23T10:07:06.040
database_errors
dba.stackexchange.com
896,095
MySQL Authentication against OpenLDAP Failure
I'm trying to set up OpenLDAP authentication on a MySQL Commercial Server (5.7.21) I've followed all the steps described on MySQL web https://dev.mysql.com/doc/refman/5.7/en/ldap-pluggable-authentication.html#ldap-pluggable-authentication-installation But when I try to log with an LDAP account I have the following erro...
I have been facing recently the same problem , after searching I came to that: Knowing that the plugin uses cyrus library for sasl mechanism, and the only supported is scram-sha-1, you have to check if cyrus-sasl-scram plugin is installed first I succeded to connect to the server by installing this package : [CODE] Sec...
0
1
653
2018-02-07T13:42:11.193
api_errors
serverfault.com
211,395
Is over-engineering a warning sign?
So we present a straightforward coding exercise to new candidates with some well defined requirements. Occasionally we receive solutions which don't really solve the problem at hand, but are over-engineered to solve a perceived problem - often outside the bounds of the exercise. Now my question is, is this a warning si...
The problem is the test is skewed. You're asking someone to demonstrate their ability to write complex, enterprise-level software using a simple exercise taking only a few minutes. There are other interviewers at other companies who complain that candidates don't show enough skill in object oriented design with these e...
22
48
3,962
2013-09-13T12:28:46.133
api_errors
softwareengineering.stackexchange.com
424,031
Multicast doesn't seem to be working on RHEL 5.5
I'm trying to install Oracle Grid Infrastructure on two machines. Their documentation states: You must enable multicasting for the cluster on the IP address subnet ranges 224.0.0.0/24 and 230.0.1.0/24 So I ran: [CODE] [CODE] produces: [CODE] An [CODE] shows, among other things, [CODE] . However, when I run their multic...
What's the output of [CODE] ? By default, your multicast joins are going to go out of the lowest-numbered interface cough, eth0 . Since you're attempting to do this via eth2, you're going to need another step to establish connectivity. Does the test utility provide a means of specifying the interface? If so, you'll nee...
3
2
8,024
2012-09-04T01:52:22.470
database_errors
serverfault.com
402,920
Sorting large binary files
Is there Unix utility for sorting large files containing fixed length binary records? In other words, I'm looking for something like sort(1) but for binary files with fixed length records. I could convert the files into text, then sort using sort(1), and then convert back into the binary representation, but I'm looking...
Turns out you're in luck; there is a GNU style unix program that does exactly this: bsort . [CODE] is a hyper efficient implementation of an inplace radix sort with careful attention paid to memory access patterns when working with files larger than ram. By efficent I mean was able to best the http://sortbenchmark.org ...
6
2
4,352
2012-06-28T03:11:51.393
infrastructure
serverfault.com
59,523
Mysql trying to recover from Hard disk failure
Am trying to get a database up and running after having a hard disk crash, got the data recovered. mysql can only start with the innodb_force_recovery set as 5 or 6. When started I can get a table listing from the schema, but attempting to select any data from tables fails with 'mysqld got signal 11 ' So cannot do a my...
Dump as many tables with mysqldump as it allows: [CODE] The remaining tables recover with Data Recovery Tool for InnoDB . Basically you need to fetch records from the tables so you can reload them into a fresh InnoDB instance
2
1
956
2014-02-24T10:51:53.400
api_errors
dba.stackexchange.com
271,565
Hard Coded File Paths - Solution?
Say you have an application that saves image(.jpg, .png etc) and text(.txt, .xml) files, and the application has all of the files paths hard coded throughout code, per the example below. Assuming the following file path structure exists: jpg - [CODE] png - [CODE] txt - [CODE] xml - [CODE] The files in the destination f...
Both options are over-engineered, involving the database is inappropriate here, and the directory structure is too deep. Instead, for administrator-friendly software, I see the following patterns emerging: Paths are configured in config files, not database. Usually, you want to be able to copy the database dump to anot...
7
12
8,441
2015-01-29T21:13:38.333
api_errors
softwareengineering.stackexchange.com
165,501
Configure unconstrained delegation for BULK INSERT
I have a pair of Microsoft SQL Server 2016 nodes in an Always On Availability Group. I am trying to perform a [CODE] (using a SQL Server 2016 Management Studio query) on a file located on a Windows Server 2016 File Server Failover Cluster, but I get the following error: Msg 4861, Level 16, State 1 Cannot bulk load beca...
Your configuration looks solid. SPNs and Delegation are configured as I would have done it myself. The only thing which you haven't explained are the file/share permissions. This is where my solution steps in. Solution 1 (Personal Account) Verify that your personal account is allowed to access the file on the file serv...
12
1
3,104
2017-02-25T03:27:12.640
api_errors
dba.stackexchange.com
129,782
query processor ran out of internal resources - extremely long sql query
I have a SQL Server 2012 database with around 2000 tables (daily log files) with around 20 million records each. Output of [CODE] Microsoft SQL Server 2012 - 11.0.2100.60 (X64) Standard Edition (64-bit) on Windows NT 6.2 (Build 9200: ) Now, in order to generate a yearly or 3-years report, I need to run query on each ta...
The error message is there for a reason. Using [CODE] on thousands of tables in a single query is performance suicide. Yes, I understand that your reporting application is already in production, but I would still strongly recommend that you to go back to your development team and update the application or, even better,...
4
17
18,959
2016-02-19T09:50:45.130
database_errors
dba.stackexchange.com
235,441
How does postgres host based authentication work?
This is a duplicate of: https://stackoverflow.com/questions/55804806/how-does-postgres-host-based-authentication-work (I was asked to shift this query to DBA.Stackexchange) I am installing DSPACE which needs Postgresql. Please see this link: DSPACE INSTALL It says: Then tighten up security a bit by editing pg_hba.conf ...
A [CODE] connection uses a Unix-domain socket; a [CODE] connection uses TCP. The linked page says that you need to enable TCP/IP connections (DSpace uses JDBC) … because JDBC does not have built-in support for Unix-domain sockets. As long as a connection is allowed only from [CODE] (as configured in [CODE] ) and only t...
1
0
136
2019-04-23T06:04:04.720
data_quality
dba.stackexchange.com
51,516
prepare stmt is not working
set @sqlt = concat("select", @rowname_date," from [CODE] . [CODE] "); prepare stmt from @sqlt; execute stmt; deallocate prepare stmt; gives me a eeror 1064 in the prepare statement? Any advise please. Thanks
Assuming that you have a valid column name or a properly escaped literal in [CODE] and you don't have leading spaces in it then you have to have a space after [CODE] clause [CODE] Here is SQLFiddle demo
0
1
89
2013-10-15T06:16:30.943
warehouse_errors
dba.stackexchange.com
287,756
How can I output text until it is ascii in SQL?
How can I output text until it is ascii in SQL? Here is what I am trying to do: [CODE] But in the end I am getting an empty string. Why? What am I missing here? I am expecting the value of the [CODE] to be [CODE] in the end of the script. UPDATE If I update the script to the [CODE] It will work as expected. But here I ...
A space is not a valid range delimiter so [CODE] will not work. That becomes a test for those three characters only. You could check the ASCII code directly, rather than using [CODE] : [CODE] demo Side note: It's possible to get unexpected results with [CODE] ranges because the comparison is collation-aware.
0
3
103
2021-03-26T10:24:15.440
warehouse_errors
dba.stackexchange.com
514,881
Puppet changes directory ownership frequently from "users" to "users"
I see many messages in my Puppet dashboard that say a change has taken place, changing ownership of a group from "users" to "users". It seems to be related to the group 'users' existing twice, once locally with group id 100 and once with group id 3000. [CODE] It seems that most of the time Puppet does not change owners...
You have a duplicate group name, so all bets are off. [CODE] will be calling [CODE] , which in the case of duplicate group names will return one or the other: there's no way to tell what you'll get. Duplicate group names are a bad thing in all sorts of ways, the most obvious being that you don't know for sure how the p...
1
6
247
2013-06-11T09:08:35.573
pipeline_ops
serverfault.com
445,633
How to represent the absent of a field value in json response?
I am a react developer and writing the client on pure JS. I have sometimes missions to received data from server and send data to server. Now between the client team and backend rough discussion regrading how to send the data. The server use map object for almost every thing, even for small data sets of information, th...
Empty object ( [CODE] ) is definitely not the right way to represent a missing value! An empty object could be a valid object where all properties are optional, so using this to represent a missing object would introduce ambiguity. JavaScript supports both [CODE] and [CODE] for missing values, but in the context of an ...
1
2
707
2023-05-20T13:29:29.637
data_quality
softwareengineering.stackexchange.com
1,057,305
How can I measure the speed between laptop and wireless access point?
How can I measure the speed between my laptop and the wireless access point it’s connected to? Notes: when measuring the speed of the general connection to the internet, I’d use something like speedtest.net, but I’m not sure how to measure the speed just between laptop and WAP? In case it’s relevant, the reason I would...
I this case, you need to measure the speed between two local devices in the same network, connected to the same router/wifi/access-point. Just get a tool to measure network speed for local networks and run it. Please take a look at this blog post: [https://www.raymond.cc/blog/network-benchmark-test-your-network-speed/]...
0
1
1,594
2021-03-17T00:51:13.777
infrastructure
serverfault.com
36,683
How to re-simulate a long query stuck in mysql queue?
BACKGROUND Occasionally, in my live web app, I'll get a query that locks up the database for 1-2 minutes. Sometimes it is hard to predict which queries will do this until the load gets to a certain point, or a particular user with a particular set of data runs through that query. The current solution I have for handlin...
Can you please share more on what queries are you running? I think, you can make use of InnoDB engine which will do row level locking instead of table level lock. Also you can make you of slow query log which will log all the queries taking more than n seconds (as specified in config)
4
1
1,324
2013-02-25T19:36:20.290
database_errors
dba.stackexchange.com
1,077,439
Exchange Server 2010 SP1
I am having trouble getting my Hub Transport Rules to stop emails from leaving my organization. Currently I have the rule stopping people in certain distro groups from sending emails outside the organization. I set the rule to be enabled and put my user account into the group yet am still able to send off site. I even ...
Based on my test, before/after adding users to this group, if we create transport rules to block external emails which are sent from a member of a distribution group the rule may not work immdiately(or not work at all). However, we could try restarting MS Exchange Transport service to speed up this modification. After ...
0
0
50
2021-09-13T14:38:50.020
infrastructure
serverfault.com
260,326
MySQL tables_priv corrupted
I have a mysql database and i need to create an user for the login. This user need the privileges to only select on only one table where the login info are. on phpmyadmin when i use the gui i receive this error: '#1194 - the table 'tables_priv' is signed as corrupted and need to be repaired. If i use the cli with this ...
"Repair" the table: Plan A (assuming you can connect as root): [CODE] That will probably tell that it needs repairing. Then do [CODE] Plan B: See how to do the equivalent with [CODE] from the shell prompt.
-1
0
655
2020-02-22T18:13:03.843
database_errors
dba.stackexchange.com
249,931
Ubuntu: Compressed, but not encrypted, tunnel for TCP?
How can I set up a tunnel for TCP connections between two hosts so that I can test a few different compression algorithms? I'm aware of stunnel & SSH, but want to avoid the overhead of encryption. To avoid TCP-in-TCP flow issues, UDP as the transport is fine. Basically, at the source and destination, I'd like to try pi...
I think netcat is perfect for this situation. "Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol." http://netcat.sourceforge.net/ http://en.wikipedia.org/wiki/Netcat/
2
3
1,930
2011-03-21T16:36:24.610
infrastructure
serverfault.com
102,092
How do I get SUNW_1.4 version of libthread.so.1 for Solaris 2.6
I have installed an old application on an old Ultra 5 with Solaris 2.6. When I start the app, I get the error: ld.so.1: : fatal : libthread.so.1: version 'SUNW_1.4' not found. There is a version of libthread.so.1 present in /usr/lib dated sometime 1998. This app is supposed to be compatible with Solaris 2.6, so I am no...
It could well bet that 'SUNW_1.4' arrived in the patch that you have found. Your application might be for a certain release of Solaris 2.6. e.g. the one that shipped in 2001 rather than the one released in July 1997. Solaris 2.6 is long EOL and is now on the graveyard section where no support is offered. Check in your ...
0
0
637
2010-01-12T23:09:18.803
infrastructure
serverfault.com