Skip to content

u/haywire

In this archive from Mar 2009 to Nov 2026

22
posts
784
comments
6
media
3.1k
score
2 saved before deletion

What is the absolute fastest way/tool to transfer/sync files over the network?

Is there something that uses raw UDP and multiple streams etc to get the maximum out of your link? I previously used rsync/rclone but they operate over SSH for remote devices and rsync doesn't support parallelisation Perhaps SMB or perhaps using rsync over SMB for "sync" as opposed to copy? Or is th...

4 points39 comments
Open on Reddit

rsync pull on macOS (exFAT) from Linux (ext4) to external drive always deletes/re-downloads filenames with non-ASCII characters

I'm using this command on my Macbook, to grab my data from my linux VPS to back it up on a local USB3.0 SSD. rsync \ -vr \ --size-only \ --info=progress2 \ --itemize-changes \ --iconv=utf-8-mac,utf-8 \ -e ssh 'subsonic@art:/var/music/' ./music/ And yet still, it will decide that half my damn music d...

3 points1 comments
Open on Reddit

Quick PDO Tutorial

I wrote this in another thread but it seems that lots of people don't seem to use PDO or know how to. It's a bit of a jump if you're not used to prepared statements etc, but it's much better to start writing using this style so you don't have lots of horrible mysql_rubbish to contend with. Basically...

35 points28 comments
Open on Reddit

I am so fucking sick of maintaining old projects.

When people thought it was totally rad and cool to do something like this: foreach($REQUEST as $key=>$value) { $$key = mysql_escape_string($value); } And then have a several hundred file app depend on having access to the values. Is there any way to detect them and append $POST to them or something?...

35 points64 comments
Open on Reddit

Is Singleton OK for database?

Basically I'm having a pain at the moment. I want to use dependency injection (as this makes sense), so when I make an object that needs a PDO, I do $object->attach_pdo($my_pdo_object). However, this means that non-PDO objects that spawn objects that may or may not use PDO, have to be PDO dependent....

6 points28 comments
Open on Reddit

Optimising objects that load from the database.

Okay, I'm trying to think of solutions to a problem. Say you have an entity like a killboard. This contains kills, and each kill references a player and a weapon. Entities are bolded. Now, the object oriented way for the killboard to fetch a list of all of the kills with weapon and player would be l...

7 points23 comments
Open on Reddit

Am I doing unit testing right?

I've always been horribly scared of unit testing for some reason so this evening I went balls to the wind and got PHPUnit installed and set up (much fun on Windows). I've been reading the manual and adapting the small amount I know to the framework I'm building and have come up with a few tests: htt...

12 points10 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.