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
831,467
YouTrack 7.0 Proxy settings Windows Server
I have gone through their documentation regarding Proxy Configuration and the Set JVM Options Manually since I initially installed via MSI and still can't figure it out. I created the [CODE] file in the [CODE] directory and added the following settings [withTheProperValueOfCourse]. [CODE] When I try to start the servic...
While browsing StackOverflow JVM question and answers I came to this post ; I noticed the user passing variables starting with -D . Previously I had only used the [CODE] (dash) then the setting name and value. I updated the [CODE] file to include the [CODE] then the setting name and value. Restarted the server and when...
0
0
230
2017-02-08T22:26:28.600
data_quality
serverfault.com
872,366
Emulate/Pass-through Physical NIC on Hyper-V Server 2012 R2 for VM
We recently re-did a client's server and set it up as a VM. However, they use a license server for one of their products and the license server doesn't work on a VM. I asked their support team as to why it doesn't work, and their response was " [The software] is looking for a physical NIC card". Now, I'm looking for wa...
You might want to try adding a "Legacy Network adapter" to your VM. This will create an emulation of a (very old) PCI-based NIC. This may or may not convince the licensing software that things are copacetic. Performance of this emulation will leave a lot to be desired. If possibly, make sure that this isn't the NIC tha...
0
0
1,548
2017-09-06T19:15:00.800
infrastructure
serverfault.com
322,825
monit configuration for php-fpm
I'm struggling to find a monit config for php-fpm that works. This is what I've tried: [CODE] But it fails because there is no php-fpm.sock (Centos 6)
I´m using the ping.path directive in php-fpm to check if it´s working... and configured it on nginx.conf (i down´t know if it´s your setup) [CODE] On monit.d [CODE]
1
6
5,750
2011-10-19T08:29:23.107
infrastructure
serverfault.com
69,888
Postfix configuration - Uing virtual min but server is bouncing back my mail
I have no experience in setting up postfix, and thought virtualmin minght do the legwork for me. Appears not. When I try to send mail to the domain (either abuse@xxxxxxxxxx.com domain@xxxxxxxxxxxx.com or admin@xxxxxxxxxxxxx.com) I get the following message returned [CODE] How can I diagnose the problem here? It seems t...
You need to somehow get email from admin@ to a local user (root?). Note that it's not in your [CODE] , or any of the other files.
0
1
4,534
2009-09-30T10:17:28.463
infrastructure
serverfault.com
317,297
Inheritance vs additional property with null value
For classes with optional fields, is it better to use inheritance or a nullable property? Consider this example: [CODE] or [CODE] or [CODE] The code depending on these 3 options would be: [CODE] or [CODE] or [CODE] The first approach looks more natural to me, but maybe it is less readable because of the necessity to do...
It depends on the circumstances. The specific example is unrealistic since you wouldn't have a subclass called [CODE] in a real program. But in general, a property which only makes sense for certain subclasses should only exist in those subclasses. For example if [CODE] has [CODE] and [CODE] as descendents, then [CODE]...
14
8
7,983
2016-05-01T20:23:09.577
data_quality
softwareengineering.stackexchange.com
746,121
Stop mongos process
May be a dumb question, In a sharded database configuration, I launched my mongos with the following command : [CODE] I now need to stop mongo to enable internal Authentification and use a .conf file, problem is, whereas I can just do a [CODE] under the other config/shard servers, mongos behave differently. [CODE] give...
Log on to the [CODE] , run [CODE] , then [CODE] to gracefully shut down the [CODE] and leave the shards running.
2
3
6,737
2015-12-31T11:02:38.720
database_errors
serverfault.com
167,661
Concept of Address Space
I have searched the idea of address space that is [CODE] I am unable to find that how this concept is implemented? And how it works with operating system? Any help would be appreciated.
An address can be represented by a non-negative integer number, so "address space" is a fancy way to describe a set of non-negative integers such that each integer represents a valid address in the memory available to your program. In some cases, several address spaces can be available to your program: for example, whe...
2
2
480
2012-10-05T17:49:26.183
api_errors
softwareengineering.stackexchange.com
68,534
netlogon errors
I have two instances of mssql 2005 and am using CA XOSoft replication. The master is a failover cluster and the replica is a standalone server. They are all running Server 2003 sp2 x64. Same patch levels on all servers. This setup has worked great for several months until we recently restricted the RPC ports on both no...
Check your non-paged pool memory. You're probably bottoming out with the application running. As to your question, I find rpcping to be an invaluable tool in these situations. Here's an example of how it's used with Exchange: http://support.microsoft.com/kb/831051
4
1
1,293
2009-09-24T20:10:55.180
api_errors
serverfault.com
204,364
Regular data transfer from SQL Server to MySQL
Our company uses an application with a SQL Server database where we store all of our Project Item data. Our company's Portal Website uses a MySQL database that holds other Project information (location, start date, billing agent etc...) These two databases are currently only "connected" via a read only ASP.NET API on S...
You do have Change Tracking in SQL 2012 version and you can use that to set up alerts for key data changes. And regarding, getting data from MySQL, you can create a linked server from MSSSQL server pointing to MySQL and read the data directly using OPENQUERY to sync the data between both. See this link to set up linked...
0
0
588
2018-04-18T19:55:15.730
data_quality
dba.stackexchange.com
41,674
When performing a cross-database transaction, in which transaction log(s) is the information stored?
Given the following snippet: [CODE] Into which database's transaction log(s) will the transactional information be inserted? I would expect both logs would get all the data, since it wouldn't make sense if you attempted to replay [CODE] 's transaction log and it only affected that DB. I'd also expect that you would be ...
The transaction log isn't recording the SQL statements being executed, as you might be expecting. Instead, it's recording the changes to the raw data in each database, independently. It's possible for a stored proc from one database to be working entirely in the transaction log of another database. [CODE] Or for it to ...
9
13
1,860
2013-05-07T12:05:45.767
database_errors
dba.stackexchange.com
234,242
How to monitor a file share witness for accessibility
In the context of a SQL Server Availability Group, what's the best way to monitor a file share witness for accessibility? I want to make sure the witness can be accessed by the Availability Group replicas, which is something different than just being available. For instance, the account used to run SQL Server needs acc...
The file share witness does not need to be accessible by the SQL Server service account. The FSW is used by the Windows Server Failover Clustering cluster to achieve a quorum and avoid split-brain scenarios. The cluster machine account is the AD principal that needs access to the FSW and if it did not have access you w...
1
1
5,499
2019-04-08T21:54:10.500
database_errors
dba.stackexchange.com
418,797
SSH from PuTTy to Debian "authorized_keys is not a regular file" Error
I cannot connect from my Windows 7 computer using PuTTy to a newly configured Debian Squeeze server using SSH RSA key authentication. I get this error when running SSH in debug mode: [CODE] What I've done so far: ssh-keygen -t rsa Set passphrase. Copied the id_rsa.pub file to [CODE] Copied the id_rsa to a text file on ...
The problem is: [CODE] It appears you've made a directory named [CODE] and put all your key files in it. This is why it's not working. [CODE] is meant to be a regular file, and you can put all your keys in [CODE] .
9
15
9,548
2012-08-17T21:43:48.477
api_errors
serverfault.com
846,213
Offline migrating KVM guests using virsh?
I want to offline migrate the KVM guest [CODE] to another centos73 host using [CODE] . So I do [CODE] After typing the root passowrd I would have expected the guest to be migrated, but nothing happens. The last debug line [CODE] seams to me that something is missing. What does this line mean?
The message [CODE] just means that the code is trying to lookup the guest based on its name (as opposed to UUID or ID). IOW, it is normal to see that here, no sign of problem. The offline migrate facility doesn't really do anything much. It merely results in the XML config for the guest being copied to the target host,...
2
6
6,211
2017-04-24T11:44:06.917
infrastructure
serverfault.com
619,226
How to configure dovecot to login through ssl connections only
I'm configuring dovecot not to connect via non-ssl ports. To achieve that I have made the following changes in dovecot.conf. [CODE] This works in not letting the user login through non-ssl ports of imap and pop3. The part I do not know is how I need to further configure it for, say, roundcube know that it should use SS...
Dovecot can't be configured to require SSL/TLS connections from the localhost. Manuals is clear: http://wiki2.dovecot.org/SSL/DovecotConfiguration Note that plaintext authentication is always allowed (and SSL not required) for connections from localhost, as they're assumed to be secure anyway. This applies to all conne...
0
4
7,044
2014-08-09T14:23:11.330
infrastructure
serverfault.com
59,149
What are the steps in planning a move from one ISP to another one?
I am working in a business that is planning to switch ISPs really soon. We will need to change a lot of information in our DNS, WAN and Wan-WiFi. I have some questions for you guys that can help me, and maybe, other people, to plan correctly the change from our current ISP to a new one. First of all, DNS... What should...
This is one of the reasons why people get portable IP addresses -- so they can avoid the pain of reIPing all your hosts. You hopefully have everything behind a firewall so you can just add / change NATs on the firewall. Then just run both ISPs in tandem and connect them both to your firewall, update the DNS records and...
0
6
2,982
2009-08-26T17:28:02.787
infrastructure
serverfault.com
679,035
How to setup user accounts on a secondary server in High Availability?
Working with two Microsoft SQL 2012 servers in Always On High Availability configuration running on Windows Server 2012 R2. Setup works well and failover is almost flawless. However, the software that connects to database (or high availability cluster in this case), is using sql user account that must be mapped to data...
I have ignored, or rather forgot, the fact that sql user accounts on servers had different sid which in fact was the source of the issue.
2
0
394
2015-03-29T00:58:16.763
api_errors
serverfault.com
334,874
In the context of functional programming, what are 'total' functions and 'partial' functions?
I'm not finding via Google any explanation that my brain can grasp. Can someone explain this, and if possible, give an example of each using either pseudocode or C#? The term 'total' function was introduced to me in the comments section of this question. The comment is: when you work with total functions, you can compo...
Here's a reasonable definition from the Haskell wiki : A total function is a function that is defined for all possible values of its input. That is, it terminates and returns a value. A partial function is a function that is not defined for all possible input values; in some cases instead of returning a value, it may n...
11
20
8,150
2016-10-28T20:57:20.267
api_errors
softwareengineering.stackexchange.com
949,613
GPUpdate Will Not Apply Services Changes
I am getting the following error on my computers when trying to apply group policy settings. This is specific to changes to Services on the local computer: [CODE] I turned on GPP logging and I get these errors: [CODE] That is all the information I get! I have service changes on multiple GPOs and NONE of them are taking...
Found the issue for this problem.Turns out the primary policy was having trouble reading from the services.xml file. I removed it and remade the services changes and it all started applying again correctly. It might have been a race condition between the changes in some of the policies and the corrupted services.xml
1
0
598
2019-01-17T21:18:15.567
infrastructure
serverfault.com
111,335
Dealing with observation with arbitrary number of categories with arbitary number of values
Suppose to have a set of elements $X = \{x_1, x_2, ..., x_n\}$ . Each element is characterised by a set of features. The features characterising a particular element $x_i$ can belong to one of $q$ different categories. Each different category $f_q$ can have a different value $v_{q_i}$ , belonging to a set of possible v...
One-hot encoding is an option, although in this case there will be more than one "hot" bits, but can still be used. Many numerical encodings which allow combinations are possible. Restrictions are only regarding high dimensionality (which I think you cannot avoid). Eg. a variation of numerical encoding is possible and ...
0
1
40
2022-05-26T16:28:14.007
data_quality
datascience.stackexchange.com
297,763
How is one supposed to deal with the intermediate buffer of DataReader class?
Summary I am developing a WAV file format reader under WinRT, and for this I need to read random amounts of structs consisting of fundamental types such as [CODE] , [CODE] , [CODE] and so on. Back in desktop development one would rely on BinaryReader , now in WinRT it has been replaced by DataReader which works asynchr...
should one load only the needed amount as shown above ? You should load into the buffer all that you can feasibly expect to process with the code that follows. In the DataReader documentation example, they read the entire stream into the buffer, because they are going to process it all immediately. The reason for the b...
6
4
2,092
2015-09-20T21:23:24.897
api_errors
softwareengineering.stackexchange.com
273,799
Typedefs to convey relations between classes
I'm wondering if the following use of typedefs is any good practice, or if there are any downsides to it. Basically I have alot of "data"-structs, which are intended to be used in (globally unique) containers, and they hold indices to other (globally unique) containers, the reason is to keep memory access localized. Ra...
The heart of creating abstractions is to give things a good name, which makes clear what a specific data type represents. And that's what you are doing here, no less, no more. Creating the right abstractions is what makes actually the difference between good code and bad code, so yes, assumed these abstractions serve y...
2
5
123
2015-02-19T21:45:38.820
pipeline_ops
softwareengineering.stackexchange.com
574,990
Unable to Connect to SMTP Host
I am trying to configure Postfix on CentOS 6 server, and the problem is that I cannot receive mails. I tested it on http://mxtoolbox.com/ and I get an error [CODE] . I check with [CODE] and I see that postfix seems to be listening to port 25 just fine. I disabled Selinux (and rebooted) - it doesn't solve the problem. M...
By default, Postfix only listens in the localhost interface. You must edit [CODE] and change the line [CODE] to [CODE] and restart Postfix
2
3
4,944
2014-02-12T12:14:49.940
infrastructure
serverfault.com
204,241
Adding correct documentation for a method
I have method like this: [CODE] When I am adding documentation for [CODE] , I am also documenting the exceptions it can raise. But how about documentation of [CODE] ? It IS consuming [CODE] that may raise exceptions, so should I still document those exceptions for methodA as well? Right? wrong?
Yes, you should document all the exceptions that a method can throw method's clients are expected to handle . Where exactly the exceptions originate is irrelevant - even if they come from some [CODE] which happens to be called by [CODE] . Code calling [CODE] shouldn't care what other methods it calls in order to get th...
1
5
136
2013-07-10T04:00:35.193
api_errors
softwareengineering.stackexchange.com
830,536
Unable to ping mikrotik interface ip
I have added the three network address on the lan interface, I'm able to ping two address, But unable to ping the 3rd address. I'm new to routing. I also have added the rip networks. From which system I'm trying to ping the its ips are: Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 10.10.10.15 ...
No routing protocols(sush as RIP) are needed, when there is only one broadcast network. The problem is that your PC doesn't know where to send packets having 172.18.1.0/24 destination IP. So you should just add mikrotik IP as gateway to your PC like this Type this in cmd of your windows: [CODE] (Either 192.168.0.2 or 1...
1
0
15,150
2017-02-04T04:33:44.730
infrastructure
serverfault.com
375,867
My datacenter is unable to add PTR/rDNS record, then how can I prevent the mail outgoing from going to spam folder?
I am having problem that mail sent out from my server all goes to recipient's spam folder. I am running Drupal sites on Linux server. CentOS w/ cPanel. Our users cannot receive email as the mail went to the spam folder. (such as registration email, contact form email) I was advised that I need to have PTR/rDNS record a...
Get yourself a better hosting provider. There is no reason whatsoever that a facility that is worth paying cannot create appropriate reverse DNS entries. Now, whether that's the cause of your e-mail being flagged as spam, well, you haven't really given enough to go on, but I'd consider it fairly unlikely that your mail...
2
11
513
2012-04-02T11:28:23.957
infrastructure
serverfault.com
473,411
Unable To Remove DPM Agent
I have installed the DPM 2010 Agent on a Windows Server 2003 that act as a Secondary AD. Since it was demoted, I'm unable to get DPM to work. According to this : http://technet.microsoft.com/en-us/library/ff399208.aspx I need to remove the current DPM agent and reinstall it again. Problem : The DPM doesn't show up on A...
Run PowerShell (The DPM management shell) as administrator. In DPM 2010 PowerShell write “remove-productionserver.ps1”. Press enter You will be prompted to enter the DPMServername, write your DPM server name that you are trying to remove the DPM agent from. Press Enter Then write the DPM agent name that you trying to r...
2
1
2,387
2013-01-29T11:55:43.293
infrastructure
serverfault.com
147,782
TCP RST Reset Every 5 Minutes on Windows 2003 sp2
Recently I had a web developer come to me and ask why he was receiving connection errors in his app that was accessing a sql database. So, I went through my normal trouble shooting steps to isolate or reproduce the issue. I discovered that if I connected to the database using Query Analyzer and let the connection idle ...
You should take a capture on the server to determine if the RST is actually sent by the server or some other intermediate device.
1
1
2,047
2010-06-02T19:59:30.043
database_errors
serverfault.com
1,093,323
Dynamic IP Address in VPN Setup
I have an infrastructure with two physical locations which we are connecting via a Site-to-Site VPN. Only one side has a static IP from the ISP whilst the other site does not as the ISP there does not offer static IP services. Long story short, we do not own the line at SiteB so cannot switch providers etc. SiteA (Stat...
It sounds like what you are looking for is to turn off “split-tunneling.” Generally speaking, when a VPN connection is established ALL traffic flows through the VPN. This means that internet bound traffic from Site B will flow through the VPN to Site A and egress out Site A’s internet connection. To the outside world i...
0
1
309
2022-02-11T01:53:05.307
infrastructure
serverfault.com
566,053
Alias link doesn't open correct page
Here is the full config of my site: [CODE] Now I can open the first link, but can't open the second of the following [CODE] Please, tell me what am I doing wrong.
I would think is a problem with your path. When you request [CODE] that alias convert the URL to [CODE] , so check if the path do exists. Also check: http://nginx.org/en/docs/http/ngx_http_core_module.html#alias
0
1
1,327
2014-01-09T08:49:25.810
infrastructure
serverfault.com
369,158
Documenting design decisions in code comments?
How can I best document a code design decision in my source code? Should I just add a massive comment at a point I feel is right? Or should I just create a separate file? This issue is important for me, because the project that I'm workign on in the future may be taken over by someone else (or perhaps I will return to ...
How can I best document a code design decision in my source code? The answer depends on your understanding of »best« and »design decision«. What design decision I document in code: As with all comments, I like having not more comments than necessary to undestand what is going on in the code. When reading code, I expect...
6
3
1,688
2018-04-10T16:44:27.687
api_errors
softwareengineering.stackexchange.com
749,078
Issues with rewriting all http and https domain traffic to https based url
I am trying to get all variation [CODE] to all redirect to [CODE] I have the following mod_rewrite block: [CODE] which seems to do all but one: [CODE] does not get redirected to [CODE] as expected If I removed the condition: [CODE] so that it affects both http and https, it still does not behave as expected. Where am I...
You cannot make an SSL-to-SSL redirection using [CODE] You'd have to use separate VirtualHost entry for every domain (provided your web-server supports SNI ): [CODE]
1
1
30
2016-01-14T13:14:16.970
infrastructure
serverfault.com
1,103,211
Fail2ban : regex used in failregex does not work (square brackets ] issue ?!)
With fail2ban, I want to ban IPs based to the content of apache_access.log file. This is an example of line I want match with regex rules : [CODE] So, this is my fail2ban custom filter file : [CODE] The regex works perfecly on website like 'https://regex101.com/' But when I use the fail2ban-regex tools like this : [COD...
It would be better to catch what you want the classic way, e.g.: [CODE] The date pattern part (which creates the problem that you noticed) is apparently handled in a special way by fail2ban. If you try the following pattern: [CODE] You will see that it also matches, ironically, meaning that the date pattern inside the ...
0
0
305
2022-06-13T21:57:13.050
infrastructure
serverfault.com
926,728
How to add more disk space to "/" folder centos
By check [CODE] I see (more than 900 GB) fdisk -l [CODE] But when I mount it to / [CODE] And check [CODE] There are only few of GB [CODE] I have been googling for 2 days but I still do not know how to fix it. Please help me.
When you use LVM Increasing a disk is followed by a number of simple steps (correct arguments are left as an exercise for the reader) ✅ increase the partition (for instance with [CODE] ) - you seem to have already done that ✅ prepare the additional disk space for use by LVM (increase the physical volume) with [CODE] - ...
0
2
3,809
2018-08-16T16:55:11.100
infrastructure
serverfault.com
9,202
Distorted audio on Windows XP
I built a new workstation with an Asus P5Q Pro motherboard, using the onboard sound for a soundcard. It is running Windows XP-64bit. It works fine except when I try to open this WMV stream: http://www.bloomberg.com/streams/video/LiveBTV200.asxx (SFW: Its a business news stream) The sound is very distorted (kind of pixe...
My thoughts on this would be a problem between the codec, and the driver for the sound card. Unfortuantely windows XP 64bit is renowed for bad driver support. I would suspect that that particular stream uses a codec thats different to anything else you use, for streams that are working, and its having a problem when wo...
0
2
719
2009-05-17T21:26:10.913
infrastructure
serverfault.com
619,727
What does cpu-pinning mean in context of KVM hypervisor with multiple virtual machines
I am looking at configuring a KVM hypervisor to have some virtual machines. THe KVM hypervisor has 8 physical cores (16 with HyperThreading). I want to create 8 virtual machines on it but I am not able to understand what difference will cpu-pinning have on it. What will be the difference when I pin each VM to a differe...
CPU pinning ensures a VM will only get CPU time from a specific CPU or set of CPUs. Unless you have a very specific reason to pin, there usually is no need to do that.
1
2
8,088
2014-08-12T01:42:26.730
infrastructure
serverfault.com
30,191
Where to put utility (not administration) stored procedures in SQL Server?
Possible Duplicate: Setting up a central CLR stored procedure / function respository library for internal stored procs in other databases to use? I have some simple user-defined functions for string manipulations. Most of them are actually CLR functions but not all of them are. I use them from multiple databases on the...
I would put them in a Utility database. Putting stuff in the master database is something to avoid as it stores information related to the system configuration. If there is a problem with the master database, your SQL Server will go down. It's probably ok to put normal stored procedures used for server level troublesho...
3
9
206
2012-12-11T17:03:19.707
data_quality
dba.stackexchange.com
106,613
Explaining the logic behind the pipe_line method for cross-validation of imbalance datasets
Reading the following article: https://kiwidamien.github.io/how-to-do-cross-validation-when-upsampling-data.html There is an explanation of how to use [CODE] in order to perform a cross-validation on an imbalanced dataset while avoiding memory leakage. Here I copy the code used in the notebook linked by the article: [C...
The page linked already gives a really good explanation: To see why this is an issue, consider the simplest method of over-sampling (namely, copying the data point). Let's say every data point from the minority class is copied 6 times before making the splits. If we did a 3-fold validation, each fold has (on average) 2...
0
1
204
2022-01-01T19:14:59.463
pipeline_ops
datascience.stackexchange.com
55,949
Postfix "timed out while sending message body" to "Microsoft ESMTP MAIL Service"
For some reason we cannot send larger email to one of our customers. Small emails are fine, but even a message with a 1MB attachment fails to deliver for several hours - Postfix logs keep filling with [CODE] , but eventually the messages get sent. The customer is using "Microsoft ESMTP MAIL Service, Version: 6.0.3790.3...
Oh boy, I love these servers. Almost universally, they're doing content-based scanning of the message bodies and then sending non-200 responses to the DATA command if they don't like the contents. This is fine in principle, but when you get some under-resourced crapbox running Exchange and some overweight proprietary w...
1
3
30,239
2009-08-19T06:07:19.170
api_errors
serverfault.com
235,141
How to allow connection for edb database in Postgres
By mistake we have executed disallow connections for all databases after that we are not able to connect any of the database, see below for reference: Executed Query: [CODE] [CODE] Is there a way we can allow connections to edb or enterpriseDB without using PSQL? Please advise.
With PostgreSQL in general (not EDB specifically) you would do: stop the PostgreSQL server start [CODE] in a shell in single user mode . [CODE] [to undo the error]. Be aware that [CODE] should normally be left with [CODE] . Type Ctrl+D to quit the single user mode. start PostgreSQL normally.
2
3
1,571
2019-04-18T08:41:58.100
warehouse_errors
dba.stackexchange.com
114,467
Full Motion Video over Wireless Projection
I'm looking for a solution to get graphics from a tablet to a projector wirelessly. The idea is to have the professor connect to the the solution and then connect to a network share, load their powerpoint/video/content and then output their screen to the projector while being able to walk around the room during class. ...
What about using wireless VGA? http://www.iogear.com/product/GUW2015VKIT/
0
0
281
2010-02-18T23:31:18.960
infrastructure
serverfault.com
178,554
GDM don't show available users list and don't switch layout
Good night! I can't login through GDM but can via terminal. Also I can't change layout but successfully do it via terminal. This is example of /var/log/messages endline: [CODE] And this "permission of the setuid" is everywhere in GDM logs. What the problem is?
Apologies for just posting links but I cannot reproduce the problem myself. I hope this is useful none the less. There is a thread on this problem on ubuntuforums.org The solution there was log in tty1 console as root stop gdm startx Now if you are able to see the desktop, connect to the internet and reinstall dbus rel...
1
2
573
2010-09-06T19:20:27.703
infrastructure
serverfault.com
7,873
Set up Linux user password expiration
How do I set up password expiration policies for user accounts in Linux? Is it vastly different on each distribution? In particular I use some Debian/Ubuntu servers, but links to appropriate info for other distros is obviously welcome. [couldn't find a duplicate Q, but let me know]
I posted slightly quickly, it looks like both passwd and chage will work for what you would like to accomplish: sudo chage [username] will interactively allow you to set things. Otherwise here is the help output of chage and passwd. chage --help output: chage --help Usage: chage [options] [LOGIN] [CODE] Output from com...
2
5
12,733
2009-05-13T17:10:57.057
data_quality
serverfault.com
90,592
Effect of removing duplicates on Random Forest Regression
I have a dataset with several million samples that have 5 features and 1 target, which I am using for a regression model. With very large sample counts some models (like Random Forests) become very large (several GB when pickled). These data often have duplicates or near duplicates - these are real observations - but t...
Your model will become less accurate. For example, let's say you have features A and B, and you have 51 observations. For 50 of those A=10 and B=20 correspond to dependent value of 5, and you have 1 observation for which A=10 and B=20 correspond to dependent value of 100. Without removing duplicates when making a predi...
0
0
786
2021-03-13T13:38:55.017
data_quality
datascience.stackexchange.com
1,092,032
Execute sequence of commands in fortinet
I would like to execute three commands in a fortinet firewall, the commands are: [CODE] But I need to do it remotely, to do that, I try this: [CODE] When I do that, it executes only the command 1 and gives an error in the second and the third. I tried changing the command to something like this and it executes 1 and 2,...
I did it by using [CODE] in a python script. The command to introduce in the exec_command is this one: [CODE]
0
1
1,709
2022-02-01T10:35:26.920
infrastructure
serverfault.com
316,126
What is the best file extension for a firmware image made with dd?
I currently have an embedded video server that I developed using embed linux, c and c++. I currently have our assembly line workers flash the ide drives from a usb flash drive like so: dd if=/dev/sdb1 of=/dev/sda1. Yesterday, I accidentally erased one of my new versions of the O.S. and software when I reversed IF and O...
In the past I've seen firmware images with [CODE] or [CODE] or [CODE] - take your pick. I quite like mailq's suggestion of [CODE] as it's at least verbose, and file extensions are irrelevant for things like [CODE] images, and with tab-completion they shouldn't have any issues typing it out. As for storing it on a file ...
1
5
2,384
2011-09-27T22:04:24.203
infrastructure
serverfault.com
704,342
Intentionally Cause NXDOMAIN DNS Error in Zone File
I have a server set up with a bunch of subdomains that all point to the same caching server, which is done using a wildcard like so: [CODE] This works great, but I would like to exclude a subdomain from that. I could set up another entry, like [CODE] but what I would really like is for that subdomain to throw an NXDOMA...
The closest you're going to get while staying within the standards is to create a "zone cut" at that boundary. This can be accomplished by either defining an additional zone called [CODE] (which is more specific than your [CODE] zone), or delegating [CODE] to a different nameserver entirely with [CODE] records. That sa...
1
3
686
2015-07-08T14:11:49.173
infrastructure
serverfault.com
432,224
Doesn't Apollo Federation for GraphQL services encourage bad software design?
Background In the scenario GraphQL Federation was designed for, you have numerous GraphQL microservices in the backend, each with their own Schema Definition Language (SDL). Theoretically, these services are able to start and run independently and can begin serving GraphQL requests right away. In order to tie these ser...
Couple of things. First, decomposing the monolith isn't just about having microservices that exist in a vaccuum. Many services before this (BFF-style) were hand-rolling their orchestration. Instead, federation allows us to not hand-code BFFs from scratch by offloading the orchestration logic into a statically validatab...
1
2
403
2021-09-24T23:23:55.243
api_errors
softwareengineering.stackexchange.com
365,295
Where does business logic go that involves multiple aggregates?
I'm still a beginner when it comes to domain driven design, and I am trying to model something like an RPG's battle system as a bounded context. I am trying to model a bounded context in which a Combatant has a list of abilities, and each Ability has a list of effects that it would apply. For example, a common Effect w...
The business logic that coordinates processes involving multiple Aggregates should stay in a Saga/Process manager. This does not mean that all the logic should stay there. No. Only the coordinating logic. The actual implementation depends on the programming language and the architecture but I could give you and example...
5
6
982
2018-02-04T16:16:17.567
api_errors
softwareengineering.stackexchange.com
286,378
iSeries DB2 - SQL GUI Tool
Can someone suggest a good free Database tool with SQL support for connection to an iSeries. Currently I am using the green screen and it is quite frustrating.
From my own research SQuirreL SQL is the best open source GUI client for the iSeries. It tried it out today it it worked nicely, code completion, syntax highlighting etc.
3
2
9,530
2011-07-02T09:29:38.687
infrastructure
serverfault.com
295,525
Setting up virtual servers with one storage server
I'm planning on reinstalling our company server as virtual machines on a physical machine. I want to do this to better manage the different services such as web and mail on separate (virtual) machines. I had a look at OpenStack compute and Eucalyptus and hey looked quite interesting. The problem that I have is how to m...
You have to rethink your requirements. There is no need to access the home directories from every server. The users log in onto one server and have there files there. The mailserver keeps track of the mailboxes and stores them on its storage (not in user directories). The mail is then deployed via IMAP. The webserver s...
0
2
102
2011-07-29T15:10:39.850
infrastructure
serverfault.com
335,192
Ubuntu -- Running 32 bit software on 64 bit server
I'm planning to host a web application on a 64-bit Dell server with 32 GB RAM. I'm planning to put Ubuntu 10.04 LTS there. The problem is, our web app uses a simulator, which could be compiled and run only in 32-bit mode. So, right now I'm thinking of two possible solutions: Install 32-bit Ubuntu -- the simulator would...
The [CODE] package contains a large collection of x86_32 libraries. If your program can run with only those libraries, you're set. There are also 32-bit development tools in the [CODE] and [CODE] packages. If you need to go beyond that, run a 32-bit system in a chroot. Debian and Ubuntu come with tools that make this e...
1
3
666
2011-11-27T14:11:38.327
infrastructure
serverfault.com
497,021
How to connect a Mac laptop to a server via the serial port?
I'm a applications guy trying to set up a Dell c6100 server that doesn't boot. We'll have physical access tomorrow. The box has a serial connector for console access. We'll have a MAC laptop. Are there any good instructions to explain exactly which cables we need (e.g. serial to USB) and how to make that connection wor...
You could use a USB-to-serial adapter. Devices using the Prolific PL2303 chip are known to work with OS X with the driver from the Prolific web site . Check out this site for more detail and pretty pictures: http://wlanbook.com/usb-to-serial-adapter-for-mac-os-x-lion-with-driver
0
3
994
2013-04-07T15:42:50.927
infrastructure
serverfault.com
185,964
Portability: Python's C/C++ libraries/extensions vs JRuby's Java libraries
I've had some discussion with colleagues who chose to go with JRuby along the following line of argumentation: JRuby can make use of anything that is available in Java, ergo such programs are more portable bc Java is more portable. Arguably, the breadth, capability and speed of C/C++ libraries that have been wrapped fo...
This is almost an impossible question to answer in the abstract. It depends on what type of programming your doing (systems, enterprise, application) and your definition of portability. At my current job they did try JRuby precisely because it had the promise of playing nicely with the JVM (before I got there). They di...
1
1
479
2013-02-05T12:10:23.813
api_errors
softwareengineering.stackexchange.com
1,140,709
SAS channel speed and multiple disk setup
I have the following setup and looking for recommendations on the 2 connection options: 1x SAS Controller in HBA mode with 2x SAS Ports 2 SAS cables with 4 SAS connectors each 4x HDs with 6GB/s SAS speed So I could connect all 4 HDs with 1 SAS cable to 1 SAS port on the controller or I could connect 2 HDs on each of th...
So I could connect all 4 HDs with 1 SAS cable to 1 SAS port on the controller or I could connect 2 HDs on each of the 2 SAS ports. Doesn't matter. What you call "SAS cable" seems to have a four-lane connector on one end like this: SFF-8087 (credits: Wikipedia ) All four lanes are independent of each other. The lanes in...
0
0
44
2023-08-04T12:54:12.100
infrastructure
serverfault.com
737,826
My script does not go to the next server
I'm trying to retrieve eventlog (with certain conditions) from multiple servers. It only checks the first server and does not move onto the next one. What is wrong with it? I tried different scripts (This are my first scripts ever, I know they suck) [CODE]
I verified you script does work, there is a long lag time between connections. You just need to let it run and be patient.
0
3
70
2015-11-20T14:58:36.117
infrastructure
serverfault.com
32,228
Best way to make sure a MySQL database is fully in UTF8
After some problems with UTF8 and none-UTF8 strings, we're standardising on UTF8. One thing I need to do is check that everything is in UTF8 in the MySQL database? What do I need to check? Server default characterset Default character set of each database Does each text column have a character set? How do I check for t...
Rory, First of all, you are correct for wanting to monitor what gets created in you databases. While we all implement steps to prevent mistakes, you cannot assume that the mistakes won't creep in. I do a very similar thing as most of our infrastructure demands UTF8. The following queries are good for checking stats: [C...
8
9
6,181
2009-06-26T14:57:09.760
database_errors
serverfault.com
936,330
SSM Managed instance using AWS CLI and assume-role
I have a requirement for a non AWS host to perform a scheduled scripted task with an S3 bucket. I have this working as expected with access/secret access keys related to the S3 role. This non AWS host is running centos7 and I have it registered with AWS Systems Manager as a managed instance, I am hoping to assign the S...
To be honest I don’t think non-EC2 instances can have IAM Roles assigned in any reasonable way. IAM Role credentials are supplied to the instance through the virtual metadata endpoint [CODE] which isn’t available from on-prem hosts. I’m afraid you’ll have to manage access/secret keys for the host. Maybe SSM with Parame...
2
0
319
2018-10-19T13:45:01.833
infrastructure
serverfault.com
767,640
Is there a way to unbreak this egg?
We need to recover from overwriting the authorized_keys files on a set of servers. Remote, embedded Linux devices were configured to ssh into Ubuntu 14.04 servers autonomously. We do not have record of the ssh public keys for those devices, and we cannot physically get to these devices. We need to allow them to connect...
If you have no backup you may need to resort to data recovery techniques. Your millage will vary depending on the filesystem in use, if compression or encryption are being used, what tool was used to overwrite the file, how long it has been since the file has been overwritten ect... Ideally the moment you realize you n...
0
0
210
2016-04-01T19:06:09.780
infrastructure
serverfault.com
150,101
Autonegotiate errors between HP and Cisco hardware?
This is a bit of a specific extension to this question . I've got two ASA's that feed into a Procurve switch, and then into an IPS. All is well except that the procurve absolutely refuses to autonegotiate with the ASA's...The asa's run 100full, and the procurve autonegotiates to 100half. It does it for both ASA's, so i...
I have a similar set up with ASAs and Procurves (but no IPS) and no problems with auto-negotiation. However, our equipment is connected at 1Gbps, not 100Mbps. We did have problems between an HP switch and Cisco switch where both ran at 100 (and had to be set manually to 100/full). My usual order of operations is: If >1...
0
2
1,242
2010-06-10T15:10:29.030
infrastructure
serverfault.com
6,227
Troubles with mapping ports on a very simple Docker container
I'm new to Docker and following a tutorial on Udemy.com. The turtorial has me setting and running a very simple container. Docker File [CODE] Index.js [CODE] package.json [CODE] I'm working on a laptop running Windows 10 Home. Using the Docker Quickstart Terminal and PowerShell. I've edited my HOSTS file as to point lo...
May be you are using bridge network mode. In that case, you need to bind your host port to container port to use same port. So when you execute docker run, you may need to add -p 5000:5000 as a flag to docker run command. Also I don't see any expose in Dockerfile. So you may want to add EXPOSE 5000 in Dockerfile just a...
0
1
2,151
2019-02-05T00:10:32.767
pipeline_ops
devops.stackexchange.com
160,954
Postgres ERROR: tuple concurrently updated
I have a large table test in which in user_id 2 have 500000 records. So I want to delete this record in chunks of 100 records but it is given error. Here is my query: [CODE] ERROR: tuple concurrently updated What is the issue. How can i solved it.
Finally I got solution, I am just doing reindex the table, and its work properly now. [CODE] Thank you, all of you for your suggestion.
9
4
22,770
2017-01-13T05:27:53.590
api_errors
dba.stackexchange.com
896,762
Why does certbot suddenly fall back to http-01 challenge instead of tls-sni-01 (https)?
I have a well-tested bash script that was running fine until a few weeks ago. It seems that certbot challenge defaults now to http instead of https. I can't figure out the reason. [CODE] Firewall settings: [CODE] Certbot: [CODE]
It could be due to the recent vulnerability announced with the tls-sni-01 verification method, Let’s Encrypt disabled this until it’s been fixed patched. Until then, they have advised using http for verification. Lets Encrypt tls-sni-01 bug details
6
5
2,380
2018-02-11T18:52:15.400
infrastructure
serverfault.com
422,523
Using LDAP Attributes to improve performance for large directories
We have a LDAP directory with more than 50,000 users in it. LDAP Vendor suggests maximum limit of 40,000 users per LDAP group. We have number of inactive users and those are being purged but what if we don't get below the 40,000 users? Would switching to using multivalued attribute at user record level instead of using...
Groups already use multi-valued attributes like [CODE] and [CODE] . In some legacy directory servers, the real problem was the handling of multi-valued attributes in any entry, not just a group entry (there is nothing special about a group, it's just a member of an objectClass that requires/allows [CODE] or [CODE] or w...
2
2
542
2012-08-29T14:52:55.607
api_errors
serverfault.com
880,067
Samba 4 not working as an AD-DC
I am trying to get Samba working as a AD-DC on a Debian machine but having little luck, I managed to get the Samba-ad-dc service up and running after disabling nmbd and smbd services but now when I try to let my Win 7 machine search for a domain it doesn't find any. Also if I log onto the Debian machine and execute [CO...
I've hit this today too :). The issue is that you need to have the winbind package installed as well on the AD-DC for that smbclient command to work (and it's not a dependency of the samba package, so if you just installed samba it won't get pulled in). I don't think winbind is necessarily needed for an AD-DC (from my ...
0
2
5,469
2017-10-24T16:47:53.223
infrastructure
serverfault.com
101,147
Saving SQL Server DMV's for later use
Is it possible to save DMV's in SQL server database backup, which can be restored on different server, I mean with master db details( views and all)? If not, what's the best way to maintain 2 environment( one for Performance Testing and replica of it for analysis), so that database which has been used for testing can b...
The DMV's themselves are the same between same builds of SQLServer and give you a snapshot or a cumulative counter of the status of your server at any given time. You cannot restore the database to a new server with the metadata from the old one. You can make snapshots of some of the performance metrics into a table bu...
0
4
703
2015-05-11T10:39:16.777
database_errors
dba.stackexchange.com
375,473
Backup data from RAID 1 disk out of its server
I'm facing with a pretty easy problem in my opinion. I've extracted a working disk from a RAID1 and I'm looking to copy only data (FS and RAID configuration doesn't matter) into another location (another FS). My problem is I'm not able to mount properly this disk into another linux. I've first looked the partition tabl...
You need to do [CODE] once done, you should be able to see that md0 became active when you type [CODE] if it is not the case, try [CODE] and repeat [CODE] to see if md0 became active. Once md0 is active, you can mount it with [CODE] and recover your data by copying it wherever you want.
2
1
1,800
2012-03-31T09:32:44.137
database_errors
serverfault.com
753,918
Cryptsetup luks - Check that kernel supports aes-xts-plain64 cipher
I encrypted a bunch of hard drives with cryptsetup luks encryption on CentOS 5. Everything was fine, until I upgraded my system to CentOS 6. Now I cannot mount the disks anymore. To mount with my keyphrase: [CODE] I get this error: [CODE] In /var/log/messages: [CODE] Any thoughts on how I can mount??
Solution found. The problem was the drives were encrypted with an interactive keyphrase of about 512 characters long (copy/paste from a key file). For some reason, the new kernel module in CentOS 6 would not properly read encrypted keys of 512-characters when created by an older version. Only seems to affect differing ...
5
3
3,494
2016-02-04T05:51:33.200
infrastructure
serverfault.com
55,909
does smaller training set always lead to better training accuracy?
Does anyone know any existing research or have observed some experimental results in deep learning about the following: For a fixed data set, if you subset the dataset from 50% to 90% as training set, using the same number of epochs, will the training error be bigger as the training set becomes bigger? would be great i...
I don't think there a connection between size of the training set and model's performance during training. A dataset can be very noisy and unpredictable, independently from its size. To my knowldge, it is not possible to derive any general rule about this.
0
3
120
2019-07-18T09:31:10.323
data_quality
datascience.stackexchange.com
491,662
Getting APCUPSD working with PowerChute (pcnet)
After configuring apcupsd and starting the service the service eventually times out and reports [CODE] . The ups is configured with the IP of the client and the client is configured with the correct passphrase (working on other machines which are using the PCNS software) Environment [CODE] UPS [CODE] apcupsd.conf [CODE...
Everything pointed to an auth issue. I upgraded the controller firmware to 5.1.7 and reset the pass phrase and everything works great!
0
0
3,980
2013-03-27T01:16:33.137
infrastructure
serverfault.com
977,936
PHP-FPM + nginx producing a permission denied, but only on certain large pages
I have an AWS Lightsail instance (1GB RAM instance) running a relatively new website (i.e. virtually no traffic). It's running nginx and PHP-FPM 7.3 (tried with 7.2 as well) and MariaDB. All of this is under CentOS 7. Everything worked fine under the AWS free tier. I ran a T2.micro EC2 instance and a T2.micro RDS insta...
First of all, the failure is related to FastCGI buffering , rather than proxy cache. This is obvious from [CODE] . Why you experience an error on particularly large pages only: if your configured FastCGI buffers are not enough to fit the entire response from PHP-FPM into memory, and this will happen more often with lar...
3
7
4,570
2019-08-04T23:33:26.107
database_errors
serverfault.com
39,807
ERROR 1034 (HY000) : Wrong aligned block, while importing in mysql
I got a SQLdump from my database and now I want to import it in to an other mysql server with same version( [CODE] ) in ubuntu 12.04 .but at the middle of importing, it said: [CODE] I do it again and I got another error [CODE] I use default parameter to create SQL dump This is my my.conf: [client] port = 3306 socket = ...
At first glance, I would say you have some corruption. But, this an import. That scares me. Take your mysqldump and run this: [CODE] Does the dump contain [CODE] and [CODE] ? My guess would be no. Did you change the table structure, i.e., added columns to the table removed columns from the table changed charset/collati...
0
1
1,208
2013-04-12T09:31:15.630
database_errors
dba.stackexchange.com
81,424
How do you identify whether your RMSE score is good or not?
Im building a XGBoost regression model to predict the values in the range of -3 to 3. Im using Root Mean Squared Error to evaluate the model. With hyper-parameter tuning and everything the best scores I could get was this: training - 0.118 validation - 0.3207 (5 folds) testing - 0.3018 I know for the regression task, t...
Note that RMSE is an easy to understand metric. Its the Root of the Mean Squared Error. So this is just how is the typical error. If your target is something like how big is a building, and the mean of the target its 100m, then having an error of 0.3m its nothing. On the other hand if you predict the size of insect, an...
1
2
2,025
2020-09-09T04:04:41.073
data_quality
datascience.stackexchange.com
51,894
DTUTIL performance slower in SQL Server 2012?
We've noticed that since deploying Windows 2012/SQL Server 2012, the performance of [CODE] has decreased. [CODE] consumes 50% on each of 2 cores on an 8 GB VM. The same syntax against Win 2008 R2/SQL Server 2008 R2 shows almost no impact on a VM with similar specs. Overall, it takes ~90-120 seconds to deploy a package....
The answer to this is yes, we had to convert the package to SQL 2012 format. For now we keep our packages in SQL 2008 format in source control, and at deploy time migrate the page to 2012 format. Once done, the performance is on par.
6
1
817
2013-10-21T15:20:02.190
pipeline_ops
dba.stackexchange.com
275,142
Releasing open source software too soon
What is the moral responsibility of releasing open source software too soon? For instance, a close-to-complete product that hasn't been fully tested. What is the expectation of the programmer? Wait until it is fully tested, or release to open source and then continue further development, testing, and advancements? The ...
I believe on the contrary that you should release an open source software as soon as possible. There is no "too soon" for that (but it should compile). Or at least publish the source code very early and continuously (e.g. by frequent pushes on github ), without making formal releases. However, it is very important to f...
36
54
4,272
2015-03-04T04:39:30.463
api_errors
softwareengineering.stackexchange.com
605,299
Batch rename directories with regex via command line on Linux
I have a folder on the server that contains directories that are created daily and are named by date, like so: [CODE] etc. At some point I decided that a preferred naming would be in the following format: 2014-06-07 And the new folders get created with that format. So now the folder contains both: directories in old fo...
Your regular expression is broken, I think you meant something like this: [CODE] i.e. hyphens do not need escaping and the second slash was out of place. Note that with this substitution you will also rename files with the new naming scheme. You probably want to anchor the regular expression. Something like this should...
4
7
4,826
2014-06-15T19:15:33.707
infrastructure
serverfault.com
316,142
LEFT JOIN not return right value
I am trying to join 3 tables with it foreign keys, but for some reason one of the return value from the query doesn't return correct when I use [CODE] for the 3 tables but I removed the one that didn't return correct and tried to query it separately it does below is the query for the 3 tables with [CODE] : [CODE] Accor...
I was able to resolve this but LEFT JOIN the SELECT statement separately as below: [CODE]
0
0
50
2022-08-28T07:31:25.417
warehouse_errors
dba.stackexchange.com
525,283
Centos / vsFTPD / Nginx / php-fpm - Permission denied (500 Internal Server Error)
I have a clean Centos 6.4 (x64) minimal edition installed (fully updated). Once the OS was setup, I followed this relatively simple guide to setup my FTP: http://www.krizna.com/centos/how-to-configure-ftp-server-on-centos-6/ [CODE] instead of creating a linux local user acc on /ftp/[username] (as per guide), I opted to...
The permissions of [CODE] deny access to anyone but its owner. That is what [CODE] means. To resolve the issue, allow other users to descend into the directory. [CODE]
2
3
4,943
2013-07-22T12:22:12.680
api_errors
serverfault.com
129,590
Adding a Second Wireless Router to an Existing Wired Network
I apologize ahead of time, I know this has been asked before, but I'm still having problems...maybe you guys can help. I started out with the basic instructions from the highest-voted answer at Adding a second wireless router to my network The new Wireless router in question is a Linksys Wireless-N Gigabit Router, Mode...
If you've got nothing plugged into the "WAN" port (which is CORRECT), then the DHCP settings for the WAN are totally irrelevant. You should also never see the 2nd router appear in your DHCP lease, because you've assigned it a static IP address, outside of the DHCP range of the first router (also correct). What might be...
2
1
6,830
2010-04-06T02:01:51.817
infrastructure
serverfault.com
318,351
How to display non-English character correctly in db2cmd?
On Db2 v11.5.7 on Linux/x86_64 I have a UTF-8 database. Executing [CODE] returns: [CODE] On my Windows 10 computer in Putty I have set: Window | Translation | Remote character set to UTF-8. I can properly see non-English characters in Putty. I have also installed DBeaver tool and I can also properly see non-English cha...
I haven't tried to set the system default locale to UTF-8 (don't want to risk). db2 clp on Windows doesn't work normally with terminal input and output. But you may make it produce correct UTF-8 output into a file or accept correct UTF-8 input with the following. It's important to run db2 terminate after setting DB2COD...
1
0
1,004
2022-10-18T13:08:05.650
warehouse_errors
dba.stackexchange.com
329,903
Pings not answered when IPv6 Support enabled in Windows 7 Ultimate 64-bit
I have Dnsmasq configured on my network to give names to various IPv4 IP addresses on the network. Pinging the other machines using their DNS names work fine when I have just IPv4 enabled on my client Windows 7 Ultimate 64-bit machine, but when I enable IPv6 support in the Win7 machine's list of protocols, I can no lon...
Your machine is configured to respond to IPv4 pings and not to respond to IPv6 pings. When IPv6 is enabled, other machines gets the IPv6 address when they try to resolve the name because IPv6 is preferred. As a result, they issue a ping that does not get a reply. [CODE] won't work because you can't do an IPv4 ping to a...
1
3
4,034
2011-11-10T20:32:36.247
infrastructure
serverfault.com
168,688
How to start competitive programming?
I have been practicing coding for a while, but the problem is that it takes me a lot of time to write a solution for the problems. I want to ask if competitive programming can help me in improving this. If yes, then how should I start and from which web sites could I use (like TopCoder )? I obviously won't be able to s...
[can] competitive programming help me in improving [the speed]? Yes, it can, and given sufficient time, it certainly will. However, speed is not the most important skill that you are going to improve. From my experience of participating with TopCoder for 10+ years, the most important skill that you are going to take fr...
18
19
10,911
2012-10-12T16:13:03.607
api_errors
softwareengineering.stackexchange.com
498,701
Whats the bare minimum modules required by Apache to run Drupal
As part of improving performance of my website I am reducing the memory footprint of Apache. Currently I have the following modules enabled [CODE] I would like Apache to load only modules required to run Drupal 7. I don't intend to use content negotiation so I can disable it. Are there any other modules that I can disa...
I think it is not such important thing to disable these modules. But if you really want to, you probably can disable all auth* modules as there is "form based" authentication as default in Drupal, which does not need any support from these modules. Status is not needed if you do not want "server-status" page. You do no...
0
0
1,101
2013-04-12T08:54:23.547
infrastructure
serverfault.com
417,220
How to spot webhosting resellers posing as actual hosts?
Recently I began work on an eBook about the hosting industry and there is a key issue which I often encounter with many of my clients. I wanted to ask what are the best methods for a person to check and ensure the hosting company they are doing business with actually owns the hardware and is not simply acting as a midd...
The line here is extremely blurry: What constitutes a reseller? For example, I rent a private rack in a local datacenter. The equipment is 100% owned and managed by my company, including our firewall and switches. I also have my own /26 (~64 IP addresses). Let's do a bit of research: [CODE] This tells you who ARIN assi...
-1
2
130
2012-08-14T01:43:19.167
infrastructure
serverfault.com
889,463
DB_NOTFOUND: No matching key/data pair found (-30988)
Could anyone please explain why I get this error. I got this error(on server) while trying to bind any user in ldap server. Also I get "Insufficient access rights" output when I run the program. And I dont get it while trying to bind admin. I provided access control in my slapd.conf like this : [CODE] Code: [CODE] Erro...
I do not see the "insufficent access rights" error, but what I can see is this error: [CODE] which could be related to this entries: [CODE] Does that exist in your LDAP database?
0
0
4,398
2017-12-23T18:00:21.480
infrastructure
serverfault.com
953,401
Unable to rename domain controller: Account already exists
I successfully demoted an old domain controller (Windows Server 2016) in a clean manner, cleanly removed the server from the domain, deleted the associated object in 'Computers' on Active Directory Users and Computers, but when I went to rename the new domain controller (Windows Server 2019) to the name of the old doma...
I found out what the problem was: There apparently was an entry in ADSI Edit under: Configuration -> CN=Sites -> CN=Default-First-Site-Name -> CN=Servers -> CN={Old Domain Controller}. The thing is, in ADSI Edit, 'Configuration' isn't normally shown by default (at least with the Remote Server Administration Tools), you...
2
4
3,737
2019-02-08T18:31:37.133
infrastructure
serverfault.com
988,562
Missing docker 18.09.10 files on repository
As stated in Docker Engine Release Notes , the 18.09.10 version was released on 2019-10-08. I'm trying to install the respective Docker CE on CentOS, but the [CODE] files are not available at the CentOS 7 repo . I can't even find a tag/release for 18.09.10 on docker-ce GitHub. The files were not built or I'm missing so...
Docker CE is only updated for about a month after the next major release comes out (there may be rare exceptions). After that, only the latest release receives patches. So after 19.03 was released, patches for 18.09 would stop after roughly a month. For customers that needed more support of older releases, there's Dock...
0
1
56
2019-10-18T14:24:58.177
pipeline_ops
serverfault.com
104,915
MySQL loading NULLs in numeric columns
MySQL 5.6.23, InnoDB I am loading tables from character delimited text files using the [CODE] commnd and I would like every field with a [CODE] , which is the [CODE] character in this setting, to place a [CODE] in the table. Some numeric types have this behavior, whereas others place a [CODE] . I am using [CODE] and so...
Very short answer : No new datatypes have been created to accommodate you. While we are on this subject Let's try plain SQL [CODE] Does this work ??? [CODE] OK, fine. It works with SQL. You are asking about [CODE] You brought up a post I answered : MySQL is inserting "" as 0 in decimal fields. How to stop that? Let's s...
9
7
12,076
2015-06-23T18:17:50.603
database_errors
dba.stackexchange.com
1,128,856
Resolve-DnsName resolves hostname of IP, but nslookup fails
There are some IP address that [CODE] can't resolve (both on Windows and Linux). Problem: I can find the IP of the hostname, but reverse lookup fails. [CODE] However, [CODE] PowerShell command return the hostname for the reverse lookup. [CODE] There are two unusual things I observe here: It comes from the Question sect...
After examining [CODE] , I saw that indeed those IPs weren't available in DNS: [CODE] But the answer came from [CODE] query in [CODE] (NetBIOS Name Service) protocol. The reason is that those hosts don't have static IP - they get their dynamic IP through DHCP, so they weren't registered in the DNS Name Servers. I was a...
0
0
3,672
2023-04-17T12:53:29.647
infrastructure
serverfault.com
885,401
Couldn't resolve host 'metadata.google.internal'
My VM was running for 2 uptime years or even more with no problems. Several days ago I could reach the web site it hosts. I tried ssh but it fail connecting, so I restarted the VM and it fails to boot. Attaching the log from serial console. I see problems resolving metadata server. What can be wrong? Thanks! [CODE] I r...
You can enable interactive access to the serial console so you can more easily troubleshoot instances that are not booting properly or that are otherwise inaccessible. See Interacting with the Serial Console for more information.
1
1
2,821
2017-11-27T20:25:52.357
infrastructure
serverfault.com
657,817
How to correctly configure Apaches mod_proxy for GitLab under a suburl in combination with other suburls
I have a server on which I want to run GitLab beside other services. After googling around for some time I found out that I need to do some mod_proxy tricks to get Apache2 to forward requests to GitLab. But now when I try to access any URL on the server that is not a GitLab URL under /git, I simply get an error. I can'...
I found the solution to this: The problem is that overrides all other defined vhosts. It was necessary for my setup to let this gitlab instance run under a different port and then proxy to this one from the main configuration. So my vhost is now [CODE] and before a [CODE] . In the config file where I wanted to configur...
1
2
2,127
2015-01-07T08:10:43.437
infrastructure
serverfault.com
885,196
Credit Card Payment on a HTTPS / SSL site via VPN: is my data safe?
Since the closest Q & A I have found about this topic doesn't quite match the focus I have in mind, I felt that a more precise question could be a helpful point of reference for me and many other users in my same situation. I need to access a specific content on a web site that isn't be available from my country, and m...
Well if your worry is the VPN service then they can't decrypt the SSL traffic from the website. They could only decrypt their VPN traffic. So think of your packet now like a gift wrapped 2 times. First the browser wraps your traffic in the SSL encryption then your VPN client wraps its encryption over the SSL. So if you...
0
0
125
2017-11-26T13:06:09.370
data_quality
serverfault.com
75,941
Handling user logins while using a multiple schema design to support multi-tenancy
I'm creating a web application (in PHP and PostreSQL) that will be used by organisations and their staff and I want to use multiple [CODE] to support multi-tenancy. There will be one database and I want all data related to organisation A to be stored in a schema named [CODE] and all data for organisation B to be stored...
Your options are: Use roles, and [CODE] on each role so it looks in the appropriate organization's schema. While in many ways the cleanest approach from a database perspective, this is a pain when giving orgs the right to manage their own users. Require users to specify their organisation at login time, probably with u...
3
3
2,367
2014-09-07T22:17:48.437
api_errors
dba.stackexchange.com
276,644
CentOS 5.6 - yum update php to 5.2.10
I've had to upgrade my CentOS PHP package to 5.2.10 to enable the JSON extension, but it's not gone 100% smoothly. Naturally.. I used this guide: http://wiki.centos.org/HowTos/PHP_5.1_To_5.2 On completing "yum update", "php -v" showed a bunch of extension errors so I updated those using "pecl upgrade [package]". That r...
If an even newer PHP is not a problem (PHP 5.3), it is now available for CentOS 5.6. The packages are named php53 instead of php, and the json module is part of the php53-common package.
0
1
1,133
2011-06-03T11:49:06.060
infrastructure
serverfault.com
359,987
Who executed that particular command on my centos VPS
I have noticed that an unknown mysqldump command is being executed on my system. But I have not configured my system to issue that command. Following is the output when I do ps aux | grep mysqldump [CODE] 500 is probably uid for my own user account (and only one that has bash access) I have tried everything, like [CODE...
[CODE] should tell you which user has uid 500. Since the tty column is a ? it doesn't appear that it is attached to a particular login currently. (though that could mean that someone launched it interactively then [CODE] ed it. I'd wonder if you have a backup scheduled in cron which you don't know about. You could chec...
0
1
138
2012-02-14T14:48:50.407
api_errors
serverfault.com
632,034
Setting up Jetty SessionHandler
I am trying to set up persistent sessions on Jetty 9.2.3 on a linux machine running Java8. I have added jetty-web.xml file to my app under ${jetty.home}/webapps/app/WEB-INF/ with the following content: [CODE] but when I try to start Jetty, I get the following error: [CODE] Any help would be greatly appreciated.
Well, it seems like the classpaths in Jetty9 documentation explaining how to setup persistent sessions is simply incorrect. As soon as I changed paths from org.eclipse.jetty.servlet.* to org.eclipse.jetty.server.session.* everything worked like a charm. The final config looked like this: [CODE]
1
2
2,219
2014-09-29T10:21:18.280
infrastructure
serverfault.com
186,448
Unable to connect to MySQL on Windows 10: Access denied for user
I have MySQL server (only the server) installed and running on my Windows 10 computer. I tried to connect to the server with the following commands: [CODE] and I was prompted this error message for all of these commands: [CODE] Here's the full error log in MySQL [CODE] file: [CODE]
The problem has to do with the ampersand symbol [CODE] in Windows command shell. Initially I had set the root password to something like this [CODE] unaware that [CODE] is a special character in Windows command shell that should be escaped with [CODE] when passed as an argument. So it prompts error when I connect with ...
0
0
10,118
2017-09-20T16:25:16.723
database_errors
dba.stackexchange.com
431,598
Why do library developers deliberately break existing code?
Today, I updated [CODE] the PHP e-mail parser library from 1.x to 2.x. Soon enough, my PHP error log started filling up with errors. Noting where it happened, I found out that it had to do with their [CODE] function: https://mail-mime-parser.org/upgrade-2.0 An additional parameter needs to be passed to Message::from() ...
A major version upgrade literally means they intend to break things. You shouldn't upgrade to a new major version unless you're prepared to deal with it. Most build systems have a way to specify you're okay with automatic upgrades to minor versions, but not to major versions. APIs break for a number of reasons. In this...
40
187
10,031
2021-09-02T17:42:39.943
api_errors
softwareengineering.stackexchange.com
876,649
IPTables -j DNAT doesn't appear to work in a certain case
I am trying to change the destination IP address for an ICMP reply packet. The ICMP reply enters the router from my IPSEC tunnel as such (I'm not entirely certain why it is shown in tcpdump twice): [CODE] I attempt to change the destination ip to local ip (172.31.20.219) on the PREROUTING table with: [CODE] So the tabl...
An ICMP Echo reply packet is part of an established flow. That means, when the kernel received such a packet in a normal case, it was already expecting it (after the initial ICMP Echo request) , so conntrack, the base brick needed for nat, already created an expectation entry for it. In such case, the nat table will be...
1
1
1,724
2017-10-03T14:49:56.093
infrastructure
serverfault.com
327,345
Impact of creating separate indexes on high-insertion PostgreSQL table
I'm building a taxi application that uses PostgreSQL as the database backend. One of the tables, [CODE] , has the following columns: [CODE] , [CODE] , [CODE] , and [CODE] . Considering the expected load of approximately 100 new taxi orders per second in different countries, completed by different taxi fleets and driver...
WHERE t.country_region_id = ? ORDER BY id DESC LIMIT ? OFFSET ? Based on your queries, you would want to add "id" as a 2nd column to each of your single-column indexes. That way it can read the rows already in the requested order (within the given equality condition) and stop once it obtained the needed limit+offset. W...
0
1
41
2023-05-21T09:39:11.833
database_errors
dba.stackexchange.com
591,295
multicast address use in corosync
I'm wondering about the purpose of the multicast address in the corosync messaging software : Since we have to bind each net interface with an IP address and a specific port, and each ring communicate through those IP, I don't understand why we have to use also a multicast address. Someone can enlighten me please ? Tha...
You don't have to use multicast on corosync. You may use unicast to do your job. This can be done by using something like this in [CODE] for a two-member cluster: [CODE]
3
3
14,695
2014-04-25T09:58:52.140
infrastructure
serverfault.com