Please help Ukrainian armed forces! Official Fundraising

cJSON: Lightweight JSON parser

1 1 1 1 1 cJSON: Lightweight JSON parser5.00Rating 5.00 (518 Votes)

If you are searching for cJSON usage samples, or example code that you can just copy-paste into your C project, you came to the right place. 

cJSON is one of the simple JSON parser that you can get your job done with. It's a single file of C, and a single header file.

JSON is described best here: http://www.json.org/ It's like XML, but fat-free. You use it to move data around, store things, or just generally represent your program's state.

As a library, cJSON exists to take away as much legwork as it can, but not get in your way. 

There are several ways to incorporate cJSON into your project, one of them is just copying the source.

Because the entire library is only one C file and one header file, you can just copy cJSON.h and cJSON.c to your projects source and start using it.

cJSON is written in ANSI C (C89) in order to support as many platforms and compilers as possible.

Read more: cJSON: Lightweight JSON parser

How to Install APK to Android Device via ADB in 6 simple steps

1 1 1 1 1 How to Install APK to Android Device via ADB in 6 simple steps5.00Rating 5.00 (915 Votes)

1. Download and install android platform tools: https://developer.android.com/studio/releases/platform-tools.html

2. Open command line and navigate to the folder where ADB is located, eg. cd /D d:\Android\sdk\platform-tools\

3. Type adb devices and press ENTER.

Read more: How to Install APK to Android Device via ADB in 6 simple steps

How To Upload Directory Tree To Remote FTP Server Recursively in Linux

1 1 1 1 1 How To Upload Directory Tree To Remote FTP Server Recursively in Linux5.00Rating 5.00 (636 Votes)

When you host your web site remotely and the ftp server is the only way to upload all files including subdirectroies. You need to use special file transfer program such as ncftpget or ncftpput for recursive remote ftp server uploading and downloading purpose. Ncftp is considered as an improved FTP client. Ncftp's improvements include support for command line editing, command histories, recursive gets/puts, automatic anonymous logins, and much more.

1. Install ncftp client

Type the following command under Debian/Ubuntu Linux to install ncftp client:
$ sudo apt-get install ncftp

Read more: How To Upload Directory Tree To Remote FTP Server Recursively in Linux

Android WebView transparent background for Android 2.3 and up

1 1 1 1 1 Android WebView transparent background for Android 2.3 and up5.00Rating 4.96 (666 Votes)

Many people face an issue with Android's WebView and transparent background. The problem is that if you need to make transparent background for the WebView, it is not easy to do at the first sight. If you try to use property android:background="@android:color/transparent", you will discover that it just don't work as expected. The background is still opaque. Using background color set explicitly as #ff000000 constant sometimes work and sometimes not. 

Read more: Android WebView transparent background for Android 2.3 and up

Windows XP: How to Change Power Options When No User is Logged on

1 1 1 1 1 Windows XP: How to Change Power Options When No User is Logged on5.00Rating 5.00 (363 Votes)

HKEY_USERS\.Default stores the profile used when no users are logged on to the computer (such as when the CTRL+ALT+DELETE logon prompt is displayed).

HKEY_USERS\.DEFAULT\Control Panel\PowerCfg
Value Name: CurrentPowerPolicy
Data Type: REG_SZ
Value Data: 0 thru 5

Read more: Windows XP: How to Change Power Options When No User is Logged on

Fixing Magento error "[unknown object].fireEvent()"

1 1 1 1 1 Fixing Magento error "[unknown object].fireEvent()"5.00Rating 5.00 (475 Votes)

Recently I've encountered the following Javascript error in my Magento store:

error: error in [unknown object].fireEvent():
event name: address_country_changed
error message: zipElement.up(...).down(...) is undefined

This error pops out when creating the order from admin panel and entering customer shipping address. It pops out when editing every filed in the address, which is quite annoying.

Regarding to this forum post, this has something to do with defining the zip code as not required filed in the database. Specialists recommend to set zip code as required filed in the database and then setting it as not required on the country basis. But people report that setting so will still not make zip code as optional field.

So I decided to do my own fix. Here it is:

Read more: Fixing Magento error "[unknown object].fireEvent()"

Premius Free Simple Shipping Magento Extension

1 1 1 1 1 Premius Free Simple Shipping Magento Extension5.00Rating 5.00 (355 Votes)

We are glad to annouce our free Magento Simple Shipping Extension. This extension allows you to add up to 10 fixed price shipping methods to your Magento shopping cart. Easy to use and self-explanatory.
Link to extension: http://www.magentocommerce.com/magento-connect/premius-simpleshipping-3960.html

Direct download link: Premius_Simpleshipping-1.2.1.tgz

To install, use Magento Connect Manager or directly unpack the ‘app’ and ‘skin’ folders to the root of your Magento installation. After installation, a cache cleanup and Admin re-login may be required.

icon

Read more: Premius Free Simple Shipping Magento Extension

Steve Ballmer is Going to Retire

1 1 1 1 1 Steve Ballmer is Going to Retire5.00Rating 5.00 (916 Votes)

Microsoft CEO Steve Ballmer is going to retire within the next 12 months, the company announced early Friday. This will happen when a replacement is found.

Ballmer said: "There is never a perfect time for this type of transition, but now is the right time. We have embarked on a new strategy with a new organization and we have an amazing Senior Leadership Team. My original thoughts on timing would have had my retirement happen in the middle of our company’s transformation to a devices and services company. We need a CEO who will be here longer term for this new direction.”

Microsoft also announced it has appointed a special committee to head up the process of finding a replacement for Ballmer. The company's stock shot up by nearly 9% in pre-market trading following the news.

This news about Ballmer retirement come barely one month after Ballmer led a massive reorganization of the company in an attempt to bring all divisions under one unified vision.

Source

How to create .zip files in Ubuntu Linux

1 1 1 1 1 How to create .zip files in Ubuntu Linux5.00Rating 4.90 (411 Votes)

On a Windows machine, creating a zip archive is very easy: you can right-click on a file or folder, open "Send" menu and then click "Compressed ZIP folder". Or, you can use more advanced archivers like 7-Zip archiver, or WinRAR archiver. Their interface is quite self-explanatory, and easy to use.

But sometimes, you need to create a .zip archive on a Linux machine. This is required when doing a website backup, before downloading large number of files and other tasks.

To create .zip files in Ubuntu Linux, in the command line type:

zip -r archive-name directory-name

This will create archive named "archive-name.zip" and add directory-name directory to it, including all subdirectories.

For example, to create an archive of directory /home/user/www, issue the following command:

zip -r ./www1.zip /home/user/www

This will create www1.zip file in the current directory and add the contents of folder /home/user/www including all subdirectories to this archive.

See complete usage of zip command in Linux here

Or, you can order entire custom Linux software development from IQ Direct Inc.

 

How to use Lightbox popup in Joomla

1 1 1 1 1 How to use Lightbox popup in Joomla5.00Rating 4.98 (342 Votes)

This article will show how to display lightbox popup with image, input form or any other content using Joomla built-in functionality. 

For example, you can display contacts form on it.

lightbox1

Joomla 2.5 already has built-in Lightbox functions, you can use them any time in any article or module.

Read more: How to use Lightbox popup in Joomla

Thursday the 28th.