Lens
Objects
Help
# In the toolbar there are five type of lenses avaiable.
# Drag & Drop the lens to the experiment area to place the lens
# Click on the Object to place the object in experimental area
# You can add upto two lenses , after added two lenses you can replace the lens by dragging the wanted lens near to the existing lens.
# You can Drag the lenses to get ray diagram after adding second lens
# Double click on the lens to remove the lens from the experimental area.
# There are three types of objects are available here Arrow, Triangle and Rectangle


enum Matrix::Architect::Commands::Room::Order
Defined in:
Enum Members
-
JoinedLocalMembers =
0
-
JoinedMembers =
1
-
Name =
2
-
StateEvents =
3
Instance Method Summary
- #joined_local_members?
- #joined_members?
- #name?
- #state_events?
-
#to_s
Returns a
String
representation of this enum member.
Instance Method Detail
def to_s
#
Description copied from struct Enum
Returns a String
representation of this enum member.
In the case of regular enums, this is just the name of the member.
In the case of flag enums, it's the names joined by vertical bars, or "None",
if the value is zero.
If an enum's value doesn't match a member's value, the raw value is returned as a string.
Color::Red.to_s # => "Red"
IOMode::None.to_s # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"
Color.new(10).to_s # => "10"


I smoked Sceletium a few times and I had grown to enjoy the uplifting mood effect of the plant. I found that when smoking it, I felt lighter and happy. Also, I noticed that the following evening I was very energetic and positive, which is interesting because I am normally a very reclusive, shy, and slightly depressed person.
I had previously only smoked small amount, like a pinch in the pipe at a time of a friends supply. When I had finally obtained my own supply I entered into the plant with my usually 'adventurous' attitude. I decided that I would test the boundaries of the plant. I smoked one full bowl, began to feel the effects come on, and then packed another bowl. About half way through the second bowl I began to feel an overwhelming sense of energy and pressure on myself. The feeling I got was very similar to the description of 'serotonin syndrome'. I instinctively put myself into the 'tree' position, attempting to balance out my bodies energies, concentrating my breathing, and I felt better for it. I did not smoke anymore after that.
In either case my experience was very nerve racking.
I have experience DMT, and I know what it feels like to die, that feeling of the soul exiting the body. During my described 'overwhelming pressure' experience, I felt the sensation of my spirit trying (trying... or preparing) to leave my physical body.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


May
30th,
2012
Microsoft released Rollup 3 for Exchange 2010 SP2 yesterday. The rollup contains fixes for the following issues:
- 2510607 “Cannot open the free/busy information” error message when you try to view folder permissions in Outlook
- 2514700 Extra.exe does not trace a single user whose legacyExchangeDN attribute contains one or more special characters in an Exchange Server 2010 environment
- 2571342 The Folder contacts list is empty when a user views the properties of a mail-enabled public folder in an Exchange Server 2010 environment
- 2572029 Synchronization of an organizational forms library fails when you use Outlook in Cache mode in an Exchange Server 2010 environment
- 2586828 The EdgeTransport.exe process consumes 100 percent of CPU resources on an Exchange Server 2010 Edge Transport server
- 2589233 Meeting requests bypass the requirement for delegate approval and instead book resource mailboxes automatically in an Exchange Server 2010 environment
- 2633043 “There were no writeable domain controllers found in Active Directory site” error message when you run the ExBPA tool in an Exchange Server 2010 organization
- 2647396 You cannot disable a public folder by using the “Disable-MailPublicFolder” cmdlet in an Exchange Server 2010 environment
- 2648263 You cannot open routing log files on Exchange Server 2010 Hub Transport servers in a mixed Exchange Server 2003 and Exchange Server 2010 environment
- 2667120 MSExchangeAutodiscoverAppPool application pool crashes on an Exchange Server 2010 Client Access server when you try to view the free/busy information about a user in a trusted domain
- 2668900 Event ID 2915 is logged when you apply a fallback policy to a service account in an Exchange Server 2010 environment
- 2670099 You cannot open calendar folders that are shared by hidden users in an Exchange Server 2010 environment
- 2671128 RPC Client Access Cross-Site connectivity issues occur in an Exchange Server 2010 environment
- 2673542 MRM retention policy in the Junk E-Mail folder does not work when you manually move email messages in an Exchange Server 2010 environment
- 2673591 Crash occurs in the Autodiscover application pool in an Exchange Server 2010 environment
- 2674185 MAPI_E_CALL_FAILED errors occur when a MAPI application that uses the MAPI function in Outlook 2007 MAPI or in Outlook 2010 tries to access an Exchange Server 2010 server
- 2674445 You cannot change the access permissions of a Calendar folder in an Exchange Server 2010 environment
- 2677872 You cannot use a distribution group in the hierarchical address book when you create the group in Exchange Server 2003
- 2681250 “550 5.6.0” NDR when a journal report is sent to an external contact in an Exchange Server 2010 environment
- 2682047 You cannot access a mailbox for several hours after you disconnect and then reconnect the mailbox in an Exchange Server 2010 SP2 environment
- 2682408 AddOrganizerToSubject parameter does not take effect when a recurring meeting conflicts with another meeting in an Exchange Server 2010 environment
- 2682895 Error message when a role assignee runs the Get-MailboxExportRequestStatistics cmdlet in an Exchange Server 2010 environment
- 2684583 You cannot delete an empty folder in a .pst file by using Outlook in an Exchange Server 2010 environment
- 2689810 A meeting request that you send from an EWS application is in plain text format instead of HTML format when an attendee opens the request by using Outlook in online mode
- 2695011 Junk Email settings do not work as expected after you migrate or move a mailbox to an Exchange Server 2010 SP1 Mailbox server
- 2695022 The E-mail Signature text box is not editable in Outlook Web App when you use Google Chrome in an Exchange Server 2010 environment
- 2695836 You cannot move a mailbox in an Exchange Server 2010 environment that has a message size limit configured
- 2696642 An additional line of space is added in each paragraph in an email message when you click the Printable View icon in Outlook Web App in an Exchange Server 2010 environment
- 2698927 Resource mailbox that has AutoAccept configured does not process a meeting request that contains custom code or script in Exchange Server 2010
- 2698960 You cannot move some users’ mailboxes from one Exchange Server 2010 mailbox database to another
- 2698976 Managed Folder Assistant does not process a mailbox that has external contacts in another tenant organization in an Exchange Server 2010 environment
- 2699023 Event ID 9646 is logged on the Exchange Server 2010 mailbox server when you access a mailbox that has more than 250 folders by using an IMAP4 client
- 2699577 GAL-related client-only message rule is not applied in Outlook after you apply RU1 for Exchange Server 2010 SP2 in an Exchange Server 2010 environment
- 2699582 Error message when you play a voice mail by using Outlook 2007 in an Exchange Server 2010 environment
- 2700544 Multiple recovery items are added to a subfolder of the Recoverable Items folder in an Exchange Server 2010 environment
- 2705425 UMWorkerProcess.exe consumes large amounts of memory when you try to listen to voice messages by using Outlook Voice Access in an Exchange Server 2010 environment
- 2705555 The Set-Mailbox cmdlet takes a long time to complete configuration in an Exchange Server 2010 environment
- 2705570 An error occurs when a user whose mailbox is hidden from the Exchange address list tries to open the Scheduling Assistant tab by using the light version of Outlook Web App
- 2705647 A user cannot log on to a mailbox that is full by using Outlook Web App in an Exchange Server 2010 environment
- 2705682 Post-reform spelling rules are not used in the Portuguese (Portugal) dictionary in Outlook Web App in an Exchange Server 2010 environment
- 2706523 You cannot create a mailbox or mail-enable a mailbox for a disabled user account in an Exchange Server 2010 environment
- 2708880 You cannot set the “Country/region” attribute of a user mailbox to “Curaçao,” “Bonaire, Sint Eustatius and Saba,” or “Sint Maarten (Dutch part)” by using the Exchange Management Console on an Exchange Server 2010 server
The rollup can be downloaded from the site below:


