Archive

Archive for the ‘delphi’ Category

VirtualBox - Sharing

August 14th, 2009 sadegh 2 comments
VirtualBox

VirtualBox


VirtualBox OSE 2.1.4 comes along with Ubuntu jaunty jackalope.
Its a great virtualing solution but one part of it may bother you and that is Sharing.
Actually Sharing files & folders is not that much hard or annoying but sometimes it can be and it really bothered me.
I installed windows xp in virtual box easily and just wanted to share my folders with it. So under Devices menu I choosed Shared Folders and I added folder which I wanted to be shared but it did not work , after some googling I noticed that I should install Guest Addition ( its also an Item in Devices menu ) so I selected Install Guest Additions and It downloaded and asked me whether I want it to mount to my virtual machine and I just selected YUP.

Devices menu

Devices menu

But when I clicked on my cd drive on virtual machine it said that “windows cannot read from this disk the disk might be corrupted or it could be using a format that is not compatible with windows”
I googled more and more and it seemed that I am the only person on earth having this issue
in a thread in Ubuntu Forums one of the post contained the virtual box download link , I thought that I should get a new and clean version of virtual box and install it from scratch so I clicked on that link and suddenly instead of starting Kget firefox opened a page that contained a big forbidden message. Afterward I realized that because my ip address is from Iran and VirtualBox is a Sun product so they forbided me as an iranian to download their package , and more importantly I realized that windows was saying can not read the mounted disc because it was not actually a image of a disc but it was a html page that contained forbidden message coz when I click install guest addition it also try to download it from sun web site , instead of package it just download a forbidden web page.
Eventually I found a alternative link to download it and now it works great

ps : download Guest Addition 2.1.4 from here : http://www.dward.us/software/VBoxGuestAdditions_2.1.4.iso

Delphi Short Cuts

May 30th, 2009 sadegh No comments

Last night i started using delphi again , but this time delphi 2009
Its a really speedy and light weight IDE in comparison to Visual Studio
But i dont like its code editor , specially delphi color highlight and becoz i use ViEmu in visual studio , i really missed it when i started coding in delphi so i googled and i found some good Delphi short-cuts which you can use :

  1. ESC selects the parent control of the current selected control in the designer.
  2. Ctrl+Drag the mouse to select a group of controls without selecting/moving the parent. When controls are in a panel for example.
  3. Shift+Arrows to resize controls.
  4. Ctrl+Arrows to move controls.
  5. CTRL+SHIFT+I indents selected code CTRL+SHIFT+U unindents selected code
  6. CTRL+K+N converts the selection to UPPERCASE CTRL+K+O to convert it to lowercase
  7. CTRL-J invokes live templates
  8. CTRL + Shift + C generates method header from body description and vice-versa.
  9. CTRL + Shift + Space gives a hint with method signature when editing a method call
  10. Ctrl-Shift-0 .. Ctrl-Shift-9 sets marker (or clears if caret is in marked line)
  11. Ctrl-0 .. Ctrl-0 jumps to marker
  12. Ctrl-Shift-Enter finds references for current symbol (where caret is) in the project
  13. CTRL+SHIFT+G to generate / insert a new GUID at the cursor position
  14. CTRL+ALT+P to activate Pallete Window and do component filtering depend on the text you entered
  15. Press Ctrl+Shift+R to begin recording a macro.
  16. To play back the macro, press Ctrl+Shift+P.
  17. Ctrl-Shift + Up/Down jumps between declaration and implementation of a routine
  18. Alt+End: to navigate through opened windows in the IDE (undocked view).
  19. Ctlr+Y: to delete the current line
  20. Alt+Up: same as Ctrl+Click or Find declaration
  21. Alt+Arrow Left/Right: navigate through your ‘Find declarations’
  22. Ctrl + Alt + F12 opens up the top-right dropdown menu of opened units
  23. CTRL+SHIFT+V - Declare variable
  24. CTRL+SHIFT+E - Rename identifier
  25. CTRL-E for “search-as you type”

Categories: delphi, short-cut Tags: