So, right now we're using DropBox to share various data files around between approximately 10 Mac OS X systems.
However, we already have an S3 account and everyone on the lowest DropBox plan of $10/mo seems too expensive.
So, I am contemplating something that would allow us to replace DropBox with our own home-grown solution. We are all fairly technical people and/or smart enough to follow some steps, so if it's not as "user friendly" as DropBox we're all comfortable with that.
There are plenty of docs out there that have bits and pieces of what I want but some of the tools don't seem to fit the requirements:
Transport security via SSL to the bucket
Encryption of bucket contents
Bi-directional syncing
Most of the scripts I can find on the internet use "duplicity" which appears to fail #1 (it doesn't look like duplicity supports SSL to S3 - the docs don't state but the protocol looks plain old http http://www.nongnu.org/duplicity/duplicity.1.html#sect6 )
Many scripts use gpg to encrypt files. This seems like it could work, however I have to make sure that each OSX client is able to use the same key to encrypt and decrypt files (key management is left to me to manage).
Finally, most of the scripts use one-way replication, e.g. using Amazon S3 as a simple backup store. As we'd be using Amazon S3 as the "repository" they fail this one.
Whew. So, I'd love a single tool that does this but after an exhaustive search I don't think one exists.
I'd be happy just knowing which tools out there can fulfill my 3 requirements, after that I can stitch together the rest. Any thoughts?
THANKS!
Recently I was making a few attempts to copy&paste a big (1.2 GB) file to remote computer over RDP. The remote computer is virtual testing machine with MS Windows Server 2008 Datacenter.
First I tried to copy&paste before midnight when the transfer speed was limited by client computer ISP to 100 kB/s. So, it required a few hours and I was forced to cancel transfer since remote desktop became too unresponsive and sluggish (slow). So, I re-started it over midnight when my local transfer speed is over 4 GB/s 4MB/s (sorry for typo).
So, my impression is that independently on speed (broadband) of copy&paste transfer the remote computer becomes sluggish while copying over RDP. At the same time downloading from internet doesn't make remote host sluggish.
AFAIU, it is because clipboard of remote computer and so its memory becomes overloaded by transfer.
How can I control (restrict) the usage of clipboard for specific process (pasting of file)?
What are the possible way to control it?
Update:
After reading that slow speed of transfer is caused by encryption used for copy&pasting over RDP and since I believe I am more interested in overall efficiency: both the time, or rapidness, of getting file as well as possibility to work without waiting, I changed the question title from:
How to control the usage of remote desktop clipboard usage for pasting a big file?
to
How to better copy&paste big files over RDP?
For example, is it better to copy&paste one huge (zip) archive or unzip it and copy paste a folder with unzipped files?
And more exactly I wanted to ask:
What are possible ways to improve overall experience:
the speed of transfer (i.e. availability of needed file)
responsiveness of remote host (making remote coputer available for work before completion of copy&pasting)?
I'm setting up my database to receive hashed passwords and not accept plain text.
Would I go something like this?
create table User(
username varchar(20) not null,
password varchar(64) not null,
);
I'm doing the following:
from subprocess import PIPE
from subprocess import Popen
file = 'dump.sql.gz'
p1 = Popen(["gzip", "-cd" ,file], stdout=PIPE)
print "Importing temporary file %s" % file
p2 = Popen(["mysql","--default-character-set=utf8", "--user=root" , "--password=something", "--host=localhost", "--port=3306" , 'my_db'],stdin=p1.stdout, stdout=PIPE,stderr=PIPE)
err = p1.communicate()[1]
if err: print err
err = p2.communicate()[1]
if err: print err
But the db is not being populated. No errors are shown, also I have checked p1.stdout and it has the file contents.
Any ideas?
Hi, I'm new at ruby and I would like to ask you guys if there's something that could improve my Ruby code. Here's my script:
#!/usr/bin/ruby -w
require 'mysql'
dbh = Mysql.real_connect('localhost', 'db_user', 'password', 'db_table')
tables = dbh.query('show tables')
tables.each do |table|
puts "#{table}" + " (" + "#{table}".length.to_s + ")"
end
I'd love to hear your comments. Thanks in advance
Hello, can anybody give me an example code wrote in php to update a facebook status (of a page) having the username and password from the user who creates the page. Thanks!
I am new to EC2. I created my security credentials from this site:
http://paulstamatiou.com/how-to-getting-started-with-amazon-ec2
It worked great, I rebooted and now when I try to connect I get a login/password prompt. (Which I never set up.) After several attempts I get this error:
Permission denied (publickey,gssapi-with-mic).
What am I doing wrong?
Thanks,
Josh
I've this collections
{
"name" : "montalto",
"users" : [
{
"username" : "ciccio",
"email" : "aaaaaaaa",
"password" : "aaaaaaaa",
"money" : 0
}
],
"numers" : "8",
"_id" : ObjectId("5040d3fded299bf03a000002")
}
If I want to search for a collection with the name of montalto and a user named ciccio I'm using the following query:
db.coll.find({name:'montalto', users:{username:'ciccio'}}).count()
But it does not work. Where I went wrong?
I'm currently using the BO API for .NET to connect to our reports database. In .NET, I'm getting the following error:
Your security profile does not include permission to refresh Web Intelligence documents. (WIS 30253)
Interestingly enough, I can log into BO, and I can refresh the data and grab prompts as I'm logged in. From .NET, with the same username and password, I can't seem to do so. Anybody have any thoughts on this?
I have a web app set up that needs the following SSL encryption:
secure.myapp.com -> SSL
www.myapp.com/login -> SSL
www.myapp.com/signup -> SSL
If I'm correct, I could run one SSL certificate for my whole www.myapp.com/* pages.
The problem is that I have a subdomain called secure.myapp.com that either needs to be on a separate IP address to work with SSL.
Right now I have one server, one public IP and a number of Virtual Hosts in apache to make this work.
I'd rather not buy an expensive Wildcard SSL certificate to secure just one subdomain. What is your advice on this? If it IS the only solution any tips on getting a price worthy wildcard SSL cert is appreciated.
I have read about SNI that allows the use of multiple SSL certs, but not all browsers (IE6!) support this. Since we are building a web app for the public, we cannot have IE6 to run on unencrypted connections.
Thanks for you help
Hi All,
I am using Hibernate 3 as my persistence framework.
Below is the sample hbm file I am using.
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.test.User" table="user">
<meta attribute="implements">com.test.dao.interfaces.IEntity</meta>
<id name="key" type="long" column="user_key">
<generator class="increment" />
</id>
<property name="userName" column="user_name" not-null="true" type="string" />
<property name="password" column="password" not-null="true" type="string" />
<property name="firstName" column="first_name" not-null="true" type="string" />
<property name="lastName" column="last_name" not-null="true" type="string" />
<property name="createdDate" column="created_date" not-null="true" type="timestamp" insert="false" update="false" />
<property name="createdBy" column="created_by" not-null="true" type="string" update="false" />
</class>
</hibernate-mapping>
I am added a post-update listener. What it will do is if there any updations perfomed on User then it will be invoked and cahnges will be inserted to audit table.
Below is the sample implementation for postupdate event.
public void onPostUpdate(PostUpdateEvent event)
{
LogHelper.info(logger, "Begin - onPostUpdate "
+ event.getEntity().getClass().getSimpleName());
if (!this.checkForAudit(event.getEntity().getClass().getSimpleName()))
{
// check do we need to audit it.
}
// Get Attribute Names
String[] attrNames = event.getPersister().getEntityMetamodel()
.getPropertyNames();
Object[] oldobjectValue = c
Object[] newObjectValue = event.getState();
this.auditDetailsEvent(attrNames, oldobjectValue, newObjectValue);
LogHelper.info(logger, "End - onPostUpdate");
// return false;
}
Here is my requirement. event.getPersister().getEntityMetamodel()
.getPropertyNames(); or event.getOldState(); or event.getState();
must return attribute names or value which i can update or insert.
Is there any way to control the return values of above one's.
Pleas help me on this regard.
Thanks,
Narendra
Hi all!
Please, write small Delphi-program which working woth DB Access
For example, in Access will create customer-base(nickname & password), but in Delphi simple autorization form.
Thanks
I'm just curious if serious changes to the system were necessary to achieve this; after all, it needed my password during the setup. Also, I may use it in some projects if its not too much of a hack.
When I am deploying certain vendor EAR file to Sun App Server, I encountered a connection timeout errror. I thought the reason might be proxy settings need to be defined so I actually defined the following
-Dhttp.proxyHost=hostname
-Dhttp.proxyPassword=password
-Dhttp.proxyPort=8080
-Dhttp.proxyUser=username
After setting these and restart domain then redeploy I encountered 407 error.
Anyone have any idea what could be the issue here?
$(".box :text").tooltip({
//do stuff
}
now it works well for selecting :text areas under box classes however I also want to include :password areas aswell. How can I combine selectors without writing 2 seperate selectors and execute 2 different methods?
I just transferred open x to a new server and need to change the db info (host, username, password, db name). I have been looking over and I can't find a settings, config file.
Update: Found config file inside var folder
What is the size (in bytes) of an SSH login request?
In fact I just want to know what is the size of the login SSH request when it is send from the client to the SSH server.
For a bandwidth point of view.
If it is a regular user/password login.
Hi,
i have this page.
login: [email protected]
password: m
As you can see in IE7 the selects for the age, and radio buttons are not well organized. In FF and IE8 no problem.
Any idea?
Regards
Javi
I am wanting to run rsync over an SSL/TLS encrypted connection. It does not do this directly so I am exploring options. The stunnel program looks promising, although more complicated than designed due to the need to hop connections with the -r option. However, I do find there is a -l option to run a program. I am assuming this works by having two processes, one to carry out the SSL/TLS work, and one to be the worker which the client is communicating to. These would then communicate by a pipe pair or two way socket between them.
What struck me as odd when I surveyed a number of web pages to see how to properly set this up is that whether running as a standalone daemon, or under a super daemon like inetd, the arguments for rsync are the same. How does rsync --daemon know whether it should open a socket and listen on it for many connections, or just service one connection by communicating with the stdin/stdout descriptors is has when it starts up (which really would go through the extra process to handle the encryption, description, and SSL/TLS protocol layer)?
And then I need to find a way to wrap the client to have it do SSL/TLS in one simple command (as opposed to connection hopping that stunnel seems to favor).
Jruby is hanging on connection to sqlserver and I cannot figure out why. Here is my code ...
puts "make connection"
ActiveRecord::Base.establish_connection(
:adapter => 'jdbc',
:driver => 'com.microsoft.jdbc.sqlserver.SQLServerDriver',
:url => 'jdbc:sqlserver://test:1433;databaseName=test;integratedSecurity=true',
:username=>'test',
:password=>'test'
)
puts "connected"
fish = ActiveRecord::Base.connection.execute("SELECT * FROM users")
puts "query ok"
the code spits out "make connection" and then "connected" but never reaches "query ok" any ideas?
Can any one help me with this connection string. I can't manage how to fix.
Dim constring As String
Dim con As SqlCeConnection
Dim cmd As SqlCeCommand
constring = "(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + \\database.sdf;Password=pswrd;File Mode=shared read"
con = New SqlCeConnection()
con.Open()
Thanks
can you convert this perl code to python code :
$list = $ARGV[0];
open (PASSFILE, "$list") || die "[-] Can't open the List of password file !";
@strings = ;
close PASSFILE;
Thanks
I want to get some slowly flowing data saved in encrypted form at the device which can be turned off abruptly. But gpg2 seems to not to flush it's output frequently and I get broken files when I try to read such truncated file.
vi@vi-notebook:~$ cat
asdkfgmafl
asdkfgmafl
ggggg
ggggg
2342
2342
cat behaves normally. I see the output right after input.
vi@vi-notebook:~$ gpg2 -er _Vi --batch
?pE??x...(more binary data here)....???-??....
asdfsadf
22223
sdfsdfasf
Still no data...
Still no output...
^C
gpg: signal Interrupt caught ... exiting
vi@vi-notebook:~$ gpg2 -er _Vi --batch /tmp/qqq
skdmfasldf
gkvmdfwwerwer
zfzdfdsfl
^\
gpg: signal Quit caught ... exiting
Quit
vi@vi-notebook:~$ gpg2 "
2048-bit ELG key, ID 78F446CA, created 2008-01-06 (main key ID 1735A052)
gpg: [don't know]: 1st length byte missing
vi@vi-notebook:~$ # Where is my "skdmfasldf"
How to make gpg2 to handle such case? I want it to put enough output to reconstruct each incoming chunk of input. (Also fsyncing after each output can be benefitial as an additional option). Should I use other tool (I need pubkey encryption).