|
momentumopt
|
#include <KinematicsOptimizer.hpp>
Public Member Functions | |
| KinematicsOptimizer () | |
| void | initialize (PlannerSetting &planner_setting, KinematicsInterface *kin_interface) |
| function to initialize and configure the optimization More... | |
| void | optimize (const DynamicsState &ini_state, ContactPlanInterface *contact_plan, DynamicsSequence &dyn_sequence, bool is_first_kinopt) |
| function to parse equations and objective into optimization problem and attempt to find a solution More... | |
| KinematicsSequence & | kinematicsSequence () |
| this function gives access to the optimized motion plan More... | |
| const KinematicsSequence & | kinematicsSequence () const |
Private Member Functions | |
| PlannerSetting & | getSetting () |
| helper function to replay a motion More... | |
| const PlannerSetting & | getSetting () const |
| void | initializePostureKinematicVariables () |
| function to initialize optimization variables: type [continuous or binary], guess value [if any], upper and lower bounds for the variable | |
| void | initializeTrajectoryKinematicVariables () |
| void | addVariableToModel (const solver::OptimizationVariable &opt_var, solver::Model &model, std::vector< solver::Var > &vars) |
| function to add each variable to the Model and assign a unique identifier to it, to be used by the optimizer to construct the problem More... | |
| void | saveSolution (solver::OptimizationVariable &opt_var) |
| functions that transfers optimal solution from model to helper class OptimizationVariable, and from helper class OptimizationVariable to dynamics sequence to be accessed by the user More... | |
| void | storeSolution (const DynamicsState &ini_state, DynamicsSequence &dyn_sequence) |
| void | optimizeTrajectory (const DynamicsState &ini_state, DynamicsSequence &dyn_sequence) |
| function that implements iterative inverse kinematics to track momentum, end-effector motions, by a robot with a given joint configuration More... | |
| void | optimizePosture (KinematicsState ¤t_state, const DynamicsState &desired_state, bool is_initial_state=false) |
| void | displayMotion (const DynamicsSequence &dyn_sequence) |
| void | updateEndeffectorTrajectories (DynamicsSequence &dyn_sequence) |
| function to update the tracking endeffector trajectories More... | |
| Eigen::Vector3d | quaternionToRotationVector (const Eigen::Quaternion< double > &q) const |
Private Attributes | |
| PlannerSetting * | planner_setting_ |
| solver::Model | model_ |
| class that stores all information about the problem, interfaces between high level definition of the problem and its corresponding mathematical construction to solve it with a solver instance | |
| solver::LinExpr | lin_cons_ |
| solver::ExitCode | exitcode_ |
| std::vector< solver::Var > | vars_ |
| c++ vector containing all problem variables defined by the user. More... | |
| KinematicsState * | ini_state_ |
| configuration of the robot, including center of mass position, linear and angular momenta, end-effectors configurations: activation, position, orientation, joint configuration: positions, velocities and accelerations, for initial state, current state and desired state | |
| KinematicsState * | current_state_ |
| ContactPlanInterface * | contact_plan_ |
| helper class to store information about the contact plan, such as surfaces, position and orientation of a sequence of contacts | |
| KinematicsSequence | kin_sequence_ |
| kinematics sequence of kinematics states. More... | |
| KinematicsInterface * | kin_interface_ |
| char | variable_type_ |
| int | size_ |
| int | num_vars_ |
| std::array< solver::OptimizationVariable, Problem::n_endeffs_ > | eef_pos_ |
| std::array< solver::OptimizationVariable, Problem::n_endeffs_ > | eef_vel_ |
| std::array< solver::OptimizationVariable, Problem::n_endeffs_ > | eef_ang_vel_ |
| solver::OptimizationVariable | jnt_q_ |
| solver::OptimizationVariable | jnt_qd_ |
| solver::OptimizationVariable | jnt_qdd_ |
| solver::OptimizationVariable | total_qd_ |
| solver::OptimizationVariable | total_qdd_ |
| solver::OptimizationVariable | com_ |
| solver::OptimizationVariable | comd_ |
| solver::OptimizationVariable | lmom_ |
| solver::OptimizationVariable | amom_ |
| solver::OptimizationVariable | base_position_ |
| solver::OptimizationVariable | base_ang_vel_ |
| solver::OptimizationVariable | slack_vars_ |
| solver::OptimizationVariable::OptVector | solution_ |
| solver::OptimizationVariable::OptMatrix | mat_guess_ |
| solver::OptimizationVariable::OptMatrix | mat_lb_ |
| solver::OptimizationVariable::OptMatrix | mat_ub_ |
| std::array< Eigen::Vector3d, Problem::n_endeffs_ > | desired_eff_velocity_ |
| Eigen::Vector3d | desired_com_velocity_ |
| Eigen::Vector3d | desired_lmom_velocity_ |
| Eigen::Vector3d | desired_amom_velocity_ |
main class of the kinematic optimization problem
|
inline |
default class constructor and destructor
|
private |
function to add each variable to the Model and assign a unique identifier to it, to be used by the optimizer to construct the problem
| [in] | opt_var | helper optimization variable for model predictive control |
| [in] | model | instance of solver interface to collect constraints, objective and solve problem |
| [in] | vars | vector of optimization variables |
|
private |
helper function to display a kinematic motion
|
inlineprivate |
helper function to replay a motion
| [in] | PlannerSetting | setting of planner configuration variables |
| [in] | kin_interface | implementation of robot specific functions needed by the optimizer |
| [in] | load_file | file where the kinematic parameters have been stored function to load a kinematic solution from a file and fill a sequence with it |
| [in] | load_file | name of configuration file from where to load the solution |
Getter and setter methods for getting the planner variables
| void momentumopt::KinematicsOptimizer::initialize | ( | PlannerSetting & | planner_setting, |
| KinematicsInterface * | kin_interface | ||
| ) |
function to initialize and configure the optimization
| [in] | PlannerSetting | setting of planner configuration variables |
| [in] | kin_interface | implementation of robot specific functions needed by the optimizer |
|
inline |
this function gives access to the optimized motion plan
| void momentumopt::KinematicsOptimizer::optimize | ( | const DynamicsState & | ini_state, |
| ContactPlanInterface * | contact_plan, | ||
| DynamicsSequence & | dyn_sequence, | ||
| bool | is_first_kinopt | ||
| ) |
function to parse equations and objective into optimization problem and attempt to find a solution
| [in] | ini_state | initial state of the robot |
| [in] | contact_plan | container of contact sequence to be used for dynamics planning |
| [in] | dyn_sequence | dynamics sequence to be used as momentum tracking reference |
|
private |
function that implements iterative inverse kinematics to track momentum, end-effector motions, by a robot with a given joint configuration
|
private |
functions that transfers optimal solution from model to helper class OptimizationVariable, and from helper class OptimizationVariable to dynamics sequence to be accessed by the user
| [in] | opt_var | helper optimization variable for model predictive control |
|
private |
function to update the tracking endeffector trajectories
| [in] | dyn_sequence | dynamics sequence to be used as momentum tracking reference |
|
private |
helper optimization variables for the optimization problem
|
private |
exit code of the optimization problem
|
private |
implementation of robot specific functions needed by the optimizer
|
private |
kinematics sequence of kinematics states.
This is the main interface between the user and the planner. The user can find in this variable all the optimization results coming from the kinematics optimizer
|
private |
helper variables to construct linear and quadratic expressions
|
private |
Variables required for optimization
|
private |
helper integer variables for the optimization problem
|
private |
helper matrices and vectors for the optimization problem
|
private |
type for optimization variable: continuous 'C' or binary 'B'
|
private |
c++ vector containing all problem variables defined by the user.
Does not include extra variables required to write the problem in standard conic form.


