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 |
|---|---|---|---|---|---|---|---|---|---|---|
184,758 | Setting connection properties (application_name) for Postgres connections | I want to attach an application name to my connection like PgAdmin does here: (Query in text form: [CODE] ) My connections are created this way (here in VBA): [CODE] Where that DSN is created by: for 32 bit: go here: [CODE] for 64 bit: go here: [CODE] Go to the System DSN tab and enter the information (Data Source, Dat... | If you can't configure it via the DSN itself, you can always have your connection establishing subroutine set the application name by executing a SQL command on the connection before it hands that connection back to the caller: [CODE] In VBScript, this looks like [CODE] | 4 | 4 | 4,298 | 2017-08-30T20:25:57.023 | warehouse_errors | dba.stackexchange.com | |
80,336 | Do resumable exceptions make any sense? | Following up my previous question I wonder if [CODE] make any sense. It looks like nobody uses them in [CODE] . Don't they use [CODE] because of Java limitations or just because they don't really need them? Suppose, I want to create a file in a directory, which should exist but does not. I would probably prefer use a [... | Not directly related to Scala, but when the C++ exception mechanism was being designed, there were big arguments about resumption. Eventually, they looked at a very large codebase (not of C++) where resumption could have been used, and found only one instance of it, which could easily be re-written not to use it. Also,... | 6 | 12 | 1,384 | 2011-05-28T06:46:22.403 | api_errors | softwareengineering.stackexchange.com | |
55,025 | NFS exporting a directory that's already NFS mounted (on the server) | I have a NFS server, A, that's sharing out a folder. B is mounting the the folder. B is also sharing that folder out. However C is unable to mounted it. The error on C is: [CODE] And on B the error in [CODE] is [CODE] [CODE] on C: [CODE] [CODE] on B: [CODE] I've added the fsid argument to the exports, but still the sam... | I'm curious why you wouldn't just want to share it from A (a network tunnel is much easier to configure) but in general you'll have a problem supporting both an nfs server and an nfs client on the same machine. To fix your immediate problem, there's probably two things you can do. The first is to make sure that you're ... | 4 | 4 | 18,401 | 2009-08-17T14:28:19.757 | infrastructure | serverfault.com | |
992,145 | Connection timeouts when scaling more than one pod instance in Kubernetes | Running Kubernetes with flannel on a local ESXI server with 3 VMs, a master and two nodes. On all of the nodes, I have Kubernetes 1.15.5, Ubuntu 18.04, and Docker 18.09.7. A green field install. Nginx runs fine with a single pod on either node, but when scaling to two pods, random connection timeouts start occurring af... | Flannel cidr and initialized cluster cidr were different. I initilized the cluster with [CODE] But I ran the stock flannel file which comes with a network of [CODE] My fix was to download the flannel file, then remove the installation. [CODE] I then modified flannel.yml to match how I initialized the network. [CODE] La... | 0 | 1 | 4,167 | 2019-11-16T22:33:14.960 | pipeline_ops | serverfault.com | |
334,099 | How to encourage junior developers to participate in code review? | I'm currently working as a senior dev with 3 juniors below me and have introduced a code review process to help manage the quality of code going into production. I feel its very beneficial for all of us to review each others work, however after about 5 weeks of the process I am the only one to make any comments in the ... | To me, the question here is "what are you looking for your junior developers to get out of the code reviews?". To me, potentially the most important thing is for the junior developers to learn by looking at what is hopefully good code; if they happen to find issues in your code as well, that's a bonus. If you are looki... | 15 | 16 | 1,943 | 2016-10-20T03:59:31.117 | api_errors | softwareengineering.stackexchange.com | |
204,249 | Should integration test be included in continuous integration (CI)? | Assume that we are developing a web application, and Hudson does typical jobs such as compile, unit test and static code analysis. But the tricky part is: Hudson deploys and starts up application server to do integration tests , once the previous jobs done. That means some difficult things, such as database connection,... | the name Continuous Integration says a lot. What better place to do integration testing than where you're integrating already? Of course it should not be the only place those tests take place, when developing you should try to ensure that you don't break things after all, not just that your changes work in isolation. I... | 19 | 10 | 10,334 | 2013-07-10T05:41:14.263 | api_errors | softwareengineering.stackexchange.com | |
434,319 | Migrating WebLogic 10.3.0 to new host. Slow managed server startup times | We are migrating our Blue Martini Commerce application (only supported on WebLogic 10.3.0) to a new host (Redhat 6.3 on a VMWare ESX vm). We are seeing extremely slow start up times for our managed server(s) that is basically 20x slower than our current production. As a for instance the Publish managed server takes ~30... | I have experienced the following when initialising the Security Realm specifically with 10.3.0.0 on linux hosts: (Taken from Here Weblogic Starts Slow ) Turns out Weblogic uses random number generator during start up. Because of the bug in java it reads ‘randomness’ from /dev/random. /dev/random is very good random num... | 1 | 0 | 1,317 | 2012-10-02T22:06:52.890 | database_errors | serverfault.com | |
344,038 | Virtual Domains with Postfix and SSL | I've got a Postfix mail server setup for hosting multiple virtual domains (say [CODE] and [CODE] ). Users configure their outgoing mail server as [CODE] and [CODE] . All mail servers refer to the same physical Postfix server (same IP, single instance of Postfix running on this Linux server). Which SSL certificate do I ... | Or do I have to use a single certificate for mail.xxx.com and tell users of yyy.com to use mail.xxx.com as their outgoing server? Yes, ultimately you'll have to do either that or use a certificate with multiple [CODE] or [CODE] attributes. There is no way Postfix can know which hostname the client requested. There is n... | 26 | 13 | 20,572 | 2011-12-25T12:26:50.367 | api_errors | serverfault.com | |
307,005 | Postgres autovacuum keeps transaction id's around to 10% limit, causing aggressive vacuuming to trigger now and then which locks tables | We run multiple Postgres clusters in our infrastructure with 10-30 DB per cluster, ranging from 10 GB size to 1TB in size. I have recently noticed that on all our clusters the wraparound id is always close to the 10% threshold for aggressive auto vacuums. This has caused some instances where heavy active tables got loc... | I don't think you have to worry. As long as you have no tables where [CODE] exceeds [CODE] by a lot, everything is running as it should. If you have insert-only tables, upgrading to v13 or better would help. From that version on, such tables will receive autovacuum runs earlier, which reduces the size of an anti-wrapar... | 0 | 2 | 990 | 2022-02-04T08:47:32.133 | warehouse_errors | dba.stackexchange.com | |
122,789 | Gitosis setup, fatal error on initial clone of gitosis-admin | I'm stuck. After setting up gitosis, cloning gitosis-admin for the first time results in the following: [CODE] Anyone ever experience this problem? Troubleshooting ideas? | Turned out this was an SSH issue. Disabling password authentication on the server revealed that running the clone command with git-bash was failing with the following output: [CODE] Stumbling upon this thread led me in the right direction. My GIT_SSH env var was set to use plink. Because of this, git used putty to conn... | 1 | 1 | 738 | 2010-03-16T00:15:49.633 | infrastructure | serverfault.com | |
101,286 | Verifying connection pooling server side with CONTEXT_INFO on | I'm working with a 3 tiered application, Microsoft Dynamics AX, where the middle tier maintains connections to a SQL Server. Several clients connect to this middle tier server. The middle tier server typically has several connections open to the SQL Server, so I'm pretty sure they are being pooled, however there is no ... | First, [CODE] is a property of the session, not the connection. It gets reset by sp_reset_connection when the same session is reused and the first batch is executed. It seems that [CODE] was not reset in SQL Server 2000 and possibly earlier versions, but starting with SQL Server 2005 it is definitely reset to [CODE] . ... | 7 | 6 | 2,110 | 2015-05-12T13:28:19.153 | database_errors | dba.stackexchange.com | |
637,915 | Chrooted user can't login with SSH | I created a new user with no shell access like this: [CODE] Then in my [CODE] I add those lines: [CODE] The problem is I got Access denied every time I log in with putty, is there any misconfiguration? UPDATE: It appears that the only user can ssh is the [CODE] user, even adding the new user to [CODE] directive. | [CODE] is your problem. You have two options for bash: [CODE] and [CODE] (chrooted). Basically, chrooted bash is for avoiding mishaps. http://docs.1h.com/Chrooting | 1 | 2 | 3,150 | 2014-10-17T21:51:35.063 | infrastructure | serverfault.com | |
274,294 | Many-To-Many relationship between Students and heights (Is it necessary?) | So I'm trying to design a database for my local school doctor. (This is somewhat analogous to my real problem) Currently, a student is scheduled for a health check every half year, where the students height is measured. As it can be seen, one student therefore may have multiple heights, which is signified by a join tab... | A many-to-many relationship is not necessary because the relation is one-to-many . Each [CODE] is measured zero to many times. "Measurement" in this context could refer to any number of attributes of [CODE] , not just [CODE] . How we create these entities depends on how you need to conceptualize the information and whe... | 0 | 2 | 44 | 2020-08-25T08:55:15.960 | bi_errors | dba.stackexchange.com | |
6,874 | Merging two datasets with unclear identifier in Excel | I'm trying to merge two datasets on Mergers & Acquisitions. They both consist of c.10'000 observations with c.50-100 variables each. One contains information about the actual M&A deal whereas the other one contains info on how a deal was financed. The problem is that there is no clear and unique identifier. For example... | I typically proceed the following way, convert to the same case with [CODE] or [CODE] ; remove all non-alphanumeric characters with several [CODE] , e.g. [CODE] ; trim white spaces [CODE] ; extract the first word with [CODE] ; trim white spaces again; perform a join on the key that you created. Often this gives you a d... | 1 | 1 | 105 | 2015-08-23T15:49:14.167 | data_quality | datascience.stackexchange.com | |
36,715 | lengthy criteria in dataframe selector | I'd like to get records with country codes not in a long list , something along the lines of [CODE] what's an elegant way to do it? | [CODE] https://pandas.pydata.org/pandas-docs/stable/gotchas.html#using-the-in-operator | 0 | 1 | 46 | 2018-08-09T20:13:11.747 | data_quality | datascience.stackexchange.com | |
1,119,355 | Can I measure the performance of a linux software bridge using this setup? | I need to measure the performance of a linux network bridge ( https://wiki.archlinux.org/title/Network_bridge ) on a particular machine ( [CODE] ). My initial idea for a setup looked like this: [CODE] With [CODE] acting as the switch (bridging [CODE] and [CODE] ), I'd measure the link between [CODE] and [CODE] using so... | You can, but you need to put those three instances in different network namespaces or different VRFs so they won't figure out the "shorter" path. Also you can check was the shorter path really taken by observing the counters on the bridge physical ports (and by looking at NIC LEDs — they usually blink when passing traf... | 0 | 3 | 342 | 2023-01-03T15:52:06.653 | infrastructure | serverfault.com | |
163,148 | Best approach for utility class library using Visual Studio | I have a collection of classes that I commonly (but not always) use when developing WPF applications. The trouble I have is that if I want to use only a subset of the classes, I have three options: Distribute the entire DLL. While this approach makes code maintenance easier, it does require distributing a large DLL for... | The way I've done this in the past (on other systems) is using a repository. The common files are all in a library part of the repo, but each solution maps them to an individual project. That way, all solutions all use the same source code, but each solution only uses the files it needs. This MS blog post tells you how... | 2 | 4 | 1,241 | 2012-08-31T12:17:46.800 | api_errors | softwareengineering.stackexchange.com | |
997,070 | Appengine default service https is not working | https://vikas-tradeassist.appspot.com -- not working http://vikas-tradeassist.appspot.com -- working fine can you please help me how I can resolve this, not sure why AppEngine traffic is not flowing through https for nodejs application. It worked till I faced an issue with package dependency, after I resolved the issue... | both url works fine HTTP [CODE] HTTPS [CODE] if problems occur in the browser, try to clear browser cache, use browser with open dev tools [F12] with disabled cache option, see: https://superuser.com/a/304600 | 0 | 0 | 61 | 2019-12-30T04:07:41.220 | infrastructure | serverfault.com | |
260,842 | :!!echo command not working from sqlcmd | I have a sql script file which is executed from a batch file and is supposed to execute some sql scripts and write errors and output to files. Here is an example of how the script file looks like: [CODE] The :!!echo Table_auth.IdentityApplication.sql piece is suppose to print this text in the command prompt window. I i... | SQLCMD Next versions do NOT work: Version 14.0.2027.2 NT (from: COMMAND LINE UTILITIES FOR MICROSOFT SQL SERVER 2017) Version 15.0.1300.359 NT (from: SQL Server 2019 (15.x)) This version works: Version 11.0.2100.60 NT x64 (from: Microsoft SQL Server 2012 Command Line Utilities) (on my computer found in 'C:\Program File... | 2 | 2 | 1,221 | 2020-02-28T14:58:47.857 | warehouse_errors | dba.stackexchange.com | |
762,079 | How to loop through interface facts | The setup module from ansible provides the fact ansible_interfaces [CODE] And per interface some facts: [CODE] How do I use the ansible_interfaces fact to loop through the available interfaces? [CODE] This is clearly not working, because it prints out the strings ansible_lo, ansible_eth0 and ansible_eth1, but I want it... | You came across one of the limitations of Jinja/Ansible templating, namely there is no way to evaluate expressions, which would be required to get to the value of something like [CODE] . You're stuck with a string. Fortunately there is the global [CODE] object where you can access all the facts by key, which is... a st... | 8 | 13 | 29,902 | 2016-03-07T13:23:12.273 | pipeline_ops | serverfault.com | |
578,951 | prepare domain list to work with squid 3.x | the latest version of squid do not accept duplicated domains like: [CODE] and it requires domains to start from "." adding dot is simple: [CODE] but how to remove duplicates.? | The simplest way would be by running [CODE] . It will tell you which line(s) are in error. | 0 | 0 | 63 | 2014-02-28T09:42:14.830 | data_quality | serverfault.com | |
1,139,479 | wget/curl from internal network (web server) to external ip address (web server) connection failed | for some monitoring purposes on my own software i want to call wget with the "external" UR of the webserver, so my call will look like wget https://www.mydomain.de/path But this call fails with the error message: Connection failed. When i make the call from another server / device outside the network from above the cal... | As @HBruijn mentioned in his comment it looks like the "Hairpin NAT" Problem. So the Answer to my problem was to add a new NAT-Rule (Full NAT): Traffic from Web Server (Internal IP) over https to External Interface then change Destination to Web Server (Internal IP) and change Source to internal address. In my special ... | 0 | 0 | 231 | 2023-07-27T12:54:57.573 | pipeline_ops | serverfault.com | |
222,980 | JOIN tables and return count even if it is 0 | I have this query: [CODE] which returns [CODE] Then I have another entity [CODE] , which fields [CODE] and [CODE] , where [CODE] is of type [CODE] and I store the values in format [CODE] . What I want to achieve is to join the [CODE] entity on [CODE] and get a count on the [CODE] records for a given single date, f.e. [... | [CODE] is the key, like ypercube commented. And you probably don't need the self-join - assuming [CODE] is [CODE] . If your predicate is selective (more than a few rows without alarms), I suggest to count in a [CODE] subquery: [CODE] Else , a plain subquery should be faster: [CODE] Either way, it's typically faster and... | 0 | 2 | 2,103 | 2018-11-20T15:01:38.630 | warehouse_errors | dba.stackexchange.com | |
916,117 | Set Reg keys under Current User during an OSDeploy tasksequence | I have the TS setting the registry keys in the HKEY_Local_Machine no problem. My issue is that I want to, by default, set a key for the HKEY_Current_User. I want to have the "Automatically detect settings" in Internet Properties LAN settings unchecked, for anyone logging in. I think that the correct key is [CODE] but a... | Generally speaking this is more something you would control by a GPO than OSD but technically it is no problem. What you have to do is modify the default user profile, i.e. the template from which all future profiles are created. The most basic way (and by far not the worst) to do this is using the built in tool REG.EX... | 0 | 1 | 2,295 | 2018-06-11T14:57:27.157 | infrastructure | serverfault.com | |
294,111 | Windows 2008 R2 File Server Cluster vs. DFS | We're currently using 2 Windows 2008 R2 with DFS but discovered some issues with: replication of permissions (permissions are not replicated across DFS members) replication of quota (quota is disk-based) Do these problems exist in clusters? Meaning, if we set the permission/quota on a folder in a member cluster, will a... | http://blogs.technet.com/b/filecab/archive/2006/09/22/457319.aspx anaswers your question on quota behaviour on cluster nodes. Note this is for FSRM quotas. FSRM and NTFS quotas are apparently different. See http://support.microsoft.com/kb/915042 . Which do you have? Also see http://technet.microsoft.com/en-us/library/c... | 4 | 7 | 6,145 | 2011-07-26T07:53:59.500 | database_errors | serverfault.com | |
181,572 | memcached installation on LAMP issue | When trying to use memcached in my php script, i get class not found. I am running LAMP on Ubuntu 9.01 and have so far taken the following few steps: [CODE] I see the memcache extension when viewing phpinfo, but no memcached?! Is there anything else that i need to do to be able to use memcached in my script? Thanks in ... | Search for "memcache class not found" at Google yields Memcache Class Not Found thread with troubleshooting instructions: Run [CODE] to ensure that PHP was compiled with the [CODE] option. | 0 | 0 | 338 | 2010-09-15T20:54:11.250 | infrastructure | serverfault.com | |
181,580 | What is causing this error: None of the specified replicas for availability group ag1 maps to the instance of SQL Server to which you are connected | I am configuring Always-on for SQL Server 2017 RC1 (14.0.80.90, dated 2017-7-18) for Linux as per https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-availability-group-configure-ha . This install is using docker images, all on the same physical host. All the steps are working until I get to the step: [CODE] A... | Resolved: The issue is that when creating the availability group, the node specifier, i.e. [CODE] needs to use the EXACT name that is returned as per the [CODE] command. Using any other identifier, even if it resolves to the correct IP, does not appear to work. | 8 | 8 | 2,628 | 2017-07-23T17:38:28.417 | pipeline_ops | dba.stackexchange.com | |
219,191 | Novice to node.js, what is the advantage gained using callbacks over events? | I am a novice JavaScripter and have no real knowledge of what goes on inside the V8 engine. Having said that, I am really enjoying my early forays into the node.js environment but I find that I am constantly using events.EventEmitter() as a means to emit global events so that I can structure my programs to fit a notifi... | The nice thing about callbacks is there's no global state there, and passing parameters to them is trivial. If you have a function [CODE] then you can know that's a self-contained higher-order function which essentially lets you construct a "grab this and do that" function. You can be sure your code flow is exactly as ... | 24 | 28 | 7,892 | 2013-11-22T06:39:13.567 | api_errors | softwareengineering.stackexchange.com | |
121,595 | Set up nameserver with multiple domains | i have a dedicated with a primary ip and domain name. I added nameserver settings for this domain, and mx records. n1.mydomain.com ns2.mydomain.com etc. Now i want to add more domain with websites to my server. Now what is the best way to do this. Should i add the domain, and use the mydomain.com nameserver settings. S... | Just like with webservers, the answer is "depends". You will need to monitor the amount of queries hitting your DNS servers to determine if you need to move to suggestion 2. On, the other hand, for most domains, two nameservers will be plenty. The bigger bottleneck will be the web traffic, not the DNS responses. | 0 | 1 | 3,589 | 2010-03-11T17:38:29.843 | infrastructure | serverfault.com | |
442,158 | What to use in B's configuration: A or A's configuration? | When I have a class [CODE] in a module [CODE] as follows [CODE] and want to decare a class [CODE] in a separate module [CODE] that makes use of [CODE] , what would be the better approach? Approach 1: [CODE] Approach 2 : [CODE] So far, I always went with approach 2 because it seemed to me as if it only had advantages. F... | You are right to be considerate of what dependencies your classes expose. However, I think you have a similar issue in both cases: In both your approaches, users of [CODE] are forced to transitively depend on [CODE] when it seems like you might not want them to. Instead, consider a trick I often find myself using for d... | 1 | 4 | 108 | 2022-11-08T15:49:50.553 | api_errors | softwareengineering.stackexchange.com | |
376,443 | Puppet's automatically generated certificates failing | I am running a default configuration of Puppet on Debian Squeeze 6.0.4. The server's FQDN is master.example.com. The client's FQDN is client.example.com. I am able to contact the puppet master and send a CSR. I sign it using puppetca -sa but the client will still not connect. The two machines have accurate date and tim... | I've seen this before when something has gone weird with the cert signing process. The easiest way to fix this is to regen the client certs. revoke the cert: [CODE] run [CODE] on the client stop puppet on the client remove everything in the [CODE] directory start puppet on the client do an initial run I tend to use [CO... | 8 | 5 | 10,669 | 2012-04-03T21:05:33.450 | pipeline_ops | serverfault.com | |
195,950 | Just update one column, strange execution plan | I have logged the slowest queries on my database, and one surprises me, showing many times in the list, and taking often many seconds to execute. [CODE] book_id is int identity PK (clustered), last_read is a datetime. The query is written with the 15 in single quotes, thus requiring a conversion, but I cannot imagine t... | Let's do a small thought exercise: How do you think SQL Server finds the row with that [CODE] ? How do you think it finds (not updates) the value for [CODE] ? Remember that the clustered index is the table . If you update the table, you must update at least the clustered index. Let me continue the thought exercise by a... | 0 | 5 | 288 | 2018-01-22T17:59:30.443 | database_errors | dba.stackexchange.com | |
243,143 | Object-Oriented equivalent of LISP's progn function? | I'm currently writing a LISP parser that iterates through some AutoLISP code and does its best to make it a little easier to read (changing prefix notation to infix notation, changing setq assignments to "=" assignments, etc.) for those that aren't used to LISP code/only learned object oriented programming. While writi... | Everything in Lisp is an expression, meaning that it returns a value. The [CODE] function executes a series of functions/forms, ignoring the return values of all but the last call/form, which it returns as its own return value. E.g. in the following code [CODE] the value returned by the call to [CODE] would be the valu... | 1 | 4 | 743 | 2014-06-05T18:41:34.443 | api_errors | softwareengineering.stackexchange.com | |
1,057,024 | What would happen to our data if our GCP Datacenter goes down? | Following the recent events in France at OVHCloud's Strasbourg Datacenter, we can't help but wonder what would happen to our whole stack in the cloud if the DC we are currently hosted on at GCP meets a similar fate. We have everything running through k8s on 3-4 different VM's. Is there a fragmentation of the data acros... | Google has different types of storage and different tiers of those types. If you have your data on local disks ( https://cloud.google.com/local-ssd ), you would be lost. With persistent disks, it depends. Except regional PDs ( https://cloud.google.com/compute/docs/disks/high-availability-regional-persistent-disk ), (pe... | 0 | 2 | 286 | 2021-03-14T10:37:28.750 | pipeline_ops | serverfault.com | |
337,482 | MySQL exclusive lock not appearing to work for new child rows | I have some logic in my application which I think results in the following MySQL calls, however when I get two of these run within a couple of milliseconds, I get two incompatible child rows. Start transaction with Repeatable Read isolation. Fetch and lock Account object [CODE] Read existing Addressees linked to the Ac... | What's happening is that the second transaction doesn't see the UPDATE performed by the first transaction, because of REPEATABLE READ. It only sees the version of rows in the Address table as they were when transaction 2 started (before the update was committed by transaction 1). This is known as a "lost update." Some ... | 1 | 1 | 25 | 2024-03-05T08:46:22.587 | database_errors | dba.stackexchange.com | |
87,029 | What is the difference between select and fetch time? | In this article MySql vs MongoDB performance benchmark , they defined two measurements: select time run time (select + fetch) I do not understand what the difference is between these two. Can someone explain what the select time and fetch time are? | The benchmark you cited is using the term "select time" to mean the amount of time that elapses between when the time when the query is sent to the server for execution and the time when the first row is available for retrieval. The "fetch time" is the difference between when the first row is available to the client an... | 3 | 2 | 7,378 | 2014-12-26T14:17:36.813 | database_errors | dba.stackexchange.com | |
134,374 | Is using dynamically generated code as cache a good idea? | I have a web search interface that can compare products in a table. This data set changes a few times a week. I have been storing a "DISTINCT" list (used for parametric selection) in a [CODE] table. The query is computationally expensive because it involves table joins and thousands of records, hence the reason to cach... | Yes, it's fine. It's a very common practice, and I can't think of a mature framework I've used that doesn't have some sort of code generation caching as part of the optimization scheme. That said, if your database supports views, I would recommend using that. | 1 | 0 | 324 | 2012-02-10T14:11:15.077 | database_errors | softwareengineering.stackexchange.com | |
843,876 | OwnCloud How to set limit for a number of file upload to OwnCloud at a time | Dont Know if this is the right place to post the question but i'm stuck here , need help I'm having a problem that how can i set a limit number for quality of file upload to OwnCloud at a time ? I means i'm the admin and i want to set an limit for user , they can only upload 3 file at a time in OwnCloud I'm using windo... | You can change [CODE] in your PHP and set it to 3. | 0 | 0 | 258 | 2017-04-11T12:17:55.470 | infrastructure | serverfault.com | |
46,787 | How to configure pgpool for reasonable speed | I have a problem with pgpool II configured in master-slave mode with replication on slony. I have configured postgres databases on each server to run as fast as they can and this was verified by me when I set up connection directly to the db server. However when connection is established by pgpool sth goes wrong, my we... | Wow, surprised nobody answered this question in the past two years! The problem is almost certainly these two lines: [CODE] They result in a lot of writes to your local hard drive, which likely isn't very fast compared to the database. | 2 | 3 | 5,208 | 2013-07-22T14:14:18.743 | database_errors | dba.stackexchange.com | |
875,500 | Unable to stop an invisible socket on port 80 | I want to run my Apache server but I got this error: [CODE] I used netstat to check which process is using this port but I got no response: [CODE] In httdp.conf, if I change the listening port and the SSL port, I can correctly start my server (but it is not what I want): [CODE] I get: [CODE] So there is an invisible pr... | It might be that you have multiple [CODE] directives in your main httpd.conf and the subsections that get included from [CODE] and similar. Overlapping Listen directives will result in a fatal error which will prevent the server from starting up. | 0 | 2 | 1,892 | 2017-09-26T06:54:22.113 | infrastructure | serverfault.com | |
536,407 | Tmux and encryptfs causing "(unreachable)" directories upon reconnect | I'm running an Ubuntu 13.04 server with an encrypted home directory (encryptfs). I keep a tmux session open which holds my development environment (vim, etc). When I disconnect, I'll detach the tmux session and then disconnect the ssh connection. Later, when I reconnect, and reattach the tmux session, I'll get errors s... | If it is sufficient that your ecryptfs protected home directory is not unmounted when you log out, you can remove ~/.ecryptfs/auto-umount and it will stop unmounting when you logout (which is what I do, debian wheezy). I found this thread on askubuntu about the same thing, however the script presented doesn't work. Her... | 5 | 7 | 1,128 | 2013-09-04T20:09:32.997 | infrastructure | serverfault.com | |
284,838 | vSphere Client time zone problem | How to adjust time zone in vSphere client which is connected to vCenter server? I know ESXi runs in UTC, but there is also UTC in performance charts, I need local time. | If I understand correctly you want to change the timezone of a VMware ESXi server which you are connected to via vSphere client? If so, you can change the timezone by opening vSphere client, selecting Inventory and clicking on the hypervisor you want to make changes to. You should then see a tab labelled 'Configuration... | 1 | 1 | 8,812 | 2011-06-28T11:33:52.543 | infrastructure | serverfault.com | |
256,079 | Apache & Subversion, "403: Forbidden" remote but local still works? | After a power failure my debian server rebooted all systems nominal with the exception of an SVN server using HTTP via apache2. I am hosting a few other services on this machine, the only other service interacting with apache is a trac project. All webpages hosted out of /var/www work just fine, and my trac project (no... | Well, silly answer. [CODE] did not have +x permissions for group www-data; somehow this did not effect any of the other hosted sites or even the dummy index.html page within that directory. And even though the SVN repositories are not hosted anywhere near that folder, because I had my [CODE] this likely caused the DAV ... | 0 | 0 | 3,174 | 2011-04-05T21:17:55.523 | api_errors | serverfault.com | |
251 | How do I automate deployment to Docker with CircleCI? | My circle.yml file and my CircleCI account are set up to use Docker for testing already, but I'd like to move to continuous deployment upon a successful build. Here's what I have so far in circle.yml: [CODE] | A few things need to happen for this to work properly. First, add a [CODE] section to circle.yml: [CODE] Thanks to this blog post for the following script. Then, make a file called start.sh in the top level of your repository (if you use a different name, change the circle.yml's last line) that contains the following: ... | 8 | 7 | 358 | 2017-03-02T23:29:44.160 | pipeline_ops | devops.stackexchange.com | |
1,096,769 | Very big device in Centos | I have older VM (Centos7) where I have many disks. Now it is 36 vmdk (22TB). I wanted extend one virtual disk to 2400GB and create new partition for LVM (3th on disk). But after I create partion I see that operation was slowly than is normal. So I check syslog, and this is there: [CODE] So I do not know if I can use th... | Yes. It is safe. The Linux said it understood the situation and switched to code path that is supporting such big devices. However, you have a DOS partition table. It supports devices up to 2 TB. You won't be able to extend the partition or create a new partition in the free space at the end of the device. You need to ... | 0 | 1 | 710 | 2022-03-22T15:20:15.460 | infrastructure | serverfault.com | |
98,041 | Are there any known benchmarks/statistics on UnQLite? | I came across UnQLite the other day in Stack Overflow and it has me intrigued for some software I'm working on. However, very few tests have been published on how well it performs. There are plenty of questions and public data available that help on SQLite and others but nothing on UnQLite. (I'm looking at serverless d... | I have found some information and pointers here . Extracts from that thread: ...retrieved records from a given collection a parsed only once (FastJSON) and cached in-memory for fast retrieval. The cache is a O(1) hashtable so performance shouldn't be a problem. ...only the first retrieval is a little bit slower than th... | 3 | 2 | 2,074 | 2015-04-16T14:12:13.037 | warehouse_errors | dba.stackexchange.com | |
113,072 | Retrieve result for all the users | I have one query which returns particular user total hours for a month. I want to return for all the users in an org. UserRegistration table contains UserID. My code for particular user is, [CODE] | You just need to use [CODE] : [CODE] If you need the user's names, there are several ways to do this, here's one: [CODE] Since apparently you want a row for every user, even those that don't have any logged hours for tasks in the selected month(s), try: [CODE] I do recommend more consistency in column names. Why is it ... | -3 | 5 | 57 | 2015-09-03T12:01:21.193 | warehouse_errors | dba.stackexchange.com | |
773,984 | Why are some RPM's "not relocatable"? | An RPM is relocatable if you can install it like this: [CODE] Without getting the following error message: [CODE] This link states: RPM has the ability to give users some latitude in deciding where packages are to be installed on their systems. However, package builders must first design their packages to give users th... | In fact, most RPM packages you will find are not relocatable . The Fedora Packaging Guidelines have this to say : The use of RPM's facility for generating relocatable packages is strongly discouraged. It is difficult to make work properly, impossible to use from the installer or from yum, and not generally necessary if... | 6 | 8 | 17,256 | 2016-04-30T05:07:43.767 | infrastructure | serverfault.com | |
53,474 | Oracle: terrible execution times from virtual application server | I've been provided with an Oracle VM linux box playing host to an Oracle 11g installation. I've also been provided with an Oracle VM Windows Server 2008 64-bit box acting as an application server. Tasked with deploying my application to this environment, I've created / populated the DB, installed instantclient drivers ... | This is almost certainly a networking issue (as the execution on a different machine is way faster) so I doubt you'll be able to go much further with any Oracle tools. I've never had any needs to tweak out-of-the-box network parameters to get good performance. What I suggest is you use a standard network benchmarking t... | 1 | 1 | 2,457 | 2013-11-18T07:42:40.133 | database_errors | dba.stackexchange.com | |
876,699 | Does a RAID controller with an NV cache improve the performance or integrity of an SSD array? | I am planning to purchase a server (Dell PowerEdge R740) with SSDs in RAID 10, and my priorities are write performance and data integrity. It will be running Linux. The SSDs have write caches with power loss protection. It seems like these are my RAID options: PERC H330 (no cache), software RAID (pass-through) PERC H33... | If used with SSDs without powerloss-protected write cache, the RAID controller's NVCACHE is extemely important to obtain good performance. However, as you are using SSDs with powerloss-protected write caches, performance should not vary much between the various options. On the other hand, there are other factors to con... | 20 | 16 | 14,572 | 2017-10-03T20:00:54.453 | data_quality | serverfault.com | |
534,664 | To deploy Windows client unatteded via Linux server, how? | We have many sites world-widely, in which a Linux server (tftp, PXE, nfs, dhcp service, http enabled) is used to deploy Linux clients automatically unattended. Now we have a needs to deploy Windows 7 clients. How to do that? I have some thoughts, and a lot of questions. we intend to use existing Linux server, new tools... | FOG does a lot of these: PXE/TFTP/NFS based on Linux Images are usually of a completely deployed machine, but sysprep images may also work (using sysprep with FOG is not entirely clear - YMMV) ntfsclone based so the partition is shrunk to a minimal size (e.g. 6-7GB for a Windows 7 desktop) Snapin system allows pushing ... | 1 | 4 | 6,118 | 2013-08-29T00:33:56.687 | pipeline_ops | serverfault.com | |
154,754 | Using GETDATE() in a variable returns 0 rows | I have a query that declares and sets a datetime variable at the very beginning: [CODE] when I check it and execute a select @_NextAppt it returns three days from today which is what I want. The problem occurs in my next select statement when I use [CODE] The query returns no rows. Here's the sample query: [CODE] I can... | The problem is that [CODE] returns a [CODE] . So the [CODE] condition checks if any of the values in that column is equal to that exact date and time (+3 days). You need to strip the time part, either by casting or by using a [CODE] variable: [CODE] We also don't know the type of the column. It would be good to use inc... | 2 | 3 | 509 | 2016-11-09T21:33:40.713 | warehouse_errors | dba.stackexchange.com | |
243,762 | Open Database mysql.gz | I want to open a 300 MB database downloaded to my computer. The database is called [CODE] . When I open the file called [CODE] I get a file called [CODE] . I have tried decompressing the GZ file using command line: [CODE] not unzip unlike in the article since you're not using a .zip file which gave me an error: tar: Un... | The answer to another person's question about gz.cpgz file-types suggests that it may have been compressed twice. Other searches show people having problems opening them but this is down to software not expecting files to be zipped up twice in their cases. You don't say what operating system you are on but, from what y... | 0 | 1 | 641 | 2019-07-25T09:10:56.477 | hadoop_errors | dba.stackexchange.com | |
861,272 | Powershell: set Registrykey owner to SYSTEM user | I have to add an exclusions path to Windows Defender registry key. I am aware that there are Cmdlets provided from Windows Defender to use them directly for these kinds of purposes. But unfortunately, in Windows 7 and Powershell v2, they are not available. So I am trying to build a script that will manually enter the v... | Finally, I have found what was missing in the script. The Administrator user needed extra privilege for restoring the privilege. Just a simple call to the function [CODE] before setting the original owner back, gives the current process the required permission. | 2 | 0 | 1,315 | 2017-07-10T12:59:37.500 | infrastructure | serverfault.com | |
102,807 | Should the syntax for disabling code differ from that of normal comments? | For several reasons during development I sometimes comment out code. As I am chaotic and sometimes in a hurry, some of these make it to source control. I also use comments to clarify blocks of code. For instance: [CODE] Even though it "works" and alot of people do it this way, it annoys me that you cannot automatically... | First of all, in your example there are "TODO" comments. These types of comments are special in a way because they are detected by IDEs (at least Eclipse and Visual Studio) as a marker for "tasks". But I'm sure you know that since you use thme, and I suppose you're not referring to them when you use the term "disabled ... | 9 | 18 | 674 | 2011-08-22T11:06:12.407 | api_errors | softwareengineering.stackexchange.com | |
554,535 | "Cannot allocate memory" Using composer to install composer using fork from laravel git | Whenever I try to install a new laravel project, I receive the following error: [CODE] Does anyone have any idea why this error may be occurring, I'm running the server on nginx. If any other details may be required, list them as a comment and i'll happily edit + update the post, thank you. | I am using scaleway.com server. I have RAM 2 GB. I also had this problem. I am using this command and this working for me [CODE] | 2 | 1 | 7,645 | 2013-11-12T20:02:39.373 | infrastructure | serverfault.com | |
646,786 | Different postfix relayhost based on system user? | How do I configure Postfix to send email through a different relayhost based the system user? The current setup has relayhost= set so all mail goes through that smtp server but I would like Postfix to send directly based on system user. I'm open to other options that would allow a script to in some way have Postfix ove... | I took a hint from the post Use different relay in postfix and used [CODE] to assign the proper transport for emails that I had inserted an X-Foo header into: [CODE] [CODE] was commented out (default) in [CODE] but it could've been anything and you'd use the [CODE] to override it | 3 | 1 | 1,516 | 2014-11-24T21:45:04.783 | infrastructure | serverfault.com | |
693,298 | Mysql crashed showing following errors. Is this a hack? | [CODE] | Add the following in your [CODE] [CODE] These two variables are not global so need to [CODE] after that If you want to block all connections to port 3306 (MySQL) and allow only those you want [CODE] where 1.1.1.1 is the IP address you want to add in whitelist | 0 | 0 | 1,426 | 2015-05-20T13:18:37.590 | database_errors | serverfault.com | |
41,416 | Database user specified as a definer | I have a view in my database. problem is below Error SQL query: [CODE] MySQL said: 1449 - The user specified as a definer ('lumicrm'@'%') does not exist i Google for a solution User is created for Host & not for Global. How to create the User for Global ???? | Long story short: You do not have the user [CODE] on the DB Server. Login to MySQL and run [CODE] Let's say you see the user [CODE] You have to create the user so that the view can be recognized. There are three(3) things you can try Try This #1 Login to MySQL as [CODE] and run this command [CODE] Given the output of t... | 1 | 2 | 23,753 | 2013-05-02T15:09:22.010 | database_errors | dba.stackexchange.com | |
224,035 | Incorrect syntax near 'Word, Another Word' | I'm at a loss on what to do. I'm trying to fix an old broken query that was messing something up. If I use the database2 script, it populates what I want. However, when used with the Update, it gives the syntax error. [CODE] error: Msg 102, Level 15, State 1, Line 9 Incorrect syntax near 'Word, Another Word'. | You have created a derived table, but didn't give it a name. So, after you final closing parentheses, you need to alias this derived table. Also, I don't know why you are doing the following, but didn't change them. I just found it odd. Returning the FullName column since you aren't using it Self joining to Database2 U... | -1 | 1 | 177 | 2018-12-03T19:00:40.577 | warehouse_errors | dba.stackexchange.com | |
755,206 | RabbitMQ memory consumed by Erlang writers, and nothing is paged to disk | I have a case where the total memory used by RabbitMQ is 6.2 GB, and 6.1 GB of which are utilized by Erlang writers. However, I can not find this size paged anywhere on the hard disk. what happens if RabbitMQ crashes? will I lose all data? Please check the below rabbitmqctl status [CODE] What happens when RabbitMQ fail... | "What happens when RabbitMQ fails or crashes, are messages in the queues get lost, or what?" It depends on what you told RabbitMQ. If you use durable queues and your publishers send persistent messages, then the risk of loosing data is small, because persistent messages are written to disk as soon as they reach durable... | 0 | 0 | 873 | 2016-02-10T09:25:33.340 | infrastructure | serverfault.com | |
14,702 | Dropping unique constraint on PostgreSQL table taking 10+ hours | We have a PostgreSQL database with a fairly large table (~50 million rows). The table has a unique constraint across several columns, each of which is indexed. For context, I recently deleted about half the rows in the table -- old data. Now I want to simply remove the multi-column unique constraint, so I executed this... | Step one - go into task manager, have a look and see if anything is actually happening. If you can't see a lot of cpu and/or disk bandwidth then it's not doing anything. Step two - check what PostgreSQL says is happening. There are two system views useful here: pg_stat_activity and pg_locks. See what's in both. The dat... | 8 | 9 | 11,072 | 2012-03-09T05:28:46.373 | data_quality | dba.stackexchange.com | |
932,744 | nginx location= doesn't work with regular expression | Here is my configurations. Could anyone tell me what is wrong with it? auth_basic doesn't work [CODE] but simultaneously this works: [CODE] What is the best way to deny access to [CODE] | (none): If no modifiers are present, the location is interpreted as a prefix match. This means that the location given will be matched against the beginning of the request URI to determine a match. =: If an equal sign is used, this block will be considered a match if the request URI exactly matches the location given. ... | 0 | 4 | 1,247 | 2018-09-26T12:18:48.827 | infrastructure | serverfault.com | |
83,946 | Different results between ImageDataGenerator and model.predict in Tensorflow | I am training a simple cnn using flow from directory with train and validation datasets. The dataset pattern are as follows, [CODE] I am using the following model structure, [CODE] and the generator looks as follows, [CODE] I fit the generator as follows, [CODE] and the training struggle to optimize initially but after... | I have found the answer. It lies with the way image is preprocessed before it is feeded on the prediction pipeline. Originally I used, [CODE] In which I used Opencv to preprocess the image. But I tried playing around with other libraries such as Pillow, skiimage imageio but nothing worked until i finally used tf.keras.... | 0 | 3 | 1,510 | 2020-10-13T11:37:54.180 | data_quality | datascience.stackexchange.com | |
57,225 | My.cnf with 64GB RAM | May the following my.cnf file be fine for a dedicated server with 64GB of RAM (on Debian)? I'm running just one website on the server and on high load data insert in some table takes centuries...it seems that the DB can't handle some table lock (50Mb tables, not so much). If it is fine, then i'll step to analyze every ... | A good tool to help you tune MySQL config is the Percona Configuration Wizard for MySQL . This asks you some questions about your system and your workload, and gives you some approximate tuning values to start with. Of course the term tuning suggests that further refinement may be beneficial, but this happens over time... | 3 | 10 | 35,324 | 2014-01-21T18:03:07.573 | warehouse_errors | dba.stackexchange.com | |
230,247 | Windows Server 2008 Standard running IIS using a web share from another machine | I have a resource (a directory) on a Windows Server 2008 RS machine that I need to use as a web share on a Windows Server 2008 Server Standard machine running IIS. I am having trouble finding the right permissions to set for the resource to make it available on the IIS machine. If I place the resource on the IIS machin... | The likely cause here is the app pool identity has insufficient rights, if you are using pass-through authentication. Robert Kaucher also makes a good point in his suggestion. A UNC path won't be ambiguous, so when setting up the share, you may need to use a UNC path along with an app pool identity that can properly ac... | 0 | 1 | 2,091 | 2011-02-02T16:49:23.857 | infrastructure | serverfault.com | |
837,964 | iptables block IP for x hours not working? | On my Linux server, I want to ban IPs that access certain ports for 24 hours using IPtables. For this, I use the following IPtables rules: [CODE] In the logs, I can verify that this works: [CODE] But then the logs also show that just over 2 hours later, the same IP again accesses my system. Rather than being blocked ri... | I have never tried using the recent module however I had a look at the man page for it (iptables-extensions(8)), and there are some additional parameters with defaults to consider.... [CODE] So the list of banned addresses is not unlimited ( which is a good thing). So... Did you have many IP's being added to the banlis... | 3 | 0 | 530 | 2017-03-13T13:10:26.023 | infrastructure | serverfault.com | |
237,381 | PHP file permissions | I just launched an ec2 server and put all the php code on the server and I need to change the permissions so that a user cant go to the site like [CODE] and see the list of php files....Do I need to change the permissions on the entire folder or each file or is there a recursive [CODE] command that will work ...I think... | If you are using Apache, then hiding things from being listed usually is handled in an .htaccess or the apache configuration , not with filesystem permissions. | 1 | 1 | 263 | 2011-02-18T17:47:03.903 | infrastructure | serverfault.com | |
804,099 | GlusterFS alternative for file upload website | I have a few file upload websites, with files ranging from hundreds of kilobytes to a few gigabytes. Currently I have all files in a distribute-replicate Gluster volume on a few servers. My biggest problem with Gluster is speed. For example I have a folder with ~80,000 images averaging 500KB each and it took me a coupl... | Any distributed filesystem will suffer when executing batch operations on large number of files: after all, it had to propagate all changes to a remote machine, and latency skyrocket compared to local host only. This can be especially noticeable when executing metadata-changing operations: not touching real data, they ... | 4 | 1 | 875 | 2016-09-19T22:31:33.823 | api_errors | serverfault.com | |
213,466 | Performance difference in accessing differrent columns in a Postgres Table | Created a table with 200 bigint column, 200 varchar column. (Postgres 10.4) [CODE] Inserted values only in pk,int1,int200 columns with some random data ( from generate series) and remaining columns are all null. The table has 1000000 rows. I found performance variance between accessing int1 and int200 column which is q... | The way the data is stored, PostreSQL doesn't know what offset to go to look at for the data for int200 column on any given row, without knowing the sizes of all previous columns for that row. So it has to loop through the null bitmap (at a minimum) of all earlier columns before it can know that most of them have zero ... | 3 | 2 | 331 | 2018-07-28T07:33:42.860 | api_errors | dba.stackexchange.com | |
977,836 | DM multipath along with local disk | I have one /storage partition which is created from /dev/sdc local disk which is in LVM, now i want to extend it. we have 1 disk free which is a multipath disk over iscsi. can i add this disk in the existing LVM? will there be any issue when server reboots? Thank you | can i add this disk in the existing LVM? Yes, you can add it as PV ( [CODE] ) to an existing VG ( [CODE] ). will there be any issue when server reboots? Normaly no. Multipath is initialized before LVM. But if you have the root LV on the VG that has the PV on iSCSI/multipath, you need to add iscsi and multipath to initr... | -1 | 1 | 225 | 2019-08-03T12:11:54.320 | infrastructure | serverfault.com | |
90,521 | Vanishing gradient problem | In a neural network, does gradient vanish during a great number epochs as well, rather that only vanishing through different layers? | Gradient vanishing means drastic decrease of gradients when backpropagating through many layers. This problem is also known for recurrent neural networks as they are mathematically equivalent to very deep networks. That is true that gradients decrease during training. However, that is not gradient vanishing. That is th... | 0 | 0 | 53 | 2021-03-11T15:01:56.190 | data_quality | datascience.stackexchange.com | |
686,718 | Apache configuration resulting in recursive /index.html | I'm using puppet to configure Apache, and have a problem. I'm trying to serve a simple front page, with links to 2 subpages for Kibana and Uchiwa. I'm trying to use [CODE] for kibana, and [CODE] as a redirect to Uchiwa. So far, the [CODE] URL works fine, redirecting nicely. The [CODE] URL ends up point me at [CODE] etc... | I've come back to this after lunch, and found the problem. I've since tweaked my config slightly to add a [CODE] block for the other folder ( [CODE] ), but I think the key change was this: [CODE] Changing the [CODE] to [CODE] ! Hope this helps future Googlers. | 0 | 0 | 665 | 2015-04-30T11:01:29.180 | pipeline_ops | serverfault.com | |
956,640 | IPSEC between an EC2 instance and another server with a public IP | I've been able to setup IPSEC successfully between two Hetzner machine, both of which had only public IP addresses. However, I've been unsuccessful in configuring IPSEC between an EC2 instance and a Hetzner machine, because the EC2 instance has a private IP which goes through some form of NAT-ing to get a public IP. I'... | As long as your Security Group and the local firewall on your Linux machine permit access for protocol ESP it should work. One problem I see in your setup is with the SPDs. The EC2 doesn't know about its Public IP and Hetzner doesn't know about its private IP. Also you've got [CODE] in the second SPD on Hetzner. You'll... | 2 | 1 | 1,316 | 2019-03-04T13:01:48.507 | infrastructure | serverfault.com | |
216,513 | Apache strange behaviour:"get" works, but "post" doesn't | Ok. I have a script that was supposed to post data to another web page. I use curl and I can request a page with "get" but not with "post". I wrote a python script that works from CLI. When I try to execute it on the server it works only for other pages on the server but not out of localhost. Sorry, because it sounds u... | Check your apache configuration for directive, may be POST method denied for some reasons | -1 | 1 | 430 | 2010-12-27T19:31:19.763 | infrastructure | serverfault.com | |
1,001,233 | How to allow a hostname reverse DNS in hosts.deny | I wish to BLOCK all [CODE] connection BUT one dynamic IP assigned to a [CODE] so I've put this in [CODE] : [CODE] This does not allow me to connect to SSH. Instead, if I place the IP resolved (a [CODE] confirms it) by that hostname, it works: [CODE] I've also tried with [CODE] or [CODE] in [CODE] , but it changes nothi... | The problem is most likely due to the fact that the ip address that you are connecting from reverses to xxx.yourisp.com, not subdomain.ddns.net. When you attempt to connect to sshd from your (dynamic) ip address, tcpwrappers does a reverse dns lookup on your ip address. If this resolves to xxx.yourisp.com, then it won'... | 0 | 1 | 2,091 | 2020-01-31T13:01:06.173 | infrastructure | serverfault.com | |
249,668 | Is there a MySQL character set and encoding that will allow for both emojis and accents? | I've got a database of terms that get added to by one group of users, and queried against by another. I was running into problems when people would query for an emoji in the database and my React app would throw an error (oddly a CORS error, but that's a different issue). I eventually solved this by changing my table's... | I was running into problems when people would query for an emoji in the database and my React app would throw an error What was the exact error message? What were the character set and collation of the column before you changed it to [CODE] and [CODE] ? In MySQL, collation can be set at many levels, including the clien... | 3 | 5 | 3,930 | 2019-09-26T11:24:48.447 | data_quality | dba.stackexchange.com | |
714,677 | Combine/consolidate entries in array | I have a script that takes a snapshot of AD groups and check against current AD state for membership changes. It adds psobject to an array and outputs a table to a html file. the problem is i want to combine the results in the groups so it doesn't repeat user1 remove from group1, user2 remove from group1. The current o... | Maybe you can use the Compare-Object function in powershell to check the two arrays. An example of the compare-object function is: [CODE] The results indicate a property value appears only in the Reference set (indicated by ) or in both objects (indicated by == when -IncludeEqual parameter is specified.) | 1 | 1 | 40 | 2015-08-17T12:43:16.937 | infrastructure | serverfault.com | |
345,689 | How to structure business layer logic (app with much complicated business layer logic, calculations etc.) | We are developing a [CODE] web application that uses [CODE] . We have separate layers: UI (HTML, CSS, js etc.) [CODE] - receives input [CODE] s from the UI and calls the appropriate endpoint in the Business Layer (for instance, [CODE] or [CODE] ) [CODE] - contains all business logic; doesn't save data into the DB direc... | You are asking the fundamental question of architecture: "I have a lot of logic...how do I structure it?" It is hard to answer such a general question in brief since numerous books have written about various aspects of this problem. But in short, you probably suffer from "God objects", and names like "XxxHelper" indica... | 6 | 3 | 4,001 | 2017-04-06T17:05:13.597 | api_errors | softwareengineering.stackexchange.com | |
928,541 | pgadmin4 : server won't start | I have this error message trying to start pgadmin4 web interface from the desktop helper on fedora 28/postgresql 10 : [CODE] Though, it appears that I can start it typing : [CODE] in the alt-F2 dialog. So I guess it is a permission issue but I have nothing relevant in the logs to elaborate on the matter. Any hint would... | I ran those instructions first about the system permissions : https://www.pgadmin.org/docs/pgadmin4/3.x/server_deployment.html and then came up with this pgadmin4.service as it seems that the desktop helper does not help at all : [CODE] This is the solution I found : it does run in the user environment and can be enabl... | 0 | 0 | 6,226 | 2018-08-29T14:21:55.107 | database_errors | serverfault.com | |
496,506 | How to wire two offices on two separate floors together | The company I work for is expanding to a new office on the same building but one floor below. I wondering how best to connect the two network together in order to have one single network. Upstairs we have all internal servers (NAS, domain, etc) and the endpoint for the Internet connection. Downstairs there will only be... | Cat6 wil give you 100 meter. 55 meter is the rating for using 10 Gb/s which your switches can't do anyway. But if you are worried about electrical interference (Cat6 is pretty resilient but you never know) fiber is certainly a fairly cheap option. All ProCurve 1910 models have at least 1 SFP port into which you can pla... | 4 | 3 | 3,921 | 2013-04-05T14:50:06.210 | infrastructure | serverfault.com | |
313,023 | nslookup returning secondary IP of a listener (different subnet) | I'm pretty confused about this issue. We noticed that we sometimes receive some errors from the app servers causing timeouts. after a lot of digging, we discovered that sometimes when using a listener that has a secondary IP from a different subnet, sometimes this is the IP returned to connect. we could prove that by r... | If you’re using the default cluster settings, [CODE] , SQL Server will register all listener IP address in DNS, not just the active one. As such, DNS will return all registered IP addresses of the listener during all lookup requests, not just the one of a specific subnet. If the client application is multi-subnet aware... | 0 | 4 | 1,231 | 2022-06-07T01:56:36.450 | database_errors | dba.stackexchange.com | |
1,097,531 | On Apache how to switch off DirectorySlash only for requests to a specific subdomain? | Served by Apache I'd like on one subdomain site of mine (say [CODE] ) that URLs without trailing slashes point directly (without external redirect) to the index file in the underlying folder. The subdomain requests are internally redirected to a sub-folder. All other URLS should work in the normal Apache way with exter... | By the sounds of it, your [CODE] subdomain maps to the same directory as the main domain and all other subdomains ( [CODE] and [CODE] , etc.) However, if all requests to the [CODE] subdomain are internally rewritten to the [CODE] subdirectory then you can presumably just create another [CODE] at [CODE] in which you set... | 1 | 1 | 256 | 2022-04-01T04:08:03.463 | infrastructure | serverfault.com | |
250,850 | PHP has encountered an Access Violation at 01BAB0EF | I was putting some css style for texts in a php file and after saving, I got this error: PHP has encountered an Access Violation at 01BAB0EF Even I deleted that php file but still I can't load my website!! what happened? | Contact your hosting provider, PHP shouldn't crash like this. Btw, is this a Win32 based host running PHP? Yuk. | 0 | 2 | 202 | 2011-03-23T14:43:06.287 | infrastructure | serverfault.com | |
562,042 | Iptables spoofing from 2 subnets | I have packets from 2 subnets going into my firewall eth1: 10.111.12.0/24 and 10.10.100.0/24 I set iptables rules like that: [CODE] But - the first rule doesnt allow to check the second one because 10.10.100.0/24 is NOT 10.111.12.0/24 and it is matching first rule. How to fix it ? | The easiest way to do that is to mark allowed packets and later drop all packets that are not marked: [CODE] You should consider that there might be other packets that you need/want to get through. | 3 | 2 | 138 | 2013-12-17T23:01:01.317 | infrastructure | serverfault.com | |
765,133 | Jupyter notebook SSL: WRONG_VERSION_NUMBER error only through Apache | I'm trying to set up a secured Jupyter notebook on my Apache 2.4.7 server. If there's a better, easier, or more secure way to do it, that'd be great. I know AuthType Basic doesn't really add much, I was just playing with Apache, and am including it here for completeness. When I set up an unsecure notebook through HTTP ... | Since the error is coming from Jupyter and not from Apache, it appears to be a problem with the communication between Apache and Jupyter. If Jupyter's websocket server is expecting encrypted connections (which it appears to be, since it's complaining) then instead of using the [CODE] scheme, you will need to use [CODE] | 0 | 1 | 3,372 | 2016-03-21T16:24:32.290 | infrastructure | serverfault.com | |
281,901 | is it possible to using index in unix datetime colum in MySQL 5.7 when using function | is it possible to using index in unix datetime colum in MySQL 5.7? I define my database table like this: [CODE] the [CODE] store unix timestamp,now this is my SQL: [CODE] but now the colum [CODE] contains function and could not using the index, is it possbible to using index, I have to add a column to store date like [... | using generate column and created a index on it: [CODE] then created index: [CODE] | 0 | 1 | 275 | 2020-12-21T02:21:21.987 | database_errors | dba.stackexchange.com | |
202,049 | Support for libprotobuf-c on Amazon RDS | I created a PostgreSQL 10 instance on Amazon RDS with the PostGIS 2.4 extension in my database enabled. I want to test the performance of Amazon RDS as a dynamic vector-tile server. This hinges on the ability to use the ST_AsMVT and ST_AsMVTGeom commands in the PostGIS enabled database. These functions require the [COD... | Just an update to Dennis' comment from the AWS thread, this is now possible. Quote from the thread : We just launched RDS PostgreSQL 10.5 which supports libprotobuf-c. https://aws.amazon.com/about-aws/whats-new/2018/10/rds-postgresql-supports-minor-versions/ The official release notes ( with emphasis added ): [...] Wit... | 5 | 7 | 900 | 2018-03-22T19:04:25.130 | database_errors | dba.stackexchange.com | |
105,287 | SQL Server: Time Series Table Design | I am creating a time series database that follows the table structure here: Storing intervals of time with no overlaps. The difference with my design is that the [CODE] column changes every time a user updates that particular record (you can actually see my question on his site at the bottom). Basically, I have a [CODE... | A foreign key can reference a unique constraint, not necessarily only a primary key, so if you want to be a purist, include [CODE] (and whatever else you need) in the parent table's unique constraint and use that to define the foreign key. | 1 | 4 | 1,433 | 2015-06-26T19:15:42.907 | data_quality | dba.stackexchange.com | |
713,634 | Ubuntu server console and SSH session freezes | I have Ubuntu server 14.04 installed on a virtual box VM and for some reason it has begun to freeze during login and after some commands. When I try to login from console it can hang for minutes after entering password and when I finally get in, that session can run smoothly for a short while but after some commands it... | Turns out that my problem was because of ldap being blocked by ufw. So every time I tried to authenticate with a username not present in /etc/passwd it would try to access a remote ldap database but since it was blocked it waited until timeout and hence did not prompt for password. When I tried to authenticate with a l... | 0 | 0 | 718 | 2015-08-12T14:23:34.583 | infrastructure | serverfault.com | |
443,557 | Ubuntu 12.04 Samba File Server timeout on large file | I am a beginner with servers. I checked the error logs for Samba and it appears that Samba is timing out when I transfer large files. I can successfully add PDFs for instance to my file server. However, I tried to add a large 1.2GB video file and it did not succeed. This is the error in the log: [CODE] Is there a way I... | After weeks I finally found it. There is a line in smb.conf that sets no delay on the connection. It is by default commented out. I merely uncomment the line and voila! This is the line: [CODE] it is by default commented out. If you are having an issue with this, uncomment that line in your smb.conf and restart samba. | 1 | 5 | 9,992 | 2012-10-30T00:55:41.790 | infrastructure | serverfault.com | |
219,107 | Exchange 2003 default permissions for ANONYMOUS LOGON and Everyone | ANONYMOUS LOGON and Everyone have the following top level permissions in our Exchange 2003 Server: Read Execute Read permissions List contents Read properties List objects Create public folder Create named properties in the information store Are these the "default" settings? In particular, are the "Read" and "Execute" ... | Those settings look correct. Anonymous and everyone need permission to be able to read those objects and doesn't necessarily give them any access to data. I believe exchange/ad best practices analyzer will identify large top level permissions issues such as these. | 1 | 0 | 494 | 2011-01-05T19:14:58.830 | infrastructure | serverfault.com | |
554,620 | Best practice to create large hardware VPN | I do have a task to connect 200 small offices to one central using hardware VPN. The server side is Dell Sonicwall NSA 3500 and the client side is DLink DSR 250n. As I dont have much experience on building such a big networks, I just did it as Ipsec-site-to-site connections just for 2 offices so far. So, I've got a que... | I don't know anything about that security appliance, but IPSEC-Site-to-Site looks good to me. If the offices access only the web based app, you might also consider to simply create firewall rules that allow traffic to the tomcat server only from the offices. That's only possible if every office has a static ip address.... | 0 | 0 | 98 | 2013-11-13T05:47:20.010 | api_errors | serverfault.com | |
137,239 | Missing / Orphan Indexes? | In the process of finding duplicate indexes, I've been using the following query to identify them: [CODE] From which I get an entry with the following data: [CODE] Too check that the index are actually duplicate, I manually see the columns involving each reported index, with this query: [CODE] But when I search for the... | [CODE] only contains the table name, not the schema name. The schema name is available in the column [CODE] . So you need to use [CODE] | 0 | 2 | 222 | 2016-05-02T15:28:30.803 | data_quality | dba.stackexchange.com | |
956,705 | Whitelisting google fonts apis on my firewall | I've got a machine behind a firewall (fortigate) that is only supposed to access a certain url, so, we whitelisted that url on the firewall and also the google dns servers: Every other traffic is forbidden. The problem is that said page has some css styles that call the google api for fonts: fonts.gstatic.com and fonts... | Yes, I believe you're missing two another: www.googleapis.com (auth for the API); themes.googleusercontent.com (URL of each font). Also, if the app uses the Webfont Loader, is also good to give access to the host: ajax.googleapis.com. Got it here: https://developers.google.com/fonts/docs/developer_api https://github.co... | 0 | 1 | 2,964 | 2019-03-04T19:29:51.020 | infrastructure | serverfault.com | |
633,257 | How to stop Apache from finding a filename from a URL path (without the extension) | I have a file [CODE] in my doc root. But I don't want [CODE] in my URL to direct to update.php (because I want [CODE] to be associated with a page in my CMS, Drupal 7) I know that Apache is "processing" [CODE] before Drupal gets to see it: I created a new empty folder test.dev on my local dev put a file in it called or... | The root cause is with the MultiViews directive http://httpd.apache.org/docs/2.4/mod/mod_negotiation.html#multiviews If the server receives a request for /some/dir/foo and /some/dir/foo does not exist, then the server reads the directory looking for all files named foo.*, and effectively fakes up a type map which names... | 1 | 2 | 2,317 | 2014-10-03T08:55:17.663 | infrastructure | serverfault.com | |
944,153 | gcloud compute ssh requires password even after using json key file for authentication | Hi Google cloud experts, I am trying to authenticate gcloud using json key and even doing everything as per docs it requires for password when I run [CODE] Here is snapshot of steps I performed. 1. Authorizing access to Google Cloud Platform with a service account [CODE] 2. Initializing the gcloud [CODE] 3. SSHing to g... | Root is not defined when using gcloud, so omit the user[root] for now. Before using [CODE] Make sure you are using the correct account by using [CODE] The * will show you the active account. Keep in mind that the account you are going to log in with will be a sudo user. | 0 | 0 | 2,343 | 2018-12-13T08:39:39.273 | api_errors | serverfault.com | |
167,609 | iptables: IP alias and port forwarding | I can't figure out iptables and I don't know very much about networking and I'm really hoping that someone out there can help me. I have a server with two ip addresses associated with it: 1.1.1.1 and 2.2.2.2 Running Ubuntu 10.04 Here is my ifconfig: [CODE] Everything works fine: when I type 1.1.1.1 or 2.2.2.2 into the ... | You're on the right track. You don't have to specify the "alias" input interface. From an iptables perspective the input interface is still eth0, even if the destination IP address is 2.2.2.2. Try this way instead: [CODE] That should do what you're looking for. Edit: You want "eth0" in that command-- not "eth0:0" (whic... | 1 | 11 | 24,528 | 2010-08-06T00:17:10.417 | api_errors | serverfault.com | |
280,266 | how can i get an accurate count based on max date when joining 3 tables when one of the join fields is many to 1? | So, I have 3 tables that I am attempting to get counts for based on a groupid, and a task code. There are a few issues I am having as some of the relationships are many to one, which I think is somehow inflating my counts. I will list my 3 tables with the pertinent attributes. task_table contains: task_code - would lik... | mmm based on your sample date your query is not wrong. but your expected results are wrong. [CODE] the group_id A76 is linked to the work table with sol_id 23,24 and 42; 23 and 24 are task_code A. 42 is task_code B. Y23 has two m_id that connect sol_id 45 and 83 to task code A and B. So the second output in the image i... | 0 | 0 | 74 | 2020-11-24T18:15:00.540 | warehouse_errors | dba.stackexchange.com | |
238,872 | Apache inflate application/ with mod_filter | I need to prevent pdf objects from being gzipped. Really, this only needs to take place if the request is from the Mozilla browser (but since I can't get something as seemingly simple as no-gzip for application/pdf, I figure it's wiser to start there). From looking at the apache documentation on mod_filter, I've got th... | It turns out there wasn't anything wrong with what I had. The very 1st line within the location tag was: [CODE] After removing that, everything worked correctly. | 2 | 1 | 1,102 | 2011-02-22T21:29:47.177 | database_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.