7,717 reputation
2147
bio website michael.kjorling.se
location
age
visits member for 4 years
seen 7 hours ago

Nov
18
comment Is there a reason for ssh and sftp being so unintegrated?
The SSH transport format is channel-based, so it probably wouldn't require very extensive modifications to the protocol. It's perfectly possible that there are clients out there which allow this already. I suppose the real question is, would it be enough of a savings to warrant the time required to implement, test, document, debug and maintain the feature, in favor of some other feature?
Nov
18
reviewed Approve suggested edit on Is there a reason for ssh and sftp being so unintegrated?
Nov
17
awarded  Notable Question
Nov
15
comment I made a mistake last night, which deleted 1800GB of my File-Server unintentionally
I hope you have good backups. If you're going to attempt recovery, stop using that system until you are able to make a byte-level copy of the drive to experiment on. Any writes to the file system in question will exacerbate the damage.
Nov
14
awarded  Popular Question
Nov
6
awarded  Nice Answer
Nov
6
comment How to completely block a website like Facebook?
@jgr208 Might be legitimate, or might just be an example. Why does it matter for the purposes of the question what the reason for choosing a particular example is?
Nov
6
comment How to completely block a website like Facebook?
@JosephJohn Give it a read.
Nov
6
revised How to completely block a website like Facebook?
added 3875 characters in body
Nov
6
answered How to completely block a website like Facebook?
Nov
6
revised How to completely block a website like Facebook?
Add 'dns' tag
Nov
6
comment How to Download the latest file from SFTP server?
Hi user_tmo. It's really hard to tell what exactly you are asking, here. Please edit your question such that the question shows what you have tried, and asks a specific question. If English isn't your first language, then don't worry too much about grammar and spelling; rather, focus on making the question as clear as possible. (It certainly won't hurt if you also pay attention to spelling and grammar, but we prefer clear but slightly incorrect linguistically, over unclear but perfectly written. If the intent is clear, someone else can always come in and fix the language problems.)
Nov
6
comment How do I print pi (3.14159)?
@CodesInChaos No, the download time is constant (given constant transmission rate) because you are downloading a constant number of digits (one million, here). Unless (in this specific case) curl is smart enough to print while downloading and stop downloading once the pipe breaks because cut exits? If that is the case, I agree, it would be O(n).
Nov
6
revised How do I print pi (3.14159)?
deleted 279 characters in body
Nov
6
comment Recovering accidentally deleted files
Yes, on most file systems, the same blocks are reused when a file is merely overwritten. Note that some applications "work around this" in a sense by writing a temporary file first (which makes it a separate write), then renaming that file on top of the old file (which replaces the data from the user's point of view). This is done for a number of different reasons. Storage systems (including file systems) which do this all the time are termed copy on write.
Nov
6
comment Recover data from HDD
I disagree with that close vote. The suggested duplicate target question is about recovering a single file from an intact partition and file system; this question is about recovering a partition and possibly file system metadata as well as user data. (Note, it may still be a duplicate of some other question, but not that one.)
Nov
6
comment Recover data from HDD
The problem if the partition was formatted with FAT is that FAT stores all its critical data structures very early within the partition. NTFS is better in that regard in this particular case; IIRC it stores the MFT in the center of the partition (it does this to minimize the seek times to jump between user data and MFT), which means that all the critical file system data in that case is highly likely to be intact and only the partition table plus a few gigabytes of user data is lost. The partition table is likely to just have been all disk as one big partition, which makes that part easy.
Nov
6
comment Recover data from HDD
+1 for backup. It's practically never too late to backup.
Nov
6
comment How do I print pi (3.14159)?
@HalosGhost For our purposes (compared to computing n digits of pi each time), downloading a fixed amount of data from a specific server over a network is likely to be effectively O(1), whereas computing n digits of pi is likely to be at least something like O(log n) and quite possibly higher (I'm not familiar with those algorithms). The actual download of the data is likely to take significantly more time than the overhead to start the download, hence the download time dominates and you get somewhere in the vicinity of O(1) given a reasonably fixed data transmission rate. Hence O(1).
Nov
6
comment How do I print pi (3.14159)?
I would love to know why this has received two downvotes. Did the people who downvoted not read the answer before they decided it was not useful?