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 |
|---|---|---|---|---|---|---|---|---|---|---|
30,466 | Select blocking issue | The database was not responding to simple select statements like [CODE] I noticed in [CODE] that one session is blocking, blocking session was pointing to a stored procedure which use lock & Tran like below [CODE] Please advise me if I have written it wrong. | Here's how I would re-write this. Various comments inline. These changes may help reduce blocking but it's really hard to see how even the original would block for very long unless these are all heaps and/or every table access yields a scan... [CODE] | 4 | 7 | 297 | 2012-12-14T19:47:59.287 | database_errors | dba.stackexchange.com | |
382,087 | Should production web servers use a gateway host for SSH in Django apps even though Fabric doesn't support it? | My firm manages a fairly large array of production servers across a number of servers. Our production server, by convention, only allow SSH access from a handful of gateway hosts. Most of these web servers run PHP projects which use rsync-based deployment scripts running on one main gateway host. That said, we're build... | Fabric shouldn't need to support SSH tunnelling; it just involves a bit of SSH config ( [CODE] ftw) and you're away. Of course, SSH bastion hosts are a pretty numpty idea anyway; they're like a VPN for people who're scared of IP routing. | 3 | 2 | 574 | 2012-04-23T00:45:48.880 | pipeline_ops | serverfault.com | |
966,789 | Azure Batch, Low priority nodes not working at all | We have been using low priority nodes in my company for a really long time. Every now and then we get preempted nodes but our tasks end up running eventually. We have 1 dedicated node, and we scale up to 20 low priority ones. For the last 3 days no low priority node has been created when scaling. Scaling shows it's try... | The problem was quite complicated, and probably a bug in Azure Batch. Some VM objects had been removed from the resource group by someone in the team. This caused Low Priority VMs to be unable to start, the weird part is that Dedicated VMs actually started correctly. I solved it by using the VM image to create a new VM... | 2 | 0 | 238 | 2019-05-10T23:49:53.127 | infrastructure | serverfault.com | |
455,731 | HP to Cisco spanning tree root flapping | Per a recent question I recently configured both my HP (2x 2900) and Cisco (1x 3750) hardware to use MSTP for interoperability. I thought this was functional until I applied the change to the third device (HP switch 1 below) at which time the spanning tree root started flapping causing performance issues (5% packet los... | Wow.. After all the research it turns out all I was missing was setting the MST 0 instance value to a lower value than the default. Once I set it to 4096 all the show spanning tree configs started functioning as expected showing the Cisco macs as the root. GerryEgan's solution would work in since it also would have cha... | 9 | 3 | 14,573 | 2012-12-06T14:58:12.340 | pipeline_ops | serverfault.com | |
705,836 | RTNETLINK answers: Invalid argument while specifying packet loss by tc command | I am trying to specify packet loss by tc command on interface (port) 1 of switch part of network I have created using mininet : [CODE] but gettring error: [CODE] Any help would be appreciated Network Details: It is a tree topology based mininet network on Ubuntu 14.04 with depth = 2 and fanout = 5. On first level, a sw... | As per this link , it seems that mininet uses [CODE] commands to set [CODE] , [CODE] etc. internally. It tries to overwrite the qdisc file, therefore, it errors [CODE] . To set packet loss set it in [CODE] script itself by using [CODE] parameter while creaqting a link. For an example see this . | 0 | 0 | 3,157 | 2015-07-15T07:39:14.517 | infrastructure | serverfault.com | |
319,001 | How to GROUP BY boolean when im already grouping by time frames 8hr/11hr/14hr/17hr/20hr in MySQL | I need to group 2 tables (Key = analysis_id id) where my output should show the last week or month or year , grouped by a Time frame and grouped by bolean "R" or "L" . I have around 4000 inputs by users. Example of tables i have [CODE] Time Range: 8h includes 6h to 9h29 11h includes 9h30 to 12h29 14h includes 12h30 to ... | As I already suggested in the comments you need to change [CODE] with [CODE] and add [CODE] in the group by clause [CODE] . The final query would look like: [CODE] | 1 | 1 | 526 | 2022-10-31T12:57:37.130 | database_errors | dba.stackexchange.com | |
19,874 | Why doesn't overfitting devastate neural networks for MNIST classification? | I have a simple neural network(NN) for MNIST classification. It includes 2 hidden layers, each with 500 neurons. Hence the dimensions of the NN are: 784-500-500-10. ReLU is used in all neurons, softmax is used at the output, and cross-entropy is the loss function. What puzzles me is why overfitting doesn't appear to de... | I have replicated your results using Keras, and got very similar numbers so I don't think you are doing anything wrong. Out of interest, I ran for many more epochs to see what would happen. The accuracy of test and train results remained pretty stable. However, the loss values drifted further apart over time. After 10 ... | 8 | 7 | 4,720 | 2017-06-21T10:11:25.860 | api_errors | datascience.stackexchange.com | |
763,798 | Proxmox: Node's load at 70, 2 containers are not responding, but top shows nothing | I got a huge problem. Some of my Proxmox-based LXC-containers are not responding since 2 days if I do not reboot the node. This happens always at the same time in the night (I guess there is something happening on a container which causes heavy load). The problem is: [CODE] / [CODE] / [CODE] are not showing anything. T... | lxcfs: 2.0.0-pve1 had a bug that let the container hang in the kernel. I have resolved the issue by updating to lxcfs: 2.0.0-pve2. Have look here: https://forum.proxmox.com/threads/proxmox-4-0-lxc-containers-network-unstable.26353/ | 0 | 1 | 892 | 2016-03-15T08:44:16.867 | pipeline_ops | serverfault.com | |
177,559 | Keeping an enum and a table in sync | I'm making a program that will post data to a database, and I've run into a pattern that I'm sure is familiar: A short table of most-likely (very strongly likely) fixed values that serve as an enum. So suppose the following table called [CODE] : Status Id Description -------------- 0 Unprocessed 1 Pending 2 Processed 3... | I would hard-code the enum within your program, as I suspect these different statuses affect your programs logic. If you have a new status, how is your program supposed to react to this new status? Because the database is part of your application, I don't think it would make sense to affect one without consulting other... | 12 | 5 | 6,288 | 2012-11-28T19:06:31.980 | api_errors | softwareengineering.stackexchange.com | |
306,098 | map a drive through NET USE command | Possible Duplicate: Useful Command-line Commands on Windows we need to mape a network folder on 2008server and client is XP; we want to use the command line on windows XP | Net use [drive letter] [unc path] example: [CODE] | 0 | 4 | 4,906 | 2011-08-29T15:03:54.467 | data_quality | serverfault.com | |
384,376 | Not able to resolve subdomain externally ( windows server 2008 r2) | I have set up my own dns server. I have configured it and it works from outside. Then after I created some sub-domain with (subdomain.mydomain.com which is 'A Record') and try to access it from internet it doesn't work. It works from internal network. My set up is like I have set up 1 domain controller. I have hosted m... | Sometimes DNS servers will cache [CODE] responses (so if you or anyone tried to query the domain before you set it up, it will appear to not exist for however long the DNS server you're querying wants to cache that response for). They often do this longer than your TTL even if you don't want or expect it. If a DNS serv... | 0 | 0 | 1,061 | 2012-04-30T01:25:17.413 | infrastructure | serverfault.com | |
941,256 | SoftEther VPN AD Authentication only works for wildcard user | I'm using SoftEther on SBS2011, with L2TP/IPSec protocol. My initial client is Windows 10 with built-in L2TP/IPSec protocol. In my SoftEther Users, if I add a wildcard (*) user, and select "NT Domain Authentication", my user is able to connect. Note that on the client, the user is specified without any domain info. Sof... | Earning the "Tumbleweed" badge prompted me to post my own answer (or rather, the non-optimal workaround) The problem was due to the user trying to connect via VPN was logged into the PC as a non-Administrator user. Once I changed their account to a local administrator, everything worked fine. I cannot come up with a re... | 0 | 0 | 1,905 | 2018-11-22T16:25:01.257 | api_errors | serverfault.com | |
813,711 | Centos PPTP VPN server restirct user to a specific IP | I have a centos pptp vpn server configured to access my internal ip say 1) 10.XX.XX.21 2) 10.XX.XX.22 3) 10.XX.XX.23 4) 10.XX.XX.24 ..... n)10.XX.XX.n VPN is working fine with no issue . I would like to know if it is possible to restrict user to a particular internal ip ie user1 can acesses only 10.xx.xx.21 and 10.xx.x... | Yes, this can be done by editing /etc/ppp/chap-secrets file with the format to assign the user an IP address based on their credentials. You can then use firewall rules to limit what that IP address can access. Alternatively you can achieve something similar is to create/modify a script /etc/ppp/ip-up and /etc/ppp/ip-d... | 0 | 0 | 902 | 2016-11-08T03:59:55.493 | infrastructure | serverfault.com | |
301,587 | How to configure apache to disable access to some subfolders in the directory? | I am a newbie to apache administration. Now I would like to host my software release folders in apache which is a subfolder of my software project folder. The structure is as following: [CODE] I would like my release_version_folder and debug_version_folder accessible by browser. So how to configure apache? | You can use Apache configuration directives at many different levels. In particular, you can select specific directories in the config file. Alternatively, you can use .htaccess files in the individual directories. I suggest you look at http://httpd.apache.org/docs/2.0/howto/auth.html | 0 | 1 | 499 | 2011-08-16T12:09:01.683 | infrastructure | serverfault.com | |
779,915 | Allow domain group ssh access | Centos 7 joined to 2012 R2 AD domain Joined to AD domain with realm join and now I can ssh in as any domain user ( ssh server -l domusr@lab.local ) I can also login to the local console via domusr@lab.local as well. I want to only allow certain domain groups to ssh in so I added this to the bottom of /etc/ssh/sshd_conf... | For me it worked: [CODE] | 2 | 4 | 30,203 | 2016-05-31T01:38:37.053 | api_errors | serverfault.com | |
301,512 | Java concurrency | I am working to solve interesting concurrent problem! Not sure if I understand it correctly since I am little bit confused. The system needs to process the prices, and typically they cannot be processed as quickly as they arrive, so the implementation must sample the latest price. The external system produces prices fo... | From the documentation of [CODE] : However, even though all operations are thread-safe, retrieval operations do not entail locking, and there is not any support for locking the entire table in a way that prevents all access. To answer your first two questions: [CODE] is guaranteed to be thread safe. When writing, more ... | 3 | 1 | 202 | 2015-11-02T20:10:53.363 | api_errors | softwareengineering.stackexchange.com | |
1,092,404 | Windows VM suddenly run very slow in KVM/QEMU | I have several times experience a Windows VM suddenly start to run extremely slow, seems mostly related to slow storage IO. Seen this in different versions, but in this particular case is Win10 LTSC 1809 This happens whatever storage configuration I use (qcow2/raw image, block-device, VirtioSCSI or VirtioIO). If I rein... | I did actually find the following event viewer message: [CODE] Event though this didn't solve the problem to enable this mitigation it got me thinking if this problem was Hyper-V related and I started to look that way. And sure enough, it was related to HVCI (Hypervisor-protected code integrity) was enabled. Further in... | 0 | 2 | 4,898 | 2022-02-02T07:16:27.863 | infrastructure | serverfault.com | |
557,780 | Different PHP-configs in Nginx | I have a web-server running multiple server (virtual hosts) using nginx and fastcgi passing to a unix-socket. What I want to accomplish is a set-up with beta.example.com and live.example.com, where the live site has error_reporting turned off (but still logs to file), and on the beta-site error_reporting is on. So with... | You can pass these options to PHP fastcgi from nginx with this syntax: [CODE] Note the newline ( [CODE] ) character that has to be between the passed options. | 5 | 4 | 5,744 | 2013-11-27T12:47:47.040 | infrastructure | serverfault.com | |
246,297 | Microsoft SQL Joins and Where Clause | I am sure a very simple question for people out there but my brain has shutdown. I have joined two tables with a left join which has worked as hoped as I do need to bring back the NULLs in one of the tables as some of the rows will not have cosponsoring matches. I need to put a WHERE clause on one of the columns that '... | Depending on indexing and size of data, you may find performance is better if you use: [CODE] Or [CODE] | 1 | 4 | 56 | 2019-08-26T22:04:36.153 | warehouse_errors | dba.stackexchange.com | |
190,996 | t_delta too long error on Freenas 0.7.1 | I am using FreeNas 0.7.1 (FreeBSD 7.2-release-p6) Recently I have been getting a series of these error messages to the console. I am using ZFS pools mirrored on the FreeNAS system, and they report as healthy and in good status. I think this error message is related to the FreeBSD underneath. The ZFSpools are iscsi targ... | It's an error with the time clock on your computer, has nothing to do with ZFS, iSCSI, etc. Try updating your MB's BIOS. Or post the make/model and we might be of more help. In any case it's nothing to worry about if the clock is still correct. | 0 | 1 | 811 | 2010-10-14T16:35:31.767 | infrastructure | serverfault.com | |
257,789 | db_datawriter vs grant delete, update, insert | I have an application set up in which the service account uses a user defined role which has each object in the database defined with specific permissions. It seems that every table in the database is listed here and they all have update, delete, insert, and select - so, essentially, db_datareader (select) and db_dataw... | You say " It seems that every table in the database is listed here and they all have update, delete, insert, and select". If you have not explicitly verified that insert, update, and delete permissions have been provided on every object via this role; these permissions may be missing on some objects. The role [db_dataw... | 2 | 1 | 2,095 | 2020-01-20T15:54:27.473 | warehouse_errors | dba.stackexchange.com | |
278,510 | Turn over cards in minimum number of steps | Imagine you're given an array of cards. Some of them are facing down (0), while some of them are facing up (1). Is it possible for given fixed K to turn all the cards face-up by turning over any K consecutive cards? If it's possible what's the minimum number of steps? For example: [CODE] It is possible to make all the ... | First, there is high possibility that combination of parameters and starting cards might be unsolvable. For example [CODE] Is unsolvable. Your algorithm doesn't find minimum number of steps, because your example configuration cannot be solved at all. Now the question is whenever given algorithm does indeed guarantee th... | 1 | 2 | 1,337 | 2015-04-07T23:29:57.057 | api_errors | softwareengineering.stackexchange.com | |
106,050 | Weed out certain rows where timestamp is within interval | Given a table structure: [CODE] Where each person can have multiple contacts with the system at any point in time. What is the best way to filter out contacts by a given person in a certain time frame? E.g. if: [CODE] yields: [CODE] I would need to remove all contacts except the first one in a given time window. For in... | SAMPLE DATA [CODE] HOW DATA APPEARS IN TABLE [CODE] COLLECT ALL KEYS FOR pid 1201 [CODE] MARK KEYS [CODE] DELETE MARKED KEYS FROM contacts TABLE [CODE] Since contact_id 16499 is no longer in the contacts table, you can [CODE] and then GIVE IT A TRY !!! I am sure there are other methods which involve doing a DELETE JOIN... | 1 | 0 | 966 | 2015-07-06T11:25:12.120 | warehouse_errors | dba.stackexchange.com | |
65,932 | inserting large quantity of data into mysql table | I need to insert about 400 000 000 rows of test data into the InnoDB table. Table is quite simple: [CODE] Data is coming from another table: [CODE] I need to insert into tgt all possible combinations of different ids from table src, so naive method is to execute: [CODE] And, of course it take hours or even days... So I... | Dump the source data into a file: [CODE] Tune MySQL for large writes: [CODE] See how to change the log size Start a pipe to split results.txt in chunks [CODE] (pt-fifo-split is a part of Percona Toolkit ) Load the dump [CODE] (if you have problem with "File '/tmp/pt-fifo-split' not found", try this solution ) | 3 | 4 | 1,128 | 2014-05-27T00:18:52.360 | database_errors | dba.stackexchange.com | |
126,887 | Is there a lightweight MTA for Ubuntu 9.10 Desktop? | I'm writing a Perl script to run as a cron job, and I want to email results & errors to a local account on the laptop. I'd like something that can talk SMTP (do any MTAs not adhere to SMTP?). I use Thunderbird 3, so I'll also need a POP/IMAP server (unless T-Bird can read straight from an mbox file; I'll have to check ... | Install Postfix , configure it for the local network and make it listen only to the loopback-interface . If you have an external mailbox ready and only want to send emails to it, you could probably just install ssmtp and be happy. | 5 | 9 | 1,412 | 2010-03-27T14:45:32.600 | infrastructure | serverfault.com | |
840,732 | No connectivity between clients on the same interface | I'm having a problem configuring wireless interfaces in Linux. For some reason, traffic generated by wireless clients destined for other wireless clients on the same interface gets dropped (i.e. arp requests, icmp, the likes). For example, 10.0.1.2 (connected to wlan0) can ping 10.0.1.3 (connected to wlan1) and vice ve... | Check the configuration settings for the wireless device. The command [CODE] should give the settings. These are the settings I have configured: net.ipv4.conf.wlan0.accept_redirects = 1 net.ipv4.conf.wlan0.accept_source_route = 1 net.ipv4.conf.wlan0.arp_ignore = 1 net.ipv4.conf.wlan0.forwarding = 1 net.ipv4.conf.wlan0.... | 0 | 0 | 359 | 2017-03-27T03:49:25.057 | infrastructure | serverfault.com | |
1,145,758 | Point-to-point network between three servers | I have a three servers, each of which has two network ports. I want to connect these servers using point-to-point connections without using a switch. Here is a diagram of what the physical connections look like: [CODE] I want the servers to be able to talk to each other. What I mean by this is: The servers should be pa... | Yes, it is. Create [CODE] interfaces on each host which enslave both physical NICs, and use bonding mode 3 [CODE] . Each server will transmit all the thaffic to both counterparts. Connect them into a "ring" (or "triangle"). Then simply assign addresses from the single network block to all servers. [CODE] Repeat on all ... | 0 | 1 | 155 | 2023-10-12T13:37:16.890 | infrastructure | serverfault.com | |
678,734 | Direct admin subdomain not on public name server | I have a problem with subdomain not being on public name server. I created sub-domain in direct admin (omfrontend.dutchbridge.nl, it adds records for ftp.omfrontend.dutchbridge.nl and mail.omfrontend.dutchbridge.nl) and waited more than one day after creating. But when I do [CODE] it returns [CODE] At the same time che... | Your OVH hosted domain [CODE] has two authoritative DNS servers , [CODE] According to OVH, they are these servers and managed through this Control panel that should have section Domain & DNS . I assume that you have DirectAdmin Web Control Panel installed on your hosted server [CODE] . It can be used to manage your ser... | 0 | 0 | 958 | 2015-03-27T14:11:54.293 | infrastructure | serverfault.com | |
855,425 | Clone Windows 2008 R2 to a small system drive | I am trying to upgrade a Dell PowerEdge T110 II server. It currently has 2x1TB drives. They are not configured for RAID. One is the system drive, the other is a data storage network drive. My end goal is to put 2x4TB with RAID1 setup for the data drive, but first I would like to replace the 1TB system drive with a new ... | Well, I finally got it to work. The steps I took were probably the wrong way to do it. I also had to procure a Windows Server 2008 R2 disk, although Dell eventually told me I could have used the trial version. 1) I cloned the original (1tb) disk to a 4tb disk, 2) then consolidated the free space to the beginning of the... | 0 | 1 | 409 | 2017-06-13T05:24:55.467 | database_errors | serverfault.com | |
838,836 | Dell R330 server disconnects shortly & occasionally from LAN | We have Dell R330 server with Broadcom NetXtreme Gigabit Ethernet cards, driver version 17.4.0.0 from Feb 2016, Windows Server 2012 R2 Std. x64 in a domain. The server is connected with a cable to a 3Com LAN switch - the same switch as other network servers, printers, workstations etc. The server is normally available ... | Go through the OSI layers: start with physical, any errors on the interfaces CRCs etc... (you can also look into the switch if its managed as to what it sees) does the interface drop in the switch logs? if no "physical" issues: is there a port-channel/etherchanel/bonded or agregated interfaces if so any suspicious beha... | 0 | 1 | 530 | 2017-03-17T07:18:31.547 | api_errors | serverfault.com | |
268,725 | Entering Private Key Passphrase with Putty Command Line PSFTP.exe | I'm using psftp.exe to automate a file download but need to connect with a private key as explained below. I am able to connect, however, the private key requires a Passphrase. This procedure works but I have to enter the Passphrase from the keyboard, which defeats the process of running from command line. I would like... | Why not just remove the passphrase from the key? There is no value in having a passphrase on your key if you are just going to save the password somewhere in a config file or script. Just load up your ppk file with puttygen, remove the password and save. You can certainly make a copy of your ppk just and strip the phra... | 9 | 13 | 40,116 | 2011-05-11T18:44:20.987 | infrastructure | serverfault.com | |
100,871 | UNC Path fails by IP "no network provider accepted the given network path", but works using hostname | I have an unusual problem with a Windows Server 2003 (Standard x86) box. It appears the machine will not accept connections to its shares (locally and from other domain member servers) by using its ip address in a UNC path. The error returned is: "no network provider accepted the given network path" This is the case wi... | ok it would appear the problem is resolved after uninstalling KB968389 ( ref ) and then reinstalling again. this has had me stumped for a few months, i would never have guessed it was NTLM related... to quote: If you capture network traces while trying to access shared folders, you may see a response of Error, Code =(1... | 4 | 4 | 18,061 | 2010-01-08T15:34:07.640 | database_errors | serverfault.com | |
16,809 | Why is 'LOAD DATA INFILE' faster than normal INSERT statements? | I've read an article that mentioned we can achieve 60,000 inserts per second by using the [CODE] statement, that reads from csv files and inserts the data into a database. Why should it differ from normal inserts? EDIT: I reduced the round-trip by calling just one [CODE] statement: [CODE] What about this? | LOAD DATA INFILE and extended INSERTs each have their distinct advantages. LOAD DATA INFILE is designed for mass loading of table data in a single operation along with bells and whistles to perform tings like: Skipping Initial Lines Skipping Specific Columns Transforming Specific Columns Loading Specific Columns Handli... | 24 | 28 | 39,290 | 2012-04-20T10:35:01.310 | warehouse_errors | dba.stackexchange.com | |
1,079,124 | Properly Extend virtual volumes on a CentOS VM, new space in /dev/cl/ not occupied by /dev/mapper | I have a CentOS VM (on a windows host, managed with virtualbox) that ran out of disk space. I extended the virtual disk size, then used gparted to assign the new space to the existing partition Then I used lvextend to assign halves of the free space to /dev/cl/home and /dev/cl/root However df show that the /dev/mapper/... | Answer given here : https://unix.stackexchange.com/a/671254/494994 resize2fs (for ext4) or xfs_growfs (for xfs) are used to resize the file system to fully use the logical volume alloted. | 0 | 0 | 423 | 2021-09-30T08:30:14.400 | infrastructure | serverfault.com | |
895,690 | GCP Compute Engine pricing calculation when running big-data programs | I created a virtual machine on GCP Compute Engine with Windows Server 2016, with n1-highmem-4 (4 vCPUs, 26 GB memory) and 50GB of disk size at europe-west2 datacenter location. The total estimated cost of this virtual machine for one month is $272.45 if this is running 24/7 for this month. My question is the following:... | For Big Data you will probably be better using Big Data oriented solutions offered by GCP like: https://cloud.google.com/solutions/big-data For BigQuery solutions there is a pricing list under this document: https://cloud.google.com/bigquery/pricing AFAIK, for Compute Engine instances, extra costs would be: setting up ... | 0 | 0 | 186 | 2018-02-05T11:49:31.483 | infrastructure | serverfault.com | |
358,830 | Should error/ack message be constructed in the client or in server? | Should messages that will be shown to the client be resolved in the client-side or in the server-side? Any design (dis)advantages that you can think of between the two approaches? If the system maintains sensitive information and different sets of information is maintained by users with different sets of authorities, w... | Actually a very good question, and very keen of you to ask. I think for localization purposes, this role is generally left to the client, passing only an error code, not to mention that the message is more succinct. However, it also tends to be very difficult to work with when errors occur without a proper documentatio... | 5 | 2 | 62 | 2017-10-09T10:30:36.350 | api_errors | softwareengineering.stackexchange.com | |
38,568 | Strange Behavior for trying to Predict Tennis Millionaires with Keras (Validation Accuracy) | I'm trying to make an NN with Keras to predict the ATP players that will get more than US$1 million in prize money based on their weight and height (from a dataset I mined some weeks ago), but I have been getting a weird behavior especially for the validation accuracy. Sometimes it gets to 84-85%, which is reasonable s... | I can't find your script hidden in your repo which is your dataset which is full of stuff...you should organize your work better if you plan to ask on SO. This would be the reply from a veteran but I am not. You should use [CODE] as loss, and then I think you would be able to not use [CODE] . Then the last layer should... | 1 | 0 | 181 | 2018-09-20T20:01:29.797 | data_quality | datascience.stackexchange.com | |
117,193 | How to properly compute spam message score as a combination of fixed features and probability from a naive bayes classifier? | I am building a learning spam/ham email classifier as an assignment. It's not supposed to be a good general classifier, but one that can learn on a small set of labeled emails of a user (approx. 650 - 700 messages) and classify the rest, assuming the distributions of both spam/ham and individual features remain roughly... | It sounds like you are trying to improve the performance of your spam email classifier by adding additional features to your model. One approach you could consider is to use a feature extractor function to extract useful information from the HTML code and email addresses in the messages. This function could take a mess... | 1 | 0 | 36 | 2022-12-20T14:47:09.910 | data_quality | datascience.stackexchange.com | |
889,821 | NginX (Host) as transparent proxy for NginX-Proxy (Docker Container) | Problem I am setting up Nginx-Proxy within docker upon my server. NginX-Proxy is meant to be directly accessible from the web and I would like to place a proxy in front of it. Ideally NginX(Host) should be the web facing server and reverse proxy back to the NginX-Proxy(Docker) which is served from a loopback address (1... | Since I first asked this I tried the suggestions of @c4f4t0r to use Traefik directly. This largely worked but Traefik is a level 7 proxy, that is it operates in the application layer and not on the transport layer. It cannot redirect any HTTPS traffic to a local webserver alongside it on the host. So SSL-Pass through (... | 0 | 0 | 1,984 | 2017-12-28T01:36:16.793 | pipeline_ops | serverfault.com | |
402,497 | How to name functions with multiple return values | In many languages, it is common for a function to have multiple return values (as a tuple), such as: [CODE] I often do this when a computationally expensive (or an often called) function calculates multiple values. For example, a function that walks through an automaton to find the state for the longest prefix of a wor... | A function is named for its purpose The question's premise, i.e. what a function's name should reflect, isn't quite right. From your comment on candied_orange's answer: What I am not satisfied with when using a [function] name such as those you suggested is that they are not descriptive of the [data type] being returne... | 2 | 5 | 2,940 | 2019-12-14T12:07:21.847 | api_errors | softwareengineering.stackexchange.com | |
290,693 | How to make a function in postgresql with two parameters to return count from column table? | I'm trying to do a function with two in parameters year and code from a table to return the count of the given code and year. The table is something like this: [CODE] I was able to return the count with the function below but when I give values to year and code in which there is no count it returns NULL but zero should... | This would work: [CODE] The conversion from [CODE] to [CODE] really depends on what you pass exactly and what that's supposed to mean. You might want [CODE] instead ... Consider the list in Akina's comment. Start reading the manual about about SQL functions . Have a look at PL/pgSQL functions after that. Overview: Diff... | 0 | 2 | 2,362 | 2021-04-29T06:23:14.000 | database_errors | dba.stackexchange.com | |
217,319 | Does migrating 2 domain controllers between 2 datacentre requires both virtual machines to be shut down at the same time? | I was attempting to migrate 2 virtual machines that are domain controllers between 2 datacentres running ESX 3.5 and ESX 4.1. I was advised to shut down both domain controller at the same time during the migration process. This is to avoid USN Rollback and other replication issues. The following are the steps that I wa... | I don't see any reason to shut down both DC's at once. USN rollback is only going to be an issue if you restore a point in time copy\clone\snapshot of a specific DC after the source machine has been allowed to continue on. For your migration, shut down a DC and move it\copy it using whatever mechanism works best then r... | 1 | 2 | 1,198 | 2010-12-30T08:51:25.773 | database_errors | serverfault.com | |
483,543 | Hosts file doesn't work with .com host names | My /etc/hosts file is configured as following: [CODE] And I have my Apache virtual hosts setup accordingly: [CODE] When I type mysitea.local in the browser, the hostname is resolved as expected. However, the hostname is not resolved when I type mysiteb.com in the browser. It does work when I ping to the hostname. I get... | I'll take a guess: your browser is actually requesting [CODE] (or its cached the result for [CODE] has non-resolving). Add that to your hosts file too, and it should work just fine. [CODE] If it still doesn't work, clear your browsers cache and/or restart your browser. | 0 | 0 | 279 | 2013-02-28T20:58:38.017 | infrastructure | serverfault.com | |
729,766 | apache2 dbd failed to initialise error AH02654 using postgresql on debian jessie | I'm currently trying to set up an apache server with mirrorbrain on debian jessie, mirrorbrain uses dbd to connect to the database. Unofrtunately I get the following in the error log [Sun Oct 18 13:47:47.801830 2015] [dbd:error] [pid 7619:tid 140365218666240] (20014)Internal error: AH00633: failed to initialise in /etc... | Ok, it seems the answer in my case was "look at the global error.log". The useless error message was in both the vhost specific error log and the global error log but the useful error message was only in the global error.log [CODE] | -1 | 3 | 1,679 | 2015-10-18T13:17:39.540 | api_errors | serverfault.com | |
172,697 | Comparing Query Accomplishment Speed By Using JOIN or not | I have been searching about this, and still didn't get satisfying answer. My problem is, I have 2 tables, for example table A and table B. Table A consists of: id (pk), name, address Table B consists of: b_id (pk), id(fk - from table A), tools The relationship between these 2 tables is one to many. So each row of A cou... | I would recommend to use JOIN for the following reasons: It is optimised especially if Index properly designed and also if query get complicated later on. Easy to read & understand, tidier code and one result-set It is way the professionals do select the only columns which are required not everything which could increa... | 0 | 0 | 33 | 2017-05-04T08:46:12.533 | warehouse_errors | dba.stackexchange.com | |
170,911 | Performance: Select count(*) where... VS select column_name where | I'll keep the scenario simple: There is an app, and there is a database. In the database, there is a table with a large amount of records I feed the app these records regularly Now, one reload can imply some of these changes: i. New records in set ii. Updated records in set iii. Deleted records in set Finally, for reco... | It really depends on a database you use while executing the query and gathered statistics. Oracle DB. If stats have already been gathered , the first query would return the amount of rows in 0.00001 sec. If have not been, then it will be faster in five more times than while executing the second query as it is retrievin... | 1 | 3 | 10,264 | 2017-04-13T10:17:28.313 | warehouse_errors | dba.stackexchange.com | |
1,075,366 | Committed memory in Linux is less than expected | One of my linux server's memory utilization is weird. As far as I know larger Committed memory (Committed_AS in /proc/meminfo or kbcommit in sar -r) than application used memory is normal. But my server's commited memory is significantly small. [CODE] As you can see Committed_AS is about 4.4GB. But one of process is us... | Half of this host's memory is in anon private pages. Most of that is the process you identified. [CODE] relatively low at 14% of [CODE] implies not much is in use yet for actual data. Operating systems are lazy. Linux will not touch all 14 GB this program asked for. Instead, as this x86 CPU supports 2 MB and 1 GB pages... | 6 | 3 | 1,091 | 2021-08-23T08:07:38.290 | infrastructure | serverfault.com | |
947,199 | Moved Elastic Beanstalk server to a different region and can no longer access s3 buckets | I recently moved my Elastic Beanstalk instances from east1 to east2. But there are a bunch of private buckets still in east1. Now my code throws errors and refuses to connect to the buckets across the region. I get this error [CODE] Is there a way to give my Elastic Beanstalks that are behind a VPC in a different regio... | You do have access to the buckets but you’re not handling the HTTP Redirect correctly. If it worked correctly while in [CODE] I guess your app accesses [CODE] . And now that it's running in [CODE] it probably tries to access [CODE] . However because the bucket is not in the [CODE] region you get HTTP Redirect to [CODE]... | 0 | 1 | 164 | 2019-01-01T09:22:10.730 | database_errors | serverfault.com | |
707,926 | OpenVPN server and client configuration for openwrt | I have an OpenWRT router with WAN(eth1) and LAN(eth0) interface. I wanted to install an openVPN server on this router, so I could access from the WAN side into the LAN side. My LAN(eth0) has a DHCP server configured over, and has a static IP of 172.20.51.61/24. When I connect any PC to LAN(eth0) it gets some IP in this... | First, I never recommend keeping SSL CA private key on a device directly connected to WAN. This is insecure. In OpenWRT a configuration for OpenVPN is in /etc/config/openvpn - option names are almost identical as in OpenVPN original config, except for in OpenWRT hyphens (-) should be converted to underscores (_). Follo... | 1 | 0 | 7,996 | 2015-07-23T13:03:40.030 | infrastructure | serverfault.com | |
149,495 | Incoming mail from sender, MX record won't accept replies. How to block the incoming SMTP connection from that sender? | How do I block an SMTP connection when I determine the sender's MX record will reject mail ? That is, if the advertised (MX record) way to send mail back to the domain will in fact not work, I want to reject the incoming SMTP connection. I'm administrating a mail service for a small business. They have a mail host, [CO... | I would start by doing a thourgh check of all composite blocking lists: MyIpTest.com Barracuda Central Anti-Abuse Project - enter IP in Multi-RBL Check textbox on right UCEProtect-Network Let me know how you make out. | 2 | 3 | 3,097 | 2010-06-09T03:47:32.100 | infrastructure | serverfault.com | |
237,419 | Postgres configuration suitable for a single 300 GB dataset (5 billion rows) | Our purpose is to use up every bit of resources on 1 machine dedicated to just serve one dataset to 2 data scientists and make it available for slicing, grouping, etc. Here is our current setup and configuration Data: 5 billion rows (~300GB) of AWS cloudwatch 5-minute data Hardware: AWS EC2 t2.2xlarge (8 cores, 32GB RA... | [CODE] With only 32GB of RAM, this is much too high. With two people working independently, and some queries potentially having multiple sort/hash nodes apiece, you can easily oversubscribed memory here. I wouldn't set this this higher than 4 GB. And even that is probably aggressive if you expect much parallelism, as e... | 2 | 4 | 972 | 2019-05-05T11:15:49.690 | api_errors | dba.stackexchange.com | |
387,128 | Remote access to Centos server not working | we have a Centos server and currently SSH access to it isn't working. It used to work until some 5 days ago. Now, the only way to log into the machine is to do it locally. We have tried SSH both using Putty and FileZilla with no success. The machine is alive and answering. I can ping it and the Apache service is up and... | I have seen cases where SSH logins could hang due to mis-configured DNS servers in /etc/resolv.conf. Especially if sshd is using DNS for reverse lookups or logging. Check your DNS configuration on the server and verify you can ping and resolve external names like google.com. | 0 | 1 | 2,790 | 2012-05-08T15:21:01.960 | infrastructure | serverfault.com | |
117,173 | Calculating Running Average using Over clause in SQL server | My table looks like this: [CODE] It contains 12 rows(or MONTHS) per LOCID, per YEAR. I have the following query: [CODE] example data: [CODE] Now I am trying to execute the above query for a specific MONTH in every year only, calculating the average for the 5 following dates/months/rows. But a WHERE clause to specify th... | You can apply your final filter on [CODE] after computing the running averages. In order to reduce the number of rows that need to be processed for the running averages, you can apply an earlier filter on [CODE] to ensure that you are processing the minimal amount of rows but still including all the rows that are neces... | 2 | 1 | 4,644 | 2015-10-06T15:07:56.200 | database_errors | dba.stackexchange.com | |
858,180 | User keeps getting locked out | An AD user continuously keeps getting locked out for no reason. There are no persistent drive mappings and the user is not logging in anywhere else. In Windows event viewer there are constant logs of the user logging in (event id 4624) and logging out (event id 4634) within a second. While I believe this might be causi... | I would enable logging for failed attempts as a diagnostic, if you have not already. Then you can see how many times the account is being hit. The failed attempts should have a computer name tied to them, and that would tell you where things are coming from for sure. If the account is getting locked out very quickly, y... | 0 | 2 | 3,988 | 2017-06-27T16:00:55.673 | infrastructure | serverfault.com | |
485,791 | Exchange, CAS, KEMP Load Balancer issue | We recently purchased 2 Kemp 2200 Load Balancers for our Exchange DAG (3 servers). We created the virtual service IP in KEMP that all the mail traffic will go to. We replaced the Exchange IP in the firewall with the virtual service IP of the balancers in the NAT. Our internal DNS servers have each of the Exchange serve... | Without more info on your VIP/Virtual Services configuration and other settings the best I can say is this: Your "email.company.com" DNS record should point to the External Address which NATs to your internal VIP of the load balancers. Each Load Balancer should have it's own IP (the load balancer IPs and VIP should be ... | 0 | 1 | 1,844 | 2013-03-07T21:57:49.793 | airflow_errors | serverfault.com | |
353,119 | Group policy for accessing sound settings | On a customer site, a "normal" (i.e. non-administrative) user cannot access the sound settings (mmsys.cpl) of the computer, whereas an admin can. From the error message the user receives, my impression was that a group policy causes the problem. Do you know which group policy can do so (the customer's admins do not kno... | Run gpresult /v from an administrator level command line on the computer that is having the issue. This will show which group policies are being applied and, from there, you'll know which policy's settings to inspect. | 2 | 1 | 3,389 | 2012-01-24T15:28:18.107 | infrastructure | serverfault.com | |
770,179 | Server is often slow to serve webpages and takes long to ssh into | First of all, I am in no way a professional running a server for about two years from home, so keep in mind that the cause to my problems can be very basic and with a simple solution. My problem is this: My Ubuntu/Apache2 server is hosting several sites and they work, throw no errors, but are occasionally very slow. Th... | This behavior is common if you have a memory leak in a plugin. This results in memory starvation, and the server threads start paging in and out of memory. It can also happen if you allow too many threads as Apache will spawn new threads as load goes up. There are a number of settings that can be used to work around th... | 1 | 0 | 261 | 2016-04-14T00:40:26.050 | infrastructure | serverfault.com | |
388,297 | Batching CRUD of individual models that need to be linked | I have a few models which need to be linked together during a workflow on my webapp and I'm having trouble thinking of a nice abstraction for the api. They are represented as individual constructs on the backend with their own CRUD methods that can be hit individually, however when the front-end saves a model it has to... | If the separate models are linked together on the db, I would consider the aggregate root approach. In this case you would only download and save the root model. all the others would be child objects in that class which you cant save seperately. | 1 | 1 | 76 | 2019-03-08T21:23:12.893 | pipeline_ops | softwareengineering.stackexchange.com | |
161,967 | phpMyAdmin: #1045 - Access denied for user 'root'@'localhost' (using password: YES). | I am getting in phpMyAdmin the famous #1045 error: Access denied for user 'root'@'localhost' (using password: YES). This is my /etc/phpmyadmin/config.inc.php: [CODE] Any idea? | You realize all the configuration lines are commented out? You need to uncomment and fill-in those fields for anything to happen. I think including this one would be sufficient (assuming you want it to prompt you for a username/password): [CODE] | 1 | 3 | 37,989 | 2010-07-19T11:28:11.063 | infrastructure | serverfault.com | |
746,728 | How do I `gcloud compute copy-files` into a GCE instance as root? | I am trying to copy local files to [CODE] . The instance has two sets of keys. One for the instance creator that's generated by default and one for remote access that I have set up manually. I have successfully logged in via [CODE] as the latter user, and I can change to root once I'm logged in. But when I try to log i... | For security reasons, the standard Google images do not provide the ability to connect directly as root. The instance creator and any users that were added using the metadata sshKeys value are automatically administrators to the account, with the ability to run sudo without requiring a password like you mentioned. Alth... | 2 | 1 | 3,715 | 2016-01-04T23:16:35.257 | infrastructure | serverfault.com | |
268,201 | Using struct to enforce validation of built-in type | Commonly domain objects have properties which can be represented by a built-in type but whose valid values are a subset of the values which may be represented by that type. In these cases, the value can be stored using the built-in type but it is necessary to ensure values are always validated at the point of entry, ot... | This is fairly common in ML-style languages like Standard ML/OCaml/F#/Haskell where it's much easier to create the wrapper types. It provides you with two benefits: It allows a piece of code to enforce that a string has undergone validation, without having to take care of that validation itself. It allows you to locali... | 10 | 4 | 2,317 | 2015-01-06T14:56:56.413 | data_quality | softwareengineering.stackexchange.com | |
223,031 | RAID 10 or RAID 5 for multiple VMs - what is the best choice? | I have just ordered a new rig for my business. We do a lot of software development for Microsoft SharePoint and need the rig to run several virtual machines for development and test purposes. We will be using the free VMware ESXi for virtualization. For a start, we plan to build and start the following VMs - all with W... | There's lots of similar questions/arguments on this site regarding R10 vs. R5/R6 but they boil down to "exposure during rebuild". The argument for R10 over R5 is strongest when dealing with the larger, slower disks some buy because their GB/$£€ is better (i.e. 2/3TB 7.2k SATAs) as arrays of these disks can take literal... | 8 | 11 | 59,758 | 2011-01-16T12:14:29.890 | database_errors | serverfault.com | |
276,908 | MySQL load balancing | I'm looking into ways to balance the load on our MySQL infrastructure, and can't seem to find an answer that works for me... :) So, I have one big and fat server, that handles everything. Many DBs, many reads, many writes, etc. It handles it pretty well, but it is a single point of failure. We've set up a couple of sla... | Check out Tungsten Enterprise MySQL-MMM is not a recommended solution. See: http://www.xaprb.com/blog/2011/05/04/whats-wrong-with-mmm/ Even one of the original authors agreed in the comments. Cheers Edit: oops, second link was same as the first. Corrected | 5 | 2 | 921 | 2011-06-04T00:46:21.053 | database_errors | serverfault.com | |
74,077 | Does DDR3-800 RAM even exist? | I purchased 4 Intel Xeon E5506 processors and a couple of SuperMicro barebones servers from Newegg. Based on everything I saw on Newegg, I thought that I could purchase 1333 Mhz DDR3 RAM. I was surprised to find when the processors arrived that it says Max. Memory: 800 MHz on them. This page on Intel's site says the sa... | Faster DDR memory should always work in a system that only supports slower clocked memory - it's part of the spec. However you do have to stick with the stated type (ie DDR3\DDR2\DDR). I would generally advise someone to buy the correctly rated memory but if all the parts are built to spec then there should be no issue... | 8 | 10 | 26,641 | 2009-10-13T16:01:09.477 | infrastructure | serverfault.com | |
789,684 | command "openstack image create" not available | Using a deb8 environment to test openstack following this guide: http://docs.openstack.org/draft/install-guide-debian/overview.html Now, so far so good, but when I'm working on the image service, i try to verify the operation and test to create and image; [CODE] the terminal return with; ERROR: openstack Invalid comman... | I started over and got past this. Basically by reinstalling the packages bare metal, abandoning the lxc setup. Works fine now. | 0 | 0 | 231 | 2016-07-13T21:45:27.187 | infrastructure | serverfault.com | |
24,193 | Dataset processing question | I am a newbie in Data Science, so please don't blame me for stupid questions. Here is my problem. I've got a dataset (no empty cells, only numerical values) consisted of 15 columns (1st - user id, last one - response, 2-14 - different features such as eventtype, country, browser etc., actually this dataset describes us... | What you have here is some data that's too specific. I don't know if there's a widely accepted name for that, but I've seen it be called "leaking" or "cheating" data. Using this kind of data is potentially dangerous for the algorithm, as you have seen in your experiments. Here's a quick example: I want to predict wheth... | -1 | 2 | 54 | 2017-10-30T13:29:38.933 | api_errors | datascience.stackexchange.com | |
1,042,055 | What are the server requirements in terms of CPU, RAM and bandwith for etherpad-lite? | As my previous post was marked as duplicate of a very generic question, I want to post here again,as i found an answer :-) For an event with 500 to 1000 participants we plan to use etherpads for subgroup work (100-200 subgroups of 5 users each). Does anybody have experiences what kind of server (in terms of CPUs, RAM, ... | I was pointed to the Etherpad Scale Calculator: http://scale.etherpad.org/ You can enter you expected number of concurrent authors, readers and pads and get a rough estimate what machine to use. | -2 | 0 | 338 | 2020-11-10T16:41:30.920 | api_errors | serverfault.com | |
435,648 | Is it good practice to use try catch for data validation | In my current development task, I want to validate whether a string is in JSON format or not. When I checked for solutions from resources like StackOverflow I saw many of answers are as below, [CODE] According to my knowledge, we are using try-catch to avoid terminating the program from exceptions. According to the abo... | The problem here is most probably that your [CODE] does neither have a method [CODE] , nor does it have a method [CODE] (which could avoid the duplicate work which would be involved in first testing for "parsability", and then parse again to get the actual result). So I guess you have no other option than catching the ... | 3 | 11 | 1,518 | 2021-12-31T09:06:18.713 | data_quality | softwareengineering.stackexchange.com | |
448,580 | Programming language independent semantic validation of message protocol | I have a proprietary protocol that describes the exchange of messages of two participants (applications) via a messaging broker (mqtt). A participant is of type A or B. Each type is allowed to send and receive a specific set of messages. The protocol defines a strict sequence in which the messages are allowed to be exc... | A Finite State Machine is essentially a graph where each state is a node. Since the total number of states is finite the current state can be represented as a single integer. The edges of the graph are labelled with a trigger condition - in this case the transfer of a message. Assuming there are only two parties involv... | 1 | 2 | 192 | 2023-11-10T09:36:40.823 | data_quality | softwareengineering.stackexchange.com | |
681,303 | Sudo immediately after login asks for password | If you think about it, it is kind of silly that sudo asks for your password even if you just logged into the machine and entered your password. I realize that sudo and /bin/login are two entirely different mechanisms, but it would be nice if sudo didn't ask for a password if your login session is less than, say, 30 sec... | Here's a good reason to not do it: You don't always login with your password. You may be logging in with an SSH key. It may be a passwordless SSH key... and it may not be the right person who's using it. By requiring you to enter a password at least once, the system is protected against such occurrences. If you still w... | -3 | 15 | 2,483 | 2015-04-08T16:15:39.300 | infrastructure | serverfault.com | |
84,401 | ORA-39244:Event to disable dropping null bit image header during relational select | I was trying to import a dump file using IMPDP command and has end up with the following errors: [CODE] I have searched on oracle forums and google for any solution. Not sure why this error is happening. Is this related to the db configuration? | For me this line seems most telling: [CODE] You should check to see if the user that you exported had a job scheduled using a program owned by someone else. If so you are trying to schedule a job for a program that does not exist. You can create the program, then do the import as long as the user who will own the progr... | 0 | 1 | 2,680 | 2014-12-05T07:57:32.550 | database_errors | dba.stackexchange.com | |
590,124 | Performance difference between ramfs and tmpfs | I need to setup an in memory storage system for around 10 GB of data, consisting of many 100 kb single files(images). There will be lots of reads and fairly periodic writes(adding new files, deleting some old ones). Now, I know that tmpfs behaves like a regular file system for which you can, for example, check free/use... | My recommendation: Measure and observe real-life activity under normal conditions. Those files are unlikely to be ALL be needed and served from cache at all times. But there's a nice tool called vmtouch that can tell you what's in cache at a given moment. You can also use it to lock certain directories or files into ca... | 33 | 35 | 34,469 | 2014-04-19T17:44:24.323 | infrastructure | serverfault.com | |
426,521 | Refactor SLA problem of high level code inside if/else? | I have some code where I believe the SLA (single level of abstraction) principle is broken in a way that the low-level code (if-statements) is outside and the high level code is nested inside the cases. A simplified version of the code is: [CODE] I would like to have the individual conditions for the different kind of ... | The first code with if-else looks fine to me. The logic is clearly expressed, which means the code is easy to understand and maintain. If-statments are not "low level code". They operate at the abstraction level of the conditionals, in this case the abstraction level of "effort" and "delayed", which is the parameters w... | 0 | 5 | 228 | 2021-05-19T08:18:59.527 | data_quality | softwareengineering.stackexchange.com | |
233,731 | Cannot connect to PostgreSQL from one network but can from others | I have configured my PostgreSQL server to listen on all addresses and set a port forwarding rule. I know this has worked as a colleague who works remote can access it fine. I also accessed it remotely myself. However, when attempting to demonstrate to a client on their network, QGIS was unable to connect. It asked if t... | I think first you would edit the postgres log file to see if you have any messages related to the server that is trying to connect to the database. Shortly after you check the parameters to be changed for access to the database. In the [CODE] file you change the parameter [CODE] Examples: In [CODE] you release the IP [... | 0 | 1 | 1,203 | 2019-04-02T09:14:38.693 | database_errors | dba.stackexchange.com | |
144,484 | Is it possible to efficiently store all possible phone numbers in memory? | Given the standard North American phone number format: (Area Code) Exchange - Subscriber, the set of possible numbers is about 6 billion. However, efficiently breaking down the nodes into the sections listed above would yield less than 12000 distinct nodes that can be arranged in groupings to get all the possible numbe... | A comment you placed on the question: It was an easier question to ask, instead of qualifying. Let's just say that there are much more than 5, but still less than 6 billion. :-) So it sounds like you intend to store all current valid phone numbers, in the range of (000) 000-0000 through (999) 999-9999. So the set of po... | 2 | 7 | 3,730 | 2012-04-14T21:48:51.010 | api_errors | softwareengineering.stackexchange.com | |
1,035,458 | Migrating Mail Data beetween Datacenters - Looking for Ideas | We already managed to migrate Hyper-V VMs (more than 70 TiB) by 3rd Party Backup Softwares with 10 minutes downtimes. However there is that one dirty job to handle; 4 TiB of Mail Data which provisioned by 8 TiB LUN. Mail Server VM access this LUN by Virtual FC Adapter (vSAN). What i plan to do is something like below. ... | Use a migration tool like Zerto for this process to minimize potential downtime. | 3 | 3 | 103 | 2020-09-26T21:23:04.907 | database_errors | serverfault.com | |
44,738 | how to update column in data frame based on condition | How to update column IsLCap column in dataframe based on Lvalue column whether it is capitilized or not. df.loc[df.Lvalue.istitle(), 'IsLCap'] = 1 # need to be corrected getting an error -AttributeError: 'Series' object has no attribute 'istitle' | You access string functions with [CODE] . This should work: [CODE] Update To check the length of the strings in the column you can use the string method [CODE] : [CODE] Pandas Series string methods | 1 | 3 | 7,329 | 2019-01-28T20:27:01.763 | data_quality | datascience.stackexchange.com | |
413,175 | .html Pages not working in IIS 7.5 (64 Bit OS) | I create a Web application on my 32 BIT OS (Windows XP) and then i successfully add this WEB Application to IIS 7 on Windows 7 (64 Bit) on my Friend's PC. Since .aspx pages are randering fine but .html pages are not randering in Windows 7 (64 Bit). Since I have also added [CODE] in my Windows 7 PC, but with no luck I g... | Vlad's answer on the question you reference is relevant to Server 2008, not Windows 7. In Windows 7, you need to go into [CODE] , into Windows Features and enable the Static Content feature: I would remove the script mapping you created before doing that. | 1 | 2 | 2,294 | 2012-08-01T07:22:42.847 | infrastructure | serverfault.com | |
215,345 | SIZE is no valid input at this position error in MySQL 5.7 | I want to create user-defined function including SELECT. I tried below SQL script. [CODE] I do not why occur an error "SIZE is no valid input at this position". I missing something? | Function need a static definition of the returning type. Size of VARCHAR should be declared explicitly like [CODE] . | 1 | 1 | 468 | 2018-08-20T04:36:24.023 | database_errors | dba.stackexchange.com | |
96,820 | PostgreSQL on RDS: How to bulk import data with FK constraints? | Is there an efficient way to bulk import data into a PostgreSQL 9.4 database on RDS that makes extensive use of foreign key constraints? The standard method of using pg_restore fails because RDS does not appear to allow you to disable system triggers. For example, using the command: [CODE] Results in error messages suc... | Here's a workaround that works for me: Create the schema then dump the tables only, in order such that no FK constraint checks fail: [CODE] pg_restore will now work. | 1 | 2 | 1,698 | 2015-04-01T18:04:24.470 | data_quality | dba.stackexchange.com | |
208,975 | How to SELECT value Where value = ''another SELECT" | First of all I searched for correct answer but I didn't find. I have a function: [CODE] but that function is not working, MySQL says that error is near SELECT id FROM `base Why I'm getting this error? How to write that function correctly? | You can write: [CODE] | -1 | 1 | 5,703 | 2018-06-07T08:12:56.517 | database_errors | dba.stackexchange.com | |
97,106 | What is the disadvantage of using a completely normalized training set for Deep learning? | Batch normalization is generally preferred in deep learning, which normalizes the output of the activation function in each layer (as an output from the cost function differs depends on the input). Instead, if the training set is normalized before passing through layers, does this solve the same problem? | Batch normalization supposedly solves the issue of covariate shift within each layer . Even if you start out with a normalized/whitened dataset, after an input is passed through a layer of the network it may no longer be centered around 0 with unit variance. For example, if one considers a layers of the same size with ... | 6 | 5 | 362 | 2021-06-25T16:22:05.790 | data_quality | datascience.stackexchange.com | |
227,556 | Windows 2008 Terminal Service: per-user timeout configuration | I have a windows 2008 box running terminal services and i used group policy to setup a timeout of 10 minutes for idle sessions which works great for all users. The issue is that i have 3 users which i need to override the timeout with a bigger value. Microsoft KB ( http://technet.microsoft.com/en-us/library/cc758177%28... | What that means is that the policy can be set per computer and will affect everyone logging on to that server or it can be set per user and will affect every user to which that particular GPO applies. What you'll need to do is to create 2 GPO's for that setting: 1 for the 10 minute timeout and 1 for the longer timeout,... | 0 | 1 | 3,927 | 2011-01-27T11:24:05.747 | infrastructure | serverfault.com | |
203,457 | AG replicas across two FCIs | I have the following setup: One Windows cluster consisting of four cluster nodes: A, B, C, D. Cluster nodes A and B in one data centre, cluster nodes C and D in a second data centre. SQL failover cluster instance SQLFCI1 defined over nodes A and B, SQL failover cluster instance SQLFCI2 defined over nodes C and D. SQL a... | Is this a valid setup ? Yes. This configuration is detailed here: AlwaysOn Architecture Guide: Building a High Availability and Disaster Recovery Solution by Using Failover Cluster Instances and Availability Groups If you want automated failover between data centers, look at using a Cloud Witness for cluster quorum. | 0 | 1 | 151 | 2018-04-10T06:07:17.593 | database_errors | dba.stackexchange.com | |
1,006,503 | Docker swarm manager and node simultaneously | Due to limitations in physical ressources, I need to know if is it possible to declare the same host as manager and node at the same time? I can't find anything in the official documentation. In case of it is technically possible, is that a good practice? Could it cause any problems? | Docker swarm mode managers are implicitly nodes in their functionality. Each node in a swarm must have a role of manager or worker. However, if you do not include a constraint that a workload must run on worker nodes, then it can and will run on swarm mode manager nodes. The reason to break up this functionality onto s... | 1 | 2 | 1,943 | 2020-03-11T13:22:13.610 | pipeline_ops | serverfault.com | |
54,237 | Is it valid to shuffle time-series data for a prediction task? | I have a time-series dataset that records some participants' daily features from wearable sensors and their daily mood status. The goal is to use one day's daily features and predict the next day's mood status for participants with machine learning models such as linear regression. I think cross-validation could be a g... | It depends on how you formulate the problem. Let's say you have a time-series of measurements [CODE] and are trying to predict some derived series of values (mood) [CODE] into the future: [CODE] Now, if your model has no memory, that is, it is merely mapping [CODE] , then the model does not care what order it sees [COD... | 10 | 8 | 10,325 | 2019-06-21T17:48:55.183 | airflow_errors | datascience.stackexchange.com | |
180,877 | What is the lifecycle for loading a Linux Desktop Environment? | I'm looking into delving into a bit of custom OS work (and yes I understand that doing any development at the DE level or lower on an OS is extremely complex and not a light thing to undertake, curiosity is driving this though), I'm in the research phase right now, digging around and learning by example from the source... | Well, I never actually did what you want to do, but I have some ideas you may consider. If I were to try what you are doing I would look for a very basic, ultra-minimalistic DE, so that there is little noise and maybe I can build on it. See an extensive list here: http://xwinman.org/others.php About how things are star... | 4 | 2 | 626 | 2012-12-28T18:52:16.963 | api_errors | softwareengineering.stackexchange.com | |
406,712 | RabbitMQ Erlang Cookie | I have RabiitMQ running on a CentOS 5.5 box, with Erlang R15B01. RabbitMQ was running just swell until I upgraded to the latest version (2.8.4). When I startup RabbitMQ using the command: [CODE] In the RabbitMQ startup_log I'm seeing the following: [CODE] The Erlang cookie has the following permissions: [CODE] Has anyo... | Well, that error message tells you exactly what needs to happen: [CODE] | 7 | 9 | 14,617 | 2012-07-11T10:57:16.010 | infrastructure | serverfault.com | |
141,879 | Finding out why Dell Controller is Degraded | I installed open manage on a couple of my PE 2950s for snmp monitoring of the RAID. All the checks seem to come back okay except for controllerState: [root@aMachine ~]# snmpwalk -v 2c -c bestNotToPostPasswords myMachine -m +StorageManagement-MIB controllerstate StorageManagement-MIB::controllerState.1 = INTEGER: degrad... | The controller state requires that both the Controller Firmware and the kernel module (driver) be up to date. Once I updated both of those the controller state changed to "Ready." | 3 | 3 | 17,504 | 2010-05-14T13:24:08.703 | pipeline_ops | serverfault.com | |
429,444 | Getting a "403 access denied" error instead of serving file (using django, gunicorn nginx) | Getting a "403 access denied" error instead of serving file (using django, gunicorn nginx) I am attempting to use nginx to serve private files from django. For X-Access-Redirect settings I followed the following guide http://www.chicagodjango.com/blog/permission-based-file-serving/ Here is my site config file (/etc/ngi... | You should use [CODE] : [CODE] instead of your [CODE] : [CODE] | 2 | 1 | 11,923 | 2012-09-18T12:11:09.403 | api_errors | serverfault.com | |
8,627 | Shared Lock issued on IsolationLevel.ReadUncommitted | I read that if I use IsolationLevel.ReadUncommitted, the query should not issue any locks. However, when I tested this, I saw the following lock: Resource_Type: HOBT Request_Mode: S (Shared) What is a HOBT lock? Something related to HBT (Heap or Binary Tree lock)? Why would I still get a S lock? How do I avoid shared l... | What is HOBT lock? A lock protecting a B-tree (index) or the heap data pages in a table that does not have a clustered index. Why would I still get a S lock? This happens on heaps. Example [CODE] Output [CODE] [CODE] Output [CODE] [CODE] According to this article referencing Paul Randal the reason for taking this [CODE... | 11 | 14 | 3,348 | 2011-12-01T02:25:00.923 | database_errors | dba.stackexchange.com | |
14,031 | Jenkins: Dynamically git clone only the files required for a particular job from a monorepo | We have a huge ~20GB monorepo. For a particular Jenkins job, we do not need to clone the entire repo but only need a few sub-directories. The solution for this is of course git sparse checkout . However this is quiet cumbersome to set up and maintain. You probably have to run the job a few times to make sure you did no... | Assuming I'm understanding you correctly, there's a much simpler way to do this. If you know the path to the file(s) that you need within the git repo, you can use [CODE] . This fetches a single file directly from a remote repository, so it always grabs the latest version. I've used this a few times from within a Jenki... | 0 | 1 | 6,178 | 2021-06-01T05:49:02.673 | pipeline_ops | devops.stackexchange.com | |
225,490 | Error Correction: Conversion Failed when converting the nvarchar value 'ALPHANUMERICVALUE' to data type int | I am running into this error whenever I run my query. I believe to fix this issue I have to Format the column which holds those values into a number by itself. I have already tried the Format() and Replace() functions, but they did not work for me. Any other suggestions? [CODE] The e.AccountingCode column contains the ... | The problem seems to be on the Coalesce's. Returns the data type of expression with the highest data type precedence. If all expressions are nonnullable, the result is typed as nonnullable. Source For example: [CODE] Gives the error: [CODE] This works fine: [CODE] Result: [CODE] If the lag function on e.accountingcode ... | 0 | 2 | 1,937 | 2018-12-20T15:20:00.813 | warehouse_errors | dba.stackexchange.com | |
87,431 | Resource cost of a blocked query | I'm currently reviewing a case where an SSRS server is experiencing frequent blocking and deadlocking. The reports are not business-critical, and they are frequently killed to alleviate the blocking. However, this same SQL Server has some critical databases on it (it's sharing a sql server with a large sharepoint farm)... | A request that is being blocked does no work. Here's an example: Create a blocking query [CODE] Run a query that will be blocked by the above session [CODE] Now look at any "work" this blocked request could be doing (query [CODE] for this blocked session, and then wait some time and query again to compare/contrast): [C... | 2 | 2 | 273 | 2015-01-02T14:10:16.457 | bi_errors | dba.stackexchange.com | |
812,144 | Windows server 2012 PPPoE share to NAT | I have dedicated server (Windows Server 2012) and two network ports on NIC, my ISP gives internet connection via PPPoE. One network port is using for ISP cable, and second one for Windows 8.1 local PC. I can share internet connection only if ISP cable goes thought router (in that case I have two lan connection on windo... | Okay, I solve problem why ICS is not working after sharing PPPoE adapter, all I need to do is to restart the ICS (SharedAccess) after connecting to PPPoE, then NAT is working perfectly. Very weird ... | 0 | 0 | 1,199 | 2016-10-30T12:03:54.123 | infrastructure | serverfault.com | |
206,585 | Cycles or multiple cascade paths with on delete set null: really? | I'm asking this question to check if my reasoning about cascaded delete is correct and if I'm not overlooking anything. I understand the behavior and I'm not asking why it is implemented with the current restrictions. When we try to create a table containing a self reference like this: [CODE] We get the infamous except... | From Error message 1785 occurs when you create a FOREIGN KEY constraint that may cause multiple cascade paths You receive this error message because in SQL Server, a table cannot appear more than one time in a list of all the cascading referential actions that are started by either a DELETE or an UPDATE statement. For ... | 10 | 5 | 6,071 | 2018-05-13T09:59:26.003 | database_errors | dba.stackexchange.com | |
256,737 | Is this caution in Android API documentation an indication of suboptimal design? | The content below is from the Android developer site : According to the phrase it is expecting the developer to store this info in his head. Shouldn't this be simple if they kept only [CODE] and let user to set both, either or none, in which we don't have to remember this caveat since it is taken care by design. As the... | From the fragment you show there is no good reason - if both URI type and MIME type can be present simultaneously, it seems strange to null either when setting the other. There might be hidden reasons, but I can't think of any right now, therefore I'm leaning towards "This just isn't a very good API". (Note also that t... | 3 | 6 | 239 | 2014-09-19T12:56:17.307 | api_errors | softwareengineering.stackexchange.com | |
1,114,247 | How best to deal with large dovecot inboxes? | I have a small number of mail users (abut 100) and some have comparatively large (10Gb+) mail boxes. I'm running Ubuntu using postfix and dovecot Maildir format. I could just keep adding storage, but perhaps a cheaper way is to extract attachments older and larger than a threshold, and put these in a place for user dow... | Unlimited mailbox sizes require an unlimited budget Since hardly anybody gets that, even the free e-mail providers that gave unlimited storage stopped doing that AFAIK, you need set set some (more or less hidden) limits. The traditional solution: mailbox quota. That caps the amount of storage your mail users can consum... | 1 | 0 | 499 | 2022-10-28T13:20:12.050 | infrastructure | serverfault.com | |
416,970 | I got some message about suspended site, which I have to debug, how do I proceed? | Possible Duplicate: My server's been hacked EMERGENCY The hosting company supplied an email to its client and the client wanted some help from me. the message states: [CODE] the code looks like this in the files mentioned above. What these lines of codes do I cannot say. Not a programmer as well. Since the files are lo... | The file you provided is definitely a remote triggered mail-bot. I quickly formatted it and it assembles an email and sends it using [CODE] . I didn't look into details how it works, but the general idea is pretty obvious. Interestingly it showed a syntax error for me, so it might not have worked ever. You need to clea... | 1 | 1 | 274 | 2012-08-13T13:35:14.080 | data_quality | serverfault.com | |
841,375 | Permission difficulties with NFS-mounted /var/spool/mail for dovecot and procmail | My mail server setup worked for years. Recently I've started experiencing the following problem: Mail setup: sendmail+dovecot+procmail Host file server: CentOS 6.8, NFS exports mail directories to... Mail server: CentOS 7.3, running as guest VM on host via libvirtd/qemu, NFS mounts /var/spool/mail from host. Symptoms: ... | I managed to solve this problem, though it revealed another (less crucial) issue. The clue was that occasionally, when I would list /var/spool/mail on the NFSv4 client, I would see something like this: [CODE] Then when I'd do an "ls -lh" immediately afterwards, I'd see: [CODE] That number, 4294967294, is -2 in 32-bit u... | 0 | 1 | 1,354 | 2017-03-29T17:02:52.837 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.