There are three versions of awk whose source code is freely available. They are the Bell Labs awk, GNU awk, and mawk, by Michael Brennan. This section discusses the extensions that are common to two or more of them, and then looks at each version in detail and describes how to obtain it.
This section discusses extensions to the awk language that are available in two or more of the freely available awks.[2]
[2] As the maintainer of gawk and the author of many of the extensions described here and in the section below on gawk, my opinion about the usefulness of these extensions may be biased. :-) You should make your own evaluation. [A.R.]
All three free awks extend the delete statement, making it possible to delete all the elements of an array at one time. The syntax is:
delete
array
Normally, to delete every element from an array, you have to use a loop, like this.
for (i in data) delete data[i]
With the extended version of the delete statement, you can simply use
delete data
This is particularly useful for arrays with lots of subscripts; this version is considerably faster than the one using a loop.
Even though it no longer has any elements, you cannot use the array name as a simple variable. Once an array, always an array.
This extension appeared first in gawk, then in mawk and the Bell Labs awk.
All three awks extend field splitting and array splitting as follows. If the value of FS is the empty string, then each character of the input record becomes a separate field. This greatly simplifies cases where it's necessary to work with individual characters.
Similarly, if the third argument to the split() function is the empty string, each character in the original string will become a separate element of the target array.
Without these extensions, you have to use repeated calls to the substr() function to obtain individual characters.
This extension appeared first in mawk, then in gawk and the Bell Labs awk.
The 1993 version of the Bell Labs awk introduced a new function that is not in the POSIX standard, fflush(). Like close(), the argument to fflush() is the name of an open file or pipe. Unlike close(), the fflush() function only works on output files and pipes.
Most programs buffer their output, storing data to be written to a file or pipe in an internal chunk of memory until there's enough to send on to the destination. Occasionally, it's useful for the programmer to be able to explicitly flush the buffer, that is, force all buffered data to actually be delivered. This is the purpose of the fflush() function.
This function appeared first in the Bell Labs awk, then in gawk and mawk.
With any version of awk, you can write directly to the special UNIX file, /dev/tty, that is a name for the user's terminal. This can be used to direct prompts or messages to the user's attention when the output of the program is directed to a file:
printf "Enter your name:" >"/dev/tty"
This prints "Enter your name:" directly on the terminal, no matter where the standard output and the standard error are directed.
The three free awks support several special filenames, as listed in Table 11.4.
| Filename | Description |
|---|---|
| /dev/stdin | Standard input (not mawk)[3] |
| /dev/stdout | Standard output |
| /dev/stderr | Standard error |
[3] The mawk manpage recommends using "-" for the standard input, which is most portable.
Note that a special filename, like any filename, must be quoted when specified as a string constant.
The /dev/stdin, /dev/stdout, and /dev/stderr special files originated in V8 UNIX. Gawk was the first to build in special recognition of these files, followed by mawk and the Bell Labs awk.
The nextfile statement is similar to next, but it operates at a higher level. When nextfile is executed, the current data file is abandoned, and processing starts over at the top of the script, using the first record of the following file. This is useful when you know that you only need to process part of a file; there's no need to then set up a loop to skip records using next.
The nextfile statement originated in gawk, and then was added to the Bell Labs awk. It will be available in mawk, starting with version 1.4.
Gawk and mawk allow RS to be a full regular expression, not just a single character. In that case, the records are separated by the longest text in the input that matches the regular expression. Gawk also sets RT (the record terminator) to the actual input text that matched RS. An example of this is given below.
The ability to have RS be a regular expression first appeared in mawk, and was later added to gawk.
The Bell Labs awk is, of course, the direct descendant of the original V7 awk, and of the "new" awk that first became avaliable with System V Release 3.1. Source code is freely available via anonymous FTP to the host netlib.bell-labs.com. It is in the file /netlib/research/awk.bundle.Z. This is a compressed shell archive file. Be sure to use "binary," or "image" mode to transfer the file. This version of awk requires an ANSI C compiler.
There have been several distinct versions; we will identify them here according to the year they became available.
The first version of new awk became available in late 1987. It had almost everything we've described in the previous four chapters (although there are footnotes that indicate those things that are not available). This version is still in use on SunOS 4.1.x systems and some System V Release 3 UNIX systems.
In 1989, for System V Release 4, several new things were added. The only difference between this version and POSIX awk is that POSIX uses CONVFMT for number-to-string conversions, while the 1989 version still used OFMT. The new features were:
Escape characters in command-line assignments were now interpreted.
The tolower() and toupper() functions were added.
printf was improved: dynamic width and precision were added, and the behavior for "%c" was rationalized.
The return value from the srand() function was defined to be the previous seed. (The awk book didn't state what srand() returned.)
It became possible to use regular expressions as simple expressions. For example:
if (/cute/ || /sweet/) print "potential here!"
The -v option was added to allow setting variables on the command line before execution of the BEGIN procedure.
Multiple -f options could now be used to have multiple source files. (This originated in MKS awk, was adopted by gawk, and then added to the Bell Labs awk.)
The ENVIRON array was added. (This was developed independently for both MKS awk and gawk, and then added to the Bell Labs awk.)
In 1993, Brian Kernighan of Bell Labs was able to release the source code to his awk. At this point, CONVFMT became available, and the fflush() function, described above, was added. A bug-fix release was made in August of 1994.
In June of 1996, Brian Kernighan made another release. It can be retrieved either from the FTP site given above, or via a World Wide Web browser from Dr. Kernighan's Web page (http://cm.bell-labs.com/who/bwk), which refers to this version as "the one true awk." :-) This version adds several features that originated in gawk and mawk, described earlier in this chapter in the "Common Extensions" section.
The Free Software Foundation GNU project's version of awk, gawk, implements all the features of the POSIX awk, and many more. It is perhaps the most popular of the freely available implementations; gawk is used on Linux systems, as well as various other freely available UNIX-like systems, such as NetBSD and FreeBSD.
Source code for gawk is available via anonymous FTP[4] to the host ftp.gnu.ai.mit.edu. It is in the file /pub/gnu/gawk-3.0.3.tar.gz (there may be a later version there by the time you read this). This is a tar file compressed with the gzip program, whose source code is available in the same directory. There are many sites worldwide that "mirror" the files from the main GNU distribution site; if you know of one close to you, you should get the files from there. Be sure to use "binary" or "image" mode to transfer the file(s).
[4] If you don't have Internet access and wish to get a copy of gawk, contact the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 U.S.A. The telephone number is<PHONE_NUMBER>, and the fax number is<PHONE_NUMBER>.
Besides the common extensions listed earlier, gawk has a number of additional features. We examine them in this section.
Gawk has several very useful command-line options. Like most GNU programs, these options are spelled out and begin with two dashes, "--".
--lint and --lint-old cause gawk to check your program, both at parse-time and at run-time, for constructs that are dubious or nonportable to other versions of awk. The --lint-old option warns about function calls that are not portable to the original version of awk. It is separate from --lint, since most systems now have some version of new awk.
--traditional disables GNU-specific extensions, such as the time functions and gensub() (see below). With this option, gawk is intended to behave the same as the Bell Labs awk.
--re-interval enables full POSIX regular expression matching, by allowing gawk to recognize interval expressions (such as "/stuff{1,3}/").
--posix disables all extensions that are not specified in the POSIX standard. This option also turns on recognition of interval expressions.
There are a number of other options that are less important for everyday programming and script portability; see the gawk documentation for details.
Although POSIX awk allows you to have multiple instances of the -f option, there is no easy way to use library functions from a command-line program. The --source option in gawk makes this possible.
gawk --source 'script
' -f mylibs.awk file1 file2
This example runs the program in script, which can use awk functions from the file mylibs.awk. The input data comes from file1 and file2.
Gawk allows you to specify an environment variable named AWKPATH that defines a search path for awk program files. By default, it is defined to be .:/usr/local/share/awk. Thus, when a filename is specified with the -f option, the two default directories will be searched, beginning with the current directory. Note that if the filename contains a "/", then no search is performed.
For example, if mylibs.awk was a file of awk functions in /usr/local/share/awk, and myprog.awk was a program in the current directory, we run gawk like this:
gawk -f myprog.awk -f mylibs.awk datafile1
Gawk would find each file in the appropriate place. This makes it much easier to have and use awk library functions.
Gawk allows you to break lines after either a "?" or ":". You can also continue strings across newlines using a backslash.
$gawk 'BEGIN { print "hello, \
>world" }'
hello, world
Gawk provides several additional regular expression operators. These are common to most GNU programs that work with regular expressions. The extended operators are listed in Table 11.5.
Special Operators | Usage |
|---|---|
\w | Matches any word-constituent character (a letter, digit, or underscore). |
\W | |
\< | |
\> | Matches the empty string at the end of a word. |
\y | Matches the empty string at either the beginning or end of a word (the word boundary). Other GNU software uses "\b", but that was already taken. |
\B | |
\` | Matches the empty string at the beginning of a buffer. This is the same as a string in awk, and thus is the same as ^. It is provided for compatibility with GNU Emacs and other GNU software. |
\' | Matches the empty string at the end of a buffer. This is the same as a string in awk, and thus is the same as $. It is provided for compatibility with GNU Emacs and other GNU software. |
You can think of "\w" as a shorthand for the (POSIX) notation [[:alnum:]_] and "\W" as a shorthand for [^[:alnum:]_]. The following table gives examples of what the middle four operators match, borrowed from Effective AWK Programming.
| Expression | Matches | Does Not Match |
|---|---|---|
| \<away | away | stowaway |
| stow\> | stow | stowaway |
| \yballs?\y | ball or balls | ballroom or baseball |
| \Brat\B | crate | dirty rat |
Besides allowing RS to be a regular expression, gawk sets the variable RT (record terminator) to the actual input text that matched the value of RS.
Here is a simple example, due to Michael Brennan, that shows the power of gawk's RS and RT variables. As we have seen, one of the most common uses of sed is its substitute command (s/old/new/g). By setting RS to the pattern to match, and ORS to the replacement text, a simple print statement can print the unchanged text followed by the replacement text.
$cat simplesed.awk
# simplesed.awk --- do s/old/new/g using just print # Thanks to Michael Brennan for the idea # # NOTE! RS and ORS must be set on the command line { if (RT == "") printf "%s", $0 else print }
There is one wrinkle; at end of file, RT will be empty, so we use a printf statement to print the record.[5] We could run the program like this.
[5] See Effective AWK Programming [Robbins], Section 16.2.8, for an elaborate version of this program.
$cat simplesed.data
"This OLD house" is a great show. I like shopping for old things at garage sales. $gawk -f simplesed.awk RS="old|OLD" ORS="brand new" simplesed.data
"This brand new house" is a great show. I like shopping for brand new things at garage sales.
Besides the regular way that awk lets you split the input into records and the record into fields, gawk gives you some additional capabilities.
First, as mentioned above, if the value of FS is the empty string, then each character of the input record becomes a separate field.
Second, the special variable FIELDWIDTHS can be used to split out data that occurs in fixed-width columns. Such data may or may not have whitespace separating the values of the fields.
FIELDWIDTHS = "5 6 8 3"
Here, the record has four fields: $1 is five characters wide, $2 is six characters wide, and so on. Assigning a value to FIELDWIDTHS causes gawk to start using it for field splitting. Assigning a value to FS causes gawk to return to the regular field splitting mechanism. Use FS = FS to make this happen without having to save the value of FS in an extra variable.
This facility would be of most use when working with fixed-width field data, where there may not be any whitespace separating fields, or when intermediate fields may be all blank.
Gawk has a number of additional special filenames that it interprets internally. All of the special filenames are listed in Table 11.7.
| Filename | Description |
|---|---|
| /dev/stdin | Standard input. |
| /dev/stdout | Standard output. |
| /dev/stderr | Standard error. |
/dev/fd/n | The file referenced as file descriptor n. |
| Obsolete Filename | Description |
| /dev/pid | Returns a record containing the process ID number. |
| /dev/ppid | Returns a record containing the parent process ID number. |
| /dev/pgrpid | Returns a record containing the process group ID number. |
| /dev/user | Returns a record with the real and effective user IDs, the real and effective group IDs, and if available, any secondary group IDs. |
The first three were described earlier. The fourth filename provides access to any open file descriptor that may have been inherited from gawk's parent process (usually the shell). You can use file descriptor 0 for standard input, 1 for standard output, and 2 for standard error.
The second group of special files, labeled "obsolete," have been in gawk for a while, but are being phased out. They will be replaced by a PROCINFO array, whose subscipts are the desired item and whose element value is the associated value.
For example, you would use PROCINFO["pid"] to get the current process ID, instead of using getline pid < "/dev/pid". Check the gawk documentation to see if PROCINFO is available and if these filenames are still supported.
Gawk has several more system variables. They are listed in Table 11.8.
| Variable | Description |
|---|---|
| ARGIND | The index in ARGV of the current input file. |
| ERRNO | A message describing the error if getline or close() fail. |
| FIELDWIDTHS | A space-separated list of numbers describing the widths of the input fields. |
| IGNORECASE | If non-zero, pattern matches and string comparisons are case-independent. |
| RT | The value of the input text that matched RS. |
We have already seen the record terminator variable, RT, so we'll proceed to the other variables that we haven't covered yet.
All pattern matching and string comparison in awk is case sensitive. Gawk introduced the IGNORECASE variable so that you can specify that regular expressions be interpreted without regard for upper- or lowercase characters. Beginning with version 3.0 of gawk, string comparisons can also be done without case sensitivity.
The default value of IGNORECASE is zero, which means that pattern matching and string comparison are performed the same as in traditional awk. If IGNORECASE is set to a non-zero value, then case distinctions are ignored. This applies to all places where regular expressions are used, including the field separator FS, the record separator RS, and all string comparisons. It does not apply to array subscripting.
Two more gawk variables are of interest. ARGIND is set automatically by gawk to be the index in ARGV of the current input file name. This variable gives you a way to track how far along you are in the list of filenames.
Finally, if an error occurs doing a redirection for getline or during a close(), gawk sets ERRNO to a string describing the error. This makes it possible to provide descriptive error messages when something goes wrong.
Gawk has one additional string function, and two functions for dealing with the current date and time. They are listed in Table 11.9.
| Gawk Function | Description |
|---|---|
gensub(r, s, h, t) | If h is a string starting with g or G, globally substitutes s for r in t. Otherwise, h is a number: substitutes for the h'th occurrence. Returns the new value, t is unchanged. If t is not supplied, defaults to $0. |
systime() | Returns the current time of day in seconds since the Epoch (00:00 a.m., January 1, 1970 UTC). |
strftime(format, timestamp) | Formats timestamp (of the same form returned by systime()) according to format. If no timestamp, use current time. If no format either, use a default format whose output is similar to the date command. |
The 3.0 version of gawk introduced a new general substitution function, named gensub(). The sub() and gsub() functions have some problems.
You can change either the first occurrence of a pattern or all the occurrences of a pattern. There is no way to change, say, only the third occurrence of a pattern but not the ones before it or after it.
Both sub() and gsub() change the actual target string, which may be undesirable.
It is impossible to get sub() and gsub() to emit a literal backslash followed by the matched text, because an ampersand preceded by a backslash is never replaced.[6]
[6] A full discussion is given in Effective AWK Programming [Robbins], Section 12.3. The details are not for the faint of heart.
There is no way to get at parts of the matched text, analogous to the \(...\) construct in sed.
For all these reasons, gawk introduced the gensub() function. The function takes at least three arguments. The first is a regular expression to search for. The second is the replacement string. The third is a flag that controls how many substitutions should be performed. The fourth argument, if present, is the original string to change. If it is not provided, the current input record ($0) is used.
The pattern can have subpatterns delimited by parentheses. For example, it can have "/(part) (one|two|three)/". Within the replacement string, a backslash followed by a digit represents the text that matched the nth subpattern.
$echo part two | gawk '{ print gensub(/(part) (one|two|three)/, "\\2", "g") }'
two
The flag is either a string beginning with g or G, in which case the substitution happens globally, or it is a number indicating that the nth occurrence should be replaced.
$echo a b c a b c a b c | gawk '{ print gensub(/a/, "AA", 2) }'
a b c AA b c a b c
The fourth argument is the string in which to make the change. Unlike sub() and gsub(), the target string is not changed. Instead, the new string is the return value from gensub().
$gawk ' BEGIN { old = "hello, world" new = gensub(/hello/, "goodbye", 1, old) printf("<%s>, <%s>\n", old, new) }'
<hello, world>, <goodbye, world>
Awk programs are very often used for processing the log files produced by various programs. Often, each record in a log file contains a timestamp, indicating when the record was produced. For both conciseness and precision, the timestamp is written as the result of the UNIX time(2) system call, which is the number of seconds since midnight, January 1, 1970 UTC. (This date is often referred to as "the Epoch.") To make it easier to generate and process log file records with these kinds of timestamps in them, gawk has two functions, systime() and strftime().
The systime() function is primarily intended for generating timestamps to go into log records. Suppose, for example, that we use an awk script to respond to CGI queries to our WWW server. We might log each query to a log file.
{ ... printf("%s:%s:%d\n", User, Host, systime()) >> "/var/log/cgi/querylog" ... }
Such a record might look like
arnold:some.domain.com:831322007
The strftime() function[7] makes it easy to turn timestamps into human-readable dates. The format string is similar to the one used by sprintf(); it consists of literal text mixed with format specifications for different components of date and time.
[7] This function is patterned after the function of the same name in ANSI C.
$gawk 'BEGIN { print strftime("Today is %A, %B %d, %Y") }'
Today is Sunday, May 05, 1996
The list of available formats is quite long. See your local strftime(3) manpage, and the gawk documentation for the full list. Our hypothetical CGI log file might be processed by this program:
# cgiformat --- process CGI logs # data format is user:host:timestamp #1 BEGIN { FS = ":"; SUBSEP = "@" } #2 { # make data more obvious user = $1; host = $2; time = $3 # store first contact by this user if (! ((user, host) in first)) first[user, host] = time # count contacts count[user, host]++ # save last contact last[user, host] = time } #3 END { # print the results for (contact in count) { i = strftime("%y-%m-%d %H:%M", first[contact]) j = strftime("%y-%m-%d %H:%M", last[contact]) printf "%s -> %d times between %s and %s\n", contact, count[contact], i, j } }
The first step is to set FS to ":" to split the field correctly. We also use a neat trick and set the subscript separator to "@", so that the arrays become indexed by "user@host" strings.
In the second step, we look to see if this is the first time we've seen this user. If so (they're not in the first array), we add them. Then we increment the count of how many times they've connected. Finally we store this record's timestamp in the last array. This element keeps getting overwritten each time we see a new connection by the user. That's OK; what we will end up with is the last (most recent) connection stored in the array.
The END procedure formats the data for us. It loops through the count array, formatting the timestamps in the first and last arrays for printing. Consider a log file with the following records in it.
$cat /var/log/cgi/querylog
arnold:some.domain.com:831322007 mary:another.domain.org:831312546 arnold:some.domain.com:831327215 mary:another.domain.org:831346231 arnold:some.domain.com:831324598
Here's what running the program produces:
$gawk -f cgiformat.awk /var/log/cgi/querylog
<EMAIL_ADDRESS>-> 2 times between 96-05-05 12:09 and 96-05-05 21:30<EMAIL_ADDRESS>-> 3 times between 96-05-05 14:46 and 96-05-05 15:29
The third freely available awk is mawk, written by Michael Brennan. This program is upwardly compatible with POSIX awk, and has a few extensions as well. It is solid and performs very well. Source code for mawk is freely available via anonymous FTP from ftp.whidbey.net. It is in /pub/brennan/mawk1.3.3.tar.gz. (There may be a later version there by the time you read this.) This is also a tar file compressed with the gzip program. Be sure to use "binary," or "image" mode to transfer the file.
Mawk's primary advantages are its speed and robustness. Although it has fewer features than gawk, it almost always outperforms it.[8] Besides UNIX systems, mawk also runs under MS-DOS.
[8] Gawk's advantages are that it has a larger feature set, it has been ported to more non-UNIX kinds of systems, and it comes with much more extensive documentation.
The common extensions described above are also available in mawk.


Amazing what a few words and brackets can make
About Me
I am learning how to master HTML and CSS currently, but I will soon be learning how to us javascript next week! Once I have built a few projects, I will update my portfolio so that everyone can see my work.


{% extends "base.html" %} {% load i18n %} {% block content %}
A website, where you can post a library catalogue of your paper books, browse through libraries of others and borrow their books. The system tries to be as simple as possible with one-click solution wherever possible.


All Regions
Argentina
Australia
Austria
Belgium (fr)
Belgium (nl)
Brazil
Bulgaria
Canada
Canada (fr)
Catalonia
Chile
China
Colombia
Croatia
Czech Republic
Denmark
Estonia
Finland
France
Germany
Greece
Hong Kong
Hungary
India
Indonesia
Indonesia (en)
Ireland
Israel
Italy
Japan
Korea
Latvia
Lithuania
Malaysia
Malaysia (en)
Mexico
Netherlands
New Zealand
Norway
Peru
Philippines
Poland
Portugal
Romania
Russia
Saudi Arabia
Singapore
Slovakia
Slovenia
South Africa
Spain
Spain (ca)
Sweden
Switzerland (de)
Switzerland (fr)
Switzerland (it)
Taiwan
Thailand
Turkey
US (English)
US (Spanish)
United Kingdom
Vietnam
Any Time
Past Day
Past Week
Past Month
Past Year
How to format SQL
tables
in
a Stack Overflow post? [duplicate]
meta.stackexchange.com/questions/96125/how-to-format-sql-tables-in-a-stack-overflow-post
I want to format an SQL
table
the right way in a Stack Overflow question. possible duplicate of best way to include
table
(of data) in a question or meta.
stackexchange
.com/questions/5255/… - fretje If you have a lot of data, you can format it using that app in the link above to create an HTML snippet.
Newest Questions - Mathematics Meta
Stack
Exchange
math.meta.stackexchange.com/questions
Out of habit I
write
"Hi!" at the beginning of my questions and I noticed it got automatically removed, and then when I edited to add it back
in
, it got automatically removed again. Can you have same Legendary Creature on the battlefield twice utilizing the Mutate ability?
Mathematics Meta
Stack
Exchange
math.meta.stackexchange.com
Did Putin really
write
his recent article for The National Interest, written in English, on his own? In the Battle of the Coral Sea, how could two Japanese scouts grossly mis-identify two American ships? Important (but not too well known) inequalities.
How can I put a
table
here? - Mathematics Meta
Stack
Exchange
math.meta.stackexchange.com/questions/6734/how-can-i-put-a-table-here
$\begingroup$ meta.math.
stackexchange
.com/questions/4240 A "cheats" method is to
write
it in LaTeX locally, and include the .pdf in your post as an image. How do I insert a
table
when asking a question?
Can
we add Markdown support for
tables
? - Meta
Stack
Exchange
meta.stackexchange.com/questions/138946/can-we-add-markdown-support-for-tables
I am asking for a specific implementation of Markdown
tables
. I found an article on making
tables
in
Markdown using PHP Markdown or MultiMarkdown. In
sites
where snippets are enabled, you can create code that renders the
table
. Just
write
it down by hand if you know how or use an online
table
...
Can
you
host the
stackexchange
software yourself to create a
site
?
meta.stackexchange.com/questions/70970/can-you-host-the-stackexchange-software-yourself-to-create-a-site
I was wondering if I could create my own
site
using the software behind
stackexchange
and link back or retain some
stackexchange
branding so people know what the
site
is using? You can't buy the code anymore. But there are some clones that are open source. Or you can
write
your own.
Ways to make a
table
in
a question? - Mathematics Meta Stack...
math.meta.stackexchange.com/questions/26494/ways-to-make-a-table-in-a-question
What kind of
table
can
be produced here? (I mean with or without borders, shading, etc.) Can you paste some tex code in answer, that would contain various
table
(s)? $\begingroup$ @Arthur :Thank you first ,but I want to ask a question with some
table
in
math.stack .
Can
we start cleaning up [
table
] tag and burninate it ASAP [closed]
meta.stackexchange.com/questions/198024/can-we-start-cleaning-up-table-tag-and-burninate-it-asap
@Robert How can you be an expert on "
tables
" when the term "
tables
" covers so many different Still others are are about reading or writing an html
table
or database
table
in
R. Certainly many of 301. The future of meta.stackoverflow and meta.
stackexchange
. 9. Burninate the [between] tag?
FAQ for math.
stackexchange
- Mathematics Meta
Stack
Exchange
math.meta.stackexchange.com/questions/107/faq-for-math-stackexchange
You
can
find more information about using MathJax, for example, here, here, here and here. If you have detailed questions about TeX or LaTeX, this is not A: The things in between the dollar signs are math formulas written using the TeX markup language. On this
site
, such text should be automatically...
Stackexchange
, Can't log
in
? - Meta
Stack
Exchange
meta.stackexchange.com/questions/212574/stackexchange-cant-log-in
(I was writing a question in english.
stackexchange
, I couldn't post it cause I can't seem to log in no matter what).... I can't log into anything now unless I create a new account!
Newest
'stackexchange
.com' Questions - Meta
Stack
Exchange
meta.stackexchange.com/questions/tagged/stackexchange.com
stackexchange
.com provides a way to monitor activity across multiple
sites
in
the
Stack
Exchange
network using customizable filters. In a
StackExchange
.com profile, you can directly link to a tab like Favorites just fine. But when you try to link to the votes subtab under that, it doesn't look right because...
FAQ for
Stack
Exchange
sites
- Meta
Stack
Exchange
meta.stackexchange.com/questions/7931/faq-for-stack-exchange-sites
If you still can't find an answer, then see the following instructions for proposing an FAQ question. Any FAQ post not yet community wiki should be made into a community wiki. After the post has the faq tag added to it, add a link in the above
table
of contents.
How can I query for
StackExchange
.* databases on the Data SE?
meta.stackexchange.com/questions/292994/how-can-i-query-for-stackexchange-databases-on-the-data-se
How can I query, for example, from
tables
in
the Physics SE? I've got the list of the database names with a SELECT * FROM sysdatabases, but I couldn't go further. Any tries to name them as
StackExchange
.dbo.devops.users,
StackExchange
.devops.dbo.users and similar were all...
how to provide content page (wiki style) for long answers
in
...
meta.stackexchange.com/questions/240592/how-to-provide-content-page-wiki-style-for-long-answers-in-stackexchange
How can I do it here? A simple example would be nice. Related: meta.
stackexchange
.com/questions/37894/… (having this would help writing answer There is no feature directly comparable to the auto-generated
Tables
of Contents found on, for example, Wikipedia.
Updating the FAQ for a
StackExchange
site
- Meta
Stack
Exchange
meta.stackexchange.com/questions/61996/updating-the-faq-for-a-stackexchange-site
Will moderators be able to update the FAQ page for a given
stackexchange
site
? We have discussed many changes on meta.stats.
stackexchange
.com and would like to implement them as there is some lingering confusion over the
site's
scope and usage.
Can't log in to chat on
stackexchange
- Meta
Stack
Exchange
meta.stackexchange.com/questions/108439/cant-log-in-to-chat-on-stackexchange
Logging in to StackOverflow, English.
Stackexchange
.com,
stackexchange
.com, superuser.com. I can get into the Stackoverflow chat with no problem but the
stackexchange
chat doesn't work for me. And I haven't changed anything in my browsers lately but this is a new problem for me.
Order of all
sites
in
StackExchange
menu - Meta
Stack
Exchange
meta.stackexchange.com/questions/92397/order-of-all-sites-in-stackexchange-menu
To get to parenting.
stackexchange
.com, I
can
: open the
StackExchange
™ MultiCollider SuperDropdown™. click on the all
sites
tab. The
StackExchange
™ MultiCollider SuperDropdown™ name needs to be shortened so i don't copy and paste this every time - user393619 Jun 28 '18 at 19...
OpenID logins broken for all
StackExchange
1.0
sites
(including...)
meta.stackexchange.com/questions/70218/openid-logins-broken-for-all-stackexchange-1-0-sites-including-meta-stackexchan
I can repro this on multiple OpenID providers-- looks like it's a
StackExchange
problem, not a provider-specific one. It also occurs on all
StackExchange
1.0
sites
(including Fog Creek's own support
sites
for FogBugz and Kiln) so it's not specific to any particular Order of all
sites
in
StackExchange
menu.
Why is my
StackExchange
OpenID so hard to find? [closed]
meta.stackexchange.com/questions/221048/why-is-my-stackexchange-openid-so-hard-to-find
Anybody can answer. The best answers are voted up and rise to the top. As a result, I was looking for my
StackExchange
OpenID URL, and only found it listed in my data.SE profile. It would be nice it if was shown to me on all my profiles, especially since data.SE has different session handling.
Table
in
Answers & Questions - Meta
Stack
Exchange
meta.stackexchange.com/questions/97127/table-in-answers-questions
Table
in
Answers & Questions [duplicate]. Ask Question. Your answer is here: webapps.
stackexchange
.com/questions/6700/… first answer links to a website that will do this for
you
. - user1228 Jul 1 '11 at 13:42. You can use Unicode characters.
Which tools and technologies are used to build the
Stack
Exchange...
meta.stackexchange.com/questions/10369/which-tools-and-technologies-are-used-to-build-the-stack-exchange-network
Anybody can answer. The best answers are voted up and rise to the top. Can I ask how on earth the SO team managed to update the
site
to user Razor so quickly? Did they actually port older aspx views into razor or are legacy pages running with razor side-by-side? - gideon Apr 2 '11 at 9:50.
Newest
'stackexchange
-tour' Questions - Meta
Stack
Exchange
meta.stackexchange.com/questions/tagged/stackexchange-tour
On
stackexchange
.com/tour the sample question is very unscholarly and hypothetical. Can I
write
a referee report too fast? How did malware spreading through PIF files work? Can the shove from the Minotaur race's Hammering Horns trait knock an enemy prone?
How can I find all the
StackExchange
websites that I'm part of?
meta.stackexchange.com/questions/324806/how-can-i-find-all-the-stackexchange-websites-that-im-part-of-queries-on-dat
I assume you can get from there how many
sites
you
don't have an account on. declare @sql nvarchar(max). create
table
#result
(site
sysname I have registered in 120
StackExchange
sites
. But this only shows 11
sites
...? Maybe I'm doing something wrong?
How to input matrices when posting questions at Math
StackExchange
?
math.meta.stackexchange.com/questions/12777/how-to-input-matrices-when-posting-questions-at-math-stackexchange
21. How do I insert a
table
when asking a question? What can happen if you violate a cease and desist letter? The importance of a correct interpretation of a confidence interval. Fauna evolved to use portals.
Let new users of
StackExchange
sites
read the FAQ - Meta Stack...
meta.stackexchange.com/questions/63241/let-new-users-of-stackexchange-sites-read-the-faq
Insert/Update/Delete
table
from another
table
changes in PostGIS. Put text anywhere at the document. What happens if you're frightened of a hidden or invisible creature? Can I
write
a referee report too fast? What does it take to short a battery. Shuffle string of digits.
How do I add code while writing comments? - Meta
Stack
Exchange
meta.stackexchange.com/questions/74784/how-do-i-add-code-while-writing-comments
wait, so you can't
write
code in comments with more than 1 line? - Charlie Parker Jun 20 '16 at 19:32. @CharlieParker - Unfortunately, that's correct. You can't put newlines in a comment codeblock, but you can do inline code by using the backtick character.
StackExchange
cross-
site
signup: login with
StackExchange
...
meta.stackexchange.com/questions/202503/stackexchange-cross-site-signup-login-with-stackexchange-doesnt-work/202504
Every time I go to a new
StackExchange
site
, I think that (because I'm a SO member) I should use the "login with
StackExchange
" option. You should probably understand there's a reason you can't sign in with your
Stack
Exchange
account: your credentials are with some other service you signed up with...
Why does
StackExchange
itself login my OpenID account at...
meta.stackexchange.com/questions/229899/why-does-stackexchange-itself-login-my-openid-account-at-stackexchange
StackExchange
OpenID provider not returning the email. 2. Unable to add
Stack
Exchange
login or reduce spacing between two consecutive
tables
in
latex paper. What is the proper way to use early What determines whether colors you can't see are visible or not? Why there are mountains in the...
Please provide a Moderators
table
in
the Data Explorer - Meta Stack...
meta.stackexchange.com/questions/115620/please-provide-a-moderators-table-in-the-data-explorer
meta.
stackexchange
.com/a/291587\n'; q += 'CREATE
TABLE
#Diamonds (AccountId int, UserId int, IsEmployee bit, CreationDate datetime, DisplayName You can sort of supplement this list on some
sites
by also examining PostHistory to look for users who have made edits that are neither suggested...
Best
StackExchange
Website for Programming Question - Meta Stack...
meta.stackexchange.com/questions/180036/best-stackexchange-website-for-programming-question
Anybody can answer. The best answers are voted up and rise to the top. Are your questions about program design, before you have started writing code? You are still at the whiteboard stage and then Programmers is the place to ask.
Feedback


BETA
This is a new service – your
feedback will help us to improve it.
Welcome jim,
Casterbridge College
UKPRN:12345678
Step 1 of 2
You are about to agree and sign your contract.
PDF, 82KB
This file may not be suitable for users of assistive technology.
Request a different format.
If you use assistive technology and need a version of this document
in a more accessible format, please email
<EMAIL_ADDRESS>Please tell us what format you need. It will help us if you say what assistive technology you use.
ESF SSW Retraining for Employment contract for Cornwall and the Isles of Scilly LEP version 1
Sign by: 4:00pm 05 May 2016
The PDF contains:
- a covering letter from the SFA
- the contract and the period of time it is valid
- information on the funding amounts
- the terms and conditions that apply
- appendices
Raise a query about this contract.
{% endblock %}


I really enjoying this learning process !)
Click to fade out
Its fun
Its interesting
I can do this for a living
I found
this
source
very
helpful !
Warning.
Don't forget to save your job.


Welcome to LGM-Geocoding’s documentation!¶
LGM-Geocoding¶
A python library for accurate classification of best geocoding sources per coordinate pair.
LGM-Geocoding is a python library which implements a full Machine Learning workflow for training classification algorithms on annotated datasets that contain mappings between coordinate pairs and the ideal geocoding source for them and producing models that provide accurate predictions about ideal geocoding sources for previously unseen geocoding pairs. Geocoding implements a series of training features, regarding the different coordinate pairs that are available for each geocoder, the interaction between them and neighboring geospacial data (namely road data). Further, it encapsulates grid-search and cross-validation functionality, based on the scikit-learn toolkit, assessing as series of classification models and parameterizations, in order to find the most fitting model for the data at hand. Indicatively, we succeed a 66.04% accuracy with the Random Forest classifier compared to the baseline approach that achieves accuracy of 55.05% (see References).
The source code was tested using Python 3.6 and Scikit-Learn 0.22 on a Linux server.
Description¶
The module consists of the following steps:
- Features extraction
This step takes into account the features configuration given in config.py and creates X_train and X_test feature pairs grouped by folds and ready to be utilized by machine learning algorithms in the next steps.
- Algorithm selection
A list of given classifiers given in config.py are evaluated in a nested cross-validation scheme in order to find which performs the best on the features sets created in the previous step.
- Model selection
Given a selected classifier, this step tries to find its best configuration.
- Model training
Utilizing the knowledge from the previous step, a model is trained on the whole available data using the optimal configuration. This model is then saved to disk for later usage.
- Model deployment
This step loads the optimal model from disk and uses it in order to classify a set of unseen, unlabeled, test data. Classification results come in a form of (predicted-label, score) pairs, suggesting the model’s confidence about each prediction.
Setup procedure¶
Download the latest version from the GitHub repository, change to the main directory and run:
pip install -r pip_requirements.txt
It should install all the required libraries automatically (scikit-learn, numpy, pandas etc.).
Usage¶
The execution of the project starts with the Features extraction step initializing the pipeline’s root folder which the following steps will refer to in order to output their results. Each step can be executed as follows:
- Features extraction
python -m geocoding.features_extraction -fpath <fpath>
where <fpath> is the path to the csv file containing train data.
- Algorithm selection
python -m geocoding.algorithm_selection -experiment_path <exp_path>
where <exp_path> is the path to the folder created from the first step.
- Model selection
python -m geocoding.model_selection -classifier <clf_name> -experiment_path <exp_path>
where <clf_name> is the classifier’s name to be optimized in order to build the model and <exp_path> same as before.
- Model training
python -m geocoding.model_training -experiment_path <exp_path>
where <exp_path> same as before.
- Model deployment
python -m geocoding.model_deployment -experiment_path <exp_path> -fpath <fpath>
where <exp_path> same as before and <fpath> is the path to the csv file containing the test data.
Documentation¶
Source code documentation is available from linkgeoml.github.io.
References¶
Alexis et al. Improving geocoding quality via learning to integrate multiple geocoders. SSDBM ’20.


Today, we're going to learn how to write your own R functions.
This is useful if you have code that you are likely to use more than once and it's also a good way to share code that you've written.
Also, by learning to write your own function, you will be better at reading, using, and manipulating functions for R packages and other users. And is'nt that one of the biggest benefits of using open source software.
This lesson assumes that you're familiar with the basics of the R programming language including for loops, ifelse statements, and the use of built-in functions.
We're going to write a funciton to calculate the mean of a vector. This can already be done with the built-in mean function in R, but it's a good way to start because the results are easy to check.
So we don't have problems with the built-in 'mean' function, we are going to call our funtion 'meanVector'
meanVector <- function(x) {
# We use the function command and give argument (input) x, which will be a
# vector
sum.vector <- 0 # Now we set the starting cummulative sum at 0
for (i in 1:length(x)) {
# We will use a for loop which might not be the fastest in R but it's easier
# to understand when starting off than other options
sum.vector <- sum.vector + x[i] # Now we add each value in the vector list to the cummulative sum.
} # Close the bracket of the for loop
mean.v <- sum.vector/length(x) # We now divide by the number of values in the vector and save it as 'mean.v'. This could be called anything
return(mean.v) # Finally, we specify what will be returned by the function
}
We run our function and now it's saved just like any other function. To see it as you would another function just type the name of the function and run that line
meanVector
## function(x) {
## # We use the function command and give argument (input) x, which will be a
## # vector
## sum.vector <- 0 # Now we set the starting cummulative sum at 0
## for (i in 1:length(x)) {
## # We will use a for loop which might not be the fastest in R but it's easier
## # to understand when starting off than other options
## sum.vector <- sum.vector + x[i] # Now we add each value in the vector list to the cummulative sum.
## } # Close the bracket of the for loop
## mean.v <- sum.vector/length(x) # We now divide by the number of values in the vector and save it as 'mean.v'. This could be called anything
## return(mean.v) # Finally, we specify what will be returned by the function
## }
Now let's test out our function to make sure it works. We'll start by making a few vectors to try:
v1 <- c(-1, -1, 0, 1, 1)
meanVector(v1)
## [1] 0
v2 <- c(1, 2, 3, 4, 5)
meanVector(v2)
## [1] 3
v3 <- c(1, 2, NA, 4, 5)
meanVector(v3)
## [1] NA
Our function performs well when the vector is made up of numeric values but when there is a missing value as an NA, the function returns an NA. That might be okay, but what if we want to get a mean of the values not including the NA? We need to add an additional argument to the function giving an option of how to handle the NA.
meanVector2 <- function(x, skip.na = FALSE) {
sum.vector <- 0
if (skip.na == FALSE) {
for (i in 1:length(x)) {
sum.vector <- sum.vector + x[i]
}
mean.v <- sum.vector/length(x)
} else {
x.new <- x[!is.na(x)]
for (i in 1:length(x.new)) {
sum.vector <- sum.vector + x.new[i]
}
mean.v <- sum.vector/length(x.new)
}
return(mean.v)
}
Now let's try with the vectors again:
meanVector2(v2)
## [1] 3
meanVector2(v3)
## [1] NA
meanVector2(v3, skip.na = TRUE)
## [1] 3
This time it works even when NA are present
Now if this was a real function for general use, you would want to put in checks with warnings and error messages. For example, what happens if you try to input a matrix for x? This is the type of thing to think about when writing functions, but for now this should give you a basic idea of how to write your own utility functions and give you a better understanding of the built-in function you regularly use. Remember you can always type the name of the function to see the code behind it, for example,
sd # standard deviation function
This can also allow you to take and modify existing functions, just be sure to give it a new name.


Leaflet with
leaflet-defaulticon-compatibility
WEBPACK demo page
Demo version
{{VERSION}}
Loader for CSS
url()
{{LOADER}}
Marker icon
src
{{ICON}}
Marker shadow
src
{{SHADOW}}
Load demo version
Webpack with file-loader (hashed file name images)
Webpack with url-loader (Data URI / base64 inline images)
Webpack without leaflet-defaulticon-compatibility plugin


We visualize systems!
- reinvent B2C channels
- envisioneer innovative solutions
- drive 24/365 technologies
- exploit killer action-items
- brand integrated synergies
- synthesize bricks-and-clicks systems
- exploit plug-and-play e-tailers
- cultivate e-business relationships
- drive wireless methodologies
- revolutionize extensible relationships


You will have 40 seconds to answer 5 multiple choice questions about javascript. You will lose 10 seconds for every wrong answer. Good luck.
Name:
Score:


Welcome to the "2017 Wrapped" Statistics Viewer for YouTube
Let's Go!
Load Already Downloaded Watch History


--- layout: post title: |- Feature of the Week: Conferator - a ubiquitous, BibSonomy-based conference service date: '2010-10-01T12:52:00.000-04:00' author: Bob Sica tags: modified_time: '2011-12-21T12:48:50.388-05:00' blogger_id: tag:blogger.com,1999:blog-736339229338318027.post-612213029482773918 blogger_orig_url: http://blog.purplecrowlidar.ca/2010/10/feature-of-week-conferator-ubiquitous.html ---
BibSonomy is a way awesome way for your research group to share a publication database, particularly if you like to use bibtex. Highly recommended and free. This short article gives a glimpse of the future of networking at conferences, and finally I will be able to remember who I talked to about what!


|
| | Министерство культуры Российской Федерации Портал Культура.рф Проект «Образы России» |
The memorial estate Arkhangelskoye
Monument to Alexander Pushkin. Pushkin's alley ensemble
The alley and the monument are symbolic images of the “Pushkin's period”: marble statues (busts of the antique characters) emphasizes sculptural portrait of the poet, which is located in shadow of the trees. Pushkin's vis-a-vis – rude figure of the Alexander I Column - is on the opposite side of the alley.
A. Pushkin with S. Sobolevsky, the Moscow friend of the poet and bibliographer, visited N. Yusupov in his estate in 1827. They were deeply impressed by the beauty and wealth of the Arkhangelskoye. N.Yusupov showed them his art collection and excellent library. Two years later Pushkin devoted to prince (Russian:“К вельможе”) a poem in which he praised an extraordinary life of the Yusupov, who has saved the best features of the period from Catherine the Great up to Nicholas I. Alexander Pushkin with P. Viazemsky one more time visited Yusupov in August 1830 and “Catherine the Great's learned nobleman showed them great hospitality”.
The poet knew the prince from the childhood. On wedding of the poet it was Yusupov who gave the bride away. Yusupov family kept Pushkin's autographs donated by V. Zhukovsky.
In 1903 Yusupov's descends erected a bronze bust of the poet (by Kutirin's workshop). On the socle of the monument one can find a piece of verse of the poem devoted to N. Yusupov.
Культура.рф © Портал культурного наследия России


Baseline correction, normalization and linear combination fitting (LCF) of X-ray absorption near edge structure (XANES) spectra. The package includes data loading of .xmu files exported from 'ATHENA' (Ravel and Newville, 2005) <doi:10.1107/S0909049505012719>. Loaded spectra can be background corrected and all standards can be fitted at once. Two linear combination fitting functions can be used: (1) fit_athena(): Simply fitting combinations of standards as in ATHENA, (2) fit_float(): Fitting all standards with changing baseline correction and edge-step normalization parameters.
| Version: | 1.7.0 |
| Depends: | R (≥ 3.2.1) |
| Imports: | quadprog |
| Published: | 2017-11-22 |
| Author: | Florian Werner [aut, cre] |
| Maintainer: | Florian Werner <florian.werner at wzw.tum.de> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| CRAN checks: | LCF results |
| Reference manual: | LCF.pdf |
| Package source: | LCF_1.7.0.tar.gz |
| Windows binaries: | r-devel: LCF_1.7.0.zip, r-release: LCF_1.7.0.zip, r-oldrel: LCF_1.7.0.zip |
| OS X binaries: | r-release: LCF_1.7.0.tgz, r-oldrel: LCF_1.7.0.tgz |
| Old sources: | LCF archive |
Please use the canonical form https://CRAN.R-project.org/package=LCF to link to this page.


Christian Critic's Movie Parables - http://www.christiancritic.com
MUSIC OF THE HEART (opens October 29th) * * * out of * * * * stars ==========================
DIRECTED BY: Wes Craven STARRING: Meryl Streep, Aidan Quinn, Angela Bassett, Cloris Leachman, Gloria Estefan WRITTEN BY: Pamela Gray RATED: PG for brief mild language and sensuality. SCRIPTURE REFERENCES: Proverbs 6:23, Colossians 3:23, 2 Corinthians 8:11
A study was done some time ago which measured the overall impact that structured musical programs have on grade school children. The results overwhelmingly indicated that those students who studied and played a musical instrument also performed better academically. This finding is not at odds with the true life story depicted in MUSIC OF THE HEART.
Meryl Streep (ONE TRUE THING) plays Roberta Guaspari, a woman whose husband has just left her for another woman. Taking her two young sons and retreating to her home town and the familiar comfort of her mother (Cloris Leachman, NEVER TOO LATE), she is at a loss as to know what she should do next. An old friend (Aidan Quinn, PRACTICAL MAGIC), knowing of her skill as a violinist, points her in the direction of a teaching position in an East Harlem alternative school.
Though she has limited work experience and virtually no professional teaching experience, the principal (Angela Bassett, HOW STELLA GOT HER GROOVE BACK) decides to hire her on a trial basis as a substitute teacher. The first half of the movie has Roberta struggling through the transitional period of coping with a very difficult time in her life... both personally and professionally.
Ten years later, her "substitute" status remains unchanged but her violin program has grown to encompass the students of three different inner-city schools. In fact, it has become so popular that the students must enter a lottery to see who will be allowed to take her class.
The second half of this movie (which is infinitely superior to the first) deals with Roberta's fight to save the program from succumbing to imposed budgetary cuts. This fight culminates with a fundraising concert named "Fiddlefest" which was performed in 1993 on the stage at Carnegie Hall with guest violinists Isaac Stern, Itzhak Perlman, Mark O'Connor, Arnold Steinhardt, and others (all playing themselves).
Ms. Streep adds yet another stellar performance to an already impressive resume. She plays a woman supremely confident in her ability as a musician, yet because of her failed relationships, not as confident about herself as a woman. We never once doubt her abilities or insecurities even though we know both are pretended.
MUSIC OF THE HEART is directed by horror film maven Wes Craven (SCREAM), in his first departure from the genre which brought him fame. Mr. Craven is not as successful in presenting the nuances of Roberta's personal life such as the raising of her sons or her relationships with men. But the film soars whenever the focus returns to the music and the students who must play it.
Over half of the students in the film were selected from Ms. Guaspari's actual classes. The precision, dedication, commitment and discipline these students had to develop in order to learn this difficult instrument will certainly be transferable to any endeavor they choose to attempt in the future.
Ms. Guaspari's teaching secret was her innate awareness that children desire discipline in their lives. She elected to teach them to "stand strong." Not just physically, using the proper musician's stance, but internally. Instead of coddling them or providing them with compassionate but unwarranted compliments, she rode them incessantly to do better. She inspired them to reach for greater heights. And they loved her for it.
"For the commandment is a lamp; and the law is light; and reproofs of instruction are the way of life:" Proverbs 6:23 [KJV]
Without reproof to teach us when we are doing something incorrectly, we will never learn, grow, or improve. Ms. Guaspari's lessons had an impact which reached beyond the simple playing of notes on a stringed instrument. Discipline is a learned quality one may draw upon for a lifetime. The students learn that to play from the heart, one must first master the fundamentals. The only way to do that is the punch line to an appropriate old cabdriver joke:
Question: How do you get to Carnegie Hall? Answer: Practice, practice, practice.
This same answer can be applied to achieve proficiency in any field, including the spiritual ones.
Michael Elliott October 1999 http://www.christiancritic.com
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


Comments
-
Greg Hurrell
Apart from a bunch of false positives due to the overly lax regular expressions in the plug-in, the only warnings left are the following:
Soon-to-be-deprecated ActiveRecord calls Methods such as find(:all), find(:first), finds with conditions, and the :joins option will soon be deprecated. More information: http://m.onkey.org/2010/1/22/active-record-query-interface The culprits: - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/admin/posts_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/users_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/issue.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/needle.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/tagging.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/comments_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/dashboard_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/issues_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/resets_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/tags_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/topics_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/controllers/users_controller.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/forum.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/needle.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/tag.rb - /Users/wincent/trabajo/unversioned/wincent.com/src/app/models/tagging.rb
Haven't checked them out yet, so not sure if they are all legit.
-
Greg Hurrell
Currently knocking off the
find :all, :conditions => ...
andfind ..., :conditions => ...
type queries.Need to remember to go back and do another pass for
count
queries and perhaps others too. -
Greg Hurrell
Think this is all done now.
-
Greg Hurrell
Status changed:
- From: new
- To: closed
Add a comment
Comments are now closed for this issue.


Our engineers have solid industry experience covering process plant design, construction, commissioning, operations and maintenance. We take pride in differentiating our services from pure math only alternatives.
Industry trusted us to design, build and commission greenfield and brownfield projects. Trust us to optimise your process.
Our services include process plant audits, building reliable data collection pathways and Engineering consultations with your management and operational staff.


Parameters Tutorial
Welcome to the third tutorial about Abundant Music!
This tutorial is about the "Parameters" tab in the "Song Settings" window. In this tab, we will get a bit more fine-grained control of the the resulting song by access to some of the probabilities and likelihoods that Abundant Music uses for scale, time signature, instruments, song structure, harmony and a lot more.
A short "clarifying" comment: Likelihoods can be any positive number and will later be translated into a probability, which must be a value between 0 and 1. Likelihoods are used in those places where you don't want to manually make sure that all probabilities sum up to 1, which must be the case for or probability distributions.
Exploring Parameters
We are going to play with some parameters that control the scale, instruments, harmony and structure of the song.
Start by generating a new, fresh song that you like.
Then, select the "Parameters" tab in the "Song Settings" window.
We are going to force the scale to minor, the time signature to 3/4 and only use instruments from the "Acoustic" instrument set. To do this, we first set the "Minor Scale Likelihood" to 1 an "Major Scale Likelihood" to 0.
Then we set the "3/4 Time Signature Likelihood" to 1 and both "2/4 Time Signature Likelihood" and "4/4 Time Signature Likelihood" to 0.
Finally, the instrument likelihoods are set similarly: "Electronic Instruments Likelihood" to 0, "Electric Instruments Likelihood" to 0 and "Acoustic Instruments Likelihood" to 1.
This is how it should look:
Next, we are going to force the structure of the song to be of "build" type. This means that the song starts slow and grows stronger by adding more material. We are also going to turn off tonicization and modulation to prevent the song from moving between different scales.
The parameter values to do all this is shown in the following image:
Listen to the song now!
If you change the main seed, the new song will be restricted to this "build" type, with acoustic instruments in minor with time signature 3/4.
There are a lot of parameters available to play with. Experiment and have fun :).
The following sections will describe all parameters in more depth.
Scale Type and Time Signature
Abundant Music currently supports two scale types: Major and Minor. The scale type stays the same during the whole song unless there is a modulation or tonicization.
If you want to change the likelihood for a certain scale type, you can just change "Minor Scale Likelihood" and/or "Major Scale Likelihood" to any positive value or zero. Note the two buttons "0" and "1" that can be used for quickly setting likelihoods and probabilities.
The time signature and corresponding likelihoods work the same way. Abundant Music currently supports three different time signatures. The 4/4 time signature is by default the most likely one.
Instrument Sets
You can define three sets of instruments in the "Domain" tab: Electronic, Electric and Acoustic.
These sets of instruments are set to some suitable instruments by default that correspond to the names but you can define them in any way you like and just simply view them as fully customizable sets.
The three likelihoods "Electronic Instruments Likelihood", "Electric Instruments Likelihood", and "Acoustic Instruments Likelihood" specifies the probability distribution for selecting from the three instrument sets.
Song Structure Sets
Voice Leading Parameters
Chord Parameters
Harmony Parameters
Percussion Parameters
Effect Parameters
Motif and Rythm Parameters


Hi! My name is Diego Neitzel and I'm a brazilian front-end developer passionated for the web, sports and travels.
I have 7+ years experience working with a wide range of clients & businesses on Web Development like IBM, Netshoes, Editora Abril, etc. I think that more than write some code or draw in Photoshop, the possibility to plan solutions for help the people is the coolest thing.
I have a range of interest within HTML5 & Responsive Web Design and I like to study & research daily how people interact and function with the web. I love learning something new every day and that’s what keeps me motivated and progressing my skills, to develop modern, highly interactive, responsive websites & web apps with cutting edge technologies.


Class TransformExtensions
Extension methods for Unity's Transform class
Inherited Members
Namespace: XRTK.Extensions
Assembly: XRTK.dll
Syntax
public static class TransformExtensions
Methods
| Improve this Doc View SourceEnumerateAncestors(Transform, Boolean)
Enumerates the ancestors of the specified transform.
Declaration
public static IEnumerable<Transform> EnumerateAncestors(this Transform startTransform, bool includeSelf)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | startTransform | Transform for which ancestors must be returned. |
| Boolean | includeSelf | Indicates whether the specified transform should be included. |
Returns
| Type | Description |
|---|---|
| IEnumerable<Transform> | An enumeration of all ancestor transforms of the specified start transform. |
EnumerateHierarchy(Transform)
Enumerates all children in the hierarchy starting at the root object.
Declaration
public static IEnumerable<Transform> EnumerateHierarchy(this Transform root)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | root | Start point of the traversion set |
Returns
| Type | Description |
|---|---|
| IEnumerable<Transform> |
EnumerateHierarchy(Transform, ICollection<Transform>)
Enumerates all children in the hierarchy starting at the root object except for the branches in ignore.
Declaration
public static IEnumerable<Transform> EnumerateHierarchy(this Transform root, ICollection<Transform> ignore)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | root | Start point of the traversion set |
| ICollection<Transform> | ignore | Transforms and all its children to be ignored |
Returns
| Type | Description |
|---|---|
| IEnumerable<Transform> |
FindAncestorComponent<T>(Transform, Boolean)
Find the first component of type T
in the ancestors of the specified transform.
Declaration
public static T FindAncestorComponent<T>(this Transform startTransform, bool includeSelf = true)
where T : Component
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | startTransform | Transform for which ancestors must be considered. |
| Boolean | includeSelf | Indicates whether the specified transform should be included. |
Returns
| Type | Description |
|---|---|
| T | The component of type |
Type Parameters
| Name | Description |
|---|---|
| T | Type of component to find. |
GetColliderBounds(Transform)
Calculates the bounds of all the colliders attached to this GameObject and all it's children
Declaration
public static Bounds GetColliderBounds(this Transform transform)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | Transform of root GameObject the colliders are attached to |
Returns
| Type | Description |
|---|---|
| Bounds | The total bounds of all colliders attached to this GameObject. If no colliders attached, returns a bounds of center and extents 0 |
GetDepth(Transform)
Gets the hierarchical depth of the Transform from its root. Returns -1 if the transform is the root.
Declaration
public static int GetDepth(this Transform transform)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | The transform to get the depth for. |
Returns
| Type | Description |
|---|---|
| Int32 |
GetFullPath(Transform, String, String)
An extension method that will get you the full path to an object.
Declaration
public static string GetFullPath(this Transform transform, string delimiter = ".", string prefix = "/")
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | The transform you wish a full path to. |
| String | delimiter | The delimiter with which each object is delimited in the string. |
| String | prefix | Prefix with which the full path to the object should start. |
Returns
| Type | Description |
|---|---|
| String | A delimited string that is the full path to the game object in the hierarchy. |
InverseTransformSize(Transform, Vector3)
Transforms the size from world to local.
Declaration
public static Vector3 InverseTransformSize(this Transform transform, Vector3 worldSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | The transform. |
| Vector3 | worldSize | The world size |
Returns
| Type | Description |
|---|---|
| Vector3 | World size. |
IsParentOrChildOf(Transform, Transform)
Checks if the provided transforms are child/parent related.
Declaration
public static bool IsParentOrChildOf(this Transform transform1, Transform transform2)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform1 | |
| Transform | transform2 |
Returns
| Type | Description |
|---|---|
| Boolean | True if either transform is the parent of the other or if they are the same |
TransformSize(Transform, Vector3)
Transforms the size from local to world.
Declaration
public static Vector3 TransformSize(this Transform transform, Vector3 localSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | The transform. |
| Vector3 | localSize | The local size. |
Returns
| Type | Description |
|---|---|
| Vector3 | World size. |
TryGetDepth(Transform, Transform, ref Int32)
Tries to get the hierarchical depth of the Transform from the specified parent. This method is recursive.
Declaration
public static bool TryGetDepth(Transform target, Transform parent, ref int depth)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | target | The transform to get the depth for |
| Transform | parent | The starting transform to look for the target transform in |
| Int32 | depth | The depth of the target transform |
Returns
| Type | Description |
|---|---|
| Boolean | 'true' if the depth could be retrieved, or 'false' because the transform is a root transform. |


Control the display of an image within it's parent. Either force the image to fill it's parent or fit within it.

View Example


{$total[0]}
{$total[1]}
{$total[2]}
{$total[3]}
{$total[4]}
{$total[5]}
{$total[6]}
{$total[7]}
{$total[8]}


Welcome to Memegen
Greetings, friend!
This is a web application that generates memes with given text and images(.jpeg).
Like this:
To upload your text and image, click here.
The page is so simple that I don't think any instruction is needed.
Ok, let's meme on!!
Copyright © 2017 mrsata. Proudly built with .
Memegen on GitHub


Week 1
5/5/15
Version Control. Track step by step what you're doing.
You can view the commits that were made on GitHub and track your changes.
Use GitHub to store your code so you can access it anywhere online, and work with others.
Version Control. Track step by step what you're doing.
You can view the commits that were made on GitHub and track your changes.
Use GitHub to store your code so you can access it anywhere online, and work with others.


Recovering Files From an Unmountable USB Key
The other night, myself and Rory managed to recover his friend’s thesis from a wonky USB thumb drive. We used PhotoRec on Ubuntu Linux. PhotoRec comes with the TestDisk utility. You can install TestDisk via:
1 2 |
|
The first thing we did was run dmesg in a terminal to get a bit of info on what was going on. We ran dmesg before and after we plugged in the drive and noted the relevant output. The device eventually settled and was given the device location sdb by the kernel, but no filesystem was found. The partition was likely corrupted somehow.
TestDisk could be used to try to repair the partition on the disk, but it could also damage the data further. We decided to make an image to work with using dd:
Use dd with care! Consult the man page for more info.
1
|
|
This copied the contents of the usb key block-by-block to a file called “disk_image”. The was a 2G image (the total capacity) of the wonky drive.
We then used photorec to try to recover any files from the image.
1
|
|
Select the image to use.
Select the partition type.
Select the partition.
Select the filesystem type.
Select where to save the recovered files.
Watch the search in progress.
Et voila! PhotoRec worked its magic and we recovered the thesis, along with all the other files.


Teva Shoes
Shoes don’t seem like an interesting blog post - however, I sometimes think I’m guilty of being the wrong sex, as I seem to have a few shopping habits that the fairer sex are often stereotypically attributed with - that is, I have a thing for good bags. However, shoes (the other vice women are usually labelled with!) are not something I usually get excited about.
However, this is potentially due to the fact that I could never find a good pair - I would settle for a cheap £20 pair of Airwalk’s from Sports Direct as I seem to destroy shoes (the soles would wear through within a month or two). This was the case, even with expensive brands, such as Vans. This however, changed when I discovered Teva. Now I seem to get all my shoes from there!
Teva
Teva (apparently pronounced “teh'-vah,” not “tee-vah” - apparently from the Hebrew word for nature), are an American company (owned by Deckers Outdoor Corporation, the makers of the horrendous looking Ugg’s!). However, I don’t hold that against them, as the shoes are decent.
It all started in 1984 with the creation of sports sandals. Now Teva make a range of shoes, mainly focused around water. However, they also have a range of multi use shoes, some of which are marketed as cycling shoes (see where this is going?)
I think I stumbled upon Teva due to a post I’d seen somewhere on Reddit or on cycle touring where the Mush Frio was praised as a lightweight shoe that was really handy for dropping in panniers or similar. I decided to buy a pair in from the Natural Shoe Store in Covent Garden and that made me decide to check out the rest of the shoes they offer.
Mush Frio
I picked these up in a sale as I wanted a lightweight shoe that I could wear with no socks during the summer. I’m not a huge fan of flip flops and I’ve never really worn sandals but I still wanted a shoes that was light weight (I blame getting into barefoot running). The Mush Frio’s fitted the bill and I managed to pick up a pair from the Natural Shoe Store.
Yes, they do seem to match the carpets in my house as well!
They are like flip flops - well, the soles are. The soles are basically that sort of foam that some sandals and flip flops use and the rest of the shoes are canvas. I’ve not worn these two much during the summer but they will be making an appearance in my touring kit bag as they are lightweight and pack down nicely.
Crank
I ended up buying a pair of Cranks as they were on offer and I thought I’d risk buying them to see how they would compare to the cheap, £20 Airwalk trainers I’d been buying from Sports Direct. Well turns out to be money well spent.
Not only were the shoes comfortable, I still have my original pair, probably approaching two years after I bought them, though in fairness, the original pair have now been regulated to the cupboard for cycling or other muddy jobs (mainly because they’re a bit grubby now, not that the sole has a hole in). I liked them so much, that I bought a second identical pair in a sale soon after I bought the first pair and I’ve purchases a third pair in a different colour for other occasions! Either way, the Crank has become my go to shoes for day to day wear, though for the office, I’ve decided I need a slightly better looking pair.
It turns out I now have a total of five pairs now of the Cranks in various colours and state of use! They’ve become my shoe of choice.
Carbon
Carbon’s are probably the only Teva pair of shoes I regret buying and that’s pretty much down to styling, rather than the actual shoe itself.
I bought them to wear into the office as I thought they were smart enough. I’m not entirely sure they are but it turns out, I’m not a fan of the grey and black styling either.
I made a mistake when purchasing these as well and ordered a Size 10, compared to 11 in the Crank’s. Well, I managed to tear up my heels wearing them so I can only assume the size was to small or the shoes requiring some breaking in, something the other trainers don’t need to do.
Overall though, the shoes compare well enough to the rest of the shoes I’ve had from Teva. The soles are grippy enough and these are aimed at the cycling market - with small reflective patches applied to the shoes on the sides of the soles. Mind, these aren’t particularly big, and I’ve not seen them in action (as I’m on the bike wearing them!). It’s an interesting touch though and I wonder if other cycling shoes out there are incorporating it - as the patches are fairly unobtrusive during the day.
In the end, I got rid of these fairly quickly to a charity shop.
Roller Suede
These were bought to replace the Carbon’s that I disliked. I thought that these were pretty smart to wear in the office and I’ve been wearing them there for probably about 6 months.
They seem to be fairly decent with a pair of chinos and a shirt for a fairly casual look in the office.
I’ve bought a pair of the Roller Mesh shoes to replace these ones, as they’re perhaps beginning to look a bit tired (and the soles on these are wearing down).
Roller Mesh
I bought the Mesh ones to replace the Suede ones, basically because I thought I’d give them a try over replacing them like for like.
The difference is fairly minor.
Perhaps the other Suede ones are perhaps a bit smarter, but these should be up to the task as well. Only time will tell!
Conclusion
Teva have won me over with reasonably priced shoes that perform fantastically (in my probably abnormal wear frequency!). Not only are they reasonably priced, they’re fashionable (and some of the “smarter” trainers are ideal for work) and they’re comfortable. Far cry from some shoes I’ve worn that seem to forget that main aim of wearing shoes is to protect your feet but to be comfortable enough not to realise they’re there!


Senior Software Developer for PATLive on the Tresta Team
Tresta is a new cloud communication platform built on:
- Durandal
- Erlang
- CouchDB
- NodeJS
- RabbitMQ
- Puppet
Remote Part-Time Consultant for Avatar Software
While at Avatar, I have helped build the following Durandal apps:
- SmartSoft PsychDX
- Vanguard/Tenet Control Panel
- Avatar Web Site (avatar-soft.com)
Freelance Durandal Developer - iTeres Group
Responsible for maintaining and developing Rainmaker App


What is the Capital of India?
How many Hours are there in a day?
Which color stands for peace and harmony in indian National flag?
How many Vowels are there in the English Literature?
How many Continents are there in the world?
Which of the Following is a Primary Color?
Orange,Purple,Red,Yellow


Home
Services
About Us
Events and Partnerships
Gallery
Contact Us
Mobile Dog Grooming
No need to transport your furry friend
we can come to your door !


What is your favorite and least favorite organ?
love it hate it |
Lung | Pancreas | Spleen | Liver | Skin | Brain |
| 4 | 10 | 4 | 1 | |||
| 5 | 6 | 14 | 1 |
A more complex table.
| 2017 | 2018 | |||||||
|---|---|---|---|---|---|---|---|---|
| Category | 1st Quarter | 2nd Quarter | 3rd Quarter | 4th Quarter | 1st Quarter | 2nd Quarter | 3rd Quarter | 4th Quarter |
| Expenses | $25,000.00 | $20,000.00 | $30,000.00 | $25,000.00 | $20,000.00 | $15,000.00 | $22,500.00 | $20,000.00 |
| Revenue | $200,000.00 | $210,000.00 | $195,000.00 | $200,000.00 | $225,000.00 | $230,000.00 | $225,000.00 | $250,000.00 |


{% extends "base.html" %} {% block title %}
We deliver the images you create to the world.
{{ photo.description }}


--- title: "Bootstrapping in R: Parametric vs Nonparametric Bootstrap" bgImage: images/background/page-title.jpg date: 2020-04-12 author: Chetan Prajapati description : "This article explains the bootstrap method using example using loops and boot function. Bootstrapping is a resampling method which used the Monte Carlo technique to estimate standard error, confidence interval, bias. The methods include parametric and non-parametric bootstrap" type: learn-statistics image: images/blog/blog-6.jpg categories: - "Statistical models for continuous outcomes" tags: - "parametric" - "Non-parametri" - "boot" output: blogdown::html_page: highlight: tango ---
Table of Contents
This article explains bootstrap concept as a whole and discern the fundamental difference between parametric and nonparametric bootstrap using R. We will be using both-for
loops and standard boot
package
We first need to understand following some fundamental concepts. The idea behind bootstrapping is very closely aligned with those concepts.
Here I have created a hypothetical study in which we are interested in finding out the average birth weight of the babies born in the UK at 37 weeks of gestation.
Experiment : To find out the average weight of babies born at 37 weeks in the UK
Random sample : Random sample means each and every single individual or object has an equal probability of being chosen from the population. For example, in our study, the population is all birth happened in the UK at 37 weeks of gestation. For typical “random sample”, we will need to make sure that each and every birth happening in any corner of the UK, will be participating in our study, from which will choose some of them randomly i.e random sample.
## [1] 3331.608 3549.913 2809.252 2671.465 3383.177 3945.721 3672.601 3922.416
## [9] 4647.278 4088.246 3718.874 3724.443 3925.457 3112.920 3495.621 3651.779
## [17] 3240.194 3867.347 3431.015 4163.725