Skip to main content

Posts

WooCommerce REST API with Ionic Framework

Step 1 : Enabling REST API To enable the REST API within WooCommerce, visit the WooCommerce > Settings > API tab and tick the Enable REST API checkbox. Step 2 : Generating API keys The WooCommerce REST API works on a key system to control access. These keys are linked to WordPress users on your website. To create or manage keys for a specific WordPress user, go to WooCommerce > Settings > API > Keys/Apps. To get started, select Add Key. Select the User you would like to generate a key for in the User field and add a Description. Choose the level of access for this API key, which can be Read access, Write access or Read/Write access. Then select the Generate API Key button and WooCommerce will generate API keys for that user. Now that keys have been generated, you should see two new keys, a QRCode, and a Revoke API Key button. These two keys are your Consumer Key and Consumer Secret. Place your consu...

Picking A Mobile Technology Stack

There are many ways to create an app but we want to examining the importance and adoption level of different tools and tool-stacks to create a mobile application. The new mobile tec hnology stack includes everything from traditional technologies such as backup and data loss prevention to emerging application development platforms and management suites. Typically, every mobile app project requires consideration based on its own merits. If the apps are specialized enough to require Native iOS and Android/Java development skills, some portion of these can be made in-browser web apps optimized for mobile. Some of the following consideration get matters to design mobile application stack Front end and Services support Pick a technology solution that supports your front end (UI) and middleware needs. Most all mobile apps have a UI component and a services tier. Based on their origins, certain software tools tend to have strengths in one area vs another. ...

What exactly means MVW design pattern ?

What is a MVW framework? The abbreviation stands for 'Model - View - Whatever'.  Well there are many different JavaScript frameworks available , all invented for the same purpose. They all try to separate the presentation logic from the business logic where JavaScript holds the model and logic, and html the presentation layer. Quick overview : You can change the model without changing the view and vice-versa Unit testing is easy These are the core benefits of using such a framework. By separating presentation and business logic changes to the code are easier to implement and take less time. Another benefit is that code can be reused from a controller thus saving more time. Angularjs makes the code also shorter in comparison to other frameworks, which improves code stability. Less code means minor potential for bugs. For several years +AngularJS was closer to MVC (or rather one of its client-side variants), but over time and thanks to many refactorings...

How to pin Eclipse to the linux launcher?

First, create a .desktop file to eclipse: gedit ~/.local/share/applications/opt_eclipse.desktop Then, paste this inside (dont forget to edit Exec and Icon values): [Desktop Entry] Type=Application Name=Eclipse Comment=Eclipse Integrated Development Environment Icon=** something like /opt/eclipse/icon.xpm ** Exec= ** something like /opt/eclipse/eclipse ** Terminal=false Categories=Development;IDE;Java; StartupWMClass=Eclipse After that, open that folder with nautilus: nautilus ~/.local/share/applications If you want to use this launcher outside dash/launcher (ex: as a desktop launcher) you need to add execution permission by right clicking the file and choosing Properties -> Permissions -> Allow execution , or, via the command-line: chmod +x ~/.local/share/applications/opt_eclipse.desktop Finally drop opt_eclipse.desktop to launcher.

Sharding Methods For MongoDB

Sharding Introduction Sharding is a method for storing data across multiple machines. Sharding , or horizontal scaling , by contrast, divides the data set and distributes the data over multiple servers, or shards . Each shard is an independent database, and collectively, the shards make up a single logical database. Sharding in MongoDB MongoDB supports sharding through the configuration of a sharded clusters . Components in Sharded Cluster : Shard Query Routers Config Servers Shards store the data. To provide high availability and data consistency, in a production sharded cluster, each shard is a replica set . Query Routers , or mongos instances, interface with client applications and direct operations to the appropriate shard or shards. The query router processes and targets operations to shards and then returns results to the clients. A sharded cluster can contain more than one query router to divide the client request load. A client sends ...