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 |
|---|---|---|---|---|---|---|---|---|---|---|
276,540 | MySQL constraint to prevent combinations of columns | I have a table that represents files in directories. [CODE] I want to put a constraint on that table to make sure a file can never be in 2 directories. But the same file can be in the same directory multiple times. Example of permitted condition: [CODE] Example of failed condition: [CODE] The question has been asked fo... | you can use Triggers for that. [CODE] [CODE] [CODE] ✓ [CODE] file has another directory [CODE] dir | file :---- | :----- dir_A | file_0 dir_A | file_1 dir_A | file_1 dir_B | file_2 dir_C | file_3 dir_A | file_1 db<>fiddle here For an BEFORE UPDATE TRIGGER you can do something eual. Of course you can always change your ... | 0 | 1 | 97 | 2020-10-05T16:24:53.813 | data_quality | dba.stackexchange.com | |
623,167 | Can bad DNS replication cause a user to loose connectivity to a shared drive | We have multiple users that loose connections to shared drives on a particular server. I am able to ping the server hosting the files but can not see the host, or directories. Also its not 1 user, its almost all users accessing the particular drive at that particular time. | Unless the record is changed to a different value than it used to be and the users' cache is not refreshed, I doubt it. All the users encountering this issue at the same moment does not seem to be related to the DNS to me. If your DNS server is not the same as the one that is not accessible you could look into the logs... | -1 | 0 | 56 | 2014-08-21T21:20:39.307 | database_errors | serverfault.com | |
138,115 | Unable to change innodb_log_file_size in MariaDB Galera Cluster 10.0 | I have a MariaDB Galera cluster (v. 10.0.19) with 3 nodes. I want to increase the innodb_log_file_size (i.e. the size of the InnoDB redo log files) on one of the nodes to match what it is on the other two nodes, i.e. 750M. On this particular node, just changing the variable in the .cnf file + restarting mysql does noth... | In my experience setting up MariaDB 10.1 cluster, this behavior happens due to an override cnf file. I had the same problem, that changing a setting in [CODE] and restarting mysql but the change was ignored. I found on ubuntu there is [CODE] which overrides many settings. I comment out in the override file the value I ... | 0 | 1 | 8,209 | 2016-05-10T13:41:03.170 | database_errors | dba.stackexchange.com | |
251,740 | Query to find rows containing ASCII characters in a given range | I am using some scripts from another topic, but the accepted answer isn't working for all my data scenarios. I would have asked my question on the original How to check for Non-Ascii Characters post, but I don't have enough reputation to comment or up-vote as of yet. Questions: Why is the accepted answer not working fo... | Why is the accepted answer not working for char(150)? Actually, it does. The problem is your test is bad / invalid. You test column, [CODE] , is using [CODE] instead of [CODE] . The character itself works in both datatypes, but the behavior is different due to how it is being used in each case: In the [CODE] function (... | 7 | 5 | 14,052 | 2019-10-23T03:41:29.413 | database_errors | dba.stackexchange.com | |
777,259 | Creating a 2nd virtual disk with PERC H700 | I currently have just 1 virtual disk set up with raid 0 for my OS, and would like to create a 2nd virtual disk for just storage. Will I have any data loss/issues with the existing virtual disk by creating a 2nd VD and adding just the new unassigned physical drive to it? Might be a stupid question but I'd rather be sure... | Please provide more details about your current raid configuration. If you used all disks for RAID-0, then you'd better backup everything important and start from scratch. But, be aware that you won't be able to create 2 RAID types with 2 disks only. Cheers! | 1 | 0 | 1,112 | 2016-05-17T13:16:12.720 | infrastructure | serverfault.com | |
417,077 | Can't Execute PHP Script on CentOS 5.8 / Apache 2 | I've recently been doing some work on a friends web server, however I'm having trouble executing PHP scripts. The server is CentOS 5.8. This is what the Apache logs look like after trying to execute a script (test.php, permission 0644): [CODE] And this is the only message I get when I visit the script: [CODE] I've been... | Without more information these are the suggestions I can give you. The 'Premature end of script headers' means the script error'd before sending the headers. So one solution for testing the problem would be to turn off the buffering of output. If that doesn't work. The most obvious one would be if the script has non un... | 0 | 0 | 2,334 | 2012-08-13T17:09:25.667 | infrastructure | serverfault.com | |
31,539 | Remove sql server service from windows 7 | I had installed and later uninstalled SQL Server 2005 . I used registry cleaner tools and deleted all files related to SQL Server . Still the services console shows entry for previous installed database instance name . Services management console I get this entry in Description column. [CODE] How to delete them otherwi... | Well, the crude way is to run regedit as admin, go down to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services and remove the service entry from registry and reboot... Or perhaps use the sysinternals process explorer tool to do the same thing.... | 2 | 1 | 5,643 | 2013-01-07T12:56:14.987 | database_errors | dba.stackexchange.com | |
421,879 | Amazon EC2 with XMPP infrastructure | A newbie question on Amazon. I want to install within Amazon EC2 multiple servers based XMPP ejabberd, probably within a cluster and if possible with a load balancer. The first question that arises is about the DNS: I have a registered domain (eg example.com) which the XMPP server instances are, for example, xmpp1.exam... | You need to point your [CODE] hostnames to the EC2 instances, either using CNAME records to Amazon's hostnames: [CODE] or using A records directly to the IP: [CODE] The advantage of the CNAME approach is that other EC2 instances looking up the name will resolve to the internal IP. Your SRV records should stay the same ... | 1 | 2 | 1,636 | 2012-08-28T06:21:02.207 | database_errors | serverfault.com | |
44,706 | Optimizing disk space for MyISAM tables: what is the benefit of ALTER and ANALYZE if you already do OPTIMIZE? | Per this post , in order to optimize the storage of a MyISAM table, you need to: [CODE] It's obvious what OPTIMIZE does for disk space but what does ALTER and ANALYZE do when used after OPTIMIZE? I am asking specifically about disk storage , so for example, I don't care that ANALYZE improves join performance, etc. | That was my old ServerFault post from two years ago . Forgive me, it is slightly misworded. It should read: As for MyISAM, you need to periodically run one of the following: OPTIMIZE TABLE [CODE] ; ALTER TABLE [CODE] ENGINE=MyISAM; ANALYZE TABLE [CODE] ; OK, I just fixed it in ServerFault. CLARIFICATION [CODE] performs... | 4 | 3 | 3,902 | 2013-06-17T18:25:51.983 | warehouse_errors | dba.stackexchange.com | |
1,156,189 | Windows Server 2012 R2 - Adfs - renew certificate | I'm trying to replace the certificate on ADFS. I've got wildcart certificate *.abc.pl, following by these steps: Log onto the ADFS server - done Add the new certificate to the server. Make sure this is added to the personal certificate store for the computer account. I usually do this using the certificates snap-in in ... | So I found this thumbprint via netsh http show sslcert (but still stuck) enter image description here Edit: how to delete problematic bindings: powershell (admin) →netsh http show sslcert http delete sslcert hostnameport=www.contoso.com:443 after that, command AdfsSslCertificate –Thumbprint 00112233445566778899aabbccdd... | 0 | 0 | 103 | 2024-03-13T10:28:52.647 | infrastructure | serverfault.com | |
744,124 | File issue with NGinx & PHP-FPM on separate servers | I've done a bit of research on running NGinx and PHP with FastCGI on separate servers, and have successfully set it up on test virtual machines. I've ran into the problem that these articles describe... https://code.google.com/p/sna/wiki/NginxWithPHPFPM Nginx load balance with dedicated php-fpm server ...which is that ... | If you really want to do this, remove this from nginx under your \.php location: [CODE] That is what causes it to check the filesystem before passing the request off to the fcgi upstream. Also verify that the fcgi process has the root directory set properly so it can't read random php files now that nginx can't do exis... | 4 | 1 | 6,144 | 2015-12-19T00:35:32.987 | api_errors | serverfault.com | |
36,155 | Is it possible to enforce unique values in a column, excluding nulls? | I have a business requirement to have a FK field on [CODE] referencing [CODE] . If there is a value in [CODE] , it should be unique, but it's not mandatory, so there could be multiple records with null values. Is it possible somehow to enforce this type of uniqueness on the DB level, using either an index or a constrai... | You can create a unique filtered index as below. [CODE] For versions of SQL Server prior to filtered index support (pre 2008) see this related question . | 5 | 9 | 499 | 2013-03-07T09:36:52.750 | data_quality | dba.stackexchange.com | |
98,654 | Numeric cell with 0 not null | I have the following query (in a Oracle Database): [CODE] The problem is that if I don't have any row with * in COD, the result is a empty cell and I want it 0. How can I do that? Thanks! | Use [CODE] . [CODE] That'll make the [CODE] function return [CODE] if it would ordinarily return [CODE] . | 0 | 0 | 15 | 2015-04-23T10:46:38.037 | database_errors | dba.stackexchange.com | |
16,797 | Overloaded Database - Batch Updates vs Atomic/Single Updates | We have on overloaded database which is now receiving failed transactions consequently. The proposed solution is to create a 2nd database that taskes all the (ecommerce) transactions initially and processes & persists them. Then, eventually, the current/old database will be updated. That's the simple overview. The ques... | I agree with @gbn, can you share more details about what constitutes "load". First take a look at your server level wait types to get a feel for where your resource crunch points are. Also identify your poorest performing queries and those that are most frequently executed. These are where you should target your perfor... | 1 | 2 | 237 | 2012-04-20T05:38:36.240 | warehouse_errors | dba.stackexchange.com | |
216,322 | Which column type for "direction"? | I want to create a table which has a column named "direction". This column is either "in" or "out". It is not nullable and it can only contain these two values. Never other values. Which data type is most feasible? I use in PostgreSQL. It is 100% ok if the data type is PG specific (only known to this database implement... | You can create an enumerated type for this: [CODE] | 0 | 2 | 135 | 2018-08-30T14:31:43.143 | database_errors | dba.stackexchange.com | |
143,114 | What's the best practice for taking MySQL dump, encrypting it and then pushing to s3? | This current project requires that the DB be dumped, encrypted and pushed to s3. I'm wondering what might be some "best practices" for such a task. As of now I'm using a pretty straight ahead method but would like to have some better ideas where security is concerned. Here is the start of my script: [CODE] Obviously th... | first you can create a 'user' in mysql that has read-only permissions for the database in question, that would reduce potential destructive damage, were an attacker to gain access to your backup script. then you could use [CODE] or [CODE] encryption on your backup before or after you compress it, and you can do that wi... | 8 | 9 | 6,140 | 2010-05-18T19:47:22.247 | database_errors | serverfault.com | |
106,234 | Handling missing data for the majority class | I'm working with an unbalanced (10:1) dataset for classification. I also have a bunch of missing data on certain columns. If I discard them all, I still have a 5:1 ratio, so I guess I can afford to discard them? What should I do with my majority class rows? Predict/Fill the missing values and use them all for undersamp... | I am quite reluctant to discard data because you might never know how they really affect the overall dataset. I would only discard them if they make up very little portion of the dataset (maybe like 5%?). For your situation, it reduces half of the majority dataset which is ALOT. I would suggest you try and find correla... | 1 | 2 | 91 | 2021-12-18T08:12:24.790 | data_quality | datascience.stackexchange.com | |
464,270 | Server is pingable on some ips but not on others | We have comcast business class internet with 5 static IPs. 4 out of 5 of them are assigned to a server that sits right behind the smc. The smc has DHCP disabled so it should be in pass through mode. Everything was working fine this morning, but tonight I tried to RDP into the server... no connection. so I tried a ping.... | Problem solved! Seems stupid of me that I ignored windows's very clear warning. I have two nics on the computer. One was connected directly to the SMC, but the other was on a private network. As soon as I disabled the Private interface the server could be contacted through ping on all four IPs Everything seemed ok up u... | 1 | 1 | 114 | 2013-01-09T04:04:48.243 | infrastructure | serverfault.com | |
858,530 | Conntrackd cache not showing tcp sessions | I am experiencing a somewhat weird issue with [CODE] . I have created an environment with an active/backup scenario where sessions will be replicated to the backup after a failover and vice versa. I have followed the official manual of the tool and other tutorials that pretty much use the same config. The issue I creat... | After a lot of reading, re-configuring and external help, the problem was solved (finally the nightmare is over). The problem was in the [CODE] part of the configuration, not the rule-set that I thought at first. In the tutorials that I followed they say: The "Address Ignore" block should list ALL the IPs the firewall ... | 1 | 2 | 875 | 2017-06-29T10:16:42.950 | database_errors | serverfault.com | |
319,000 | How to force PostgreSQL delete statement to use unique constraint index? | I have a PostgreSQL table defined with a unique constraint on 4 columns: [CODE] And this table has a lot of rows (it's +/- 400GB and grows by 8GB each day) - I think it's about 2.5 billion rows at this point. I want to delete rows identified via column [CODE] , but unless I specify either [CODE] or [CODE] in the where ... | No, you cannot force PostgreSQL to use an index for a command. You have to make the index appetizing enough for the planner to choose it. Based on your description of your table activity, I suspect your column statistics are inaccurate and that is throwing off plan choice. You can also influence the planner by changing... | 0 | 2 | 976 | 2022-10-31T12:40:17.327 | data_quality | dba.stackexchange.com | |
1,150,133 | Need to allow only specific file extensions via Apache config | I'm struggling with allowing only specific file extensions via Apache (2.4.58). I'm doing this in httpd.conf. The problem is if I deny all files at first either like that: [CODE] or just [CODE] within required [CODE] and then enable what I need like this: [CODE] This seem to be disabling the directory index logic and w... | Ok, resolved this [CODE] using hint from FilesMatch configuration to Restrict File Extensions served | 0 | 0 | 151 | 2023-12-20T12:30:36.147 | infrastructure | serverfault.com | |
76,089 | Error 1236 From Master After Restored Replication | I've been trying to restore a broken replication caused by power interruption. upon checking the slaveDB , it was already broken so I setup a new replication. And upon supposedly completing the replication, i'm stuck with this: Got fatal error 1236 from master when reading data from binary log: 'Misconfigured master - ... | This is a guess, but please note that the option [CODE] cannot be activated in a hot way . In my experience, this is a common cause of problems when setting up the replication for the first time, specially because the master accepts the following syntax without complaining : [CODE] And the server id seems to have taken... | 4 | 4 | 7,396 | 2014-09-09T12:16:30.763 | database_errors | dba.stackexchange.com | |
107,319 | Approaches for matching leads to salesmen | I'm starting to tackle a new problem where we are trying to optimally match new leads (perspective customers) for our product to our sales representatives in the hopes of improving bottom-line metrics like conversion rate, average sale price, etc. We have a bunch of data from the leads when they fill out their info on ... | I'm going to make a bunch of assumptions about the shape of your data and model choice, just to make the setup simple and concrete. Hopefully the broader ideas will generalize from there. Suppose you wrangle your data into a matrix with a response vector of zeros and ones representing whether a sale was made. This is a... | 0 | 0 | 216 | 2022-01-21T16:19:46.983 | data_quality | datascience.stackexchange.com | |
1,044,614 | Windows 10 Pro as RDP Host with SSL Certificate. How? | I have exhausted my patience looking for how to add an SSL certificate to my Windows 10 Pro machine so that when I connect from another place, I don't get certificate errors. So far, every guide I run into eventually turns out to be for Windows Server. What I've tried: I click on start menu then type [CODE] and hit Ent... | On client, same rules apply. You have to assign certificate to RDS configuration. For example, using PowerShell: [CODE] where [CODE] is a thumbprint of your certificate. These commands must be executed in elevated shell. | 3 | 7 | 5,108 | 2020-12-01T22:15:26.620 | api_errors | serverfault.com | |
198,905 | mdadm lvm and ext4 slowness - How can I speed it up? | I can't figure out why I'm getting such terrible times out of my mdadm and in particular the lvm partitions in it. I made the raid: [CODE] I then created the physical volume, volume group, and logical volumes, I then formatted the logical volumes to ext4 using the following commands I got from here: http://busybox.net/... | I haven't performed many tests, but I noticed that RAID5 with even number of devices is slow - there are read-modify-writes even with simple [CODE] to md. | 0 | 1 | 2,950 | 2010-11-06T13:07:14.070 | infrastructure | serverfault.com | |
343,015 | Windows file uploaded to ubuntu server automatically assumes 777 permissions | Do you know how can I set permissions beforehand for a folder that I want to upload on a linux server? I'm working on a piece of software (php/mysql) on my local windows machine, I then tar the folder and upload it to my ubuntu web server. When I untar the contents, all the files and folders have automatically 777 perm... | Since Windows does not have Unix-style permissions, tar-ing up files on Windows will not result in usable Unix permissions when it is unpacked on a Unix system. When creating, use --mode to set a specific mode. When unpacking, use --no-same-permissions to ignore the stored permissions and use the current users' umask. ... | 0 | 2 | 261 | 2011-12-21T04:24:14.893 | database_errors | serverfault.com | |
892,205 | Cannot join domain despite able to ping to domain to domain controller by domain name and ip | I have a Windows Server 2012 R2 unable to connect to an existing domain. Previously it has successfully joined the domain and someday it appears to not join the domain anymore, when we try to unjoin to rejoin the domain, it failed. This is the error details: Note: This information is intended for a network administrato... | Assuming the firewall isn't the culprit and you haven't messed with your DNS settings, try the following: Take it out from a domain joined network (as Admin, launch ' SystemPropertiesAdvanced.exe ', then under 'Computer Name' tab click [Change...] and select Workgroup 'WORKGROUP'. Click [OK] > [Close] and reboot. Launc... | 2 | 0 | 4,441 | 2018-01-15T07:12:17.280 | infrastructure | serverfault.com | |
419,720 | Linux, Ubuntu adobe air issue | I am running one Album sample for our project demo. Using adobe flash builder 4.6. Finally I am converting to .air application to show the demo easily. The problem is application is working fine in my local system but not in the client system. We both are using the same version of latest software Adobe flash player -11... | Beginning June 14 2011, Adobe AIR is no longer supported for desktop Linux distributions. Users can install and run AIR 2.6 and earlier applications but can't install or update to AIR 2.7. The last version to support desktop Linux distributions is AIR 2.6. You can get Adobe AIR 2.6 here . Read more here . | 0 | 0 | 113 | 2012-08-21T17:23:57.527 | infrastructure | serverfault.com | |
624,785 | Can I trust windows 2012 regarding the amount of installed memory? | I am running Windows 2012 on a Intel Core i5-2467M with supposedly 12GB of RAM. I say supposedly because Intel website says this processor supports a maximum of 8 GB. Microsoft System window recognize the 12 GB though. Am I really making use of the 12GB? I don't know if it just in my mind, but the computer runs a littl... | Yes, you can trust the operating system is using all that memory (if it's the 64-bit version). The specification for this processor states that it has 2 memory channels. The datasheet for 2nd generation i5 processors also mentions that this processor family can work with 2 DIMMs per channel (supported DRAM device sizes... | 1 | 0 | 71 | 2014-08-28T17:20:27.547 | infrastructure | serverfault.com | |
29,897 | How can I restore the sql_variant_property of baseType back to a table variable in SQL Server | Ok, I know the title is confusing but here it goes. BTW I am using SQL Server 2008 I have a table that I am trying to use as a storage container. It has 3 columns: [CODE] The way I want to use this is to pass a [CODE] to a function and have the function return a table variable that is accurately typed. I have the proce... | A lot of problems with what you are trying that I just don't think this particular approach is going to work (I think the goal is interesting): [CODE] - this is basically schema-bound. You can't alter the schema of the returned table - I see later you are going to attempt to "ALTER" this variable - that's just not goin... | 2 | 4 | 1,944 | 2012-12-05T20:54:11.573 | pipeline_ops | dba.stackexchange.com | |
44,455 | QoS for very basic LAN/WiFi network: Do I need SmoothWall or OpenWRT or just good advice? | Here is the basic situation/topology of the network I manage: Residential, but we are a co-op, so we have a business-class contract with ISP. The residents are college students, so there is quite a bit of everything, including P2P (torrenting), gaming, file sharing (internal), as well as crucial needs for the basics li... | Herea a shot in the dark, but if you look on ebay you can get some truly awesome deals on EoL'd Cisco's, I'm talking 2600/3600, with that you can do exactly what your proposing, There is a need for a little CLI config, but after that you will be truly impressed with what it can do for you, i.e shaping torrents to a min... | 2 | 2 | 4,400 | 2009-07-23T06:28:50.180 | infrastructure | serverfault.com | |
106,882 | Is there any point in having layers in a neural network for regression problems? | In my textbook I read that an MLP and linear activation functions for the hidden layers can be reduced to a simple input-output system, i.e. no hidden layers. This makes sense to me. Later on I read that for regression problems, the linear activation function is commonly used (along with MSE loss function). How does th... | In regression, it makes perfect sense to have multiple hidden layers to model the complex relationships between inputs and outputs. However, those layers need to have non-linear activation functions, otherwise, they would be equivalent to a single layer. When your textbook said that "linear activation function is commo... | 0 | 0 | 545 | 2022-01-09T16:06:24.493 | data_quality | datascience.stackexchange.com | |
1,092,818 | AWS ALB for TCP socket connections on a custom port number? | I have an application load balancer (ALB) and a number of web servers behind it. Apart from HTTP and HTTPS, the web servers also serve long-lasting TCP socket connections on port 52345 . When a client socket tries to connect to the ALB on port 52345 , it fails, because ALB does not have a listener on this port. When I ... | The ALB is specifically for http and https applications, not for general TCP. If you want a TCP load balancer you should consider using a NLB ( Network Load Balancer ). They scale to extremely high load and have some pretty useful features. The NLB can load balance any port including http/80 and https/443 but it's not ... | 1 | 3 | 4,150 | 2022-02-06T07:06:44.417 | infrastructure | serverfault.com | |
907,701 | Specifying a MAC address of a new virtual machine instance on Google Cloud | We are planning to move a Windows 2012 Server to Google Cloud, but we have one issue. We are going to reinstall on this server an application that uses the server’s MAC address for its licensing so we have to maintain the MAC address of the old server. Can we specify the MAC address of the new server during the deployi... | Unfortunately, currently customizing MAC address is not supported in Google Cloud Platform VMs and thus it can not be specified during the deployment. However, there is an open feature request for it in the Google Cloud Public Issue Tracker. I would recommend anyone who has similar request to star the feature request t... | 0 | 0 | 2,110 | 2018-04-15T07:49:25.513 | infrastructure | serverfault.com | |
28,791 | Cache all mysql table | Maybe it sound's like i'm an idiot... But i'm developing app with huge db on RoR. Also i see that if i do some query and after that do it one more it is doing much faster, becouse it has been cached... But could i send all my table data to cache via some query, to improve speed, so that simple my table will be in ram m... | Certain database engines do support pinning objects to cache, Oracle and MS-SQL to name a couple. MySQL does not have this option, as far as I know. On the other hand I cannot think of many use cases for this option, as modern database systems are very good at managing cache. MySQL offers block caching with an LRU algo... | 1 | 1 | 8,806 | 2012-11-16T11:09:05.087 | database_errors | dba.stackexchange.com | |
134,157 | What is the difference between CREATE INDEX and ALTER TABLE ADD INDEX? | I have searched the web but I have failed to find a conclusive answer for this question. Is there any difference between [CODE] and [CODE] ? Are there any problems that may arise when I use one or the other or do both work the same way? Server version: 5.5.32 - MySQL Community Server (GPL) | The [CODE] syntax requires an index name, whereas the [CODE] syntax doesn't. This question as already been asked and answered and should be marked as a duplicate. | 6 | 5 | 7,433 | 2016-04-02T08:00:04.730 | database_errors | dba.stackexchange.com | |
325,428 | Set a column value using the (remote) default when inserting a row into a foreign table | I have a database with a table whose primary key is a [CODE] column, or a column with a locally-computed default value that prevents conflicts, for instance: [CODE] I also have a second database, where I use the [CODE] foreign data wrapper to access the table in the first database. I’d like to insert a row in the forei... | Yes, PostgreSQL always uses the local default value, and there is no way to change that. I can think of two remedies: Define a special default value like -1 for the [CODE] column of the foreign table, and on the remote table define a [CODE] trigger [CODE] that replaces the special value with the next sequence value. Us... | 1 | 2 | 427 | 2023-03-30T22:50:17.787 | warehouse_errors | dba.stackexchange.com | |
181,497 | Intermittent rsync over ssh errors via cron w/ Ubuntu 10.04: unexplained & protocol data stream | I have a number of rsync clients trying to connect to an rsync server routinely, and they're intermittently failing with one of a couple error messages. Either: [CODE] Or: [CODE] The current version of the rsync command I'm using is: [CODE] I previously had [CODE] and [CODE] but removed them after reading on another fo... | Thanks to Izidor Jerebic who posted the solution to the rsync mailing list: this might be a problem with maximal number of concurrent ssh connections or connection requests. Ssh daemon has two configuration settings where you can define what is the maximal number of clients which can connect concurrently. This number i... | 3 | 4 | 4,771 | 2010-09-15T17:56:44.797 | infrastructure | serverfault.com | |
56,551 | Using of 100s of Binary features in regression model | I have 100s of columns with binary values [0, 1] plus some extra columns without binary values. I am trying to do regression model but the model performance is very low. For non-binary features, I have used PCA to decrease the dimension of it. I don't think its appropriate to use PCA for binary values. I am guessing, i... | An approach worth exploring for dimensional reduction of these binary features would be Multiple Correspondence Analysis (Python libraries such as Prince and mca are available), which is similar to PCA but deals with nominal categorical variables. Here is an excellent answer on applicability of PCA and factor analysis ... | 1 | 1 | 245 | 2019-07-29T09:18:06.020 | data_quality | datascience.stackexchange.com | |
709,523 | How can I fix SGE jobs stuck in queue | We are using Son of Grid Engine 8.1.8 on a grid of Debian 7.8 machines installed from deb packages. This has been working well until today, when a user submitted a processing stream, but all parts end up stuck in the queue. The only running jobs are a couple of QRLOGIN jobs. There are plenty of cores, but still the job... | The problem was due to gridengine's misperception that the CPUs were railed. Solved by bouncing the nodes. | -1 | 0 | 834 | 2015-07-29T22:12:38.643 | infrastructure | serverfault.com | |
416,361 | Software bug vs. software corruption | While investigating Wikipedia article on Qantas Flight 72 I've found " Potential trigger types " section that says (emphasis mine): A number of potential trigger types were investigated, including software bugs , software corruption , hardware faults, electromagnetic interference and the secondary high-energy particles... | Software corruption is the contrary of software integrity. It's the same thing as data corruption , except that the data is the software code. It can affect: the software binary stored in memory: binary codes of software instructions are altered for example because of physical interference (“please switch off electroni... | 43 | 94 | 18,073 | 2020-09-29T07:50:36.743 | data_quality | softwareengineering.stackexchange.com | |
242,842 | How to log commands/logins in linux? | I'm feeling that some people are using the root, how i can log all commands and connections times including ips made to the server (ssh) from all users? history command is not enough | Root is root. Anything you do to try to keep track of root usage can be subverted or circumvented by someone who has root; even if you cause bash to pipe all history file entries to syslog on a secured remote server, for example, your system is only safe until the badly-behaved user figures out what you've done and dis... | 3 | 8 | 5,188 | 2011-03-03T16:58:53.777 | infrastructure | serverfault.com | |
305,189 | how to calculate diff year with non-standard datetime format in mysql | My database(MySQL 5.7) store the user birthday format like this [CODE] , now I want to calculate the user age from this format datetime. My sql look like this but return null for all data: [CODE] the table DDL look like this: [CODE] I also tried like this: [CODE] this works: [CODE] but the result is strange: [CODE] | [CODE] Note: It will be off by up to 1 year, depending on the current date and when in the year they were born. | 0 | 1 | 40 | 2021-12-20T09:19:20.933 | database_errors | dba.stackexchange.com | |
314,622 | How to detect network interruptions | I want to write a kind of "diagnostic function" which is able to detect when a TCP/IP based network is interrupted. I would like to connect two endpoints and detect when an established connection between them two is dropped. The network connection can be wired or wireless. The check should be independent of operating s... | There are two methods that come to mind: Have one system ping another. If the ICMP packet cannot reach the other system, there is some disruption between them. Set up a simple ACK function using TCP or UDP . This is more appropriate than ping if you need to communicate metadata. How this works is similar to ping, one s... | 2 | 2 | 1,093 | 2016-04-03T19:48:39.883 | api_errors | softwareengineering.stackexchange.com | |
1,106,513 | Sending SSRS reports to distribution groups | We have been using 'distribution groups' to send SSRS reports because they are easier to manage, but the reports are not being delivered when ' Senders inside and outside of my organization ' is not checked on the distribution group under 'delivery management' on our on-prem Exchange. Yes, we have a hybrid setup. We ge... | The shared O365 mailbox. Is it a cloud-only or a hybrid (synchronized) object? Does your on-premises Exchange server know about it? If the mailbox has been created directly in Office 365 / Exchange Online without being synchronized from your on-premises Active Directory, your Exchange server will know nothing about it ... | 3 | 2 | 940 | 2022-07-25T10:02:29.053 | bi_errors | serverfault.com | |
191,929 | The problems with Avoiding Smurf Naming classes with namespaces | I pulled the term smurf naming from here (number 21). To save anyone not familiar the trouble, Smurf naming is the act of prefixing a bunch of related classes, variables, etc with a common prefix so you end up with "a [CODE] passes a [CODE] to the [CODE] ", etc. The solution I've generally heard to this is to make a sm... | You raise some good points. With regards to having duplicate classes, you can alias classes in C#. Use for example [CODE] See this post on StackOverflow . You've not indicated your programming language but I have inferred it from what you've written. So where you're dealing with two different projects, you can alias th... | 44 | 16 | 12,381 | 2013-03-25T22:53:10.023 | api_errors | softwareengineering.stackexchange.com | |
455,303 | 32 bit exec fails to start but works when started through ltrace/strace | I have a 32 bits binary (running on a 64 bits host) that fails to start when started alone, returning an error when loading a shared library (cannot open shared object file: No such file or directory). But it runs perfectly when I start it using ltrace or strace (I tried to find the point of failure)... What's wrong? I... | You need 32-bit version of libraries to run 32-bit applications on 64-bit system. Unfortunately Redhat doesn't have package like ia32-libs which would install most of them, it is supposed that you should install all 32-bit applications with yum and it will install the appropriate libraries for you. If your application ... | 1 | 0 | 516 | 2012-12-05T13:49:47.870 | infrastructure | serverfault.com | |
871,239 | Can group policy deny access to non-domain shares | I have a requirement to deploy a Samba share to facilitate file sharing between a DOS 6 non-domain computer and a Windows 7 workstation which is a member of a Win 2008 domain. IT will not currently cooperate although they are not preventing me from attaching a device to the network either. So at home I set up a simulat... | I'm not aware of any specific option to prevent mapping a drive from a non domain source, but there are ways to block mapping drives completely in group policy e.g. User Configuration\Administrative Templates\Windows Components\Windows Explorer. Remove "Map Network Drive" and "Disconnect Network Drive". | 2 | 0 | 1,511 | 2017-08-30T12:13:00.620 | api_errors | serverfault.com | |
355,942 | OpenVPN routing issue | We're using OpenVPN at a branch office to connect remote users and it's working very well for internal resources, but recently we've added a permanent VPN connection between the branch office and head office, and I can't for the life of me get any OpenVPN remote users to see the servers at the head office across the pe... | Have you considered setting up NAT on the OpenVPN box, so that any connections coming from the OpenVPN connection simply appear to be coming from the OpenVPN box? If not, then have you setup routes so that all the other routers in the network know that 10.8.0.0/? should be forwarded to the OpenVPN host? | 0 | 1 | 980 | 2012-02-01T19:45:54.460 | infrastructure | serverfault.com | |
46,607 | Install Root CA certificate in mobile to use JMETER Script Recorder but showing No internet connection while running the mobile application | I'm using the [CODE] for [CODE] through [CODE] and I have also installed the [CODE] in the mobile and set the [CODE] setting in manual setting with [CODE] and [CODE] . But when I try to run the application showing the [CODE] error every time so is there any additional setting required for setting up the connection? (Us... | I think default port for the HTTP(S) Test Script Recorder is [CODE] so if you didn't change it - point your mobile to use port 8888 and make sure that incoming traffic is allowed in your operating system firewall Also you need to take some extra steps: For iOS you need to enable full trust for root certificates For And... | 2 | 2 | 2,153 | 2021-01-18T12:34:09.600 | data_quality | sqa.stackexchange.com | |
148,823 | return age in years and months from date of birth | Using MySQL, I return the age in years and months as separate fields in a query. This may well be a premature optimization but the duplicate calls to datediff and from_days in this query are upsetting. Is it possible to get the from_days(datediff(now(), user_birthdate)) factored into a single call without a nested quer... | You can do it with variables, like this: [CODE] But have caution with the execution order. If you assign the value in SELECT don't expect same value in WHERE part. | 0 | 1 | 1,617 | 2016-09-05T09:07:10.453 | database_errors | dba.stackexchange.com | |
149,765 | PostgreSQL GIN index not used when ts_query language is fetched from a column | I've got a table that stores some multilingual content: [CODE] To make sure I always search in the correct language I use these queries: [CODE] Because hardcoding the language doesn't give the correct results: [CODE] The problem however is that PostgreSQL doesn't use the GIN index when using the first set of queries an... | I suggest a solution with partial expression indexes: [CODE] No redundant [CODE] column - makes the table smaller, which helps overall performance. Create one partial expression index for every relevant language: [CODE] All of the partial indexes together are only about as big as your total index. Then match index cond... | 7 | 3 | 5,324 | 2016-09-15T11:42:34.263 | database_errors | dba.stackexchange.com | |
106,562 | Why has my slave server stopped connecting to master in MySQL replication? | We have MySQL replication setup and it has been running without issue for some time. This server acts as a slave and a master (it replicates through to another server). This morning I received an alert to say it has stopped: [CODE] If I try connect from the same machine: [user@host~]# mysql -u replication -p -h 123.456... | this could be because of openssl update. take a look at the following https://github.com/iuscommunity-pkg/mysql55/issues/4 a notable bug that occurs with the latest version of OpenSSL. This issue prevents secure connections from being made due to the default hardcoded cipher no longer being supported in the newer versi... | 3 | 2 | 5,759 | 2015-07-10T08:26:21.573 | api_errors | dba.stackexchange.com | |
430,762 | Rule of thumb in RAM estimate for static pages? | Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites I've seen tutorials saying they can run decent websites on 64MB RAM (Debian/Lighttpd/PHP/MySQL) however it's not clearly defined how much hits/traffic a "decent" site gets. Is there a rule of thumb on how much RAM a web server needs? To ... | You need to determine the average page size for your site that is being served. Then determine, on average, how many unique pages are being presented to users at a time. From there, it's simple multiplication. | 0 | 0 | 166 | 2012-09-21T20:07:32.743 | data_quality | serverfault.com | |
213,949 | Best idea to deal with historic data ( Partitioning? ) | We have a database with almost 1 billion rows. 90% of this table is historical data. We don't use it, BUT if we need to use it, it needs to be right here, right now (we work with banks, so, they need things pretty fast). I'm reading about partitioning in Brent Ozar blogs etc. but I don't know if this is a good idea. I ... | We have several huge log tables partitioned by dates, the typical scenario where we just use current month to store data and the rest is queried for support & troubleshooting. We run backups for the whole database, not just single partitions/filegroups as that will imply piecemeal restores later on. And you don't want ... | 0 | 1 | 314 | 2018-08-02T20:12:36.497 | data_quality | dba.stackexchange.com | |
158,593 | Cannot Connect to Newly Inherited SQL Server via SSMS | I have a newly inherited SQL Server that was installed and setup by our Windows Administrators. I am able to remote into the box and run SSMS using my network credentials. However, I am not able to use SSMS on my local computer to connect to the SQL Server. Here is the message that I receive: "A network-related or inst... | Turns out the Windows Administrators had to add a Firewall rule on the server. Had to allow connections from SSMS. | -1 | 0 | 2,089 | 2016-12-19T16:51:03.470 | database_errors | dba.stackexchange.com | |
108,595 | Using KerasClassifier for training neural network | I created a simple neural network for binary spam/ham text classification using pretrained BERT transformer. The current pure-keras implementation works fine. I wanted however to plot certain metrics of the trained model, in particular the ROC curve. According to this blog post I understood that this is only be possibl... | I managed to solve it! The core mistake was that [CODE] doesn't accept non-numerical input. As such I needed to resort to a workaround by eliminating the text preprocessing steps from my custom [CODE] and transforming them into preprocessing steps. Custom preprocessing steps however need their own classes that inherit ... | 0 | 0 | 1,558 | 2022-02-27T20:39:43.837 | data_quality | datascience.stackexchange.com | |
160,642 | File downloads stall from a third-party server (.net I think) - how can I prove the problem to the provider? | I'm writing a script to consume an XML feed provided by a third party. I'm having problems downloading the files listed inside it but the provider swears there's no problem. The files are usually around 700kb, but between 20% and 80% of the downloads just stall mid-way, and then after 10 minutes of no packets being rec... | Have you tried different using a different user agent? | 0 | 0 | 155 | 2010-07-15T09:01:22.747 | infrastructure | serverfault.com | |
117,420 | Windows Firewall IP ban? | OK, question: I have a IIS webserver and Windows firewall. To allow incoming connections to IIS, I enabled port 80 and 8080. But now, how can I block a specific IP address/range on port 80 (=ban) with windows firewall ? | You can define a "scope" for your custom firewall rules. Here are the necessary steps for a Windows Server 2008 (similar on other modern Windows OS) in [CODE] for a new rule: On the left side of the click on "Inbound Rules" On the right side of the screen click on "New Rule" . Click on the "Custom" radio button and the... | 7 | 8 | 7,209 | 2010-02-27T09:19:55.763 | infrastructure | serverfault.com | |
107,536 | The user specified as a definer ('root'@'%') does not exist | I have a trigger defined as follow: [CODE] When I run that query I got the trigger created as [CODE] : [CODE] But any time I try to run a PHP script, that connects to MariaDB as root user I got this error: [CODE] Why is that? I have others triggers created on the same way and them did works but this one doesn't, any ad... | I met this problem when update a row in mysql. I connect mysql use a diffrent user and password rather than root. When I type "show triggers" in mysql, I found the triger use "root@%", this will cause this exception. | 3 | 4 | 98,553 | 2015-07-20T16:36:54.070 | database_errors | dba.stackexchange.com | |
3,852 | Ultimate docker permission solution | I'm using docker some time and I like the conception very much. But I found a thing is a big problem for me. I'm talking about permissions. While I'm not worrying about production, setting up my docker development environment becomes hell, because of file ownerships and permissions. For example: www-data user from php ... | I'm a little confused about the exact use case. Are you asking about writing to volumes that are mounted inside the container? You can change what the process in the docker container runs as by using --user on your run commands. [CODE] This answer may help you: https://stackoverflow.com/questions/41100333/difference-be... | 3 | 1 | 3,834 | 2018-04-10T08:00:43.063 | pipeline_ops | devops.stackexchange.com | |
225,617 | Slow Performance of SQL Server Database | I have a SQL Server Database, In two weeks in each four months many insert operation is executed to the database and in this time the database experience very slow performance, it takes a lot of time for a single and simple query. I faced this problem two times and solved the issue by update the statistic of the databa... | The SQL Server query optimizer uses statistics to create good query plans. When your statistics get out of date, the optimizer can make very bad choices about how to run queries. Inserting or updating lots of rows can easily cause statistics to get out of date, because there will be new and different data in the table(... | -1 | 3 | 226 | 2018-12-22T14:04:28.813 | database_errors | dba.stackexchange.com | |
355,869 | How do I restrict the available work items for support desk users in TFS 2010 | We run TFS 2010 and use the work items. We are migrating the support desk but don't want them to be able to raise bugs, tasks etc - is there a way to lock them down to just issue? Also despite putting security on the iterations the support desk user is still able to see all the iterations in the project? | You can lock down the creation of a work item type by adding 'not' rule to a transition . In that case you deny a TFS group to be able to execute that transition. Not showing the iterations you don't have security for, is something we hear more often. It is on our backlog to do, but it will not be part of Dev11 (TFS vN... | 1 | 1 | 1,365 | 2012-02-01T16:50:43.240 | infrastructure | serverfault.com | |
360,272 | Cron jobs on debian - not working | might be somewhat of a boring topic, but I was at it whole last night, cant seem to get it up and running. [CODE] So the service seems to be running fine. I have tried number of simple test cron jobs, but non of them worked: [CODE] as well as that, one of the programers gave me this job, that i know is perfectly workin... | Have you checked cron logs as to what actually happened ? Usually cron logs are disabled in debian system, enable this in your rsyslogd or syslogd by uncommenting cron log lines in respective configuration file. [CODE] | 2 | 1 | 10,941 | 2012-02-15T08:37:18.153 | infrastructure | serverfault.com | |
1,081,268 | Disable outgoing IPv6 for specific users on linux | I would like to block outgoing IPv6 connections for specific users on linux machine. I don't want to disable IPv6 for whole system. How can I do it? I can do it using ip6tables and rejecting OUTPUT connections with icmp6-adm-prohibited or icmp6-no-route or icmp6-addr-unreachable but that for some reason causes delays o... | I don't think that is easily achievable Any client that makes a network connection first issues a DNS request to get the addresses of the destination server. Most application uses system [CODE] library to make the connection. When the library sees system has both IPv4 and IPv6 addresses configured, it requests both A a... | 0 | 0 | 235 | 2021-10-21T13:08:35.523 | infrastructure | serverfault.com | |
246,589 | Is it normal to share CPUs on a VM of SQL Server? | Our IT set up a SQL Server as a VM on a big VMWare box that contains other VMs. The CPUs are setup as shared. As a result, any queries that might need multiple CPUs take 30x longer than if I limited it to a single CPU. Example: [CODE] vs [CODE] 1st example uses parallelism and takes about 30 seconds or so. 2nd one forc... | Is it normal to share CPUs on a VM of SQL Server? Yeah, it's pretty common. A lot of times VMs are used to consolidate lots of SQL Servers (especially ones that don't have extreme performance requirements) onto one host. This can save on licensing costs, since SQL Server can be licensed at the host level. Is it a good ... | 3 | 3 | 137 | 2019-08-29T22:25:01.983 | database_errors | dba.stackexchange.com | |
510,016 | How can I assign active directory permission to the default app pool identity | How can I assign active directory permission to the default app pool identity [IIS APPPOOL{application pool name}]? I am trying to do this to enable a web application query active directory groups, users and check the existence of a particular user name or group name. Thanks. | You don't. You can confer permissions to local resources for the IIS APPPOOL{app pool name} identity for local resources per: How to assign permissions to ApplicationPoolIdentity account In Active Directory, the identity needs to be either a Well-Known security principal, an actual user/group/computer security principa... | 10 | 8 | 37,279 | 2013-05-22T19:45:06.417 | infrastructure | serverfault.com | |
155,142 | Nginx -> rewrite ordering or nesting | I'm working on a new top-level domain, and redirect visitors of the new domain to the old one, except for my own work on the staging server: I have a rule that rewrites the host if you don't hit the staging server, which works like a bomb. [CODE] the problem is that some callback from another site we are using is hitti... | I think your doing it right, and are most likely seeing cache problems while your working on it... Change "permanent" to "redirect" for now, and also add a line like: expires epoch; while your testing to stop the browser from caching Best, -Eric | 0 | 0 | 650 | 2010-06-26T19:39:34.010 | infrastructure | serverfault.com | |
89,632 | SQL Server: grant select access to a user in a view and not in its tables | I have a SQL Server 2012 instance with a few databases. In one of them I created a view, that selects tables in more than a database. I want a user to be able to select that view, but it must not select its tables. The view was created exactly because the user can't select the tables. I've read https://stackoverflow.co... | If you want users to select from the view, why are you granting to the table? By "revoke" do you mean explicitly revoke/deny? Deny will override grant so there's your problem... you should be able to accomplish this by adding grant to the view and not doing anything either way on the tables. Here's a quick example wher... | 12 | 22 | 61,576 | 2015-01-19T13:34:54.120 | database_errors | dba.stackexchange.com | |
245,188 | Why apache2 process are using 190MB of virtual memory? | I have a big problem with my apache2. I am on LAMP with debian 6, 64bit. Here a screen after 24h of running, ordered by %MEM: you can see VIRT for apache2 is 186mb. That's not good at all. What Can I do? Consider this apache servs only a couple of virtual host, and PHP pages doenst' require more than 3MB of memory. [CO... | Is it that big of a problem? The VIRT field that you are using is the total amount of memory the process could use. The next column is closer to the amount it is using. Even then some of this will be shared between processes. I would recommend reading up how Linux manages virtual memory if you are going to be doing Lin... | -1 | 4 | 3,359 | 2011-03-09T14:14:43.090 | infrastructure | serverfault.com | |
569,292 | Getting org.jclouds.rest.config error with storm-deploy | I would like to use storm-deploy to create Storm instances on Amazon EC2. I've installed on an Ubuntu 13.04 system with Oracle Java7-JDK, and set the configuration files based on the wiki . After I call: lein deploy-strom --start --name test I get the following error: DEBUG jclouds - Found jclouds sshj driver DEBUG jcl... | You are probably using JDK 7u51. This update broke something in Guice , a library that jclouds uses. You can see more details here: https://issues.apache.org/jira/browse/JCLOUDS-427 Move to an older JDK and it should work. | 1 | 2 | 275 | 2014-01-23T10:19:09.547 | database_errors | serverfault.com | |
490,271 | Windows 2012/IIS 8 + ASP.NET MVC Applicaiton 403.14 (Forbidden) - The Web server is configured to not list the contents | I have a very simple MVC 4 application I'm trying to deploy to a Windows 2012 server. Inconsistently, when navigating to the root of the web application ( [CODE] ), it returns a [CODE] : Detailed Error Information: [CODE] The web application is: Is a very vanilla VS2012 MVC4 Intranet template -- with only a tweak to a ... | Just spotted "custom AD Identity" in there. make sure the new user actually has rights to read the file-system path even if there isn't anything in there. make sure the new user is in the IIS app group so it can talk to the metabase Check if kernel-mode auth is configured then depending on that: (if so) check that sets... | 3 | 1 | 16,639 | 2013-03-21T22:10:49.370 | api_errors | serverfault.com | |
52,921 | Mass hard drive erasure | I was wondering if there is some hardware out there that can simultaneously wipe/zero out many hard drives of different varieties. If there isn't, would it be simple enough to build one manually? We have dozens of hard drives we need to erase. We're currently removing the hard drives from lab machines, replacing them w... | If this has to occur overnight, you could always setup a network boot that boots you into DBAN and allows you to work from there. This blog post should get you moving in the right direction. There's also a corresponding post on setting up pxe. YMMV, I haven't tried this particular way of doing it (but this is how I wou... | 3 | 4 | 3,653 | 2009-08-11T20:29:13.410 | infrastructure | serverfault.com | |
54,711 | Mysql HY000 the table table_name is full when adding new column | I can't add a new column innodb table which size's 16MB. when I try to add, mysql says HY000 the table table_name is full. I changed my tmp_table_size and heap_size but mysql still says same error. I try How to solve "The table ... is full" with "innodb_file_per_table"? this settings but same error. I create dummy tabl... | There is no maximum in the file_path command you provided that limits the size of the ibdata1 file. Perhaps you don't have enough disk space left. It would be a good idea to add more disk space to the current volume or clean up first as mysql needs that volume. If you're worried about the ibdata files filling up disk s... | 4 | 1 | 1,572 | 2013-12-09T14:35:34.400 | database_errors | dba.stackexchange.com | |
323,487 | Back up multiple databases to the same backup (BAK) file with encryption | I have a script that we run on an ad-hoc basis that grabs the names of 15 databases, then iterates through that list to backup each one into a single .BAK file. This is then downloaded for use elsewhere (e.g. development). The key part of the TSQL script is as follows: [CODE] This works great, but now I'd like to add e... | But what part is not encrypted? This is the first part of my question; the encryption parameter is used for each database in the iteration so I don't understand the context of the error. That's my fault, I just looked at the error and didn't read much else :| Apologies. Can anyone please advise the correct approach to ... | 3 | 4 | 232 | 2023-02-14T11:25:53.560 | database_errors | dba.stackexchange.com | |
142,463 | Column locking in innodb? | I know this sounds weird, but apparently one of my columns is locked. [CODE] the first one would not finish running, while the second one completes smoothly. the only difference is the type_id Thanks in advance for your help - i have an urgent data job to finish, and this problem is driving me crazy | Why don't you look at the [CODE] and see what other threads are accessing the system, and kill off the ones that might be using the row. InnoDB has row-level locking, not column level. The fact that you changed the type_id means that it has selected a different row, and that row is locked. | 0 | 1 | 834 | 2010-05-17T00:42:12.213 | infrastructure | serverfault.com | |
216,403 | How can a website look different in safari Windows and Safari mac? | I have a website. I've been testing crossbrowser on my windows PC, and it looks good in all browsers, but on Mac in Safari it looks like the CSS is not getting interpreted right, or there is a critical javascript error. When I look in the console cross-browser, the error log shows exactly the same. Chrome on mac interp... | I'd attempt to enlist the basic clues over browsers which provide the visual differences, based on my own experience (and efforts) in that direction: The fonts. The browser uses fonts (via the [CODE] css property) to display text on the page. Most of these fonts are coming from the operating system, so here is a short ... | 5 | 12 | 22,408 | 2013-11-03T21:05:18.867 | api_errors | softwareengineering.stackexchange.com | |
167,622 | Should I ever use query hints? | SQL Server 2008 R2, Dynamics AX 2009 We have this ugly query [CODE] I think the query options that are used here are not what we actually should do with this specific query to try to make it faster. It goes very slow on our system. The plan is here: QUERY PLAN Will appreciate any help | First of all, the plan you pasted doesn't exactly match the query you posted, because AX uses API_CURSOR behind the scenes. Apart from that, this is a custom query one of your (or a vendor) developers wrote. (all the ECC_* fields are non-standard) and all those hints are explicitly added by that developer. The 3 option... | 1 | 12 | 248 | 2017-03-20T12:53:07.490 | database_errors | dba.stackexchange.com | |
82,028 | Is it possible to get worse model after optimization? | I am trying recently to optimize models but for some reason, whenever I try to run the optimization the model score in the end is worse than before, so I believe I do something wrong. in order to optimize my model I define param grid and than fit with the train data and then according to the results run again with nre ... | Is it possible that after running the optimization my score won't get better (and even worse?) ? Yes, theoretically, by pure luck, it is possible that your initial guess, before optimization of hyper-parameters, provides better results than the best of parameter combination found in the parameters grid. However, assumi... | 3 | 7 | 4,534 | 2020-09-21T12:25:22.337 | data_quality | datascience.stackexchange.com | |
660,764 | Why can't my DNS server start (bad zone error)? | This is my config (running [CODE] on [CODE] ). /etc/named.conf [CODE] /var/named/named.gallactica.lab [CODE] /var/named/rz-192-168-1 [CODE] My DNS server is [CODE] at the address [CODE] . The error I'm getting when trying to restart the [CODE] service is: [CODE] | Assuming you've kept the whitespace of the zone files intact when reformatting them in your question, it appears that you have no [CODE] record at the top of the zone due to a formatting problem, which makes the zone bogus. You'll also want to correct the corresponding [CODE] record for that nameserver. What you typed:... | 7 | 7 | 9,342 | 2015-01-20T01:18:58.617 | infrastructure | serverfault.com | |
69,230 | Custom keras dataset generator not accepted by fit_generator | I've got a problem trying to use generators in Keras. I've got TensorFlow 2.1 with Python 3.7. I'm using the Keras version bundled with TensorFlow I have defined a class for my generator derived from [CODE] : [CODE] and it works since I'm perfectly able to train my model item by item using a crafted loop like this: [CO... | I was following the instructions on a tutorial but it seems that there was a mistake or that the internal code of TensorFlow has changed since it was written. I was defining my class like this: [CODE] and later on I tried also this: [CODE] (which, by the way, is completely different and is totally wrong) Inspecting the... | 1 | 1 | 1,721 | 2020-03-05T17:56:21.463 | data_quality | datascience.stackexchange.com | |
452,826 | Install ZIP in Debian | Possible Duplicate: apt-get update getting 404 on debian lenny I Have search that the command for install zip in debian is apt-get install zip I tried so many time. The result is like this. [CODE] Did I miss something ? | If it doesn't have to be "zip", but instead something that supports .zip files, you could always give p7zip a go. Also worth a try would be the equivalent-ish packages for zip from Ubuntu 8.04. Unzip can be found here too. They're identical versions to the ones mentioned in the question for Debian, and I've generally f... | 1 | 1 | 23,914 | 2012-11-28T00:34:22.267 | data_quality | serverfault.com | |
432,211 | Windows 7 keep internet connection after IPSec established | How I can keep internet connection after establishing IpSec connection to server? I have followed to following link to establish IpSec server http://rootmanager.com/ubuntu-ipsec-l2tp-windows-domain-auth/setting-up-openswan-xl2tpd-with-native-windows-clients.html then following the below one to connect this server from ... | You likely need to have your system use the local gateway rather than the one on the remote system Right click on the connection icon and click Properties. Click the Networking Tab and click on TCP/IP V4 to select and then click Properties. Click Advanced and UNCHECK "Use default gateway on remote system" You can also ... | 0 | 1 | 460 | 2012-09-26T14:56:00.813 | infrastructure | serverfault.com | |
164,810 | MVC two models required? | I've been doing software for a long time, but almost all of it has been back-end centric. I recently decided to learn Swing and tried to apply MVC principles. I realize that in Swing the View is handled for you by the components you add to the window/frame/panel, and the Controller is your code responding to the events... | This is a fairly common situation and your choice of pattern is very dependant on the circumstance and your personal preference. Where you're not simply writing a CRUD application, you can have a domain model which models the business domain and a view model, specific to the application, for displaying and editing that... | 6 | 6 | 599 | 2012-09-13T21:51:58.603 | api_errors | softwareengineering.stackexchange.com | |
90,760 | Finding best match/score between 2 datasets | I am looking for a potential matching algorithm to apply to 2 datasets (DS1,DS2), that would provide a score for all DS1 x DS2. To exemplifies the problem: imagine a pool of job seekers are looking for jobs. What would the jobs that match the job seeker profile, and what could the job seekers that match a job. Any poin... | Welcome to the site! It is hard to answer this without more details (how much data do you have? On what parameters do you want to score the data?). If you have some previous training data, you can look at recommendation algorithms with side information . If you don't have any training data, then you essentially want to... | 0 | 1 | 343 | 2021-03-17T04:40:31.477 | data_quality | datascience.stackexchange.com | |
460,276 | Monitoring over unreliable connection - Zabbix? | I have the following scenario: a small internal network behind a DSL connection with problems (short outages several times a month) AND a virtual server at a hosting company. I want to implement monitoring and statistics for my machines (availability, load, ... ) How can I do this in one central place? It's obvious tha... | Zabbix Proxy can be used for this purposes: Offload Zabbix Server when monitoring thousands of devices Monitor remote locations Monitor locations having unreliable communications Simplify maintenance of distributed monitoring List item http://www.zabbix.com/documentation/2.0/manual/distributed_monitoring/proxies | 1 | 3 | 736 | 2012-12-22T15:01:29.810 | pipeline_ops | serverfault.com | |
86,104 | What is the difference between BERT architecture and vanilla Transformer architecture | I'm doing some research for the summarization task and found out BERT is derived from the Transformer model. In every blog about BERT that I have read, they focus on explaining what is a bidirectional encoder, So, I think this is what made BERT different from the vanilla Transformer model. But as far as I know, the Tra... | The name provides a clue. BERT (Bidirectional Encoder Representations from Transformers): So basically BERT = Transformer Minus the Decoder BERT ends with the final representation of the words after the encoder is done processing it. In Transformer, the above is used in the decoder. That piece of architecture is not th... | 3 | 5 | 2,177 | 2020-11-30T03:34:44.230 | data_quality | datascience.stackexchange.com | |
34,388 | Is it possible to store value, return it and validate in another test case by calling previous method | I have created a method which is as follows: [CODE] I'm trying to store this value so that I can test the same value in upcoming test case. The test case is as follows: [CODE] When I try to call [CODE] I get error - unable to locate element. I have only one class and all my test cases falls under same class. I'm new to... | First, I strongly recommend you start working through any of the many basic Java tutorials that can be found on the web. You are correct that the discount element is no longer available because that element is on a different page than the invoice page you're using in your second test. With some basic programming knowle... | 0 | 2 | 3,016 | 2018-06-22T06:37:43.007 | data_quality | sqa.stackexchange.com | |
554,559 | Adding a transaction ID to ruby-on-rails logs | We have a RoR app (rails version 3.2.15 right now). As it has been getting busier, the log-files it's producing are becoming less and less useful for troubleshooting. When they come in like this, it's not a problem: Started GET "/accounts/28088166/kittens/22894/rendered_png?file_id=5d3eaec77954a489b5ddd75143091767&kitt... | You can try using [CODE] - this is the method recommended in Rails' own guides - but the down side is that you will have to provide the unique ID yourself. The [CODE] gem provides a much more compact, single-line log, and may be closer to what you're after. | 0 | 2 | 1,771 | 2013-11-12T21:01:01.983 | infrastructure | serverfault.com | |
630,330 | WLS: Identifying the managed server where a DB session originates from | We are using WLS servers, on which we configure data sources (DS) and managed servers. For failover reasons, our main application is depolyed on two separate managed servers (lets call them app_1 and app_2 ) - but both of those servers use the same data source. The data source is a JDBC data source to an Oracle DB. [CO... | If your managed servers are on the same host, I believe there is no native way to find this out. If they're on different hosts, you can use the machine column on v$session on Oracle side to identify where it's coming from. The other option is to use some monitoring/profiling tool. I'm not sure which ones would tell you... | 0 | 0 | 174 | 2014-09-22T14:52:05.787 | database_errors | serverfault.com | |
124,254 | What can be the cause of new bugs appearing somewhere else when a known bug is solved? | During a discussion, one of my colleagues told that he has some difficulties with his current project while trying to solve bugs. "When I solve one bug, something else stops working elsewhere", he said. I started to think about how this could happen, but can't figure it out. I have sometimes similar problems when I am ... | It doesn't have much to do with focus, project size, documentation, or other process issues. Problems like that are usually a result of excessive coupling in the design, which makes it very difficult to isolate changes. | 14 | 38 | 907 | 2011-12-09T17:39:38.493 | api_errors | softwareengineering.stackexchange.com | |
1,112,206 | I need to redirect http to https connection with nginx on rest service and need to test it on postman or soapui | here is my nginx.conf file: What should i change to make it work and how to get certificate [CODE] | First of all you need to remove the configuration codes after [CODE] Note: The example below using Ubuntu 20.04 LTS Go to [CODE] and create a new file [CODE] and put your configuration there. [CODE] [CODE] Refer below snippet: [CODE] Don't for get to add [CODE] in [CODE] . (Thanks to Drifter104 for notifying) [CODE] Ne... | 1 | 1 | 457 | 2022-10-04T07:51:16.893 | infrastructure | serverfault.com | |
123,268 | Likelihood function of a Beta-Normal distribution | I'm going over a paper regarding the calculation of credit scoring By Kalkbrener and Onwunta . In the article, they derive the following Likelihood function, in order to find the MLE for $R^2$ : (Equation 19 in the article) with $N(\psi)$ being the error function , and $$ \bar{p}_{R^2}(\psi) = N\left(\frac{c-\sqrt{R^2}... | A good way to go here might be to use the auto-diff tools developed for neural networks. I tend to use JAX lately, so JAX+optax will do the optimization provided you can write the likelihood in a useable form. As it stands, I am not quite sure what your integral means. Your measure is $N$ , does it mean that the integr... | 0 | 1 | 70 | 2023-08-16T09:09:28.033 | data_quality | datascience.stackexchange.com | |
123,959 | Which type of repair level is “DBCC CHECKDB (databasename, repair)”? | The MSDN's article about the command "DBCC CHECKDB" explains three ways to perform a database repair in the syntax section: [CODE] But I found the following statement when I was looking for how to repair a suspect (I put in this mode doing these steps ) database and I can't understand which one of the three modes is it... | Running this on a sufficiently corrupted database results in the following error message: Msg 7909, Level 20, State 1, Line 1 The emergency-mode repair failed.You must restore from backup. This leads me to estimate that [CODE] is simply the short form of [CODE] . In the very least, I would treat it as the same when it ... | 5 | 3 | 972 | 2015-12-17T15:22:52.873 | warehouse_errors | dba.stackexchange.com | |
1,054,150 | EC2 instance unreacheble after rebooting | I'm making this question because I checked this similar one and I don't know why the owner accepted the first answer, since it did not help him to achieve his goal. I'm not able to add comments too, so I guess adding another question is the way. I'm facing the exactly same issue . Everything as working awesome but afte... | One thing to try for system status check failure is to stop the instance then start it, which moves you to new hardware. Since you have an instance status check failure that probably won't help, but it probably won't hurt either. This documentation says the likely causes of instance status check failure are: Failed sys... | 0 | 0 | 1,177 | 2021-02-18T16:07:21.977 | database_errors | serverfault.com | |
78,593 | Why are null references shunned while throwing exceptions is considered okay? | I don't quite understand the consistent bashing of null references by some programming language folks. What's so bad about them? If I request read access to a file that doesn't exist then I'm perfectly happy to get an exception or a null reference and yet exceptions are considered good but null references are considere... | Null references aren't "shunned" any more so than exceptions, at least by anyone I've ever known or read. I think you're misunderstanding the conventional wisdom. What's bad is an attempt to access a null reference (or dereference a null pointer, etc.). This is bad because it always indicates a bug; you would never do ... | 21 | 24 | 4,072 | 2011-05-23T19:19:45.607 | api_errors | softwareengineering.stackexchange.com | |
221,106 | Validation of data with checksum vs Binary_checksum | Based on this post , I was able to solve the performance issue by adding indexes and thought I completed my project until I ran into an issue with the checksum... I then did research (should have done this before I started the project) and found that the checksum and binary_checksum are not reliable in a system critica... | The solution that helped me solve this dilemma was to use the hashbytes with SHA2_256 which was then converted to a bigint followed by a conversion to a float to finally be summed up. Note that the conversion from varbinary to bigint can be dangerous, but in my case it was acceptable. the conversion directly from varbi... | 0 | 1 | 964 | 2018-10-26T14:06:57.323 | database_errors | dba.stackexchange.com | |
284,833 | Does a single replica gives any performance improvement? | Consider a case where you have a single PostgreSQL database. Then you add a replica (hot standby) and you send all the reads to that replica. This is what does Rails for example . Does this gives any performance benefit? For my understanding the answer is no. Let me explain: when you have only a single database it gets... | Am I missing something? Is the write work performed by a replica less then the work of the master (considering that each update must be applied to both the machines)? Probably yes, you are missing something, and write work done on the replica is less than the (total) work of the master. It is rare for every write on a ... | 0 | 1 | 433 | 2021-02-06T11:33:28.627 | database_errors | dba.stackexchange.com | |
162,799 | Split RAID array at controller, or at LVM? | I have a CentOS box with 10 2TB drives & an LSI RAID controller, used as an NFS server. I know I'm going to use RAID 1 to create 5TB of usable space. But in terms of performance, reliability & management, which is better, create a single 5TB array on the controller, or create 5 1TB arrays and use LVM to regroup them in... | If the controller will allow you to provision a 10-disk raid 10 (rather than 2 8-disk units with 2 disks left over) that would probably be the best bet. It's simple to manage, you get good write performance with battery backed cache and the RAID card does all the heavy lifting, monitoring, management. Just install the ... | 0 | 2 | 1,450 | 2010-07-21T21:56:23.750 | infrastructure | serverfault.com | |
1,036,894 | How safe is to disable write-cache buffer flushing | I found an issue with HDD disk write speed on Hyper-V guest servers when this option is unchecked. I know the advantage is the speed when this option is checked, but what is the disadvantages? The HDD is only used for virtual servers, and the server is connected to a UPS. | It is PRETTY safe - note how it says in case of power failure? A UPS generally avoids power failures. If the server is connected to the UPS properly, it will see that battery power is getting used and start a shutdown in time (as per your configuration) so it never runs out of power (and yes, a shutdown, properly, is f... | 1 | 4 | 845 | 2020-10-08T10:45:05.587 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.