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
259,464
Removing ForeFront Client Security and MOM Server - How to repoint managed clients to unmanaged?
Like the title says, how can I remove FCS and MOM and not have the clients wait for updates from the server and go on its own to get updates from Windows Update automatically? Reason for this is we don't really need the FCS and MOM server and they're just taking up a lot of resources on our VM box. All the information ...
Go to MOM administrator console and select Agent Managed computers Select the computer on the right-hand side and click "Force to unmanaged Management node" and click Yes. (optional based on whatever you're doing) Go to Agentless Managed computers and right-click the computer and select Delete. Depending on how you wan...
1
0
540
2011-04-14T00:38:00.167
infrastructure
serverfault.com
16,298
Neural Network accuracy and loss guarantees?
This question is part of a sample exam that I'm working on to prepare for the real one. I've been stuck on this one for quite a while and can't really motivate my answers since it keeps referring to guarantees, can someone explain what guarantees we can have in a neural network such as the one described? Network descri...
For my answers, I assume you are talking about batch (not mini-batch or stochastic) gradient descent. No. Assume you initialize all weights with the same value. Then all gradients (in the same layer) will be the same. Always. Hence the network effectively only learns one parameter per layer. It is possible (and likely)...
5
3
1,532
2017-01-13T13:49:02.133
data_quality
datascience.stackexchange.com
140,337
Querying pg_buffercache: relation "pg_buffercache" does not exist
I have PostgreSQL 9.4.7 installed in LXC container on Ubuntu 14.04. For monitoring purposes, i try to execute this from my host machine: [CODE] , so I am expecting to get a pure decimal value for parsing. However, I get [CODE] error. I have already added pg_buffercache extension ( [CODE] ), restarted server afterwards ...
You need to first connect to the database that you need to check the stats from, and in that do the create extension, after which the query should work ;)
2
1
6,313
2016-06-03T15:05:21.123
pipeline_ops
dba.stackexchange.com
1,091,590
Debian Redirect Single Port of Outbound Connection
I have a Debian 11 VM on a Windows machine. It has 3 network adapters. One is external (WAN), one internal (LAN) and another private (experimental). I am using the box as a router which in turn uses my DSL router back through via the WAN NIC which is actually connected to the Hyper-V box. Everything works routing-wise....
My bad. I fixed it. It appears if you leave our the [CODE] from your prerouting it will get ignored. I also added a SNAT rule to make it appear the packets being returned were from the public IP. Job done. Hope this helps someone one day.
0
0
64
2022-01-29T19:04:14.653
infrastructure
serverfault.com
265,429
OpenVPN network sharing
For some hours I'm already trying to setup a virtual private network between two physical locations (Location A, 192.168.1.0/24), and (Location B, 192.168.2.0/24). I am forced to use a tunnel instead of bridged networking. 192.168.4.0/24 is the VPN network. The connection between the two locations works fine, server ha...
Try this. On the server: [CODE] On the client: [CODE] That alone should probably work. Read on if you want to consider other options though. You should be able to do without the iptables rule if the client happens to be the default gateway for the 192.168.1.0/24 network of if you add this route in either the destinatio...
2
1
178
2011-05-02T11:20:49.760
hadoop_errors
serverfault.com
231,259
Understanding the TempDB growth
Need to understand below behavior of tempdb:- Due to some poor running queries which caused Tempdb bloating, we had shrink and tried to adjust the sizes of each tempdb file: Before issue : [CODE] During issue: [CODE] Due to above we had entire disk of 1.6TB filled out, hence we shrinked and adjusted the file to 120 GB ...
Really, the only things that will cause your tempdb files to shrink are: Someone used the 'SHRINKFILE` command to manually resize the files The SQL Service was restarted (due to a reboot, or the service being restarted manually, etc) and the file reverted to it's configured "default size" (which can be found in [CODE] ...
1
3
418
2019-03-04T18:33:20.737
database_errors
dba.stackexchange.com
930,357
rsync not working after revoking public access aws ec2 instance
I have a setup where I need to copy a files from 1 ec2 instance to another instance using rsync, I used following command which worked fine [CODE] This command was running and I could see the files on both server. Later I revoked the public access to make the servers more secure but now the files are not copying to ano...
It's likely the old "ssh login hangs without a network (DNS)" problem. Make sure [CODE] is set in the destination's [CODE] and restart the sshd service if needed.
-1
0
294
2018-09-11T06:15:48.477
infrastructure
serverfault.com
12,282
How do I use Jenkins to maintain versioning on a Python project?
An independent Jenkins server monitors my develop branch in Team Foundation Server's Git repository and builds a new package when it's updated. The problem I'm having is that it uses the same version, specified in setup.py. I could configure pypi-server to allow overwrites, but prefer to maintain build history. Theoret...
If you follow Semantic Versioning you could achieve this as a step in the pipeline using Semantic Release . This and the original tool it's based on are designed for automated releases as part of a continuous integration and delivery pipeline. From the docs : The key point with using this package is to automate your re...
2
2
1,522
2020-08-26T19:35:30.677
pipeline_ops
devops.stackexchange.com
298,335
My website keeps being hit by iPhones...am I being DDOSed?
[CODE] I created a script that checked how many unique IPs there were. It turns out there is 48 unique IPs, hitting me 3 times a second. The number of unique IP's increases slowly (now it's up to 53, and it's been 5 minutes). This is not normal of course (I only have 10 people who downloaded my iPhone app, and there's ...
There is nothing to worry about. 3 times a second is not even worth talking about. 3,000 times a second should make you aware. And >20,000 unique IP addresses make it a tiny DDoS. Everything smaller is just a hint that something is either wrong with your iPhone App, the registration process of your iPhone App or the ad...
1
5
193
2011-08-06T05:07:19.657
infrastructure
serverfault.com
898,959
iproute2 interface statistics seem wrong
For some reason, [CODE] does not show the same numbers as [CODE] , specifically the overrun count. For a given interface, ip shows no overrun packets: [CODE] While in [CODE] we see non-zero overrun (which is what I am assuming [CODE] is referring to): [CODE] I'm inclined to believe that there actually were overrun pack...
fifo and overrun are not the same. Just type ip -s -s a, there would be something like this [CODE] overrun — the total number of receiver overruns resulting in dropped packets. As a rule, if the interface is overrun, it means serious problems in the kernel or that your machine is too slow for this interface. fifo (file...
3
3
3,333
2018-02-26T17:29:59.787
infrastructure
serverfault.com
202,959
SequelizeDatabaseError: cannot execute UPDATE in a read-only transaction
I'm currently using [CODE] , [CODE] and [CODE] . I have users who update their accounts password on first login. Well, today I had this error appear after 3-4 successful logins. What does this even mean? I did nothing out of the ordinary. A google search does not help me at all as they dont seem to have my problem. Thi...
It can be caused by these reasons 1) you connected to a follower. Check it, using [CODE] – on master, it will return [CODE] : [CODE] Of course, you can run UPDATEs only on the master DB. 2) (I suppose this is not your case, but just for completeness I add it) You're working with master DB, but transaction or session wa...
2
3
23,796
2018-04-03T20:50:03.493
warehouse_errors
dba.stackexchange.com
573,628
ESXi 5.5 HDD and Tape drive paths
I got a new Dell server with a PERC H310 (2 HHD in RAID 1) and a SAS 5/E adapter for a Dell Power vault 4 tape Drive. I installed ESXi 5.5 with a windows 2k8R2 and a Debian virtual machine. I'm having a lot of troubles with Backup Exec. Sometimes jobs work fine, mos of the time jobs fail and others run very slow and en...
You may want to consider using PCI passthrough (VMDirectPath) of the SAS HBA to the specific virtual machine that needs it (the Windows server). This essentially gives the Windows VM exclusive access to the tape drive adapter. Ideally, there's a boost in performance. The VMware guide to accomplish this is located here ...
1
1
2,947
2014-02-06T11:56:36.947
database_errors
serverfault.com
68,937
Making outputs of sub-models the inputs of other models LSTM
I'm trying to create a neural network that is composed of different sub-models. Each sub-model have their own inputs, which some of them can be shared between the sub-models. For example, sub-model 1 could be something like this: [CODE] And then, the output of this sub-model I want it to go as an input of a hidden laye...
Try removing the Input layer [CODE]
1
0
192
2020-02-29T20:41:59.543
data_quality
datascience.stackexchange.com
183,841
How do I install APC and Memcache on CentOS WITHOUT installing the PHP package?
I need to install some extra modules like: [CODE] But the pecl program is not installed. Supposedly, I can install it by installing the php-devel package with yum, but yum insists on installing the PHP package too. I've already compiled and installed my own version of PHP from source and don't want/need the packaged ve...
Your custom-compiled PHP should have installed pecl, and configured it properly. Have you tried running "pecl install apc"? If your system is not finding pecl, it's probable that you used some funny --prefix when you ./configure'd PHP. For instance, if you compiled php like this: [CODE] then you'll either want to get /...
1
1
1,939
2010-09-23T02:09:47.493
database_errors
serverfault.com
174,636
Changing a variable using SET GLOBAL doesn't impacts sessions variable?
I am bit confused between setting the global and session parameters , I am trying to set [CODE] The default settings are [CODE] The below SQL will change the session setting [CODE] Check the values , which is pretty clear as well [CODE] The below SQL will change it globally [CODE] Check the values , which is pretty cle...
In order to change [CODE] we should also change [CODE] variables. The definition of [CODE] : The number of seconds the server waits for activity on a noninteractive connection before closing it. On thread startup, the session wait_timeout value is initialized from the global wait_timeout value or from the global intera...
7
8
14,711
2017-05-26T05:25:41.153
database_errors
dba.stackexchange.com
804,974
A file share resource on a Windows Cluster loses permissions during a failover
During a failover event on a clustered Windows server, one or more network share resources lose their permissions. Aside from the failover events, no other relevant data is written to the event log. What is causing the network shares to lose their permissions? What can be done to prevent this from happening?
This is likely a result of using the Computer Management console ( [CODE] ) to set the share permissions instead of using the Failover Cluster Manager console ( [CODE] ). Although the Computer Management console can edit the permissions of active shares, the changes are not written to the Cluster's configuration. There...
0
0
836
2016-09-23T16:21:08.890
database_errors
serverfault.com
175,538
1 big merge publication or N small ones?
Scenario We have two servers, each one with its own Microsoft SQL Server Serv_Home Serv_Web In both servers, a local program works with its own local database and inserts/updates the tables. The data is shared between the 2 servers, and for this purpose we have several replicas. Serv_Home is the master server (the dist...
I've been looking for an answer to no avail. However, I've found a place where some advantages are mentioned: Easier to maintain. Multiple data streams going to the subscription database at once (hopefully). If the merge fails for a publication, only this publication has to be fixed and reinitialized. So I think there ...
0
0
82
2017-06-06T10:01:52.510
database_errors
dba.stackexchange.com
10,898
Method for finding top-k cosine similarity based closest item on large dataset
I have a dataset with 40 million item, where each item is 400-dimension double vector. What I want to do is to find top-k (small k, about 3~10) most similar items to an arbitrary given input vector . Similarity measure is cosine similarity, since this dataset is based on word2vec representation. However, this data is s...
Locality sensitive hashing is a great tool for this problem. Pick n random 400-dimensional vectors. (Be careful or not all directions will be chosen with equal probability; pick each dimension as a standard Gaussian.) Each really defines a hyperplane through the origin cutting your space in half. The sign of the dot pr...
8
5
6,079
2016-03-25T17:34:06.167
data_quality
datascience.stackexchange.com
148,805
Actual Row Size vs My Estimated Row Size
I have a table of 500 million rows on SQL Server 2016. I calculate that each row should take up 12 bytes, total size should be in the order of 6 GiB. However the actual size is over 10 GiB. After running [CODE] I see the the [CODE] and [CODE] is 19 bytes and the [CODE] is 11.023 bytes. The table is defined as the follo...
Michael pointed you to the source (Paul Randal's "Anatomy of a Page" and "Anatomy of a Record") in an above comment, but to summarise: SQL Server data is stored in 8KB pages, each of which contains a 96-byte header, and some room at the end of the record for the slot array (which tells the engine the logical order of r...
3
2
3,419
2016-09-05T01:33:20.120
api_errors
dba.stackexchange.com
813,757
Certificate error preventing remote desktop to Azure cloud service: 'The certificate does not have a private key.'
I've inherited an cloud service that runs on Azure. I'd like to be able to remote desktop onto that service to make small changes. I want to set this all up via the Azure Portal (i.e. not using Visual Studio or other installed tools). My understanding is that it's possible to do as there's an article written about it. ...
The PFX file contains the private key. Actually, the PFX is the filename extension for PKCS#12 . The CER file only contains the public key. You only need to upload the pfx file.
2
1
1,498
2016-11-08T10:40:55.093
pipeline_ops
serverfault.com
149,088
APCUPSD and Hyper V R2
I'm about to deploy a Windows Server 2008 R2 machine with the Hyper V role. I'd like to get away from having to use a network management card with my APC UPS as I'm only shutting down 1 server (it just seems like an unneeded point of failure). I'd like to look into using apcupsd instead. Will this work properly if I us...
Unfortunately, no responses on this. So I just tested it out myself. Here's my results: This will work properly. You must use a serial connection. USB is not going to work. Yes I got it working and am now using it for a couple of installs with no problems. I also tested it out in a lab and shutdown worked perfectly No ...
3
3
1,140
2010-06-08T02:02:31.370
pipeline_ops
serverfault.com
121,444
SQL Server: how to check securables
I would like to make a t-sql query to check which logins have 'view server state' permission in server type securables. How to achieve this? This query from mssqltips don't show this: http://www.mssqltips.com/tip.asp?tip=1718 [CODE]
You need to check the server level permissions. The query you have checks permissions at the database level. You can achieve this by using the sys.server_permissions and sys.server_principals views. Something like: [CODE] See this for more information about the sys.server_permissions view.
1
2
2,064
2010-03-11T11:26:31.687
database_errors
serverfault.com
534,819
How to share a SMTP domain between MDaemon and Exchange?
I need to setup coexistence between MDaemon (13.0.5) and a Microsoft Exchange system (Office 365); the two systems should share the same SMTP domain, and each one should forward to the other any message which has a recipient in that domain but is not local to the server; I already have safeguards in place against routi...
Answer found: you need to configure MDaemon to accept messages addressed to (or coming from) unknown local users, which are by default refused: http://help.altn.com/mdaemon/en/index.html?security__relay_settings.htm . Account Verification SMTP MAIL address must exist if it uses a local domain Click this option is you w...
1
1
5,047
2013-08-29T13:07:48.823
infrastructure
serverfault.com
513,357
apache2 hanging on "Sending Reply"/"Gracefully Finishing"
On my Ubuntu 10.04.4 server, apache2 2.2.14 eats up all the memory until there is no more left because it isn't shutting down old instances. The server serves a small webpage which gets about one request each 3 seconds or so (from clients, google bot, scripts, etc). If I look into the process list, there are a lot of a...
After testing, I think I found the problem: It was (as already expected) a Problem in my Perl Code. I used Log4Perl. In my Log4Perl file there was a setting to send a mail on error. After removing this setting all of the perl instances terminated successfully and there aren't any hanging apache processes anymore.
2
1
14,121
2013-06-05T10:33:33.373
database_errors
serverfault.com
1,004,980
How to wrap long lines for olcAccess?
I tried to define the access permissions by adding a space at the beginning of a new line. But I get an syntax error, I do not understand: [CODE] If I remove the line break and put everything in one line, It works: [CODE] What is wrong with the first version? The daemon logs: [CODE] I do not understand where the assign...
OpenLDAP deletes the first white space of a continuation line and joins all lines. So, e.g., the last three lines are seen by OpenLDAP as: [CODE] which is syntactically invalid. Using 2 spaces of indentation will solve your problem.
0
2
348
2020-02-28T13:45:48.467
infrastructure
serverfault.com
268,091
How to synchronize Windows 2003 updates from Production > Test server?
We are using a Virtual Private Server to host our production Windows Server 2003 R2 web server. The hosting provider automatically installs the Windows patches (updates) on their own schedule. We also have a test server on a virtual machine. Thus far, I have been using automatic updates on the test server to keep it fu...
Since the listed application you found can save as .XML, just do that. Then get the XML compare tool from Microsoft and you can get the differences.
4
1
200
2011-05-10T10:12:44.723
data_quality
serverfault.com
213,773
content fingerprint algorithm
I have a database containing just simple URLs. It is as simple as it sounds for now and URL can link to a website or a document(i.e. anything parseable to text). Now I have a simple code which inserts records to database. The problem is that website/document may be actually the same, just: Hosted somewhere else Not ava...
The answer depends on how accurate you wish to be. Title Title would work with 99% of web sites, and you'd have the added advantage that it lies in the head, meaning if the server supports it, you could even only request the page header. The disadvantage would be that, of course, you may have the same title but differe...
2
3
305
2013-10-08T13:25:40.430
data_quality
softwareengineering.stackexchange.com
102,294
Dealing with Extra Categories in Test Set
Suppose I have a data set which consists a dependent variable [CODE] and independent variables [CODE] . Suppose that there is a specific variable [CODE] which is a categorical variable; suppose that it takes values [CODE] and [CODE] in the training data. I would be inclined to use an ordinal encoder, such as [CODE] fro...
You can reserve a special ordinal value to indicate "unknown/unseen during training." You would use this special value for any and all values of [CODE] that you encounter in the test set and in production. In fact, scikit-learn's OrdinalEncoder does this for you via the [CODE] parameter.
0
2
3,325
2021-09-21T15:54:23.313
data_quality
datascience.stackexchange.com
481,408
ProxyChains is redirecting packets destined to local machine to the proxy server
I am using ProxyChains to connect to my proxy at college. It works very fine except that it even redirects packets meant for a local port to the proxy server : |S-chain|-<>-172.22.2.211:3128-<><>-4.2.2.2:53-<><>-OK |S-chain|-<>-172.22.2.211:3128-<><>-127.0.0.1:57343- Is there any way to add an exception for 127.0.0.1 i...
The following patch has been included in this fork . Build with [CODE] Create the following config file in [CODE] : [CODE] (See [CODE] for a commented example). Start the SOCKS proxy on local port 8080 to send traffic via a proxy-free server: [CODE]
6
9
8,602
2013-02-22T08:51:12.897
infrastructure
serverfault.com
193,258
SQL Server 2005 Service Pack 2 - Failed Cluster Node
We have SQL server 2005 running on our cluster with Service Pack 2. However one of the nodes failed, after rebuilding the node I added the node back to the clster with SQL server setup. However it gave me a warning that the version being installed (without service pack) was different the the version running (SP2). I co...
Apply Service Pack 2 to the Active Node again and it will update both nodes of the cluster.
0
0
198
2010-10-21T04:21:25.320
database_errors
serverfault.com
821,589
ioncube install centos 6 zend error
i currently have vestacp installed on a centos 6 webserver, zend is installed and i believe ioncube is installed however ioncube states that it is infact not installed. machine: [CODE] here is my php info which indicates ioncube loaded: [CODE] here is my modules: [CODE] php.d output: [CODE] 00-Ioncube.ini output: [CODE...
You have to recompile ioncube or reinstall it correctly. To have a hint about whet went wrong or what dependency is missing, just type ldd /usr/lib64/php/modules/ioncube_loader_lin_5.6.so
1
0
405
2016-12-19T14:12:28.663
infrastructure
serverfault.com
961,266
How to pass multiple arrays in exec command resource in puppet?
I want to deploy certs in default keystore using Puppet I have two files [CODE] and [CODE] managed by puppet [CODE] Now for each file I want to run an exec command which should take alias array and crt file as an argument in exec command resource. I tried but it is not working [CODE] I am not sure if code above is corr...
The pasted code isn't really valid Puppet code, it's hard to guess what it's supposed to do. As suggested in comments a "correct" solution would be using java-ks module . Something like: [CODE] In case you want to execute such commands manually you can use [CODE] to define [CODE] resources: [CODE] Notify in file resour...
1
1
1,240
2019-04-03T09:02:57.593
pipeline_ops
serverfault.com
240,816
apache2 config: enable access to /server-status while having catch-all 301 redirects
I have an Apache2 server with various virtual servers running. For SEO purposes, anything that does not match www.mydomain.com is automatically redirected to www.mydomain.com. [CODE] This is working fine but I want to monitor status of the apache server by calling http://localhost/server-status?auto The problem is that...
Try: [CODE]
1
3
2,183
2011-02-27T11:26:26.703
infrastructure
serverfault.com
58,950
Defect statuses: "WON'T FIX" vs "Cancelled"
I've been involved in several projects either as tester or developer. In many of projects there were following statuses for defects: WON'T FIX Cancelled Do you use such statuses and how do you differ them? I ask, because most people can't explain the difference. My understanding is: WON'T FIX - developer will not fix t...
As others have noted, these status names aren't very clear. I would prefer more precise and detailed status names: Won't Fix (the cost of fixing this is not justified) Workaround Provided (and it is enough to make users happy) Not a Bug (but a feature) Not Reproducible Duplicate
14
12
11,216
2011-03-17T10:52:21.087
api_errors
softwareengineering.stackexchange.com
413,209
OS X 10.8: Symlinking ~/Sites folder?
In Mountain Lion personal web hosting via Apache and your [CODE] folder has been removed (at least without some hacking). I've read an article explaining how to re-enable it, but I can see that system wide Apache is serving content from [CODE] as usual. Thought I might take the opportunity to see if I can symlink my [C...
Have you tried to use: [CODE] Forgot to add the escape character in there after "Web". Corrected path to 'WebServer' rather than 'Web Server' - my fault, it was wrong in question. Rich
0
1
2,566
2012-08-01T09:35:44.067
infrastructure
serverfault.com
328,665
patterns for converting user command-line input into computer commands
The problem: 50 different commands which are typed into a command line for a program, lets say for telling a robot what to do. Some of the commands have user determined values such as [CODE] (5 units of predetermined kind). Others are simple commands, [CODE] , that have no user determined input. In my courses, I have s...
What you are describing is a perfectly reasonable, though ad-hoc way of parsing the commands. As an alternative you could define a grammar, and formally parse the input. And there are in-between's as well. For example, you can set up a simple state machine to process the first word of the command character by character...
3
3
249
2016-08-18T03:04:59.060
api_errors
softwareengineering.stackexchange.com
131,545
tips to delete huge - extremely huge no.of millions
I have around six million files (only files ,no sub-dir) to delete in UFS file system. Any tips to increase the performance?
Not for this time but in the future would it be possible for you to create them in a separate file system? this would at least give you the option of just wiping the whole FS if that were appropriate.
0
2
296
2010-04-12T10:24:35.477
infrastructure
serverfault.com
377,124
How to properly wrap my data layer to communicate with business logic
I have an EF Core data layer and i want to wrap it around an interface to separte it from the business logic. Now the issue is that i am not sure i am doing it correctly. First, i was just using static context to be alive all the time but that seems just wrong to me. Should i create a new instance of context for each r...
Use the repository pattern [CODE] Inject via a DI framework in your app. Use Singleton or per request context as appropriate
0
0
328
2018-08-20T03:36:31.273
api_errors
softwareengineering.stackexchange.com
56,719
Postfix Stagger/Rate Limit Outbound Mail
We have a server that sends our weekly newsletter to subscribers, To prevent people like Hotmail or Yahoo from blocking us due to sending too many simultaneous emails to them, Is there a way we can stagger email, or rate-limit outbound emails from postfix? Keep in mind, I dont want the mailserver to stop queueing mail ...
You could use the deadbeats trick: main.cf: [CODE] master.cf: [CODE] transport.cf: [CODE]
2
6
5,874
2009-08-20T16:27:50.317
api_errors
serverfault.com
63,320
Problem with mysqldump and view
When using [CODE] to backup MySQL, I got following error. [CODE] [CODE] is a view [CODE] User [CODE] @ [CODE] has already had the privilege to select on table [CODE] and I can select from view [CODE] without problem. [CODE] More info: MySQL version: [CODE] OS: CentOS 6.5 Why I got the error when running [CODE] and how ...
You need to have the SHOW VIEW privilege . I wrote about this Dec 2013 : Which are the minimum privileges required to get a backup of a MySQL database schema? In that post I show these minimum privileges for a mysqldump SELECT SHOW VIEW (If any database has Views) TRIGGER (If any table has one or more triggers) LOCK TA...
9
9
71,336
2014-04-16T10:34:19.133
database_errors
dba.stackexchange.com
525,236
iptables INPUT prevents outgoing mail and ping
My standard policy on [CODE] is set to [CODE] . However, due to this setting I'm not able to connect to an external mailing host. What rule would I need to enable connecting to this external host. Note that [CODE] also doesn't work, though this is merely for testing purposes (it doesn't need to work, but may help in fi...
Communication goes in two directions, you send queries to another host (via OUTPUT) and the other host responds (to INPUT). Your current rules cause all responses to get dropped. Try the adding the following rule in order to accept those responses: [CODE] Without this rule, TCP ACK packets, ICMP echo-reply, etc. get dr...
1
5
373
2013-07-22T09:19:27.543
infrastructure
serverfault.com
1,114,447
gcloud crashed (ValueError): Command type [CommandType.DESCRIBE] has already been registered
I'm experiencing some strange errors with some of the gcloud CLI commands. These commands worked up until some point last week. Most of the gcloud CLI commands work fine, A few that we need for our deployment scripts crash with strange errors, as follows [CODE] and [CODE] I have uninstalled and reinstalled the SDK, and...
Are you running in a shell where [CODE] points to python version 3.11? If you are using pyenv you can do: [CODE] to switch back to an older version. That worked for me
3
3
3,258
2022-10-31T10:34:15.857
pipeline_ops
serverfault.com
827,240
How to see if filebeat data is being sent to logstash
When I open up Kibana interface, I get an error to configure index when logstash-* is entered as a query: kibana error: please specify a default index pattern How can I see if filebeat is sending logs to logstash? I followed the filebeat and ELK stack tutorials exactly. I can see data when I enter in filebeat-* into Ki...
Filebeat keeps information on what it has sent to logstash. Check ~/.filebeat (for the user who runs filebeat). You can also crank up debugging in filebeat, which will show you when information is being sent to logstash. EDIT: based on the new information, note that you need to tell filebeat what indexes it should use....
4
1
48,525
2017-01-18T02:03:21.893
bi_errors
serverfault.com
75,287
Does KISS encourage tools and frameworks that expose complex leaky abstraction layers?
Tools and frameworks make complex tasks simple. This seems like something that would be supported by KISS(keep it simple stupid). Tools and frameworks also have the potential to introduce leaky layers of abstraction, where the complexity of the issues are far more problematic than anything you would have written yourse...
It depends on your uses. I can assure you that if I were laying the groundwork for a large-scale application, web or otherwise, I would absolutely look for frameworks and libraries that would reliably make my job easier. If I'm building a web platform, that would include things like MVC and logging frameworks. The reas...
4
1
283
2011-05-10T19:07:26.393
api_errors
softwareengineering.stackexchange.com
62,328
merge rows based on column
I have attendance_log table : [CODE] the date represented as below: [CODE] I need to view the data per date per employees as below: [CODE] for example: [CODE] Or: How can i calculate the time for each day based on IN,OUT status? Thanks
PROPOSED QUERY [CODE] SAMPLE DATA [CODE] RUN PROPOSED QUERY FOR EMPLOYEE 2 (WHO IS OUT) [CODE] BRING EMPLOYEE 2 IN TO WORK TODAY [CODE] RUN PROPOSED QUERY FOR EMPLOYEE 2 (WHO IS IN TODAY) [CODE] EPILOGUE When an employee is out, the WorkTime is evidently a static datetime value. When an employee is in, the WorkTime is ...
2
0
988
2014-04-02T11:54:16.387
warehouse_errors
dba.stackexchange.com
657,808
Colossal Failure After Domain Rename
The backstory... I recently upgraded a MS Server from 03 to 2012. The server needed to be a domain controller and for simplicities sake I named it foo.com instead of naming it something different from an active online domain. So I had my local domain named the same as my web domain and when trying to access email accou...
Given that I deleted some entries in my DNS Manager I figured it was the perfect place to start. I may be missing entries but the ones I entered were enough to get my workstation to join the domain properly. These are the entries I added. Added a new zone called foobar.com back to the Forward Lookup Zones . Inside the ...
3
1
1,963
2015-01-07T07:19:23.780
database_errors
serverfault.com
1,151,580
Way to keep over 65k TCP connect to a server
As a programmer and a newcomer to network and infrastructure, I've developed a server program capable of handling over 100,000 connections concurrently. During testing in a local network with 20,000 connections per client, everything worked smoothly: [CODE] In this situation server programme will have sockets like: [CO...
My concern is that the server may be limited to 65,535 sockets, given that it can only see the router when connections come from the WAN. Normally, destination NAT aka reverse NAT aka port forwarding doesn't change the source IP address or port number. That way, there's no such limitation. Many load balancers also tran...
0
2
90
2024-01-16T10:13:00.007
infrastructure
serverfault.com
361,233
Distributed BiPartite Graph
I have a use case where I have a Bi-Partite Graph. Call one type of nodes "Type A" and the other "Type B." Now when a Type A node gets added, it forms some edges based on a criterion with Type B nodes (usually how many existing edges does the Type B node have?). Type A nodes are being added consistently (say with every...
Don't grab locks. Your graph must always be available, for reading and for updates. To perform your offline reshuffling (30-seconds) you will need a way of instantly splitting the graph into two copies. That is, a web GET arrives, then you split, then a 2nd GET arrives and it won't notice an unusual delay. A typical te...
1
0
131
2017-11-24T19:38:55.337
database_errors
softwareengineering.stackexchange.com
315,290
Mount Second Hard Drive Debian
Possible Duplicate: How to mount a second hard drive? Debian I got a second hard drive added to one of my servers but now I have no clue how to mount it and have it recognizable by the os. Could anyone give me a quick guide on how to properly mount the hard drive under debian? Thanks!
Yes you can check to ensure the hard drive was picked up by the server using a few methods: Dmesg will give you the last several events on the server the drive should have been given a /dev/ label (Ex: /dev/sdc) [CODE] Another method you can use is to check fdisk for a new drive in the list: [CODE] Either method you ch...
3
3
28,140
2011-09-25T12:55:14.107
data_quality
serverfault.com
381,783
Angular 7 - Injecting a State/Context Snapshot
Requirement There is some (for arguments sake) “global” application state that I am interested in injecting into components. Each candidate component should receive an immutable snapshot of the state as it existed at the time that its constructor was invoked (for absolute clarity, the state snapshot that is injected in...
I would create a service that holds the state and that updates the state when needed. Inject that service in the components. The service contains a method that returns a copy of the current state, that method can be called in the components constructors og NgOnInit methods. If you later find that you need some componen...
1
0
535
2018-11-21T00:04:15.843
data_quality
softwareengineering.stackexchange.com
947,418
Can't download the GCP could function source
I have created an inline cloud function on GCP. I wanted to download the source and develop offline and upload later time. So I clicked the download zip button as below. Anyway I am getting failed forbidden error. I have logged into my google account while downloading the zip.
For me, this happens when I am logged into multiple Google accounts. It looks like the "Download zip" link isn't appending the "authuser=X" flag and so the download is attempted as the wrong user. To fix this, I copied the link for the "Download zip" button, added the same "authuser=X" value as I had in my Google Cloud...
2
3
1,495
2019-01-03T05:37:13.527
infrastructure
serverfault.com
26,693
How to use different classes of words in CountVectorizer()
Suppose I have a piece of writing and I want to assign probabilities to different genres (classes) based on its contents. For example Text #1 : Comedy 10%, Horror 50%, Romance 1% Text #2 : Comedy 40%, Horror 3%, Romance 30% We have given keywords in each class through which we make a comparison. Below is the code that ...
First of all your question is about stemming words as mentioned in the other answer which can be found in any Python NLP library such as Spacy or NLTK . The other point to mention here is that despite the other answer, what libraries has as Stop Words list is not actually stop word! Do no remove them ! In NLP stop word...
3
5
3,199
2018-01-16T12:45:46.863
data_quality
datascience.stackexchange.com
16,938
How to click a link in the PDF with Selenium Webdriver
i am facing problem in clicking a link in the PDF. Scenario is to download a PDF and click on the link click here and validate opening page title is as expected.
Selenium can work only with the webelements, to work with PDF, java Apache provides an API called PDFBox. You can extract the link using this API and validate it. http://thottingal.in/blog/2009/06/24/pdfbox-extract-text-from-pdf/ - Link to Extract text from PDF usgin PDFBox http://www.printmyfolders.com/Home/PDFBox-Tut...
1
1
4,566
2016-02-10T08:58:11.357
data_quality
sqa.stackexchange.com
696,055
php-fpm: locale settings change themselves
I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: [CODE] And here are the changed settings: [CODE] The problem occurs randomly. When removing php-fpm and using FastCGI, the problem doesn't occur anymore. How can I get this working with php-fpm ? The pro...
This strong warning in the PHP documentation explains the problem: Warning The locale information is maintained per process, not per thread. If you are running PHP on a multithreaded server API like IIS, HHVM or Apache on Windows, you may experience sudden changes in locale settings while a script is running, though th...
1
0
2,190
2015-06-02T09:46:32.200
infrastructure
serverfault.com
90,574
pg_restore certain tables only
I'm looking for a way to use [CODE] to restore a newly-created database from a dump file, but only certain tables from that file. (There are a lot of extra tables in the database that are slow to restore and that I don't care about.) I first tried [CODE] with the [CODE] / [CODE] flag, but it didn't enable the extension...
if you're using the "custom" format , you can use the [CODE] (ell) and [CODE] options to do this. create your dump, using the "custom" format run [CODE] edit table_of_contents.txt and just remove references to the tables you don't want anymore. (Make sure you get all of them. You can comment out a line with a semicolon...
8
14
13,072
2015-01-29T18:26:18.330
database_errors
dba.stackexchange.com
90,351
Mariadb on Centos 7 not changing max connections based on my.cnf
The following configuration in my.cnf is not being followed. Max_connections go back to 151. please help as i have 16gb of dedicated ram that i would like to use properly. [CODE]
Fixed the issue. The issue was to do with the right permissions. The right permissions on the my.cnf file should be 644 not 777.
3
0
15,072
2015-01-28T00:09:14.323
database_errors
dba.stackexchange.com
473,498
Can't share files with Samba
In my local LAN, trying to share folders from my Linux Server to a Windows PC. Samba daemon is listening: [CODE] Samba looks well configured: [CODE] Firewall has added exception for Samba and Samba client. Also disabled SELinux momentarily. Nevertheless Windows PC can't discover this server, but server actually respond...
If [CODE] works and is sufficient for you, all is fine. However, your problem is that the network browsing isn't working correctly. The easiest method to get this to work is often to just make sure both server and the clients are in the same SMB workgroup. In Windows, you can setup the workgroup somewhere in the Contro...
0
2
111
2013-01-29T15:17:27.000
infrastructure
serverfault.com
262,444
Could not start WAL streaming, replication slot is active
I want to set up replication between two of my databases. One is an Aurora database in PG 10 the publisher, and the other one is an RDS database in PG 10. But I'm facing an issue, I have 500 GB of data to transfer, so I'm adding table one by one to the replication and waiting for the status to be ready before adding an...
The issue was that the [CODE] were too low... I changed the value from one minute to ten minutes and it works.
3
4
6,847
2020-03-21T17:44:02.450
api_errors
dba.stackexchange.com
233,296
Remote Desktop permissions by where they login from?
We have a server that we want our users to be able to remote into from within the office, but only a -few- (administrators) should be able to login from outside the office. Currently, anyone who can remote into the desktop, has the ability to remote in from outside the office. Is there a way to restrict remote desktop ...
We use a login script to check the connecting computer name and if it doesn't match the list we deny the connection. We exclude some users from this check so they're always able to connect, whether in the office or not. So you simply add a line for each office computer (or authorized computer) and add a line for every ...
1
1
1,874
2011-02-09T14:41:07.697
infrastructure
serverfault.com
124,330
Server chmod logs
Is there any way I can look up logs on chmod changes to files/directories on linux? JS files on my server last night were getting Permission Denied errors losing sales. I'm in disagreement with how this happened with another developer and am trying to look up logs.
No, on a standard install chmods are not logged (unless, of course, they're executed via [CODE] ). Your best bet would be an audit of [CODE] and [CODE] files of the various accounts that have access to your system.
0
0
5,127
2010-03-19T16:45:42.023
infrastructure
serverfault.com
691,897
Is a "bridging device" required to join two networks?
We're considering two NBN fibre connections to the Internet (NBN is a fibre connection for those of you not living in Australia), with each connection having it's own subnet. The first connection's subnet is [CODE] and the second's is [CODE] . Half of the office will be on one the first subnet using one connection, and...
No, you do not need a bridging device. A bridging device is something that makes two physical networks appear as one logical network, and since you are running a separate subnet on each network you don't need to bridge them. A bridging device is what you would use if you wanted to use the same subnet at both sites. You...
0
0
976
2015-05-14T00:25:45.233
infrastructure
serverfault.com
106,477
What standards does your team use for your specification documents headers and footers?
TL;DR: What header/footer do you put on your Functional&Technical specifications to avoid people having different versions at meetings? Story: We're have a lot of documents, being changed by everyone. Functional specifications, technical specifications, addendums, etcetera. Problem is offcourse that during a meeting, a...
The best way to manage document control is to have a clear and well documented configuration management policy. This policy should address versioning of everything related to the project, from external libraries to code to documentation. In the same location, you can also address change management - how you deal with c...
1
2
1,804
2011-09-07T16:14:38.983
api_errors
softwareengineering.stackexchange.com
279,153
Why does reprepro complain about the "all" architecture?
I started setting up a deb repository today for some of our applications. Given that they are interpreted scripts, I went with "all" architecture (from [CODE] ): [CODE] But reprepro will print a warning when I try to add a .deb to the repository: [CODE] Now I wonder why it warns about that? What's the problem?
Ah ha! I finally just figured it out. This has been frustrating me for ages now. If you specify your .deb (control file) as Architecture: all, then don't put anything into the reprepro distributions file other than the arch's that you want it to get put into. Architectures: amd64 i386 ...
8
7
3,523
2011-06-10T13:54:58.330
infrastructure
serverfault.com
792,162
windows server 2008 r2 blue screen error
My server is giving an error like below. [CODE] And we called to hp support team the did check and he checked some logs and he said will not occur this problem.after few days again samething is showing an error.hp team is saying that is not hardware problem and which is software problem and followup microsoft team. ple...
In the BIOS setup, go to the Advanced menu, then Bus Options, and disable PCI SERR# Generation option. Save and exit your BIOS settings so that the computer reboots again.
-1
0
782
2016-07-27T06:08:33.280
infrastructure
serverfault.com
148,688
Problems with connecting to ASM instance
I have Oracle11 with RAC installed on RedHat 5. I have two servers with two instances one on each one. In each server I succeed connect to appropriate instance of database but not to instance of ASM. I connect with user oracle11 and type: export ORACLE_SID=+ASM1 sqlplus "/ as sysdba" It connects but write: Connected to...
I won!!! the solution is to set ORACLE_HOME of ASM's instance home directory without / at the end. Here I get answer: http://www.orafaq.com/forum/m/459515/153291/#msg_459515
1
0
2,865
2010-06-06T14:08:27.550
database_errors
serverfault.com
388,600
Should I be setting up my Django app on my server via SSH or locally?
Ok noob question: I have a little micro AWS EC2 instance running, and I'm going through this Django tutorial. SSH'ing into my EC2 means that all the work I'm doing, like editing the config files, making Django apps/projects, etc. is very slow, with lag (my internet connection is not fast). Could/should I be doing most ...
Working on the file locally: Pros: You edit the file locally with zero lag. Cons: You need to upload the file in order to test. Working on the file remotely: Pros: The file is immediately available for your app. Cons: You have to deal with lag while editing. Not quite sure what else there is--if the lag is bothering yo...
0
1
114
2012-05-13T04:58:24.847
infrastructure
serverfault.com
330,466
Why does string.find("") = 0?
I'm studying Python and hung up on a simple problem. Let's say we have: [CODE] When we invoke the find method on the string to find an empty string like this: [CODE] Why does that equal to 0? I thought it would equal to -1 since an empty space could not be found.
[CODE] is an empty string (I wouldn't call it an empty space - but I get your meaning). An empty string can be found everywhere that isn't a string. That is, a string that doesn't contain anything. This is probably true of many languages. This means there is an empty string before h , after h , before e , and so on. Th...
1
7
296
2016-09-08T02:04:44.433
api_errors
softwareengineering.stackexchange.com
824,643
How to connect to a BGP network?
A service provider we're working with delivers us data via two(for resiliency) 1Gbps cross connects. He's located in a datacenter nearby the datacenter where our server is located. We don't have a switch, nor do we have a router, just one single Ubuntu server. Our server has a dedicated network card with two 1 Gb fiber...
Answers: Yes, it's possible to connect to a BGP network with Ubuntu server. You'll need to run a special software, have a network card with at least 2 interfaces, and of course to have connection to your BGP neighbor (the router of your provider, who will advertise your network to the Internet). Please have a look at h...
-1
4
1,737
2017-01-06T13:57:11.650
infrastructure
serverfault.com
141,608
functional requirements - use wording based on verbs?
Question Should the functional requirements in a requirements doc use wording based on verbs? Context School assignment, working in a team, working through the SDLC. The requirements doc has been done and we are now into design. Problem The requirements doc has an enumerated list of what I'd call features of the app - ...
You can and should use verbs in your requirements. The important thing is to make sure each requirement is: Unambiguous - each requirement can only mean one thing and can only be interpreted one way. Atomic - each requirement cannot be broken down into multiple requirements. Testable - each requirement can be shown to ...
8
10
9,189
2012-03-26T19:51:06.107
api_errors
softwareengineering.stackexchange.com
124,958
Are there practical scenarios where inserts + deletes are faster than updates? (SQL Server)
I'm just wondering if there are common scenarios where an insert/ delete combination is faster than an update else insert function. Here is my specific example. I have to update a database with pages that contain 1000 records at a time. (I cannot merge the pages). About 5% of these records, or 50 rows, are duplicates t...
There are many reasons that an insert and delete can be faster in practice than an single update that achieves the same end result. I am not even going to attempt to list all the considerations, but for example: Updates that affect an index key might appear to do an in-place update from the execution plan, but this is ...
5
7
1,070
2015-12-31T21:34:36.300
data_quality
dba.stackexchange.com
1,057,996
SRV record not working properly?
I'm currently dealing with a little problem that routes back to me simply not having a static IP, as my ISP charges a ridiculous sum for that. I have a DDNS in place, which works fine. Except, I'm now trying to provide a service under a subdomain. The current, non-functional, solution is to simply set up a CNAME Record...
I think you’re missing a couple of [CODE] s. Try: [CODE]
0
0
988
2021-03-23T13:31:50.160
infrastructure
serverfault.com
57,852
Tutorial: from registered domain to running mail server on ADSL connection?
Does anyone know of a tutorial that takes me from having registered a domain name (with eNom through Google) to a running IMAP mail server (preferably based on Ubuntu) connected to the internet via a ADSL connection? I am looking for something quite specific if possible as I have very little experience with mail relate...
First of all, you'd have to link your dynamic IP address to your own domain name. This can be done through services like No-IP or DynDNS . Ideally, you should have a static IP address, but if you can't have one, you should route your outgoig mail traffic through an intermediate SMTP server instead of delivering it dire...
3
3
2,629
2009-08-24T09:57:23.927
database_errors
serverfault.com
512,172
Errors whilst installing kolab
i'm struggling for the past 2 days please help me anyone... [CODE]
I had the same issue. Problem occured when using a password with a % in it on initial installation. when I redid the setup it was already jacked and gave the error above. yum removing all kolab packages, then deleting /etc/dirsrv got rid of the bad install. Then a fresh yum install kolab and setup-kolab fixed it.
0
1
1,115
2013-05-31T05:35:05.647
infrastructure
serverfault.com
220,577
Nagios Check_hpjd giving me problems!
When I run the following [root@host plugins]# ./check_hpjd -H printer1.mydomain.com : Timeout from host printer1.mydomain.com I have Net-snmp installed on my system, I noted that i didn't have net-snmp-utils installed, and then I was able to run [root@host plugins]# snmpwalk -Os -c public -v 1 printer1.mydomain.com sys...
My printer is not 100% JetDirect compatible! GRRRRRR!
0
0
2,766
2011-01-10T10:21:15.050
infrastructure
serverfault.com
226,826
How to optimize a delete query with a subselect?
This query needs to delete over 17 million rows, from a table containing 20 million. [CODE] It takes hours to run, am I missing something that could speed things up a bit? The subselect by itself takes a few seconds, I don't understand why the delete takes so long.
Use Multiple-Table Syntax of DELETE statement . [CODE]
0
1
105
2019-01-10T19:42:09.630
warehouse_errors
dba.stackexchange.com
918,416
Rebuilding Slave server from Master
I joined my company around 2 months ago. On Monday i saw one of the slave server hard disk blinking amber light and i called Dell for this, the engineer came and said there is no saving the data. The setting is RAID 10, but 2 hard disk failed in the same span and new disk can't be rebuild from the existing ones because...
I highly recommend using percona's XtraBackup for this. https://www.percona.com/doc/percona-xtrabackup/LATEST/howtos/setting_up_replication.html You can combine steps 1 and 2 into a single step, by streaming the backup. There's a nice write up here https://www.nadeau.tv/setting-up-a-new-mysql-slave-database-via-streami...
1
1
201
2018-06-27T06:43:28.093
data_quality
serverfault.com
1,056,093
Errors setting up DNSSEC automatic signing with bind
I followed the exact tutorial from here https://ftp.isc.org/isc/dnssec-guide/html/dnssec-guide.html#easy-start-guide-for-authoritative-servers to set up DNSSEC on my domain domain.example.com. When I try to do the validation of my setup using delv, I get an error. The following is my validation step: [CODE] and when I ...
I don't know what OS this is, but it appears that for one reason or another BIND cannot write in [CODE] , as per: [CODE] This could either simply be because of filesystem permissions or there may be some additional security policies enforced by something like Selinux or Apparmor as services are conventionally not suppo...
0
0
686
2021-03-05T22:28:10.140
data_quality
serverfault.com
136,894
msdb.dbo.sysjobs and last run date and time
I know that the last_run_date and last_run_time are stored as Int, but when coverted over to datetime (of which I have examples of), is the time GMT, or what? When converted it doesn't match the same time as what the GUI log history displays. Can anyone provide guidance on this? Here is the t-sql code I have that conve...
If you don't want to create a function in msdb or if you are not able to, you can use this: [CODE] This can also be applied to [sysjobhistory] or other tables that use this strange integer representation of date and time Or you can use function: [CODE] as pointed out by Max
4
8
10,616
2016-04-28T18:21:26.517
warehouse_errors
dba.stackexchange.com
169,276
How can I improve my product facet search database model (EAV)
I have created a facet search for a product catalog like following screen image and wonder if I designed it correctly. I found Joel Brown's post with an ERD that sketches an Entity-Attribute-Value (EAV) model. I tried to build this model in Sequel Pro and run following query: [CODE] The result of above query was as exp...
I understand the requirement as: Return all products having attributes where attribute is of type Television Feature and value is 3D and attribute is of type Television Resolution and value is 1080i First create this view: [CODE] This query should produce the desired result: [CODE]
3
3
632
2017-04-06T07:43:09.743
warehouse_errors
dba.stackexchange.com
295,323
Should I change parallelism (MaxDop and Threshold)?
Seems like I have problems with parallelism because largest wait types are [CODE] and [CODE] . Server has 8 cores. So I am planning to bump up Cost Threshold to 50 and MaxDop to 4 Currently I have default values, which is 5 - cost threshold for parallelism 0 - max degree of parallelism Mostly, only a couple of database...
If you have SQL Server 2017 or above you can enable query store on databases and see the wait stats for each one of the databases so you can decide if you can set maxdop at database scope or at instance scope.
0
0
179
2021-07-06T22:27:28.803
warehouse_errors
dba.stackexchange.com
191,049
SQL Server 2016 memory optimised table: Precreated files constantly growing
I have a memory optimised table in SQL Server 2016, with file durability enabled. The table is only 100MB. SQL Server is constantly creating new files on disk, which start off at a few hundred MB, but then grow constantly until the drive runs out of space then they clear down and the process starts again. The files are...
It's a bug in SQL Server 2016 that's fixed in SP1 CU2 / CU4 with no SP. https://support.microsoft.com/en-us/help/3206584/fix-checkpoint-files-grow-excessively-when-you-insert-data-into-memory
1
0
372
2017-11-16T11:43:12.630
database_errors
dba.stackexchange.com
112,653
Is there a practical guide to Team Software Process?
I have seen the Carnegie Mellon site covering TSP. I am looking for a practical, non-academic guide to application of TSP in the real world. I would really like to know, how does TSP reduce bugs?
If you aren't familiar with the Personal Software Process (PSP), I'd start with Watts Humphrey's book PSP: A Self-Improvement Guide for Software Engineers . This book is geared for practitioners looking to apply the PSP in their job. It also begins to introduce the Team Software Process (TSP) in the later chapters. A v...
4
3
352
2011-10-05T20:28:59.970
api_errors
softwareengineering.stackexchange.com
38,897
MySql Cluster for educational use
I am student and I am writing Master of Science paper about in-memory databases. I want to use MySql Cluster for benchmarks in my work. Can I use MySql Cluster free of charge for educational purposes or do I need to pay for it?
From the downloads page: It is available as both open source and commercial editions. The Community (OSS) Edition is available under the free software/opensource GNU General Public License (commonly known as the "GPL"). If GPL is ok for you, then you're fine. The Carrier Grade Edition is a commercial offering though. Y...
0
2
113
2013-03-30T10:06:18.197
database_errors
dba.stackexchange.com
356,263
How do you make a GUI for a polymorphic class?
Let's say I've got a test builder, so that teachers can create a bunch of questions for a test. However, not all questions are the same: You have multiple choice, text box, matching, and so on. Each of these question types need to store different types of data, and need a different GUI for both the creator and for the ...
You can use a visitor pattern: [CODE] Another option is a discriminated union. This will depend very much on your language. This is much better if your language supports it, but many popular languages don't.
18
15
3,212
2017-08-25T12:33:37.020
api_errors
softwareengineering.stackexchange.com
295,113
run script from ssh as non root linux
hey well I login to my ssh client as the root user, since I don't know how to do it any other way and then why I try to run this script using the plain old ./filename.ext an error log is generated saying it cant be run as the root user. I was wondering how I could make it so it's run as not the root user? I'm running d...
[CODE]
0
6
1,187
2011-07-28T15:58:25.997
infrastructure
serverfault.com
195,413
why SSD is slower than HDD SAS 15K on DBMS PostgreSQL?
Someone help me analyze the two execution plans below (Explain ANALYZE used), is the query 9 of TPC-H benchmark. I'm using two servers HP Intel Xeon 2.8GHz/4-core - Memory 8GB. O.S. Debian8, using EXT4 filesystem. Server 1 HDD SAS 15 Krpm - 320 GB (Location where O.S. Debian and Postgresql are installed). Server 2 Sams...
After several searches and tests I think I can answer my own question. I looked at the specification of my SATA SSD, and from my SAS HDD, saw that the SAS has 12 Gb/s versus 6 Gb/s from the SSD SSD: Samsung 500 GB SATA III 6Gb/s - Model: 850 Evo http://www.samsung.com/semiconductor/minisite/ssd/product/consumer/850evo/...
3
1
1,766
2018-01-15T14:57:13.680
database_errors
dba.stackexchange.com
670,677
Can a Varnish director be queried for the number of healthy backends it contains?
Specifically in Varnish 3, is there a way to check if a director has any healthy backends? My use case is that I have a load balancer that is distributing traffic to 2 varnish boxes, which in turn are sitting in front of several web servers. I want Varnish to return a 200 to the load balancer's health check if the dire...
The main thing is that you have your director set up with probing, so it actually has a health status on your backends. If that is the case, then you could just use something like the following: [CODE]
1
2
562
2015-02-23T11:08:14.717
infrastructure
serverfault.com
402,312
NRPE and Perl - cannot include ANYTHING or it breaks
I've been banging my head off NRPE and Perl for weeks now. I decided to start from absolute first principles, and create a dummy nagios plugin that does nothing but always returns OK. I called it check_true.pl, installed it on the remote server and configured NRPE to serve it out as check_test. The entire script is jus...
The culprit was SELinux which on RHEL6 constrains the NRPE process greatly. By default it even blocks access to the core perl modules like strict and warnings. I haven't yet found a nice solution for turning off SELinux for just NRPE.
6
2
1,682
2012-06-26T11:40:46.410
infrastructure
serverfault.com
533,118
I can't access some domains from one of my three internet providers. How to troubleshoot?
I have three internet providers at my office: Telepacific (3/3Mbps), SkyRiver (12/12Mbps), and Verizon FiOS (75/35Mbps). (The reasons for three connections are outside the scope of this issue.) I have a small LAN that sits behind a SonicWall TZ-215 and I use the spillover method to take advantage of the available bandw...
Get mtr (from repo if *nix OS, or from here if Windows), and use it on the failing site when it's failing, let it run for a good 5 minutes, post the results.
0
0
166
2013-08-23T00:34:23.633
database_errors
serverfault.com
326,381
Mysql query works in 200ms with 33594 parameters in SELECT IN (xx,xxx,xx) but runs hours with 33595 or more parameters, why?
We had a small malfunction which generated unexpected amount of data for a device. Our code ends up creating a select query along the lines of SELEXT * from XXX WHERE yyy IN (xxx,xxx,xxx....,xxxx) That should fetch data of last 5 days which normally is not a problem at all as the WHERE field is indexed. We suddenly sta...
At my company we have had the problem since MySQL 5.7 that there's a cap on the memory the optimizer can use, according to the option [CODE] . If you have too many items in the list, the optimizer gives up, and decides to do a table-scan instead of use the index. See https://dev.mysql.com/doc/refman/5.7/en/range-optimi...
6
1
3,549
2023-04-25T08:31:16.017
api_errors
dba.stackexchange.com
313,266
Windows Server 2008 File Server Performance Tuning
I am running a Microsoft Windows Server 2008 R2 File Server on our network. It seems that there are many times where accessing the data from the server is really slow, sluggish, or non-responsive. Even worse yet are the issues that I have started observing when I try to run or execute an executable program or file from...
Well, two suspects: Network overload, especially on the server side. Those 1gigabit network links only server 100mb/second total, and that can be VERY low... maybe time tpo upgrade the switch to one capabble to handle a small numbber of 10giga links and put a 10giga card into the server. Disc overload ;) In you case, c...
1
1
3,220
2011-09-20T03:45:37.003
infrastructure
serverfault.com
417,353
Amazon EC2 Security Groups - IP ranges
Possible Duplicate: How does Subnetting Work? So if I add [CODE] to my allowed IPs in security groups, does that mean that everyone with an IP from [CODE] to [CODE] can access the instance?
If you mean the well-known IP/subnet notation, then this specifies a single IP address because of the subnet mask [CODE] . If you want to have the range from 0 to 255 in the last octet, you need to specify [CODE] as subnet mask.
5
11
6,532
2012-08-14T13:04:41.043
data_quality
serverfault.com
723,682
saving iptables rules without logging in to root
I am trying to save iptables rules file to /etc/sysconfig/iptables. I want to do this without logging in to root. I tried to using sudo iptables-save > /etc/sysconfig/iptables but it throws permission denied error. How can i save the file without logging in to root ? I am using this in my app so i don't want to login t...
To use sudo, you can do [CODE] The shell don't have the right to write in /etc/sysconfig/iptables, as it is run in your user.
2
6
7,246
2015-09-21T06:25:26.137
infrastructure
serverfault.com
313,426
disable autocommit in PostgreSQL 13 on Oracle Linux 8
I know this question has been asked before. I am new to PostgreSQL and would like to turn off "autocommit" forever. After some research, I need to add "\set AUTOCOMMIT off" in the ~/.psqlrc file. Where do I find this file ~/.psqlrc? in directory /var/lib/pgsql/13/data/ I do not find it. I created it "vi ~/.psqlrc" and ...
Where do I find this file ~/.psqlrc? That already is the full path to the file. Linux shells expand the "~" character into the path to the current user's Home directory, so something like /home/ username . The leading "." in the filename makes it a hidden file, so it won't show up in directory listings (ls) unless you ...
0
0
921
2022-06-16T09:10:43.097
database_errors
dba.stackexchange.com
253,773
SQL Log, can I delete this file? SQLDump10000.txt
I want to know if I can delete this : SQLDump10000.txt . It's taking too much space. If I delete it will it corrupt the database?
You can delete it without corrupting the DB. However, you should try to find who created the dump and why (likely a partial or full backup, though a strange way to do so), and ascertain if it is still needed.
0
2
6,470
2011-03-30T17:21:18.163
data_quality
serverfault.com
226,112
Setting up individually accessible public_html for each user of a linux machine
I have a dedicated server on which I have a site http://www.example.com I need to create a user and: allow him ssh and ftp access into it allow him to access a page such as: http://user.example.com How do I provide ftp access to him? How do I setup public_html and all necessary details so that he can access html file f...
You use mod_userdir to set up public_html and directories that allow users to have websites on your machine. If you only need this for one user you can also set up a plain virtual host to that directory. EG: [CODE] If you have multiple usernames you want to create VirtualHosts for, you have a few options. The first is ...
0
2
1,011
2011-01-24T11:04:08.503
infrastructure
serverfault.com
204,412
Are multiple Primary Keys in MySQL allowed?
I haven't used SQL for ages and now I have to create a software with a small DB. I've decided to use MySQL with MySQL Workbench to help me design this database (by drawing a model with ER diagram). When I've started adding relations, I found out that with each relation added to table, another PK is added to it. At firs...
Only one primary key per table is permitted. But a primary key can consist of any number of columns. Having many columns in a primary key however is often (not always) a bad choice. Some notes about this... InnoDB tables are organized by primary key. As a consequence, all secondary indexes contain the primary key. Havi...
0
2
5,026
2018-04-19T09:24:37.620
data_quality
dba.stackexchange.com
783,645
LACP - Load Balancing Network 2Gbit Ubuntu
I have configured my server as bonding interface to achieve 2Gbit network speed but it seems ubuntu can not go over than 1gbit and the outgoing traffic from server is not balanced over 2 interfaces. The switch behind of this server is a Juniper switch and all configuration is verified by Juniper JTac so there should no...
The following configuration works for me. The essential part is bond-xmit-hash-policy layer3+4 which controls the interface hashing policy for transmit packets. https://www.kernel.org/doc/Documentation/networking/bonding.txt It is also the rough equivalent of that the switch does in regards to load balancing the packet...
1
3
1,653
2016-06-13T13:42:58.253
infrastructure
serverfault.com
1,111,944
LVM "not starting" after upgrading physical disks in underlying RAID6 mdadm array
Before: separate SSD boot drive RAID6 4 x 2TB -> [CODE] LVM PV [CODE] LVM VG built on the PV above LVM 2 data partitions formed in the VG mounted at [CODE] and [CODE] I upgraded from ubuntu 20.04 to 22.04 (everything was still working after reboots) The above was running well, but I upgraded the 2TB drives to 3TB, and ...
What fixed the problem? To address the issue, I had to modify LVM configuration in [CODE] . Specifically, I had to change: [CODE] to [CODE] Configuration notes on the [CODE] setting: [CODE] I had been running with LVM defaults for years; I'd never even looked at the configuration before. Why did this happen? I suspect ...
0
0
486
2022-09-30T04:05:11.317
infrastructure
serverfault.com
792,927
Error Code 80070569 configuring Windows DCOM Identity with domain user
I have a COM application instantiated by a local Windows service with which I would like to gain access to a network share. To achieve this, I simply attempted to configure my COM server to run as a domain user with access to that share: I go to the 'dcomcnfg' console, locate my server under Console Root\Component Serv...
First of all, lets state that for every security principal in Active Directory there are bunch of different logon types: Interactive, Network, Batch, Service, and so on Security pricnipal can be allowed or denied almost any of logon types via Group Policy. The exact settings can be found here: Configuration>Windows Set...
0
0
1,144
2016-07-31T00:45:16.213
infrastructure
serverfault.com