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
48,568
How to relate two rows in the same table
I have a table where the rows can be related to each other, and logically, the relationship goes both ways (basically, is directionless) between the two rows. (And if you're wondering, yes, this really should be one table. It is two things of the exact same logical entity/type.) I can think of a couple ways to represen...
What you have designed is good. What needs to be added is a constraint to make the relationship directionless. So, you cannot have a [CODE] row without a [CODE] row being added as well. This can be accomplished * with a self referencing constraint on the bridge table. *: it can be accomplished in Postgres, Oracle, DB2 ...
12
10
18,214
2013-08-23T01:11:50.663
database_errors
dba.stackexchange.com
1,023,579
Nginx load balancer throws 502 error on proxy passing SSL traffic
I have two debian 10 servers configured as follows. 10.0.0.3 is loadbalancer based on nginx and port forwarded (80, 443). 10.0.0.2 is one of the servers behind proxy which I want to proxy traffic in. Loadbalancer nginx config: [CODE] and example config for phpmyadmin which is on 10.0.0.2 server [CODE] The error I get i...
The problem was that the server name wasn't pass at all so the backend service didn't resolve request. I've run the dnsmasq and forwarded servername with wildcard rule in dnsmasq
0
0
850
2020-07-01T09:50:06.653
infrastructure
serverfault.com
802,628
Apache 2.4 replacement for mod_auth_shadow?
My employer has been running RHEL 6.x and Apache httpd 2.2 for many years. We are currently in the process of migrating to new hardware running RHEL 7.1 and Apache httpd 2.4. Our current web site has various locations that contain downloadable material for different sets of clients. Clients all have system accounts on ...
It looks like you've already explored one option, here are a couple more possibilities although it looks like both will require some work. mod_auth_external: https://github.com/phokz/mod-auth-external mod_auth_kerb: http://modauthkerb.sourceforge.net/
4
1
1,707
2016-09-12T17:59:46.357
api_errors
serverfault.com
33,996
Which is better: many join conditions or many where conditions?
I am trying to compare two queries: Query 1: [CODE] Query 2: [CODE] Am I right to say that the these two queries give the same results? Further, is it correct to say that the first query builds a bigger table for which to do a bigger [CODE] condition; whereas the second case we have a smaller constructed table to which...
If we consider that you use [CODE] instead of [CODE] (which appears to be your intent), these two queries are functionally equivalent. Query optimizers will review and evaluate criteria in your [CODE] clause and your [CODE] clause and consider all of these factors when building query plans in order to reach the most ef...
17
10
43,527
2013-02-01T19:51:09.117
warehouse_errors
dba.stackexchange.com
35,272
Is there a way to dispute or challenge poor iPhone app reviews?
Problem: user has left review of iPhone app which is simply incorrect Question: is there a way to make contact with the reviewer and a) explain how what they've said is incorrect and help them with their issue or b) challenge the review? Edit Sept 2022 This is probably no longer relevant given that it was asked 12+ yea...
No, not at all. Encouraging people to contact you in the app description can reduce "the app doesn't work" reviews, but that's about it. It's unfortunate and pretty severely flawed, but there's no way to contact the reviewer and no way to challenge or respond to reviews. Reviews from people who've used the app and indi...
5
5
1,816
2011-01-10T12:29:08.807
api_errors
softwareengineering.stackexchange.com
379,156
Message Bus v Mediator pattern v In Memory Bus
I am struggling to understand when to use each of these: 1) Message Bus: Used to send integration events between Microservices. For example, Microservice A could publish an integration event, which is handled by Microservice B and Microservice C. The benefit of a Message Bus e.g. RabbitMQ is that it could be durable me...
A mediator pattern creates a flexible decoupled interface between two microservices. Messages are sent to and from each microservice without one necessarily having to know all the explicit workings of the other. This pattern is ideal if you think the relationship between the two might change significantly in the future...
5
5
10,063
2018-09-28T10:20:33.090
api_errors
softwareengineering.stackexchange.com
61,009
NER with Unsupervised Learning?
If we treated NER as a classification/prediction problem, how would we handle name entities that weren't in training corpus? For example, "James was born in England." James was labeled as a PERSON and England as a LOCATION. But we type another completely strange sentence like "Fyonair is from Fuabalada land." We as hum...
If we treated NER as a classification/prediction problem, how would we handle name entities that weren't in training corpus? The goal of a NER Tagger is to learn patterns in language that can be used to classify words (or more generally, tokens), given a pre-specified set of classes. These classes are defined before tr...
2
1
2,676
2019-09-29T18:57:49.457
data_quality
datascience.stackexchange.com
135,309
What precisely does "Applicative" mean in computer science?
I know what an "applicative Functor" is, but I've been reading papers recently that refer to other "applicative" things, particularly "purely applicative data structures". The trouble is, I'm not sure precisely what "applicative" means in this context, and Google has so far failed me. I can get a general English (ie us...
The best general definition I can think of is "respects the principle of extensionality ". An applicative functor given equal structures produces equal structures. Contrast with a generative functor, which produces a "fresh" structure each time---that is, the equality of structures depends on "where" and/or "when" they...
6
3
789
2012-02-16T00:50:07.170
api_errors
softwareengineering.stackexchange.com
1,013,318
How to send password with special characters from ansible to Python script?
I am invoking a python script from ansible playbook. While invoking I am passing the credentials to the python script as arguments. The password has some special characters. But in Python script, I am receiving the password without the special characters. So password becomes incorrect and I am getting unauthorized erro...
Add one more variable "credential_password" like this and run the playbook. This regex_escape() will help in escaping the special characters. [CODE]
0
0
5,501
2020-04-21T05:29:09.147
database_errors
serverfault.com
568,153
LVM volume mapped block device size is 0
I'm having a problem with my LVM volume. I lost a disk out of my RAID array, and started in in degraded mode. Now when I try to access 2 of the LVM volumes, they report a block size of 0. Does anyone know what is going on? [CODE] [CODE] [CODE] [CODE]
I retested with a newer linux kernel and the issue went away. Maybe this was an old bug that has been fixed.
0
0
495
2014-01-18T00:30:13.353
infrastructure
serverfault.com
11,081
Importance of feature selection for boosting methods
While it is obviously clear that features can be ranked on basis of importance and many machine learning books give examples of random forests on how to do so, its not very clear on which occasions one should do so. In particular, for boosting methods, is there any reason why one should do feature selection. Wouldn't t...
There is a difference between boosting and features selection. It is very important to understand that the original boosting algorithm or bagging algorithm have been modified and augmented with many features selection and/or data sampling ( over/ down/ synthetic) to improve the accuracy. Let us talk about the differenc...
5
4
2,433
2016-04-07T09:03:49.453
data_quality
datascience.stackexchange.com
197,366
Query slow - not using relevent indexes
The table has around 7 million rows. The following query takes around 7 seconds and it seems to use none of the related indexes: [CODE] Explain extended result: [CODE] Instead of checking for multiple values in 'In' clause, if I use one value, then the result is in .03 secs. Can anyone help out? Thanks in advance.
According to my knowledge of indexes (i haven't work with MySql lately), first: whatever field you have in your LIST of SELECT should also be indexed. But i noticed another probable behavior that could be happening in your given query: in your INs you are looking for strings ('1', '2', 'etc'), are those fields Varchars...
0
0
59
2018-02-08T07:31:23.253
warehouse_errors
dba.stackexchange.com
994,409
Find the used hard disk data and solve disk pressure
I have a server which is running Ubuntu 18.04 and it is also a worker node for K8s. Sometimes I see that K8s is killing pods on this machine because of disk presseur and when I get [CODE] I can see that 85% (1.5T) of the disk is in use at [CODE] : [CODE] The problem is when I go to [CODE] and get [CODE] I can just find...
I found a way to use [CODE] to show me the list of used files and sort them at https://unix.stackexchange.com/a/382696/380398 [CODE] and when I used it I got: [CODE] Which correctly sums up to 1.5T (if I also add other stuff that I could see before).
11
16
20,699
2019-12-05T09:07:13.747
pipeline_ops
serverfault.com
927,616
Fixing 70% transfer speed slowdown over VPN compared as compared to SSH? (Tested OpenVPN, IPSec/L2TP, OpenSSH, SoftEther)
I'm currently configuring a site-to-site VPN between two VPSes that requires both outgoing and incoming connections. It will be used by a high bandwidth application so I require the maximum amount of speed that I can get over the connection. Using iperf3, I'm getting about 600Mbit/s over the connection reliably, with ~...
Given the link posted in the comments, I decided to take another look at this openvpn article: https://community.openvpn.net/openvpn/wiki/Gigabit_Networks_Linux I was able to achieve ~150Mbit/s average using a couple of the settings from this article. Here are the steps I took to configure my OpenVPN to achieve this. T...
1
5
5,098
2018-08-23T05:14:19.763
api_errors
serverfault.com
282,328
Inserting date range arrays daterange[]
I'm trying to insert the value of an attribute of a tuple, which would be an array of date ranges, i.e. a [CODE] , in a previous tuple accepted the value: [CODE] But now I would like to insert this array, with more than one range: [CODE] I have tried all possible solutions,putting the outer quotes [CODE] Putting the in...
This would be legal syntax - using ISO format for dates ( YYYY-MM-DD ), which is always a good idea as it does not depend on the current setting of [CODE] . Your example only works with [CODE] . [CODE] You can always ask Postgres to show you: [CODE] The error msg you report does not seem to be generated by Postgres. [C...
2
1
1,444
2020-12-29T23:24:05.180
warehouse_errors
dba.stackexchange.com
720,756
libGL error: failed to load driver: swrast error on AmazonEC2 with Ubuntu14
I have a [CODE] instance on [CODE] with [CODE] of ram and [CODE] of disk space. The OS used is [CODE] and the desktop manager is [CODE] . I'm using [CODE] to remotely access the desktop, and it is working relatively well. However, I have issues with some [CODE] applications, the error I get is: [CODE] The graphic card ...
The software you are running is trying to use OpenGL, but the virtual hardware is not OpenGL-capable. The virtual machine emulates a mid-1990's Cirrus video card which is barely capable of displaying graphics at all. In order to run software that requires OpenGL on Amazon EC2, you must use a GPU (G2 or CG1) instance. C...
-1
1
1,850
2015-09-08T01:41:47.710
infrastructure
serverfault.com
1,112,191
Postfix: How to reject emails from all senders except one
I want to reject any emails that don't come from user@example.com. So far I've tried adding this to /etc/postfix/header_checks: [CODE] And I added these lines to main.cf: [CODE] This configuration doesn't work, I can longer send any emails. When I do I get the following warning: [CODE] I'm unsure what else to try. Any ...
Header checks are applied to each message header. Thus, rejecting any message containing a header except the one you checked for.. rejects all valid messages. In your example it was rejected based on an unrelated but generally present header ( [CODE] ). To fix your immediate problem, match only the header you actually ...
1
1
465
2022-10-04T02:11:12.040
infrastructure
serverfault.com
184,862
How to name a variable when the word is both a noun and a verb
I have run into a corner-case problem with the general guidance of: nouns for variables verbs for functions Specifically, I have a case where the word is ambiguous - it can be either a verb or a noun. And in some cases when we're discussing the application, it will be used both ways in the same sentence. My intent is t...
In similar situations I try to find synonyms. In this case I would use "recharge" for the verb. The "re-" is slightly redundant, but the meaning is clear. Using the simple "charge" for the remaining charge in the battery is ambiguous because it doesn't specify any physical units. I would prefer "availableAmpHours", "ho...
52
42
14,676
2013-01-25T19:40:54.280
api_errors
softwareengineering.stackexchange.com
1,065,859
Use ipmi to control fan speed on ASRock X570D4U-2L2T server
Problem I can't use ipmi to control fan speed. I have an X570D4U-2L2T motherboard with a Ryzen 5600x and am running Ubuntu 21.04. Can the community advise how I might use [CODE] or [CODE] to control the fan speeds – either to set a constant value or to set a curve? Background information I tried the web interface. I ca...
Try [CODE] Where "fan_id" is the fan position (ID number). ASRock boards follow a pattern in terms of the Fan ID / fan position order specified in IPMI commands that control the fans. You need to know which fan name corresponds to which fan ID number (position) before you can set the fan's thresholds. If you want to se...
0
1
2,452
2021-06-06T09:36:17.943
infrastructure
serverfault.com
666,754
UnicodeDecodeError in Ubuntu while installing PHP5.6 from PPA
I have a clean VPS, with Ubuntu 14.04 LTS x64. And Tried the following: [CODE] But then it fails at the last one: [CODE] I couldn't figure out whats wrong. It's all pretty basic.
The proper way is to enable UTF-8 support in your terminal. First check your locales: [CODE] Then, install an UTF-8 locale, for en_US, the example as follows: [CODE] Then you need to export it: [CODE] Then the [CODE] command will work okay. If this still doesn't still work, try using this line: [CODE]
11
12
8,072
2015-02-11T12:40:55.007
infrastructure
serverfault.com
1,146,929
How to rescue an encrypted LUKS partition that was partially modified by a Windows tool?
On a system with dual boot, the Windows tool Dell SupportAssist started to modify partitions now I ended up with a broken Linux installation. The Linux installation is/was Ubuntu with an encrypted LUKS partition and before applying a week-old backup I thought that there might be a change of rescuing some data. A live d...
Keep calm, don't apply changes on testdisk further. Get an USB Hard Drive (important) Clone entire disk to USB HDD with dd command Then, attempt to rescue marked partition below in the USB HDD If you're lucky, you could mount and get the data out from the USB HDD. Otherwise, repeat step 2 but upper than the marked part...
1
2
355
2023-10-31T11:52:36.953
api_errors
serverfault.com
1,029,459
Authorize an user to use a permission-required software downloaded in program file(x86)
There are several permission-required software downloaded in program file(x86) in my company. Every time users need to use them, I have to go to their computers and type the password of administrator for them. This is okay, but there's a user needs to use a software many times everyday. Thus I decide to authorize him o...
If a UAC prompt is requesting administrative credentials to execute the application, this would not have anything to do with your WS2012 server, rather it's the application being executed that is asking for this. There are two ways around this. The first one requires you to give the users local administrator rights on ...
0
0
539
2020-08-10T01:42:28.913
infrastructure
serverfault.com
348,916
apache2 ldap authentication
For whatever reason, I am not able to include the following line in my httpd.conf: [CODE] I keep getting the following error: [CODE] Apache is compiled from source with : [CODE] What other compile-time options should I pass? Building this for svn/ldap servers, compiling support in instead of dso. Thanks! V
Must add --with-ldap to compile options
4
1
7,412
2012-01-11T16:36:20.587
api_errors
serverfault.com
510,131
Why dovecot doesn't deliver the E-Mails?
I have the problem, that dovecot doesn't deliver the E-Mails to my Inbox (roundcube). my dovecot.conf [CODE] mail.log [CODE]
Your config for the local delivery is wrong. Start with a simple Postfix config for delivery the local mail. There are a few Tutorials for example: http://rimuhosting.com/support/settingupemail.jsp?mta=postfix In your case you can start with simple Postfix config, your dovecot Config seems to be okay. You can start wit...
1
1
1,433
2013-05-23T07:02:22.203
infrastructure
serverfault.com
200,136
Postgresql: What the default_statistics_target value really means?
Increasing the default_statistics_target value can make your database faster, specially after analyze.... Reading this article I see that https://discuss.pivotal.io/hc/en-us/articles/201581033-default-statistics-target-Explained (...)in short and in basic term, this parameter control the way the stats are collected , w...
It will sample [CODE] rows from each table. It will use that sample to determine upto [CODE] most common values to store in that array, and upto [CODE] histogram bounds to store in that array. Plus a few other scalar statistics, like the number of distinct values. The multiplier 300 was chosen because some statistical ...
19
24
10,784
2018-03-13T17:08:06.417
database_errors
dba.stackexchange.com
30,955
Sporatic Connection issues connecting to SQL 2005 - Named Pipes vs TCP/IP issue?
We have a production website that is experiencing periodic connection errors to our SQL 2005 server, several times a day during peak usage: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL ...
Typically we only use TCP/IP in our connection strings (with a non default port number) and have no scalability issues, for both local and wan based servers. You can FORCE the use connection to use TCP/IP by using the server=dbservername,1433 in the connection string (i.e. specifying the port number). We usually leave ...
3
1
2,658
2009-06-24T12:56:49.540
database_errors
serverfault.com
390,390
Tomcat and nginx sizing
I manage an application that is deployed on Tomcat servers, with nginx in front, as a reverse proxy. I need some help for the sizing of thread pools / connection pools / ... I find quite a lot of documentation describing the different parameters (Tomcat executors, nginx workers, keepalive, ...) but not much documentati...
1 worker process on nginx with 1024 worker connections. So you cannot handle more than 1*1024 connections and nginx cannot use more than 1 processor core. But I also understand that nginx only does HTTP1.0 as a proxy. Wrong. See: http://nginx.org/r/proxy_http_version Are those waiting connections consuming Tomcat threa...
3
4
1,272
2012-05-18T14:00:46.530
database_errors
serverfault.com
134,829
Chunk error when upgraded to mongodb 2.6 while uploading doc
I was trying to upgrade mongodb 2.2 to 2.6 and upon testing 2.6 received chunk out of order error.. I recieve an unexpected error from the server: exception: chunks out of order at /home/ps203k/.perlbrew/libs/perl-5.20.2@oasis-gsp_oss/lib/perl5/x86_64-linux-thread-multi/MongoDB/GridFS.pm line 236. it is standalone.. an...
Did you follow the guidelines ? To upgrade an existing MongoDB deployment to 2.6, you must be running 2.4. If you’re running a version of MongoDB before 2.4, you must upgrade to 2.4 before upgrading to 2.6. I have upgraded from 2.4 to 2.6 with no issues on a sharded cluster.
0
0
30
2016-04-09T00:13:09.327
database_errors
dba.stackexchange.com
328,275
Database design suggestion for improving existing design
Background I am working on an IoT application that deals with sensors, their configurations and their readings. Following are the requirements of the system, Each sensor can support multiple features. Example: Temperature, Humidity, etc. The features supported by a sensor are identified by the model linked to the senso...
The current count of columns I have in my table is 35 which I think is huge. No is not huge, I've seen worse. Even if you are creating smart bulb with a CPU you can now store 256Gb in a card smaller than your thumbnail. and no, SqlLite will not have headache if you have 35 columns or more. But I agree it's mess. Becaus...
2
1
71
2023-06-14T07:27:05.997
data_quality
dba.stackexchange.com
880,590
vlans for corp and guest networks SSID broadcast
Cenario: Two separated physical connections: 01 Corp (Internet, shared network resources, etc) 192.168.10.x 02 Guest 192.168.1.x (Internet only) AP: ZyXEL NWA3560-N Lab switch: HP 1810-24G What I’m trying to accomplish is connecting two different networks in the same switch and setting the Access Point to broadcast two...
You need to: create two SSIDs on WAP and associate them with the two transport VLANs set WAP uplink (to switch) to transport both VLANs, one untagged, all others tagged (trunk port) create the two VLANs on the switch set switch downlink port (to WAP) to transport both VLANs, identical to port config in WAP connect VLAN...
0
0
35
2017-10-27T10:59:21.723
infrastructure
serverfault.com
369,053
How to avoid != null statements?
I use code [CODE] to avoid [CODE] . Is there a good alternative to solve this as follow ? [CODE] This will not work for [CODE] , when it is unknown that if the object is null or not .
The dilemma If a variable with [CODE] value gets used in your program causing a [CODE] , this is clearly a situation in your program which you did not expect. You must ask yourself the question: "Did I not expect it because I didn't take into consideration the possibility of a [CODE] value or did I assume the value cou...
2
5
13,333
2018-04-09T08:13:22.810
api_errors
softwareengineering.stackexchange.com
65,742
Stored Procedures a bad practice at one of worlds largest IT software consulting firms?
I'm working at a project in one of the world's top 3 IT consulting firms, and was told by a DBA that company best practice's state stored procedures are not a "best practice". This is so contrary to everything I've learned. Stored procedures give you code reuse, and encapsulation (two pillars of software development), ...
In my experience working on very large projects, you have to be very clear on where business logic lives. If you allow an environment where individual developers can put business logic in the business object layer or in a stored procedure as they see fit, a large application becomes VERY difficult to understand and mai...
173
307
161,401
2011-04-06T21:58:26.463
database_errors
softwareengineering.stackexchange.com
458,626
Does CPIO produce platform dependant archives?
I made a CPIO archive with following command on Solaris 11 (SPARC): [CODE] I copied it to Intel based Solaris 11 machine and tried to extract using the following command [CODE] It gives me following error: [CODE] The MD5SUM hash matches and I can extract it on another SPARC machine. My question, does CPIO produce platf...
If the quoted commands are copy and pasted correctly, this seems to be a mistake in the choice of flags - you didn't create the archive with the "-c" option (use ASCII portable format) but you are telling it to expect that format for reading the archive.
1
3
305
2012-12-17T08:44:51.683
hadoop_errors
serverfault.com
235,384
MySQL 8.0.15 starts normally but any connection hangs
I dropped a large table (80G) Friday morning and got a crash: InnoDB: ###### Diagnostic info printed to the standard error stream 2019-04-19T18:48:55.445507Z 0 [ERROR] [MY-012872] [InnoDB] Semaphore wait has lasted > 37617336 seconds. We intentionally crash the server because it appears to be hung.[FATAL] Semaphore wai...
Everything but the bit about the general log was a distraction. Killing the mysqld daemon, disabling the general log in my.cnf and then restarting the server worked fine. Although I can't find this documented anywhere, apparently mysqld will be completely unresponsive while it is busy prowling through it's general log,...
0
0
944
2019-04-22T14:00:44.850
pipeline_ops
dba.stackexchange.com
28,221
How does changing Windows SID affect SQL Server?
Our Windows admins have identified an issue with the way that they clone Windows servers. Apparently some of the cloned servers end up with the same SID at the OS level. I hear Microsoft doesn't support servers that have duplicate SIDs. Therefore, the SIDs on these servers need to be changed. I'm curious how that affec...
Leave the SID alone. NewSID has been retired because Mark Russinovich did some digging and found that the whole "duplicate SIDs == bad!" line we've all had drummed into our skulls over the past decade or so is just a load of nonsense. See Mark's latest blog entry: The Machine SID Duplication Myth .
11
9
21,617
2009-06-18T18:03:56.913
database_errors
serverfault.com
302,222
Best practices in storing chunks of external code
I am building a wrapper to a load-testing tool that will take configuration and scenario files as yaml and build a large, unwieldy xml file which will be destroyed when it is no longer needed. A sample yaml file would look like this: [CODE] The xml contains a host of data that is specific to the underlying tool being w...
The best practice is to make sure you can generate YAML from XML as well as XML from YAML: This proposal prescribes an isomorphic rendering in YAML of a subset of the TOSCA v1.0 XML specification ensuring that TOSCA semantics are preserved and can be transformed from XML to YAML or from YAML to XML. Additionally, in or...
1
1
223
2015-11-10T14:38:51.723
api_errors
softwareengineering.stackexchange.com
283,492
How to quota a CDB only tablespace to a CDB user?
I can create a CDB tablespace like this: (all using: [CODE] ) [CODE] I can create a CDB user with a default tablespace "system" since all PDBs have a "system" tablespace: [CODE] I can't create my user with default tablespace "admints": [CODE] And I can't give quota to my created user on my created tablespace since it o...
All containers have a default tablespace: [CODE] Create the user without specifying anything: [CODE] Then alter the user in the root container: [CODE]
0
1
591
2021-01-18T14:36:29.147
warehouse_errors
dba.stackexchange.com
528,973
Max connections limit configuration on Apache server - CentOS 6.4
We have an Apache's and a CherryPy (Python) server running on on CentOs 6.4. Yesterday the Apache server suddenly went down while the CherryPy which uses the port 8080 works fine. We are trying to sort out the problem but no luck. It seems like there was something wrong with max simultaneous connections but we don't kn...
You should check values in the /etc/httpd/conf/httpd.conf [CODE] You should change processing model that you are using (may be it is worker) You could try to determine how many clients could serve you server from output of the top/atop/htop [CODE] As you can see from the output - average amount of RAM required by one a...
0
1
25,319
2013-08-06T09:22:20.090
infrastructure
serverfault.com
676,735
proftpd ssh key-based authentication not working
I've setup a new proftpd server with mod_sftp for SSH support, that I'm able to login to when I use a password. But when I try to use my SSH key, I'm unable to connect. Here's the full proftpd.conf file: [CODE] Here's a line I see in /var/log/messages regardless of the authentication method used: [CODE] Other than that...
From your configuration, it looks like you'd like a normal FTP server on port 2215, and the SFTP server on port 2216. In order to do this, you would need the [CODE] configuration in its own [CODE] section. As your configuration stands, both [CODE] directives appear in the same "vhost" context, and thus ProFTPD, when pa...
1
1
4,395
2015-03-19T15:16:10.410
api_errors
serverfault.com
994,621
What happens when I perform this as root
(don't try this!) [CODE] After executing this I'm not able to login as it removed [CODE] . Reboot also don't work. Shows kernel error and server crashed.
You will need to reinstall the operating system. [CODE] lists open files [CODE] returns the top 100 [CODE] recursively delete them You've likely deleted 100 random open files, including things like shared libraries and core utilities. The OS is now unusable.
-7
7
76
2019-12-06T17:03:13.953
infrastructure
serverfault.com
223,719
Tutorials for making ISA and Cache Servers?
i am looking to create a LAN network i want to make an ISA and cache server for better performance and security i am looking easy to understand and complete tutorials, help required and also suggestions are accepted for making my network very fast and efficient one more thing i have to rely more on cache as the interne...
ISA Cache is really meant for networks with hundreds of users, not a small network with a 2Mb connection. The reason for this is that if you imagine a large network, people may all be accessing the BBC, or another news website at the same time. Caching is great for 20+ users accessing at the same time, but if you only ...
0
2
171
2011-01-18T08:40:07.820
infrastructure
serverfault.com
591,877
Why cron job is not able to open X display connection
I have a java app rendering some sprites using LWJGL and OpenGL. It works fine until I move it to remote virtual machine with no phisical graphic card, Mesa 3d with related stuff is used to emulate it there. When I connect via ssh and start job manually it works fine. But running as a cron job it throws an exception [C...
X11 servers don't simply get started on demand. There has to be a running X11 server, your application has to know about the existence of the X11 server it should be using via the DISPLAY variable, and the account must be authorized to connect to the X11 server that the DISPLAY variable is pointing to (xauth). X11 forw...
-1
3
2,474
2014-04-29T01:33:24.163
infrastructure
serverfault.com
77,574
How to use id's in binary classification problem
I would like to predict for a given user (on a website) if he/she logs out from the website within ten minutes. In terms of data, I have a user ID and timestamp of the latest post on the website. example of an id: [CODE] It would be great to get advice on how to use this data to achieve the goal. Should I use the user ...
So the question asks how to model the task of predicting whether a user (u) will log out within the next ten minutes (?, worth clarifying this and the data you have available). If so, as you suggest we represent this as a binary classification model (does log out within ten minutes / does not log out). The modelling of...
-1
1
125
2020-07-11T21:05:25.607
data_quality
datascience.stackexchange.com
661,421
Is Lync chat, or Persistent Chat a viable alternative to email based alerts?
I'm dealing with an envrionment that mostly uses email for alerting. The issue I have is that all emails must be journaled by policy. In addition, each email is replicated via SMTP using SMTP redundancy, and then again with DAG redundancy. The messages themselves are tiny (5K), but are so numerous that email archiving/...
You could, the real problem isn't getting the message via lync, but about having an effective audit trail for when on call developer doug ignores the IM. He could always claim he didn't get the IM, but SMTP has complete delivery headers, showing that the mail was in the mailbox he was supposed to be checking. If that's...
0
1
116
2015-01-22T00:48:07.360
airflow_errors
serverfault.com
774,459
Docker mount command (mount failed: Unknown error -1)
I'm trying to migrate my existing application to Docker, it mounts an image but is getting an error: [CODE] These are the steps: Create an empty floppy image of 1.44 MB as root: $ /sbin/mkfs.msdos -C / 1440 Mount the directory: $ sudo mount -o loop /path/imagefile.img /media/floppy1/ Copy the XML file to the mounted di...
In my docker-compose I added: [CODE] setting.
2
1
1,748
2016-05-03T06:23:47.283
pipeline_ops
serverfault.com
405,688
Strategy vs Factory design pattern
I am new to design patterns and working my way through the Factory Method and Strategy patterns. I understand that Factory is a creational pattern and Strategy is behavioral but I struggle to understand when to use which one. For example, I have the following classes that updates client details based on the company spe...
You are correct that these have a lot of similarities. As mentioned in other answers, the difference is about goals. The Strategy pattern is often misunderstood but it's also one of them most valuable patterns for simplifying code. The key to the pattern is that it allows you to have objects that change their behavior ...
21
11
11,565
2020-02-24T18:06:43.153
api_errors
softwareengineering.stackexchange.com
909,144
Problems while establishing a remote connection to MySQL using DataGrip
I'm new to these things, I'm familiar with the command lines and the SQL commands. I am currently working on a MySQL database that I have installed on a Linux server (Ubuntu Server) remotely outside my city. In the office I use a macOS machine to develop applications and manage the server. Currently I move data to and ...
Is MySQL listening on the public IP of your remote server? Is the 3306 port on the public IP of the remote server reachable from outside? Most likely no, and that's good. What you need to do is tell DataGrip to open a ssh port forward to the server (a tunnel) and then open a connection to MySQL. It looks like DataGrip ...
1
1
4,183
2018-04-24T08:16:32.360
database_errors
serverfault.com
835,212
LFTP: certificate common name doesn't match requested host name
Using [CODE] to upload files to a remote server from two computers on my network. Using the exact same code this works fine on one and doesn't work on the other. Transcripts of a problem session and a successful session are shown below. The error that I get is: Certificate verification: certificate common name doesn't ...
As the comments said, ssl:check-hostname will work. It can be set in lftp shell by [CODE]
10
11
21,020
2017-02-27T17:15:46.747
infrastructure
serverfault.com
56,260
Automatic Failover in Availability Group
I have 2 nodes in my SQL server fail over cluster. I use SQL Server 2012 Availability Groups for HA purpose. The problem is that when one my server goes down the automatic fail over does not happen! How can I enable automatic fail over?
If you want to enable automatic failover, you will need to ensure that you have an "automatic failover set", to include two replicas (in your case, that'd be your two nodes) both set with synchronous commit , as well as automatic failover . When you setup the Availability Group, this can be accomplished through the GUI...
1
1
1,229
2014-01-07T10:57:31.933
database_errors
dba.stackexchange.com
37,126
What would be the main and essential criteria for evaluating auto-sklearn library ?
I m running experiments using benchmark datasets with auto-sklearn to see how its performance is different to the standard sklearn library, Since automl does an exhaustive search over parameters and sklearn has to be manually tuned. what could be the essential criteria to judge the performance between these two librari...
There are many ways to evaluate the differences. Here are a couple: Performance on evaluation metric. Search time.
1
0
71
2018-08-18T12:52:11.323
data_quality
datascience.stackexchange.com
1,127,496
Is there a way to use a wildcard with a suffix for DNS records in Cloudflare?
Suppose there is a domain [CODE] . I want to separate it into 2 parts eg: [CODE] -----> IP1 such that all dns with suffix [CODE] point to IP1 [CODE] -----> IP2 such that all dns with suffix [CODE] point to IP2 I tried this but giving [CODE] in cloudfare is not sending the request to IP1 Is there a way that this can be ...
You can create page rules (up to 3 on the free tier) to do the matching. Define a rule saying: [CODE] then [CODE] Here you will get some examples with more complex configs: https://developers.cloudflare.com/support/page-rules/recommended-page-rules-to-consider/
1
1
498
2023-03-22T09:21:42.233
infrastructure
serverfault.com
434,895
Setting an SPF/DKIM record with CloudFlare
What is the correct way to setup an SPF record? Use TXT and add the following? [CODE] UPDATED: After using the following: [CODE] I get this: [CODE]
If you haven’t already found www.open-spf.org , it’s a great resource. Pay attention to the SPF vs. Sender ID topic. Check out http://www.open-spf.org/SPF_Record_Syntax for the down and dirty. If you’re hosting your own mail server and your MX records constitute the only sending servers, you can get away with just the ...
2
8
8,264
2012-10-04T17:18:33.280
infrastructure
serverfault.com
246,593
Should I persist notification before or after publishing it through Redis pub/sub?
I'm implementing a mechanism to notify a group of users about newly inserted blog comments. The architecture uses the Redis Pub/Sub mechanism. By definition, the pub/sub mechanism aims to propagate message to the right subscribers, without storing/persisting anything. Although blog comments are obviously persisted in D...
The "issue" is that the process could be slow because of the step 3. You may want to use a pipeline: While step 3 is still inserting notifications, have step 4 start process notifications that are already inserted. You may have to redesign how step 3 works, e.g. by splitting up the users into batches. Would it be toler...
0
1
1,640
2014-07-01T19:50:16.150
database_errors
softwareengineering.stackexchange.com
696,601
How do I properly backup AD Users, Groups and OUs?
At work, we have a Microsoft Small Business Server 2011 server that's doing AD for the company. There are multiple Windows client machines that are part of the domain, but that server is the only domain controller in the AD. Keeping track of users and groups is pretty much the only thing the AD was doing for us - it ha...
A system state backup will back up AD. You can do this for free with the Windows Server Backup software that comes with your server. The command line for that is: [CODE] The only "gotcha" is that the backup disk has to be something that the install DVD can see while booting, so I use things like 2TB external USB drives...
3
3
14,111
2015-06-04T12:40:44.187
database_errors
serverfault.com
795,007
Exchange 2016 keeps giving away it's default Self-signed certificate instead of CA one
I've got Exchange 2016 server being prepared for it's prime time. But Outlook client, connected to mailbox on that server, pops out window saying that certificate issued by not trusted organization, more specifically - it's default self-signed certificate, which was created during Exchange installation. The problem is ...
Shinjijai, Here is the output: [CODE] Anyway, I've managed to fix it somehow. You see, it was second time installation of Exchange 2016 on same instance of OS. So one time there were two Self-Signed certificates for Exchange: one from previous installation, and one from current. I've noticed back then that for some rea...
0
0
1,907
2016-08-05T08:12:45.120
api_errors
serverfault.com
230,915
Common Methodologies for Writing "Post-Mortem" Reviews
We recently added a relatively large feature to our product that involved the entire R&D department (with all the different teams within it). This feature included UI development, server side development, and huge migrations of SQL schemes (and other stuff that I myself was not involved in at all). The development proc...
Having done this many times, this is the format that I have used successfully in the past. The order these headings are presented in will also make a difference in how the report is received by management. Whenever possible, leave them with a good taste in their mouths. This shouldn't have to be said, but... keep your ...
7
4
476
2014-03-01T20:08:35.783
api_errors
softwareengineering.stackexchange.com
414,637
Reload /etc/security/limits.conf
I would like to: make a soft 64GB limit for resident memory (so inexperienced users will get their run-amok processes killed, but experienced users can raise the limit for memory hungry processes) raise the hard limit for nofile, but keep the soft limit at 1024 (so if a certain program needs more filehandles, the user ...
Grrr.... [CODE] is not needed. [CODE] is needed. A restart of [CODE] is only needed if [CODE] was changed from no to yes. Disabling my own [CODE] was needed very much! I had [CODE] * statements in my [CODE] which re-used the ssh channel and thus I would not discover the change. Thanks to Samed Beyribey and quanta, whos...
10
3
23,910
2012-08-06T11:54:47.813
infrastructure
serverfault.com
116,502
How to use categorical data in forecasting with Prophet?
I'm trying to create a model to predict the number of players on a video game at a certain time and was trying to figure out how to integrate categorical data into my forecasting problem. So far, my plan is to use the Steam player count data to train Facebook's Prophet to predict the player numbers. I'm trying to figur...
Not sure if you can predict with many categories. Nevertheless, some categories could be transformed into numbers that would ease the predictions. For instance, the cost could be converted into 0: Totally Free, 1: Free with pass, 2: less than 10USD, 3: less than 30USD, etc. (Or just use the average money spent on the g...
2
1
1,389
2022-11-26T06:05:35.237
data_quality
datascience.stackexchange.com
160,081
NTLM, Kerberos and F5 switch issues
I'm supporting an IIS based application that is scaled out into web and application servers. Both web and applications run behind IIS. The application is NTLM capable when IIS is configured to authenticate via Kerberos. It's been working so far without a glitch. Now, I'm trying to bring in 2 F5 switches, 1 in front of ...
Microsoft says it's not possible . I've recently asked a similar but more general question .
3
1
3,947
2010-07-13T20:43:20.410
api_errors
serverfault.com
340,638
When do the benefits of nullable value types outweigh the cost of null pointers?
The question is in the title. Here is the context: Some people think that the null pointer is a big mistake. Tony Hoare famously apologized for inventing it. Since version 2.0 C# has had nullable value types ( [CODE] ), which introduces more of the null badness into the language. To confuse the issue, the C# team is co...
So C#'s nullable types aren't adding null pointers. They're an [CODE] type, where you are explicitly saying "this can be unspecified/null/empty", and users have to explicitly call [CODE] (or a cast) to get the value. In C++, and C# reference types (and many other places), things can be null, but normally aren't. Progra...
2
6
2,994
2017-01-21T01:56:38.110
api_errors
softwareengineering.stackexchange.com
1,077,612
Azure Security Center VM security configurations: how to suppress / exempt?
Azure Security Center has recommendations for the configuration of my Windows virtual machines (VMs). Azure Security Center → Secure Score → Recommendations → Remediate security configurations › Vulnerabilities in security configuration on your machines should be remediated → Remediate security configurations These rec...
I asked MS support. They showed me that these recommendations are part of the Policy Assignment called "ASC Default". Within the parameters of this Initiative Assignment, there is an option to disable the VM security config recommendations. This disables the entire scan, for all VMs in the subscription. This means that...
0
0
476
2021-09-15T10:05:39.580
infrastructure
serverfault.com
996,015
How to execute source command in docker-compose `command`?
I want to run source in docker-compose [CODE] , like [CODE] the error is [CODE] what can I do?
Use the builtin command from the shell which is embedded in your execution environment. If [CODE] , then run command [CODE] If [CODE] , then run command [CODE] If [CODE] , then run command [CODE]
0
1
2,940
2019-12-18T12:07:46.150
pipeline_ops
serverfault.com
358,772
RSyslog does not work with a log file located outside of /var/log
I am unable to get rsyslog to write to a log file located in a directory other than /var/log. The server is RHELS 5.6 and for the most part with a default configuration. Other than the rsyslog specific changes (rules added to iptables, etc.) It WORKS if I specify the following in /etc/rsyslog.conf: [CODE] However, it D...
SELinux will prevent processes that are labeled [CODE] to write to files that are (probably) labeled [CODE] . You need to label the file with something [CODE] can write to. Files in [CODE] are mostly labeled [CODE] , a type [CODE] can surely write to. You should not just relabel the files in [CODE] to [CODE] , because ...
3
7
15,051
2012-02-10T13:59:35.567
infrastructure
serverfault.com
710,813
how can tmpfs larger than SHMALL parameter?
The amount of Shared memory being utilized : [CODE] The max amount of shared memory system-wide, set by the SHMALL kernel parameter : [CODE] Question : How is this possible? How can the max total shared memory be set to 64GB in the kernel, but [CODE] is reporting that 96G shared memory is being used?
The [CODE] parameter refers to traditional UNIX IPC shared memory. You can see the memory allocations of that using the command [CODE] . The [CODE] temporary filesystem is a totally different subsystem used as a ram based, swap backed filesystem. [CODE] is used as the basis to perform posix shared memory in fact, which...
2
0
335
2015-08-04T16:12:31.470
infrastructure
serverfault.com
458,401
Why doens't my Postgres user have permissions to add a Postgres database?
First, I ran: [CODE] which worked fine, and I ran: [CODE] and got "permission denied: cannot create database" Firstly, should I even [CODE] as [CODE] to do operations like the first one (assuming my postgres data dir is owned by [CODE] ), or is [CODE] from any user (assuming [CODE] is used in [CODE] ) sufficient? Secon...
You are receiving this error because (as you correctly surmised) [CODE] is not a superuser, and does not have the [CODE] privilege. You can create the database as your [CODE] superuser, with [CODE] as the owner, which is probably the most sane option. Alternatively you could make [CODE] a DB superuser (definitely not r...
2
4
963
2012-12-15T19:19:54.320
infrastructure
serverfault.com
225,246
Factory method - when objects need information to get initalized
Lets look on a simple example: assume that I have three classes implemeting [CODE] : [CODE] , [CODE] , [CODE] . I also have [CODE] class which is simple Factory method pattern implementation - contains [CODE] methods which have enum/string as parameter. How could I create Factory pattern (or in other words centralize m...
I suggest to implement [CODE] as an abstract factory, with subclasses [CODE] , [CODE] and [CODE] . Those subclasses can have different constructor parameters (like [CODE] , [CODE] or no parameters). Once you have initialized those three factory objects, you can use them through an ordinary factory method for producing ...
2
3
165
2014-01-23T22:41:10.030
api_errors
softwareengineering.stackexchange.com
452,005
Is it reasonable to make a RAID-1 array with a ram disk and a physical disk to maximize read performance and protect data?
In one of the answers on SO (I forgot which one) I've seen a suggestion to make a RAID-1 array composed of a RAM disk and a physical partition. By adding the physical partition with [CODE] and enabling [CODE] the system should read everything instantly from the RAM disk but still save all data to the physical partition...
If all you are wanting to do is speed up the reads then it might be worth looking at something like Flashcache ( https://github.com/facebook/flashcache/ ) in write around or write through mode. Instead of pointing to an SSD you can point the cache device to the ram disk which will speed up the reads. It would also save...
3
3
2,851
2012-11-25T20:35:05.813
infrastructure
serverfault.com
450,437
Documenting servers
I work for a relatively small software development firm that grew pretty quickly over the last few years. This hoewever caused a lot of growing pains, especially infrastructure-wise. It is currently a wildgrowth of VM's on multiple ESX servers, maintainability and knowledge about the servers and what's running on them ...
You can try some Asset Management type Software to do what you want. I have been using GLPI for quite a long time and does most of what you want.
4
0
380
2012-11-20T11:27:49.183
pipeline_ops
serverfault.com
82,607
Do I need to reindex mysql table after bulk delete?
I have a table in MySQL with a lot of INSERT and SELECT at every second. And there is a bulk delete of some older data once in a day. Do I need to reindex the table after delete? I want to increase the performance. Can anybody suggest some tips? Using 'innodb' as the storage engine. Do I need to change it? I think its ...
Do you need to optimize the tables when using InnoDB? Yes and no, depending on your workload and if you are encountering performance problems or not. A shameless copy-paste from the MySQL documentation : For InnoDB tables, OPTIMIZE TABLE is mapped to ALTER TABLE, which rebuilds the table to update index statistics and ...
13
13
60,510
2014-11-12T09:28:26.720
database_errors
dba.stackexchange.com
115,027
ZSH `--color=auto` doesn't work
For some reason when I execute the following: [CODE] Results with: [CODE] Not sure why this is happening, I'm wondering if anyone else has had the same issue.
Depending on the OS, [CODE] doesn't always have the functionalities. There are two different versions of [CODE] : One from the BSD world (for example Mac OS X version) : The [CODE] doesn't work, use [CODE] instead. One from the Free Software Foundation (Linux for example) : You can use the [CODE] and the [CODE] option ...
3
10
3,455
2010-02-21T02:18:43.613
infrastructure
serverfault.com
725,972
puppet dashboard: format mismatch while importing reports
a brand-new puppet-dashboard 2.0.0-beta1 can't import any reports: delayed_job workers complain: [CODE] puppet client version is: 4.2.2 It looks a format mismatch, but the only 'format' directive I find is: [CODE] The dashboard logs are simply: [CODE] What am I missing?
As of october 2015, in order to have puppet-dashboard to accept reports in the puppet4 format, you have to fetch the pull request #329. That solved my issue.
0
0
80
2015-10-01T07:28:05.147
bi_errors
serverfault.com
509,385
SVN via SSH not working on Windows with Tortoise SVN
I have SSH access to a FreeBSD machine which has [CODE] (and the rest of the necessary utilities) installed. svn is version 1.7.9 (r1462340). I am on Windows 7 x64, using Tortoise SVN 1.7.7. I have followed this official guide to help me set up my server and Tortoise SVN, but I'm having trouble setting it up. I have ge...
I've regenerated the key pair using PuttyGen, and made it an RSA2 key pair (versus the old DSA keys). I've also skipped protecting my private key with a passphrase, and now everything (magically) works. I don't know exactly what change actually fixed the problem, but I'm hoping this will help some future developer with...
2
0
2,976
2013-05-20T21:54:11.460
infrastructure
serverfault.com
95,185
how to upgrade the config servers to use WiredTiger in mongodb 3.0.0
I am reading the document upgrade config servers to use WiredTiger . In the section of "change config server to use WiredTiger", the second step is "stop the last config server listed in the mongos' configDB setting". But the 5th step is to restart the second config server with WiredTiger. I am confused by the sequence...
The current wording in the documented steps may be somewhat confusing given the relative references to first/last/second config servers. I've added some context for the documented steps below, but you should consider the manual the definitive source. It's also worth noting that you do not have to upgrade the config ser...
2
4
4,728
2015-03-13T13:19:24.650
database_errors
dba.stackexchange.com
1,004,118
apply GPO only if specific user OU on specfic computer OU
The question is relatively simple: how to apply a GPU (let's say folder redirection) only when a certain OU of users (e.g. employees) on a certain OU of computers (e.g. Desktops)? the problem: admins and other special users dont get folder redirections so a loopback policy can't really work as that affects all users on...
Use a loopback policy combined with security filtering based on membership in some group of users. Assuming all your settings are 'user' settings. Link the policy with the computers In the security filtering remove the apply for 'authorized users', and add a group that only contains the users that you want the policy t...
1
1
832
2020-02-21T17:30:02.320
infrastructure
serverfault.com
255,015
Identifying number of rows (COUNT) that fall between two timestamps for each minute in the hour
Good day all! I'm attempting to write some SQL that can identify the number of rows that fall between two timestamps but iteratively count them up. An example use case, a telephone call CDR for one user: [CODE] I'd like a query that could produce this sort of result, per each minute for the hour (using the example data...
I'd like a query that could produce this sort of result Look at [CODE] fiddle
1
1
3,196
2019-12-06T10:49:06.550
warehouse_errors
dba.stackexchange.com
133,215
mysqldump not exporting all tables
I have a Drupal site with a fair amount of content, about 12G in size, with 500+ distinct fields making for almost 1400 tables. We're migrating to a new server environment so I need to be able to export the DB and then import it on the new servers. I've successfully used mysqldump on this system in the past, but the la...
When you have a database with that many tables, what must you remember ??? Use --single-transaction with --no-create-info : This will produce a dump of all table data with the same point-in-time Setup Replication : You can run [CODE] and then run your mysqldump, assured that no other activity in going on in the Slave. ...
4
1
7,477
2016-03-23T20:16:35.693
database_errors
dba.stackexchange.com
548,637
Is there a simple solution to internal wifi access?
I'm sure many people have the same issue. Can this be solved easily with standard routers. We have a standard network with lots of PCs, switches and routers. Its a standard PC network with a simple server and 10 PCs. We are a cookery school and have day students, we would like to be able to give these students wifi acc...
It is possible to do what you want with what you have, but it won't be pretty. By pretty, I mean, it will work, but it won't have flexibility or scalability, which may or may not be what you're after. When working with wireless access, there are a few major points of contention: 1) Availability - ease of access, readin...
-1
3
141
2013-10-25T11:48:58.263
infrastructure
serverfault.com
837,645
ZFS disk in two pools after reboot?
I'm pretty new to ZFS, so perhaps I'm reading this wrong. After rebooting my server I had to reimport my pool, and upon doing some was presented with this state: [CODE] What grabbed my attention was the [CODE] volume in [CODE] , but what I didn't notice is that it was [CODE] , but [CODE] is currently in use in [CODE] !...
Well, you lost a disk which was member of [CODE] . And after the reboot the [CODE] devices got renamed, as Michael Hampton already mentioned. ZFS is smart enough to not rely on the [CODE] names and can put the pools together based on the ondisk metadata. At this point your [CODE] was degraded because of the failed driv...
2
5
486
2017-03-11T10:09:05.800
infrastructure
serverfault.com
800,169
Associate new PKCS #7 Certificate (.p7b) with old/existing private key
I have been issued with a new PKCS #7 Certificate (.p7b) file, with which I need to replace the current soon-to-expire certificate on my server and assign to a binding in IIS. I imported the file into [Certificates - Local Computer\Personal\Certificates] using the Certificates management console, but it doesn't appear ...
One can use 'certutil' to do this, as alluded to in this Microsoft Knowledgebase article: https://support.microsoft.com/en-gb/kb/889651 In an command window with administrator privileges, run the following command: [CODE] ..where serialnumber is the serial number of the new certificate. This will associate the certific...
1
0
902
2016-08-31T09:06:23.360
infrastructure
serverfault.com
952,392
How to big scale backup Gitlab?
When asking Gitlab support on how to do a 3TB backup on ones on-premise Gitlab they reply use our tool that produces a tarball. This just seams wrong to me on all levels. This tarball contains the postgres dump, docker images, repo data, GIT LFS, etc config and so on. Backing up TB of static data together with KB very ...
For such a short time between backups (1h), your best bet is to rely on filesystem-level snapshot and [CODE] support. If using ZoL is not a problem in your environment, I would strongly advise to use it. ZFS is a very robust filesystem and you will really like all the extras (eg: compression) it offer. When coupled wit...
13
10
3,342
2019-02-05T13:57:51.323
database_errors
serverfault.com
209,550
What does it mean for the JSON interchange format to have a license?
A recent flurry of comments on a JSHint issue alerted me to the fact that the JSON data-interchange format has a license . The content of this license can be debated elsewhere. What I'm unclear on is what it means for JSON (or any other data-interchance format) to have a license. If an a library simply consumes and par...
Note that the license refers to the reference implementation of JSON , not to the JSON format itself. As an aside, I find it amusing that people get so worked up over the "not evil" clause. See this Douglas Crockford video for some perspective.
1
8
724
2013-08-26T20:00:04.290
api_errors
softwareengineering.stackexchange.com
63,493
Fastest batch perspective transform for image augmentation
I need to do some augmentation for my training images for a neural networks. The problem is that even when loading batches in parallel, the augmentation is taking longer to perform than the network training. The problem is in the perspective transforms I'm applying. Both [CODE] and [CODE] (with PIL images) are taking r...
Image augmentations heavily relies on your DataGenerator and DataLoader design, mostly along with the hardware resources that you are using. Apart from that, here is a quick comparison chart to help you with the transformations along with the libraries links. The numbers represent the number of images it processes per ...
1
1
1,235
2019-11-20T21:12:41.457
data_quality
datascience.stackexchange.com
875,873
How to turn a script into a daemon? So that upon a random script failure it is restarted by the kernel?
I have a script which streams important logs from another system. Unfortunately the machines are separated by a large distance which means that the connection between them can be poor. How to deal with a script which streams data, but has a tendency to stop? Is there an easy way to turn a script into a daemon so that u...
Are you on a systemd OS? Writing a unit file is pretty straightforward. http://patrakov.blogspot.com/2011/01/writing-systemd-service-files.html
1
2
119
2017-09-28T04:57:27.937
infrastructure
serverfault.com
61,213
SQL Server 2005 Whole-Migration, which databases should I recreate?
In relation to my question about SQL Server 2005 migration procedure , I am re-creating the databases on the new server. I noted that the old server has the following databases (outside of System Databases): [CODE] Now, some of the databases are clearly custom-made, e.g., #5, #6, #7, #11, etc. However there are some da...
If you really care to know which databases are in use, you have to use dmv's (log that data to a table as they get flushed out when server is restarted) or profiler (server side trace) and just filter out the logins and program names connecting to those databases. once you have that info for your complete business cycl...
0
1
42
2014-03-19T10:29:39.487
database_errors
dba.stackexchange.com
95,189
WiMAX vs a real T1
Our main office currently runs on an unreliable pair of bonded T1s in a somewhat remote area. Our lines have issues about 3 - 4 times a year (esp. after rain) which no one seems to be able to fix. Our only other option in our area is WiMAX. What do I need to know about WiMAX in deciding whether to switch over? The last...
I had a similar decision to make a while back and asked this question . In the end we went with a dynamic T1. We pulled our POTS lines into the T1, hence the dynamic. This choice ends up costing us less over all than the WiMax + POTS lines that we would have had to do if we went that route. Our bandwidth is supplemente...
0
2
415
2009-12-17T02:31:28.623
infrastructure
serverfault.com
84,035
Query with column data for a max
In Postgres, I have a table like this: [CODE] I want to add the "count" field to my output, but have been unsuccessful in figuring out how to do this. If I add it, I have to group by it and I end up with duplicate native names. What I want is, for each native name, the value of the 'count' field for the most recent eve...
You can use [CODE] : [CODE] which does exactly what you want. Similar to [CODE] , it will keep one row per distinct value of [CODE] but - differently that group by - you don't need to use [CODE] and [CODE] functions. The row selected will be the first according to [CODE] , so the maximum event date per native name.
0
2
41
2014-12-01T22:59:56.017
data_quality
dba.stackexchange.com
165,849
Cross-platform desktop programming: C++ vs. Python
Alright, to start off, I have experience as an amateur Obj-C/Cocoa and Ruby w/Rails programmer. These are great, but they aren't really helpful for writing cross-platform applications (hopefully GNUStep will one day be complete enough for the first to be multi platform, but that day is not today). C++, from what I can ...
C/C++ is fast. The reality is, most apps wont need that performance with the state of the current hardwares. The usual way is to develop the application in a high level language, like python, than optimize when needed with lower level languages, like C/C++. Python will give you a big productivity boost, it's easy to le...
11
9
33,891
2012-09-23T06:18:21.693
api_errors
softwareengineering.stackexchange.com
241,157
Question about casting a class in Java with generics
In Java 6 [CODE] gives and error, but [CODE] gives a warning. Why is (a) an error? What is it, that Java needs to do in the assignment, if not the cast shown in (b)? And why isn't [CODE] compatible with [CODE] I know one is "raw" and the other is "generic", but what is it you can do with an [CODE] and not with an [CODE...
Well, a generic class is by definition not equal to a raw class. What you're trying there hides the issue of instantiation of ArrayLists (the actual lists, not their types). [CODE] will work and will allow any kind of element, objects, primitives, anything. On the other hand, [CODE] won't work since it's unclear, at co...
0
2
17,832
2014-05-26T21:46:53.880
api_errors
softwareengineering.stackexchange.com
785,078
apache http 2.2.29: Segmentation fault
We are using [CODE] on Linux. Below is the information related to Linux version (as found in /proc/version file) [CODE] We have observed that apache is generating many core dumps and getting crashed regularly. When it generates the core dump, below is being printed in the http’s error log: [CODE] Below core files had g...
For GDB use https://httpd.apache.org/dev/debugging.html . You would be able to trackdown the actual cause of the error. If the crash is hard to reproduce it may be a good idea to configure Apache to only use one child processes for handling requests. The config is something like this: StartServers 1 MinSpareServers 1 M...
0
0
2,356
2016-06-20T16:50:37.843
infrastructure
serverfault.com
267,582
SQL Server: How to get total number of backups done in a month?
I need to gather monthly statistics for my boss, on how many FULL backups were done in a month and which number Succeeded and which failed if any. Is there a simple query that could give me this, based on SQL Server logs? Thanks
You might use below script to get history of backups in last 1 month: [CODE] Here [CODE] is a variable, which can be changed with any number up to which you want backup details however this would work only if you are not archiving backupset table in msdb database. Please refer below links for detailed info on these bac...
1
1
294
2020-05-21T05:34:29.273
database_errors
dba.stackexchange.com
286,931
Forcing a fresh start with Postgres after updating major version
On my Manjaro machine, I updated packages, and Postgres got updated to version 13.2-1. Before the update, I had some databases on the previous version. Now Postgres won't start because it recognises that the existing databases are from the old version. When I attempt to start Postgres, I get: [CODE] Those databases wer...
yay -S postgresql-old-upgrade how to use it: https://www.postgresql.org/docs/current/pgupgrade.html and https://wiki.archlinux.org/index.php/PostgreSQL#Upgrading_PostgreSQL
-1
1
189
2021-03-12T21:38:30.873
warehouse_errors
dba.stackexchange.com
208,411
Remote App Web Connection not working, possibly due to port forwarding
We have customers using our software via Remote App. We have given them two options, using the .rdp file link we send them, or logging into the RDWeb and logging in that way. We just recently discovered that the RDWeb has never worked (we only tested internally). We are using an external port forwarding on a non-standa...
I don't think this is possible out of the box without using a Remote Desktop Gateway as well. The RDWeb links will always go to port 3389 without RD Gateway. See comments from Rand Morimoto on this blog post for some details: http://www.networkworld.com/community/node/49566 If you implement a Remote Desktop Gateway, th...
1
0
10,337
2010-12-02T16:26:46.427
infrastructure
serverfault.com
856,785
Procmail recipe, mail owned by root
I'm using a combination of Postfix and Procmail to handle inbound email on one of my servers. Each user has a local account and I've been using the below [CODE] successfully for years: [CODE] I've recently added a recipe to direct messages flagged as spam to a separate folder: [CODE] However, it seems in some cases the...
Check the permissions on the junk folder are correct, but could you also add the following to your procmail.cf: [CODE] I'm no expert on procmail, but according to this man entry , it should drop any priveleges that procmail has had, and the recipient doesn't (emphasis mine). [CODE] Key part; executed on behalf of the r...
3
5
1,714
2017-06-20T10:41:01.263
infrastructure
serverfault.com
285,597
setfacl to reset file to default permissions?
I have a directory with the following default ACLs: [CODE] However, none of the files/directories in that directory have that default permission (because it was added after they were created). How can I copy the default ACLs of a parent directory to every folder and file in it?
Use [CODE] to get the default permissions from the directory and then pipe the result into [CODE] to apply it. Something like this should work: [CODE]
16
20
18,587
2011-06-30T03:14:01.570
infrastructure
serverfault.com
63,509
Oracle 12C, cannot drop NOT NULL constraint on a DEFAULT ON NULL column
In windows7 I Install oracle 12 C Then I connect to database as [CODE] user and create new user so: [CODE] Then I connect to database as [CODE] and create table [CODE] and when I am trying insert rows into table, I got problems: [CODE] On this query, oracle returns: [CODE] When I connect as [CODE] user, this error not ...
Seems to be a bug in Oracle 12.1. Solution is simply: [CODE]
2
3
3,589
2014-04-19T10:07:42.203
database_errors
dba.stackexchange.com
232,431
How to translate SQL query into REST API requests?
Let's say I have a machine-readable description (such as in WADL , Swagger or RAML ) of a REST API that provides interface to a database. My users submit queries about underlying database in form of SQL or similar query language. However, I cannot access the database directly, only through the REST API. What approach w...
Technically the query language is just another standard the REST service should understand. It does not necessary map to query params. For example by Hydra it is possible to define a single query param which contains for example an SQL. All you need is a vocab in which you can describe SQLs, and ofc a client which can ...
8
1
8,844
2014-03-14T21:42:18.677
api_errors
softwareengineering.stackexchange.com
117,318
How to maintain a demo version of an application?
I need to be able to demo our production application to prospective clients. The way I have it setup today is simple. The demo application is an exact duplicate of the production system, except that the data in the database is obfuscated to protect our current clients' data. This works great because it doesn't require ...
Maintain a different branch in subversion specific to the demo system Yes! This helps truly. But be careful in how you do it. Best is when main system evolves, you should know how to bring down your changes to as close as possible. Create an installation package that has the changes for demo, then revert and build a pr...
8
3
2,269
2011-11-01T18:40:08.583
data_quality
softwareengineering.stackexchange.com
314,709
Database Design - Relationship between two or more junctions tables
I am a junior developer and I don't know how to implement this next relationship. Note: All entities described here are fictional but have equivalents in an actual production Database. Performance is irrelevant (OK with too many junctions tables) but would be nice to optimize the schema. Additional Information: Using E...
Would this model work for you? If I'm understanding correctly, people are not associated with jobs or addresses directly. Rather, people are associated with pre-established pairings of jobs and addresses. One twist is that the address is optional, but that's OK; we can still model this in SQL Server with relational con...
2
1
531
2022-07-21T21:18:53.057
database_errors
dba.stackexchange.com
151,273
Key column 'r_Course_id' doesn't exist in table Error in my code
I used the following syntax and keep getting the following error at the end. " Key column 'r_Course_id' doesn't exist in table" [CODE] the first two tables are created without a flaw, however the third is giving me trouble. please help.
You were missing a few things. There was no [CODE] column in the last table and you missed a comma after [CODE] . Try running the statements below (it works for me). [CODE]
2
1
2,851
2016-10-03T00:07:20.300
warehouse_errors
dba.stackexchange.com
103,782
Wrong results from joining two CTEs
I've had some help to create a query to solve a problem I had and the solution seemed to be to create two CTE's and then join and query them. If I run the two CTE's as single queries each table contains the expected data without fail but the join produces less results than it should and duplicates and even rows with th...
As the discussion in the comments revealed, an [CODE] can be related to many products, due to the 1-to-many relationship between [CODE] and [CODE] . Try this query, which will choose only one product per fcontainer. The missing fcontainers are due to the [CODE] join. Changing it to [CODE] join will show all fcontainers...
2
2
1,084
2015-06-11T10:57:35.430
data_quality
dba.stackexchange.com