Introduction
IAR Integrated development environment and optimizing C/C++ compiler for ARM Cortex-M.
Description from ST Microelectronics:
The IAR-EWARM is a software development suite delivered with
ready-made device configuration files, flash loaders and 4300 example
projects included. IAR E...
Introduction
C/C++ IDE for ARM development.
Atollic TrueSTUDIO® is tested and verified on the following Operating Systems:
Microsoft® Windows ®Vista (32-bit version)
Microsoft® Windows® Vista (64-bit version)
Microsoft® Windows® 7 (32-bit version)
Microsoft® Windows® 7 (64-bit version)
Micr...
Some of the queryFor* methods available in JdbcTemplate are useful for simple sql statements that perform CRUD operations.
Querying for Date
String sql = "SELECT create_date FROM customer WHERE customer_id = ?";
int storeId = jdbcTemplate.queryForObject(sql, java.util.Date.class, custom...
This is a simple RMI example with five Java classes and two packages, server and client.
Server Package
PersonListInterface.java
public interface PersonListInterface extends Remote
{
/**
* This interface is used by both client and server
* @return List of Persons
* @throws...
Lists as arguments are just another variable:
def func(myList):
for item in myList:
print(item)
and can be passed in the function call itself:
func([1,2,3,5,7])
1
2
3
5
7
Or as a variable:
aList = ['a','b','c','d']
func(aList)
a
b
c
d
/in {72 mul} def
/delta {1 in 10 div} def
/X 612 def
/Y 792 def
0 delta Y {
0 1 index X exch % i 0 X i
moveto exch % 0 i
lineto
stroke
} for
0 delta X {
0 1 index Y % i 0 i Y
moveto % i 0
lineto
stroke
} for
showpage
Tkinter has three mechanisms for geometry management: place, pack, and grid.
The place manager uses absolute pixel coordinates.
The pack manager places widgets into one of 4 sides. New widgets are placed next to existing widgets.
The grid manager places widgets into a grid similar to a dynamicall...
In addition to libraries defined in EcmaScript language specification and EcmaScript internationalization API specification, d8 also implements the following functions and objects.
print(args...): function. Print to stdout.
printErr(args...): function. Print to stderr.
write(args...): function....
This example consists of three parts:
server.py - CherryPy application that can receive and save a file.
webpage.html - Example how to upload a file to server.py from a webpage.
cli.py - Example how to upload a file to server.py from a command line tool.
Bonus - upload.txt - file that you will...
WPF does not support displaying anything other than an image as a splash screen out-of-the-box, so we'll need to create a Window which will serve as a splash screen. We're assuming that we've already created a project containing MainWindow class, which is to be the application main window.
First of...
WPF does not support displaying anything other than an image as a splash screen out-of-the-box, so we'll need to create a Window which will serve as a splash screen. We're assuming that we've already created a project containing MainWindow class, which is to be the application main window.
First of...
Parameters
Nullable type hint was added in PHP 7.1 using the ? operator before the type hint.
function f(?string $a) {}
function g(string $a) {}
f(null); // valid
g(null); // TypeError: Argument 1 passed to g() must be of the type string, null given
Before PHP 7.1, if a parameter has a typ...
One day I had a conversation with a friend of mine who uses Laravel PHP framework in his job. When I told him that Django has its own all-included HTML CRUD system, for interacting with the database, called Django admin, his eyes popped off! He told me: "It took me months to build an Admin inte...
Add the following code in you main program.
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile `file`")
var memprofile = flag.String("memprofile", "", "write memory profile to `file`")
func main() {
flag.Parse()
...
// Sets the CPU profiling rate to hz samples per second
// If hz <= 0, SetCPUProfileRate turns off profiling
runtime.SetCPUProfileRate(hz)
// Controls the fraction of goroutine blocking events that are reported in the blocking profile
// Rate = 1 includes every blocking event in the profil...
Open a new Query Window with current connection (Ctrl + N)
Toggle between opened tabs (Ctrl + Tab)
Show/Hide Results pane (Ctrl + R)
Execute highlighted query (Ctrl + E)
Make selected text uppercase or lowercase (Ctrl + Shift + U, Ctrl + Shift + L)
Intellisense list member and complete word (...
Lazy loading modules helps us decrease the startup time. With lazy loading our application does not need to load everything at once, it only needs to load what the user expects to see when the app first loads. Modules that are lazily loaded will only be loaded when the user navigates to their routes...