Hire a web Developer and Designer to upgrade and boost your online presence with cutting edge Technologies
Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Wednesday, December 7, 2022

Trouble in Sambadise; How to remove .DS_Store and other system-created files in Samba

 

Our file share seems to be running well now, except for one bothersome thing; The generation of hidden system files. I noticed this after one of our team members accessed our Samba share from a system running Mac OS, where I could see where he’d looked around by the trail of hidden ._.DS_Store files he had left behind.

sambaveto1

Users who access the Samba shares from a Mac will inadvertently generate ._.DS_Store and .DS_Store files that are just plain annoying. Although you can view them if you have the option to view hidden files turned on, by default they’re hidden and make an apparently empty directory NOT empty, amongst other annoyances. This is even true from within Linux, where listing a directory with one of these rogue files shows nothing:

veto1

 

But you’ll be able to see hidden files, with the -a switch.veto2

 

And finally you can see more about the files with both -l and -a.veto3

So how do you stop this from happening?

Samba allows you to “veto files” by specifying which files in the current folder you want to remove – but this doesn’t actually get rid of them on its own. Since Samba builds on top underlying permissions in the Unix system, all that this does is to hide these files from the view of Windows share users.

This is quite annoying – because if you try and delete a folder, it just won’t let you (and, at least on my Windows 8 system, no error shows up). You have to also specify “delete veto files = yes” to allow users to delete these files too (even if you can’t see them). Open up the Samba configuration (etc/samba/smb.conf) and, under your share name, add the following two lines:

veto file command

However, this doesn’t get rid of files that already exist; it just hides them. I think many people think that this is enough – but I’d really like to avoid the creation of residual files and hidden behaviours like this in the first place, so I wanted to find a more robust solution.

The most popular articles exist suggest that the above two lines should be enough. Actually, it has been suggested to add all ._* files to this list on some of these articles – but this can affect some unix files too, which isn’t necessarily what we want to have happen.

But it turns out that these two lines are probably the best approach – and what wasn’t initially clear, too, is that this does actually stop files from being created in the first place. You can test this out by doing something like copying over just a plain text file called “hello.txt”, which should be blacklisted in the veto files list:

veto4

Now, the message you get is that it can’t find it in the source folder, but all that is happening is that it just isn’t copying it over. Don’t worry, it isn’t deleting the original file!

This should be all you need to do – but one other thing that should be pointed out is the format that Samba expects you to have files listed in, if you’re trying to veto multiple files. Each file should be separated by a forward slash with no spaces, like so:

/test1.txt/test.txt/test3.txt

 

Well, actually.. you can have spaces.. but in that case, it has to look like this:

/test1.txt/ /test2.txt/ /test3.txt/

 

If you do the following, then only test3.txt is removed, since the space is included in the name of the file:

/test1.txt /test.txt /test3.txt

 

This is important – since if a file has a space in the name, you would NOT use quotes as you might expect you’d have to; you simply write the name as it appears:

/test 1.txt/test 2.txt/test 3.txt

 

The last thing to do now is to cleanup the files that already exist. Since there could be any number of folders and subfolders that have been accessed by a Mac user, you need to do a recursive search for the files and then delete them.

find . -name "*DS_Store" -delete

(You can replace the *DS_Store part with anything you want to find and delete, for example .DS_Store, ._.DS_Store, desktop.ini or thumbs.db)

 

As a final thought is that, there is a possibility that this has an effect the server’s performance when writing files since it has to check the list of veto’d files every time a file is written. This is not a critical issue for shared drives where read time is often more important than write time, but its a consideration for the future if performance was ever to be of critical importance.

Wednesday, January 18, 2012

Preparing an application for distribution

Preparing an application for distribution
  • Knowledge needed: Objective-C, way around iTunes Connect, Xcode, Cocoa, iOS development
  • Requires: An iOS app, Xcode, Apple Developer Account (Paid iOS Developer)
  • Project time: 1 hour to set up beta team and 1 month for beta testing process

Creating an application can be extremely exciting for any developer but before you get your application published, you need to get it ready.

