Comments Feed

Archive for the ‘PHP’ Category

« Older Entries
Jan
10

Just an update

Good Morning

I will be posting another update later this week with new code to github - fixing some of the bugs that have come up in the past few weeks.

Thanks all for your help

Mark

posted by Mark Willis
Tags: ,

Dec
30

Merry christmas and a happy new year

Good morning.
I hope everyone had a nice Christmas and are making great plans for new year celebrations. I have put the sugar sync Linux client on hold for the moment, as i am finishing a client website at the moment which is taking up a fair bit of time.

In February I start my "computer and mathematical sciences" degree so will have a bit less time to do my projects so if anyone would like to contribute to the sugar sync Linux client i am more then happy to get the ball rolling.

Have a wonderful new year.

Mark

posted by Mark Willis
Tags: ,

Dec
14

Error Handling & Deleted Files

I have updated git (eventually) with a few updates...

Now if we cannot connect to the database it exits gracefully (thanks to Russell for testing that one) and also a safety feature - When a file is "deleted" it is now moved to the "deleted files" folder on the sugarsync web directory.

you should be able to get the code from https://github.com/markwillis82/Sugar-Sync-Linux-Client if not - email me and i'll test it is up there correctly

Mark

posted by Mark Willis
Tags:

Dec
12

SugarSync Joy – file renaming and deletes

Good evening,

I have added support for file renames (currently only within the same working directory - but this is on my list to fix) and file deletes, so the code is now volatile (in such that it can delete data from the Sugarsync servers, with no restore available)

I'm going to work on fixing a big bug for the moment now these core features are in, then start on a "copy" trick i'm thinking about (if a file is copied locally without change - I should be able to copy the remote file without requiring an upload)

I am going to ask a quick question... As this app is daemon/command line based, I am more then willing to build a web GUI for it.

Either making apache a pre-requisite or building something like tomcat and using a different port to enable a gui.

I would love to build a little system tray icon and bits - but it's not my language.

Also if any graphic designers (sugarsync design team :) ) want to come onboard with some designing work (I'm a developer not a designer) i'll be more then willing to share my ideas.

I've updated git with my most recent changes

Thanks

posted by Mark Willis
Tags: ,

Dec
05

SugarSync – Alpha Release

Good Evening.

I have put the first release of my linux client on github now details are at: http://mwillis.co.uk/projects/sugarsync-linux-client/ Please feel free to comment / test my code out.

Thanks

Mark

posted by Mark Willis
Tags: ,

Jun
24

SugarSync Client update

Hi all,

Good News - my SugarSync client is now in alpha - with the ability to download and upload files and folders based on last modified times.

I will provide some initial source code once I have tidied it up a bit and done some more extensive testing.

posted by Mark Willis
Tags: , ,

Mar
10

URGENT – C/apache module developer needed

Good Evening,

I know it's been a while. Got alot on at the moment (moving,work,family,etc)

I am currently re-desiging the crawler catcher which includes an apache module for detecting ip's

But i'm only a novice/intermediate level C coder, what I really need is someone to give me a hand with hash tables and apache api.

Please send me an email if you can help. shouldn't take too long.

Mark

posted by Mark Willis
Tags: ,

Sep
21

Symfony Components – Usable Independantly

Symfony Components

One feature I like about symfony is the ability to use each component independantly of the entire framework, It's just a case of downloading the library and using straight away.

I have been looking at PHPUnit and symfony's own "lime" unit tester and although PHPUnit is good, I'm prefering the lime as it is easier to read (and even better with the lime extra plugin).

With the component base of symfony you can also use lime in non-symfony based projects. So I can use the same unit testing framework for all my projects.

This is another plus for symfony. Some components are available at symfony components.

posted by Mark Willis
Tags: ,

Sep
16

Sort Multidimensional array by order of an array

Although the title of this post may sound confusing - what I achieved was an extremely useful function. Whilst building a website using SphinxSearch for some search resultsĀ  - after using MySQL to get the data I needed:

PHP retrieves a set of id's from sphinx (4,5,2,34,1,453,3)

SELECT id,name,url FROM table WHERE id IN (4,5,2,34,1,453,3);

Read the rest of this entry »

posted by Mark Willis
Tags:

Sep
14

eAccelerator review

eAccelerator seems to be compared to APC for it's caching + accelerator performance. But eAccelerator has one major advantage to APC and that is file caching. If your server runs low on RAM or your eAccelerator config hits it's own memory limit then the cache can start to store on the disk as well (or choose to store all the cache on disk and leave RAM for other processes).

This is excellent for shared hosting servers / or dedicated servers used for multiple services.

eAccelerator contains a PHP encoder and loader (although the current RC doesn't). You can encode PHP scripts using encoder.php in order to distribute them without sources. Encoded files can then be run on any site which runs PHP with eAccelerator. The sources of encoded scripts can't be restored because they are stored in a compiled form and the encoded version doesn't contain the source. Of course, some internals of the scripts can be restored with different reverse engineering tools (disassemblers, debuggers, etc), but it is not trivial.

eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it, this is a great speed increase as the PHP engine does not have to pre-compile a script before executing

eAccelerator is compatible with Zend Optimizer's loader. Zend Optimizer must be installed after eAccelerator in php.ini. If you don't use scripts encoded with Zend Encoder then we do not recommend you install Zend Optimizer with eAccelerator.

posted by Mark Willis

« Older Entries