Artistic Style can be compiled as a shared library (DLL) and called from a C# program.
A compiled C# program can be run on any platform. Artistic Style, however, is a C++ program and must be compiled on the platform on which it will run. Once this is done Artistic Style can be called from a C# program.
To compile Artistic Style for use with a C# program the compile option ASTYLE_LIB must be defined. Then it will accept the files and options as parameters from a function call instead of the command line. It is the responsibility of the calling program to read the source files and accept the options from the user via a graphical interface or other method. These are then passed via the function call described below. After the source files are formatted they will be returned to the calling program, which must then save the source file and take other appropriate action.
This method is called to format the source code.
/// AStyleMainUtf16 DllImport. /// NOTE: CharSet.Unicode and wide strings are used here. [DllImport(dllName, CharSet = CharSet.Unicode)] private static extern IntPtr AStyleMainUtf16( [MarshalAs(UnmanagedType.LPWStr)] String sIn, [MarshalAs(UnmanagedType.LPWStr)] String sOptions, AStyleErrorDelgate errorFunc, AStyleMemAllocDelgate memAllocFunc );
sIn
A wide-string pointer to the source file to be formatted.
sOptions
A wide-string pointer to the formatting options. They should be in the same format as in the default options file.
The options may be set apart by new-lines, commas, tabs or spaces. The long options do not need the "--" prefix.
Comments may be used but they must be terminated by a new-line "\n" character.
For a C# file the file mode option "mode=cs" must be included. Otherwise the default mode of C/C++ is used.
errorFunc
A delegate containing the error handling function. If there are errors in the parameters sIn or sOptions, this function
is called. See the following section on Callback Methods for more information..
memAllocFunc
A delegate to the memory allocation function. The calling program must allocate memory
for the output source file. See the following section on Callback Methods for more information.
The calling program is responsible for freeing the allocated memory when it is no longer needed.
If the function succeeds, the return value is an IntPtr to the formatted source code. This function returns a 16-bit Unicode string. The IntPtr should be converted to a C# string using Marshal.PtrToStringUni.
If the function fails, the return value is a pointer to an empty string. Before the pointer is returned, an error message will be sent to the error handling function.
This function typically fails for one of the following reasons:
The calling program is responsible for freeing the memory allocated by memAllocFunc when it is no longer needed.
The call to AStyleMainUtf16 should be placed in a try/catch block that contains a DllNotFoundException to handle a missing shared library and an EntryPointNotFoundException to handle not finding the entry point. A BadImageFormatException will be thrown if the shared object (dll) does not use the same bit configuration (32 or 64) as the calling program.
Callback methods must be delegated for the call to AStyleMainUtf16.
/// AStyleMainUtf16 callbacks. /// NOTE: Wide strings are NOT used here. private delegate IntPtr AStyleMemAllocDelgate(int size); private delegate void AStyleErrorDelgate( int errorNum, [MarshalAs(UnmanagedType.LPStr)] String error ); /// AStyleMainUtf16 Delegates. private AStyleMemAllocDelgate AStyleMemAlloc; private AStyleErrorDelgate AStyleError; /// Declare callback functions. public AStyleInterface() { AStyleMemAlloc = new AStyleMemAllocDelgate(OnAStyleMemAlloc); AStyleError = new AStyleErrorDelgate(OnAStyleError); }
The methods OnAStyleMemAlloc and OnAStyleError contain the memory allocation and error handling methods. These methods must be written to allocate the required memory and process any errors returned from AStyleMainUtf16. The delegates AStyleMemAllocDelgate and AStyleErrorDelgate are used in the call to AStyleMainUtf16. The delegates are similar to C++ function pointers, but are type safe.
AStyleErrorDelgate
OnAStyleError is called if there are errors in the string parameters in the call
to AStyleMainUtf16. It should display an error message and then either abort or continue the program depending on the
error. The first parameter is a number identifying the error. The second parameter is a pointer to a standard
error message. The error message
is Not Unicode. The message is deleted when the error handler returns.
Error messages numbered 100-199 are errors that prevent the file from being formatted. A NULL pointer is returned to the calling program. Error messages numbered 200-299 are errors that do NOT prevent the file from being formatted. A valid string containing a formatted file is returned. This will occur if an invalid option is sent to AStyleMainUtf16. The calling program has the option of accepting or rejecting the formatted file.
AStyleMemAllocDelgate
OnAStyleMemAlloc is the memory allocation method. The program must allocate
memory for the output source file. This function will be called when the memory is needed. The parameter is the
amount of memory that should be allocated
in number of char's.
Memory should be allocated using Marshal.AllocHGlobal. With this method, if there is an allocation exception, a NULL pointer will be sent to AStyleMainUtf16. Artistic Style will generate an error message and return an empty string from the AStyleMainUtf16 function. The calling program can handle the exception at this point rather than in the memory allocation function. See the following example program for the procedure.
The calling program is responsible for freeing the memory allocated by memAllocFunc when it is no longer needed.
This method is called to get the Artistic Style version number.
[DllImport(dllName)] private static extern IntPtr AStyleGetVersion();
The return value is an IntPtr to the Artistic Style version number. This function does NOT return Unicode. The IntPtr should be converted to a C# string using Marshal.PtrToStringAnsi.
The call to AStyleGetVersion should be placed in a try/catch block that contains a DllNotFoundException to handle a missing shared library and an EntryPointNotFoundException to handle not finding the entry point. A BadImageFormatException will be thrown if the shared object (dll) does not use the same bit configuration (32 or 64) as the calling program.
The following example formats source files by calling the Artistic Style formatter. It is a console application but the procedure for a GUI is the same. The two classes can be copied and pasted into source files. Or they can be downloaded with test data from the "Developer Information" page. The Artistic Style source code must be compiled as a shared library (DLL) using the option ASTYLE_LIB. The shared library must be copied to the directory that contains the C# executable (it is loaded from the current directory). The directory of the files to be formatted is an absolute path in the function getProjectDirectory() in Example.cs. This will need to be changed to reflect your directory structure. When the program is run be sure the current working directory is the directory with the executable and shared library.
// Example.cs using System; using System.IO; using System.Text; /// Example opens the source files, calls the AStyleInterface methods /// to format the files, and saves the reformatted source. The files /// are in a test-data directory. The option mode=cs must be included /// for C# files. public class Example { /// Main function for this example. public static void Main(string[] args) { // files to pass to AStyle String[] fileName = { "AStyleDev/test-data/ASBeautifier.cpp", "AStyleDev/test-data/ASFormatter.cpp", "AStyleDev/test-data/astyle.h" }; // options to pass to AStyle // mode=cs is required for C# files String options = "style=java, indent=tab, mode=cs"; // create an object AStyleInterface AStyle = new AStyleInterface(); // get Artistic Style version // does not need to terminate on an error String version = AStyle.GetVersion(); if (version != String.Empty) Console.WriteLine("Example C# - AStyle " + version); // process the files for (int i = 0; i < fileName.Length; i++) { // get the text to format String filePath = GetProjectDirectory(fileName[i]); String textIn = GetText(filePath); // call the Artistic Style formatting function // does not need to terminate on an error String textOut = AStyle.FormatSource(textIn, options); // does not need to terminate on an error // an error message has been displayed by the error handler if (textOut == String.Empty) { Console.WriteLine("Cannot format " + filePath); continue; } // return the formatted text Console.WriteLine("Formatted " + fileName[i]); SetText(textOut, filePath); } return; } /// Error message function for this example. private static void Error(String message) { Console.WriteLine(message); Console.WriteLine("The program has terminated!"); Environment.Exit(1); } /// Prepend the project directory to the subpath. /// This may need to be changed for your directory structure. private static String GetProjectDirectory(String subPath) { String homeDirectory = null; if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX) { homeDirectory = Environment.GetEnvironmentVariable("HOME"); // HOME is not always recognized on OSX, this usually works if (homeDirectory == null) homeDirectory = Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); } else homeDirectory = Environment.GetEnvironmentVariable("USERPROFILE"); if (homeDirectory == null) Error("Cannot find HOME directory!"); String projectPath = homeDirectory + "/Projects/" + subPath; return projectPath; } /// Get the text to be formatted. /// Usually the text would be obtained from an edit control. private static String GetText(string filePath) { // create input buffers const int readSize = 131072; // 128 KB StringBuilder bufferIn = new StringBuilder(readSize); char[] fileIn = new char[readSize]; // read file data try { FileStream file = new FileStream(filePath, FileMode.Open); StreamReader streamIn = new StreamReader(file); // use ReadBlock to preserve the current line endings int charsIn = streamIn.ReadBlock(fileIn, 0, readSize); while (charsIn != 0) { bufferIn.Append(fileIn, 0, charsIn); charsIn = streamIn.ReadBlock(fileIn, 0, readSize); } streamIn.Close(); } catch (DirectoryNotFoundException e) { Console.WriteLine(e.ToString()); Error("Cannot find directory " + filePath); } catch (FileNotFoundException e) { Console.WriteLine(e.ToString()); Error("Cannot find file " + filePath); } catch (Exception e) { Console.WriteLine(e.ToString()); Error("Error reading file " + filePath); } return bufferIn.ToString(); } /// Return the formatted text. /// Usually the text would be returned to an edit control. private static void SetText(String textOut, String filePath) { // create a backup file String origfilePath = filePath + ".orig"; File.Delete(origfilePath); // remove a pre-existing file FileInfo outFile = new FileInfo(filePath); outFile.MoveTo(origfilePath); // write the output file - same name as input try { char[] bufferOut = textOut.ToCharArray(); FileStream file = new FileStream(filePath, FileMode.Create); StreamWriter streamOut = new StreamWriter(file); streamOut.Write(bufferOut, 0, bufferOut.Length); streamOut.Close(); } catch (Exception e) { Console.WriteLine(e.ToString()); Error("Error writing file " + filePath); } return; } } // class Example
Beginning with version 2.04 of Artistic Style UTF-16 Unicode can be used by calling the function AStyleMainUtf16. The changes from previous versions are indicated by a red background . The old method can still be used but to convert Unicode you will need to convert to and from UTF-8 in the C# program and call AStyleMain instead. A method for UTF-8 conversion can probably be found on the internet. With C#, UTF-16 Unicode is used in both Linux and Windows.
// AStyleInterface.cs using System; using System.Runtime.InteropServices; /// AStyleInterface contains methods to call the Artistic Style formatter. public class AStyleInterface { // Dll name #if (WINDOWS) // Windows will NOT attach an extension to a filename containing dots (.). #if (DEBUG) private const String dllName = "astyle-2.05d.dll"; #else private const String dllName = "astyle-2.05.dll"; #endif #else #if (DEBUG) private const String dllName = "astyle-2.05d"; #else private const String dllName = "astyle-2.05"; #endif #endif /// AStyleGetVersion DllImport. /// Cannot use String as a return value because Mono runtime will attempt to /// free the returned pointer resulting in a runtime crash. /// NOTE: CharSet.Unicode is NOT used here. [DllImport(dllName)] private static extern IntPtr AStyleGetVersion(); /// AStyleMainUtf16 DllImport. /// Cannot use String as a return value because Mono runtime will attempt to /// free the returned pointer resulting in a runtime crash. /// NOTE: CharSet.Unicode and wide strings are used here. [DllImport(dllName, CharSet = CharSet.Unicode)] private static extern IntPtr AStyleMainUtf16( [MarshalAs(UnmanagedType.LPWStr)] String sIn, [MarshalAs(UnmanagedType.LPWStr)] String sOptions, AStyleErrorDelgate errorFunc, AStyleMemAllocDelgate memAllocFunc ); /// AStyleMainUtf16 callbacks. /// NOTE: Wide strings are NOT used here. private delegate IntPtr AStyleMemAllocDelgate(int size); private delegate void AStyleErrorDelgate( int errorNum, [MarshalAs(UnmanagedType.LPStr)] String error ); /// AStyleMainUtf16 Delegates. private AStyleMemAllocDelgate AStyleMemAlloc; private AStyleErrorDelgate AStyleError; /// Declare callback functions. public AStyleInterface() { AStyleMemAlloc = new AStyleMemAllocDelgate(OnAStyleMemAlloc); AStyleError = new AStyleErrorDelgate(OnAStyleError); } /// Call the AStyleMainUtf16 function in Artistic Style. /// An empty string is returned on error. public String FormatSource(String textIn, String options) { // Return the allocated string // Memory space is allocated by OnAStyleMemAlloc, a callback function String sTextOut = String.Empty; try { IntPtr pText = AStyleMainUtf16(textIn, options, AStyleError, AStyleMemAlloc); if (pText != IntPtr.Zero) { sTextOut = Marshal.PtrToStringUni(pText); Marshal.FreeHGlobal(pText); } } catch (BadImageFormatException e) { Console.WriteLine(e.ToString()); Console.WriteLine("You may be mixing 32 and 64 bit code!"); } catch (DllNotFoundException) { //Console.WriteLine(e.ToString()); Console.WriteLine("Cannot load native library: " + dllName); Console.WriteLine("The program has terminated!"); Environment.Exit(1); } catch (Exception e) { Console.WriteLine(e.ToString()); } return sTextOut; } /// Get the Artistic Style version number. /// Does not need to terminate on error. /// But the exception must be handled when a function is called. public String GetVersion() { String sVersion = String.Empty; try { IntPtr pVersion = AStyleGetVersion(); if (pVersion != IntPtr.Zero) { sVersion = Marshal.PtrToStringAnsi(pVersion); } } catch (BadImageFormatException e) { Console.WriteLine(e.ToString()); Console.WriteLine("You may be mixing 32 and 64 bit code!"); Console.WriteLine("The program has terminated!"); Environment.Exit(1); } catch (DllNotFoundException) { //Console.WriteLine(e.ToString()); Console.WriteLine("Cannot load native library: " + dllName); Console.WriteLine("The program has terminated!"); Environment.Exit(1); } catch (Exception e) { Console.WriteLine(e.ToString()); Console.WriteLine("The program has terminated!"); Environment.Exit(1); } return sVersion; } /// Allocate the memory for the Artistic Style return string. private IntPtr OnAStyleMemAlloc(int size) { return Marshal.AllocHGlobal(size); } /// Display errors from Artistic Style . private void OnAStyleError(int errorNumber, String errorMessage) { Console.WriteLine("AStyle error " + errorNumber + "\n" + errorMessage); } } // class AStyleInterface