Getting an application on the App Store is an exciting moment in any developer’s career although despite the excitement – distributing your application to the App Store and to beta testers can pose somewhat confusing problems for even the most experienced developer – this article aims to point the budding App Store entrepreneur in the right direction to conquer both the Mac App Store and the iOS App Store.

Beta testing

The first thing one should consider – before even thinking about selling an application on any medium – is beta testing.
In my own experience, the hardest part of the whole beta process is actually ‘hiring’ people to test your app. I can guarantee that only about 40 per cent of the people you ‘hire’ will actually provide good, in-depth and useful feedback on your app for every beta release you push out. I have found that the best way to get people to beta test is to create a simple contact form on a website that you can quickly redirect people to (for example, website.com/beta). Ok, but how do I actually get traffic to my beta website? My simple answer to that would be: post about it – market it on forums and social networks. After that, there’s two main routes to take...
  • Beta Testing Option 1: Simple ad-hoc distribution. This option is possibly the least efficient of the two. Ad-hoc distribution is good if all you want is communication via email and don’t want anything too fancy. This option includes you simply creating a Provisioning Profile in the iOS Dev Center and adding your beta tester’s device UDIDs to it and then simply Archiving your application with the Distribution certificate and sending out the .ipa application via email and relying your testers to get back to you with screenshots, crash logs, feedback and comments manually. As I said, only about 40 per cent of all of your testers will get back to you with good, decent comments. Furthermore, with this method, testers then have to sync their provisioned devices with iTunes and sync the application as if it were any ordinary application.
Archiving your application within Xcode for App Store submission
Archiving your application within Xcode for App Store submission
  • Beta Testing Option 2: Using a third-party beta service. There are many services that allow you to up your IPA and have a testing team and these services usually allow you to see how people are using your application and what options their taking.
When beta testing I have learnt many lessons. I have learnt that even if you have hundreds of beta testers one of which is that no-one else using your application looks at it the same as you do – it’s like that old cliché: no-one cares about you, as much as you do – this is the same for your apps. I have also learnt that beta testing takes time and you shouldn’t anticipate a both reliable and accurate beta testing program if you want to be done with the testing within one week, regardless of the size and complexity of your application. What’s more, I have learnt that, during testing, your beta testers are the most important people in the world – you need to thank them for their ideas and comments constantly as they can potentially stop your application from going into the App Store and simply crashing and burning.
Right, the timely process of beta testing is done, now you need to submit your application. To start this process, you need to head over to itunesconnect.apple.com/ and select Manage Your Applications and then select the Add New App and follow the relevant steps to adding your application to iTC.
The main part of iTunes Connect where you manage your applications
The main part of iTunes Connect where you manage your applications
The screen within iTunes Connect when you’re adding a new application
The screen within iTunes Connect when you’re adding a new application
Adding a name to your application within iTunes Connect
Adding a name to your application within iTunes Connect
Once you’ve done this you now need to upload your application. You do this by changing your application to Ready to Binary Upload and then Archiving your app in Xcode and submitting it via the Organizer.
The Archives tab of the organizer
The Archives tab of the organizer
Now, this is where it gets really interesting. The only hurdle between you and App Store domination is Apple’s app review team and Apple’s app review process.
An application in review with the App Store review team
An application in review with the App Store review team
Once you’ve submitted your application to the App Store, you’ll find that for the majority of the time prior to your App Store release, your application state is Waiting for Review.
A small side-note, accordingly to some statistics released not that long ago by Apple, 95 per cent of new apps are fully reviewed within seven days and 98 per cent of application updates are reviewed within seven days so you should expect your application to be reviewed within seven days – that is, of course, you’re not part of the unlucky 5 per cent.
Interesting stats about the app review process
Interesting stats about the app review process
After a couple of days have elapsed, you’ll find that the state of your application changes to In Review – this is where all of your hard-work can truly pay off; on the other hand, this is where all of your hard-work can quickly become a waste of time. In the past, I have had an application rejected within one hour and I have had an application in the In Review state for about four days. In fact, I have an application right now that’s been in review for around three days.
If all doesn’t go to plan and your application, sadly, gets rejected, then the kind folks that rejected your hard-work provide a very in-depth description as to why your application was rejected as well as any crash logs and anything you should do to get your application accepted next time. Furthermore, if you’re completely stumped as to how to correct a specific problem, you can take advantage of your two free iTunes Technical Support requests – every developer gets two free support requests and Apple gives you a very qualified expert that will help you out with your problem!
However, if all does go well and your application does indeed get approved, you’ll find that the state of your application goes from In Review to Processing for App Store and then at last, Ready for Sale! That is, of course, providing you have all of your contracts in order – you will have to have all of your contracts in order if you want to get an application on the App Store – even if your application is free, you’ll need a contract in standing-order and you should also have all of your metadata is good, standing order because your application will get rejected if it’s not correct.
Having an app on the App Store does give the you, the developer, a great feeling! You’ve gone from putting your passion and boxing it into an app to be successfully approved by a notoriously frustrating app review team.
However, just because you’ve got an application on the App Store doesn’t mean you can stop worrying about the app. If you want to get good ratings and feedback, then you need to listen to your customers. I mean, these people have given you their money – the least you can do for them is listen to them.
I try to push out a ground-breaking new feature in my apps every month or two and I ensure that every two weeks I release a minor update, nothing I create is never truly finished and I always ensure that the apps I create are these living, breathing entities that people enjoy to use. So go ahead and create something amazing and go the extra mile to make each and every one of your customers go “wow”.

 

