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 |
|---|---|---|---|---|---|---|---|---|---|---|
242,363 | Net send from Sql Server 2000 to Windows 7 | I have a SQL Server Agent job that fails every once and a while. This has become a problem because I recently upgraded to windows 7, and so I no longer get the notifications for the failures. The computer doesn't have outlook installed on it, so I can't set it up to send email notifications until I figure that part out... | I believe the net send and pager notifications are scheduled to be deprecated from future versions of SQl Server. http://msdn.microsoft.com/en-us/library/ms143729.aspx It would be wise to get database mail setup. It uses Service broker and CDO and no longer require outlook MAPI profile to be configured, http://msdn.mic... | 0 | 1 | 674 | 2011-03-02T17:18:40.140 | database_errors | serverfault.com | |
191,826 | Clean up orphaned documents in MongoDB error | While trying to clean [CODE] in my cluster I am getting this error. | OK.. Step 1. database and collection must be originally created (or sharded) thru mongoS Step 2. command [CODE] must be ran on individual shard node (if replica set, then primary) at admin database. Not on mongoS, if you run that command on mongoS, you get that error message (and of course that error don't tell you tha... | 0 | 0 | 859 | 2017-11-27T18:49:12.790 | database_errors | dba.stackexchange.com | |
747,528 | When accessing Samba shares from Windows 10, smbstatus is reporting duplicate nobody:nogroup PID entries | When I run Windows programs located on a Samba share from a Windows 10 Pro 64 computer I get duplicate nobody:nogroup PID entries appearing in the smbstatus output. These entries do not go away until the smbd process is terminated. I have noted that on my production servers, it can take several minutes for files create... | It seems to be a problem with SambaV2/V3 and can be avoided forcing Windows 10 to use SambaV1 via [CODE] see: https://groups.google.com/forum/#!topic/spline.eisfair/vtxTbxKVy1Q https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1392647 | 5 | 1 | 5,152 | 2016-01-08T01:10:31.183 | data_quality | serverfault.com | |
1,050,802 | How to cache Ansible group and host variables throughout a play | I have a playbook for some hosts which have group variables and host variables that use a custom lookup plugin to extract values from an API endpoint. [CODE] One important information in the group variables pulled from this API endpoint is [CODE] , as shown in the example. The username is secured in the API endpoint fo... | In case you arent able to store that information in your inventory, but you want informations from one run of your playbook be available in the next run of it days later and maybe on different machines, you have the following options. get the facts on the first run of you playbook and store it on your hosts directly (f... | 0 | 0 | 1,126 | 2021-01-22T13:12:41.087 | api_errors | serverfault.com | |
320,980 | Strange VMWare networking issue | i have an exchange test environment sitting on vmware. i have 2 mailbox servers, 2 CAS/HUB servers, and an AD server on a 2 physical host VMWare HA cluster. If I have all 5 servers on one host, everything works peachy. If I move 2 hosts off to the other server via vmotion, even though there is a switch between the two ... | It was all Microsoft Network Load Balancing's fault. The article I referenced from microsoft said to install that on both of the CAS servers because I wanted to create a CAS Array. Then I come to find out they don't recommend using NLB for exchange anymore and recommend using a 3rd party load balancer. I installed a ne... | 2 | 0 | 170 | 2011-10-12T21:21:40.680 | infrastructure | serverfault.com | |
323,788 | SQL Sum with break-out (audits on inventory) | I'm having some difficulty getting this mysql query to work. I have the following tables [CODE] default values: type_id type_description type_val_mod 1 INVOICE 1 2 SALE -1 3 AUDIT 0 and here is sample table: log_id item_name type_description log_qty qty 2 WIDGET A SALE 1 -1 3 WIDGET A SALE 3 -3 4 WIDGET A SALE 2 -2 5 W... | What you want here is to make an audit row start a subgroup within its item group. If we imagine that we have a virtual column defined like this: [CODE] we can apply a partitioned running count over it like this: [CODE] The result will be this: log_id item_name type_description ... grp 1 WIDGET A INVOICE ... 0 2 WIDGET... | 2 | 2 | 95 | 2023-02-19T20:47:10.320 | database_errors | dba.stackexchange.com | |
310,466 | Failure to bare boot windows 7 that was installed under kvm | I installed windows 7 (enterprise, amd64) in kvm (to /dev/hdb) because I don't have a dvd drive on this box, so I just started kvm with the parameters "-hda /dev/hdb -cdrom win7.iso". That installs & boots just fine, however when I try to boot it without virtualization it gives me a blue screen but reboots before I can... | Have you got a USB zip drive? You can copy an iso on to a USB pen and make it bootable using this utility: http://emea.microsoftstore.com/UK/en-GB/Help/Windows-7-USB-DVD-Download-Tool . I don't know if you're trying to have this install both virtualised and physical simultaneoulsy, so this is just a suggestion as to ho... | 2 | 0 | 550 | 2011-09-12T13:10:01.553 | infrastructure | serverfault.com | |
221,105 | How to refresh Oracle data dictionary to remove deleted tablespace and datafiles? | Long story short we have a server with two Oracle instances running on it: [CODE] and [CODE] . Somebody defined an undo tablespace for [CODE] and provided the same datafile of the undo tablespace datafile of [CODE] that was already running, so datafile got corrupted and [CODE] was shutdown. When trying to reopen the in... | There is nothing wrong with the data dictionary. The moment you overwrote the undo datafile of an active database (which I still wonder how you managed, because file locking does not allow this) you made it impossible to recover the database to a consistent state. The method you tried would have worked with a regular u... | 1 | 2 | 1,983 | 2018-10-26T14:05:58.630 | data_quality | dba.stackexchange.com | |
602,166 | Connecting Small business network to Azure Site to Site VPN | Would like to have connectivity between azure virtual machines and on LAN users. My current network has a Cisco ISA550 connected to the WAN (one Ethernet cable into the office the fiber transceiver is on a different floor)and any public servers can be one-to one NAT-ed to have a public and private IP. What is the best ... | Can be setup using the Cisco ISA550 Directly [CODE] Blog Post explains in detail. http://www.markgreenway.net/setting-up-azure-site-to-site-with-small-business-router/ | 2 | 0 | 410 | 2014-06-05T19:31:18.370 | infrastructure | serverfault.com | |
68,407 | Can't access windows share when in security group assigned to share | I'm a bit stumpped on this one. I created a security group in AD called "special data users" and add myself to it. I then created a share on a server and give that AD security group full access to the share. If i try to access the share I cannot and get a permission denied error. If i add my user account directly to th... | When you added yourself to the group, did you log out of your workstation and log back in? Security Group membership is a component of the access token granted to your user ID at logon and changing group membership requires a log out and log in order to get a new access token that reflects the new membership. | 15 | 20 | 41,315 | 2009-09-24T14:27:46.583 | infrastructure | serverfault.com | |
106,490 | Choosing Primary & Foreign Keys & normalizing Person, Name, DOB & Wedding tables | I am in the conceptual design of a database, building tables and views, selecting the PKs and FKs (primary and foreign keys) and normalizing. Unfortunately, I am constrained to use Power Pivot on Excel to build the database, so where I would like to have a composite key I have to use an extra calculated column to gener... | I use MS SQL terms below. I made assumptions that seemed logical, so you can drop those if they do not fit your model. I would set up the tables in the following manner: [CODE] personID, astrologicalsignID, weddingID and originID are identity fields that auto-increment. | -1 | 0 | 335 | 2015-07-09T16:15:19.097 | warehouse_errors | dba.stackexchange.com | |
959,744 | My PHP Site code structure is visible to my clients when they request a directory | A folder in My Site I use apache web server PHP on the back end apache is running under the user www-data Permission for my folders are 755 When users request a php page all is well, but when they request a folder, they are presented with my code structure, How do I stop this? | [CODE] httpd wiki with an overview of directory listings Possible Options in a Directory directive | 0 | 1 | 40 | 2019-03-24T18:00:14.360 | infrastructure | serverfault.com | |
385,752 | IOS/Android Push notifications | I am planning some app as a part of our product. One part of the app will be to receive push messages. Sometimes it's months between uses of the app and, by experience with other apps I've used, it seems like there is some timeout. If you don't use the app in a while, it will stop receiving push notifications. So, does... | On iOS there is no time limit imposed by Apple. Note that any push notifications will lead to a notification shown on the screen (under control of the app), so it wouldn’t matter whether the app is run or not. Apple sends the notification to the users phone, Apple doesn’t know whether the use reacts to it or not. | -2 | 0 | 57 | 2019-01-18T13:22:08.880 | api_errors | softwareengineering.stackexchange.com | |
365,064 | How to handle large switch statement running several different commands? | I've been tasked with refactoring a console application, which is constantly running on a server and receiving messages from a service bus. Right now, it just parses the incoming message, and based on a property, will use a switch statement to call one of many different functions (about 70 at the moment, always growing... | Since you have tagged this question with [CODE] , I'll offer the language-specific answer to your question. C# and the BCL offer a built-in version of the command pattern: a dictionary of delegates. Rather than have, for example: [CODE] You replace it with [CODE] | 3 | 4 | 2,317 | 2018-01-31T21:09:50.043 | api_errors | softwareengineering.stackexchange.com | |
334,028 | Can we use gtid mode without enabling enforce_gtid_consistency? Is it safe? | If I set [CODE] and [CODE] , the operations that are not allowed to use gtid is still replicated in other ways? From mysql documentation: Only statements that can be logged using GTID safe statements can be logged when enforce_gtid_consistency is set to ON, so the operations listed here cannot be used with this option:... | I just create a lab to test it, and find out we even can't enable gtid_mode to on when enforce_gtid_consistency=off is off. [CODE] | 0 | 0 | 22 | 2023-12-13T16:31:24.820 | database_errors | dba.stackexchange.com | |
48,841 | What are the circumstances where autovacuum can be disabled? | I have a table where I am performing only inserts, never deletes/updates. I notice sometimes that autovacuum runs on this table, even though this is the case. [CODE] It is taking a long time, and it is having an impact on the performance of my DB. Is it safe for me to just disable autovacuum for this table? Since I am ... | (to prevent wraparound) is the key bit. PostgreSQL must do freeze vacuums where transaction IDs are set to XID_FROZEN to prevent transaction ID wrap-around, and as a result massive data corruption. If you disable these or cancel them all the time your database will eventually go into emergency shutdown. See the user ma... | 1 | 2 | 1,659 | 2013-08-27T02:34:44.663 | warehouse_errors | dba.stackexchange.com | |
7,026 | How to stress test a SQL server? | I've been tasked to stress test our MSSQL Server and MySQL Server. I would like to know if there are any tools or scripts which I could use on our current systems and the new system to compare performance? I would like to measure read / write to disk and processor performance. Anything else that may be useful would be ... | Quest offers a free version of their Benchmark Factory that works for Oracle, SQL Server, and MySQL: http://www.quest.com/benchmark-factory/ I recorded a video on getting started with it back when I worked for Quest: http://www.toadworld.com/Videos/tabid/831/TID/559/cid/161/Default.aspx You can call your own stored pro... | 12 | 10 | 12,712 | 2011-10-20T17:24:44.210 | database_errors | dba.stackexchange.com | |
1,105,292 | Display custom message with getty@.service disabled | I have a CentOS 8 server running in a vm. I access this server only via ssh. Therefore I dont need the login prompt once server finishes booting up. Therefore I went ahead disabling [CODE] . Now server boots fine. I can ssh to the server. My ask is, how can I clear the screen and display a custom text once server finis... | I recommend reading the man page of agetty(8) . I have never tried this, but this should work: Enable the service again, copy the service file to [CODE] , and modify it to start [CODE] instead of [CODE] ... Exempt from the manpage: [CODE] This way, the file /etc/issues is read and displayed, but a direct login on the t... | 0 | 1 | 223 | 2022-07-11T14:07:09.467 | infrastructure | serverfault.com | |
143,831 | Tempdb data files are growing fast in SQL server 2014? | A few days back we have moved to 2014 from 2012 server and we kept the same settings as earlier like we are using 8 data files in Tempdb for better performance and all placed in single drive. As this is data warehouse environment batch loads are running continuously and tempdb drive is getting full.Even though 98% free... | Before troubleshooting TempDB space, it is good to know what objects are using TempDB. Even though you have issues only with Version Store, knowing what objects are using TempDB will give you a good idea on where to start. Remember, TempDB is a global resource for all databases, so this will be used for all databases. ... | 3 | 5 | 3,611 | 2016-07-14T08:07:37.813 | warehouse_errors | dba.stackexchange.com | |
111,932 | JDBC Exception JZ0BE: BatchUpdateException: A user with System Administrator (SA) role must reconfigure the system to enable Java | I am using Sybase JDBC JConnect3 driver to insert large data in a table using Batch Insert feature of JDBC. I am preparing a batch of 100 inserts and executing the batch. But it is throwing below error while executing batch query. com.sybase.jdbc3.jdbc.SybBatchUpdateException: JZ0BE: BatchUpdateException: Error occurre... | Start by trying: [CODE] ...and restarting the service if necessary. There may be more to it than that, please provide details of your server product, version, and anything else that might be helpful. | 1 | 1 | 1,994 | 2015-08-22T11:38:32.457 | database_errors | dba.stackexchange.com | |
275,378 | /dev/shm size recommendation for postgres database in docker | We have postgresql 11.7 database in docker container. We had an issue [CODE] , described here . Solution helped, we do not have an issue anymore. But which size should we set for shm_size for docker container with Postgres? Is any recommendation? How can we calculate 'optimal size' for shm_size? | There are two things that use shared memory: The shared memory that is allocated at server start. This consists of several parts, but the lion's share is [CODE] , the data cache. So you have to have more shared memory than that. Shared memory segments allocated by parallel query to communicate between parallel workers.... | 8 | 5 | 11,709 | 2020-09-11T13:32:20.047 | pipeline_ops | dba.stackexchange.com | |
127,288 | Data Collector Component Name Doesn't Change After Updating SQL Server Name | I cloned a SQL Server, and changed the name of the machine and SQL Server, but the old name continues to show up as a component name in the disk usage data collector, which I believe is what's causing that job to fail. This is part of the error in the job history for that task that includes the old name: [CODE] I have ... | I cloned an MS SQL server, and changed the name of the machine and SQL server, but the old name continues to show up as a component name in the disk usage data collector, which I believe is what's causing that job to fail However, SELECT @@SERVERNAME brings up a NULL value, despite restarting the server. How do I chang... | 1 | 0 | 120 | 2016-01-26T02:12:18.660 | data_quality | dba.stackexchange.com | |
882,212 | How can I log the body request and response in Apache Server only for some URLs? | I have to debug an apache server request / response body. I intend to use mod_dump_io. How can I log only specific request? I'm searching for any kind of filter or allow-list. | According to https://httpd.apache.org/docs/2.4/mod/mod_dumpio.html the only directive that is not a server config scope is LogLevel. Put [CODE] inside a [CODE] stanza. | 0 | 3 | 11,332 | 2017-11-07T09:00:43.657 | infrastructure | serverfault.com | |
565,529 | Connection refused from outside Vagrant box with private network | I've set up CentOS 6 on a vagrant box with a private network IP. I can ssh into the box using the IP, so that is working. However, I get a Connection refused on port 80 when curl'ing it. There's a very basic nginx serving up its default welcome page inside. Curling it from inside the box works. [CODE] Here are some thi... | Although there are many things that could be wrong, the first one to check is the firewall inside the guest: it could be as simple as it having a rule for port 22 but not port 80. | 9 | 5 | 16,098 | 2014-01-07T11:17:19.530 | api_errors | serverfault.com | |
323,154 | Postgres column limits | I have a PostgreSQL table which is quite large at the moment: 340 columns. This table is designed to hold the styling for a complex PDF. Over time I have made changes: dropped columns, added some new ones etc ... and it may still evolve further. Actually my current need is to double up the number of columns. As per htt... | The number of columns for a table, including dropped ones, can be found with [CODE] When you drop a column, the existing rows don't change. So the value of the dropped column is still there with the same size as before. New rows will have a NULL value there, which doesn't occupy any extra space, so for new rows there i... | 2 | 5 | 1,652 | 2023-02-07T10:36:43.533 | database_errors | dba.stackexchange.com | |
3,262 | Desktop apps or web services to test receiving text / SMS messages US-based | I'm a manual QA tester. I have a client (web-based) which allows certain business to send custom promotional text messages to their customers provided the business account has the customer's mobile phone number. I've used services such as TextNow, which is a mobile phone / tablet app, that gives you (in this case, the ... | I would (and do) use Google Voice, which allows you to send and receive text messages from within a browser. http://voice.google.com/ You will get a US phone number. | 4 | 2 | 6,145 | 2012-06-12T03:32:00.317 | data_quality | sqa.stackexchange.com | |
48,611 | mysql replication for certain dababases | I am new to mysql and I have a query in regards to mysql replication. Currently, I have a master database that replicates to four slave servers at the moment. I would need to set up a few replication servers(as slave) but these will replicate only a few databases. How would approach this issue? Should I be using someth... | I would avoid the replicate-do-db option due to the restriction on cross-database replication and users not fully qualifying a database name or not specifying "use dbname;" (it will execute on master but not replicate to slave). Use this option instead (put it in my.cnf): replicate-wild-do-table=dbname1.% replicate-wil... | 2 | 3 | 6,137 | 2013-08-23T14:20:26.887 | database_errors | dba.stackexchange.com | |
918,680 | ext4 corruption leading to unbootable disk. Partition is mountable, but grub detects unknown filesystem | I'm trying to recover from a system disk corruption issue without having to reinstall the OS, which would be super-painful currently. I'm using Ubuntu 18.04, the affected partition is ext4 and on a SSD disk. Summary: Root partition gets remounted read-only after some error. [CODE] shows a huge partition (ZB) instead of... | The easiest way is to copy your files, recreate the filesystem, format and then copy your files back. I don't think it worth trying to repair it. | 0 | 0 | 824 | 2018-06-28T14:27:46.140 | data_quality | serverfault.com | |
130,034 | Hardware recommendation for Solaris 10 + ZFS data warehouse server | The server would run a 2 drive (mirrored root pool for OS and master database segment). And would run individual zpools for each remaining drive (loss of data is acceptable). Initial requirements would be: 2x 7540 xeons (6 core) 32gig memory. 12 drives. A 4U/2U server (6/8 core and 2/4 sockets cpu support) with interna... | Buying x7540 processors is an absurd investment. A dual E5620 will be cheaper and still very fast. If you must use six-core processors, the X5650 is cheaper, though will be limited to only 2 per motherboard. There are 2U chassis which will fit 12 3.5" drives, but if you want even more spindles, there are 2U chassis whi... | 2 | 3 | 474 | 2010-04-07T09:03:08.723 | warehouse_errors | serverfault.com | |
517,357 | Troubleshooting oom-killer using atop: Is it fixed or not? | I have a Debian system with 4GB of RAM, 2GB of swap and 2 CPUs. I've been experiencing a number of system failures involving oom-killer. The system will be working fine one minute, and the next will be inoperable with numerous oom-killer messages on the console. I have already added 1GB of RAM twice. 5 What I find puzz... | Looking at your OOM-killer output, your system is certainly not having 500 MB free RAM and empty swap: [CODE] Note that the free memory in the "Normal" zone is below the "min" limit meaning that userland processes cannot allocate memory from it anymore: Your DMA and DMA32 zones do have some memory available, but the OO... | 4 | 5 | 2,706 | 2013-06-20T18:03:18.470 | api_errors | serverfault.com | |
198,423 | RDP to Windows 7 in Hyper-V with RemoteFX? | I have a Windows 7 VM running on a Hyper-V server. I connect to this VM from another machine (also running Win7). Will my remote connection be able to benefit from the new RemoteFX features coming in in the next service pack for Win7/Server2008R2, or is this only for terminal service-type configurations? | According to this paragraph: For virtual desktops deployed on top of the Hyper-V virtualization platform in Windows Server 2008 R2 SP1, graphics hardware-assisted rendering of the screen content on the VDI host will ensure that even the most advanced applications today and tomorrow will “just work”. The answer to your ... | 2 | 2 | 1,696 | 2010-11-05T02:47:37.793 | infrastructure | serverfault.com | |
98,836 | Any good planning tool or method for managing several competing projects? | I look for a tool or a "best practice" whose focus is on managing how the current staff of programmers can get assigned and re-assigned to different projects depending on changing priorities. Progress on projects should be tracked, too. Our department is not faced with a single, overly complex project (for which I'd kn... | Your company suffers from the common problem, "Too many generals and not enough soldiers." You wish to fix the problem but you can't get rid of any excess generals and you can't increase your soldiers. This is why Project Managers are invented. Here is a huge list of different project management tools that can really h... | 4 | 1 | 1,115 | 2011-08-05T10:38:19.830 | api_errors | softwareengineering.stackexchange.com | |
34,889 | Linux RTSP server | We plan to build the video streaming solution. Servers should take an rtsp stream from cams and duplicate it to users. Users connects to the authentication servers and only then are redirected to video servers. Video servers gives a stream to users through the https in browser. Our problem: how to organize the streamin... | Two obvious choices are Adobe Flash Media Server and Red5 - open source and free. FMS is a better and more advanced product, while red5 is free, written in java, and is open source. | 1 | 1 | 2,270 | 2009-07-02T08:11:33.137 | data_quality | serverfault.com | |
17,675 | Interviewed as Java Dev but Hired as Lead QA. No QA experience. What do I do? | I was recently laid off from my 5-years-long tiny telecommute-based server admin / full stack software dev job almost exactly a month ago. Exactly one week ago I interviewed for a job at a small post-startup company for the position of Java Developer, and on my first day at the job my supervisor announced to everyone t... | Some of this is not that different from what a newly hired software developer would do: Learn how the company makes money . Understand what problem the product solves, how people pay for it, how it's deployed (do you ship it or do you host it?). Introduce yourself to everyone . You can generate a lot of goodwill by tak... | 9 | 11 | 335 | 2016-03-19T04:23:40.087 | data_quality | sqa.stackexchange.com | |
775,668 | Connecting to MySQL is taking a long time | Here is a normal client side sending an AJAX request to the server, without using any libraries. About The Database: There is only 1 table in the DB having 2 columns and 2 rows. The Storage Engine in [CODE] NOTE : This is a test DB. I also have another DB having 4 tables with 5000-6000 records and 18 other tables with ... | From the process-list it seems that it is not a local database, i.e., not on the localhost and you are not accessing it using localhost or 127.0.0.1. Therefore it could be network or DNS related issue. Check DNS resolution issues and network latency problems. If the DB Server is on the same host and you are using local... | 1 | 0 | 9,016 | 2016-05-09T14:14:23.330 | api_errors | serverfault.com | |
201,779 | Filestream directory exists for a partition but the corresponding partition does not exist in the database | I am investigating a high memory usage issue of tempdb on a production SQL Server 2017 Enterprise (64-bit) deployment. This is similar to an issue discussed here . The server has two production DBs each with a FILESTREAM. As part of my investigation, I ran [CODE] to check if tempdb is sized correctly. The output was as... | I know this question is old, but I've recently dealt with it, and opened a case with MS to troubleshoot the problem. The goal was to turn off filestream in my database, but no amount of full/log backups, checkpoints, and forced garbage collections could get me past the error that the file could not be dropped because i... | 1 | 0 | 463 | 2018-03-20T11:15:03.080 | pipeline_ops | dba.stackexchange.com | |
52,419 | Java heap space error in JMeter | The vm hardware configuration is Processor: Dual Core RAM : 8GB RAM Increased the JMETER Heap Space to 8GB but still getting as JAVA HEAP SPACE issue. Also in the Task Manager the while wrunning the script with 3 Vusers for 10minutes for debugging purpose when I looked at Task Manager Memory consumption is upto 80%. I ... | Ensure that heap setting is really applied . For example you need to restart JMeter after changing the value in .bat file you need to use the jmeter.bat file for starting JMeter use 64-bit JVM as you won't be able to allocate more than 3GB with 32-bit Java Don't use GUI mode for tests execution Add HTTP Cache Manager t... | 0 | 0 | 20 | 2024-03-11T11:54:34.753 | data_quality | sqa.stackexchange.com | |
145,010 | What steps can I take to avoid character encoding issues in a web application? | In previous web applications I've built, I've had issues with users entering exotic characters into forms which get stored strangely in the database, and sometimes appear different or double-encoded when retrieved from the database and displayed back in the browser. I'm starting a new project now, and I want to prevent... | If I set my database tables to UTF-8, and set all of my web pages to assume content is UTF-8, is this enough? You need to ensure that the connection between the web application and the database doesn't mangle the encoding (I believe you need to explicitly set this on the connection string for MySQL, for instance). Basi... | 4 | 4 | 1,233 | 2012-04-18T14:28:06.677 | data_quality | softwareengineering.stackexchange.com | |
104,560 | How to select second last row from table? | Table Name :- ModelParam_EMS Primary Key :- ParameterID No of Rows :- 500 want to select [CODE] th row from table only. [CODE] Create Table :- [CODE] | You can use this: [CODE] The query just returns the first row after n-1 row(s) For example, if you want to get the second most expensive product (n = 2) in the products table, you just use the following query: [CODE] Try this. Could test here and it's ok. Found this site helpfull | 3 | 6 | 18,231 | 2015-06-19T11:14:29.300 | api_errors | dba.stackexchange.com | |
77,701 | Keras model.predict giving different shape from training label array | I'm using the following code to try and learn tensorflow. I've clearly specified the shapes of the training and validation [CODE] and [CODE] arrays. [CODE] When I run [CODE] , I get the output [CODE] . I'm not able to understand where these extra 9 dimensions are coming from. Even the [CODE] prediction should have the ... | The 10 outputs came from the fact that you have 10 neurons in the final layer of your network. If you change your model to [CODE] its output will have a shape of [CODE] . | 2 | 2 | 2,183 | 2020-07-14T13:26:07.397 | data_quality | datascience.stackexchange.com | |
952,665 | HTTPS from web server in China is blocked by RST TCP packets (Great Firewall?) | I'm hoping someone can provide some insight to a weird issue we're having as of 3 February 2019. TL;DR HTTPS sites on an IIS server in China are returning TCP RST packets after the initial TLS handshake. The sites are showing "connection reset" errors to clients outside of China. * The same sites are accessible from wi... | Is it the case that when any payload TCP packet is sent, a RST is sent back? Or does it specifically have to be a TLS / Client Hello? ie. if you type something after a telnet connection is established, does the connection then close/reset? Many years ago, I worked for a company that was developing technology employing ... | 4 | 2 | 1,337 | 2019-02-06T19:53:45.607 | infrastructure | serverfault.com | |
772,545 | Azure VM waagent: Error parsing ExtensionsConfig. Unable to send status reports | Azure CentOS 7.2 VM from OpenLogic deployed with the Classic Model. Azure Linux Agent Version: WALinuxAgent-2.0.18 The VM is working fine, but I don't know the source of this error I'm getting in waagent log and what does it mean. On starting waagent the [CODE] reports: [CODE] Then every 25 seconds the log gets: [CODE]... | Did you install the provisioning agent in this VM? If you simply install the walinuxagent package without enabling the provisioning agent (via portal or CLI) then the walinuxagent's configuration will not include the location for uploading status blobs. Reference the 'installation' remarks here . In short (via powershe... | 0 | 1 | 579 | 2016-04-24T08:46:55.990 | infrastructure | serverfault.com | |
1,106,091 | failed to open /etc/userdomains for linear search: Permission denied (euid=1000 egid=1001) | Here my autoresponder in centos is not working can anyone help me with it. [CODE] This is my issue which I get My router [CODE] My Transport [CODE] | so here just I have to do is tained name for domain like this [CODE] | 0 | 0 | 105 | 2022-07-20T10:00:24.957 | infrastructure | serverfault.com | |
39,359 | How to recover data from corrupted SQL Server database? | We had several power outages and server rebooted couple times which seemed to cause issues with one of the databases. We tried detaching at attaching database again but it looks like database is corrupted and we’re getting the Msg 5172, Level 16, State 15, Line 1 Claiming that database header is invalid. Is there anyth... | I’d try the procedure described below or third party tool such as ApexSQL Recover if that doesn’t work and database is severely corrupted. There might be other options out there. This is something that worked for me once but there are no guarantees that it will work at all times. Stop SQL Server instance -> Copy MDF an... | 1 | 2 | 10,008 | 2013-04-05T08:45:43.143 | database_errors | dba.stackexchange.com | |
573,489 | How can I get WSUS to send emails without authenticating on our mail server? | I'm trying to set up WSUS to send email reports. To make that happen, I created a new receive connector on our Exchange server. I've limited that server to the IP address of the server that hosts our WSUS role. I've then enabled anonymous access to the connector. Yet, when I test the settings, I get an error similar to... | No offense meant, I know you were simply trying to answer your own question and post for the SF community, but I would say you are doing it wrong. You should setup your Receive connector as a proper relay, with the permissions tab set to [CODE] not [CODE] and your Authentication Tab set to [CODE] . Then lock the Receiv... | 2 | 6 | 2,595 | 2014-02-05T21:36:46.037 | infrastructure | serverfault.com | |
6,259 | With an expert Sys admin, are windows and linux equal for security | Considering that it would have been laughed at by the unix/linux people to suggest windows as a internet connected server until the 2000 era, is that argument now laid to rest? Aside from nix admins who dont want to lose their lucrative admin positions(because certain jobs take ages compared to windows, and vice versa)... | The major problem with security is not actually with the platforms themselves, but with the popularity of windows. There are security holes in any system, its impossible to prove that bugs don't exist in anything but the most trivial of software. Windows and Linux both contain security holes that haven't been uncovered... | 4 | 13 | 628 | 2009-05-08T12:52:19.637 | infrastructure | serverfault.com | |
30,199 | Trouble with triggers and insert .. on duplicate key update | I have two tables with identical schemas. one is a "main" table that is pruned periodically and kept small. The other is a "reporting" table that is an archive of everything that ever was. For simplicity lets say the table schemas look like [CODE] I have two triggers, one AFTER INSERT, and one AFTER UPDATE that look li... | This question came back on my radar after a recent comment was posted. This issue at the time turned out to be this reporting table that was meant to be maintained by triggers was on a slave only. The insert on duplicate key statements were getting flagged as not safe for statement based replication and getting pushed ... | 2 | 2 | 8,479 | 2012-12-11T18:44:18.523 | hadoop_errors | dba.stackexchange.com | |
270,105 | Implementing Continuous Integration with a volatile hierarchy of library dependencies | Recently my company setup a build server using Bamboo and a private Nuget Feed which is populated by the successful builds being deployed from the build server. There is a hierarchy of projects under heavy development setup for use in bamboo with a fairly simple, linear dependency graph. Before being setup on bamboo al... | When you are working with multiple teams on multiple projects, you always had and will have most (if not all) of your troubles relating to interfacing between these projects. You can call it project/library/microservice/etc. - it's always the same as you describe. One team makes breaking changes, the other team(s) suff... | 1 | 2 | 165 | 2015-01-14T21:08:48.483 | api_errors | softwareengineering.stackexchange.com | |
427,123 | Thunderbird 15.0.1 cannot use Exchange 2003 SMTP | I'm having the strangest time getting a Thunderbird email client to connect to my Exchange 2003 server. I got the incoming IMAP account set up no problem, and I can receive mail. However sending mail will not work no matter what SMTP settings I enter. After checking the server, the proper settings should be port 25 wit... | In Exchange System Manager, Org/Servers/ServerName/Protocols/SMTP/ Properties on your Virtual Server. Access tab.... Authentication - Anonymous should be checked Connection Control - All except... Relay (key) - Make sure bottom "allow those that authenticate" is checked. I would also, for grins, add the IP of your clie... | 1 | 0 | 990 | 2012-09-13T14:28:05.973 | api_errors | serverfault.com | |
1,132,594 | Winexe error NT_STATUS_LOGON_FAILURE executing script from Linux to Windows Server 2012 | I've installed winexe on my linux machine. I want to use it to execute some script on a Windows Servre 2012. It doesn't work, the error is NT_STATUS_LOGON_FAILURE. I've followed this guide to install winexe: https://www.aldeid.com/wiki/Winexe I've enabled SMBv1 and SMBv2 on Windows Server. The script I'm trying to exec... | The Syntax is [CODE] and it works with SMBv2, as long as the executing user has 'remote logon' rights. You can not execute interactive stuff like cmd.exe by itself. | 0 | 0 | 105 | 2023-06-04T13:02:56.400 | infrastructure | serverfault.com | |
177,528 | Does async/await makes simple thing unnecessary complicated? | After exposing to Windows App Store development for a month, I begin to feel that [CODE] / [CODE] programming model does more harm than good. It makes simple thing complicated. Take an example, folder creation. In Java or Desktop .NET, I can simply do Java [CODE] Desktop .NET [CODE] But when comes to Windows App Store ... | You're probably holding it wrong (just some context for the statement) . Unfortunately I haven't had a chance to play with Win8 yet, but based on code examples I've seen, your code should look more like [CODE] The other option (if you can't make your method [CODE] ) is to block the thread until async opertation complet... | 5 | 10 | 10,852 | 2012-11-28T15:18:29.123 | api_errors | softwareengineering.stackexchange.com | |
475,180 | Nginx and client certificates from hierarchical OpenSSL-based certification authorities | I'm trying to set up root certification authority, subordinate certification authority and to generate the client certificates signed by any of this CA that nginx 0.7.67 on Debian Squeeze will accept. My problem is that root CA signed client certificate works fine while subordinate CA signed one results in "400 Bad Req... | As far as I understand, [CODE] should do the trick. See http://nginx.org/r/ssl_verify_depth for details. | 4 | 3 | 17,209 | 2013-02-04T12:19:02.713 | api_errors | serverfault.com | |
119,980 | How can I know the best number of features to use? | I noticed that developing ml models a very important step in feature engineering is adding new features that can explain better the target variable. Recently I experienced a situation where by adding some features the model's performance improved, while adding five more features the performance worsened. So, my questio... | I would recomend reading ( Feature Engineering and Selection: A Practical Approach for Predictive Models ). Intuitively, I would say that adding relevant and informative features to a model can help it capture more patterns in the data, leading to improved performance. For example, in a classification problem, adding f... | 0 | 0 | 32 | 2023-03-05T19:33:46.547 | data_quality | datascience.stackexchange.com | |
59,399 | Non-overlapping rectangles constrained to a boundary | I am trying to model placement of parts on a circuit board. Without any meaningful constraints, my basic schema looks like this: [CODE] ( SQL Fiddle , Visualization ) For [CODE] and [CODE] any [CODE] s, I want to enforce the following constraints: [CODE] lies on the board: [CODE] [CODE] and [CODE] do not overlap if the... | Basic answer I suggest the geometric type [CODE] and an exclusion constraint (Postgres 9.2+ ). Should be the perfect solution to your problem. It creates a GiST index implicitly that also supports certain queries. Combine it with with equality on [CODE] to allow multiple boards in a single table. You'll need the additi... | 5 | 5 | 529 | 2014-02-22T06:05:04.907 | bi_errors | dba.stackexchange.com | |
197,236 | Website ignoring my SSLCertificate | I'm forcing all access to my phpMyAdmin to go through HTTPS but I'm having a bit of trouble with the certificate. I have generated a SSLCertificateFile and a SSLCertificateKeyFile and in my ssl.conf file I have referenced the locations of those two files. The problem I'm having is the website is looking at the default ... | It sounds like you have two warring defaults for which certificate to use on port 443. It can only use one (absent SNI); why do you feel it should pick yours over the default one? Try commenting out the [CODE] section. | 0 | 1 | 125 | 2010-11-02T11:18:06.033 | infrastructure | serverfault.com | |
1,018,774 | How to Access Google Cloud VM from other Google Cloud VM in different region | Is there any way to Access Google Cloud VM from other Google Cloud VM in different region? I have seen that one of my US-Iowa 10.121.0.4 while Asia-Japan Region is 10.148.0.5 I was planning to host mysql on only 1 server and use it from other machine and host machine both (which are acting as web server). I thought thi... | You can't ping internal IP via VM to VM, it is part of a security method of GCP, since it needed a VPN connection . | 0 | 0 | 439 | 2020-05-26T16:37:16.457 | database_errors | serverfault.com | |
388,401 | http to https with virtual hosts | I'm trying to move trac to secure connection. I want to use https. Virtual host file works fine when I put *:80 and comment out ssl engine. Whenever I change it to ssl it doesn't respond via 443. Any ideas? I tried this: [CODE] But when I use it, trac is inaccessible | Make sure Apache is listening on port 443 and also make sure your firewall is allowing inbound traffic on that port. Somewhere in your Apache config you need this, [CODE] On Debian (you don't mention your OS) it's in ports.conf like this, [CODE] Also, don't forget you'll need to load the right module in Apache as well ... | 1 | 3 | 194 | 2012-05-11T22:34:18.100 | infrastructure | serverfault.com | |
919,249 | How to view signatures fulfilling the "Authroized Signatures" option in a Smart Card Logon certificate from a Windows CA | I'm playing with the Windows Server CA role and Smart Card logons. We have a working PKI setup and smart card issuance/logon working. What I'm curious about is the "Require this number of authorized signatures" option in the "Smartcard Logon Template" and how to view the signatures. To me, it makes sense that this opti... | You can see who the Enrollment Agent was by looking at the original request within the Certification Authority MMC ( [CODE] ). Select the Issued Certificates folder in the left hand pane and find the certificate you're interested in. Right click on the certificate and select All Tasks -> Export Binary Data... . In the ... | 0 | 0 | 120 | 2018-07-02T23:31:10.687 | data_quality | serverfault.com | |
289,324 | Most efficient method to import bulk JSON data from different sources in postgresql? | I need to import data from thousands of URLs, here is an example of the data: [{"date":"20201006T120000Z","uri":"secret","val":"1765.756"},{"date":"20201006T120500Z","uri":"secret","val":"2015.09258"},{"date":"20201006T121000Z","uri":"secret","val":"2283.0885"}] Since COPY doesn't support JSON format, i've been using t... | I suggest using jq and spyql for this task. spyql can convert JSON lines (1 json file per line) into bulk INSERT statements. Since your json is an array we will use jq to transform it into JSON lines format. 1st step: JSON to JSON lines using jq [CODE] 2nd step: JSON lines to bulk INSERTs using spyql [CODE] 3rd step: p... | 0 | 1 | 2,909 | 2021-04-06T03:56:39.510 | database_errors | dba.stackexchange.com | |
584,839 | apache change proxy request url rewrite | I have problem with proxy requests. I need to enable apache mod_proxy for my subdomains but i forgot to set Allow from mydomain.com, it was Allow from all...Yes, i created open proxy for all world... So, now when i set Deny from all, Allow from mydomain.com i am getting errors that some clients have been rejected becau... | Rewriting URLs can be done using mod_rewrite, which can be combined easily with mod_proxy. There's ample documentation in Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About Mod_Rewrite Rules but Were Afraid to Ask which also contains links to the official Apache documen... | 1 | 1 | 624 | 2014-03-27T07:20:43.430 | api_errors | serverfault.com | |
895,573 | Unable to backup postgres databse | We have postgres 9.1 running on Ubuntu box. The postgres db size is 155GB and it has about 13200 tables. The Ubuntu box has 120GB RAM. The Ubuntu box is a docker container. When an attempt to backup the db was made, it failed saying: [CODE] So we increased the value of [CODE] to 1024 in [CODE] , but postgres wouldn't s... | The Ubuntu box is a docker container. Containers set limits on memory , and use IPC namespaces , and the default shm limit is nowhere near large enough to run large databases. You will need to configure higher limits in the run command. If the container has more than one hundred GB of memory to use, you could set shm l... | 0 | 0 | 871 | 2018-02-04T05:35:17.680 | pipeline_ops | serverfault.com | |
82,376 | Network connection from old application to SQL Server 2008 R2 lost once in a while | I have put this question on serverfault.com as well, but since the problem concerns connecting to SQL Server, I will also put it here. We are trying to migrate an Axapta 2.5 database from SQL Server 2000 to 2008 R2. We are testing performance etc. on the new server, but once in a while, these two events are thrown on t... | Axapta 2.5 was not supported on SQL Server 2005 or later versions so you are out of your depth there. To support later version of the database engine you will need to update the axapta application itself. 2.5 predates SQL Server 2005 by years: http://everything.explained.today/Microsoft_Dynamics_AX/ Any problems you ha... | 2 | 0 | 225 | 2014-11-11T12:50:00.227 | database_errors | dba.stackexchange.com | |
184,629 | SQL Server slow after host reboot | I work with SQL Server 2008R2 and the server is rebooted in a monthly basis due to Windows patching. Usually the reboot takes place in the last Sunday of each month during the morning period. However every time that happens, some critical jobs that are executed in a daily basis late at night become incredible slow taki... | Reason for slowness is that - your buffer pool (including other caches e.g. plan cache, etc) are nuked when sql server is restarted. Couple of things that you can do - After reboot, if you know what tables are getting hit by your critical jobs, just cache them (doing select * ) into the buffer pool. Check to see if you... | 0 | 3 | 3,237 | 2017-08-29T21:13:42.080 | database_errors | dba.stackexchange.com | |
725,914 | iptables outgoing default policy is accept, but some ports appear blocked | I'm new to servers and iptables. I have a web app (happens to be bugzilla) running on my Centos 6.7 apache/httpd server, and it attempts to connect out to the web (updates.bugzilla.org) via port 80. It also attempts to connect out (to smtp.gmail.com) using port 465. However, it cannot. This is in spite of having a defa... | Try this: [CODE] Boom, no firewall. Test again. Try using telnet to test that port: [CODE] Once connected with telnet, type "get" and see if there's a response. [CODE] Didn't work? Try tcptraceroute to see where it gets blocked: [CODE] Could there be something else blocking ports? A firewall, router, ISP? | 3 | 2 | 1,919 | 2015-09-30T23:00:53.567 | infrastructure | serverfault.com | |
484,301 | how do i check the RAM on my Ubuntu sever? | I'm using an old laptop that originally had 512MB of RAM and installed Ubuntu Server 12.04 I upgraded the old 512MB memory card to 1GB memory card, and now i just want to check how much RAM my "laptop Ubuntu Server" actually recognized... If someone knows the Ubuntu Server command to checking RAM that is being recogniz... | Would [CODE] work for you? | -1 | 4 | 133 | 2013-03-03T20:47:21.270 | infrastructure | serverfault.com | |
151,215 | Is dependency injection by hand a better alternative to composition and polymorphism? | First, I'm an entry level programmer; In fact, I'm finishing an A.S. degree with a final capstone project over the summer. In my new job, when there isn't some project for me to do (they're waiting to fill the team with more new hires), I've been given books to read and learn from while I wait - some textbooks, others ... | The fundamental idea in DI is simply to push dependencies into objects, rather than letting them pull dependencies from outside. This was also called "inversion of control" earlier. This allows one to control dependencies much better, and - last but not least - to write code which is easy to unit test. DI frameworks on... | 13 | 23 | 8,643 | 2012-06-01T20:54:42.073 | api_errors | softwareengineering.stackexchange.com | |
344,726 | Why do many languages semantically distinguish "async" functions from "non-async" ones? | I've seen this in C#, Hack, and now Kotlin: [CODE] or an equivalent operation can only be performed in special "async" contexts. Return values from these are, to borrow Hack's terminology, "awaitable" in turn, so the special async-ness of some low-level async system function call bubbles to the top unless it transforme... | The reason you need to mark methods as [CODE] in C# in order to use [CODE] as a keyword inside of them is that C# was already a well-established language by the time this was added as a new feature, and it's reasonable to assume that there was code out there that used [CODE] as an identifier, which would have broken un... | 7 | 5 | 1,216 | 2017-03-22T19:43:28.077 | bi_errors | softwareengineering.stackexchange.com | |
9,389 | How should I analyze this data from reddit (sample text included) | I have downloaded some data to learn about machine learning and distributed computing. I used WinZip to uncompress a .bz2. Now I have text (opened in Notepad) which looks like this (this file is long, this is just a sample): [CODE] | Data Science is not an algorithm to run on your data. It is the process that helps you answer a specific question. The key to be a data scientist is to ask the right questions. So, first, since you want to be familiar with machine learning, examine your data and try to understand what they can answer for you. Examples:... | -2 | 3 | 470 | 2015-12-15T03:10:26.323 | data_quality | datascience.stackexchange.com | |
2,155 | Cannot connect to chocolatey.org or any other internet site from within container | xpost from https://forums.docker.com/t/cannot-connect-to-chocolatey-org/38745 Expected behavior I'm running Windows Server 2016 Datacenter (MSDN download) 64 bit - Version 1607 - Build 14393.1715 I'm using Docker For Windows and running Windows Containers. I figure this is the easiest thing in the world, to do this: [C... | The problem appears to be that the Windows images configure DNS to first be the default gateway of the NAT interface, and then the DNS of the host machine. DNS lookups fail against that first resolver and external access. Adding [CODE] (or your local resolver) to the CLI seems to work around the problem. | 13 | 6 | 5,439 | 2017-09-26T15:47:20.917 | pipeline_ops | devops.stackexchange.com | |
878,899 | Windows 2008 server installation asks for Hard Drive Drivers in Dell Power edge sc1420 | We are having blue screen from windows 2008 server, even with Safe Mode, so we are trying to repair the OS, but it keeps asking for HD Drivers, we have a Maxtor 6L160M0 (Pretty old, I know) and we are not able to find the firmware for the windows installation anywhere, do you have some advice, or how can we fix this pr... | Try to download and decompress the following files to your USB drive to load drivers from. If you have 64-bit Windows: https://downloads.dell.com/SATA/R126742.EXE https://downloads.dell.com/SATA/R111014.EXE If you have 32-bit Windows: https://downloads.dell.com/SATA/R168588_A8.exe https://downloads.dell.com/SATA/R12674... | 1 | 0 | 740 | 2017-10-17T14:41:50.520 | infrastructure | serverfault.com | |
79,087 | Apache memory leak with Subversion server | Does anyone know of a way to fix the Apache memory leak in relation to Subversion Server? We have a windows server 2003 machine running Apache to host Subversion. From day one, we have had memory leak issues and have not found a solution yet. All we do is monitor our server when when the memory use reaches near the max... | We had a similar issue with SVN 1.6.6, Win 2K3 32-bit, CollabNet install. We tried using this info from the SVN mailing list related to MaxMemFree and it seems to have worked for us so far. Try adding the MaxMemFree Apache directive to your httpd.conf file. This seems to force apache to "clean up" memory more often. I ... | 2 | 5 | 2,239 | 2009-10-26T21:08:26.733 | infrastructure | serverfault.com | |
579,961 | AJAXPLORER (Pydio) inaccessible via LAN | I am totally unable to access ajaxplorer through LAN. I am able to access it from the same pc. But, it is totally inaccessible from a different computer. I can ping the machine however, nothing opens on the browser, even the apache default page is inaccessible. Any idea as to what could be the problem? Thanks | It sounds as though Apache isn't listening on your LAN-facing IP address. Run [CODE] and look for a line that looks like either of [CODE] to show that Apache is listening. Or, run [CODE] (if [CODE] is your LAN-facing IP address) and see if you can connect. In Apache, do you have a [CODE] or [CODE] directive? | -1 | 1 | 347 | 2014-03-05T11:40:11.610 | infrastructure | serverfault.com | |
614,119 | What could be wrong with my XenServer iscsi configuration after a recent power outage | We just experienced a power outage due to a lightning storm. Outage was long enough to restart servers and switches. We have 2 XenServer hypervisors running in the same pool. At first, both of them seemed to be fine and running normally. Both of them are connected to Equallogic SAN using the same switches. Then I reali... | After a hard crash (power outage), it's not unusual for this to happen. You should first determine if the XenServer is connecting to the SR first, then determine the health of the VDI. Connection/Configuration http://support.citrix.com/article/ctx118841 VDI not Available http://support.citrix.com/article/CTX131201 and ... | 1 | 1 | 910 | 2014-07-21T10:29:09.083 | infrastructure | serverfault.com | |
69,388 | Inserting null value without quotes | I'm creating a PHP application which relies on PostgreSQL. Now I have this query: [CODE] [CODE] , [CODE] and [CODE] values can be null. When I run this query, I get a syntax error. So my question is: to insert a null value, I have to manually write null or am I missing something in the query? Edit: Seems like I am forc... | Do not use this statement at all. You are wide open for SQL injection. Use a prepared statement instead: [CODE] The PHP manual about [CODE] : This function used to be called [CODE] . [CODE] is still available for compatibility reasons, but users are encouraged to use the newer name. Related: Using NULL value in INSERT ... | -2 | 4 | 3,140 | 2014-06-30T19:05:11.720 | data_quality | dba.stackexchange.com | |
1,091,139 | Using OVH VRack, 2 PVEs can't fully communicate | In OVH, I have 2 ProxMox servers, each one containing a Firewall and a few other hosts. I am trying to use OVH vRack for private communication between them, but it is not working. Here's a summary of my network: The goal is accessing PRD1FRM206 from PRD2FRM201 and vice-versa. Hosts PRD1FRM206 - Host in PVE01 Server PRD... | Some routes are simply wrong. I show the low level correction, the higher level networking configuration should be changed accordingly. PRD1FWL100 [CODE] while it's technically working, using one own's IP address as gateway is the same as not using a gateway: as should be on two systems bridged in the same Ethernet bro... | 2 | 1 | 681 | 2022-01-25T19:14:23.337 | infrastructure | serverfault.com | |
175,442 | Is using something other than XML advisable for my configuration file? | I have a small tool I'm designing which would require a configuration file of some sort. The configuration file in my case is really more of a database, but it needs to be lightweight, and if needed the end-user should find it easily editable. However, it also will contain a lot of things in it. (depending on certain f... | I think YAML is best fit for your case. To my understanding, YAML is the de facto standard format for configuration files that need to be edited by hand. Many programming languages have a library for reading and/or writing YAML. JSON is closely related to YAML, but is little bit less easier to write than YAML, and is u... | 8 | 12 | 4,084 | 2012-11-11T08:38:06.723 | api_errors | softwareengineering.stackexchange.com | |
674,321 | Slow merge replication over a WAN link - only downloads | We've been using SQL Server merge replication for a few years to synchronise data between our data centres, but we are now suffering with a big performance issue. This may be because the amount of data we are synchronising has increased a lot this year. Our publisher is an always-on data centre in the UK. Our subscribe... | We got to the bottom of this in the end. It was our use of nvarchar(max) columns that was stopping the replication from using batches. What used to take 3 hours now takes 50 seconds just by changing the data type. Here is the lesson learnt: "nvarchar(max) is a replication killer" Thanks | 0 | 0 | 550 | 2015-03-10T14:13:57.083 | database_errors | serverfault.com | |
70,581 | Use of past tense (passive voice) to connote immutability? (E.g. Array.Transposed vs. Array.Transpose) | [Note: The below is a bit C# heavy in its syntax and conventions, such as citing FxCop rules, because this is my background, but the intent of this discussion is to be language-agnostic and the code examples used should generally be regarded as pseudo-code. — Mike] I think we would all agree that classes should general... | Past-tense kinda sounds awkward. I think that you intended the word to be an adjective. Here's my suggestion to the problem you asked for: instead of [CODE] , call it [CODE] . That way, you know that you are receiving something and not modifying the object. | 9 | 8 | 3,408 | 2011-04-22T20:55:28.137 | api_errors | softwareengineering.stackexchange.com | |
573,742 | Proper Subversion permissions using HTTP and repository authorization with Linux users | Sorry for this “stupid” question but I really can’t find a solution on the internet. Please help me. I’m using Subversion on a Linux server to keep under version control the files of a website project I’m maintaining. This is my configuration: Project folder (a working copy of the repository on the server, in order to ... | If you are using the DAV option for subversion, then you need to give the web server access to the repository. This can be as simple as changing all the files/directories for the repository to be owned by www-data. If you want your post-commit action to do something useful you probably need to look at setting up passwo... | 2 | 3 | 1,818 | 2014-02-06T18:55:48.367 | infrastructure | serverfault.com | |
960,963 | Domain Join - The Network Path was not Found | I am unable to join PC's or servers to my domain and am unable to determine the cause... What have I tried? - Disabled Domain Windows Firewall; Changed Network Adapter from Public to Domain, Changed DNS directly to the Domain Controller (Same Issues), I have Malwarebytes Premium installed but this has not caused issues... | Issue was caused by the Hyper V Virtual Switch. I had reset all my network adapters and re-sent them back up again. It is now working :) | 0 | 0 | 4,495 | 2019-04-01T15:25:04.727 | infrastructure | serverfault.com | |
16,069 | k3s: Eviction manager: attempting to reclaim" resourceName="ephemeral-storage | When I run [CODE] I see all my pods are pending [CODE] When I check [CODE] , I see [CODE] I think this is a result of the eviction manager, because my system is low on disk space? Perhaps it's just looking at percent free, the below is the device from [CODE] I'm also seeing this in the error log, [CODE] [CODE] Where ar... | This is because of the default settings for the eviction manager (currently 5% hard, and 10% minimum for image reclaim) safeguard a new pod exhausting the space on your hard disk, and the metrics are a bit overly conservative. You can change the eviction manager settings by providing a [CODE] that overrides the k3s def... | 0 | 1 | 2,050 | 2022-06-04T16:43:39.493 | pipeline_ops | devops.stackexchange.com | |
205,161 | Stored procedure with case statement for 'AND' based on parameter value | I have a table in my db that stored both successful and failed log-in attempts. I am creating a stored procedure that allow us to delete records which are older than X days old. So far so good, but I want to raise it a notch (or two) and allow us to specify whether to delete records on whether the [Success] column is t... | I don't think you even need dynamic SQL here. You can use variables in the query. [CODE] (Not tested as no sample data was provided. Just to demonstrate the idea.) If you look close at it, you'll see, that the entire [CODE] is the left operand of an [CODE] operation. The right side of the operation is [CODE] . Unfortun... | 3 | 6 | 4,470 | 2018-04-27T11:55:21.333 | database_errors | dba.stackexchange.com | |
128,891 | Should a code review be different for front-end web developers? | Web developers code in a minimum of four languages (HTML, CSS, JavaScript, and a server-side language), must produce a working result in several different browser implementations, and may work on the top of a custom software stack that they don't control. How should a code review take these things into account? Should ... | Code reviews should cover all the code - that certainly includes the JavaScript and HTML and probably even the CSS. If you don't have another person proficient in all areas, break the review down into sections so that each can be viewed by another language expert. If you don't have another expert someone will have to b... | 6 | 6 | 1,898 | 2012-01-06T22:48:50.400 | api_errors | softwareengineering.stackexchange.com | |
697,817 | Can't execute files in particular directories | We are encountering a bizarre issue were non-root users are unable to execute any files (scripts or binaries) in certain directories. This transcript demonstrates the issue: [CODE] Our first thought was selinux, but this is off. Next was noexec on the f/s, but this isn't the case. Our user shell is just regular bash (n... | I rechecked the logs (logging was misconfigured and previously there was no output when tailing messages - thanks Paul) and I've found this: [CODE] It appears we have grsecurity: Trusted Path Execution enabled (perhaps this is default in CentOS 6.6) and the owner of the directory is not trusted. Looks like we just need... | 5 | 0 | 817 | 2015-06-10T00:50:23.363 | infrastructure | serverfault.com | |
145,907 | Does Mac OS X throttle the RATE of socket creation? | This may seem programming related, but this is an OS question. I'm writing a small high performance daemon that takes thousands of connections per second. It's working fine on Linux (specifically Ubuntu 9.10 on EC2). On Mac OS X if I throw a few thousand connections at it (roughly about 16350) in a benchmark that simpl... | So it turns out the Mac OS X ephemeral port range is fairly low. Wikipedia informs me that IANA suggests 49152 to 65535 as "dynamic and/or private ports" while many Linux kernels use 32768 to 61000. OS X uses the IANA range. This means Linux has almost twice the available ephemeral ports. Since each closed socket goes ... | 9 | 13 | 5,414 | 2010-05-27T15:33:56.270 | infrastructure | serverfault.com | |
252,059 | Why is my DB size increasing when rebuildling an index using sort in tempDB in SQL Server? | I am running Ola Hallengren's SQL Maintenance scripts using the following command: [CODE] Up until recently a number of the indices were unable to rebuild due to space constraints so I shifted tempDB to its own drive, configured tempDB to use 8 different files, and started sorting in tempDB (each tempDB file is roughly... | I have quoted three sections from different articles and gave the links at the bottom. Bottom line is you need space for the new index to get build plus transaction log space for rollback. If you cannot accommodate the space required you might want to consider INDEX_REORGANIZE . When a new index structure is created, d... | 4 | 2 | 999 | 2019-10-28T10:03:28.833 | database_errors | dba.stackexchange.com | |
802,047 | Bridged routing with KVM and independent IP addresses | I have a dedicated Server (at Hetzner), with Debian Jessie and und KVM for virtualization. For the two Virtual Machines I have two additional IP addresses (with extra MAC addresses), which are not part of a subnet (or related to the main IP). [CODE] I want to use a bridged setup to bring my VMs to the internet and make... | Check if separate Mac adresses are activated for your additional ip's try to use them with the vms. This solution worked for me on pfsense | 2 | 0 | 516 | 2016-09-09T08:47:54.133 | infrastructure | serverfault.com | |
434,327 | Is there a reason to not use a guard check using params instead of singular checks? | I've been refactoring guard statements for my project to simply use a custom Ensure class with 2 methods. Some methods require multiple null checks and I implemented a guard method that simply accepts a list. This method will call the singular guard check for each value given. However I don't seem to find any other exa... | Is there anything wrong with this approach? There's nothing wrong, per se, but nullability is not the only guard that exists. When you start accounting for all possible guards, especially when you get to compound evaluations ( [CODE] ), making prefabs for every check is a bit futile. In really, all you've really done h... | 0 | 3 | 470 | 2021-12-14T12:40:08.253 | api_errors | softwareengineering.stackexchange.com | |
1,078,266 | IPv6 connectivity suddenly lost, IPv6 neighbour router status becomes STALE at the same time. How can I avoid it? | I have a VM on a host with bridged networking (hence, with its own MAC address). Both host and VM run CentOS. Their network is managed by simple [CODE] files which contains the static IP addresses. IPv4 works just fine. I have assigned an IPv6 address to the VM (the host also has one) which is routed correctly in the d... | Generally Stale State is a good thing, actually its acceptable we have a Stale State. Let's look at RFC 4861, section 5.1. : [CODE] The neighbor is no longer known to be reachable (timer expired, no traffic lately, whatever) and reachability will be 'verfied' once traffic is sent to the neighbor again. So there isn't a... | 2 | 1 | 1,742 | 2021-09-22T07:06:50.973 | database_errors | serverfault.com | |
948,606 | Flask WSGI vs Nginx/Gunicorn: mailing list works in dev but not production | I have deployed a Flask web app to a Digital Ocean droplet running Ubuntu 18.04. The web app is simply a landing page that has a single form that adds a visitor's email address to a Mailchimp mailing list. The web app works perfectly in development, however the form submission does not work in production. Submitting th... | The problem was due to the Mailchimp API key not being read in from my [CODE] file. In development, it appears that the [CODE] file is implicitly loaded by python-dotenv but in production you need to explicitly load the file. [CODE] | 0 | 1 | 549 | 2019-01-11T09:47:24.310 | api_errors | serverfault.com | |
53,507 | How to create feature representation? | Let's say I've a dataset with 800 rows(40 entries for each of 20 users). The entries are user session log ( columns are - browser, os, time, date etc for a specific session). Now each user has unique id (1-20). Let's say user_id=1 is special one and I need to detect it whenever new data comes. So for new data I need to... | If I understand correctly, you want to create features? there are a few ways to do this. I will first talk about Label Encoding and Hot Label Encoding (link is the first I found on Google). This depends on the model, I will explain below. Since we want to use categorical data in a model, most models behave better with ... | 1 | 1 | 85 | 2019-06-10T05:31:30.180 | data_quality | datascience.stackexchange.com | |
264,876 | Class design - should methods call other methods? | I'm writing a very basic custom class for coupons and I've come up with a basic layout for the class, which consists of a number of small methods as I generally understand is a best practice. What I'm unsure of is how the flow of a class should be dictated. Right now the code looks something like this: [CODE] Basically... | I think this comes down to encapsulation. If you have to offer public methods to check Coupons, then you can't guarantee that the user of your API will call [CODE] before calling [CODE] , so you have to add the extra check. But these situations are always questionable, and usually suggests that your design does not fol... | 3 | 3 | 2,576 | 2014-12-08T14:23:00.443 | api_errors | softwareengineering.stackexchange.com | |
151,467 | Manipulating duplicates by merging similar (Is it possiple) | I have row 1 and 2 which they are similar in records except status column. [CODE] Now is it possible to have these tow rows (1,2) become as one row as like below (need to merge status values in to one cell)? [CODE] noting that i am considering this to be done on mysql view | Use GROUP_CONCAT() for this. Your table: [CODE] Testcase: [CODE] View: [CODE] Test: [CODE] Obviously you may want to [CODE] on more than just [CODE] (depending on what you consider a "duplicate", and may want to order the [CODE] in some way, but this points you in the right direction. Edit to address your comment: [COD... | 1 | 1 | 45 | 2016-10-05T11:25:15.953 | database_errors | dba.stackexchange.com | |
936,788 | How do I find out what's taking up most of the space on my SQL CLOUD GCP? | I could not identify what is taking up most of my SQL Cloud Storage, in the last 24 hours something wrote almost 1 Gigabit on the storage, according to the GCP dashboards. enter image description here If I use MySQL client to determine the size of my tables, the values didn't match with my storage use. [CODE] Any idea ... | You might be incurring storage overhead due to binary logging. In order to see the size of binary logs, run the MySQL command [CODE] . Per this GCP documentation , "Binary logs use storage space. Binary logs are automatically deleted with their associated automatic backup, which generally happens after about 7 days. Yo... | 1 | 1 | 231 | 2018-10-23T13:45:44.307 | bi_errors | serverfault.com | |
561,550 | IPSec tunnel on ASA keeps disconnecting | I have an ASA IPSec tunnel configured between an ASA5505 and Microsoft TMG 2010 SP2. The tunnel sometimes works for a few hours, and then disconnects, and other times it works for 5 minutes and then disconnects. When it disconnects, it sometimes takes 10 minutes to re-establish the SA, sometimes takes 45 minutes to re-... | Even though both sides of the tunnel had volume-based rekeying disabled, one of the sides was attempting to re-key anyway (I'm not sure which; I suspect the TMG). So after weeks of troubleshooting, I set a rekey after 4GB on both sides of the link and it has been rock solid ever since. The time-based rekey is 1 hour; a... | 4 | 1 | 6,737 | 2013-12-15T23:24:36.660 | infrastructure | serverfault.com | |
337,590 | With MariaDB, got error when converting int to varchar | With MariaDB version 10.1, We are trying to convert an integer to a string, e.g., [CODE] . Please see the sample SQL below for minimized example. The [CODE] function can convert the integer to a fixed length data type [CODE] , but it got an error complaining about the syntax if try to convert to a variable length data ... | [CODE] as the cast target type is supported in Oracle mode, from MariaDB 10.3 as explicitly stated in the manual . | -2 | 2 | 25 | 2024-03-08T17:53:50.210 | database_errors | dba.stackexchange.com | |
176,576 | What's the benefit of the Nothing constructor in Haskell? | I'm new to Haskell and I'm not really sold on the [CODE] constructor. It sounds like just another silent fail that's going to create headaches down the line. It seems much more useful to throw an error so I'll have a clue what's happening. Why am I wrong here? | In addition to Telastyn's answer: [CODE] never "silently fails". In contrast to null, which might be what the OP's is comparing it to, a Haskell function which can return [CODE] must explicitly do so in its type. For comparison: a method returning [CODE] in Java might return a String or null, and you cannot tell just b... | 4 | 15 | 1,961 | 2012-11-20T19:11:09.793 | api_errors | softwareengineering.stackexchange.com | |
807,158 | Apache Processes and CPU load oddness | For the last couple of hours I've been trying to battle with my server to keep it up during some pretty minor load (50 concurrent users). Spec: [CODE] During this time, memory usage maxed out at 4GB, so no problems there. However, Apache was going insane kicking up about 20+ running processes and eating up all 6 CPUs (... | Being structured and methodical in your approach is much better than flapping around wildly. Personally I find Scientific Method (others call it something different ) a wonderful tool to pull out of the system administration kitbag when diagnosing problems. What is the actual problem you're trying to solve ? For the la... | -1 | 0 | 79 | 2016-10-05T07:25:59.140 | infrastructure | serverfault.com | |
408,912 | Particular crontab not working on centos 6.2 | I have 3 cronjob set to work on reboot. When I reboot only 2 works and the 3rd one does not work. What could be stopping it from working? Where to get the clues? All of it I have redirection for the output done and there is a .log file generated for all 3. But the problematic cron job have empty log file. EDIT From /va... | Check your [CODE] for interesting messages. When you do [CODE] you are only redirecting stdout you may need to catch stderr too e.g. [CODE] Edit: you have the syntax for your redirect wrong try [CODE] or [CODE] | -2 | 2 | 768 | 2012-07-18T17:09:33.140 | infrastructure | serverfault.com | |
286,188 | mysql creating sort index making queries slow | We have a view table the query for the view is pasted below. The problem is that whenever we try to query items view our database start making sorting index which make the over all time of our response very slow. [CODE] One of the query we are doing on this items_view that is stuck in making sorting index [CODE] can an... | [CODE] might help. It is "covering" and the columns are probably in the optimal order. There are too many missing columns for me to analyze further. (item_order, transfer_hash, etc) Without knowing which table each thing is in, I can't write more INDEXes. | 0 | 0 | 1,338 | 2021-02-28T20:59:22.307 | database_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.