Checkboxes - components - MoonHare
Grid - core - MoonHare
return to index
[TO DO - working in progress]
Checkboxs checked / unchecked
Checkboxs all status
Enabled
Selected
Disabled
Selected
Hover
Selected
Focus
Selected
Pressed
Selected
Enabled
Unselected
Disabled
Unselected
Hover
Unselected
Focus
Unselected
Pressed
Unselected
Enabled
Indeterminate
Disabled
Indeterminate
Hover
Indeterminate
Focus
Indeterminate
Pressed
Indeterminate


#include <stdlib.h> int atexit(void (*function)(void));
The same function may be registered multiple times: it is called once for each registration.
POSIX.1-2001 requires that an implementation allow at least ATEXIT_MAX (32) such functions to be registered. The actual limit supported by an implementation can be obtained using sysconf(3).
When a child process is created via fork(2), it inherits copies of its parent's registrations. Upon a successful call to one of the exec(3) functions, all registrations are removed.
If one of the functions registered functions calls _exit(2), then any remaining functions are not invoked, and the other process termination steps performed by exit(3) are not performed.
POSIX.1-2001 says that the result of calling exit(3) more than once (i.e., calling exit(3) within a function registered using atexit()) is undefined. On some systems (but not Linux), this can result in an infinite recursion; portable programs should not invoke exit(3) inside a function registered using atexit().
The atexit() and on_exit(3) functions register functions on the same list: at normal process termination, the registered functions are invoked in reverse order of their registration by these two functions.
POSIX.1-2001 says that the result is undefined if longjmp(3) is used to terminate execution of one of the functions registered atexit().
#include <stdio.h> #include <stdlib.h> #include <unistd.h> void bye(void) { printf("That was all, folks\n"); } int main(void) { long a; int i; a = sysconf(_SC_ATEXIT_MAX); printf("ATEXIT_MAX = %ld\n", a); i = atexit(bye); if (i != 0) { fprintf(stderr, "cannot set exit function\n"); exit(EXIT_FAILURE); } exit(EXIT_SUCCESS); }


|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
RC protocol definition for CSRF (TBS Crossfire). More...
Go to the source code of this file.
Classes | |
| struct | crsf_frame_header_t |
| struct | crsf_frame_t |
Macros | |
| #define | CRSF_FRAME_SIZE_MAX 30 |
| #define | CRSF_PAYLOAD_SIZE_MAX (CRSF_FRAME_SIZE_MAX-4) |
Functions | |
| __EXPORT int | crsf_config (int uart_fd) |
| Configure an UART port to be used for CRSF. More... | |
| __EXPORT bool | crsf_parse (const uint64_t now, const uint8_t *frame, unsigned len, uint16_t *values, uint16_t *num_values, uint16_t max_channels) |
| Parse the CRSF protocol and extract RC channel data. More... | |
| __EXPORT bool | crsf_send_telemetry_battery (int uart_fd, uint16_t voltage, uint16_t current, int fuel, uint8_t remaining) |
| Send telemetry battery information. More... | |
| __EXPORT bool | crsf_send_telemetry_gps (int uart_fd, int32_t latitude, int32_t longitude, uint16_t groundspeed, uint16_t gps_heading, uint16_t altitude, uint8_t num_satellites) |
| Send telemetry GPS information. More... | |
| __EXPORT bool | crsf_send_telemetry_attitude (int uart_fd, int16_t pitch, int16_t roll, int16_t yaw) |
| Send telemetry Attitude information. More... | |
| __EXPORT bool | crsf_send_telemetry_flight_mode (int uart_fd, const char *flight_mode) |
| Send telemetry Flight Mode information. More... | |
RC protocol definition for CSRF (TBS Crossfire).
It is an uninverted protocol at 420000 baudrate.
RC channels come in at 150Hz.
Definition in file crsf.h.
| #define CRSF_PAYLOAD_SIZE_MAX (CRSF_FRAME_SIZE_MAX-4) |
| __EXPORT int crsf_config | ( | int | uart_fd | ) |
Configure an UART port to be used for CRSF.
| uart_fd | UART file descriptor |
Definition at line 147 of file crsf.cpp.
References convert_channel_value(), and CRSF_BAUDRATE.
Referenced by RCInput::cycle().
| __EXPORT bool crsf_parse | ( | const uint64_t | now, |
| const uint8_t * | frame, | ||
| unsigned | len, | ||
| uint16_t * | values, | ||
| uint16_t * | num_values, | ||
| uint16_t | max_channels | ||
| ) |
Parse the CRSF protocol and extract RC channel data.
| now | current time |
| frame | data to parse |
| len | length of frame |
| values | output channel values, each in range [1000, 2000] |
| num_values | set to the number of parsed channels in values |
| max_channels | maximum length of values |
Definition at line 166 of file crsf.cpp.
References CRSF_DEBUG, crsf_parse_buffer(), current_frame_position, MIN, and unsynced.
Referenced by RCTest::crsfTest(), and RCInput::cycle().
| __EXPORT bool crsf_send_telemetry_attitude | ( | int | uart_fd, |
| int16_t | pitch, | ||
| int16_t | roll, | ||
| int16_t | yaw | ||
| ) |
Send telemetry Attitude information.
| uart_fd | UART file descriptor |
| pitch | Pitch angle [rad * 1e4] |
| roll | Roll angle [rad * 1e4] |
| yaw | Yaw angle [rad * 1e4] |
Definition at line 478 of file crsf.cpp.
References attitude, write(), write_frame_crc(), write_frame_header(), and write_uint16_t().
Referenced by CRSFTelemetry::send_attitude().
| __EXPORT bool crsf_send_telemetry_battery | ( | int | uart_fd, |
| uint16_t | voltage, | ||
| uint16_t | current, | ||
| int | fuel, | ||
| uint8_t | remaining | ||
| ) |
Send telemetry battery information.
| uart_fd | UART file descriptor |
| voltage | Voltage [0.1V] |
| current | Current [0.1A] |
| fuel | drawn mAh |
| remaining | battery remaining [%] |
Definition at line 449 of file crsf.cpp.
References battery_sensor, write(), write_frame_crc(), write_frame_header(), write_uint16_t(), write_uint24_t(), and write_uint8_t().
Referenced by CRSFTelemetry::send_battery().
| __EXPORT bool crsf_send_telemetry_flight_mode | ( | int | uart_fd, |
| const char * | flight_mode | ||
| ) |
Send telemetry Flight Mode information.
| uart_fd | UART file descriptor |
| flight_mode | Flight Mode string (max length = 15) |
Definition at line 490 of file crsf.cpp.
References flight_mode, write(), write_frame_crc(), and write_frame_header().
Referenced by CRSFTelemetry::send_flight_mode().
| __EXPORT bool crsf_send_telemetry_gps | ( | int | uart_fd, |
| int32_t | latitude, | ||
| int32_t | longitude, | ||
| uint16_t | groundspeed, | ||
| uint16_t | gps_heading, | ||
| uint16_t | altitude, | ||
| uint8_t | num_satellites | ||
| ) |
Send telemetry GPS information.
| uart_fd | UART file descriptor |
| latitude | latitude [degree * 1e7] |
| longitude | longitude [degree * 1e7] |
| groundspeed | Ground speed [km/h * 10] |
| gps_heading | GPS heading [degree * 100] |
| altitude | Altitude [meters + 1000m offset] |
| num_satellites | number of satellites used |
Definition at line 462 of file crsf.cpp.
References gps, write(), write_frame_crc(), write_frame_header(), write_int32_t(), write_uint16_t(), and write_uint8_t().
Referenced by CRSFTelemetry::send_gps().


Back
Justin Bieber
Canadian
Age: 27
Shawn Mendes
Canadian
Age: 25
Dua Lipa
England
Age :25
Charlie Puth
England
Age: 30
Taylor Swift
American
Age: 31
Zyan Malik
England
Age: 28
Selena Gomez
American
Age: 28
Ed Sheeran
England
Age: 30
Harry Styles
England
Age: 27
Miley Cirus
American
Age: 28
Eminem
American
Age: 48
Arina Grande
American
Age: 27
Katty Perry
American
Age: 36
Post Malone
American
Age: 25
Camiloo Cabello
Cuba
Age: 24
Demi lavato
Mexican
Age: 28


pueue start- Resume a specific task:
pueue start task_id- Resume multiple tasks at once:
pueue start task_id task_id- Resume all tasks and start their children:
pueue start --all --children- Resume all tasks in a specific group:
pueue start group group_name


