--- layout: post title: LINQ to SQL and auto increment fields date: 2008-12-01 19:06:13.000000000 +01:00 categories: [] tags: - LINQ - LINQ to SQL - Visual Studio 2005 status: publish type: post published: true meta: {} author: login: admin email<EMAIL_ADDRESS>display_name: Philippe first_name: Philippe last_name: Vlérick excerpt: !ruby/object:Hpricot::Doc options: {} ---
When using LINQ to SQL in Visual Studio 2005, Table and Column mapping has to be coded manually. This is not a very difficult job but it's repetitive and boring (of course, if you are using Visual Studio 2008 to automatically generated the mapping code, this will be done automatically).
I ran into an issue while following a guide on manually map database tables to classes. When I tried to insert a new record, leaving the identity field empty in the object, I had the following error:
"Cannot insert explicit value for identity column in table 'Contexts' when IDENTITY_INSERT is set to OFF."
It was pretty obvious that, as the identity column was and Int32, it was set to 0 as default, and when LINQ tried to insert that row in the table the SQL Server raised an error as this auto incremented field cannot be explicitly set.
This is simply solved by using the IsDbGenerated attribute in the Column annotation description of the field, as shown in the following code.
private Int32 _id; [Column(IsPrimaryKey = true, IsDbGenerated = true)] public Int32 Id { get { return this._id; } set { this._id = value; } }
This attribute tells LINQ not to give a value for this field as it is generated by the database at insert time.
Another very nice thing about this is that once you have inserted the object in the database, this field will hold the value generated by the database. Practically, this means that after executing the following code
DataTable.InsertOnSubmit(obj); DataContext.SubmitChanges();
the obj.Id property will contain the value that was assigned by the database.


Snap Options
Image Format
PNG
JPG
Shortcuts Setting
Capture Visible
Capture Selected Area
Capture Entire
Delay (for delayed capture)
3s
5s


Text Differencer
Load Demo Data
Enter text passages and click the button to compare differences.
Before:
After:
Compare
Comparison:


{{ partial "banner_header_fonts.html" .}}
Sorry, but the page you are looking for could not be found.


