WordPress Plugin Duplicator

We started to use the WordPress Plugin Duplicator and it looks very good! 🙂

“The Duplicator gives WordPress administrators the ability to migrate, copy or clone a site from one location to another.
The plugin also serves as a simple backup utility.
The Duplicator supports both serialized and base64 serialized string replacement.
If you need to move WordPress or backup WordPress this plugin can help simplify the process.
For complete details visit lifeinthegrid.com.”

see also: https://wordpress.org/plugins/duplicator/

Visual Studio 2013 Community edition – Free, Unrestricted Version Of Visual Studio For Small Teams

Microsoft launched the Community 2013 edition of Visual Studio, which essentially replaces the very limited Visual Studio Express version the company has been offering for a few years now.

There is a huge difference between Visual Studio Express and the aptly named Visual Studio 2013 Community edition, though: The new version is extensible, so get access to the over 5,100 extensions now in the Visual Studio ecosystem. It’s basically a full version of Visual Studio with no restrictions, except that you can’t use it in an enterprise setting and for teams with more than five people (you can, however, use it for any other kind of commercial and non-commercial project).

“The simple way to think about this is that we are broadening up access to Visual Studio,” Microsoft’s corporate VP of its Developer Division S. “Soma” Somasegar told me in an interview late last month. Somasegar told me that the Community Edition will allow you to build any kind of application for the Web, mobile devices, desktop and the cloud. “It’s a full features version of Visual Studio,” he noted. “It includes the full richness of the Visual Studio extensions and ecosystem.”
more info, here:
Installing Visual Studio Versions Side-by-Side:
http://msdn.microsoft.com/en-us/library/ms246609.aspx

Visual Studio 2013 Compatibility:
How to make Visual Studio 2010 + 2012 + 2013 coexist together?
http://stackoverflow atorvastatin 20 mg.com/questions/22876932/how-to-make-visual-studio-2010-2012-2013-coexist-together

Responsive Web Design – Test if your page is mobile friendly

There are several tools, you may find, to test if your page is mobile friendly but I think it’s also very important to get a good ranking at Google and maybe not yet but for sure in the future mobile friendliness will also be a big criteria ….

So I recommend using Google’s mobile friendliness test:

www.google.com/webmasters/tools/mobile-friendly

 

Responsive Web Design – Use Legible Font Sizes

  1. Configure the viewport to make sure fonts will be scaled as expected across various devices.
  2. Use a base font size of 16 CSS pixels. Adjust the size as needed based on the font used.
  3. Use sizes relative to the base size to define the typographic scale.
  4. Text needs vertical space between its characters and may need to be adjusted for each font. The general recommendation is to use the browser default line-height of 1.2em.
  5. Restrict the number of fonts used and the typographic scale: too many fonts and font sizes lead to messy and overly complex page layouts.

Responsive Web Design – Configure the Viewport

More and more people are surfing the internet by mobile phones, pads, … and of course this devices have different (smaller) screen sizes.

There are some general basics you have to follow to render your site(s) well on this new devices, all of this techniques is often called “Responsive Web Design”.

Let’s start with “Configure the Viewport”:

A viewport setting controls how a page is displayed on a mobile device. Without a viewport specified, mobile devices will render the page at a typical desktop screen width and scale them to fit the real screen width. The setting of “width=device-width” avoids this, the real width is used.

Some browsers will keep the page’s width constant when rotating to landscape mode, and zoom rather than reflow to fill the screen. Adding the attribute “initial-scale=1″ instructs browsers to establish a 1:1 relationship between CSS pixels and device independent pixels regardless of device orientation, and allows the page to take advantage of the full landscape width.
Resolution: Pages optimized to display well on mobile devices should include a meta viewport in the head of the document specifying “width=device-width” and “initial-scale=1”:
 <meta name=viewport content=”width=device-width, initial-scale=1″>

 

How to bring toolbars in a row using MFC (Microsoft Foundation Classes)

Normally you add Toolbars like this:

header file (‘MainFrm.h’):
………….
CMFCMenuBar m_wndMenuBar;
CMFCToolBar m_wndToolBar;
CMFCToolBar m_wndToolBar_Views3D;
CMFCToolBar m_wndToolBar_Export2D;
CMFCToolBar m_wndToolBar_Export3D;
………….

source file (‘MainFrm.cpp’):
………….
m_wndMenuBar.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar_Views3D.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar_Export2D.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar_Export3D.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockPane(&m_wndMenuBar);
DockPane(&m_wndToolBar);
DockPane(&m_wndToolBar_Views3D);
DockPane(&m_wndToolBar_Export2D);
DockPane(&m_wndToolBar_Export3D);
………….

But this results in showing every toolbar on a new row …. 🙁

