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
73,638
I was doing this SuperDataScience course and I got this "ValueError: Input contains NaN, infinity or a value too large for dtype('float64')"
[CODE] What should I do to deal with this error?
[CODE] there is an error in using the parameters, should be [CODE] [CODE]
-3
0
220
2020-05-05T22:58:14.023
data_quality
datascience.stackexchange.com
346,381
Can't fix "ORA-00990: missing or invalid privilege" on a sequence
I'm getting [CODE] on this kind of statement: [CODE] I've researched this all over the Internet and AFAICT, this syntax is absolutely correct, the name of the sequence is correct, the user is correct, and similar grants for table access work just fine, but I just can't grant access to the sequence. And if [CODE] does t...
The Oracle documentation doesn't show the existence of a 'USAGE' privilege. I've never used anything other than a SELECT privilege on a sequence. That syntax does show up for Postgres/DB2
1
2
9,360
2012-01-04T03:55:08.177
infrastructure
serverfault.com
534,333
`pwd -P` preventing bash script from running in supervisord
I'm running supervisord to execute gunicorn. My problem is when my script contains CURR_DIR=`pwd -P` and run the script via supervisord, it STOPS the process. My script is located in [CODE] and I expect `pwd P` to return [CODE] when I run the script. I tried PWD and that doesn't return [CODE] either. The `pwd -P` works...
You can't do what you want because the value returned by pwd is not guaranteed to be what you expect. The location of the script is not it's working directory [CODE] See ? pwd is returning the current directory of the shell I used to invoke the test command. This is what is happening to you, you are seeing values inher...
0
1
397
2013-08-28T03:56:55.587
infrastructure
serverfault.com
310,456
gpt partition for raid 6 that was 4.5TB, will i have any issues under server 2008 64bit r2?
has anyone had any issues with using one large gpt partition of 5TB on a raid 6 setup with a 3ware raid controller. i am using the partition as a basic file sharing backup repository, nothing fancy. are there any limitations to using gpt under ntfs that i should be concerned about? the other option would be to split th...
You should be fine. I'll just throw out the usual warnings: Too many files in a single directory (seems ~50k per directory is a colloquially accepted "safe" limit) Monitor the system, using large SATA disks causes rebuilds to really tax the system and usually take a whole day or more to rebuild. The error rate during s...
1
1
254
2011-09-12T12:29:42.307
database_errors
serverfault.com
136,382
Improving VPN performance - stronger encryption = more performance?
I have a site-to-site VPN set up with two SonicWall's (a TZ170 and a Pro1260). It was suggested to me that turning off encryption (so the VPN is tunneling only) would improve performance. (I'm not concerned with security, because the VPN is running over a trusted line.) Using FTP and HTTP transfers, I measured my basel...
AES is faster than 3DES because of the algorithm design (number of rounds, etc.), not because of the key size/encryption strength. I don't know much about SonicWall products, but I'd assume that the firewall product should be able to pass traffic at line speed for a T1, so there may be some issues there. I'm not sure w...
5
4
20,013
2010-04-27T19:05:27.917
infrastructure
serverfault.com
363,984
BIND: Redirect all lookups to a different nameserver using NS
I'm creating a dns server for a local network, and I need to do redirection based on the domains. Also, i'm fairly new to DNS. I have to redirect all "ia.in" domains to a different local nameserver (172.31.1.30) which already contains their entries, and all others to any external nameserver (currently i'm trying to use...
You can't do that. What you currently do is create new authoritative zones. It will redirect nothing nothere. Besides you probably shouldn't - DNS loads is probably negligible.
1
1
2,455
2012-02-27T02:39:20.330
infrastructure
serverfault.com
148,810
Best way to design / query multi-level relationship table
My company is going to develop a mobile app selling services across different regions. We are expecting users are going to hugely depend on the Search function. Thus, I need to make sure the database design is good enough to handle the searches. The main concern I have is, not only should the user be able to search the...
I would be tempted to deploy all of the techniques you've mentioned. Let me explain. The normalised Service/ City/ State/ Country is great for OLTP processing. So retain it for that part of the application and treat it as the actual data store. As you mentioned, this is likely to make search complicated so denormalisin...
4
2
1,959
2016-09-05T05:28:10.340
warehouse_errors
dba.stackexchange.com
42,430
I am writing Automating script for check box
I am facing problem in writing automation script for check box for website, please go through website link and i am sharing my code please go through this code. http://automationpractice.com/index.php?controller=authentication&back=my-account Please go through below screen shot Where i did red circle over check box, i ...
I went through the URL provided by you. Here is the XPath for above two checkboxes: Sign up for our newsletter! XPath : [CODE] Receive special offers from our partners! XPath : [CODE] Here is the HTML Code: Let me know if it works for you.
-2
3
131
2020-02-05T12:23:26.457
api_errors
sqa.stackexchange.com
436,534
What is the benefit of equipping a computer or smartphone with multiple CPU cores that differ in clock speed?
I've bought a samsung galaxy s21 ultra about a year ago. Today i was looking at the specs again and i noticed that the Samsung Exynos 2100 processor consists out of 1 single CPU core of 2.9 GHz, three cores of 2.8 Ghz and 4 cores of 2.2 ghz . On the Samsung Exynos 2100 info page I read that the 2.8GHz Triple-core (Cort...
You mix power eating high performance cores with power saving low performance cores. That way you have minimal power consumption most of the time, and high performance when you need it. Eight high performance cores instead of 4+4 would empty your battery in half the time, and make the device so hot that the clock rate ...
-2
6
173
2022-02-06T21:49:12.737
api_errors
softwareengineering.stackexchange.com
299,888
postgresql deadlocks: SELECT blocked and blocking query
Based on the 2nd answer on https://stackoverflow.com/questions/22775150/how-to-simulate-deadlock-in-postgresql I performed the following snippet: [CODE] Now, following the guidelines on https://wiki.postgresql.org/wiki/Lock_Monitoring I performed [CODE] , expecting to see the correct values for the columns [CODE] and [...
Whatever client you are using to send your queries to the database decides to send "SHOW search_path" whenever it is bored. How shall I correct the above query? Stop using that client.
0
1
4,188
2021-09-20T18:57:56.950
database_errors
dba.stackexchange.com
733,767
Veeam Back jobs failing with error: Error: Client error: ChannelError: ConnectionReset
My Veeam Backup was working fine until one day I got this error: Error: Client error: ChannelError: ConnectionReset I was having this error for every backup job(new and old) and restore job. The configuration is: Windows Server 2008 R2 as vCenter and Veeam Backup Server and 2 ESXi hosts on a shared NAS.
Since it took me some hours to solve this issue the real problem was that on that server I have installed Symantec System Recovery ( Symantec Backup Exec produce the same problem) and on that day I have uninstalled it. It seems that Veeam and Symantec are using some shared files/services so by uninstalling the Symantec...
1
1
9,667
2015-11-04T06:55:03.690
database_errors
serverfault.com
15,040
Using Oracle client to connect to remote database
Although I can do a telnet to remote oracle port I am unable to connect. I have a following tnsname.ora connecting to oracle database using sql plus: [CODE] My sqlnet.ora [CODE] When I try to connect using this I always get following error [CODE] And toad shows following error: [CODE]
There are different ways to connect oracle. One of them is easy connect . You may use [CODE] According to comments. You can connect oracle using easy connect but hr (human resources) account does not exists. Therefore try to use [CODE] You should be able to connect your oracle system.
4
7
45,881
2012-03-15T05:50:20.143
database_errors
dba.stackexchange.com
848,676
How do I attach, format and mount a volume on boot in ecs?
I want my persistence (ebs) volume to be separate from my auto-scaling group launch configuration. So that it won't be accidentally auto deleted by terraform, or something. Also I may do something like [CODE] so that I have a different persistence volume for each task that needs data. Here's how I think it would work. ...
This is a partial answer as i'm still working through it, first, I'm using a plain Amazon Linux AMI, not the ECS optimized one (which is out of date...) [CODE] here's the most important part, the [CODE] , which will attach the volume, then partition it and format it if necessary. [CODE] then we can use the standard clo...
3
0
2,420
2017-05-07T04:12:14.987
pipeline_ops
serverfault.com
151,329
Different execution plans depending on columns selected from CTE
I have the following table [CODE] I am running the following CTE. [CODE] Now the question. When I run [CODE] SQL does an index seek on the nonclustered index with a key lookup on the clustered and takes 3 to 4 seconds to complete. However, if I run the below SQL does a clustered index scan and completes in about 15 sec...
The plan without row number is below. This is assigned a cost of [CODE] . You have a [CODE] without [CODE] so SQL Server just needs to scan the clustered index and as soon as it finds the first 30,000 rows matching the predicate it can stop. The table has 13,283,300 rows. A full clustered index scan is costed at [CODE]...
3
3
283
2016-10-03T15:45:38.050
database_errors
dba.stackexchange.com
1,055,665
Startup Script to Uninstall Google Chrome Not Working
I'm working with our sysadmin to uninstall Google Chrome on our network, which we manage via GPO. As it has been installed by the users themselves, by a GPO (which is now deleted) and manually by the IT Department, we thought that the best option is configuring a Startup script to run on all computers. Before testing t...
The attached script is set to look into program files folder for the Google Chrome application. For example line: Reg64Key = Get-ItemProperty -path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome' -name "Version" -ErrorAction SilentlyContinue You say the users have installed themsel...
1
0
447
2021-03-02T15:57:06.847
infrastructure
serverfault.com
149,319
MySQL command appends '@localhost' to username
I just can't seem to figure this one out. I want to use the command line to connect to a MySQL database residing on another server. I went ahead and created the username and password for the user. I have also granted all privileges on that user for that database. When using the command: [CODE] , I get the following err...
MySQL's permissions are based on the host. When you CREATE USER (or GRANT) the user into existence, you provide a host name. It can be '%' or 'localhost' or any other IP or hostname. It's a security feature. You want this to happen. It's not "appending" the host name to the username when it tells you access denied. Eac...
7
10
10,420
2010-06-08T17:18:39.807
database_errors
serverfault.com
1,005,205
Unable to connect VPN client to OpenVPN server running Ubuntu 16.04.6
im a bit new to Linux and also rather stuck with this... any help here would be much appreciated... I am running Ubuntu 16.0.4 on my server and trying to connect a client to it but no luck. The client is not a device with a video connection or any way to connect to it at the same time that it is trying to establish the...
OK I fixed it... The problem was the install script I used. The one that worked in the end was: wget https://git.io/vpn1604 -O openvpn.sh It didn't need any changes whatsoever. It setup the TUN and just worked first time.
0
0
1,324
2020-03-01T16:58:27.513
infrastructure
serverfault.com
114,357
write_location and flush_location of pg_stat_replication view
I'm confused about the write_location and flush_location of pg_stat_replication view . The document say, write_location stands for last transaction log position written to disk by this standby server , flush_location stands for Last transaction log position flushed to disk by this standby server, is that any difference...
The two columns in pg_stat_replication are basically pointing out the difference between [CODE] and [CODE] From the [CODE] manpage: write() writes up to count bytes from the buffer pointed buf to the file referred to by the file descriptor fd. The number of bytes written may be less than count if, for example, there is...
1
1
1,023
2015-09-07T13:04:40.940
database_errors
dba.stackexchange.com
251,359
SQL Query- field calculation based on date
I'm writing a query for sales targets per week, however I'm getting a little stuck on this. Targets are per month, per year, so for example, Brand A has a monthly target (changes each month) The snippet from the report is as follows: [CODE] However the issue appears when the start of the week/ end of the week is a diff...
One solution to this problem would be to create a static calendar table. In the scope of your problem, this table would be important because there are holidays that must be considered when calculating the week's goals, as it is not fair to compare the targets an entire week with a partial week (holidays). The downside ...
0
0
45
2019-10-17T12:39:09.770
warehouse_errors
dba.stackexchange.com
141,668
ms/write on tempdb data files are dead slow
I don't know why writes on my tempdb data files are extremely slow. ms/write on each of the tempdb data files reaches to more than 800 ms!!! that's even after I moved the 8 equally sized (7GB) tempdb data files to separate drive on the HP StoreVirtual 4530 40TB SAS Storage SAN we have. The SQL Server we have is Standar...
[CODE] waits occur when a task is waiting for I/Os to finish. [CODE] occurs when SQL Server runs code in Windows. For example, if you run [CODE] , SQL Server spawns a command that is controlled by the Operating System. While the command is running SQL Server shows [CODE] as the wait since it doesn't know what the OS is...
1
1
1,087
2016-06-19T21:53:05.743
database_errors
dba.stackexchange.com
39,747
Lock escalation problem on a trigger
I've inherited a SQL Server 2005 database that is getting 2-3 deadlocks a day. I've tracked it down to a scheduled job that runs during the day and inserts into a table with a trigger. The trigger consists of 10 updates to another table for slightly different criteria. The deadlock occurs in the trigger. When a person ...
A create script for tableA including all indexes and the execution plans for the two UPDATE statements involved are required for a definitive solution. That being said, we can still combine the deadlock graph provided with knowledge of how SQL Server performs updates and have a very good chance of resolving this issue....
6
5
5,003
2013-04-11T11:18:23.463
data_quality
dba.stackexchange.com
947,204
Achieving stickiness on kubernetes cluster with ingress-gce
I'm trying to achieve stickiness on kubernetes cluster but I am redirected to a different pod every time I access the load balancer. I have session affinity set to 'ClientIP' and also tried with 'Generated Cookie'. I have the following backend Service set up: [CODE]
Seems like the problem here is that the Client IP that the service sees is the Load Balancer IP (this assumes you are using an ingress with your Node Port service). This article discuses this issue a bit more and provides a workaround. Alternatively, you can use Network Endpoint Groups which will essentially allow the ...
4
3
1,147
2019-01-01T10:26:21.680
pipeline_ops
serverfault.com
333,422
What are good metrics for determining the usefullness/impact of an index in a SQL server database?
Background I'm reviewing a database currently where someone applied indexes to almost everything in the database. Since we are now experiencing performance issues related to updating records, I'm trying to determine which indexes should be kept and which should be removed. Note: I do not have access to the source code ...
I would start with Brent Ozar’s First Responders toolkit. https://www.brentozar.com/responder/ There is an option in sp_blitzindex to list the indexes and the last seek, scan and lookup date.
0
0
49
2023-11-23T17:36:02.060
database_errors
dba.stackexchange.com
179,767
MySQL not using PRIMARY KEY to sort by default
I have a large MySQL table on 5.6.35-81.0 Percona Server with gaps in the PRIMARY key. The table has around 53 Million records and the auto-increment key is now at around 370 million. The table is a list of phone numbers and users add/delete the numbers very frequently hence the PRIMARY key which is BIGINT has gaps ins...
[CODE] like any other RDBMS do not sort results by default. You have to add [CODE] clause to get an ordered result. Otherwise the order rows are returned is undefined. In some degenerate cases you have a chance to get an ordered result without [CODE] - e.g. when you have bulk-inserted preordered rows into the newly cre...
2
6
7,680
2017-07-13T13:38:32.343
database_errors
dba.stackexchange.com
118,573
How to extract xml attribute from a column?
I have a column called [CODE] in the [CODE] that returns the path where the pertinent file resides in the format of xml tags. This data is not in XML datatype. One has to cast it to the XML data type. This is how the typical field in the column looks like: [CODE] I want to retrieve the [CODE] of the [CODE] i.e. [CODE] ...
The XQuery expression in the [CODE] function must return at most one value. Your expression [CODE] is saying that from all [CODE] nodes you want all [CODE] nodes and from those nodes you want the first [CODE] attribute. Given this sample XML: [CODE] Your expression returns all four filenames. Change the XQuery to [CODE...
1
1
2,471
2015-10-20T10:28:28.217
warehouse_errors
dba.stackexchange.com
259,095
Hidden memory usage on my openvz vps
I'm on a openvz vps and I have memory thats unaccounted for. When I run free -m it says I have 156mb used out of a vps with 256mb. Cached is 0, buffers are 0, shared is 0. But when I run "ps -faux" the memory usage is nowhere near 156mb and the total comes more to 50mb'ish. Ive also run rootkit hunter and chkrootkit an...
This handy tool might help decipher [CODE] better: vzfree --edit-- Are you sure this isn't the reason ? I notice a massive difference between a minimal Ubuntu build and a Debian build ... Debian doesn't grab all the memory: Linux ate my RAM !
3
1
791
2011-04-13T05:49:10.343
infrastructure
serverfault.com
333,750
Securing RDP access to Windows Server 2008 R2: is Network Level Authentication enough?
I am a dev with little admin expertise, administering a single dedicated web server remotely. A recent independent security audit of our site recommended that "RDP is not exposed to the Internet and that a robust management solution such as a VPN is considered for remote access. When used, RDP should be configured for ...
You really should not have RDP open to the world, even with NLA on. NLA does cut down on MITM attacks, but if you are using the default self-signed certificate for RDP access, you're not all too secure. One of the main reasons that you don't want to leave RDP open to the world is to prevent automated password cracking ...
2
4
4,827
2011-11-22T16:43:31.190
api_errors
serverfault.com
944,056
How to resize lxc/lxd images, if i am using LVM backend?
I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend. Ok, I checked, that if I need ext4. I have to use LVM. No problem, I created "Volume Group" and i marked to use this group...
And there is another option. You can ask LXD to do the resize for you. But it would not handle the resizing of the thinpool for you(if it isn't big enough). [CODE] Keep in mind, that in most cases, you need to restart the container. And also, there is a limitation of LVM, if there are snapshots from this volume, you ca...
2
2
4,277
2018-12-12T16:08:59.203
database_errors
serverfault.com
314,901
MySQL table keeps corrupting, need a simple fail over solution?
One of my clients servers recently crashed at the planet, we got an automatic email from them that they had to do a hard reboot. Since then mysqld stops running occasionally and then shopping cart stopped letting users add products to their cart. I found it was a corrupted table storing session data. This table has kep...
How about incremental backups of your raw datafiles ?
0
1
194
2011-09-23T16:28:06.677
data_quality
serverfault.com
405,777
How to pull SNMP information from Windows commandline without installing software
I would like to be able to quickly pull SNMP information via commandline such as device uptime. I noticed Net-SNMP's snmpget.exe can do this; but it looks like I need to install Net-SNMP first before I can use that executable. Isn't there any way to make this executable portable? When I simply copy it to another machin...
Windows does not come with a default SNMP client, so you would have to install software. I recommend the [CODE] suite. http://www.net-snmp.org/
3
7
71,395
2012-07-08T04:26:15.597
infrastructure
serverfault.com
310,991
how much memory and resources consumes cacti?
I want to monitor 2 production servers that delegate responsabilities in a distribuited maner, the most scarce resource in it is it's memory and data transfer. I was wondering how much of these resources will i be consuming additionally if i install this tool ? or if someone has a suggestion on a different tool based o...
This is entirely dependent on what you are monitoring (how many hosts, how many variables on each), how long you want to retain data for, and how many people will be accessing the data. A general answer for "two productions servers" is "not a substantial amount, but you shouldn't be running your monitoring software on ...
1
1
390
2011-09-13T17:43:06.883
infrastructure
serverfault.com
54,280
Multicollinearity(Variance Inflation Factor). Variables to remove before doing a model
I am doing an exercise of a Machine Learning System module in python that takes a dataset of cars (cylinders, year, consumption....) and asks for a model, being the variable to predict the consumption of gasoline. As it has three categorical variables, I have generated the dummies. In the exercise I need to eliminate t...
1) First, you need to do variable regression i.e for each column in your data set you do simple linear regression and calculate p-value... Thereby you get an idea of the significance of each column against the target variable. 2) plot influence plot check the cooks_d value [CODE] You will get cooks_d value from sm_fr d...
1
0
4,104
2019-06-22T09:33:57.223
data_quality
datascience.stackexchange.com
569,959
Impossible to connect ssh /root/.ssh/known_hosts': No such file or directory
I can't connect to my server with ssh. I have already started a session with ssh but i know if i quit this session, i won't be able to connect again to my server. [CODE] I try : [CODE]
The [CODE] file resides on the client. Are you sure you know what you are doing?
-2
5
9,433
2014-01-26T11:37:16.693
infrastructure
serverfault.com
929,470
postfix restrict mail relay for certain sender addresses ("MAIL FROM:") only
I'd like to configure postfix to relay mail from certain sender addresses only. Postfix should relay mail to different relayhosts(/smarthosts) (Gmail, AOL, ...) dependent on the sender's address ("MAIL FROM:"). So far, my current configuration works as follows: Users authenticate on postfix for mail relay in general. I...
You would need some limiting test before [CODE] . A prerequisite for this would be having separated smtpd on port [CODE] for incoming mail and another smtpd for submission on port [CODE] . Otherwise this limitation would cause incoming mail to be rejected as it won't pass the test. Then, remove the [CODE] from the port...
3
2
3,559
2018-09-04T23:49:10.120
api_errors
serverfault.com
652,340
Apache2 mod_define not working
I have used mod_define for Apache2 for a long time now in my Windows configuration. Now, I would like to move to Vagrant/Debian. However, I am facing difficulty reproducing the configuration in the virtual environment, which has Apache 2.2.22 installed. The first problem I faced was being unable to compile the [CODE] f...
This just seems to be a limitation of [CODE] and the [CODE] directive for apache v2.2. You can used defined variables in many directives, but not in [CODE] . FYI, It works with apache v2.4's native [CODE] directive
2
0
1,454
2014-12-13T12:41:02.383
infrastructure
serverfault.com
581,290
Can Apache be configured to ignore corrupt .htaccess files but respect them if they are correct?
I have a program writing and updating some RewriteRules in an .htaccess file (the main config is in the vhosts section). This works fine most of the time, but sometimes the file gets corrupt. When this happens, the server responds with 500 Internal Server Error for every request because the .htaccess file is corrupt. I...
Try the [CODE] option of the [CODE] Directive . This is supported by Apache 2.4 and above. You probably want to use this: [CODE]
1
1
332
2014-03-11T14:09:09.230
api_errors
serverfault.com
597,280
How configure roundcube to work with imaps?
I recently installed Postfix, Dovecot to setup a mail server on my own VPS ( using this tutorial: Email with Postfix, Dovecot, Mysql ) Imaps server uses port 993 for Authentication, and Postfix uses port 25 to send mails. In this tutorial, users stored in a Database ( so imaps use mysql to authenticate users). i'm sure...
In my config : [CODE] I know that it is not the doc, but it is working. Think about certificate : it should be compliant with your domain.tld
7
7
29,214
2014-05-20T17:21:24.130
api_errors
serverfault.com
90,535
Windows Authentication behaves oddly when VPN'd
We've got a few apps that rely on windows authentication - a couple of web apps with AD auth turned on and we usually connect to our SQL servers with windows auth. This normally runs without a hitch. It doesn't work so well if we're VPN'd to a client site though. SSMS Opening SSMS normally from the start menu, then pic...
I was also having this same issue and found the solution here: http://social.technet.microsoft.com/forums/en-US/itprovistanetworking/thread/275599f0-6239-46a5-8245-50a5c13a2713/ You'll need to locate your VPN connections .pbk file. You can find it here: C:\Users\{WindowsLogin}\AppData\Roaming\Microsoft\Network\Connecti...
9
10
10,738
2009-12-03T08:36:24.993
database_errors
serverfault.com
160,234
What are the problems which I will face if all the classes I use are loosely coupled
Loosely coupled classes gives flexibility. If I understand it right, Event flow, Observer Pattern and Design Patterns like MVC focus on loose coupling. So in this context I am aiming towards making a project where all the classes are loosely coupled. So, for example I have a class A that uses B: then instead of [CODE] ...
There are many kinds of coupling other than those you have described. Anything that makes one piece of code change because another has changed is coupling. All coupling can't be avoided because you will need to have different bits of code work together. Coupling isn't the only concern you have anyway, so there are trad...
1
3
406
2012-08-09T19:09:50.750
api_errors
softwareengineering.stackexchange.com
41,928
How to autoupdate Chrome-driver in Selenium?
Every now and then when the Chrome is updated, the existing chrome driver used in the script becomes invalid and the below error message is displayed: [CODE] I have to manually update the chrome-driver in the written script. Is there any way to update it automatically with the updated chrome version?
Yes, it can be done. You need to follow these steps , and you need to choose a tool in which you implement them. Let's have a look at a few lines in Python, I'll outline the main flow and you might want to build it more powerful (like command line parameters etc.) First I'll import [CODE] : [CODE] Then I'll save the ne...
18
4
57,855
2019-12-20T19:58:05.483
data_quality
sqa.stackexchange.com
924,268
VM export to OVA failed on vSphere Client 5.5
If I want to export a VM on the vSphere Client to an OVA-File I get the error-message "Operation timed out". The VM has a size of ~3.5TB - I think thats the main problem because all other exports are successful. Is there a workaround or something else to solve this?
You can try to export it using the PowerCLI cmdlet [CODE] . I found it to be more robust than the vSphere- and WebUI-Clients. [CODE] Don't let the name of the cmdlet fool you, it's not only for VApps, it works with single VMs as well.
0
2
1,350
2018-07-31T13:40:39.303
infrastructure
serverfault.com
644,576
TCP piggybacking introduced by a man-in-the-middle network node beween the client and server?
When wireshark trace taken on the client side it appears to be: [CODE] But when wireshark trace taken for the same traffic on the server side it appears to be: [CODE] Where the HTTPGET packet appears to be the ACK for the SYN-ACK since it has the same sequence and ack number as the previous ACK packet. Same thing happe...
After looking at lots of changes happening to the packets in transit, I finally spotted one which could plausibly explain why the client is considering the data packet from the server to be out of sequence. Look at the timestamp option, in particular look at the time stamp value field on packets from server to client. ...
2
1
1,646
2014-11-15T12:36:17.827
data_quality
serverfault.com
250,642
My message did not reach some or all of the intended recipients ? Outlook & Exchange Server 2007 SP1
Can anyone explain to me as to why I cannot send email to my client while I can do it from Gmail without any problem at all? Here are the error messages: [CODE] I'm using Exchange Server 2007 SP1 with CCR and 2x CAS-HT combined for redundancy and then sent to the Smarthost (Solaris box) then it goes to the ISP. I found...
As described, you have 3 points of failure, and 4 places to look for diagnostic data. I'll assume that you have sent other email using this method, and that you can't think of a way the new mail differs materially from the old. Based on that, I suggest you start at the boundary of your domain of control, which would be...
0
1
6,337
2011-03-23T04:05:34.713
api_errors
serverfault.com
678,750
How to apply xNetworking xIPAddress Desired State Configuration (DSC)?
Using Windows Server 2012 R2. The goal is to set the IPv4 address of a server. As DSC correctly states in the verbose message below, the Expected [ip is] 192.168.0.203, [while the] actual [ip is] 192.168.0.205 The following error message: [CODE] ... is thrown when applying the following xNetworking DSC configuration: [...
The solution was to remove the default gateway from the configuration: DefaultGateway = '192.168.0.1' It appears that if there are any configurations in addition to the basic ones (IPAddress, InterfaceAlias, SubnetMask, AddressFamily), DSC will focus on the additional items and consider the basic ones as references. Co...
1
0
2,906
2015-03-27T14:50:37.453
infrastructure
serverfault.com
111,886
Apache "No Permission" - 403 forbidden
I've accidentally performed a wrong chown update this morning and now my /var/www permissions are all wrong. I'm unable to access anything anymore, apache will always say I do not have permission to view this page, like: You don't have permission to access / on this server. (even after chmodding everything to 777, or c...
A number of things could be going wrong. First thing is to look in your error log (maybe in [CODE] ) and look for the Apache reason for failing to serve this location. Next is to check your directory permissions up to your document root. E.g. if your document root is in [CODE] then you need to ensure the Apache user ha...
5
4
10,653
2010-02-11T12:50:55.163
api_errors
serverfault.com
808,346
Nginx non-www redirect to www with SSL not working
I have been working with this for hours and still can't see what's the problem with my config. Kindly see below. /etc/nginx/sites-enabled/default [CODE] When I try to access example.com , www.example.com it redirects to https://www.example.com (which is what I want) but the page is not working unless I remove the last ...
Just as a summary, the correct way to configure these redirects is: [CODE] So, we have a server block for http for domains [CODE] and [CODE] doing the redirects. Then we have a server block for https for domain [CODE] doing the redirect. Then we have the server block for https for domain [CODE] , which contains the set...
1
2
1,787
2016-10-11T12:47:58.667
infrastructure
serverfault.com
15,149
Output a word instead of a vector after word embedding?
I'm trying to play around with a toy implementation of translation or text-summarization. I understand now that most people use an embedding layer before whatever model they use, which produces something like 300-dimensional vector. But what does the model output? Like for a encoder-decoder model, it's inputs are seque...
This answer describes how you go from a vector in the embedding space back to the the most similar class (e.g. word or character).
4
2
5,673
2016-11-15T22:40:58.460
data_quality
datascience.stackexchange.com
1,059,093
How to restrict access between folders on the same virtual host
We plan to host WordPress Blog and an Ecommerce store on the same domain, so the URL's will look like this: [CODE] Our main concern is the security of the e-commerce store. We don't feel safe hosting both CMS in the same document root. Are there some best practices for how to securely host multiple CMS on the same doma...
You can set up multiple PHP-FPM process pools in different chroot environments. Then, all requests except [CODE] would be redirected to the PHP-FPM store pool and [CODE] requests would be passed to blog pool. Running the pools in different chroot environments ensures that one pool cannot access files for another enviro...
0
2
175
2021-04-01T16:43:47.830
infrastructure
serverfault.com
408,796
i've done a mistake with SDDL and now i can't access a service
I had a task to allow some non-admin user to restart a service. I've used the SDDL way in order to allow him the restart, the problem is, that i mistakenly added only the new SDDL without the whole permissions it had and now i've lost all control on the service apart from the non-admin user which is able to restart it....
Tony - after overriding the acl's of the service no user had any admin access to the service, the only access i had was with the non-admin user and he could only stop/start the service. Solution: I deleted the service settings from the registry and then i was able to re-install the service, now it works as it should.
1
1
134
2012-07-18T10:41:06.510
infrastructure
serverfault.com
135,097
How to recover auto committed transaction in Oracle with normal privilage
I have updated the table & need to rollback that changes. I have tried Rollback work command but data still not rollback. I have also tried Flashback command but it is not working because "row movement is not enabled" Could you please help me out. I don't have DBA access as well, still I need to recover the data.
You cannot recover the committed transaction with a normal privilege. However, you may be able to ask your DBA to flashback(If the database is set up with flashback enabled for tables and [CODE] has set approximately)the table to a specific point in time, or,assumin they are using hot backups, Database Point-In Time Re...
0
1
1,332
2016-04-12T12:44:26.437
database_errors
dba.stackexchange.com
163,768
VPN through only http
I have got two machines. One running behind an HTTP proxy which only allows http connections to internet. (FTP, SSH everything else is not allowed through this network). Second machine is a server with a public IP connected to internet. I can install any software on both these machines. Is there any tool that will help...
Openvpn supports operation over an http proxy. Its client is available on most desktop platforms; the server is available on most unixes. Pro: you can use any network protocol transparently (including UDP and streaming). Con: some setup required; the overhead is noticeable in some applications; you need admin rights on...
6
5
26,097
2010-07-24T19:46:03.070
infrastructure
serverfault.com
117,068
mysql 5.6 gtid replication slave stuck (system lock)?
I have set up 5.6 gtid based replication (on 5.6.26) it seemed to work when I did it, it replicated my random test db over that I created beside normal data. However at some point something must have happened because all I see is this: mysql> SHOW SLAVE STATUS\G *************************** 1. row **********************...
Since I see more than 2 [CODE] entries in the processlist, I would assume you are using Multi-Threaded Replication ( slave_parallel_workers > 1). That looks like a bug Bug #73066 : Replication stall with multi-threaded replication Bug #72794 : Relay log without xid_log_event may case parallel replication hang On Oct 29...
1
0
6,405
2015-10-05T18:46:23.613
api_errors
dba.stackexchange.com
412,469
Inspection code reviews, is it outdated today?
I'm a big proponent of peer reviews on every change, like with pull requests etc, however I'm questioning if this type of review alone is enough. For one, I have trouble with reviewers 'missing the forest for the trees' so to speak. Their focus is on the changeset and often fail to consider future or past integration, ...
You, your team and your organisation are the only ones that can define what should be expected of a code review or even if one is needed at all. In some organisations code review is mandatory to ensure some quality, in others it's developer works and they don't know/don't care. Also if code review is mandatory in your ...
-3
1
117
2020-07-08T02:28:44.247
data_quality
softwareengineering.stackexchange.com
78,647
How do I diagnose slow file transfers from NIC errors/collisions?
I recently attempted to transfer a 3 GB file to a machine on my LAN using rsync -azvP. I noticed I was only getting 50kpbs. Both switch ports are 100/full. When I do an ifconfig, here's what I get: [CODE] I noticed: TX packets:864422049 errors:16806813 and collisions:20239785 Looks like I'm getting errors and collision...
I found ethtool which allowed me to diagnose that my NIC auto-configured to 100/half. Changed it to full and was problems went away.
0
0
620
2009-10-27T12:16:06.250
infrastructure
serverfault.com
152,147
Lots of artifacts while streaming HD content with VLC 0.9.9 on CentOS
I'm trying to stream (multicast) a x264 encoded file using VLC. This in itself succeeds, but the stream has a huge lot of artifacts. This seems to suggest that the data cannot be transported fast enough. If I check network usage, though, it's only using about 15 mbit. I have a similar SD stream which functions perfectl...
It's probably packet loss. Are your switches optimizing multicast or just flooding the traffic out all ports? You can transcode the stream - I use something like [CODE] keyint specifies how often to put a keyframe in the stream - the lower it is, the better the stream will recover from dropped packets in my experience.
1
0
1,937
2010-06-17T15:28:55.280
infrastructure
serverfault.com
271,757
Trouble connecting to Oracle database with sqlplus and OS authentication
I am a read-only user to an oracle database, and the DBA gave me two accounts, one with a specific user name and password, and another with OS authentication. The OS authentication is supposed to let me connect by authenticating with my active directory user account that I use to login to my laptop, where I am then run...
For anything looking for an answer: I was connecting the correct way. On the backend, remote_os_authent was set to false, which would not allow this kind of authentication.
1
1
2,003
2020-07-28T05:05:50.673
api_errors
dba.stackexchange.com
647,339
VSFTPD hangs when running a command on RHEL6
I'm working to set up a vsftpd server for the first time. This is an openstack VM, so our security and cloud teams have a bunch of default configs that are applied automatically to the vsftpd instance. Here are our configs (dictated by our security team): [CODE] I created a local system user for ftp called ftpuser. My ...
FTP is always problematic with firewalls because it uses a separate connection for the data. With active FTP the data connection is back to the client, so it may get blocked by the client firewall (or possibly zealous outgoing rules at the server end). With passive FTP a second connection is made to the server, which m...
0
1
3,321
2014-11-26T18:11:34.597
infrastructure
serverfault.com
43,065
How to generate JMeter Composite Graph using CLI?
I have a test plan with Composite Graph inside it. Everything is working fine when using GUI. Unfortunately, I got this error when trying to generate that graph using CLI : [CODE] What did I missed here? What does that [CODE] actually means here?
Looking into Plugin Type Cases I fail to see [CODE] there: AggregateReport = JMeter's native Aggregate Report, can be saved only as CSV SynthesisReport = mix between JMeter's native Summary Report and Aggregate Report, can be saved only as CSV ThreadsStateOverTime = Active Threads Over Time BytesThroughputOverTime Hits...
3
1
573
2020-03-24T17:48:29.593
data_quality
sqa.stackexchange.com
333,326
Combinations of a password
I am trying to encrypt a password for my school project. Here is the process: Let's assume that I have a string [CODE] ( [CODE] characters long) which contains the password. The program reverses the string and stores it in string [CODE] . It takes each character of [CODE] and [CODE] , applies the XOR operator and store...
No brute forcing is needed. Given the "encrypted" string [CODE] , I can produce a fake password [CODE] which your system will accept, very quickly. The algorithm to do this is: Let [CODE] be the first [CODE] characters of [CODE] (where [CODE] indicates integer division, rounded down). Let [CODE] be [CODE] with [CODE] z...
-1
0
156
2016-10-11T07:56:05.493
api_errors
softwareengineering.stackexchange.com
533,322
High-traffic, low disk utilization AWS solution
I've got a high-traffic (imagine tracking server) node.js server that's going to run on AWS EC2. There is no disk operation involved, but a lot of DynamoDB requests (in same zone), ElastiCache usage and as I said - a lot of network I/O (small packets, What would be best solution for this situation? A few smaller-scale ...
Go to the AWS instance type page. Look at the [CODE] column. Pick one with [CODE] . Run with it and see if it works out. (or even better, benchmark it!) If it's too slow, upgrade to something with [CODE] . Experience tells!
0
2
650
2013-08-23T16:47:52.253
database_errors
serverfault.com
165,237
Relating two fields of one table to one field of another
I have two tables that look as such: [CODE] Basically an application can have one or more dependencies that must be complete prior to executing. In Table2, both [CODE] and [CODE] relates to the ID field of Table1, but I'm having a difficult time linking these together with SQL without getting errors. What is the correc...
Use view designer, add Table2, then add Table1 two times. Select Table1.ID and drag till Table2.App and do the same with Table1_1 and Table2.Dependency. [CODE]
1
1
312
2017-02-22T22:13:48.503
warehouse_errors
dba.stackexchange.com
52,601
Indexing a PK GUID in SQL Server 2012
My developers have setup their application to use GUID's as PK for pretty much all of their tables and by default SQL Server has setup the clustered index on these PK's. The system is relatively young and our biggest tables are just over a million rows, but we're taking a look at our indexing and want to be able to sca...
The primary problems with GUIDs, especially non-sequential ones, are: Size of the key (16 bytes vs. 4 bytes for an INT): This means you're storing 4 times the amount of data in your key along with that additional space for any indexes if this is your clustered index. Index fragmentation: It is virtually impossible to k...
14
21
14,723
2013-10-31T16:27:55.433
warehouse_errors
dba.stackexchange.com
365,267
WPF, Dialog Service as injectable Service or a Static class
The background In MVVM, we tend "not" want to couple windows to view models for various reasons. Though from the very second screen on your application you start hitting this conceptual grey zone. The problem You see viewmodals tend to want to open windows/Views (its just a fact of life). Windows/dialog APIs tend to li...
Your current approach sounds like the Mediator Pattern. Which is a recognised solution to this kind of problem and several other cross ViewModel communication issues. However, I do agree that it can get messy. especially with something as simple as wanting to open a new window and you have them everywhere. Indeed in th...
1
0
2,907
2018-02-04T04:26:38.187
api_errors
softwareengineering.stackexchange.com
999,723
ssh/tcp no route to host admin-prohibited
I have two servers, .105 and .104, and I am trying to troubleshoot 'no route to host' issues when .105 tries to connect to .104 over ssh or tcp. .104 has a service running on port 16000. .105 used to connect to .104 via port 16000 but .105 had to be rebuilt and is now unable to connect to .104 now over that port. .105 ...
Looks like having a separate nfs zone that had .105 for the source is what did it. Once I deleted the zone, .105 could ssh and also connect on port 16000/tcp.
0
0
1,302
2020-01-21T00:03:39.967
infrastructure
serverfault.com
491,827
ubuntu distribution upgrade got corrupted
I was trying to upgrade the distribution of my ubuntu 11.10. The process got stuck in between. I restarted the PC, and when trying to run the dpkg command I get the error below - [CODE]
You weren't using [CODE] to update the system, were you?! Try recovering with [CODE] .
-1
2
468
2013-03-27T14:26:47.600
data_quality
serverfault.com
148,867
Using a DSN database connection is a bad practice?
During all my professional lifetime that I have been programming in Windows enviroments, I advised my friends and coworkers to not use a DSN database connection in their applications, based on my own personal conclusions, but I really haven't seen any evidence of them. I know that using a DSN connection via ODBC data s...
I'll go out on a limb and say no it is not "bad practice". It is a tool intended for flexible implementations. I might never use it myself as I'd prefer to use the native api for database connections but it clearly has a purpose. If you are writting client-ware to connect to arbitrary databases in different work enviro...
3
4
3,520
2012-05-16T15:47:43.227
api_errors
softwareengineering.stackexchange.com
115,425
How to manage very large amount of data in mysql
I have a table in MySQL in which I write logs of users in a specified format. It have just 2 columns:id (auto-increment), log. Currently data is very less, so I'm using this. Now there is a requirement which involves insertion of very large amount of data, (may be 60-70x of current), that may even involve concurrent in...
Use a "staging table". Insert the unprocessed data into a separate table, then remove it when processed. How big will the table eventually become? A million row -- no problem. A billion rows -- let's discuss more details. For really high speed ingestion, see my blog .
0
1
3,794
2015-09-18T07:12:32.953
database_errors
dba.stackexchange.com
227,381
operand should contain 1 column select query mysql
[CODE] That query though gives me an error: [CODE] What stumps me is that I would think that this query would work with no problem. Selecting columns, then selecting two more from another table, and continuing on from there. I just can't figure out what the problem is. Is there a simple fix to this, or another way to w...
When you do this: [CODE] That subquery (for [CODE] ) is expected to deliver one value, not several. To get multiple columns from two tables (as you are doing for other tables): [CODE]
-1
0
4,344
2019-01-17T14:00:29.510
database_errors
dba.stackexchange.com
241,497
Do I need a Primary Key if it's already an Index
I have a bunch of tables with no Primary Key. Some do already have a non clustered index comprised of what would be the Primary Key (ClaimID, LineNBR). The columns used are currently set to accept NULLs so i would need to alter that. Is there value in creating a Primary Key for this and would that make having the non c...
Table usage patterns are the main driver of if you need them or not. In OLTP workloads, you usually do want them. If you're just dumping data into these tables and reporting off them in big ol' scans, they're likely less valuable. And while you may not need a Primary Key at all, adding a clustered index can help you av...
2
4
65
2019-06-26T21:01:28.720
warehouse_errors
dba.stackexchange.com
303,951
finding a spamming computer on the network
Possible Duplicate: How do you detect a spambot on your network? Our network of 120 windows machines has 1 or more computers sending spam. Is there an easy way to find that machine, without physically checking each one.
First of all, block all outgoing SMTP-traffic from machines that don't need it. Then you could check your firewall for hosts trying to access SMTP-servers. Or you could turn on port mirroring on the border/edge-router and attach a PC with a packet-sniffer on it. Shouldn't be to hard to get the spammers with WireShark.
2
1
948
2011-08-22T23:09:04.440
data_quality
serverfault.com
189,218
What is the best high-performance solution for server side
We are building the server side of some gaming platform where a great load of mobile devices (thousands, if not tens of thousands) connect to a server, send some small information each second (let's say about 500 byte) and receive some small response based on calculations (about 1Kb). The data has a RDBMS back end (sql...
If a full relational database isn't a necessity, some of the NoSQL solutions scale much bigger/easier/faster than standard relationsal databases. Whatever you do, unless you like maintaining hardware, I suggest a cloud architecture If you need full system control, look at Amazon EC2. If you do decide to move it in-hous...
0
0
172
2010-10-08T23:14:04.053
api_errors
serverfault.com
193,760
Empty v$asm_diskgroup with sqlplus
I have an Oracle Database instance installed under an OL7. It is a 12c2. Oracle GI also installed and my database has some files stored in ASM. I am using sqlplus to connect to the database instance and query [CODE] . My [CODE] points to the home of my database instance. When I connect without specifying a "@CONNECTION...
@BalazPapp answered the question in his comment. When I connect with "sqlplus / ..." ,it seems bypass listener... Then, it creates the server process under some other user (I'm calling the sqlplus with the root). Also, I did another test: testing with the oracle database instance owner, all works fines. The oracle owne...
2
0
2,865
2017-12-21T15:45:32.740
database_errors
dba.stackexchange.com
34,141
Change SQL Server 2008 name
I want to change my SQL Server's name. Currently I am connecting to [CODE] . [CODE] is the machine name. I want to change it so I could connect to [CODE] and keep [CODE] as the machine name. I tried: [CODE] Then I restarted the server. If I verify I get the new server name: [CODE] Looks like the name was changed but i ...
If you aren't changing the physical server's name you'll need to change the name that SQL Server knows back. [CODE] You then just need to put an alias in DNS so that when people try to connect to SERVER2 then are redirected to SERVER1 without knowing about it. Specifically you'll want (or you'll want your sysadmin) to ...
2
5
171
2013-02-05T12:44:06.387
database_errors
dba.stackexchange.com
294,149
Converting static utility class into singleton
In company where I work we have lots of "utility" classes, each has lots of code inside (thousands of lines), and they are all static. And one static methods call anothers. The problem here is that when you want to test other classes you have lots of pain when tested function uses these static utility classes inside be...
I'm all for fighting fire with fire, but turning bad code (lots of static methods) into other bad code (lots of singletons) doesn't sound like such a good idea to spend time on really. From what you have written, this is all in a legacy code context, but you do have change access to the source where those static method...
3
6
5,218
2015-08-20T10:35:42.187
api_errors
softwareengineering.stackexchange.com
205,770
DFS Replication across Hyper-V servers - duplicate GUID's
4 Hyper-V instances of Win2003 Server with 2 VHD's each (All based on same Win2003 VHD that i copied 4 times, everything seems to run just fine) Trying to use DFS replication to keep some folders in sync but it fails with an error saying that a duplicate GUID has been detected. I understand the error as the VHD's are c...
Simple answer: Copying VHD files without running sysprep on them to reinitialize the Windows system to a new SID causes problems. You can copy the VHD files, but you need to sysprep / them.
0
1
884
2010-11-24T21:44:24.483
database_errors
serverfault.com
55,503
MySQL: What is the most optimized way to use datetime type field in query
I am working on optimization of some slow queries in my application. I found a query in which datetime comparison has been used. Below is the subquery: [CODE] Below is the explain result: [CODE] What is the best way to handle datetime comparison towards improving such queries. Below is the table structure: [CODE] Below...
Thanks for providing the details. First of all, the filter on the query itself is what it is - there is nothing special you can do to improve datetime as opposed to any other type of column. However, from the index definitions, it looks like the indexing on the table is not well suited to support this query. The mySQL ...
2
2
4,790
2013-12-23T14:19:26.957
database_errors
dba.stackexchange.com
77,134
SQL Server cluster resource won't come online unless its on port 1433
The 2-node SQL Server 2008 R2 cluster works fine until one of the resources got removed. I successfully added it back. However, the cluster is not able to online the SQL Service unless it is on 1433 and not the port I was using before. Below is the application error log: [sqsrvres] checkODBCConnectError: sqlstate = 080...
A default instance install (instance name of MSSQLSERVER and on port 1433) will disable the SQL Browser service because 1433 is assumed. On a clustered SQL install the cluster service will try to connect tot he instance and run a "select @@servername" in order to show that the server is up, but because it's a default i...
5
2
2,031
2014-09-20T01:47:16.957
database_errors
dba.stackexchange.com
151,876
Why aren't my old DLL's running with my app pool in 32bit mode?
I am moving my websites from a server 2003x86 environment to a server 2008x64. the 2008 server is using iis 7.5 and the app pool I am using is configured for 32bit mode. I get an error 'Server object error 'ASP 0177 : 800401f3' Server.createObject failed.' I beleive that it is in the DLL's that all the ASP sites point ...
Given the dearth of specifics in your question, I can only make a educated guess. Since you moved from Server03 to 08, I can only assume that you were using an older version of IIS. That being said, you probably need to install the IIS 6 Management Compatibility add on that's found in the IIS role. The ASP error you ar...
0
0
634
2010-06-16T19:51:54.950
api_errors
serverfault.com
270,652
How safe is it to run cygwin sshd on a windows 2003 domain controller
I have already installed cygwin (running sshd) on windows 2003 DC several times. But now another admin who is actually responsible for this domain asked my if this is really safe. Edit: : I changed the question to make it better fit the accepted answer. I have moved the other part of the question that I had originally ...
In general you want to avoid having excess services installed on servers. Given the sensitive job of Active Directory domain controller computers (storing user credentials and performing authentication) you should be even more concerned about them than, say, a file server. Having said that, though, a server computer wi...
1
4
1,176
2011-05-17T18:41:20.363
infrastructure
serverfault.com
273,059
Algorithm for a fast search
I am looking for an algorithm (pseudocode, R code) for my problem here. This looks like a lot to read but is actually very very easy to read, and I am just trying to be verbose. I have a list (say [CODE] ) with 8 million elements. They look like this: [CODE] What these elements represent are coordinates on a DNA string...
As you've noticed, nested loops can get to be expensive. 8 million iterations of the outer loop times 100 iterations of the middle loop times (I'm not sure) iterations of the inner loop leads to a lot of processing. I think you're on the right track though - try to eliminate as many of those 8 million coords as possibl...
1
0
636
2015-02-12T20:36:49.520
api_errors
softwareengineering.stackexchange.com
27,071
Slow insert with MySQL full-text index
I use a full-text index in a MySQL table, and each insert into this table takes about 3 seconds. It seems that MySQL rebuilds (a part) of the full text index after each insert/update. Is this right? The table has about 30 [CODE] and [CODE] fields, some indexes on varchar-fields and a fulltext index over the three field...
It must be as quick if not quicker to do: [CODE] Do many [CODE] s into [CODE] [CODE] Repeat as required.
6
2
3,234
2012-10-17T04:21:42.337
database_errors
dba.stackexchange.com
919,791
NGINX default_server ssl redirecting everything
I am having an NGINX emergency where multiple websites are correctly defined as hosts with their URL set. The problem is when I make a default handler in NGINX all the SSL connections get redirected and fail. HTTP still works correctly with the default handler. I have specifically set server_name and yet it still redir...
This kind of behavior might be due to incorrect configuration of SSL certificates. Try adding some kinds of certificates, like in this answer . In my case, there was also something else missing: [CODE] Don't ask me why, without it the whole nginx was just broken. Nginx version 1.12.2. The whole working example: [CODE]
0
0
2,190
2018-07-06T14:50:25.837
infrastructure
serverfault.com
269,148
SQL Server Cannot Create Transactional replication Error 14013
I am trying to create transactional replication but encountered the following error: Please help, [
You can follow these steps before setting up a Publication. Tutorial: Prepare SQL Server for replication (publisher, distributor, subscriber) Create Windows accounts for replication. Prepare the snapshot folder. Configure distribution. I believe you skipped this. If not, please edit you question with the steps you alre...
0
0
322
2020-06-14T23:31:31.597
api_errors
dba.stackexchange.com
161,961
Supplied parameter sid is in use
I'm trying to copy a user from my live server to my DR server using the following command: [CODE] I then get an error: Msg 15433, Level 16, State 1, Line 1 Supplied parameter sid is in use. So I check the sys.syslogins with: [CODE] This finds nothing. So my question is what else could be using this sid?
As @SteBov noted in his comment , comparing the sid with quotes around it is problematic since that forces an implicit conversion to be performed against the sid column. Since the conversion converts the hexadecimal value into a character value, you will never see the login in the query results. If you check the execut...
2
2
7,161
2017-01-23T12:19:13.483
warehouse_errors
dba.stackexchange.com
72,936
Outbound HTTP performance tuning recommendations
I'll detail my exact setup below, but general recommendations for a better web-browsing experience will be useful. A nice checklist of things to try would be great! I have 600 users on a single site with an 8MB leased line. I get a lot of moans about the performance of "the internet" (ie web-browsing). What recommendat...
So, this was asked a loong time ago, but I'll chime in nevertheless. You're already doing most of what there is to do. There are a few more things to try, but with 600 people using this, maybe it's just time to pay for more bandwidth? Thoughts: First off, what does your bandwith usage look like? I can't remember if tho...
1
1
279
2009-10-09T13:42:20.850
api_errors
serverfault.com
990,920
While schedule below script through crontab receive incorrect output date format is going wrong
[CODE] Output1: Script run manually using sh -x (script name) output comes in as per below format(Coorect) [CODE] while schedule on crontab the output comes in below format only date format issue(date issue 4.11202e+06) [CODE] Kindly help me with this
most likely your locale variables are not in cron environment. check the values of LANG* and LC_* in your shell env and set them explicitly at the beginning of your script, e.g. I have [CODE] so I would put an [CODE] at the beginnning of the script
0
0
175
2019-11-07T07:04:10.803
infrastructure
serverfault.com
291,670
SQL Server Query Performance Severely Regresses due to High Memory Use
Moved from StackOverflow . Scenario I have a ASP.NET Core 5 (.NET 5) project that deals with GPS devices and generates roughly 6-8GB of data per day. For the past several months I've been working on improving the reading and writing of this data. For reading I've completely, I think, removed EF Core and replaced it wit...
After several days of reading up on SQL Server's internals, I finally solved my issue. Here's how: I started out with sp-Blitz as @FrancescoMantovani had suggested in his recommendations. It pointed me to some interesting things, mostly that I shouldn't be using UDFs on computed columns. I happened to have many UDFs ba...
0
0
631
2021-05-16T20:19:18.340
database_errors
dba.stackexchange.com
159,335
Writing a function to insert the rows in a table from some other table
I have a requirement to write a Postgres function to insert rows into one table from the other tables. But the problem is that only few columns needs to be set from the rows of the other table rest I need to set by myself. In below table i just to fetch the [CODE] from some other table rest column I will set as hard co...
This is basic [CODE] and [CODE] syntax: [CODE]
-4
2
246
2016-12-28T13:28:12.627
warehouse_errors
dba.stackexchange.com
1,010,859
Preventing Script Injection from ISP (Proxy Analyzer) through VPN
I'm using Sophos SSL VPN Client. But I'm using BSNL ISP. Whenever I connect my VPN and browse any HTTP non-secured websites ADS gets injected into the JS script file. But when I disconnect a VPN and browse any non-secured websites. Script injection doesn't happen and ADS won't display But my question is how does my ISP...
...my question is how does my ISP BSNL recognizes that I'm browsing a non-secured website after connecting to the secure tunnel... Looking at your routing table (after the VPN is up) the traffic to the wider Internet is still going via your ISP, not across your tunnel, which is why your ISP can intercept it. If you loo...
0
1
461
2020-04-04T05:31:55.077
infrastructure
serverfault.com
401,131
How to properly decouple using interface
I have a ecosystem simulation where animals move and collide with each other. Here is how I handle collisions: [CODE] This code is a part of my ecosystem class. It was suggested that I take this code into a separate class, implement a interface and use it instead. This way it becomes testable. The problem is: whenever ...
So right off the bat, I find that when you are cross-comparing a lot of classes, one approach is to back up and ask yourself if the classes you have written should be recomposed as DATA, not as classes, at least for the point of contact in your app where they intersect. So to begin with, I'm going to give you an exampl...
3
0
174
2019-11-15T14:12:31.880
api_errors
softwareengineering.stackexchange.com
894,390
How to setup a GRE 3 host mesh without loops and forwards with OpenVSwitch?
I'm setting up a quite simple 3 host Proxmox (Debian) HA cluster. All VMs should be in the same subnet and when one fails over to another host inside the VM no reconfiguration should be required and connectivity to all VMs on the remaining hosts should remain. I can achieve this fairly easy with OpenVSwitch GRE tunnels...
I suggest you to try it with some SDN controller. Maybe you can use ONOS or Open Day Light. Or if you want to some flexible exploration you can use Ryu controller, here is some Ryu controller with web GUI https://github.com/dektiram/SDNColdBrew
3
1
1,621
2018-01-27T10:25:02.627
infrastructure
serverfault.com
440,757
Java Library - How to do Pure Dependency Injection When State is a Factor?
To set the stage, I am trying to do pure dependency injection for a Java Library I am creating to make it more testable. As it is a library, I want to do pure dependency injection without creating a DI container/composition root as discussed by Mark Seemann in his blog posts*. The problem I am running into is that I ha...
I don't typically think of visitors as a dependency that you would inject. Visitors are just a control flow mechanism, an object-oriented switch statement of sorts. Any state within the visitor is analogous to local variables you might otherwise define in the caller's scope. You also usually know exactly what type of v...
0
2
507
2022-08-31T20:38:46.337
pipeline_ops
softwareengineering.stackexchange.com
128,696
Performance improvement after table analyze
I used a function that contains 3 tables a,b, and c. Table a has an index ind1 on two columns. I call a stored procedure that contains code and gets data using the above function. I analyzed my session it gives a direct path read event, and produces output in 1 minute. When I analyze the above 3 tables, the procedure r...
Oracle's optimiser is clever, it makes decisions about how best to do certain things (e.g. joins) based on what the contents of the tables are. At least, it can do if it knows what the contents of the tables are. The optimiser uses table statistics to achieve this. If it knows that there is a particular type of data, o...
2
1
1,016
2016-02-09T08:58:45.390
database_errors
dba.stackexchange.com
782,233
Updating a non-Microsoft DNS
I need some PowerShell tool or .NET library or that uses the DNS protocol directly, as I need to perform dynamic updates on a non-Microsoft DNS, while WMI and DNS cmdlets only work for MicroSoft DNS servers. I've tried the ARSoft.Tools.Net library , but I always get a FormatError return code (see example below). Are th...
From having a quick look my impression is that the current ARSoft.Tools.Net versions (tried 2.2.4 and a few spot checks of versions before it) appear to be bugged with regards to TSIG signing. There appears to be an error causing the TTL is included twice in the [CODE] record, which obviously offsets everything after, ...
0
2
119
2016-06-06T14:02:38.460
infrastructure
serverfault.com
289,042
Table design comment_seen vs comment_unseen — migrate data from one to another
I have system that allows comments posted by users and tracks which users seen which comments . The read/unread state is tracked within [CODE] table. Surely enough, it grow tremendously. My goal is to move from [CODE] table to [CODE] . Read/Unread status is only tracked for comment author and users in admin group (eg. ...
(Addressing first question) Toss [CODE] ; instead, use a [CODE] or [CODE] For [CODE] , replace [CODE] with this (Note: a PK includes a uniqueness constraint): [CODE] If you need to look up which users have seen a comment, add [CODE] There is no need to also make that [CODE] ; in fact, there is some harm.
0
1
80
2021-03-31T18:28:26.287
pipeline_ops
dba.stackexchange.com
19,673
What are the 'must know' Emacs commands?
I'm a fairly new convert to Emacs and I really love it as an editor, primarily because I keep finding new and super-useful commands. Are there any other programmer 'must known' commands missing from my list? [CODE]
C-h a -- Apropos search functions C-h b -- runs describe-binding C-h k -- runs describe-key C-h f -- runs describe-function C-h v -- runs describe-variable If you know those, you can explore emacs and find things you still don't know. Learn how to learn, thats essential. Everything else can be found out later.
23
21
7,902
2010-11-17T18:26:00.073
api_errors
softwareengineering.stackexchange.com
1,077,479
Troubleshooting Windows container in Azure app service
I've been struggling for over a week to get a Windows container to run with an Azure App Service. My initial preference was to just use a standard container instance, but it appears that you only have the option of public or private networking, rather than custom (unlike with Linux containers). It looks like if you run...
Diagnostics You can find valuable debugging information when you click on [CODE] in Azure Web App for Containers. Kudu App Service comes with a debug console that you can use for debugging, exploring, uploading files, as well as JSON endpoints for getting information about your environment. This console is called the K...
2
1
1,373
2021-09-13T23:21:24.310
pipeline_ops
serverfault.com
636,686
Ubuntu & OpenConnect : any way to provide additional arguments?
I'm using OpenConnect to connect to my workplace via VPN. This works fine, but I'd like to use Ubuntu's network manager to establish connections. I guess it's a matter of having all connections managed by the network manager, and have connections available by a couple of clicks. Now, the network-manager-openconnect all...
--useragent also seems important instead of individual fixes like this PR https://github.com/NetworkManager/NetworkManager-openconnect/pull/1 a general solution would be way better
3
0
549
2014-10-13T17:33:45.833
infrastructure
serverfault.com
526,592
Pipe stderr and stdout to different commands (not just to files)
I'm making a backup script for ldap. I want the errors to go to a file in /var/log and the output to go to another file in the backup folder. Currently I'm redirecting to a temp file and then sending the temp file to the log. I'd rather do this as a 1 liner though... [CODE] Any ideas on how to redirect stderr and stdou...
As indicated by this answer at Unix SE: MyWeirdCommand.sh [CODE] testRedirection.sh: [CODE] Running yields: [CODE] [CODE] [CODE] [CODE]
13
11
8,410
2013-07-26T17:17:18.557
database_errors
serverfault.com
308,978
SSH tunnel as proxy - no data returned
I'm trying to set up an SSH tunnel as a web proxy for use when I'm at public locations. I already have a remote server to use, and I've also had this working in the past using this same server. However now when I try it, I successfully make the SSH connection, but the webbrowser returns no data for each page I visit. T...
[CODE] option allocates a socket to listen on port 8080. So, make sure that you enter the proxy info into SOCKS Host, not HTTP Proxy.
5
10
6,609
2011-09-07T15:09:43.343
infrastructure
serverfault.com