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 |
|---|---|---|---|---|---|---|---|---|---|---|
101,254 | SQL SSIS syntax question | What do you call the following expression? [CODE] I have a sense of what it does, but would like to look up the whole syntax definition, however as there is no real descriptor in the expression I can't seem to find out what it's called. | It's what is known in programming as a Ternary Operator . It's common in C/C++, JavaScript and PHP (among other languages). As tombom states, the idea is that it is a short-hand [CODE] statement: [CODE] SQL Server 2012 and above has it's own Ternary Operator in the form of the [CODE] statement. [CODE] | 3 | 3 | 207 | 2015-05-12T07:44:11.300 | warehouse_errors | dba.stackexchange.com | |
582,458 | How to Remove SIP or Plus Prefixes from Incoming Calls on FreePBX? | How can I remove the "sip:+" (sip plus) prefix from incoming numbers? The number is being cached on my phone, and is an illogical format, so I cannot call that number back. | There are two steps needed to fully remove the "sip:+" prefix... Removing the Plus Prefix FreePBX includes a "context" which strips all but the final 10 digits from the CID string. There are several other threads out there, which say to create a custom context, but this is not necessary. On your inbound route, if you c... | 2 | 2 | 7,254 | 2014-03-16T18:10:20.333 | infrastructure | serverfault.com | |
386,123 | Does returning an instance directly in a property create duplicate instances? | Let's say I have a class with a property that returns an array of strings. [CODE] Will this create multiple instances of [CODE] every time it is referenced? Are there compiler optimizations that effectively make it a singleton, or do I have to explicitly do something like this: [CODE] | Will this create multiple instances of MyStrings every time it is referenced? It will reuse the strings objects for the literals "Foo", and "Bar". However, by definition of the [CODE] operator, the language is forced to create a new array object each time the getter is invoked, i.e. the [CODE] expression is run. By def... | 0 | 1 | 219 | 2019-01-25T14:55:34.600 | data_quality | softwareengineering.stackexchange.com | |
58,561 | Denormalize Design Modification | Our DBA is on medical leave, I am just a developer trying to do my part. Initially, the bean counters were going to use quickbooks. However, after seeing how much time they could save with custom development they have creeped my scope. Rather than having a quantity of a particular type of shoe in a given size (ShoeInve... | If you move these additional costs to [CODE] then they will be associated with your [CODE] entity. This entity also has a relationship with [CODE] . If I understand your schema (and I might not, so correct me if I'm wrong), the implication of this is that different sizes for the same shoe type could potentially have di... | 2 | 1 | 79 | 2014-02-10T05:51:42.413 | warehouse_errors | dba.stackexchange.com | |
193 | Should end-to-end tests be self-contained? | I am automating web UI tests using Selenium. These tests are written partly in the spirit of Unit tests, that is they try their best to leave the application in the same state in which they found it. For instance, if a test registers a support ticket using the web UI, it is expected to remove it and the end of the test... | Your best bet is to make tests that are idempotent. We use a tool called nosedjango to run all of our tests that handles the database, cache, etcs. This would only work if you are using django however. I am sure there are equivalent tools for whatever it is you might be using. | 7 | 3 | 1,725 | 2011-05-05T07:41:51.903 | data_quality | sqa.stackexchange.com | |
125,351 | Timeout in SSIS package running DBCC CHECKDB | I have created an SSIS package to run DBCC CHECKDB on all the databases on the server and send error messages by email. But for several of the databases, I get an exception running my script: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The only timeo... | As it turns out, there is a CommandTimeout property on the SqlCommand object. | 1 | 1 | 462 | 2016-01-06T09:50:35.083 | warehouse_errors | dba.stackexchange.com | |
841,799 | Discrepancy in NS information between dig and whois | I'm having problem trying to understand how Whois protocol works, in particular, the section related to the Name server information. For example [CODE] Returns nothing, which is expected since there is a ClientHold on the domain which prevent it from resolving [CODE] However, the name server section of whois answer ret... | Your proofs are not the correct ones to really say you have this discrepancy problem, even if you do have it in fact. Why? Because your dig query asks your local/default recursive nameserver and not the authoritative ones, at the registry level. This would need to be redone if you want to prove your point… except that ... | 0 | 0 | 441 | 2017-03-31T13:21:55.070 | infrastructure | serverfault.com | |
249,144 | SQL Server Integration Services (SSIS) Package Failing with no error | I have some SSIS packages that are executed as steps in a Server Agent Job. The Steps often fail with no error and I have had to add retries. Now the jobs complete but I get the warning exclamation mark telling me there has been a failure and its these steps that nearly always require a retry. When looking at the faile... | Working backwards from the job, have you been able to run the package straight from the server? In older versions of SQL Server it might be in the Integration Services server, that you can connect to through Management Studio, or in newer versions of SQL Server it could be in the Integration Services Catalog on the dat... | 1 | 1 | 1,631 | 2019-09-19T08:32:56.347 | database_errors | dba.stackexchange.com | |
1,070,751 | Really slow converting host vars to env file with ansible | I have the following task in ansible: [CODE] It's creating the [CODE] file line-by-line but it is REALLY slow. Is there a better way? The .yml file looks like: [CODE] The resulting file has the format: [CODE] Each line takes about 20 seconds to process and it really adds up. | Try using the [CODE] module and writing a Jinja2 file. It tends to be faster than [CODE] when dealing with loops. | 1 | 0 | 113 | 2021-07-27T06:53:20.963 | pipeline_ops | serverfault.com | |
118,499 | Imputation of missing values based on target variable | I want to impute missing values in German Credit Risk dataset. [CODE] There is almost 20% of data missing, but this predictor seems to be one of the most powerful to predict the credit risk. Let's see, how 'Risk' depends on 'Saving accounts' [CODE] Clearly, more money on account, less credit risk. But how do I have to ... | You can absolutely do this. Whether it's optimal depends on the missingness mechanism. If the missing values in this column are independent of other columns, then this is probably the best possible handling. If not, then it's hard to say: maybe a missing value here doesn't actually contribute new signal for higher defa... | 4 | 5 | 375 | 2023-02-13T16:42:44.603 | data_quality | datascience.stackexchange.com | |
315,584 | cant attach mdf file because of suspect mode | Please I need Help i cant attach Mdf Database , As last time it was suspect , i made detach and i cant now attache it again . and i recieve this message An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) E:\خاص بالبرنامج وممنوع الحذف\database\Sadiek.mdf is not ... | Unfortunately, your database is corrupted to the extent that SQL Server marked it as suspect, and will not let you reattach it. I would strongly suggest you just restore from backups (you do have these right?). Trying to repair such a heavily corrupted database can be a major exercise in frustration. From this point, l... | -3 | 2 | 201 | 2022-08-13T18:34:53.793 | database_errors | dba.stackexchange.com | |
362,353 | Glassfish 3.1.1 Creating Domain fails, The system cannot find the path specified | I tried to install Glassfish 3.1.1 on windows with an installer but the [CODE] - [CODE] fails. This is the error message: [CODE] | I had this problem and solved it: 1.Go to asenv.bat file in Glassfish config directory 2.modify line: set AS_JAVA="C:/Program Files(x86)/Java/" to point to your JDK (not JRE!) installation 3.retry asadmin command | 3 | 2 | 3,375 | 2012-02-21T19:35:44.383 | infrastructure | serverfault.com | |
147,027 | determine language limitations before development | It so happens that you are given a project specs and your knowledge about the language is very basic. There are features in the project that you have never worked with. But you have some ideas and logic on how this can be implemented. Later on as the development continues you discover that the required features cannot ... | Well, in most languages you can do most things. All the mainstream languages barely have limitations, or have some kind of work arounds. In the worst case, you can still call external code using some bindings if needed. Where programming languages differ mostly is what they provide . What stuff is easy to do using this... | 1 | 5 | 173 | 2012-05-03T05:43:37.990 | api_errors | softwareengineering.stackexchange.com | |
167,601 | Trigger on temp table | I have the below trigger creating temp table that work fine, but needs trigger to fire on the Minor and Serious as well. At this stage I only have one substring that fires on word Significant but need to trigger on Minor and Serious. [CODE] To elaborate, what I have done on emails was creating a table called Messages a... | For starters, [CODE] is always getting 11 characters of data and putting that in @sever. ' Significant ' IS 11 characters,so that always works. If there are any characters after 'Serious' or 'Minor', your SUBSTRING is including them as well and your comparison won't match. In your example: [CODE] You could add an extra... | -1 | 1 | 2,624 | 2017-03-20T09:06:05.127 | warehouse_errors | dba.stackexchange.com | |
30,866 | What is meant by workaround | When we talk about major defects, we also talk about the availability of workaround. I need to know what do we mean exactly by a workaround. Example: If a function is not working at all, however, the user can use another function to get his desired result, then can we consider this as a workaround? | Yes, your insinuation is how I understand 'workarounds' as well, in the context of software testing. Defining it more verbose you could say it's a process (a number of actions) achieving a result that is normally achievable through an easier, more dedicated or user-friendly process . (*) In practice, a workaround might... | 0 | 1 | 1,237 | 2017-12-06T20:43:40.117 | data_quality | sqa.stackexchange.com | |
1,029,720 | Why does Port 9721 intermittently refuse connections on Apache Tomcat 8.5 running on Windows Server 2012 R2? | Web Server: Apache Tomcat 8.5 Operating System: Windows Server 2012 R2 Port: 9721 We are running a Web server on our internal network and have about 8500 kiosks connecting through our VPN to a Java servlet that is running on this port: :9721 This Web server was set up by a former employee and we are not sure how it was... | To identify what is the issue here I would go for mix of monitoring and testing the situation using following steps: create PRTG sensor which will tell you how many TCP connections you have currently connected to port 9721. To achieve that we will create powershell file in PRTG installation (EXE/show-connections.ps1) c... | 0 | 1 | 415 | 2020-08-11T15:50:14.637 | api_errors | serverfault.com | |
206,452 | Reorder / Fill the missing numbers in a sequence using MySQL | I have a table "number" having a column "n" which is of type int. I inserted some values like, n -- 1 3 5 8 10 Now I want to the column n as 1,2,3,4,5. That is 3 should be changed as 2, 5 as 3, 8 as 4 and 10 as 5. The values of column n should be reordered with the missing values. How can I do it? | [CODE] While executing from code using connector which not support multi-statements, both statements are to be executed in the same connection. | -1 | 1 | 907 | 2018-05-11T07:12:50.243 | database_errors | dba.stackexchange.com | |
393,668 | What's Fibre Channel? | i don't understand if the technology 'fibre channel' is something 'software' or something 'hardware' (fibre optics connection) ? Can i create a fibre-channel san using 'some' pieces of existent hardware (like old computer with linux or similar) ? Thanks | http://en.wikipedia.org/wiki/Fibre_Channel At the most basic level it's a signaling protocol. It can run over copper or fiber. So its a combo of hardware and software. Hardware to terminate and transmit traffic and software to interpret that traffic. In my experience (SMB) it works much like a NIC just a different addr... | -9 | 2 | 231 | 2012-05-29T17:01:42.097 | infrastructure | serverfault.com | |
963,094 | Ulogd2 cannot find PCAP plugin? | I am trying to log the packet data from iptables with Ulogd2. So I wish to dump it to pcap file. But it does not seem to work. This error in syslog is: [CODE] It says "Cannot find PCAP plugin". I checked the [CODE] folder and funnily enough, ulogd_output_PCAP.so was missing. So I googled a little and downloaded the lat... | I got it working! The issue was that I was trying to use a non-compatible pcap plugin. There is in fact the right plugin available in Ubuntu repository for me to install. I wish I checked this before :smh: So my solution (after deleting the downloaded ulogd_output_PCAP.so file): [CODE] It is working as expected now. | 0 | 2 | 659 | 2019-04-15T09:37:28.427 | infrastructure | serverfault.com | |
299,182 | how can resolve a cyclic redundancy check sql | i need to restore a database but i have a strong problem, please look the photo, is a strange error, please helpme | Unfortunately your backup file appears to be corrupt. You could retry and see if it was a transient error or you could use another backup file. Failing that if you run the restore through TSQL you could add WITH CONTINUE_AFTER_ERROR and see if it is possible to bypass the problem (this is unlikely unfortunately - but s... | 0 | 5 | 584 | 2021-09-07T12:58:41.430 | database_errors | dba.stackexchange.com | |
23,615 | RNN using multiple time series | I am trying to create a neural network using time series as input, in order to train it based on the type of each series. I read that using RNNs you can split the input into batches and use every point of the time series into individual neurons and eventually train the network. What I am trying to do though is use mult... | Multivariate time series is an active research topic you will find a lot of recent paper tackling the subject. To answer your questions, you can use a single RNN. You can input one value for each time step. Nothing keeps you from adding another value at each time step (if your sensor are synchronized). Your model will ... | 16 | 10 | 9,818 | 2017-10-08T15:57:30.383 | airflow_errors | datascience.stackexchange.com | |
748,900 | Troubleshooting access to S3 endpoint from VPC subnet | I have a server with the following route table on its subnet: [CODE] The S3 VPC Endpoint (vpce-xxxxxx) above has a "Full Access" S3 policy attached to it. However, I am still unable to access S3 from within my server without routing through the public Internet (by proxy). How can I troubleshoot this problem? | The problem was that my server's security group did not have an outbound rule for the S3 bucket. I added an HTTPS outbound rule with the "custom IP" field pointed to "pl-xxxxxxxxxx" (from question). | 1 | 1 | 1,762 | 2016-01-13T19:46:23.947 | infrastructure | serverfault.com | |
229,527 | postgresql materialized views vs versioning | I came across a pickle when dealing with question from one of our dev concerning postgresql and materialized views: can I refresh materialized view with my application user? well according to docs ( https://www.postgresql.org/docs/11/sql-creatematerializedview.html ), it is simple enough, BUT you must be owner of said ... | You can create a function with [CODE] owned by the MVIEW owner that does the refresh and then grant execute privilege on the function (or procedure) to your app user. | 1 | 1 | 453 | 2019-02-12T16:53:54.993 | database_errors | dba.stackexchange.com | |
38,895 | Overfitting in Siamese Network | I am trying to train a Siamese network for an application very similar to this and this . From what I have read about training Siamese networks dissimilar pairs of images outnumber the similar pairs and obviously so. In the papers I have linked to, the authors talk about a 1:20 ratio for similar to dissimilar pairs, i.... | The most common way to reduce overfitting in neural networks in your case are: Dropout - Randomly removing connections during training Data Augmentation - Creating variations in data, such as rotating or flipping images | 5 | 3 | 2,612 | 2018-09-28T05:13:56.713 | data_quality | datascience.stackexchange.com | |
241,247 | creating interface in linux | I have a tunnel with a third-party computer. This tunnel iface has the ip address of 10.244.248.126. The third-party just told me that there is an ACL that will allow only IPs from the range 10.245.1.224/28. I'd love to issue telnet -b with and IP address of the given range, but I have no interface with a IP address in... | Add an alias to your network card configuration: [CODE] You already have a tunnel, so the routing should work. Or how is the routing defined now? You may need to add a route, but we will need more info about your connection. First test if [CODE] works. Then start your telnet session using "-b" [CODE] | 0 | 3 | 741 | 2011-02-28T17:32:08.023 | infrastructure | serverfault.com | |
66,662 | How to reduce the error in linear regression | In linear regression, how can we minimize the error term? | Answer based on the comment: Intention here is to reduce the error by all means and considerations Choice of model: First let's address the obvious assumption: linear regression is a model which requires the response variable to be expressed as a linear combination of the independent variables. In order to improve perf... | 3 | 0 | 5,698 | 2020-01-18T01:12:39.457 | data_quality | datascience.stackexchange.com | |
181,635 | MySQL Selecting and deleting whole entries | I'm a total noob to mysql and i`m still trying to get my head around it. I need to select duplicate entries in a song DB and delete only those entries not in a category. I can get t to work with select. though there's an error but not with delete. Could someone help and point out my total noobness mistake? Select Code ... | MySQL's DELETE syntax requires the table names involved in the DELETE. However, I don't think the [CODE] query is working as you want it to, either. You have not established any connection between [CODE] and [CODE] . So, it's going to give you a cross join - every row in [CODE] wit the specified [CODE] and [CODE] , mat... | 1 | 1 | 45 | 2017-07-24T14:38:01.547 | data_quality | dba.stackexchange.com | |
40,903 | How can we deal with experiental gaps in learning of programmers or any technology field? | This problem is a re-occuring one in my experiences. That of the ability to learn from other people's experiences, and being able to share what I have learned. Part of the problem of this learning process, is the dependence on experience. If for example, you've never had many jobs cleaning up other people's code for ea... | As a lead I regularly face situations where I know a particular problem should approached or done (or not done) a particular way. I usually pick one of the following options to deal with the situation. Dictate that we will/won't solve the problem a particular way. Let them make the mistake, because the experience of th... | 7 | 6 | 559 | 2011-01-28T14:48:14.367 | data_quality | softwareengineering.stackexchange.com | |
576,737 | How can I run a python script on Windows machine from Linux using ssh as a background task? | I have to orchestrate some script tasks among few Linux machines and a Windows machine. ssh works fine for linux machines suing below: [CODE] But the same method doesn't work as background task when I'm sending the command to an Windows machine. On the Windows machine, I have ssh server running and the ssh connection i... | Yes, [CODE] has a very good ssh server for windows. First you should download and install this. After you can log into your windows machine with command line ssh, you can use [CODE] to make this passwordless and automatic. The third thing were to install python on your windows machine, which you can get from [CODE] . I... | 3 | 2 | 8,640 | 2014-02-19T12:33:37.303 | infrastructure | serverfault.com | |
199,557 | SQL Query suddenly slow --- how to test if its network or hardware (memory) issue? | I'm not a general IT expert. Sometimes with SQL queries ... they will take 10 seconds about 95% of the time. Every so often, the exact same query will take 5-10 minutes. As will others. The constant is the host computer and current time --- not the query itself. I'm just wondering if there's any way for me to test or v... | There is not just a DBA but also a SysAdmin question. Although, there are some basic DBA tools you should have in use to help you out. Slow query monitoring: most databases have tools that allow you to monitor SERVER SIDE for slow queries. Your system could be indexing, re-allocating memory and a myriad of other server... | 0 | 1 | 1,058 | 2018-03-07T01:02:55.487 | warehouse_errors | dba.stackexchange.com | |
355,971 | Using Automapper to map DTOs to Domain Objects | Please see the article here: http://enterprisecraftsmanship.com/2017/02/16/on-automappers/ The writer advises against using Automapper to map DTOs to domain objects as it can cause problems with validation. Why is this? My domain models have a function called Validate(), which is called by the Service Layer i.e. it has... | From what I gather, his point is that domain objects will not generally map 1-to-1 to the DTOs, in the sense that they will not have all the same properties. In fact, domain objects may have very few getters and setters; they may even have none at all. This is related to the the "tell, don't ask" principle: if responsi... | 4 | 5 | 5,616 | 2017-08-20T15:11:42.237 | data_quality | softwareengineering.stackexchange.com | |
195,623 | Testcase runner for parametrized testcases | Let me explain my situation. I'm planning a kind of test case runner for doing testcases on external devices, which are microcontroller based. Lets consider the devices: Device 1 Device 2 There exist a lot of test cases which can be run with one of the devices above. For example: Testcase 1 Testcase 2 The main reason t... | The method I prefer is based on a factory design pattern (which is different that most unit testing frameworks for .NET, but since you are designing your own framework starting from scratch may be ok). In this scenario each common test case is a class unto itself (based on a common TestCaseBase class) then you have a f... | 4 | 1 | 826 | 2013-04-21T16:35:06.160 | api_errors | softwareengineering.stackexchange.com | |
763,103 | User uploaded Images in a multiple web server setup | I currently run a popular classifieds website which runs on 2 servers. There are currently 2 servers, one webserver and one database server. They are running Linux and the website is coded in place and MySQL. I am in the process of upgrading the servers as the site is outgrowing the existing server setup. I have bought... | By far the easiest, best and definitely most robust solution is going to be to use the S3 option - with or without cloudfront. | 1 | 1 | 264 | 2016-03-11T08:49:18.700 | database_errors | serverfault.com | |
1,115,138 | Are SPF records checked depth first or breadth first (or something else) | We have a domain which has 11 includes; so is failing SPF validation as it's gone over the limit. Most of the lookups are for third party resources, so flattenning the SPF record isn't ideal; we'd rather ensure that things are updated dynamically when the third parties update their records. One of the lookups is a lega... | Yes, the lookup limit is evaluated ‘as you go’, that is depth-first. While this is not explicitly stated in the spec, it is implied by the evaluation algorithm. In principle what you propose works. If the first ten lookups should yield the pass result for a legitimate sender, that sender will indeed get the pass result... | 0 | 2 | 48 | 2022-11-08T15:26:56.403 | data_quality | serverfault.com | |
77,447 | WARNING Error checking mysqldump version Error retrieving version from mysqldump.exe: mysqldump: unknown option '--no-beep' (exit 2) | When i go to do a manual export from mysql database to workbench, this error occurs, i dont know solve | [CODE] is an option for the mysql command-line query tool, not for mysqldump. I would guess that you have entered the [CODE] in your my.cnf configuration file under the [CODE] section, which applies to both mysql and mysqldump clients. You need to move [CODE] to the [CODE] section of the config file, so it applies only... | 1 | 2 | 2,280 | 2014-09-24T01:22:29.747 | database_errors | dba.stackexchange.com | |
891,888 | How can throttle users but whitelist robot access to my web site? | I am looking at using mod_evasive and/or mod_throttle to prevent abusive access to my web site (running Apache 2.4). By "abusive", I mean using wget or HTTtrack to download the whole web site, for example. Both mod_evasive and mod_throttle have ways to limit the number of page accesses a user can make per unit time. So... | The whitelist need not be IP based. mod_qos can do user agent based matching. This won't stop anyone from pretending to be googlebot, but it will slow people who don't change it from wget. Should downloads still seem excessive, try to detect spoofed user agents with analysis of your request logs. Use webmaster tools an... | 0 | 0 | 343 | 2018-01-12T10:24:57.537 | infrastructure | serverfault.com | |
925,477 | dkim=neutral (bad service type) | I am trying to set up the dkim for an email and I am getting this error message on gmail: dkim=neutral (bad service type). However on Hotmail it is passing. I have not found any information on this error message, so any advice would be helpful. Here is the Original Message: [CODE] | You have [CODE] in your DNS entry for [CODE] which looks like below. [CODE] [CODE] in [CODE] header represents the selector which is [CODE] but [CODE] in the DNS entry represents Service Type which is something different. So remove [CODE] from your DNS entry. [CODE] and [CODE] are also not needed there. | 1 | 3 | 1,065 | 2018-08-08T14:57:35.037 | infrastructure | serverfault.com | |
797,347 | Does Windows 2012 Terminal Server enforce a connection limit based on number of license CALs? | We are using Windows 2012, purchasing, and installing per user CALs to enable more than 2 users to connect to a Windows 2012 server. We are going merrily along when someone asks: how will we know if we have enough CALs on the machine? Someone else says that the server will stop allowing people on the machine when you r... | No, there is not a connection limit based on the number of User CALs. User CALs have traditionally not been enforced. Also, the license requirements do not factor in concurrency. A User CAL is required for every person that logs on. Microsoft isn't interested in every user that has ever logged on, but they do count use... | 2 | 3 | 1,099 | 2016-08-17T11:08:53.350 | infrastructure | serverfault.com | |
331,165 | How to Add a Client System To a Server | I have recently installed Windows Server 2008 R2 on one my system and now want to add my client to that server. Almost all the systems have been added but two of them are refusing to add by showing this error [CODE] Any ideas on why this is happening? | When you have Active Directory issues, you should first check DNS. If everything looks OK there, you should ask yourself [CODE] and then check DNS again. I'll bet my bonnet that you aren't using the Domain Controller as the DNS server on the clients that are having a problem. Set the IP for the DNS servers on the Windo... | 1 | 3 | 85 | 2011-11-15T14:20:31.413 | infrastructure | serverfault.com | |
1,125,511 | Apache2 server is down - AH00170 | I have been having problems for several weeks on my Apache2 server with Ubuntu 22.04.1 + PHP 7.4 For no apparent reason, the server goes down on its own and the web is still under construction so it does not receive traffic. The last log I got before the server crashed contains these lines: [CODE] I would be very grate... | os: ubuntu 16/20/22 apache2 ver: 2.4.x php: 5.6/7.0/7.2 This might not be it... but it happened to a few of my (multiple) servers. i SUSPECT that what happened was that when the logrotate functions calls for apache to 'reload' it issues the call but fails. this problem happens intermittently. -sometimes apache would st... | 2 | 0 | 1,630 | 2023-03-07T07:13:57.250 | infrastructure | serverfault.com | |
645,151 | httpd not starting because /run/httpd is missing | httpd fails to start on one of my servers running centos 7 because /run/httpd is missing, which means httpd can't create /run/httpd/httpd.pid and thus fails to start. My question is, why is /run/httpd being deleted. I am not deleting the dir. Running httpd-2.4.6-18.el7.centos.x86_64 from base CentOS repo | I had a similar problem, and it turned out to be a systemd issue... not as in a problem with systemd, but as in my not understanding how to work with it. So, [CODE] used to be in [CODE] , and it used to be more or less persistent (if I understand correctly). Now, it is often in a fstmp file system, so a reboot removes ... | 2 | 3 | 7,104 | 2014-11-18T08:07:44.070 | infrastructure | serverfault.com | |
53,604 | SQL Server queries take forever to enumerate the dataset? | I've got an interesting sounding problem with SQL queries run from a particular machine. This machine is a VM running Windows Server 2003, and it has SQL Server Express 2005 on it. The VM was migrated from a VMWare Player image into a proper VMWare Workstation setup. It ran fine when it was running under the Player onl... | This actually appeared to have been an issue with having Tracing turned on in the ODBC data sources control panel. To check this setting: Start -> Settings -> Control Panel -> Administrative Tools -> Data Sources (ODBC) Select the Tracing tab. Make sure Tracing is turned off. | 0 | 1 | 133 | 2009-08-13T08:10:07.733 | database_errors | serverfault.com | |
186,051 | Do I need the license update package for Juniper SRX100 | Possible Duplicate: Can you help me with my software licensing question? I need a router/firewall to connect a couple of colocated servers to the internet. I was looking at the Juniper SRX100 but a friend told me I would need to buy the 3 year license update package (which costs about $700) to keep its operating system... | http://kb.juniper.net/KB15395 | 1 | 0 | 628 | 2010-09-30T01:53:35.400 | data_quality | serverfault.com | |
65,113 | How to pass a string to a command (Linux) | I have a case where I am passing a content of a file to a command like this: [CODE] But I want to pass a string directly, without reading a txt file content. So I want to have something like this: [CODE] But of course I am getting an error "Command not found." Please help me to come up with this. Thanks! | Just do [CODE] | 1 | 8 | 1,897 | 2009-09-14T12:17:32.820 | infrastructure | serverfault.com | |
560,883 | iDRAC 7 Enterprise does not work properly | I have problems with login to iDRAC via web browser to new DELL R320 server. I see this problem first time. On browser login screen looks uncomplete(Chrome, Firefox, IE) : I know where is login and password so after typing all and click login all I see is this : Firebug report that there is an error 404 for GET locale_... | Is your browser set to send Polish as the preferred language? It appears that the DRAC will try and load a locale file for anything but English and only some of them exist (French, German, Spanish) :/ | 2 | 3 | 21,878 | 2013-12-12T10:55:02.123 | data_quality | serverfault.com | |
1,113,065 | Will a web server get blacklisted for port scanning? | As I understand it, port scanning is an activity that can be a precursor to malicious activity, as one of the things it is used for is to scan for open ports that one can attack. In that train of thought, why do sites like the following exist? Won't they get blacklisted by some web servers as a result? https://www.what... | why do sites offering portscans exist? ... I am asking because I am building a port scanner on my own website Why do YOU want to offer that on your website? There are several scenario's that can happen in response to a portscan: fairly often: nothing at all. Either it isn't detected at all, or simply deemed not suffici... | 0 | 1 | 279 | 2022-10-14T10:36:01.867 | api_errors | serverfault.com | |
227,906 | Slow open() system call on linux | We've been having problems with our Samba fileserver running on Debian Etch with Linux kernel 2.6.16. It's an old Dell PowerEdge 2650 server, but it's never had a problem like this before, and the problem started this morning, without any configuration or other changes being made. While the problem manifests in many wa... | Is this running on one of dell's raid controllers (looks like it would probably be a PERC/4something). If so, the megaraid kernel driver doesn't seem to react or report drive problems at all, you need to install Dell's OpenManage stuff to see what is going on at the hardware level. This thread suggests once you install... | 2 | 0 | 2,077 | 2011-01-28T01:27:33.373 | infrastructure | serverfault.com | |
46,126 | MySQL Query: Delete from 'table2' where column = 'value' IF column in 'table1' = 'value' | I am trying to execute a MySQL query to delete rows from 'table2' where column = 'value' IF column in 'table1' = 'value' I have 2 tables... Table 1 is called [CODE] Table 2 is called [CODE] The column in question for [CODE] is called [CODE] The column in question for [CODE] is called [CODE] I would like to [CODE] IF...... | Your statement seems to be correct. It could also be written like this: [CODE] One thing that may be causing this is if you have a character related to many accounts and one of them has [CODE] while the other have [CODE] . I assume you want the deletion to happen (not with just one but) only if all the related accounts... | 2 | 3 | 8,407 | 2013-07-11T03:59:22.963 | database_errors | dba.stackexchange.com | |
2,990 | Performance tuning OLTP query | I have the following SQLs executed millions of times a day, a single execution isn't an issue but executing million times is causing some performance issues..Thanks in advance for your help! NOTE: data can change in any of the tables any time during the day..can't reduce number of executions and this is Oracle 11g env.... | I would first consider trying to combine the two queries into one. If the second query could be refactored to return [CODE] in the case where the first query returned zero would you be able to work with that? For example, testbed: [CODE] refactored query: [CODE] | 1 | 1 | 1,016 | 2011-05-27T16:00:55.320 | database_errors | dba.stackexchange.com | |
441,384 | Eliminating combinations based on user input | I am stuck with this particular problem. To give context to the problem, I am developing a mobile app which helps with loading dangerous goods onto a truck. Ignore the size and weight of the dangerous goods. Some dangerous goods cannot be loaded onto a truck unless one of the goods is in a specific type of box. For exa... | One way to solve this is to treat it like a graph problem: Which means this: [CODE] Becomes this: = Which makes it obvious that a minimum of two boxes are needed: All black lines are crossed with red lines. Of course, who wants flammable liquid sloshing around loose in their truck? Especially next to something labeled ... | 2 | 2 | 201 | 2022-10-03T02:37:30.707 | api_errors | softwareengineering.stackexchange.com | |
218,848 | Functions causing Serial plan.What to use instead? | I have few stored procedures in my SQL Server database.I see that these stored procedures are running in serial mode from their execution plan. For example : [CODE] In this stored procedure,i have a function in the where condition [CODE] dbo.GetPlant_Id(@LNumber) is a function [CODE] How do i avoid using functions.?I t... | A scalar UDF only forces a serial plan for the query that calls it. You can have a scalar UDF call in a stored procedure that also has queries eligible for parallelism as long as the queries don't call the function. Your function in this example is a constant so you can just store it in a local variable. I had to make ... | 1 | 4 | 102 | 2018-09-28T19:12:19.610 | database_errors | dba.stackexchange.com | |
988,801 | Docker swarm, list all container status | I have couple of nodes in docker swarm but both the nodes shows only container running on them when "docker stats" command is run But i would like list container stats (cpu,memory) from all nodes when docker stats is run on any one of the node. Is this possible? Any insight will be of great help. | There's no direct way to retrieve all container stats of a given service in a Swarm. if you want information about CPU, memory and other info, you can use combinations [CODE] , [CODE] , [CODE] and ssh then [CODE] on each node: [CODE] Above command will show you each container CPU,Memory group by node like Node1 [CODE] ... | 0 | 0 | 2,051 | 2019-10-21T08:27:45.093 | pipeline_ops | serverfault.com | |
126,338 | Where can I get 5000+ classified images of zoo animals? | please help! We are college students doing this for a project. The project is using neural networks and want to build a model that takes in an input of a colored image of an animal and outputs the name of the animal. We are hoping to use some basic optimizations such as L2 regularization and batch norm, but the goal of... | You could look at Roboflow datasets (ex. https://universe.roboflow.com/praveen-rp1yb/animal-v8mvl/dataset/1 , although this is image detection), although I would highly recommend that you examine the quality of the images beforehand. If you want a quick-and-dirty way to do data augmentation, Roboflow can do that for yo... | 0 | 1 | 26 | 2024-01-09T19:35:51.543 | api_errors | datascience.stackexchange.com | |
787,482 | tinc restrict communication between clients | I've a network: [CODE] How could i prevent a direct (logical) connection from a client to another client but allow the workstation to access everything in the network. Is there a tinc way to do this? i use tinc version 1.1pre14. | You may use a strict argument and not exchange keys between clients then set the hosts and workstation firewall to no accept connections from the clients subnet. [CODE] | 2 | 1 | 769 | 2016-07-01T21:17:38.643 | infrastructure | serverfault.com | |
30,824 | nmap shows opened port but netstat doesn't | If I scan my server with nmap, it shows that 21 port is opened. But when I login into this server and run netstat, I see nothing. $ nmap -sT server Starting Nmap 4.76 ( http://nmap.org ) at 2009-06-24 11:54 MSD Interesting ports on server (x.x.x.x): Not shown: 994 filtered ports PORT STATE SERVICE 21/tcp open ftp 22/tc... | Are you on the same segment as the server in question? Portscanning via routers can give bogus results. | 5 | 10 | 7,611 | 2009-06-24T08:39:12.110 | infrastructure | serverfault.com | |
795,183 | UFW deny not working | The basic configuration is the following: [CODE] Not using ipv6, verivied ipv4. varnish and nginx logs show the ipv4 address that should be nuked from space. ubuntu 16.04, ufw 0.35 iptables v1.6.0 tried: [CODE] In spite of this I can still pull a webpage down. Its behind cloudflare and I get an nginx 404 (catch all 404... | Something to do with running the dev environment in a vm. same exact os / setup deployed to a vps works perfectly. | -1 | 0 | 628 | 2016-08-06T01:15:52.740 | infrastructure | serverfault.com | |
957,346 | Windows 10 / Windows Server 2016 software compatibility | I just installed a software on my Windows 10 computer that works fine. Its an old software so it needs visual c++ redistribuables 2010 that I installed (both x86 and x64, latest SP1 versions) I tried to install it on a Windows server 2016 with the same redistribuables but I get an The application was unable to start co... | Windows Server 2016 uses the same code base as Windows 10 version 1607. Harry Johnston comment | -2 | 0 | 598 | 2019-03-08T11:28:44.910 | database_errors | serverfault.com | |
492,964 | Nagios: Send Escalation Alert if issue is Acknowledged but not Recovered (OK State) | I think I know the answer (not possible) - but want to see if anyone has a clever idea or perhaps I'm just wrong about the issue. Goal We want our shift managers to be notified of service outages if: The service is down for a defined period. Notification should be sent even if the issue has been acknowledged. From the ... | I have a Perl script that does this. You simply need to scan the 'status.dat' file for: [CODE] Both store an epoch value, which, if greater than a certain number of seconds from current epoch, will cause the check_description and/or host_name to be added to the email sent out. My script also checks the 'problem_has_bee... | 2 | 1 | 2,084 | 2013-03-27T19:53:14.453 | infrastructure | serverfault.com | |
18,308 | What exactly is a skewed dataset ? | Like above, I'd like to know, what exactly a skewed dataset is. The explanation from stats.se.com sounds to me more like what I call an imbalanced dataset? What is the distinction? | In the context of the link, a skewed data set is referring to a dataset with a class imbalance problem. They are trying to build a classifier, but they have many more negative examples than positive examples. It's not a very precise term, but I've heard to used in this context a few times. | 2 | 1 | 6,003 | 2017-04-12T15:10:57.540 | data_quality | datascience.stackexchange.com | |
815,385 | IIS 7.5 - SSL Fails After Reboot - Rebind Cert fixes until reboot | Recently, my IIS 7.5 SSL site started refusing connections after a reboot. Oddly, the issue can be workaround by binding the site with a different cert and the switching back to the correct one. When failing, wireshark shows the client send various SSL hello packets (TLS 1.0, 1.1, 1.2) and the server responds with a TC... | I'd have guessed it was something resetting permissions on the folder you mentioned, most likely security policy via Group Policy. (Be suspicious of anything which is resetting folder permissions). Also, just a thought - the location of the private keys has changed since CryptoAPI became Crypto Next Generation, so you ... | 2 | 0 | 287 | 2016-11-16T23:02:38.737 | infrastructure | serverfault.com | |
104,159 | Indexed view doesn't exist on the subscriber | I am configuring transactional replication in SQL Server. The subscription is configured as push from 2008R2 publisher (distributor is the same server) to 2012 subscriber. The object I want to replicate is an indexed view . The base tables exist only on the publisher. The replication fails due to the following error: U... | The clue to this is in the error, which is telling you that it can't create the view on the subscriber, because the subscriber is missing tables and/or columns that the view relies on. You can't create the view without the base tables, so make sure you replicate the tables and/or columns involved in the view to the sub... | 5 | 1 | 1,265 | 2015-06-16T09:02:00.390 | database_errors | dba.stackexchange.com | |
822,872 | how to test if aws nat gateway static ip is up? | I started two EC2 instances in an Elastic Beanstalk autoscaling group in a VPC. The app on these EC2 instances needs to connect to a third party service that uses an IP address whitelist to allow access. So I'm using NAT Gateway to have static IPs so they can be added to the whitelist. The third party have already give... | One effective way to independently identify/confirm the source address you're using when going through a NAT device (gateway or instance) is by making an outbound request to a service on the Internet that will respond by identifying the source address from which it saw your request arrive. One example of such a service... | 1 | 7 | 3,130 | 2016-12-27T14:35:39.740 | database_errors | serverfault.com | |
297,972 | OSX how to show apache status in terminal? | I noticed that on my linux server when i type apachectl restart it gives me little but helpful feedback such as [CODE] and then [CODE] or [CODE] at the end of the line. Not much, but at least I know what is going on, and I can go check logs. On my OS X i get nothing. just the next line immediately: [CODE] How can I ena... | How about in the apachectl wrapper script you stick something like this at the end. [CODE] you should see something like this in a normal startup [Fri Apr 22 23:39:20 2011] [notice] Digest: generating secret for digest authentication ... [Fri Apr 22 23:39:20 2011] [notice] Digest: done [Fri Apr 22 23:39:20 2011] [warn]... | 12 | 6 | 143,704 | 2011-08-05T09:02:46.110 | infrastructure | serverfault.com | |
319,549 | Create alert notification system for performance counters (logman, task scheduler, events) | I have a Windows Server 2008 SP2 without a graphical user interface ( Windows Azure ). I need to setup an alert for performance counters that reaches some threshold and then run some command (send an alert, email, something). So far I did find a way to create an alert with [CODE] [CODE] Now I need to assign some task t... | You can implement a homegrown solution using either option you described - I would suggest option (2) if you go that route - but doing so is a sub-optimal solution. What you really want is a Monitoring System that watches the performance counters. Symantec makes the Altiris suite, which has good Windows support. InterM... | 3 | 2 | 1,185 | 2011-10-07T18:46:02.927 | infrastructure | serverfault.com | |
315,108 | Oracle not allowing large fields for common users after setting max_string_size=EXTENDED | I'm using an Oracle 19.3 enterprise Docker container and enabling [CODE] . When creating a table with a large field using the [CODE] user, Oracle allows the table to be created. But when attempting to create a table with a large field using a common user, Oracle acts as if extended mode has not been enabled. Here are t... | You have a container database. That is not how you enable Extended Datatypes in a CDB. MAX_STRING_SIZE I will not copy and format the steps here due to their length, just follow this section: Increasing the Maximum Size of VARCHAR2, NVARCHAR2, and RAW Columns in a CDB And you should work and create objects in a pluggab... | 0 | 2 | 372 | 2022-08-01T18:37:40.640 | database_errors | dba.stackexchange.com | |
310,658 | Connection refused after installing vsftp on Ubuntu 8.04 with fail2ban | I have been using an Ubuntu 8.04 server with fail2ban for a while now (12+ months) and using ftp over SSH without any problems. I have a new user that needs to put files onto the server from an IP modem. I have installed vsftp ( [CODE] ) and everything installed correctly. I have created an ftp user on the server follo... | There's a known issue with vsftp and newer Filezilla versions. I was using that combination for a while, and after a Filezilla update, I found I could no longer connect to my ftp server using ftpes. I think the error message I was getting was different though, but I thought this is worth trying... [CODE] "The problem i... | 1 | 1 | 7,079 | 2011-09-12T21:01:44.263 | api_errors | serverfault.com | |
286,453 | Stripping OIDs from tables in preparation for pg_upgrade | I have a postgres database in RDS, file size approaching 1TB. We started in 2005, using ruby/activerecord/rails, and along the way have upgraded to PG 9.6 Rails migrations create tables using [CODE] , never specified whether to include OIDs or not, but never used them. So some of our oldest (and largest) tables have OI... | That [CODE] might work, but I am not certain, and I wouldn't want to do that with data I value. You don't have the option anyway, since you cannot get superuser access in a hosted database. I can think of a safe, but more painful method: Briefly suspend data modification activity on the table. Create a trigger that rec... | 2 | 2 | 1,458 | 2021-03-04T20:34:18.147 | database_errors | dba.stackexchange.com | |
162,656 | sp_msforeachdb does not list all databases on a SQL Server instance | I'm using [CODE] to list all databases on my server. I know it is unsupported , but I wonder why it does not list all the databases I have installed. This is how I run it: [CODE] Output: [CODE] Databases that SSMS shows: [CODE] Both [CODE] and [CODE] have been restored with commands like this: [CODE] where [CODE] is a ... | Solved it! The [CODE] bit on the database status is the AutoClose setting of the DB. [CODE] is bad, not only because it confuses ms_foreachdb, but also because it often will make your performance bad. Good news: it is on the 'kill list'. sp_helpdb can dissect the statuses into readable form, and reveals that the sp_msf... | 0 | 1 | 5,501 | 2010-07-21T14:31:16.377 | api_errors | serverfault.com | |
624,188 | Installing SSL cert for all workstations in domain | We have a fax server only accessible internally on our network, say address 10.10.10.2. Many of our employees use this fax server daily, so I created a DNS entry with an easy name, like fax.company.com, and that works great. The fax server has the ability to communicate over SSL and has the ability to generate a SSL ce... | Installing the certificate as a Trusted Root Certification Authority on the domain controller doesn't really do anything for the clients. They still don't have it in their stores. You can distribute the certificate using a GPO as described in this technet article : Click Start, point to Administrative Tools, and then c... | 1 | 3 | 2,383 | 2014-08-26T17:44:27.213 | api_errors | serverfault.com | |
143,486 | Microsoft ODBC Driver 11 for SQL Server: Named Pipes Provider: Could not open a connection to SQL Server | I am aware this question has been asked before. I have been following the extensive troubleshooting steps at MSQL Tips as well as every answer I can find on Google. I am really stumped. The error is as follows: I cannot seem to get past this error. Every time I install/uninstall MS SQL Server I receive the same error. ... | Not knowing the full details of your issue by your question try the following: Option 1: Temporarily disable Windows Firewall and test your SQL script once more: Option 2: Make sure NetBIOS is enabled in the TCP/IP settings of the network adapter you are using: Option 3: Ensure that SQL Server protocols are enabled thr... | 3 | 6 | 42,662 | 2016-07-11T10:48:47.223 | database_errors | dba.stackexchange.com | |
25,925 | Is it a good practice to keep the looping statement in loginsteps class? | I am working in Selenium with page object design pattern, without any Selenium frameworks. I did a sample login page. I am keeping my test data in a property file: [CODE] There is pageobject package to identify the locators. [CODE] and steps package for initializing the elements for locators class. [CODE] util package ... | Since you are using TestNG, I would suggest you to go with @DataProvider. This way you can be more sure that what test data passed and what failed. If you loop inside login method, you will have only one test case. And it will be difficult to figure out what failed when you have 1000s of test data to be tested. Also, l... | 3 | 3 | 770 | 2017-03-06T11:27:51.973 | data_quality | sqa.stackexchange.com | |
593,802 | How to give my KVM guests network connectivity? | I'm completely new to KVM and the whole idea of virtualisation, but have been reading about it for a couple of days and playing with it for the last few hours. Creating, installing, cloning etc... all seems great. But the guests that I make end up with "network unreachable" when I try to ping 8.8.8.8 I'm using CentOS 6... | If "ifconfig -a" on the guest does not show an eth0, then run "virt-manager" on the host to get a nice GUI for editing the virtual machine's parameters instead of doing it on the command line. Through that GUI you can add a network interface if you need one. Once you have an eth0 on the guest, then you will need to spe... | 0 | 4 | 10,104 | 2014-05-08T00:21:12.440 | infrastructure | serverfault.com | |
280,292 | Duplicating Linux Installs on Multiple Servers | I have 3 servers of exactly the same configuration. Is it possible to install linux on 1 exactly the way I want it, then clone over the installation? What would be the problems with doing this? | You should take a look at some Config Management systems. I suggest using Puppet or CFengine What these allow you to do is define a system state on a master node, and then propogate this state onto other box's. For example you can define that each node should have package X, Y and Z, with a certain directory structure ... | 3 | 7 | 147 | 2011-06-14T13:48:54.770 | infrastructure | serverfault.com | |
206,650 | error query did explode the postgres database | I had some problems last month. I had a bad query in Postgres (PostGIS) of a user launched during the night. This query took all the memory and I had 0% of free disk. Fortunately, I restored the database with my dumps, it's ok, but I'm afraid for the next time. Can I predict a bad query in Postgres and stop it immediat... | Limiting is hard, but you can set a timeout on query for a user : [CODE] As of the disk I'm not aware of any technique to limit disk usage of a query in postgresql. | 1 | 1 | 203 | 2018-05-14T09:38:26.620 | database_errors | dba.stackexchange.com | |
406,161 | Worker pool running tasks of the same kind serially | I would like to run tasks in parallel. At this time, I am using a very simple worker pool using a single concurrent queue shared by all the threads. Every task has a non unique "tag" (an integer in my case). I would like tasks having the same tag not to run in parallel. At this time, I have implemented it by having a [... | You can use a reactive library such as RxCpp . Use the [CODE] operator to select on the tag for each piece of work. This gives you a collection of observables. Then perform each observable on its own executor. This process ensures serialization, and handles all the grotty details of pushing work across thread boundarie... | 0 | 0 | 282 | 2020-03-05T19:42:11.030 | api_errors | softwareengineering.stackexchange.com | |
303,267 | problem installing mariadb using mysql_secure_installation | I started secure install of MySQL with [CODE] command, and I got that message: Securing the MySQL server deployment. [CODE] Thanks for answers | Despite the name, [CODE] is not for installing MariaDB; it used to secure an existing installation of MariaDB. You should use some other method to install MariaDB (e.g. using your favourite package manager), then run [CODE] . | 0 | 0 | 1,275 | 2021-11-29T18:51:44.040 | database_errors | dba.stackexchange.com | |
156,613 | Is this an assembly language? | In my childhood I used to program on an MK-61 Soviet calculator. It had four operating registers (X, Y, Z, T) and 15 storage registers. A program could have 105 steps. As I recall it, it had commands like: Swap X and Y registers Shift registers (Z to T, Y to Z, X to Y) Copy from storage register (1..15) to X Copy from ... | This is not an assembly language, this is a machine language. Machine language is anything that physically means something to the machine. In the case of pocket computers, it's key presses, encoded into numbers in the machine. You don't give more information about this Electronika MK61 machine , so I'll give the exampl... | 71 | 13 | 28,909 | 2012-07-12T22:00:58.167 | api_errors | softwareengineering.stackexchange.com | |
284,457 | Encapsulating mutable objects with special structure in Python | I am writing a library for working with special types of trees, called Foo trees. A Foo tree has very special structure. There some operations, called bar and baz , which only make sense on Foo trees. So I'm designing a [CODE] class to represent Foo trees. To construct a [CODE] instance, one might pass some object repr... | some options are: using immutable trees as basic data structure using a builder or mutation operations to construct a FooTree without needing a Tree copying the input tree (which is good practice unless you have really big data and performance issues) Note that by builder I mean the builder pattern as described by Josh... | 3 | 2 | 416 | 2015-05-20T15:48:53.783 | api_errors | softwareengineering.stackexchange.com | |
1,153,079 | Lighttpd can't figure out what's wrong with syntax | I'm an absolute beginner at lighttpd and I'm at my wits end trying to figure out what's gone wrong with the default settings that I've customized atm [CODE] [CODE] I haven't a clue why there's an error at line 15 Never mind I believe I've made a typo at the test command and got it check something it would obviously say... | Most people who are beginners make very, very obvious mistakes in judgement because they are too quick to judge rather than to observe What is the difference between the next two lines? /etc/init.d/lighttpd /etc/lighttpd/lighttpd.conf Do they look exactly the same, or are they different somehow? /etc/init.d/lighttpd is... | -1 | 0 | 97 | 2024-02-07T11:35:29.987 | infrastructure | serverfault.com | |
444,328 | how can i disable safe mode for php on web server? | I am using wkhtmltopdf for making a pdf of a page. My code executes the shell to run a command using this wkhtmltopdf library. Everything works fine in my wamp server but when the code runs on my web-server it does not work and gives the following error: [CODE] I think that the php is running on safe mode on the server... | Edit your php.ini and set the variable safe_mode to off. [CODE] To find php.ini in linux run find / -name php.ini -print | 2 | 1 | 47,491 | 2012-11-01T10:45:54.890 | infrastructure | serverfault.com | |
1,018,875 | HSTS policy not preloaded on non www host | i am not very familiar with HSTS , but i try to implement it on my shared webhosting server. Seems i have gotten it to work on host with www. but not on apex host. Hardenize security audit flags it as an issue, audit report: https://www.hardenize.com/report/perroon.eu/1590566369#www_hsts I do not have access to apache ... | The Hardenize report tells you exactly what to do. Submit your website here - https://hstspreload.org/ OR remove preload from your HSTS record. | 0 | 0 | 241 | 2020-05-27T08:36:05.543 | infrastructure | serverfault.com | |
648,172 | SQL BCP Permission needed? | Need to check a permission level, a user needs bulk insert\update\delete permission. If I add them to "BulkAdmin" server role, will this be enough? (Running SQL 2012) | The "server role" bulkadmin only gives permissions for bulk inserts. Insert, update, and delete permissions are per database (or "fixed-database" roles). So you need to grant these permissions on a per database level. I'm guessing what you want is to use db_datawriter fixed database role, which can "add, delete, or cha... | 2 | 2 | 6,674 | 2014-12-01T09:37:41.113 | infrastructure | serverfault.com | |
52,697 | Understanding `get_combination_wise_output_matrix` when investigating a multi-label classification problem | I am currently working on a multi-label classification problem. I am using the scikit-multilearn library (further reading here ) I understand that train / test split is important for these types of problems - ensuring label combinations are represented well in both (scikit-multilearn implements their own split method f... | So [CODE] here means how many possible combinations of labels you want to compare (e.g., order=1 would by how often does each label appear, [CODE] would be how often any two combinations of labels appear with values like 5,5 meaning "rows that only have a label in index 5 and no other label, and where the max order sho... | 3 | 5 | 524 | 2019-05-27T08:49:11.243 | data_quality | datascience.stackexchange.com | |
731,578 | Is It Possible (or Inadvisable) to Run Apache Without Apachectl? | I'm using Apache inside a Docker container, and want to attach the process to the container (preventing forking). However, all the documentation says to run using apachectl, which immediately exits and runs apache under the hood. Is there a clean way to run apache directly? I've tried the following, but it fails: [CODE... | You don't need apachectl. You do need to include apache2.conf or some alternative. [CODE] If you want to run it in the foreground [CODE] | 0 | 1 | 1,868 | 2015-10-25T23:14:51.837 | pipeline_ops | serverfault.com | |
75,105 | Adding foreign keys constraint on databases used | We have a server with about 20 databases, all duplicates of the same original db, and we just noticed the original is missing all the foreign keys constraint for some unknown reason. So of course all the databases on that server are missing them too. Now, these databases have been used for some time now, and there is d... | OK - following my comment, here is what I would do. Before shutting down the server or individual database. Create backup table scripts for each table you need to enforce foreign keys on and their parent(s). Call them my_table_bak (or similar). Run these [CODE] scripts on the database (don't definitively delete anythin... | 1 | 1 | 1,271 | 2014-08-27T14:59:52.380 | database_errors | dba.stackexchange.com | |
585,848 | Tshark/wireshark on an ephemeral interface | Our server hosts a VPN. Each connection to the VPN creates a new PPP interface (ppp0, ppp1, etc.) and the connections are ephemeral in the sense that the interface can go up or down intermittently. What we need is a way to capture packets using tshark for all ppp interfaces even though they may go up or down intermitte... | You can capture packets from the [CODE] interface. That will give you all packets regardless of which interface they were sent or received on. Then you can apply a capture filter to ignore those packets, you are not interested in. For example [CODE] would ignore all packets on the lo interface. | 1 | 2 | 309 | 2014-04-01T09:37:12.530 | infrastructure | serverfault.com | |
569,253 | Error exporting RSA Keys for IIS applicationHost.config tranfer | I am in the process of standing up new web servers from one in the farm (expanding the farm). These are Windows 2008 R2 servers (IIS 7.5). Part of the process of copying the applicationHost.config from one machine to a new one is that the RSA keys need to be copied to that machine as well; otherwise there may be issues... | Make sure that when you open the cmd window that you do so as Administrator . The aspnet_iisreg command will still run without being administrator but you will not be able to access the key container. The message " RSA key container was not found " also will show if you don't have access to the container. Once I opened... | 0 | 0 | 1,102 | 2014-01-23T06:03:57.007 | pipeline_ops | serverfault.com | |
343,105 | How to avoid object cast after passing a parameter? | I have a problem with implementing generic user interface interaction. I have different classes that contain data each for particular interface element. So every [CODE] has data only useful for him - all data inherit from [CODE] . For example, [CODE] only can use data of type [CODE] . The problem is in generic part - I... | Fourth time is the charm This is the same as my second answer (the one you initially checked) and I got rid of the [CODE] call and the enumerator. The trick here was to define a contravariant interface that pairs components and their data. I have been meaning to learn more about contravariance so this was a fun exercis... | 1 | 1 | 1,910 | 2017-02-27T22:05:08.060 | api_errors | softwareengineering.stackexchange.com | |
617,337 | iSCSI: HP MSA 2012i, initiator only discovers one target | I am trying to configure my HP MSA 2012i such that every disk is a vdisk and every vdisk is a volume. Each volume shall be accessible using iSCSI. So each volume shall be a iSCSI target. This is not a raid, I rather want to use the single disks. I have 12 disks in this device. So I get 12 vdisks and consequently 12 vol... | This is a bad idea... Sometimes it makes sense to use ZFS with hardware RAID , or a combination of ZFS and hardware RAID. This is one of those cases. The main issue you'll encounter doing this the way you're planning is that each single disk will be its own VDISK and have its own MSA RAID metadata. The failure of a dis... | 3 | 5 | 946 | 2014-08-01T22:45:16.143 | infrastructure | serverfault.com | |
239,017 | sqlsrv not showing up in my phpinfo | I have just installed php 5.3 on windows server 2008 R2 running IIS7. phpinfo() is working fine. now I want to see if I have correctly installed the Microsoft Drivers for PHP for SQL Server. I downloaded from here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=80E44913-24B4-4113-8807-CAAE6CF2CA05#RelatedR... | There was a problem with the php.ini not having saved for some strange reason. Now is all good. To anyone else that lands here, make sure you've got extension_dir="C:\PHP\ext" in your php.ini though my problem was elsewhere... | 1 | 1 | 4,903 | 2011-02-23T06:06:46.277 | database_errors | serverfault.com | |
185,781 | Windows Small Business Server CAL Question | Possible Duplicate: Can you help me with my software licensing question? We are in the process of upgrading to a new server, to be specific it's the following setup: HP Proliant ML110 G6 Tower Server Windows Server Small Business Edition 5 Cal License We have around 30 staff, but we only want 4 levels of access. For ex... | You can license per user - in which case 30 CALs needed for each staff member. If users are sharing machines (e.g. work part time) you could go for the per device CAL instead which may work out cheaper for you but it sounds like you need to be going the per user route | 0 | 0 | 81 | 2010-09-29T11:56:02.410 | data_quality | serverfault.com | |
28,109 | Issue executing Automation with Selenium/Nosetest set ups | having issue just trying to automate for the first time. I have access to repositories by GIT, where its python folders all use Python 2.7 syntax. I also have Google chrome driver as well(Using ubuntu). When I attempt to automate, I just get error, regarding python 2.7. Unsure if thats the issue. So a friend of mine ga... | When your Python Selenium bindings locate the [CODE] executable and try to execute it, they are unable to do so because of an issue with permissions. Most likely, your [CODE] executable is missing "execute" permissions, add them: [CODE] | 1 | 3 | 1,667 | 2017-06-29T07:25:02.383 | data_quality | sqa.stackexchange.com | |
287,596 | In postgresql.conf, does the order of the listed parameters matter? | I'm relatively new to the DBA field and I have read the official documentation/guides on this topic, but I apologize if my question seems weird. I have deployed PostgreSQL 12 on my AWS instance and tried to install the pgaudit extension. In the postgresql.conf configuration file you need to add shared_preload_libraries... | If you have several times the same parameter in postgresql.conf, the last value will override the previous ones. I normally advise keeping the [CODE] file as short as possible to prevent confusion. See here . My guess is that you misspelled something on the line you added. To be sure, you can look at Postgres logfiles ... | 0 | 3 | 464 | 2021-03-24T12:30:14.717 | database_errors | dba.stackexchange.com | |
177,495 | Issues Installing Oracle Xe 10g on CentOs 4.6 | Help! Trying to re-install Oracle XE 10g on my CentOS 4.6 Machine from RPM and cannot complete the installation, prompting the following error: [CODE] I have searched for options, looking at installation instructions, and possible mistakes, going as far as running a LiveCD to run fsck to check for corruptions but no di... | Following ChrisF's advice I will answer my own question with the steps I followed to solve the issue I was having: Step 1. With an Ubuntu 10.04 loaded to a pendrive, I booted into the server, and proceeded to rebuild the journaled ext3 drive and then run a fsck on that partition. Step 2. I Downloaded Oracle XE 10g Univ... | 0 | 0 | 650 | 2010-09-02T20:20:41.740 | data_quality | serverfault.com | |
122,440 | Slow query with JOIN | I have a stored procedure which runs pretty slow (6 sec) using the following JOIN: [CODE] Without the above JOIN the query runs at 1.5 sec. Any way how to improve the performance? Full stored procedure below: [CODE] Q: How can I make the above stored procedure run faster? | I agree with the comment about table definitions, but in a few moments you will see this does not depend on the tables. You use SELECT from derived table cdr for JOIN and for WHERE [CODE] Derived tables do not have indexes and so these operations always will be full-scan. It may take 6 seconds. That is not too much. Th... | 0 | 0 | 73 | 2015-11-30T10:22:40.507 | database_errors | dba.stackexchange.com | |
321,758 | How can you enforce a "do you really want to do this" confirmation in a publically exposed API? | Is there a commonly (or rarely) used pattern for a "confirming you want to do this" message when calling a function from a library? I have a API that exposes some operations that are potentially dangerous if misused (would cause unwanted changes to the database). I would like to pass a warning back to the caller to dou... | You're trying to solve a human factor problem with an API-level solution, and I believe it's not going to work. It is most likely the case of XY problem . If the "risk" is losing the data because someone did something stupid (or malicious), you should eliminate this possibility (of data loss) altogether. There should b... | 5 | 15 | 376 | 2016-06-09T16:35:43.333 | api_errors | softwareengineering.stackexchange.com | |
276,841 | Attaching database to an existing connection | Is attaching the database supported only by SQLite and MS SQL Server? All other DBMSes can only have one database per connection? Scenario: Let's say there is an archived database with some historical data. The application needs to compare with the current data for the same period. The database in use is not the two me... | all rdms support [CODE] SQL SERVER [CODE] So you can make a query [CODE] That would get you columns from 2 databases, on one connection. 2 connections make the thing more complicted MYsql can establish federated tables http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html so that you have scenario 1 agai... | 0 | 0 | 60 | 2020-10-10T16:38:59.123 | database_errors | dba.stackexchange.com | |
267,045 | Shortest path to visit all nodes | I am given a set of tourist attractions(nodes identified by x, y) and i need to find the shortest path to visit them. The way i thought of it, is i will ignore if there are streets available and consider the streets always go the way a segment uniting the two points does. However, i need to find the shortest path throu... | I won't present an efficient algorithm. You may have a look at zero-supressed decision diagrams (ZSDD / ZDD) to enumerate all paths and represent every path in a compact form. Zero-Suppressed BDDs for Set Manipulation in Combinatorial Problems by Shin-ichi Minato (NTT LSI Laboratories) since you now have a compact repr... | 0 | 1 | 1,653 | 2014-12-21T14:38:53.633 | api_errors | softwareengineering.stackexchange.com | |
49,121 | Load Test a Web App whose APIs are not exposed | I want to load test an application which does two things when I click on the button after filling the details - Make a call to 3rd party merchant API to validate the details entered Do some read & write operation in the DB. So I want to get the performance of above and the only think I have access to is the application... | Given you have [CODE] in tags here is a JMeter-related solution. Load testing is the process ensuring that the application can handle the anticipated load hence the process of load testing a web application is simulating real users using real browsers accessing the web application. So you don't need to know about the A... | 1 | 2 | 308 | 2021-09-29T08:36:31.400 | data_quality | sqa.stackexchange.com | |
755,627 | How to get rid of spam mails with return-path and from non-existent@mydomain.tld | Over a few days I'm getting several spam mails to my junkmail folder. The return-path and from addresses are always non-existent mailaddresses of my own tld (for example non-existent@mydomain.tld). I'm using Postfix, Dovecot with virtual mysql mailboxes and Spamassasin on a Debian Jessie system. What can I do to get ri... | As documented by Postfix you can use the following two restrictions in [CODE] in main.cf: reject_unlisted_sender Reject the request when the MAIL FROM address is not listed in the list of valid recipients for its domain class. See the smtpd_reject_unlisted_sender parameter description for details. This feature is avail... | 0 | 0 | 1,023 | 2016-02-11T18:09:03.843 | database_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.