Software Unit Testing With Ceedling Testing by neudeep - March 12, 2019August 29, 20210 Ceedling is one of the best test automation framework for doing unit testing of your embedded C software system code. Unit testing is code that calls some other code to check if it performing as expected. Ceedling is specifically designed for running unit tests for C language code. Ceedling has feature of automatic generation of mock. Unity is a unit test framework.CMock creates the fake versions of other modules. Using these fake versions we can verify whether our module is working correctly or not.Ceedling include unit test framework(Unity) and Mocking framework(CMock).It requires Ruby to run as Ceedling build system uses rake files. Ceedling comes with a command line tool that can be used to generate the project. Check out details on how
Display selected item of ListView using toast in android HelloWorld by Manasi Dharne - March 11, 2019November 20, 20192 ListView In Android, List of scroll-able items can be displayed using ListView. Users can select any list item by clicking on it. Problem Statement: Develop an application to create list of fruits using ListView and display selected fruit of ListView using toast. How to get the selected item from ListView? Several Ways to create ListView: There 2 ways to create ListView: we can assign ListView by giving values in main.xml.we can assign values in string.xml. Sample Code: Here is sample code for ListView using toast in android, Created two files to develop an application. Layout file(activity_main.xml):This file contains code to design an GUI of an application. In this we have used widget ListView to display list and TextView to display text on lists.Activity file(MainActivity.java): This file contains
Hello World in android studio using activity,service & broadcastReceiver HelloWorld by Manasi Dharne - March 6, 2019April 11, 20190 Problem Statement: Printing Hello World text using activity,service and broadcast receiver. This program demonstrates how to call any activity from service and service from broadcast receiver. The application starts from broadcast receiver then control goes to service and service call activity to print "Hello World". Several ways To create an application: LocalBroadcastManager:This can be used ,If you want to send broadcasts to your application.BroadcastReceiver:This can be used,If you want to send broadcasts across applications. About Code: I have created 3 java classes namely broadcast,MyService,MyActivity. broadcast.java :This class inherits BroadcastReceiver class and contains method onReceive(Context context, Intent intent) to create an intent and to call startService() method.MyService.java:This class inherits Service class and contains method onBind(Intent intent) to create intent and to call startActivity().MainActivity.java:This class inherits Activity
Advantages and Disadvantages of Tkinter and wxpython HelloWorld by mayuri takle - March 4, 2019June 20, 20240 #Tkinter: Pros: part of python, nothing extra to download. Very simple syntax. The text widget is remarkably powerful and very easy to work with. The canvas widget is also very easy and powerful. No other toolkit provides the same mix of ease and power than those two widgets in my experience. Uses native widgets on the mac and windows. Tk is rock solid with few cross-platform idiosyncrasies. I think Tkinter's binding mechanism is far superior to wxPython's; it's more flexible and consistent. I think Tkinter's three geometry managers - pack, place and grid - are much more powerful and easy to use than the wxPython sizers. Mature, stable. Widely ported. Simple API is easy to learn. Cons: Sometimes hard to debug in that Tkinter
Python’s role in developing real time embedded systems HelloWorld by mayuri takle - February 27, 2019February 27, 20190 Python isn't only the most-popular language for introductory CS programs, it's also the fastest-growing language for embedded computing. Maybe that sounds silly when you scan the numbers again and realize it's the fastest-growing language of the remaining 5% of embedded systems code that aren't C/C+ +, but Python will start eating into C/C++'s monopoly even more over the next few years. Python might be at its strongest when used as a communication middleman between the user and the embedded system they're working with. Sending messages through Python to or from an embedded system allows the user to automate testing. Python scripts can put the system into different states, set configurations, and test all sorts of real-world use cases.
Socket programming in Python HelloWorld by nikita - February 26, 2019February 26, 20190 Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while other socket reaches out to the other to form a connection. Server forms the listener socket while client reaches out to the server. Server Socket Methods 1 s.bind() This method binds address (host name, port number pair) to socket. 2 s.listen() This method sets up and start TCP listener. 3 s.accept() This passively accept TCP client connection, waiting until connection arrives . Client Socket Methods s.connect() This method actively initiates TCP server connection. General Socket Methods 1 s.recv() This method receives TCP message 2 s.send() This method transmits TCP message 3 s.recvfrom() This method receives UDP message 4 s.sendto() This
Python Socket Programming – Server, Client Example HelloWorld by mayuri takle - February 26, 2019April 11, 20190 Socket is the endpoint of a bidirectional communications channel between server and client. Sockets may communicate within a process, between processes on the same machine, or between processes on different machines. For any communication with a remote program, we have to connect through a socket port. steps: Python socket server program executes at first and wait for any requestPython socket client program will initiate the conversation at first.Then server program will response accordingly to client requests.Client program will terminate if user enters “bye” message. Server program will also terminate when client program terminates, this is optional and we can keep server program running indefinitely or terminate with some specific command in client request. We can obtain host address by using socket.gethostname() function. It
Android Architecture HelloWorld by Manasi Dharne - February 26, 2019February 26, 20190 Android architecture is the structure of how android actually works in low level. There are several layers that shows how processes works on Android. Android architecture includes Android Run-time Applications, Native C and C++ libraries that were used to build Android. Some other frameworks on the Top of Linux kernel which connects hardware to the software. Architecture Linux kernel At the bottom of the layers is Linux.This provides a level of abstraction between the device hardware and it contains all the essential hardware drivers like camera, keypad, display etc. Also, the kernel handles all the things that Linux is really good at such as networking and a vast array of device drivers. For example, the Android Run-time (ART) relies on the Linux
Working With Android Studio HelloWorld by Manasi Dharne - February 25, 2019February 25, 20190 Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development.It is available for download on Windows, macOS and Linux based operating systems. Android Studio Android App Module It Provides a container for your app's source code, resource files, and app level settings such as the module-level build file and Android Manifest file. When you create a new project, the default module name is "app".In the Create New Module window, Android Studio offers the following types of app modules: Phone & Tablet ModuleWear OS ModuleAndroid TV ModuleGlass Module AppModule Project Files: Within each Android app module, files are shown in the following groups: manifests:Contains the AndroidManifest.xml file.java:Contains the Java source code files, separated by package names, including JUnit
Python for Beginners HelloWorld by neudeep - February 25, 2019February 25, 20190 Python is a programming language.Python can be used on a server to create web applications. "Hello, World!" Program: print("Hello, World!"); output:Hello world In this program, we have used the built-in print() function to print Hello, world! string. Variables and Literals: Unlike other programming languages, Python has no command for declaring a variable. A variable is created the moment you first assign a value to it. a = 5 print("a =", 5) output:a = 5 Operators: Operators are used to perform operations on variables and values. Python divides the operators in the following groups: Arithmetic operatorsAssignment operatorsComparison operatorsLogical operatorsIdentity operatorsMembership operatorsBitwise operators x = 20 y = 30 print('addition=', x+y) Output: addition= 18 in above program instead of + operator we also use *,,/,% etc. Get Input from User: In Python, you can use input() function to take input