Category: Quick Tips

Quick little tips about stuff

This section contains short little posts and links to other websites with “quick tips” that don’t really need a whole post about them. In some cases they more or less replicate what is in online documentation but are used to bring attention to little known functions etc that my regular readers may not know about; or for quick personal reference.

Searching Gmail by date

This is a quick post for my own reference to show how to search Gmail by date range. I often write little tips like this for myself so I have somewhere easy to reference them as I forget this sort of stuff all the time ??

Server emails and purging the old ones

I get a lot of emails from servers addressed to a specific email address sending reports and all sorts of other stuff. I have filters in Gmail to put them into a specific folder automatically, skipping the inbox and I never actually see them. Emails reporting errors don’t get filtered in the same way so those always hit my inbox.

So these error emails are pretty much just there in case I need to look at them for some reason. Every now and then I like to purge out older server emails and the easiest way is to search for them by date range and then delete.

Searching by label and date range

These server emails get filtered into a label called “Servers”. To search for them prior to e.g. May 1st 2011 (so all emails from April 30th and earlier) do a search like this: 

label:servers before:2011/05/01

If you wanted to search for any email between say May 23rd and May 29th 2011, do this:

after:2011/05/23 before:2011/05/30

Note that the “after” date needs to be the date searching from (it includes that date) but “before” needs to be the day after you want to search to.

Read More ?

Netbeans Quick Tip: How to use tabs not spaces

If you are like me and you prefer to have tabs and not spaces for code indentation and are using Netbeans, it uses spaces by default. This quick little post shows how to use tabs instead.

Use tabs not spaces for code indentation in Netbeans

Go to Netbeans -> Preferences -> Editor -> Formatting on aMac
or Tools -> Options -> Editor -> Formattingon Windows

Uncheck the box that says “Expand tabs to spaces”

If you don’t like the default 8 spaces for a tab then change the “Number of spaces per indent” option as well to a more sensible number like 4.

Click “OK” and you are done.

Read More ?

How to refresh the projects file tree in NetBeans

This issue has been bugging me for a while and I just worked out how to solve it: if you’re using NetBeans and add some files to the project outside NetBeans (like copying and pasting in Finder/Explorer) then they don’t show up in the list of files in the projects tree view.

Read More ?

Fix “the operation can’t be completed because you don’t have permission to access some of the items” error on OSX

I run my webserver and file server from a virtual machine with the files shared using Samba (yes, now that I’m running on OSX I should really share the files with NFS but that’s for another day). When trying to copy files from the Mac to the Samba share I was getting the error message "The operation can’t be completed because you don’t have permission to access some of the items".

Read More ?