Skip to main content

Posts

Undo moving items to the trash

The main desktop operating systems today have provisions for putting files back to where they came from if it's determined that they were put in the trash by mistake. Mac OS X Option 1 From the Finder, Edit | Undo Move of "Filename" (Command + Z) Option 2 Open the Trash and locate the file to restore, then Right-click | Put Back . Ubuntu Using Ubuntu , there are three methods for restoring files that have been moved to the trash. Option 1 Assuming that a file browser window is open (Nautilus) and no other editing actions have taken place, choose Edit | Undo Trash . Option 2 Open the Trash window and choose Right-click | Restore on the file to put back to where it came from. Option 3 Open the Trash window, select the file to restore, and click the Restore button in the upper right corner of the window. Windows With Windows , there are two techniques. Option 1 From any Explorer window choose Edit | Undo .  Assuming the previous operati...

Set the iOS calendar Widget presentation in Notification Center

The calendar Widget in the Notification Center of Apple 's iOS will match the view in the iOS calendar application.  If the calendar view is set to the "agenda view," it will be the agenda view in the Notification center as well.  Likewise, the "day view" will be reflected in the widget too. The agenda view is selected in the iOS Calendar application. The day view is selected in the iOS Calendar application. It should be noted that the view selection in Apple's calendar application can only be made for the current day.

Oracle SQL Developer supports SQL Server via jTDS driver

Pardon the confusion with all the freely flung usage of the term SQL coupled with the vaguely descriptive "developer" and "server" terms.  This article describes the requirements for getting Oracle 's SQL Developer client to work with Microsoft 's SQL Server database manager. SQL Developer supports connections to SQL Server, but in spite of Microsoft providing its own JDBC driver , SQL Developer will only work with the jTDS driver.  Download that and point SQL Developer to it via: Tools | Preferences… Database | Third Party JDBC Drivers Point SQL Developer to the jTDS driver to use with SQL Server. If connections are being made from the Windows version and Windows authentication will be necessary, then the ntlmauth.dll library will need to be copied into the JDK directory: Copy from PATH_TO_JTDS\jtds-VERSION\PLATFORM\SSO\ntlmauth.dll Copy to JAVA_JDK_DIRETORY\jre\bin\ntlmauth.dll

Reveal files in gedit file browser view (Windows)

Use the filter option to show binary files to make the files available. Right + click in the File Browser tab's file listing area Select Filter | Show Binary Gedit , the open source text editor for Gnome , has a view in the side panel to browse the local file system.  It appears that the Windows version of the application has a bug that assumes all files to be binary, even if they carry a .txt filename suffix. The expected behavior is that text and source code files will be listed by default, and that this option will allow items like pictures and executable files to be shown as well.  Setting this flag can serve as a workaround.  Without it, only folders and files without filename suffixes will be shown. Gnome Bugzilla ( 578829 ) File Browser plugin can only show files with no extension on Win32 https://bugzilla.gnome.org/show_bug.cgi?id=578829

Several options for providing query parameters to 'queryExecute' function

The params argument of the queryExecute() function can be passed in a number of forms.  Using an object or a structure will allow named query parameters, while the array method necessitates the question mark (?) placeholders. Because of this difference, the SQL variable has been defined twice, once in each manner.  The query is run and the result is dumped in the final example. Object and structure methods // Params definition option 1. var sqlParams =     {         firstParam: "FIELD VALUE",         secondParam: "FIELD VALUE"     } // Params definition option 2. var sqlParams = structNew (); sqlParams . firstParam = "FIELD VALUE" ; sqlParams . secondParam = "FIELD VALUE" ; // Params definition option 3. var sqlParams = structNew (); sqlParams [ "firstParam" ] = "FIELD VALUE" ; sqlParams [ "secondParam" ] = "FIELD VALUE" ; var sql = "     declare @retur...

Resolve 'Detecting library folders' error in Eclipse

Eclipse maintains a directory at the root of a project with the name ".settings."  If, for whatever reason, Eclipse can't seem to find this directory, or the files in it, Eclipse will report an error vaguely stating a problem "Detecting library folders."  Removing the .settings directory will solve the problem. Presumably, Eclipse rebuilds any information it maintains in that directory, though it's not clear what the information is.  Assume that any arbitrary details that seem off might be associated with removing this folder. The "Detecting library folders" error dialogue window. Due to the non sequitur nature of the error, there isn't much context to work off of other than the "org.eclipse.wst.validation" identifier, and the "detecting library folders" pseudo-clue.  As such, there isn't much that comes back from searches around the web for solutions to the issue, but the combination of the three references...

Quickly reveal definitions in Eclipse PDT

Eclipse PDT (PHP Development Tools) has the ability to quickly show the definitions of functions and methods by hovering the cursor over the parentheses of a reference.  This feature is an extension of the typical docblock or signature reveal when hovering over a method or function call itself. It's not as easy to hover over a parenthesis as it is to hover over a function reference, so invoking the tip can be a little clumsy.  And there's another peculiarity with the feature too.  Typically, the inline popups like this are "focusable" by moving the mouse from a hover into the pop-up.  For these pop-ups though, they immediately disappear when moving away from the parentheses.  Instead, use the F2 key to focus the pop-up.  In spite of these usability matters, the feature is handy as a quick reference and is welcome. It's possible that other Eclipse plug-ins have a similar feature to, so in order to get an idea as to whether or not this is a featur...