AMERICAN BEAUTY (director:Sam Mendes; screenwriter:Alan Ball; cinematographer: Conrad L. Hall; cast: Kevin Spacey (Lester Burnham), Annette Bening (Caroline Burnham),Thora Birch (Jane Burnham), Wes Bentley (Ricky Fitts), Mena Suvari (Angela Hayes), Chris Cooper (Colonel Fitts), Peter Gallagher (Buddy Kane), Allison Janney (Barbara Fitts), Barry Del Sherman (Brad), Scott Bakula (Jim No. 1), Sam Robards (Jim No. 2), 1999)
Reviewed by Dennis Schwartz
This is a Steven Spielberg DreamWorks project film. Sam Mendes was personally hired by the big boss, as he makes his feature film directorial debut with American Beauty. He previously directed Arthur Schnitzler's play "The Blue Room" on Broadway, starring Nicole Kidman, and he also directed the award-winning London production of "The Rise and Fall of Little Voice."
Mendes turns his attention here to the Anywhere in America, suburbs, a favorite place for sitcoms, where the middle-class are always ripe for social criticism. In this case, the film hones in on two dysfunctional suburban families living next to each other, both with disturbing sexual problems that keep each family from enjoying the "good life" they should be having, even if they live in a good neighborhood with tree-lined streets and have beautiful houses; but, there is something wrong with them: they are living in hate.
In the first house, are the Burnhams: Lester (Kevin Spacey) is a repressed middle-aged man. Carolyn (Annette Bening), is Lester's frigid and enterprising Realtor wife, who is more interested in the material things of life and in her hobby of growing garden roses, than she is in having a warm relationship with her husband, whom she looks down upon.  Her unattentive folks don't even realize what is eating at her, that she wants an unneeded breast enlargement, and that she lacks self-esteem, thinking of herself as being unattractive.
The Fitts' are the new neighbors of the Burnhams and the second dysfunctional family featured.  The father tests his son every few months for drugs by taking a sample of his urine.
The story centers around three sudden changes that happen to Lester, as Lester via a voiceover from the other world, tells us he died within the year of this story taking place. He is, at first, seen as a bland, white-collar working stiff who feels in the doldrums about the emptiness of his life and has what may be loosely termed, a spiritual reawakening, when the frustration of his unsatisfying job as an editor for the last 14-years at an advertising publication firm reaches a critical point, and before he gets the ax, he forces by bribery his snotty young boss Brad (Del Sherman) to pay him a year's salary for severence pay, as he also gets to tell him to go f*ck himself. Secondly, Ricky sells him some top-notch grass and he starts listening to some old Dylan recordings as he gets stoned, instead of having to listen to the Lawrence Welk type of music his wife likes to put on when they're dining. And thirdly, his antagonistic daughter Jane (Thora), reluctantly introduces him to her nubile high school cheerleader friend, Angela (Mena), at a basketball game he is dragged to by his wife. He falls in love with Angela instantly and has her in his erotic dreams- where rose petals are seen coming out from her cheerleader's sweater.   She enjoys having Jane's father staring at her, as she tells the embarrassed Jane, that he's cute, and if he worked out and got muscles she would go to bed with him. Lester overhears this on the night Angela sleeps over in their house and immediately starts a physical training program to pull in his gut and become muscular.
Lester is rejuvenated by his dream girl, loses his inhibitions as he starts to smoke pot regularly, and tries to turn back the clock to his youth by becoming a hamburger flipper in a fast-food place, recalling how happy he once was when working at a job without responsibilities and getting laid and stoned all the time.
The story now follows Carolyn, who is having an affair with someone she idolizes, her competitor, the king of the local real estate market, Buddy `The King' Kane (Peter Gallagher), a person more driven for success and more wrapped up in himself than she is. She also learns to shoot a gun, at the suggestion of her lover, as a way to release her pent-up tension. Kane is one of those guys who live by the slogans from their motivational tapes, where there is a saying to get them through anything in life.
The story then centers on Ricky and Jane, as she takes a chance and gets to know the voyeur who, at first, bothered her by constantly videoing her. But she surprisingly finds warmth in her relationship with this freak. He can see the beauty in the simple things of life and makes no pretense of trying to fit into suburbia, like she was trying to do.  Somehow, he has developed a confidence in himself, just like one that Lester will develop as his life physically and emotionally changes, as these two become friends, and along with Jane become the heroes of the story, or at least, these are the flawed characters who are found to be worthy of being saved from their shallow lives.
The film builds to a mystery conclusion, where the characters are forced to come together to decide their fate, to find out if they are worthy of being redeemed.
Inviting Jane to see the most beautiful thing he has ever videotaped, Ricky shows her the image of an empty plastic bag swirling in the wind on a blustery day. He then tells her that he finds beauty in such ordinary things and is constantly amazed that there is beauty behind every image he uncovers. Ricky and Lester will share this same vision of life, as this becomes the film's mantra, reinforced several times throughout the film: that redemption can be gotten through love. This mantra will also be repeated at the end of the film, before the credits are shown. The viewer is told by Lester, from the other world: that if you don't share the film's piercing vision of what really matters, someday you will. So forgiveness for these flawed characters is in order, as well as forgiveness for those who try to repress them because they are bitter, having found no love in their own lives. The lesson to be learnt is, that love is the only thing that can't be completely taken away from people; it remains behind everything that is.
This Alan Ball script, his debut assignment in films, is bristling with comedy and hard lessons to learn about life for these unfulfilled characters. If normalcy is the thing that the families are striving for, even if that is quickly seen as a sham, then what the director brilliantly does, is shoot down any hope for his characters ever being normal, even those who might think that they are normal. So what are they striving for, if not normalcy? Perhaps, in the end, we see that they are after love but have lost the way in their long trip through life, and are now trying to get back on track, each in their own convoluted way, as only the colonel can't because of his bad karma and his wife can't because she just doesn't have the energy to even try.
What results is a darkly satirical story that was equisitively directed. It makes sound points about the fallacy of normalcy and the necessity of nonconformity, and that its barbs about suburbia are on target. But the film succeeds, and in some regards is brilliant, not because some of the flawed characters see the light of day at last and might possibly reform, but because the acting was grand by everyone, and Spacey was more than grand, his was a tour-de-force performance. He has the ability to squeeze humor out of a stone and turn frightening at the drop of a dish. He's that good of an actor to carry this film, even as he is supported by a terrific cast, he still stands out as the star. Bening is his perfect foil, with a special flare for comedy, but still, through no fault of hers, is a cardboard villain, with no room to grow.  Mena is in an exploitive role, one that calls for an obligatory porn shot of her breasts; but she is delicious and appealing, and brings more to the part than can be expected, even crying out for sympathy by the film's end. Thora, a 17-year-old veteran actress, even at that tender age, played a twisted and sullen figure, but nevertheless came off as a sympathetic figure, giving a soulful performance, in a role that reminded many people of one that Christina Ricci would play, but not necessarily play better. Cooper did a fine job as a homophobic and a closet homosexual, but his role as a villain was also too one-dimensional to give his character a more introspective edge to it, even if his performance was first-class.
So why did I just like the film very much but not love it? I think it is because, as entertaining as this film was, something just didn't smell right about these roses; everything discovered seemed to be only something that is surface; there was no real revolution of character going on. The characters were looking outwardly for help, none of them had a grip on their inward nature, which is a good place to start when looking for beauty. I think there were too many contradictions in the lives of Lester, Ricky, and Jane to believe that they found what they were looking for, even if, the film implies that is just what they did do.
What goes for "real" change of character in this film (it is hard to tell if the film means it to be a parody or not), can only be termed as trivial changes, as seen by the following examples: Lester by working at a Mr. Smileys fast food place after quitting his so called "real" job, is not really going through an internal change, he is merely escaping from life by going through a temporary childhood fantasy. The satire also became mean-spirited, at this point, as I took exception to some of the jokes plied from these scenes, as they seemed to be mocking those who take such jobs, by implying those jobs are just for losers. Carolyn, by screwing her way to liberation, has not found a means to love, but, more than likely, she has only found a means to continue her path of selfish pleasure. Ricky, by cowtailing to his father's persecution and by becoming a successful drug dealer, has not found a healthy way to handle an abnormal father-son relationship. His character was actually the most interesting one in the film, since he saw things the others couldn't see, yet I suspect there is something deeply wrong with a teenager who has to find love by being a voyeur and material success by being a drug dealer, no matter how it is explained away. Jane, by running away from home with Ricky, is not doing what is necessarily a good thing for a naive high school girl to do.
When you think about what the film had to say and distance yourself from all the fine performances and the splendid cinematography that the 70-ish-year-old master of his craft, Conrad L. Hall, gave us, who is an expert on lighting techniques, and you step away from the sharp wit found in Alan Ball's dazzling script-- what you are left wondering about, is how shallow it all is, in a film that has a bite to its satire but not enough of a bite to dig into the characters other than what is seen on the surface. In the end, this is primarily a Hollywood type of film and all the hype about how daring and nonconventional this film is, should be dismissed as nothing but hype. Yet it is a captivating film, one that had its moments of grandeur, and all-in-all, I really was absorbed in it, and somehow liked the film more than I probably should have.
REVIEWED ON 10/9/999 GRADE: B+
Dennis Schwartz: "Ozus' World Movie Reviews"
http://www.sover.net/~ozus
<EMAIL_ADDRESS>© ALL RIGHTS RESERVED DENNIS SCHWARTZ
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


| 1 | /* | |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one | |
| 3 | * or more contributor license agreements. See the NOTICE file | |
| 4 | * distributed with this work for additional information | |
| 5 | * regarding copyright ownership. The ASF licenses this file | |
| 6 | * to you under the Apache License, Version 2.0 (the | |
| 7 | * "License"); you may not use this file except in compliance | |
| 8 | * with the License. You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, | |
| 13 | * software distributed under the License is distributed on an | |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| 15 | * KIND, either express or implied. See the License for the | |
| 16 | * specific language governing permissions and limitations | |
| 17 | * under the License. | |
| 18 | */ | |
| 19 | package org.apache.empire.exceptions; | |
| 20 | ||
| 21 | import org.apache.empire.commons.ErrorType; | |
| 22 | import org.slf4j.Logger; | |
| 23 | import org.slf4j.LoggerFactory; | |
| 24 | ||
| 25 | public class BeanPropertyGetException extends EmpireException | |
| 26 | { | |
| 27 | // Logger | |
| 28 | private static final Logger log = LoggerFactory.getLogger(BeanPropertyGetException.class); | |
| 29 | | |
| 30 | /** | |
| 31 | * Comment for serialVersionUID | |
| 32 | */ | |
| 33 | private static final long serialVersionUID = 1L; | |
| 34 | | |
| 35 | public static final ErrorType errorType = new ErrorType("error.propertyGetError", "Unable to get the property {0} from type {1}."); | |
| 36 | | |
| 37 | public BeanPropertyGetException(Object bean, String property, Throwable cause) | |
| 38 | { | |
| 39 |
1
1. <init> : negated conditional → NO_COVERAGE |
super(errorType, new String[] { property, (bean!=null ? bean.getClass().getName() : "{unknown}") }, cause); |
| 40 | } | |
| 41 | | |
| 42 | /** | |
| 43 | * log the error | |
| 44 | */ | |
| 45 | @Override | |
| 46 | protected void log() | |
| 47 | { | |
| 48 | if ( log.isErrorEnabled() ) | |
| 49 | log.error(getMessage()); | |
| 50 | else | |
| 51 |
1
1. log : removed call to org/apache/empire/exceptions/EmpireException::log → NO_COVERAGE |
super.log(); |
| 52 | } | |
| 53 | | |
| 54 | | |
| 55 | } | |
Mutations | ||
| 39 |
1.1 |
|
| 51 |
1.1 |


| Interface | Description |
|---|---|
| Focusable |
Any text input control that can receive or lose focus when the tab key is typed must
implement this interface.
|
| GConstants |
These constants can all be available to the Processor.
|
| Class | Description |
|---|---|
| FontManager |
This class is used to access system fonts.
|
| G4P |
The core class for the global manipulation and execution of G4P.
|
| GAbstractControl |
Abstract base class for all GUI controls.
|
| GAbstractControl.Z_Order |
Comparator used for controlling the order components are drawn
|
| GAnimIcon |
Class for the creation of animated icons to be used with GButton, GLabel, GCheckbox and GOption controls.
|
| GButton |
This class is the Button component.
|
| GCheckbox |
A two-state toggle control.
|
| GClip |
Clipboard functionaliy for plain text
This provides clipboard functionality for text and is currently only used by the GTextField and GTextArea classes. |
| GCScheme |
Defines a number of color schemes for the GUI components.
|
| GCustomSlider |
Slider that can be customised with user provided graphics.
|
| GDropList |
A drop down list component.
|
| GEditableTextControl |
This class is the basis for the GTextField and GTextArea classes.
|
| GGroup |
This class allows you to group GUI controls so that they can be treated as a single
entity for common GUI actions.
|
| GIcon |
Class for the creation of non-animated icons to be used with GButton, GLabel, GCheckbox and GOption controls.
|
| GImageButton |
Buttons create from this class use a number of images to represent it's
state.
|
| GImageToggleButton |
Buttons created from this class have 2 or more toggle states.
|
| GKnob |
The provides an extremely configurable GUI knob controller.
|
| GLabel |
The label component.
|
| GLinearTrackControl |
Base class for linear sliders.
|
| GOption |
A two-state toggle control.
|
| GPanel |
A component that can be used to group GUI components that can be
dragged, collapsed (leaves title tab only) and un-collapsed.
|
| GPassword |
The password field component.
|
| GSketchPad |
Display area for user generated graphics.
|
| GSlider |
A simple graphical slider.
|
| GSlider2D |
This slider is used to control 2 variables by dragging the thumb over
a 2D surface.
|
| GStick |
This control simulates a digital joystick and is designed to give more
intuitive control in game scenarios where you might use the keyboard
e.g.
|
| GTabManager |
Allows TABBING between text controls.
|
| GTextArea |
The text area component.
|
| GTextBase |
Base class for any control that uses styled text.
|
| GTextField |
The text field component.
|
| GTextIconBase |
This is the base class for all controls that can display text and/or icon i.e.
|
| GTimer |
This class is used to trigger events at user defined intervals.
|
| GToggleControl |
This class forms the basis for any two-state type control (toggle switch).
|
| GToggleGroup |
Use this class to create a single selection collection of options.
|
| GValueControl |
Base class for all slider and knob type controls.
|
| GValueControl2D |
Base class for controls that have 2 variables e.f.
|
| GWinData |
This class is used to hold the data associated with a GWindow object.
|
| GWindow |
Base class for independent windows using JAVA2D, P2D or P3D renderers.
|
| GWindowAWT |
Class for independent windows using the JAVA2D renderer.
|
| GWindowImpl |
This class calls the appropriate methods for G4P controls for the main applet window.
|
| GWindowNEWT |
Class for independent windows using P2D or P3D renderers.
|
| ImageManager |
This class is used to load bitmap files and create images.
|
| StyledString |
This class is used to represent text with attributes.
|
| StyledString.TextLayoutHitInfo |
For multi-line text, the TextHitInfo class is not enough.
|
| StyledString.TextLayoutInfo |
Class to hold information about a text layout.
|
| Enum | Description |
|---|---|
| GAlign |
This class provides an enumeration that is used to control the alignment
of text and images.
|
| GControlMode | |
| GEvent |
Enumeration of events that can be fired by G4P.
|
Processing library G4P by Peter Lager. (c) 2016


This Technical documentation Covers the VB Excel Macro and crawkers Creation Techniques
Microsoft Visual Basic for Applications (VBA) is the version of Visual Basic that ships with Microsoft Office. In Microsoft Office 2010, VBA includes language features that enable VBA code to run correctly in both 32-bit and 64-bit environments.
Recording a macro means that you can record a task in Excel using the keyboard and mouse and then play the recording back whenever you need to perform the task.
Macros are created using VBA (Visual Basic for Applications) code. Whenever you record a macro, the code is automatically created for you. However, recording macros does create a lot of unnecessary code.
You can store your macros in:
1. This Workbook
2. New Workbook
3. Personal Macro Workbook (Personal.xls/xlsm/xlsb)
Personal.xls/xlsm/xlsb is a hidden workbook, which is open in memory. This means that you can use macros stored in Personal.xls/xlsm/xlsb any time you open Excel. Macros stored in the other 2 locations are only available in the one workbook. There two modes when recording a macro:
Absolute Macros
The following example will record a macro to put your company name and address into the cells A1, A2, A3, A4 and A5. This is called an Absolute Macro because it specifies which cells are to be used.
1. Create a new blank workbook.
2. Click on the Developer tab (make sure Use Relative References is pressed up).
3. Click Record Macro icon.
4. Type in a name for the Macro e.g. Absolute Enter a Shortcut Key, if required, e.g. Ctrl + e Select where you would like to store the Macro e.g. This Workbook Type in a description for the macro, e.g. Macro to place company name and address into cells A1:A5.
5. Click on OK.
6. Now record the macro.
Click on A1
Type “Company Name”
Click on A2
Type “Address 1”
Click on A3
Type “Address 2”
Click on A4
Type “Address 3”
Click on A5
Type “Postcode”
Click back on A1
7. Click on the Stop Recording button.
8. Now try out the macro on Sheet 2.
Click anywhere on the sheet and use the keystroke Ctrl + e.
This places the company name and address into A1:A5 from anywhere within the sheet.
Therefore, this is called an Absolute Macro.Relative Macros
The following example will record a macro to put your company name and address into the ActiveCell and the 4 cells beneath it. This is called a Relative Macro because the cells which are to be used are determined by the ActiveCell.
1. Create a new blank workbook (if necessary).
2. Click on the Developer tab (make sure Use Relative References is pressed down).
3. Click Record Macro icon.
4. Type in a name for the Macro e.g. Relative
Enter a Shortcut Key, if required, e.g. Ctrl + h
Select where you would like to store the Macro e.g. This Workbook
Type in a description for the macro, e.g. Macro to place company name and address into the active cell.
5. Click on OK.
6. Now record the macro.
Click on A1 (i.e. the ActiveCell)
Type “Company Name”
Click on A2
Type “Address 1”
Click on A3
Type “Address 2”
Click on A4
Type “Address 3”
Click on A5
Type “Address 4”
Click back on A1
7. Click on the Stop Recording button.
8. Now try out the macro on Sheet 3.
Click anywhere on the sheet and use the keystroke Ctrl + h.
This places the company name, address and phone number into the ActiveCell and the 4 cells beneath it.
Therefore, this is called a Relative Macro.
Private Sub SQLbtn_Click()
Dim conn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sConnString As String
' Create the connection string.
sConnString = "Provider=SQLOLEDB;" & _
"Data Source="Server Address";" & _
"Initial Catalog="Database name";" & _
"user ID="your id";" & _
"password="your password";"
' Create the Connection and Recordset objects.
Set conn = New ADODB.Connection
Set rs = New ADODB.Recordset
' Open the connection and execute.
conn.Open sConnString
Set rs = conn.Execute("SELECT * FROM dbo.ODBC_RunHistory;")
' Check if we have data.
If Not rs.EOF Then
' Transfer result.
Sheets(1).Range("A4").CopyFromRecordset rs
' Close the recordset
rs.Close
Else
MsgBox "Error: No records returned.", vbCritical
End If
' Clean up
If CBool(conn.State And adStateOpen) Then
conn.Close
Set conn = Nothing
Set rs = Nothing
End Sub
Dim link As MSHTML.HTMLAnchorElement
For Each link In doc.Links
If Trim(link.innerText) = "link innertext in source code" Then
link.Click
Exit For
End If
Next
- VBA Blog
- VBA Tutorial
- Practive VLookup
- Practice Crawlers
- Practice HTML


Grant Dobbe
Lead Security Engineer
NuCivic Inc.
<EMAIL_ADDRESS>Brendan O'Connor
Senior Security Consultant
Leviathan Security Group
<EMAIL_ADDRESS>- John Gilmore, Electronic Frontier Foundation
- Us
We're making an end run around the Internet. Because someone has to.
Cell as in "group", not cell as in "for the enjoyment of all patrons, please turn off your"
This isn't an Exchange Server. You know your needs better than we do.
Internet-free, end-to-end encrypted text and low-bandwidth voice communication.
By Anonymous: the people who brought you Sabu.
Git solves many of the problems that a DTN faces.
Bundles let us "fake" remote repos.
From the man page:
This command provides support for git fetch and git pull to operate by packaging objects and references in an archive at the originating machine, then importing those into another repository using git fetch and git pull after moving the archive by some means.
Look, ma! No network connection!
NaCl, as fixed by OpenDNS.
Payloads are how Endrun moves data around. Each payload contains:
DTN routing occurs between pairs of nodes.
Endrun does not maintain a routing table, or any global knowledge of the network. This has some downsides:
Route all the things!
Using a communications example from Tom Lehrer, Emeritus Lecturer in Mathematics, Cowell College, University of California at Santa Cruz.
To Caroline and NuCivic, for letting Grant come
To Leviathan, for letting Brendan come
Updated code/slides tomorrow (Oct 17): https://github.com/grantdobbe/endrun
Questions? Meet us afterward.


{% extends "hqwebapp/partials/bulk_upload.html" %} {% load hq_shared_tags %} {% load i18n %} {% block prerequisites %}
{% trans "Include only paths where the multimedia file is missing?" %}


Think this tool comes in handy? It'd absolutely make my day to hear from you.
If you'd just like to buy me a beer, well, that'll work too!


We just need some details. Once you have filled in the film name, your name and your fit bit number, press START to start the Emotion Tracker. You will then be given a ten second countdown to start the film.


labeled
by None at 2023-06-06 03:16:41.labeled
by None at 2023-06-06 03:16:41.assigned
by None at 2023-06-06 18:02:02.labeled
by None at 2023-06-06 02:26:26.labeled
by None at 2023-06-06 02:26:26.deployed
by None at 2023-06-06 18:38:06.referenced
by None at 2023-06-06 18:43:19.merged
by None at 2023-06-06 18:43:19.closed
by None at 2023-06-06 18:43:19.head_ref_deleted
by None at 2023-06-06 18:43:20.This is now working from aspace staging to sftp staging. Next steps:
Working now from aspace prod > lib-sftp-staging1
Waiting for the Alma import job to be enabled.
Alma job is enabled. I will close this ticket after checking the import tomorrow morning.
assigned
by Jane Sandberg at 2023-06-06 22:10:14.labeled
by None at 2023-06-06 03:16:03.labeled
by None at 2023-06-06 03:16:03.build on https://github.com/pulibrary/dpul/commit/7ef03f756e2175fed53c72a499c91895f9e2ca78
This resource is indexed into performances and music. Both those collections will need to be reindexed. @kelea99 or @tpendragon do you think there are any other collections that will need to be reindexed once the fix is deployed?
I also refreshed metadata for the item since there was a typo in the saved metadata.
assigned
by None at 2023-06-06 14:06:44.referenced
by None at 2023-06-06 17:25:29.mentioned
by Trey Pendragon at 2023-06-06 19:54:27.subscribed
by Trey Pendragon at 2023-06-06 19:54:27.mentioned
by Kim Leaman at 2023-06-06 19:54:27.subscribed
by Kim Leaman at 2023-06-06 19:54:27.Tested on staging; see https://dpul-staging.princeton.edu/performances/catalog/6f42ab87-5930-4d08-a108-78fb0ab25755
deployed
by None at 2023-06-06 19:55:50.labeled
by None at 2023-06-06 02:18:40.labeled
by None at 2023-06-06 02:18:40.labeled
by None at 2023-06-06 02:40:59.labeled
by None at 2023-06-06 02:40:59.referenced
by None at 2023-06-06 13:35:49.merged
by None at 2023-06-06 13:35:49.closed
by None at 2023-06-06 13:35:49.head_ref_deleted
by None at 2023-06-06 13:35:50.I checked the honeybadger issue for other resources that had this error. Here are the IDs:
Fixed.
referenced
by Trey Pendragon at 2023-06-05 23:23:48.closed
by None at 2023-06-06 13:35:51.closed
by None at 2023-06-06 13:35:51.reopened
by None at 2023-06-06 13:41:13.closed
by Trey Pendragon at 2023-06-06 16:24:54.@tpendragon would it be difficult to run the same query for the past few FYs (three or four)?
@jpstroop Do you want it per year?
Yes, if possible--I don't know how long this has been a collection in Figgy, so really as far back as you think we can go accurately.
@jpstroop The patron requests collection got made September 2020. So I can maybe do 2020 - 2021 and it'd be close? It's also June now, so I could do 2022-2023 and only miss a month or so.
That would be great--thanks!
mentioned
by Trey Pendragon at 2023-06-06 18:06:21.subscribed
by Trey Pendragon at 2023-06-06 18:06:21.mentioned
by Jon Stroop at 2023-06-06 18:12:33.subscribed
by Jon Stroop at 2023-06-06 18:12:34.reopened
by Trey Pendragon at 2023-06-06 18:16:01.mentioned
by Jon Stroop at 2023-06-06 18:18:17.subscribed
by Jon Stroop at 2023-06-06 18:18:17.unassigned
by Shaun Ellis at 2023-06-06 19:10:10.assigned
by Shaun Ellis at 2023-06-06 19:10:16.Question: Are vocabularies like collections and that's what's going on here? If so, should vocabularies not be deletable if they're not empty?
labeled
by Trey Pendragon at 2023-06-06 19:16:06.referenced
by Trey Pendragon at 2023-06-06 21:15:40.merged
by Trey Pendragon at 2023-06-06 21:15:40.closed
by Trey Pendragon at 2023-06-06 21:15:40.head_ref_deleted
by Trey Pendragon at 2023-06-06 21:15:41.assigned
by None at 2023-06-06 18:30:15.referenced
by None at 2023-06-06 20:56:25.closed
by Trey Pendragon at 2023-06-06 21:15:41.@hackartisan I pushed up a scripted fixity demo, curious what you think?
I also noticed the cloud one doesn't always work - it looks like we get no notification if the cloud fixity doesn't match the local one? Edit: When I poked around, weirdly if I manually send the event to RepairCloudFixity it works...?
mentioned
by None at 2023-06-06 22:52:15.subscribed
by None at 2023-06-06 22:52:15.head_ref_force_pushed
by Trey Pendragon at 2023-06-06 23:03:21.@dependabot merge
Dependabot tried to merge this PR, but received the following error from GitHub:
At least 1 approving review is required by reviewers with write access.
labeled
by None at 2023-06-06 02:32:12.labeled
by None at 2023-06-06 02:32:12.mentioned
by Dependabot at 2023-06-06 13:22:54.referenced
by Robert-Anthony Lee-Faison at 2023-06-06 13:24:07.merged
by Robert-Anthony Lee-Faison at 2023-06-06 13:24:07.closed
by Robert-Anthony Lee-Faison at 2023-06-06 13:24:07.head_ref_deleted
by Robert-Anthony Lee-Faison at 2023-06-06 13:24:08.labeled
by None at 2023-06-06 02:24:53.labeled
by None at 2023-06-06 02:24:53.labeled
by None at 2023-06-06 03:30:09.labeled
by None at 2023-06-06 03:30:09.deployed
by None at 2023-06-06 18:18:19.referenced
by Liz Garcia at 2023-06-06 18:26:08.merged
by Liz Garcia at 2023-06-06 18:26:08.closed
by Liz Garcia at 2023-06-06 18:26:08.head_ref_deleted
by Liz Garcia at 2023-06-06 18:26:09.Screenshots for documentation/review:
referenced
by Trey Pendragon at 2023-06-06 18:18:58.merged
by Trey Pendragon at 2023-06-06 18:18:58.closed
by Trey Pendragon at 2023-06-06 18:18:58.Looks like it worked; apm is showing no results in the past 15 min for env:none
.
referenced
by None at 2023-06-06 14:01:00.referenced
by Trey Pendragon at 2023-06-06 14:32:05.closed
by None at 2023-06-06 16:31:04.Related to #41. 03-a has more available resources.
After discussing with John K., I understand this better. The grayed-out memory setting (40 GB in the screenshot above) is the maximum available RAM for the VM. That setting can only be changed with the VM is powered off. The Limit
setting can reduce the available RAM for a VM below the main Memory
setting, and can be changed without powering the VM off. So we should consider setting Memory
to something larger than we think we need, then using Limit
to find the optimum setting.
@kayiwa added more memory to the solr8 production boxes today in the Ansible Open House, and we have documentation here of how the memory allocations work. Closing.
closed
by Alicia Cozine at 2023-06-06 17:14:45.mentioned
by Francis Kayiwa at 2023-06-06 17:14:45.subscribed
by Francis Kayiwa at 2023-06-06 17:14:46.coverage: 95.368%. remained the same when pulling 718e3e55d8cc7cfa57d1929001a201d0dd40ad1e on dependabot/npmandyarn/vite-4.0.5 into 27471e349955b9221e4d3e20c944466f76d3e827 on main.
labeled
by None at 2023-06-06 02:05:08.labeled
by None at 2023-06-06 02:05:08.assigned
by Max Kadel at 2023-06-06 13:45:56.closed by #3606
closed
by Jane Sandberg at 2023-06-06 15:04:36.Per Alicia, having a separate Solr cluster for the catalog would be very impractical as far as maintenance goes. It's much easier to give the existing machines in the cluster more RAM.
At the Ansible Open House on June 6, 2023, we gave each of the Solr8 production servers 178 GB of memory.
assigned
by Max Kadel at 2023-06-06 17:29:59.assigned
by Alicia Cozine at 2023-06-06 17:30:22.assigned
by None at 2023-06-06 17:30:23.assigned
by Liz Garcia at 2023-06-06 17:30:23.assigned
by Jane Sandberg at 2023-06-06 17:30:23.assigned
by Francis Kayiwa at 2023-06-06 17:31:29.assigned
by Max Kadel at 2023-06-06 17:34:48.referenced
by Max Kadel at 2023-06-06 18:40:10.referenced
by Max Kadel at 2023-06-06 18:41:42.labeled
by Chun Ly at 2023-06-06 15:50:00.assigned
by Chun Ly at 2023-06-06 15:50:01.labeled
by None at 2023-06-06 03:32:49.labeled
by None at 2023-06-06 03:32:50.labeled
by None at 2023-06-06 02:35:45.labeled
by None at 2023-06-06 02:35:45.ECDSA key generated on Alma tested successfully on lib-sftp-staging1 with the<EMAIL_ADDRESS>SFTP user. I placed the key in the authorized file manually.
referenced
by Francis Kayiwa at 2023-06-06 14:02:56.merged
by Francis Kayiwa at 2023-06-06 14:02:57.closed
by Francis Kayiwa at 2023-06-06 14:02:57.head_ref_deleted
by Francis Kayiwa at 2023-06-06 14:02:58.re-ran the playbook with the https://github.com/pulibrary/princeton_ansible/blob/80c89a9ae6e4f18fe23f72adb64d805b52790805/roles/apache2/tasks/main.yml#L35 -e force_vhosts_update=true
It's looking great! Thanks, @kayiwa , and thanks for letting us know about the force_vhosts_update
variable.
closed
by Jane Sandberg at 2023-06-06 14:41:52.mentioned
by Francis Kayiwa at 2023-06-06 14:41:52.subscribed
by Francis Kayiwa at 2023-06-06 14:41:52.assigned
by Max Kadel at 2023-06-06 15:16:14.As we start running multiple VMs for our PHP applications (including the byzantine project), we need to use NFS mounting so all data is written to the shared mount from all VMs.
review_requested
by Francis Kayiwa at 2023-06-06 15:27:54.referenced
by Alicia Cozine at 2023-06-06 16:46:19.merged
by Alicia Cozine at 2023-06-06 16:46:19.closed
by Alicia Cozine at 2023-06-06 16:46:19.head_ref_deleted
by Alicia Cozine at 2023-06-06 16:46:20.review_requested
by Francis Kayiwa at 2023-06-06 15:36:06.referenced
by Alicia Cozine at 2023-06-06 16:49:41.merged
by Alicia Cozine at 2023-06-06 16:49:42.closed
by Alicia Cozine at 2023-06-06 16:49:42.head_ref_deleted
by Alicia Cozine at 2023-06-06 16:49:43.referenced
by None at 2023-06-06 19:07:47.merged
by None at 2023-06-06 19:07:48.closed
by None at 2023-06-06 19:07:48.head_ref_deleted
by None at 2023-06-06 19:07:49.renamed
by None at 2023-06-06 21:03:46.referenced
by None at 2023-06-06 13:31:13.merged
by None at 2023-06-06 13:31:14.closed
by None at 2023-06-06 13:31:14.head_ref_deleted
by None at 2023-06-06 13:31:15.referenced
by Alicia Cozine at 2023-06-06 17:29:36.merged
by Alicia Cozine at 2023-06-06 17:29:36.closed
by Alicia Cozine at 2023-06-06 17:29:36.head_ref_deleted
by Alicia Cozine at 2023-06-06 17:29:37.labeled
by None at 2023-06-06 18:34:03.labeled
by None at 2023-06-06 18:34:03.referenced
by Jane Sandberg at 2023-06-06 22:18:46.merged
by Jane Sandberg at 2023-06-06 22:18:47.closed
by Jane Sandberg at 2023-06-06 22:18:47.head_ref_deleted
by Jane Sandberg at 2023-06-06 22:18:48.referenced
by Trey Pendragon at 2023-06-06 14:32:03.merged
by Trey Pendragon at 2023-06-06 14:32:03.closed
by Trey Pendragon at 2023-06-06 14:32:03.head_ref_deleted
by Trey Pendragon at 2023-06-06 14:32:04.labeled
by None at 2023-06-06 13:20:01.labeled
by None at 2023-06-06 13:20:01.labeled
by None at 2023-06-06 13:18:48.labeled
by None at 2023-06-06 13:20:16.labeled
by None at 2023-06-06 13:22:01.labeled
by None at 2023-06-06 13:39:10.labeled
by None at 2023-06-06 13:42:57.labeled
by None at 2023-06-06 13:43:55.labeled
by None at 2023-06-06 14:15:32.labeled
by None at 2023-06-06 14:17:24.assigned
by None at 2023-06-06 14:17:48.


S'MO bakery
Home
Cake menu
Order form
Contact Us
For you and your furry friends
We specialise in events for people and their pets, and we are pet-agnostic!


Demonstration of how CurvedLines creates additional 'Helper Points' to plot line
CurvedLines: random data points
CurvedLines: internally created helper points
Return to CurvedLines Examples list


Generic SPI Device class that can be used to connect to any type of SPI device and read or write to its registers.
More...
#include <SPIDevice.h>
Generic SPI Device class that can be used to connect to any type of SPI device and read or write to its registers.
◆ SPIMODE
| Enumerator |
|---|
| MODE0 | |
| MODE1 | |
| MODE2 | |
| MODE3 | |
◆ SPIDevice() [1/2]
| cubesat::SPIDevice::SPIDevice |
( |
| ) |
|
|
inline |
◆ SPIDevice() [2/2]
| SPIDevice::SPIDevice |
( |
unsigned int |
bus, |
|
|
unsigned int |
device |
|
) |
| |
The constructor for the SPIDevice that sets up and opens the SPI connection. The destructor will close the SPI file connection.
- Parameters
-
| bus | The SPI bus number X (first digit after spidevX.Y) |
| device | The device on the bus Y (second digit after spidevX.Y) |
◆ ~SPIDevice()
| SPIDevice::~SPIDevice |
( |
| ) |
|
|
virtual |
The destructor closes the SPI bus device
◆ Close()
| void SPIDevice::Close |
( |
| ) |
|
|
virtual |
◆ DebugDumpRegisters()
| void SPIDevice::DebugDumpRegisters |
( |
unsigned int |
number = 0xff | ) |
|
|
virtual |
A simple method to dump the registers to the standard output – useful for debugging
- Parameters
-
| number | the number of registers to dump |
◆ GetBus()
| int cubesat::SPIDevice::GetBus |
( |
| ) |
const |
|
inline |
◆ GetDeviceAddr()
| int cubesat::SPIDevice::GetDeviceAddr |
( |
| ) |
const |
|
inline |
◆ IsOpen()
| bool cubesat::SPIDevice::IsOpen |
( |
| ) |
const |
|
inline |
◆ Open()
This method opens the file connection to the SPI device.
- Returns
- 0 on a successful open of the file
Reimplemented in cubesat::ADT7311.
◆ ReadRegister()
| unsigned char SPIDevice::ReadRegister |
( |
unsigned int |
registerAddress | ) |
|
|
virtual |
A method to read a single register at the SPI address
- Parameters
-
| registerAddress | the address of the register from the device datasheet |
- Returns
- the character that is returned from the address
◆ ReadRegisters()
| int SPIDevice::ReadRegisters |
( |
unsigned char * |
out, |
|
|
unsigned int |
number, |
|
|
unsigned int |
fromAddress = 0 |
|
) |
| |
|
virtual |
A method to read a number of registers as a data array
- Parameters
-
| number | the number of registers to read |
| fromAddress | the starting address of the block of data |
- Returns
- the data array that is returned (memory allocated by the method)
◆ SetBitsPerWord()
| int SPIDevice::SetBitsPerWord |
( |
uint8_t |
bits | ) |
|
|
virtual |
Set the number of bits per word of the SPI bus
- Parameters
-
| bits | the number of bits per word |
◆ SetMode()
Set the mode of the SPI bus
- Parameters
-
| mode | the enumerated SPI mode |
◆ SetSpeed()
| int SPIDevice::SetSpeed |
( |
uint32_t |
speed | ) |
|
|
virtual |
Set the speed of the SPI bus
- Parameters
-
◆ Transfer()
| int SPIDevice::Transfer |
( |
unsigned char |
send[], |
|
|
unsigned char |
receive[], |
|
|
int |
length |
|
) |
| |
|
virtual |
Generic method to transfer data to and from the SPI device. It is used by the following methods to read and write registers.
- Parameters
-
| send | The array of data to send to the SPI device |
| receive | The array of data to receive from the SPI device |
| length | The length of the array to send |
- Returns
- -1 on failure
◆ Write() [1/2]
| int SPIDevice::Write |
( |
unsigned char |
value | ) |
|
|
virtual |
A write method that writes a single character to the SPI bus
- Parameters
-
| value | the value to write to the bus |
- Returns
- returns 0 if successful
◆ Write() [2/2]
| int SPIDevice::Write |
( |
unsigned char |
value[], |
|
|
int |
length |
|
) |
| |
|
virtual |
A write method that writes a block of data of the length to the bus.
- Parameters
-
| value | the array of data to write to the device |
| length | the length of the data array |
- Returns
- returns 0 if successful
◆ WriteRegister()
| int SPIDevice::WriteRegister |
( |
unsigned int |
registerAddress, |
|
|
unsigned char |
value |
|
) |
| |
|
virtual |
Writes a value to a defined register address (check the datasheet for the device)
- Parameters
-
| registerAddress | the address of the register to write to |
| value | the value to write to the register |
- Returns
- returns 0 if successful
◆ bits
| uint8_t cubesat::SPIDevice::bits |
|
protected |
◆ bus
| unsigned int cubesat::SPIDevice::bus |
|
protected |
◆ delay
| uint16_t cubesat::SPIDevice::delay |
|
protected |
◆ device
| unsigned int cubesat::SPIDevice::device |
|
protected |
◆ file
| int cubesat::SPIDevice::file |
|
protected |
◆ filename
| std::string cubesat::SPIDevice::filename |
|
protected |
◆ is_open
| bool cubesat::SPIDevice::is_open |
|
protected |
◆ mode
◆ speed
| uint32_t cubesat::SPIDevice::speed |
|
protected |
The documentation for this class was generated from the following files:
- /home/osboxes/cosmos/source/projects/cubesat-kit/include/device/SPIDevice.h
- /home/osboxes/cosmos/source/projects/cubesat-kit/source/device/SPIDevice.cpp


Option sets:
The following shows an example form. To experiment with different layout and behaviors, click the "Show form options" button.
Text inputs should be 100% width of their container.
| CSS Custom property | Description | Value |
|---|---|---|
| --kg-input-bg-color | The background color used for all text inputs and select controls. | var(--kg-color-gray-200, #EEEEEE) |
| --kg-input-readonly-bg-color | The background color used for all text inputs and select controls in a readonly state. | transparent |
| --kg-input-hover-bg-color | The background color used for all text inputs and select controls when hovering over the control. | var(--kg-input-bg-color) |
| --kg-input-disabled-opacity | The opacity used for various elements when the form control is in a disabled state. | .5 |
| --kg-input-hint-color | The text color used for hint text. Note that this value will also have a non-overridable opacity level applied to it. | var(--kg-body-color, #616161) |
| --kg-input-underline-color | The color used for the underline element applied to form inputs. | var(--kg-body-color, #616161) |


@InterfaceAudience.Public
@InterfaceStability.Stable
public interface ContainerManagementProtocol
The protocol between an ApplicationMaster
and a
NodeManager
to start/stop and increase resource of containers
and to get status of running containers.
If security is enabled the NodeManager
verifies that the
ApplicationMaster
has truly been allocated the container
by the ResourceManager
and also verifies all interactions such
as stopping the container or obtaining status information for the container.
| Modifier and Type | Method and Description |
|---|---|
CommitResponse |
commitLastReInitialization(ContainerId containerId)
Commit the Last ReInitialization if possible.
|
GetContainerStatusesResponse |
getContainerStatuses(GetContainerStatusesRequest request)
The API used by the
ApplicationMaster to request for current
statuses of Container s from the NodeManager . |
IncreaseContainersResourceResponse |
increaseContainersResource(IncreaseContainersResourceRequest request)
Deprecated.
|
ResourceLocalizationResponse |
localize(ResourceLocalizationRequest request)
Localize resources required by the container.
|
ReInitializeContainerResponse |
reInitializeContainer(ReInitializeContainerRequest request)
ReInitialize the Container with a new Launch Context.
|
RestartContainerResponse |
restartContainer(ContainerId containerId)
Restart the container.
|
RollbackResponse |
rollbackLastReInitialization(ContainerId containerId)
Rollback the Last ReInitialization if possible.
|
SignalContainerResponse |
signalToContainer(SignalContainerRequest request) |
StartContainersResponse |
startContainers(StartContainersRequest request)
The
ApplicationMaster provides a list of
StartContainerRequest s to a NodeManager to
start Container s allocated to it using this interface. |
StopContainersResponse |
stopContainers(StopContainersRequest request)
The
ApplicationMaster requests a NodeManager to
stop a list of Container s allocated to it using this
interface. |
ContainerUpdateResponse |
updateContainer(ContainerUpdateRequest request)
The API used by the
ApplicationMaster to request for
resource update of running containers on the NodeManager . |
@InterfaceAudience.Public @InterfaceStability.Stable StartContainersResponse startContainers(StartContainersRequest request) throws YarnException, IOException
The ApplicationMaster
provides a list of
StartContainerRequest
s to a NodeManager
to
start Container
s allocated to it using this interface.
The ApplicationMaster
has to provide details such as allocated
resource capability, security tokens (if enabled), command to be executed
to start the container, environment for the process, necessary
binaries/jar/shared-objects etc. via the ContainerLaunchContext
in
the StartContainerRequest
.
The NodeManager
sends a response via
StartContainersResponse
which includes a list of
Container
s of successfully launched Container
s, a
containerId-to-exception map for each failed StartContainerRequest
in
which the exception indicates errors from per container and a
allServicesMetaData map between the names of auxiliary services and their
corresponding meta-data. Note: None-container-specific exceptions will
still be thrown by the API method itself.
The ApplicationMaster
can use
getContainerStatuses(GetContainerStatusesRequest)
to get updated
statuses of the to-be-launched or launched containers.
request
- request to start a list of containersYarnException
IOException
@InterfaceAudience.Public @InterfaceStability.Stable StopContainersResponse stopContainers(StopContainersRequest request) throws YarnException, IOException
The ApplicationMaster
requests a NodeManager
to
stop a list of Container
s allocated to it using this
interface.
The ApplicationMaster
sends a StopContainersRequest
which includes the ContainerId
s of the containers to be stopped.
The NodeManager
sends a response via
StopContainersResponse
which includes a list of ContainerId
s of successfully stopped containers, a containerId-to-exception map for
each failed request in which the exception indicates errors from per
container. Note: None-container-specific exceptions will still be thrown by
the API method itself. ApplicationMaster
can use
getContainerStatuses(GetContainerStatusesRequest)
to get updated
statuses of the containers.
request
- request to stop a list of containersYarnException
IOException
@InterfaceAudience.Public @InterfaceStability.Stable GetContainerStatusesResponse getContainerStatuses(GetContainerStatusesRequest request) throws YarnException, IOException
The API used by the ApplicationMaster
to request for current
statuses of Container
s from the NodeManager
.
The ApplicationMaster
sends a
GetContainerStatusesRequest
which includes the ContainerId
s
of all containers whose statuses are needed.
The NodeManager
responds with
GetContainerStatusesResponse
which includes a list of
ContainerStatus
of the successfully queried containers and a
containerId-to-exception map for each failed request in which the exception
indicates errors from per container. Note: None-container-specific
exceptions will still be thrown by the API method itself.
request
- request to get ContainerStatus
es of containers with
the specified ContainerId
sContainerStatus
of the
successfully queried containers and a containerId-to-exception map
for failed requests.YarnException
IOException
@InterfaceAudience.Public @InterfaceStability.Unstable @Deprecated IncreaseContainersResourceResponse increaseContainersResource(IncreaseContainersResourceRequest request) throws YarnException, IOException
The API used by the ApplicationMaster
to request for
resource increase of running containers on the NodeManager
.
request
- request to increase resource of a list of containersYarnException
IOException
@InterfaceAudience.Public @InterfaceStability.Unstable ContainerUpdateResponse updateContainer(ContainerUpdateRequest request) throws YarnException, IOException
The API used by the ApplicationMaster
to request for
resource update of running containers on the NodeManager
.
request
- request to update resource of a list of containersYarnException
- Exception specific to YARNIOException
- IOException thrown from NodeManagerSignalContainerResponse signalToContainer(SignalContainerRequest request) throws YarnException, IOException
YarnException
IOException
@InterfaceAudience.Public @InterfaceStability.Unstable ResourceLocalizationResponse localize(ResourceLocalizationRequest request) throws YarnException, IOException
request
- Specify the resources to be localized.YarnException
- Exception specific to YARNIOException
- IOException thrown from the RPC<EMAIL_ADDRESS>@InterfaceStability.Unstable ReInitializeContainerResponse reInitializeContainer(ReInitializeContainerRequest request) throws YarnException, IOException
request
- Specify the new ContainerLaunchContext.YarnException
- Exception specific to YARN.IOException
- IOException thrown from the RPC<EMAIL_ADDRESS>@InterfaceStability.Unstable RestartContainerResponse restartContainer(ContainerId containerId) throws YarnException, IOException
containerId
- Container Id.YarnException
- Exception specific to YARN.IOException
- IOException thrown from the RPC<EMAIL_ADDRESS>@InterfaceStability.Unstable RollbackResponse rollbackLastReInitialization(ContainerId containerId) throws YarnException, IOException
containerId
- Container Id.YarnException
- Exception specific to YARN.IOException
- IOException thrown from the RPC<EMAIL_ADDRESS>@InterfaceStability.Unstable CommitResponse commitLastReInitialization(ContainerId containerId) throws YarnException, IOException
containerId
- Container Id.YarnException
- Exception specific to YARN.IOException
- IOException thrown from the RPC layer.Copyright © 2022 Apache Software Foundation. All rights reserved.


Models
-
Model that represents a Xcode workspace.
See moreDeclaration
Swift
final public class XCWorkspace
-
Model that represents a .xcodeproj project.
See moreDeclaration
Swift
final public class XcodeProj
-
This is the element for a build target that produces a binary content (application or library).
Declaration
Swift
final public class PBXNativeTarget: PBXTarget
-
Class that represents a project element.
See moreDeclaration
Swift
public class PBXObject: Decodable
-
Specifies source trees for files Corresponds to the
See moreLocation
dropdown in Xcode’s File InspectorDeclaration
Swift
public enum PBXSourceTree: CustomStringConvertible, Equatable, Decodable
-
This is the element for a build target that aggregates several others.
Declaration
Swift
final public class PBXAggregateTarget: PBXTarget
-
A PBXFileReference is used to track every external file referenced by the project: source files, resource files, libraries, generated application files, and so on.
See moreDeclaration
Swift
final public class PBXFileReference: PBXFileElement
-
This is the element for the framework link build phase.
See moreDeclaration
Swift
final public class PBXFrameworksBuildPhase: PBXBuildPhase
-
This is the element for the framework headers build phase.
See moreDeclaration
Swift
final public class PBXHeadersBuildPhase: PBXBuildPhase
-
This is the element for the resources copy build phase.
See moreDeclaration
Swift
final public class PBXResourcesBuildPhase: PBXBuildPhase
-
This is the element for the copy file build phase.
See moreDeclaration
Swift
final public class PBXCopyFilesBuildPhase: PBXBuildPhase
-
This is the element for the shell script build phase.
See moreDeclaration
Swift
final public class PBXShellScriptBuildPhase: PBXBuildPhase
-
This is the element for the sources compilation build phase.
See moreDeclaration
Swift
final public class PBXSourcesBuildPhase: PBXBuildPhase


Background
Weather and climate impact every aspect of society. From annoying us on the road, to loss of live and damage to property. Weather radar is the quintessential tool for observing thunderstorms in real-time and using this information to manage and mitigate the impact of this phenomenon. South Africa has a long history in radar science and currently boast a world-class national network of cutting edge radars operated by the South African Weather Service (SAWS) which forms an integral part of the country national infrastructure.
Aims
This project aims to support SAWS and the national government towards sustaining and making the most of this valuable resource. We hope to do this by giving students from multiple disciplines hands-on experience working with this technology, creating awareness around the benefits and potential use of weather radar, and lastly to do applied research that could help create products and services that can be rolled out on the national radar network.
Partners
The North-West University, and the Water Research Commission has funded the acquisition, installation and upgrade of a weather radar, situated just outside Potchefstroom. The Lekwena Wildlife Estate provided the site, along with access control and security, and Aon-Benfeld funded the communication link to facilitate real-time access to the radar.


_
In the age of information, computer and information literacy is relevant to everyone. Its time to learn about some best practices when online.
 Everyone is equal in the eyes of a cyber criminal, it's their one redeeming quality! Stay vigilant, do not think "why would someone hack me?”.
There seems to be a misconception regarding passwords where people believe that 8 randomly mixed characters are the blueprint for password strength. In reality, when it comes to password strength, length is mathematically the most important factor. This may elicit a groan but do not fret! Just pick 3-4 completely random unrelated word, im sure that you will find that it is easier to remember "smallnarwhaltruckbanana" than "23efdsa_!". It is signicantly more secure too! Also remember not to share your password with others, write it down, or put it on a post-it note attached to your monitor.
Ensure ALL your software is up to date (not just your antivirus!). This is generally a very simple yet effective way to passively protect yourself from common exploits. This is because there are new security loopholes being discovered on software, networks and operating systems every single day. Companies are struggling to keep up but they do patch a lot of the holes, it is one of the reasons why everything now requires updates so often.
Do not blindly give out your personal information unless it is an absolute necessity. Sometimes a phone number and date of birth are all criminals need to steal your identity or to start privilege escalation for a larger scale hack. OSINT (Open Source Intelligence) is a fancy term hackers use when performing a reconnaissance on their victims publicly available information (such as on SOCIAL MEDIA). Do not make it easy for them...
If everyone is educated on the topic and consistently follows computer security best practices, every system would be more secure. This is simply due to the fact that people are generally the weakest point of any large system's security. If a company's employees are all securing themselves, they in turn are also securing the company. It is why phishing and USB drops are so often the initial method of entry hackers use to worm their way into a successful data breach.


some text in some page
sometext in another text node
anoter text which selenium ignore
some text in child element of element where selenium do not look
Answer is: 42
Some unicode: ěščřž


--- layout: post title: Virtual host configuration error tags: [] status: publish type: post published: true meta: {} ---
I was faced with an issue in getting a second site up and running using virtual hosts, and this was down to a mistake in my httpd.conf file. If you encounter the following error in your log files:
[Thu May 27 12:44:54 2004] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
You can resolve it by un commenting the following line in your httpd.conf line:
NameVirtualHost *
And then setting host directive to:


Stages:
|
Show Stages Flow
Stages: |
|
Show Logical Flow
Logic Dataflow: |
|
Show Optimized Logical Flow
Optimized Dataflow: |
|
Show Stages Status
Stages: |
|
Show Execution Graph
Execution Graph: |
|
Show Execution Traces of Workers
|


VIE Widget - Auto tagging
WASHINGTON, D.C.
The House has passed a short-term spending bill that keeps the government
running for six weeks and buys time for future budget negotiations. The 352-66 vote sends
the measure to President Barack Hussein Obama
in time to avert a government shutdown at midnight.
The legislation gives Congress and the White House more time to iron out their differences
on a pile of unfinished budget work totaling more than $1 trillion. It also ends a fight
over whether some aid for victims of Hurricane Irene and other natural disasters should
have been offset by cuts elsewhere.
CUPERTINO, California
It's the first time in years that Apple has unveiled a major new product
without Steve Jobs presiding over
the announcement. The company's new CEO, Tim Cook, was the one introducing the company's new iPhone
today -- faster and more powerful than the previous version. Cook took over as CEO after Jobs,
who has been battling health problems, resigned in August.
Tutorial
Click
here for the tutorial.
Download


Mr. Roboger's Neighborhood
Please enter a number:
Submit your number!
Submit your number reversed!
reset


I really enjoy working with code. As much as I despise its frustrating qualities, I also live for the feeling of reward when I unlock the secret of a computer. My vision is to become a full-stack web developer, and eventually a data scientist. I will eventually contribute to large scale solutions that effect millions of people.
I grew up with a family of restaurant workers. I didn't learn the basics of IT until my mid twenties. Since then, I've commanded markets of computer sales, troubleshot Windows and Mac computers, provided Support for a Salesforce application and developed webpages for a Continuing Medical Education (CME) company. Visit my portfolio in the top navigation to see some of the projects I've worked on!


Run Tests
Run automatically
one
two
lol
hola
three
I need to go
chocolate
four
nihao
*snort*
I've been a bad element
eight
lactose
Dancing on the ceiling!
what?
lmfao
I must return to my home planet
nine
five


Public Sector Banks Collect Rs 1,996 Crore As Minimum Balance Penalty In FY19
by PTIBookmark
Public sector banks collected Rs 1,996.46 crore in penalty from customers for not keeping minimum monthly balance in savings account in 2018-19, the Parliament was informed on Monday.
In 2017-18, the 18 public sector banks collected Rs 3,368.42 crore by levying minimum balance penalty. This amount was sharply higher than Rs 790.22 crore collected in 2016-17.
"The reduction in the amount through levy of charges by PSBs during 2018-19 include reduction in charges for non-maintenance of balance by State Bank of India, with effect from Oct. 1, 2017," Minister of State for Finance Anurag Singh Thakur said in a written reply to the Lok Sabha.
SBI charged the penalty till 2012 and reintroduced it from April 1, 2017.
Following criticism for levying high charge, SBI reduced the penalty with effect from Oct. 1, 2017.
Thakur said the banks do not levy any such penalty on basic savings bank accounts including those opened under Pradhan Mantri Jan Dhan Yojana.
Till March-end 2019, there were 57.3 crore Basic Savings Bank Deposit accounts across the country, including 35.27 crore Jan Dhan accounts, as per Reserve Bank of India. There is no minimum balance penalty for these accounts, Thakur said.
BSBD accounts provide certain basic minimum facilities free of charge.
For accounts other than BSBD accounts, banks are permitted to fix service charges on various services rendered by them. Banks must ensure that such charges are reasonable and not out of line with the average cost of providing these services, as per RBI guidelines.


Recommended
-
18,377,471 views - 3 days ago
-
22,571,284 views - 1 week ago
-
19,698,211 views - 5 days ago
-
8,330,657 views - 9 months ago
-
581,197,134 views - 2 months ago
-
147,868,335 views - x years ago
Recently Uploaded
-
17,460,357 views - 4 weeks ago
-
1,607,459 views - 2 days ago
-
3,865,597 views - 5 days ago
-
8,789,480 views - 1 week ago
-
11,340,398 views - 2 days ago
-
1,847,276 views - 1 week ago
-
6,160,683 views - 3 weeks ago
-
1,803,637 views - 1 month ago


JEANS STYLES & ALPACA FASHION
HOME
WOMEN
MEN
COLLECTION
ABOUT Us
CONTACT Us
SHORTS JEANS
Price: $24.99
DETAILS:
75% Denim
25% Cotton
Cold Wash
COLORS:
Black
White
Blue Jeans
SIZE:
0
2
4
6
8
10
QUANTITY:
- Select Qty -
1
2
3
4


{% extends "layout.html" %} {% block title %}Home{% endblock %} {% block content %}
You should see a canvas element below this paragraph where you can do paper.js stuff.
Look in the script
element of /templates/page3.html
for the JavaScript
code that makes this example work.
This page illustrates using paperscript together with a small amount of JavaScript.
(you may need to scroll down the page to see it. It's below the Canvas element.)


I tinker with a Turtlebot and get it to meander aimlessly and harass helpless victims in the lab.
Certain games really are timeless. I may have spent only 3 months as a 90's kid, but even I recognize the intellectual genius of the game that is Galaga. So why not recreate it on an Atmega 1284 using atmel studio? Who knows, maybe I could get some school credit for it as well...
Warships have always been an interest of mine. When I found out about a local rc warship hobby group in my area, I was estatic. The idea of being able to mix hobby electronics with warships and sink stuff at the same time was understandably exciting.


| | |
- builtins.object
-
- FiniteFieldElement
-
- ExtensionFieldElement
-
- BinaryFieldElement
- PrimeFieldElement
class BinaryFieldElement(ExtensionFieldElement) |
| |
BinaryFieldElement(value)
Common base class for binary field elements. |
| |
- Method resolution order:
- BinaryFieldElement
- ExtensionFieldElement
- FiniteFieldElement
- builtins.object
Methods defined here:
- is_sqr(self)
- Test for quadratic residuosity (0 is also square).
- sqrt(self, INV=False)
- Modular (inverse) square roots.
Data and other attributes defined here:
- characteristic = 2
Methods inherited from ExtensionFieldElement:
- __int__(self)
- Extract field element as an integer value.
- __irshift__(self, other)
- In-place right shift.
- __pow__(self, other)
- Exponentiation.
- __reduce__(self)
- Helper for pickle.
- __repr__(self)
- Return repr(self).
- __rshift__(self, other)
- Right shift.
- reciprocal(self)
- Multiplicative inverse.
Static methods inherited from ExtensionFieldElement:
- createGF(modulus)
- Create new object for use by pickle module.
Methods inherited from FiniteFieldElement:
- __add__(self, other)
- Addition.
- __bool__(self)
- Truth value testing.
Return False if this field element is zero, True otherwise.
Field elements can thus be used directly in Boolean formulas.
- __eq__(self, other)
- Equality test.
- __iadd__(self, other)
- In-place addition.
- __ilshift__(self, other)
- In-place left shift.
- __imul__(self, other)
- In-place multiplication.
- __init__(self, value)
- Initialize self. See help(type(self)) for accurate signature.
- __isub__(self, other)
- In-place subtraction.
- __itruediv__(self, other)
- In-place division.
- __lshift__(self, other)
- Left shift.
- __mul__(self, other)
- Multiplication.
- __neg__(self)
- Negation.
- __pos__(self)
- Unary +.
- __radd__(self, other)
- Addition (with reflected arguments).
- __rlshift__(self, other)
- Left shift (with reflected arguments).
- __rmul__(self, other)
- Multiplication (with reflected arguments).
- __rrshift__(self, other)
- Right shift (with reflected arguments).
- __rsub__(self, other)
- Subtraction (with reflected arguments).
- __rtruediv__(self, other)
- Division (with reflected arguments).
- __sub__(self, other)
- Subtraction.
- __truediv__(self, other)
- Division.
Class methods inherited from FiniteFieldElement:
- to_bytes(x) from builtins.type
- Return byte string representing the given list of integers x.
Static methods inherited from FiniteFieldElement:
- from_bytes(data)
- Return the list of integers represented by the given byte string.
Data descriptors inherited from FiniteFieldElement:
- value
Data and other attributes inherited from FiniteFieldElement:
- __hash__ = None
- byte_length = None
- ext_deg = None
- is_signed = None
- modulus = None
- order = None
|
class ExtensionFieldElement(FiniteFieldElement) |
| |
ExtensionFieldElement(value)
Common base class for extension field elements. |
| |
- Method resolution order:
- ExtensionFieldElement
- FiniteFieldElement
- builtins.object
Methods defined here:
- __int__(self)
- Extract field element as an integer value.
- __irshift__(self, other)
- In-place right shift.
- __pow__(self, other)
- Exponentiation.
- __reduce__(self)
- Helper for pickle.
- __repr__(self)
- Return repr(self).
- __rshift__(self, other)
- Right shift.
- is_sqr(self)
- Test for quadratic residuosity (0 is also square).
- reciprocal(self)
- Multiplicative inverse.
- sqrt(self, INV=False)
- Modular (inverse) square roots.
Static methods defined here:
- createGF(modulus)
- Create new object for use by pickle module.
Methods inherited from FiniteFieldElement:
- __add__(self, other)
- Addition.
- __bool__(self)
- Truth value testing.
Return False if this field element is zero, True otherwise.
Field elements can thus be used directly in Boolean formulas.
- __eq__(self, other)
- Equality test.
- __iadd__(self, other)
- In-place addition.
- __ilshift__(self, other)
- In-place left shift.
- __imul__(self, other)
- In-place multiplication.
- __init__(self, value)
- Initialize self. See help(type(self)) for accurate signature.
- __isub__(self, other)
- In-place subtraction.
- __itruediv__(self, other)
- In-place division.
- __lshift__(self, other)
- Left shift.
- __mul__(self, other)
- Multiplication.
- __neg__(self)
- Negation.
- __pos__(self)
- Unary +.
- __radd__(self, other)
- Addition (with reflected arguments).
- __rlshift__(self, other)
- Left shift (with reflected arguments).
- __rmul__(self, other)
- Multiplication (with reflected arguments).
- __rrshift__(self, other)
- Right shift (with reflected arguments).
- __rsub__(self, other)
- Subtraction (with reflected arguments).
- __rtruediv__(self, other)
- Division (with reflected arguments).
- __sub__(self, other)
- Subtraction.
- __truediv__(self, other)
- Division.
Class methods inherited from FiniteFieldElement:
- to_bytes(x) from builtins.type
- Return byte string representing the given list of integers x.
Static methods inherited from FiniteFieldElement:
- from_bytes(data)
- Return the list of integers represented by the given byte string.
Data descriptors inherited from FiniteFieldElement:
- value
Data and other attributes inherited from FiniteFieldElement:
- __hash__ = None
- byte_length = None
- characteristic = None
- ext_deg = None
- is_signed = None
- modulus = None
- order = None
|
class FiniteFieldElement(builtins.object) |
| |
FiniteFieldElement(value)
Abstract base class for finite field elements.
Invariant: attribute 'value' nonnegative and below modulus. |
| |
Methods defined here:
- __add__(self, other)
- Addition.
- __bool__(self)
- Truth value testing.
Return False if this field element is zero, True otherwise.
Field elements can thus be used directly in Boolean formulas.
- __eq__(self, other)
- Equality test.
- __iadd__(self, other)
- In-place addition.
- __ilshift__(self, other)
- In-place left shift.
- __imul__(self, other)
- In-place multiplication.
- __init__(self, value)
- Initialize self. See help(type(self)) for accurate signature.
- __int__(self)
- Extract field element as an integer value.
- __irshift__(self, other)
- In-place right shift.
- __isub__(self, other)
- In-place subtraction.
- __itruediv__(self, other)
- In-place division.
- __lshift__(self, other)
- Left shift.
- __mul__(self, other)
- Multiplication.
- __neg__(self)
- Negation.
- __pos__(self)
- Unary +.
- __pow__(self, other)
- Exponentiation.
- __radd__(self, other)
- Addition (with reflected arguments).
- __rlshift__(self, other)
- Left shift (with reflected arguments).
- __rmul__(self, other)
- Multiplication (with reflected arguments).
- __rrshift__(self, other)
- Right shift (with reflected arguments).
- __rshift__(self, other)
- Right shift.
- __rsub__(self, other)
- Subtraction (with reflected arguments).
- __rtruediv__(self, other)
- Division (with reflected arguments).
- __sub__(self, other)
- Subtraction.
- __truediv__(self, other)
- Division.
- is_sqr(self)
- Test for quadratic residuosity (0 is also square).
- reciprocal(self)
- Multiplicative inverse.
- sqrt(self, INV=False)
- Modular (inverse) square roots.
Class methods defined here:
- to_bytes(x) from builtins.type
- Return byte string representing the given list of integers x.
Static methods defined here:
- from_bytes(data)
- Return the list of integers represented by the given byte string.
Data descriptors defined here:
- value
Data and other attributes defined here:
- __hash__ = None
- byte_length = None
- characteristic = None
- ext_deg = None
- is_signed = None
- modulus = None
- order = None
|
class PrimeFieldElement(FiniteFieldElement) |
| |
PrimeFieldElement(value)
Common base class for prime field elements. |
| |
- Method resolution order:
- PrimeFieldElement
- FiniteFieldElement
- builtins.object
Methods defined here:
- __abs__(self)
- Absolute value of (signed) value.
- __int__(self)
- Extract field element as a (signed) integer value.
- __irshift__(self, other)
- In-place right shift.
- __pow__(self, other)
- Exponentiation.
- __reduce__(self)
- Helper for pickle.
- __repr__(self)
- Return repr(self).
- __rshift__(self, other)
- Right shift.
- is_sqr(self)
- Test for quadratic residuosity (0 is also square).
- reciprocal(self)
- Multiplicative inverse.
- signed_(self)
- Return signed integer representation, symmetric around zero.
- sqrt(self, INV=False)
- Modular (inverse) square roots.
- unsigned_(self)
- Return unsigned integer representation.
Static methods defined here:
- createGF(p, f, n, w)
- Create new object for use by pickle module.
Data and other attributes defined here:
- is_signed = None
- nth = None
- root = None
Methods inherited from FiniteFieldElement:
- __add__(self, other)
- Addition.
- __bool__(self)
- Truth value testing.
Return False if this field element is zero, True otherwise.
Field elements can thus be used directly in Boolean formulas.
- __eq__(self, other)
- Equality test.
- __iadd__(self, other)
- In-place addition.
- __ilshift__(self, other)
- In-place left shift.
- __imul__(self, other)
- In-place multiplication.
- __init__(self, value)
- Initialize self. See help(type(self)) for accurate signature.
- __isub__(self, other)
- In-place subtraction.
- __itruediv__(self, other)
- In-place division.
- __lshift__(self, other)
- Left shift.
- __mul__(self, other)
- Multiplication.
- __neg__(self)
- Negation.
- __pos__(self)
- Unary +.
- __radd__(self, other)
- Addition (with reflected arguments).
- __rlshift__(self, other)
- Left shift (with reflected arguments).
- __rmul__(self, other)
- Multiplication (with reflected arguments).
- __rrshift__(self, other)
- Right shift (with reflected arguments).
- __rsub__(self, other)
- Subtraction (with reflected arguments).
- __rtruediv__(self, other)
- Division (with reflected arguments).
- __sub__(self, other)
- Subtraction.
- __truediv__(self, other)
- Division.
Class methods inherited from FiniteFieldElement:
- to_bytes(x) from builtins.type
- Return byte string representing the given list of integers x.
Static methods inherited from FiniteFieldElement:
- from_bytes(data)
- Return the list of integers represented by the given byte string.
Data descriptors inherited from FiniteFieldElement:
- value
Data and other attributes inherited from FiniteFieldElement:
- __hash__ = None
- byte_length = None
- characteristic = None
- ext_deg = None
- modulus = None
- order = None
| |


--- layout: post title: ! 'One more job: Work for Alonovo Labs' categories: [] author: admin published: true date: 2005-08-23 18:19:52.000000000 +01:00 ---
Alonovo Labs is also looking for a Ruby on Rails superhero. Preferably in Phoenix or Northern California, but telecommuting for the right superstar is available.


Bigg Boss 13: Hindustani Bhau’s Wife Files A Complaint Against Incorrect Statements About The Contestant
The handwritten letter dated November 24 reads that "many incorrect and fake messages, statements, videos are made against Hindustani Bhau.
by IANSBigg Boss 13 contestant Hindustani Bhau’s (Vikas Fhatak) wife Ashwini has submitted a written complaint in Khar Police Station here regarding incorrect statements made against him on social media.
The handwritten letter dated November 24 reads that “many incorrect and fake messages, statements, videos are made against Hindustani Bhau. People are addressing themselves as family members, mentioning themselves as brothers, aunt, are no one to him. Our family includes my mother-in-law, my son, my mother, father, Hindustani Bhau’s nephew Sandesh”.
“This letter is to inform that in case any misconduct or misuse is done by any outside person, we are not responsible for the same.”
Ashwini also requested the media to not take interviews of the “fake relatives and not to upload wrong videos and messages against Vikas Fhatak which will create controversies”.
Vikas is one of the contestants of the Salman Khan-hosted show that requires its participants to take up tasks, give up luxuries of life and stay in a house, especially built for the show, for a few weeks.


JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Tree
Deprecated
Index
Help
SEARCH:
All Classes
All Classes
Interface Summary
Class Summary
Enum Summary
Exception Summary
Class
Description
BackendConstants
CellGenerator
CellManager
CellManagerUI
CellPlacer
CellSocietyGridPane
CellSocietyPane
CellUI
ConfigException
ConfigReader
Configuration
Controller
ControllerBox
Converter
FireCell
FireGraph
FireStates
FishCell
GameOfLifeCell
GameOfLifeGraph
GameOfLifeRules
GameOfLifeStates
GOLRandomCellArrayGenerator
Graph
Grapher
MainWindow
Node
PercolationCell
PercolationGraph
PercolationRules
PercolationStates
RandomCellArrayGenerator
RecCellPlacer
RecCellUI
RecFireCellGenerator
RecFireCellUI
RecGameOfLifeCellGenerator
RecGameOfLifeCellUI
RecPercolationCellGenerator
RecPercolationCellUI
RecSegregationCellGenerator
RecSegregationCellUI
RecWatorCellGenerator
RecWatorCellUI
Rules
SegregationAgentStates
SegregationCell
SegregationCellStates
SegregationGraph
SegregationRules
SharkCell
Simulation
SpreadingFireRules
ThreeStateRandomCellArrayGenerator
WaTorCell
WaTorGraph
WaTorRules
WaTorStates


DuelMutableMap()
A simple HashMap implementation that makes usage of ReverseMutableMap in order to create a backwards-linkable map, where values on the LEFT can be used to fetch values on the RIGHT and vice-versa.
Author
Boston Vanseghi
Since
2.0.2


Zero selector tests
Running… see browser console for results
one
two
look at me!
can't see me
child1
child2
child3
child4


{% if page.path contains ".markdown" %} {% if page.image.src %} {% else %} {% endif %} {% endif %}
If you're a .NET developer, come and join us in learning about .NET and related technologies from expert speakers and enthusiasts.
View next meetup


Where to Vacation?
Beach or Mountains?
Beach
Mountains
Hot or Cold Weather?
Hot
Cold
Preferred music?
Reggae
Country
Shoes, or sandals?
Shoes
Sandals
Mode of transportation?
Car
Airplane
Submit
Destination:


This friendly fishing port lies about 50nm west of Algiers.
Position 36°36′36″N, 2°11′48″E.The officials will attract your attention on entering the port and will deal with formalities.
Last updated August 2014.
Yachts are berthed in front of the police/coastguard building where there is a water tap.
For your first visit into the town, a policemen in civilian clothes will accompany you to act as a guide. After that you are free to visit on your own but it is important to advice them of your plans.
Provisioning is good and the roman ruins worth visiting.
Last updated August 2014.


Passionate about Rho?
If you find our project useful, please help us by supporting it
in any way you can:
give us an npm-star:
npm star rho
- give us a star at GitHub
- write an article about Rho in your blog
- tweet about Rho
- tell your friends on Stackoverflow
- contribute to Rho development
- integrate Rho with your favorite engine and blog about it
- buy some pizza and beer for the author:
Thank you!


JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
Hierarchy For All Packages
Package Hierarchies:
controllers
,
entity
,
log
,
models
,
thoth
,
utils
Class Hierarchy
java.lang.Object
controllers.
AddEmployeeController
(implements javafx.fxml.Initializable)
controllers.
AddShopController
(implements javafx.fxml.Initializable)
controllers.
AdminController
(implements javafx.fxml.Initializable)
utils.
Alerts
controllers.
AnalystPricesViewController
(implements javafx.fxml.Initializable)
controllers.
AnalystSalesCreatorViewController
(implements javafx.fxml.Initializable)
controllers.
AnalystSalesDataController
(implements javafx.fxml.Initializable)
javafx.application.Application
thoth.
Thoth
controllers.
ComplexOrderDetailsController
(implements javafx.fxml.Initializable)
entity.
Customer
models.
EmployeeView
controllers.
EmployeeViewController
(implements javafx.fxml.Initializable)
entity.
Indent
entity.
Indent_product
models.
IndentProductsView
models.
IndentTableView
controllers.
LogisticOrdersController
(implements javafx.fxml.Initializable)
controllers.
MainViewAnalystController
(implements javafx.fxml.Initializable)
controllers.
MainViewLogisticController
(implements javafx.fxml.Initializable)
controllers.
MainWindowController
(implements javafx.fxml.Initializable)
models.
ObservablePriceModel
entity.
Product
models.
Product
entity.
Product_receipt
entity.
Receipt
entity.
Role
models.
SalesDataModel
models.
SessionContext
entity.
Shop
controllers.
ShopOrderDetailsController
(implements javafx.fxml.Initializable)
controllers.
ShopOrderItemsForCustomers
(implements javafx.fxml.Initializable)
controllers.
ShopSellProductsController
(implements javafx.fxml.Initializable)
controllers.
ShopShowOrdersController
(implements javafx.fxml.Initializable)
controllers.
ShopViewController
(implements javafx.fxml.Initializable)
controllers.
SimpleOrderDetailsController
(implements javafx.fxml.Initializable)
entity.
State
entity.
State_of_indent
entity.
State_on_shop
models.
StateOnShop
controllers.
StateWarehouseController
(implements javafx.fxml.Initializable)
log.
ThothLoggerConfigurator
entity.
User
entity.
UserShop
utils.
Validation
controllers.
WarehouseNewProductController
(implements javafx.fxml.Initializable)
Skip navigation links
Overview
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes


We choose six index ETFs to represent different equity styles(small-cap value, mid-cap value, large-cap value,
small-cap growth, mid-cap growth, large-cap growth). After adding the assets, we save the momentum indicator in
the dictionary self.mom
for each style. The formation period of 12-month is used to gauge the value of momentum.
def Initialize(self): self.SetStartDate(2001, 1, 1) self.SetEndDate(2018, 8, 1) self.SetCash(100000) self.tickers = [ "IJJ", # iShares S&P MidCap 400 Value Index ETF "IJS", # iShares S&P SmallCap 600 Value ETF "IVE", # iShares S&P 500 Value Index ETF "IVW", # iShares S&P 500 Growth ETF "IJK", # iShares S&P Mid-Cap 400 Growth ETF "IJT", # iShares S&P Small-Cap 600 Growth ETF ] self.symbols = [] for ticker in self.tickers: self.symbols.append(self.AddEquity(ticker, Resolution.Daily).Symbol) self.SetWarmUp(timedelta(days=12*20)) # save all momentum indicator in the dictionary self.mom = {i:self.MOM(i, 12*20, Resolution.Daily) for i in self.symbols}
Six ETFs are ranked based on their prior 12-month performance in the formation period. The algorithm goes long the top performing ETF and short the ETF at the bottom and holds the position for one month. The portfolio is rebalanced at the start of next month.
def Rebalance(self): sorted_mom = sorted(self.mom, key = lambda x: self.mom[x].Current.Value) invested = [x.Key for x in self.Portfolio if x.Value.Invested] for i in invested: if i not in [sorted_mom[0], sorted_mom[1]]: self.Liquidate(i) self.SetHoldings(sorted_mom[0], -0.5) self.SetHoldings(sorted_mom[-1], 0.5)


Class UnitOfWork
Class that represents a unit of work for the Fibula project.
Inheritance
System.Object
UnitOfWork
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Data
Assembly: Fibula.Data.dll
Syntax
public class UnitOfWork : IUnitOfWork<AccountEntity, CharacterEntity>, IDisposable
Constructors
| Improve this Doc View SourceUnitOfWork(IFibulaDbContext)
Initializes a new instance of the UnitOfWork class.
Declaration
public UnitOfWork(IFibulaDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IFibulaDbContext | context | The context to work on. |
Properties
| Improve this Doc View SourceAccounts
Gets a reference to the accounts repository.
Declaration
public IAccountRepository<AccountEntity> Accounts { get; }
Property Value
| Type | Description |
|---|---|
| IAccountRepository<AccountEntity> |
Characters
Gets a reference to the characters repository.
Declaration
public ICharacterRepository<CharacterEntity> Characters { get; }
Property Value
| Type | Description |
|---|---|
| ICharacterRepository<CharacterEntity> |
Methods
| Improve this Doc View SourceComplete()
Completes this unit of work.
Declaration
public int Complete()
Returns
| Type | Description |
|---|---|
| System.Int32 | The number of changes saved upon completion of this unit of work. |
Dispose()
Disposes this unit of work and it's resources.
Declaration
public void Dispose()
Implements
System.IDisposable