<img class="size-medium wp-image-30" src="https://i1.wp.com/home.varlab.eu/wp-content/uploads/2015/12/DockPaneLeftOf_Not_Used.png?resize=300%2C171" alt="DockPaneLeftOf Not Used" srcset="https://i1.wp.com/home.varlab.eu/wp-content/uploads/2015/12/DockPaneLeftOf_Not_Used.png?resize=300%2C171 300w, https://i1.wp.com/home visite site.varlab.eu/wp-content/uploads/2015/12/DockPaneLeftOf_Not_Used.png?w=406 406w” sizes=”(max-width: 300px) 100vw, 300px” data-recalc-dims=”1″ />
DockPaneLeftOf Not Used

It’s very simple to change this to having all toolbars in one row,
just replace the code above (in ‘MainFrm.cpp’) with this one:

source file (‘MainFrm.cpp’):
…………. 
m_wndMenuBar.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar_Views3D.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar_Export2D.EnableDocking(CBRS_ALIGN_ANY);
m_wndToolBar_Export3D.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockPane(&m_wndMenuBar);
DockPane(&m_wndToolBar_Export3D);
DockPaneLeftOf(&m_wndToolBar_Export2D, &m_wndToolBar_Export3D);
DockPaneLeftOf(&m_wndToolBar_Views3D, &m_wndToolBar_Export2D);
DockPaneLeftOf(&m_wndToolBar, &m_wndToolBar_Views3D);
………….

Now you have it in one row …. 🙂

DockPaneLeftOf Used
DockPaneLeftOf Used

 

Using ‘_MSC_VER’ to check Microsoft Visual Studio version

If you develop applications for Windows using a Microsoft Visual C++ Compiler,  you may use the macro ‘_MSC_VER’ to check what compiler (version) you are using my latest blog post. Newer compilers have more possibilities of course or (more worse) things have just changed. So if you want (or must) support older ones you have to split your code.

The (current) values are:

MSVC++ 12.0 _MSC_VER = 1800 (Visual Studio 2013)
MSVC++ 11.0 _MSC_VER = 1700 (Visual Studio 2012)
MSVC++ 10.0 _MSC_VER = 1600 (Visual Studio 2010)
MSVC++ 9.0  _MSC_VER = 1500 (Visual Studio 2008)
MSVC++ 8.0  _MSC_VER = 1400 (Visual Studio 2005)
MSVC++ 7.1  _MSC_VER = 1310 (Visual Studio 2003)
MSVC++ 7.0  _MSC_VER = 1300 (Visual Studio 2002)
MSVC++ 6.0  _MSC_VER = 1200
MSVC++ 5.0  _MSC_VER = 1100

And here is a simple example how to use it:

#if (_MSC_VER >= 1600)  /*Visual Studio 2010*/
typedef /*unsigned*/ char mychar8; /**< defines the utf-8 character type. */
typedef wchar_t mychar16; /**< defines the utf-16 character type. */
#else /*(_MSC_VER >= 1600)*/
typedef /*unsigned*/ char mychar8; /**< defines the utf-8 character type. */
typedef unsigned short mychar16; /**< defines the utf-16 character type. */
#endif /*(_MSC_VER >= 1600)*/

How to do a screen shot (screen capture, print screen) on Mac OS X

Since several month now I am working on a MacBook Pro.

Mostly using Windows 7, first via Boot Camp now via Parallels.
But I am also using more and more it’s native operating system
(Mac OS X Version 10.6.8) and also Mac OS Applications atorvastatin calcium 40 mg.

The first trivia I had to check out was how to do a “screen shot”
(“screen capture”, “print screen”) – I found this very simple ways:

Screen shot of complete desktop:

  • Hold down ‘Shift key’‘Apple key
  • Press ‘Key 3’
  • Done – you will find the picture on your desktop
Screen shot of part of desktop:
  • Hold down ‘Shift key’ + ‘Apple key 
  • Press ‘Key 4’
  • The cursor will change to a ‘cross selection’-style
  • Select any portion of the screen (with two clicks)
  • Done – you will find the picture on your desktop
Screen shot of a application window:
  • Hold down ‘Shift key’ + ‘Apple key 
  • Press ‘Key 4’
  • Press ‘Space Bar’
  • The cursor will change to a ‘camera’-style
  • Select the application window (one click)
  • Done – you will find the picture on your desktop
And yes, this is very very easy to do ! 🙂
(On Windows 7, I mostly use the ‘Snipping Tool’)

How to use your Android phone as a Wi-Fi hotspot — for free | Computerworld Blogs

Just found this – it’s worth checking it:

<a title="How to use your Android phone as a Wi-Fi hotspot " href="http://blogs.computerworld atorvastatin price.com/smartphones/20726/android-wifi-hotspot” target=”_blank”>How to use your Android phone as a WiFi hot spot — for free | Computerworld Blogs

but keep in mind this may be illegal – so it’s on your own risk!