question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
97,145
Problem in the parameter size in constraint parameter no hidden netwrok
I was trying to implement a no hidden layer model for classification with the constraint that all the weights have the absolute value $1$ , As follows [CODE] Here the input has four features, output has two feature with 0 bias. The training phase converges with very good accuracy. So there should be $4*2 = 8$ parameter...
The model you have made actually has a hidden layer, i.e. the 4 neuron layer is actually a hidden layer The number of parameters is affected by the input size you put in eg: [CODE] If you want to create a model with input layer of size 4 you should instead [CODE] which gives the desired model: [CODE] The number of trai...
0
1
16
2021-06-26T19:03:29.310
data_quality
datascience.stackexchange.com
806,080
Linux 2.6/Netfilter/Netmap with multiple destinations
I want to create a VPN connection to another network, but we have to map our Addresses (172.16.0.0/22) to a new IP because the destination network is also using our IPs. So we tried to setup this connection with the NETMAP target. We want to access services in 3 networks at the destination: 1.1.0.0/17, 3.3.0.0/16, 5.5....
There was some unwanted interaction with an ipsec tunnel also configured on the system. After disabling it, the netmap worked perfectly as intended. After some inspection we found the error in the policy level, which was set to required instead of unique. Enabling the ipsec tunnel again with "unique" solved the problem...
1
0
420
2016-09-29T12:05:32.567
infrastructure
serverfault.com
288,712
Clean Code: can private methods rely on member variables set by other private methods?
I was asked to create a class that will connect to a remote service via soap. The class has only one public method [CODE] . The class ended like this: [CODE] But my boss (who has like 10 years more experience than me), told me I should pass the recordId as a parm to the update method, because otherwise the class suffer...
[CODE] and [CODE] are initialized and used during the execution of [CODE] , but they have existed before [CODE] was invoked and will continue to exist after [CODE] is done. Also, if [CODE] is called multiple times on the same object from different threads, the threads will mutate the same memory even though each needs ...
5
5
1,156
2015-07-04T20:14:33.337
api_errors
softwareengineering.stackexchange.com
299,249
How to test code that depends on complex APIs (Amazon S3 for instance)?
I am struggling with testing a method that uploads documents to Amazon S3, but I think this question applies to any non-trivial API/external dependecy. I've only come up with three potential solutions but none seem satisfactory: Do run the code, actually upload the document, check with AWS's API that it has been upload...
There are two issues we have to look at here. The first is that you seem to be looking at all of your tests from the unit test perspective. Unit tests are extremely valuable, but are not the only kinds of tests. Tests can actually be divided into several different layers, from very fast unit tests to less fast integrat...
15
34
17,656
2015-10-07T13:56:14.883
api_errors
softwareengineering.stackexchange.com
575,543
remove specifying the full path in sudoers
I am trying to add a NOPASSWD entry for 'sudotest.sh' (or any script/binary that requires sudo) in my /etc/sudoers file (redhat) but in order to make it work, I must specify the full path. The following entry works just fine: [CODE] The problem is that the script might move to a different directory. I tried as giving /...
The full path is mandatory, otherwise the unprivileged user could create a new script with the same name at an arbitrary location, completely circumventing the security you're trying to implement.
2
8
965
2014-02-14T08:20:22.877
infrastructure
serverfault.com
102,175
Is it possible to have a deadlock in this situation
I am working with SqlServer and Java. I have the following (pseudo) code : [CODE] Is it possible to have a deadlock in this situation if two transactions are running with the same items ? My understanding is the following : For each item the select take a Shared lock on the row, and next the lock is upgraded to a Exclu...
Assuming you're working with read committed isolation level (=the default), then the deadlock will happen when a reads the row, then b reads the row, then a tries to update it and then b tries to update it. In addition to deadlocks you might have another problem if you're dealing with the same rows and the process isn'...
0
0
87
2015-05-21T16:29:12.697
database_errors
dba.stackexchange.com
40,467
Clustered vs Nonclustered Index
My database currently has a primary Key/Clustered index on the [CODE] column for each table. However, the application that connects to the database is always looking at views defined as: [CODE] Would it be best to add the [CODE] to the clustered index or is it better practice to have a nonclustered index with the [CODE...
Since we are talking about the clustered index, just because you defined the CI key column as [CODE] , you still have the [CODE] data in the leaf data pages of the index. That's the nature of the clustered index: It is the table data. Because you are typically having queries that look like: [CODE] You will likely benef...
2
5
730
2013-04-19T19:11:32.690
warehouse_errors
dba.stackexchange.com
52,402
how to change default language of SQL server management studio 2008R2?
I tried to change default language to french by using the below query. [CODE] but [CODE] gives "us_english" always. My aim is to change my onshore system's default language from korean to english. All error/warning messages are coming in korean when query failed. And i couldn't catch that message as i developed in Engl...
Using SSMS : To do so, open SQL Server Management Studio (SSMS) > Right click Server in Object Explorer > Properties > Advanced > Check the ‘Default Language’ property and make sure it is set to the one you want. using TSQL: Look up the sys.messages catalog view to check if SQL Server supports a message in your local l...
2
3
33,093
2013-10-29T11:57:43.090
database_errors
dba.stackexchange.com
88,806
Rich database frontend - how to correctly handle low quality networks?
I have a very limited experience of database programming and my applications that access databases are simple ones :). Until now :(. I need to create a medium-size desktop application (it's called rich client?) that will use a database on the network to share data between multiple users. Most probably i will use C# and...
You might actually want to check into why a internal network is running so slowly. If a simple select statement is taking 1-2 minutes to complete it sounds like there is something seriously wrong with the network configuration. As far as your best practice, horsepower on the database server is going to be a good thing....
1
1
100
2009-11-27T14:32:08.277
database_errors
serverfault.com
560,013
TFS 2012 Backups w/DPM
I have a few servers running (mixture of 2012 and 2012 R2) and am playing with Microsoft's DPM as a backup solution. One of the things it complained about during installation was ensuring the SQL Server service I am configuring it to connect to needs to run under LocalSystem. I did that and everything is fine, but now ...
Run it as Network Service. If you need more permission, run it as a domain account with whatever permissions are required
0
0
349
2013-12-08T17:18:54.040
database_errors
serverfault.com
925,118
Windows Component Services console (dcomcnfg) hangs
After run the "Component Services" console in any way and go to the Computers section, it hangs. Only the forced termination of the process helps. At the same time there is some activity . Long wait does not help. How can I fix this?
I didn't understand how to identify the cause of the problem. To resolve this, do the following: sfc /scannow installing updates reboot after that, the console started working again.
1
1
1,131
2018-08-06T14:12:33.780
infrastructure
serverfault.com
123,650
Better way to store file receipts
I have a financial system that needs to attach PDF receipts for each record saved on my system. These receipts will be scanned by a proper device attached to the computer and saved in PDF to be stored in my database. Today the system saves the PDF file as [CODE] , but because of the number of rows in my table, the file...
You are not sacrificing performance as in database performance using varbinary(MAX). You are not searching on the varbinary(MAX). You are not indexing the column. What is nice about in the table is single consistent backup. The down side is a bigger backup. Delivering the file to the client varbinary(MAX) is going to b...
4
1
2,257
2015-12-14T19:13:34.137
warehouse_errors
dba.stackexchange.com
696,190
Having trouble mapping solaris drive paths to physical disks
I have a supermicro box with 24 drives in front and 12 drives in back. It's running x86 solaris 10 with zfs. Here is the output of zpool status: [CODE] My problem is that I can't seem to find a way of mapping these drive id's to the physical drives so I can replace them. Here is the output from another cmdline tool tha...
Write the complete or partial WWID or WWN of the disk on its label or record it somewhere in a slot map. Also see: Identify Disks on SuperMicro server running FreeBSD
2
1
867
2015-06-02T21:08:54.327
infrastructure
serverfault.com
578,714
Need to know who connected to the server
In my company, we have a server that needs to run several tasks and need a user to be logged on (despite my requests to change those procedures). To complicate even more, several users have access to this account. So, sometimes, someone have the great idea to logoff the account session. Now I need to know to know who d...
several users have access to this account sometimes, someone have the great idea to logoff the account session. You have a couple of options: You simply ASK the users that have access to the account who logged off the session. They could lie like children, but it is straight and to the point. You can prevent logoff via...
-1
1
59
2014-02-27T12:24:53.733
infrastructure
serverfault.com
267,012
Why does Git's stash commit need two parents?
Why does Git's stash commit need two parents? In the Hacker's Guide to Git , I see this mental model for stashes: The guide tells me that stash@{0} needs both A and B as parents. Why? Why doesn't the stash just point to B, getting rid of the need for C? I think I am missing something in my Git comprehension.
Because two things are stashed: the indexed content and the worktree content. Both are derived from the checked-out commit. When popping the stash, both can be restored.
13
8
1,465
2014-12-20T21:39:39.053
api_errors
softwareengineering.stackexchange.com
518,460
How can I detect hard drive failures?
I am in charge of a large number of Windows servers. Recently, many have been reporting hard drive errors with event codes 11 and 55. CHKDSK indicates that the drives are fine most of the time. What other diagnostic tools could I use to more accurately detect hard drive failures? Could these Windows events be false pos...
You detect hard drive failures by monitoring your RAID controller (or software RAID status) for drive failures . When a drive fails, you replace it as quickly as possible. Anything else is a proxy for predicting failure (which is useful, though not as critical with RAID). At the moment there is no better tool than SMAR...
-2
6
1,689
2013-06-25T17:54:31.623
infrastructure
serverfault.com
123,168
A good analogy for computer memory?
So, I'm a computer science major and I'm also a huge fan of the no-longer-on-TV show, Numb3rs. Now, whenever I talk with my friends they also ask me quite a few questions about programming and computers (and how they work). Now, on Numb3rs, they (Charlie, and occasionally Amita or Larry) often went on short, but well e...
Computer memory reminds me of Post Office Boxes a lot: Each box can store an item. Every box can be identified and accessed discretely using its unique address. One can place an item into the box or remove an item from the box, or just simply peek inside to see what is stored there. All boxes are standard size, they're...
2
1
3,621
2011-12-04T03:44:02.983
api_errors
softwareengineering.stackexchange.com
307,738
Problems with remote accessing a new instance in SQL Server 2019
I'm trying to setup a new dev environment. I have installed a Windows Server 2022 with SQL Server 2019 on it. My idea is to setup a new instance for every project I make. But I'm having trouble installing new instances and connecting to them remotely. What I do: Start setup -> create new instance -> put in instance nam...
In my case, My problem was both instances were listening to the same port. When replacing the ports by changing to a seperate port for each instance, everything works.
0
0
765
2022-02-20T10:08:23.290
database_errors
dba.stackexchange.com
210,468
postfix: smtpd configured to allow mail to/from local domain only?
I have an email server set up for our company's domain. We want to be able to receive our domain-based mail but we would like to be able to send email to ANY domain through the server as well. Using postfix/sasl on a slackware box. Sendmail is not installed. The server is on a public class A ip, with nothing between it...
As I understand it, you have two sites. The Postfix server is at site A, and all users can use it normally. However, from site B, users can send mail only within the domain and not elsewhere. The short quick answer is to add the IP address(es) of site B to the mynetworks variable in main.cf. A slightly longer answer: P...
0
1
1,752
2010-12-08T15:46:30.157
api_errors
serverfault.com
37,105
Is the multilayer perceptron only able to accept 1d vector of input data? If yes, why is this so?
I am going through the tutorial at the link below which uses MNIST handwritten digit database. https://machinelearningmastery.com/handwritten-digit-recognition-using-convolutional-neural-networks-python-keras/ The 28x28 sized image data has to be reshaped into a 1D vector of 784 pixels. 28x28=784. Why does the multilay...
You could say every type of neural network gets 1d input data. It's just more convenient to think about 2d-CNNs taking 2d data because the convolution operation is best illustrated by moving squares across a grid, and similarly for max-pooling. But you could easily write out all the multiplications, additions, and max ...
2
2
1,228
2018-08-18T01:30:51.743
data_quality
datascience.stackexchange.com
538,422
IE 10 missing Proxy GPO settings
Is there any way to remove the users possibility to change the proxy settings from IE 10 with GPO ? In IE 9 you had the "Disable Changing Proxy Settings" setting in \Administrative templates\Windows Components\Internet Explorer. So even if i don't have IE maintenance anymore with IE 10, i would still be able to use GPP...
Microsoft wants you to use the User Configuration Preferences in GPOs { link }. In the GPO, go to User Configuration | Preferences | Control Panel Settings , and create a new IE10 CP setting for your users. Be aware of the green and red dashed settings though { link }
3
1
4,079
2013-09-12T15:11:39.970
infrastructure
serverfault.com
111,115
How are parameters selected in cross-validation?
Suppose I'm training a linear regression model using k -fold cross-validation . I'm training K times each time with a different training and test data set. So each time I train, I get different parameters (feature coefficients in the linear regression case). So I will have K parameters at the end of cross-validation. H...
Usually, the aim of K-fold cross-validation is to check how a model performs (both on average and how much it varies across folds) given some hyper-parameters setting. We then pick the "best" set of hyper-parameters. Afterwards, we fix the hyper-parameters and train the model with full dataset to squeeze all the juice....
3
5
1,212
2022-05-19T06:06:05.623
data_quality
datascience.stackexchange.com
958,436
GCE TCP Loadbalancer access from within region always routes to same zone
We're running across three zones in GCE with a TCP Proxy loadbalancer in front. The backend for the loadbalancer is on a single node within one of the zones. Using the health check, the loadbalancer can determine where to send the traffic. This works as expected when traffic originates outside of Google. For outgoing t...
Are you sure you are using a TCP proxy load balancer. Because if you are using a non proxy load balancer, it is expected that you would see this behaviour. The Internal Load Balancer (ILB) is not an actual device apart from client and backend instances, but implemented as programming to the Software Defined Network use...
1
1
219
2019-03-15T13:12:20.320
infrastructure
serverfault.com
566,597
MX lookup failed
This is a part of my dns-zone file: [CODE] After 24h i scanned my domain with http://mxtoolbox.com/SuperTool.aspx . I alway get this: "No Records Exist". I use Cloudflare, so that is wrong with my dns-zone file? All works fine, expect the MX.
an MX record cannot be pointed to a CNAME. You need to create an A record for Your MX. RFC 2181 [CODE] source: http://www.rfc-editor.org/rfc/rfc2181.txt
1
4
2,270
2014-01-11T15:53:57.147
infrastructure
serverfault.com
317,890
ssh hangs on "Last login" line
This happened for the first time three days ago - I ssh to the server, authenticate using a password, get the welcome message but it remains hanging on the "Last login:..." line. The command line doesn't show and the server doesn't react to my input. Other services on the server keep working ok (apache, tomcat, databas...
Login using [CODE] and see what debug info shows up. This is odd in that the last login line is usually after the ssh session is setup. Also check your /var/log/{messages,auth,daemon} and whatever else is relevant. Are your drives full? Is something unexpected going on with configuration? I know you didn't change it, b...
5
4
10,181
2011-10-03T11:14:38.277
infrastructure
serverfault.com
213,783
Optimze performance for LIMIT / OFFEST on collected result of multiple queries
I have large tables in Postgres 10.4 (many millions rows) and three piped [CODE] queries. The percentage of rows contributed to the total result for each [CODE] is roughly: SELECT 1 : ~5 % rows SELECT 2 : ~5 % rows SELECT 3 : ~90 % rows I can use [CODE] and [CODE] and a [CODE] column, but it's very slow because Postgre...
There is a general technique to achieve this, with [CODE] and [CODE] : [CODE] Postgres evaluates nested [CODE] s in order and stops as soon as enough rows have been returned. The rest is never executed . This optimization does not happen with an outer [CODE] , which forces Postgres to collect all candidate rows and sor...
3
3
1,336
2018-08-01T14:08:55.053
warehouse_errors
dba.stackexchange.com
29,542
Fast introduction to deep learning in Python, with advanced math and some machine learning backgrounds, but not much Python experience
I've the following somewhat unusual background and I've managed (probably by luck) to get an industry job of a computer vision researcher using deep learning. My background: I've a PhD in pure math, and have the following machine learning experience: linear and logistic regressions, support vector machines (SVM), linea...
Stanfords CS231n has a great python+numpy tutorial. http://cs231n.github.io/python-numpy-tutorial/ As for Neural Networks and Keras + Tensorflow, I can recommend the Deep Learning specialization on Coursera. It is free for one week. If you do not want the certificates you can download all videos and stop. If you want t...
4
4
719
2018-03-26T10:13:48.657
data_quality
datascience.stackexchange.com
231,763
How DB index works internally at high level?
I have around 500 GB of data in one table of MySQL which has around 5 billion records. It has around 15 columns. It has index on all the required columns. When I do [CODE] it takes couple of minutes to return the data. I am not sure how indexing works internally here.Here is my understanding DB vendor will bring indexe...
This is an example for Db2, so a number of details will differ if you use another DBMS, but in general, it will look pretty much the same. Lets create a sample table: [CODE] So, we have a table with 100000 rows. Let's examine the unique index, before we add any data we will have just the root node: [CODE] NLEVELS is th...
0
0
135
2019-03-10T02:07:58.780
database_errors
dba.stackexchange.com
940,704
OwnCloud error deploying to AWS: The username is already being used (not WebDAV related)
I have an instance of Owncloud running on AWS Elastic Beanstalk I’m just deploying it from the docker, so I have a very simple Dockerrun.aws.json [CODE] I first setup it running with SQLite, and it was running fine for a couple days Now I’m trying to setup it using a MariaDB backedn instead. For that I just add environ...
I'm still not pretty sure why the error was happening, but after several attempts, the error was finally gone. What seems to have solved it was those steps: Drop the database created previously. Remove the environment variables related to Owncloud admin user: [CODE] and [CODE] . Then the instance was created with a def...
0
1
833
2018-11-19T14:03:42.927
database_errors
serverfault.com
291,811
Need to convert WinXP desktop into a WinXP-based server, suggestions? (more details inside)
My company's IT department would be better named the "computer purchasing and LAN cable maintenance department" because that's just about the limit of their abilities. In my division we just had a guy quit, and our headcount has been reduced by one this year, so we've got a user-less DELL desktop sitting around. Divisi...
Personally, if you are wanting to host PHP and mysql webapps, assuming the ones you want to host are compatible, I would install a flavor of Linux instead of XP on the box. Ubuntu Desktop edition would provide you what you need with a nice GUI so you don't have to do everything from a terminal session. There are hundre...
3
10
165
2011-07-19T12:40:15.843
database_errors
serverfault.com
243,610
Restore single users Exchange 2003 mailbox from backup
I take weekly backups of exchange in full. I also take complete weekly backups of the entire server. It is a Server 2003 R2 with AD and Exchange 2003 all on one box. One users inbox has disappeared. She has 19000+ junk items now. It is possible the inbox got mixed into the junk. Regardless it is such a huge mess she is...
The way you've described it, option 3 may not be the best for you (I'm confused why you didn't use option 2?). In fact, Method 3 makes less and less sense every time I read it (probably only because it's Saturday though). Method 3: Restore a Mailbox from Backup to a Recovery Server Use this method if the mailbox object...
1
3
1,786
2011-03-05T14:24:35.590
api_errors
serverfault.com
303,735
Generate random password using a T-SQL function
I have this code in PLSQL but I am unable to convert it to SQL Server. I want to generate a random password that contains a mixture of upper and lowercase, numbers, and special characters in T-SQL based on how many of each the user wants to generate. How would I convert this Oracle code to T-SQL? [CODE]
This seems to do what you require: [CODE] Example call: [CODE] Random result: pwd LrZ45N@6Rn db<>fiddle demo
0
4
2,229
2021-12-09T10:33:59.017
database_errors
dba.stackexchange.com
922,746
Having trouble running supervisord using systemctl (systemd)
I am unable to get supervisor to successfully run via systemctl. I am running Centos 7.5 I install supervisor with [CODE] [CODE] : 3.3.4 [CODE] : [CODE] I put my config file in [CODE] ( [CODE] and [CODE] for the file and the [CODE] folder) The config file contains the following (I removed commented out lines for brevit...
You should change [CODE] . Add the following on the [CODE] section: [CODE] Have a look at systemd documentation: https://www.freedesktop.org/software/systemd/man/systemd.service.html And the clearest explanation you'll find over internet on the arch-wiki: https://wiki.archlinux.org/index.php/Systemd#Service_types There...
1
1
8,801
2018-07-19T19:37:51.337
infrastructure
serverfault.com
488
How does continuous integration relate to continuous delivery / deployment?
Here is a quote from the current content of continuous-integration : ... process of merging developer's working code copies to a shared codebase frequently to prevent or minimize integration problems. OK, I get that. But then there is also continuous-delivery and continuous-deployment , and that's where I continuously ...
Continuous delivery and continuous deployment both take continuous integration one step further, by adding a 'deployment to production' step to the process. The difference between continuous delivery and deployment is that for delivery this step is done manually and for deployment is it automatic. Difference between Co...
26
27
2,360
2017-03-11T20:31:34.323
pipeline_ops
devops.stackexchange.com
611,454
Nginx, charset directive not working when sending 301 redirect
I have set the charset to 'utf-8' in the nginx.conf file under the [CODE] directive. It looks like this: [CODE] I have two server directives. One for example.com, and one for www.example.com. They look like this. [CODE] However, an initial request to [CODE] does not seem to present the charset type after the [CODE] HTT...
Since you did not define custom error page for 301 error, nginx sends it's built-in special page with predefined headers. See https://github.com/nginx/nginx/blob/master/src/http/ngx_http_special_response.c#L646
1
2
1,141
2014-07-10T05:14:18.263
infrastructure
serverfault.com
783,754
Dell PowerEdge R720 not recognizing RAID card
We recently bought a PowerVault MD3420 and I sent Dell the specs of the server I was going to use to connect it to. They sent me a card made by LSI instead of a PERC card for controlling the RAID from our R720. When I opened up the R720, it plugged into the PCI slot snugly. After booting the server it said it new PCI c...
PERC cards are for local RAID. This isn't local. RAID config for your SAN is done via a Dell utility from the server, not from BIOS on the server utilizing the SAN. The LSI card is a host bus adapter, allowing the host (server) to talk to the SAN (storage) via external SAS connections. I suspect the LSI card is already...
0
1
1,681
2016-06-14T01:16:24.647
infrastructure
serverfault.com
200,170
root directory permissions changed to 777 by mistake whats now?
By Mistake on Ubuntu 9.04 my colleague has changed the permissions to 777 on root directory (/) whats the best way to recover the permissions ?
If he did not [CODE] the Directory Root - don't panic. Changing back the root directories permission to default can be achieved via: [CODE]
3
6
12,651
2010-11-10T06:24:52.657
infrastructure
serverfault.com
147,233
What are these two file permissions for?
What does UID root and GID root mean? Difference? Please give me some examples... Thanks
UID stands for user ID, and GID stands for group ID. They are numeric identifiers associated by a UNIX or Linux system with an user or group account, respectively (e.g. [CODE] or [CODE] ). Systems also use human-readable users and groups for convenience (e.g. [CODE] or [CODE] ). Users represent an individual person or ...
3
7
387
2010-06-01T19:53:02.453
infrastructure
serverfault.com
700,705
Docker container can not access hosts behind VPN
I have a VPN gateway which allows remote access to a network with subnet 171.30.0.0/16. I have a local machine setup with ubuntu 14.04 and strongswan which connects to that VPN server using IKEv2 RSA and while connected, I'm successfully able to ping all the hosts behind my VPN (say for example 171.30.0.200) from my ub...
so it seemed that the problem was not route tables or so on, but the strongswan configuration on both client and server. I set all the left and right subnets on both client and server config to right values and also the left and right firewalls to true and restarted both side and since then it it working. I can ping fr...
7
1
4,760
2015-06-22T13:36:08.230
pipeline_ops
serverfault.com
51,800
When to enhance a dataset of images with flips and rotations of the images?
I am a beginner in machine learning, so I'm sorry if my question is a bit trivial. Suppose I have a dataset of images and which I want to classify, say using a neural network. It makes sense to me to try to enhance my dataset by e.g. flipping and rotating the images, so to obtain more training observations. At some poi...
Those operations should be performed on the training data part. We are introducing varieties into the training data set. If you were to do the rotation and flipping data and then you split the data set with the possibility of the rotated image of the test data being included in the training procedure. You are giving th...
1
1
799
2019-05-11T18:08:55.157
data_quality
datascience.stackexchange.com
798,319
Why is my virtual port linking to the original port in apache?
I am trying to create two ports 80 and 81 to render different files in my compute. For this I made a virtual host. My httpd-vhost.conf is as following: [CODE] In my httpd.conf file I have added Listen 81 below Listen 80 line. The problem is both localhost:80 and localhost:81 refer to localhost:80's location. When I run...
The file with your virtual hosts is not being included, otherwise there would be extra output from "httpd -S" Your ServerRoot is "D:/Softwear/Apache/httpd-2.4.23-win64-VC14/Apache24" so the default configuration file will be "D:/Softwear/Apache/httpd-2.4.23-win64-VC14/Apache24/conf/httpd.conf" Look at the file, "httpd-...
0
0
51
2016-08-22T12:17:53.773
infrastructure
serverfault.com
292,543
NGINX + PHP5-FPM segfaults under high load!
I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself and future victims. Here we go. I am running a very popular website with over 3M page views a day. On average that is 34 pag...
Install debugging symbols for PHP and all your PHP modules (if Ubuntu supplies them; otherwise you'll need to rebuild with debug enabled), then enable core dumps as per my answer to this question from scant hours ago. Then fire up GDB and go to town.
1
1
1,349
2011-07-21T05:03:06.070
database_errors
serverfault.com
855,459
What is the 'response time' of aws cloud trail and google appengine log?
I am searching for documentation or information regarding these two logging systems' 'response time'. I am sorry for the use of an imprecise term, but its meaning should be made clear in the following passage. In aws, [CODE] can capture events related IAM changes and accesses and collect the logs into a S3 location. In...
From the FAQ : Q: How long does it take CloudTrail to deliver an event for an API call? Typically, CloudTrail delivers an event within 15 minutes of the API call.
0
1
106
2017-06-13T08:30:59.340
infrastructure
serverfault.com
763,497
Postgres server not starting on drbd + pacemaker
I am trying to bring up the postgres server over ubuntu 14.04 with drbd and fiesystem. Service state as below: [CODE] My cluster configurations as below: [CODE] Corosync configuration: [CODE] DRBD config: [CODE] I am not seeing any error message in logs but this one: [CODE]
It seems that there is an oder constraint needed, which assures that the mount of the filesystem waits until the drbd resource was promoted to primary sucessfully. Without that order constraint Pacemaker could try to mount the FS while DRBD is still in the secondary role, which is not allowed by drbd. Try this: [CODE]
0
2
1,279
2016-03-13T19:52:23.630
infrastructure
serverfault.com
612,057
Java 7 or 8 is required to Run .Jar (Linux)
This is a newly installed CentOS 6.2 x86_64 I have downloaded java 8u5 RPM for GNU/Linux to run a .jar file, but I am unable to. I have removed java through terminal through the command [CODE] and have attempted to reinstall it, though I still get the same error. I have also attempted to install java 7u60, but I still ...
Find out what version of [CODE] you are using: [CODE] If it's not the one you want, use the alternatives system as [CODE] to select the right one: [CODE] If you downloaded an RPM from the Oracle site, you probably don't have the relevant entries in the alternatives system. Create them. This is an example for an old 1.6...
0
1
351
2014-07-12T02:08:09.590
infrastructure
serverfault.com
848,754
Kubernetes: Preserving source IP / Passing external IP as source
Sorry if the title, and tags, are a bit vague, I couldn't figure out the correct terms for it, yet. Please advise, and I will change it. I'm implementing a STUN server, boxed in a Docker container, which is hosted on Google Container Engine's Kubernetes. The project utilizes load balancers (forwarding rules on GCE) to ...
I'm glad to find out that this is one of those uncommon cases in our line of work where the solution exists , and was provided in a timely manner (i.e. just turned beta). Unfortunately, it's only specific to our context i.e. Kubernetes over GCE/GKE. Users of other platforms (e.g. AWS) will need to employ other solution...
2
2
1,595
2017-05-07T22:25:21.680
pipeline_ops
serverfault.com
20,655
Trying to import a large sql file using BigDump. Partial fail occuring
Problem: I am using the php script: BigDump to import a sql file that phpMyAdmin says has 9344926 rows . However when I run it, BigDump calculates and inserts 4050623 rows It should have Total: 9344926 rows My SQL file looks like this: [CODE] Question: Is the problem with the BigDump script or am I doing something wron...
I finally found the actual problem! It had nothing to do with how I was importing it, it was my local server's export that failed halfway through! After opening up VIM and going to the end of the file, I found: Fatal error: Maximum execution time of 300 seconds exceeded ... Ahhhh, the problem was with my local server's...
0
2
1,951
2012-07-10T18:08:58.023
warehouse_errors
dba.stackexchange.com
374,850
ftp issue ( from server to webhosting)
I have a web hosted on a sever where i have created an ftp user. now i m trying to access that ftp from a vps but when i give password it says me authentication faild. [CODE] this is what i m getting in log file grep fpt /var/log/messages [CODE]
Mar 27 17:06:14 vps proftpd[28250]: vps.server.com (208.111.39.5[208.111.39.5]) - client sent too-long command, ignoring Perhaps the password was too long ? You really should know where your FTP server writes its login and authentication logs; this is crucial information.
0
0
544
2012-03-29T13:43:27.073
api_errors
serverfault.com
161,760
Number of active connections and remaining connections
I would like to get statistics about the peak number of connections over a period of time. I know the [CODE] view, like [CODE] , but I think this method is not very smart. Are there other views or tables that can provide the information I need?
This SQL will help you [CODE] Result: [CODE] You can put this in shell: [CODE] or you can record the results into a table, then execute [CODE] to get result csv file.
37
70
77,463
2017-01-20T14:26:48.943
warehouse_errors
dba.stackexchange.com
392,208
How to install dev packages on a Red Hat server that is not connected to internet?
I'm a programmer and my Linux knowledge is poor. I have to install rrdtools on a server, and i get some warnings about missing libraries. The server has been set up so that whenever I connect to it via a VPN client, I cannot access the Internet from that server or from the computer I use to access the server. The only ...
You can determine the requirements/dependencies of a particular package with [CODE] . That doesn't fully solve your problem, though. Do you have access to a Red Hat DVD? Can you bring that with you? Another option is to try [CODE] (part of the [CODE] ) package. Install [CODE] on a server with internet access and run [C...
2
2
2,038
2012-05-24T10:53:39.700
infrastructure
serverfault.com
1,151,158
Mystery "Failed to locate executable"
I've been setting up a monitoring solution for various servers using Promtail, Loki and Grafana, following this article . I got a monitoring machine running Loki and Grafana (on Rocky Linux 9.3) and a bunch of Ubuntu servers running Promtail, which shovels logs into Loki. That works great. However, the last step I want...
The permissions themselves look fine, but the [CODE] at the end of the permissions indicate that extended SELinux attributes are set. Check the SELinux attributes using [CODE] and make sure the files have the correct SELinux context.
1
0
264
2024-01-09T10:44:15.097
pipeline_ops
serverfault.com
562,514
Getting .NET Intergation Services working on Second Instance of ColdFusion 10
I'm running CF 10 Enterprise, with .NET integration services installed after the initial installation and configuration of the two instances. The instance names are "cfusion", the default, and we'll call the second one "instance2". I installed .NET Integration Services through the standalone installer and chose c:\Cold...
Since you mention that you ran the installer and specified your first ColdFusion instance as the source folder I would try running the installer again and specifying the second ColdFusion instance as the source folder. I'm sure that the installer is doing more than simply copying files (probably adding registry entries...
3
2
153
2013-12-19T15:48:41.023
infrastructure
serverfault.com
137,545
How does virtualization improve server utilization?
The biggest benefit of virtualization is usually said to be improved server utilization. But why do I need virtualization for that? Say I got N physical servers that are lightly used. Why don't I just combine all the apps on those N servers into 1 physical server? This way I don't incur the performance penalty of virtu...
What does virtualization buy me in this case? The ability to run two separate things that have different requirements and dependencies. It is particularly valuable when those requirement conflict. For example lets say you have a some old enterprisy app that only runs on Windows 2000 server, but you also have a new shin...
2
6
532
2010-04-30T21:09:19.930
infrastructure
serverfault.com
1,122,675
2x10Gb network : Transfer Huge files with NFS limitied to 6 Gbps
I'm transferring big files (78GB) through network, with NFS, but the transfer is finally limited to 6 Gbps (on a 2x10Gb NIC). I cannot find the bottleneck for now. Here my setup: 1 Server MB: Supermicro X10DRH-C (pcie 3.0), only one cpu NIC: 2 x 10Gb (intel X710-T2L) 64GB of DDR4 (2400Mhz) HBA: LSI 9311-8i => 2 mini SA...
What are you using to copy data? I found standard tools such as [CODE] , [CODE] , [CODE] don't scale very well and will use [CODE] for such transfers. Even though the project is unfortunately abandoned, it's still better. The best I can do is between our nfs v4.0 mounts over shared 10 Gb/s Ethernet line but at night wh...
3
1
899
2023-02-12T13:56:14.630
infrastructure
serverfault.com
11,208
Repair a SQL Server 2000 MDF file
I had a SQL Server 2000 MDF on a SQL Server 2005 server (moved from prior version), there was a hardware failure. After sending harddisk, it was supposed the mdf / ldf files were recovered, but I am unable to attach. Something curious is that the MDF file has a date on disk from june 2010 and the problem happened in se...
The fastest, simplest solution is to restore your last good backup. If that isn't an option you can try a workaround to make MSSQL think the database already exists: http://sqlskills.com/BLOGS/PAUL/post/Disaster-recovery-101-hack-attach-a-damaged-database.aspx Then you can run DBCC and see if it can repair the database...
1
3
4,561
2010-10-11T00:31:32.700
database_errors
dba.stackexchange.com
681,236
Nagios - Only Want Alert if Service Failed for 15 minutes
I read through the documentation and thought my services would alert me 15 minutes after going critical, but I am getting the emails right away. /etc/nagios/nagios.cfg [CODE] /etc/nagios/myconfig/site/services.cfg [CODE] /etc/nagios/objects/templates.cfg [CODE]
https://support.nagios.com/forum/viewtopic.php?f=7&t=27110 says The time for "first notification delay" is timed based on the last known OK state The issue there seems so similar to yours that I expected the same username. Please check that and see whether it may help? (no need to award points; this is just a drive-by)
1
1
2,471
2015-04-08T13:07:28.400
infrastructure
serverfault.com
472,981
needs updated glibc package version 3.4.15 or later for RHEL6
I want to upgrade my current running applications to latest version. But due to some package issue i am unable to install them. I get common error in that: [CODE] . When i tried to update glibc package i get following output: [CODE] Should i need to add some more repositories? If yes, how?
[CODE] is the latest updated package for glibc in RHEL6. I am certain that a package like glibc will not be rebased to v3. If you are doing this on a production RHEL server, the simple rule is don't, don't do it. For testing purpose, feel free to add the fedora repo or rpmforge or whatever gives you the latest one. But...
-1
2
14,882
2013-01-28T10:08:11.280
infrastructure
serverfault.com
33,133
Slow Query Gets Even Slower After Indexing
I have a MySQL database with just one table containing 8 million records. I need to query the table to find a single record that matches a specific number: [CODE] Without an index, the query runs in 5 seconds. But surprisingly, when I create an index on two queried columns, the query takes 35 seconds to complete: [CODE...
If you know that the result will be no more than one rows - or if you don't care, you just want one row even if there are more than one - you can add [CODE] to the [CODE] clause (you can even leave it without [CODE] ): [CODE] or [CODE] or just: [CODE] The first version above (and probably the 3rd one) will do an index ...
2
4
247
2013-01-18T06:20:36.177
database_errors
dba.stackexchange.com
888,809
Why my url's are encoded in nginx.conf?
Basically I have this [CODE] file where I receive some parameters from my [CODE] page form. One of these parameters is called [CODE] and I use it to do a: [CODE] The thing is that the operation fails because the [CODE] seem to be encoded and in my error.log file I see something like this: [CODE] However, if I hardcode ...
Basically, as you are using GET parameters for your $url syntax, encoding of strings is compulsory for HTTP's URLs. That's why every special char is escaped from your form to your URL. But you can get your things done by a LUA scripot with the nginx-lua-module 's ngx-escape-uri by decoding your URL: [CODE] (depending o...
2
2
3,181
2017-12-19T08:08:37.223
infrastructure
serverfault.com
270,827
Tried to install lamp-server on Ubuntu 10.10 (weird error)
Ran the following command from a user account listed with ALL permissions in visudo. [CODE] Any idea what this is/what caused it?
If you have just installed tasksell, then rebooting may help you.
0
0
363
2011-05-18T05:21:13.230
infrastructure
serverfault.com
58,348
Unsupervised Clustering high dimentional data not having estimation for K
I have a dataset (all numerical) of 50K records containing 500 features. we are trying to find fingerprints. Meaning that we would like to cluster the data and report one of the nodes in each cluster as representative of that cluster (meaning that each node in that cluster is mostly similar to that representative compa...
I point out several things first: You have an unsupervised problem so the first to know is don't search for The Right Answer . There is no right answer and you take the best you get acording to some pre-defined criteria! not knowing K is another problem : This is one of many questions in unsupervised learning which do ...
1
1
73
2019-08-28T20:09:36.220
bi_errors
datascience.stackexchange.com
301,451
Copying a 50gb mysql database to another server
I am looking for some ideas to copy over a 50gb mysql database, i am having a nightmare with it. For mysqldump to work properly i had to change the ssh session to not time out, then i used wget on the other server to download the sql dump. Then, when i cam to import it like this: [CODE] I am now getting this cryptic er...
It looks to me like there's junk -- some sort of Linux error message or something -- in the first line of your [CODE] file. Assuming you're on a Linux or other UNIX-based system, look at the first few lines of the file with [CODE] Try this command line to load your file while deleting the first three lines. You might n...
0
0
218
2021-10-21T09:57:55.873
database_errors
dba.stackexchange.com
419,248
Sharding rule updating on DB scaling
When you have sharding, horizontal partitioning, you have multiple DBMS instances, and your server app chooses which one to use by some rule that uses record IDs. Well, for example, we have partitioning by some [CODE] , so that each DB server contains data of 4 thousand users, so that DB server. is chosen by [CODE] . A...
Starting from V11, Postgres supports Declarative Partitioning where you can divide the table into partitions with built-in Hash partitioning strategy (modulus or round-robin). It also allows you to explicitly create the partitions using [CODE] . And you can also use sub-partitioning to further divide partitions that ar...
2
6
134
2020-11-22T17:56:34.100
database_errors
softwareengineering.stackexchange.com
838,645
SSL Configuration on Linux[Red Hat Enterprise Linux Server release 7.2 (Maipo)]
My Linux distro : Red Hat Enterprise Linux Server release 7.2 (Maipo) Configuring ssl on this software Kibana-4.3.0-linux-x64 I am trying to configure ssl on kibana. The steps I followed: Generated private key [CODE] The above command created a file names [CODE] . Genrated CSR [CODE] Entered the details this csr asked....
The certificate of your server is not trusted by a AC which is recognized by your browser. You can add the AC certificate which has emitted the certificate of your kibana in your browser like this, it depends of your browser. For Ie For Firefox
0
0
217
2017-03-16T11:34:33.970
api_errors
serverfault.com
218,143
Error when restoring database from disk using a variable
I have the following query in SQL Server 2014. The backup of the database completes in approx 150 seconds but the restore/verify step fails with an error. Can you tell me where I'm going wrong? I don't understand why I can save the backup using a variable, but I'm unable to restore using the same variable. [CODE] Line ...
Try removing the 'GO' statement. Referencing the documentation for SQL Server Utilities Statements - GO The scope of local (user-defined) variables is limited to a batch, and cannot be referenced after a GO command.
0
1
305
2018-09-20T11:58:21.273
database_errors
dba.stackexchange.com
201,935
Trouble automating the install/execution of Ola Hallengren 'SQL Server Maintenance Solution'
I'll do my best to explain this as best I can, but kindly bear with me as I'm not a DBA and hacking my way through this. I'm tasked with ongoing deployment of SQL Server for end user clients on new servers. I have a PowerShell script that automates much of this including implementing all of the backup and maintenance a...
Passing a variable to that SQL Agent step in that manner is not possible considering it does not know about the variable itself. A variable in T-SQL has to be defined/declared before it can be used...hence the error that it is not declared. Your further consideration is actually the proper way to do that with PowerShel...
2
2
725
2018-03-21T21:18:38.800
data_quality
dba.stackexchange.com
937,377
Managing Windows LTSB on SCCM: software update installation
Here's a quick overview: We have several Windows 10 LTSB 1607 deployments running and we want to manage them using SCCM. The main goal is that we want to push security updates from SCCM onto the devices. Both my SCCM server and my domain server are running Windows Server 2016. SCCM has been updated to version 1806. I c...
It looks like you did not enable Windows 10 LTSB as product within SUP. You can enable it by: => Open SCCM Console => Goto Administration => Select Site Configuration => Sites => Select your site => Configure Site Components => Software Update Point => Products => Select Windows 10 LTSB => OK Remeber to trigger a full ...
2
0
1,912
2018-10-26T13:40:24.823
pipeline_ops
serverfault.com
248,888
60GB in version store in short amount of time, allow snapshot isolation is disabled
We had a situation where the version store went from zero to 60 GB in just a few minutes. It stayed high for hours and due to the performance impact of this on tempdb (disk queue was 1000), almost everything became super slow and we ended up failing over to a secondary to get back to a reasonable state of performance. ...
What other types of activity could use so much version store so fast? If the instance was acting as a readable secondary replica for an availability group, then snapshot will be used for read queries against that database - regardless of the settings or specific isolation levels requested. If there are a lot of data ch...
2
3
231
2019-09-16T15:44:47.677
database_errors
dba.stackexchange.com
135,633
Validation of Partitioned table Performance
We are testing partitioning on a table which contains a datetime column (DateColumn). Partition function I am using is: [CODE] How do I verify that partitioning the table is improving query performance? There is one Clustered index on [CODE] , do remaining non clustered indexes get statistics of partition? I am testing...
Why would you expect performance to be different with partitioning? Partitioning improves manageability but performance depends greatly on the workload and queries. For example, if you have a useful index on the [CODE] , you will likely get the same performance with and without partitioning. With no index on the column...
1
4
512
2016-04-18T11:56:29.423
data_quality
dba.stackexchange.com
822,265
rsync temporary failure in name resolution when tried to use rsyncd
I tried to use [CODE] to transfer projects from client to server (push operation). [CODE] ( [CODE] ) are installed and running on both client and server, with the server running [CODE] . The [CODE] is as follows, [CODE] when I tried the following command, [CODE] I got the following errors, [CODE] The client and the des...
Your failure is that the DNS lookup for [CODE] is failing, which is what the error tells you: [CODE] To fix this you could update your command to use the IP address instead, either: [CODE] or for IPv6: [CODE] Failing that you could add an entry to [CODE] to allow the name to resolve - or otherwise fix your DNS problems...
1
2
5,045
2016-12-22T14:41:22.897
infrastructure
serverfault.com
78,418
Hardware reserved memory issue
I've seen lots of folks having problem with hardware reserved memory issue in Windows 7/Server 2008 R2. I have it myself but not as huge as others have. Problem description When you install Windows 7 (or its bigger brother Windows Server 2008 R2) your memory may not be fully utilised. If you look at [CODE] And scroll t...
Your PC always consumed that RAM, but older versions of Windows didn't show. Now if you think that the hardware reserverd memory is a lot we need to which device is consuming that and how much each device. For do that open the Device Manager ( [CODE] ), go to the view menu, Select Resources By Connection and expand the...
6
1
5,934
2009-10-26T18:25:32.987
infrastructure
serverfault.com
713,281
Mediawiki talk page links to normal page
I have a mediawiki installation which mostly works as expected otherwise. However, suddenly, one normal page's "talk" section links to another normal page instead of to the expected separate "talk" page. This can be seen here: http://www.makehumancommunity.org/wiki/Documentation:Index (As you can see, clicking "Discuss...
http://www.makehumancommunity.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces By default, namespace 2N is a subject namespace and namespace 2N+1 is the talk namespace belonging to it.
1
3
39
2015-08-11T09:22:01.017
infrastructure
serverfault.com
330,956
Exim and receiving email with large recipient lists
I have Exim4 running on Debian configured to receive mail on multiple domains. Exim is set to forward all email that is received to one of the domains to another box. This box is configured with a catchall mailbox that everything goes in. My issue is that when an email is sent to the domain, which contains a large amou...
The default configuration for Exim is to allow unlimited recipients per message. This is controlled by the [CODE] parameter. If you are getting less, then either your configuration is limiting recipients, or the problem is upstream. As you have probably noticed Exim will only deliver once when multiple expansions creat...
0
1
1,137
2011-11-15T00:46:32.743
api_errors
serverfault.com
527,806
Apache Reverse Proxy to Multiple Virtual Machines
I've looked all over for the solution to my problem and cannot find it. Setup: So I have a host machine running virtualbox with multiple web servers. Each VM (webserver) has 2 network adaptors; Nat (with port forwarding for 8080 to 80 and SSH) and host only adaptor. Each Host only adaptor has it’s own network adaptor (...
I ended up solving this by using only one host-only adapter instead multiple adapters and then just using different ports for each VM. This way each VM had the same external IP just different ports. I also set static IP's on each VM which I'm not entirely sure if it was necessary. After I did that I just updated each o...
2
0
3,229
2013-07-31T23:29:40.780
infrastructure
serverfault.com
415,118
Is there an equivalent to "aggregate" outside DDD?
Edit 2: Thinking about the problem some more I realized that " Can aggregates be used outside DDD? " was not the right question, hence I changed the title. For the reasons described on the original post, I did not follow a DDD approach and its entity model. Still, I would like to group tightly related concepts (which w...
Reading the question, I wonder if there's not a misunderstanding. Indeed, from the DDD perspective there's 1 aggregate, 3 entities, and 8 value objects. But this does not mean that there must be a combinatorial explosion of the components: a value object may require its own type, if it's a complex value made of more th...
1
3
481
2020-08-23T02:10:41.927
api_errors
softwareengineering.stackexchange.com
562,858
How to download the saved images in the Rackspace cloud server?
I wonder if someone know how could I download the saved server image in a Rackspace cloud server. I have been searching and nothing found even in the Rackspace knowledge base. I know it is stored in the file system, but where exactly is it? If I download my images from the server, I can save disk space, and if one day ...
There isn't a way to download the server images currently. What you can do right now is create an image of your server (which gets stored in the Saved Images section), then restore the image from there. This isn't what you're asking for, but that's the limit right now. The image storing is part of OpenStack projects ca...
1
5
5,435
2013-12-21T04:03:59.443
database_errors
serverfault.com
326,202
What do you do to articulate your benefit as a programmer in an organisation where you are a cost-centre?
In my organisation I build financial products, for mutual funds, 401Ks, life insurance and margin-loans (or the equivalent in my jurisdiction). I take feature/epic requests from product managers - plan a project, design the software changes, provide costings, lead the team, drive the change through the organisation, su...
It is unfortunate that there are some organizations which have a mindset that only their profit-centers matter for their success and the cost-centers are an annoying necessity which should be marginalized away. One way to open up their eyes about how important their cost-centers are is to express their worth in how the...
3
7
168
2016-07-31T06:26:20.500
api_errors
softwareengineering.stackexchange.com
1,075,232
Openvpn from Debian 10 to 11, stop to routing all my packets
I had upgraded to Debian 11 from 10. With Debian 10 openvpn works fine, now I had this problem, i can reach my vpn server, but I cannot ping or access my lan remote, except for vpn server. This is the firewall configuration on remote side [CODE] This is the configuration on remote side of Openvpn [CODE] This is the con...
Solution found. On Debian 11 they had a bad(imho) idea to rename the classical eth0 to a long name of 16 char! This make impossible the use of interface in iptables or bridgge-utils(the maximum network interface lenght allowed is 15) otherwise will get this error "interface name is longer than 15 characters" So my nat ...
0
1
549
2021-08-20T22:58:17.150
infrastructure
serverfault.com
1,068,662
How can I run a systemd service after network link has been established?
A while ago I set up a systemd service to run after network comes online per the documentation . This is the unit file: [CODE] Per the documentation , the service should already be set up correctly to wait for network connectivity to be established (i.e.: I'm logged in, NetworkManager has connected to WiFi and the syst...
The meaning of "network online" is nebulous and network-online.target only fufills the most basic of possible meanings of "network online". See https://freedesktop.org/wiki/Software/systemd/NetworkTarget for a more complete explanation. You need to determine precisely what you need to be up in the network and what serv...
5
1
11,576
2021-07-05T06:47:42.417
infrastructure
serverfault.com
49,020
migration sql 2003 to 2008, Sql side and php side
I have a system in php using MSSQL 2003. I need to change the database to MMSQL 2008. I want to know if there's issue I should look at on SQL Side (Query/SP/....) PHP Side (Query, connection type, ...) Answer will be usefull even if it is a "dont worry, using standard connection will work" or "there's not so much depri...
There is no MSSQL 2003, so you must mean MSSQL 2005, right? Are you trying to upgrade? Do you have a development environment you can test in? That's your best course of action. Other than that, I'm not sure what you're asking exactly. But I've upgraded from 2005 to 2008 using a PHP environment before and nothing broke....
0
1
62
2013-08-30T14:42:45.133
warehouse_errors
dba.stackexchange.com
110,366
python - How do i remove duplicates but keep row values in other column
i have a small df with: ID and full Name and i want to remove duplicates in ID but keep all names in new columns (kind of explode) so if i have 3 same ids, i would have new df with columns: ID, name, name, name Please help
This is more of a programming question than a data science question and would therefore be better suited to the stackoverflow stackexchange page. Given the following dataframe with an [CODE] and [CODE] column [CODE] ID name 1 A 1 B 1 C 2 D 2 E this can be achieved by using a combination of [CODE] and [CODE] : [CODE] Th...
0
0
41
2022-04-26T10:02:52.333
data_quality
datascience.stackexchange.com
242,643
server 2008 vpn
I have enabled the vpn server on a server 2008 installation according to tutorials found on the internet, and after that, the server stopped receiving connections except VPN, or anything after somebody connected to the vpn server. It has some more services (DNS, samba, http, etc) which were working perfectly until I in...
First place to look would be the firewall if it is enabled. Make sure the right profile is active (usually Domain Profile), or disable it temporarily to test whether the services are accessible.
0
0
118
2011-03-03T09:40:26.783
infrastructure
serverfault.com
856,199
wp-admin redirects back to wp-login after any login attempt
I am not sure whether to post this to the wordpress stackexchange or here, but since this is more server-config, I'd assume here. My issue is a configuration issue. Here's my setup: Docker instance runs on internal docker IP address on port 80 Docker instance runs nginx which is the reverse proxy (public-facing port 80...
It is likely you have the default setting for login and administration set. // Secure login and admin define('FORCE_SSL_LOGIN', true); define('FORCE_SSL_ADMIN', true); If you have allow insecure (non-HTTPS) logins, you should be able to login over HTTP. However, you also need to allow insecure (non-HTTPS) administratio...
0
1
2,485
2017-06-16T10:39:32.490
pipeline_ops
serverfault.com
969,653
delayed reboot if network fails
I'm trying to make a monit check that reboots my router if it looses network connection. But I do not want it to reboot withing the first 5 minutes after boot, no mater if net is up or down. So far I have this: [CODE] But it seems to fire the reboot very fast after boot if the net is not there, it "ignores" my attempt ...
It sounds like you are searching for [CODE] in Deamon Mode . This delays the first checks. So if you can accept all other checks to also delay by this time, this could be used. If that's not an option, you can write a bridge script to only reboot if uptime is big enough: [CODE]
0
1
228
2019-05-31T13:45:32.307
infrastructure
serverfault.com
47,842
Randomstate and kmeans issues
I try to cluster a dataframe of 227 rows in 5 clusters using kmeans algorithm. Each time I run my code I got different labels and different clusters which make my analysis afterwards a bit tricky. Someone told me to use the parameter: randomstate to have a reproductility in my results. I did. I have the same clusters b...
Unfortunately, there isn't a built-in option to do it. Each time you run K-Means, the labels are assigned randomly. Even if you state the same random seed. However, based on this answer in StackOverFlow , you can create a lookup table and run it after your K-Means. [CODE] With this, you will always have the same output...
3
2
4,087
2019-03-23T11:57:29.087
data_quality
datascience.stackexchange.com
565,541
How can I use perfmon/logman to set up logging on a master (Windows) VM, writing to another machine on the network?
I know how to set up logging to write to a remote location in the general case - just specify the output filename using the full UNC path (e.g. \\HOST-PC\directory\logoutput.etl) when creating the log job. However, a problem arises when new Virtual Machines are created from a master VM where logging has been enabled: e...
I don't see how it can be done natively with [CODE] , but through both the UI and the COM interface, you can set the Subdirectory Format to include the computer name as a prefix. See MSDN for documentation on how to set the option programmatically. Edit: The checkbox in question appears on both the data set collector a...
2
0
2,635
2014-01-07T12:22:17.623
data_quality
serverfault.com
107,854
how to trace the data whether the destination stop using mysql?
I am newbie in programming.. I have table test and 3 columns(source, from and destination) below.. Table test [CODE] working fiddle here the first row (source 01) has : [CODE] the 2nd row (source 02) has : [CODE] the 3rd row (source 03) has : [CODE] the destination on 3rd row is empty..as you can see the the first row....
If I am not mistaken you are looking for a way to traverse your table as a tree and trace an item to see where it ended. I don't like your table desing and also what you are doing but I have a possible solution for it. I cannot think of a simple query to do it but programmatically its possible. I have written a procedu...
-2
0
52
2015-07-23T08:11:56.197
database_errors
dba.stackexchange.com
707,324
setting up linux router
I have setup three Ubuntu VMs in vmware. These are connected as: Now I want to use UBUNTU2 as router, so that when I run these commands in UBUNTU1, I get response from UBUNTU3, commands: [CODE] And I get response in UBUNTU3 from UBUNTU1 for commands: [CODE] Please help me with this. I have routes like this: Please igno...
I have made it! On UBUNTU1, I have my [CODE] file as: [CODE] I have created created rules with commands: [CODE] Now my rules in RPDB are as: [CODE] Then I created routes in each tables, net1, net2 and net3 wit commands: [CODE] Now all three new route tables looks like: [CODE] My main route table looks like: [CODE] And ...
1
1
978
2015-07-21T11:22:58.423
infrastructure
serverfault.com
66,973
Why does my GridSearchCV always break up?
GridSearchCV for my Random Forest breaks up. I need to know the reason and the solution to make it work: [CODE]
First, you are fitting $5 \cdot 3\cdot2\cdot2\cdot2\cdot5=600$ models and n_estimator=500 is quite big. Of course, this depends on your dataset and in your computing power. My first guess will be that you have not enough RAM memory on your laptop(if you are running it there) and that is why it is collapsing. If the err...
2
2
388
2020-01-24T10:41:15.647
data_quality
datascience.stackexchange.com
801,897
Nginx as a reverse proxy serving 301's
I have little experience with NGINX. I am trying to use it as a reverse proxy for a few docker containers running node. The goal is all requests will be funneled through NGINX. Based on routes(url path), a certain route [CODE] will then be passed to a different docker container via NGINX. The [CODE] is basically my API...
The 301 is the upstream server redirecting the requested URL [CODE] to [CODE] . You can see this in the headers you posted. Change your client to request the URL with the trailing slash and see if the 301 goes away. Alternately change your upstream server such that it does not redirect to the URL with the trailing slas...
10
13
21,369
2016-09-08T15:21:55.343
pipeline_ops
serverfault.com
30,796
Best Way to Partition By City / State in MySQL 5.5
I have a table with ~20M rows and every query against it will include state or city or a combination so I was thinking of partitioning the table using a combo of the two fields like so: [CODE] However, this fails to work with this error: ERROR 1493 (HY000): VALUES LESS THAN value must be strictly increasing for each pa...
Why not add two indexes: a) A two column index for (state, city) - handles queries for state only, then state and city b) An index on city - queries on cities only To tune for performance further you may be able to add lookup tables for state and city then use numeric keys to speed up query performance.
1
1
906
2012-12-20T03:40:14.250
database_errors
dba.stackexchange.com
55,084
Shard key selection for both write scaling and query isolation?
From the [CODE] documentation, I know that when choosing shard keys the key should always have high cardinality, so write operations are distributed to different shards (a kind of write scaling ). But for query isolation , better query performance will be gained if a query is routed to a single shard server (one single...
The documentation provides an answer through kind of a back-door. As you mentioned, for shards: For write optimization, choose a shard-key that has high cardinality. For query isolation, choose a shard-key that allows the [CODE] instance to route the query to as few shards as possible. It goes into a few more details, ...
1
1
295
2013-12-16T08:17:39.950
warehouse_errors
dba.stackexchange.com
982,035
draytek vigor 2862 how to setup a remote access VPN
We have the simplest network possible, and are trying to setup the simplest VPN possible to allow remote workers access to the LAN and to administer the draytek firewall. We have a ZTE router supplied by the ISP which has a fixed external ip of x.x.x.x This routers LAN address is 192.168.10.1, and provides DHCL to LAN ...
I assume you have fixed this but The Server Address should be the External Fixed Ip address not the Local Address.
0
0
2,342
2019-09-05T14:10:58.177
api_errors
serverfault.com
162,179
How to get the name of the windows default user group
We want to change file permissions for the windows default user group. The problem is, depending on windows version (xp,win 7) and language, the name of this default user group differs. Sometimes the name of the group is "Benutzer", sometimes it is "User". How can I get this name programmatically?
You shouldn't be changing the name of the group. Rather, you should be referencing the group by its well-known SID . You can't guarantee what the names of built-in groups will be in other localized versions of Windows, or in future versions, but the well-known SIDs will stay the same.
0
2
2,222
2010-07-20T12:52:37.760
infrastructure
serverfault.com
150,736
Apache server is spawning more and more processes, maxing out RAM and dying
We have a LAMP setup that had been working pretty well for half a year when the Apache server (MySQL servers are not on this box) just started to die. It seems to have started to spawn more and more processes over time. Eventually it will consume all the memory and the server would just die. We are using prefork. In th...
[ For the benefit of others stumbling across this older question ... ] Quick Answer: Check your [CODE] settings in your apache2.conf or httpd.conf file. Set your [CODE] between 2-5 seconds. Details: I've found that by default Apache's [CODE] is [CODE] and the [CODE] is set to [CODE] seconds. That will mean that a singl...
1
7
5,037
2010-06-12T20:38:44.483
database_errors
serverfault.com
320,492
Issues adding a new node to cassandra cluster
Background: Currently, we were running one instance of cassandra. One day we rebooted that server where cassandra resides and we started experiencing issues with the database. The num_token value changed from 256 to 512. It is my understanding that should not change on its own. It will only be changed if you change the...
I've never seen num_tokens increase after a node has been bootstrapped properly, it definitely sounds like something strange is occurring. You should also not have the node going DN in the status while the next node is joining, otherwise it won't properly join the cluster. It sounds like there could be a resource issue...
2
2
387
2022-12-02T15:32:48.813
database_errors
dba.stackexchange.com
690,202
Asphostportal IIS6 vs IIS7
I have two shared accounts at asphostportal. One uses IIS 6 and one uses IIS7. On both I have websites in Classic ASP. On the IIS 6 account, when I make an error in code and upload it then try to access that page, I get an error message that looks like this: [CODE] It tells me the error code and gives a line number. I ...
In general from a security perspective it is actually desired that error messages go to a log and do NOT get exposed to the visitor of a site. It is bad form on so many levels errors might contain privileged information such as database connection strings, credentials and other details a malicious visitor might abuse. ...
0
0
73
2015-05-07T05:25:08.797
infrastructure
serverfault.com
167,940
Application pool memory gets out of control after updating dlls
We are experiencing Memory issues every time we update the dll's using SVN. The IIS process(w3wp.exe) takes up more than 1GB of memory which is usually 300 - 400 Mb under normal conditions. So every time we update dll's we had to recycle the application pool. Is it because the old dlls are still cached even after updat...
Have you tried waiting for a while, and seeing what happens? I would guess its posible its caching the old dlls for a while, perhaps while its serving old clients? In short i would leave it running, and only if this boks actualy runs out of memory would i consider this a problem.
0
0
135
2010-08-06T20:00:44.807
infrastructure
serverfault.com
881,567
Nginx regex rule for caching images override the root location block
My nginx setup contains the following location rules: [CODE] The problem is, when I try to access one of the following files (jpg | jpeg | png | gif | ico | css | js | pdf) in the /data/ folder I get 404 Not Found error, cause the first location rule overrides the second. I tried to do something like this: [CODE] But t...
Solutions are: #1 Rule duplication [CODE] #2 Symlink You can create a symlink: [CODE] .
3
4
5,676
2017-11-02T19:03:34.487
infrastructure
serverfault.com
567,775
Naming a new Active Directory forest - why is split-horizon DNS not recommended?
Hopefully , we all know what the recommendations for naming an Active Directory forest are , and they're pretty simple. Namely, it can be summed up in a single sentence. Use a subdomain of an existing, registered domain name, and pick one that's not going to be used externally. For example, if I were to incorporate and...
So much rep to be had. Come to me precious. Ok, so it's pretty well documented by Microsoft that you shouldn't use split-horizon, or a made up TLD as you've linked to many times (shout out to my blog!). There are a few reasons for this. The [CODE] problem that you've pointed out above. Annoying, but not a deal breaker....
23
26
10,672
2014-01-16T17:01:12.813
pipeline_ops
serverfault.com