Monday, November 14, 2011

Top 5 Free Video Converters For Mac


Top 5 Free Video Converters For Mac
As Windows slowly loses its dominant market share in the operating system market, Apple’s Mac OS has been picking up the remains from Microsoft. With Mac’s presence in homes, offices, as well as its revolutionary laptops, there’s inevitable a percentage who want a free video converter that is compatible on the OS. It’ll only make sense, then, that we compile a list of the top five free video converters for Mac.

5. Any Video Converter


Any Video Converter (which is compatible with Mac OS X 10.4 Tiger, 10.5 Leopard, 10.6 Snow Leopard, as well as 10.7 Lion) is an accessible and simplistic free video converter for Mac; it can, the creators boast, convert almost any video formats – some of which are, in addition to other notable features:
  • ASF, AVI, MPEG1/2/4, WMV, MOV, MP4, 3G
  • Free YouTube Video Downloader
  • Supports multiple output devices
  • Convert videos in three simple steps

4. Mac Video Converter


Mac Video Converter allows users to convert video, as well as audio with – as promised by the developer – “perfect quality and high conversion speed” for those who own a Mac OS. Some of its supported formats, as well as other features include:
  • AVI, MP4, HD video, ACDHD, iMovie video, WMV, MPEG, FLV
  • Video Editor
  • Video Crop
  • Customize Video Quality easily
  • Supports batch conversion

3. Prism Video Converter Software


This free video converter for Mac comes highly recommended purely due to its multi-format conversion feature, as well as its simplistic and sleek interface which is easier to comprehend for users. Its supported formats and other features are:
  • AVI, MPG, VOB, ASF, WMV, MP4
  • Convert video files extremely fast (within minutes)
  • Compress video files which are too large, for example
  • Universal video converter which supports all popular formats
  • Batch video conversion

2. Leawo Video Converter for Mac


This particular video conversion program for Mac OS not only lets users convert videos, as well as audio which ranges from popular formats, but it also includes editing tools including cropping, rotation, trimming, as well as effect and watermark. Some of Leawo’s supported formats, as well as other notable features include:
  • ASF, AVI, DV, VOB, FLV, MOV, MP4, MPG, MPEG, RMVB, WMV, MKV, 3GP, 3G2
  • MKV to MP4, MKV to AVI, AVI to MP4, FLV to MKV, WMV to MOV
  • Rotate videos to a certain angle to achieve the required effect
  • Trim video duration to as little as milliseconds
  • Advanced video and audio settings for users

1. Kigo M4V Converter


Kigo has a slew of popular formats in its video conversion, but it also features – as its name suggests – a useful M4V video conversion tool. Some of its supported formats, as well as other features are:
  • AVI, MP4, MPEG TS/TP, 3GP, M2TS, MOV
  • Users can extract audio from M4V files, in addition to converting them to other formats
  • Batch conversion
  • Removes DRM from M4V to convert and consequently be playable on the iPhone and iPod