What ways are out there to display a desktop notification from a web app?

Below is a working example of desktop notifications for Chrome, Firefox, Opera and Safari, copied from Chrome desktop notification example. Try it live on JSBin. // request permission on page load document.addEventListener(‘DOMContentLoaded’, function () { if (Notification.permission !== “granted”) Notification.requestPermission(); }); function notifyMe() { if (!Notification) { alert(‘Desktop notifications not available in your browser. Try … Read more

Which embedded database to use in a Delphi application?

I’m using Firebird 2.1 Embedded and I’m quite happy with it.I like the fact that the database size is practically unlimited (tested with > 4 GB databases and it works) and that the database file is compatible with the Firebird Server so I can use standard tools for database management and inspection. Distribution consists of … Read more

PowerShell Desktop Variable

You can use the Environment.GetFolderPath() method to get the full path to special folders: $DesktopPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop) This can be shortened to: $DesktopPath = [Environment]::GetFolderPath(“Desktop”) You can also get the “AllUsers” shared desktop folder (if the shortcut file is shared among all users): [Environment]::GetFolderPath(“CommonDesktopDirectory”) Check out the full list of values for the SpecialFolder Enum.

How to get Desktop location?

On Unix or Linux: import os desktop = os.path.join(os.path.join(os.path.expanduser(‘~’)), ‘Desktop’) on Windows: import os desktop = os.path.join(os.path.join(os.environ[‘USERPROFILE’]), ‘Desktop’) and to add in your command: shutil.copy(txtName, desktop)

What’s the difference between SpecialFolder.Desktop and SpecialFolder.DesktopDirectory?

Answer to original question A directory is a location in the file system. A folder is a location in the shell namespace. A directory is a kind of folder. A virtual folder is not necessarily backed by a directory. For example consider libraries or search folders. The user’s desktop directory is a location in the … Read more