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

Archive for 2015

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 »

DanielRapp/doppler

Posted by jpluimers on 2015/03/28

Look ma: no mouse! DanielRapp/doppler. Detecting motion with your built-in computer speakers and microphone using the Doppler effect.

Cool!

–jeroen

Posted in Algorithms, Development, Software Development | Leave a Comment »

Nieuwe publieke WiFi van @DeWaterkanten is best snel

Posted by jpluimers on 2015/03/28

Voor de verhuizing van het Sportfondsen zwembad van van Sportcentrum de Lis naar Sportcomplex de Waterkanten was het publieke WiFi internet daar niet vooruit te branden.

Na de verhuizing gelukkig wel: grofweg 40/10 Mbps downstream/upstream.

De verbinding loopt via Ziggo Zakelijk:

Nu de draadloze PIN apparatuur nog, want die doet het niet.

Gelukkig doet het bedrade PIN apparaat het wel (:

–jeroen

via: Who is my ISP? – Find your Internet Service Provider.

Posted in Power User | Leave a Comment »