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
365,807
Database server, Webserver - RAM versus Server Load relationship between servers
We have a website running on 2 servers: 1 database server, 1 webserver. Our understanding was that we had 4GB RAM on the webserver and 8GB RAM on the database server. The site is database intensive with many queries on each page. Side note, we've recently found out the database server is running 32-bit, which we think ...
A load of 2.8 on an 8 CPU server isn't really problematic; A load above 8 is though. With any database, you will want at least all of your indexes to fit in the RAM, as well as have some more available for other MySQL tasks and caching frequently accessed data. You might need to increase some values in your my.cnf, dep...
0
0
538
2012-03-02T20:12:05.763
infrastructure
serverfault.com
679,824
Create new subnet over existing subnet
I have three servers that currently have ips 192.168.1.1, 192.168.1.2, and 192.168.1.3. They can see each other and talk to each other. I would like to create a second subnet, on top of the 192.168.1.x, which is 10.170.x.x. I can assign ips to each of the three servers, 10.170.0.1, 10.170.0.2 and 10.170.0.3, with [CODE...
As has been noted by others, when you use [CODE] and don't provide a network mask or CIDR range, [CODE] is assumed, and so no routes are created for the subnet. To resolve the issue, you add the CIDR range as well: [CODE] To make the change persistent you add it to [CODE] . This can be done the cheap and dirty way thro...
1
12
3,699
2015-04-01T13:32:38.730
infrastructure
serverfault.com
354,272
Virtualmin clean install - Internal Server errors with PHP
I've just reinstalled my server's OS (Ubuntu 10.04 LTS) and installed Virtualmin using the install script (install.sh). Everything on the server is completely vanilla - the only thing I've done after logging into the clean system is to run install.sh and enable the userdir Apache module. I've created a virtual host and...
Please check that the apache2-suexec-custom module is installed. Also, please check the contents of the /etc/apache2/suexec/www-data file: [CODE] I suppose you are hosting the sites in the /home directory? If not, you would need to adjust the configuration.
-1
0
2,146
2012-01-27T15:18:16.947
api_errors
serverfault.com
1,099,142
Accessing a server-side VLAN through OpenVPN
I am a networking noob and could use some help. I am trying to set up a TAP connection using OpenVPN to access devices that are on a VLAN on my remote server. Right now, I can connect and ping the interface (172.20.0.101), but I can't ping anything on the VLAN (like 172.20.0.2). I don't care about the VLAN coming accro...
Your bridge configuration in [CODE] makes a bridge between [CODE] and [CODE] , so any frames coming from the client end up on [CODE] without any vlan tags. That's why it was working without VLANs, and that's why it doesn't work with them. You should bridge between [CODE] and [CODE] on a server side for your setup to wo...
0
0
1,632
2022-04-21T15:21:30.633
infrastructure
serverfault.com
240,262
Benefits of Java in education?
I hope this isn't too off-topic and/or opinion based. I'm looking for examples and reasons why Java is an acceptable language for education purposes. Here's why: I learned programming on my own in C at the age of about 15. In school we used Pascal (which I think is quite OK, especially in educational context). In Unive...
The usual reasons for teaching Java are: Object Oriented Design Cross-platform development Popularity As a long time programmer, and former Java Developer, I've grown to hate Java. I was taught it in college (like everyone else), and I left college and went straight into Java development. Over time though, I was given ...
3
3
485
2014-05-16T13:32:03.590
data_quality
softwareengineering.stackexchange.com
42,937
BLOBs storage in a dedicated table
I have a database that has several BLOB columns scattered across multiple tables. Since I am a developer and am looking at making application code writing easier, I wanted to turn these columns into NUMBER FK columns referencing a table dedicated to BLOBs only (i.e. a PK ID column and a BLOB column). This would allow o...
Generally, if you move a BLOB column to another table, and the new BLOB column has the same attributes (such as "DISABLE STORAGE IN ROW", see my other answer ), performance wouldn't change much. How Oracle internally stores LOB/BLOB/CLOB columns is, as I understand, not relevant to you, as your question deals more with...
5
2
1,631
2013-05-23T18:02:48.067
warehouse_errors
dba.stackexchange.com
42,115
Finding outliers from multiple files
I am dealing with a very strange problem. I have a lot of files. I need to show which files are similar and which one has exception/outliers using its data. I can show with unsupervised learning using KMeans / DBSCAN or similar ML algorithms for each file. But what would be the approach for such a case? How can I show ...
If you are looking to find outlier records based and then identify the file containing the records, K-means may be as good a place to start as any, but perhaps you need to join all the files together to train it first. One challenge with K-means and other clustering algorithms is that you have to start with $k$ but som...
-1
1
66
2018-12-04T14:46:42.373
data_quality
datascience.stackexchange.com
441,937
destination host unreachable virtualbox
Basically i am trying to implement this on this picture I have my static ips assigned more or less like this and i can ping from my internal network to my 2 ports in my router without any problems. But for some reason when i try to use my external network to ping the router it gives me destination host unreachable here...
i had a misconfiguration in my vm settings. changed the name of the connection from eth0 to wlan0 witch is exactly the name from the other vm
0
1
4,314
2012-10-24T18:20:07.337
infrastructure
serverfault.com
122,954
Limit number of user logins in SQL Server
I have a user login named 'manager' currently logged in PC1, I want to prevent this user from login in PC2. So I created a trigger, and I got an error Msg 4621, Level 16, State 10, Line 2 Permissions at the server scope can only be granted when the current database is master It works well if I use database master, but ...
Logon triggers are special. Not going too far into it, they must exist in the master database and not any other, thus the answer to your question is: "It can't." https://msdn.microsoft.com/en-us/library/bb326598.aspx -Sean
3
1
1,355
2015-12-04T13:16:23.187
database_errors
dba.stackexchange.com
417,267
rsnapshot to Amazon S3?
I'm looking at rsnapshot and S3 to backup my server. But since rsnapshot can't directly upload to S3, and I'm not sure if S3 preserves file permissions, I'm thinking of archiving the backup folders created by rsnapshot and uploading them to S3. Is that feasible? Or is there a better option?
Have you tried, http://duplicity.nongnu.org/ ? It supports a lot of things to backup on including Amazon S3. From the features page, [CODE] rsnapshot isn't an actively developed project any more (last release 1.2.0 was in 2005). Duplicity is actively developed (May 2012 release) and you may want to take a look at that....
7
6
4,502
2012-08-14T06:30:39.690
database_errors
serverfault.com
984,859
Ansible (2.8) Collect All Usernames / Passwords at the Start of a Sequence of Playbooks / Roles
I have a collection of playbooks and roles that build a fairly complex application platform: several playbooks, several roles, and multiple inventory files define specific variants of the platform. During the build I need to enter usernames / passwords for: database accounts, to access git to pull code down, etc. I wan...
IMHO you're not automating things correctly when you desire to develop solutions that will always depend on manual user input. Doing so will also make it difficult if not impossible to run playbook automatically (from Ansible Tower / AWX) Ansible vault is the defacto standard to securely provide your playbooks with sec...
1
0
676
2019-09-19T13:05:09.513
pipeline_ops
serverfault.com
324,675
iis 6 anti data harvesting/scraping
We have a page on our extranet website that exposes information we would like to prevent from being data harvested. We have done the due diligence of encrypting the URL parameters to make it hard for the end-user to generate links for data harvesting, as well as incorporated a time-to-live for each URL so that after 30...
It's not a complete out of the box solution, but Evan Anderson released a script here on Server Fault that is similar to [CODE] for *nix - basically after a set threshold, it makes a firewall block entry. You can find it here . Like I said, it's not a straight plug in solution, but if you don't find anything else you s...
1
1
230
2011-10-25T15:56:48.427
infrastructure
serverfault.com
182,596
temp tables in tempdb are not cleaned up by the system
My question is similar to the one asked here: SQL Server tempdb rogue temporary tables Since I don't have enough points to comment and the answer there doesn't address my concern, I can only ask a new question here. Using SQL Search Tool in Visual Studio 2017 I can see the columns in the table and confirm that the temp...
I believe this is to do with the plan cache. Just ran a little test on my end and I can replicate it. To remove the table from tempdb [CODE] works, obviously target the plan handle for the stored procedure. You could do this but it would just come back again and freeing the cache all the time generally isn't the best i...
2
3
4,994
2017-08-03T13:11:10.800
database_errors
dba.stackexchange.com
312,161
Terminal Server 2008 (32 bit) fails to load profile (sometimes)
I'm having an issue with a virtualized Terminal Server running Windows Server 2008 (32-bit). It doesn't seem to be affecting any users connecting with HP Thin-Clients, only with my test accounts which are AD user accounts and all members of Domain Users. In addition to these test user accounts I am also having the same...
I got exactly the same problem. Only my setup is a win2008r2 x64 On Vmware Esxi. Everytime the number of users logged on reached 40, any user that logged on from that moment gets an temporary profile. Workaround: Move some of the users to other virtualized Terminal Server instances. Cause And Fix: The registry on our S...
2
0
6,689
2011-09-16T11:59:04.637
database_errors
serverfault.com
185,570
Why is an UPS needed for a server?
I wounder how important it is to have an UPS for a server. Everyone seems to use UPS for servers but not for client computers. In example, if I use Windows Small Business Server on a small network for Active Directory and storing the users home directory for backup is it still useful with an UPS, why? If a power outage...
The brief interruption to someone's work is more likely going to cost less than buying and maintaining a desktop UPS. That's one of many reasons why many professional solutions are server based and centralized, as the service level can be focused there. If there is a business justification with Return On Investment (RO...
2
11
8,584
2010-09-28T20:16:58.537
data_quality
serverfault.com
411,529
Launching R but it can't find liblzma.so.2
I have R installed but when I try to launch it I get: [CODE] Here is the ldd command to see what it's thinking? [CODE] Do you guys know why it's not finding liblzma.so.2 and where I can get that file and put it so that R finds it? I see that the liblzma-dev package appears to be installed but not lzma or liblzma2. The ...
Seeing as your machine seems to run ubuntu, I suggest install R as an ubuntu package . That way, the package manager will ensure that installed libraries and binaries match one another. Edit: I now see that you don't have root access. But perhaps you can run [CODE] using [CODE] to get your own package manager, and see ...
0
1
3,118
2012-07-26T17:40:03.613
infrastructure
serverfault.com
229,534
How to connect to an Oracle Server hosted in VMPlayer, from a SqlDeveloper client on my local client machine
Disclaimer : I'm novice in Oracle configuration and I want understand why it does not work. Here is my configuration : My local machine : Windows 7 Ultimate (x64) My VM hosted on my local machine with VMPlayer 3.1.3 build-324285 : Windows Server 2003 Enterprise Edition On the VM On the VM, there is an Oracle 11g server...
If you're using DHCP on the VM hosted oracle server, you'll need the Microsoft Loopback Adapter installed there as well, or at least manual editing of listener.ora and tnsnames.ora to use the static IP of 127.0.0.1. Here is more on the issue.
1
1
5,170
2011-02-01T09:33:24.577
database_errors
serverfault.com
419,472
Use WSUS to select patched to install, but not to download them
I am looking after three sites. Two are nice and close and share a high-speed link, so there is a single WSUS server to manage those - no problems there. The other site is 4 servers in China, using an ipsec VPN; this is not so great for patch downloads. Is there any way to setup WSUS so that I can approve patches for t...
You can either setup a down stream WSUS server, which you can set to download directly from Microsoft. Or, you could set a GPO that tells it to get the patches that the WSUS server tells it to, but download the actual data from Microsoft updates.
1
1
169
2012-08-20T23:47:32.057
infrastructure
serverfault.com
358,970
network routing problems
I'm a web developer, but I've recently had some network problems. I was working on a client server, developing a new website. It has a private server, Win 2008 R2. This server has more networks adapters and it's working as a router for 75 stations inside the building(I also have a virtual machine with active directory ...
To me, this sounds like something funky is going on at the arp layer. The problem as you describe it sounds like you have two possible devices that can act as the internet gateway, and by accessing your websites from inside the wrong device is getting its MAC address into the arp table. Restarting the remote router acc...
0
3
137
2012-02-10T21:38:22.323
infrastructure
serverfault.com
872,786
BIND9 can't resolve in-addr arpa
I am trying to configure my nameservers to resolve a PTR zone for which we are authoritative. I have several forward zones that work just fine, but when I try to resolve a PTR, the result does not contain an answer. The config has multiple views. Our internal view is for a 192.168.x.x network. The PTR zone is configure...
The names [CODE] and [CODE] are clearly not the same. It's definitely not normal to get back an answer that doesn't match the question, it's not something that can ever be expected to work. Either the server you are querying is badly broken or there is some device in the middle that meddles with the traffic (in a badly...
2
0
1,301
2017-09-09T05:38:59.983
infrastructure
serverfault.com
259,759
Exporting mysql query result to .txt file
I want to export query result into .txt file The path of .txt file and query is dynamic [CODE] When call procedure test it shows me: [CODE]
You need to embrace the [CODE] in quotes. This works for me (tested on MariaDB 10.4, but should work on older versions as well): [CODE] By the way, it's not good practice to use user-defined variables inside stored programs, like [CODE] in your procedure, because they retain their values between calls. (I think it will...
0
0
649
2020-02-15T10:58:46.277
database_errors
dba.stackexchange.com
78,258
How do I set the default umask in apache?
I need to set the default umask in apache on fedora so that my uploaded files have permissions 644 which are set to 600 by default in spite of doing chmod( $uploaded_file , 0644 ); in php script. Can someone provide some direction...?
On Fedora, I believe it's in [CODE] and you change the umask there -- [CODE] .
2
2
1,427
2009-10-26T07:47:28.717
infrastructure
serverfault.com
966,217
Postfix: Deliver relay failure messages locally, instead over the failed relay
Is it possible to exempt "MAILER DAEMON" messages from alias expansion or relaying? Context: Let's illustrate the problem is on this trivial forward-all setup: [CODE] When the relay breaks regular cronjob tries to send e-mail From:root@host.local it gets rewritten by aliases and encounters relaying failure "MAILER DAEM...
1 Sane solution [CODE] You may be tempted to disable bounce(8) service, but I expect that disables postmaster bounces. For more details see the Drop undelivered MAILER-DAEMON and collect bounces in postfix How it works: Undeliverable bounce messages are deleted A copy of all bounce messages is sent to bounces@ Drawback...
0
1
1,122
2019-05-07T16:25:46.997
pipeline_ops
serverfault.com
74,147
Update different columns on different clauses
I have a database table in Postgres 9.3 with the following layout: [CODE] Whenever a new row is inserted, I will have to update ALL rows [CODE] and/or [CODE] in different cases but want to do it in only one (faster) query to avoid performance problems (especially because I'll have to do a lock in the table to avoid cor...
I would probably do something like this: [CODE] Make sure that [CODE] and [CODE] are indexed if you are only updating a few rows and [CODE] has many rows.
1
2
247
2014-08-16T06:33:50.570
database_errors
dba.stackexchange.com
114,428
Creating crosstab() pivot table in PostgreSQL 9.0
I have a rather complicated issue for myself which I hope someone can help me with. I want to use PostgreSQL to enable me to create pivot tables from a geometry-less table. To keep it simple I will just show the table structure i want to use for the pivot and then use the methods given to create others, I hope :) The f...
Your table definition says [CODE] which means the values in there look like [CODE] instead of [CODE] . This way, the items from the [CODE] list do not match the values in the table, therefore you get an empty table as result. If you change the column type to a bit more senseful [CODE] (which trims the values, too, as E...
5
5
4,336
2015-09-08T08:15:38.343
database_errors
dba.stackexchange.com
531,760
Xen dom0 not forwarding to domU over bridge
My setup is about as basic as you can get. I have 2 interfaces on dom0 (Debian Squeeze), eth0 and eth1. I created a bridge for eth1 to forward packets to domU that has a public IP address. I can connect (ssh) to dom0 over externally, but I can't get to domU externally. I'm trying to configure most of the network stack ...
Two things. I usually put the IP address on the bridge. Also, I don't use the xend config file for this scenario. See an example here: (you can modify it to use eth1) http://wiki.xen.org/wiki/Network_Configuration_Examples_(Xen_4.1%2B)#Example_Debian-style_bridge_configuration_.28e.g._Debian.2C_Ubuntu.29
0
2
1,860
2013-08-17T21:04:21.263
infrastructure
serverfault.com
171,279
How to handle the junk characters upon conversion of the data from image datatype to varchar?
We are trying to convert the column of type [CODE] to column of type [CODE] . We tried the below way to do the conversion. [CODE] When we do it, we are getting junk characters like [CODE] . We also tried using [CODE] instead of [CODE] which again adds more junk data. The above conversion works for few types of record a...
If you are converting data from one format to another, then there is no such thing as "junk": it is all data, even if it doesn't "look" right. So, if you are saying that the conversion is not producing the expected results, then you need to be clearer about what the expect results should look like. You do mention that:...
0
2
1,187
2017-04-18T10:49:17.737
warehouse_errors
dba.stackexchange.com
663,208
Server is sending spam every 5 minutes - can't find task/cron causing this
A linux server I manage is sending out hundreds of spam messages from a specific user account every 5 minutes. I found, within the user's account (which runs Wordpress), a couple of PHP exploit scripts. One of these was the Meyhem dropper. However, I can't find any signs on the system that the droppers have compromised...
In php.ini find mail.log. Activate logging PHP mails. mail.log = /var/log/phpmaillog Also activate x-mail-headers mail.add_x_header = 1 Reboot httpd to activate the PHP changes. Than start monitoring this log. tail -f /var/log/phpmaillog Delete those PHP files. Install iThemes Wordpress plugin.
1
3
1,121
2015-01-28T22:34:24.573
infrastructure
serverfault.com
489,796
Why am I getting a Sudden Drop in throughput and sluggishness with no CPU increase
Occasionally, during random parts of the day, I get a 10 minute period of extreme sluggishness where my requests are taking 50-1000 times longer then they normally do. Note: I am on Apache/2.2.16 (Debian), running PHP 5.3.3 Newrelic shows that the time is not spent in the Database, it's supposedly spent while PHP is ex...
Yes, there are some issues to think about when troubleshooting performance, and most of them can be tweaked at [CODE] file. Apache and PHP are susceptible to a number of resource depletion Denial of Service attacks, notably, SlowLoris, [CODE] depletion, socket depletion, number of ephemeral open ports depletion. Check ...
0
0
1,699
2013-03-20T19:19:24.190
api_errors
serverfault.com
592,912
issue in installing postgresql 9.3.4 on Windows server 2003 x64
Hello i really did all what i know to install the PostgreSQL 9.3.4 on my windows 2003 server x64, but i'm always stopped with this error : please see the error : http://oi57.tinypic.com/s4tb8i.jpg I really don't know what to do , if i click OK then when i go to the windows services list i don't find the PostgreSQL serv...
I'm having the exact same issue on a 32bit 2003 server. For some reason it seems to fail on the very same part, the setting of permissions on the data dir. I thought it was failing because I only had Service Pack 1, which doesn't come with icalcs.exe (it's introduced in SP2), but it kept failing even after upgrade to S...
2
1
4,724
2014-05-03T17:21:29.120
database_errors
serverfault.com
51,383
Playwright: expect.toHaveAttribute: Unsupported token "@xpath" while parsing selector
In Playwright I created a script to verify the title using toHaveAttribute assertion for this element: [CODE] Here is my code: [CODE] But there is an error and I am not really sure how to fix this: [CODE]
You should use ideally toHaveTitle [CODE] Reference: https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-title
1
1
355
2023-03-14T11:23:50.720
data_quality
sqa.stackexchange.com
230,544
Packet loss with all adapters on one PC only on the LAN
I have a Windows 7 64-bit machine that is losing up to 20% of IP packets on both adapters - wireless & LAN. Browser traffic appears to be affected the most, but it is happening to all protocols. All other computers on the network are functioning fine. If I ping from my faulty machine to any machine on the LAN (wired or...
I have ran accross this kind of issue before, the first thing to figure out is if the problem is being caused by a Hardware issue or by a Software issue. My method of choice for this test is to run a copy of Ubuntu Live from the CD (Where it loads Linux to a RAM Disk) and test the ability to browse the internet and pin...
0
2
1,189
2011-02-03T09:35:59.450
infrastructure
serverfault.com
500,631
Sophos access a webserver from the web
I have an web server (IIS) behind an SOPHOS UTM 9 I have setup the Web Application Firewall feature It is a completely fresh install. No other settings have been edited. When I try to access the server form the web I get: "Forbidden" error message in the web browser. Any ideas ?
Please be more specific about what you're trying to do. The WAF is a feature that protects internal web servers. As such, you MUST set it up correctly in order to gain access to your internal server. This usually requires that you do the following: (optional) Add a new IP address to your external NIC to accept connecti...
1
1
5,925
2013-04-18T14:49:31.990
infrastructure
serverfault.com
537,495
CentOS PHP cURL NSS error 5938
Having a strange issue with cURL and PHP on a couple of CentOS boxes. Locally, I'm running CentOS 6.3. Remote is CentOS 5.9 Locally, the box receives a request, scp's a file to the remote server, then performs a cURL request via PHP to the remote server to send some info. The request always fails on the first attempt o...
it's general problem for curl compiled with NSS (only redhat-linuxes, debian and suse curl packages compiled without nss). you need compile curl from sources without nss-library. so, i haven't solution how https-connections worked with nss-curl. curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3....
8
6
33,407
2013-09-09T14:20:34.050
api_errors
serverfault.com
373,255
htaccess rewriterule leading slash
I'm using htaccess to rewrite my urls so that I can have nice clean urls. However, the same htaccess file does different things on my local server and my remote server: On my local server the url to the website is like [CODE] and on my remote server the url is [CODE] . For my local server I can use the following htacce...
The best solution would be to change your [CODE] on your development server so that the URIs (and hence all the rewrites) are the same as the production server. If you have multiple sites on your development server that you are currently keeping in separate folders, you can use separate subdomains for them instead.
1
2
673
2012-03-25T21:25:44.040
infrastructure
serverfault.com
259,738
Continuously Adding SSDs to an existing PostgreSQL Server
An Ubuntu 18.04 server dedicated to running a PostgreSQL 11.2 server (with TimescaleDB extension) will be running out of disk space soon so new SSD disks will need to be added to the machine to support the growing database size. The data is expected to continue increasing at the same/higher rate, so the storage hardwar...
Have you turned on TimescaleDB's native compression, available since v1.5? I ask because you mention ZFS/BTRFS above, which suggests you aren't employing its compression already. Typically see 90-98% storage savings in the wild... https://docs.timescale.com/latest/using-timescaledb/compression Additionally, you can use...
5
3
661
2020-02-14T22:31:21.393
database_errors
dba.stackexchange.com
204,575
Should I open pull requests from a branch on the official repo or my fork?
I have commit access on an open source project named Foo hosted on GitHub (there are many other committers if that is relevant). I would like to make a change via pull request so that someone else reviews it before it gets committed to the master branch of the Foo codebase. To make this pull request, I can either make ...
I have no direct experience with it, but my expectation is that a pull request from a fork will be scrutinized more closely and rejected more easily than a pull request from a branch in the official repo. My reasoning for this expectation is that everyone can create a fork and submit pull requests from that fork, so th...
0
1
550
2013-07-12T03:12:35.133
api_errors
softwareengineering.stackexchange.com
256,248
How are the tiles in WORDAMENT organized?
I'm trying to create a word game, just like WORDAMENT, in my spare time. In order to present a new round, I need to create a board with 16 letters organized in a 4*4 grid. Currently, I'm generating the grid randomly. But it has some obvious problems. So my main purpose is to organize those 16 letters in such a way that...
Sometimes, it is simpler to "cheat" a little bit and start from the answer. In this case, I am more likely to take a set of words and continue to arrange them on board in the remaining spots until some criteria is met, and then fill the rest randomly. For example, I'll pick a dictionary with the relatively "simple" wor...
0
1
1,037
2014-09-14T11:03:22.370
api_errors
softwareengineering.stackexchange.com
267,619
Connect to SQL Server using Windows Group Authentication
I've got this SQL Server 2005 Express installation that's got a Database I'm trying to connect to through a software that gives me the error "cannot connect using the user 'mydoimain\myuser'. Meaning, it's trying to connect using my domain user as a default. Which is ok. This is actually what I want. But I want to be a...
You've created the login, which tells the server who you are. Now, you need to tell the individual databases who you are and what rights you should get. You'll do this by adding a user to individual databases and then adding rights to the user. Something like: [CODE] That will add the user to the database "db" and give...
0
1
212
2011-05-09T06:59:49.377
database_errors
serverfault.com
683,044
Configuration of spamassassin on Fedora 21 with Postfix
I was unable to find any help anywhere on installing spamassassin on a modern Fedora system. All the advice out there is old and doesn't apply - so far as I found anyway. The official documentation does NOT pertain to Fedora — it's too generic and is missing important Fedora implementation details. And, how it's done i...
It turns out that after much gnashing of teeth, I noticed that there's a package I had installed that NOBODY had referenced so far as I had ever seen. It's called [CODE] . So, after having checked EVERYTHING I could think of, I figured, why not? ... ("#" is the system root account's CLI prompt.) [CODE] And, as I had a ...
0
2
3,245
2015-04-15T23:24:41.150
infrastructure
serverfault.com
588,795
Why are changing Zabbix's triggers status to unknown?
In zabbix I have an item which i create some triggers for that on below conditions: {Server Template:mysql.slowqueries.last(0,1800)}>{Server Template:mysql.slowqueries.last(0)} {Server Template:mysql.slowqueries.last(0,1800)} {Server Template:mysql.slowqueries.avg(900)}=0 {Server Template:mysql.slowqueries.last(0,1800)...
If trigger evaluation fails for some reason, you should see an error message in "Configuration" -> "Triggers", on the right hand side: In this case, if you have just created "mysql.slowqueries" item and it does not yet have data older than half an hour, function "last(0,1800)" (which returns the last value half an hour...
0
2
3,557
2014-04-14T05:41:47.117
database_errors
serverfault.com
236,481
Creating an Apache Virtual Directory, but updating Active Directory DNS
I'm just getting started with using the Zend Framework and am following a recommended procedure where I am supposed to create an Apache Virtual Directory for the public-facing portion of a new Zend project. I don't THINK I had any issues creating the Virtual Directory, but my knowledge of the required DNS changes is ra...
Create a zendev zone in your AD DNS. Create an A record within that zone called "square" and point it at the IP address of your server. In the apache config change [CODE] to [CODE] This is all assuming that your computer resolves DNS via the Active Directory nameservers.
0
0
368
2011-02-16T22:37:13.390
infrastructure
serverfault.com
434,798
How to configure Reporting server on SQL Server 2008, Windows 7
I want to configure reporting server on sql server 2008.I m using Windows 7 Operating System . I configure reporting manager using Reporting Services Configuration Manager and provide Service Account , Web Service Url, Execution Account and Report Manager Url setting . But When i click on link of Report Server Web Serv...
The report server by default does not have any reports. What you are seeing is the listing of the files on the server, in this case there are none. However, the other issue you may be having is that you have not setup your user account to have full admin rights on the server. This link is related to TFS integration but...
0
0
222
2011-12-28T05:35:34.327
database_errors
serverfault.com
438,772
Design pattern for persistent data storage - load and save arbitrary file, database, api etc
I have the following problem - I write the code for object data manager, and one of requirements is being able to save/load data into some persistent data storage. I want to make it as the following: there is an interface, IPersistentDataService. if user uses an option to save/load from file, they can give arbitrary fi...
I found an answer - I should just create Reader/Writer interface and pass it as follows: [CODE]
1
1
848
2022-05-21T21:15:30.893
api_errors
softwareengineering.stackexchange.com
869,470
Postfix with letsencryt not working
I'm trying to setup my own email server. I have installed postfix and dovecot. I created an SSL certificate using letsencrypt. I have set web interface to use that certificate, but how do I get postfix to use it. This is what I put in the main.cf file: [CODE] When I try to connect gmail android app to the outgoing serv...
I figured it out. It wasn't very obvious because I didn't notice. There was a spelling mistake.
1
2
401
2017-08-19T08:22:07.413
api_errors
serverfault.com
167,046
Apache Reverse Proxy server and SSL NTLM SharePoint
I'm trying to set Apache as proxy server to an internal SharePoint server. I have previously configured Apache to run as a proxy server to export internal webpages and web applications. However, the Sharepoint is using SSL and NTLM authentication, and this is new to me :( I have tried many options, the traffic seems to...
NTLM was not designed to work through Proxies (or in your case: reverse-proxies). As with a single proxy, inserting a reverse proxy will cause NTLM authentication between the client browser and the Web server to cease functioning (see http://support.microsoft.com/kb/198116/en-us ) However, there are workarounds: In you...
0
4
16,705
2010-08-04T15:10:20.317
api_errors
serverfault.com
550,923
Move a NIC to another PCIe slot
I have a server running OpenSuse with a 10Gbe card (Intel 82599eb) and the driver is installed and it is working correctly. I need to move the card to another slot. However, when I do so, the card no longer comes up. By that I mean, it does not show up when I run an [CODE] . I've read that you might have to set a flag ...
If the card does not show under the lspci command, you most likely have a dead PCIe slot. Do you have any other PCIe cards you can test in the slot?
1
1
688
2013-11-05T21:59:10.883
infrastructure
serverfault.com
208,110
Changing numeric type slow down query big time for postgres
I have 3 tables, [CODE] , [CODE] and [CODE] . Scheme looks like this: recently we decided that foreign keys would be beneficial for us so we changed data types for [CODE] and [CODE] from [CODE] to [CODE] in [CODE] table (in scheme named [CODE] ). Reason for data type change is because foreign keys cannot be created bet...
I would like to point out that the join condition in the [CODE] was still comparing [CODE] with [CODE] as can be seen in the EXPLAIN PLAN you provided: [CODE] So even though you seemed to have dropped, converted and re-created the relevant information, your query was still creating an execution plan based on old inform...
0
1
1,187
2018-05-29T09:42:28.620
database_errors
dba.stackexchange.com
796,102
Office 365 ADFS authentication not working for child domains
A company is using Office 365 with ADFS authentication; AD Connect is used for directory synchronization, ADFS is the Windows server 2012 R2 version. The company has multiple Active Directory domains: [CODE] The root domains are configured as federated domains in Office 365 (the public domain names and the AD domain na...
The issue is very scarcely documented ( a Technet blog post and some documentation for Azure AD ), but it indeed exists, and it's caused by ADFS not behaving correctly in certain specific situations (multiple top-level federated domains and throwing federated child domains in the mix); the solution involves editing a r...
4
3
7,200
2016-08-10T20:37:05.493
api_errors
serverfault.com
447,481
Options for designing a generic library
During development of libraries (mainly for use in internal projects) I have come across the "problem" of how to design them in a generic way. I am going to demonstrate with an example library that I have implemented and use in code. But first, here is a summary of the ways I know to "distribute" a library in C++: Stat...
I am not a C++ professional, but if you design a logging library should should keep a in mind that logging is a highly environment and context dependable thing, and in the future if people adopt your library, there will be different functionalities to customize: Log Formatting Log Collection/Transport Log Display/Stora...
0
0
164
2023-09-08T14:55:16.143
api_errors
softwareengineering.stackexchange.com
151,843
ubuntu server slowly filling up
We had our samba server (ubuntu 8.04 ltr) share fill up the other day but when I went to look at it I cant see any of the shares have to much on them we have 5 group shares and then each users has an individual share one users has 22gigs of stuff a few others have 10-20mb of stuff and everyone else is empty so maybe li...
(This is a Linux focused answer. Other UNIX variants may be different.) There are two pieces of information relevant to your problem: (1) which files are filling up your file system, and (2) which processes are writing to those files. Notes Below, when I put the [CODE] character in commands, that's probably a place hol...
5
5
3,563
2010-06-16T18:39:23.760
infrastructure
serverfault.com
1,056,688
Forcing outgoing traffic via specific IP by process or user
I have a network interface with 5 public IPs. These IPs are working fine for incoming traffic. What I need to do is "force" outgoing traffic through specific IPs. I also made a simple REST endpoint if you make a request it'll tell you your IP in the response body. E.g curl, or fetch, or any other HTTP request method: [...
You may want to have a look at iptables-extensions(8): [CODE] Edit: Sorry I just saw that this was your option 1.
0
1
1,018
2021-03-11T10:22:47.067
pipeline_ops
serverfault.com
371,150
Any difference between DOMAIN\username and username@domain.local?
I'm trying to troubleshoot an obscure authentication error and need some background information. Is there any difference between how Windows (and programs like Outlook) process [CODE] and [CODE] ? What are the proper terms for these two username formats? Edit : In particular, are there any differences in how Windows au...
Assuming you have an Active Directory environment: I believe the backslash format DOMAIN\USERNAME will search domain DOMAIN for a user object whose SAM Account Name is USERNAME. The UPN format username@domain will search the forest for a user object whose User Principle Name is username@domain. Now, normally a user acc...
63
51
290,957
2012-03-19T13:28:49.700
api_errors
serverfault.com
1,016,100
Programmatically managing groups & users in GSuite via the API
I have a script that leverages the [CODE] tool to create service accounts for a project. I'd like to be able to create GSuite groups and add the service accounts to them within the same script as creating the service accounts , so I don't have to do it manually in the web UI. Preferably, I would like as much of this to...
TL:DR: You need to work with Directory API from G SUITE SDK Get the required authentication information to submit requests to the GSuite API On Directory API: Prerequisites page we can read the steps you need to follow to Set up your API : 1 Enable the API access from the Admin console in order to make requests to the ...
3
1
4,220
2020-05-07T12:35:20.230
api_errors
serverfault.com
214,405
mySQL - Cannot add Foreign Key Constraint
I'm trying to add a foreign key constraint but, mySQL is not taking it. No detailed error, just [CODE] Here is my code from an export dump... thanks for any assistance [CODE] ... [CODE]
I think you've got the FK the wrong way round, and really want: [CODE]
0
1
727
2018-08-08T14:45:49.000
database_errors
dba.stackexchange.com
11,889
IIS 6 SSL breaks after VMware clone with customization
I have a template Win2k3 machine with IIS 6 installed with a valid SSL certificate. The https site works perfectly. However, after cloning this machine from Virtual Center and applying a unique SID customization, the https site no longer works. IIS still claims to have the SSL certificate installed correctly, but ssldi...
I've seen this same issue on Windows 2008 with IIS 7. Open the Certificate MMC and remove the certs and put them back in. You shouldn't need to make any changes within IIS. You can probably script this out with a little bit of WMI.
3
5
6,308
2009-05-25T03:00:23.723
bi_errors
serverfault.com
867,469
Logtash grok / multiline confusion
My real patterns are more complex but I have tried to boil the problem down to the core issue. Something I don't understand. Please try this out on http://grokconstructor.appspot.com/do/match I'm trying to match the following lines: [CODE] Using the additional patterns: [CODE] And the following main pattern: [CODE] Wit...
Input [CODE] Multiline filter = [CODE] (negated) The multiline filter will look at each line in turn to see what should be merged. [CODE] Trying to match a [CODE] , especially at the start of a line makes no sense. You're better off matching [CODE] and merging that with previous. (Or if there's more lines for an event,...
1
3
3,242
2017-08-08T09:30:35.490
infrastructure
serverfault.com
914,251
Reset session is not working and RDS is currently busy
Applying reset session /server: example CMD after check query sessions, but still can't access to the remote server. ERROR : "The task you are trying to do can't be completed because Remote Desktop Service is currently busy. Please try again in a few minutes. Other users should still be able to log on."
Edit 1: I seen your question on superuser. What are you trying to do? bypass the 2 allowed admin session? You fall offtopic there for such scenario Restart all necessary service, like the spooler. RDP is dependant on such. If the error is still persistant after, watch what GPO apply to the user. I used to get that erro...
0
0
3,435
2018-05-29T11:17:49.427
infrastructure
serverfault.com
30,918
Neural Nets: unordered sets of ordered tuples as features of data
I'm working on a very small scale pet project in which inputs are essentially sets of (x, y) pairs, and are to be classified into categories, using deep learning, specifically using Keras (I know this may not be the best for this, but it's more of a proof of concept / I want to try it out). However, I'm not sure how to...
Your features are already numerical, so you can simply pass your array of numbers into a MLP. For instance, if you have 5 sets of (x,y) coordinates per sample, your MLP will have 10 inputs. One-hot encoding is used to convert categorical features into numerical values. This image from Kaggle does a great job of illustr...
1
0
978
2018-04-27T02:26:24.220
data_quality
datascience.stackexchange.com
267,394
Adding one record from master-table in addition to other records from detail-table to a MySQL-View
I am facing a problem creating a MySQL-View. I am not really a pro and i have no clue how to make this work. The situation is the following: I´ve got a table "Customers" (Master) with all the costumer companies in it and a suitable "Customers_Contacts" (Detail) with all the company contacts. What i want to do is creati...
[CODE] When selecting from the view: [CODE]
1
0
68
2020-05-18T14:10:06.707
database_errors
dba.stackexchange.com
68,142
How to Check Oracle Extent Free Space Available?
I need to add some indexes to a moderately large table and I'd like to know in advance if the tablespace has room to hold the index. (The extents are suppose to automatically increas in size, but the DBA's don't always have that set up correctly and I don't want to be the one that crashes the system.) What is the SQL I...
[CODE] But it isn't always that simple. While there may be, for example, 100M available and you may want to create an index that you estimate will be 80M, it may try to grab a new extent of 120M and fail. Also, if you had a table of 50M and dropped it, your 100M available may be two chunks of 50M. Again, if the databas...
1
3
3,875
2009-09-23T18:52:58.713
database_errors
serverfault.com
223,462
Select rows from table 1, table 2, then selecting based on ID
I am dealing with a large dataset, and have run into some issues because of this. I have a data set like: Table1 [CODE] Table 2 [CODE] What I need this to return is [CODE] If there is a duplicate ID in table 2 take that ID's row from table 1 and select it. I have tried [CODE] But with the large dataset I have, it is to...
While you already seem to have resolved the problem to your satisfaction, the classical solution to this is to use a [CODE] : [CODE] Note: code untested, and I haven't worked with teradata specifically, so there may be some syntax issues I can't predict. However, the basic commands and functions should be correct, from...
0
0
3,566
2018-11-26T15:40:45.263
data_quality
dba.stackexchange.com
900,702
Are the smaller Azure premium storage disks slower than standard disks of the same size?
I wanted to give a boost to one of my Azure virtual machines that is being used as a build server for processing thousands of small files in bursts. So I decided to add a small 32 GiB premium storage (SSD) disk. But while reading Microsoft documentation for Azure disks , something puzzled me: For a 32 GiB standard disk...
Yes, the performance of standard storage is the same per disk across the board, whereas premium storage increases as the disk size increases. This does mean that for smaller premium disks the performance may be low than the same size standard disk. The main reason you would use premium disk at this size is for the SLA....
1
3
1,196
2018-03-08T17:15:13.793
api_errors
serverfault.com
219,362
How to test the data access layer?
I have a DAO method that utilizes Spring for JDBC access. It calculates a seller's success rate of selling an item. Here is the code: [CODE] How should I go about testing this method or any DAO method with JUnit? What are some best practices to test the data access logic? I am thinking of testing it against an embeddab...
The problem with using a 'real' database for unit testing is the setup, take down, and isolation of the tests. You don't want to have to spin up an entirely new MySQL database and create tables and data just for one unit test. The problems with this have to do with the external nature of the database and your test data...
17
15
42,278
2013-11-24T05:22:41.450
api_errors
softwareengineering.stackexchange.com
913,218
W2012R2 RDP Server: the number of connections to this computer is limited and all connections are in use right now
Recently, the following message has started appearing for clients attempting to connect to our Windows 2012 R2 RDP Server: [CODE] There are only about 25 licensed users and no other network services running on this server. I am having the hardest time finding actual, useful information and help on this matter, so I hop...
Old thread, but did you ever find an answer to this? Having the same problem suddenly on a 2012 R2 RDSH with unlimited connections configured. 110 users. Never had this problem until this week, been in production for 6 years.
1
0
3,183
2018-05-22T10:13:35.913
infrastructure
serverfault.com
728,236
Migrating NFS server (Linux)
We have a NFS server (Linux) who stores files in a iSCSI disk array. This server is in production. The server and the array are very old and have to be replaced soon (the array is already in serious problems). I have the replacement server and array ready in a different network. I've been thinking about rsyncing the sh...
Your approach is fine, if you plan to disable writing to the array before second rsync. That will (should) lead to a clean copy. Depending on circumstances, to minimize downtime do a triple rsync: rsync the filesystems while the source server is running as-is. This will take some time and get you rough copy, possibly w...
0
0
995
2015-10-11T20:06:59.900
infrastructure
serverfault.com
46,551
predicting loan default based on transaction history
i have a training dataset with 25,000 different customers, each with a transaction history of 50-500 bank transactions (both deposits and withdrawals, the exact # varies across customers). each customer was given a loan (from 500-2000$), and they either defaulted or did not default on the loan (this information is give...
Some context: The problem you are trying to solve can be defined as a classification problem. Where based on features $x^1...x^n$ we are trying to predict if $y$ is class $default$ or class $no$ $default$ . There are several algorithms that are able to learn the different functions between the features and the class, f...
1
1
574
2019-03-03T02:15:50.043
api_errors
datascience.stackexchange.com
295,080
Performance monitoring
I need to get the performance metrics like CPU usage in sql server using sql query and store it in a history table , where I will keep on adding the old records . And a current table to maintain the present data .How can I do that , as I am working on the azure sql db currently I can't make use of sql server job agent ...
You have a couple of choices here: I know this does not let you save it in a table, but you have access to 30 days of CPU usage at any point without you doing anything. This is via matrics. To collect the data from the two System dynamic management views I mentioned below, you can set up a collection at a set interval ...
-1
1
200
2021-06-30T22:38:41.943
database_errors
dba.stackexchange.com
573,893
Put another hdd in ubuntu server 10
I am using Ubuntu server 10 for LAMP and hosting sites. I installed the server without a GUI, and what I want to do is to add a second HDD for some backup. I attached the HDD but the problem is I don't know now how to mount it without a GUI.
Use fdisk to partition the drive. use mkfs to create a filesystem. use mount to mount it.
-2
1
75
2014-02-07T08:42:59.400
database_errors
serverfault.com
179,773
Is true multithreading really necessary?
So yeah, I'm creating a programming language. And the language allows multiple threads. But, all threads are synchronized with a global interpreter lock, which means only one thread is allowed to execute at a time. The only way to get the threads to switch off is to explicitly tell the current thread to wait, which all...
You say parallelism is handled by multiple processes, but I would beg to differ. In-process parallelism is, depending on the program, much simpler and faster, due to (universal and by-default) shared memory. When you don't have shared memory, you need a lot of extra engineering (like a common server process, with messa...
4
7
1,484
2012-12-17T20:23:36.000
api_errors
softwareengineering.stackexchange.com
165,606
Saving a modified InfoPath form to its form library
Within our corporate SharePoint 2007 site, there is a particular form library that contains 10 separate files. 9 of these are either Excel, Word, or PowerPoint files and one of these is an InfoPath 2007 form that serves as a report. After noticing an error within this InfoPath form, I saved this InfoPath form to my loc...
If you have the form open in Infopath, go to the Design checker and click on Change Compatibility Settings. Look in the Security and Trust section on the left, and make sure it is set to to Automatically Detect Security Level. I had this same issue, and it was manually set to another option. While you're in there, what...
0
0
486
2010-07-30T13:43:37.913
infrastructure
serverfault.com
1,006,724
Shared VPC google cloud insuficient permission
I'm trying to implement shared VPC, but it always returns the message "You don't have the permissions to perform the action on the selected resource." I own the project and the option "Compute Shared VPC Admin" does not appear in IAM. Could someone help, please.
"Compute Shared VPC Admin" role can be granted only at the organization level by organization admin Refer to this documentation
0
0
142
2020-03-12T19:57:02.237
infrastructure
serverfault.com
231,957
Index Optimization for Datetime comparing day of week and hour
I have a table of sensor observations with [CODE] , and to fill in gaps with data we have models by day of week and hour of day: [CODE] . To gap fill missing values, we would join these two tables through a crossover table that is: [CODE] If our observations table is massive, what would be an optimal way of indexing it...
Per Verace's suggestion I created a test table with 10M records. The TLDR: Indexes on datetime functions need to be explicit, any conversion of that datetime column for joining/filtering will not be served by an index. [CODE] Table size is 1.7 GB. All of the indexes are 214MB. From my tests the index on [CODE] is never...
1
2
1,751
2019-03-12T20:03:24.600
airflow_errors
dba.stackexchange.com
1,121,534
Injected packets using libPCAP library is not seen from python socket sniffer and netcat
I am using libpcap to transmit packets between two VETH pairs {veth1, veth1peer} and {veth2, veth2peer} and using each others peer to inject packets upwards to veth1 or veth2 and disabled "rp-filter" and enabled "accept_local" feature. I have a python UDP server that listens on veth2 IP address, but when I send UDP pac...
The problem was that VETH interfaces are using checksum offload by default so the forwarded packets had a bad checksum and were ignored by the kernel. Running ethtool --offload IFACE rx off tx off on the main interfaces{VETH1, VETH2} fixed it.
0
0
183
2023-01-30T20:04:59.253
infrastructure
serverfault.com
591,728
How should I configure nGinx to serve a simple PHP app (routing problems)?
I'm trying to configure my nGinx server (on a Debian Wheezy box) to serve my small PHP app. I have problems with routing. What do I need: / - no PHP allowed, just .html files /api - everything goes to /api/index.php, including /api/method1, /api/method2, etc. That's all. What do I have right now: [CODE] What works: / g...
Your config could be simplified. [CODE] First, just serve static file is default nginx behavior, there is no need to have some special block for it. [CODE] directive is enough to make nginx search for [CODE] . To map any request to [CODE] to [CODE] you should use full path as [CODE] construct path to file from [CODE] d...
1
3
1,167
2014-04-28T10:11:33.663
infrastructure
serverfault.com
69,836
Point multiple IP addresses to a single host name
In Windows System, there is this file at [CODE] . This file allows us to default a specific IP address to a host name. The issue now is whether I can set multiple IP addresses to a host name. For example, can I do something like this: [CODE] And expect that the browser can resolve to both of them, see which one will wo...
Normally you would not uses hosts to do this, but your DNS. Most DNS will provide what's called a "Round Robin" if you assign multiple A records to the one name in the zone. What it would do then, is the first request comes through would receive [CODE] , the next would receive [CODE] , so on and so forth. However, by d...
41
36
266,570
2009-09-30T05:54:16.560
infrastructure
serverfault.com
106,950
Nginx load balancing and maintaining URLs
I'm trying to use nginx as a load balancer, and it's working great. One problem, though. The load balancing box is at 123.123.123.123, and the backend box is 456.456.456.456. So I have this config: [CODE] This works great. I hit 123.123.123.123 in my browser, and the page comes up. But now the URL in the browser says h...
As it turns out, this was a situation where my app was set up to initially redirect, and that was causing the issue.
2
1
673
2010-01-27T20:44:36.057
infrastructure
serverfault.com
540,176
Bad SAML Request
I'm trying to setup a web SAML login on Domino server. I received the SAML 2.0 metadata XML file from the identity provider which is Oracle Identity Federation 11g. I imported the metadata to a IdP configuration document and got the first phase of the login to work so that the user is redirected to IdP server for login...
We had same error, found that the x509 cert in the IdP Config wasn't imported or copied in correctly. We copied directly out of XML file into notepad, removed any spaces or line breaks and pasted back into the config file. Restart HTTP and it resolved.
1
2
7,861
2013-09-19T12:42:18.787
database_errors
serverfault.com
979,203
How to redirect all http to https in nginx
It's my first day with Nginx, I found code samples that do not work for me. This is my conf file: [CODE] if gives me this log: [CODE] I'm surprized since I saw many examples on the web with many server{} confs. Thanks for your help
From comment: You have multiple configs for [CODE] . Either disable the default site, or change your server directives. I assume you have [CODE] set in [CODE] and in [CODE] , so nginx detects a duplicate.
1
0
95
2019-08-14T08:22:51.310
infrastructure
serverfault.com
266,771
Port forwarding to webserver - still redirects to local IP address
I'm extremely new at unix/linux so please bear that in mind in your answer. I am running an apache server on a Fedora box. I have a static IP and have set up port forwarding through my router/modem - I have opened up port 80, among others, to forward to my Fedora box. If, from an outside connection, I type my static IP...
You probably just need to adjust the UseCanonicalName and ServerName settings in your configuration. Either in your httpd.conf file, or in your virtual host definition file. I believe you want to have [CODE]
1
0
483
2011-05-05T21:05:23.280
infrastructure
serverfault.com
106,860
Finding attributes that make up dense clusters of fraudulent transactions
I have data about purchases customers made in my website. Some users later decline the purchase, a scenario I'd like to avoid. I have lots of data about the purchases made in my website, so I'd like to find clusters of users who share similar attributes, and are dense in "decliners" type of users. I have labelled data ...
Clustering is typically defined as finding groups of related things when there are not labels. In your case, you have labeled data (i.e., declined or not declined). A more useful way to frame your problem is as feature importance. Which features of users are most important in being associated with the declined label?
1
0
28
2022-01-08T20:45:40.097
data_quality
datascience.stackexchange.com
937,898
Can't configure Dante
Config version: 1.4.x I get "Connection refused" after default 30 seconds in curl and "Connection Failed" immediately in FoxyProxy. Dante config: [CODE] Network interfaces on the server: [CODE] Working OpenVPN config for example of the network: [CODE]
Solution: [CODE]
0
1
1,149
2018-10-30T15:41:00.107
api_errors
serverfault.com
389,316
Algorithm for Parking Space Allocator System
In my office, there are 200 employees who come to the office in their car. But my parking space has slots for parking 160 cars only. Now I want to design and develop an application that issues parking tickets to employees by doing a fair allocation of parking slots. For solving this problem, I was thinking of designing...
It's easier to understand this system if you change the way the color codes are explained: [CODE] Once you see that, this is actually not a complicated problem: Employees can apply for a leave, in such cases, his assigned ticket will be unused and parking slot will remain empty - not a very efficient use of the resourc...
3
5
922
2019-03-27T17:59:59.550
api_errors
softwareengineering.stackexchange.com
751,144
Why is my nginx reverse-proxy not caching anything?
I'm following this sample configuration from the Nginx docx. Reverse-proxying works fine except that it isn't caching results. Here is my nginx.conf: [CODE] Folder permissions are OK as far as I can tell: [CODE]
I'll post this as an answer because it's easier to format. Try this [CODE]
6
9
6,257
2016-01-22T20:05:09.383
infrastructure
serverfault.com
669,564
Deploy Microsoft Work Folders on a single machine
As IT unit of a small company, we are investigating the shift from traditional VPN to Work Folders. The roles are set up and the shares created successfully. In fact internally the whole systems works perfect, but it does not allow connections from outside the network. (When I connect remotely through VPN it works as w...
I just remembered something I've read half a year ago, when I did some reading on work folders as well. The guest account on the AD had to be disabled. I found connection attempts in the log where user 'Guest' was not found on the AD Server and work folders access was denied. I found this strange and logical at the sam...
2
1
467
2015-02-18T12:03:34.347
infrastructure
serverfault.com
233,606
Is it possible to use variables in MySQL schema definition?
I need to do something like this: [CODE] REFERENCES @DBNAME. [CODE] - is the part I'm interested in. Is it possible to somehow parametrize DB name in schema definition? Thanks!
You cannot use variables for object names. What you can do is compose the statement string dynamically and [CODE] then [CODE] it. [CODE]
0
3
968
2019-03-31T14:15:52.507
database_errors
dba.stackexchange.com
36,686
Dutch characters in DB2 problem
Ok, first of all, I have really limited knowledge about databases. Problem that I have is next: I inserted few rows with data that contains Dutch characters, such as names of different countries. Some countries have at the end of their names Dutch language special characters ë, or like Ukraine have two dots on i (Servi...
Well, the trick is that a database can only specify which "locale" it is used for at creation time. When you create a database you either specify what you want by specifying the codeset, territory and collation (example [CODE] ), or you let DB2 guess based on some system settings. You can check what yours is set to by ...
4
5
1,541
2013-03-14T13:08:43.077
warehouse_errors
dba.stackexchange.com
158,825
ERROR! MySQL is running but PID file could not be found - MariaDB 10.1 - CentOS 7 - Fresh VM
So I'm having a little trouble with a BRAND new VM I just created today to test a Galera Cluster. What I have done so far is... Download and install the latest CentOS 7 in a VM. Install open-vm-tools and configure SSH Install MariaDB Repo and install MariaDB 10.1 via [CODE] Now I get this error, but I am able to get to...
Seems the issue was how it is started. Using the following, all is well!! [CODE] So don't use [CODE] as stated in the install guide... https://mariadb.com/kb/en/mariadb/yum/
1
0
4,238
2016-12-21T16:36:53.480
database_errors
dba.stackexchange.com
947,861
How to install a second Grafana instance to run alongside an existing Grafana instance?
I have a CentOS 7.6.1810 server running Grafana v4.3.2. My Grafana dashboards require templating with MySQL query variables, which are not supported until Grafana v4.5.0 (refer to https://github.com/grafana/grafana/issues/9137 , https://stackoverflow.com/questions/46042723/unable-to-setup-grafana-template-with-mysql , ...
I would try: Make a snapshot of Grafana v4.3.2 Run that snapshot Tried to upgrade Grafana in-place Check whether some dashboard is broken. Running more than one grafana with the same data source is feasible as long as the firewall of data source allows it.
1
1
1,118
2019-01-07T06:34:34.193
database_errors
serverfault.com
599,736
Is there a max length to java_opts arguments on a tomcat process
We have a tomcat startup script with a java_opts that contains a fairly lengthy (around 14 hosts) entry for -Dhttp.nonProxyHosts, I've noticed that although tomcat appears to start properly, entries at the end will still proxy. When moving the entries to the start of the list, they bypass the proxy settings as you woul...
Do you use a single -Dhttp.nonProxyHosts with many hosts or many such options for each host?
0
0
529
2014-05-30T15:16:11.980
infrastructure
serverfault.com
903,757
Use of default SSL cert/key on MySQL 5.7?
I've a Percona MySQL 5.7 ( 5.7.21-20-log) installed using [CODE] , when I connect it using the root account and check the ssl status [CODE] So by default, SSL is being used. However, when I use the full command [CODE] It return error [CODE]
Your problem is using server certificate and key on the client side. [CODE] As documented in 6.4.2 Command Options for Encrypted Connections (emphasis is mine): [CODE] The path name of the SSL public key certificate file in PEM format. On the client side, this is the client public key certificate . On the server side, ...
6
5
1,845
2018-03-21T10:35:36.773
database_errors
serverfault.com
739,344
What happens with the shared permisions on file server after reinstalling system partition
I was wondering what would happen if i need to reinstall Windows 2008 R2 which is set as file server joined to second computer which is set as domain controller. The file server have second drive d: on which are files setup based on permission from domain controller active directory. If i reinstall file server, then jo...
That article should be sufficient to restore the share permissions. If you are rejoining to the same domain, the file/directory permissions should not require any changes if you use builtin/well-known security principals or domain groups/users for permissions. If you use custom local groups/users on the file server to ...
1
2
363
2015-11-27T13:47:51.437
infrastructure
serverfault.com
498,359
What is the correct way to configure AD replication in a hub-spoke design
Our AD is a basic hub/spoke design. We have a headquarters in London, and remote offices. The remote offices are connected via VPN to HQ. We have 3 domain controllers at HQ, and one in each remote office. We have had Windows 2000, Windows 2003 and Windows 2008 R2 domain controllers in place. Over the years, any automat...
This assumes that you don't want your remote sites authenticating/replicating to each other and that all spoke AD traffic must go through the hub. Create one site link for each remote site to the hub site. Only put one remote site plus the hub in each site link. Force replication across your domain. Undefine/delete man...
4
5
22,335
2013-04-11T11:31:14.947
database_errors
serverfault.com
76,811
Does stronger regularization always improve performance on testing set?
I am using the Sklearn logistic regression function to do a binary classification task on texts. I did the task using three different inputs: Bag-Of-Words, TF-IDF, Doc2vec embeddings. The question is that for the Bag-Of-Words, stronger regularization improves the performance on testing set. However, for TF-IDF and Doc2...
Title question The answer to the title question is a pretty clear-cut "no." For any fixed dataset, taking sufficiently strong regularization will make the linear model essentially constant, presumably not the best model. Like most other things, there's a bias-variance tradeoff: increasing regularization weakens the mod...
0
1
439
2020-06-28T16:58:15.793
data_quality
datascience.stackexchange.com
241,250
Using packages (gems, eggs, etc.) to create decoupled architectures
The main issue Seeing the good support most modern programming platforms have for package management (think [CODE] , [CODE] , [CODE] , etc), does it make sense to design an application or system be composed of internally developed packages, so as to promote and create a loosely coupled architecture? Example An example ...
I've been involved in projects like this twice now (both using nuget with .NET), and I would say that on balance it is a good idea. But your mileage may vary. Don't think for a minute that it's a panacea, that it's going to solve all of your problems without causing new ones. Release management will gain a whole new la...
10
12
300
2014-05-27T18:12:40.923
api_errors
softwareengineering.stackexchange.com
810,243
SSH Tunnel to Virtual Machine connected to VPN
I have a VM running Windows Server 2012 that is used by our dev team to test the application they are working on. Every developer has its own VM and this VM must be connected to a VPN to access some services (like TFS). The VM have a SSH service running that the developers use to control the application server app stat...
Plink might be easier to configure than PuTTY. [CODE] You may use [CODE] or [CODE] options to skip inputting password, and run [CODE] directly in cmd to check other options. Than the access to [CODE] will be forwarded to [CODE] . PS: If TFSServerOverVPN is a virtual host, you might need to bind 127.0.0.1 to TFSServerOv...
0
1
2,873
2016-10-20T13:41:47.103
hadoop_errors
serverfault.com
685,647
Route traffic through private IP for only certain hosts - CentOS 6.6
I am having a weird problem which I cant figure out - so I was hoping someone here could give me a hand. First off the end goal is that a specific server in my network runs an IPSEC connection to another company and I want all other servers to route traffic for the IP on that network through this single server. Server ...
This is resolved! I was missing the following rule in my IPTables ruleset: [CODE]
0
0
1,082
2015-04-26T09:35:32.683
api_errors
serverfault.com
625,255
File is different when read from NFS server
So I have a backup server we've been using for some time, it's a FreeBSD server running zfs and serving it over NFS. The export is simple: [CODE] . If relevant, that was configured through zfs: [CODE] It's been running fine and we've even restored these backups. Today I discovered purely by accident, that files read fr...
Ok so it turns out this is a bug with the bxe driver in FreeBSD 10.0-Release specifically The bxe(4) driver can cause packet corruption when TSO (TCP Segmentation Offload) feature is enabled. This feature is enabled by default and can be disabled by using a -tso parameter of ifconfig(8). It can be specified in rc.conf(...
5
3
1,335
2014-08-31T03:19:28.027
data_quality
serverfault.com
137,466
Mongodb database design
I'm planning to implement this schema in Mongodb, I have been doing some readings about schema design, and the notion was whenever you structure your data like a relational database you must be doing something wrong. My questions: what should I do when collection size gets larger than 16MB limit? app_log in server_log ...
16 MB is the maximum size of single document, e.g. one user. The size of the collection is limit by maximum database only. https://docs.mongodb.com/manual/reference/limits/ So logging to the database should be no problem. In my opinion using sensible indizes including _id is superior to a heap of collections. It is not...
0
1
837
2016-05-04T08:07:59.450
database_errors
dba.stackexchange.com
47,964
ORA-01031 while creating a view as DBA
I'm trying to create a view under my DBA schema on Oracle XE. I already did that on the productive database and it worked with a user with a lot lesser privileges than the DBA role. But now I always get [CODE] errors. Here is my query: [CODE] And this is the output I get: [CODE] I even tried it with the SYS account, bu...
create table usr_t_user_reg (username varchar2(30), db_instance varchar2(30), primary key(username,db_instance) ) / CREATE OR REPLACE VIEW usr_v_user_not_reg AS SELECT username "User", db_instance "Instance", ( CASE WHEN username IN ( SELECT username FROM sys.dba_users MINUS SELECT username FROM usr_t_user_reg ) THEN '...
0
5
28,443
2013-08-12T08:45:41.333
database_errors
dba.stackexchange.com