Skip to main content

Posts

When will Ubuntu clean up after updates?

It may be unfair to single-out Ubuntu in this issue, since it may also be an issue with other distributions as well.  Regardless, it is 2016 and it seems noteworthy that the annoying "Not enough free disk space" error during regular updates is still a thing. In the faint chance that there are those who are unaware of this scenario, this is it.  The Software Updater application gathers the next round of updates.  Upon application, the following error message is encountered. The error suggests running apt-get clean to resolve the issue. The error suggests running the clean option against the apt-get command, which seems to be something of a red herring, as it does nothing.  Instead, the following will take care of things. From the command line: dpkg --get-selections | grep linux-image This will list all the current kernels that are hogging up the /boot directory. Run the following to remove unused kernel packages. sudo apt-get purge UNUSED-KERNEL...

Quick way to show documentation in NetBeans

Holding the control key [command key in Mac OS X] in NetBeans will mark functions, methods, and variables with an underline.  Holding the key and hovering over functions and methods will reveal their documentation in a sort of tool tip, if such documentation is available.  This is in addition to opening the documentation panel with the Control + Shift + Space key combination. Function documentation on usage with Control + Hover. The presentation of the documentation tip is available with the Control + Hover event on method definitions as well as their usage.  Oddly however, it's not available with function definitions.  With function definitions, the IDE presents a brief, and unhelpful tool tip just identifying the function and the file it belongs to. Function documentation on definition with Control + Hover.  Note that nothing meaningful is rendered as it is with the usage example. It should be noted, that the details identified here ar...

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...