DIR_COLORS
Section: Linux User Manual (5)
Updated: 2013-08-09
Index
Return to Main Contents
NAME
dir_colors - configuration file for dircolors(1)
DESCRIPTION
The program
ls(1)
uses the environment variable
LS_COLORS
to determine the colors in which the filenames are to be displayed.
This environment variable is usually set by a command like
-
eval `dircolors some_path/dir_colors`
found in a system default shell initialization file, like
/etc/profile
or
/etc/csh.cshrc.
(See also
dircolors(1).)
Usually, the file used here is
/etc/DIR_COLORS
and can be overridden by a
.dir_colors
file in one's home directory.
This configuration file consists of several statements, one per line.
Anything right of a hash mark (#) is treated as a comment, if the
hash mark is at the beginning of a line or is preceded by at least one
whitespace.
Blank lines are ignored.
The
global
section of the file consists of any statement before the first
TERM
statement.
Any statement in the global section of the file is
considered valid for all terminal types.
Following the global section
is one or more
terminal-specific
sections, preceded by one or more
TERM
statements which specify the terminal types (as given by the
TERM
environment variable) the following declarations apply to.
It is always possible to override a global declaration by a subsequent
terminal-specific one.
The following statements are recognized; case is insignificant:
- TERM terminal-type
-
Starts a terminal-specific section and specifies which terminal it
applies to.
Multiple
TERM
statements can be used to create a section which applies for several
terminal types.
- COLOR yes|all|no|none|tty
-
(Slackware only; ignored by GNU
dircolors(1).)
Specifies that colorization should always be enabled (yes or
all), never enabled (no or none), or enabled only if
the output is a terminal (tty).
The default is no.
- EIGHTBIT yes|no
-
(Slackware only; ignored by GNU
dircolors(1).)
Specifies that eight-bit ISO 8859 characters should be enabled by
default.
For compatibility reasons, this can also be specified as 1 for
yes or 0 for no.
The default is no.
- OPTIONS options
-
(Slackware only; ignored by GNU
dircolors(1).)
Adds command-line options to the default
ls
command line.
The options can be any valid
ls
command-line options, and should include the leading minus sign.
Note that
dircolors
does not verify the validity of these options.
- NORMAL color-sequence
-
Specifies the color used for normal (nonfilename) text.
Synonym:
NORM.
- FILE color-sequence
-
Specifies the color used for a regular file.
- DIR color-sequence
-
Specifies the color used for directories.
- LINK color-sequence
-
Specifies the color used for a symbolic link.
Synonyms:
LNK,
SYMLINK.
- ORPHAN color-sequence
-
Specifies the color used for an orphaned symbolic link (one which
points to a nonexistent file).
If this is unspecified,
ls
will use the
LINK
color instead.
- MISSING color-sequence
-
Specifies the color used for a missing file (a nonexistent file which
nevertheless has a symbolic link pointing to it).
If this is unspecified,
ls
will use the
FILE
color instead.
- FIFO color-sequence
-
Specifies the color used for a FIFO (named pipe).
Synonym:
PIPE.
- SOCK color-sequence
-
Specifies the color used for a socket.
- DOOR color-sequence
-
(Supported since fileutils 4.1)
Specifies the color used for a door (Solaris 2.5 and later).
- BLK color-sequence
-
Specifies the color used for a block device special file.
Synonym:
BLOCK.
- CHR color-sequence
-
Specifies the color used for a character device special file.
Synonym:
CHAR.
- EXEC color-sequence
-
Specifies the color used for a file with the executable attribute set.
- SUID color-sequence
-
Specifies the color used for a file with the set-user-ID attribute set.
Synonym:
SETUID.
- SGID color-sequence
-
Specifies the color used for a file with the set-group-ID attribute set.
Synonym:
SETGID.
- STICKY color-sequence
-
Specifies the color used for a directory with the sticky attribute set.
- STICKY_OTHER_WRITABLE color-sequence
-
Specifies the color used for a other-writable directory with the executable attribute set.
Synonym:
OWT.
- OTHER_WRITABLE color-sequence
-
Specifies the color used for a other-writable directory without the executable attribute set.
Synonym:
OWR.
- LEFTCODE color-sequence
-
Specifies the
left code
for non-ISO 6429 terminals (see below).
Synonym:
LEFT.
- RIGHTCODE color-sequence
-
Specifies the
right code
for non-ISO 6429 terminals (see below).
Synonym:
RIGHT.
- ENDCODE color-sequence
-
Specifies the
end code
for non-ISO 6429 terminals (see below).
Synonym:
END.
- *extension color-sequence
-
Specifies the color used for any file that ends in extension.
- .extension color-sequence
-
Same as *.extension.
Specifies the color used for any file that
ends in .extension.
Note that the period is included in the
extension, which makes it impossible to specify an extension not
starting with a period, such as
~
for
emacs
backup files.
This form should be considered obsolete.
ISO 6429 (ANSI) color sequences
Most color-capable ASCII terminals today use ISO 6429 (ANSI) color sequences,
and many common terminals without color capability, including
xterm
and the widely used and cloned DEC VT100, will recognize ISO 6429 color
codes and harmlessly eliminate them from the output or emulate them.
ls
uses ISO 6429 codes by default, assuming colorization is enabled.
ISO 6429 color sequences are composed of sequences of numbers
separated by semicolons.
The most common codes are:
-
0 | to restore default color
|
1 | for brighter colors
|
4 | for underlined text
|
5 | for flashing text
|
| 30 | for black foreground
|
| 31 | for red foreground
|
| 32 | for green foreground
|
| 33 | for yellow (or brown) foreground
|
| 34 | for blue foreground
|
| 35 | for purple foreground
|
| 36 | for cyan foreground
|
| 37 | for white (or gray) foreground
|
| 40 | for black background
|
| 41 | for red background
|
| 42 | for green background
|
| 43 | for yellow (or brown) background
|
| 44 | for blue background
|
| 45 | for purple background
|
| 46 | for cyan background
|
| 47 | for white (or gray) background
|
Not all commands will work on all systems or display devices.
ls
uses the following defaults:
| NORMAL | 0 | Normal (nonfilename) text
|
| FILE | 0 | Regular file
|
| DIR | 32 | Directory
|
| LINK | 36 | Symbolic link
|
| ORPHAN | undefined | Orphaned symbolic link
|
| MISSING | undefined | Missing file
|
| FIFO | 31 | Named pipe (FIFO)
|
| SOCK | 33 | Socket
|
| BLK | 44;37 | Block device
|
| CHR | 44;37 | Character device
|
| EXEC | 35 | Executable file
|
A few terminal programs do not recognize the default
properly.
If all text gets colorized after you do a directory
listing, change the
NORMAL
and
FILE
codes to the numerical codes for your normal foreground and background
colors.
Other terminal types (advanced configuration)
If you have a color-capable (or otherwise highlighting) terminal (or
printer!) which uses a different set of codes, you can still generate
a suitable setup.
To do so, you will have to use the
LEFTCODE,
RIGHTCODE,
and
ENDCODE
definitions.
When writing out a filename,
ls
generates the following output sequence:
LEFTCODE
typecode
RIGHTCODE
filename
ENDCODE,
where the
typecode
is the color sequence that depends on the type or name of file.
If the
ENDCODE
is undefined, the sequence
LEFTCODE NORMAL RIGHTCODE
will be used instead.
The purpose of the left- and rightcodes is
merely to reduce the amount of typing necessary (and to hide ugly
escape codes away from the user).
If they are not appropriate for
your terminal, you can eliminate them by specifying the respective
keyword on a line by itself.
NOTE:
If the
ENDCODE
is defined in the global section of the setup file, it
cannot
be undefined in a terminal-specific section of the file.
This means any
NORMAL
definition will have no effect.
A different
ENDCODE
can, however, be specified, which would have the same effect.
Escape sequences
To specify control- or blank characters in the color sequences or
filename extensions, either C-style \-escaped notation or
stty-style
^-notation can be used.
The C-style notation
includes the following characters:
-
| \a | Bell (ASCII 7)
|
| \b | Backspace (ASCII 8)
|
| \e | Escape (ASCII 27)
|
| \f | Form feed (ASCII 12)
|
| \n | Newline (ASCII 10)
|
| \r | Carriage Return (ASCII 13)
|
| \t | Tab (ASCII 9)
|
| \v | Vertical Tab (ASCII 11)
|
| \? | Delete (ASCII 127)
|
| \nnn | Any character (octal notation)
|
| \xnnn | Any character (hexadecimal notation)
|
| \_ | Space
|
| \\ | Backslash (\)
|
| \^ | Caret (^)
|
| \# | Hash mark (#)
|
Note that escapes are necessary to enter a space, backslash,
caret, or any control character anywhere in the string, as well as a
hash mark as the first character.
FILES
- /etc/DIR_COLORS
-
System-wide configuration file.
- ~/.dir_colors
-
Per-user configuration file.
This page describes the
dir_colors
file format as used in the fileutils-4.1 package;
other versions may differ slightly.
NOTES
The default
LEFTCODE
and
RIGHTCODE
definitions, which are used by ISO 6429 terminals are:
-
The default
ENDCODE
is undefined.
SEE ALSO
dircolors(1),
ls(1),
stty(1),
xterm(1)
Index
- NAME
-
- DESCRIPTION
-
- ISO 6429 (ANSI) color sequences
-
- Other terminal types (advanced configuration)
-
- Escape sequences
-
- FILES
-
- NOTES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 02:55:20 GMT, September 18, 2014


I visited the city of New York in the summer of 2017. It was an amazing experience one I really enjoyed and I felt like it really broadened my horizons. While there I visited places such as the Brooklyn harbour, the Empire State, Grand central Stadium etc. Without doubt my favourite place to visit was the Harbour, as someone who loves the coast and sea the sea in general the harbour was amazing. Packed to the brim with lovely restaurants, and also beautiful walks along the river. I can not recommend New York more, I would jump at the chance to return.
Machu Picchu was unlike any other city I had been to. It had been a city I had wanted to visit for some time so when the chance arrived I was over the moon. The sights were incredible given the altitude I was at. I can not stress how incredible the view was, due to Peru's low pollution and the height I was at the sky was cyrstal clear. The surrounding scenery was picturesque and breathtaking. The city itself ,situated on the side of a mountain, was hard to access but was well worth the effort.


Hello!
My name is Andreas McDermott. I live in Lund, a small town in southern Sweden with my wife and soon-to-be-born son. I'm currently working as a consultant at CGI. My main area is web development with .Net. Before this I worked for TrueVision Systems in California which is a small company that makes advanced visualization systems for micro surgery.
I have been programming for the last 13 years. I got into programming to make games, which I still enjoy doing when I have some spare time (I try to participate in Ludum Dare as often as possible). I prefer to work in C#, JavaScript (as long as I can use jQuery) or Lua these days, but am also profficiant in C/C++, Java and PHP. Next on my list of languages to have a look at is Ruby!
When not in front of a computer I enjoy hiking, photography, biking and many other outdoor activities.
I can be reached at<EMAIL_ADDRESS>This website
This website is served (for free) by GitHub using Jekyll. The code for this page is available on GitHub as well.


© Copyright Jackson Wyndow | 2013 - {{ $.Site.LastChange.Year }} . Made in the Southern Hemisphere.
Stalk me on Twitter, Instagram, and Pinterest.
Published with Middleman and hosted with Heroku.


Manage student details, add fee details, view parents
Manage staff details, add salary details
Manage your branches of your institution
Manage courses offered by your institution
A comprehensive dashboard to view detailed reports, charts, accounts
Dashboard specific to fee collection


public final class ImageIO extends Object
ImageReader
s and ImageWriter
s, and
performing simple encoding and decoding.| Modifier and Type | Method and Description |
|---|---|
static ImageInputStream |
createImageInputStream(Object input)
Returns an
ImageInputStream that will take its
input from the given Object . |
static ImageOutputStream |
createImageOutputStream(Object output)
Returns an
ImageOutputStream that will send its
output to the given Object . |
static File |
getCacheDirectory()
Returns the current value set by
setCacheDirectory , or null if no
explicit setting has been made. |
static ImageReader |
getImageReader(ImageWriter writer)
Returns an
ImageReader corresponding to the given
ImageWriter , if there is one, or null
if the plug-in for this ImageWriter does not
specify a corresponding ImageReader , or if the
given ImageWriter is not registered. |
static Iterator<ImageReader> |
getImageReaders(Object input)
Returns an
Iterator containing all currently
registered ImageReader s that claim to be able to
decode the supplied Object , typically an
ImageInputStream . |
static Iterator<ImageReader> |
getImageReadersByFormatName(String formatName)
Returns an
Iterator containing all currently
registered ImageReader s that claim to be able to
decode the named format. |
static Iterator<ImageReader> |
getImageReadersByMIMEType(String MIMEType)
Returns an
Iterator containing all currently
registered ImageReader s that claim to be able to
decode files with the given MIME type. |
static Iterator<ImageReader> |
getImageReadersBySuffix(String fileSuffix)
Returns an
Iterator containing all currently
registered ImageReader s that claim to be able to
decode files with the given suffix. |
static Iterator<ImageTranscoder> |
getImageTranscoders(ImageReader reader,
ImageWriter writer)
Returns an
Iterator containing all currently
registered ImageTranscoder s that claim to be
able to transcode between the metadata of the given
ImageReader and ImageWriter . |
static ImageWriter |
getImageWriter(ImageReader reader)
Returns an
ImageWriter corresponding to the given
ImageReader , if there is one, or null
if the plug-in for this ImageReader does not
specify a corresponding ImageWriter , or if the
given ImageReader is not registered. |
static Iterator<ImageWriter> |
getImageWriters(ImageTypeSpecifier type,
String formatName)
Returns an
Iterator containing all currently
registered ImageWriter s that claim to be able to
encode images of the given layout (specified using an
ImageTypeSpecifier ) in the given format. |
static Iterator<ImageWriter> |
getImageWritersByFormatName(String formatName)
Returns an
Iterator containing all currently
registered ImageWriter s that claim to be able to
encode the named format. |
static Iterator<ImageWriter> |
getImageWritersByMIMEType(String MIMEType)
Returns an
Iterator containing all currently
registered ImageWriter s that claim to be able to
encode files with the given MIME type. |
static Iterator<ImageWriter> |
getImageWritersBySuffix(String fileSuffix)
Returns an
Iterator containing all currently
registered ImageWriter s that claim to be able to
encode files with the given suffix. |
static String[] |
getReaderFileSuffixes()
Returns an array of
String s listing all of the
file suffixes associated with the formats understood
by the current set of registered readers. |
static String[] |
getReaderFormatNames()
Returns an array of
String s listing all of the
informal format names understood by the current set of registered
readers. |
static String[] |
getReaderMIMETypes()
Returns an array of
String s listing all of the
MIME types understood by the current set of registered
readers. |
static boolean |
getUseCache()
Returns the current value set by
setUseCache , or
true if no explicit setting has been made. |
static String[] |
getWriterFileSuffixes()
Returns an array of
String s listing all of the
file suffixes associated with the formats understood
by the current set of registered writers. |
static String[] |
getWriterFormatNames()
Returns an array of
String s listing all of the
informal format names understood by the current set of registered
writers. |
static String[] |
getWriterMIMETypes()
Returns an array of
String s listing all of the
MIME types understood by the current set of registered
writers. |
static BufferedImage |
read(File input)
Returns a
BufferedImage as the result of decoding
a supplied File with an ImageReader
chosen automatically from among those currently registered. |
static BufferedImage |
read(ImageInputStream stream)
Returns a
BufferedImage as the result of decoding
a supplied ImageInputStream with an
ImageReader chosen automatically from among those
currently registered. |
static BufferedImage |
read(InputStream input)
Returns a
BufferedImage as the result of decoding
a supplied InputStream with an ImageReader
chosen automatically from among those currently registered. |
static BufferedImage |
read(URL input)
Returns a
BufferedImage as the result of decoding
a supplied URL with an ImageReader
chosen automatically from among those currently registered. |
static void |
scanForPlugins()
Scans for plug-ins on the application class path,
loads their service provider classes, and registers a service
provider instance for each one found with the
IIORegistry . |
static void |
setCacheDirectory(File cacheDirectory)
Sets the directory where cache files are to be created.
|
static void |
setUseCache(boolean useCache)
Sets a flag indicating whether a disk-based cache file should
be used when creating
ImageInputStream s and
ImageOutputStream s. |
static boolean |
write(RenderedImage im,
String formatName,
File output)
Writes an image using an arbitrary
ImageWriter
that supports the given format to a File . |
static boolean |
write(RenderedImage im,
String formatName,
ImageOutputStream output)
Writes an image using the an arbitrary
ImageWriter
that supports the given format to an
ImageOutputStream . |
static boolean |
write(RenderedImage im,
String formatName,
OutputStream output)
Writes an image using an arbitrary
ImageWriter
that supports the given format to an OutputStream . |
public static void scanForPlugins()
IIORegistry
.
This method is needed because the application class path can theoretically change, or additional plug-ins may become available. Rather than re-scanning the classpath on every invocation of the API, the class path is scanned automatically only on the first invocation. Clients can call this method to prompt a re-scan. Thus this method need only be invoked by sophisticated applications which dynamically make new plug-ins available at runtime.
The getResources
method of the context
ClassLoader
is used locate JAR files containing
files named
META-INF/services/javax.imageio.spi.
classname,
where classname is one of ImageReaderSpi
,
ImageWriterSpi
, ImageTranscoderSpi
,
ImageInputStreamSpi
, or
ImageOutputStreamSpi
, along the application class
path.
The contents of the located files indicate the names of actual implementation classes which implement the aforementioned service provider interfaces; the default class loader is then used to load each of these classes and to instantiate an instance of each class, which is then placed into the registry for later retrieval.
The exact set of locations searched depends on the implementation of the Java runtime enviroment.
public static void setUseCache(boolean useCache)
ImageInputStream
s and
ImageOutputStream
s.
When reading from a standard InputStream
>, it
may be necessary to save previously read information in a cache
since the underlying stream does not allow data to be re-read.
Similarly, when writing to a standard
OutputStream
, a cache may be used to allow a
previously written value to be changed before flushing it to
the final destination.
The cache may reside in main memory or on disk. Setting
this flag to false
disallows the use of disk for
future streams, which may be advantageous when working with
small images, as the overhead of creating and destroying files
is removed.
On startup, the value is set to true
.
useCache
- a boolean
indicating whether a
cache file should be used, in cases where it is optional.getUseCache()
public static boolean getUseCache()
setUseCache
, or
true
if no explicit setting has been made.ImageInputStream
s and
ImageOutputStream
s.setUseCache(boolean)
public static void setCacheDirectory(File cacheDirectory)
null
indicates that the system-dependent
default temporary-file directory is to be used. If
getUseCache
returns false, this value is ignored.cacheDirectory
- a File
specifying a directory.SecurityException
- if the security manager denies
access to the directory.IllegalArgumentException
- if cacheDir
is
non-null
but is not a directory.File.createTempFile(String, String, File)
,
getCacheDirectory()
public static File getCacheDirectory()
setCacheDirectory
, or null
if no
explicit setting has been made.File
indicating the directory where
cache files will be created, or null
to indicate
the system-dependent default temporary-file directory.setCacheDirectory(java.io.File)
public static ImageInputStream createImageInputStream(Object input) throws IOException
ImageInputStream
that will take its
input from the given Object
. The set of
ImageInputStreamSpi
s registered with the
IIORegistry
class is queried and the first one
that is able to take input from the supplied object is used to
create the returned ImageInputStream
. If no
suitable ImageInputStreamSpi
exists,
null
is returned.
The current cache settings from getUseCache
and
getCacheDirectory
will be used to control caching.
input
- an Object
to be used as an input
source, such as a File
, readable
RandomAccessFile
, or InputStream
.ImageInputStream
, or null
.IllegalArgumentException
- if input
is null
.IOException
- if a cache file is needed but cannot be
created.ImageInputStreamSpi
public static ImageOutputStream createImageOutputStream(Object output) throws IOException
ImageOutputStream
that will send its
output to the given Object
. The set of
ImageOutputStreamSpi
s registered with the
IIORegistry
class is queried and the first one
that is able to send output from the supplied object is used to
create the returned ImageOutputStream
. If no
suitable ImageOutputStreamSpi
exists,
null
is returned.
The current cache settings from getUseCache
and
getCacheDirectory
will be used to control caching.
output
- an Object
to be used as an output
destination, such as a File
, writable
RandomAccessFile
, or OutputStream
.ImageOutputStream
, or
null
.IllegalArgumentException
- if output
is
null
.IOException
- if a cache file is needed but cannot be
created.ImageOutputStreamSpi
public static String[] getReaderFormatNames()
String
s listing all of the
informal format names understood by the current set of registered
readers.String
s.public static String[] getReaderMIMETypes()
String
s listing all of the
MIME types understood by the current set of registered
readers.String
s.public static String[] getReaderFileSuffixes()
String
s listing all of the
file suffixes associated with the formats understood
by the current set of registered readers.String
s.public static Iterator<ImageReader> getImageReaders(Object input)
Iterator
containing all currently
registered ImageReader
s that claim to be able to
decode the supplied Object
, typically an
ImageInputStream
.
The stream position is left at its prior position upon exit from this method.
input
- an ImageInputStream
or other
Object
containing encoded image data.Iterator
containing ImageReader
s.IllegalArgumentException
- if input
is
null
.ImageReaderSpi.canDecodeInput(java.lang.Object)
public static Iterator<ImageReader> getImageReadersByFormatName(String formatName)
Iterator
containing all currently
registered ImageReader
s that claim to be able to
decode the named format.formatName
- a String
containing the informal
name of a format (e.g., "jpeg" or "tiff".Iterator
containing
ImageReader
s.IllegalArgumentException
- if formatName
is null
.ImageReaderWriterSpi.getFormatNames()
public static Iterator<ImageReader> getImageReadersBySuffix(String fileSuffix)
Iterator
containing all currently
registered ImageReader
s that claim to be able to
decode files with the given suffix.fileSuffix
- a String
containing a file
suffix (e.g., "jpg" or "tiff").Iterator
containing
ImageReader
s.IllegalArgumentException
- if fileSuffix
is null
.ImageReaderWriterSpi.getFileSuffixes()
public static Iterator<ImageReader> getImageReadersByMIMEType(String MIMEType)
Iterator
containing all currently
registered ImageReader
s that claim to be able to
decode files with the given MIME type.MIMEType
- a String
containing a file
suffix (e.g., "image/jpeg" or "image/x-bmp").Iterator
containing
ImageReader
s.IllegalArgumentException
- if MIMEType
is
null
.ImageReaderWriterSpi.getMIMETypes()
public static String[] getWriterFormatNames()
String
s listing all of the
informal format names understood by the current set of registered
writers.String
s.public static String[] getWriterMIMETypes()
String
s listing all of the
MIME types understood by the current set of registered
writers.String
s.public static String[] getWriterFileSuffixes()
String
s listing all of the
file suffixes associated with the formats understood
by the current set of registered writers.String
s.public static Iterator<ImageWriter> getImageWritersByFormatName(String formatName)
Iterator
containing all currently
registered ImageWriter
s that claim to be able to
encode the named format.formatName
- a String
containing the informal
name of a format (e.g., "jpeg" or "tiff".Iterator
containing
ImageWriter
s.IllegalArgumentException
- if formatName
is
null
.ImageReaderWriterSpi.getFormatNames()
public static Iterator<ImageWriter> getImageWritersBySuffix(String fileSuffix)
Iterator
containing all currently
registered ImageWriter
s that claim to be able to
encode files with the given suffix.fileSuffix
- a String
containing a file
suffix (e.g., "jpg" or "tiff").Iterator
containing ImageWriter
s.IllegalArgumentException
- if fileSuffix
is
null
.ImageReaderWriterSpi.getFileSuffixes()
public static Iterator<ImageWriter> getImageWritersByMIMEType(String MIMEType)
Iterator
containing all currently
registered ImageWriter
s that claim to be able to
encode files with the given MIME type.MIMEType
- a String
containing a file
suffix (e.g., "image/jpeg" or "image/x-bmp").Iterator
containing ImageWriter
s.IllegalArgumentException
- if MIMEType
is
null
.ImageReaderWriterSpi.getMIMETypes()
public static ImageWriter getImageWriter(ImageReader reader)
ImageWriter
corresponding to the given
ImageReader
, if there is one, or null
if the plug-in for this ImageReader
does not
specify a corresponding ImageWriter
, or if the
given ImageReader
is not registered. This
mechanism may be used to obtain an ImageWriter
that will understand the internal structure of non-pixel
metadata (as encoded by IIOMetadata
objects)
generated by the ImageReader
. By obtaining this
data from the ImageReader
and passing it on to the
ImageWriter
obtained with this method, a client
program can read an image, modify it in some way, and write it
back out preserving all metadata, without having to understand
anything about the structure of the metadata, or even about
the image format. Note that this method returns the
"preferred" writer, which is the first in the list returned by
javax.imageio.spi.ImageReaderSpi.getImageWriterSpiNames()
.reader
- an instance of a registered ImageReader
.ImageWriter
, or null.IllegalArgumentException
- if reader
is
null
.getImageReader(ImageWriter)
,
ImageReaderSpi.getImageWriterSpiNames()
public static ImageReader getImageReader(ImageWriter writer)
ImageReader
corresponding to the given
ImageWriter
, if there is one, or null
if the plug-in for this ImageWriter
does not
specify a corresponding ImageReader
, or if the
given ImageWriter
is not registered. This method
is provided principally for symmetry with
getImageWriter(ImageReader)
. Note that this
method returns the "preferred" reader, which is the first in
the list returned by
javax.imageio.spi.ImageWriterSpi.getImageReaderSpiNames()
.writer
- an instance of a registered ImageWriter
.ImageReader
, or null.IllegalArgumentException
- if writer
is
null
.getImageWriter(ImageReader)
,
ImageWriterSpi.getImageReaderSpiNames()
public static Iterator<ImageWriter> getImageWriters(ImageTypeSpecifier type, String formatName)
Iterator
containing all currently
registered ImageWriter
s that claim to be able to
encode images of the given layout (specified using an
ImageTypeSpecifier
) in the given format.type
- an ImageTypeSpecifier
indicating the
layout of the image to be written.formatName
- the informal name of the format
.Iterator
containing ImageWriter
s.IllegalArgumentException
- if any parameter is
null
.ImageWriterSpi.canEncodeImage(ImageTypeSpecifier)
public static Iterator<ImageTranscoder> getImageTranscoders(ImageReader reader, ImageWriter writer)
Iterator
containing all currently
registered ImageTranscoder
s that claim to be
able to transcode between the metadata of the given
ImageReader
and ImageWriter
.reader
- an ImageReader
.writer
- an ImageWriter
.Iterator
containing
ImageTranscoder
s.IllegalArgumentException
- if reader
or
writer
is null
.public static BufferedImage read(File input) throws IOException
BufferedImage
as the result of decoding
a supplied File
with an ImageReader
chosen automatically from among those currently registered.
The File
is wrapped in an
ImageInputStream
. If no registered
ImageReader
claims to be able to read the
resulting stream, null
is returned.
The current cache settings from getUseCache
and
getCacheDirectory
will be used to control caching in the
ImageInputStream
that is created.
Note that there is no read
method that takes a
filename as a String
; use this method instead after
creating a File
from the filename.
This method does not attempt to locate
ImageReader
s that can read directly from a
File
; that may be accomplished using
IIORegistry
and ImageReaderSpi
.
input
- a File
to read from.BufferedImage
containing the decoded
contents of the input, or null
.IllegalArgumentException
- if input
is
null
.IOException
- if an error occurs during reading.public static BufferedImage read(InputStream input) throws IOException
BufferedImage
as the result of decoding
a supplied InputStream
with an ImageReader
chosen automatically from among those currently registered.
The InputStream
is wrapped in an
ImageInputStream
. If no registered
ImageReader
claims to be able to read the
resulting stream, null
is returned.
The current cache settings from getUseCache
and
getCacheDirectory
will be used to control caching in the
ImageInputStream
that is created.
This method does not attempt to locate
ImageReader
s that can read directly from an
InputStream
; that may be accomplished using
IIORegistry
and ImageReaderSpi
.
This method does not close the provided
InputStream
after the read operation has completed;
it is the responsibility of the caller to close the stream, if desired.
input
- an InputStream
to read from.BufferedImage
containing the decoded
contents of the input, or null
.IllegalArgumentException
- if input
is
null
.IOException
- if an error occurs during reading.public static BufferedImage read(URL input) throws IOException
BufferedImage
as the result of decoding
a supplied URL
with an ImageReader
chosen automatically from among those currently registered. An
InputStream
is obtained from the URL
,
which is wrapped in an ImageInputStream
. If no
registered ImageReader
claims to be able to read
the resulting stream, null
is returned.
The current cache settings from getUseCache
and
getCacheDirectory
will be used to control caching in the
ImageInputStream
that is created.
This method does not attempt to locate
ImageReader
s that can read directly from a
URL
; that may be accomplished using
IIORegistry
and ImageReaderSpi
.
input
- a URL
to read from.BufferedImage
containing the decoded
contents of the input, or null
.IllegalArgumentException
- if input
is
null
.IOException
- if an error occurs during reading.public static BufferedImage read(ImageInputStream stream) throws IOException
BufferedImage
as the result of decoding
a supplied ImageInputStream
with an
ImageReader
chosen automatically from among those
currently registered. If no registered
ImageReader
claims to be able to read the stream,
null
is returned.
Unlike most other methods in this class, this method does
close the provided ImageInputStream
after the read
operation has completed, unless null
is returned,
in which case this method does not close the stream.
stream
- an ImageInputStream
to read from.BufferedImage
containing the decoded
contents of the input, or null
.IllegalArgumentException
- if stream
is
null
.IOException
- if an error occurs during reading.public static boolean write(RenderedImage im, String formatName, ImageOutputStream output) throws IOException
ImageWriter
that supports the given format to an
ImageOutputStream
. The image is written to the
ImageOutputStream
starting at the current stream
pointer, overwriting existing stream data from that point
forward, if present.
This method does not close the provided
ImageOutputStream
after the write operation has completed;
it is the responsibility of the caller to close the stream, if desired.
im
- a RenderedImage
to be written.formatName
- a String
containg the informal
name of the format.output
- an ImageOutputStream
to be written to.false
if no appropriate writer is found.IllegalArgumentException
- if any parameter is
null
.IOException
- if an error occurs during writing.public static boolean write(RenderedImage im, String formatName, File output) throws IOException
ImageWriter
that supports the given format to a File
. If
there is already a File
present, its contents are
discarded.im
- a RenderedImage
to be written.formatName
- a String
containg the informal
name of the format.output
- a File
to be written to.false
if no appropriate writer is found.IllegalArgumentException
- if any parameter is
null
.IOException
- if an error occurs during writing.public static boolean write(RenderedImage im, String formatName, OutputStream output) throws IOException
ImageWriter
that supports the given format to an OutputStream
.
This method does not close the provided
OutputStream
after the write operation has completed;
it is the responsibility of the caller to close the stream, if desired.
The current cache settings from getUseCache
and
getCacheDirectory
will be used to control caching.
im
- a RenderedImage
to be written.formatName
- a String
containg the informal
name of the format.output
- an OutputStream
to be written to.false
if no appropriate writer is found.IllegalArgumentException
- if any parameter is
null
.IOException
- if an error occurs during writing. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.


@Api var blackColor: Int
the color of black's pieces.
blackColor - the color of black's pieces.
blackColor


SAFETUSSIN DM - dextromethorphan hydrobromide and guaifenesin liquid
Kramer Laboratories
Disclaimer: Most OTC drugs are not reviewed and approved by FDA, however they may be marketed if they comply with applicable regulations and policies. FDA has not evaluated whether this product complies.
Dextromethorphan HBr, USP 10 mg
Guaifenesin, USP 100 mg
Cough suppressant
Expectorant
In case of overdose, get medical help or contact a Poison Control Center right away
temporarily relieves cough due to minor throat and bronchial irritation
loosen phlegm (mucus)
helps rid bronchial passages of phlegm (mucus)
take every 4 hours not more than 6 doses in any 24-hour period
adults and children 12 years and over 2 tsp every 4 hours
children under 12 years do not use
Aspartame ,BENZOIC ACID , CITRIC ACID MONOHYDRATE ,glycerin ,methylparaben ,nautral mint flavor ,propylene glycol, propylparaben ,
, purified water
if you are now taking a prescription monoamine oxidase inhibitor (MAOI) (certain drugs for depression, psychiatric or emotional conditions, or Parkinson’s disease), or for 2 weeks after stopping the MAOI drug. If you do not know if your prescription drug contains an MAOI, ask a doctor or pharmacist before taking this product.


SUBROUTINE CPOSV( UPLO, N, NRHS, A, LDA, B, LDB, INFO ) * * -- LAPACK driver routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * .. Scalar Arguments .. CHARACTER UPLO INTEGER INFO, LDA, LDB, N, NRHS * .. * .. Array Arguments .. COMPLEX A( LDA, * ), B( LDB, * ) * .. * * Purpose * ======= * * CPOSV computes the solution to a complex system of linear equations * A * X = B, * where A is an N-by-N Hermitian positive definite matrix and X and B * are N-by-NRHS matrices. * * The Cholesky decomposition is used to factor A as * A = U**H* U, if UPLO = 'U', or * A = L * L**H, if UPLO = 'L', * where U is an upper triangular matrix and L is a lower triangular * matrix. The factored form of A is then used to solve the system of * equations A * X = B. * * Arguments * ========= * * UPLO (input) CHARACTER*1 * = 'U': Upper triangle of A is stored; * = 'L': Lower triangle of A is stored. * * N (input) INTEGER * The number of linear equations, i.e., the order of the * matrix A. N >= 0. * * NRHS (input) INTEGER * The number of right hand sides, i.e., the number of columns * of the matrix B. NRHS >= 0. * * A (input/output) COMPLEX array, dimension (LDA,N) * On entry, the Hermitian matrix A. If UPLO = 'U', the leading * N-by-N upper triangular part of A contains the upper * triangular part of the matrix A, and the strictly lower * triangular part of A is not referenced. If UPLO = 'L', the * leading N-by-N lower triangular part of A contains the lower * triangular part of the matrix A, and the strictly upper * triangular part of A is not referenced. * * On exit, if INFO = 0, the factor U or L from the Cholesky * factorization A = U**H*U or A = L*L**H. * * LDA (input) INTEGER * The leading dimension of the array A. LDA >= max(1,N). * * B (input/output) COMPLEX array, dimension (LDB,NRHS) * On entry, the N-by-NRHS right hand side matrix B. * On exit, if INFO = 0, the N-by-NRHS solution matrix X. * * LDB (input) INTEGER * The leading dimension of the array B. LDB >= max(1,N). * * INFO (output) INTEGER * = 0: successful exit * < 0: if INFO = -i, the i-th argument had an illegal value * > 0: if INFO = i, the leading minor of order i of A is not * positive definite, so the factorization could not be * completed, and the solution has not been computed. * * ===================================================================== * * .. External Functions .. LOGICAL LSAME EXTERNAL LSAME * .. * .. External Subroutines .. EXTERNAL CPOTRF, CPOTRS, XERBLA * .. * .. Intrinsic Functions .. INTRINSIC MAX * .. * .. Executable Statements .. * * Test the input parameters. * INFO = 0 IF( .NOT.LSAME( UPLO, 'U' ) .AND. .NOT.LSAME( UPLO, 'L' ) ) THEN INFO = -1 ELSE IF( N.LT.0 ) THEN INFO = -2 ELSE IF( NRHS.LT.0 ) THEN INFO = -3 ELSE IF( LDA.LT.MAX( 1, N ) ) THEN INFO = -5 ELSE IF( LDB.LT.MAX( 1, N ) ) THEN INFO = -7 END IF IF( INFO.NE.0 ) THEN CALL XERBLA( 'CPOSV ', -INFO ) RETURN END IF * * Compute the Cholesky factorization A = U'*U or A = L*L'. * CALL CPOTRF( UPLO, N, A, LDA, INFO ) IF( INFO.EQ.0 ) THEN * * Solve the system A*X = B, overwriting B with X. * CALL CPOTRS( UPLO, N, NRHS, A, LDA, B, LDB, INFO ) * END IF RETURN * * End of CPOSV * END


Gemini
Gemini : (May 22 – June 21)
It is going to be a nice day for you. You can get involved in a short-term affair with somebody working in your office. The going will be good till it lasts. And you will have no expectations. Additional sources of income will be tapped. You will also get loan from banks for a pet project of yours. You will also maintain balance between domestic life and official work.


Main Street Carpentry is a full-service home construction and remodeling company. We have been around for over 25 years and specialize in high-quality projects, affordable costs, and great customer service. Main Street is owned and operated by Keith Johnson and is located in Kansas City, MO. Check out our work, or give us a call!


8X 24 Bit Analog Voltage Inputs, 8X Solid State Outputs
Hey guys!
A year or so ago I was trying the hack the emonTX into somewhat of a board to control a small hydro plant... I got discouraged and left the project for awhile but now I'm back with new hardware and am looking for some feedback.
I'm a huge fan of AVR's but basicly I finally decided that my application needed more CPU power and I wanted onboard Ethernet + webserver/oscilloscope
I started with a STM32F4 but couldn't stand the poor documentation and lack of open tools so I switched to an LPC1768 Microcontroller
After 4 revisions I finally decided on the ADS131E08 as the ADC, it an 8channel,24bit, Inputs are fully differential, bipolar with an internal PGA.. It's connected to the LPC1768 via a 20MHZ SPI link
The board also has 8x N-Channel FET outputs to control loads as well as I2C and PWM breakouts.
Anyways, a few quick questions..
Right now I have the Negative and Positive leads(Differential) of each input channel bridged across with a TVS diode to prevent surges. How much of a surge would you expect from a Current Transformer during a worst case situation?
Any ideas on the layout?
Anyways.. Let me know what you guys think.
Thanks in Advance!
Jon
Update:
The Software is now fully open source and we have our third batch of boards back from the warehouse.
Source Code and boards are available at:
http://microhydroelectric.ca/store/electronic-load-controller
http://microhydroelectric.ca/store/micro-hydro-control-automation
Git Repo for Configuration Software Source Code: https://www.gitorious.org/rmscs
Checkout the emoncms dashboard @ http://rtech.ca/emoncms/dashboard/view User:admin Pass:admin (Please no griefing)
If you wanna play around with the configuration software you can download our app @ https://play.google.com/store/apps/details?id=org.qtproject.example.rmscs and connect to a deployed board @ <IP_ADDRESS> password:blank (Again please no griefing)
Polyphase Energy Monitor / Controller
Hacking
PCB's done by seedstudio.. Don't they do a nice job? If only I was better at reflow soldering!
emoncms dashboard
Solar Powered Repeater / DC Application
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
Wow, that does looks very nice! You must have put a lot of hours into making it! Whats your plans with open sourcing, getting it manufactured, im sure there would be interest, quite a few people have asked for boards with many inputs/outputs. Whats the process for writing code on it?
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
The images don't appear to be working for me - rtech.ca seems to be down. Would really like to see this!
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
Working now, great.
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
Are you using a dedicated driver for the 1-Wire bus or bit-banging off the microprocessor?
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
@Trystan. Haha... Couldn't argue with you their :). Right now I'm hand soldering a batch of 10 or so boards to kinda gauge interest / manufacturability. (If anyone's interested PM me or leave a comment).... Any thoughts?
Im a big open source advocate and defiantly plan to open source everything but I think it's a bit early at this point... Everything is written in 'C' except 4-5 lines of asm for some DMA stuff.
@Cybergibbons, Right now it's just bit banging... It's pretty good on a 100mhz chip but when it's really heavily loaded with web requests... Etc. It would glitch sometimes when trying to read 8 sensors, 30M distance... It's usually picked up on the next read but it's annoying nonetheless .
what do you think of using a chip like a DS2482 to bridge the I2C to a one wire master?
Sorry about the site... It's on a really long wifi link..
Jon
P.S. if someone wants to view the web server oscilloscope I have a board installed at my home hydro plant... It's on a 30km wifi link that has problems so its sometimes slow / unreachable (plan on upgrading it soon ). Also note that there are no current waveforms on the oscilloscope, I haven't installed the current transformers at the plant yet
http://<IP_ADDRESS>:81
The plants been snowed in for the last 3 months so the firmware is very outdated... It doesn't show any of the ac vectors like the above screenshot.. I plan on upgrading it soon though...
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
I love seeing these screens control of scada software. I find it very beautiful and informative. I tried to access your address and how we were warned off the air. I will try again during the next hours. Its application seems very structured, congratulations.
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
yeah it's been on and off, apologies for the trouble I should have it fixed this week, Thanks for the kind words!
You can get a static example of what the oscilloscope view looks like at
http://www.rtech.ca/test/
Jon
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
Regarding the 1-Wire, I'm trying out a couple of 30m runs at the moment and have found that the bit-banged One-Wire library doesn't always work, especially with parasitically powered sensors. The DS2482 is much more reliable at this range.
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
@Cybergibbons. I'll make sure the final version will have a sport for the DS2482.. Not sure if I'll populate it yet but It will be there if someone wants it..
@Farmsid Did upgrades to the wireless link... http://<IP_ADDRESS>:81 should work for everyone now.. There is some sort of issue that causes the ADC result to overflow when it goes above a certain value.. You'll notice it on the Current channels.. I think there must be a bug where the 24Bit results are bit shifted together..
Anybody want to beta test some hardware? I've got a few boards laying around here now that need to go to a good home :)
Have an amazing weekend guys!
Kind Regards,
Jon
Configuration GUI
"UID" is emoncms READ/WRITE key... "Send To" is the IP of the server... Right now the data is transferred via UDP as raw binary data... A small application written in C listens for the datagrams to arrive and adds them to emoncms.. It's allot less overhead that way
I was able to compile it for Android.. Makes for kind of a cool wireless oscilloscope
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
Trystan and others
Just wanted to update you guys on things... The Software is now fully open source and we have our third batch of boards back from the warehouse.
Source Code and boards are available at:
http://microhydroelectric.ca/store/electronic-load-controller
http://microhydroelectric.ca/store/micro-hydro-control-automation
Git Repo for Configuration Software Source Code: https://www.gitorious.org/rmscs
Checkout the emoncms dashboard @ http://rtech.ca/emoncms/dashboard/view User:admin Pass:admin (Please no griefing)
If you wanna play around with the configuration software you can download our app @ https://play.google.com/store/apps/details?id=org.qtproject.example.rmscs and connect to a deployed board @ <IP_ADDRESS> password:blank (Again please no griefing)
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
@cybercibbons - With the high accuracy ADC you could try using a thermistor based temperature sensor. This is what most off the shelf control systems use.
@jon-ecm - Can you post up the schematics?
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
@jon-ecm, looks like amazing work your doing, great to see that youve open sourced the configuration software. I missed the app part of your above post, How did you compile it for android? sounds interesting!
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
@StuntMonkeh, Yes! I'll grab them when I'm at work monday and post them on the page that has the source code and other info @ http://microhydroelectric.ca/store/electronic-load-controller
If you want a blank PCB I can send one your way aswell... Got a few of the older version (just missing the I2C->One Wire bridge) I'd be happy to send for just the shipping cost..
@TrystanLea, Thanks, The app is written in C++/QT5... It's a really sweet setup as it allows you to compile the exact same code without any modifications for Windows, OSX, IOS, Blackberry, Linux, Android etc... QT5 makes the whole process so easy, the docs are super easy to follow and installing the whole IDE is just a few clicks, nothing like the native speed you get from hard compiled code either..
Jon
Re: emonplus? emonSCADA? Looking for feedback on new hardware + Pictures
Hi Jon
Just wondering if this is still active? Really impressive. I would love to get some boards built in the UK!
Thanks
Tim


Class: Aws::CloudWatchRUM::Types::CreateAppMonitorRequest
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
::Aws::Structure ,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb |
Overview
Constant Summary
Instance Attribute Summary
-
#app_monitor_configuration ⇒ Types::AppMonitorConfiguration
rw
A structure that contains much of the configuration data for the app monitor.
-
#custom_events ⇒ Types::CustomEvents
rw
Specifies whether this app monitor allows the web client to define and send custom events.
-
#cw_log_enabled ⇒ Boolean
rw
Data collected by RUM is kept by RUM for 30 days and then deleted.
-
#domain ⇒ String
rw
The top-level internet domain name for which your application has administrative authority.
-
#name ⇒ String
rw
A name for the app monitor.
-
#tags ⇒ Hash<String,String>
rw
Assigns one or more tags (key-value pairs) to the app monitor.
Instance Method Summary
::Aws::Structure
- Included
| #to_hash | Alias for Structure#to_h. |
Instance Attribute Details
#app_monitor_configuration ⇒ Types::AppMonitorConfiguration (rw)
A structure that contains much of the configuration data for the app
monitor. If you are using Amazon Cognito for authorization, you must
include this structure in your request, and it must include the ID
of the Amazon Cognito identity pool to use for authorization. If you
don't include AppMonitorConfiguration
, you must set up your own
authorization method. For more information, see Authorize your
application to send data to Amazon Web Services.
If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb', line 591
class CreateAppMonitorRequest < Struct.new( :app_monitor_configuration, :custom_events, :cw_log_enabled, :domain, :name, : ) SENSITIVE = [] include Aws::Structure end
#custom_events ⇒ Types::CustomEvents (rw)
Specifies whether this app monitor allows the web client to define
and send custom events. If you omit this parameter, custom events
are DISABLED
.
For more information about custom events, see Send custom events.
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb', line 591
class CreateAppMonitorRequest < Struct.new( :app_monitor_configuration, :custom_events, :cw_log_enabled, :domain, :name, : ) SENSITIVE = [] include Aws::Structure end
#cw_log_enabled ⇒ Boolean
(rw)
Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.
If you omit this parameter, the default is false
.
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb', line 591
class CreateAppMonitorRequest < Struct.new( :app_monitor_configuration, :custom_events, :cw_log_enabled, :domain, :name, : ) SENSITIVE = [] include Aws::Structure end
#domain ⇒ String
(rw)
The top-level internet domain name for which your application has administrative authority.
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb', line 591
class CreateAppMonitorRequest < Struct.new( :app_monitor_configuration, :custom_events, :cw_log_enabled, :domain, :name, : ) SENSITIVE = [] include Aws::Structure end
#name ⇒ String
(rw)
A name for the app monitor.
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb', line 591
class CreateAppMonitorRequest < Struct.new( :app_monitor_configuration, :custom_events, :cw_log_enabled, :domain, :name, : ) SENSITIVE = [] include Aws::Structure end
#tags ⇒ Hash
<String
,String
> (rw)
Assigns one or more tags (key-value pairs) to the app monitor.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with an app monitor.
For more information, see Tagging Amazon Web Services resources.
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/types.rb', line 591
class CreateAppMonitorRequest < Struct.new( :app_monitor_configuration, :custom_events, :cw_log_enabled, :domain, :name, : ) SENSITIVE = [] include Aws::Structure end


Virtual Reality (VR) is creating new opportunities to engage students with immersive content every day. The increased availability, newer technology, and lower costs have reduced the barrier to entry for many resulting in a rapidly growing community using the platform for its learning and socializing capabilities.
Over the summer, our office laid the ground work to begin implementing VR into our online course spaces. Specifically, we started exploring WebVR. WebVR is an open specification that makes it possible to experience VR on your browser or device. We found that a modern browser experience would eliminate the need for expensive gear and allow students to engage with the content on a device they're more comfortable with.
Our model-player leverages Google web VR technology to render 3D models on modern browsers and devices. Current Features:
Join me in the video below and I'll take you through a quick preview of the model-player illustrating some firearm models our team has been creating for Forensic Science. Keep in mind that we're still finalzing development, so this is intended only as a preview and does not represent the finished product.
Future plans include loading model-player up with models from all over the educational landscape. If you see the opportunity for VR in your science course, please contact us; we'd love to set up a consultation!


Guess a number between {{currentLow}} and {{currentHigh}}. You have guessed {{guesses}} times
Game says:{{message}}


In this project, you'll use generative adversarial networks to generate new images of faces.
You'll be using two datasets in this project:
Since the celebA dataset is complex and you're doing GANs in a project for the first time, we want you to test your neural network on MNIST before CelebA. Running the GANs on MNIST will allow you to see how well your model trains sooner.
If you're using FloydHub, set data_dir
to "/input" and use the FloydHub data ID "R5KrjnANiKVhLWAkpXhNBe".
data_dir = './data'
# FloydHub - Use with data ID "R5KrjnANiKVhLWAkpXhNBe"
#data_dir = '/input'
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
import helper
helper.download_extract('mnist', data_dir)
helper.download_extract('celeba', data_dir)
show_n_images = 25
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
%matplotlib inline
import os
from glob import glob
from matplotlib import pyplot
mnist_images = helper.get_batch(glob(os.path.join(data_dir, 'mnist/*.jpg'))[:show_n_images], 28, 28, 'L')
pyplot.imshow(helper.images_square_grid(mnist_images, 'L'), cmap='gray')
The CelebFaces Attributes Dataset (CelebA) dataset contains over 200,000 celebrity images with annotations. Since you're going to be generating faces, you won't need the annotations. You can view the first number of examples by changing show_n_images
.
show_n_images = 25
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
mnist_images = helper.get_batch(glob(os.path.join(data_dir, 'img_align_celeba/*.jpg'))[:show_n_images], 28, 28, 'RGB')
pyplot.imshow(helper.images_square_grid(mnist_images, 'RGB'))
Since the project's main focus is on building the GANs, we'll preprocess the data for you. The values of the MNIST and CelebA dataset will be in the range of -0.5 to 0.5 of 28x28 dimensional images. The CelebA images will be cropped to remove parts of the image that don't include a face, then resized down to 28x28.

You'll build the components necessary to build a GANs by implementing the following functions below:
model_inputs
discriminator
generator
model_loss
model_opt
train
This will check to make sure you have the correct version of TensorFlow and access to a GPU
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
from distutils.version import LooseVersion
import warnings
import tensorflow as tf
# Check TensorFlow Version
assert LooseVersion(tf.__version__) >= LooseVersion('1.0'), 'Please use TensorFlow version 1.0 or newer. You are using {}'.format(tf.__version__)
print('TensorFlow Version: {}'.format(tf.__version__))
# Check for a GPU
if not tf.test.gpu_device_name():
warnings.warn('No GPU found. Please use a GPU to train your neural network.')
else:
print('Default GPU Device: {}'.format(tf.test.gpu_device_name()))
Implement the model_inputs
function to create TF Placeholders for the Neural Network. It should create the following placeholders:
image_width
, image_height
, and image_channels
.z_dim
.Return the placeholders in the following the tuple (tensor of real input images, tensor of z data)
import problem_unittests as tests
def model_inputs(image_width, image_height, image_channels, z_dim):
"""
Create the model inputs
:param image_width: The input image width
:param image_height: The input image height
:param image_channels: The number of image channels
:param z_dim: The dimension of Z
:return: Tuple of (tensor of real input images, tensor of z data, learning rate)
"""
# TODO: Implement Function
inputs_real = tf.placeholder(tf.float32, (None, image_width, image_height, image_channels), name='inputs_real')
inputs_z = tf.placeholder(tf.float32, (None, z_dim), name='inputs_z')
learning_rate = tf.placeholder(tf.float32, None, name='learning_rate')
return inputs_real, inputs_z, learning_rate
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_model_inputs(model_inputs)
Implement discriminator
to create a discriminator neural network that discriminates on images
. This function should be able to reuse the variables in the neural network. Use tf.variable_scope
with a scope name of "discriminator" to allow the variables to be reused. The function should return a tuple of (tensor output of the discriminator, tensor logits of the discriminator).
def leakyReLU(x, alpha=0.2):
return tf.maximum(alpha * x, x)
def discriminator(images, reuse=False, alpha=0.2, keep_prob=0.8):
"""
Create the discriminator network
:param images: Tensor of input image(s) //dataset will be in the range of -0.5 to 0.5 of 28x28
:param reuse: Boolean if the weights should be reused
:return: Tuple of (tensor output of the discriminator, tensor logits of the discriminator)
"""
# Improvements: use odd-sized filters. Kernel size of 5 is a better choice nstead of 4.
# TODO: Implement Function
with tf.variable_scope('discriminator', reuse=reuse):
# Input layer is 28x28x3
c1 = tf.layers.conv2d(images, filters=128, kernel_size=(5,5), strides=(2,2), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
relu1 = leakyReLU(c1, alpha)
d1 = tf.nn.dropout(relu1, keep_prob=keep_prob)
#print(relu1.shape)
# now 14x14x128
c2 = tf.layers.conv2d(d1, filters=256, kernel_size=(5,5), strides=(2,2), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
bn2 = tf.layers.batch_normalization(c2, training=True)
relu2 = leakyReLU(bn2, alpha)
d2 = tf.nn.dropout(relu2, keep_prob=keep_prob)
#print(relu2.shape)
# now 7x7x256
c3 = tf.layers.conv2d(d2, filters=512, kernel_size=(5,5), strides=(2,2), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
bn3 = tf.layers.batch_normalization(c3, training=True)
relu3 = leakyReLU(bn3, alpha)
d3 = tf.nn.dropout(relu3, keep_prob=keep_prob)
#print(relu3.shape)
# now 4x4x512
# Flatten it
flat = tf.reshape(d3, (-1, 4*4*512))
logits = tf.layers.dense(flat, 1)
out = tf.sigmoid(logits)
return out, logits
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_discriminator(discriminator, tf)
Implement generator
to generate an image using z
. This function should be able to reuse the variables in the neural network. Use tf.variable_scope
with a scope name of "generator" to allow the variables to be reused. The function should return the generated 28 x 28 x out_channel_dim
images.
def generator(z, out_channel_dim, is_train=True, alpha=0.2):
"""
Create the generator network
:param z: Input z
:param out_channel_dim: The number of channels in the output image
:param is_train: Boolean if generator is being used for training
:return: The tensor output of the generator
"""
# TODO: Implement Function
# Model tipss:
# - use 5 layers, 3 layers are not enough
# - generators which are sufficiently larger than the discriminator tend to produce better samples.
with tf.variable_scope('generator', reuse=not is_train):
# project input vector with fully connected layer
x1 = tf.layers.dense(z, 7*7*512)
# Reshape it to start the convolutional stack
x1 = tf.reshape(x1, (-1, 7, 7, 512))
bn1 = tf.layers.batch_normalization(x1, training=is_train)
relu1 = leakyReLU(bn1)
#print(relu1.shape)
# 7x7x512 now
ct2 = tf.layers.conv2d_transpose(relu1, 256, kernel_size=(5,5), strides=(2,2), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
bn2 = tf.layers.batch_normalization(ct2, training=is_train)
relu2 = leakyReLU(bn2)
#print(relu2.shape)
# 14x14x256 now
ct3 = tf.layers.conv2d_transpose(relu2, 128, kernel_size=(5,5), strides=(2,2), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
bn3 = tf.layers.batch_normalization(ct3, training=is_train)
relu3 = leakyReLU(bn3)
#print(relu3.shape)
# 28x28x128 now
ct4 = tf.layers.conv2d_transpose(relu3, 64, kernel_size=(5,5), strides=(1,1), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
bn4 = tf.layers.batch_normalization(ct4, training=is_train)
relu4 = leakyReLU(bn4)
#print(relu4.shape)
# 28x28x64 now
# Output layer
# strides 1 to avoid checkerboard-like artifacts in the generated images. See: https://distill.pub/2016/deconv-checkerboard/
logits = tf.layers.conv2d_transpose(relu4, out_channel_dim, kernel_size=(5,5), strides=(1,1), padding='same',
kernel_initializer=tf.contrib.layers.xavier_initializer_conv2d())
print(logits.shape)
# 28x28xoutput_dim now
out = tf.tanh(logits)
return out
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_generator(generator, tf)
Implement model_loss
to build the GANs for training and calculate the loss. The function should return a tuple of (discriminator loss, generator loss). Use the following functions you implemented:
discriminator(images, reuse=False)
generator(z, out_channel_dim, is_train=True)
def model_loss(input_real, input_z, out_channel_dim, smooth = 0.1):
"""
Get the loss for the discriminator and generator
:param input_real: Images from the real dataset
:param input_z: Z input
:param out_channel_dim: The number of channels in the output image
:return: A tuple of (discriminator loss, generator loss)
"""
# TODO: Implement Function
d_out_real, d_logits_real = discriminator(input_real, reuse=False)
g_out_fake = generator(input_z, out_channel_dim, is_train=True)
d_out_fake, d_logits_fake = discriminator(g_out_fake, reuse=True)
d_loss_real = tf.reduce_mean(
tf.nn.sigmoid_cross_entropy_with_logits(logits=d_logits_real,
labels=tf.ones_like(d_out_real) * (1 - smooth)))
d_loss_fake = tf.reduce_mean(
tf.nn.sigmoid_cross_entropy_with_logits(logits=d_logits_fake,
labels=tf.zeros_like(d_out_fake)))
g_loss = tf.reduce_mean(
tf.nn.sigmoid_cross_entropy_with_logits(logits=d_logits_fake,
labels=tf.ones_like(d_out_fake)))
d_loss = d_loss_real + d_loss_fake
return d_loss, g_loss
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_model_loss(model_loss)
Implement model_opt
to create the optimization operations for the GANs. Use tf.trainable_variables
to get all the trainable variables. Filter the variables with names that are in the discriminator and generator scope names. The function should return a tuple of (discriminator training operation, generator training operation).
def model_opt(d_loss, g_loss, learning_rate, beta1):
"""
Get optimization operations
:param d_loss: Discriminator loss Tensor
:param g_loss: Generator loss Tensor
:param learning_rate: Learning Rate Placeholder
:param beta1: The exponential decay rate for the 1st moment in the optimizer
:return: A tuple of (discriminator training operation, generator training operation)
"""
# TODO: Implement Function
t_vars = tf.trainable_variables()
d_vars = [var for var in t_vars if var.name.startswith('discriminator')]
g_vars = [var for var in t_vars if var.name.startswith('generator')]
# Optimize
with tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS)):
d_train_opt = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=beta1).minimize(d_loss, var_list=d_vars)
g_train_opt = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=beta1).minimize(g_loss, var_list=g_vars)
return d_train_opt, g_train_opt
return None, None
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_model_opt(model_opt, tf)
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
import numpy as np
def show_generator_output(sess, n_images, input_z, out_channel_dim, image_mode):
"""
Show example output for the generator
:param sess: TensorFlow session
:param n_images: Number of Images to display
:param input_z: Input Z Tensor
:param out_channel_dim: The number of channels in the output image
:param image_mode: The mode to use for images ("RGB" or "L")
"""
cmap = None if image_mode == 'RGB' else 'gray'
z_dim = input_z.get_shape().as_list()[-1]
example_z = np.random.uniform(-1, 1, size=[n_images, z_dim])
samples = sess.run(
generator(input_z, out_channel_dim, False),
feed_dict={input_z: example_z})
images_grid = helper.images_square_grid(samples, image_mode)
pyplot.imshow(images_grid, cmap=cmap)
pyplot.show()
Implement train
to build and train the GANs. Use the following functions you implemented:
model_inputs(image_width, image_height, image_channels, z_dim)
model_loss(input_real, input_z, out_channel_dim)
model_opt(d_loss, g_loss, learning_rate, beta1)
Use the show_generator_output
to show generator
output while you train. Running show_generator_output
for every batch will drastically increase training time and increase the size of the notebook. It's recommended to print the generator
output every 100 batches.
def train(epoch_count, batch_size, z_dim, learning_rate, beta1, get_batches, data_shape, data_image_mode):
"""
Train the GAN
:param epoch_count: Number of epochs
:param batch_size: Batch Size
:param z_dim: Z dimension
:param learning_rate: Learning Rate
:param beta1: The exponential decay rate for the 1st moment in the optimizer
:param get_batches: Function to get batches
:param data_shape: Shape of the data
:param data_image_mode: The image mode to use for images ("RGB" or "L")
"""
# TODO: Build Model
#? tf.reset_default_graph()
print(data_shape)
_, image_width, image_height, image_channels = data_shape
# get placeholders
input_real, input_z, lr = model_inputs(image_width, image_height, image_channels, z_dim)
# get losses
d_loss, g_loss = model_loss(input_real, input_z, image_channels)
# get optimizers
d_opt, g_opt = model_opt(d_loss, g_loss, lr, beta1)
# Train Model
print_every = 25
show_every = 200
saver = tf.train.Saver()
steps = 0
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
for epoch_i in range(epoch_count):
for batch_images in get_batches(batch_size):
steps += 1
# Scale images:
# The output from the generator is bound between -1 and 1 as tanh activation function is used in the output layer.
# The input batch images are in the range -0.5 to 0.5. They must be scaled to match the values as in generated image.
batch_images = batch_images * 2
# TODO: Train Model
# Sample random noise for G
batch_z = np.random.uniform(-1, 1, size=(batch_size, z_dim))
# Run optimizers
_ = sess.run(d_opt, feed_dict={input_real: batch_images,
input_z: batch_z,
lr:learning_rate})
_ = sess.run(g_opt, feed_dict={input_real: batch_images,
input_z: batch_z,
lr:learning_rate})
# Execute the optimization for generator twice.
# This ensures that the discriminator loss does not go to 0 and impede learning.
_ = sess.run(g_opt, feed_dict={input_real: batch_images,
input_z: batch_z,
lr:learning_rate})
if steps % print_every == 0:
# At the end of each epoch, get the losses and print them out
train_loss_d = d_loss.eval({input_real: batch_images,
input_z: batch_z,
lr:learning_rate})
train_loss_g = g_loss.eval({input_real: batch_images,
input_z: batch_z,
lr:learning_rate})
print("Epoch: {}/{};".format(epoch_i+1, epochs),
"Batch: {:5d};".format(steps),
"Discriminator Loss: {:.4f}...".format(train_loss_d),
"Generator Loss: {:.4f}".format(train_loss_g))
if steps % show_every == 0:
show_generator_output(sess, 25, input_z, image_channels, data_image_mode)
saver.save(sess, './generator.ckpt')
Test your GANs architecture on MNIST. After 2 epochs, the GANs should be able to generate images that look like handwritten digits. Make sure the loss of the generator is lower than the loss of the discriminator or close to 0.
batch_size = 32
z_dim = 200
learning_rate = 0.001
beta1 = 0.2
# ==> Generator Loss gets bigger over, imgages gets bader
batch_size = 32
z_dim = 200
learning_rate = 0.0001
beta1 = 0.2
batch_size = 64
z_dim = 100
learning_rate = 0.0004
beta1 = 0.3
batch_size = 32
z_dim = 128
learning_rate = 0.0005
beta1 = 0.3
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
epochs = 2
mnist_dataset = helper.Dataset('mnist', glob(os.path.join(data_dir, 'mnist/*.jpg')))
with tf.Graph().as_default():
train(epochs, batch_size, z_dim, learning_rate, beta1, mnist_dataset.get_batches,
mnist_dataset.shape, mnist_dataset.image_mode)
Run your GANs on CelebA. It will take around 20 minutes on the average GPU to run one epoch. You can run the whole epoch or stop when it starts to generate realistic faces.
batch_size = 32
z_dim = 128
learning_rate = 0.0005
beta1 = 0.3
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
epochs = 1
celeba_dataset = helper.Dataset('celeba', glob(os.path.join(data_dir, 'img_align_celeba/*.jpg')))
with tf.Graph().as_default():
train(epochs, batch_size, z_dim, learning_rate, beta1, celeba_dataset.get_batches,
celeba_dataset.shape, celeba_dataset.image_mode)
When submitting this project, make sure to run all the cells before saving the notebook. Save the notebook file as "dlnd_face_generation.ipynb" and save it as a HTML file under "File" -> "Download as". Include the "helper.py" and "problem_unittests.py" files in your submission.
print('the end')


You're all set!
- Add cards Click the Trello icon in the toolbar.
- Open boards quickly Select the Omnibox using ⌘ + L on OS X or CRTL + L on Windows and then press t space followed by the name of the board you want to open.
Provide feedback and check up on progress of new features on the tabTools.


Pseudo Wire Reference
Table of Contents
1. An Introduction
Introduction, Requirements and Credits
How to Play
2. Addon Packages
What are Addons?
Installation
Creating Addons
3. Standard Lua Package Reference
What is the SLP?
Categories
4. Scripting with Lua
Your First Script
5. Lua API (Objects and Classes)
Pseudo Wire Library
Component
Vector
Color
Shape
Image
Sprite
RenderTexture


Ways and Means
The goal of this app is to simulate an election--originally conceived for another game I was developing on my own (though never implemented). The basic functionality of the app would be to elect players/users into various roles for a political simulator (e.g. President, Senator etc.) each of which will have varying powers. For this app however powers will just be listed as strings rather than implemented.
Another idea is to allow players regions be visible on a map and simulating something similar to a typical electorate. If time permits, players will be able to launch campaigns before voting occurs
10-100-- A cap of 100 players should limit game runtimes to something reasonable
Users wouldn't need too many skills beyond a basic understanding of U.S. elections processes and access to (and ability to) use computers. The game will likely be timed as well so users would need to be responsible to time limits in the voting
The primary activity type for this app is for fun/playing a game
The app will likely use firebase to store users/election results. Due to this data storage method, it will be easy to pull results live into an app and display live election results. This could initially be done by just displaying results with text and as the app progresses it might be possible to display results using a map that changed colors depending on how results are occuring. An early idea would be to limit the game to two parties and two candidates that everyone votes on to limit the scope. This would make it easier to display the map.
When the time limit has expired the user simply has to view the same page as the live results--though updates would cease at this pointe, and perhaps a card or popup would inform users of the winner.
Admin can see everything users can see, as well as who is currently online. Perhaps admin could also grant time extensions as needed for games.


Try out our Premium Member services: Virtual Legal Assistant, Query Alert Service and an ad-free experience. Free for one month and pay only if you like it.
IN THE HIGH COURT OF JUDICATURE AT MADRAS DATED: 25/11/2004 CORAM THE HON'BLE MR.JUSTICE N.V.BALASUBRAMANIAN AND THE HON'BLE MRS. JUSTICE R.BANUMATHI W.P.No.35666 of 2002 and W.P.M.P.No.53298 of 2002 M. Joseph Rathnasamy, S/o.A.Michael, Poonagaram, 8th Cross, Madurai. .....Petitioner -Vs- 1. The Government of Tamil Nadu, rep. by its Secretary to Government, Department of Industries, Fort. St. George, Chennai 600 009. 2. Member Secretary, Tamil Nadu Pollution Control Board, Chennai. 3. The District Environment Engineer, Tamil Nadu Pollution Control Board, 668, SIDCO Industrial Estate, Kappalur, Madurai 625 006. 4. The Joint Director of Agriculture, Madurai. 5. St.Pious Boys Tour Trust, Madurai rep. by its Managing Trustee Bro.Analar, Pulluttur (Post), Ellisnagar (Via) Madurai 625 010. 6. Meron Biopolymers rep. by its Managing Partner, Deepa Building, Santo Gopalan Road, Chullukkal, Cochin 682 005. .....Respondents Writ Petition filed under Article 226 of the Constitution of India, praying for Issuance of Writ of Certiorarified Mandamus, as stated therein. For Petitioner :- Mrs. Radhika Krishnan for M/s. Ramasubramaniam Associates For Respondents:- Mr. P.S.Sivashanmuga Sundaram Additional Government Pleader for R-1 to R-4 Mrs. Rita Chandrasekaran for R-2,3 Mr. S. Jayaraman for R-5 No appearance for R-6 :ORDER
(Order of the Court was made by R.BANUMATHI, J.) This Writ Petition has been filed for issuance of Writ of Certiorarified Mandamus, calling for the records of the Second Respondent in Consent Order No.007 dated 30.01.2002 and to quash the same and forebear the Respondents 1 to 4 from according any approval to the Sixth Respondent for running a manufacturing unit in R.S.Nos.10,11 and 13 in Melamathur Village, Madurai.
2. The Petitioner is the Executive Director of a Three Star Hotel Germanus Days Inn, which is situated in the outskirts of Madurai City surrounded by Nagamalai Hills, about 6 K.Ms away from Madurai. The Petitioner has constructed Hotel in that area only on account of the scenic surrounding. The Fifth Respondent owns about Three acres of land comprised in Survey Nos.10,11 and 13 in Melamattur Village, which is one of the villages in Revenue village Pulluttu. Pulluttu also attracts lot of local tourists because of the natural spring Nagar Theertham. The Sixth Respondent / Meron Biopolymers being a Company having its office at Cochin is manufacturing the products from Sea Weeds. The Fifth Respondent has entered into an agreement with the Sixth Respondent for a small portion. Later, the Petitioner has found that the Sixth Respondent has put up a big manufacturing unit, which is to be processed from out of the Sea Weeds to be used for the manufacture of Pharmaceuticals. The Unit requires about 50,000 litres of Water. Consumption of such huge quantity of Water would cause diminution of the Ground Water table.
3. The Petitioner contends that the Industry now sought to be set up by the Sixth Respondent is a Chemical Unit which generates polluted effluents, falling within G.O.Ms.No.213 Environment and Forests ( EC-1 ) dated 30.03.1989, which prohibits establishments of Industries as listed in Annexure I within 1 K.M from the embankments of the water sources mentioned in Annexure 2 of the Notification. The Fifth Respondent has not permitted the Sixth Respondent to construct such a huge factory as they had only executed a lease in respect of a small shed and residential unit in S.No.11 of Melamattur Village. The Second Respondent has issued the Consent Order dated 30.01.2002, on the basis of which, the Sixth Respondent appears to be proceeding with the construction. The Consent Order issued by the Second Respondent has been granted only under Sec.21 of the AIR (Prevention and Control of Pollution) Act 1981 (hereinafter referred to as AIR (P & CP)Act) and not under the Water (Prevention and Control of Pollution) Act 1974 ( hereinafter referred to as Water (P&CP)Act). On the facts and circumstances, the Second Respondent cannot give the Consent Order to the Sixth Respondent for putting up such Industry as it is within 2 K.Ms from the River Vaigai, thereby attracting the Prohibition under G.O.Ms. 213 Environment and Forests (EC-1) dated 30.03.1989 and G.O.Ms.No.127 Environment and Forests (EC-3) dated 08.05.1998. The Petitioner prays for issuance of a Writ contending that the Industrial Unit put up by the Sixth Respondent and the effluents would be great intensity affecting the Ground Water and the Air in and around the area would also be polluted.
4. The Fourth Respondent / Joint Director of Agriculture has filed the Counter denying the averments in the Petition. He has stated that so far no letter has been received from the Petitioner by the Respondent. He has further stated that no Consent Order has been passed or given by the Second Respondent and hence, the question of cancellation of Consent Order by the Second Respondent does not arise.
5. We have heard the submissions of the learned counsel for the Petitioner. Contending that the issuance of Consent Order by the Second Respondent / Tamil Nadu Pollution Control Board is not in accordance with the provisions of G.O.Ms.No.213 Environment and Forests (EC-1) dated 30.03.1989, learned counsel urged that the putting up of the factory with its manufacturing unit at Melamattur village in S.Nos.10 ,11 and 13 is to be restrained. The main contention urged is that the factory set up by the Sixth Respondent would fall within the Industries listed in Annexure I of G.O.Ms.No.213 Environment and Forests (EC-1) dated 30.03.1989, which prohibits establishment of Industries within 1 K.M from embankments of the water sources. Subsequently, by G.O. Ms.No.127 Environment and Forests (EC-3) dated 08.05.1998, the distance of 1 K.M stipulated in G.O.Ms.No.123 Environment and Forests (EC-1) dated 30.03.1989 has been extended to a distance of 5 K.M. Drawing our attention to the above Government Orders, learned counsel for the Petitioner urged that the factory sought to be set up by the Sixth Respondent is to be prohibited. The next contention urged by the Petitioner is that from the reply of the Fifth Respondent, the Petitioner has learnt that the Sixth Respondent has put up the manufacturing unit in S.Nos.10.11 and 13 in violation of the Lease Agreement.
6. We have carefully considered the averments in the petition, submissions of the learned counsel appearing for the Petitioner and the Respondents and the materials on record.
7. From the records, it is seen that the Second Respondent has issued Order (Consent Order No.007 Dated 30.01.2002) in favour of the Sixth Respondent for construction of the Unit in S.Nos.10,11 and 13 of Melamathur Village. The permission granted is valid for two years. The said Consent Order was issued under AIR (P & CP) Act.
8. As per Water (P & CP) Act, prior concurrence of the Agriculture Department is to be obtained. From the Counter Statement filed by the Fourth Respondent, it is seen that the following guidelines are given:- i.In G.O.Ms.No.559, Agriculture (AP.I) Department dated 09.10.1991, the Government directed the Planning Authorities of the State to get the prior concurrence of the Agriculture Department that the wet lands concerned are not fit for cultivation before according approval to House Sites building plans, whenever the private wet lands are involved.
ii.In G.O.Ms.No.605 Agriculture (API) Department dated 11.11.1991, the Government has issued the following guide lines for regulating the issue of concurrence by the Joint Directors.
Further guidelines are given that while granting such consent order, the Joint Directors of Agriculture Department should ensure that the wet lands involved are not fit for cultivation. While granting concurrence of the Department to the Planning Authorities for converting the same for non agricultural purposes, the Joint Directors are empowered to grant the concurrence in respect of Building Applications only. The Joint Directors of Agriculture Department are empowered to grant concurrence in respect of individual building applications only. In the case of layouts for building sites, application for cluster of building, private group houses, apartments, Factories and building coming under non-residential purposes like shopping complex, play grounds, parks, cinema houses, Kalyan Mandaps etc, only the Government in Agriculture Department is the competent authority to grant concurrence for conversion of wet lands. The same has been amended in Government Letter No.4913/AP.I/92-2 dated 01.04.1992 of the Agriculture Department, Madras 9, which is as follows:
In cases where the Master Plan / Detailed Development plan has been prepared and consented under the Town and Country Planning Act and if the proposals of the applicant conforms to the approved land use in the said plans, the No Objection Certificates from the Agriculture Department is not necessary. The onus of deciding the need to refer such cases or not to refer such cases will rest with the Planning Authorities.
9. The above Amendment relates only to the Master Plan / Detailed Development Plan. Thus, in cases of Factories presently, only the Agriculture Department / the Fourth Respondent is competent to issue the consent letter regarding conversion of Agricultural land into Non Agricultural land and construction of factory (Vide Counter filed by the Fourth Respondent) Act. The Sixth Respondent has not at all made any requisition to the Agriculture Department for issuing concurrence Letter. In the Counter Statement, the Fourth Respondent has denied receipt of any petition from the Petitioner. Further, the Fourth Respondent has asserted no consent order has been passed or given by the second respondent to the Sixth Respondent and hence, the question of cancellation of Consent Order does not arise. Further, no proposal requesting to issue concurrence for the construction of factory by the Sixth Respondent has been sent to the Government by the fourth respondent.
10. The main point urged onbehalf of the Petitioner is that the proposed Factory by the Sixth Respondent would require the minimum qunatity of 50,000 litres of Water and if the Sixth Respondent is permitted to draw such huge quantity of Water, it would result in the level of reduction of Ground Water Table, ultimately affecting the entire Agricultural activities in and around the area. Further contention of the Petitioner is that the Industry now sought to be set up is a Chemical Unit which generates polluted effluents. Learned counsel for the Petitioner drawn the attention of the Court to G.O.Ms.No.213 Environment and Forests (EC-1) dated 30.03.1989, which prohibits establishments of Industries as listed in Annexure I within 1 K.M from the embankments of the water sources mentioned in Annexure 2 of the Notification. Now, by G.O.Ms.No.127 Environment and Forests (EC-3) dated 08.05.1998, the distance of 1 K.M stipulated in G.O.Ms.No.123 Environment and Forests (EC-1) dated 30.03.1989 has been extended to a distance of 5 K.M. Whether the Factory that is sought to be set up by the Sixth Respondent is falling within the prohibited distance or not is the matter of Investigation that is to be undertaken by the Appropriate Authority.
11. From the Counter Statement filed by the Sixth Respondent, it is clear that the Sixth Respondent has not obtained the Consent Letter from the Agricultural Department, who is competent to issue the Consent Letter for starting the Factory. The Tamil Nadu Pollution Control Board has issued the Consent Order No.007 Dated 30.01.2002 in favour of the Sixth Respondent only AIR (P & CP) Act. It was informed by the Second Respondent / Pollution Control Board that Consent Letter has been issued under the Water (P&CP) Act also. Despite several adjournments, no Letter or definite materials have been produced before this Court that the Consent Letter was also issued under the Water (P&CP) Act.
12. When the matter was heard on several occasions, the Second Respondent / Tamil Nadu Pollution Control Board has only filed the Report informing the Court that the Sixth Respondent Meron Biopolymers was inspected on 04.11.2004 and that the Unit was found to be not in operation. It is further stated that the Chief Executive of the Unit vide letter dated 24.01.2004 has informed that the proposal for establishing the Unit has been dropped. The representative of the Fifth Respondent, who is the owner of the land leased to the Sixth Respondent has also informed the Second Respondent during the Inspection that the Unit was not in operation.
13. Learned counsel for the Petitioner has also informed the Court that after the filing of the Writ Petition, the Unit is not in operation. The Statement of the Second Respondent that the Unit is not in operation is recorded. In view of the above, the Second and Fourth Respondents are directed not to permit the Sixth Respondent to run the Factory in future.
14. This Writ Petition is ordered accordingly. No costs. The connected W.P.M.P.No.53298 of 2002 is closed.
Index: Yes Internet: Yes Dpn/-


{% load static %}
Futiweb
Futiweb
Home
About
{% static 'foot/img/' as baseUrl %}
Crest
Club
Diff
Matchday
Points
{% for entry in standings %}
{{ entry.teamName }}
{{ entry.goalDifference }}
{{ entry.playedGames }}
{{ entry.points }}
{% endfor %}
made by yabbes using the Football-Data.org API, Django and Bootstrap


Introduction
University students love food and making new friends. The cultrual diversity on American campus also makes it possible for students to taste food from different regions and learn more about a new culture. However, they lack a platform to connect with each other.
In the class of Introduction to Interaction Design, I designed a social dining application to help students connect with each other by having casual dinner/lunch together.


Free food & Free lab coat for decoration! Show your science pride by decorating a lab coat. If you have one, you can bring your own lab coat. We have 10 lab coats for you. First come, first serve so arrive early! Sign up as a team of maximum 5 people and win a prize!
Fun night at the Phoenix with Science Trivia (trivia questions submitted from each department) and Bingo to get to know each other across disciplines. Dean (Dr.Baker) and associate dean (Dr. Welch) joined us for this social.
More than 80 science grad students had a good time by playing a socializing game, making new friends in different departments over free food and drinks


Phone<PHONE_NUMBER>
Email<EMAIL_ADDRESS>F.A.Q
HOW IT WORKS
CALL US
Just fill the form or call us directly so much you need, we will reply it asap, you dont need ticket to get support from us.
CHOOSE YOUR PACKAGE
Just choose the type of package you want. We'll be at your home to take you clothes.
PICK-UP & DELIVERY
Choose the type of delivery according to your time convinience.
BILLING & PAYMENTS
Billing & payment are done at your doorstep.
Frequently Asked Questions
GENERAL QUESTION
Do you pick up and delivery?
Yes, we take your clothes from your home and return it to you on time .
How do I let you know about my preferences?
You can easily specify your personal preferences by including a note in with your bag of items or by typing your request at the time of filling clothes details in our form when you place your order online.
How do I avail discounts?
Any discounts/Offers is aptly displaced on the website or App. Also, keep checking your inbox regularly for exciting offers.
Can I get my Wash & Fold turned around next day?
Yes we clean your clothes very carefully,after ironing we give it back to you on next day*.
Who uses your Pickup & delivery services?
Everyone, Our customers range from college students to busy professionals to seniors! Our service is for people who want to free-up time from a tedious and labour intensive task.
ABOUT US
We provides premium washing and dry cleaning service leveraging mobile based technology. our aims at providing high quality laundry services coupled with customized experience and express delivery.
CONNECT WITH US
OPERATIONAL TIMINGS
GET IN TOUCH
Phone :<PHONE_NUMBER>
Email<EMAIL_ADDRESS>Website : www.xyz.com
Address : 88/1,Patel nagar
Kanpur
208007 U.P.
©2015 XYZ. All Rights Reserved