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
430,375
Apache doesn't recognize .htaccess
I'm a little bit confused; my Apache2 doesn't read any of my .htaccess. I'm using Ubuntu 12.04 and the last line of my [CODE] looks like that: [CODE] I also successfully restarted my Apache after I added [CODE] and [CODE] to these lines. I put now also just some rubbish like [CODE] in my .htaccess in the root dir [CODE...
You should check out the configuration of the Apache default virtualhost, placed inside [CODE] and not only in [CODE] , that it is used only for general webserver configuration.
0
2
989
2012-09-20T19:59:07.183
api_errors
serverfault.com
333,799
When does bugfixing become overkill, if ever?
Imagine you are creating a video player in JavaScript. This video player loops the user's video repeatedly. Each time a new loop begins the player runs a recursive function that calls itself N times, N being the number of times the video has looped, and because of that the browser will trigger a [CODE] [CODE] at some t...
You have to be pragmatic. If the error is unlikely to be triggered in the real world and the cost to fix is high, I doubt many people would consider it a good use of resources to fix. On that basis I'd say leave it but ensure the hack is documented for you or your successor in a few months (see last paragraph). That sa...
128
165
17,231
2016-10-17T05:16:30.857
api_errors
softwareengineering.stackexchange.com
56,561
Combine tables only if no results
We have a table [CODE] that has a huge amount of data in it, most of which is only used infrequently and by (slow) user-interaction. We would like to move all data that is more than 12 months old to an archive table, [CODE] . That will make the frequent reads and writes into [CODE] fast enough. There are many complex s...
You can't say "UNION ALL ONLY IF SOME CONDITION" but you could do: [CODE]
0
1
52
2014-01-10T17:15:33.367
database_errors
dba.stackexchange.com
264,510
directories with two one dot (.) entries
I'm trying to clean up my lost and found, and I've managed to remove most things, but I'm left with "almost" empty directories, like: [CODE] How did I get directories with duplicate entries? Is it safe to unlink the directory when rm complains it's not empty? WTF???
Yes it's really a duplicate. And a force delete may have worked, but an fsck was the proper fix. Basically, I ran fsck, and it saw some bytes it thought was a directory, so it just put a directory entry for it in the lost+found. Running fsck again actually checked the contents of the directory, found the duplicate, and...
5
3
160
2011-04-28T22:07:24.403
data_quality
serverfault.com
16,945
MySql 5.5 in ubuntu repository
Sorry for duplicate question. I am looking for the best way to install mysql 5.5 on ubuntu. So far, there are few options: Installing from tar.gz Installing from PPA. Alien on RPM. All of them don't seem to be optimal to me. Installing from tar.gz takes long time and might have room for mistake. Installing from PPA is ...
There are .deb packages available. Using the ones from http://people.debian.org/~nobse/mysql-5.5/ : [CODE] The first dpkg execution may ask for you to install dependencies. If you're installing on a 32-bit system, alter the URLs accordingly. Latest .debs are available on http://dev.mysql.com/downloads/mysql/#downloads ...
0
1
3,195
2012-04-24T09:02:27.983
database_errors
dba.stackexchange.com
150,482
Interfacing application code with unit tests
I am working on a project in which we have to implement and unit test some new module. I had a quite clear architecture in mind so I quickly wrote down the main classes and methods and then we started writing unit tests. While writing the tests we had to make quite a few modifications to the original code, such as Maki...
I think testing public methods are enough most of the time. If you have a great deal of complexity in your private methods, then consider putting them in another class as public methods and use them as private calls to those methods in your original class. This way you can ensure both methods in your original and utili...
7
8
2,142
2012-05-28T07:15:56.303
api_errors
softwareengineering.stackexchange.com
202,285
Need ideas for a cost effective, green (and small) Sql Server hardware build
I need to upgrade our internal Development Sql Server hardware. Right now it's an Intel Core2 Quad Q6600 @ 2.4Ghz. I feel that the CPU is fine. It's got 4Gig ram - yuck. It's got a sub-par HD in it. So i'm thinking of pumping up the RAM and the HD to a few (eg. OS on Sata, HD's on SSD - not sure about the system tables...
Having tons of memory is counterproductive to "going green" in general. See http://www.behardware.com/articles/670-3/pc-s-actual-power-consumption.html Find the most power friendly PSU you can, and don't get one that is extremely large compared to what you need. A very large PSU may draw more power due to internal loss...
1
1
228
2010-11-16T03:27:30.693
database_errors
serverfault.com
592,326
Parameterizing PowerShell parameters in scheduled tasks
I have a bunch of PowerShell scripts that are kicked off via scheduled tasks at various times. The script are run multiple times with different arguments. Also administrators unfamiliar with scripting needed to be able to change the parameters without have to edit the code. Due to this requirement, I passed the paramet...
What you're doing makes sense; no one need fiddle with the script (which may introduce code issues), or with the scheduled task (which may require that they know the "run as" account's credentials, and is also fiddly especially to those unfamiliar). Having the configuration file path passed in as a parameter also makes...
1
2
4,802
2014-04-30T17:18:04.080
infrastructure
serverfault.com
11,749
How to protect secrets whilst enabling the ability to amend a pipeline
I'm writing a CI pipeline using GitHub Actions. The pipeline will build a Docker image, which it will then push to our Docker repository ( AWS ECR ). In order to talk to ECR, we'll need to provide a secret (and some other details). That secret we'll be pulling from Hashicorp Vault ... though that itself requires a secr...
Developers or even admins of your GitHub repository wouldn't be able to see secrets configured there by default. Even if you debug GitHub Actions workflows and accidentally log secrets, GitHub would mark them with ***. So the only attack vector I can think of is highly deliberate and it would require modifying GitHub A...
2
1
78
2020-06-01T16:46:19.623
pipeline_ops
devops.stackexchange.com
880,774
How can I join a Windows Server 2016 Datacenter Core to a domain?
I want to join a Windows Server 2016 Datacenter Core (Command-Only) to a domain (Which is also using Windows Server 2016 Datacenter). Domain name: rsft.net Username (Both servers): Administrator Password (Both servers): Aa1234 I tried some "netdom" commands I found online and also tried to go on with its own "help" com...
You could use the Server Core configuration utility for this. Type [CODE] at the command prompt. Choose Option 1 ( [CODE] ) by typing 1 and press ENTER Then type D to join a Domain Type the domain name to join, and a valid user for this domain ( [CODE] ) Type the user password when prompted. Reboot when asked.
2
2
13,104
2017-10-28T16:14:51.907
infrastructure
serverfault.com
401,924
Design pattern or structure for when the value of different variables are related
Is there a design pattern or structure that helps to organize code with variables whose values are related? For example, let's imagine I have an object with three properties (gonna use some pseudo code): [CODE] The issue here is that, only some specific states are valid. For example, if [CODE] , then [CODE] and [CODE] ...
The best approach is typically to make the invalid states impossible to express. For example the [CODE] property seem to be redundant, since this is given by the value of [CODE] . So remove this property (or make it into a method which checks the if [CODE] is [CODE] ) and you have eliminated that issue. I cant really f...
0
2
482
2019-12-02T10:14:23.393
api_errors
softwareengineering.stackexchange.com
837,129
NATing through a vpn with libvirt
I installed a server with libvirt, and I've created a test VM. When I use the default network for it's interface, it gets a private IP and the NATing seems to work fine. I installed OpenVPN, so I have a tun0 interface I want to NAT that VM on now (tun0 has a private IP on 172.16.0.0, I have no control over the vpn serv...
When libvirt sets up NAT, it doesn't force traffic to flow to any specific physical NIC. The host's routing rules control where NAT'd traffic will flow. IOW, if using the default libvirt virtual network, traffic ought to be able to flow either to your default NIC eno1 or to the VPN via tun0, according to what target IP...
2
1
4,232
2017-03-08T22:15:56.143
infrastructure
serverfault.com
511,367
Postfix: Recipient address rejected: Invalid HELO/EHLO
The problem seems to be the MS Outlook 2007 not sending SMTP AUTH for some strange reason for only one specific domain. I run iRedMail server (it's using stock debian 7/wheezy, postfix 2.9.6-2) for my domain and few dozens of client domains. The problem is I have a client unable to send email to myself (not just my ema...
The problem was in the policyd (cluebringer)... it was not seen from the log for the first look, that reject was not from postfix restriction but from the policyd. Background I had in cluebringers group internal_domains only my primary domain (after install) and all new domains wasn't there... To solve the problem I de...
1
0
14,812
2013-05-28T12:24:48.827
infrastructure
serverfault.com
45,804
How would you test this form designed for adding and editing tables in a relational database?
I am having a problem with test cases. I have never tested before the forms that add tables in relational database and I am not sure what is the good approach - should I write down test cases that coverage all data types like int, float, boolean etc. or just those visible on this screen? I don't know how to start, mayb...
I would start from analyzing the DDL statement of creating a table in your particular rdbms. For example below is the syntax for plsql : So using this grammar and digging into the grammar components you can learn what are the mandatory data for creating a table and what is optional. Then you start applying standard tes...
0
1
191
2020-09-21T15:55:45.847
data_quality
sqa.stackexchange.com
634,008
What could prevent autocompletion from working on Exchange 2010/Outlook 2010?
I am working with a user in my organization who recently had her mailbox contents restored and now is unable to add entries to her autocompletion list. We are all using Exchange 2010 and Outlook 2010 on Windows 7. The user's mailbox was originally corrupted when one of our Exchange Servers dropped a LUN, and the user's...
The autocomplete list is stored as an hidden message w/ the subject "IPM.Configuration.Autocomplete" in the Inbox folder of the user's mailbox. You can't get at it with Outlook, but other tools will let you. Call me heavy-handed, but I think I'd grab a copy of MFCMAPI and use it to backup an then delete the autocomplet...
2
4
580
2014-10-06T23:29:22.157
data_quality
serverfault.com
101,480
Changing vCenter servers
I have a vCenter 4.0 U1 server with a few Connection Manager servers connected to it. I need to change the vCenter server to another 4.0 U1. Can I simply change the vCenter server info in the Connection Manager without interupting any of my VDI Pools? Thanks for the help
I am pretty sure you need to re-register the CM servers if you move vCenter. This is an old unanswered question... not sure its relevant; but thought I would try.
1
1
199
2010-01-11T11:54:03.593
infrastructure
serverfault.com
20,028
Change user templates path in Word 2007
I can not change the User Templates path in "File location...". It simply refuses to change to anything different. My goal is to set the path to a templates folder on the server e.g \myserver\folder\templates. Although, choosing a different local path does not work either. It simply does not respond/react and keeps the...
Do you have a group policy setting that forces the template folder to a particular location?
1
1
6,185
2009-06-04T19:58:22.730
infrastructure
serverfault.com
1,013,436
Dual Wan mikrotik connection force route
I have two WAN connection to my Mikrotik One for me (ADSL) and another for the family(PPPOE) I want my devices (2 Laptops, & 2 Smartphones) to go through interface 2 ADSL Connection 192.168.1.10/24 192.168.1.0 ether2 and all other devices on the network to go through interface 1 PPPOE Connection 192.168.0.40/24 192.168...
You can use the firewall/mangle feature to park packets. Then, route the marked packets to the WAN you want. For example, if you have your default route via interface "pppoe-out" and want to route traffic from 192.168.0.12 ONLY to your ADSL 192.168.1.10: [CODE]
0
0
1,857
2020-04-21T19:50:34.693
infrastructure
serverfault.com
898,647
Ubuntu server restarted on its own
I am running an Ubuntu 16.04.3 LTS box from Linode, which is very underutilized but uptime monitor told me that my sites were down for almost an hour before they came back up. I checked and found the server rebooted and that was when the site recovered. Had an email from Linode that [CODE] . Alerts setup inside Linode ...
Just learned that this was caused by a power failure at Linode's Fermont data center. So, if you see nothing in your server logs for such an issue, one cause would be the server was just powered off and hence nothing showed up in logs (I remember reading something some systems can though). Always a good idea to check s...
1
0
720
2018-02-23T21:06:38.380
infrastructure
serverfault.com
851,245
AWS EC2 on Private Network
I deployed a VPC, created a subnet for 192.168.0.0/16 Created its internet gateway as well. Then I deployed a Windows EC2, assigned a elastic IP to it: Private IP Public IP 192.168.196.16 34.211.1.247 But I can't connect via RDP, the connection fails, Any advise? Thank you.
Firstly, since your instance have a public IP address, it is clear that it belongs to a public subnet. If you did not alter your Internet Gateway manually, it should work properly. Next you should make sure that port 3389 of your EC2 instance is open to the CIDR block your IP address belongs to. Try creating your CIDR ...
0
1
343
2017-05-20T05:30:21.917
database_errors
serverfault.com
469,587
Cannot directly reject traffic on port 25
My server is running Ubuntu 10.04.4 LTS and I want to reject traffic to port 25. The goal is this: [CODE] I've tried using [CODE] directly, but that failed. Instead, I'm now trying [CODE] : [CODE] However, it doesn't work as expected: [CODE] If I try the same with any other port (say, 23), it works without the waiting ...
tcpdump time: [CODE] CTRL-C when done testing, then load the file up in Wireshark.
2
0
372
2013-01-16T10:50:10.930
infrastructure
serverfault.com
302,473
Postgresql: query is aborting due to low tablespace despite provisioning high memory and space
I am facing a strange bottleneck with Postgresql. Earlier the DB was running on single core machine with 12GB RAM. We migrated it to a 8 core 64 GB RAM. After this migration, many of the times it is creating huge temp files ~ 40GB, where as [CODE] is merely 1.9GB. In the postgresql.conf [CODE] Despite the above configu...
You are running out of space in your default tablespace, because the query has to write so many temporary files. Perhaps you forgot a join condition or two, or you have infinite recursion somewhere.
0
0
253
2021-11-11T14:16:24.730
database_errors
dba.stackexchange.com
23,202
Improve line plot visualisation
I want to improve the graphic that I created with R's ggplot2. The graphic is for a scientific publication. These are the runtime of 12 algorithms. There are four at the top, four in the middle and four at the bottom. They are not necessarily related to each other. It is very hard to discern the different colours from ...
You already made it log scale which would have been my first idea. How about use lattice to make it three plots with different Y start and end? Each plot should have a center point that covers one of the three groupings you have and you can stack them 1x3 (vertically).
0
1
85
2017-09-21T11:42:21.380
data_quality
datascience.stackexchange.com
113,752
How to repair a damage transaction log file for Exchange 2003
Yesterday we had a power failure and the UPS did not work (it has worked perfect before). Everything seem to be ok when I started all the servers again except of the mail, when I try to mount the store I get the following message: “The database files in this store are corrupted” Server: Exchange 2003 running on a Small...
Are your users connecting to Exchange via Outlook in cached mode? If so, you could restore the IS from your last full backup and let the Outlook clients resync with the mailboxes. This will take anything in the OST file that doesn't exist in the restored mailbox and put a copy in the mailbox. If that's not an option, t...
2
1
5,474
2010-02-17T12:32:02.607
data_quality
serverfault.com
593,056
apachelog shows http requests but not tcp connections
I have installed the apachelog program on my ubuntu system. I have several virtual hosts that point to the same log file, so when I run the following, I should see all requests from the multiple sites: [CODE] That should show all requests coming in starting now for the next 5 minutes. So I test it with multiple sites, ...
[CODE] parses the access log of Apache. Each requests gets individually written to this log regardless of whether it was requested in a single KeepAlive session or multiple TCP sessions. [CODE] cannot know anything about how many TCP connections have been made. That access log also does not contain any information abou...
1
0
173
2014-05-04T21:05:44.753
infrastructure
serverfault.com
357,563
Refactoring in A Legacy System: Good vs Bad Technical Pushback
I am noticing a weird mentality, when it comes to refactoring code, and I am not too sure about how I am perceiving it. Overview of the current project: A web application used as an extension to an existing 3rd party web application. The 3rd party application maintains schedules between customers and vendors. The exten...
I don't understand specific problem you have, but I noticed some general ideas in your question. If the changes you are implementing are not affecting the user-percieved behavior of the product, then there is no need to involve product owner. It is your responsibility, as the technical expert here, to decide if this ch...
2
4
312
2017-09-17T14:15:18.117
pipeline_ops
softwareengineering.stackexchange.com
116,093
Why should one avoid cross-team (circular) merges in multiple-team version control?
Please excuse the artwork, I know it looks like an elongated imperial shuttle, but it's the way I visualise a multiple team (or multiple stream) version control strategy. The central core, is the trunk (or master) repository. If there were lots more streams you can imagine more planes projecting out from the trunk, in ...
After reading through the TFS branching and merging documentation I couldn't come up with a sensible answer for your questions. According to the doc's it's perfectly okay to have different streams of development on one product in their own branches. I guess the best arguments against this scenario are: greater complexi...
7
1
299
2011-10-25T10:57:18.777
database_errors
softwareengineering.stackexchange.com
68,054
Fix Linked Server Without Restarting SQL Server Instance
Problem: Occasionally a nightly job will fail, and when I look into it, it is the result of a query across a linked server failing. But for some reason that query seems to remain 'open' in some way and cause subsequent failures. Bad Solution: The only way I have found to fix this is to restart the instance which seems ...
Depending on the statement you are running and how you have your linked servers configured, you could be running into a situation where you have an orphaned distributed transaction sitting out there that you need to kill. To identify if this is the case or not, first run the following query: [CODE] If this returns reco...
5
5
11,801
2014-06-11T15:51:07.530
database_errors
dba.stackexchange.com
1,081,831
ErrorDocument and extension less links not working together
On my website, I have the following code to omit the extension of php pages [CODE] I also added this code to show custom 404 pages [CODE] Both of these work independently but not when used together. When I visit a dummy link like www.mydomain.com/pagethatdontexist , I want to see my 404 page, instead I see File not fou...
I think your regex doesn't match what you want. With the following i'm able to handle url like : /mypage /mypage/myid The regex : [CODE]
1
0
248
2021-10-27T07:41:46.660
infrastructure
serverfault.com
154,939
What is the rationale behind Apache Jena's *everything is an interface if possible* design philosophy?
If you are familiar with the Java RDF and OWL engine Jena , then you have run across their philosophy that everything should be specified as an interface when possible. This means that a Resource , Statement , RDFNode , Property , and even the RDF Model , etc., are, contrary to what you might first think, Interfaces in...
There are a few advantages to using only interfaces as the public face of your API: You can create dynamic proxies that implement an interface ( read more ). Dynamic proxies are often used to implement transparent RPC mechanisms (whereas objects "live" on a server but can be retrieved and operated on by a client applic...
2
2
766
2012-06-29T20:43:14.747
api_errors
softwareengineering.stackexchange.com
71,929
A table that consists of multiple FK or creating separate tables for each FK
I have tables called 'books', 'category', 'subcategory', and 'booksCategory'. Each book can have its own category and subcategories. For example, a Sci-Fi book can belong in the 'category' table under sci-fi, but it also may be under the subcategory under 'Aliens'. Table books - a list of books Table Category - a list ...
Because you desire a categorization hierarchy of indeterminate depth, you will have to use a single category table structured along these lines: [CODE] This type of structure is not as well supported by MySQL as some other RDBMS's, but these issues can all be worked through. You will also need a revised BookCategory ma...
2
3
707
2014-07-20T15:17:12.933
warehouse_errors
dba.stackexchange.com
328,319
How indexes work in composite key and how changing the order affects the performance in Postgres 12?
[CODE] When I use above query then index scan is applied when i query only by it_id or by item_id or using both. But when I use the below then index scan is applied when I query with item_id or (item_id & it_id) . but not when I query with it_id only. [CODE]
An index on [CODE] is very efficient for searches that look like either of the following: [CODE] [CODE] [CODE] However, and index on [CODE] would be better in this case. [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] (with a particularly edfficient index-only scan) There are some less efficient uses of such an...
1
0
269
2023-06-15T05:47:47.247
warehouse_errors
dba.stackexchange.com
766,357
Configuring private name servers and reverse DNS
I have a VPS setup to host five domains from a single IP address. After some help from a previous post here, my DNS for the main domain has this configuration: [CODE] and here is how I setup my Reverse DNS zone: [CODE] When running a DNS check on lamardesigngroup.com I get this error about my reverse DNS. Reverse MX A ...
Normally, your IP address provider should configure the PTR record. Unless the PTR record has been delegated you won't be able to configure a PTR visible to external DNS checkers. If it is delegated, the address format will be different. You can check external DNS for your IP. It appears you do currently have a PTR rec...
1
0
539
2016-03-27T16:08:24.703
infrastructure
serverfault.com
213,983
Can I speed up a large MySQL/MariaDB join through partitioning or merging?
I'm trying to run the following join query as part of a more complex one on MariaDB 10.1.26. [CODE] Both join fields are indexed. However, the join involves a full scan of [CODE] and an index lookup on [CODE] . This is corroborated by the output of [CODE] . [CODE] The sizes of the two tables are relatively large: [CODE...
As MariaDB doesn't seem to support sort-merge joins, I ended up exporting the required fields into two sorted files, performing the [CODE] and [CODE] with the Unix join and uniq tools, and importing the result back into the database. The operation took fewer than 12 hours to complete. Full details are here .
3
1
7,818
2018-08-03T08:00:09.667
database_errors
dba.stackexchange.com
505,047
Multiple spaces in folders and files for rsync backup via /bin/bash /bin/sh
Need a one-time backup of two old messy Windows XP machines because of a company split. Using CentOS 6 x64 minimal install, i mounted some MS Windows NTFS harddrives installed locally via ntfs3g and over the LAN via smb. i need to self document what is backed up and thought there would be no better way than scripting e...
The shell script should be: [CODE]
1
2
427
2013-05-04T19:49:16.480
database_errors
serverfault.com
120,903
struggling in deploying machine learning classifier project
Please and one can help me in this when i try to debug the web-app after i applied the machine learning algorithms (BagOfwords vectorization& classifiers) i have stragguled, and the error was like following: [CODE] So my codes are as follow , ,model.py : [CODE] app2.py: [CODE] pls any help
The error happens when the execution reaches this line in [CODE] : [CODE] Remember [CODE] is one of the methods of the [CODE] class. Therefore, if the variable [CODE] stored such a class, this line would have worked . Since it didn't, that's telling you the variable probably does not store a [CODE] instance :) As a mat...
0
0
39
2023-04-14T03:52:28.043
data_quality
datascience.stackexchange.com
969,217
Why was this -f flag returning true?
I recently set up a rewrite to serve [CODE] files in place of [CODE] files whenever possible. It seemed to be working correctly until today we noticed that a newly uploaded [CODE] image was returning a [CODE] even though the image was present. I did some checking and found that the server was rewriting the [CODE] URL t...
tl;dr [CODE] It should be [CODE] , not [CODE] in the [CODE] TestString . Although it's unclear why this behaviour should have only recently changed (or maybe it hasn't?). [CODE] This should never have worked, unless you had a file called " [CODE] " (with no basename , starting with a dot) in the document root. If you d...
1
2
155
2019-05-28T20:20:03.030
infrastructure
serverfault.com
316,938
MySQL : max_allowed_packet Greater than 1 GB is it possible?
In the field of Digital forensic , a packet size of 1GB is very common and I am getting trouble. Using in-house python script , we extract text out from archives , some files are as big as 4 GB and text inside it can easily reach 1GB . and then we use Sphinxsearch to make it searchable . So now i am facing packet Packe...
Before altering the max_allowed_packet , first let us define it. According to the page 99 of "Understanding MySQL Internals" (ISBN 0-596-00957-7) , here are paragraphs 1-3 explaining it: MySQL network communication code was written under the assumption that queries are always reasonably short, and therefore can be sent...
5
6
4,837
2011-09-29T17:45:45.837
database_errors
serverfault.com
341,973
Resetting root password for MySQL problems (Mac OS X Lion)
I've been trying to reset the root password, and have been following these instructions: [DEAD-LINK] However, when I use the command: [CODE] I receive the following output: [CODE] Why would my permission be denied and how can I fix it? (I have checked to see that this is the correct path, and it is). Please help, thank...
I hope this sounds plausible You need to shutdown mysql first The [CODE] files is probably locked because mysqld is still running. Once you shutdown mysql, then you can start it back up with [CODE] Here ia another possibility: I normally do not start mysql with mysqld_safe. I start it as a server (DISCLAIMER: I do not ...
3
1
2,661
2011-12-17T20:54:27.427
database_errors
serverfault.com
429,168
Best practices for seperating/designing classes and methods for use in testing
I run unit and integration tests on my system. These create, start, stop and delete Docker containers. I want the exact same state in my Docker environment at the end of the tests as I had at the beginning. What would be the best way to restore the original state after the tests run? Option A : I create a class in the ...
Since you're creating a Docker container every time you run a test, and destroy it once the test is finished, the code which creates and destroys the container is, I imagine, in the [CODE] / [CODE] methods. What you should consider is how different are those [CODE] / [CODE] methods from class to class. If all they do i...
0
2
89
2021-06-09T12:33:39.047
data_quality
softwareengineering.stackexchange.com
60,760
What is meant by the RMAN Duplicate "noncurrent point in time"?
When doing a [CODE] from backup connected to the target, how current does the duplication make the database when no [CODE] is set? The closest thing I can find in the documentation is the following statement: Restores and copies the duplicate data files and recovers them with incremental backups and archived redo log f...
It's the moment of the last redolog archival, before some point in time during the RMAN duplicate command. You can test this easily, if you either manually provoke redolog switches (and thus subsequent archivals), or even better: write some script to provoke very frequent and unnecessary redolog switches. In which you ...
0
1
122
2014-03-12T13:17:35.170
data_quality
dba.stackexchange.com
779,942
"route" sub-command does not exits in "ip" command on Cisco 2960-S
I am new to cisco. I'm running a Cisco 2960-S and defined several VLAN on it. I like to use SVI feature and set 192.168.1.254 ip address for interface VLAN 1, 192.168.2.254 for interface VLAN 2 and so on, but I can not ping 192.168.X.254 from the device itself but 192.168.1.254 although I issued [CODE] command on every...
The 2960-S is a layer 2 switch . If you need routing between VLANs, you need a router.
0
1
1,559
2016-05-31T05:51:05.027
infrastructure
serverfault.com
554,897
Set up network to provide remote assistance
Currently: On location A I've got 7 computers running Windows XP Professional SP3. I've got 2 of these running a free version of Teamviewer. The rest have nothing and I can't access them from location B. On location B I've got a notebook running Windows 7, with Teamviewer. I need to be able to: Access all computers in ...
I would do a free sign-up with LogMeIn.com on one of the computers at Site B and see how you like it. While you are at Site B, you can log in as a client from one of the other computers there locally and make sure the settings are working the way you like them (for example, there is a setting to require the local user ...
-1
1
103
2013-11-14T03:08:50.407
infrastructure
serverfault.com
877,626
Postfix only starts after "systemctl daemon-reload"
Today I upgraded Postfix and everything was running fine until I decided to let the server reboot just to see if everything comes back up. Everything went just fine but systemd seems to "ignore" the Postfix startup: [CODE] As you can see it shows nothing about the Postfix startup which is expected to be like this: [COD...
Okay, what finally helped me out was this simple command: [CODE] After rebooting everything starts up fine.
3
4
5,029
2017-10-09T15:04:10.717
infrastructure
serverfault.com
139,187
Catching two error messages/Throw into table
My goal is to catch errors from backup jobs into monitoring table. The problem is, that there are cases that backup statement returns more than one error, so ERROR_MESSAGE() is not enough: Msg 3201, Level 16, State 1, Line 1 Cannot open backup device '...' Operating system error 3(The system cannot find the path specif...
You can enhance error handling with Extended Events to overcome the TRY...CATCH shortcoming you are experiencing. The design pattern involves these steps: Create and start an Extended Events Session: it will capture [CODE] events, filtered primarily by SPID. Execute a statement in a [CODE] block. Within (or after) the ...
3
3
2,170
2016-05-22T05:51:10.230
database_errors
dba.stackexchange.com
480,107
Router with multiple incoming IPSec VPN Tunnels?
We currently have a Draytek Vigor 3200 Multi-Wan router which has 5 incoming VPN tunnels using IPSec AES encrypted configurations. All five sites are using Draytek Vigor routers, most are Vigor 2800's. The bandwidth at the main site (Vigor 3200) is 70Mbps down and around 30Mbps up with a backup link of 10Mbps symmetric...
Using off hours (assuming they exist or a maintenance window) bench mark it by sending as much traffic as you can over the links until performance degrades. This will give you an idea as to how much traffic is too much. You can then use these benchmarks as warning indicators for future performance.
0
1
715
2013-02-18T23:51:23.883
pipeline_ops
serverfault.com
112,579
What is the best way to generate an accurate release changelog?
I'm working on some projects where I'd like to supply an accurate changelog with each release, but I haven't found a method for collecting the changelog that would work without hassle. The problem is mostly when the time between versions is long and each version ships with a lot of features and bug fixes, and when the ...
If you don't already have the requirement of a ticket for each change, then getting developers to create a ticket for each change important enough to end up in the change log seems reasonable. If the change is significant enough to tell users about, then you probably want to be making that change under a ticket anyway,...
8
6
1,609
2011-10-05T15:15:23.877
api_errors
softwareengineering.stackexchange.com
598,747
Why would TCP wrappers stop working for sshd?
On a couple of CentOS 5 servers sshd seems to have become 'unwrapped' - previously I was using TCP wrappers and hosts.allow/hosts.deny to control access, but these are now not being used. If I execute [CODE] it outputs nothing, whereas on servers where TCP wrappers are still working I see [CODE] Does anyone know what m...
At the moment, there's evidence that your [CODE] has been recompiled. The MD5 checksum and the file size are wrong, according to the [CODE] output. [CODE] seems to be less helpful than, say, openssh in telling you what version it's running and when it was compiled, but the output of [CODE] and the top ten or so lines f...
2
2
2,005
2014-05-27T08:38:51.200
infrastructure
serverfault.com
882,644
Bad response to Storage command - wanted 2000 got 2800 - Job TermCode=69
I will try to explain the problem I am facing: When I restore one client's backup that uses two "volumes", I get this error: [CODE] I have tried to find a solution for this issue. Some people say that is a NFS error, but only occurs when the restore touches more than one volume. If I run a restore job from a single vol...
Option 1 - Configuration error Firstly, have you done a restore before with this configuration? I have a "RestoreFiles" job to make this work which looks like this: [CODE] Option 2 - Protocol Error Secondly, more information is needed. The communication between the [CODE] server and the [CODE] client uses a protocol th...
3
1
2,627
2017-11-09T12:11:53.873
database_errors
serverfault.com
184,933
SQL Server configuration manager - New alias grayed out
I want to create an alias in SQL Server Configuration Manager. I can navigate to "Aliases" in the tree on the left, and I can right-click to open the context menu when "New alias..." is an option. When I click "New alias...", I get the following window: All of the fields are grayed-out and uneditable. Is this a bug in ...
There is a note in books online If a configured alias is connecting to the wrong server or instance, disable and then reenable the associated network protocol. Doing this clears any cached connection information and allows the client to connect correctly. Consider repairing the SQL Server Shared Tools by running the SQ...
3
0
2,800
2017-09-01T17:59:02.113
database_errors
dba.stackexchange.com
494,452
Openvswitch Installation Issue
I am trying to install openvswitch on my ubuntu 12.04 Machine for KVM. But it is showing [CODE] tried " module-assistant auto-install openvswitch-datapath " which returned " [CODE] Using: kernel 3.2.0-23-generic, Ubuntu 12.04 lsmod|brcom showing nothing How can i fix datapath module issue?
Remove default bridge [CODE] Enable Module brcompat [CODE] Check [CODE] restart ovs [CODE] If everything is fine try adding interface
1
0
241
2013-03-29T07:22:41.390
infrastructure
serverfault.com
755,874
Powershell script to create folder based on username and then move profile data
I am having to create a solution to backup user profiles on a domain (not VDI's) I have the following script that I got to copy the favorites folder, the issue I am having is that I need the script to create a folder based on the username of the person we are backing up and then copy the profile to the folder that was ...
If you want to copy the entire user's profile folder, that should include the 'Favorites' folder as well. If that is the case, you could use this. [CODE] That should create a folder based on the username.
1
1
2,238
2016-02-12T18:09:35.613
database_errors
serverfault.com
885,042
m3 instances have root EBS volume by default. so now what is the difference between m3 and m4?
The AWS instances page indicates that the primary difference between the m3 and m4 instances is the EBS v/s instance-based (SSD) storage. [CODE] But it looks like all instances are launched with EBS-based root volumes by default ( https://stackoverflow.com/a/36688645/4040267 ), and I see this in my instances as well. m...
M4 instances are the latest generation of the General Purpose instances. M3 was the previous generation. Amazon tends to make the new generation instances cheaper or raise the price for the old generation instances. My guess is to motivate customers to move to the new generation so that the old stuff can be decommissio...
0
1
467
2017-11-24T15:46:30.793
infrastructure
serverfault.com
244,929
mysqldump can write to /tmp and /var/tmp but nowhere else
I have various MySQL databases on different servers and at different versions. I'm using the same [CODE] command across Linux versions without issue except for this new Red Hat 7.6 server. Command: [CODE] Prior to the mysqldump command: [CODE] This is all scripted so no chance for a typo. On all the older servers, and ...
I found the initial problem which was the txt files were being stored in a protected directory in [CODE] . The solution however was to store the files into a directory outside of the [CODE] and [CODE] directory structure. The powers that be decided that the output shouldn't be viewable to the non-mysql account so worke...
0
0
1,256
2019-08-08T22:26:58.110
hadoop_errors
dba.stackexchange.com
212,887
Save file to Sharepoint Document Library by NETWORK SERVICE
First of all, I apologise for any inaccuracy/mistakes - it is my first post here. Here is the scenario: I have Windows Server 2008 R2 with roles: Active Directory Fax Server Web Server (IIS) File Services Printing Server Application Server There is also Desktop Experience Feature for accessing UNC shares from localhost...
A cleaner approach to this might be to mail-enable your library and configure the fax server to mail new faxes to the library's address. I know that seems a bit much since they're both on the same machine, but it has the advantage of using simple and well-understood technology in both SP and Fax Server.
0
0
478
2010-12-15T15:19:12.870
infrastructure
serverfault.com
196,101
Read performance when indexing one column vs indexing multiple columns
(MySQL, InnoDB) I have a table that has columns A, B and C. That table will have a lot of rows, let's say a million rows. I have a query that will be executed very often and will search the table by the A column, so I added an index on the A column. I have another query that will not be executed as often as the first o...
The index is a guide to the main table. So your first query will use the Index on column A to identify which rows in the table have the data it wants, then does a key lookup to get the rest of the data and do further filtering if necessary. So your second query will also use Index A and then do a key lookup and then do...
4
3
3,595
2018-01-24T09:23:38.543
database_errors
dba.stackexchange.com
684,701
Apache Causing High Load
I'm having an issue with Apache 2.2.15 (CentOS 6.x x64) causing high memory load, to the point of consume 100% of an 8GB swap, and load averages >125. The VM is an Azure A2 VM (2 vCPU, 3.5GB RAM). This has worked wonderfully for quite some time, and my traffic hasn't changed much per WordPress stats. This server also h...
The fix was to follow the instructions at https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-centos-5.2 . Commenting out everything in php.conf. After that mod_fcgi took over handling php in it's own process, rather than in Apache's process.
0
0
395
2015-04-22T15:03:41.547
api_errors
serverfault.com
941,304
sshd log contains "pam_unix authentication failure"
I am getting the following error messages in my Linux machine. [CODE] this happens often and my log is full of this error message. How to overcome this issue?
Someone is trying to brute-force the password for your [CODE] user. (It doesn't matter if password login is prohibited for it — they can still try, they'll just fail every time.) You normally won't want to suppress these log messages ; they can be useful information when someone does manage to break into your system at...
4
6
34,852
2018-11-23T07:11:16.767
api_errors
serverfault.com
555,467
Wrangling sed to find and reformat login date (or, how to kill idle mosh-server processes)
I have an old method of killing idle mosh-server processes, which doesn't work on my new VPS. Here's the old method, which I run in root's crontab to clean up mosh processes that have been idle for 10+ days: [CODE] The problem is that on the new VPS, these processes don't have TTYs, so I can't match by TTY and kill mos...
Your [CODE] test is different from your loop test in two significant ways: There's no white space around the date the regex lacks anchors Part of the reason your loop test isn't working is that you're not taking the white space into account. Another reason is that you're using the [CODE] quantifier which means "zero or...
1
1
210
2013-11-16T19:22:22.830
infrastructure
serverfault.com
1,019,336
Inverse Name Search by UID (CentOS 8) - Retrieves last created with same UID
I am working with CentOS 8 and I have a problem with UIDs and User Names. I have installed VestaCP to manage my websites. The user by the name of "user123" and UID 1007 is the owner of all the websites (user in VestaCP). Then I have created individual FTP users for each website. Each FTP user has the following name for...
I would use a different solution. I would add all those users in 2 groups, one group to give read-only access, and another group to give read-write access. Then I would use extended POSIX ACLs to give those groups permission on the folders and files. You can set a default permission to be inherited. And with setGID I w...
1
0
106
2020-05-30T15:11:30.857
infrastructure
serverfault.com
397,656
ExecCGI turned off in this directory
I'm trying to run a python cgi script on my Mac's web server. Everytime I visit the file @ localhost/site.py I get a 403 forbidden error. I'm looking in my Apache's error log, and it says: [CODE] I've changed my httpd.conf file so that my document root is /Users//Sites In my user's .conf file, I have the following: [CO...
Do you use mac's built-in apache2, or package like XAMPP? I found XAMPP doesn't use user.conf, one have to edit /Applications/XAMPP/etc/httpd.conf. Another things is the change of user.conf take effect AFTER apache restart.
0
1
1,021
2012-06-11T16:51:07.270
api_errors
serverfault.com
987,017
Set up https/SSL certificate for private Gitlab instance without custom domain
I set up my private Gitlab server. It works fine and when I enter my IP I can access it. I do not have a custom domain and I also do not want one since I don't want to make the server accessible from the outside. Most of the guides only show how to set up https with Let's Encrypt for which - as far as I can tell - I ne...
This is not possible. A couple of observations - A self signed cert is not useless. You need to ensure that cert is accepted for your domain by your computers and its quite secure. Alternatively you can go all the way and create your own CA, add your CA cert to your devices and have multiple certs. A (browser trusted) ...
0
0
1,015
2019-10-07T08:04:50.770
api_errors
serverfault.com
1,080,588
Why the IP cannot be used directly when the IP mapped to the host name as a host entry works?
I was given an API for a service through which I tried to send a post message from server A, but the connection cannot be built. Then I ping the domain name in the API. It doesn't work, so I thought it would be that the domain name had not been publicly mapped to the website. To find the IP of the website, I pinged tha...
Many webservers use the hostname that is sent in the request to determine which website should be used. This allows for multiple sites on the same IP. So yes, correct hostname is often required.
0
0
112
2021-10-15T00:53:55.887
data_quality
serverfault.com
132,607
Rebalancing fast with mongodb
I am implementing a sharding with MongoDB and have recently added another node, but the rebalancing of data is very slow. Servers have 64 Mac OS with RAM. I need help on how I can run the [CODE] process faster.
Yes, mongod However, if you upgrade your system to 3.4 series, balancing will be about 10x faster and even faster if you have multiple shards (>=4)
0
1
470
2016-03-18T02:25:34.067
database_errors
dba.stackexchange.com
234,161
Is it advisable to create an ad-hoc open source software license?
I have several private projects that I might be needed to show to my prospective employers. I haven't uploaded them to any online version control system because not only do I not have the patience to filter the many many licenses available and choose the most appropriate one (as I am not yet sure how I would want my op...
You don't have to license your code at all in order to publicise it – with no license stating otherwise, other people can't do anything with your code except reading it. There are some exceptions: Copyright law may grant limited use of your work. One important example is the fair use clause in U.S. copyright law, anoth...
1
5
229
2014-03-29T15:38:32.527
api_errors
softwareengineering.stackexchange.com
286,618
Better way of handling incorrect date format in a column with "char(10)" data type / TRY_CONVERT equivalent in PLSQL
I have a source table with below structure: [CODE] Unfortunately the [CODE] column data type is [CODE] instead of [CODE] . Some example data for this table would be like below: [CODE] what I've done is writing a function to evaluate every single record and return it's correct format but as you know , using a function f...
[CODE] is a function that is called for every record, how is that different? Below works since 12.2: [CODE] On your version, you can use your function.
0
1
379
2021-03-07T12:23:30.670
database_errors
dba.stackexchange.com
361,370
MySQL ODBC Connector & unixODBC Issue - Garbled connections
Having a heck of a time trying to isolate an issue on a new server install: I've installed MySQL, unixODBC and the MySQL Connector for ODBC, setup odbc.ini and odbcinst.ini as I have on my other 32-bit systems, but having an issue with applications (except PHP) receiving garbled data after a query. For control purposes...
Using the RPM from MySQL was the wrong way to go. Found an RPM for EL5 that worked without a hitch, have no idea what it wasn't showing in the YUM repos...but all is well now.
1
0
1,269
2012-02-17T23:37:01.557
database_errors
serverfault.com
458,804
Proliant server will not accept new hard disks in RAID 1+0?
I have a HP ProLiant DL380 G5, I have two logical drives configured with RAID. I have one logical drive RAID 1+0 with two 72 gb 10k sas 1 port spare no 376597-001. I had one hard disk fail and ordered a replacement. The configuration utility showed error and would not rebuild the RAID. I presumed a hard disk fault and ...
You may have a spare (replacement) drive whose size in sectors is slightly less than the original drive. What operating system are you using? We can look at the [CODE] output to determine this for sure. I will update this answer once we get more information. Edit: See my answer on: Smart Array P400i Physical Drive fail...
3
6
14,200
2012-12-17T19:28:13.713
infrastructure
serverfault.com
265,511
Aggregating data by group and time gaps
I've got a postgresql+postgis database filled with GPS data: [CODE] My data comes in regularly but there are some gaps. I'd like to find the average speed and build up a linestring from the data grouped by "gps_id" AND by gaps greater than X hours: [CODE] It's pretty easy to do find the basic aggregate but grouping by ...
I know this is an old question, but maybe somebody comes here for an answer. I just had to do the thing RedM asked. I used CTE with some window functions, following the Gaps and Islands article: [CODE]
0
2
245
2020-04-21T14:31:13.613
database_errors
dba.stackexchange.com
913,255
Will unsuccessful logon attempts to a RDP server be represented in the firewall logs?
Assume the topology below: Host A is remotely connecting with RDP to Host B, there is a firewall between them. Firewall's logs are collected and monitored. When the user is prompted with a Windows Security pop up to enter a password and submits an incorrect one, what happens? At the point the user at Host A is presente...
The firewall logs the traffic. It allows the traffic based on the rule configuration. The firewall log should show "allowed" because that is the disposition of that specific traffic. You allow inbound RDP, so the firewall logs this traffic as allowed. The firewall log has nothing to do with the authentication failure a...
0
0
290
2018-05-22T13:57:48.953
infrastructure
serverfault.com
526,897
vmware esxi - vmkfstools returns error when trying to copy thin vmdk
When trying to copy a thin vmdk on esxi 5 using vmkfstools like this: [CODE] I get this error: DiskLib_Check() failed for source disk. The file specified is not a virtual disk (15). I can perfectly use the vmdk in my vm so I am not exactly sure what is wrong. How can I fix it?
Using [CODE] , you need to target the small [CODE] file, not the [CODE] file. Leave [CODE] out of the destination file name as well.
3
10
21,776
2013-07-28T17:53:58.947
infrastructure
serverfault.com
14,634
Test a Form with no client side validation
I have a long form ~22 fields with no client side validation, and it gives an error message which just reads "Error", after i hit the submit button? how can i go about testing it? any suggestions.
To begin with, if there is no validation on client side at all, you need to have a proper error message why it is failing. So report it as a bug or improvement. Meanwhile, you can check the log files in the server with the hope that there is any useful info there explaining what is the problem.
1
1
85
2015-09-08T20:46:56.420
data_quality
sqa.stackexchange.com
89,530
What are good resources to learn the basics of graph theory
I just spent half a day "debugging" a script that tried to get the betweenness centrality of a weighted graph with negative weights. However the package I used for that julia's [CODE] uses Dijkstra's shortest paths, which require non-negative weights as input. I didn't know this, and thus wasted a lot of my and other p...
I can think of two very good resources that may help you to acquire the foundational knowledge on graph theory and complex networks: Network Science by Barabasi is you prefer a web tutorial: http://networksciencebook.com/ The Structure of Complex Networks by Estrada if you prefer a book: https://oxford.universitypresss...
0
1
44
2021-02-18T11:28:53.690
data_quality
datascience.stackexchange.com
928,172
Windows 10 1803 Requires SMB2 or Higher
I tried to change the computer-name on a Windows 10 (1803) workstation and got this error: The link mentioned goes here . What's the best way to handle this (in a way where I won't see this again) on our Active Directory 2008R2 network?
Activate SMBv2 support on your DC (For the NETLOGON and SYSVOL's volume) (Check there HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters) I suspect only SMBv1 is activated at the moment we talk. (Or re-activate SMBv1 on the Windows 10 in the short term) Newest Windows 10 build remove SMBv1 support for secu...
1
3
2,150
2018-08-27T14:46:39.943
infrastructure
serverfault.com
205,416
MYSQL - Select statement ordered by count of matching rows from another table
I am trying to select the most relevant products from a table that match the currently viewed product based on the number of matching product categories. Sample table A [CODE] Sample table B [CODE] When looking at product ID 1 I want to run a query to show the viewer products matching ID's 4 and 6 as other possible opt...
as variant: [CODE] add after comment: MySQL do not support LIMIT in subqueries, so You can: Handle returned values in application and use it for prepared statements as parameters Use temporary tables [CODE] temporary table is session, so You could use it with same name independent for each session. But if handle return...
0
0
801
2018-05-01T04:13:00.090
database_errors
dba.stackexchange.com
998,586
Enabling opcache.restrict_api for security reasons
This article says that having [CODE] enabled is a security risk. To turn it off, one has to configure [CODE] , but I couldn't find an example of how. This person had the restriction in effect when configured as [CODE] , which gives me a clue that it needs to be a path. I started by creating a test script with an [CODE]...
Looking at the source code of ext/opcache/zend_accelerator_module.c For the information to 'leak', [CODE] needs to return [CODE] . In that function itself , it takes [CODE] (which, apparently, equals to [CODE] ) and matches it against [CODE] , comparing first few characters of the two values. Since the first character ...
1
2
622
2020-01-11T21:29:03.750
infrastructure
serverfault.com
168,257
Windows Server 2008: Third-party softwares for Managing backup's
Need third party software solutions to configure, automated backup from one server to another and also to manage and catalog backups to DVD's and/or other removable media. To configure regular automated backups (with restore capacities) of the active directory services database, registry, boot files, etc Powerful resto...
I have used BackupExec in the past and been fairly happy with it. Although I have used it for backing up and restoring files, I've never had to use IDR (or anything similar) to recover from a disaster, so your mileage may vary from here. As with anything, TEST this product in your environment, including simulating a di...
1
2
383
2010-08-08T15:40:48.817
database_errors
serverfault.com
651,862
Red Hat 6.6, OpenLDAP, ldaps not responding
I'm having a hard time migrating our openldap installation from Debian to RedHat. Two instances of openldap are running, they have the same configuration, except that one handles ldap: requests, and the other one ldaps: requests. netstat shows that they are both listening: [CODE] I'm not sure why two lines are shown fo...
Got it: the IPv4 port was attributed to portreserve.
2
0
920
2014-12-11T13:33:18.830
infrastructure
serverfault.com
78,405
Adding nullable column to table costs more than 10 minutes
I have problems to add a new column on a table. I tried to run it a couple of times, but after more than 10 minutes running, I decided to cancel the query because of lock time. [CODE] Useful information: PostgreSQL version: 9.1 Number of rows: ~ 250K Number of columns: 38 Number of nullable columns: 32 Number of constr...
There are a couple of misunderstandings here: The null bitmap is not part of the heap tuple header. Per documentation: There is a fixed-size header (occupying 23 bytes on most machines), followed by an optional null bitmap ... Your 32 nullable columns are unsuspicious for two reasons: The null bitmap is added per row ,...
11
9
6,244
2014-08-28T10:30:19.803
data_quality
dba.stackexchange.com
1,129,117
Enabling wireguard log messages with secure boot / kernel lockdown enabled
On fedora 37, I am trying to enable kernel log messages for wireguard by executing this command in a root-shell: [CODE] Unfortunately, this results in an error: [CODE] . I can see in dmesg that the reason for this error is: [CODE] . Kernel lockdown is automatically enabled due to secure boot being enabled. Is there any...
To temporary enable wireguard kernel log messages, execute: [CODE] reference: https://www.kernel.org/doc/html/v5.0/admin-guide/dynamic-debug-howto.html#debug-messages-at-module-initialization-time You can view the log message with [CODE] If you want to permanently enable wireguard kernel log messages, create a modprobe...
3
5
997
2023-04-19T21:05:24.243
infrastructure
serverfault.com
67,439
What is the output of multivariate LSTM model?
I am currently trying to build an LSTM model by using multivariate inputs, but I don't understand what exact output I am predicting. I am currently using 5 features in the data as input data: [CODE] My main goal is to predict 'Avg CPU load' by using the other features as input data, but I am not sure if I am doing that...
If you want to predict "Avg CPU Load", your [CODE] should be only the "Avg CPU Load" column and your [CODE] should be the rest of the columns (you might skip the time column if all timestamps are equally spaced). The network will then learn a function mapping rest of the columns to "Avg CPU Load" and it shall be predic...
2
0
209
2020-02-03T04:38:18.170
data_quality
datascience.stackexchange.com
873,801
Automatically generating PTR records in reverse lookup zone
I am working on setting up DNS in our environment. In the test bed, I was creating some [CODE] records and [CODE] records in the forward and reverse lookup zone files. So, I was wondering instead of adding the records manually in two places, will we able to generate the [CODE] records programmatically based on the [COD...
I came across dnsrev , which walks you through generating reverse zones from your forward zones using [CODE] . It takes a bit of setup and it isn't pretty, but it appears to be more recent than the [CODE] solution. My suggestion would be if possible, use PowerDNS with the PowerAdmin web frontend instead. PowerAdmin mak...
0
0
4,392
2017-09-15T09:54:18.803
infrastructure
serverfault.com
237,273
how do you manage api keys?
I have a few projects that use various webservices e.g. DropBox, AWS. For managing private information I use [CODE] which works great with heroku that uses env variables to manages secret informations. The problem is my bash_profile is growing significantly (HEROKU_ADD_ON_1 HEROKU_ADD_ON_2 etc.) and it bit me today. Wh...
I've typically managed all kinds of project secrets via configuration files (often environment-specific) and then never commit these to source control. The format of these files can be whatever you want / whatever works well: xml, yaml, json, etc. Then the code is responsible for reading the values out of the config fi...
1
1
210
2014-04-28T13:15:46.473
api_errors
softwareengineering.stackexchange.com
332,983
Do NOT log "File does not exist" errors. How to?
I have millions of "File does not exist" errors each month in logs of my flash game website. Flash files call those unexisted files. There are over 10000 different unexisted files in many variety of directories, extensions and referrers. I want "File does not exist" errors to be not logged. Can't figure out a way to do...
You could use a logging daemon such as syslog-ng or rsyslog and have it drop lines that match certain patterns such as "File does not exist". To get Apache to use syslog, you can change your logging directives to something like these: [CODE]
3
1
906
2011-11-20T18:28:57.340
database_errors
serverfault.com
165,288
Misunderstanding Scope in JavaScript?
I've seen a few other developers talk about binding scope in JavaScript but it has always seemed to me like this is an inaccurate phrase. The [CODE] and [CODE] don't pass scope around between two methods; they change the caller of the function - two very different things. For example: [CODE] If the scope of [CODE] was ...
You are correct. It's better to think in terms of object context than scope with call and apply. However, this following example might be seen as making a scope accessible to another object context: [CODE] I may not have the exact details right but I think JS objects built from function constructors are basically just ...
5
3
275
2012-09-18T17:07:08.487
api_errors
softwareengineering.stackexchange.com
192,371
Debugging UI Problems in IE8 (Was IE8 on Windows 7 Authentication Mess)
UPDATE : I think the real question I need to ask here is: how does a technician debug UI problems with Internet Explorer, and not HTML rendering issues that have pretty good tools ? I am aware of the SysInternals tools and others mentioned below, but maybe I am not harnessing their power properly. Someone else in the T...
Have you tried adding the app URL to the Local Intranet Zone? The screenshot shows it in the Internet zone which will be very restricted by default, especially in IE8. Nowadays it is the browser security features causing a large number of such issues. I would also recommend enabling script debugging in Internet Options...
4
0
699
2010-10-19T06:52:21.883
api_errors
serverfault.com
19,360
Design best practices for last tracking with indexed view
My tables structure is below : [CODE] I want to have indexed view to get last TbDocActions columns for each [CODE] record. result of this view must be such as below : [CODE] For get this result with view I can use below query: [CODE] but I want indexed view to have better performance. and in indexed view I can't use [C...
The fastest solution is as follows: you create an additional column, IsLastID, and build a filtered index or an indexed view using it. You can use constraints to ensure the integrity of IsLastID, as described here Grant Fritchey wrote up a detailed comparison of various solutions here
7
6
3,712
2012-06-16T09:51:08.337
warehouse_errors
dba.stackexchange.com
116,130
How to find entity names in non-grammaratical text?
Given: [CODE] Get: [CODE] i.e. words 1 and 2 denote a shop name, 3 and 4 denote a medicine name, etc. Challenges: recognize shop names: some shop names maybe non-English dictionary words (Romanized spelling of local language words) separate medicine names: there are absolutely no punctuation marks like [CODE] or [CODE]...
NER requires indications in the context of the text to detect entities, so it's not surprising that it doesn't work here. I am amazed how humans (even non-Pharmacists) can label most of the data correctly The key certainly lies here: you should try to find out how humans do it, which indications they use, so that you c...
2
0
31
2022-11-13T03:10:44.380
data_quality
datascience.stackexchange.com
116,054
Prevent explicit insert into serial columns
I want to prevent explicit inserts into serial columns. I have come up to the following trigger: [CODE] Maybe there is a better approach? Maybe this approach is broken and this cannot be achieved at all? P.S. I also think about not granting rights for the insert and update, but only for pgplsql procedure for inserting/...
In Postgres 10 or later, consider an [CODE] column instead. Like: [CODE] See: What are Identity Columns? Auto increment table column Original answer for older versions: Updateable View In Postgres 9.4 , views are automatically updatable per column . I.e., as long as basic conditions are met, columns are automatically u...
6
14
7,040
2015-09-24T16:08:45.970
warehouse_errors
dba.stackexchange.com
1,099,540
EKS Pods with ephemeral-storage constantly evicted
I'm working on EKS v1.20.11-eks-f17b81 and I'm facing an issue with a Java container Alpine based. Basically my deployment have the limits of ephemeral-storage for the request's and also the limit's like this. [CODE] The pods after a few hours all of them, will be on Evicted state, and I'm not able to understand why, i...
TLDR: Either don't use [CODE] limits at all or use them on all containers in the pod. I guess you don't have [CODE] limits set for all containers in that particular pod. Eviction manager sums all limits of containers and sets it as upper limit on pod level . This is actual code snippet : [CODE] As you can see both [COD...
2
1
1,537
2022-04-26T20:42:02.720
pipeline_ops
serverfault.com
240,942
BAD ARCHIVE MIRROR using PXE BOOT method
i m trying to automatically install UBUNTU on a client PC by using the method of PXE BOOT method....my Objectives are below:- i m following the steps given in this link installation using PXE BOOT INSTALL 1:-the server will have a KICKSTART config file which contains the parameters for the OS installation and the files...
Install apache: [CODE] Mount Ubuntu cd and copy all file: [CODE] Enter http://$SERVER_IP/ubuntu/ to mirror.
0
1
2,859
2011-02-27T22:01:49.520
hadoop_errors
serverfault.com
534,807
Dovecot won't deliver the first mail to a mailstore on nfs share
I'm building a mail platform using Dovecot/postfix/MySQL/iredmail/etc. The business end is on Ubuntu 13.04, the mailstore is an NFS share on Ubuntu 12.04. Now when I try to send a mail to a new account, I get this in the postfix logs. Aug 29 12:39:23 core-01-mail postfix/pipe[8374]: 5BEFF7A1: to=, relay=dovecot, delay=...
There is not much information. Can you access /data the normal way? and make directories / files there? Small guess: shouldn't you mount with "rw" too? I don't think that is the problem however, as I think Postfix would have said "Cannot create directory" instead "Temporary failure". Can you post the output of "nfsstat...
0
0
202
2013-08-29T12:15:39.373
database_errors
serverfault.com
851,006
AWS + S3 - Linux downloads, powershell stalls?
I've set up an S3 bucket. From a Linux host, once I create a config and credentials file, I can do: aws s3api get-object --bucket --key /root/ and myfile is downloaded from S3. From a Windows host, I do this in Powershell: PS C:\Users\Administrator> Set-AWSCredentials -AccessKey SecretKey -StoreAs default PS C:\Users\A...
And the answer is...... in order to connect to S3, you need to allow egress of 443 and 80 from your instances.
0
0
381
2017-05-18T22:56:27.073
infrastructure
serverfault.com
315,891
samba not working on one interface
I am going a little crazy trying to get Samba working and would really appreciate some pointers. It's quite possible that I have misconfiged some part of the network configuration too. I am running Ubuntu 11.04 Server. smbd reports version 3.5.8. My server has two network interfaces configured. One is the primary inter...
Figured it out: On the windows machine, the network card which was connecting to eth0 has "Client for Microsoft Networks" enabled. The network card which was connecting to eth3 had it disabled.
0
1
1,228
2011-09-27T10:33:28.783
infrastructure
serverfault.com
188,889
group tick data to minute data using MySQL
I have the following table, Input. Do you know how to group the tick data into minute interval as shown in the table, Desired Output using mySQL? I read the data directly from csv to mySQL Criteria It will take the last price within the minute bar and output as its minute bar. ie If I have the these two tick data, 06:0...
What you want is something like this which uses the [CODE] [CODE] The inner selects and groups by the date,hour/min, and grabs the max(id) and count(*). The outer joins back to the table and resolves to find the price. In other news, why are you storing date and time separately? You should be using a timestamp.
0
1
1,172
2017-10-20T00:31:11.257
data_quality
dba.stackexchange.com
150,890
need to correct this Query/Loop to find and start "new branch" in the output
given these tables: [CODE] The output ( from the Query and Loops below ) is this: [CODE] I can see that it "chainlinks" 1 » 3 » 4, and because of this it's continuing the chain and does not start a new branch where I need it to (denoted here with » »). (I'd also love it if someone could help me include this "info" fiel...
SOLVED (yay!): I simply put a Start ['s'] toggle, 1/0, in ASSOCS [CODE] and dug it out in my query (a.s AS s): [CODE] stored it and called it in place of the $level switch: [CODE] right, I can't believe it worked, either.
2
0
27
2016-09-28T15:00:26.593
warehouse_errors
dba.stackexchange.com
266,490
WinXP RDC connection bar appears like the RDC connection bar for Windows Server 2008?
I have noticed that all of a sudden my RDC Connection Bar and the RDC Console (mstsc dialog) are appearing like their equivalent UI of Windows Server 2008. I am on Win XP and here is what I see when I run the mstsc command: The connection bar that should appear like below is appearing like the one in Windows Server 200...
When your RDS/Terminal Server client is updated to 6.1 (I think) or above, it shows up like the 2008 one, nomatter what. It's far more functional than the one you've screenshotted, in that you can move it around so that it doesn't sit ontop of the other menu bars, making you window session after session to get back to ...
3
2
111
2011-05-05T02:06:07.767
infrastructure
serverfault.com
743,611
multipath, device mapper, and disk i/o scheduler
We have two machines with a multi path SAS controller, each with 12 physical disks attached. We were looking into some I/O speed oddness, and noticed that on one machine, where /dev/mpath/mpath*p1 maps to dm-13 through dm-24 in various ways, dm-13 and dm-14 have an io scheduler of "cfq" in place. The other dm devices i...
I have found the answer to my own question. We have a slightly unusual setup perhaps, where /dev/mapper/mpatha is the whole disk and /dev/mapper/mpathap1 is the first partition on that disk. Since we built the software raid array using /dev/mapper/mpath?p1 devices, these never have a scheduler, since they really ultima...
3
1
1,955
2015-12-17T03:13:22.107
infrastructure
serverfault.com
469,615
Windows Authentication over diferent domains
In my company we have a very complex infrastructure. We are from a subcompany, and we have a Active Directory Domain, configured in our PC's. Otherwise, all of us, have a Directory account for main company for access some resources and websites from main Company, and another Directory Account for accesing some resource...
AD Federation Services is a way to enable users from X domain access to resources in domain Y, without requiring a trust. It may not fit all of your requirements, but it's just about the only thing that can come close.
0
2
151
2013-01-16T12:25:00.083
api_errors
serverfault.com
540,344
GPFS quorum and rolling updates
I guess it's something that I am missing although I have read the GPFS documentation. Let's say we have a four node GPFS setup, with three of them acting as quorum. In GPFS > 3.2 we can perform rolling upgrades, but how will that work when there is no possibility of keeping a quorum; (at some point one of these three n...
So, it seems I found an answer. In order for a quorum to be available, you need more than half of the nodes that belong to it to be online. That means that on a quorum of 6 nodes needs 4 nodes online, or for example a quorum consisting of 3 nodes needs 2 of them to be online. Here is the information (go to the Node Quo...
2
2
818
2013-09-19T23:41:34.273
infrastructure
serverfault.com