The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Keyboards, logo keys CUA and a some more history…

Posted by jpluimers on 2015/04/06

My response to the comments in Cut and Paste Files & Folders in Mac OS X got a bit took long. So here is it in an article:

Indeed. CUA. The days (:
I’ll write more about CUA in the future (there is some CUA site:wiert.me stuff from the past) as it defines a lot of modern UI and user experience.

In fact the history of Ctrl-C and Command-C goes back until before System 1 (the OS for the first Macintosh) which indeed had the Open Apple Key shortcuts, but didn’t introduce them.

The Command Key was introduced in the Apple III and became more popular in the Apple //e and //c (I own both) where AppleWorks was already using these shortcuts in 1986.

It is funny to notice that Apple keyboards lost their logo keys but Windows keyboards gained them.

Some Apple keyboard pr0n can be found on Wikipedia.

–jeroen

Posted in 6502, History, IBM SAA CUA, Keyboards and Keyboard Shortcuts | 1 Comment »

Mac OS X: Open a Terminal at Folder from Finder / Open Finder at Folder from the Terminal (via: StackOverflow)

Posted by jpluimers on 2015/04/06

Thanks User Chris Page – Stack Overflow for answering on StackOverflow:

  • How to open a Terminal from a selected Folder in the Finder
  • Hoe wo open a Finder at the current Folder in a Terminal

Some quotes of his answer:

As of Mac OS X Lion 10.7, Terminal includes exactly this functionality as a Service. As with most Services, these are disabled by default, so you’ll need to enable this to make it appear in the Services menu.

System Preferences > Keyboard > Keyboard Shortcuts > Services

Enable New Terminal at Folder. There’s also New Terminal Tab at Folder, which will create a tab in the frontmost Terminal window (if any, else it will create a new window). These Services work in all applications, not just Finder, and they operate on folders as well as absolute pathnames selected in text.

In addition, Lion Terminal will open a new terminal window if you drag a folder (or pathname) onto the Terminal application icon, and you can also drag to the tab bar of an existing window to create a new tab.

Finally, if you drag a folder or pathname onto a tab (in the tab bar) and the foreground process is the shell, it will automatically execute a “cd” command. (Dragging into the terminal view within the tab merely inserts the pathname on its own, as in older versions of Terminal.)

You can also do this from the command line or a shell script:

open -a Terminal /path/to/folder

This is the command-line equivalent of dragging a folder/pathname onto the Terminal application icon.

–jeroen

via: osx – Open terminal here in Mac OS finder – Stack Overflow.

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | 2 Comments »

Pushing poisoned style sheets into documents to XSS into GMail via copy and…

Posted by jpluimers on 2015/04/03

Scary:

Pushing poisoned style sheets into documents to XSS into GMail via copy and paste.

“Affected” office software

  • Office 2013, LibreOffice and similar tools, PDF Reader, FoxIT Reader
  • They can be used to poison the clipboard with malicious markup

Affected browsers

  • Just MSIE, Chrome, Opera, Safari, Firefox, anything WebKit or Blink.
  • Strangely, Blink on Windows behaves differently from Blink on *nix

Flash can be used to attach as well.

Details: https://insomnihackdotme.files.wordpress.com/2015/03/copypest.pdf

Thanks Kristian for posting.

–jeroen

via:

Posted in Uncategorized | Leave a Comment »

How To Get 36 TB Free Cloud Storage From Qihoo 360 Yunpan (Cloud Drive)?

Posted by jpluimers on 2015/04/03

Interesting:

To remove the language barrier, we have written a detailed step-by-step procedure to get the 36 TB free cloud storage from Qihoo 360 Cloud Drive.

For all those MSDN and TechNet ISOs that aren’t available on-line any more (:

–jeroen

via: How To Get 36 TB Free Cloud Storage From Qihoo 360 Yunpan (Cloud Drive)?.

Posted in Cloud Apps, Internet, Power User | Leave a Comment »

Increasing your Windows NTFS disk size under VMware ESXi

Posted by jpluimers on 2015/04/03

A really long time I wrote about Increasing your Windows XP NTFS disk size under VMware Workstation 7.

I totally forgot that article also included a link to do the same on ESXi the old fashioned style. The tool you needed back then (and still works) there is vmkfstools (the ESXi version, not the vCLI version), and use it like this to extend the VMDK disk to 60 gigabyte:

vmkfstools --extendvirtualdisk 60G /vmfs/volumes/datastore_name/vm_name/disk_name.vmdk

You can replace --extendvirtualdisk with -X.

However, nowadays you can do the same from the vSphere Client as explained by David Davis at How to Extend a vSphere Windows VM Disk Volume.

After that you follow the steps in the original article to increase the partition size inside Windows.

As of Windows Vista, this has become much easier, so there you go.

–jeroen

Read the rest of this entry »

Posted in ESXi5.1, ESXi5.5, Fusion, Power User, VMware, VMware ESXi | Leave a Comment »

Developer Assistant for Visual Studio with access to millions of code samples- via: Google+

Posted by jpluimers on 2015/04/02

I’m going to experiment with this. Most likely the quality of the code samples will be the biggest factor in like/dislike result.

Visual Studio – Google+.

–jeroen

Posted in .NET, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development, Visual Studio 2010, Visual Studio 2013, Visual Studio 2014, Visual Studio and tools | 1 Comment »

When Delphi documentation hurts: REST.Response.Adapter.TRESTResponseDataSetAdapter – RAD Studio API Documentation

Posted by jpluimers on 2015/04/01

A lot of the stuff on the Embarcadero docwiki hurts. For instance most of the REST stuff (I’m not calling it documentation) is just generated scaffolding. Like REST.Json.TJson.

But the TRESTResponseDataSetAdapter has some amazing documenation. About TComponent that is:

TComponent is the common ancestor of all component classes.

TComponent is the base class for all components. Components are persistent objects that have the following capabilities:

IDE integration. The ability to appear on an IDE palette and be manipulated in a Form Designer.

Ownership. The ability to manage other components. If component A owns component B, then A is responsible for destroying B when A is destroyed.

Streaming and filing. Enhancements of the persistence features inherited from TPersistent.

To assist the doc team: this is a query for all pages containing “TComponent is the common ancestor of all component classes.”. Feel free to [WayBack] QC or QP it.

–jeroen

via: REST.Response.Adapter.TRESTResponseDataSetAdapter – RAD Studio API Documentation.

Posted in Delphi, Development, Fun, QC, Software Development | 2 Comments »

Some ICACLS & SubInACL.exe notes

Posted by jpluimers on 2015/03/31

Icacls.

The icacls tool is limited to files and directories, while subinacl managed services and registry as well.

For services (and registry?), you may want to try GPO:  http://support.microsoft.com/kb/256345

To script a solution, the best I could find in my search is to use Set-Acl: http://technet.microsoft.com/en-us/library/hh849810.aspx

via SubInACL.exe for Windows 7.

You will need to run ‘Subinacl Tool’ to reset the permission to normal. To reset system permissions, follow the steps:

1.       Download subinacl.msi from the following link, and save it on the desktop.

SubInACL

2.       On the desktop, double-click subinacl.msi to install the tool.

3.       Select C:WindowsSystem32 as the destination folder.

Note This step assumes that Windows is installed in C:Windows. If Windows is installed elsewhere, select the appropriate path to .System32.

4.       Open Notepad.

5.       Copy the following commands and then paste them into the opened Notepad window.

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f

subinacl /subdirectories %SystemDrive% /grant=administrators=f

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f

subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f

subinacl /subdirectories %SystemDrive% /grant=system=f

6.       In Notepad click File, Save As, and then type: reset.cmd

7.       In Notepad click Save as type, and then select All Files (.).

8.       Save the reset.cmdfile to your desktop, and close Notepad.

9.       Double-click the reset.cmdfile to reset the Windows Update permissions.

Note This step may take several minutes, so please be patient. When the permissions have been reset, you will be prompted with \”Finished, press any key to continue.\”

10.    Press any key to complete the installation.

Check if you have the right permissions to all the folders for all users.

For more information you may check the article given below. The article given is for Windows XP updates, but still holds good for Windows Vista as well as Windows 7.

http://support.microsoft.com/kb/968003

via How to reset all user permissions to default? – Microsoft Community.

Posted in Power User, Windows | 1 Comment »

BitSavers.org just added 7 missing scans of PascalNews newsletters (1975…1983)

Posted by jpluimers on 2015/03/30

For anyone keeping up with Pascal history, these uploads are new:

–jeroen

via: Index of /pdf/pascalNews.

Posted in Apple Pascal, BitSavers.org, DEC Pascal, Delphi, Development, History, IBM Pascal, Pascal, Software Development, Standard Pascal, Turbo Pascal, UCSD Pascal | Leave a Comment »

Setting the SMB/Netbios name of your Mac

Posted by jpluimers on 2015/03/30

Even after changing the name of your Mac, from the Windows side it still looks like this:


C:\Users\developer>net view
Server Name Remark
——————————————————————————-
\\MACBOOKPRO-4C7F Jeroen's MacBook Pro
The command completed successfully.

I knew I had solved this in the past, as the MacBook Air showed up correctly in the list:


C:\Users\developer>net view
Server Name Remark
——————————————————————————-
\\MACBOOKPRO-4C7F Jeroen's MacBook Pro
\\MBAIR133JWP MBAIR133JWP
The command completed successfully.

The trick is that there are 2 names for your Mac: the name for the Apple side of things, and the name for the Windows side of things. For the latter you’d think it would be named SMB or NetBIOS. Read the rest of this entry »

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, SpotLight | Leave a Comment »