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
739,086
SSIS 2014 - map NFS
We are migrating SSIS from SQL 2008 to SQL2014. Old OS: WINDOWS 2008 R2 SP1 New OS: WINDOWS 2012 R2 I use the [CODE] to map an NFS share to a drive. Executable: C:\Windows\System32\net.exe Arguments: use Q: :/vol/ When I execute this command in a normal CMD (64bit) then it works. When I run it from SSIS then it fails w...
I have found a workaround. In the SSIS "Execute Process Task": Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Arguments: C:\path\to\script\CreateMapping.ps1 In the "CreateMapping.ps1": [CODE] What it actually does: Run the script from SSIS in a powershell enviroment. Open a new Powershell session...
0
0
227
2015-11-26T08:03:18.393
infrastructure
serverfault.com
33,009
Backup Only Database Schema Everynight
I have an instance with 15 databases on SQL Server 2012. I will set up to backup system which will work every night. I want to backup only the schema because several databases are very big. I haven't found any solution for this problem. How can I backup only the schema with a job?
You can use a 3rd party tool like Red-Gate SQL Compare . It has a command-line interface that you can easily invoke using [CODE] or PowerShell (and you can do these from a SQL Server job, but you don't necessarily need to saddle SQL Server Agent with this task - you can just as easily do it using Windows scheduled task...
4
5
2,072
2013-01-16T10:23:29.180
database_errors
dba.stackexchange.com
121,740
Do you need Table Lock when you have multiple OLE DB connections inserting to the same table?
SSIS is not really my forte. I noticed you have a table lock option on OLE DB destinations where the entire table becomes locked in what I assume is during the transaction of inserting data. What happens if you have a flat file data source with a conditional split that is parsing out data into 5 or more OLE DB destinat...
The table lock option facilitates minimal logging, reducing transaction log space requirements under certain circumstances. Below are relevant excerpts from the Prerequisites for Minimal Logging topic in the SQL Server Books Online. The table is not being replicated. Table locking is specified (using TABLOCK). Table is...
0
1
1,932
2015-11-20T22:32:03.577
warehouse_errors
dba.stackexchange.com
401,186
rdiff-backup not working, but rsync is,Mandriva for both OS
I have two servers, both Mandriva 2010.2, have exact same version of rdiff-backup(1.3.3) and the exact same rsync. I used to use rdiff-backup quite a bit back in debian, but I've moved over to a different OS since then. When i try and use rdiff-backup now i just get plenty of errors. But connecting via rsync is working...
The problem is that your server is running bash as shell, instead of [CODE] (which would understand its [CODE] commands). The solution for me is either: Change remote-schema to include the command, i.e. [CODE] Set ssh forced command on the remote side to [CODE] (which is also a bit safer if you're using it in script).
2
0
641
2012-06-22T05:25:17.987
database_errors
serverfault.com
405,421
Windows VPN not authenticating from ADSL to Wireless link
I have a normal windows VPN on a computer connecting to a 196.201.x.x/24 IP. If this VPN tries to connect from any address in the 41.x.x.x range it cant get there. The server is a normal windows 2008 server, running exchange with a PPPoE IP natted to a public IP on the public gateway of the wireless network as the serv...
I'm assuming that you're using the PPTP VPN protocol here. I'm not sure if this will cause failures at the authentication stage, but check that the client has GRE connectivity to the server. GRE runs directly on IP (and not over TCP or UDP), and so it may be treated differently by the modem, or a certain telecommunicat...
0
1
388
2012-07-06T15:04:25.243
infrastructure
serverfault.com
215,819
MySQL Workbench Visual Explain not working with MariaDB 10.3.9
I recently installed MySQL Workbench 8.0.12 and MariaDB 10.3.9. I created my database and want to start fine tuning indexes and views. I can run a query with the EXPLAIN button and get the results in the tabular format (Tabular Explain). When I try to select "Visual Explain" from the dropdown menu, it switches back imm...
MySQL Workbench is a MySQL product for MySQL servers only. There are no guarantees that it works with other servers and you you may encounter non-working areas (like you described) or may not even be able to connect to such a foreign server.
4
2
1,605
2018-08-24T18:25:01.963
database_errors
dba.stackexchange.com
557,038
How to bind traffic of each NAT client to a external IP address?
I have a NAT router with 2 IP addresses, lets say [CODE] and [CODE] associated with the interfaces [CODE] and [CODE] respectively. I have two servers that connect to this NAT gateway through the interface [CODE] (OpenVPN clients), with the IPs [CODE] and [CODE] . I want them to impersonate each of the NAT router's IP a...
Okay I ended up figuring it out myself, aparently my issue was that this rule must be added before the [CODE] one. [CODE]
0
1
867
2013-11-24T00:18:33.040
infrastructure
serverfault.com
790,337
Cannot remove Apache2 Ubuntu Default Page
Already done: [CODE] and [CODE] So symlink successfully removed from sites-enabled directory. But i still can see that test page. What's wrong? Shouldn't i see an error instead?
The Apache code ( [CODE] , in particular) sets a default location of documents, which can be overwritten by the [CODE] directive . Depending on the installation, the Apache source code includes lines like the following: [CODE] Because a default installation will also generally include a default [CODE] (and also default...
3
2
14,244
2016-07-17T19:03:59.890
infrastructure
serverfault.com
885,870
Two certificate stores, two certificates, one host
I have an application (Cognos) which delivers web pages through two mechanisms: via IIS, and via a Java application. We need to enable SSL for both of these. IIS has been done. We are working on the Java applet now. The IIS cert was generated by creating a cert request in IIS, sending that to the CA. They returned a ce...
You will need to export both the key and certificate from IIS. You should be able to export this into a PKCS7 file. Use [CODE] to import this into your Java keystore. (It is also possible to use the PKCS7 file if you wish.) If IIS is delivering the applet, you don't need a server certificate for the applet. If you are ...
1
1
644
2017-11-29T22:39:28.860
bi_errors
serverfault.com
206,902
Cleanup of AG databases on secondaries nodes
Consider a scenario where you have an AG running across 3 nodes and your backups are being backed up locally. Each node have all the default jobs deployed and scheduled to run at same time. As the databases are part of the AG, backups are only being taken on the PRIMARY NODE. After failover to a different node, the bac...
The current design is that the stored procedure will decide if the database should be backed up. Only if the database should be backed up, it will go into the code that does the work (creates sub-directories, backup, verify, and cleanup). It could make sense that if you are running with @CleanupMode = 'BEFORE_BACKUP', ...
0
2
77
2018-05-16T13:52:29.827
database_errors
dba.stackexchange.com
819,830
CGI errors (Can't open perl script / Permission denied)
OS: CentOS 7 / Apache: 2.4 I'm upgrading machines and software, part of which has involved upgrading from Apache 2.2.x to Apache 2.4.x. A good portion of it works okay, inlcuding PHP scripts, and plain html files, but I'm having big problems trying to get Perl cgi scripts running. Temporarily, while troubleshooting, I ...
I've subsequently got this working by changing the file contexts back from httpd_sys_script_exec_t to httpd_sys_content_t with restorecon. No idea why this should work, as I'd have figured it should be the other way around.
0
1
2,417
2016-12-09T16:47:25.433
infrastructure
serverfault.com
1,060,981
Access URL in CompanyA from CompanyB with Two Way Transitive Trust and DNS
I'm trying to access CompanyAWebsite.CompanyA.com from CompanyB without having to type in the FQDN and vise versa. I thought this was the purpose of CNAMES in DNS but I must be doing something wrong. Domains have two-way transitive trust currently. Accessing http://CompanyAWebsite.CompanyA.com is successful, but access...
Add [CODE] to the DNS search suffix list for computers in Company B. Change the emails to use FQDN, which is a really good idea, regardless.
0
3
37
2021-04-20T18:16:24.830
infrastructure
serverfault.com
368,675
Auth log error : Is it a Hack?
I was just going through auth.log file, I found the following error. Can anybody tell is it a hack or just log of Bugzilla which I installed & throughing an error. [CODE]
This is a frequently asked question in Secure Debian guide. Here is some more info on the topic: See point 11.2.3 here Generally it could be a cron job. So - it is safe.
0
1
3,284
2012-03-12T04:23:13.137
infrastructure
serverfault.com
1,146,590
Ansible / YML code needed to Reset / Power Cycle a VMware VM
I have a file called "vcenter.yml" in my hosts folder which is used to authenticate to my vcenter and perform a dynamic inventory of this vcenter. I use this file to gather VM info and also to choe which Windows VM's I will be perfoming WINRM commands. Also, I have a sample playbook called "vmware_list_all_powered-on_w...
Is vm_name coming from vars.yml ? If not you can pass it in using key=value format e.g. [CODE] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#defining-variables-at-runtime You don't need vcenter.yml at all to pass in the name of the vm. If your goal was to dynamically execute it against...
1
0
126
2023-10-25T21:47:12.377
pipeline_ops
serverfault.com
28,574
'DecisionTreeClassifier' object has no attribute 'importances_'
I've this code in order to visualize the most important feature of each model: [CODE] Using RandomForestClassifier this code runs good but when I try it using Decison Trees classifier I get the following error: [CODE] Which attribute should I use see the most important feature of each model?
Do Checkout this Link To Visualise The Tree Itself [CODE] OR [CODE] OR [CODE] The Visualisation You Can Get Will be Whole Tree Itself.. To Display Feature Importances [CODE]
4
4
39,744
2018-03-03T19:47:23.473
data_quality
datascience.stackexchange.com
495,483
Join workstation to domain, short domain name or FQDN?
Bit of a sanity check required if you don't mind. When joining a Windows 8 machine to the domain should we use the short domain name 'domain' or the FQDN domain.local? I seem to recall that I have always used domain.local but wonder if this is still ok with windows 8? Reason for asking is that we are seeing various Ser...
NETBIOS name and FQDN will work, I'd imagine FQDN would be the "better" way of doing it, but they both use the same mechanism after it gets the IPs of the domain controllers.
1
3
1,999
2013-04-02T16:51:19.990
infrastructure
serverfault.com
123,045
How can I increase PHP memory limit in Plesk?
A client has given me a Plesk account to install his PHP app in, but the PHP memory limit is only 32M and I'd like to increase it. I tried to find this setting on the admin panel but couldn't :(
You may adjust that value via .htaccess file. [CODE]
0
2
22,371
2010-03-16T16:49:14.417
infrastructure
serverfault.com
13,279
Solution for in Time/Space Complexity challenge in Recommendation System?
I have a book Recommendation System project and have a huge data set of feature vectors. What is the best solution for in memory computation? I mean, the program should : calculate the cosine Similarity among Database Books be REAL TIME, because it's an interactive business site. I've already thought about big data ana...
Apache Spark is a great solution for such problems. But, first let's be clear about the definition of real time processing . It's the type of processing that must guarantee response within specified time which on an interactive business site is actually very low. You can read about those kind of specifications in this ...
3
2
1,229
2016-08-08T05:45:31.677
spark_errors
datascience.stackexchange.com
790,424
Nagios still send notifications for services during scheduled downtime
Three of my servers have a down time from 21:50 friday to 5:30 saturday. So I configured the following time period in timeperiod.cfg : [CODE] Then in the template.cfg file I create one for these 3 servers : [CODE] Finally on these 3 servers configuration I set : [CODE] But every friday at 22:00 I received plenty of mai...
First of all please note that *_period changes are not the same than a "scheduled downtime" in Nagios. Your problem is that you set a *_period only on the host, but not on the services. So your host check won't run and notify at the excluded times, but all the services will still run with the timeperiod from default.
0
2
1,436
2016-07-18T10:30:26.227
infrastructure
serverfault.com
262,944
How to do Test Driven Development
I have just 2+ years of experience in application development. In those two years my approach towards development was as following Analyze requirements Identity Core component/Objects, Required functions, Behavior, Process and their constraints Create classes, relation between them, constraints on objects behavior & st...
Am I doing it is right? If not what exactly I have to change It's hard to say just from that short description, but I suspect that, no, you are not doing it right. Note: I am not saying that what you are doing doesn't work or is in some way bad, but you are not doing TDD. The middle "D" means "Driven", the tests drive ...
18
22
3,577
2014-11-16T13:03:26.043
data_quality
softwareengineering.stackexchange.com
11,601
Outlier detection for unbalanced classes
I have to make a predictive model for predicting a boolean Won/Lost variable based on some other numeric data; and further find out the features of observations that have 'Won'. However, the number of 'Won's' in my dataset is 0.05%. I've tried both oversampling and downsampling, but it hasn't worked. Even if I take an ...
you need to distinguish between these cases: Data Imbalance Data Imbalance + Very few number of samples (minority class) Severe Data Imbalance + Very few number of samples (minority class) 20:60 vs. 10:20 vs. 100:1000 vs. 10:100 and these cases: similarities between different classes. wide variations within the same cl...
3
4
2,737
2016-05-05T12:54:28.863
data_quality
datascience.stackexchange.com
1,069,941
Established connection to StrongSwan VPN running on Ubuntu but can't connect to the internet
I have an issue connecting to the internet though I have established connection to IKEv2 VPN running on an Ubuntu VM on GCP. I have connected to the VPN from my Macbook. I followed this tutorial to install the VPN on an Ubuntu VM. The only difference from the tutorial is that I changed the domain names in the tutorial ...
From the GCP firewall side your configuration looks OK. However installing & configuring StrongSwan is not a simple process and there are many steps that determine wheather it's sucessfull or not. You can try to repeat the process on another VM (created one from scratch) and go over the steps again, but... If you can u...
1
1
438
2021-07-18T07:02:46.967
infrastructure
serverfault.com
242,248
virtualbox ftp hangs on list command
I have virtual box installed on a windows 7 64-bit computer, with Cent OS 5.5 as guest os. I want to be able to use ftp between those. I've installed vsftpd on the guest os, and the guest os uses a nat connection with the host os for internet. So far, I am able to connect to the guest os using ftp (in filezilla), but a...
Don't use NAT networking mode. Use Bridged and assign the VM a real IP address.
3
4
1,559
2011-03-02T14:50:18.497
infrastructure
serverfault.com
405,264
Static file serving only works if root is a subfolder under public
I am trying to serve static cache files using nginx. There are index.html files under the [CODE] directory. I tried the following configuration first, which doesn't work: [CODE] This give error: [CODE] I then tried [CODE] And to my surprise this works. Why is it that I can do the latter not the former( since they point...
The problem lies in the [CODE] directives in [CODE] blocks. These were only shown in the full config files (sorry to those who tried to solve this problem without that). Once I moved those to [CODE] block level it works fine. [CODE] is an indication that no content directives are available in the location block. In thi...
3
0
3,124
2012-07-06T02:44:40.887
infrastructure
serverfault.com
282,020
Connecting to the workplace LAN that is behind NAT (with Hamachi? any better idea?)
Situation: We, as the pioneering researchers(!), have a small network in our lab and the university has provided Internet access that let us access to privileged scientific resources like IEEE , ScienceDirect , etc. I am looking for a way to connect to lab network through Internet when we are away and have this privile...
Short answer: Ask your networking people if they accept it, otherwise stop right now. Long answer: It is highly likely that what you want to do is not covered by the contracts between your university and ScienceDirect et al. and could lead to the termination of those contracts and possible heavy penalties if you get un...
1
3
3,445
2011-06-19T23:25:44.917
infrastructure
serverfault.com
219,936
SQL server database backup - Destination Disk - Adding multiple files - does it duplicate or split backup into the files?
When we do full data backup (using SSMS UI), at the bottom of the window we have the option to specify the destination as Disk and also to add multiple files. My question is - does adding multiple files create duplicate copies of the full backup? or does it create a split backup - that is split the full backup into the...
Don't rely on the behaviour of SSMS, which has historically been buggy or poorly documented and also sometimes changes from version to version. The easiest way to be sure is to click the "script" button on top of the dialog and compare the output to the documentation. For example when you click the script button after ...
4
7
3,400
2018-10-12T08:22:51.793
data_quality
dba.stackexchange.com
187,834
Sub-Resource data should be embedded in Resource entity or duplicated in NoSQL document?
I have a scenario similar to as depicted below, [CODE] How do I model my MongoDb document/domain object? My initial options are, 1) Have a separate Post and Comment collections and handle updates/retrievals hide behind my Rest Resource with possible duplicate of Comment in both Post and Comment. 2) Have a single Docume...
I'll preface this with a disclaimer -- I have zero seat time in MongoDb. I do have a fair amount of seat time in some other document databases and I think these problems are similar. But there could be some mongo specific stuff I might miss here -- I have no idea what url templates are or how one would use them. With d...
2
1
660
2013-02-21T09:17:06.177
database_errors
softwareengineering.stackexchange.com
301,570
ubuntu port forwarding problem
I've installed and already configured php5, mysql server & client and apache 2 on my server ubuntu (vmware). also I've installed vsftpd. when i type [CODE] it shows server IP and client (windows) can show it with both http and ftp, but in local network, where people are connected wirelessly, i cannot show them my IP. w...
If I understood correctly, your ubuntu is running on a virtual machine inside a Windows host - in this case, you need to configure your Windows machine to forward all requests it gets on ports 20 and 21 (tcp) to the IP address of the virtual machine in order to have it visible for other computers on your lan. Use some ...
-1
0
230
2011-08-16T11:00:19.747
database_errors
serverfault.com
1,040,143
Linux DST - 25.10.2020 - change did not occur - old linux bug?
we have a strange problem on older linux kernel embedded devices that still uses /etc/tz and $TZ for setting the timezone and dst Our TZ variable has value: 'MET-1MEDT,M3.5.0,M10.5.0/03:00 And yesterday the time did not go BACK as it should. Was this somekind of bug in DATE on older linux releases ? How to remedy this ...
Same problem here. The zones are 'EET-2EEST,M3.5.0/3,M10.5.0/4'. It is a bug. Not sure exactly where. It will change to MET (or EET) on 01.11.2020. You can wait. This is our solution since making/testing/distributing a patch will take loger. You can set TZ to 'MET-1MEDT,M3.5.0,M10.4.0/03:00' to force MET time a week ea...
0
1
125
2020-10-26T20:57:37.147
infrastructure
serverfault.com
287,055
When was my indexes in the database fragmented?
I am trying to create a script that finds the index fragmentation, have it log to a table that I can query each time it runs. I need to fins out specifically what time my indexes in a table get fragmented. Below is the script I have so far to find the index fragmentation. What can I add to: find the time indexes are fr...
you can collect avg_fragmentation_in_percent information over time (e.g., every 5 minutes) and then you can see how and when fragmentation moves through the hours... In this way you create the table... [CODE] and then... [CODE]
-1
1
89
2021-03-15T15:38:28.647
warehouse_errors
dba.stackexchange.com
558,917
Extremely slow network and half duplex
I am having an extremely slow network netperf -H 11.x.x.21 [CODE] I dont understand why 11.x.x.21 is showing ethtool eth0 [CODE] Duplex: Half [CODE] tried ethtool -r eth0 but no change at all. so Manually changed by ethtool -s eth0 speed 1000 duplex full autoneg off But still no change in netperf ouptput ethtool -i eth...
First check that the setting on the device you connect to, do match (1000, autoneg, full-duplex). Second swap the cable. Third swap the port you are connecting to.
0
1
736
2013-12-03T14:09:03.550
infrastructure
serverfault.com
495,421
After update, Ubuntu booting into black screen (but ssh working)
I am running Ubuntu 12.04.2 LTS on HP ProLiant server. After recent update (using apt-get update and upgrade), it boots into black screen. BIOS Post screen still shows normally, but when the OS takes over the monitor, I get only black screen. It is working, I can connect to it through SSH from my windows notebook. At f...
I had the same problem a month ago. With Ubuntu 12.04. BIOS was displayed normally. On HP Proliant DL 3xx you have 2 VGA port. One on the front side and an other on the back side. I used the back side VGA port. And when I simply connected the cable on the front side instead of the back one, it worked. :)
2
1
7,366
2013-04-02T14:27:48.823
infrastructure
serverfault.com
608,806
SPF record for hostname of postfix instead for every sending domain
I am having a server reachable via [CODE] that has a postfix mailserver running with the hostname [CODE] . Because reverse DNS is only needed for mail purpose (afaik) I changed the reverse DNS entry of my server ip [CODE] to [CODE] , which works perfectly fine. I inserted this in a TXT entry in my domains DNS server: v...
Now I used http://www.brandonchecketts.com/emailtest.php for testing this configuration. It gives me gaia.server.com as the Helo Address and email1@server.com as the From Address. But then it looks up the SPF record for the From Address domain server.com. The default specification of SPF is check the sender domain part...
0
2
3,366
2014-06-29T18:53:12.443
infrastructure
serverfault.com
670,041
Stale NFS handle, but nothing is mounted
I have an nfs server (192.168.1.180) that is sharing a directory to my rapsberry pi (192.168.1.32). I have had this working before. Recently, the server went down - but not the client. After realizing what happened, I force-unmounted the client mountpoint and tried to remount. Now I'm getting a bunch of stale NFS file ...
After some more trial and error, I found that running [CODE] on the server actually worked. I was able to mount after that.
5
6
4,672
2015-02-20T02:02:49.877
infrastructure
serverfault.com
512,521
Zabbix - monitoring custom values
I have a Windows application (exposed through a WCF service) which needs to be monitored for some statistics (e.g. a graph of online users, a graph of pending documents etc.). I am new to Zabbix, and the documentation does not contain detailed tutorials, so I'm not sure how to implement this. As I understand, Zabbix do...
I presume you are reading or have read the Zabbix documentation . If you have not, you should keep it handy and refer to it. First, Zabbix passive checks can only read one value at a time, so for performance reasons I'd use a custom written active check with zabbix_sender if you are going to be sending a lot of data. z...
1
2
2,310
2013-06-01T14:10:37.500
pipeline_ops
serverfault.com
97,812
Difference beetween mysql 5.5 and 5.6
I have a big performance problem beetwen my local mysql instance and the server. I have this request : [CODE] The purpose of the request is to remove duplicate identified by the GROUP BY. I have already created key for the group by. In my local server (5.6.17) this request is about 15 seconds on 700 000 lines, on the s...
[CODE] the [CODE] subquery. (This will workaround the point that jynus brought up.) Your KEY [CODE] can be made somewhat better by adding [CODE] onto the end of it. This will change the EXPLAIN to say "Using index" because it will be a "covering index". But the real reason for 5.6 to be faster is ... The subquery is af...
3
1
234
2015-04-14T14:41:43.570
data_quality
dba.stackexchange.com
504,424
linux + delete duplicate IP's from file
what the best way to remove duplicate IP's from file I use the command: [CODE] but I am not sure if this is the best way , maybe I missed something? remark: my file contain two fields example of file [CODE]
I believe something as simple as 'sort -u ' should work for you [CODE] Check the 'sort' manpage for more info: [CODE]
0
5
2,788
2013-05-02T11:16:49.053
data_quality
serverfault.com
15,925
Request suggestion for a database between MySQL and Postgresql
We maintain a list of all the SAN Switch Ports that are either free or allocated to hosts. Currently, we enter the information on the company portal. But we need to move if off to a database because as of now we have about 2200 rows of data in it and each row has 10 columns. I got the number after extracting the data i...
PostgreSQL has a lot more modern SQL features compared to MySQL. Some of those featurese you might not find necessary right now but you'll deeply miss them once your application grows and your needs get more complex. Here are just some: No check constraints No deferrable constraints No windowing functions No common tab...
2
5
1,767
2012-04-01T10:08:43.810
data_quality
dba.stackexchange.com
591,040
MySQL database really slow with a really big table
I have a MySQL table with 150 million rows. Below is its data structure. Below is some of its data. Now, using PHP My Admin I ran the below command. [CODE] It says it took less than a second to run the query. Below is the proof. But actually, this took somewhat around 1 minute to display me the data!! So I ran a Java c...
Do you have any indexes on that table? Please post the output of: [CODE] Then post the output of the following set of commands: [CODE] This will tell you where MySQL hangs and then you will at least know where to begin. UPDATE: After watching your updated question, I don't know why MySQL can't find a suitable key to ru...
1
4
9,615
2014-04-24T11:12:34.877
database_errors
serverfault.com
379,006
RD Gateway reporting features/capabilities
We have just implemented RD Gateway for our own department in preparation for a push to the whole agency for telecommuting. It is all setup and working great, but I was trying to figure out how best to go about monitoring/reporting of users. I see third party software out there that will do it, but is there anything bu...
I wrote a script a while back which I'll include at the bottom of this post, but I need to say a few things about it first. It's not perfect. It's not even working well enough that I use it on a regular basis. I'm posting it because there are some things in there that will help you if you decide to roll your own soluti...
2
1
1,897
2012-04-12T21:57:08.513
pipeline_ops
serverfault.com
16,913
Should I be involved in my project's business side?
Before my current job, I was always involved in the technical aspects of a project like: architecture design performance security etc Now I'm team lead of a project that's a game on a web site (not mine) and somehow got involved in the business side of the project: what users expect ads showing in which pages of the si...
In many projects getting involved in the business side of things is not only inevitable, but good. If you understand the owner's reasons for wanting things you can better react to/suggest/repair/anticipate features you need to work on. Specifically to your final question: I have, and most of the time you loose more of ...
3
7
429
2010-11-04T20:27:14.503
api_errors
softwareengineering.stackexchange.com
580,685
What is the latest stable valid linux kernel for 3.8 version?
I want to know the latest stable kernel version of 3.8. Can any one help me out for this issue? I browsed for this issue but I didnt get the solution
Looking down ftp://ftp.kernel.org/pub/linux/kernel/v3.x , it seems to be 3.8.13. I've repeated my comment as an answer so I can warn you against this. I do have production systems which use hand-built kernels, because there are compelling business reasons to use them, but they are a huge maintenance overhead. I don't y...
-6
2
251
2014-03-08T09:00:17.420
infrastructure
serverfault.com
26,669
How does k fold cross validation work?
You split the data in k subsamples. Train it on k-1 subsamples, test it on kth subsample, record the performance with some error merric. Do it k times for each of the k subsamples, record the error each time. Then choose the model with the lowest error? Is it the same as ensemble technique?
Imagine you have 1500 labeled data points, and you want to estimate how well some classifier will work on new data. One (naive) method would be to train a model with all 1500 of your data points, and then check how many of the 1500 data points were classified correctly. This is not likely to give a good estimate of the...
1
3
1,684
2018-01-15T22:23:52.037
data_quality
datascience.stackexchange.com
76,421
Which between random forest or extra tree is best in a unbalance dataset?
I have an unbalanced dataset, with 3 classes, with 60% of class 1, 38% of class 2, and 2% of class 3. I don't want to generate more examples of class 3, and I cannot get more examples of class 3. The problem is that I need to choose between RandomForest, and ExtraTree (this is homework), and explain why I choose one of...
Both Random Forest Classifier and Extra Trees randomly sample the features at each split point, but because Random Forest is greedy it will try to find the optimal split point at each node whereas Extra trees selects the split point randomly. I would choose Random Forest because it's more likely to create a split point...
2
3
181
2020-06-21T20:08:29.803
data_quality
datascience.stackexchange.com
184,387
Run a query in loop, with the results of another query
First, I want to list databases with a specific table: [CODE] Then, I want to use the [CODE] inside a loop, to list all indexes of this table ( TB_INF_CLI ) of all these databases, with this query: [CODE] How can I do this without [CODE] ? with this solution, I can only list the dabatase i'm connected. I can't understa...
Although you said you do not like sp_msforeachdb because of multiple result sets, you can use a temp table to avoid it. The following code should work for you [CODE] Edit: I did not notice you have already had the similar solution as mine for sp_msforeachdb, so the next one is pure dynamic one [CODE]
1
1
65
2017-08-25T20:11:12.363
warehouse_errors
dba.stackexchange.com
444,759
How to configure Squish for Squid caching proxy?
Since this question is related to a server, also for Ubuntu, so I am a little bit confused about where to ask this question. I am currently using Squid 3.1, properly configured and working on a Ubuntu box. But I also have to install Squish for checking per user account usage. For Squish, I can go through squish source ...
This is link to squish FAQ. If you have not already seen it. It contains documentation about configuring squish with squid.
3
0
2,822
2012-11-02T12:34:20.313
infrastructure
serverfault.com
303,245
Private variables and the old FORTRAN common blocks
This is a question that perplexes me about object oriented programming. In some OOP languages (e.g. C++) a member function can access private variables of the class without restriction. That means one can define methods that take no arguments and change the private variables. Isn't this considered bad programming pract...
There are a few important differences between private members of a class and global variables. Global variables are accessible by any part of the code, as long as the author of the code knows the name of the global variable. Private members are only accessible to member functions of the same class. Furthermore, in most...
2
3
537
2015-11-22T05:15:32.533
api_errors
softwareengineering.stackexchange.com
393,027
How do you alleviate stale data in a multi-user web application?
Displayed data can be changed in the underlying database by any user. How do you show the change to all the other users? For instance, I have database tables for building and associated rooms. Any user can bring up the lists in their browser and edit. So if user A changes the capacity of room 123 in building X from 30 ...
There are two issues here: You don't want a overwrite changes made by one user with changes and old data from another user. You don't want users viewing and making decision based on old data. The first issue is crucial and can be addressed without dealing with 2. What I would recommend here is generally called 'optimis...
1
6
1,121
2019-06-07T14:48:18.037
api_errors
softwareengineering.stackexchange.com
72,846
Shouldn't training and validation loss be approximate before the first epoch is finished?
I'm having this burning question in my head, and I couldn't find the answer anywhere. During training, at least in Keras, the training loss is computed on the current batch, so the weights can be updated. So, at least at the first epoch, every batch loss is computed before the model actually learns from that particular...
Is your batch size the length of the full dataset? If you have $N$ samples, and feed in mini-batches of size $k , then batch losses are computed and the model's weights are updated with every $k$ samples. By the end of the first epoch, there may already have been significantly many updates (learning) from the training ...
1
1
632
2020-04-23T09:48:48.873
data_quality
datascience.stackexchange.com
354,410
Dovecot, maildir on Windows 2008r2 NFS share
I'm really banging my head on this one. I have a CentOS 6.1 running postfix/dovecot accessing a Windows 2008R2sp1 NFS share. In a test where the Windows server is a stand-alone file server, I can process email no problem. Once I try to do the same in a CLUSTERED 2008r2sp1 file server all that dovecot seems to be able t...
Read the error message again. It says "euid is not dir owner" which means "the user with the id 5000 is not the owner of the directory". Correct that. Authentication is not the problem here. Authorization is. On the other hand: Don't do NFS that way with Dovecot! See http://wiki2.dovecot.org/NFS for details. And then N...
0
2
674
2012-01-27T21:18:59.733
api_errors
serverfault.com
133,048
C programming in Windows 7
Which is the best book and what are the best tools for C programming in Windows 7? Would using C in any way hinder me when it comes to using the Windows API as opposed to using C++ or C#? I would like to use C, because it seems to me that object-oriented programming is bad for performance and the abstraction seems only...
Given that the entire Win 32 API is exposed primarily as C functions, there' no hinderance to using C, other than maybe the lack of libraries. The best book to start with is probably still Programming Windows by Charles Petzold. It's showing its age, but the basics haven't changed, and all the new stuff can be learned ...
0
3
4,287
2012-02-02T20:19:06.973
api_errors
softwareengineering.stackexchange.com
94,778
Multiple Selects With One Column Encrypted
I am trying to do two select statements on the same table. However I get errors. The reason for this query is one of the columns is 256 bit CRC encrypted. Here is my query: [CODE] This query throws this error: [CODE] Both of these selects by themselves work fine. However I need to figure out how to select all of the co...
I don't believe the issue is concerning the encryption. You are doing two sub-queries either of which could contain multiple rows, hence the error. If both source tables are the same, you can re-write as: - [CODE]
0
0
212
2015-03-09T15:22:06.357
warehouse_errors
dba.stackexchange.com
233,722
SQL Server expensive nested loops join and lazy table spool
I am trying to tune the below query which takes 15-16 seconds no matter what value is passed in as a parameter, the query is: [CODE] I have updated the statistics for all the tables touched by the query (excluding the [CODE] table which is quite big at ~ [CODE] ) and have tried re-factoring the query using a [CODE] but...
I would try removing the [CODE] clause in the join between [CODE] and [CODE] You could do that with [CODE] [CODE] The reason being that the table spool is feeding the [CODE] operator And on this nested loops operator is the [CODE] predicate. Filtering out until we have 9 rows remaining. Changing the [CODE] to a [CODE] ...
4
5
1,803
2019-04-02T08:05:16.630
database_errors
dba.stackexchange.com
550,673
ESXi standalone host cannot power on any virtual machines
I have a standalone VMWare ESXi host on ESXi 5.1. It currently has a handful of VMs powered on, and they are running fine. If I try to power on any other VM - any VM at all - I am receiving the following message: Power On virtual machine:A general system error occurred: The virtual machine could not start I have been t...
There are a few steps to check... but the first thing to try is a restart of the management agents. Gain SSH access to your standalone host and run: [CODE] at the prompt.
8
9
4,150
2013-11-04T21:23:56.807
infrastructure
serverfault.com
30,092
Displays error while select radio button in selenium
I'm writing testcases to select 7 radio buttons. While select the radio button it displays run time error. I have tried with below code : [CODE] Below is error snap:
As I understand from this stack trace it is issue of [CODE] . For this exception, following problem : Page is not loaded properly. So you need to wait for page and all component to load. Here is the code : [CODE] Web Element is not on visible screen or Visible area: Scroll to that element and perform click operation So...
0
1
164
2017-10-14T09:19:29.833
data_quality
sqa.stackexchange.com
495,858
selinux avc: denied issue
I just setup a web hosting server with selinux in permissive mode, meaning it's unsecured but writing issues to the message log file. Once I have fixed all the avc: denied errors, I will put the server in 'enforce' mode. But here's the question. In /var/log/messages, I have the following error: [CODE] Now, how do I log...
It looks as though you want FTP to be able to be used for normal users (who have content in /home). There exists a boolean to resolve this problem. You can work this out doing the following.. [CODE] Which produces: [CODE] This tells you which booleans control this behaviour and what they do, you should enable the boole...
4
7
12,743
2013-04-03T18:46:03.817
infrastructure
serverfault.com
849,153
Why won't this NAT rule work?
I need to make a NAT rule to allow a user to access their workstation from networks outside of our own. I have added the following line to my router's configuration file (it's a Cisco 2911), which specifies the internal IP and port as well as the external IP and port that I'd like the system to be accessible at; [CODE]...
For your firewall rule, the destination port is not 55512. You should also always avoid [CODE] rules. I believe you should have something similar to [CODE]
0
0
79
2017-05-09T20:51:45.097
infrastructure
serverfault.com
288,754
help in configuration of mysql 5.5
i am trying to install mysql 5.5 in my windows 7 32bit i have antivirus quickheal with a firewall my problem is i am not able to configure the mysql properly this all error which i am facing can anyone help me out with this issue please
The first screenshot said that the installer must have been run with administrative privileges. Please logon as administrator and turn off your firewall, then reinstall mysql.
0
0
49
2011-07-10T09:25:44.973
database_errors
serverfault.com
951,919
Runlevel pattern for systemd
Suppose I have two different "runlevels" setup via "targets" in [CODE] - [CODE] (a minimum bootstrap set of services enabled) and [CODE] (run everything). Right now I do this when I want to switch from "before" to "after": [CODE] How can I get [CODE] , [CODE] , [CODE] , and [CODE] added to [CODE] when they are installe...
This is suggested in the systemctl man page: [CODE] The man page states: [CODE]
1
2
48
2019-02-01T16:15:25.247
infrastructure
serverfault.com
218,812
Check all enabled trace events
Recently on a database I enabled trace for event [CODE] using the below statement in order to trace Oracle error [CODE] : Invalidated cursor. [CODE] After sometime the error did occur but we could not find any trace file for that event. I am suspecting the tracing got disabled after instance restart. Is there any way t...
I got my answer from the below link: generate/analyze trace for error 1461 One may know by using the following statements in sqlplus: [CODE] This did the magic :)
1
2
4,847
2018-09-28T12:34:04.887
database_errors
dba.stackexchange.com
255,565
Apache authentication inside a WordPress install
I am currently running into an issue with trying to password protect a directory that is sitting inside a directory that's running WordPress. This is for a directory called "admin" that handles a few things outside of WP. In my WordPress .htaccess file, I have set a rule to ignore this directory. [CODE] When I go to my...
Try closing your browser and then trying to connect. You may have cached credentials that are being used. If you have multiple secured directories with different passwords, use different values for the [CODE] . EDIT: Try moving the Require outside the Limit statement. I always group the Auth definitions with the Requir...
2
0
2,287
2011-04-04T18:03:56.083
api_errors
serverfault.com
1,091,517
Exchange 2010 Minimal Hybrid in place : Migrate or Decom?
I'm trying to understand the best approach with an Exchange 2010 Server with a minimal hybrid configuration. All is migrated to the cloud, the current Exchange 2010 is not in prod, but some mailboxe still need to be adjusted from the Exchange 2010 (like the Enable Archive Mailboxe attribute). Should I just migrate to 2...
Now your environment is exchange 2010 minimal hybrid? We could know the pre-requisites for minimal hybrid: Use minimal hybrid to migrate emails if you: -Are running at least one Exchange 2010, Exchange 2013, and/or Exchange 2016 server on-premises. -Plan to move to Exchange Online over a course of few weeks or less. -D...
0
0
168
2022-01-28T20:45:17.430
hadoop_errors
serverfault.com
109,653
Should there be separate database schemas for each developer or should there be just one that all developers share?
During development, should developers each have their own copy of the database to work on ? Or should there be a common shared development database ? The former will give developers more flexibility. For ex., they can run their own regression tests during development and unit testing without worrying about corrupting t...
The right answer is probably "both". This fits into the production/staging/development separation used in many development cycles. Development/testing servers are available, as needed, to developers so that they can design new features and do regression testing with total freedom and impunity; nothing can break so bad ...
6
10
1,986
2011-09-21T01:57:45.003
data_quality
softwareengineering.stackexchange.com
35,015
Log all errors in queries
I have a Microsoft SQL Server 2008 R2 database. I have some applications in different programming languages. Some of them are legacy and I would not like to modify them. Is there a way to log at server level all query errors, regardless of the application causing it? I would like to know, for each error, the query caus...
If you are just looking to log this information, you can set up an Extended Events session and capture the [CODE] event. Here is an example: [CODE] To test this out, here is a test error with [CODE] : [CODE] Then by looking at the XE log through the sys.fn_xe_file_target_read_file system function, you will be able to s...
6
9
12,320
2013-02-19T11:41:35.173
database_errors
dba.stackexchange.com
184,243
.htaccess being hacked repeatedly
About 4 or 5 days ago, a client came back to me saying that their site was being redirected to some other suspicious looking website from Google, Yahoo, etc., but it was working fine when the user enters the site URL in the browser address bar directly. I tried contacting my hosting provider, but they were little to no...
I found the roaches ! I did everything, including changing FTP password, hosting panel password, (painfully) wiping the whole 2GB and going through uploading it all back up, and changing database password. They still got in. The FTP logs showed nothing but my own actions. On top of that, the [CODE] file's last-modified...
6
6
8,688
2010-09-24T08:43:23.893
data_quality
serverfault.com
291,465
Update end date by adding duration to start date in derby database
I created table using Derby database. [CODE] I attempted to update end date in this project table, adding duration to start date. [CODE] But I am getting below error [CODE] Later I tried with below code [CODE] Can I use TIMESTAMPADD function to update project table in Derby database? Thanks in advance to help me to sol...
[CODE] This query (provided by Akina ) updates my end date when adding duration to start date.
0
0
46
2021-05-12T16:46:35.433
warehouse_errors
dba.stackexchange.com
158,970
Access windowsauthentication SQL Server 2008R2 after Domain change
When I installed the SQL Server 2008R2 on the windows server, the computer was not in a domain. After I installed it, now someone moved the server into a domain. Problem is: the server can not be accessed anymore, since it is set to windows authentication, the former accounts do not exist anymore, sa is disabled (not s...
Is there a domain policy that removed the local Windows logins? If not the logins should still be there and be usable. If the SQL Instance is in Windows only mode, and there are no local accounts which have admin rights to the SQL Server, you'll need to reinstall the instance to get into the SQL Server.
0
1
498
2010-07-09T14:13:32.560
api_errors
serverfault.com
329,185
Postfix not connecting to sql database
I have postfix set up to use postfix/proxymap to store configs. I get this error when trying to end email. [CODE] Here is an example of my mysql-virtual_domains.cf file. I also have a mysql-virtual_email2email.cf, forwardings.cf and mailboxes.cf all set up similarly. [CODE] I'm wondering if its an issue with the port c...
I cant seem to find anything online on how to set up postfix or sasl pam authentication using a non standard mysql port. Try to specify the port as a part of the [CODE] line: [CODE]
0
3
1,664
2011-11-09T06:38:55.000
database_errors
serverfault.com
867,679
nxlog get logs from applications and services logs
i am having issues getting data of an event log , located on the applications and services Logs. I have put a query in the nxlog conf file that get the erros,warning,critical logs from the application event log but it doesnt work. Any help would be appreciated I am trying to get the Stream event file in application and...
You should check [CODE] for any errors. To me it looks like the [CODE] line is incorrect as there should be a linebreak after each [CODE] .
0
0
808
2017-08-09T09:50:48.247
infrastructure
serverfault.com
410,557
Consider as a single class or attribute/operation of existing class?
There are different methods for recognizing classes in UP methodology: noun/verb analysis using CRC analysis using RUP stereotypes other sources I have read above methods fully detailed in [CODE] book. Definition: There are some ambiguity considering something as a single class or attribute of the existing class. Suppo...
This RUP process as you described it follows a BDUF approach which is IMHO not well-suited for making detailed design decisions like "should longitude/latitude just be two attributes, or should it become a class on its own". A process which can make such design decisions is the following one: start with two attributes ...
2
4
133
2020-05-24T18:57:53.877
api_errors
softwareengineering.stackexchange.com
340,682
Is there a performance difference between using local drives and equivalent UNC paths?
These two paths are equal: \\myhostname\c$\temp c:\temp Is there a performance difference between them? Specifically, long sequential reads and writes.
There is a minimal network enumeration and name resolution but it's not per transaction. There would be no noticable performance difference between the 2.
6
5
550
2011-12-13T23:09:52.670
infrastructure
serverfault.com
71,585
Apache on FreeBSD not responsive but not busy
I run a fairly busy webserver. It's pretty standard: Apache with mod_php on FreeBSD 7.1. It connects to a separate MySQL server. It serves lots of static images. Users have been complaining of slow response times. Today I got very slow load times, then a "could not connect, try again" from my web browser. Looking at to...
Perhaps you've got a relatively small MaxClients, keepalives on with a long-ish timeout, and quite a lot of requests. Browsers will generally hold a connection open for 30 seconds or so if you let them - so don't set keepalive too long. Having keepalive on for a short period is beneficial to your users - but it does us...
2
0
739
2009-10-06T02:49:49.380
database_errors
serverfault.com
194,466
Structure of database with billions of rows of data
I have started working on a system setup, that includes a database, that collects around 6-7 billions of rows of data each year. I'm abit confused over the design of this database, and I'm not able to discuss it with the designer of this database. Its a factory, that has alot of high interval sensors monitoring all kin...
This is a typical way to deal with this kind of data. If you had a postgres database, you'd create one master table (to formalize the structure of the sensor data), and then create tables that inherit all the columns from the master table without adding any additional columns. This would create a partitioning of your d...
2
1
152
2018-01-03T09:38:01.737
airflow_errors
dba.stackexchange.com
188,148
Why isn't IIS 7.5 accepting any request with URLs containing the word 'handler'?
We've noticed 2 very weird IIS 7.5 problems running on Windows Server 2008 and ASP.NET 3.5 Any requests that contain the word 'handler' result in an HTTP 502.1 error (timeout) Some requests, which we didn't yet identify a possible logic, result in an HTTP 411 error (The request must be chunked or have a content length)...
502 is a Bad Gateway error. It usually indicates a failure of one web device to talk to another. That might indicate that there's a reverse proxy or similar between the Internet and your web server, and they're having issues talking to each other. Sometimes the error will indicate the type of device involved - Apache, ...
0
1
912
2010-10-06T14:07:51.140
infrastructure
serverfault.com
2,287
Regression Model for explained model(Details inside)
I am kind of a newbie on machine learning and I would like to ask some questions based on a problem I have . Let's say I have x y z as variable and I have values of these variables as time progresses like : t0 = x0 y0 z0 t1 = x1 y1 z1 tn = xn yn zn Now I want a model that when it's given 3 values of x , y , z I want a ...
AFAIK if you want to predict the value of one variable, you need to have one or more variables as predictors; i.e.: you assume the behaviour of one variable can be explained by the behaviour of other variables. In your case you have three independent variables whose value you want to predict, and since you don't mentio...
2
0
332
2014-10-16T12:15:32.017
data_quality
datascience.stackexchange.com
346,444
PostgreSQL Backup WAL ShellScript
I need to do a script that will backup my psql databases, i want to use the wal archive mode and not pg_dump. I've wrote this from a script i found on the web : [CODE] My problem is : the script prompt me for the psql password when i run it. I didn't found a way to specify the password in the psql command like you can ...
Try using the [CODE] file for not having to type the password. See: http://www.postgresql.org/docs/8.3/static/libpq-pgpass.html Or you can use a shell syntax like the following: [CODE] Or as a final option you should be able to use the environmental variables PGUSER and PGPASSWD.
1
1
503
2012-01-04T10:21:27.597
hadoop_errors
serverfault.com
33,298
Unable to read the parameter value inside a class using TestNG
To achieve parallel execution, I am updating my existing Junit project to TestNG. The requirement here is to run one scenario in different browsers using TestNG [CODE] The class where browser parameter is fetched. [CODE] TestNG XML file looks as below : [CODE] I am not able to able to fetch parameter value "Browser" in...
It seems, there is no reference to [CODE] anywhere, therefore its code is ignored. You could try modifying PBPRunnerSanityUITest.java like this: [CODE] And then update WebDriverFactory.java like this: [CODE]
0
1
722
2018-04-23T10:09:24.493
data_quality
sqa.stackexchange.com
624,035
Same routes under VPN - how to workaround?
I only have basic experience with VPNs (mostly OpenVPN) and mostly theoric, but now I want to set up something more complex and I am evaluating the possible issues that I may face. I will try to represent the hypothetic situation via examples. Let's assume OpenVPN for this setup. I have one main server that will run th...
No, there is no convincing and trouble-free way of doing this. At layer 3, once both tunnels are up, the client has absolutely no way of distinguishing 172.16.0.50-via-tunnel-1 from 172.16.0.50-via-tunnel-2 ; IP just doesn't support that kind of decision-making (modulo source routing, which will be very painful and be ...
1
1
275
2014-08-26T09:06:21.660
infrastructure
serverfault.com
530,703
route cisco sg300 traffic through Watchguard firewall
I need help in determining what I need to research. I have two cisco SG300 switches (sg300-52 & sg300-28) and a Watchguard firewall (XTM-23). The internet connection currently passes through our watchguard firewall prior to going into switch A. Switch B is connected to Switch A via GBIC fiber port. The internet is curr...
Sure, this can be done with separate VLANs on switch A (basically a separate VLAN for the GBIC fiber port and copper port to connect to the firewall port, call it VLAN 666 if you want). But honestly, in your environment (in fact in most), the ISP will typically give you an ethernet hand-off at the demarc and not a dire...
0
2
531
2013-08-13T16:21:19.197
infrastructure
serverfault.com
151,297
cleaning up failed repair db: path: /var/lib/docker/wesfgr/repair/_tmp_repairDatabase_0
We run MongoDB 3.0.6 with MMAP in Docker container (single node). The filesystem was full and I did a repair with other path. [CODE] there are lots of errors, but the MongoDB started successfully after repair. What do this errors mean? Will we have an inconsistent DB long term? [CODE] after restart a lot of those lines...
It looks like your namespace file is still corrupt, you get similar errors when you hit the max number of collections for a database in MMAPv1. To try to fix this up and get a database that is in a more consistent state you can try recreating your collections in a new database. If you have auth enabled, you will need t...
3
2
706
2016-10-03T08:31:07.490
pipeline_ops
dba.stackexchange.com
455,511
Clonezilla and multiple Activation for Office 2010
We have a large desktop deployment (approximately 2000 PCs) coming and I'm in charge in structuring the best possible manner to have the PCs installed and staged before them out to multiple geographical sites. We have already purchased group license for both Windows 7 and Office 2010. The method of deployment is clonez...
In your Microsoft license portal, you should have an option to use KMS keys. KMS is the Microsoft Key Management Service , and is the proper method of activating/licensing systems deployed in the manner you're planning. Here's a tutorial on setting up a KMS host server.
2
2
537
2012-12-05T23:33:28.560
pipeline_ops
serverfault.com
992,801
ubuntu 14.04 ssh multiple port issue
I am having an odd issue with Ubuntu 14.04 LTS (Kernel: 3.13.0-170-generic) and configuring multiple ssh ports. It answers first port '22' from any interface, but seems to only answers the second port '4422' via the localhost interface, i.e. "ssh @localhost". Any suggestions would be great. I've added the standard port...
Turns out to be Ferm causing an iptables issue.
1
0
224
2019-11-21T19:11:48.900
infrastructure
serverfault.com
585,167
Command not found in if-else statement
I have some function, that do chroot into some directory. I execute this command twice with [CODE] type if [CODE] statement. First time I execute command in [CODE] section, and second time — in [CODE] with some others parameters. While [CODE] returns [CODE] — all is good, but if it returns [CODE] so I recieve error suc...
Your path: [CODE] That should be: [CODE] Notice the added [CODE] at [CODE] . Which makes sense, since it's [CODE] .
0
3
463
2014-03-28T14:20:45.953
infrastructure
serverfault.com
449,828
Is it possible to display realtime network utilization without third part tools in Linux
Possible Duplicate: Is there a linux terminal command that lets you see the amount of data coming in to your tcp connections in real time? I want to able to display realtime (or near realtime) network utilization without third part tools in Linux, e.g. 102KB on interface eth0 is it possible?
On Ubuntu it is shown in [CODE] , where [CODE] : Received , [CODE] : Transmitted [CODE] To get just the usage, use [CODE] : [CODE] To continuously monitor, use [CODE] : [CODE]
-1
0
1,035
2012-11-18T08:31:31.393
data_quality
serverfault.com
104,560
Model-View-Controller and client-side concurrency responsibility
In a web application that has a significant ajax component, where is the best place for the client-side concurrency responsibility to lie? We're trying to use MVC on both the server application (LAMP stack) and the client application (ajax, mostly jQuery and unobtrusive js). On the server-side, our model throws an exce...
Not entirely clear on what you are doing. But here is what I am assuming, you are writing some kind of application with large number of users updating same values(like price of a stock) and you want to use MVC on the client stack(JS) to create an desktop application like feel. Having concurrency control in the controll...
1
2
1,383
2011-08-29T23:51:45.317
api_errors
softwareengineering.stackexchange.com
691,801
ansible tower reports : stdout capture is missing
How to fix the error of stdout capture being missing. I am scheduling couple of tasks, initially they are running fine after couple of iteration it is throwing this error.
I reached out Ansible Support and apparently they acknowledged that the Tower Version which I was then using [ 2.1.3 ] had some bugs and they recommended to upgrade to 2.1.4 solved the issue. Update : More to it, I was using Instance size of t2.micro - which they recommended to use an instance with higher Memory Capaci...
0
1
3,031
2015-05-13T16:35:31.230
pipeline_ops
serverfault.com
171,977
ServerA can't access ServerB through UNC path. How do I troubleshoot?
All my servers are in the same domain on the same network. ServerA cannot access ServerB through UNC path. However DNS resolves correctly for ServerB from ServerA. For example "ping ServerB" works as expected. ServerB can reach ServerA through UNC path without any problem. Likewise all other servers and clients can rea...
This issue cannot be solved any longer because the servers do not exist anymore.
2
0
5,380
2010-08-18T17:50:50.873
infrastructure
serverfault.com
716,854
Is there public dns server that serves only ipv4 adresses?
For debug purposes I need to ensure that all hostnames resolve to ipv4 addresses. So I want to leave in /etc/resolv.conf only one dns server that will serve ipv4 only addresses. But i can't find such one. update: Final goal - redirect all traffic to proxy chain. Some parts of this chain can work only with v4 addresses ...
A DNS server will only serve you what you ask for. If you only want IPv4 answers then it's up to the client to only ask for that. For debugging the [CODE] tool is probably what you are looking for. If you want to look for A (IPv4 address) records for e.g. www.google.com then you can do: [CODE] And the IPv6 equivalent: ...
-3
7
2,764
2015-08-26T07:22:13.707
infrastructure
serverfault.com
202,190
Configuring SQL Server Express 2005
What's the proper way to configure SQL Server Express 2005 so that it can allow for a number of clients to get connected to the server? I have my application running both in the server machine and the client machines. Given the nature of my application, clients are the branches geographically distant from each other, a...
First, I'll use Windows Authentication only all your users are members of the same Active Directory domain, if not I'll use SQL Server Authentication (it's less secure but works better when not using a domain). Then, make sure that SQL Server is configured to accept external connections. Open the Surface Area Configura...
0
1
140
2010-11-15T21:13:38.883
api_errors
serverfault.com
351,874
Should I use functions based on Applicatives or Monads?
There are a lot of functions that accomplish the same thing, but using [CODE] vs [CODE] definitions. Some examples are: [CODE] vs [CODE] [CODE] vs [CODE] [CODE] vs [CODE] [CODE] vs [CODE] [CODE] vs [CODE] [CODE] vs [CODE] [CODE] vs [CODE] etc. And for [CODE] vs [CODE] : [CODE] vs [CODE] [CODE] vs [CODE] In the scenario...
For both efficiency and generality, you should typically prefer the most general operators. So you should use [CODE] operators in preference to [CODE] , and [CODE] to [CODE] . The efficiency difference is often not significant, so if you already have a [CODE] / [CODE] constraint, you should feel free to use any of the ...
8
11
810
2017-06-29T18:03:06.473
data_quality
softwareengineering.stackexchange.com
385,598
storage of text history and algorithm to return text at particular time
An application I'm considering writing needs to show a text that a user has edited at a particular time. So consider if we have a text the user is editing from Time A to Time X, and I want to show what it looked like at Time L. This text can be for a long running process, and it can be theoretically big, therefore it i...
There is no "algorithm" for this scenario you mentioned. You have an apparent trade-off as you mentioned in the granularity of your snapshots (from trapping each keystroke to give the user's freedom to decide by itself [like commit-object in git]). You need to ask yourself, or provide us with more information regarding...
0
0
61
2019-01-16T10:30:08.923
api_errors
softwareengineering.stackexchange.com
450,403
Watchdog/recovery mechanism for realtime embedded system (using heartbeat, exceptions and Posix signals)?
We have a large(ish) real-time embedded system. It's VxWorks, if that makes any difference. It has some C code in DKMs, but is 95%+ in C++. It has absolutely no exception handling, nor Posix signal handling. It is multi-threaded, so if one thread/process/subsystem dereferences a null pointer, or access a non-existent v...
VxWorks documentation uses the word "task" to refer to what traditional systems call a "thread". I will refer to the concept as "thread" here, given the audience. failure domains You repeatedly confuse "thread" and "process" in your description. A process has one or more threads of execution, all sharing the same addre...
2
4
234
2024-01-04T11:08:48.390
api_errors
softwareengineering.stackexchange.com
190,271
How to offer custom word processor like editing power from an application
I have a very complex Java application which renders spreadsheet tables and summary documents in a window. These outputs are non standard in the sense that for instance the spreadsheet table isn't really a spreadsheet indeed not every row is an instance of an entity and every column an attribute. Some rows might for in...
We have exactly this issue. Our solution was to engage with the customer, discuss the options, they want HUGE flexibility, but little work. Build reports. We use Microsoft SQL Reporting Server (which the Express edition is free for commercial use but limited, need standard licence for busy/production sites) From 'the s...
1
2
759
2013-03-12T13:10:08.437
api_errors
softwareengineering.stackexchange.com
880,490
nfs server getting many rpc-srv/tcp: nfsd: sent only 700260 when sending 1048708 bytes - shutting down socket
System is running CentOS 7.3, serving files over both ethernet and infiniband, but the vast majority of traffic is over infiniband I just stood up a new file server that is now generating large numbers of the following error: [CODE] I increased the tcp_rmem and wmem to a max of 32mb, but the problem persists [CODE] Are...
This site reports some more suggestions, including increasing the NIC txqueuelen. These suggestions are mainly aimed at high latency networks, however I noticed that under Fedora24 Infiniband interfaces get by default a lower txqueuelen value (256) than other interfaces (1000), so the txquelen suggestion, besides the o...
4
5
6,331
2017-10-26T19:01:54.993
infrastructure
serverfault.com
285,682
Composite Primary Key drawbacks
For website that I maintain (eCommerce) I now need to make a table that seems to require Composite Primary Key of 5 columns. I never used 5 column as primary key before, only 2 and rarely 3. I wonder whether there are any drawbacks to it, especially with regards to performance because this particular table is expected ...
There should not be any significant performance impact A clustered index is basically free - why not use it? Insert check for unique is an index seek It is very very fast for single or composite key Even if there performance implication for me data integrity wins every time If the data has a natural composite key then ...
4
0
3,637
2015-06-03T07:50:14.590
data_quality
softwareengineering.stackexchange.com
515,325
lighttpd mod_auth using LDAP
I've setup lighttpd to use an ldap backend like so: [CODE] When I visit the URL, I am prompted for my credentials. I enter them in, and I am immediately asked for them again, with a single line in the log: [CODE] Like most things I post on StackExchange, I'm certain I'm doing something wrong. Any help is appreciated.
2 things were wrong: [CODE] [CODE] Bob's you're uncle.
1
0
2,452
2013-06-12T16:54:54.043
infrastructure
serverfault.com
279,005
is there any problem with my server
Below is a Munin Service Monitor screenshot for netstat by day which have a lot of failed connection. so I need to know is this a serious issue?
The number of "failed" connections in your graph is rather low. For some unfathomable reason, munin developers chose a logarithmic scale for graphing, but reading the y-axis you should see that the values for "failed" are somewhere between 1*10^(-2)/s and 1*10^(-1)/s, which expands to 3 - 30 failed connections within t...
1
3
99
2011-06-10T03:27:42.507
infrastructure
serverfault.com
727,279
No "duplicate host" warning if different netmask (same gateway)
I experienced the following "strange" behaviour on a virtual machine network setup (bridged): host 1 hostname: server_one ip: 192.168.1.2 netmask: 255.255.255.0 gateway: 192.168.1.1 host 2 hostname: server_one ip: 192.168.1.3 netmask: 255.255.255.0 gateway: 192.168.1.1 In this scenario windows tells me "duplicate hostn...
In IPv4 the netmask is used to determine the broadcast address. Windows apparently uses broadcasts to determine duplicate names. If the two hosts use different broadcast addresses they won't see each other's duplicate name checks and assume that the name is not in use.
0
0
63
2015-10-07T09:25:53.707
data_quality
serverfault.com
219,185
Wait Stats on Microsoft Azure test
On a particular test we're doing with Microsoft Azure, we are seeing a wait_category called: PAGE LATCH (non-I/O) that we're unfamiliar with. In our test, CaptureSeconds = 1595 and for PAGE LATCH (non-I/O) it reports: wait_time_ms = 126666216 wait_time_ms_per_sec = 79364 max_waiting_tasks = 13086110 average_wait_time_m...
In SQL Server a Latch used to provide brief, exclusive access to a database page. When multiple sessions need to modify the same page, all but one will enter a "PAGE LATCH (non-I/O) wait". Your wait stats seem to indicate that all your sessions are lining up to modify a single page. There are couple of different scenar...
0
0
43
2018-10-03T15:06:26.483
warehouse_errors
dba.stackexchange.com
890,803
How to change “Issued to” in Server certificates (for self-signed certificate)?
I'm faced with an address mismatch in my Self-signed ssl certificate in my sharepoint site. I suspect I have to change the "Issued to" section, which is the common name in my server certificate to match that of my website's hostname. The Server certificates section can be found in my iis. Since I cannot edit my certifi...
You can't modify certificate contents, because they are digitally signed by an issuer. By changing any bit in the certificate you will make it totally invalid. Instead, you have to generate new certificate signing request and provide correct names there. After that submit requests to your CA provider (in your case, it ...
3
3
16,388
2018-01-05T02:57:43.960
api_errors
serverfault.com