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
89,987
What is the advantage of a tensorflow.data.Dataset over a tensorflow.Tensor?
I have my own input data class. It has x and y as well as test and train values (1 Tensor for each combination). I noticed there is a Dataset class built in to TensorFlow. What is the advantage of this class over a regular Tensor? Is it mainly around handling large datasets / laziness? It doesn't appear to have feature...
The main advantage is in domains where you can't fit all of your data into memory. However, I've seen improvements in performance even in cases where I have all my data into memory. I think two reasons contribute to this: One is caching , where some operations (e.g. a mapping OP) will be cached and performed only in th...
6
6
414
2021-02-26T15:18:38.643
data_quality
datascience.stackexchange.com
27,618
Training Doc2Vec and Word2Vec at the same time
As far as I can tell the typical Doc2Vec implementation (e.g. Gensim) first trains the word vectors and afterwards the document vectors were the word vectors are fixed. If my goal is that conceptually similar vectors (regardless of whether they represent documents or words) are close to each other, then would it be bet...
You need to be careful with the assumptions you make about the doc2vec implementation. Here are some useful concepts: Word2vec has two different model implementations (Skip-gram and Continuous-bag-of-words) and Doc2vec has analogous PV-DM and CBOW models: Word2vec Continuous-bag-of-words ( CBOW ) Skip-gram Doc2vec (Par...
3
8
3,077
2018-02-08T17:19:58.883
data_quality
datascience.stackexchange.com
342,398
BASH Script - Syntax error in expression
I am running into an issue that I can't quite figure out. I have a BASH script which recurses through directories and compares the current date to the file-modified time of the file. If it is beyond a certain age, the file gets gzipped. I am receiving the following error: [CODE] The section of code that is running at t...
try [CODE] What you had was looking for a variable called "1324308130-1323116622" rather than trying to evaluate the expression.
1
1
2,285
2011-12-19T15:32:37.473
infrastructure
serverfault.com
44,640
Update performance: clustered versus covering index
I have a simple, 3-column table with about 50 million rows in it. This table gets about 5,000 inserts/updates per second, and perhaps 20 queries per second are executed against the table. The table looks like this: [CODE] To maximize the efficiency of my queries, I need two indexes. (Result Includes Execution Time) and...
Under the covers clustered and nonclustered indexes are the same. The clustered index just has the additional property that is is guaranteed to INCLUDE all columns. Therefore the data does not need to be maintained somewhere else. So, a clustered index and a nonclustered index that INCLUDEs all columns are virtually th...
3
4
4,364
2013-06-16T20:26:17.317
warehouse_errors
dba.stackexchange.com
519,480
iptables, allow access from certain MAC addresses
Presently, I limit which clients can access my server by using IP addresses via iptables, only approved IP addresses can connect. However, the problem with this is if a client is on a laptop and goes to a different location, they can no longer connect because the IP has changed. For a variety of reasons, iptables authe...
You can't do this because MAC addresses aren't available to you for connections that have traversed the internet. To do what you want it would be much safer to setup a VPN and only allow connections via that to your critical infrastructure. If you can't do that then you could try setting up some sort of two factor auth...
10
8
32,693
2013-06-28T22:47:42.217
api_errors
serverfault.com
159,988
How to select drawing system when requirements not yet known?
We're developping an application for 2D data processing and display. At the moment data is displayed by converting each point to a color depending on intensity, so in rather low level code. This works well. A new feature is displaying a grid and a bunch of lines that can be moved with the mouse on that image. As usual ...
Either way, you are going to need higher-level code. The question is who is better qualified to write it? Someone with almost no experience in the area or someone who makes a living writing libraries used by thousands of people? I'm not trying to be mean here, but they've already solved dozens of problems you aren't ev...
6
3
359
2012-08-08T12:00:53.263
database_errors
softwareengineering.stackexchange.com
42,026
how to handle firefox download popup in selenium
Code: [CODE] Windows popup which i am getting is: can anyone help me out with this issue??
You are missing one line for your setup: [CODE] Also I would check if the [CODE] is not missing proper path to disk (plain"Downloads" might not be enough and you should use full path to disk).
2
1
1,739
2020-01-03T05:37:50.490
data_quality
sqa.stackexchange.com
202,711
Wrong redirection : problem with vhost?
i want to access to http://admin.my-app.com It is supposed to point on web/ backend.php , but when i try to access via the URL, it redirects me to the index.php of my application. I don't know what i've done wrong. [CODE] And it takes me to : [CODE] and the .htaccess [CODE] Thank you ;)
Isn't the last [CODE] in your [CODE] setting it to [CODE] ?
0
0
271
2010-11-16T23:51:11.633
infrastructure
serverfault.com
411,783
How to reload nginx.conf through HTTP request?
I want to generate a list of IPs which nginx should block. This list should be updated through actions that are made on the webserver. Like adding a new IP or removing one. This means it creates the "firewall.conf" for nginx. The problem: nginx does not monitor changes in .conf-files, so I need to run "nginx reload". A...
This is surely not possible out of the box. Some ideas as to how you could do it: If you are able to send signals to the nginx process, you could try to send the HUP signal: [CODE] . Of course, this requires the POSIX functions in PHP. Write a program which listens for a [CODE] command on a named pipe and which reacts ...
-1
1
3,367
2012-07-27T09:10:54.507
infrastructure
serverfault.com
189,675
Partially-Unique Check Constraints
I have an old Access table which is being migrated to SQL Server, and in it there's a field called "LinkedID". This field was mostly unused until ~5 years ago, so for many historical records it is either null or defaulted to "00000000". However, going forward, we're wanting it to be set up that no duplicate values are ...
You can use a filtered unique index for this: [CODE] The condition ( [CODE] ) takes care of both requirements, i.e. rows with [CODE] or [CODE] are ignored and not stored in the index, so they are not checked for uniqueness.
6
11
1,402
2017-10-30T15:39:08.040
database_errors
dba.stackexchange.com
1,110,955
redirect http to https in nginx load balancer
we have a setup of nginx load balancer where we configure our servers. Now, the requirement came like all the dns that we are maintaining should be only allowed with https. Example: tempserver.com is dns that is pointed to this public lb and which inturn will be connected with the tomcat application. So, below is my co...
The preferred pattern to do HTTP to HTTPS redirect is as follows: [CODE] You need to remove [CODE] and the [CODE] statement from your current configuration when using this.
0
1
444
2022-09-17T13:38:39.510
infrastructure
serverfault.com
84,907
Binary + Neutral Classification
I have a dataset of posts for sentiment analysis that are labelled with -1 (negative), 1 (positive) or 0 (neutral). So I wonder how should I deal with that. These are my ideas: make a multiclass classifier : I tried with a random forest, and the results are pretty correct; however, I have a certain amount of negatives ...
Sentiment detection can be ambiguous & sometimes ill-defined. So only once you know your data is cleanly labeled, balanced & well pre-processed, I would then continue to re-modeling. Detecting neutrals via thresholding off from a binary classifier is interesting but won't give you much lift because neutrals aren't nece...
2
0
152
2020-11-03T16:10:25.510
data_quality
datascience.stackexchange.com
172,804
Oracle SQL Developer - Database Diff tables & constraints without table data
I know I can compare two Oracle schemas by using [CODE] -> [CODE] in Oracle SQL Develop. It will open the following wizard: Which will compare everything you've checked. The problem I'm currently facing is that I only want to compare the Schema (tables, constraints, etc.) itself. Everything except for the data inside t...
SQL Developer's Database Diff doesn't compare the data in your tables, only the table definitions. If you check 'Tables' it by default compare ALL tables. However, if in the proceeding wizard dialog page, you specify one or more tables, it will ONLY compare those tables. Your output report will look like this - note th...
1
2
5,652
2017-05-05T09:47:59.740
data_quality
dba.stackexchange.com
208,984
Specifying the IP address to be used when connecting to an instance
I have an application that was compiled with a hard-coded connection string (using the server's IP address '192.168.40.201' and not the server name) to an SQL Server. A backup of the database has been restored on a stand-alone machine with no working network adapter and I would wish to be able to connect to this machin...
Have a look at How to setup and use a SQL Server alias Excerpts below: Problem I have an application that has a specified database connection that I either can't or don't want to change. However, I need to move the database to a new server. How can I do this easily without breaking other things that maybe using this co...
0
2
2,125
2018-06-07T09:53:19.783
database_errors
dba.stackexchange.com
429,266
Kernel panic when bringing up DRBD resource
I'm trying to set up two machines synchonizing with DRBD. The storage is setup as follows: PV -> LVM -> DRBD -> CLVM -> GFS2. DRBD is set up in dual primary mode. The first server is set up and running fine in primary mode. The drives on the first server have data on them. I've set up the second server and I'm trying t...
Machine check exception is a hardware issue. You can use [CODE] to interpret it, if you can boot the system. The resolution is to replace the failing hardware. Since it looks like you're most likely leasing a server, contact the provider.
1
3
1,269
2012-09-17T22:42:25.910
infrastructure
serverfault.com
391,935
No TCP connections to hosts behind VPN server (SYN, SYN-ACK, but no ACK), UDP, ICMP works
I'm probably doing something incredibly stupid, but I just can't seem to figure out what. Here's what I'm trying to accomplish: I want remote users to be able to log into our network, so I set up a Windows 2008 Server as a VPN Server inside as a VM in XenCenter. Let's call him Benjamin. He's also doubling as a file ser...
I would start by taking a look at your masking. If the general hosts are in 172.17.0.0/16 and your VPN subnet is in 172.17.7.0/24 then it's entirely possible for there to be some uncertain connectivity situations. A general host in 172.17.0.0/16 when sending a packet to a VPN host in 172.17.7.0/24 will attempt to ARP f...
4
2
2,710
2012-05-23T17:25:17.057
infrastructure
serverfault.com
27,654
Ensure correct username when using pg_restore
I have just installed postgres 9.1.6 on a local Ubuntu server. Now I'm trying to restore a database dump from a database on Heroku. The local database is setup like this: [CODE] Now, when I try to restore the the dump I use the following command: [CODE] Now in psql with [CODE] to see ownerships I get the following: [CO...
If you want to create the plpgsql extension I believe you have to be Superuser. My recommendation is to make app_user temporarily a superuser and then revert this. Superusers also are treated as owners of everything. [CODE] run the restore, then when you are done [CODE] This should avoid any other permissions issues bu...
3
0
4,634
2012-10-24T09:24:54.167
database_errors
dba.stackexchange.com
166,882
Reconstruct a file from a TCP stream
I have a client and a server and a third box which sees all packets from the server to the client (but not the other way around). Now when the client requests a file from the server (over HTTP), the third box sees the response. I am trying to reconstruct the file there. I am using [CODE] to capture TCP datagrams and tr...
This turned out to be a problem with how I was removing the HTTP headers from the file. Once I fixed that, this worked perfectly fine.
0
0
2,276
2012-10-01T07:38:25.507
api_errors
softwareengineering.stackexchange.com
67,933
High model Accuracy and very low validation accuracy
I'm building a neural network model in python using Keras l for deep learning my data is having vital information , age and other health symptoms about 1385 individuals and the output label predict about the liver condition: output class Cirrhosis :362 Few Septa :332 Many Septa :355 Portal Fibrosis :336 I wrote a seque...
Your model probably overfits. This articles provides an easy to read intro to the topic. As a very first step I suggest to plot your learning curves and look for epochs with lower validation loss. Also, this helps to properly diagnose your model in terms of model capacity. Training a model for less epochs is one way to...
0
2
2,432
2020-02-12T02:30:54.420
data_quality
datascience.stackexchange.com
658,579
Setting the MemoryLimit of a user-created systemd scope using cgroups as user
Related: LImiting overall memory usage for child processes Is there a way for an unprivileged user, or for root to allow an unprivileged user, to create a systemd scope (or other control group managed by systemd) so that the memory usage of the scope is limited and that the limit is settable by the user? Or, why does t...
Ok, so the correct answer is that you cannot setup cgroup limits for user processes (at the time of writing this answer, anyway). Ref from systemd-devel mailing list : We simply do not support this right now. Unprivileged users do not get access to the cgroup properties of the various controllers right now, simply beca...
4
4
7,120
2015-01-10T10:58:34.587
infrastructure
serverfault.com
51,826
JMeter Integration With Azure Pipeline and after execution of test getting as directory not found
As Part of Jmeter Integration With Azure Pipeline and after execution of test getting as below errors: 1.Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer...
You're suffering from JMeter issue 5591 which was fixed 2 years ago. The solution is upgrading to JMeter 5.5 The alternative solution is downgrading to Java 8
0
0
66
2023-06-30T11:38:56.387
pipeline_ops
sqa.stackexchange.com
1,153,919
Best way to serve multiple WorPress sites -- Single server shared hosting
I am looking to move about 500 WordPress sites from their respective individual VMs to a single server for efficiency and cost savings .. That said -- On that single server I will have separated installs for each site. They will have their own respective directories and will only share a common [CODE] symlink as to kee...
I have worked at a managed hoster where we had thousands of WordPress vhosts on one Linux server/vm. But nowadays I would include a WAF into that to protect the sites on layer 7 level. I'm not sure what you exactly mean with putting them behind a cloudflare ip, but if you can put ddos protection and a waf using cloudfl...
0
1
113
2024-01-25T23:17:28.120
pipeline_ops
serverfault.com
444,007
Wrapper class for min/max clamping and validation
I have a lot of classes that have numeric values that are configurable by the customer during runtime and should be clamped between a min and a maximum value. The value changes should also be logged. An example of this is given below: [CODE] As the number of values grow, you can see this has me writing boilerplate code...
Reusability As the number of values grow, you can see this has me writing boilerplate code and it's easy to make copy/paste errors. I could make a Visual Studio snippet for this, but I was wondering if it would be a good solution if I would refactor this repetition into a class, 100% the right call to make. Repetition ...
1
5
128
2023-02-16T17:03:22.060
data_quality
softwareengineering.stackexchange.com
173,295
Data Warehouse - DB2 to SQL Server: how & what impacts on ETL?
I'm working towards migrating an IBM DB2 database to SQL Server, however the DB2 database sits in a Data Warehouse environment. As I am very new to Data Warehousing, DB2 and DB Migration between different types of databases, I would like to ask about how to best approach this and understand what components are involved...
One thing is hardware resources. The current server will use a certain amount of memory, CPU and IO to do its job. For a 1TB database this is likely to be non-trivial. If you move that work to a new server it is still going to need (more-or-less) the same amount of memory, CPU and IOPS. If the new server is already hos...
2
3
651
2017-05-11T08:40:16.253
data_quality
dba.stackexchange.com
708,619
NFS share not connecting over ssh tunnel on Mac OsX, it works on all other devices
I've been searching for a while now to try and find a solution but I finally gave up. I have a ubuntu server running an nfs share. I set it up so that you have to connect to it using ssh. which is awesome. the problem is that I can connect to it from any other linux machine without issues, but this Mac is kicking my re...
SO, this is what ended up working for me after countless hours trying to figure this thing out: I knew everything was working fine on the erver side since I was ale to access the share from other linux computers, the problem was accessing it on MacOsx. so, after looking around for a while I found Fuse for Osx and the S...
1
0
1,112
2015-07-26T18:16:15.243
api_errors
serverfault.com
17,777
Scala RDD operation
I am new in scala. I have a csv file stored in hdfs. I am reading that file in scala using [CODE] Here is a small sample of data sales. a is the customerid, b-transanctionid, c-itemid, d-itemprice. [CODE] I have to perform the following operation on it. Apply some discount on each item, on the column d(itemprice) suppo...
For the first you can do as follow : [CODE] I'm not sure to understand the second, this will gives you the min and max per c-itemID [CODE] Hope that's what you need.
0
1
1,779
2017-03-22T20:15:59.880
hadoop_errors
datascience.stackexchange.com
119,713
Relax Linux - it's just me! (filesystem permissions)
One of my favorite things about Linux is also the most annoying - file system permissions. In production machines and web servers I love how everything is so secure and locked down - but on development machines it really slows me down. I'll give one example out of the many that I discover weekly. Like most people, I du...
[CODE] sets the default permissions for the user creating files. This is set in the shell environment. For bash system wide, that's [CODE] . Or, you can set it for the user in [CODE] or [CODE] depending on how the shell is executed.
3
4
661
2010-03-05T21:19:31.537
infrastructure
serverfault.com
183,743
Dilemma of QA vs. iterations
In my company, we successfully working with agile practices - but without using iterations. The main reason is that we can't find a clean way to fit in QA in an iteration cycle. We understand QA as an extra bit of verification to a certain build (release candidate) before this build gets deployed to the customer. The p...
We understand QA as an extra bit of verification to a certain build (release candidate) before this build gets deployed to the customer. There is nothing inherently incompatible between this form of QA and iteration-based methodologies like Scrum. Within Scrum, the team delivers a deliverable on an X-weekly cycle it it...
17
10
2,783
2013-01-15T23:55:08.143
api_errors
softwareengineering.stackexchange.com
880,444
bind zone file error -- unexpected end of line / input
I'm sure I'm doing a stupid here ... but I've stared at it too many hours. Can someone see what's wrong with this zone file for bind9 on a Fedora-family server? (actually its the AWS distro, but that appears to be Fedora-based) The error messages are: [CODE] And the zone file is: [CODE] Thanks!
On line 1, you've typed "@ttl 38400". Instead of using the '@' character, you should use the '$' character. The line should read, "$ttl 38400". The '@' character is a reference to the domain. For example, it would be valid to type: [CODE] instead of [CODE]
2
2
13,806
2017-10-26T14:20:31.887
infrastructure
serverfault.com
181,575
cannot generate sspi - None of Solution worked!
I am receiving "cannot generate sspi" error when I try to connect a sql instance remotely. I suspected the issue might be with spn and verified that spn was registered properly on the service account(confirmed the same with AD team as well). Also tried to get the server removed from domain and rejoined. The issue still...
Having no SPN does not cause this error. Having an invalid SPN does. It's not enough to make sure an SPN exists, you have to make sure it is owned by the SQL Server service account and that it is configured correctly. Follow the advice I blogged here: http://sqlsoldier.net/wp/sqlserver/advanced-troubleshooting-week-at-...
0
1
868
2017-07-24T06:55:02.627
warehouse_errors
dba.stackexchange.com
842,794
Office365 PowerShell issues with DateTime variables
I have the following very simple PowerShell snippet that just won't work. The following works [CODE] While the following does not work [CODE] Even if I replace the [CODE] and [CODE] with various formats such as [CODE] There is no error, just no results returned, however I've used [CODE] patterns that I know should retu...
In your script, you are currently using [CODE] Because in this case the values are string of characters, Windows PowerShell will automatically use the [CODE] data type to store the value, while [CODE] [CODE] and [CODE] only take [CODE] type variables. You can set the correct type variable by using [CODE] like this: [CO...
1
2
932
2017-04-05T15:52:50.117
infrastructure
serverfault.com
425,302
C++: Is a pointer to a vector going to cause memory issues?
I started to write a function which had a pointer to a vector as a parameter so that it could modify that vector to output results (as the actual return value was an error code), when I started to think about the memory behind that. Edit: Adding a new example here to make this clearer - I think I mostly have the idea f...
No problems luckily. This code is safe. When calling “new”, a range of bytes is reserved on the heap memory. The size of that range depends on the object type and is known at compile time. That size can not grow or shrink, until you call delete, and you can count on that pointer value not to change (until you call dele...
1
6
9,253
2021-04-10T02:28:47.053
api_errors
softwareengineering.stackexchange.com
782,680
Logon failure: the user has not been granted the requested logon type at this computer
I have Windows Server 2012 R2 system with Active Directory installed on it and using this computer for local development (Microsoft SharePoint). What i wanted to do is to open the local Internet Explorer on this machine to run as a different user. I have created a simple user in the AD and i am not able to run as this ...
It means what it says and says what it means. Standard users can not normally and should not normally log on to the desktop of an Active Directory Domain Controller. You will need to create a group policy that allows users to 'log on locally' (IIRC, disables "Deny log on locally) for DCs and apply it to the user. The b...
0
2
5,042
2016-06-08T11:32:34.547
infrastructure
serverfault.com
254,573
Postgres 12 Scalability using table Partitioning and Foreign Data Wrappers
I have looked through the archives and I cant find any discussions around the following topic. I have a fairly in depth question that I would appreciate some guidance with. Current environment Current Postgres Version: 10 Os: Ubuntu 14:04 (Soon to upgrade to 18.04) Harddrive has 2.3 TB max space. (Raid 10 SSD's) Curren...
Currently cloud based solution is not an option due to costs and complexity At the scale you are talking about, costs and complexity are not optional. Don't rule out cloud due to something you can't avoid anyway. Servers are hosted at an offsite DC and the max possible disk size we can achieve using SSD's in a Raid 10 ...
-1
1
389
2019-12-02T16:51:17.113
warehouse_errors
dba.stackexchange.com
6,863
How do I view .csv files in quicklook
How can I set up an OS X install so that .csv files are viewed in quicklook just as if they were .txt (plain text) files? At the moment they just show up as a generic blank document unless you manually change the extension to .txt. I did find this post which covers the same issues and offers some thoughts, but never re...
Since I have many CSV files, I decided that it's time for a real Plugin for these. Maybe someone else finds this useful, it's OSS: http://code.google.com/p/quicklook-csv/
3
2
3,495
2009-05-10T22:30:41.733
infrastructure
serverfault.com
250,410
How to improve performance for table JOINS involving millions of rows
I am dealing with a performance issue for a very simple structure involving simple queries. Consider two tables called TBL01 and TBL02. TBL01 has a master-detail relationship with TBL02. The primary key for TBL01 is called CONFIGURATION_ID. TBL02 has CONFIGURATION_ID as a foreign key to TBL01 which is also indexed. TBL...
What you described is normal behaviour. [CODE] Here the database performs the join for the whole resultset with a HASH JOIN. By default, the optimizer generates a plan to return all rows from a query, which is configured with the [CODE] parameter. [CODE] Your query says: return all rows from TBL1 and TBL2 that match on...
0
2
3,035
2019-10-07T08:24:23.073
database_errors
dba.stackexchange.com
489,982
Method to drop 50% packets of the total
On my machine I want that only 50% packets will receive. I am working on centOS 5.5. For that I searched on net. I got IPtables. I used random patch of IPtables. Command [CODE] Output [CODE] But above shows that that library is missing. Then, How can I drop 50 % packets of the total. Please correct my above method or s...
CentOS 5.5 does neither have the ipt_random nor the ipt_statistic modules preinstalled. You might revert to the CentosALT repository (excuse my Russian) and use the readily compiled statistic module from there: [CODE] and running [CODE] should yield the rule you want. Note from the Netem documentation: Caveats When los...
5
7
11,786
2013-03-21T10:19:58.290
infrastructure
serverfault.com
691,294
Should I enable automatic security updates on a Ubuntu server?
I can't seem to find an agreed answer on this anywhere, so I figured I'd ask it myself. I have five Ubuntu servers running either 12.04 or 14.04, should I enable automatic security updates on these using [CODE] ? Or should I just run manual updates every month? By this I mean is it safe/could enabling these lead to any...
It depends on what your machine does ultimately. Does it run mission critical applications that can not crash EVER? Probably not the best for auto updates then. Is it sitting on the egress point of your network? probably a good candidate. It comes down to weighing security vs stability and finding what your acceptable ...
8
4
5,441
2015-05-12T00:22:12.643
infrastructure
serverfault.com
385,437
How are settings structured when they can be configured in diffferent ways?
Suppose of this question the following: I'm in full control of this project I'm writing a media player Obviously, a media player will allow a user to adjust the volume, so I might have a class that looks like this: [CODE] My media player will also allow you to take screenshots of current video, so I might have a class ...
"Settings" are a classic cross-cutting concern similar to logging, caching etc. The simplest way to handle settings is to treat it as a singleton and have your [CODE] and [CODE] classes directly interact with the settings class. The general idea is to decouple the in-memory representation of settings (which could be a ...
4
2
109
2019-01-13T18:25:46.467
api_errors
softwareengineering.stackexchange.com
44,730
Python encode piano notes in 88 bits - int too large to convert to C long
The piano keyboard has 88 keys: I would like to encode one note or one chord in 88 bit array. I do this, for example: [CODE] is [CODE] Next I convert this number to decimal. When I have chord the final number is really big. The problem is when I put this big number into array from NumPy I gets: [CODE] My point is to fe...
That seems like a bad way to encode the information. A C chord and a C7 chord would be very different numbers even though they are similar conceptually. I would take your idea, but instead of smashing the information into a single int, make your input a binary vector of length 88 created in the way you describe. In thi...
1
3
541
2019-01-28T19:19:04.927
data_quality
datascience.stackexchange.com
898,001
Error in named configuration
i'm currently studying DNS and have run in to the following errors in my centos6 VM. this is the tut i'm following tutorial [CODE] here is my fwd.example.tv file: [CODE] here is my rev.example.tv file: [CODE] here is my /etc/named.conf file: [CODE]
Use [CODE] and [CODE] to check your configuration and zonefiles. Spoiler alert: [CODE] is not valid syntax, it must read [CODE] .
1
2
4,491
2018-02-20T11:32:14.317
infrastructure
serverfault.com
13,377
Is there a more helpful way to detect lock acquire/release stats in SQL Profiler?
Got a few deadlocks happening on our live server, i know, it sucks right. Anyway, i'm trying to figure out how to see what SQL code is causing the locks (or holding it for too long). I've added all the Locks events (acquired, deadlock, escalation, released, timeout, etc), but all i see is a bombardment of acquired/rele...
Would that actually cause a table lock on the entire table, even though i'm only selecting certain rows into a table variable? Lock escalation. If your 'select' is not ... selective, if it has to scan large portions of a table then the engine may escalate to table locks. See Lock Escalation (Database Engine) . I can se...
9
14
5,551
2012-02-16T04:28:31.870
database_errors
dba.stackexchange.com
260,023
Unable to attach SQL Server database with shared folder in docker on Linux
The problem I'm having is that my SQL Server 2017 Linux container is not able to read my database files. I guess it has something to do with permissions and I'm sure I've overlooked something but I can't fugure it out. I have created a clone with the PowerShell module called dbaclone. This module creates and attaches a...
I figured out the problem with shares. One thing I did was remove the share in VMWare because for some reason, the mount with [CODE] did not work well with SQL Server. It just could not get the right privileges even if I tried setting them with chmod. Instead I installed [CODE] and mounted the share as [CODE] This moun...
0
1
984
2020-02-19T12:11:57.170
pipeline_ops
dba.stackexchange.com
623,016
Configure clients to navigate through specific wan. Pfsense
I have a machine with a pfsense running. It is configured with three ethernet cards. LAN 192.168.2.1/21 WAN1 200.41.X.2/24 WAN2 200.41.X.3/24 ISP Gateway 200.41.X.1 This is a connection with 5 different IP addresses. WAN1 and WAN2 are directly connected to my ISP router. I need a way to configure some clients navigatin...
It's quite simple: just create a firewall rule on your LAN interface that matches the traffic desired (by client IP, perhaps), and then expand the "Gateway" section of "Advanced Features" at the bottom of the rule creation page and select your desired gateway for that traffic. This technique is called "policy routing",...
2
3
10,403
2014-08-21T10:29:05.203
infrastructure
serverfault.com
970,747
Apche http mod_rewrite and HTTPS
I have two domains [CODE] and [CODE] . I want to redirect [CODE] to [CODE] sending a [CODE] response code and forcing to use https. All works fine using HTTP, but it fails with HTTPS. i.e. if I enter [CODE] address in browser changes to [CODE] . But if I enter [CODE] nothing changes and navigation proceeds using [CODE]...
[CODE] It's not clear why these directives would not redirect [CODE] . However, it's not strictly correct and can be immediately simplified. For instance, it certainly won't redirect [CODE] as you are explicitly checking for [CODE] (an exact match) only (this also applies to the port 80 vHost). You should check that it...
-1
2
171
2019-06-09T21:38:19.197
infrastructure
serverfault.com
757,295
IP Address issue on Iinux vm and vpn
I think this is the right place to ask this question. so my current problem is that we have a virtual machine and a vpn. Our vm is a linux server and our vpn is a rpi. Our vm is using a 10.x.x.x ip address. We connect that vm to a different vpn (using hamachi) that is also on a 10.x.x.x ip address. My problem is the vp...
The basics of how a VPN works, IP addressing and routing are key. Your VPN is probably made up of IPSec and a tunneling protocol, probably L2TP, https://en.wikipedia.org/wiki/Layer_2_Tunneling_Protocol . If you have a tunnel interface you would have entries in your routing table to match. Linux can't route VPN traffic ...
0
0
44
2016-02-15T13:29:14.970
infrastructure
serverfault.com
106,474
Grant execute on specific type in Oracle
I have created a package and defined a type for collections as follows: [CODE] I have a user that has to call this function but can't because apparently they don't have the permission to execute [CODE] collection. I could solve it by [CODE] but I am bound by security protocols that says no user has to have access to an...
You need to grant [CODE] on package itself. If security is your main concern you may create a new package that has just types, but you cannot specify that a given user can access only some objects defined in package specification - either all or none.
1
2
6,182
2015-07-09T14:54:54.430
database_errors
dba.stackexchange.com
139,128
How does Checkpoint know which point to recover from in PostgreSQL?
I'm trying to better understand Checkpoint internals, specifically in PostgreSQL. My current understanding is that Crash Recovery will always start from the latest REDO location that is marked when a Checkpoint starts. Data in all WAL records before the REDO location are guaranteed to be on disk (in data files), and th...
How is the REDO location determined exactly. When a Checkpoint starts, does it literally say "REDO location is the current WAL record + 1"? In essence, yes. Exactly, no. There is code in there about rounding up for cases where the record will not fit in the remainder of the log file and other corner cases. To get an ex...
2
3
1,414
2016-05-20T15:52:56.600
database_errors
dba.stackexchange.com
106,189
Twitter Sentiment Analysis: problem in predicting
I am going to do Sentiment Analysis over some tweets. The goal is to find out which post is with and which one is against a specific topic(which tweet is saying this product is good and which on is saying that is not good). I have about 6000 tweets for each Positive, Negative and Neutral. I have tested some models like...
Did you try Convolutional Neural Networks? Even though, they were introduced for computer vision, they proved to be effective for sentiment analysis as well. You can use this tutorial on building a CNN for sentiment analysis from scratch, if you need.
1
1
55
2021-12-16T14:17:19.740
data_quality
datascience.stackexchange.com
878,657
Configure Nginx as reverse proxy with upstream SSL using server_name
I facing trouble using Nginx reverse proxy. I have a server on a private network that provide the following website: a.example.com : 10.32.58.01 (internal DNS resolution) b.other.com : 10.32.58.01 (internal DNS resolution) I created a Nginx reverse proxy with give access to theses two websites. This reverse proxy have ...
Try adding this in your server config: [CODE] This sets the verification depth in the proxied HTTPS server certificates chain. source : nginx_http_proxy_module
3
3
21,763
2017-10-16T10:18:41.957
api_errors
serverfault.com
517,155
install CouchDB without a package manager
I have the ability to shell into a Linux (RHEL6) server, and manage mostly everything, but I don't have root user abilities, so I can't use YUM or any of the available package managers on the box. Due to some red tape, I've been told if I can get CouchDB installed to just a specific context root, I can then start it up...
I would try the following (sorry, a lot of steps) Get yourself a Linux desktop in a VM, VirtualBox is free Since your server is Redhat, you might be able to skip base Linux install using a ready image Install GIT Clone the build-couchdb project and follow the make instructions on the project page As a result you have a...
0
1
543
2013-06-20T05:23:19.287
infrastructure
serverfault.com
417,851
Router: WRT54GL vs. Raspberry Pi
For routing and firewalling between 4 L2 networks, I currently use a WRT54GL ( without using the WIFI). There are 4 networks routed which come in by VLAN from a managed switch, so a only a single Ethernet plug is needed. This solution works great: It is cheap, low-power, easy to add hot-standby devices (because it is c...
Not sure about Raspberry but I know I run DD-WRT on my WRT54Gs at home at it works like a champ. I've got OpenVPN running on it and the performance is damn good considering my crappy Time Warner line at home it connects over. Either way they have done a good job at keeping the footprint down in size and still providing...
1
1
1,648
2012-08-15T16:15:50.493
infrastructure
serverfault.com
1,131,974
ssh_config Bad Configuration Option Error
Please help. I've read so many topics of not-quite-the-same problem and none of them have guided me to my answer. When trying to connect to a server using any FTP client, I get this error: [CODE] I've enclosed a screenshot of my ssh_config file. What do I need to change and how do I change it? For context, I'm running ...
According to the error message the problem is in line 2. Line 2 starts with [CODE] . It is missing the [CODE] character to mark it as a comment.
-2
1
677
2023-05-26T05:50:05.667
infrastructure
serverfault.com
274,279
RDS MySQL top CPU queries
I'd like to know if there is any way to get the top queries in my instance per CPU. I would see which query has more impact in my instance based on CPU usage. Anyone have any idea if it possible in MySQL like SQL Server? How can I get in real-time an event on MySQL which is reading million of lines, the information whi...
The problem was solved using Idera Real-Time : Real-Time continuously executes a bunch of queries on a server and fetches information on the top queries, tables, databases, user, hosts, queries that are locked, queries that are locking, etc. Since the information is retrieved in real time, you get to see what your serv...
-1
1
388
2020-08-25T01:12:01.220
database_errors
dba.stackexchange.com
98,436
Why can't I access Tomcat externally?
We hire a Virtual MS Server 2008 machine from a hosting company. I say this because maybe it's got a bunch of extra settings that aren't the "vanilla" 2008 settings. Anyway, I installed a default installation of Tomcat 6.0, and have got it running all good on the server. I can access it via localhost:8080, or xxx.xxx.x...
You have to tell the [CODE] in the [CODE] file that you want to use it on every address not only on [CODE] by changing the [CODE] attribute's value to [CODE] [CODE] Shutdown and startup the tomcat after that See also: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
5
10
77,193
2009-12-31T04:36:51.610
infrastructure
serverfault.com
314,313
Is it possible to set Audit_trail parameter to both DB and OS in Oracle database
In Oracle database ,we can direct audit records to either db , os or in xml file by using the below command: [CODE] But is it possible to direct audit records to both db and os(both) like the below command which results in error: [CODE]
https://docs.oracle.com/en/database/oracle/oracle-database/12.2/refrn/AUDIT_TRAIL.html Possible values: none os db db, extended xml xml, extended More details can be found on the above link.
0
0
2,078
2022-07-12T11:56:33.467
database_errors
dba.stackexchange.com
166,287
mariadb server optimization for a db of 6GB size
I have a database I am trying to configure but I am struggling to get the settings right. I keep changing the settings but I always get the same slow performance. the mysql database has about 50 tables 2 of the tables have about 10.000.000 rows each. total size of the database is 6GB. Of those 6GB about 3GB are indexes...
This is really bad: [CODE] It should not be more than about 50M How much RAM do you have; this should not be more than about 1%: [CODE] This is not bad, but most people do just fine with 8M; let's compromise at 16M... [CODE] The main setting that you should tune is [CODE] ; it should be up to about 70% of RAM (so, abou...
0
1
1,605
2017-03-06T01:51:57.063
database_errors
dba.stackexchange.com
19,960
How do you load a data file into a specific field?
How can I load data in a text file into a specific field. It's a 30 line log file from some copy operations; nothing fancy. I just want to store it as large text or a blob. The examples I am able to find are all for loading a text file into a table. Here's what my DB looks like: [CODE] So I just want to insert the text...
Since you are looking to INSERT an entire file into a single column. You need the LOAD_FILE function: [CODE] So that you can see just how LOAD_FILE function works, try this: [CODE] You should be able to see your my.cnf loaded into a variable Here is a sample run [CODE] Give it a Try !!! Be careful with this because som...
6
7
15,496
2012-06-26T15:41:41.267
warehouse_errors
dba.stackexchange.com
934,009
SPF and DKIM configuration Ubuntu 18.04 fails
I have been following this tutorial from DigitalOcean . I have followed every detail but nothing seems to work as expected. Assuming that my FQDN is the following: mydomain.com. Here are my details: SPF (DNS): [CODE] OUTPUT: [CODE] TESTING: [CODE] EMAIL RECEIVED OUTPUT: [CODE] Notice: Using Postfix as MTA for my mail s...
Your SPF record of [CODE] says "literally no server on the internet can send mail on this domain's behalf". All mail will fail. Your tutorial links to a separate tutorial on setting up an SPF record .
-1
2
1,479
2018-10-04T16:22:10.713
infrastructure
serverfault.com
447,454
Adding varnish and memcached to an running single server web site
Current set up; I have a single dedicated server running a web site (it's a lamp stack forum) OS : CentOS CPU : Dual 3.2Ghz Quad-core Xeons RAM : 40GBs (10x4GB DIMMs) Storage : Software RAID1 with 2x 7.2k SATAII 500GB HDD The forum MySQL DB is around 10GBs The web root is around 1.5GBs (mostly user uploaded pictures) I...
It depends on what kind of website you're running and what kind of software you're using on this server. If there're many requests for static content then varnish/nginx can really help reduce the use of system resources (CPU/RAM). If it's possible to cache DB queries then memcached can help as well (assuming you want t...
0
1
264
2012-11-10T23:13:46.903
database_errors
serverfault.com
212,239
dockerized postgresql listing no clusters
I'm upgrading an existing dockerized postgres:9.6 to 10. There are plenty of good Q/As on DBA and SO that go the path of [CODE] , but it is not working for me. When I start a vanilla pg:10 instance, whether I mount the old volume or not, [CODE] is empty. [CODE] Connections work: [CODE] But clusters are not found: [CODE...
(This is a weak answer, and I'll happily consider other answers if offered.) Ultimately, instead of trying to migrate the pg-way, I did it manually with a raw dump of the data, started a new instance, and reloaded/reconfigured from scratch. This involved shifting from the [CODE] image (that, as of this writing, has not...
1
1
900
2018-07-15T05:17:58.517
database_errors
dba.stackexchange.com
318,486
WMI through 2 firewalls to Windows 2008
I have a custom WMI application. It works wonderfully on a number of servers (windows 2003, 2008). However, some of our servers are behind another firewall. I have followed http://msdn.microsoft.com/en-us/library/windows/desktop/bb219447%28v=vs.85%29.aspx and have the permissions the same as the other 2008 machines. We...
You should try your hand at Network Monitor and install it on the computer you are running the WMI from. You should see it attempt to connect to the remote server so you can first validate it is trying to connect on 24158. You should see connections out and data coming back on those two ports if you have both sides con...
1
1
2,487
2011-10-04T20:30:03.693
infrastructure
serverfault.com
481,099
HAProxy check port 443
Is it possible to get HAProxy to health check an SSL / port 443 end point? The [CODE] in the config below fails the health check HAProxy config below [CODE]
I believe [CODE] and [CODE] are 2 different kinds of checks, but HAProxy will only allow you to use one at a time. You should choose [CODE] to just check that SSL is there, or use the [CODE] to check that particular URI, but not both.
5
2
9,044
2013-02-21T13:57:24.100
infrastructure
serverfault.com
516,989
Windows File Permissions and Attributes
I'm somewhat confused about the whole Windows file security scheme. I come from a unix background, so I don't fully understand the relationship between file permissions/security settings and the attributes; specifically read-only, that a file can have. For example, if I log in as an administrator into my box and I have...
File permissions dictate what access you have to a file - just like it sounds. Full control lets you create, delete, append, change permissions, change attributes, etc. Files and folders can have additional attributes, much like files on most *nix filesystems. "Hidden" comes to mind as an example of this on both platfo...
18
16
10,854
2013-06-19T14:51:31.527
infrastructure
serverfault.com
394,089
Speeding Up Search On Ubuntu File Server Accessed Through Windows
I run an Ubuntu box as a media server, which I use to either share files (copy and paste off of the network drive), or stream to my computer (which runs Win7), or to my xbox. I have a lot of files on there, especially music. Currently when I'm searching for a file, I just use Windows' search, which can be quite slow. I...
Without specific details, it's hard to say. To speed up Windows Search, you could add an 'index location' of a mapped drive, but the Microsoft support/advice on this is that you probably shouldn't use a huge index. In terms of indexing files, it would depend on your ultimate purpose. If you're looking to share the musi...
0
0
1,490
2012-05-30T18:46:59.060
infrastructure
serverfault.com
134,088
ORA-01019 error only as an administrator
I'm having a strange problem. I've installed the Oracle 10g client on a terminal server running Windows Server 2008R2. When I try to connect to Oracle, using, say, Toad, I receive the error "ORA-01019 unable to allocate memory in the user side". But this only happens if I'm logged in as an administrator. If I connect a...
Does running the terminal server client in console mode change anything? Try the following command: [CODE]
5
1
8,186
2010-04-19T22:08:43.007
database_errors
serverfault.com
120,276
How are SQL Server CALs counted?
Possible Duplicate: Can you help me with my software licensing question? Running a SQL Server, as far as I understand it, you need one CAL for every user who connects to the database server. But what happens if the only computer which is accessing the SQL Server is the server running your business layer? If, for exampl...
You need CAL's for every user of the business logic server, even though there is no direct connection between them and the SQL server. Microsoft use the term "multiplexing" for the scenario you describe. This is for SQL 2005 but I don't think it is any different for other versions: A CAL is required for each distinct d...
14
15
115,811
2010-03-08T10:37:11.470
data_quality
serverfault.com
464,196
Possible to supply two different configurations on the same physical network, so that they are selectable as 2 alternatives in NetworkManager?
Is it possible to supply two different network configurations (say, by two DHCP servers), so that they are selectable as 2 alternative wired connections in NetworkManager (GNU/Linux)? The motivation for this question was explained at https://serverfault.com/questions/463885/two-different-dhcp-configurations-selectable-...
I'm not sure I understand the purpose... The purpose of DHCP is to eliminate client-side configuration, right? That said, you can create a second configuration with [CODE] unchecked in NetworkManager, or [CODE] in the interface configuration file. ( [CODE] ) It becomes selectable in the [CODE] dropdown. If you want non...
-1
1
62
2013-01-08T21:50:32.980
infrastructure
serverfault.com
206,160
Restarting hot_standby replication when the *slave* fails
Context: master-slave replication on Postgres 9.4, slave died a couple of weeks ago: the slave copied a WAL-File from the master, told the master that the file is copied, the master deleted the wal-file, the slave tried to play the corrupt wal-file, found that the file is corrupt, and gives up to start up. In the meant...
You must be using a replication slot. It is causing the master to retain the log files, because it still thinks the replica will be needing them. (That is the purpose of a replication slot). Find the slot and delete it . Then create a new one for the new replica you will need to seed.
0
2
3,152
2018-05-08T16:03:28.373
data_quality
dba.stackexchange.com
389,456
"(13)Permission denied" error from Apache
This is an Apache server on Linux RH ES 5.6. I created a new Apache instance on port 443. When I try to access the website I get a 403 error. I see the following in my error logs: [CODE] I gave the user permission with [CODE] , but this didn't get rid of the [CODE] error.
This error is because of SELinux. Run this: [CODE] After that, you wouldn't get the 403 error.
1
2
367
2012-05-16T00:13:24.927
api_errors
serverfault.com
516,686
Virtualized MS-DOS computers can't communicate over IPX
I converted 2 MS-Dos 6.22 machines to virtual machines. Both computers have software that communicates over NETBEUI and IPX (I came to that conclusion after inspecting autoexec.bat - It loads IPX stack). I followed this Vmware Forums post and installed the DOS amd_pcnet driver, configured it, and bound it to the requir...
I would try out Dosbox. It has ipx support and with a few commands you can activate it. In fact simple gamers are the target audience. Dosbox tunnels ipx in UDP packets.
18
2
1,200
2013-06-18T15:50:28.673
infrastructure
serverfault.com
209,086
Query optimization : abnormal number of row scanned
Here is a table with few millions of data (13701956 rows, 588Mo of data): [CODE] In this table, I put some traffic information on about 90 different measurement_id and try to identify a max(date_time) and MIN(date_time) for every measurement_id. So I use the query below : [CODE] If I use the index ak_countdata_idx, I w...
Question. Does the query runs in an acceptable time? If so, improving this query is non trivial, so its up to you to pursue further. Moving on The number you are seeing is the estimated number of distinct values that MySQL will find for [CODE] given that you already mentioned that there are 90 different measurement_id ...
1
1
811
2018-06-08T10:18:53.903
database_errors
dba.stackexchange.com
141,216
Troubleshooting web page load issues
I having an odd issue where a particular page doesn't finish loading... all the time. Intermittenly, this page doesn't finish loading - in particluar, it seems maybe the JS file isn't downloaded or finished loading. Marchelos Law I am not sure how to troubleshoot this issue, since refreshing it fixes it. I see it mostl...
Seems to have loaded OK on the first try from here (Chrome). Like you had said, this is typically due to some incorrectly loading JavaScript files. The best thing to do is to run Y!Slow for Firebug (Firefox) and load up the page. This should give you an idea as to what scripts are loading and where any slowness is comi...
1
3
726
2010-05-12T18:04:22.727
infrastructure
serverfault.com
186,940
Can't log into mysql shell
When I try to log into the mysql shell with: [CODE] then I get: [CODE] How do I log onto the mysql shell? I have been googling this left and right and trying all those proposed solutions on stackoverflow and elsewhere but nothing seems to work. I have tried adding [CODE] at the end. Same error. I have tried going by th...
Please, review my.cnf files (see oficial documentation for file locations https://dev.mysql.com/doc/refman/5.7/en/option-files.html ). Search under the [client] section if exist an entry called socket , i.e: [CODE] Replace it with the right path to mysql.sock and try again. To get the mysql.sock, use [CODE] and get the...
0
0
260
2017-09-26T16:33:59.903
database_errors
dba.stackexchange.com
627,374
Cannot RDP from inside to dmz
I'm running an ASA 5505 with security plus I have internet access from the inside and dmz vlans I can Remote Desktop from inside to another machine on the inside I can ping inside machines and machines on the internet I'm using the ASDM to configure the router. How do can I remote desktop to my DMZ? Below is my config ...
There is no nat [CODE] for your traffic coming from 192.168.1.5 traversing from [CODE] to the [CODE] IP 10.10.1.100. Having [CODE] creates such an expectation. Add the following to your [CODE] ACL to allow 192.168.1.0/24 hosts to access 10.10.1.0/24 hosts w/o requiring NAT. [CODE] (Your [CODE] ACL has me scratching my ...
1
1
2,290
2014-09-09T18:32:11.407
infrastructure
serverfault.com
116,729
Linked servers on SQL Server 2008 R2 through linked tables in MS-Access?
We have a really old data source (file-based) in Visual FoxPro, that we currently use via linked table through an ODBC data source. Recently, we started having an issue because the latest update to our Anti-virus Suite is stopping it from connecting in this manner. There are other ODBC data sources which do not use the...
You should be able to get away with this by creating views in SQL Server that are effectively wrappers for tables in the linked server. You will of course have to deal with the extra layer of security configuration for the linked server, thus ensuring that the Access users are connecting to the external data with the p...
1
3
301
2015-10-01T15:22:36.617
database_errors
dba.stackexchange.com
721,486
How to prevent Alice to kill a process, but allow Bob to uninstall it?
I know Bob who is a system admin. Bob needs to deploy software Foo to Alice's work device based on Windows NT (XP onwards). Foo is security software. It is not malicious. Alice has local admin permission on her device. Bob wants to disallow Alice to kill a process or uninstall Foo. Bob, however, should be able to unins...
Impossible. No matter what protections you put in place, Alice will always be able to pull her Administrator card and get around them.
4
1
763
2015-09-10T10:09:04.767
infrastructure
serverfault.com
31,809
BDD specflow Error: "Ambiguous Step Definition Found For Step
I'm getting this error: [CODE] on running my [CODE] Test. The code is for the client, that I'm working for, thus I'm not permitted to provide code sample. However, let me give you a background into what I'm doing and the particular issues, that I'm running into at the moment. The code is referring to a [CODE] statement...
Specflow generates nunit tests from the gerkhin feature files by generating a code behind file. This process is often quite sketchy and sometimes creates broken files. If you delete the .cs file with the same name as the .feature file it should get regenerated. Be aware that specflow doesn't work on dotnet core , only ...
2
1
4,699
2018-01-31T08:55:12.503
data_quality
sqa.stackexchange.com
7,192
MySQL: 2 separate queries run very fast, combined query with OR runs very slow
[CODE] uses temporary/filesort, 92 lines, and runs in 30ms. Similarly fast if I modify the query to search for the same IP in the dst column. But if I combine both queries to search for that IP in the xlatedst OR the dst columns: [CODE] then it examines 2121544 rows and runs for 3 minutes. Now I could just run both que...
In my experience though, doing anything with an OR condition can have horrible implications when running queries, have you considered running this as two separate queries and then combining the results? E.g. [CODE] That may do the job, or something similar :)
3
4
380
2011-10-25T10:50:39.600
database_errors
dba.stackexchange.com
97,674
Centralized accounts and multiple logins
I'm thinking of setting up LDAP+NFS to handle centralized /home directories for our LAN users, but I was wondering, what would happen upon login from multiple machines with the same user? Are there risks of data corruption? If so, is there a way to prevent it? (Clients and server would use Ubuntu)
From the point of view of the server, having a single user from different stations would be just like having the same user with more than usual processes. IOW: Nothing special. OTOH, maybe there are some applications that depend on having a single instance. Firefox for example does try really hard to have a single inst...
1
4
269
2009-12-28T08:48:00.003
data_quality
serverfault.com
257,705
Unit test private method in c++ using a friend class
I know that this is a debated practice, but let's suppose that this is the best option for me. I am wondering about what is the actual technique to do this. The approach that I see is this: 1) Make a friend class that of the class who's method I want to test. 2) In the friend class, create a public method(s) that call ...
An alternative to friend (well, in a sense) that I use frequently is a pattern that I've come to know as access_by. It's pretty simple: [CODE] Now, suppose class B is involved in testing A. You can write this: [CODE] You can then use this specialization of access_by to call private methods of A. Basically, what this do...
18
28
32,880
2014-09-30T19:50:23.407
api_errors
softwareengineering.stackexchange.com
498,072
What's the best way to have a backup image of system disk?
Under windows system I'm used to create an image of HD with driveImageXML. What's the best approach to have an Image of the hard-drive containing the OS, with Ubuntu Server? I'd like to have a snapshot of the current configuration so If ever happens that the primary disk will fail I could simply restore this image on a...
If you simply want a pure one time snapshot (cloned image) of your drive you can use the [CODE] utility. This utility takes an image of the entire drive. Thus if your drive (partition) is 500mb then your snapshot will also be 500mb. However if you want to keep an ongoing backup of all the data on the drive you could us...
0
1
1,361
2013-04-10T15:06:42.183
database_errors
serverfault.com
285,600
MySQL partitioning relatively large DB Table
I have table structure similar to the following - [CODE] There are about 600 Million rows in this table and is growing fastly. Everyday about 0.5 million records are inserted sometimes more sometimes less. So there is massive write activity going on during certain period of the day (6 am to 8 pm) Following are the quer...
So going down your list of questions: Do this partitioning do any good in terms of performance with my existing table structures and indexes. No! If you always query on date, maybe . Do this partitioning do any good for selects statements I have specified above? Only your third query, and that's a maybe . What this par...
-1
1
150
2021-02-18T08:14:29.867
hadoop_errors
dba.stackexchange.com
905,249
Migrating VMs from hyper-v server 2012 r2 to windows server 2016
I'm turning in circles and I don't know what I could od more to make this work. I have 2 hyperv 2012R2 nodes in a cluster and 3 windows server 2016 nodes in another cluster. I want to live migrate some vms from the first cluster to the second. I took out the vms I want to move from the first cluster and from the hyper-...
I was preparing myself to close all the vms and just export/import everything BUT before that I created a new admin-client (w10 1709 with RSAT) to remotely manage my servers and it had an RPC problem with the Hyperv servers. The solution to that problem was to enable the incoming rule "Windows Management Instrumentatio...
2
2
7,805
2018-03-29T19:24:47.193
api_errors
serverfault.com
814,153
Apache returning wrong Location header
The issue happens when you: issue a request with the header "Host" including the port, e.g. "Host: www.example.com:80", which is legal as per https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23 . You can do it for instance with curl [CODE] the server issues a redirect to https for that request, in my case ...
HTTP_HOST refers to the Host: header specified, so your configuration works as expected based on what you're telling it to. If you want to, you can either strip away the port, or specify another by matching it and using a backreference: Remove port and default to https: [CODE] Change the port to something else (8443 he...
1
1
2,775
2016-11-10T08:00:00.160
infrastructure
serverfault.com
45,787
Return table based on 1, 2, 3, 4, 5 or 0 selected search options
Scenario: Lets say I have several tables for a software ticketing system: Developer, Supervisor, TicketType, TicketStatus and a Ticket table to join them on. Assume I have done my inner joins and now have a complete table listing all assigned Ticket info. [CODE] Obviously the SQL for this is pretty basic: [CODE] So tha...
Dynamic SQL is another option. I would try both this method and @a1ex07's method and see which runs faster for you. [CODE]
0
1
142
2013-07-05T18:38:13.813
database_errors
dba.stackexchange.com
8,803
Selenium WebDriver - How to clear RadEditor content
I am working to write some Selenium WebDriver scripts that work with Telerik RadEditor controls. I can successfully enter content into the RadEditor in the following way with C#: [CODE] But I have not been able to find a way to clear the existing content of the RadEditor. If I attempt the following: [CODE] I will get t...
I finally got back around to looking at this issue again as I had more of a need to make this happen. Here is the "work around" I implemented and works for me: [CODE]
1
0
3,802
2014-06-05T19:17:25.193
data_quality
sqa.stackexchange.com
815,810
Server CPU too high
Recently I have to restart my server because it was not responding. I'm looking at the logs but I can't find anything valuable to know which the error was. The droplet CPU was 100% for hours. Here is the screenshot: When the droplet was having problems the site wasn't avaible and neither the shell access. I don't know ...
Before messing with Nagios and the likes, I suggest you to install [CODE] to keep your server monitored. It basically require no configuration but at the same time it collects many key stats about what is running/happening on your server.
1
2
243
2016-11-18T19:51:04.243
infrastructure
serverfault.com
333,695
top on memcached server shows 110% cpu (memcached process) and 55% idle on cpu(s)
I tested on AWS ubuntu 10.04 memcached 1.4.2 When testing with memslap (different concurrent users numbers and different instance types (8G and 1.7G memory) Top shows 110% cpu on the memcached process and 55% cpu idle in the cpus summary. What is wrong here? Is the server using just one core for memcached? If so is it ...
One thought I have. In my experience with AWS instances using top may or may not return realistic values for CPU usage (usually not). Check cloudwatch and see if it is showing a high CPU usage. This especially applies to micro instances, on those top is absolutely useless.
1
1
1,458
2011-11-22T14:30:56.430
infrastructure
serverfault.com
799,851
SSL - Nginx Error When Making Request To API Upstream
SSL is running fine on my [CODE] . However, when my front end makes a request to the unicorn API server (on the same server, just running in a Unicorn process), I get the following error: [CODE] . Why is this the case? [CODE]
The answer: my server call was using the IP address. When I changed my server call to use the domain name everything was fine. I hope my stupid mistake helps someone.
0
0
609
2016-08-29T21:20:14.850
infrastructure
serverfault.com
280,493
Injecting collections as constructor dependencies
We are using constructor dependency injection in our application. Following that approach we inject everything using an injection container so we are able to replace any dependency with a Mock. Some colleagues complain about this procedure as they say that injecting collections of any type is going too far with injecti...
Pros and Cons As with any situation where there's a judgement call to be made, it's worth weighing up the main pros and cons. I'll summarize them as I see them, then go into some aspects a little deeper to try to show why- although there are some situational aspects- in the large majority of cases the factors pretty he...
4
3
2,071
2015-04-29T14:59:40.437
pipeline_ops
softwareengineering.stackexchange.com
302,109
Unable to install MS SQL Server due to missing DLL, how do I find and install this DLL?
I tried to install sql server 2017 on windows server 2019 but the following error appeared to me: There is a Problem with this Windows Installer package. A DLL required for this installation to complete could not be run. Contact you support personnel or package vendor. Here are the solutions that I have tried that did ...
Even I had the same issue and tried all the steps but it didn't work. I followed the below link and it worked for me. https://stackoverflow.com/a/49634848
0
1
4,449
2021-11-04T08:16:13.003
data_quality
dba.stackexchange.com
1,007,580
Sudden error "We are unable to connect to the VM on port 22" without any cause
I have [CODE] , [CODE] and [CODE] running on 2 core 8GB RAM ubuntu 18.04 instance on [CODE] . The server was operating normally (HDD 49%, CPU below 10% and RAM below 40%) but suddenly web frontend was not working (like server was stopped). At that time, I checked google cloud console and the system was working normally...
For the description of your issue, I can only think that the google agent restarted the network services and, for some reason, it failed to start them properly. Normally this can only be confirmed inside the OS by checking that the agent is running or checking the agent logs, however normally there is a generic message...
1
0
646
2020-03-19T17:08:23.003
pipeline_ops
serverfault.com
703,031
How do I add a Solr core without restarting the Solr server?
Question How do I add a Solr core without restarting the Solr server? Is it possible at all? My current way of adding Solr cores ( with server restart) According to this FAQ I do the following: Copy an existing Solr core Rename the core name by opening the file [CODE] and editing the field [CODE] like [CODE] Restart th...
Copy an existing Solr core Rename the core name by opening the file core.properties and editing the field name like name=my_core Restart the Solr Windows service On the Solr web interface, select [CODE] and click on button [CODE] Type name = [CODE] instanceDir: [CODE] Click button [CODE]
2
1
9,731
2015-07-02T07:32:36.343
infrastructure
serverfault.com
949,694
Webserver error 503 Troubleshooting
I have a nice VPS with 4 cores, 180ssd, 8gb of ram. My website is a custom website, that autogenerates from a database, and on the first run it is cached in memory using redis. The issue that I am having is that sometimes, specially after I flush redis, I get 503 on the website, I have some other domains on the same se...
If the generation takes long, it could be a timeout between reverse proxy and server (check the nginx logs) It could also be a failed process that can't handle an empty cache which might get rendered as 503 (should be 500 actually). What kind of app is it? Python, PHP, ...? (apache's or your app's logs) You can call yo...
2
0
342
2019-01-18T10:55:39.967
database_errors
serverfault.com
226,787
Monitor 3rd party bandwidth
I know there are tons of tools out there for measuring network traffic, bandwidth, etc. But, are there any tools that can provide ANY information about an external sites bandwidth? (A server/network we don't have access to) For instance, we have an agreement with an online media firm that is supposed to be providing se...
Nope. Unless they have something doing that, give you access to it, and you trust them not to fudge the numbers. Refer to your purchase agreement and any SLAs you have with them.
0
3
85
2011-01-25T18:48:55.707
infrastructure
serverfault.com
435,118
Apache: override settings (like Timeout) inside a VirtualHost directive?
Is the following configuration correct ? If not, is there any alternative ? [CODE]
Take a look at http://httpd.apache.org/docs/2.2/mod/quickreference.html Third column on that page will tell you whether the setting(directive) you are trying to change can be specified in virtualhost or its global directive. HTH
-1
7
10,583
2012-10-05T08:13:28.757
infrastructure
serverfault.com
162,797
Can't connect to vsftpd from Windows XP (FTPS)
All right, I've been working on this for days and I'm starting to tear my hair out: I'm running a vsftpd server v2.0.6 (+SSL, +TCP wrappers) on CentOS 5.4, but Windows clients can't seem to authenticate to it (lftp/cygwin, SmartFTP, and FileZilla). Snow Leopard and Ubuntu 9.04 clients seem to connect fine using [CODE] ...
This appears to be a software firewall issue with certain machines inside our company, not a VSFTPD issue.
0
1
2,123
2010-07-21T21:35:26.640
infrastructure
serverfault.com
952,891
asia-southeast1-b computer engine down
2019-02-07 19:52:12.748 JST asia-southeast1-b computer engine down. event_subtype: "compute.instances.hostError" event_type: "GCE_OPERATION_DONE" What caused the server down? How does google solve it? thank you
https://cloud.google.com/compute/docs/faq#hosterror There was a host error with my virtual machine and it was restarted. What happened? A host error means that there was a hardware or software issue on the physical machine hosting your virtual machine that caused your virtual machine to crash. When Compute Engine detec...
-2
1
115
2019-02-08T03:12:56.377
infrastructure
serverfault.com
173,411
Diagnosing a maintenance plan that's ballooned in execution time
Environment is SQL 2008 R2, 26GB RAM, 4-core Xeon E5-2650 @ 2.6GHz. Please see the image below, our maintenance plan which reorganises indexes (not rebuilds). This is run on a weekly basis, and within one week, this plan went from taking ~5 minutes way up to 1hr - 1hr:15, and it has not improved since. We've had to dis...
Question you asked is a very generic one and people working with database have this challenge all the time. There is no one thing you can do will give you the answer right away. Your case is more difficult than others as your databases are hosted by third party. Troubleshooting long running process is a science and art...
3
1
279
2017-05-12T10:19:53.257
warehouse_errors
dba.stackexchange.com