16044
Chrome - How to disable drag and drop in the text editor. | Off Topic | unofficial empeg BBS
Use greasemonkey (or whatever) to add ondragstart="return false" to the textarea element.
disable  text  drag  drop  chrome  chromium  browser 
6 days ago
linux - How long does badblocks take on a 1TB drive? - Super User
To answer you question, the closest I can offer is with a 3TB I tested for this. Here are the 3 times tests I did, only changing the parameter values for -c and only doing them up to 10% since they took A LOT of time. Each was done 3 times to get an average.

badblocks -svn /dev/sdb
To get to 1%: 1 Hour
To get to 10%: 8 hours 40 minutes

badblocks -svn -b 512 -c 32768 /dev/sda
To get to 1%: 35 Minutes
To get to 10%: 4 hours 10 minutes

badblocks -svn -b 512 -c 65536 /dev/sda
To get to 1%: 16 Minutes
To get to 10%: 2 hours 35 minutes

So yes, the -c parameter has a very big influence on the time it takes to check the drive. I would guess that for a 1 TB Hard drive, assuming it maintains the same time frame as the 3TB, it would be 1/3 of the time mentioned here, so to get to 10% with -c 65536 on the 1 TB HDD it would be about 50 minutes.
badblocks  bad  blocks  linux  time  speed 
14 days ago
How to enable remote access to PostgreSQL server? – Plesk Help Center
This link omits the /32 after the host IP, such that PostgreSQL won't start.
Also Servergraph systemd does not have a postgresql.service


# Configure PostgreSQL to listen on all network interfaces
sed -i.bak "s/^#*listen_addresses = [^#]*/listen_addresses = '*'\\t/" \
/usr/servergraph/pgsql_data/postgresql.conf

echo 'host all all your.ip.addr.here/32 trust' >> /usr/servergraph/pgsql_data/pg_hba.conf

# E.g., if the psql client appears to run on 192.168.251.1 :
echo 'host all all 192.168.251.1/32 trust' >> /usr/servergraph/pgsql_data/pg_hba.conf

# Restart PostgreSQL (which requires restarting Servergraph):
sgp shutdown
sgp run

# Enable remote access to PostgreSQL:
firewall-cmd --add-port 5432/tcp --permanent
firewall-cmd --reload

Then connect to database servergraph, with username servergraph
enable  remote  access  postgresql  postgres  server 
16 days ago
Restoring a single table from a Postgres database or backup
If you are starting with a live database, you can simply use pg_dump to backup only one table:
pg_dump --data-only --table=tablename sourcedb > onetable.pg

which you can then restore in the other database:
psql destdb < onetable.pg

But even if all you've got is a full dump of the source database, you can still restore that single table by simply extracting it out of the large dump first:

pg_restore --data-only --table=tablename fulldump.pg > onetable.pg

before restoring it as shown above, using psql.

---
Generally, it's better to do your dumping via
pg_dump -Fc
which lets you then use the full power of pg_restore.
postgres  postgresql  restore  single  table  from  backup  database  export 
21 days ago
Debugging Avamar connectivity - Servergraph - Rocket Software Wiki
egrep -v "^#|^$" /data01/avamar/var/mc/server_data/postgres/data/pg_hba.conf


We tried several variations of the 'trust' and 'md5' lines, eventually found that these values / this ordering provided (passwordless, presumably) access from Servergraph:

local all all trust
host mcdb all 10.100.5.42/32 trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host mcdb all 0.0.0.0/0 md5
host mcdb all ::0/0 md5
(The pg_hba.conf lines above configure passwordless access to the mcdb database, from only the Servergraph server's IP address.)

(We saved copies of the original pg_hba.conf files, with a .2016-06-14 date suffix.)

Note that after editing pg_hba.conf , PostgreSQL must be reloaded – and it was necessary to specify the PostgreSQL data directory:

pg_ctl reload -D /data01/avamar/var/mc/server_data/postgres/data
servergraph  avamar  postgres  postgresql  connection  connectivity  debug 
21 days ago
How do you get rid of the top blank 'dot' hierarch...
My first section looked

[table of contents]
my first header [H1]

Aparently, the newline after [table of contents] was also H1 and it caused the problem. so I deleted it:

[table of contents]my first header

and then entered a (soft?) new line SHIFT-RETURN to seperate them
[table of contents]
my first header [H1]

and the empty dot disappeared.
atlassian  wiki  jira  extra  dot  table  of  contents  format  formatting 
23 days ago
Alan Mellor's answer to What are the best books for programmers that are not language-specific (understanding general concepts)? - Quora
What are the best books for programmers that are not language-specific (understanding general concepts)?

Alan Mellor, Programmed since 8 bit. Just use more bits now.
Answered 12h ago

It’s my usual three: Refactoring by Martin Fowler. How to de-tangle your legacy code from hell. Or your own code if you don’t follow:

Clean Architecture by Robert C Martin. Explains how SOLID works at the design level.

And you’ll find this easier to apply if you apply:

Growing Object Oriented software guided by tests by Steve Freeman and Nat Pryce. Show a huge, practical case study of writing tests firsts in order to steer your design into nicely decoupled SOLID lumps
programming  books  book  oop  solid  clean  architecture  refactoring 
29 days ago
C++ "Hello, World!" Program
tst.cpp :

#include <iostream>
using namespace std;

int main()
{
cout << "Hello, World!";
return 0;
}


make tst
c++  hello  world  program 
4 weeks ago
« earlier      
10 3d 7 8 a ai amazon america american and android animated apache apple arduino art atheism atheist bash battery bernie big black blue book boot brain brexit britain british browser bug car cat cell centos change china chinese chrome client clinton cloud code color command comparison computer control data database debug dell design development disable disk docker dog donald download drive driver email english error esxi evolution facebook file filetype:jpg fire food for free from gif glass gm gmo god google green gun hack hat high hillary history home human i ibm image in insect install internet interview iphone is it java key keyboard language laptop laser law learning led life light line linux mac machine man manager marijuana media:image microsoft mj mode muslim my mysql name network new no not nuclear of on one online open out password phone photographs pictures postgres postgresql power print printed printer printing program programming python red redhat religion remote robot rocket sanders science screen script search security self server servergraph sex size software solar space spider storage system table test text the time to trump tsm ubuntu uk up upgrade us usa usb user vi video vim virtual vmware war water web white wifi window windows with women work world writing you your

Copy this bookmark:



description:


tags: