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
421,697
Samba share accessible via IP address, but not via hostname
I have a CentOS VM running in VMWare player. The host is Windows Server 2008 R2. The hostname is set properly. The FQDN is hostname.company.net. The wiki is accessible via browser both via the short hostname and the FQDN. I have set up a Samba share, so I can access my working copy via Windows. The trouble is, if I go ...
There were bad credentials stored in the Windows credential manager. Removing the entry, and attempting to re-map the drive to \\hostname worked perfectly. \\[IP address] didn't have incorrect credentials stored, which is why it worked properly. The diagnosis: [CODE] This gave me a useful error message: System error 12...
4
6
9,400
2012-08-27T17:45:16.847
infrastructure
serverfault.com
941,173
Page not found when running nginx with wsgi
I wanted to run a flask application using nginx. I have gone through this tutorial and up to the point when I start service using wsgi from command line everything works fine (which means I can access my page on [CODE] and display [CODE] message). The location of my project is as follows: [CODE] The config file for ngi...
OK, there were several problems with my settings. First of all, including default sites-enabled override my settings. Second, I changed server name to match all cases. Last but not least the socket had to be given 666 instead of 660 rights. My new nginx.conf: [CODE] And uwsgi.ini: [CODE] EDIT I assume that my solutions...
0
0
1,606
2018-11-22T06:56:09.607
infrastructure
serverfault.com
518,747
MySQL is running VERY slow on CentOS 6x (not 5x)
I have two servers: a VPS and a laptop. I recently re-built both of them, and MySQL is running about 20 times slower on the laptop. Both servers used to run CentOS 5.8 and I think MySQL 5.1, and the laptop used to do great so I do not think it is the hardware. For the VPS, my provider installed CentOS 6.4, and then I i...
CentOS 6.x uses ext4. If your datadir is on ext4 set the barrier=0 option. See here . Cheers
3
2
9,818
2013-06-26T14:07:09.147
database_errors
serverfault.com
41,651
Lock wait time out exceed restart transaction
I had got error on the lock wait time out so below I got 3 samples taken. One I took before the increase innodb_lock_wait_timeout to 120. So is there anything else I must tweak based on the logs below. Before increasing [CODE] 1st sample after increase [CODE] 2nd sample after increase [CODE] select version(); [CODE] sh...
Please look carefully at the queries that are locking The [CODE] is incomplete I cannot fully tell you anything more because you gave me three transactions that execute the exact same query lock the same page in the [CODE] as shown from your display [CODE] Notwithstanding, there are undo log entries coming from several...
0
1
3,048
2013-05-07T05:53:37.393
warehouse_errors
dba.stackexchange.com
440,287
Personal AES keys storage idea not working reason
I went through different ideas about storing AES key for encrypting database columns, I learnt that there are the possible solutions: put the key in the database find a Key Management Service to help you keep the key Below is my suggestion: prompt the user to input the key everytime he/she uses the database, it is a se...
What you have suggested is probably the most secure of the three options 1 , and is pretty much what an offline password manager like KeePass 2 does. However, it is also the least convenient. Security is always a trade-off between protecting the data and convenience, and having to enter my deliberately complicated pass...
0
1
66
2022-08-08T06:06:53.400
api_errors
softwareengineering.stackexchange.com
1,719
If one is to learn a new programming language each year, what should the list be?
In chapter one of "The Pragmatic Programmer" the first learning goal is: Learn at least one new language every year. Different languages solve the same problems in different ways. By learning several different approaches, you can help broaden your thinking and avoid getter struck in a rut. [...] To achieve this over a ...
Make it interesting and spend each year writing an interpreter or compiler for your own programming language that fills up a niche you've never used a programming language for. Each year, write your next compiler/interpreter using the language you wrote the previous year.
19
20
7,149
2010-09-09T09:34:54.443
api_errors
softwareengineering.stackexchange.com
254,145
Am I violating LSP if the condition can be checked?
This base class for some shapes I have in my game looks like this. Some of the shapes can be resized, some of them can not. [CODE] In a sub class of a shape that I don't ever want to resize I am overriding the [CODE] method so a piece of client code can check before calling the [CODE] method. [CODE] Here's how it might...
In a nutshell, the Liskov Substitution Principle states that, given a number of objects that conform to a particular interface, you should be able to swap them without causing errors in your program. If you can do that, then your classes don't violate LSP. The example provided in the LSP article on Wikipedia is quite i...
2
4
277
2014-08-22T16:42:01.210
api_errors
softwareengineering.stackexchange.com
743,452
configure CouchDB with Lets Encrypt SSL certificate
What i would like to do: Now I'm using a self signed SSL certificate which works wonderful. But I would like to replace them with an official one of [CODE] . What i have (self signed certificate): Here is a output of the important settings (local.ini) for ssl I have now: [CODE] What i tried (Lets Encrypt): After follow...
with couchDB 1.6.x copy the files [CODE] in [CODE] Check the access rights for CouchDB Put the following values ​​in [CODE] . Note that the following folders match the above folder that was copied to. [CODE]
7
6
3,952
2015-12-16T15:07:08.113
api_errors
serverfault.com
6,391
R - Interpreting neural networks plot
I know there are similar question on stats.SE, but I didn't find one that fulfills my request; please, before mark the question as a duplicate, ping me in the comment. I run a neural network based on [CODE] to forecast SP500 index time series and I want to understand how I can interpret the plot posted below: Particula...
As David states in the comments if you want to interpret a model you likely want to explore something besides neural nets. That said it you want to intuitively understand the network plot it is best to think of it with respect to images (something neural networks are very good at). The left-most nodes (i.e. input nodes...
9
8
9,344
2015-07-08T12:05:49.663
api_errors
datascience.stackexchange.com
316,584
How to name an exception where condition is not exceptional
NOTE: This question is about finding a proper name for an exception where the condition for throwing the exception has not actually happened (eg. preventing a StackOverflow by throwing a [CODE] before an overflow can occur) I have a [CODE] class that has bounds on the number of elements it can contain. The constructor ...
I think you're looking at this the wrong way. You are correct that throwing an exception is the right thing to do. The fact that a full list is a valid state has little to do with the exception, though. The exception in this situation is used to highlight that the state transition is invalid. That is to say, the caller...
3
6
548
2016-04-23T03:39:34.987
api_errors
softwareengineering.stackexchange.com
208,363
How to check if the current connection is in a transaction?
I need my program code to ensure that certain part of logic is being executed within a transaction. What query would tell me the current transaction ID / other information that would allow me to determine if I am in a transaction from within the transaction? [CODE]
A simple way is to compare [CODE] to [CODE] . [CODE] gives the current date and time (start of current transaction). [CODE] gives the current date and time (start of current statement). Example: [CODE] The other alternative is to execute two queries: [CODE] and compare the resulting xid. If it is the same, then you are...
9
11
6,498
2018-05-31T12:58:35.520
warehouse_errors
dba.stackexchange.com
1,091,025
How to reverse proxy specific extension names with Nginx
Say I am trying to proxy all requests coming in for jpg, png and mp3 files like so: http://example.com/some/url/file.png to http://example.net/data/some/url/file.png Notice it's the exact same path to another server but with data added. Her's what I have so far: [CODE] However I keep getting error [CODE] What is going ...
You need to change an URI using [CODE] directive if you want to pass a different URI to the backend in the regex matching location block (the same is true for the named locations): [CODE]
0
2
956
2022-01-24T20:31:54.913
infrastructure
serverfault.com
1,051,843
graviteeio - management-rest-api oauth role mappings
Gravitee manager can be configured with keycloak authentication as described here . They state in their documentation, that role mapping could be addressed on their gravitee.yml configuration: [CODE] How can I map the #profile jonPath correctly? I tried with java exceptions the next SpEl configuration: [CODE]
TL;DR Profile can only be SpEl asserted as string, ensure you enable on keycloak console the groups mapper: (Client scopes->create "groups"| Mappers->Add builtin->groups add selected, Clients->my-confidential-client->client scopes-> add "groups"). With this configuration, matching groups can be done with regex: [CODE] ...
1
0
213
2021-01-31T15:24:29.630
api_errors
serverfault.com
150,857
Is it wise to drop fixed-length columns to free up space?
I have a huge table in SQL Server 2005. (The table is about 40gb) I am looking for the safest and most pain-free way to either free up space, or delay its growth. The table has three fixed length ( [CODE] ) columns that are a) completely unneeded and b) almost totally filled with [CODE] . If I drop these columns will S...
Dropping them will reclaim space if you rebuild indexes or run DBCC CLEANTABLE New rows will not have these columns Fixed length columns always have space reserved whether NULL or not (note: variable length columns with NULL don't consume space usually) Don't shrink the database, it will only grow again and has other i...
4
7
590
2016-09-28T10:53:47.210
database_errors
dba.stackexchange.com
298,975
Generating combinations algorithmically
Suppose I have an n-high pyramid of numbers like: [CODE] How can I algorithmically walk through every possible path from the top of the pyramid to the bottom? To better explain, let me represent the pyramid this way: [CODE] For example: [CODE] Where m is the total number of paths. I understand that the problem can be r...
If you start at the top of the triangle there's only 2 choices to continue the path - left or right. If you chose left, then there's only 2 choices to continue the path - left or right. If you chose right, then there's only.... Let's encode the "left or right" decision at each level as 1 bit, where 0 = left and 1 = rig...
2
2
811
2015-10-04T20:06:01.740
api_errors
softwareengineering.stackexchange.com
279,220
Subversion repository path suddenly changed
After upgrading debian version (which probably resulted in updates of subversion and apache etc too) i can no longer access my subversion repositories at the url:s i used before. Before all url:s looked like this: svn+ssh://user@127.0.0.1/project Now i suddenly need to specify the full path to access it: svn+ssh://user...
Did this user have /var/svn/repos/ set as it's home folder before, if so check if it hasn't changed. Another thing might be that there were links in the home folder of the user that are now broken causing the old path not to work.
1
1
109
2011-06-10T16:16:21.737
infrastructure
serverfault.com
66,572
Will this MAPE implementation work for multidimensional output?
I'm currently working on a CNN problem where the output is a 60x59 array of numerical values. I want to verify if the mean absolute percentage error (MAPE) function I'm employing will properly consider the error by matching each corresponding point to the true value, as opposed to unexpected behaviour. Will this formul...
You can either directly use the mean absolute percentage error (MAPE) function in Keras API for TensorFlow or use that function to test your custom function. [CODE] code is avaible in the TensorFlow GitHub repo : [CODE]
3
2
239
2020-01-16T11:20:46.063
data_quality
datascience.stackexchange.com
207,965
Is it a bad practice to associate database records to relevant object storage by ID?
I'm using Google Cloud Platform to host a web app. The app has a typical database structure, with a schema defined by Django migrations. For one of the models, [CODE] , each record should be associated with an object stored in Cloud Storage which contains the audio of that song. Since this audio is created and stored i...
In this case, for any [CODE] you would have only one possible [CODE] recoding. With various versions of the same song you will have to provide an additional field within the metadata. In certain circumstances it may be valuable to prepare in advance some structure for various versions of the same record, building a pat...
1
0
55
2018-05-27T11:40:37.833
warehouse_errors
dba.stackexchange.com
1,056,898
Undetected .runtimeconfig.json when deploying to Elastic Beanstalk
I'm trying to deploy an ASP.NET application to Elastic Beanstalk's .NET Core on Linux. When I upload the code, I get the following error: [CODE] The issue is that I have such a file in the root of the zip file I'm uploading. When I upload the sample application it works, but when I upload my own, it does not. Here are ...
I identified the issue: I was zipping up one level too high. Rather than zip the folder that contained the [CODE] file, you need to zip up the contents of that folder directly.
1
1
1,745
2021-03-12T19:35:52.477
database_errors
serverfault.com
54,441
How to utilize spare workstation drive space for server storage/backup
So, given the fact that you can only get hard drives of about 160GB now for the cheapest price, I find i have a ton of extra drive space on workstations spread throughout my office. I'd like to utilize this space as a redundant RAID-like array of some sort for low-priority files and backups. I have about 100 workstatio...
There are a few P2P backup systems out there. I was just reading about Tahoe , but there are others. There is also GlusterFS , which can create a big storage pool out of a lot of commodity nodes. It's UNIX only, so to use it you'd have to do something odd, like deploy a virtual linux appliance running on each Windows m...
11
5
1,382
2009-08-14T22:31:03.180
database_errors
serverfault.com
373,987
Terminal Server Role broke RDC
I was connected into our SBS/2008 Server via RDC (on Windows 7). I wanted to install Terminal Services since we have the CALs and the 2 max concurrent users (administrators) was restrictive. So I installed the Terminal Service, Terminal Licence Service, and Terminal Service Gateway roles. It would not let me configure ...
rdc is a limited subset of terminal services (see comment below for clarification), they aren't separate products, so my guess is that ts install stepped over some configuration or firewall directive and that's why you can't connect. If you have mmc access, download the remote server admin tools, http://www.microsoft.c...
2
3
205
2012-03-27T15:36:11.883
infrastructure
serverfault.com
178,697
Are these advanced/unfair interview questions regarding Java concurrency?
Here are some questions I've recently asked interviewees who say they know Java concurrency: Explain the hazard of "memory visibility" - the way the JVM can reorder certain operations on variables that are unprotected by a monitor and not declared [CODE] , such that one thread may not see the changes made by another th...
It really depends whether you are asking a candidate with 2 years of Java experience or one with 7 years of Java experience. For an architect/technical lead/senior they seem proper questions but for a junior and maybe a mid-level too, they seem kind of difficult. Also you are asking question about low-level synchroniza...
12
11
4,751
2012-12-07T23:37:58.487
api_errors
softwareengineering.stackexchange.com
48,884
Windows Explorer for multiple file system locations simultaneously
I would like to me able to make changes to the Windows file system in several locations simultaneously, for example so as to make the same manual changes to two load-balanced web servers*. I'd like to do this in a graphical fashion, so something like a multiple folder version of Explorer would be just the trick. Does a...
You have a set of 'mirrored' systems where a change in one should be reflected to the other(s). The easiest way to do this (acceptable by you) is synchronize the folders. Trouble with sync is the large scale copy involved, you say. If you do a smarter sync (which almost any of the tools/scripts would do), only the modi...
0
1
213
2009-08-01T18:30:37.703
infrastructure
serverfault.com
661,417
ADFS 3.0 Microsoft.IdentityServer.RequestFailedException: MSIS7012:
could someone help me out with ADFS? this is my first time using it as i'm setting up Microsoft Dynamics. i get the following error message: [CODE] Thanks in advance
I'd guess that you do not have sites and subnets defined correctly in AD and it can't get to a DC to validate credentials
2
2
6,547
2015-01-22T00:33:49.527
infrastructure
serverfault.com
214,220
Query planning for many-many select and sort query
I have a postgres database with a Genre table (40 records), a Book table (~1.3M records) and a many-many table to relate the two (~2M records). I want to select books by a particular Genre and then order them by some criteria and take the top n results. Some genres have just a few hundred books while others have severa...
I don't think there is a clean way to do this in existing versions of PostgreSQL, and nothing in the works to do this cleanly for near-future versions either. What it comes down to is that it would have to first execute the seq scan on genre to get g2.id, and then use that value to re-plan the query with that specific ...
1
0
116
2018-08-06T20:50:49.237
database_errors
dba.stackexchange.com
223,619
PHP MAMP email stopped sending
I'm working on a simple registration email. I'm using MAMP (free) with PHP. I was getting emails from my code before. Now I get nothing. Here is a test code that doesn't send the email either. [CODE] What might have changed? I read that perhaps my ISP blocked sending emails? How do I find out?
Might this be in some way related to the OS X system cron? I just received this morning half a dozen emails that I tried to send several days ago. Maybe cron ran and sent them? Either that or there's something else further down the pipeline sitting on them...
0
0
531
2011-01-18T02:50:38.393
infrastructure
serverfault.com
140,935
How to mount a drive with read only permission
I am using this is fstab to mount the partition at backup. [CODE] When i reboot the permissions are automatically set to 777. I want that only one user i.e userA can read and write , all others should not see the contents of that drive. What should i do anything like [CODE]
/dev/sda5 /media/virtual ntfs defaults,umask=700,uid=1 0 0 change the UID to the appropriate user (found in /etc/passwd). 1 is root.
0
1
1,402
2010-05-12T03:25:25.107
database_errors
serverfault.com
391,720
How to trust a non Domain PC over a VPN connected via a Domain Account for SQL Windows Authentication
We are trying to enable a windows login to SQL Server from an untrusted laptop. The SQL Server has been enabled to allow the domain account to login and browse the data When a domain user connects to the VPN via domain PC (over the internet) they can connect successfully So we have a guest on non domain pc non on a dom...
Ok we have a solution. In Active Directory User and Computers Snapin: Select the User and right-click Properties Select the Account Tab Click the Log On To button In the Logon Workstations dialog, add the name of the untrusted PC Ok and apply as appropirate. Close the VPN, and restart the connection.
1
1
2,730
2012-05-23T06:55:56.910
api_errors
serverfault.com
18,658
SBS 2003 and WSS licensing
Possible Duplicate: Can you help me with my software licensing question? What is the licensing situation with Small Business Server 2003 and allowing other people and companies to connect and use the services? I also want to run Windows SharePoing Services (the free version) on there and allow access to this by clients...
In case you need to allow external users to your server you should use Windows Server 2008 (2003) External Connector (EC) license, as described here , and this covers both scenarios you mentioned. However you cannot use this license with Small Business Server and it seems there is no similar license for it. Here is the...
0
1
246
2009-06-03T12:20:10.407
data_quality
serverfault.com
201,598
Alter an existing logrotate file on package install
I have created a debian package that sets up awstats and the required scripts for a couple of hostnames in a server I have. My problem is with logrotate, I already update the stats with a cron job I set up on package install but I need to update stats on server logs prerotate, gthe server I'm using, lighttpd, already h...
Debian won't touch your conffiles once you have edited them; you can edit lighttpd's logrotate script all you want. You might get prompted at upgrades if both lighttpd and you have updated the file. If you want changes to be applied on your own package's install, divert the lighttpd conffile in your package's install s...
1
4
124
2010-11-14T00:12:08.783
infrastructure
serverfault.com
311,406
LVM on images very slow
After creating an lvm dd if=/dev/zero of=1.img bs=1M count=16384 dd if=/dev/zero of=2.img bs=1M count=16384 losetup /dev/loop1 1.img losetup /dev/loop2 2.img pvcreate /dev/loop1 pvcreate /dev/loop2 vgcreate LVM1 /dev/loop1 /dev/loop2 vgchange -an LVM1 I allocate 10G volume and format it lvcreate -L10240 -n lv_34179984_...
You solve this by not creating a filesystem on top of volume group on top of files that are already in a filesystem (possibly in a volume group) on a disk. To use an Inception reference, you've gone too deep my friend. Every time you try to do something on [CODE] your system has to go through the following steps: Files...
3
4
677
2011-09-14T17:03:16.150
infrastructure
serverfault.com
309,534
How to share drive root of USB hard drive in Windows Server 2008?
Windows Server 2008 -> Computer Management -> System Tools -> Shared Folders -> Shares I can set up a share for the root of the external drive, but I cannot access it from another computer on the network. On the other hand, if I set up a share for a subfolder on that same drive, I can access it just fine from another c...
I found the solution. See: http://support.microsoft.com/kb/947232 Cause: By default, Windows Vista and newer versions of Windows prevent local accounts from accessing administrative shares through the network. I know it says "Vista", but Windows Server 2008 seems to be affected by it. By going into my Windows Server 20...
2
2
3,363
2011-09-08T20:19:12.233
infrastructure
serverfault.com
477,670
How do I log in, using SSPI, to SQL Server 2008 R2 on a server in one workgroup from a workstation in another?
We're having trouble connecting to our SQL Server (2008 R2) via SSPI. Our team has recently moved from a domain-based setup to a decentralised workgroup-based setup. Each developer has access to a VPN which, in turn gives them access to a database server running SQL Server 2008 R2. We've previously used Windows authent...
Eleven years ago, I worked around a similar problem problem by mapping a drive letter on my workstation to the remote machine and providing my credentials on the other machine. For you, that would look something like this (from a CMD or PSH shell): [CODE] Clearly, that uses an "admin share" that you might not have acce...
2
1
2,255
2013-02-11T16:20:01.513
database_errors
serverfault.com
357,504
How do Stack Machine store global vars?
How exactly do stack machines (both real and virtual stack machines) store global variables? I know that C(++) just compile it to the .data segment of a program's memory segmentation. Then there's Java's JVM which uses a stack-heap system (both data-stack and heap are stacks that grow towards one another) and stores st...
I believe your question is fundamentally conflating (a) the executable (file) format and instruction set of a virtual machine — how that format supports the declaration & accesses of globals/statics — with (b) the underlying implementation of such virtual machine, which may be in C or even in another VM-based language,...
2
2
1,612
2017-09-16T07:00:41.537
api_errors
softwareengineering.stackexchange.com
279,030
Many different classes that need similar functionality. Best approach?
I have many (at the moment around 30) different message classes in an application I am creating. Each of these messages need to be serialized and deserialized. However, the process of serializing and deserializing is mostly unique to each class (the format of the serialized message is specified in a document, and says ...
Sounds like you can cover this using straight-forward inheritance. Create a base class with the common implementation, and create subclasses that override that implementation with their own, unique behaviour. You can read up on MSDN here . EDIT: I figured I should elaborate with an example. Define a base class that imp...
2
4
260
2015-04-14T13:09:37.157
api_errors
softwareengineering.stackexchange.com
207,581
Order by numbers followed by alphabet and then null values
I have below column in my database: [CODE] I want to sort and show these values as per below sequence: [CODE] Anyone please help me to solve it. Consider below query: [CODE] OR [CODE]
[CODE]
0
5
10,105
2018-05-23T06:43:27.813
data_quality
dba.stackexchange.com
362,917
How to safely run database migrations with multiple app instances?
We have an application that has a mix of both fast ( 30 seconds). Right now, we're running database migrations as a part of CI, but then our CI tool has to know all of the database connection strings for our app (across multiple environments) which isn't ideal. We want to change this process so that the application run...
Since you mentioned SQL server: according to this former DBA.SE post , schema changes can (and should) be put into transactions. This gives you the ability to design your migrations just like any other form of concurrent writes to your DB - you start a transaction, and when it fails, you roll it back. That prevents at ...
12
5
8,006
2017-12-23T20:22:15.013
pipeline_ops
softwareengineering.stackexchange.com
449,021
How do I disable "Restart your computer to finish installing updates" popup with GPO?
I've got some kiosk computers that are on a domain and permanently logged in, and receive updates for FEP through WSUS. This works great, except that occasionally, I get this dialog appearing in the bottom right hand corner: I thought that by setting the [CODE] GPO to 'enabled', these wouldn't appear, but it seems like...
I think you'll need to use the user portion of Group Policy - same path, Admin Templates, Windows Components, Windows Update and use Remove Access to use all Windows Update features set to Enabled, and with the setting 'Configure Notifications' set to 0. If you want WU's to apply, you'll obviously need it set to the (m...
8
2
21,354
2012-11-15T13:38:06.680
infrastructure
serverfault.com
584,807
Why can't I replace my Apache2 /www folder with a symlink?
I installed Apache 2.4.6 on Ubuntu 13.10 and put some html files in [CODE] , the default base folder. I then needed to share those html files to a synced Dropbox folder, so I moved the [CODE] folder into my Dropbox folder and replaced it with a symlink of the same name. Note that the www folder in Dropbox has read perm...
You have to make sure that all directories on the path to [CODE] have the [CODE] bit set, either for [CODE] or for [CODE] user.
0
1
1,882
2014-03-27T00:44:46.813
infrastructure
serverfault.com
24,160
Android Studio Emulator isn't coming up
Is just staying on this screen This is on my mac and I've updated everything I can see, including Android studio and HAXM. I've tried different android devices like a nexus 6P and a nexus 5 but same issue. I do seem to haxm running ok based on: What else might be causing the emulator to not come up?
Turns out that I didn't have the 64 bit version. I delete the image and downloaded a new one using x86_64 and this one worked normally and brought up the home screen in the usual 10-15 seconds from power on.
1
1
20
2016-12-07T13:46:30.077
data_quality
sqa.stackexchange.com
853,187
Does Hyper-V support nested virtualization on AMD CPUs with AMD-V?
Some article published on 2015 stated that Windows 10 preview versions weren't supporting nested virtualization on AMD-V AMD CPUs. Now I've tried to enable nested virtualization on my up-to-date Windows 10 and once I try to run a Windows 10 Hyper-V VM an error message is thrown stating that nested virtualization isn't ...
[You need] An Intel processor with VT-x and EPT technology. So no, it's not (yet?) supported on AMD CPUs. https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
1
1
2,652
2017-05-31T10:32:18.330
infrastructure
serverfault.com
525,723
Why does increasing "Number of logical processors" for a Hyper-V hosted VM increase that VM's performance?
To my understanding, virtual machines (assuming [CODE] is equal) get an equal share of the processor. When the VM is given some processing time, it shouldn't matter if the VM is seeing a single core for it to use or multiple cores, since the processing comes out of an array of processors on the Hyper-V host regardless....
Virtual machines in every hypervisor that I know of are able to use additional virtual CPUs on which to schedule additional concurrent threads of execution. It's exactly that layer of abstraction between physical machine and virtual machine that makes it not work the way you describe. The VM is not aware of how many co...
9
20
21,639
2013-07-23T18:41:15.727
infrastructure
serverfault.com
592,988
Have postfix to reply with 2 different hostnames?
How I do to make postfix to run on 2 different ports (25 and 26), and then reply with the banner "dns1.sebbe.eu SMTP ready" on port 25, and reply with the banner "dns2.sebbe.eu SMTP ready" on the port 26? Else, all other processing should be the same, mail should be sent to same handler and so on. The reason is restric...
You can configure this via /etc/postfix/master.cf. Add a separate transport for port 26 with the option myhostname=dns2.sebbe.eu. I.e. change: [CODE] to: [CODE] and then restart postfix. But I would personally change it to: [CODE] So you have them listening directly to port 25 on the correct IP addresses.
0
3
222
2014-05-04T08:03:01.397
infrastructure
serverfault.com
187,635
Flushing iptables on ubuntu
How to flush iptables perfectly on Ubuntu servers without any risks?. I have some ubuntu cloud servers and I will access them via ssh. I enter my iptable rules in the file "/etc/iptables.rules" and I will apply these rules with the command "iptables-restore cat /etc/iptables.rules *filter :INPUT DROP [0:0] :FORWARD ACC...
If the default policy for the chains is [CODE] then all connections will be cut since there's no longer any way to communicate via TCP/IP. Set the default policies to [CODE] before flushing, and then back to [CODE] after re-establishing the rules.
2
2
1,822
2010-10-05T08:07:18.870
database_errors
serverfault.com
847,493
Limit fastcgi (php-cgi) process time on Ubuntu 16.04
I want to limit the php-cgi processes time since the processes never close themselves and slowly all those processes eat the whole RAM (not cache/buffer) and the server starts going very slow. The only way right now to close those processes is using CSF and killing the processes exceeding more than 300 seconds, for exa...
I want to limit the php-cgi processes time since the processes never close themselves and slowly all those processes eat the whole RAM (not cache/buffer) and the server starts going very slow. The only way right now to close those processes is using CSF and killing the processes exceeding more than 300 seconds, for exa...
0
0
732
2017-04-30T20:42:09.517
infrastructure
serverfault.com
151,244
MySQL - Optimal indexing for a lookup table. HASH index, BTREE index or composite PK?
Let's say I have a very large lookup table that looks like this: [CODE] The first 2 attributes are FKs to Table A and B respectively. But doesn't need to be. the FKs can be dropped if it's more optimal not to have it. FKToTableA and FKToTableB is the candidate key for this table. Thus FKToTableA and FKToTableB could be...
[CODE] : Satisfy the [CODE] with [CODE] [CODE] -- If the pair [CODE] is unique, then make that the [CODE] , and put the columns in that order so that your [CODE] can quickly get into [CODE] . Don't use [CODE] (8 bytes) unless you expect to exceed 4 billion, the limit for [CODE] , which takes only 4 bytes. IP addresses ...
2
1
1,452
2016-10-02T04:41:10.630
database_errors
dba.stackexchange.com
242,891
Disable Caviar Green drives spinning down
A few months ago I build a 1u server to go into a colo facility. Not knowing any better, I used WD Caviar Green drives. My users have been complaining that the system can be a little slow off the mark, and [CODE] shows a very high Load_Cycle_Count. I've been reading that this is due to the "Green" meaning that they att...
Is there any way you can image that server onto another set of drives that are server grade, rather than altering the way those drives are designed to work? It sounds like you have a little time on your hands, since nothing has actually failed. Running anything that alters how a HDD works on a production server is bad ...
7
6
8,871
2011-03-03T19:32:52.670
infrastructure
serverfault.com
13,597
Linux knowledge a Junior cannot miss
Possible Duplicate: What a beginner should know/learn for sysadmin job? I am soon going to be graduating from college, and am looking for job offers right now. There is one that I have a lot of interest in, involving Linux system administration (PHP, MySQL, Apache Webserver, BIND, bash, postfix, and of course general s...
There's already plenty of information(Questions/Posts) in ServerFault for a beginner Linux administrator: Linux How-to/Tutorial sites Setting-up Linux at home Tools you should absolutely know as a Windows/Linux Admin Good Linux Podcasts/Links for beginners Hidden Features in Linux How to recruit a Linux Guru What a beg...
10
13
5,360
2009-05-28T09:09:23.637
data_quality
serverfault.com
1,106,856
How to stop Postfix from adding an extra Recipient in email headers?
We're using postfix together with osCommerce to send order notification emails. Some of our emails are being flagged as spam, which looks to be because of a duplicate "To:" field in the email headers. One of the "To:" lines (the one farther down) is being generated by the ecommerce checkout process, and the other seems...
You must replace in your oscommerce the email.php and mime.php files found in the catalog/includes/classes and catalog/admin/includes/classes folders with a more recent version. Download a recent version of: osCommerce 2.3.4 with Bootstrap this is fine: https://github.com/gburton/CE-Phoenix/tree/1.0.4.0
0
0
158
2022-07-28T13:53:48.507
data_quality
serverfault.com
75,957
How to select different format of the date in mysql
I have this table and I can't change its format to [CODE] because I have so many scripts that are related to this format [CODE] . It would be a mess if I change its format. [CODE] On the php file [CODE] I need to update some values from all the dates that are between 01-07-2014 and 01-09-2014 to the format [CODE] . I a...
You'll have to bite the apple. There's no way you can do a proper compare without changing any scripts. You can spare yourself the trouble to adjust your scripts in the way they are generating the dates, by using [CODE] function like this: [CODE] but you have to adjust your scripts somehow. Store your dates with the pr...
1
0
2,252
2014-09-08T08:17:17.040
database_errors
dba.stackexchange.com
334,021
Split lines against polygons in a PostGIS trigger
I have a table of lines, named [CODE] , stored in the [CODE] schema, and a table of polygones named [CODE] in a [CODE] schema. I try to create a trigger that split the features of [CODE] on [CODE] features on update of [CODE] field or insert of a new [CODE] . Two situations: insertion: the new feature should be split o...
The problem was in the [CODE] definition in that line: [CODE] . Here is the correct way to do it: [CODE] And the full function: [CODE]
0
0
53
2023-12-13T14:12:37.160
warehouse_errors
dba.stackexchange.com
238,843
When should I use ZeroMQ and when should I use Akka?
My understanding of Akka is that it allows you to define groups of mini-threads (" Actors ") and then have them communicate with each other (and do work) using events. My understanding of ZeroMQ is that its a TCP socket library that allows threads to communicate with each other over TCP/ports. My question: these seem l...
You're right, they are separate technologies. Akka uses ZeroMQ under the covers. From their documentation : Akka provides a ZeroMQ module which abstracts a ZeroMQ connection and therefore allows interaction between Akka actors to take place over ZeroMQ connections. Akka provides an implementation of the Actor Model whe...
6
3
3,645
2014-05-10T00:47:17.077
api_errors
softwareengineering.stackexchange.com
155,546
Large No of MySQL running threads killing response times
Yesterday, our MySQL's response time increased 20 times- select queries which earlier used to take 0.6-0.7 ms took 20ms, and updates even more- 60ms. The MySQL running threads count which usually stays around 10-15 shot up to 300-400, for a good five hours (before coming down when traffic cooled). Server version: 5.6.2...
Query cache off -- good Large history list -- Innodb stumbling over itself. Latency suddenly shot up -- ditto Thread count suddenly shot up -- ditto. Possible causes: A long-running [CODE] or [CODE] blocking lots of other threads. Or even a [CODE] that was poorly written. If the slowlog was on, you may be able to disco...
2
2
2,787
2016-11-17T04:12:42.797
database_errors
dba.stackexchange.com
47,076
Is Flash really superior to Java applets?
I'm still a student, without much real life experience in programming. I've never written anything bigger than ~5k lines of code. I've written code in both Flash and Java, and I just can't understand why people are writing web applications like video players (YouTube etc.) in Flash, and not as Java applets. So I want t...
Flash provides a more seamless experience for the user. Java applets are pretty slow, since the Java VM needs to be fired up before they can run. As a website visitor, I hate it when things freeze for a few moments while the Java VM figures itself out. If I'm not mistaken, it also doesn't unload once I navigate away fr...
14
34
7,547
2011-02-12T17:25:59.803
api_errors
softwareengineering.stackexchange.com
202,921
Pull valid row from table even when joining table has no valid data
I have two tables with a 0 to many relationship. Table A holds the one record where Table B can hold 0 to many records. There is a status field in both tables which can be equal to 'U' or 'D'. I want to be able to pull the one record from TableA where status <> 'D' even where there are no related records in TableB or w...
Try rearranging your conditions like so: [CODE] When you put an outer table in the [CODE] clause, you force SQL Server to filter only to rows that exist and where that value can be explicitly evaluated, in other words you change your outer join to an inner join.
0
3
93
2018-04-03T13:28:24.780
warehouse_errors
dba.stackexchange.com
175,698
SQL Server 2016 full backup and log shipping and newbie questions
As most likely in a lot of places, I find myself in the roll of "DBA" by default rather than by skill. I currently am setting up new SQL Servers using SQL Server 2016 Standard Edition. I have been able to successfully set up the log shipping agents and schedules to where it took a full back up at start, and now does lo...
once the restore on the secondary has been done, can the trn files be deleted? Yes you can but you want to consider keeping files for certain period of time depending on your recovery point objective. if I wanted to combine the transaction log shipping with a full/differential backup plan Full and differential backup w...
3
1
1,654
2017-06-07T17:44:11.613
database_errors
dba.stackexchange.com
213,864
VMware ESXi 4.1 snapshot of server 2008R2 machine generates 2 indentical snapshots
I have 2 VMs that are failing to get veeam backups, and it appears that the culprit is vmware snapshots. We are running Vsphere ESXi 4.1 build 320092, we have multiple server 2008R2 machines that take snapshots fine, but when with these two VMs when I take a snapshot I get 2 identical snapshots a few seconds apart. The...
After talking with VMware this is actually normal behavior having to do with how VMware works with Microsoft VSS in 2008 machines. See the last paragraph on page 25 of http://www.vmware.com/support/developer/vddk/vadp_vsphere_backup12.pdf
1
0
1,889
2010-12-17T21:47:50.683
database_errors
serverfault.com
860,018
windows server 2003 shared folders not accessible
I have server 2003 server and it was accessible from other but now all shared folders of this servers are not accessible from others. I have disabled Antivirus firewall, windows firewall but still issue is same.i can ping that server from others by name and IP both. please suggest solution for this issue.
Since you can ping by hostname/FQDN & IP, we can assume the TCP stack is loaded. Can you access the shares via the loopback address ( [CODE] ) from the host server? Have you verified that the share is up? (compmgmt.msc or [CODE] ) Is the Server service running? Try restarting it (notice: will disconnect file sessions) ...
-2
0
5,231
2017-07-08T04:41:17.270
infrastructure
serverfault.com
175,181
Architecture of distributed mail server system
There are two email servers. It is necessary that some boxes were stored on the first server, others on the second . They should be allocated in one domain @qwerty.com. How can i make it? Configuration: postfix,cyrus,sasl,debian
For SMTP part you can use lookup tables in Postfix. Depending on your choice and number of user accounts you can use local files, MySQL, or OpenLDAP for storing the lookup info. I have done this with OpenLDAP and it works great, even though the initial setup can be a bit painful. For the POP/IMAP part Perdition is a ni...
2
7
4,056
2010-08-27T10:36:19.743
infrastructure
serverfault.com
71,715
SQL Server 2012: NUMA node shown as offline without special affinity settings
My main production server has four NUMA nodes with two SQL Server 2012 instances on it. One of the instances has the CPU affinity set to use only one NUMA node, and sys.dm_os_nodes reflects that correctly. The other instance has no affinity settings, so it should show all 4 NUMA nodes as online, I would think, but it s...
Found the answer: Link My consultants installed the wrong version (CAL instead of core), so it's limited to 20 cores.
3
1
472
2014-07-16T23:11:26.133
database_errors
dba.stackexchange.com
1,111,457
How can I make iptables rules persist permanently between reboots on this embedded Linux system?
I am making changes to iptables firewall rules, and I want them to stick permanently, but they disappear everytime the computer reboots. Before you even think of responding, please read the following thoroughly : This system has no internet connection. I cannot use nor can I install packages [CODE] nor [CODE] There is ...
Is your /etc/rc.local executable? Assuming it is, does [CODE] yield anything? Is iptables-restore on the $PATH when rc.local runs? Do you need to use the full path to iptables-restore, presumably something like [CODE] ?
1
0
544
2022-09-24T04:19:21.257
infrastructure
serverfault.com
12,716
How to install Apache 2.2.X and PHP5 as a Module on Windows Vista without crashing?
I followed the instructions on PHP5 readme file to do a manual install on Windows and as a module on top of Apache. I ran phpinfo() and it appeared all OK. Then, every time I run php code calling MySQL it crashed . I just could prevent the crashes installing PHP5 as CGI. Note that the crashes stopped just by changing A...
How to Install and Configure PHP 5 to Run with Apache on Windows has instructions on how you can run PHP 5 as an Apache Module. If you want more specific answers, you should include error-messages from the crashing application.
0
1
3,853
2009-05-27T10:30:13.207
database_errors
serverfault.com
269,246
Function accepts only certain passwords in postgreSQL
I have created a function in a postgreSQL(v10.10) database to create new users or update existing ones. As parameters you pass the username, password, role memberships, first name and last name. In my case the function is called by an external program with connection to this database. Basically it works, but strangely ...
That's because you used the wrong format specifier. [CODE] is for identifiers, but the password is a string literal, so you should use [CODE] (and not include the single quotes). Compare these: [CODE] So there were unexpected double quotes included in the password. But there are bigger problems: [CODE] Ha! I can abuse ...
2
4
453
2020-06-16T09:24:16.480
database_errors
dba.stackexchange.com
204,765
Active directory 1355 0x54b ERROR_NO_SUCH_DOMAIN
I have 3 domain controlers 2x 2008 1x 2003 server When i use the nltest /server:dcN.domain.local /sc_verify:domain.local i get: on the 2 of them OK status on one of them i get I_NetLogonControl failed: Status = 1355 0x54b ERROR_NO_SUCH_DOMAIN i did some tests and when i moved the role "Domain Role Owner" from the serve...
"nltest /sc_verify:domain.com" is not a reliable test to check the current secure channel status because it reports the last known state. If the SC is broken you'll get replication errors and access denied in ie. dcdiag logs. If replication is good, then the SC is good. Verify with ie. "repadmin /replsum"
2
2
60,900
2010-11-22T15:38:57.560
infrastructure
serverfault.com
544,027
Warning: Unavailable Version of Java Requested
We are updating client computers to JRE 1.7 but a partner Web application has a mention of the older java version in its applet HTML tags (java_version=1.6*). Because of this mention, the applet loading is preceded by the warning "Unavailable Version of Java Requested", which asks permissions to run the applet with the...
The response is found in Java 7.40 via Deployment Rule Sets.
1
0
3,078
2013-10-05T15:45:44.150
pipeline_ops
serverfault.com
79,271
Is blocking java applets a necessary security measure?
Chrome 11 is now asking user permission to run both signed and unsigned Applets (yes, for signed applets the user is asked twice). Chromium team decided that this measure is needed even when the user is using an up-to-date JRE. Here's my bug report (which reflects solely my opinion: http://code.google.com/p/chromium/is...
I try not to be too much of a conspiracy theorist but I could see this as being retaliation for Oracle's copyright/patent infringement lawsuit against Google over Android. I doubt most regular users will even notice since Java applets are basically dead anyway on consumer web sites. I prefer the approach of Firefox, wh...
5
5
1,362
2011-05-26T05:37:03.280
api_errors
softwareengineering.stackexchange.com
41,064
What best/correct algorithm/procedure to cluster a dataset with a lot 0's?
I'm new to statistics so sorry any major lack of knowledge in the topic, just doing a project for graduation. I'm trying to cluster a Health dataset containing Diseases(3456) and Symptoms(25) grouping them considering the number of events occurred. My concern is that a lot of the values are 0 simple because some diseas...
Maybe I am not understanding your question properly, but k-means clustering is not sensitive to the zeros. More accurately zeros are valid values for features to cluster on. While PCA may enable you to reduce the number of features to train on, it may complicate the clarity of the clusters from k-means. PCA may be bene...
2
1
716
2018-11-11T22:50:51.473
data_quality
datascience.stackexchange.com
700,867
enter-pssession : Connecting to remote server failed with the following error message : The user name or password is incorrect
I am unable to connect to domain controller via below script. This script is working for another domain controller so it mean script is correct. While I am connecting i am getting an error: [CODE] I am 100 % sure my credentials are correct and if I type manually I can connect (PSsession) to domain . SCRIPT - [CODE] Win...
I had the same situation and helped me [https://migration-tool.sharegate.com/hc/en-us/articles/115000640868-Hide-credentials-in-scripts][1] I created password using long string which i get from [CODE] Then I converted it to credentials using [CODE] I passed it to Invoke-Command like that [CODE]
2
1
4,029
2015-06-23T04:19:51.273
infrastructure
serverfault.com
13,093
MySQL replication: "Houston, We've Got a Problem"
I ran into a problem with our replication server. Essentially, we have 2 databases (database1 and database2). Master server has both. Slave has only database1. There is a [CODE] set in CHANGE MASTER TO configuration. Now what happened is - we are using code igniter, and one of the programers created database2 and start...
If you really don't care about that table, you can use pt-slave-restart on the slave and have it skip those problems. I would be conservative about running it and make sure that you are only skipping queries for the table/database that you don't care about or at least for only a specific error. You didn't post what the...
4
5
3,652
2012-02-15T12:43:20.497
database_errors
dba.stackexchange.com
770,800
rkhunter: After some days I get "The system has changed to not using prelinking since the last run."
We run here a (new) CentOS 7 system. To observe the system against invalid changes / hacker attacks we running rkhunter every night. Also after each (yum) update we prelinking all and running "rkhunter --propupd". This runs fine. But after some days we getting following error: [CODE] We are sure that the server is not ...
Found it! Today I have look into several log files. And so I have found a prelink log file. The log file shows that there was running a prelink process. After searching a prelink job in the cron files I found it in [CODE] . I'm sure that this is the reason for the rkhunter warning ... :-)
2
1
660
2016-04-16T09:00:19.880
infrastructure
serverfault.com
128,994
trying to install SQL 2008 on Windows 2008 server R2
I was trying to install MSSQL 2008 server on Windows 2008 server R2 Standard Machine, but I got this message: Program Compatibility Assistant, And that I should apply SQL server 2008 SP 1 I don't get it? Why doesn't it not work with this version I have? How should I solve this problem?
It will install however right after you install SQL Server 2008, you need to install Service Pack 1. You can download SQL Server 2008 Service Pack 1 from here .
0
1
132
2010-04-03T03:42:47.390
database_errors
serverfault.com
484,912
Beeping on Dell Poweredge Server (RAID Fault)
I've a Dell Poweredge 2850 that is beeping continuously - 2s beeps with 1s intervals. I'm sure this is because of a degraded RAID - but there's nothing in the Dell OMSA to say so. In fact, the PERC controller is missing from the OMSA. The server is runnng Red Hat Enterprise Linux (RHEL) 5.7. How do I shut off the infer...
7 months late but this may be of interest: "You need to go into the BIOS for the RAID controller itself. During post you should see you SCSI or RAID controller initializing saying hit [CODE] to configure. In the Config Utility go to Adapter and in this menu you should be able to find Alarm -> Silence Alarm http://en.co...
0
4
7,806
2013-03-05T16:33:52.107
infrastructure
serverfault.com
36,262
What guidelines do you suggest for using Objective-C Properties?
Objective-C 2.0 introduced properties. While I personally think properties are nice addition to the language, I have seen a trend of making every instance variable as a property. Apple sample codes are no exceptions to this. I believe this is against the spirit of OOP, and since it exposes a lot more implementation det...
I make all my instance variables properties. That primary reason for that is that it makes memory management much easier and consistent. Making them public would go against good OO, so I always make them private using a category like this: [CODE]
0
4
594
2011-01-13T09:30:47.617
api_errors
softwareengineering.stackexchange.com
691,895
How to stop Cyrus from serving root certificate?
Since changing the certificate for my cyrus instance I get the following warning whenever I sign with cyradm: [CODE] which is an OpenSSL error that also shows up when connecting to the server with [CODE] (I've replace my subject/certificate name with FQDN and omitted the certificate block for posting): [CODE] This is f...
Probably the error message is mis-leading - I also get this error since I changed the [CODE] setting in [CODE] (Debian 8.2/stable). I have set up two twin-like servers, std install, using an intermediate cert from RapidSSL. Both run cyrus-imapd with absolutely identical setup (I compared the config files with [CODE] to...
0
0
1,037
2015-05-14T00:19:28.553
infrastructure
serverfault.com
300,966
Dealing with unreliable data source
I have been assigned the task of automating entering of supplier prices and inventory based on our master google sheet. I have limited programming knowledge, but so far I have made code that can create an order sheet and send it via E-mail. The problem I'm facing now is that the prices are based on pdf/xlsx files we re...
First, I would try to ask your suppliers if they are able to send you the data in a standardized, machine-readable format. An Excel sheet may be fine as long as you can identify the columns correctly. There are dozens of ways to automate the reading of data from Excel sheets, so that should be a good starting point for...
1
4
158
2015-10-27T06:14:41.123
api_errors
softwareengineering.stackexchange.com
857,962
Apache Rewrite rule not working
I am using an AWS Elastic Load Balancer, and have set up the following rule to convert [CODE] traffic to [CODE] . [CODE] [CODE] However, when I access my website via its domain ( www.thewhozoo.com ), I can see the protocol is [CODE] and not [CODE] . Any ideas why the rewrite rule is not working? Thanks More info [CODE]...
You have a configuration snippet [CODE] Typically such snippets get loaded by an [CODE] or [CODE] directive [CODE] or [CODE] from your main [CODE] . The problem is that those snippets only apply to your main configuration and don't apply to any [CODE] sections... Either include those settings in the virtual host defini...
0
2
1,645
2017-06-26T18:26:30.173
pipeline_ops
serverfault.com
249,938
Attempting to identify minimal functional dependencies in a Compact Disc details scenario
I believe this relation/table is in first normal form ( 1NF ): Collection ( cd_id , title, label, artist, type, country, song_id , song_title, length) Note: Bold means keys. What I have managed to identify: [CODE] Is this correct, is it correct to say that it meets 1NF? Are there more functional dependencies I am missi...
A concern that exists is that a song may be released as a single, then as part of an album, then re-released in a "greatest hits" album. This would lead me to have a song table, then create a join table that would connect the album table to the song table. This join table would allow for a single song to be connected t...
5
1
96
2019-09-30T15:06:57.247
data_quality
dba.stackexchange.com
201,961
Clustered index update, how changing the index only at different column value?
I've table, example as [CODE] I execute stored procedur as [CODE] many times Name equals @Name; In execution plan i saw if i change stored procedure as [CODE] i saw Cost:15% Question: I need to change this procuder for two situation when table1.Name= @Name table1.Name <> Name. In first case table1.Name doesn't change v...
0 down vote unaccept For fix my issue, I created a triger [CODE] It's work perfect. Average value for update query is 90ms(CPU), old value 200ms
2
0
4,424
2018-03-22T07:21:23.630
database_errors
dba.stackexchange.com
86,395
Do smaller neural nets always converge faster than larger ones?
In your experience, do smaller CNN models (fewer params) converge faster than larger models? I would think yes, naturally, because there are fewer parameters to optimize. However, I am training a a custom MobileNetV2-based Unet (with 2.9k parameters) for image segmentation, which is taking longer to converge than a mod...
For most cases, probably. For all cases, no. Especially if you are training on small data with very aggressive regularization in place, you may need a very long time until the desired performance level is achieved. For instance, for some popular text generation networks called Transformers trained on small datasets, it...
1
2
1,898
2020-12-08T08:29:09.047
data_quality
datascience.stackexchange.com
201,645
SQL Server domain name and user name formatting
I am executing a SQL script in SQL Server Management Studio 2018. In my script I need to specify a user (including the domain - unsure if I need the server name). So I have created a user [CODE] , set the user type to [CODE] and set the users role to [CODE] and [CODE] . I then execute my script but it gives me the erro...
You are possibly mixing SQL Server Logins and Database Users. Introduction A SQL Server Login is an account that allows a user to connect to the SQL Server instance. A SQL Server Login can be either ... a native SQL Server login which exists in the SQL Server instance a Windows Account from either the local server or t...
2
2
9,337
2018-03-19T10:19:22.837
database_errors
dba.stackexchange.com
974,479
AWS - Lambda cannot access Apache served content on EC2 instance
Can anyone tell me how/why my Lambda function cannot 'see' a website served by Apache on an EC2 instance when they are both in the same VPC? My setup: Amazon Linux v2 Lambda function in the default VPC, same as the one the EC2 instance is on Lambda function using 'default' aka all permissions role to access EC2 instanc...
Does the Lambda Security Group permit outbound access? Try opening all outbound to 0.0.0.0/0 for start. Does the EC2 Security Group permit inbound access from Lambda's SG?
0
1
1,074
2019-07-09T07:53:29.600
database_errors
serverfault.com
1,025,117
OpenBSD relayd forward to web server based on HTTP request path
I have two web servers running on my machine. One is listening on port 8080 and the other on 8081. [CODE] I want to setup a relay that forwards traffic to one or the other based on the request path of an HTTP request. Here is my /etc/relayd.conf ... [CODE] However, it seems like all requests are going to the server on ...
Somebody on IRC explained it for me. Because relayd rules operate on a "last wins" basis, I need my most specific match to appear last. The following works for me. [CODE]
3
3
1,202
2020-07-14T00:37:27.870
infrastructure
serverfault.com
193,522
Can Checksum alerts make it to the end user?
I've been reading https://www.brentozar.com/archive/2017/02/lets-corrupt-sql-server-database-together/#comment-2539669 and I've got some databases with Torn Page Detection that I need to change to Checksum. I've already run (and scheduled) my CheckDB's and we've got no corruption. Question: If I enable checksum, and a ...
Yes, any corruption alerts can make it to the end user. To see it yourself, grab one of the corrupt databases from Steve Stedman's Corruption Challenge . Attach the corrupt database to one of your development environments, and run the query that Steve describes for that database. You'll see corruption errors - just as ...
1
3
166
2017-12-19T13:50:45.823
hadoop_errors
dba.stackexchange.com
102,834
Why does stochastic gradient descent lead us to a minimum at all?
Why do we think that stochastic gradient descent is going to find a minimum at all? I mean on each iteration SGD moves in the direction that reduces only current batch's error (SGD doesn't care about the rest of the samples). But why should this lead us to a local minimum of our cost function? And why do we hope that t...
For mini-batch gradient descent, the cost function may not decrease on every iteration. There is going to be some noise and smaller the batch size, noisier the process. SGD has batch size 1, so it is the extreme case. But still, an overall downward trend is to be expected. Compared to using entire dataset, SGD and mini...
1
1
171
2021-10-06T02:20:51.607
data_quality
datascience.stackexchange.com
248,152
Linux webserver tutorials (WordPress)
I will be setting up a linux webserver to host WordPress on. The problem is that although I know how to do it, I don't know how to properly do it. So I'm now looking for semi-advanced tutorials that are complete and secure above anything else. I don't really mind trying a new distro, but I prefer ubuntu/debian. I read ...
One resource that I've used quite a bit is the Debian 5.0 Tutorial on Rackspace . It really helped me when I setup my first Debian webserver. I'm not sure if you are using a VPS or just simply using your own hardware, but most of the steps should be the same.
0
1
134
2011-03-16T15:21:45.480
infrastructure
serverfault.com
922,583
Out-File : Cannot validate argument on parameter 'Encoding'
I've got an automation script that I'm writing, and within it, I'm logging actions to a text file. I've generated the $logFile name with: [CODE] I then write to the log file using this syntax: [CODE] This works fine and I can see the output in the resulting log file. However, once I've set everything up, I enter a fore...
You are missing [CODE] before [CODE] , thus [CODE] as string get bound to the first positional parameter, while [CODE] get bound to second positional parameter, which is [CODE] .
0
3
10,087
2018-07-19T00:39:13.803
infrastructure
serverfault.com
35,897
Selenium Python - Unable to find an element, get stale element exception when using element locator
Scenario: 1.Login to a website using script and navigate to the Home page. 2. On the home page, click a link and navigate to a new page. 3. Then navigate back to the home page using the top navigation bar Home link. I am using the POM ( Page object model) where all my locators are defined in one python module. The foll...
Fixed the Stale element exception with used WebDriverwait in my Page object. Added [CODE] to my methods that return the locators in the page object. Thanks!
1
0
1,111
2018-10-03T15:28:06.640
data_quality
sqa.stackexchange.com
244,801
Deadlock Priority High Chosen as deadlock victim
I have SQL Server 2016 SP2 (13.0.5237.0). Here is a deadlock graph I noticed recently in my system. The process with high deadlock priority was chosen as a victim (probably because of high log usage compared to the other process). But that shouldn't have happened. Is this a defect introduced in SQL? Is there a way to p...
The process with high deadlock priority was chosen as a victim... I've run into this before with maintenance operations - specifically index reorgs, as described on my blog here: Deadlock Victim Choice in SQL Server - An Exception? In that case, I was able to reproduce the problem, having a process with the highest dea...
7
8
669
2019-08-07T18:58:22.257
database_errors
dba.stackexchange.com
629,663
Detect files of folders which do not inherit permissions from their parent
Is there an easy way to find any files/folders (recursively) within a directory which do not inherit permissions from their parent. i.e. To gauge the effects of selecting "replace permissions on child objects" before committing to it? i.e. Without manually trawling through every object under the selected directory. Pow...
I believe AccessEnum from the SysInternals suite will do precisely what you need. http://technet.microsoft.com/en-gb/sysinternals/bb897332.aspx
2
3
3,786
2014-09-18T20:55:07.360
infrastructure
serverfault.com
377,777
moving Centos to a close network cause him to be slow
I have a server with Internet connection and /etc/resolv.conf with Real DNS servers. when I put the server in a close network without internet the server become very slow. I suspect that it's the DNS resolving. any idea how to fix it? maybe with nsswitch.conf? should I add [NOTFOUND=return] in hosts: files dns thanks!!...
It is better to ask a more deterministic question. What do you mean by very slow? The server overall performance is bad or some specific services are not responding as expected?? Yes, the DNS issues can result in some performance problems. How to fix the issue: Configure your server to use a proper DNS server. At least...
-1
3
183
2012-04-09T07:38:38.817
infrastructure
serverfault.com
234,261
MySQL 5.7 Community Server End of Life/Support
Is there any official document that outlines the date till which MySQL Community Server 5.7 will receive security updates/patches? I see that page 20 of this document from Oracle outlines Premier and Extended Support end date for MySQL 5.7, but I am not sure if it is talking about Community Server Edition or MySQL Ente...
As per MySQL documentation here the below you can find the life cycle for each version of application MySQL Current releases [CODE] All releases [CODE] For further your ref here and here
13
13
24,219
2019-04-09T04:23:42.347
database_errors
dba.stackexchange.com
38,369
AUC is high but not able to represent other class properly
I wanted to know if it makes sense to make 2 ROC curves for each of the 2 classes? I am doing a binary classification problem but AUC is good at 82%. But the F Score of the class labelled 1 is very poor (around 0.4). So the AUC is very good but the F Score is very poor. What does the ROC curve actually mean in this cas...
It does not make sense to make two separate AUC / AUROC curves for each class, these are aggregating functions, same as F1-score. If AUC is high but F-score is not then it's possible you have an imbalanced data set (classes are not equally represented in the data), since the AUC will not be able to measure this, while ...
1
1
117
2018-09-17T12:35:52.487
data_quality
datascience.stackexchange.com
979,200
vault init hangs on kubernetes
I'm trying to set up an autosealing vault cluster in kubernetes but I'm seeing some strange behaviour. I have one vault providing the transit secret to autounseal the second vault . They are running in the same k8s cluster in separate namespaces. The second vault runs within a pod with an auto start script (see below) ...
After some fiddling it turns out that the real problem was that port 8200 was never ready because the second vault didn't start. Second vault didn't start because it was unable to communicate with vault 1 and I sorted that out setting TLS properly ( this link might come in handy ) After configuring TLS, vault 2 was abl...
0
0
693
2019-08-14T07:45:10.820
pipeline_ops
serverfault.com
204,054
Can changes to cardinality optimization be made without taking users offline?
I have an old SQL Server database that has been migrated a few times since Increase the database compatibility level from 90 (2005) to highest possible (the software itself does support the highest). Set [CODE] to ON. Set [CODE] to ON. Can these changes be made without taking users offline?
Yes the changes can be done without taking users offline. But please note that this is [CODE] command which will lock the database so if any schema changes are happening it would be blocked. It would be better to run this query when load is relatively very less, just so that it finishes very quickly. Also note that whe...
2
3
232
2018-04-16T09:21:02.767
database_errors
dba.stackexchange.com
294,854
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
I am developing an application to schedule periodic backups, that make full, differential and log backups. Log backup is each 15 minutes, differential each 6 hours, and full backup each 24 hours. At first it works fine, but when it had to do the full backup, I get the error: Timeout expired. The timeout period elapsed ...
Not everything has a hard and fast rule. 30 seconds is somewhat an arbitrary value while still being relatively reasonable, but Microsoft could've just as easily picked 45 seconds or 60 seconds or even 90 seconds, and the general outcome would've been the same, in most cases. But some value needs to be chosen, because ...
0
3
1,101
2021-06-26T08:19:24.407
database_errors
dba.stackexchange.com
312,834
Floating point accuracy and conversions
I am trying to build a class where user can compute floating operations with a particular accuracy. For example, if the user wants to have up to 4 digit accuracy, everything less than 0.0001 is zero and everything bigger than 9999 is inf. I think the best way is to create a bit (or maybe byte) array to store sign, mant...
Implementing Your Number System I am trying to build a class where user can compute floating operations with a particular accuracy. For example, if the user wants to have up to 4 digit accuracy, everything less than 0.0001 is zero and everything bigger than 9999 is inf. If you require there to be a specific (maximum) n...
0
6
779
2016-03-15T19:52:43.190
api_errors
softwareengineering.stackexchange.com
44,229
Is there a limit to how many credentials SSMS can remember?
Using SQL Server Management Studio that came with SQL Server 2008 R2, I make connections to the same server using a number of different sets of SQL Server Authentication credentials. On my development machine, I use the [CODE] checkbox extensively to avoid having to look up the password each time. When I choose a Login...
It is still a bug (sql server 2008 - 2014 (version 12.0.2000.8 still affected)) as highlighted below : SQL Server 2012 Management Studio spuriously forgets password, despite being set to remember it. You can vote up the connect item to get it HOPEFULLY fixed if you are experiencing the bug as well. [CODE] might have a ...
9
9
2,308
2013-06-10T16:31:29.297
database_errors
dba.stackexchange.com
579,753
Allowing unpermitted group to access share - Windows 7
I've been a Linux sysadmin and am new to Windows so I apologize for the n00b question. I have two groups lets call them "Students" and "Professors". Students are very restricted, however professors have access to some unique things. One of them is a P:\ drive. The drive is mapped as follows: [CODE] All Professors have ...
If a user has rights to a sub-directory on a share, I believe it is possible to directly map to it. [CODE] You can't map M: (for example) directly to the share and navigate down, that's what messes some people up. To do that you'll have to get funky with permissions, and that's a lot of work.
2
5
145
2014-03-04T16:33:41.603
infrastructure
serverfault.com
234,135
MySQL Query doesn't work but works some time, whats wrong with it?
Below Query doesn't work most of the time and giving error Getting error [CODE] but work sometimes, what am I doing wrong here I think [CODE] causing the issue if it is what will be the right syntax? [CODE]
[CODE] in number context is treated as de-delimitered textual datetime in short format (see Conversion Between Date and Time Types , the last demo). So substraction can cause invalid datetime value. To obtain correct result perform calculations in datetime context. The best (and simplest) way is to use [CODE] or use so...
0
1
50
2019-04-07T17:24:05.333
database_errors
dba.stackexchange.com
18,664
Are regular VACUUM ANALYZE still recommended under 9.1?
I'm using PostgreSQL 9.1 on Ubuntu. Are scheduled [CODE] still recommended, or is autovacuum enough to take care of all needs? If the answer is "it depends", then: I have a largish database (30 GiB compressed dump size, 200 GiB data directory) I do ETL into the database, importing close to 3 million rows per week The t...
VACUUM is only needed on updated or deleted rows in non-temporary tables. Obviously you're doing lots of INSERTs but it's not obvious from the description that you're also doing lots of UPDATEs or DELETEs. These operations can be tracked with the [CODE] view, specifically the [CODE] and [CODE] columns. Also, even more ...
39
33
41,513
2012-06-01T01:56:01.077
data_quality
dba.stackexchange.com