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
97,288
Delete files from disk, with a job, respecting some rules ( SQL Server 2008 )
We have An application that our customers use to download and upload files. I need to delete these files from disk after 30 days, of if it was downloded, in 7 days. How can i Use the script below, in a powershell, to do this task? [CODE] ( i'm not in the server where files are ) Thank you very much. Edit1: I can use th...
Try something like this: -Install SQL 2012 feature pack to get invoke-sqlcmd or change it to use sqlcmd. -You can just pass in the raw TSQL but I would turn it into a stored procedure and just pass that in. Something like: [CODE] This will now create an array with the return item as 1 value. You can now use this array ...
0
1
2,336
2015-04-08T11:48:14.533
database_errors
dba.stackexchange.com
89,211
Find queries performing full scans
I have a monitoring system that is telling me that the Full Scans /sec on one of my servers is rather high. I am trying to determine which queries may be causing the issue. Is there a simple/easy way to determine which queries are performing full scans on the server?
This query will identify Table and Index Scans where no seek predicate is present in the query plan. Keep in mind this query is pretty computationally and I/O heavy, so you should probably not run this on a schedule in production. Also, keep in mind, since this looks at the plan cache, there are a variety of circumstan...
3
3
7,680
2015-01-13T21:00:38.857
pipeline_ops
dba.stackexchange.com
100,798
Overload resolution failed
I am using reporting services to generate a list of families in my database. After the first family member in the list, I want to put the family's address: [CODE] At first, I thought my expression would be: [CODE] This is generating a "Overload resolution failed because no accessible 'IIf' accepts this number of argume...
I needed to include the context: [CODE] "FamilyID" [CODE]
0
0
1,713
2015-05-06T20:03:47.790
warehouse_errors
dba.stackexchange.com
1,064,557
Is there a way to reload new IPSEC certificates without restarting the service and interrupt existing tunnels?
I'm searching for a way to reload new IPSEC certificates without restarting the service and interrupt existing tunnel connections. As part of the activity, I'm replacing certificates (including intermediate ca) and keys. I tried to use [CODE] but seems like it reread only [CODE] , [CODE] and not [CODE] , so it didn't w...
With the deprecated ipsec.conf/starter/stroke config backend , strongSwan will only read certificates from the [CODE] directory if they are referenced in [CODE] sections ( [CODE] ). This being the case, you'll have to reload the connections to load new end-entity certificates. Since using [CODE] isn't recommended (it r...
1
0
2,799
2021-05-24T16:36:05.017
infrastructure
serverfault.com
947,818
GCP Instance Connection Disruption
I am a novice GCP user trying to run 4 scripts in parallel on an a linux instance with 4 CPUs, 4 GPUs, 15 GB RAM, and 30 GB Disk space. However, a few minutes after initializing my scripts, both WinSCP and PuTTY disconnect me from the server and I am unable to reconnect. The instance appears to continue running on GCP ...
It might be OOM Killer killed sshd due to heavy load of your server while running 4 script in parallel. You can monitor your VM load and check whether the time you got kicked form ssh is when the load spike. You could try: Restart the server, reconnect and check the log whether OOM Killer kick in.
1
0
101
2019-01-06T19:38:09.390
infrastructure
serverfault.com
508,863
Can't get php-fpm with Nginx to work
Server: CentOs x86_64 /etc/php-fpm.d/webuser1.conf [CODE] /etc/nginx/conf.d/web1.conf [CODE] In Nginx logs, I have: [CODE] How can I get this to work?
You have placed your [CODE] directives in the wrong places. [CODE] should be defined in the [CODE] block, not in each [CODE] block. This is one of the most common nginx misconfigurations . To resolve the issue, remove all of the [CODE] directives from each [CODE] block, and place the correct [CODE] directive within the...
0
3
1,745
2013-05-18T09:54:20.553
infrastructure
serverfault.com
181,292
What is my best option for email?
I'm building a site and I'd like to use a VPS for a variety of reasons (Scalability, I'd like to run Sphinx for search, etc.). I'm slowly learning how to administer a server by playing with "my pet linux" in a VM on my laptop, so I think I'll be reasonably ok there - at least until I a) fold the site for doing so poorl...
Yes I think Google Apps will do the job. add it to your domain for free and you can use its smtp server in your code and even get the replies and support questions in a comfty gmail interface :)
0
1
320
2010-09-15T08:19:31.127
infrastructure
serverfault.com
890,659
Error deploying neo4j cluster on Kubernetes namespace
I am trying to install neo4j on kubernetes using Helm to a separate namespace and cluster startup is failing with the below error. But the same install into default namespace is working fine. Anyone else experienced same issue? [CODE]
Issue resolved by upgrading the chart to latest.
1
0
325
2018-01-04T09:26:53.397
pipeline_ops
serverfault.com
555,407
Varnish 3.0 Guru Meditation with FetchError TestGunzip error at the very end
I'm getting intermittent guru meditations in varnish (as in I fire 50 requests off and 3 come back bad). In varnishlog it says [CODE] You can see the [CODE] which is the problem. I'm not sure how to interpret the line above [CODE] and I can't see why this is a problem. The site did not have any reported problem loading...
This is the fix [CODE]
2
1
848
2013-11-16T08:35:58.333
infrastructure
serverfault.com
69,153
xgboost classifier predicted negative probabilities
I'm using XGBoost for a binary classification problem. There is no negative label, only 1 and 0. I tunned the hyperparameters using Bayesian optimization then tried to train the final model with the optimized hyperparameters. [CODE] [CODE] [CODE] My problem is that the predicted scores for both train and test sets incl...
You have to set the option objective = binary:logistic to get probabilities between 0 and 1, otherwise you only get relative scores.
1
3
2,973
2020-03-04T16:28:12.623
data_quality
datascience.stackexchange.com
1,051,573
Ceph: is setting lower "size" parameter on a live pool possible?
I have a 5-node Proxmox cluster using Ceph as the primary VM storage backend. The Ceph pool is currently configured with a [CODE] of 5 (1 data replica per OSD per node) and a [CODE] of 1. Due to the high [CODE] setting, much of the available space in the pool is being used to store unnecessary replicas (Proxmox 5-node ...
In an erasure-coded pool you can't reduce the pool's size, this is only possible for replicated pools. Since you mention a min_size 1 you probably have a replicated pool. Can you confirm by adding [CODE] to your question? Mask any sensitive data, if necessary. Changing the pool's size shouldn't be too invasive but of c...
1
2
2,012
2021-01-28T16:54:49.153
infrastructure
serverfault.com
319,733
SQL Server: How to query data between linkedservers, with index visibility to both?
I'm green with linked servers so forgive some of my nomenclature ignorance. But my understanding & experience is that it's far more efficient to query a table on the server itself vs. a remote linked server -- as indexes and statistics can be read. One can leverage 'openquery' when kicking off a query from a different ...
A question that arises with this method is which is faster, to push (INSERT INTO remotetable SELECT FROM localtable) or pull (INSERT INTO localtable SELECT FROM remotetable) the data. This tip will try to answer that question. Compare PUSH vs PULL Data Copy Performance in SQL Server
2
2
607
2022-11-15T21:37:52.257
database_errors
dba.stackexchange.com
295,766
What is wrong in my php-fpm configuration?
I have a 64-bit server but only 256MB of RAM. So, I moved to nginx server with fast-cgi to connect to PHP. I have PHP 5.3.6 running. The issue is that after every two or three days when I try to access any PHP page then I get server internal error. The only way around is to restart php-fpm manually. This means I should...
An off-hand recommendation would be to lower your set values - probably cut them in half. You have: pm.max_children = 10 If you say 35MB/process = 350MB; on a 256MB box that means either a lot of swapping or you run out of memory - neither is good. I'd say take at least 100MB for other processes, maybe even 150MB to be...
8
18
37,255
2011-07-30T07:46:51.010
database_errors
serverfault.com
446,330
Amazon RDS connection issues
It seems that my database instance had a failover in the middle of the night and changed IP address. My webserver connects to it remotely. The IP address, which is found from Amazons DNS service that contains its internal IP, doesn't seem to have updated with that new address. However if I connect from my local machine...
If you run an RDS instance in AWS, you're given an "endpoint" address in the properties for that instance. So in the case of running a Multi-AZ RDS, whenever you have failover the pointer will be shifted to address the failover node in another AZ. However, you won't have to update your applications when they point to t...
1
1
1,259
2012-11-07T15:19:42.333
database_errors
serverfault.com
482,050
cloning windows server 2008 OS drive to smaller drive using Robocopy
I'd like to clone a bootable OS disk using robocopy. The source drive is larger than the destination, but with plenty of free space. Is it possible, and if it is, what do I need to keep in mind to get it to work? So far I've booted to the install disk recovery environment and done a simple robocopy /mir, but I assume I...
Maybe using clonezilla would be easier.
0
1
368
2013-02-24T21:21:10.937
infrastructure
serverfault.com
964,359
ipmitool and freeipmi don't see the same sensors
i have many servers from different manufacturers and have a already working script for hardware health monitoring using freeipmi on Redhat 7.6. Now i have a new HP ProLiant DL560 Gen10 machine where the output of freeipmi looks like this: [CODE] Freeipmi cannot see the status of the power supplies, ipmitool can see it:...
I just found out that [CODE] helps ( [CODE] ). From the man pages: Some sensors may have a sensor reading or sensor event of "N/A" if the information is unavailable. This is typical of a sensor that is not enabled or not owned by a BMC. Please see --bridge-sensors option below to deal with sensors not owned by a BMC
5
2
1,300
2019-04-24T07:57:37.130
airflow_errors
serverfault.com
785,484
Group Policy Objects stopped applying to most security groups
I have a Server 2008 R2 Domain with quite a few Group Policy Objects that should be applied to various OUs and security groups (Using security filtering). I got reports from users that they were missing certain settings and things like mapped drives. When I started investigating the problem, I found that almost every s...
It is an issue with MS16-072. All user GPO's must have at least read permission for Authenticated Users. https://support.microsoft.com/en-us/kb/3163622 MS16-072 changes the security context with which user group policies are retrieved. This by-design behavior change protects customers’ computers from a security vulnera...
0
1
5,823
2016-06-22T08:25:23.810
api_errors
serverfault.com
96,702
How many training data should I use in multilabel classification?
Now I'm using Keras to implement a multi-label classification model. Specifically, I want to classify who present in an audio clip (maximal 8 people). The label of data has 8-bit, for example, [0,1,0,0,1,0,1,1]. It means totally the data should have 2^8=256 combinations. Now I only collected part of the data (3700 samp...
General rule: use all the data you can get, keeping aside a test set and validation set. It is unlikely there is a combinatoric issue as an 8 dimensional output is not large in the context of machine learning. Also, not all of the $2^8$ possible labels may occur, due to correlation or other inter-relationships between ...
0
0
577
2021-06-16T13:04:13.273
data_quality
datascience.stackexchange.com
986,405
Apache .conf file is not being used
I have the following [CODE] file for my project: [CODE] Where I simply want to redirect all requests to non-www HTTPS. It's however not working as there is no effect if I change anything in there, not even the domain. I did the following to replace the default [CODE] file: [CODE] Is there any other config file that I n...
it's listed under [CODE] , I have not included it anywhere, [CODE] includes them by default it seems since I see [CODE] in there "sites-enabled" is not "sites-available"? But ideally this should also be inside a [CODE] container.
0
0
119
2019-10-01T16:49:25.307
infrastructure
serverfault.com
406,840
Separating Plotting and Computation Logic in Scientific Computing MVC App
I’m developing a Matlab GUI for a scientific computing application and need to plot fairly heavy intermediate results. Currently, the computation is represented as a function. The GUI accepts user input and passes it to the computation function, which returns the final data results. Architecturally, the GUI incorporate...
I would go for solution #5 - standard Dependency Injection: Either at construction time (in case the computation is implemented in a class), or when calling the function, the computation logic takes an instance of some interface for reporting intermediate results. That interface needs to contain methods which can be ca...
2
3
119
2020-03-21T21:50:50.780
api_errors
softwareengineering.stackexchange.com
77,320
How do I grant the privilege of connecting to SSIS?
Attempting to run SSIS packages using dtexec.exe, I got this error message: [CODE] Typically for Microsoft, there's no clarification about which help topic has this information. Certainly the [CODE] help does not. Running dtexec from a command prompt launched with admin privileges, or from an application with admin pri...
I eventually found the solution on MSDN . To grant users rights to the Integration Services service: Open Component Services; from a Run dialog, you can enter "dcomcnfg". On the left-hand tree, navigate to Component Services | Computers | My Computer | DCOM Config. Find "Microsoft SQL Server Integration Services 12.0"....
17
19
60,042
2014-09-22T20:28:05.113
warehouse_errors
dba.stackexchange.com
450,523
reset root password in mysql without access to mysql table
Possible Duplicate: reseting mysql root password I am having an issue on OS X 10.7.5 as I used to use MAMP but for .htaccess issues I am now using my own compiled local server from a long time ago, the problem is i forgot the root password for mysql. I have tried updating the password through terminal using mysql -u ro...
Try to find [CODE] and run it. This script will allow you to reset root password among all other things. Possible paths is [CODE] Hope this helps!
1
3
1,144
2012-11-20T10:31:46.730
data_quality
serverfault.com
446,713
Are there any general purpose visual programming "languages"?
Lately I've been surveying the programming language landscape and one of the languages I looked at was Pharo, a modern Smalltalk. Programming using a living system that runs in a virtual machine seems like overkill to me. I also don't like the fact that programs in Smalltalk cannot be fully specified using human-readab...
There's no effective "visual programming language" of a general purpose kind, in exactly the same way as a pictionary does not replace the need for written English. It's sometimes useful to have a diagram to supplement text for explanatory purposes, because humans are capable of interpreting a wide array of graphics an...
0
2
155
2023-07-23T15:27:32.523
api_errors
softwareengineering.stackexchange.com
294,964
Is there a more optimal way to create this view or stored procedure? Currently using a cross apply, but it's slow
I've updated this post with some test data. I'm creating a report for my Movies database where I'd like for the end-user to be able to select movies of a certain genre. However, some movies have multiple genres and I've normalized the database so that a movie line item that had more than one genre turns into multiple l...
Having your split function inside an [CODE] is a bad idea. It potentially could be evaluated over and over, killing performance. You should put those values in a temp table or table variable. Your [CODE] is returning categories other than those you selected because you are building the list, then filter (via the additi...
6
1
444
2021-06-29T01:03:40.383
database_errors
dba.stackexchange.com
695,286
CNAME interfering with MX record?
I have got a free domain at Freenom , which I use to host my website, and to receive email. About a month ago, I used an A record to point [CODE] and [CODE] to the A record of my webhosting. I also had a MX record to my email provider, Zoho mail . Now that I changed webhosting, I only have a CNAME to point my domain to...
The CNAME will override your MX record. I assume you have a CNAME on the root of your domain, i.e. example.com without any 'www' in front. If this is true and you also have the CNAME set on the same address then the CNAME is stopping your mail getting delivered. This can be avoided my setting the CNAME on "www" only an...
-1
4
4,127
2015-05-29T14:16:57.790
data_quality
serverfault.com
638,054
How to set up a DNS authoritative nameserver with just an IP?
I'm looking to set up my first DNS server, after having used registrar or web host provided DNS for years. It's going smoothly for the most part, but I'm having a bit of trouble understanding how to link it up to by registrar. My setup is thus: I have configured the hostname on my server to be [CODE] . BIND is running ...
The parent zone hosts A records for the DNS servers. In this case the parent zone would be [CODE] These A-records are often called "glue records" because while they don't really belong in the parent zone they are necessary to be able to locate the DNS server(s).
1
4
2,377
2014-10-18T21:35:26.450
infrastructure
serverfault.com
598,283
Gmail is Unreachable from Google Compute Engine
I have been getting network is unreachable errors every time i try to use php to mail something out. [CODE] I have tried researching around to see what could the problem be, and it seems that enabling ipv6 would cause some issues. Hence, I have attempted to disable ipv6 on my server by doing the following: I added thes...
On one IPv4 only server I am administrating, I see the same error messages all the time in [CODE] . But the error messages are harmless. Exim realize the address isn't working and switch to using the IPv4 address in less than one second. Did the hosting provider advertise IPv6 support in the first place? If not, you ma...
2
3
4,306
2014-05-24T09:56:31.520
infrastructure
serverfault.com
5,685
GitHub merge access
I am trying to create a GitHub workflow (not GitHub flow), where specific people will have merge only access to a branch in repo. I tried a few things, and I found that I can restrict users to read and write to repo. But read access wont have merge permission, and write will have too much , like committing directly to ...
It’s not clear exactly what level of trust you have towards contributors. You could update your question to explain a bit more about whether people are all on one team or might be strangers. One feature that is likely to help is “branch protection settings” on this protected branches article . You can state that only c...
0
2
541
2018-12-11T15:36:19.850
pipeline_ops
devops.stackexchange.com
318,161
Postgresql doesn't working with Citus and pg_stat_statements at the same time
So, I built the PostgreSQL with citus extension in docker. I use the official documentation in citus, then I run this command in the terminal. [CODE] Then Database successfully building. But I want to create the [CODE] extension. I configuration the [CODE] file. [CODE] Then I restarted the PostgreSQL container. Wrote t...
Both [CODE] and [CODE] should be present in [CODE] : [CODE] Docs
1
1
474
2022-10-13T07:32:22.050
pipeline_ops
dba.stackexchange.com
418,060
Missing nameservers reported by parent
The following error came while i checked my dns configurations.But i havent mentioned this name servers in the doamin nameserver [CODE]
Use this DNS delegation tool to verify what the Internet gets of your zone: http://www.buddyns.com/delegation-lab/globaltechtrain.com It tells you what nameservers your clients receive for your zone at every delegation step, and it shows graphically which entries are inconsistent between the registry and your zone.
0
1
11,318
2012-08-16T04:53:53.973
infrastructure
serverfault.com
234,936
update older records in each group
There is a set of data, like | id | serial | version | is_deleted | -------------------------------------------------- | 10 | AAAAAA | 2019-04-14 15:28:08 | 0 | | 22 | AAAAAA | 2019-03-04 15:28:08 | 0 | | 13 | AAAAAA | 2019-02-10 15:28:08 | 0 | | 40 | BBBBBB | 2019-04-17 15:28:08 | 0 | | 27 | BBBBBB | 2019-02-20 15:28:...
Test table: [CODE] Test data: [CODE] Query: [CODE] Update based on the above CTE : [CODE] I like windowing functions :-) DB Fiddle link
1
1
43
2019-04-16T15:27:26.547
database_errors
dba.stackexchange.com
1,102,091
NGINX double proxy not allowing websocket connections
I have two nginx proxies setup on my machine, one to unwrapp SSL and the other to do application-specific proxying (only the second one is version controlled). When I only had one proxy I was able to make successful websocket connections, but after moving to two all websocket upgrade requests are responded to with a 50...
Of course you should not drop the WebSocket proxying support from any of your intermediate proxy servers. WebSocket proxying is a very special task , to allow protocol switching and keep WebSocket connection established and alive you should return its support to your first nginx proxy as well: [CODE] Removing all the t...
4
5
7,323
2022-05-30T19:00:39.843
api_errors
serverfault.com
198,701
How to make sure a record is only retrieved once
If I have a table called Coupons that contains 10,000 records. How should I design the schema or what query should I use so that my API never gets the same record twice. If I simply ask the DB for last record I think it's possible another instance could ask the DB at the same time for that record. Should I look into re...
I'm assuming this is the following case: You can look up coupon multiple times (example: verifying the coupon exist) Once you use the coupon something the coupon becomes invalid Easiest way is to have two fields called [CODE] , [CODE] Then create two APIs that do the following: CheckCoupon (coupon id) This checks again...
0
1
180
2018-02-23T21:29:14.693
database_errors
dba.stackexchange.com
299,410
Seemingly identical WHERE clauses returning different results
I have a table named [CODE] . Below is a simple query to find one user from the table: [CODE] When I run this query I get a single record back, which is what I expect. When I comment out the [CODE] clause I've labelled as "1" and uncomment the clause labelled as "2", I get no results. This is bizarre because the values...
They are different strings. [CODE] outputs [CODE] The second one has U+200F* the unicode RIGHT-TO-LEFT MARK as the first character, so it will not compare as equal in a binary collation, and perhaps in other collations too. And the strings also don't compare equal when converted to [CODE] , as in this query where the s...
12
23
2,242
2021-09-10T15:57:00.763
database_errors
dba.stackexchange.com
85,915
Getting the URL of a Sub version repository
WE have a couple of SVN repositories on our Centos server, I want to use one of these repositories, the oly issue I can't seem to find the URL of the SVN repositories if I want to checkout the latest copy using RapidSVN on my Ubuntu machine. Is there a way I can find the URL?
I found it I did the following [CODE] Scrolled down to the end and then found the path
0
1
94
2009-11-18T14:54:41.650
infrastructure
serverfault.com
119,613
Single click handler for all buttons in Javascript? Is it a pattern? Whats the benefit?
I have been told that when there are multiple buttons on the page for same purpose but targeting different item e.g. delete item on a grid of items, they say it is recommended to just register for click handler only on the top most element like 'body' and check what was clicked instead of hooking up click with every de...
From @good_computer comment What you're talking about is very well known as Event Delegation -- it's a very good technique, and there's so much on the Internet about this topic that saying it all here would be superfluous. - greengit
3
1
1,391
2011-11-14T08:33:12.740
api_errors
softwareengineering.stackexchange.com
435,168
start output from first match
i have a command that prints out some statistical information that looks like this: [CODE] I'd like to [CODE] so that grep start to output everything from the first line matching 'Summary:' is there any simple way to do it?
One way using [CODE] : [CODE] This will print everything from the line starting with "Summary:" to the end of the file.
1
4
51
2012-10-05T11:27:05.833
infrastructure
serverfault.com
14,655
ASP/ASP.NET Best way to handle write permissions?
Say you have a public ASP.NET (or Classic ASP) application on IIS with a script/page that needs to write or update files in a specific folder that is located within the web publishing folder tree. 1) What is the proper way to set this up? My main concern is that I want to let the ASP/ASP.NET apps write to a folder, but...
First let me start by saying, I'm a pretty big believer that there is almost always a better solution than writing stuff out to disk. Whether it's writting the data to a database, or feeding web services, writing out to disk should be the last option. That being said there are some valid reasons, but this is sort of tr...
4
5
25,381
2009-05-29T14:52:42.620
infrastructure
serverfault.com
936,486
terraform execute bash script into instance
What is the way of execute a sh script into ec2 instance when terraform is building resources? I created an ami with some files in directory for execute, if i enter via ssh i can execute file as follow: [CODE] I have a start.tpl file with follow content: [CODE] In my main.tf i have this: [CODE] Nginx start good, but my...
You are using user data the wrong way. Please see the cloud-init documentation . Your template should then contain something like this (YAML Format): [CODE] Since this can be improved with Little effort, I would propose to use this as template: [CODE] It will achieve the same as your script but use the System provided ...
3
3
11,898
2018-10-21T06:57:27.443
pipeline_ops
serverfault.com
1,020,706
openssl errors out on GeoTrust Global CA validation but ssllabs.com marks the site as A+
From my docker image: [CODE] If I try to connect to [CODE] I get the following error: [CODE] If I validate the site with ssllabs https://www.ssllabs.com/ssltest/analyze.html?d=reportingitc-reporter-sh-mdn.apple.com it says that the certificate is valid. If I add the certificate manually in the docker image ssl certs it...
Even though you've added the CA certificates package ( [CODE] ) to your docker image, it seems that the GeoTrust Global CA root certificate isn't included in that package. When you initially run [CODE] the client downloads the certificate chain from the Apple site and finds that the last certificate is self-signed (for...
1
1
1,018
2020-06-09T16:02:48.690
api_errors
serverfault.com
8,775
PCL XL Error
When printing from Adobe Photoshop Album Starter Edition to a network printer (HP Color LaserJet 3600) this error message is printed out rather than the photographs. Any ideas? [CODE]
Using PCL 6 XL (Enhanced) printer drivers, PCL XL error pages usually indicate a communication problem. The error can also be caused by an incompatibility between the Enhanced XL language and the software application that is associated with the file being printed, Adobe Photoshop Album in your case. The procedure in th...
3
3
9,569
2009-05-15T19:51:31.627
infrastructure
serverfault.com
11,679
Jinja syntax error: missing endif, in spite of providing it
I am using Salt 2019.2.0 version and below is my state file where I am using if condition to check the values and run states if it's a match. Even if I have provided endif, it says Jinja looking for missing endif tag. Any help please? CODE : [CODE] ERROR : [CODE]
There is no error in what you have posted here. The error lies elsewhere in your code which you did not include in the OP. Using the Jinja live parser , when pasting in: [CODE] With a pillar of: [CODE] Everything renders just fine. This tells me there is nothing wrong with your snippet. The fact that your error indicat...
2
2
748
2020-05-23T18:46:04.383
pipeline_ops
devops.stackexchange.com
260,797
IIS7,restrict the client by SSL Cert?
I have a ASP.NET web application host on Windows Server 2008 IIS7, everythings work well. I want to deny the user without SSL cert install in browser (IE/Firefox etc) for example, there are 10 staffs allow to access this website. I had do the following. Using OpenSSL generate a pkcs12 cert (*.pfx) Using IIS Server Mana...
A pfx contains both a key and a certificate, you need to export both to a PEM then if required extract the crt from the PEM. openssl pkcs12 -in mycert.pfx -out mycert.pem However you probably want to switch to (if not using already) "proper" client side certificates based on the server certificate. This link has some i...
0
0
1,211
2011-04-18T03:38:21.007
api_errors
serverfault.com
173,907
IO/s and MB throughput for Various RAID Arrays
Are there any resources that have typical throughput and IOp/s for various RAID arrays under sequential and random patterns? In my case I am more specifically interested in at the moment : 6 Disk Raid 10 Array with SAS 10k drives sqlio numbers I know there are a lot of variables here, how many operations are pending, t...
I've used the calculators and find that they're in the ballpark for most cases. In many cases I've seen where people complain about the performance of their array, it's because the disks, controller, or processing architecture/system bus are out of alignment. Most modern servers come with PCIe and fast CPUs/FSBs (so th...
4
3
330
2010-08-24T13:59:14.667
infrastructure
serverfault.com
246,561
Will SQL Server "int" datatype reliably truncate (and not round) decimal values when they are input?
I have a user with software that sometimes sends back a UNIT's ID as an integer(ex. 1000), and sometimes with a small decimal value appended (ex. 1000.001). The software automatically generates MSSQL (2016 SP1) tables with "real" datatypes, and to "top it off" makes this UNIT columns part of a Primary Key. This causes ...
The Microsoft Docs page for the [CODE] and [CODE] data types, says this: Values of float are truncated when they are converted to any integer type. In addition the CAST and CONVERT (Transact-SQL) page says: When you convert data types that differ in decimal places, SQL Server will sometimes return a truncated result va...
5
8
1,413
2019-08-29T14:54:06.033
database_errors
dba.stackexchange.com
182,981
Oracle using sub-optimal index on bind variables
Let's say you have a table, called ORDERS, which contains ORDER_NUMBER, CUSTOMER_ID, and ORDER_DATE (among other fields). And you have one index on ORDER_NUMBER, another on CUSTOMER_ID, and third index on ORDER_DATE. The following query is intended to select all orders that are older than the current order, from the sa...
I would create a composite index on (CUSTOMER_ID, ORDER_DATE) and that should fix all your issues, assuming ORDER_DATE is a DATE data type. And assuming ORDER_DATE should not be null, ensure the table definition says NOT NULL. I am certain Oracle is not using "some random value" if you gathered statistics correctly. Yo...
3
1
623
2017-08-08T18:53:12.680
database_errors
dba.stackexchange.com
275,683
"tail -f" style web application
I've been searching for a small but functional PHP script or similar that I can expose via apache. Basically I'd like what "tail -f /var/log/something" does, but visible via a web browser. I'm finding various solutions, but most of them operate with something similar to "tail -10" under the hood - which is fine if the ...
For realtime tailing, you probably want websockets. Node.js comes to mind. See the first answer here . Edit: guess that answer suggested but didn't implement socket.io. I'd google around for nodejs tail dash f
2
2
793
2011-05-31T21:05:10.780
infrastructure
serverfault.com
92,547
Issue replicating AutoKeras StructuredDataClassifier
I have a model that I generated using AutoKeras and I want to replicate the model so that I can construct it with keras tuner to do further hyperparameter tuning. But I am running into issues replicating the model. The model summary of the autokeras model is: [CODE] Layer config [CODE] My training data is a dataframe t...
I finally was able to solve my issue. It's weird but even though the custom multicategory layer did not have params it contained its own mapping for the data. To extend the model and to examine the effect of layer depths I created a new model by adding the multicategory layer from the existing model. Once I did this tr...
0
0
102
2021-04-04T18:23:01.800
api_errors
datascience.stackexchange.com
171,763
centos webserver missing memory
So I just started a new job and one of my tasks is to move our hosting to a new cheaper server, i'm trying to spec out the new server but I'm a little unsure on the amount of memory I will actually need. Our current server has 4 gigs of RAM and when I use the top command to check out what's running it shows that 3 of t...
Ah, it's a classic question. See http://www.linuxatemyram.com/ for an answer.
1
2
210
2010-08-18T09:43:24.250
infrastructure
serverfault.com
82,483
How to use "tree boosting" with a data-driven loss function
We have a problem which has a data-driven (non-analytical) loss function. Our target contains whole numbers between 0 and 20 (the target is inherently discrete), although larger values are possible, just not present in our dataset. The fact that we have a very precise loss function leaves us with some serious issues wh...
First some prior and known aclarations (that you probably already know). Metric is what we want to optimize. Optimization Loss is what the model optimizes. Obviously, we would like the Metric and the optimization loss to be the same, but this is always not possible. How to deal with this? Run the right model. Some mode...
5
3
419
2020-10-02T18:25:51.057
data_quality
datascience.stackexchange.com
167,215
Can't seem to get mod_rewrite to set an environment variable
This is just plain weird. I have put the following in an [CODE] file: [CODE] And in my PHP script, I have the following: [CODE] ...which prints out all the environment variables. When I go to [CODE] , I get the output: Array ( [DOCUMENT_ROOT] => ******** [GATEWAY_INTERFACE] => CGI/1.1 [HTTP_ACCEPT] => application/xml,a...
The one thing that looks wrong is the regex you're using. Remember that the regex matches the whole request URI, which always starts with a [CODE] . The way you've written it, it'll only match if the request starts with a [CODE] which will never be the case. Try using this instead (I've only added a [CODE] after the [C...
1
1
1,633
2010-08-05T00:35:15.380
infrastructure
serverfault.com
172,741
Virtualbox Networking: XP Guest, Ubuntu Host: Connecting to Windows servers & local network?
Here's what I have: Windows XP running in VirtualBox 3.0.8_OSE r53138; Host OS = Ubuntu 9.10 "Karmic Koala"; Windows network in my office with smb fileservers; Guest OS is connected to the internet and is sharing folders with Host OS; Limited networking expertise. Here's what I actually need to do: Use MS Outlook in my...
I wrote a HOWTO article for Linux Journal about this. http://www.linuxjournal.com/content/using-windows-xp-virtualbox-linux Following these directions allows the virtual machine to interact with your network as if it were an actual PC, including setting up network shares. I'd suggest changing to Bridged Networking to i...
1
2
5,893
2010-08-20T13:22:16.860
infrastructure
serverfault.com
451,781
Mounting an old LVM hard drive in Fedora 17 gives error message
On Fedora 17, I am trying to mount a hard drive as slave using the following command: [CODE] And I get this error: [CODE] How do I mount this hard drive?
How to mount a LVM drive as slave from Fedora 17 Do all of the following logged in as root. Make sure lvm2 is installed on your system (With fedora 17, it is already installed. Check to make sure) [CODE] Returns results: [CODE] Load the necessary module(s): [CODE] dm-mod is the module for the 'device mapper'. This prod...
5
5
6,602
2012-11-24T15:27:39.613
infrastructure
serverfault.com
24,747
Testing scenarios for a desktop personal cloud app
What are some high level test scenarios/types of testing for a personal cloud desktop application? This is basically a Network Attached Storage that can be accessed from anywhere via a desktop, mobile or web application, and my focus will be desktop application. I started with the following scenarios: - install/uninsta...
You could test file transfers: transfer file transfer multiple files cancel in the middle of file tranfer transfer other media types - test outside of "supported" range, videos, pdf, gif, etc.
2
3
62
2017-01-06T16:58:45.597
data_quality
sqa.stackexchange.com
1,067,160
Need a simple High Availability file share
I am looking for the simplest way to share a single file in a high availability way between a pair of linux servers. (Version and distribution are unimportant, I'm looking for a generic solution.) I have two servers, each with their own local disks and NFS shares and other services between them. I have a file that both...
There are a lot of solutions - for one file I would probably use GlusterFS - but I think that you should have 3 servers for quorum or you will have to solve split-brains on recovery. You should be able to install it easily on every popular distro, and configure it not more than hour.
3
3
1,432
2021-06-19T01:48:19.743
infrastructure
serverfault.com
242,847
Storing a looong lookup table
Background The product i am working on has a very long lookup-table. the table contains static data and cannot be auto generated. there are about 500 rows and 10 columns. columns have mostly integers and strings. to complicate the matters, there are actually two such tables. every row in table-1 maps to zero-or-more ro...
Ideally, you develop a small program to do the editing, so you can edit the file (and maybe even do the svn update and commit as part of the program). That may be more work then you have time for. I have never had that time. Instead, I had people edit in the database in place, and built a small script that they ran (ma...
-1
1
361
2014-06-03T06:30:35.397
api_errors
softwareengineering.stackexchange.com
127,781
Setting up Virtual Hosts with Apache on Windows 2008 server for multiple sites. Complicated setup, including subversion
I am setting up apache on my windows 2008 server at my home. It will serve 2 functions. Subversion hosting to allow me and some others to manage company documents with version control Local website hosting for web development. Will need to run several websites since I generally work on more then one site at a time. Her...
I am in no way an expert in this but in my vhosts.conf (on windows) the path to documentroot looks a bit different; [CODE] then in the httpd.conf the following line is added/modified: DocumentRoot "W:/HOMEPAGES"
2
0
2,188
2010-03-30T17:35:12.007
infrastructure
serverfault.com
350,179
Between JS clients and a Unity game server : TCP or UDP?
I'm currently building an interactive game which has a very special use case : The game is displayed on a giant screen on stage in a theatre, and the audience can play it with their smartphones ( http://www.augmented-magic.com/ ) My tools are : A desktop app made with Unity, displayed on stage A web server (RoR) who pr...
UDP vs TCP UDP is lightweight, stateless, and lossy. TCP is heavy, statefull, and robust. UDP is best when transmission errors can be ignored. TCP is best when transmission errors need correction. Voice over IP uses UDP because of how time sensitive voice conversations are. It's better to just hear a hiccup and be back...
4
4
343
2017-06-05T12:12:21.717
api_errors
softwareengineering.stackexchange.com
386,378
Scheduling jobs to run at a future time
I need to design a system that will take jobs (basically calling some web api) and run them at a future time (15 - 45 minutes depending on the job). The first idea I had was to store the job and the timestamp of when it needs to run in some db and then have workers running each minute looking for jobs to run (select wh...
Look into Hangfire https://www.hangfire.io/ From what you have described it would fit your needs perfectly. You shouldn't have to do anything other than scheduling your jobs as it has built in DB and mechanisms to clean up the jobs and retry them.
0
1
484
2019-01-30T20:09:31.487
api_errors
softwareengineering.stackexchange.com
371,554
ssh takes a long time to connect on some hosts
I have linux machine version red-hat 5.5.0 I have problem if I perform from my machine ssh to other linux machine - node1 then I login quickly to node1 but if I perform ssh to other linux machine node2 then ssh take a long time please advice why ? what need to do in order to perform ssh immediately on node2 ? remark - ...
Since you are getting GSS failure, you can try adding: [CODE] to /etc/ssh/sshd_config. Then restart the service [CODE]
8
9
28,687
2012-03-20T13:53:20.283
infrastructure
serverfault.com
341,777
Use Powershell to read XML comments
So I'm working on a way to use Powershell to get a list of scheduled tasks. Through my research, I determined that the only way to get "most" tasks is to use SCHTASKS. This command does allow for XML output which you can push right into a variable: [CODE] Now, the problem comes up is that the task name is stored as an ...
Try this: [CODE]
1
7
3,098
2011-12-16T21:44:02.730
infrastructure
serverfault.com
899,339
Enabling WebSockets (SignalR) with a Barracuda WAF
I am currently tearing my hair out at work trying to resolve an issue with a web application that uses SignalR over WebSockets where traffic is directed through a Barracuda Web Application Firewall (WAF). Every attempt to connect to the [CODE] endpoint using websockets would fail with a 400 Bad Request. The connection ...
So I have found out my problem. I have found out that we are actually sending our traffic to our WAF through an Azure Load Balancer first. When I log out the Headers in the WAF Access Logs I can see that the [CODE] header has no value, which I know my client is sending as [CODE] . It would appear to be an issue using a...
2
2
2,086
2018-02-28T15:46:46.253
api_errors
serverfault.com
70,068
Have Saslauthd working fine for port 25; can't get it working on port 587
I uncommented the "submission" section in [CODE] , and my firewall is open on port 587. I get the following error when trying to submit a message via port 587 with TLS: [CODE] I have saslauthd working fine for port 25. Here's the contents of [CODE] : [CODE] I thought I should copy this file into another in the same dir...
Your SASL authentication was probably never working correctly: The log excerpt shows a source IP of 66.109.x.y, and this one is in [CODE] , too. Since in your [CODE] your [CODE] precedes [CODE] , your test client probably never had to authenticate itself. Please set the fifth column for submission and smtpd to "n" in [...
1
0
1,794
2009-09-30T17:53:35.937
infrastructure
serverfault.com
212,833
Datastructure for a factory pattern in practice
I'm implementing what's basically an event log system for a larger system. I used Single-table inheritance to build out the table. The problem I'm having is figuring out how to build out the classes from the database. It's easy enough for me to figure out what they are to load them into the database, but to pull them o...
You might want to look at how Hibernate does it. See the SingleTableEntityPersister if you are truly using single-table inheritance. Or better yet... just use Hibernate/NHibernate or another ORM and don't reinvent the wheel. To be clear, I'm not a huge fan of ORMs, but phrases like "single-table inheritance" imply that...
0
1
182
2013-09-29T04:18:28.667
api_errors
softwareengineering.stackexchange.com
240,744
unable to load dynamic library
I am getting this error when I run php -v: [CODE] How can I fix this?
Verify whether mcrypt.so exists: [CODE] Then change the php.ini line: [CODE] to: [CODE] If it does not exist, install libmcrypt and php-mcrypt: [CODE] I recommending using Ubuntu for easy installation of PHP, the PHP modules, and a web server. The Ubuntu repository includes FAR more packages and you do not need to conn...
0
4
8,055
2011-02-27T05:10:00.417
infrastructure
serverfault.com
538,568
SSH Tunnel or OpenVPN to securely connect app and database servers?
I have my app (a PHP forum) and database on separate servers, and want to make sure that the connection between them is secure. I've taken all the preliminary steps that I've come to know of, and am wondering if I should secure the connection through SSH Tunneling or OpenVPN. The problem is that, I am told, SSH Tunnel ...
If the servers are on the same LAN (or in an EC2 VPC, etc.) then no, I do not encrypt data between them. However, if traffic traverses the open internet (e.g. with "legacy" non-VPC EC2 servers), then it's a great idea to encrypt. That said, I'd not choose either OpenVPN nor SSH tunnels for this. Rather, consider IPSec,...
1
3
803
2013-09-13T03:16:34.063
infrastructure
serverfault.com
813,778
Unable to receive mail in local server from external server with MX record
I am not being able to receive mails in my local accounts, i can only send mails from multi local accounts (@remote.A) to multi external accounts (@A). I can send to every domain (e.g. gmail). Till now after several tests, i notice that when i send mails without SMTP AUTH, i receive a message from my ISP mail server, s...
In order to receive mail you must have SMTP open and enabled. That's how other servers deliver mail to your server. IMAP and POP3 are only for reading email remotely. You should be able to use SMTP to send mail between mailboxes on your domain, as well as send mail from outside addresses to your domain. Be careful not ...
0
1
347
2016-11-08T12:53:38.830
database_errors
serverfault.com
51,061
IIS logs dont log all selected values?
I'm trying to get the client ip address. I have a number of options selected to log. In fact, I have 15 options selected, but I never get more than 12 options printed out. I also don't think I'm getting the client ip, even though it is selected. Can anyone help me out? Here is the top of a log, with identifying informa...
Dcid is correct. When you're reading those header values, there's a couple little things to note. The "s" means "server", so s-sitename is "Server's site name" The "c" means "client", so c-ip is "Client's IP Address" "cs" means "client to server" so cs-method is "The method the client requested of the server" "sc" mean...
1
1
418
2009-08-06T17:24:50.227
infrastructure
serverfault.com
202,106
Always ON synchronization issue
I'm having a bad issue with Always ON on a SQL Server 2017 CU3 running on Windows Server 2016 with last cumulative updates (March 2018). Availability Mode is set to Synchronous commit and when I reboot the secondary node some DBs (randomly) get in a "Not Synchronized" state and they can't go back to "Synchronized". Eve...
I had the same issue on SQL Server 2017 CU 11 (latest as of today) with Windows Server 2016. After rebooting the secondary replica, some of the databases in the AG show not synchronizing. I used [CODE] , but it didn't work. The work around is to restart the SQL Server Services on the secondary replica. Then all databas...
0
1
8,880
2018-03-23T11:09:29.510
database_errors
dba.stackexchange.com
312,674
How do I rename devices when using ZFS fuse on linux
I've just started using ZFS on linux and have already run into problems. I connected my old data drive to my server to copy my data to my new ZFS volume. However, when I removed this drive and rebooted Linux, I found that my devices had been renumbered and ZFS could no longer mount its pool. zpool status [CODE] The dev...
It turns out that just doing a "zpool export" and "zpool import" fixed the problem.
2
2
736
2011-09-18T09:22:42.620
infrastructure
serverfault.com
898,586
App Engine Flex failed to configure resources
During last 2 days we stuck with deployment problem. App deployed perfectly before. We have not introduced any change to [CODE] . Doing usual stuff like [CODE] [CODE] Build goes as usually but at the end it fails with error: [CODE] Gcloud version: [CODE]
This may have been correlated with a recent release related to the [CODE] parameter for applications where [CODE] are enabled. Could you try to deploy with [CODE] or run the command : [CODE] ?
0
1
1,540
2018-02-23T13:41:34.977
pipeline_ops
serverfault.com
236,081
How to make my code decide which class to instantiate based on a parameter?
I have a system in which I will perform queries to a database. I want Query1, Query2 and Query3 to use the same methods in their way to the data source layer. To do that I would like to make something similar to Strategy or Template Patterns, where I have a part of the code which is a default behavior for all queries (...
As Steve Evers states, using an enumeration as a key and either a Class to instantiate (or an instance of Query pre-built) to return. If you don't like the if/else pattern, I know Java has Map implementations, of which the EnumMap would be a good fit (where it optimizes the utilization of Enumerations as the key values...
1
2
820
2014-04-15T23:06:11.260
data_quality
softwareengineering.stackexchange.com
23,445
An optimization problem involving perceptron
What I do not understand is that is there only one input for each weights or there is a vector of inputs from 1 to n? I also dont get the notation for inputs and outputs? Is that a notation or a power operation?
The perceptron receives a $n$ number of $m$-dimensional vectors, so, $x^{i} \in \ R^{m}\ \forall\ i \in [1,n]$. To iterate, the dataset has $n$ different examples and each of which has $m$ dimensions. It's not a power notation, it just denotes the $i$th example.
0
1
104
2017-10-01T12:16:04.680
data_quality
datascience.stackexchange.com
965,131
rsyslog ommail to localhost postfix
Is it possible to use the ommail module that comes with rsyslog to send email through a local postfix install. I use gmail as my smtp and ommail doesn't do authentication. Will using something like the following in an rsyslog .conf file work? [CODE]
The short answer - it's possible, yet postfix must be configured to use external mail service as local relay. Provided configuration above is incomplete and probably, postfix will fail to send email to a public email using external service as relay. i'll skip postfix installation steps (google for any postfix install h...
2
0
427
2019-04-29T16:32:55.440
api_errors
serverfault.com
11,641
Why use custom CLR aggregate functions for string concatenation and geometry unions in SQL Server?
I often need to do string concatenation or geometry unions over a column in SQL Server 2008 and I'm aware that you can write custom aggregate functions in .NET and register them with SQL Server to do these things. However, you can take a very simple approach to the problem using a local variable and a select e.g. [CODE...
TSQL is very inefficient for string manipulation compared to [CODE] (where you can use a [CODE] for example). The concatenation approach will allocate a whole load of new strings. It might not be so bad if you could just create a big string up front and use [CODE] to replace parts of it but I believe from trying this a...
2
3
1,236
2012-01-26T13:09:29.630
database_errors
dba.stackexchange.com
12,790
Successful ETL Automation: Libraries, Review papers, Use Cases
I'm curious if anyone can point to some successful extract, transform, load (ETL) automation libraries, papers, or use cases for somewhat inhomogenious data? I would be interested to see any existing libraries dealing with scalable ETL solutions. Ideally these would be capable of ingesting 1-5 petabytes of data contain...
I don't think you'll find anything that checks all of your requirements, but here are some things to look at: Automated ETL mapping: There is a tool called Karma started by a team at USC's Information Sciences Institute. It learns from your ETL mappings and helps automate future mappings. It's the only open source tool...
2
1
307
2016-07-15T08:00:32.163
bi_errors
datascience.stackexchange.com
735,254
School district using Windows 8 tablets over BYOD network. How should this be set up?
I'm sorry for the ambiguity of this post but I was left with quite a mess it seems. I recently came on to this job and there was a deployment of about 120 Windows 8 tablets to 4 different schools. I don't know who created the image or how they were planning to manage the tablets and I am unable to even find out who it ...
I think this question is going to be far outside the scope of the site because you're asking for a hugely broad answer. Right now, I will say that it sounds like someone's tried to bodge using home tools (shared accounts, parental controls) for an enterprise deployment situation and that never ends well. I suggest you ...
1
3
60
2015-11-10T14:13:12.297
pipeline_ops
serverfault.com
63,639
Can't take a write lock while out of disk space
Help me please! My C:\mongodb-win32-x86_64-2.4.6\data size is 8G. I have 95G free space of drive C. But I get this message: com.mongodb.WriteConcernException: { "serverUsed" : "/127.0.0.1:27017" , "err" : "Can't take a write lock while out of disk space" , "code" : 14031 , "n" : 0 , "connectionId" : 10 , "ok" : 1.0} Th...
The problem was that I used folder as a mapped drive on Windows. I've replaced link to the link with absolute path on the real hdd and problem has gone. It seems that mongo checks free drive space and compares its changes with created file size. I don't understand the reason for downvotes...
3
2
4,178
2014-04-22T02:51:44.067
api_errors
dba.stackexchange.com
406,823
Nginx (openresty) generating random numbers
I have openresty set up on a server (nginx bundle which includes the lua module) and I'm trying to create a script which has specific odds of setting a cookie on a user's browser. My code looks like this: [CODE] I know my random seed function isn't actually very random, but I figured I'd deal with that later. At the mo...
Based on your error log entry, it appears you have a simple typo. [CODE] This should read: [CODE]
4
8
8,893
2012-07-11T15:52:14.837
infrastructure
serverfault.com
51,691
Can a single SQL Server instance issue the same SYSDATETIME twice?
I am contemplating using a [CODE] as a clustered index. If I were to always populate that column using [CODE] is it possible for the same instance to issue the same value twice (assuming we don't do something like set the system clock back)? Alternatively, what is a cohesive strategy for ensuring uniqueness on such a c...
Yes. The resolution of the Windows clock is decent, but not perfect. You should use another field, such as an [CODE] , to ensure uniqueness. But go ahead and cluster on the date first , if it suits your needs. Alternatively, you could use a [CODE] PK, but supervise inserts with a stored procedure that verifies the uniq...
4
2
492
2013-10-17T16:45:51.673
database_errors
dba.stackexchange.com
667,493
NOQUEUE: reject: RCPT from on freebsd and postfix
I am building a server using this config -> http://www.purplehat.org/?page_id=4 and when trying to test basic email capabilities I get -> NOQUEUE: reject: RCPT from when try to send a test email. Below are my related configs How to I get postfix to send emails? Logs output: [CODE] postconf -n [CODE] The domain [CODE] w...
FYI, [CODE] was the result of defer_unauth_destination . It's slightly different with reject_unauth_destination , with reject means permanent error with code 550 and defer means temporary error with code 450. But wait..., I don't have any parameter that use defer_unauth_destination. Where does the weird restriction com...
12
10
26,161
2015-02-13T19:08:44.030
infrastructure
serverfault.com
252,686
Can't Connect to MySQL database through PuTTY
I have a database that runs on pythonanywhere.com, and am trying to connect Tableau to it, and need to set up an SSH Tunnel in order to do so. The directions on pythonanywhere's website mention PuTTY, and many people on Tableau forums also use it, so this is what I'm going with. I've been trying for about 2 weeks to ge...
If you are connecting on "localhost", then [CODE] applies. "127.0.0.1" may be a synonym for "localhost". If you are connecting via TCP/IP, then [CODE] applies. (Replace with suitable IP or hostname or wildcard.) It is OK to have both [CODE] in order to allow access either way.
2
0
2,341
2019-11-06T18:05:18.687
database_errors
dba.stackexchange.com
155,951
Creating Custom admx templates to deploy registry settings
I've got a 2k3 functional level domain environment. I'd like to use group policy to deploy a few registry settings. I know that this can be done through GP Preferences client side extentions (which means deploying and validating the deployment of that CSE installer, which I'd prefer to avoid) and through a GP deployed ...
GP Preferences are so ridiculously useful that I'd hesitate to work around them. Plenty of work has been done in deploying the CSE easily. If you have WSUS already, you can download Feature Packs and then approve the updates for the Client Side Extensions. http://msmvps.com/blogs/cgross/archive/2008/12/16/installing-gr...
0
1
6,496
2010-06-29T15:48:01.640
pipeline_ops
serverfault.com
1,015,588
Libvirt: "The CPU is incompatible with host CPU"
I'm exporting a domain from 'old pc' to 'new pc' [CODE] PROBLEM When I start the domain, or the snapshot in the new pc, I get the error: [CODE] What's the right way to fix this error? Thank you.
Currently there's no way to fix this issue. Both 'old pc' and 'new pc' must support the same cpu flags. Source: This answer from libvirt IRC channel: [CODE]
0
0
1,512
2020-05-04T14:06:21.327
infrastructure
serverfault.com
101,868
Restore a newer filegroup backup
So this is my set up. In our data warehouse we have mostly tables that are filled with data from a ETL-process. We do not take backup of these tables since we have an option to do a full reset using ETL. We also have a couple of tables with historical data. These are valuable and need to be backed up. What I did was to...
One of the considerations implementing multiple databases is different RTP/RPO requirements. It seems this is the case in your situation because the RPO is different. Consider creating a separate databases for the ETL tables and historical data. Backup the historical data database as needed to meet your RPO. The ETL da...
1
3
171
2015-05-19T09:00:47.883
database_errors
dba.stackexchange.com
382,349
Configure IPTables to block specific ports on VPN Disconnect?
I am using the latest Ubuntu distribution... and I have a rather spotty VPN connection. I am using the default Network Manager application that came with Ubuntu. I am having trouble maintaining a connection to my VPN, and that being a separate issue, I'm looking for something to make me a little bit more secure. I woul...
If you don't want any traffic to be sent unsecured, I would suggest setting up your routing table without a default route, and only a specific route to the VPN server. This means that when your VPN connection goes down and removes the route over the VPN, there won't be any matching route for the traffic and it won't go...
1
2
1,721
2012-04-23T19:21:50.863
infrastructure
serverfault.com
77,633
How to handle a feature vector that could be variable length?
I would like to train a machine learning model with several features as input as X[] and with one output as Y. For example Every sample has a Data frame like this: [CODE] Let's say One sample the followings Data is only one value: [CODE] This is normal machine training problem. But now, if I would like to set X[3] mult...
There are many options. The most common method to handle variable length vectors is to pad the vectors. Add zeros as placeholders to the shorter length vectors until all the vectors are the same length. Then it can be modeled similar to any other feature vector. Another option is to take the norm of the vector . That w...
3
1
1,166
2020-07-13T10:00:07.003
data_quality
datascience.stackexchange.com
646,780
mod_security RBL - apparent false positive
I'm struggling with an RBL rule in mod_security under apache 2.2 that seems to be giving me a false positive. I see the following in the audit log (IP address redacted): Message: RBL lookup of 4.3.2.1.sbl-xbl.spamhaus.org succeeded at REMOTE_ADDR. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_42_comme...
I'm no longer seeing this problem and I suspect I know the cause. The name server was configured to search for names within mydomain.com via "search" setting in /etc/resolv.conf I had a wildcard DNS entry for *.mydomain.com returning an IP address (1) remains true, but I've removed the wildcard DNS entry so now a searc...
1
0
804
2014-11-24T21:28:35.433
infrastructure
serverfault.com
969,504
gcloud app deploy error(Ignoring mysql2-0.3.21 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.21)
I'm in trouble with GAE(GoogleAppEngine) deployment. I've done two turorial. https://cloud.google.com/ruby/getting-started/using-cloud-sql?hl=en https://cloud.google.com/ruby/getting-started/using-cloud-storage?hl=en The first tutorial is success to deploy, but in the second tutorial, I cannot deploy [CODE] command. In...
Sorry, I've resolved this problem. The reason why I cannot deploy is that I didn't execute migration. After [CODE] command, success to deploy!
0
0
97
2019-05-30T13:58:05.353
api_errors
serverfault.com
134,699
How to optimize this SQL Server query?
Anyone have any suggestions for how to optimize this query? Running SQL Server 2008.. The object is to look at accounts that were created yesterday, compare their email addresses and phone numbers to existing accounts to identify if it is a duplicate account to one already in the system. [CODE]
There are multiple things to look at to improve query performance. Understand your system load Volume of data you are expecting to be in the tables mentioned in query Volume of data you are going to fetch from tables mentioned in query Indexes applied on tables mentioned in query Structure of the query I can suggest yo...
0
2
540
2016-04-07T18:51:33.990
data_quality
dba.stackexchange.com
97,218
Difference in performance Sigmoid vs. Softmax
For the same Binary Image Classification task, if in the final layer I use [CODE] with [CODE] activation function and [CODE] loss function, then the training process goes through pretty smoothly (92% accuracy after 3 epochs on validation data). However, if I change the final layer to [CODE] and use the [CODE] activatio...
It is based on the output classes if they are mutually exclusive or not. For example in a multi-label classification problem, we use multiple sigmoid functions for each output because it is considered as multiple binary classification problems. But if the output classes are mutually exclusive. In this case, the best ch...
3
0
337
2021-06-28T19:20:28.553
data_quality
datascience.stackexchange.com
29,575
mysqldump not escaping single quotes properly
I use mysqldump to backup my mysql database. The problem is that the sql file generated by mysqldump doesn't escapes single quotes properly. Here is an example of the mysqldump generated sql script : [CODE] That single quote escaping in "ain't" doesn't work and it makes the rest of the script being inside that string. ...
That output of mysqldump is working as designed, and it is properly escaped, unless you try to restore the dump on a MySQL instance with [CODE] set. There's an outstanding feature request to make mysqldump use a pair of single-quotes to escape literal single-quotes, as per ANSI SQL. See http://bugs.mysql.com/bug.php?id...
6
12
16,194
2012-11-29T21:24:05.957
database_errors
dba.stackexchange.com
229,513
Obtaining valid XP Professional licences?
Possible Duplicate: Can you help me with my software licensing question? Hi Guys, I realise I'm probably on a fools errand, but I gotta ask: is there any way to obtain valid, legitimate XP Pro licences? I've recently purchased a new SBS2008 server. My 3 XP-Pro machines will connect to the domain without problems... unf...
Buy Windows 7 Pro licenses. They come with downgrade rights to XP Pro. If you purchase them through Volume Licensing, you get XP Pro download and keys.
0
1
171
2011-02-01T08:14:28.027
data_quality
serverfault.com
299,317
SQL Server 2019 - using MSA as a proxy account
I'm thinking about using MSA (or gMSA) as proxies inside my SQL Server instances. This proxies would be used for example for running SSIS packages or [CODE] command. But based on what I've gathered there was a problem with using managed accounts inside credentials, because there was no way of providing password during ...
Under the default configuration, SQL Agent uses a virtual account, and can access remote resources using the Computer Account (YourDomain\YourServer$). If your server is dedicated to SQL Server, and you don't need multiple identities with different network privileges, then you don't need SQL Agent proxies at all. Just ...
1
2
2,137
2021-09-09T11:58:02.507
database_errors
dba.stackexchange.com
128,146
MySQL : How do I partition based on Month of date
I have a table having id as primary key and date column. I want to partition the data.. I felt month would be the best option so that I have 12 partitions.. How do I achieve that ! I am using mysql 5.6 on AWS RDS. [CODE] It gives me following error: Field 'start_date' is of a not allowed type for this type of partition...
There are many restrictions on [CODE] . But also, there are many reasons why they don't provide any benefit. What do you hope to gain? [CODE] partitioning does not provide any performance benefit, unless you are doing "table scans" now. Vérace's suggestion is a way that would pass the syntax issues, but, again, not lik...
1
2
5,174
2016-02-03T13:53:41.797
data_quality
dba.stackexchange.com
227,190
How do I ask apt-get to skip any interactive post-install configuration steps?
I have a server build script which uses apt-get to install packages. It then puts pre-written configuration files directly in place, so the interactive post-install configuration dialog in packages such as postfix is not needed. How do I skip this stage of the installation? It creates a piece of manual intervention tha...
You can do a couple of things for avoiding this. Setting the [CODE] variable to [CODE] and using [CODE] flag. For example: [CODE] If you need to install it via sudo, use: [CODE]
204
312
178,119
2011-01-26T16:19:22.477
infrastructure
serverfault.com
949,018
AWS Opsworks Chef deployment using S3 Archive without making archive public
I'm trying to use the S3 Archive method to do a Chef deployment in Opsworks. I put the Chef archive in S3 and copied the address of https://s3.us-east-2.amazonaws.com/redacted/redacted.tar.gz . I gave the Instance Profile used by the instance full read/write access to the "redacted" bucket. However, during a deployment...
How do you access the files in S3 bucket? Over HTTPS it won't work without making the files public. That's the case if in your Chef script you're doing for example: [CODE] To make use of the IAM Role you'll have to download the files using AWS-CLI . That will get the correct permissions and should be able to download t...
3
0
274
2019-01-14T17:40:09.923
api_errors
serverfault.com
69,226
Practical limitations of machine learning
Working on some applied machine learning problems, I've started to encouter some practical difficulties. Those difficulties relate to - but are not limited to - convergence of the learning process, stability trough recalibration, explainability, stability of the explainability trough recalibration. Those problems are a...
How does one even start describing these practical limitations? Most authoritative source on the main practical (and theoretical) problems related to machine learning is formal framework describing it. Mathematics. Right here we have a problem, even tough you look at all of these ML algorithms and you conclude its math...
5
1
124
2020-03-05T17:04:46.113
data_quality
datascience.stackexchange.com
472,152
Varnish saintmode gives 503 instead of backend's custom 500 page
I don't understand Varnish's behavior in this instance: Say I have one page on a site that begins to generate 500 errors (and the site has a good custom 500 screen, but that's not completely relevant). I have code in the vcl_fetch subroutine: [CODE] I had hoped that in the instance of the onset of a 500 error, Varnish ...
You need to look at implementing Grace mode and/or Saint mode. https://www.varnish-cache.org/docs/trunk/users-guide/vcl-saint-and-grace.html Grace mode allows you to serve stale content when your backends are down or slow, and saint mode lets you retry another backend if the backend you used responds with an error. So ...
2
1
1,368
2013-01-24T18:58:54.430
api_errors
serverfault.com
388,275
elasticsearch service wrapper on gentoo
I have elasticsearch installed and working in /opt/elasticsearch. I want to install a service wrapper for it to start/stop/restart it as a service. Elasticsearch recommends using java-service-wrapper: [CODE] However, the start of a service fails with the following message: [CODE] . I don't really know where to start de...
Configuration problem. [CODE] should point to a valid java binary.
0
1
1,003
2012-05-11T15:10:41.753
database_errors
serverfault.com