I wasn't able to find any deaths in NSW for the McFaddens!! but Reg Goddard has found them! Also Shirley Wharton. Shipping Records show Robert & Ann and six Children arrived in Sydney on the "Percy" on the 28th Aug 1841. They paid 83 Pounds. I have a copy of Shipping Records.
Robert was a Farm Servant & Butler. Roman Catholic, he could read. His parents were Hugh a
Farmer & Ellen. Ann McFadden was a Needlewoman, Prod. read & write. Parents James Crawford
a weaver & Rebecca. They were from County Donagal, Ireland.
Ellen McFadden their daughter, was single, a Nursemaid, Episcapalian (R.&W.) from Lech, County
Tyrone. Ellen was 15yrs, James 14yrs, Robert 12yrs, Rebecca 10yrs, Rosy 8yrs, Hugh 61/2yrs.
PROBATE - Series 1 - #3958a - Robert McFedden - died 22/10/1857 - Goods 100Pounds.
Probate granted to Robert McFedden, his son & heir.
5/8/2004 - Received Robert & Ann's & son Roberts death Certs. from Reg Goddard.
Its interesting both died the same year, Ann in February & Robert in October 1857.
On Roberts death Cert. it lists the children's names - Ellen 33, James 31, Robert 28, Rebecca 25,
& Rosa 23. Hugh is not mentioned as he died in 1841. They lived in Redfern St, Redfern.
The informant was C. Snow, neighbour, yet on Ann's death Cert. the informant looks like it was
Thomas Cook son-in-law, yet the children's names aren't mentioned.!!!


Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
E
F
G
H
I
J
K
M
O
P
R
S
T
U
O
onAttachedToWindow()
- Method in class android.support.v7.app.
MediaRouteButton
onAttachedToWindow()
- Method in class android.support.v7.app.
MediaRouteChooserDialog
onAttachedToWindow()
- Method in class android.support.v7.app.
MediaRouteControllerDialog
onBind(Intent)
- Method in class android.support.v7.media.
MediaRouteProviderService
onControlRequest(Intent, MediaRouter.ControlRequestCallback)
- Method in class android.support.v7.media.
MediaRouteProvider.RouteController
Performs a
media control
request asynchronously on behalf of the route.
onCreateActionView()
- Method in class android.support.v7.app.
MediaRouteActionProvider
onCreateCallback()
- Method in class android.support.v7.app.
MediaRouteDiscoveryFragment
Called to create the
callback
that will be registered.
onCreateChooserDialog(Context, Bundle)
- Method in class android.support.v7.app.
MediaRouteChooserDialogFragment
Called when the chooser dialog is being created.
onCreateChooserDialogFragment()
- Method in class android.support.v7.app.
MediaRouteDialogFactory
Called when the chooser dialog is being opened and it is time to create the fragment.
onCreateControllerDialog(Context, Bundle)
- Method in class android.support.v7.app.
MediaRouteControllerDialogFragment
Called when the controller dialog is being created.
onCreateControllerDialogFragment()
- Method in class android.support.v7.app.
MediaRouteDialogFactory
Called when the controller dialog is being opened and it is time to create the fragment.
onCreateDialog(Bundle)
- Method in class android.support.v7.app.
MediaRouteChooserDialogFragment
onCreateDialog(Bundle)
- Method in class android.support.v7.app.
MediaRouteControllerDialogFragment
onCreateMediaControlView(Bundle)
- Method in class android.support.v7.app.
MediaRouteControllerDialog
Provides the subclass an opportunity to create a view that will be included within the body of the dialog to offer additional media controls for the currently playing content.
onCreateMediaRouteButton()
- Method in class android.support.v7.app.
MediaRouteActionProvider
Called when the media route button is being created.
onCreateMediaRouteProvider()
- Method in class android.support.v7.media.
MediaRouteProviderService
Called by the system when it is time to create the media route provider.
onCreateRouteController(String)
- Method in class android.support.v7.media.
MediaRouteProvider
Called by the media router to obtain a route controller for a particular route.
onDescriptorChanged(MediaRouteProvider, MediaRouteProviderDescriptor)
- Method in class android.support.v7.media.
MediaRouteProvider.Callback
Called when information about a route provider and its routes changes.
onDetachedFromWindow()
- Method in class android.support.v7.app.
MediaRouteButton
onDetachedFromWindow()
- Method in class android.support.v7.app.
MediaRouteChooserDialog
onDetachedFromWindow()
- Method in class android.support.v7.app.
MediaRouteControllerDialog
onDiscoveryRequestChanged(MediaRouteDiscoveryRequest)
- Method in class android.support.v7.media.
MediaRouteProvider
Called by the media router when the
discovery request
has changed.
onError(String, Bundle)
- Method in class android.support.v7.media.
MediaRouter.ControlRequestCallback
Called when a media control request fails.
onFilterRoute(MediaRouter.RouteInfo)
- Method in class android.support.v7.app.
MediaRouteChooserDialog
Returns true if the route should be included in the list.
onKeyDown(int, KeyEvent)
- Method in class android.support.v7.app.
MediaRouteControllerDialog
onKeyUp(int, KeyEvent)
- Method in class android.support.v7.app.
MediaRouteControllerDialog
onPerformDefaultAction()
- Method in class android.support.v7.app.
MediaRouteActionProvider
onPrepareCallbackFlags()
- Method in class android.support.v7.app.
MediaRouteDiscoveryFragment
Called to prepare the callback flags that will be used when the
callback
is registered.
onProviderAdded(MediaRouter, MediaRouter.ProviderInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a media route provider has been added.
onProviderChanged(MediaRouter, MediaRouter.ProviderInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a property of the indicated media route provider has changed.
onProviderRemoved(MediaRouter, MediaRouter.ProviderInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a media route provider has been removed.
onRelease()
- Method in class android.support.v7.media.
MediaRouteProvider.RouteController
Releases the route controller, allowing it to free its resources.
onResult(Bundle)
- Method in class android.support.v7.media.
MediaRouter.ControlRequestCallback
Called when a media control request succeeds.
onRouteAdded(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a media route has been added.
onRouteChanged(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a property of the indicated media route has changed.
onRoutePresentationDisplayChanged(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a media route's presentation display changes.
onRouteRemoved(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a media route has been removed.
onRouteSelected(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when the supplied media route becomes selected as the active route.
onRouteUnselected(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when the supplied media route becomes unselected as the active route.
onRouteVolumeChanged(MediaRouter, MediaRouter.RouteInfo)
- Method in class android.support.v7.media.
MediaRouter.Callback
Called when a media route's volume changes.
onSelect()
- Method in class android.support.v7.media.
MediaRouteProvider.RouteController
Selects the route.
onSetVolume(int)
- Method in class android.support.v7.media.
MediaRouteProvider.RouteController
Requests to set the volume of the route.
onStart()
- Method in class android.support.v7.app.
MediaRouteDiscoveryFragment
onStop()
- Method in class android.support.v7.app.
MediaRouteDiscoveryFragment
onUnselect()
- Method in class android.support.v7.media.
MediaRouteProvider.RouteController
Unselects the route.
onUpdateVolume(int)
- Method in class android.support.v7.media.
MediaRouteProvider.RouteController
Requests an incremental volume update for the route.
overridesItemVisibility()
- Method in class android.support.v7.app.
MediaRouteActionProvider
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
E
F
G
H
I
J
K
M
O
P
R
S
T
U


As the year winds down, I find myself thinking frequently about all the change I’ve gone through. This post doesn’t have a particular theme or any real deep insights…more of a year-in-review.
</a>
— This time last year, I was in Thailand riding an elephant. It was probably one of the best experiences I’ve ever had and I think about it frequently. If anyone ever asks you to go to Thailand, stop what you are doing, and get on the airplane. You won’t regret it.
— I feel very blessed to have a home in the United States, but some days (many days) I do wish I lived a simpler life. Having the opportunity to travel within Asia really gave me perspective on how much I take for granted. I’m much more aware of the luxuries I have access to and I try and share that with my students, but it is very hard to communicate that feeling to others.
— Moving back to the US from abroad had more culture shock involved than moving abroad from the US.
— The power of connections through social media cannot be ignored. I searched for work for six months before connecting with Brett Clark in Evansville, IN. He contacted me to Skype into a learning session on the Flipped Classroom and it ended up being an interview for my current position. For that, I am extremely thankful.
— American public schools are in need of innovators and our students need people that care about more than standardized test scores. Learning has been killed by testing and I refuse to let the status quo proliferate in my classroom.
— Sometimes the best thing we can do for our schools is be present. We don’t always need to be vocal about making changes. Change happens naturally from practice, not from always being “that guy.” Cause more ripples in the pond…don’t drop bombs all the time.
— I need to celebrate failure as much as (more than?) successes. That is including student failure alongside my own. I have been extremely aware of learning through mistakes lately.
— Learning is important to me, but I need to take times to step back and let my brain rest.
— When I let my brain rest, it usually means my body is working hard. I helped build a garage last weekend and it was great to be outside working with my hands, even though I know nothing about building anything more substantial than a pillow fort.
— My wife and I did homemade Christmas gifts this year and I am thinking about making that the norm rather than a one-time deal. We still bought small gifts for one another, but the bulk of our gift-giving was DIY. I feel much more excited about giving this year than I have in the past.
— Driving between our families’ homes is tiring, but it is so nice to be able to actually drive between homes during the break.
— I have a lot of work coming up once break is over, but that is a full week away. Right now, I am home, with my family, and that is where I need to be.
Take time this year to be present. Don’t just exist in the room, but invest in your parents, your spouse, your kids, or whoever you’re with. Be intentional about looking people in the eye and connecting this year. Focus on the same with your students when we go back to school. But above all: continue to learn, continue to grow.
Written on December 24th, 2011 by Brian Bennett Categorized in: All
Leave a comment


Here is View in Ha.
If Enabled?
If Enabled?
If not Enabled?
Html String
M
W
M
W
Whites
Blacks
Yellows
A
B
C
D
띠용
삐용


I still like my old site, actually. I sat around with this site for well over a year. I wanted something simple and something not built on a static site generator I wrote myself 10 years ago.
I still like my old site, actually. I sat around with this site for well over a year. I wanted something simple and something not built on a static site generator I wrote myself 10 years ago.


Working on your PC
02 Oct 2017BASH on Windows 10
If your personal computer (PC) operates using Windows 10, you should be able to install a windows application onto your system that allows the user to access and navigate the file system using an Ubuntu flavor of BASH. The procedure for outfitting your Windows 10 computer to operate with Ubuntu BASH terminal windows has been well documented in the following tutorial: Install BASH for WINDOWS 10
Git BASH
Because the Ubuntu Bash on Windows 10 is in its early beta release version, we will not be using this tool in the labs this year. During the lab sections of the course we will be using Git BASH. If you would like to have consistency across the computer you use in lab and your personal computer, download and install Git for Windows, available at https://git-for-windows.github.io/.
Macintosh Users
If you use a macintosh computer, the operating system is built on top of a unix frame. Mac OS X has a terminal application pre-installed. If you have never used the temrinal application on your macintsosh computer before, you can find it using spotlight command + spacebar
and type in ‘terminal’. Alternatively, you can navigate to launching the application using FINDER (Applications > Utilities > Terminal):
Other Useful Programs for Mac
- If customization is your thing, try out an alternative terminal emulator: iterm2
- Popular Text Editors for Mac OS X:
Using BASH with Caution
If you have never used a unix-based operating system, or have limited experience, there are certain precautions that should be taken when navigating and manipulating files at the BASH command-line. Most importantly, when a file is removed from the system using the rm
command, the file is gone forever! It does not go to a “Recycle Bin” or “Trash” Directory/Folder.
Because of this, removing files within the BASH shell should be done with certainty. We recommend reading over 8 Deadly Commands You Should Never Run on Linux in order to familiarize yourself with hazardous commands that will likely prove to be detrimental to your file system, should you run them.
Perhaps the most significant stress point regarding using BASH with caution is to be careful when using the wildcard character, *
, in conjunction with commands - namely the rm
command.
For example, you should never run: rm /*
if you have Administrative access on the file system, commonly referred to as SUDO permission in the unix world.
BASH Safeguard for the rm
command
One safeguard when removing files at the command line is to add the -i
option when calling on the rm
command like so:
$ rm -i <file to remove>
This will prompt the interpreter to display a warning message in response to your call of removing the targeted file(s):
smhigdon$ rm -i foo.txt
remove foo.txt?
In response to this interactive prompt by the system, you may then respond by simply typing y
or n
for yes or no respectively, followed by the return key. If you types n
, the file will not be deleted, whereas typing y
deletes the file. You may think that this is a bit tedious, typing -i
every time you want to safeguard deleting a file by mistake - it is! Luckily, there is a way to make the rm
command safe by default, by embedding an alias
into your .bash_profile
. See the lab page on the .bash_profile.


Photo: The Hypercity of Shanghai by Trey Ratcliff , licensed under CC BY NC SA 2.0
---
title: ComplexCity Lab - Home
Author: Fabien Pfaender
Keywords: UTC, UTT, UTBM, SHU, ComplexCity, Laboratory, Comprehensive, Data Science, City, UTSEUS
Description:
---
{% include header.html %}
Photo: The Hypercity of Shanghai by Trey Ratcliff , licensed under CC BY NC SA 2.0
ComplexCity Lab is an interdisciplinary sino-french joint research laboratory. It aims to study the city, and to a greater extent, urban systems. We are taking an innovative approach which combines the analytical and computational capabilities of engineering sciences with the openness and creativeness of humanities and social sciences.
We consider the city as a complex system composed of a very large number of heterogeneous, dynamic, constantly mutative entities in non-linear interaction with each other at various scales. Exploring and analyzing this system leads us to technological, organizational and social innovations to enhance today's cities and help design the cities of tomorrow.
ComplexCity hosts 14 interdisciplinary and international research projects on cities. In addition to these projects we are developing a conceptual framework based on data science aimed at creating a science of cities.


--- layout: page background: '/img/bg-index.jpg' title: Message sent! description: Thank you so much for reaching out to me! ---
Click here to return to the home page


Version 1.5
15.01.2015
Android 5 Material Design complete integration
Cards and SwipeRefreshLayout integration
Complete redesign of the app
Sample Page integrated


Kawai K4
Effect Patch Editor
This editor will work with the Kawai K4 and the Kawai K4r.
Communicating with Edisyn
Set your K4 to receive Program Changes (RCV PGM) and Exclusive (RCV EXCL). See pages 79 and 80 of the manual. You'll also probably want your send channel and receive channel to be the same. I wouldn't set the receive channel to OMNI, as this might conflict with drums.
Hints
- The following effect patches are not used by any standard single, multi, or drum patch: 3, 10, 11, 12, 14, 15, 21, 22, 23, 28
- In all standard effect patches, Submix H is always "off".
Gotchas
- There's a bug in the Kawai K4 Sysex documentation which I have not yet resolved. If you change the PAN value of a submix, you'll notice it goes from -7 to +7, then "??", then I1 to I6. The "??" reflects a value which should not exist. I do not have a K4r, and so cannot determine the proper setting of this value.
- When you update a parameter, it's not reflected on the K4's LCD until you move to something else and back again.
Librarian Support
Effect patches don't have names. This can be very confusing when writing and downloading banks. For example, if you copy Internal04 to the slot of Internal01 (which is slot 1), then re-download it, it'll come back as Internal01! This is because, lacking a patch name, when Edisyn receives the patch, it has to come up with a name for it, and just uses the slot number.
When Edisyn attempts to download the External bank, and you don't have a card in your K4, the K4 will simply ignore requests from Edisyn. This wil make it look like Edisyn is hanging: just stop the download.
Edisyn can quick-request a bank from this synthesizer via Request Bank from Synth. This is a lot faster than the patch-by-patch request method in Download Bank from Synth. So try it out.
| By
| Sean Luke
|
| Date
| August 2017
|


Dealing with Keys¶
Here, we are going to learn how to deal with registry keys by using “ring_wincreg” extension capabilities through RCRegistry class.
Create Key¶
We can create a new key by using the same functions for opening keys because these functions can create a key if it is not existed and then open it. (Open Key)
Key Existence¶
We can check whether a specific key existed before we open it by using KeyExists() function. This function accepts two parameters(HKEY ROOT, “SubKeyPath”). See the next example:
Load "wincreg.ring"
New RCRegistry {
If KeyExists(HKEY_CURRENT_USER, "Software\MyApp") = True
See "MyApp key is existed inside Software key"
Else
See "MyApp does not exist in Software key"
Ok
}
Open Key¶
We can open a registry key using more than one function and option.
OpenKey() Function¶
This function is the primary open key function in the RCRegistry class that could be used to open keys.
This Function accepts parameters as a list so we should pass one list parameter that contains other parameters. The number of parameters allowed are 2-4. These parameters are:
- The HKEY root of the windows registry, which could either be:
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_USER
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- HKEY_CURRENT_CONFIG
Note
ROOT HKEY indexes are numbers for each HKEY root, this index has been defined depending on the root organization in Windows Registry Editor but it starts with one. The complete list of HKEY roots indexes is:
- HKEY_CLASSES_ROOT = 1
- HKCR = 1
- HKEY_CURRENT_USER = 2
- HKCU = 2
- HKEY_LOCAL_MACHINE = 3
- HKLM = 3
- HKEY_USERS = 4
- HKU = 4
- HKEY_CURRENT_CONFIG = 5
- HKCC = 5
Note that each HKEY root has been shorten for easier call.
The sub key path which is the key that we want to open under the specified root. It is a complete path to the required key under the specified root.
- Flags that control how we want to use this library functions. These Flags could be one or more of the follow:
- CREG_READONLY : open the key if it is existed but will not create it if it is not. This flag cannot be used with others in the same time.
- CREG_CREATE : this flag will make the function to create the key if its not exist. ( This Flag is Used by default when calling OpenKey function )
- CREG_AUTOOPEN : activate the auto open mechanism of CRegistry Class, which help in repeatedly open and close functions calling.
- CREG_NOCACHE : deactivate the caching mechanism of the CRegistry Class. ( Activated by default )
The option to access Wow64 tree. It could be true for access or false for opposite.
Hint
Wow64 tree is an automatically created tree of keys inside windows registry for 32 bit applications that run on an 64 bit windows. So openingcreating “SoftwareMyApp” under the HKEY_LOCAL_MACHINE root will not opencreate it as expected but it will be openedcreated as “SoftwareWow6432NodeMyApp”. (Registry Redirection)
Now lets have some examples for how to use OpenKey() function.
Example 1
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software", CREG_READONLY])
If Reg.SubKeyExists("Microsoft")
See "Microsoft key is already present in the Software key"
Ok
Reg.CloseKey()
Example 2
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_LOCAL_MACHINE, "Software", CREG_READONLY, True])
If Reg.SubKeyExists("Microsoft")
See "Microsoft key is already created in the Wow64 tree"
Ok
Reg.CloseKey()
Note
This example may show access denied error. You can get around it by running Ring as Administrator. You can use “Ring_WINAPI” extension to help elevating Ring.
OpenKey2() Function¶
This function is an overriding copy of the previous OpenKey() . But it accepts just two non list parameters, these are:
- HKEY root.
- Sub key to be opened.
Example
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey2(HKCU, "Software\MyApp")
Reg["version"].SetValue("4.4")
See "MyApp version is : " + Reg["version"].GetValue()
Reg.CloseKey()
OpenKey3() Function¶
This function is an overriding copy of OpenKey() function. But it accepts just three non list parameters, these are:
- HKEY root.
- Sub key to be opened.
- Flags
Example
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey3(HKCU, "Software\MyApp", CREG_CREATE)
Reg["version"].SetValue("4.4")
See "MyApp version is : " + Reg["version"].GetValue()
Reg.CloseKey()
OpenKey4() Function¶
This function is another overriding copy of OpenKey() function. But it accepts all four non list parameters, which are:
- HKEY root.
- Sub key to be opened.
- Flags.
- Wow64 tree access.
Example
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey4(HKEY_LOCAL_MACHINE, "Software\MyApp", CREG_CREATE, True)
Reg["version"].SetValue("4.4")
See "MyApp version is : " + Reg["version"].GetValue()
Reg.CloseKey()
After opening the key it will be saved in an attribute in RCRegistry object named (Key), So that it could be used by other functions easily.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software,MyApp"])
See "This is the information of Key handle pointer of this RCRegistry Object" + NL
See Reg.Key
Reg.CloseKey()
Access HKEY Root¶
We can access/open any HKEY Root by passing empty string as sub key path as follow:
Load "wincreg.ring"
Reg = New RCRegistry { OpenKey([HKCU, ""]) }
See "The sub keys contained in HKEY_CURRENT_USER are : " + NL
See Reg.GetSubKeys()
Reg.CloseKey()
Close Key¶
We can close any opened key by using CloseKey() function. It is recommended to close any key you opened to prevent any conflicts when the key is needed to be opened again.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
See "MyApp key is Opened" + NL
Reg.CloseKey()
See "MyApp key is closed"
Set and Get Flags¶
We can Set or Get flags any time in the code using special functions. This may be useful if we opened a key without specifying enough flags that we want.
This can be done using SetFlags() and GetFlags() functions as follow:
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
See "The flags that has been already set are : " + Reg.GetFlags() + NL
Reg.SetFlags(Reg.GetFlags() | CREG_AUTOOPEN)
See "The flags after correction are : " + Reg.GetFlags()
Reg.CloseKey()
Accessing 64 Bit Tree (Registry Redirection)¶
We can change the setting that let us access the 64 bit applications registry tree any time if we miss to set it during key opening.
This could be done by using Access64Tree() function as follow:
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_LOCAL_MACHINE, "Software\MyApp"])
Reg.Access64Tree(False)
Reg["new value"].SetValue("1")
Reg.Access64Tree(False)
IF Reg["new value"].Exists()
See "new value does exist" + NL
Else
See "new value does not exist" + NL
Ok
Reg.Access64Tree(True)
IF Reg["new value"].Exists()
See "new value does exist" + NL
Else
See "new value does not exist" + NL
Ok
Reg.CloseKey()
Note
This example may show access denied error. You can get around it by running Ring as Administrator. You can use “Ring_WINAPI” extension to help elevating Ring.
Registry Virtualization Check¶
We can attempt to check whether the opened key is under virtualization effect or not using IsVirtualized() and IsVirtualized2() functions.
Registry Virtualization is an internal mechanism of Windows that helps keeping the sensitive registry keys and windows files away from being touched by the applications that have been developed to reach them in the previous copies of windows. So that to reach such sensitive keys and files you have to disable virtualization either by running your application/program as an administrator or use manifest files.
Now check whether the currently opened key has been virtualized or not we can use these two functions.
IsVirtualized() Function¶
This function checks virtualization of the opened key and return True/False.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_LOCAL_MACHINE, "Software\MyApp"])
If Reg.IsVirtualized()
See "This key is virtualized"
Else
See "This key is not virtualized"
Ok
Reg.CloseKey()
IsVirtualized2() Function¶
This function checks virtualization of the opened key and return:
- Number ( 1 ) if it is virtualized.
- Number ( 0 ) if it is not virtualized.
- Number ( -1 ) if the function is not certain about virtualization of the specified key.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_LOCAL_MACHINE, "Software\MyApp"])
Switch Reg.IsVirtualized2()
On 1
See "This key is virtualized"
On 0
See "This key is not virtualized"
On -1
See "The function is not able to check virtualization of this key"
Off
Reg.CloseKey()
Refresh Caching¶
If we found that some unknown or unexpected behaviours of “ring_wincreg” extension regarding retrieving entries or some values we can refresh the internal catching mechanism by using Refresh() function.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
See "Refreshing wincreg" + NL
Reg.Refresh()
See "Ring_WinCReg extension has been refreshed"
Reg.CloseKey()
Note
This function may not be used during all of your work as there is a good internal management mechanism in “ring_wincreg” extension.
Sub Keys Existence¶
We can check for any sub key that we may think it could be existed within the opened key by SubKeyExists() function.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
If Reg.SubKeyExists("Options")
See "Options sub key already existed"
Else
See "Options sub key does not exist"
Ok
Reg.CloseKey()
Sub Keys Count¶
We can get the total number of sub keys that are contained within any opened key by using SubKeysCount() function as follow:
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
See "The total number of sub keys contained in this key are : " + Reg.SubKeysCount()
Reg.CloseKey()
Sub Key by Index¶
We can get any sub key present in the opened key by its index using GetSubKeyAt() function.
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
See "The first sub key in this key is : " + Reg.GetSubKeyAt(1)
Reg.CloseKey()
Get All Sub Keys¶
We can get the list of all sub keys in the opened key as a list by using GetSubKeys() function as follow:
Load "wincreg.ring"
New RCRegistry {
OpenKey([HKEY_CURRENT_USER, "Software\MyApp"])
See "The list of Keys in MyApp key are : " + NL
aList = GetSubKeys()
See aList
CloseKey()
}
Delete Key¶
We can delete any key by using DeleteKey() and DeleteKey2() functions.
DeleteKey() Function¶
This function can delete any opened key as follow:
Load "wincreg.ring"
Reg = New RCRegistry
Reg.OpenKey([HKEY_CURRENT_USER, "Software\MyTempApp"])
See "MyTempApp key is Created and Opened" + NL
Reg.DeleteKey()
See "MyTempApp key is deleted now"
DeleteKey2() Function¶
This function can delete any key that is not already opened. This function accepts two parameters (HKEY ROOT, “SubKeyPath”) as follow:
Load "wincreg.ring"
New RCRegistry {
OpenKey([HKEY_CURRENT_USER, "Software\MyTempApp"])
See "MyTempApp has been created" + NL
CloseKey()
}
New RCRegistry {
DeleteKey2(HKEY_CURRENT_USER, "Software\MyTempApp")
See "MyTempApp key is deleted without opening"
}


- A Message From Warren E. Buffett
-
Annual & Interim Reports
Updated August 7, 2015
- Special Letters From Warren & Charlie RE:Past, Present, and Future
- Link to SEC Filings
- Links to Bershire Subsidiary Companies
- Corporate Goverance
- Owner's Manual
- Letters From Warren E. Buffett Regarding Pledges to Make Gifts Of Berkshire Stock
-
News Releases
Updated August 10, 2015
- Warren Buffett's Letters to Berkshire Shareholders
-
Charlie Munger's Letters to Wesco Shareholders
Updated February 28, 2015
- Annual Meeting Information
-
Celebrating 50 Years of a Profitable Partnership
(A commemorative book first sold at the 2015 Annual Meeting and now for sale on eBay.)
- Comparative Rights and Relative Prices of Class A and B Stock
- Berkshire Activewear


The Big Ol' List of Rules
Descriptions and examples for each of the rules in Flake8 (pyflakes, pycodestyle, and mccabe).
pycodestyle
{% for rule in site.rules %}
{% if rule.code contains 'E' or rule.code contains 'W' %}
{% include rule-row.html rule=rule %}
{% endif %}
{% endfor %}
pyflakes
{% for rule in site.rules %}
{% if rule.code contains 'F' %}
{% include rule-row.html rule=rule %}
{% endif %}
{% endfor %}
mccabe
{% for rule in site.rules %}
{% if rule.code contains 'C' %}
{% include rule-row.html rule=rule %}
{% endif %}
{% endfor %}


Custom plugins are awesome. But sometimes they have a big url.
And if you have more than one, it's a bit hard to know which is each.
I don't know if they are a default content header, but i think they should have something like a friendly name in that. Something that BBLog could show in Plugin Name.
BrainFooLong
Administrator
Not possible with the current storage thingy.
But maybe you can try bit.ly or some other url shortener the directly redirect without a frame?
I don't know if it work but you can test it.
Ps: The extension must be always js. So for bit.ly or other urls you can append "?.js" at the end.
ORFK
Global Moderator
i think you can't
bitly and else have automatic generated shortlinks.
Topicstarter
Nano
Global Moderator
Hmm... I'll test some tools to automatically create this.
If don't work, i'll create manually. :P
ORFK wrote:
i think you can't
bitly and else have automatic generated shortlinks.
I belive if you're logged in, you can create custom links.
Gummo89
If you have the capacity to append ?.js to your short links, simply append ?friendlyName.js if you want a friendly name.
Their system should simply ignore the "friendlyName.js" argument as it is no different and all will work as expected.


{% extends 'commercialoperator/emails/base_email.html' %} {% block content %}
Please find attached the invoice for park entry {{ booking_number }}
A copy of all invoices is saved in the online system, to view them please login to your account.
{% endblock %}


Working with Gulp
As has been mentioned in previous section, Gulp is a JavaScript task runner. It helps with performing repetitive tasks like minification, compilation, unit testing, linting, etc. This is possible thanks to extensive Gulp Plugins library.
Gulp tasks are already set up for you. They are stored inside Silicon/gulpfile.js
. But in order to have access to them via you Command Line tool you will need to install gulp-cli node package. Gulp CLI stands for Gulp Command Line Interface.
To do that type following line in your terminal:
Gulp CLI commands
- gulpornpm run build - this main command will fire default gulp task which includes: launching BrowserSync, moving vendor libraries from node_modules directory to dist folder, javascript, sass compilation and lanching watch task. BrowserSync will create dev server and sync your browser with your code editor. Note: to use other separate tasks explained below you will need to open other Terminal window and leave the one with running server intact.
- gulp clean - as the name implies it cleans assets folder from generated (compiled assests like css, js, vendor libs, etc.)
- gulp vendor - moves vendor libraries from
node_modules
directory toassets/vendor
folder. Please check this article explaining how to add new vendor plugin to your project - Installing Vendor plugins with Npm and Gulp - gulp js - compiles ES6 modules from
src/js
folder, applies polyfill using Babel and then minifies and uglifies mainassets/js/src/theme.js
file and createstheme.min.js
file insideassets/js
folder.theme.min.js
is linked to your HTML document. Babel gives you an opportunity to write ES6 javascript and be sure it will be compiled to ES5 js that has a better support across browsers. - gulp sass:expanded - compiles
.scss
files into non-minified CSS (css/theme.css). Fromsrc
todist
folder. - gulp sass:minified - compiles
.scss
files into minified CSS (css/theme.min.css). Fromsrc
todist
folder. - gulp watch - launches
watch
task. It will watch changes of your.scss
/.js
files and automatically compile them into.css
/.js
.
Next steps
Now you when you are equiped with all necessary tools and dev invironment is all set you are ready to dive into Silicon customization.
Take some time to familiarize yourself with Project structure.


Brianna Roby | Developer
Click picture to view project in full.
Click picture to view project in full.
About four months ago I decided I wanted more from my career - plus I really love learning. So, I decided to teach myself how to code. I started with HTML5 and CSS3, then moved on to JavaScript, PHP, Python, and Ruby. And I've never looked back!
My love for code has become almost an obsession, as I practice, read, and learn in every free minute I can get. I am currently enrolled in a Front End Development course through Bellarmine University and CodeLouisville in order to really fine-tune those skills and become the best that I can be. Next I want to dive further into Ruby and PHP, as well as SQL and databases.
Working for a SaaS company (even remotely) has given me the opportunity to work with our Development Team, ask them questions and learn from them. Since I had to go about my learning in an unconventional way, this has been a key to pushing me just a little further.
I live with my partner, Patrick, and son, Landon. We love going to Louisville City FC games and playing FIFA on the weekends. When I'm not coding (which isn't often these days) I love watching, reading about and podcasting about soccer.


Offers functions for the comparison of Gutenberg-Richter b-values. Several functions in GRTo are helpful for the assessment of the quality of seismicity catalogs.
| Version: | 1.3 |
| Depends: | R (≥ 2.2.0) |
| Imports: | bootstrap, grDevices, graphics, stats, utils |
| Published: | 2015-09-18 |
| Author: | Daniel Amorese, Paul A. Rydelek and Jean-Robert Grasso |
| Maintainer: | Daniel C. Amorese <amorese at ipgp.fr> |
| License: | GPL-2 | GPL-3 [expanded from: GPL] |
| NeedsCompilation: | no |
| CRAN checks: | GRTo results |
| Reference manual: | GRTo.pdf |
| Package source: | GRTo_1.3.tar.gz |
| Windows binaries: | r-devel: GRTo_1.3.zip, r-release: GRTo_1.3.zip, r-oldrel: GRTo_1.3.zip |
| OS X binaries: | r-release: GRTo_1.3.tgz, r-oldrel: GRTo_1.3.tgz |
| Old sources: | GRTo archive |
Please use the canonical form https://CRAN.R-project.org/package=GRTo to link to this page.