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
156,536
Moving from PHP to Python - framework considerations
As a long time PHP developer, I am now starting to explore the Python world. I have narrowed the choice of framework down to Django and Pyramid, probably no big surprise there. I have played a bit both both frameworks. I really like Djangos admin, and the fact that everything is already integrated. My concern with Djan...
The short answer is to learn both. It's always good to have a lot of tools in your tool belt. The long answer, though, is to learn Django first and then add Pyramid in later. Your first reaction to the breadth of Django documentation and resources available is the right one. As you're picking up python, you'll find mor...
3
3
1,999
2012-07-12T11:21:06.230
api_errors
softwareengineering.stackexchange.com
291,192
Apache timeout instead of webpage
instead of the desired webpages I get timeouts. If I try to get a page with wget on the server itself it works fine, but if I want to connect with a browser I get a timeout. [CODE] Output from iptables: [CODE] How can I solve this? ///EDIT httpd.conf [CODE] iptables -L -v [CODE] ///EDIT2 [CODE] If I try to open port 80...
It doesn't look like you are allowing incoming connections on port 80 in your iptables settings, but it's hard to tell without seeing output from [CODE] . Allow incoming port 80 to your firewall rules and it will likely work.
0
1
1,722
2011-07-17T13:50:33.963
infrastructure
serverfault.com
429,950
ScreenOS MIP selection for outbound connections
Given a ScreenOS 6.3.0 firewall with this configuration: [CODE] ... (and assuming appropriate policies) is there a way to control which MIP the firewall selects for outbound connections initiated by 192.168.1.10? (presumably because I want the upstream 10.0.0.254 to do different things with the packet depending on what...
Assuming you want to have active control over both outbound links at the same time (ie system A uses IP A and goes out uplink A, System B uses IP B and goes out uplink B) the answer is no, you can't. You need a link balancer. If you don't care which link outbound traffic uses, you can set up two MIPs (one for each ISP ...
1
1
871
2012-09-19T17:05:07.970
infrastructure
serverfault.com
502,927
Can one nameserver query another nameserver for the proper A record?
FakeDomain.com 's DNS servers at the registrar is ns1.fakeserver.com & ns2.fakeserver.com . This can't be updated. I can change the zone file for ns1.fakeserver.com & ns2.fakeserver.com . The server for FakeDomain.com is a cloud site with rackspace - so I don't want to have an A record that would point to the current I...
What you need is a CNAME record. Add something like: [CODE] to your zone file...
0
2
71
2013-04-26T15:05:12.967
infrastructure
serverfault.com
1,059,880
OpenLDAP Consumer Replica
I have a Cluster OpenLDAP setup with 2 OpenLDAP servers running syncrepl on config and data, providing LDAP authentication to specific systems running various embedded OS. Now I was asked to add a Consumer replica with a subset of users and groups from the Cluster setup, running on a remote site. I used the Ubuntu docu...
This isn't the problem you asked about, however, your posted question has your sending a cleartext password across whatever you link is between the provider and the consumer, and it looks like you're doing so with what's probably olcRoot. Might want to get at least some TLS on that. Either use [CODE] or wait out your s...
0
0
175
2021-04-09T12:26:05.663
api_errors
serverfault.com
841,373
Can I access a Windows 2016 server from a 2012 client through a 2012 server?
We have a bunch of thin clients with Server 2012 CALs. These thin clients mostly run RDP to a Windows 2012 server We want to put a SQL Server 2016 install on a Windows 2016 server. These are all separately licensed. Programs running on the 2012 server will then access the SQL Server 2016 database running on the Windows...
May be you will think use sql server vnext on linux instead of Windows. This will decrease yor licence costs. https://docs.microsoft.com/en-us/sql/sql-server/what-s-new-in-sql-server-vnext
0
0
35
2017-03-29T17:01:20.410
database_errors
serverfault.com
997,688
javaws failing on JNLP file, unable to verify cert error
We run Screenconnect at the office, or whatever connectwise calls it these days. I'm the only linux user in the office. So I just run the icedtea-netx plugin and open my sessions with the jnlp file. Recently had to reload a laptop and noticed that I can no longer open any jnlp file from our screenconnect server. Also n...
It's a bug on Connectwise's side. They get the same error upon spinning up a new debian instance and installing icedtea-netx. Supposedly this was in 19.2 and older. It was supposedly fixed in 19.3 but we upgraded to 19.5 and it's still broken. We went to 19.5 after I was told by their support that he tested it in 19.5 ...
0
0
1,552
2020-01-05T15:04:14.050
infrastructure
serverfault.com
161,997
After Update Trigger When Multiple Rows To Update
Is it possible to use a trigger to update multiple rows? For example, I have an app that will use a Table Value Param & a SQL Stored Proc to dump anywhere between 15 and 20 rows into a table. Once that data is dumped, I then need a way (I was thinking a trigger) to update the remaining "missing" fields. I thought this ...
You are right, there is a virtual table called "inserted" which is what you would need to join on. This table contains all the rows which have been inserted in the original table insert statement. So something like: [CODE]
0
1
6,384
2017-01-23T19:50:55.793
warehouse_errors
dba.stackexchange.com
5,332
Load / Performance testing tools or approach for backend
I work on a team which is basically all backend. Functional and unit testing is achieved by python or perl scripts or sometimes bash scripts. But if we need to load or performance test our applications, we currently have a few scripts that generate linear load and we write some scripts that would print out some stuff t...
Given that you're primary Linux and prefer OSS, have you tried solutions such as soap/loadUI or JMeter. I know that there's some features of soapUI that require a professional license, but, it is reasonable for most companies. One of the features with this that I believe would suit you well would be the ability to call...
6
3
1,669
2012-12-12T20:26:19.887
data_quality
sqa.stackexchange.com
103,926
Union of data from all tables with name containing a substring
I have 500+ tables all containing a column called [CODE] . The table names are like: [CODE] . What I am trying to get is a column containing all the unique entries from [CODE] across all of these tables. The problem is made a little more challenging because all tables in the DB contain this column, and I am not interes...
Yes, you need a script but it doesn't have to be 1000 lines. --make a table or global temporary table to put the results in [CODE] --add the primary key of PK_ID, are contents larger than 4000 characters? use a CLOB --create a trigger on the table if the PK_ID is null add a sequence value [CODE] --then do a select dist...
1
1
1,311
2015-06-12T17:47:24.383
api_errors
dba.stackexchange.com
1,147,058
Azure AD Connect says my User is synced, but it isn't
I use Azure AD Connect to sync Users, Computers and Groups from my local Active Directory to Azure. Before I set up Azure AD Connect, every User already existed in local AD and in Azure AD, so I had to match them via soft or hardlink. All Users that I want to be synced, are synced. I had a problem specifically with my ...
Did you use an account with the same UPN as your on-prem user account to configure AAD/the tenant initially? If so, you shouldn't have. You would have been much better off to use a generic account name as the "first GA" in the tenant. I can't speak to any effect that might have with password hash sync in AAD, because I...
0
0
810
2023-11-02T08:34:50.110
bi_errors
serverfault.com
315,185
Bandwidth-friendly backup strategy using tar?
We've used [CODE] to backup and compress (gzip) selected directories on our file server with very good results until recently. Each and every one of our backups are stored on mirrored (RAID) harddrives and simultaneously uploaded to a Amazon S3 bucket for off-site storage. As our data has grown rapidly in size recently...
A lot of unknown variables here. What the size of your backups are, what your bandwidth limits are, do you want incremental or full backups, etc. A few suggestions regardless: Use rsync over ssh while using compression (-C option). Rsync would greatly reduce the amount of data needed for transfer on each backup. The co...
2
0
593
2011-09-24T20:51:46.257
database_errors
serverfault.com
3,411
What is the proper term for lead time from commit to deployment?
I know for example following DevOps relevant concepts related to time: MTTR - mean time to recovery Sprint length - fixed agreed time to hand over features to customer (what this specificall implies is part of DoD I think) Now my question - how do you name the lead time from a code commit hitting the repository to a fi...
From code repository to any environment, as a running software would be "Time to Deploy" ( which is different from deployment time, btw ). From code repository all the way to production environment, the best aproximation is time to market ( TTM ), taking aside that time to market does involve the conceptual design of a...
1
1
1,162
2018-02-22T13:46:40.917
pipeline_ops
devops.stackexchange.com
1,148,015
How can I run a script whenever my NIC Link speed drops?
I'm having issues with my ethernet dropping down from 10 GbE to 1 GbE and even sometimes down to 100 Mbps. I would like to receive a notification when this happens through something like healthchecks.io or email. I would like to toggle the port down and up again to try and force it to reconnect at 10 GbE speeds. This i...
It's possible that changing link speed triggers a udev event or something similar, but the first solution that comes to my mind is scheduling a shell script with the User Scripts plugin . You can monitor the link speed of an interface with [CODE] , so I wrote a quick script to check the speed that i tested on my 6.11.5...
0
1
130
2023-11-16T13:05:30.670
infrastructure
serverfault.com
321,692
Postgres Logical replication data missing in Slave - Out of sync
The issue started with the replication lag between Master and slave (Logical Replication Server) upto 30 GB lag and the lag wasn't coming down for a proper sync and was in catchup state. The subscription was dropped in slave and was recreated with (copy_data=false) option. Now the replication is streaming however, the ...
The easiest way it just to drop the subscription, truncate the existing data from the replica side, and recreate it again this time without copy_data=false. If you don't like copying the same data yet another time, you can try to fetch the missing data over postgres_fdw and insert it. How you will know which data is th...
2
1
758
2023-01-04T06:32:24.863
database_errors
dba.stackexchange.com
589,241
Switched from Apache to Nginx - 503 errors
Switching from Apache to Nginx has caused us some errors.Our forum images do not load, and a directory with redirects and such don't actually redirect. The two problems is /forum/uploads/avatars, and /pack/. Here are the configs. [CODE] What am I doing wrong? Can't figure it out.
The problem with [CODE] is that the rewrite destination does not end with [CODE] . This means that the execution is not passed to the [CODE] is never used for those scripts. If you really need to invoke the PHP scripts with [CODE] style, you need to add a new location block, something like this: [CODE]
0
0
914
2014-04-15T17:51:46.120
infrastructure
serverfault.com
430,766
Amazon AWS VPC how to open a port?
Possible Duplicate: How to setup a MySql server to accept remote connections? I have a VPN with public and private subnets; I am considering only public subnet for now. The node 10.0.0.23, I can ssh into it. Let's say I want to connect to MySQL on the node using its private address: [CODE] The port 3306 is not reachabl...
Login with localhost first and execute the following and then try to login with -h10.0.0.23. Follow the steps below. [CODE] [CODE] [CODE]
2
2
1,670
2012-09-21T20:25:30.047
data_quality
serverfault.com
892,675
client_max_body_size not working
I am building a Rails 5 app that is deployed to AWS elastic beanstalk.The app is running into the error 413 (Request Entity Too Large). I have been looking around Google, Stackoverflow, and Serverfault. All of these resources point me to using client_max_body_size to increase the upload capacity of the app. There are s...
To disable client_max_body_size you can change the value directive to 0. Or If you need to limit it to some extent, you can add like [CODE] . There is 'm' in the value that says it using megabytes, I think that's what you're missing. And if there is no 'm' mean that the limit body size is 26 bytes, I doubt you want tha...
2
1
19,184
2018-01-17T14:47:19.020
database_errors
serverfault.com
179,925
Cannot connect from elsewhere than a console
I am quite a beginner with MySQL, but I already got problems with setting up a connection. I tried to use MySQL Workbench, but I can't connect to the server. I use SparkyLinux, a Debian-based distribution. Here is what I did so far : I created a user and checked that I could log in a console : [CODE] (maybe it is inter...
Probably [CODE] doesn't listen the TCP sockets at all and console client is connected via filesocket. Try to list all network sockets listened at your host: [CODE] The other possibility is that you have turned [CODE] variable [CODE] that disable using of [CODE] instead of [CODE] .
0
1
141
2017-07-15T16:06:15.123
database_errors
dba.stackexchange.com
49,182
Getting parameters of the best model with crossvalidation in with SparkMLLib
I am having trouble accessing the parameters of estimators of model in SparkMLlib. More precisely my problem is: I have a logistic regression model for which I want to find the best regularization parameters ( [CODE] and [CODE] ). To do that, I use the [CODE] which works and finds me a model better than all the other o...
It's not the most elegant solution but you can use the following to at least zip together evaluation metrics and hyper parameters [CODE]
1
2
2,824
2019-04-12T09:29:01.427
data_quality
datascience.stackexchange.com
231,150
What's the difference between SocketAddress and ServerSocket in Java?
Learning how to develop a small embedded HTTP server for a class assignment, and the examples given on how to use [CODE] use an [CODE] which extends [CODE] as the link between client and server. However, all of my previous network programming assignments used [CODE] and [CODE] to create raw connections between a server...
It is all in the name... A typical network socket is a connection between two ports on two machines. The ServerSocket is the one that waits for clients to connect to it.... it 'binds' to a port, and it 'Listens' for connections, and when they happen, it 'accepts' the connection. The result of the accepted connection is...
2
2
2,894
2014-03-04T03:58:23.153
api_errors
softwareengineering.stackexchange.com
241,462
Transactional replication of Date column from Sql Server 2012 SP4 to Azure Sql Database
We have a Sql Server 2012 SP4 where we are trying to setup transactional replication to Azure Sql Database. When starting replication is says Column mycolumn in object mytable contains type Date, which is not supported in the target server version, SQL Server 2005. Since Azure Sql Database should support Date datatype ...
converting my comment to answer ... Since you confirmed that the db compatiblity is 90 which is sql 2005 Run [CODE] and then you can use [CODE]
1
1
108
2019-06-26T12:21:17.587
database_errors
dba.stackexchange.com
40,048
MySQL database drop insanely slow
I just installed MySQL 5.0.45-log Source distribution on my Debian 6.0.6 server. I installed it under my user home directory like I'm used to doing. But this time the queries are extremely slow to run. Running a create table or a database drop takes ages. I can literally watch tv in the meantime. So I did a profiling o...
I hate the checking permissions issue. You may have to disable key checks before the DROP DATABASE [CODE] UPDATE 2013-04-15 18:04 EDT I just noticed you have innodb_file_per_table OFF. What gives ? You currently have all the InnoDB data and the corresponding index sitting in a single file. Any CREATE TABLE statement mu...
1
2
9,764
2013-04-15T19:25:17.733
database_errors
dba.stackexchange.com
169,106
Does SQL Server Query Store capture parameter values?
The new Query Store introduced in SQL Server 2016 is great. It's a nice replacement for much of what I used to do with the older Profiler tool. However, I haven't found a way to capture parameter values associated with individual calls to the high resource-consuming queries it sniffs out. Is this possible? I understand...
Depending on the plan, you should be able to see the [CODE] for each parameter by inspecting the XML plans saved in [CODE] . The list is typically contained towards the end of the xml plan, and can be found in the [CODE] node. This doesn't provide the value for every execution, but does give you an idea of what the pla...
12
12
3,147
2017-04-04T17:06:32.063
database_errors
dba.stackexchange.com
53,852
Why such a big difference in number between training error and validation error?
Question Why such a big difference between my 'Train loss' and 'Validation loss' as shown in the picture below? Is it a signal that my codes are wrong and my trained network is wrong as well? Some of my codes are as follows: DATA_SPLIT_PCT = 0.2 timesteps = 5 n_features = 20 epochs = 100 batch = 32 lr = 0.0001 lstm_aut...
I think this is because your [CODE] is much larger than your [CODE] . What this means is that for training; losses are being accumulated for comparatively larger number of examples than validation. Hence your training error is larger than your validation error. I don't think its a problem with your code. If you see clo...
0
1
2,241
2019-06-15T15:16:00.470
data_quality
datascience.stackexchange.com
10,166
What Timer Jobs are safe to turn off for a SharePoint Development environment?
Our SharePoint development images are having performance problems. One of the developers has asked what timer jobs could be disabled. What prompted this was CPU time used by OWSTimer.EXE service.
I would disable none of them - they all server a purpose, be it for making sure workflows run correctly, auditing happens correctly, and "heavy"/"expensive" processes (like backups) happen at quiet times. Having the CPU time high is not an indication of a problem though - you have the resources, so why not use them? If...
2
2
379
2009-05-20T01:00:58.797
infrastructure
serverfault.com
165,667
Building a Redundant / Distributed Application
This is more of a "point me in the right direction" question. My team of three and I have built a hosted web app that queues and routes customer chat requests to available customer service agents (It does other things as well, but this is enough background to illustrate the issue). The basic dev architecture today is: ...
Make sure the Windows Service is loosely coupled to the instance of the DB server. This will allow you to move to a N:1 ratio of Windows Service : DB server. There's a whole host of techniques that can be used to make your DB server more robust, but that's not really what you're getting at in your Q. Isolate the follow...
1
3
2,000
2012-09-21T12:56:28.927
database_errors
softwareengineering.stackexchange.com
630,018
Requests take a really long time from certain ISP
We have an Apache server with PHP running on a virtual machine. Document roots are inside the users' home folders ( [CODE] ), and [CODE] is mounted over NFS. It appears that there's something strange going on. When some users request a file (in this example I used [CODE] ) it takes ages (at first the user thought it di...
While HTTP downloads via de browser and FTP downloads via an FTP client were awful from a few specific internet service providers (ISPs), HTTP downloads via curl/wget and FTP uploads went absolutely fine. In the end we fixed it by replacing the firewall. We're thinking it might have a faulty network interface card (NIC...
4
0
423
2014-09-20T12:30:45.287
api_errors
serverfault.com
395,388
Distributing library which internally using COM library
I would like to create a dll library that will be loading in runtime. The library'll be using internally COM objects with MTA flag. The library will be created in main thread. So I have question: Where there is best place where can I call 'CoInitializeEx' and 'CoUninitialize' functions. In the my dll(init/deinit functi...
Microsoft advises against calling these from the Dll load/unload functions: Because there is no way to control the order in which in-process servers are loaded or unloaded, do not call CoInitialize, CoInitializeEx, or CoUninitialize from the DllMain function. Reference https://docs.microsoft.com/en-us/windows/win32/api...
3
1
246
2019-07-30T19:51:45.497
api_errors
softwareengineering.stackexchange.com
10,603
Nginx unable to get SSL cert to work
I'm trying to get a kubernetes cluster using the nginx ingress controller and cert manager to get an SSL cert from lets encrypt. Currently is appears the cert has been issued however I am unable to get it to load properly inside Chrome or via curl. Below are some config files that show the current config and following ...
Issue ended up being that I was creating a self signed cert because I was using the wrong issuer. I had an issue before with the dev.yaml file but never updated for this new ENV.
1
1
147
2020-01-26T22:02:05.050
api_errors
devops.stackexchange.com
460,931
Verify if the files can be unzipped successfully from 7Zip archive
We want to 7zip many database files (mysql, Oracle, and SQL Server dumps), various standard files (excel, word, etc), but we are afraid that once we 7Zip them and delete the originals it can happen that archive is corrupted or it has some error and the files will be lost. Is there a way that once you 7zip something you...
You can use 7zip to do this. Either right click and select Test Archive from the 7-Zip context menu or you can use the command line [CODE] etc You get output like this from the command line [CODE]
6
9
11,497
2012-12-26T09:58:45.087
hadoop_errors
serverfault.com
107,750
Bold text detection
I am currently working on a project where I need to detect bold text on a multi font-size image (so no mathematic morphology possible). This detection will be used in parallel of an OCR system (with tesseract) to detect which information (in bold) are important in a document. I already tested the wordFontAttribute() fu...
There is no global solution for bold text detection, it depends on the document. I tested most of the articles except one article that is based on stroke of every character, you can find it in "Script Independent Detection of Bold Words in Multi Font-size Documents" mentioned by the author. I can send you the implement...
0
1
727
2022-02-02T09:09:12.690
data_quality
datascience.stackexchange.com
555,694
replica between dc failed
I have 2 dc windows 2003: one is the master and it is called dc, the other is called fs and it is not synchronized with the master. On the fs server I stopped the service netlogon because I have had problems with the user's logon. The ad db is too old. On fs there are some events with the following ID: 13508 (replica f...
You can force AD replication between domain controllers applying following procedure from TechNet Force Replication Between Domain Controllers Nevertheless I would like to ask you what do you mean when you say " ... called fs and it is not synchronized with the master " If you have an Active Directory with 2 domain con...
0
0
196
2013-11-18T11:52:42.943
database_errors
serverfault.com
726,508
Redmine: Unable to get gmail email notification to work
I've recently installed Redmine in an Amazon EC2 instance and it seems to be working fine, however, I can't figure out how to set email notifications. Redmine documentation is pretty outdated and I've already tried a lot of alternatives. Take into account that I'm not a RoR programmer. This is my configuration.yml file...
Try to remove the [CODE] part of your configuration, restart your Redmine server if you are running it standalone and check if it works.
1
3
301
2015-10-03T16:15:30.050
infrastructure
serverfault.com
665,261
Apache2 Serverload / CPU increase from 1% up to 90% - How to debug?
I´m using: Google Cloud Compute Engine Linux Debian + Apache2 Google Cloud SQL Wordpress Yesterday my CPU started increasing from 1-5% to 80-90%. I was developing on a wordpress site as it happened, but that could cause the failure. I had the same thing a couple of days ago, so I finally stopped the VM-Instance, cloned...
I'm not 100% sure of your issue. You stated that the snapshot occurs at the time of the spikes, so it seems that you have your culprit. If this is a VM snapshot then you are going to see the host CPU usage spike as snapshots do take some time to complete, and depending on your resources available on the host, this will...
0
1
489
2015-02-05T13:41:35.313
infrastructure
serverfault.com
760,821
Address already in use... could not bind to address... no listening sockets available
I am using this server as a staging area and plan to access it via its ip addy, not a domain name. When attempting to start apache, I get the following error: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available If i was suspicious of a setting, I did sever...
Do not use when defining your virtual hosts, as it can cause issues from my experience. [CODE] would fix your issue.
0
0
3,357
2016-03-01T20:25:00.217
infrastructure
serverfault.com
305,055
How to cast values to a variable type
I'm doing a bulk update statement and trying to cast values to the type of the column they're being set to. I won't have access to the column datatypes in the context where I'm generating the queries, without making a separate call to the database first. Here's a minimal table: [CODE] I can do insert statements without...
It took awhile to track down, but I found a handful of solutions on this SE post . My answer here is using Erwin Brandstetter's solution #5. [CODE] It works by casting nulls to the type of the row, subsetting them by the columns you want, and coercing this typed value tuple with your value tuples. The null row is ignor...
0
1
1,114
2021-12-16T17:29:45.313
warehouse_errors
dba.stackexchange.com
303,713
Restoring SQL Server DB trans log files error
I am getting error when restoring DB trans log files. Running [CODE] is returning a message The backup set on file 1 is valid However when running [CODE] I get error The log scan number (yyyyyyyyyyyy) passed to log scan in database '[db_name]' is not valid. This error may indicate data corruption or that the log file (...
first question error message suggest 2 causes either database corruption, have you run dbcc checkdb ? or that the log file does not match the data file (transaction log backup from wrong db?). From what I can see this error occurred during a transaction log restore not during replication so you can ignore that part of ...
0
0
604
2021-12-08T16:41:37.527
database_errors
dba.stackexchange.com
259,506
Postgresql - join most recent row
I have a query: [CODE] If author has more than one Movie it lists this Author duplicated rows instead of listing only once with most recent movie (not as many times as there are this authors movies) I tried to add [CODE] but this not change anything. How to refactor this query to return proper results?
You can use a derived table that picks the latest movie, then join to that: [CODE] I also simplified the expression for the [CODE] column and the conditional counting.
0
1
1,415
2020-02-12T12:04:11.590
data_quality
dba.stackexchange.com
820,828
Apache Access log recieved request time issue
Please see the strange situation with received request time in the Apache(2.4.7) access log in Ubuntu 14.04: [CODE] Any ideas why the time isn't arranged ascending? Is this an Apache issue or something wrong with my server or no need to worry about this? What else I need to check on the server?
The time recorded in the log is the time the request was initially received. However, the log entry is not actually written until the request is completed. Thus, requests can appear out of sequence, when some requests take more time to complete.
0
1
127
2016-12-15T08:26:55.320
infrastructure
serverfault.com
114,349
Minimum configurations for mongodb replica set though a java program
I'm new to morphia. I'm using morphia and mongo-java-driver.jar to talk with replicaset(I need for cluster also) through a java program. I'm new to morphia. Wrote a sample program code is below [CODE] If I want to write data safely in all nodes what are steps need to do. What are the minimum configurations that I need ...
Misconceptions "It is the best way to ensure data integrity to have MongoDB write to all nodes." This is entirely wrong. Let's assume you have three members in a replica set. Well, you want the data written to all nodes, so you set your write concern to 3. Now, one of your nodes fails. And while your replica set would ...
0
1
939
2015-09-07T11:02:00.937
database_errors
dba.stackexchange.com
119,004
How to Properly shutdown and disassemble SQL Database Replication
While testing SQL Server Replication we setup Replication on our ERP Test DB from SQL Server Enterprise to SQL Server Standard. We have since got replication up-and-running on our Live database and we no longer need replication on the Test database... We would like to PROPERLY remove the replication to free up resource...
To properly clean up replication, follow below steps : Open SSMS --> Local Publications --> Expand Publication --> Use [CODE] to remove replication bit set on database. Another Method is script our the DROP or disable the components by right click on publication and then run that script using SSMS.
1
1
415
2015-10-23T14:34:32.253
database_errors
dba.stackexchange.com
161,153
Cisco ASA WebVPN RDP Plugin Fullscreen
I am using a ASA5520 with 8.2.2(ED) Image and the RDP Java Plugin for Termialserver connections. The version of the Plugin is 1.1.1. "rdp-plugin.090915.jar" and "rdp2-plugin.090211.jar" everything is working fine, except the fact that clients are not able to do fullscreen. I already tried different combinations of book...
I have it working but only if the used client is the RDP one launched by Active X and not the Java One - i.e you used WebVPN from Internet Explorer and have security settings allowing Active X I guess it doesn't affect Java version, I never get it working when Java client loads.
0
2
6,539
2010-07-16T15:31:08.677
infrastructure
serverfault.com
1,118,606
Network profile is public unless domain controller is in hosts file
This one has been puzzling me for months now. I have computers on one network say 10.1.0.0 And my domain controller is on 10.2.0.0 At the moment i can join host machines on 10.1.0.0 so long as i modify the the hosts file (for those who might be having similar issues, and need a working solution, the host file is locate...
You should not need to edit the hosts file. Joining a Windows Domain requires two fundamental things: Network connectivity to the Domain Controller (DC) DNS Resolution provided by the DC If you can ping the DC by IP address from the computer you plan on joining to the Windows Domain, then you need to specify the IP add...
0
1
580
2022-12-21T20:41:21.703
infrastructure
serverfault.com
355,749
Adding Drupal to my server means it now has performance problems
I have a vb 3.8.4 forum and a drupal pressflow 6.22 site on together on my hosting server When i added the drupal site to the server I had a lot of performance problems in the server And sometimes it made the server go down Here is the host server specifications : Operating system CentOS Linux 5.5 Webmin version 1.560 ...
You have a 3.5 GB memory limit ( [CODE] ), and are potentially starting 256 servers ( [CODE] ). This brings your total potential memory consumption to just under 900 GB. Unless you have that much RAM in the box, chances are good you're swapping, and that's what's causing your performance degradation. You need to drasti...
2
4
338
2012-02-01T11:41:34.247
database_errors
serverfault.com
271,505
Linux EC2 Instance Security Consideration
Possible Duplicate: Linux EC2 Instance Security Consideration I am going to host a web site in Amazon EC2 instance which would be a Linux instance. My web application will be developed using PHP, Apache and MySql. As I am new to Linux and Amazon EC2 environment, what are key areas in security should I consider to prote...
The NSA released a guide on how you should secure servers today. It's written for RHEL5 but useful for other distro's as well. Some of the things you really want to do: Lock down SSH (Key-authentication, change port) Update everything, all the time Firewall! (Iptables and/or build-in EC2-firewall) Use SELinux or AppArm...
1
1
111
2011-01-10T21:23:37.990
database_errors
serverfault.com
205,167
802.1x or mac port security on SAN switches
I'm going through DISA security hardening on our network devices. Our iSCSI SAN network uses 2 Cisco 2960G layer 2 switches. The SAN consists of 2 HP P4000 devices. Servers are 3 Dell R710s in a Hyper-V cluster. DISA has a rule about enabling port security or 802.1x but will that mess up multi-path IO or NIC teaming? E...
Port security should not be a problem, assuming that the connection layout remains static. I'm not sure if there are any iSCSI SANs that even support 802.1x, so that may be a non-starter. Just make sure all the unused ports on the SAN switches are shut and moved to an unused VLAN and port security sticky is set on the ...
3
1
553
2010-11-23T15:09:49.260
infrastructure
serverfault.com
682,553
Systemd: start a unit after another unit REALLY starts
In my particular case I want to start [CODE] unit after all [CODE] completely starts. My systemd files: [CODE] target: [CODE] [CODE] target: [CODE] OK, all Gluster daemons start successful and I want to mount Gluster filesystem via NFS, but Gluster's NFS share gets ready not immediately after [CODE] started, but a few ...
You can analyze systemd boot sequence by following command. View the output file by using a SVG supporting web browser. [CODE] That plotting will provide you last boot's timing statistics, which will provide you more clarified point of view to problem. I solved my NFS mounting problem by adding [CODE] commands in to [C...
22
5
10,491
2015-04-14T10:03:22.767
infrastructure
serverfault.com
183,377
How to execute stored procedure with output parameter in Oracle PL/SQL?
This is the table I have created: [CODE] This is the sequence I have created: [CODE] Then I tried creating a simple stored procedure with output parameter: [CODE] But I'm getting a compilation error. Where can be the mistake possibly be ?
There are several mistakes. 1. When specifying parameters of procedure, you don't need to specify size. E.g. it should be [CODE] , not [CODE] 2. You created sequence [CODE] , but trying to use sequence with different name [CODE] ( toy_seq vs seq_toy ) 3. Parameter name is the same as field name (Toy_Name). Even though ...
6
4
89,502
2017-08-13T15:26:03.663
database_errors
dba.stackexchange.com
162,642
Update Table contents from another table
I want to update the products table from my store db from a temp table.. the production table 'Products' needs to update all columns from the temp table 'tmpprod' based on StockCode and not change any other columns in the Products table [CODE] and... [CODE] and... [CODE]
InnoDB really needs a [CODE] on each table. You must add it to the real table; it is less important for the temp table. Don't blindly use [CODE] for every column; use things like [CODE] or [CODE] . The codes and skus probably have known max length. Names rarely get over [CODE] . Etc. Use [CODE] only for really long str...
0
0
394
2017-01-30T14:52:12.313
warehouse_errors
dba.stackexchange.com
110,853
how to open port 53 for bind
how to open port 53 for bind on debian server? [xxx.xxx.xxx.xxx] 53 (domain) : Connection refused
"Connection refused" generally means that your connection attempt got through to the remote server--in other words, it wasn't blocked by a firewall--but the remote server doesn't have anything listening for connections on that port. If you have command-line access on the remote host, you can use netstat to make sure it...
4
0
35,642
2010-02-08T20:34:30.690
api_errors
serverfault.com
194,515
Domain computer on the network but can't see its own domain
I have one computer that is acting very strangly when working with the domain. I have removed and rejoined this computer to the domain and it found and connected to the domain just fine. but it is unable to see the domain after joining. I am able to do an nslookup on the domain and the correct server responds but the c...
Finally just ended up replacing the computer and reimaging it.
0
0
13,951
2010-10-25T13:54:47.050
infrastructure
serverfault.com
1,042,122
2 VMDK's for ESXi 6.7U2 Windows Server 2019 VM
I am running ESXi 6.7 U2 with a Windows Server 2019 VM. In my Datastore I have 2 100GB VMDKs, both of which are currently mounted in the VM. If I remove one, the OS will not start, doesn't matter which one I remove. The problem I am having is; I did not create that second harddrive that is attached. Unsure how it was c...
Sorry for the delay in responding to any requests and so on. Thank you everyone for the responses. I worked out the issue, unsure if this was a mistake on my part, however I created a VM with the same name as the original VM (Which was a Ubuntu VM). However I believe I neglected to delete the original file(s), which me...
1
0
264
2020-11-11T04:28:59.900
infrastructure
serverfault.com
358,483
Help With Memory Mapped I/O and Hardware Interrupts for Virtual Machine
I've been working on a 24-bit virtual machine to help me learn more about computers and programming in general and was hoping to find a bit more information on memory mapped input/output and hardware interrupts. At the moment I have most of the opcodes implemented and about have of them implementated in an assembler. A...
The part I'm not sure about is exactly how interrupts work and how I can have my processor jump in the middle of an instruction to deal with an interrupt. The basic idea you already have is that the processor performs this jump. Modern processors will usually change the permission level but this is/was not always the c...
-1
4
393
2017-10-02T20:55:18.517
api_errors
softwareengineering.stackexchange.com
488,565
Adding second WS2012 Domain Controller, First WS2012 DC's DNS not updated
Here is a rough outline of my network DC1 ----> Firewall1 ---> VPN ---> WAN [CODE] Both are connected through two Endian firewalls that have a GW-to-GW VPN enabled. All ports are open and can browse \192.168.0.1\SYSVOL and \192.168.2.1\SYSVOL from both. DC1's DNS [Apollo DNS] https://i.stack.imgur.com/FV6Ea.png DC2's D...
The VPN is the issue in this situation. Some of the routing is not being done properly from DC2 to DC1. I am going to close this question.
0
1
404
2013-03-17T07:26:54.070
database_errors
serverfault.com
286,598
Is "lazy loading" factories in AngularJS using this $q.defer method good practice
I guess I don't believe in myself as a good programmer but I found out this method on my own (not suggestion I'm the first one to do it, but I didn't follow a guide) so it must be broken somehow. $q is mainly a callback kind of service for async reasons, but it served me in another way as well. I might have multiple ca...
Returning the same promise from a call multiple times for caching reasons is absolutely fine. No race condition that I can think of, and I've used that technique with no issue. The only small issue with you code is that's it's unnecessary to create the deferred object. [CODE] returns a promise that can resolve to the v...
1
1
1,825
2015-06-12T14:20:13.893
api_errors
softwareengineering.stackexchange.com
156,689
Improve CPU consumption of query
I'm researching why the following query consumes a lot of CPU. Please chime in and suggest any improvements/recommendations that can be made or why this query seems to consume high CPU. Or if there is anything structurally wrong in the query design. [CODE] This is an external vendor query. I have no authority to make c...
Ordering by this might be slowing it down quite a bit: [CODE] I would change [CODE] to [CODE] to see if that changes the cost. Your join for [CODE] references [CODE] which is hard-coded [CODE] in your [CODE] query. So for each row you are returning from [CODE] you are returning every row from [CODE] without any other c...
2
2
139
2016-11-29T18:08:25.003
database_errors
dba.stackexchange.com
38,683
Mysql performance for a nullable unique id column in a large table that references a record in another table
We have a large table of contacts (8 million records) that we promote to with mailings. When these people register we store them in a different members table. But we want to go back and update the contacts table each day with the members table ID for each conversion. I added a member_id column to the contacts table but...
Perhaps a cross-reference table would be the most prudent way to go. One that has the ID from contacts, and the ID from members. This way you know who has converted, and can keep the table as small as necessary. As an example (I use SQL Server, not MySQL): [CODE] I would insert rows into [CODE] each time a conversion o...
1
1
107
2013-03-27T16:09:32.623
data_quality
dba.stackexchange.com
269,053
Database Tuning Advisor CLI "dta" missing
My Windows workstation can launch the GUI for the Database Engine Tuning Advisor, but the CLI called "dta" is missing. Why? Background The Database Tuning Advisor is a SQL Server tool for suggesting changes to indexing and other things. It can be run two ways: A GUI, and a CLI. The GUI can be launched by searching for ...
DTA used to be a part of SQL Server, but it moved to SSME. During the upgrade from SQL Server 2014 to SQL server 2017, two things happened: SQL Server 2014 DTA.EXE was left behind SSMS 18 did not add the directory containing DTA.EXE to the path Therefore, dta.exe was brining up the SQL Server 2014 DTA, which no longer ...
0
1
230
2020-06-12T19:02:54.863
database_errors
dba.stackexchange.com
144,600
Function that returns table with an additional column
I want to write a PostgreSQL function that returns a table, plus an additional column. Is there a way to do this without manually specifying [CODE] ? For example, consider the following function: [CODE] This fails with the error: [CODE] Fair enough, we're including that [CODE] column, which doesn't exist in the [CODE] ...
AIUI, your wish is to shorten the [CODE] clause of the function. Not sure if you want to establish a dependency on the row type of the table at the same time, but that would make sense here, too. The form [CODE] [CODE] relies on the used type to be stored in the system catalogs. The manual: The return type can be a bas...
6
3
5,729
2016-07-21T20:16:29.303
database_errors
dba.stackexchange.com
547,074
Gathering buslogic SCSI hardware and virtual machine operating system
I'm trying to use Powershell to get SCSI hardware from several virtual servers and get the operating system of each specific server. I've managed to get the specific SCSI hardware that I want to find with my code, however I'm unable to figure out how to properly get the operating system of each of the servers. Also, I'...
You were sort of on the right track until that last line, which is where it all goes wrong. Keep in mind that [CODE] dynamically changes value, whereas [CODE] keeps the same value that it got on line 3. Also, you're not really taking advantage of pipelining -- e.g. this: [CODE] does the same thing as this: [CODE] I thi...
1
1
840
2013-10-18T18:10:58.640
infrastructure
serverfault.com
25,573
Exploration vs exploitation tradeoff to find a price that maximizes revenue
Is there a practical strategy that can learn to price a product optimally? Right now I have the following arbitrary hill-climbing algorithm: Run an experiment at starting price [CODE] and gather 500 data points (e.x. 20 buy and 480 not buy). Run a t-test on what confidence level [CODE] yields higher revenue per visitor...
Without making any underlying assumptions you will not get anywhere. That said, there are multi-arm bandit strategies that try to optimize the rewards, there is a ton of research on this field. It comes down to sampling from a distribution of your options (in your case two) and adapting this distribution based on the r...
4
7
141
2017-12-11T19:45:00.323
api_errors
datascience.stackexchange.com
474,397
Active Directory: how to determine all possible email addresses for a user?
I am a developer with minimal knowledge of Active Directory, and am working on a system that needs to sync users with AD. I am initially given a list of users' email addresses from a client (e.g. bob@comp.com...), and need to match the given addresses with those that I pull from AD, which may have a different suffix (e...
If you're able to talk to AD with LDAP utilities, it should be pretty easy given a list of emails. I use a similar command to build a list of every email address we're willing to accept delivery for so it can be pushed out to our Postfix mail gateways. If you worked for the Patriots, and only knew Tom Brady's email add...
0
1
1,006
2013-01-31T23:19:07.680
infrastructure
serverfault.com
1,087,906
Changing RAID1 HDDs (Dell PowerEdge R430) to another identical server
I'm new with server configuration and infrastructure. If I have two identical servers (PowerEdge R430), one for spare without HDDs (call it S1), and another online with the HDDs (S2). If I remove the HDDs from S2 and place it on S1, will it work without the need to configure? I've tried clonning one HDD (with macrium r...
Most Dell RAID controllers (PERC) allow importing an array from the disks: shut down source server, move disks over to destination server (in same cage order), power up server, import disks, boot. Also, depending on the OS setup (e.g. UEFI secure boot), manual selection of the boot volume may be required. Both servers ...
0
0
198
2021-12-21T13:50:06.533
database_errors
serverfault.com
727,786
ProLiant DL360p Gen8 and ProLiant DL360p Gen9 and ProLiant DL360p Gen7 servers vulnerability of ILO
Qualys scan reported the following vulnerability on all the ILOs of ProLiant DL360p server which we are using.Vulnerability is "IPMI 2.0 RAKP Authentication Remote Password Hash Retrieval Vulnerability" with CVV score CVE-2013-4786, CVE-2013-4037 .Can you please some one help me on fix for this issue. Can any one pleas...
IPMI is an out of band management technology. It is used to have access to the server remotely without having an OS installed or even when the server is powered off but plugged on the power. Via IPMI you could have access to power on and off the server, hardware sensors, to serial console and to KVM over IP. You can fo...
2
2
2,724
2015-10-09T05:00:15.700
api_errors
serverfault.com
154,070
Poor usage of timestamp index
with a small table (about 2 M of rows, 5 classic columns, id, description, title, created_at, coordinates (point)) doing a WHERE created_at BETWEEN ... AND ... ORDER BY created_at LIMIT 50 is very very slow (about 15 seconds) [CODE] is [CODE] with index. But when I use EXPLAIN, the column filtered shows 10, which is ba...
The [CODE] is about as good as it will get. "Range" is good for the [CODE] . The [CODE] , though not mentioned, should be handled as well. And it should stop at 50 (again, no clue in [CODE] ). [CODE] percent of the table is an estimate based on virtually no information; ignore it. "5.7 clustered" is a contradiction. Do...
2
1
1,918
2016-11-02T18:07:55.480
database_errors
dba.stackexchange.com
287,463
How does recovery work when server is shutdown before a checkpoint?
So for any query that makes changes to data: SQL Server pulls the page from disk into memory if it doesn't already exist in memory. Lock the page/row and make the data changes. Writes the changed to the log in memory. Release the page/row lock. Send acknowledgement to user Then, whenever there is a checkpoint: Write th...
In full durability, the default, the commit completes only when the data is physically written to the log file - it's only data pages that are later written to disk on checkpoint by the lazy writer. There's a per-database setting called [CODE] that can override and allow the transaction to be committed but only written...
1
4
251
2021-03-21T19:06:40.123
database_errors
dba.stackexchange.com
248,315
trigger and dblink
im working on a trigger in PL/TCL that inserts data into tableB on databaseB upon insertion on tableA from databaseA. both databases are on the same server. i came up with this: [CODE] but when i try: [CODE] i get: ERROR: column "apple" does not exist if i try instead: [CODE] its successful Any ideas on the reason?
You need to include the quotes on the value for the name column in the query you're constructing. You'll need: [CODE] Where [CODE] within the string becomes [CODE] , then you concatenate [CODE] , so the end result becomes [CODE] instead of [CODE]
1
1
3,361
2011-03-16T21:05:06.493
database_errors
serverfault.com
841,612
Can't telnet a server from vps
i try to understand why i can't telnet this server 213.132.48.107 from any of my VPSs. Well this ip is for a mail server i don't own but our emails are not received by this server. when i checked the log i saw this error: [CODE] I thought i'm in black list so i tried to telnet to that server from all my VPSs (7 VPSs) a...
The server is configured not to accept connections from your ip. Obviously, it blocks them even before [CODE] . You may check your VPS ip against some blacklists . If it's listed, try to get it unlisted. If it is not listed, you may need to contact the mail server admin, why you cannot send mail to this server or if it...
-3
0
843
2017-03-30T16:43:16.597
infrastructure
serverfault.com
55,308
Problem while adding a route to F5 BigIp version 9
I want to add a route for outbound traffic from BigIp v9. I have WANem machine configured which simulates the network traffic and want to add this as a router between BigIp9 virtual server and Client. This WANem is running on Knoppix 5. I have tried below ways to add: Adding route by BigIp GUI from menu Netwok -> Route...
There may be a few things going on here, and the answer depends upon what you're trying to accomplish. For a flow like this: [CODE] The BigIP itself actually doesn't need a route at all: it has a feature called 'auto lasthop', which simply means it keeps track of the last MAC address that sent the flow to the Virtual S...
1
0
1,350
2009-08-18T01:30:21.717
infrastructure
serverfault.com
39,549
Prediction on timeseries data using tensorflow
I have an input and output of below format: [CODE] It's timeseries data. The task is to predict the next number. Basically, the input was crafted by the below snippet: [CODE] Now, I would like to train the model on the input and predict the next number. For instance, [CODE] and the predicted output would be [CODE] . I ...
The error is caused by this line: [CODE] This happens because the tensor [CODE] also depends on the placeholders [CODE] and [CODE] . One way to fix this would be to change the training loop to be: [CODE] Also you will need to switch [CODE] back to [CODE] since [CODE] is not compatible with int and float. The data will ...
2
2
433
2018-10-11T18:38:25.537
data_quality
datascience.stackexchange.com
406,829
Monitoring MySQL replication through HAProxy Xinetd service
I have have set up MySQL multi-master replication with HAProxy as a load balancer following Alex Williams' tutorial found here; http://www.alexwilliams.ca/blog/2009/08/10/using-haproxy-for-mysql-failover-and-redundancy/ I am using a status checker found here; http://sysbible.org/2008/12/04/having-haproxy-check-mysql-st...
Your replication script run by xinetd should return HTTP 200 or 503, so HAProxy can detect the health of MySQL replication.
1
1
1,732
2012-07-11T16:08:34.663
database_errors
serverfault.com
316,897
Is there a way to tell Postgres to automatically give up on a plan and consider alternatives after exceeding estimated cost
There seems to be a few situations in which Postgres considers an "on average slightly better" plan over a "more predictable plan" The failure mode of which can be the following: [CODE] (assuming a large enough table (~1M rows), indexes on number and filter separately) If the filter is "not very selective" (10k, 1% of ...
No. It would take a tremendous amount of machinery to be in place to do this, and just making the plan estimates better in the first place would probably be vastly easier than adding all that alternative-execution machinery. Also, plan estimates are not even calibrated to time, they are just in arbitrary units, so it w...
1
1
135
2022-09-14T18:24:49.530
database_errors
dba.stackexchange.com
868,828
Create custom mailboxes with dovecot
I'm trying to setup dovecot + sieve plugin. I'm suing the Maildir format. I use Thunderbird to read the emails so i don't need a webmail on my server. The basic config works fine but now I want to add some rules in sieve to redirect some mails, like this one for example : [CODE] But sieve can't find the "Test" dir so i...
Use the [CODE] parameter of the [CODE] sieve capability (don't forget to [CODE] it!): [CODE]
1
3
2,937
2017-08-15T21:51:20.687
infrastructure
serverfault.com
458,404
Dynamic Virtual Hosts In Apache with www and non-www subdomains
I don't know apache very well and I've got a problem with configure [CODE] This is my httpd.conf file: [CODE] Subdomains work fine without www. but I need to make them work with www too. Here's an example: [CODE] What should I do?
[CODE] is looking at the first part of the name - so for [CODE] it's using [CODE] , and for [CODE] it's using [CODE] , which won't work very well. A couple different options: Get it to use [CODE] as the directory it's looking for in both cases; instead of the first part of the name, look at the third-to-last: [CODE] Sw...
4
0
534
2012-12-15T19:44:26.577
infrastructure
serverfault.com
19,119
Quantifying the Reproducibility of LDA Models
I am working on a text mining project where I'm using Latent Dirichlet Allocation to study a corpus of documents. I'm currently in the process of optimizing my parameters to get the best models for my client. My biggest concern at this point is whether my models are reproducible or not. I understand that LDA models are...
As you already noticed, Topic Models aren't reproducible due to the probabilistic algorithm. I did some topic models on a large corpus (10k documents, 30M words), and generally, between two different topic models about 10% of the topics were incomparable. My corpus is mainly English, but contains some Latin texts, and ...
0
1
354
2017-05-22T17:26:48.557
data_quality
datascience.stackexchange.com
403,955
Using PostgreSQL MD5 hash to calculate a 64 bit hash value for advisory lock functions?
I have a particular problem addressing the PostgreSQL advisory locking functions using the [CODE] variants. Basically I want to create a 64 bit [CODE] value from a [CODE] type obtained with the PostgreSQL [CODE] function from an arbitrary [CODE] input. The idea is to emulate / simulate a table row lock behavior 1 , whe...
That's a good approach. [CODE] (Whether you use a transaction or session-level lock depends on how it's invoked.) It's unfortunate that PostgreSQL lacks a better hexadecimal or byte conversion to bigint, but performance-wise, the overall calculation is extremely fast and will not be the bottleneck. P.S. While I think y...
5
0
2,127
2020-01-17T20:23:15.550
database_errors
softwareengineering.stackexchange.com
157,491
How to set JBOSS/JDBSC to cach the MySQL server settings?
Is it possible to set JBOSS/JDBC's MySQL connector to cache the server's settings so that I won't get a big bunch of "show variables" connection all the time? I think there is a similar settings under Glassfish called CacheServerConfiguration but I was not able to find more information about that under JBOSS. Does anyo...
Got it. All I had to do was to append that to the jdbc URL like this. jdbc:mysql://localhost:3306/database_name?cacheServerConfiguration=true More information is available here: http://www.yaldex.com/mysql_manual/ch23s04.html
0
0
165
2010-07-05T02:53:33.077
database_errors
serverfault.com
1,005,166
RewriteRule not working in root. Only in current folder
I have read articles for a couple hours now but since there is no console output to debug htaccess files I have reached total frustration. Ugly folder structure: [CODE] Desired folder structure: [CODE] My numeric .htaccess only works if I place them in directories estimate, proposal, contract & invoice . Example: [CODE...
Try the following in the [CODE] file instead: [CODE] The "numeric" rule must be before the "string" rule to avoid conflicting. The "string" rule would otherwise win every time with the current regex. The first [CODE] subpattern in each rule captures the subdirectory ( [CODE] , [CODE] , etc.). You don't seem to need to ...
1
2
132
2020-03-01T07:59:53.527
infrastructure
serverfault.com
926,717
TCP passthrough for HTTP connection with haproxy
I have done passthrough for HTTPS/SSL connections using SNI, but Id don't know if I can do the same for HTTP using host header? is there any way I can use passthrough (tcp mode) in stead of reverse-proxy (http mode) for http connections?
Yes, simply create a TCP listener forwarding to your servers. Of course in that case it becomes a layer 4 load balancer and you will not be able to use any layer 7 functions like path and host based routing. Also make sure to use stickiness if your servers cannot share session information. [CODE] For SSL, just use 443.
0
2
4,296
2018-08-16T15:22:14.350
infrastructure
serverfault.com
221,175
How do I find the query parameters for a prepared statement in an oracle .trc file?
I have an oracle query generating a 3137 error, and the trace file contains the query. For example: [CODE] I think it would help to isolate the problem if I could determine the specific value of :1, however the 4.7M file doesn't seem to offer that information. Is this information stored in the trc file? This is oracle ...
Not sure if the .trc file described here is made the same way yours was, but this might help you. Essentially, somewhere in there, there should be a section of Binds which shows which values were bound to that :1 variable. The article doesn't do a good job of explaining how to tell which binds went to which queries sin...
2
1
2,201
2011-01-11T16:48:17.357
database_errors
serverfault.com
210,229
Get data from multiple databases at once
I need to [CODE] data from tables with the same name in multiple databases. All databases have the same prefix: [CODE] (NAME OF DB) How would I execute this query against more than one database at at time? [CODE] Can this be done with [CODE] or [CODE] ? -- Edit Now I can see my mistake. I have got 46 Databases with pre...
No need to use cursor or undocumented methods. You can just use dynamic tsql. [CODE]
1
1
3,965
2018-06-21T09:51:12.600
warehouse_errors
dba.stackexchange.com
637,792
vCPU performance between 1 or 2 vCPU's
Within virtualisation (Predominantly VMware) is there a performance advantage using either 1 CPU with 4 cores or 2 CPU's with 2 cores? Let's assume the application running on a VM can use two CPU's.
Not considerable enough to make an impact. The adjustments are more for licensing. For example, Windows Server is licensed per processor slot, so you'd pay more to have 1 core and 4 CPUs than to have 1 CPU and 4 cores. Same goes with other products whose costs quickly rise with more processors (looking at you, Oracle).
7
9
11,258
2014-10-17T13:39:43.713
infrastructure
serverfault.com
412,022
Why is global state not considered as an example of dependency injection?
According to Why is Global State so Evil? , as I understand, global state is bad and I should use dependency injection instead. That means, for example, a mobile app that use bundles of app level data as follow: [CODE] is an bad example and need to be fixed to use dependency injection. However, as far as I know and acc...
What you're describing is a Service Locator, not Global State The pattern you're describing in your code is often called the " Service Locator " pattern, and is a subset of dependency injection, one that is often maligned for various reasons. You're accessing it via a global, static variable (which is a problem in itse...
4
4
1,027
2020-06-26T08:53:27.567
api_errors
softwareengineering.stackexchange.com
342,956
Using a relational and a non-relational database in the same project?
I ran into a problem on the project I'm working on right now. It is basically an app that stores a path based on GPS coordinates. The app runs on android an saves the GPS location every second and then sends it to on API. I think if I insert a record for every location saved there will be to many records in the table v...
For example if I go on a run three times a week for 1 hour there will be 10'800 new records per week, now imagine this with 1000 active users for a year. Well, let's not imagine , but actually estimate the data growth. Imagine each GPS coordinate is stored in two 32-bits variables (largely enough; probably you don't ne...
3
8
1,671
2017-02-25T10:10:07.783
database_errors
softwareengineering.stackexchange.com
383,193
Setting up a simple domain for testing without disturbing my regular workgroup based LAN
I would appreciate it so much if someone could guide me through setting up a small domain with windows 2003. My regular lan uses a router to issue ip addresses to a few pcs. The router's ip address is 192.168.2.1, and the router issues ip addresses like 192.168.2.5 to the various pcs. I would like to set up a win2k3 do...
The gateway needs to be on the same subnet. Why not just grab a cheap Linksys or D-Link router, plug it's Internet port (or WAN port) into your real office network switch and setup your test network behind this new network? By default, your typical home router will be set to use DHCP or "Automatic" on the WAN/Internet ...
0
2
400
2012-04-25T22:50:24.133
infrastructure
serverfault.com
345,909
Multi-homed NIC still automatically registering addresses in DNS after unchecking option
I have a Windows Server 2008 box that has one NIC. I have two IP's assigned to that NIC manually. I have gone to [CODE] and opened the Advanced IP Configuration -> DNS menu and unchecked "Register this connection's addresses in DNS." Despite my efforts Windows is intent on disobeying and every night at 12 it re-registe...
We had the same problem, and eventually opened a call with MS Premier support to get an answer. The "solution" is described here. http://support.microsoft.com/kb/975808 After you apply the hotfix, you can run [CODE] to disable DNS registration for specific adapters: [CODE] Trick to remember: After you have used NETSH t...
1
1
595
2012-01-02T16:04:15.603
infrastructure
serverfault.com
299,961
Is it possible to set a role privileges by postgres user?
We are using a remote connection by postgres user to set the PostgreSQL DB in RDS on AWS. There is an [CODE] user with [CODE] role in the DB. If use it in the same AWS account to set default table privileges to the another rule [CODE] , it's possible. After it, if [CODE] role create new tables in the future, [CODE] wit...
The name 'postgres' has no inherent special powers. It is common (and often the default for own-hosted environments) to name your most powered user that name, but is not mandatory. If you chose some other name, then that other name is what you have to use.
0
1
182
2021-09-22T09:11:12.537
database_errors
dba.stackexchange.com
944,094
Why Domain Admin Cannot Enable Domain Wide Delegation for Service Accounts?
We need to use service accounts for our application instead of individually end users to call some Google Apis such as Admin Directory Api. There are 3 members of this project which are me as owner, our domain admin as service account admin and service account as service account user. Based on my research, we need to e...
There are several types (levels) of G Suite Admin: [Mobile, Services, Help Desk, User Management, Groups, Super] Admin. Notice that there is no [CODE] in that list. You need to make your admin a [CODE] . Double check the permissions that you have applied to your admin in the G Suite Console . To enable G Suite Delegati...
3
1
2,962
2018-12-12T21:10:10.567
infrastructure
serverfault.com
77,069
how to identify why lookup failed in SSIS
i have created an ETL package and having a lookup to match userid in db. i checked in dataviewer what data is going as input to my lookup. the data is correct and the table i used in lookup to match also having data for that input but still i am getting error that no matching records found. example for my schemario: i ...
You should keep in mind that a full cache lookup works in memory and not in SQL server. Thus, collation etc are not considered: spacing and capitalization makes a difference!
-1
1
788
2014-09-19T09:01:13.027
data_quality
dba.stackexchange.com
453,750
SPF record to block other Google Apps accounts
We are having problems with people sending emails from @.com via Google Apps and are looking for a way to block this. Our spf-records allow Googles servers to send mail from our domain as this is how we send mail, so what we really need is a way to say that only our accounts are allowed to send from our domain. Does an...
This isn't possible with SPF. SPF is designed to authorise, or de-authorise a host to send mail; it is assumed that either you control that host and can authorise, or you don't, and therefore shouldn't. That said, using SPF macros it is possible to construct an SPF record that only permits certain sender-parts, includi...
1
0
227
2012-11-30T08:45:28.037
infrastructure
serverfault.com
335,773
Simulating a generic corporate Intranet
Preface: My company hawks a software suite for delivering live and on demand multimedia (video, slides, chat, etc.). We provide the server, client side authoring tool, and client browser players. Many of our our customers are huge corporate behemoths with one thing in common: Complicated Global Intranets. We regularly ...
Sounds like a job for VMs (dun duhhhh....) But seriously, a lot of network equipment (Firewalls, proxys, routers etc.) comes in both a "hardware" and "appliance" version. The appliance versions can be installed on virtual machine servers like VMWare. And with the flexibility of VMs the only harware you would have to al...
1
2
407
2011-11-29T13:01:45.190
api_errors
serverfault.com
820,402
Windows 10, Outbound TCP always on ECN (Explicit Congestion Notification) CE(Congestion experienced) codepoints
I've found something interesting recently while doing some random packet captures. I enabled my Windows's ECN capability years ago while it was on windows 8 that time. I had it updated when windows 10 was available so I am not sure whether it is enabled by default or what. Anyway I am all for ECN, it's a nice feature t...
That's not a bug, that's how ECN works between TCP endpoints. Host A sends a SYN with ECN and CWR flags set to let host B know that it wants to use ECN. If Host B supports ECN, it should SYN-ACK with the ECN bit set. Once ECN has been negotiated, the ECT information can be set in the IP header which is what you are see...
2
2
3,580
2016-12-13T11:42:18.603
infrastructure
serverfault.com
135,854
How to do a database backup in DB2 in Vista?
How to do a database backup in DB2 in Vista? Whenever I issued this command (login in Vista as [CODE] ): [CODE] the command line processor return the following error message: [CODE] So, How can I solve this problem?
You are attempting to run the restore command as user that does not have enough priviledges. Probably easiest solution for you would be to use the SYSADM priviledges. First, check under which account the DB2 services are running. If the answer is SYSTEM, please change that into something sensible (for instance Administ...
0
0
192
2010-04-26T13:51:48.757
database_errors
serverfault.com
229,875
Install mod_perl2 on Apache 2.2.14 (Ubuntu10.04)
I have installed via synaptic package ibapache2-mod-perl2. I tried this line in httpd.conf: " [CODE] " Apache tells me when I reload the server : " [CODE] ". Well ok, but when i try to look in the browser to a repertory i don't have access .Apache send me the error : [CODE] But this should show modperl is installed and...
It looks like your problem is related to user permissions. MAKE SURE that the scripts you are trying to run as CGI scripts are EXECUTABLE by all users or the users which should be executing them ie: [CODE] it's important to realize that the scripts you want to run must have "x" permission bit set - along with "r" (read...
0
1
1,493
2011-02-01T22:03:28.713
infrastructure
serverfault.com
582,378
How to run git as daemon on Solaris (SmartOS)
As stated in subject. I have this script that works fine from command line: [CODE] and this SMF configuration: [CODE] service registers and enables without any errors on command line, but does not run: [CODE] Log file does not reveal much: [CODE] I'm not sure where to go from here. Any help will be appreciated.
OK, so I found a problem in my SMF config XML. If anyone would benefit from this, here's the working solution: /usr/local/bin/start-stop-git.sh [CODE] git-server.xml: [CODE] To install and verify: [CODE] The last command should not print anything if system is healthy.
4
3
472
2014-03-16T02:35:54.577
infrastructure
serverfault.com
57,405
When to use missing data imputation in the data analysis problem?
I want to run statistical analysis of a dataset and build a logistic regression model and multinominal linear model by R according to the research question. But I was wondering which step should I use the missing value imputation to complete the dataset. I have finished the univariate analysis for each variable in the ...
Generally speaking you have two options: impute the missing data discard the missing data Due to the fact that ML models perform better with more data, the former is usually preferred. However, you should keep in mind that the imputed data should not affect the distribution of the feature. This is especially the case w...
6
5
891
2019-08-11T22:39:52.013
data_quality
datascience.stackexchange.com
759,991
How to set VLAN PCP value?
I am using Intel 82599ES 10-Gigabit adapter on a Linux Machine.I have configured Vlan and the priorities on switch. I have read this http://open-lldp.org/dcb_overview . "When DCB is in operation on a network interface, the skb_priority is mapped to the user priority value which becomes the PCP in the VLAN tag." I have ...
The intel ixgbe driver was the problem.Updating it to the latest version solved the problem.
3
2
6,205
2016-02-26T10:12:46.060
infrastructure
serverfault.com
178,329
Amazon RDS Database privileges question
I have created a database and have my username which is part of the rds_superuser group. I granted a friend access to my database and whenever he creates a new table I am unable to view his table and get an access denied error code [42501]. Also, If I try to change any privileges to my user account, I get an error that...
[CODE] is not the same as a PostgreSQL superuser From one of the best blogs on PostgreSQL, 2ndquadrant , Andrew Dunstan writes , The Amazon RDS documentation blithely contains this statement: “When you create a DB instance, the master user system account that you create is assigned to the rds_superuser role. The rds_su...
1
3
2,122
2017-07-08T01:19:13.173
warehouse_errors
dba.stackexchange.com
224,302
ClearOS as domain controller
I'm attempting to use ClearOS as my Domain Controller for a Windows network with no success. When attempting to join the domain I get this fun error: [CODE] But when I do an nslookup on _ldap._tcp.dc._msdcs.su.dc I get the address of the ClearOS box. I'm using WinXP Pro to test with. The domain is su.dc. ClearOS is run...
Doing an nslookup will by default look for A records. The error says that it is looking for an SRV record. You'll need to ensure that all the SRV records are there. If you need domain controllers why not use Windows servers which were made to be domain controllers.
1
6
2,080
2011-01-19T17:35:33.417
infrastructure
serverfault.com