Hacking the Ruby interpreter 2008/10/26
I like Ruby. Ruby the language anyway. I have started to have violent reactions to PHP's lack of closures. However, Ruby has one deficiency that makes me almost as mad as PHP's lack of closures. Assume for this example that the file foo.rb looks like this:
@foo = "I'm getting ready to abuse the instance variable syntax."
As is, Ruby lets me do the following, which is functionally desirable but makes the good programmer part of me twitch:
class Foo def initialize(path) self.instance_eval(File.read(path)) end end f = Foo.new('load_me.rb') f.instance_variables # => ['@foo']
Replacing the bold line with the following is what I'm after:
load_in_scope path
In my dream, load_in_scope
is a function defined in the C
code that compiles a file using the Bison parser to read through the file.
This saves a whole round trip to and from memory, making the program more
efficient and me less twitchy.
I'm having major trouble getting the Ruby interpreter to do this.
Starting with a trunk checkout and working backwards from the
Kernel#load
method, I've been able to segfault at least
two-dozen different ways. I think there are only two changes that are
necessary. First, after rb_load_file
returns a NODE
*
, rb_iseq_new
must turn that into an instruction
sequence with a type other than ISEQ_TYPE_TOP
(perhaps
ISEQ_TYPE_CLASS
or ISEQ_TYPE_EVAL
?). Second,
the instruction sequence can't be passed to rb_iseq_eval
because that calls vm_set_top_stack
, so
load_in_scope
must call vm_set_eval_stack
and
vm_exec
itself.
Am I insane?
Comments (0)


Surgeon urges govts to equip hospitals - The Nation Newspaper
The President of the World Federation of Neurological Surgeons (WFNS), Prof. Nelson Oyesiku, has urged the federal and state governments to ensure the provision of modern equipment in hospitals.
Oyesiku, who is also the director of the American Board of Neurosurgery, said efforts should be made by the government to put in place facilities for neurosurgery in the country, particularly in Abeokuta, the Ogun State capital, which already has a neuropsychiatric hospital.
He said having facilities for neurosurgery and other complex medical operations in the country had become imperative to check the current situation where Nigerians requiring such medical attention were being taken to hospitals abroad for treatment and to also stop the relocation of Nigerian doctors and other medical professionals trooping abroad in droves.
READ Also: 60 garlands for consummate scholar, Prof Oyesiku
Oyesiku said that the major problem confronting the medical sector was the lack of modern medical equipment in hospitals.
The neurosurgeon, who has been selected by the Consumer Research Council of America as one of America’s topmost surgeons, spoke shortly after he was conferred with the traditional chieftaincy title of the Baasegun Alabe of Egba by the Alake of Egbaland, Oba Adedotun Aremu Gbadebo.


public interface XInput
extends com.sun.jna.Library
Source: Microsoft Documentation
| Modifier and Type | Method and Description |
|---|---|
static XInput |
create()
Creates a new instance of XInput.
|
void |
XInputEnable(boolean enable)
Sets the reporting state of XInput.
|
int |
XInputGetAudioDeviceIds(int dwUserIndex,
char[] pRenderDeviceId,
com.sun.jna.ptr.LongByReference pRenderCount,
char[] pCaptureDeviceId,
com.sun.jna.ptr.LongByReference pCaptureCount)
Retrieves the sound rendering and sound capture audio device IDs that are associated with the headset connected to the specified controller.
|
int |
XInputGetBatteryInformation(int dwUserIndex,
int devType,
XInputBatteryInformation pBatteryInformation)
Retrieves the battery type and charge status of a wireless controller.
|
int |
XInputGetCapabilities(int dwUserIndex,
int dwFlags,
XInputCapabilities pCapabilities)
Retrieves the capabilities and features of a connected controller.
|
int |
XInputGetDSoundAudioDeviceGuids(int dwUserIndex,
char[] pDSoundRenderGuid,
char[] pdSoundCaptureGuid)
Deprecated.
 Using this function, you will not have to change the XInput query loop in your application as neutral data will always be reported if XInput is disabled. In a controller that supports vibration effects:
false
will stop any vibration effects currently playing. In this state, calls to XInputSetState(int, XInputVibration)
will be registered, but not passed to the device.true
will pass the last vibration request (even if it is 0
) sent to XInputSetState(int, XInputVibration)
to the device.Windows 8 (XInput 1.4), DirectX SDK (XInput 1.3)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib |
| DLL | Xinput1_4.dll |
Source: Microsoft Documentation
enable
- [in]
If enable is false
, XInput will only send neutral data in response to
XInputGetState(int, XInputState)
(all buttons up, axes centered, and triggers at 0
).
XInputSetState(int, XInputVibration)
calls will be registered but not sent to the device. Sending any value other
than false
will restore reading and writing functionality to normal.XInputGetState(int, XInputState)
,
XInputSetState(int, XInputVibration)
,
XInputState
,
XInputGamepad
int XInputGetCapabilities(int dwUserIndex, int dwFlags, XInputCapabilities pCapabilities)
Retrieves the capabilities and features of a connected controller.
The legacy XINPUT 9.1.0 version (included in Windows Vista and later) always returned a fixed set of capabilities regardless of attached device.
Windows 8 (XInput 1.4), DirectX SDK (XInput 1.3), Windows Vista (XInput 9.1.0)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib; Xinput9_1_0.lib |
| DLL | Xinput1_4.dll; Xinput9_1_0.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the user's controller. Can be a value from 0
to 3
.
For information about how this value is determined and how the value maps to indicators on the controller,
see Multiple Controllers.dwFlags
- [in]
Input flags that identify the controller type. If this value is 0
, then the capabilities of all
controllers connected to the system are returned. Currently, only one value is supported:
| Value | Description |
|---|---|
XINPUT_FLAG_GAMEPAD | Limit query to devices of Xbox 360 Controller type. |
dwFlags
other than the above or 0
is illegal and will result in an error break when debugging.pCapabilities
- [out]
Pointer to an XInputCapabilities structure that
receives the controller capabilities.ERROR_SUCCESS
.ERROR_DEVICE_NOT_CONNECTED
.SetLastError
to set the calling thread's last-error code.XInputGetState(int, XInputState)
,
XInputSetState(int, XInputVibration)
int XInputGetAudioDeviceIds(int dwUserIndex, char[] pRenderDeviceId, com.sun.jna.ptr.LongByReference pRenderCount, char[] pCaptureDeviceId, com.sun.jna.ptr.LongByReference pCaptureCount)
Callers must allocate the memory for the buffers passed to XInputGetAudioDeviceIds(int, char[], LongByReference, char[], LongByReference)
.
The resulting strings can be of arbitrary length.
Windows 8 (XInput 1.4)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib |
| DLL | Xinput1_4.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the gamer associated with the device.pRenderDeviceId
- [out, optional]
Windows Core Audio device ID string for render (speakers).pRenderCount
- [in, out, optional]
Size, in wide-chars, of the render device ID string buffer.pCaptureDeviceId
- [out, optional]
Windows Core Audio device ID string for capture (microphone).pCaptureCount
- [in, out, optional]
Size, in wide-chars, of capture device ID string buffer.ERROR_SUCCESS
.
If there is no headset connected to the controller, the function will also retrieve ERROR_SUCCESS
with null
as the values for pRenderDeviceId
and pCaptureDeviceId
.
If the controller port device is not physically connected, the function will return ERROR_DEVICE_NOT_CONNECTED
.
If the function fails, it will return a valid Win32 error code.XInputGetDSoundAudioDeviceGuids(int, char[], char[])
int XInputGetBatteryInformation(int dwUserIndex, int devType, XInputBatteryInformation pBatteryInformation)
Windows 8 (XInput 1.4), DirectX SDK (XInput 1.3)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib |
| DLL | Xinput1_4.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the user's controller. Can be a value from 0
to 3
.
For information about how this value is determined and how the value maps to indicators on the controller,
see Multiple Controllers.devType
- [in]
Specifies which device associated with this user index should be queried. Must be BATTERY_DEVTYPE_GAMEPAD
or BATTERY_DEVTYPE_HEADSET
.pBatteryInformation
- [out]
Pointer to an XInputBatteryInformation structure that receives the battery information.ERROR_SUCCESS
.@Deprecated int XInputGetDSoundAudioDeviceGuids(int dwUserIndex, char[] pDSoundRenderGuid, char[] pdSoundCaptureGuid)
XInputGetDSoundAudioDeviceGuids(int, char[], char[])
is deprecated because it isn't supported by Windows 8 (XInput 1.4).Use of legacy DirectSound is not recommended, and DirectSound is not available for Windows Store apps.
DirectX SDK (XInput 1.3), Windows Vista (XInput 9.1.0)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib; Xinput9_1_0.lib |
| DLL | Xinput9_1_0.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the user's controller. Can be a value from 0
to 3
.
For information about how this value is determined and how the value maps to indicators on the controller,
see Multiple Controllers.pDSoundRenderGuid
- [out]
Pointer that receives the GUID of the headset sound rendering device.pdSoundCaptureGuid
- [out]
Pointer that receives the GUID of the headset sound capture device.ERROR_SUCCESS
.
If there is no headset connected to the controller, the function also retrieves ERROR_SUCCESS
with GUID_NULL
as the values for
pDSoundRenderGuid
and pDSoundCaptureGuid
.
If the controller port device is not physically connected, the function returns ERROR_DEVICE_NOT_CONNECTED
.
If the function fails, it returns a valid Win32 error code.XInputGetState(int, XInputState)
int XInputGetState(int dwUserIndex, XInputState pState)
XInputGetState(int, XInputState)
is used to retrieve controller data, the left and right triggers are each reported separately.
For legacy reasons, when DirectInput retrieves controller data, the two triggers share the same axis.
The legacy behavior is noticeable in the current Game Device Control Panel, which uses DirectInput for controller state.
Windows 8 (XInput 1.4), DirectX SDK (XInput 1.3), Windows Vista (XInput 9.1.0)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib; Xinput9_1_0.lib |
| DLL | Xinput1_4.dll; Xinput9_1_0.dll; Xinputuap.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the user's controller. Can be a value from 0
to 3
.
For information about how this value is determined and how the value maps to indicators on the controller,
see Multiple Controllers.pState
- [out]
Pointer to an XInputState structure that receives the current state of the controller.ERROR_SUCCESS
.ERROR_DEVICE_NOT_CONNECTED
.SetLastError
to set the calling thread's last-error code.XInputSetState(int, XInputVibration)
,
XInputState
,
XInputGamepad
int XInputSetState(int dwUserIndex, XInputVibration pVibration)
Sends data to a connected controller. This function is used to activate the vibration function of a controller.
Windows 8 (XInput 1.4), DirectX SDK (XInput 1.3), Windows Vista (XInput 9.1.0)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib; Xinput9_1_0.lib |
| DLL | Xinput1_4.dll; Xinput9_1_0.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the user's controller. Can be a value from 0
to 3
.
For information about how this value is determined and how the value maps to indicators on the controller,
see Multiple Controllers.pVibration
- [in, out]
Pointer to an XInputVibration structure containing the vibration information to send to the controller.ERROR_SUCCESS
.ERROR_DEVICE_NOT_CONNECTED
.SetLastError
to set the calling thread's last-error code.XInputGetState(int, XInputState)
,
XInputVibration
int XInputGetKeystroke(int dwUserIndex, int dwReserved, XInputKeystroke pKeystroke)
Wireless controllers are not considered active upon system startup, and calls to any of the XInput functions before a wireless controller
is made active return ERROR_DEVICE_NOT_CONNECTED
. Game titles must examine the return code and be prepared to handle this condition.
Wired controllers are automatically activated when they are inserted. Wireless controllers are activated when the user
presses the START or Xbox Guide button to power on the controller.
Windows 8 (XInput 1.4), DirectX SDK (XInput 1.3)
| Header | XInput.h |
|---|---|
| Library | Xinput.lib |
| DLL | Xinput1_4.dll |
Source: Microsoft Documentation
dwUserIndex
- [in]
Index of the user's controller. Can be a value from 0
to 3
.
For information about how this value is determined and how the value maps to indicators on the controller,
see Multiple Controllers.dwReserved
- [in]
ReservedpKeystroke
- [out]
Pointer to an XInputKeystroke structure that receives an input event.ERROR_SUCCESS
.ERROR_DEVICE_NOT_CONNECTED
.SetLastError
to set the calling thread's last-error code.XInputKeystroke


Welcome to
My classroom
Get updates about your classroom
course
expand_more
Masters
Degree
Diploma
Certificate
Year
expand_more
1
2
3
4
message


Access Keys
Lists all existing access keys. Select an access key to view its details or revoke the access key.
Filter
Filter access keys by name
Access Keys
List of all issued and valid access keys.
| Name |
Date Created |
Description |
| {{key_name}} |
{{date_created}} |
{{description}} |
No access keys found
No matching access key found. Add a new access key.
Add access key


Tonya Wong Jewellery
{% block collection_link %}
{% endblock %}
Collection
Rings
Necklaces
Bracelets
Earrings
Miscellaneous
{% block about_link %}
{% endblock %}
About
{% block content %} {% endblock %}


--- layout: article title: "Required File Already in Use" last_updated: ---
This error is caused when the game fails to load a necessary file, which is in use by another program.
This error is caused when the game needs a file, but that is in-use by some other program.
If you encounter this error, you should make sure you don't have multiple instances of the game open, that could be interfering.
Otherwise, you should check if you have any program running that could possibly be using those files, or try to restart your computer and see if the issue persists.
In event that this fails, you may need to reinstall Minecraft.
As a last resort, you may change the work directory that Minecraft uses entirely.
Mojira Link: MCL-61


Dial-A-Cluster Generic Format¶
This is a multi-file format consisting of a zipped set of directories and comma separated value (CSV) files, where each directory provides a different type of information. The CSV files are grouped using a naming convention that relies on file extensions to differentiate the data types: .dac, .meta, .var, .time, and .dist. Other than the .dac file, which can have any name so long as it has a .dac extension, the names of the directories and all of the other files are fixed. At the top level, there is the .dac file and three directories named dist, time, and var. The dist directory contains files named sequentially as variable_1.dist, variable_2.dist, …, variable_n.dist, where n is the number of time series variables for each datapoint in the ensemble. The time directory contains files variable_1.time, variable_2.time, …, variable_n.time; and the var directory contains files variable_1.var, variable_2.var, …, variable_n.var. In addition, the var directory must contain the variables.meta file. The directory structure is shown in Figure 2.
.dac¶
Scalar data for the Metadata Table is contained in a single file with the .dac extension. The first row contains header information (variable names) for the table columns. The remaining rows are the values for these variables for each ensemble member. Each row is comma separated and ends with a new line (a CSV file). This file is at the same level as the directories dist, time, and var.
.dist¶
In the dist folder, there are variable_1.dist, variable_2.dist, …, variable_n.dist files. Each .dist file contains the all-to-all distance matrix comparing every ensemble member to each of the others, calculated using the correspond time series variable. These matrices are used to compute the visualization in the Scatterplot pane. The file variable_1.dist is the distance matrix calculated using the first variable defined in variables.meta. The .dist files have no header row. Given k ensemble members, the file will consist of k rows, each with k comma-delimited distance values. The rows and columns in these matrices are ordered according to order of the data points in the .dac file.
.time¶
In the time folder, there are variable_1.time, variable_2.time, …, variable_n.time files. These files contain the times when the corresponding temporal variables were sampled. For example the file variable_1.time contains the x-axis values for graphing the time sequence associated with the first variable in the variables.meta file. These files have no header row, consisting of just a single row of comma delimited values. The temporal units for these values are defined in the .meta file in the “Time Units” column.
.var¶
In the var folder, there are variable_1.var, variable_2.var, …, variable_n.var files. Here, the file variable_1.var contains the values (amplitudes in the Time Series Plot) for the first variable in the variables.meta. The .var files have no header row, containing a single row with comma delimited values for each data point, ordered according to the order given in the .dac fille. The units for these values are defined in the .meta file in the “Units” column.
.meta¶
The var folder also contains a file variables.meta, which defines the time series variable names shown in the Slider panel. The first row should consist of the headers: “Name,Time Units,Units,Plot Type”. The remaining rows define each of the time series variables (one per row), providing variable name, units for labeling the x and y axes in the time series plots, and the type of plot. “Curve” is the only option currently available for “Plot Type”.
Archiving in Windows¶
The files and subdirectories described above must be archived in a .zip file before import into the DAC model creation wizard. When creating the .zip file on Windows, do not zip from the level of an enclosing directory, but instead perform the zip with the three directories and the .dac file as the input elements. Also note that all time sequences for a given temporal variable MUST contain an identical number of samples. (Different time variables can have different number of samples, but the number of samples cannot vary within a specific variable.) The correct method for creating the archive is shown in Figure 3.
Archiving on Mac¶
On a Mac, it is easiest to archive the files from the command line. This avoids the inclusion of the Mac OS files .DS_store and __MACOSX, which will trigger errors when importing into the DAC model creation wizard. From the directory containing the .dac file and the dist, time, and var folders, use the command:
$ zip -r weather-dac-gen.zip . -x ".*" -x "__MACOSX"


-
Truck Driver in Oklahoma Bus Crash May Have Been 'Distracted'
abcnews.go.com
The driver of a tractor-trailer that crossed an interstate median and smashed into a bus carrying a college softball team told investigators he may ...
-
Tech review: This week's headlines
www.bbc.co.uk
India's space agency successfully sends a satellite to Mars, plus other news
-
Is this the kitchen of the future?
www.bbc.co.uk
Belgian designer Xavier Bonte has built a pod that he believes could be the kitchen of the future.
-
Suspects Sought After Ferguson, St. Louis Cops Shot
abcnews.go.com
Police are investigating whether two officer-involved shootings in St. Louis and its suburb of Ferguson are linked to protests over the shooting ...
-
Online anger at Emma Watson naked photo countdown hoax
www.bbc.co.uk
Facebook users are angry after a website that threatened to leak naked photos of Emma Watson turned out to be a viral marketing hoax.
-
3D virtual tours of ship developed
www.bbc.co.uk
A 3D virtual reality tour of the historic ship RRS Discovery is being developed in Dundee using video games technology.
-
Clintons Tweet Out Baby Pictures
abcnews.go.com
Hillary and Bill Clinton take to Twitter to show their joy and celebrate the birth of their granddaughter, Charlotte Clinton Mezvinsky.
-
Paypal deal enables Bitcoin payments
www.bbc.co.uk
A new partnership allows sellers of digital goods to accept payments in the virtual currency via the Paypal's payment hub
-
Samsung ends laptop sales in Europe
www.bbc.co.uk
Samsung is to stop selling laptops in Europe despite reports that demand for portable PCs is rising in mature markets.
-
Bus Crash That Killed 4 'Being Investigated Like a Homicide'
abcnews.go.com
The crash of a bus and a tractor-trailer that left four Texas college softball players dead and 15 others injured is "being investigated like a ...
-
Re/code sur Twitter : "#mustreads from other sites: The Unrepentant ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
Harry McCracken sur Twitter : "Form letter from AT&T says I'm one of its ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
Limb Paralysis in Kids Investigated After Virus Outbreak
abcnews.go.com
The Centers for Disease Control and Prevention is investigating whether limb weakness and paralysis in nine children could be connected to the ...
-
Bar at Center of UVA Abduction Case May Face Legal Trouble
abcnews.go.com
The restaurant where missing University of Virginia student Hannah Graham and Jesse Matthew allegedly went shortly before she disappeared could face ...
-
First-year students get free tablet
www.bbc.co.uk
The University of East London is giving a free tablet computer to all its first-year students starting courses this term.
-
Harry McCracken sur Twitter : "Between GeoCities, AltaVista, and now its ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
Bill and Hillary Clinton 'So Happy' to Be Grandparents
abcnews.go.com
The former first daughter gave birth to her first child. Her name is Charlotte Clinton Mezvinsky.
-
Facebook developing giant drones to 'fly for months'
www.bbc.co.uk
Facebook is looking at drones the size of passenger planes as it
-
Slender Man Stabbing Survivor's Parents Describe Ordeal
abcnews.go.com
The Slender Man stabbing case not only rocked this Wisconsin community, but shocked the entire country and others around the world. It would also put ...
-
Skills boost for creative industries
www.bbc.co.uk
A new generation of games designers, animators and visual effects artists is on its way after a training pledge from government and the creative ...
-
Harry McCracken sur Twitter : "Your historic image of the day: PC World's ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
FBI 'concerned' by phone encryption
www.bbc.co.uk
FBI boss says Apple and Google's smartphone encryption plans could mean criminals and terrorists are 'beyond the law'.
-
Chicago Flight Cancellations Overwhelm Airports, Travelers
abcnews.go.com
Nearly ten hours after the fire department extinguished a fire at a Federal Aviation Administration Air Traffic Control Center in Aurora, Illinois, ...
-
Google urged to change privacy rules
www.bbc.co.uk
EU data watchdogs move again to persuade Google to change its privacy policies which were consolidated two years ago.
-
Web attacks exploit Shellshock bug
www.bbc.co.uk
A series of attacks on websites and servers using the serious Shellshock bug has been spotted, say security experts.
-
Will Eric Holder's next job be on Wall Street?
www.linkedin.com
Holder is remembered in the news for his civil rights work.
-
Benedict Evans sur Twitter : "Last weekend, Apple sold phones whose CPUs ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
US allows use of drones for filming
www.bbc.co.uk
The US grants permission to six television and movie companies to allow for the use of drones to shoot film scenes.
-
Apple says bent iPhones are 'rare'
www.bbc.co.uk
Apple responds to claims that its new handsets are prone to bending by saying such damage would be "rare" during normal use.
-
BT claims big broadband speed boost
www.bbc.co.uk
Homes and businesses could see speeds rise considerably if a new technology being tested by BT comes to fruition.


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import viewmodels.AnswerRow @( row: AnswerRow, idPath: String, changeLink: Boolean = true )( implicit messages: Messages ) @answerWidth = @{ if(row.deleteUrl.isDefined) 3 else 5 } @if(row.isDeleteLinkRow) {


{% extends "hombe-base.html" %} {% block title%} {% endblock %}
Those are the songs:
{% for song in songs%}
{{song}}
{% endfor %}


Password Hashing¶
The data protection code base includes a package Microsoft.AspNet.Cryptography.KeyDerivation which contains cryptographic key derivation functions. This package is technically its own standalone component, has no dependencies on the rest of the data protection system, and can be used completely independently. (Though this package is technically not part of the data protection system, its source exists alongside the data protection code base as a convenience.)
The package currently offers a method KeyDerivation.Pbkdf2 which allows hashing a password using the PBKDF2 algorithm. This API is very similar to the .NET Framework’s existing Rfc2898DeriveBytes type, but there are three important distinctions:
- The KeyDerivation.Pbkdf2 method supports consuming multiple PRFs (currently HMACSHA1, HMACSHA256, and HMACSHA512), whereas the Rfc2898DeriveBytes type only supports HMACSHA1.
- The KeyDerivation.Pbkdf2 method detects the current operating system and attempts to choose the most optimized implementation of the routine, providing much better performance in certain cases. (On Windows 8, it offers around 10x the throughput of Rfc2898DeriveBytes.)
- The KeyDerivation.Pbkdf2 method requires the caller to specify all parameters (salt, PRF, and iteration count). The Rfc2898DeriveBytes type provides default values for these.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | using System;
using System.Security.Cryptography;
using Microsoft.AspNet.Cryptography.KeyDerivation;
public class Program
{
public static void Main(string[] args)
{
Console.Write("Enter a password: ");
string password = Console.ReadLine();
// generate a 128-bit salt using a secure PRNG
byte[] salt = new byte[128 / 8];
using (var rng = RandomNumberGenerator.Create())
{
rng.GetBytes(salt);
}
Console.WriteLine($"Salt: {Convert.ToBase64String(salt)}");
// derive a 256-bit subkey (use HMACSHA1 with 10,000 iterations)
string hashed = Convert.ToBase64String(KeyDerivation.Pbkdf2(
password: password,
salt: salt,
prf: KeyDerivationPrf.HMACSHA1,
iterationCount: 10000,
numBytesRequested: 256 / 8));
Console.WriteLine($"Hashed: {hashed}");
}
}
/*
* SAMPLE OUTPUT
*
* Enter a password: Xtw9NMgx
* Salt: NZsP6NnmfBuYeJrrAKNuVQ==
* Hashed: /OOoOer10+tGwTRDTrQSoeCxVTFr6dtYly7d0cPxIak=
*/
|
See also the source code for ASP.NET Identity’s PasswordHasher type for a real-world use case.


Bohrium
Field
Value
Name
Description
Email
Username
ID
URI
Created
Modified
Revision
Edit
Cancel
Save
Delete
Sign In
Username
Password


Editors note: This stories were recovered using the Internet Archive. The chronological order is likely incorrect.


<ANY class="lui animated up fade in"></ANY> <ANY class="lui animated _direction_ _animation_"></ANY>
lui animated {{direction}} {{animation}}
{{item}}


SNAC's research and development work is demonstrating the feasibility of separating the description of people from the description of the historical records that were created by them and that document their lives and work. This separation serves two complementary objectives: improving the economy and effectiveness of archival description and providing researchers with a novel tool that integrates access to distributed historical records and reveals the social context within which the records were created.
The descriptions that constitute the bulk of the source data for the work are in three forms:
Currently, SNAC is working with nearly 190,000 finding aids contributed by scores of repositories, 2.2 million MARC21 descriptions contributed by OCLC WorldCat, and approximately 500,000 original descriptions of people contributed by the British Library, the U.S. National Archives and Records Administration, the Smithsonian Institution Archives, and others.
Processing of the source data takes place in three steps.
Each step in the processing is performed by one of the three SNAC collaborators. The first step, extracting/assembling, is done at the Institute for Advanced Technology in the Humanities, University of Virginia. The second step, matching/combining, is performed at the School of Information, University of California, Berkeley. The third and last step, developing the public research tool, is being carried out at the California Digital Library, University of California Office of the President.
The U.S. National Endowment for the Humanities (2010-2012) and the Andrew W. Mellon Foundation (2012-2015) have funded the R&D.


This form will print the submitted details in the console to simulate "save". No input fields are required for submission.
ID:
Name:
Gender:
Age:
Phone:
State:
Zip Code:
Occupation:
Hourly Wage:
Submit


Please be ready by 6:50pm to join a Deathmatch server. We have 2 servers available but please
fill server #1 before starting in server #2.
Kill limit to signal deathmatch winner will be decided on the night depending on the amount of players
participating. Winners will be announced in the table below.


Encodes instance attributes.
The rbxattr format is defined for serializing instance attributes, encoding a Dictionary of attribute values.
| Direction | Type | Description |
|---|---|---|
| Decode | Dictionary | A dictionary of attribute names mapped to values. |
| Encode | Dictionary | A dictionary of attribute names mapped to values. |
The following value types are encoded and decoded:
Additionally, any Stringable value is encoded as a string, and any Numberable value is encoded as a double.


Interface DaemonInterface
The DaemonInterface contains the FCGI constants and defines a single blocking method to run the daemon.
Direct known implementers
PHPFastCGI\FastCGIDaemon\Daemon
public
|
integer |
FCGI_LISTENSOCK_FILENO
|
#
0
|
integer |
FCGI_VERSION_1
|
#
1
|
integer |
FCGI_BEGIN_REQUEST
|
#
1
|
integer |
FCGI_ABORT_REQUEST
|
#
2
|
integer |
FCGI_END_REQUEST
|
#
3
|
integer |
FCGI_PARAMS
|
#
4
|
integer |
FCGI_STDIN
|
#
5
|
integer |
FCGI_STDOUT
|
#
6
|
integer |
FCGI_STDERR
|
#
7
|
integer |
FCGI_DATA
|
#
8
|
integer |
FCGI_GET_VALUES
|
#
9
|
integer |
FCGI_RESPONDER
|
#
1
|
integer |
FCGI_AUTHORIZER
|
#
2
|
integer |
FCGI_FILTER
|
#
3
|
integer |
FCGI_KEEP_CONNECTION
|
#
1
|
integer |
FCGI_REQUEST_COMPLETE
|
#
0
|
integer |
FCGI_CANT_MPX_CONN
|
#
1
|
integer |
FCGI_OVERLOADED
|
#
2
|
integer |
FCGI_UNKNOWN_ROLE
|
#
3
|


Ann Summers reveals how often UK couples have sex
Thousands of people were asked to reveal their bedroom habits
by Neil ShawA survey of 2,000 people in relationships in the UK has revealed how often we have sex - and how often people enjoy it.
Retailer Ann Summers conducted the survey to take the sexual health of the nation as part of its Pleasure Positivity Project campaign - which found that women miss out on 1,734 orgasms in their lifetime.
As part of the project, this research is intended to find out why this gap exists by exploring British sexual habits and communication in the bedroom.

The study also found that one-in-ten Brits in relationships never have sex at all.
The research found that only two-in-five (42%) women feel fully satisfied after sex with their partner, compared to 52% of men.

When it came to sexual fantasies, trying a new position (24%) and using sex toys (20%) were the most common.
Laura Whittaker, Senior Manager at Ann Summers said of the research: "Launching the Pleasure Positivity Project was a big step forward for female sexual empowerment, but we knew there was much work to do to diagnose the Orgasm Gap problem.
"This research allows us to get an insight into how couples are communicating about sex, and the results show many issues that need to be addressed.
"The fact that one-in-five women don’t feel comfortable discussing the fact they’re missing out on orgasms means that they’re suffering in silence.
"We find it important to share the best ways of communicating and the Pleasure Positivity Project will focus on this, continuing to empower women when it comes to their sexual confidence."


--- layout: page title: About header-img: "img/about-bg.png" ---
Greetings! I am a New Jersey native living in San Francisco and embarking on the exciting journey that is a career in web development. I am 22 years old, and after graduating high school, working several jobs, spending a year studying engineering fundamentals, and moving across the country, I have finally stumbled upon the career path for me. I am super excited to begin this process and learn valuable skills along the way!


Arguably, the most important piece of code. The node represents the combination of all the elements required for drawing. It has a matrix as the minimum, but can also accept materials a piece of geometry, a shader and several textures and lights. It can have children but only one parent. Nodes form the hierarchy/scene graph for PXL. A node has a contract by default but this can be modifed or destroyed. A contract is between the node and a shader that is currently bound Reserved words, or rather, things that can be added to a node and have special meaning consist of
@constructor
if we add or remove nodes to this node or these above
add - Add things to this node, like geometry, materials or other nodes TODO - we need a flag set here for _dirty and then run shader_automagic again
remove - remove a thing from this node
private function to add nodes to nodes as children
clone - return a copy of this node, referencing any geometry. To duplicate geometry one needs to copy then add a fresh geometry with new to the new node.
del - Remove from the screen graph
_removeFromNode - internal. Called when a node is removed from another node
draw - Draw the current node and all its children - a recursive call TODO - we should cache the hierarchy, uniforms and textures separately for speed. We shouldnt need to rebuild the hierarchy each time in the main case so this would be a big saving.
front is an object that represents the cumulated hierarchy at draw time


Working with the Source Files
Working with the development code in the src
directory allows you to take advantage of the powerful features included in Kraken's Gulp.js build system.
Dependencies
Make sure these are installed first.
Quick Start
- In bash/terminal/command line,
cd
into thekraken
directory. - Run
npm install
to install the required files. - When it's done installing, run one of the task runners to get going:
gulp
manually compiles files and runs unit tests.gulp watch
automatically compiles files, runs unit tests, and applies changes using LiveReload.
Working with Sass
Kraken's Sass files are located in src
> sass
. Kraken's build system generates minified and unminified CSS files. It also includes autoprefixer, which adds vendor prefixes for you if required by the last two versions of a browser (you can configure browser support in gulpfile.js
).
_config.scss
The _config.scss
file contains variables for all of the colors, font stacks, breakpoints, and sizing used in Kraken. It also contains settings for the grid, and if you're using an icon font, the unicode character values and colors.
// Colors
$color-primary: #0088cc;
$color-black: #272727;
$color-white: #ffffff;
$color-success: #377f31; // Green
$color-danger: #880e14; // Red
$color-warning: #dba909; // Yellow
$color-code: #dd1144;
$color-gray-dark: #808080;
$color-gray-light: #e5e5e5;
// Font Stacks
$font-primary: "Helvetica Neue", Arial, sans-serif;
$font-secondary: Georgia, Times, serif;
$font-monospace: Menlo, Monaco, "Courier New", monospace;
// Breakpoints
$bp-xsmall: 20em;
$bp-small: 30em;
$bp-medium: 40em;
$bp-large: 60em;
$bp-xlarge: 80em;
// Sizing
$font-size-base: 100%;
$font-size-xlarge-screens: 125%;
$spacing: 1.5625em;
$container-width: 88%;
$container-max-width: 80em;
// Grid
$grid-margins: 1.4%;
$grid-sizes: (
// Grid width options
// Add/remove grid's as needed
// $name: $width
// $name - {string} class suffix
// $width - {string} width of the grid
fourth: 25%,
third: 33.33333333333%,
half: 50%,
two-thirds: 66.666666666667%,
three-fourths: 75%,
full: 100%
);
$grid-breakpoints: (
// Breakpoints at which to activate grid
// Add/remove breakpoints as needed
// ($breakpoint, $prefix-class, $include-offsets)
// $breakpoint - {string|variable} the breakpoint
// $prefix-class - {string|optional} class to be used with `.row` to activate grid
// $include-offsets - {boolean} if true, include offset classes at this breakpoint
($bp-xsmall, ".row-start-xsmall", false),
($bp-small, ".row-start-small", false),
($bp-medium, null, true),
);
$grid-dynamic: (
// Create grid classes that vary in size at different breakpoints
// Add/remove classes, breakpoints, and sizes as needed
// ($class, $breakpoint, $width)
// $class - {string} the grid class
// $breakpoint - {string|variable} the breakpoint
// $width - {string|variable} width of the grid at the breakpoint
(".grid-dynamic", $bp-xsmall, map-get($grid-sizes, half))
(".grid-dynamic", $bp-small, map-get($grid-sizes, third))
(".grid-dynamic", $bp-medium, map-get($grid-sizes, fourth))
);
// Icons
$icons: (
// Generate icon font classes
// Add/remove icons as needed
// $name, $character, $color
// $name - {string} the name of the icon (will be prefixed by `.icon-`)
// $character - {string} the unicode character for the icon
// $color - {string|variable|optional} the hex or named color of the icon
("logo", "\e600", null),
);
_mixins.scss
The _mixins.scss
file contains just a handful of mixins and functions to speed up development.
font-face
adds the@font-face
property.strip-unit
removes units (px, em, etc.) from numbers.calc-em
converts pixels to ems.
font-face
was forked from Bourbon, the world's best Sass library.
Components
The components
folder contains all of the Kraken components: the grid, button and form styling, and so on. The main.scss
file imports _config.scss
, _mixins.scss
, and the components for processing into a CSS file.
Working with SVG
SVG files placed in the src
> svg
directory will be compiled into a single SVG sprite called icons.svg
in the dist
> svg
directory. SVG files placed in a subdirectory of src
> svg
will be compiled into a single SVG sprite named after the subdirectory.
For example, svg
> portfolio
with compile into portfolio.svg
in the dist
> svg
directory.
Working with Icon Fonts
The _iconfonts.scss
component is commented out of main.scss
by default. Uncomment it to use icon fonts with Kraken.
The font-face
mixin generates the required @font-face
code for embedding fonts. You can assign names, unicode characters, and color values to your icons in the _config.scss
file.
Working with JavaScript
Kraken's JavaScript files are located in the src
> js
directory.
Files placed directly in the js
folder will compile directly to dist
> js
as both minified and unminified files. Files placed in subdirectories will also be concatenated into a single file.
For example, detects
> icon-fonts.js
and detects
> svg.js
compile into detects.js
in the dist
> js
directory.
Unit Testing
If you've written Jasmine unit tests for any of your scripts, place them in the test
> spec
directory and they will automatically run on compile.
Results are displayed in both the terminal window and test
> results
. You can see how much coverage each unit test provides in the test
> coverage
directory.
Continous Integration
Kraken includes a configuration file for Travis CI, a continuous integration service for GitHub.
If you sign-up and activate it for your repository, Travis CI will run your build and execute any processes to make sure everything is working as expected. This is particularly useful when working with a team or managing open source projects with multiple contributors.
The .travis.yml
file is pre-configured for Kraken's build system. Even if you add files or update the Gulp tasks, you shouldn't need to change anything for it to work.
GUI Source Compilers
If you would like the benefits of working with the source files, but aren't comfortable using terminal and command line code, there are a few GUIs that can help.
CodeKit and Hammer are two powerful Mac-only products that I used for some time. On Windows, I hear Prepos is both beautiful and delightful to use.
These tools can't replicate all of the features of the Gulp.js build system, but they come close.


 We claim no accuracy of the data output as this tool is an indicator only of what this could look like in production.
There are many factors which can influence the sizing of Veeam One and this is a simplified combination.
If your looking to build and implement a Veeam One Server contact your local System Engineer or Solutions Architect for some support and advice on your paritcular project. Visit
Veeam.com for more Veeam One information


| DOSE: T+ 0:00 |
20 mg |
oral |
2C-T-2 |
(pill / tablet) |
| T+ 4:00 |
20 mg |
insufflated |
DPT |
(powder / crystals) |
My impression of 2C-T-2ůmuch potential to it. I will compare its effects with those of 2C-T-7. In my opinion, the two substances only have surface similarities. Really, 2C-T-2 possessed an all-together different nature. How do they differ? Here are some random notes, in no particular order. Remember that 2C-T-2 can effect everyone differently. This experience was with twenty milligrams.
2C-T-2 hit me hard and fast, where as 2C-T-7 has a long and slow come up. Strangely, they both peak by the three-hour point. It was very nauseating in the beginning, more so than with 2C-T-7, and I vomited one hour after eating it. I actually ate very little that day, though I usually fast before taking psychedelics. I did feel FINE after that. Overall, the trip had spiritual, emotional and empathetic themes to it.
2C-T-2 was not a very visual psychedelic for me, and I seem to be in the minority here. I had very nice visuals, don't get me wrong, but NOTHING at all like I would get with 2C-T-7. The visual changes were not very detailed or complex, and they reminded me of a more colorful version of woodrose seeds. No 'psychedelic soup.' There were also no closed eye visuals (CEVs) to write home about.
A close friend had come over, and we went to a classical guitar concert. It was a fantastic experience! The 2C-T-2 seemed to do little to enhance the music, but the emotional effects produced from listening were almost overwhelming. The beauty of the first piece the artist played almost brought tears to my eyes. The trip was also very introspective in nature. I was lost in internal thought, rather than becoming enthralled with the beauty of my surroundings like I usually experience with 2C-T-7.
2C-T-2 dropped off abruptly after the peak, unlike the never-ending effects I experience with 2C-T-7. I feel this can have its advantages. At the four-hour point I was back home and pretty much down. I added twenty milligrams of DPT to the mixture (insufflated), and a most delightful effect was produced. Minor ego-loss and extreme visuals. DPT is not something I particularly enjoy alone, but in small amounts it makes a wonderful boost to the trail-off of a phenethylamine trip. I should also add that I never experienced any of the negative body-load that 2C-T-2 has been accused of producing. In fact, it seemed to be a bit easier on my body compared to 2C-T-7.
To sum up:
Twenty milligrams of 2C-T-2 provided me with a beautiful +3 psychedelic experience. It is definitely stronger on a milligram per milligram basis. Twenty milligrams of 2C-T-7 would not have been that strong. I was very amazed at how powerful the effects were and it was surprising how completely comfortable I felt in public. Very forgiving material. I disagree with an Internet posting that stated 2C-T-2 is a wannabe 2C-T-7. It was a unique, pleasant, and insightful experience. One that I was very grateful to have.
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.


Biafra: Nnamdi Kanu Speaks On Sponsorship Of IPOB
by Emmanuel EgobiambuThe leader of the banned Indigenous People of Biafra (IPOB), Nnamdi Kanu, has debunked rumours that Senator Enyinnaya Abaribe is sponsoring his group, Concise News reports.
This news medium understands that the pro-Biafra leader said this on Sunday during a live broadcast on Radio Biafra.
Senator Abaribe and two others stood as sureties for Kanu to be granted bail on health grounds by a Federal High Court sitting in Abuja on April 25, 2017.
Justice Binta Nyako, who presided over the case, granted the pro-Biafra leader bail on health grounds, after part of the charges filed against him and three others – were struck out by the court.
While ruling on the bail application, Justice Nyako banned Kanu from speaking with the press and taking part in any rally or joining a crowd of over 10 persons.
During the live broadcast, Kanu had also condemned the treatment meted out to the Convener of the Revolution Now movement Omoyele Sowore by the Department of State Services (DSS).
Also, he said Abaribe had never given a dime to the pro-Biafra group but that he loves him (Abaribe) as he speaks the truth always.
He denied reports that IPOB gets backing from some leaders in the South-East region, also.
“Have you seen anybody tough Abaribe?” he asked. “Tough him and you will see. Abaribe has not given IPOB one dime but the man speaks the truth, that is why I love Abaribe.”


-
Eggs, with tomatoes and mushrooms, on toast. http://bit.ly/1oMwP3R
-
Also coffee.
-
Always coffee.
-
“Infinite are the arguments of mages,”
― Ursula K. Le Guin, A Wizard of Earthsea
-
Gonna play some Risk tonight!
-
I don't know why, but I just remembered this tweet. https://twitter.com/rentzsch/status/602862585398992896
-
[Closed as Expected Behavior]
-
Bug #1234 "Computers are generally insecure. Please add more privacy protection." <>
-
The modern web and software landscape has conditioned people to just accept that computers are insecure, and broken.
-
From what I've seen, most people just expect that all things can be broken into. That's the scary part. There's no expectation of privacy.
-
The idea that the data on an iPhone can't be read, even by Apple or the FBI, is shocking to most people.
-
YouTube's goal recently seems to be to remind everyone that it controls everything and there's nothing we can do.
-
Team Four Star's YouTube channel was taken down with no notice.
-
CI is a magical thing. Especially when it auto-deploys.
-
The evolution of the web. http://fabianburghardt.de/webolution/
-
A perfect example of the UNIX philosophy on the web is Gravatar. It does one thing: profile images, and it does it well.
-
Coffee ✅
Eggs on toast ✅
Read some articles before work [In Progress]
Work [Next]
Book of Mormon [Tonight]
-
"Roll for gypsies"
-
I'm proud of this. "Fatal Python error: Cannot recover from stack overflow."
http://bit.ly/24g4bJf
-
Is there really no "equal sign" emoji?


With this interface, SMSServer can be instructed to call a specific URL with arguments once a message is sent or received (contributed by Ernas M. Jamil).
Starting from v3.4, the HTTP Interface class file has been pulled out of the main source directory. In order to install and use it, please do the following:
Http.java
(found in the /misc/SMSServer/Interfaces/Stable/
directory) to the /src/java/org/smslib/smsserver/interfaces/
directory.This interface requires the following configuration settings:
| Option | Description |
| get_url | The URL called when a message is received. |
| dlr_url | The URL called when a message is sent. |
| method | The HTTP method used to transfer the parameters. Use either POST or GET (the default). |
| encoding | The encoding of the parameters. ISO-8859-1 is the default. |
Example:
interface.0=http1, Http
http1.get_url=http://<IP_ADDRESS>/test.php?gatewayId=%gatewayId%&text=%text%&originator=%originator%
http1.dlr_url=http://<IP_ADDRESS>/dlr.php?gatewayId=%gatewayId%&text=%text%&from=%from%&refNo=%refNo%
Each HTTP call takes some (or all) of the interface's predefined arguments. Different arguments are available for inbound and outbound messages.
The URL arguments will be replaced with the real message values, according to the following table:
| Argument | Description |
| %gatewayId% | Replaced by the ID of the gateway which the message was received from |
| %encoding% | Replaced by the encoding of the inbound message |
| %date% | Replaced by the date when the originator has sent the message |
| %text% | Replaced by the message text itself |
| %pduUserData% | Replaced by the raw PDU data block of the message |
| %originator% | Replaced by the originator of the inbound message |
| %memIndex% | Replaced by GSM Modem/Phone memory index from which the message was read |
| %mpMemIndex% | Replaced by GSM Modem/Phone memory index for multipart messages |
The URL arguments will be replaced with the real message values, according to the following table:
| Argument | Description |
| %gatewayId% | Replaced by the ID of the gateway which the message was sent from |
| %encoding% | Replaced by the encoding of the inbound message |
| %date% | Replaced by the date when the message was sent |
| %text% | Replaced by the message text itself |
| %refNo% | Replaced by the RefNo of the message |
| %recipient% | Replaced with the recipient of the message |
| %from% | The "from" indication (if any) |
| %failureCause% | Replaced by the failure cause in case the message was not sent |
| %messageStatus% | Replaced by the message status |


uSDLC is an open source, platform independent application for use by all members of a software development project. It provides direct connections between vision, design and the production code. There are processes to support, but not enforce, the use of behaviour driver development. It supports living lean documentation practices.
uSDLC helps a software project be successful, more economical with a more reliable result without adding load to the members of the team.


--- layout: notebook title: Classification of Promotable Chess Pieces Notebook filename: chess_piece_classification.ipynb github: https://github.com/joeymeyer/raspberryturk/blob/master/notebooks/chess_piece_classification.ipynb ---
In this notebook, the goal is to use TensorFlow to train a convolutional neural network to classify images as either being a knight, bishop, rook, or queen. The goal is to use the model to determine which piece a player promoted their pawn to when playing against the Raspberry Turk. In most cases players will promote to a queen, so the robot could assume that, but there are many examples when underpromotion is a better option.
import project
from raspberryturk.core.data.dataset import Dataset
import numpy as np
import tensorflow as tf
from random import randint
MAX_DISPLAY_STEP = 1000
LEARNING_RATE = 1e-4
TRAINING_ITERATIONS = 10000
DROPOUT = 0.5
START_BATCH_SIZE = 5
END_BATCH_SIZE = 100
This dataset, dataset7.npz
, was created using create_dataset.py
. It includes 19,968 ZCA whitened grayscale images of only promotable pieces.
d = Dataset.load_file(project.path('data', 'processed', 'dataset7.npz'))
labels_count = d.y_train.shape[1]
image_size = 3600
image_width = 60
image_height = 60
labels = ['Knight', 'Bishop', 'Rook', 'Queen']
train_images = d.X_train
train_labels = d.y_train
validation_images = d.X_val
validation_labels = d.y_val
import matplotlib.pyplot as plt
from matplotlib import cm
piece_index = 0
img = train_images[piece_index].reshape(image_width, image_height)
plt.title(labels[train_labels[piece_index].argmax()])
plt.imshow(img, cmap=cm.gray)
plt.show()
The model consists of 2 convolutional layers, each with using ReLU activation function and a max pool layer after each one. This is followed by a fully connected layer with 1024 hidden units, and finally a softmax layer. Dropout is used for regularization, and loss is defined as the cross entropy between the prediction label vector and the correct label vector.
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def bias_variable(shape):
initial = tf.constant(0.1, shape=shape)
return tf.Variable(initial)
def conv2d(x, W):
return tf.nn.conv2d(x, W, strides=[1,1,1,1], padding='SAME')
def max_pool_2x2(x):
return tf.nn.max_pool(x, ksize=[1,2,2,1], strides=[1,2,2,1], padding='SAME')
x = tf.placeholder('float', shape=[None, image_size])
y_ = tf.placeholder('float', shape=[None, labels_count])
W_conv1 = weight_variable([5, 5, 1, 32])
b_conv1 = bias_variable([32])
image = tf.reshape(x, [-1, image_width, image_height, 1])
h_conv1 = tf.nn.relu(conv2d(image, W_conv1) + b_conv1)
h_pool1 = max_pool_2x2(h_conv1)
W_conv2 = weight_variable([5, 5, 32, 64])
b_conv2 = bias_variable([64])
h_conv2 = tf.nn.relu(conv2d(h_pool1, W_conv2) + b_conv2)
h_pool2 = max_pool_2x2(h_conv2)
W_fc1 = weight_variable([15 * 15 * 64, 1024])
b_fc1 = bias_variable([1024])
h_pool2_flat = tf.reshape(h_pool2, [-1, 15 * 15 * 64])
h_fc1 = tf.nn.relu(tf.matmul(h_pool2_flat, W_fc1) + b_fc1)
keep_prob = tf.placeholder('float')
h_fc1_drop = tf.nn.dropout(h_fc1, keep_prob)
W_fc2 = weight_variable([1024, labels_count])
b_fc2 = bias_variable([labels_count])
y = tf.nn.softmax(tf.matmul(h_fc1_drop, W_fc2) + b_fc2)
cross_entropy = -tf.reduce_sum(y_*tf.log(y))
train_step = tf.train.AdamOptimizer(LEARNING_RATE).minimize(cross_entropy)
correct_prediction = tf.equal(tf.argmax(y,1), tf.argmax(y_,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, 'float'))
predict = tf.argmax(y, 1)
Use stocastic gradient descent for faster training.
epochs_completed = 0
index_in_epoch = 0
num_examples = d.X_train.shape[0]
def next_batch(batch_size):
global train_images
global train_labels
global index_in_epoch
global epochs_completed
start = index_in_epoch
index_in_epoch += batch_size
if index_in_epoch > num_examples:
epochs_completed += 1
perm = np.arange(num_examples)
np.random.shuffle(perm)
train_images = train_images[perm]
train_labels = train_labels[perm]
start = 0
index_in_epoch = batch_size
assert batch_size <= num_examples
end = index_in_epoch
return train_images[start:end], train_labels[start:end]
Begin training, output the training/validation error at each display step.
init = tf.global_variables_initializer()
sess = tf.InteractiveSession()
sess.run(init)
saver = tf.train.Saver()
train_accuracies = []
validation_accuracies = []
x_range = []
display_step = 10
previous_best = 0.0
for i in range(TRAINING_ITERATIONS):
batch_size = int((END_BATCH_SIZE - START_BATCH_SIZE) * float(i) / TRAINING_ITERATIONS) + 5
batch_xs, batch_ys = next_batch(batch_size)
if i%display_step == 0 or (i+1) == TRAINING_ITERATIONS:
train_accuracy = accuracy.eval(feed_dict={x: batch_xs,
y_: batch_ys,
keep_prob: 1.0})
val_len = 1000
ind = randint(0, validation_images.shape[0] - val_len - 1)
val_images_batch = validation_images[ind:ind+val_len]
val_labels_batch = validation_labels[ind:ind+val_len]
validation_accuracy = accuracy.eval(feed_dict={x: val_images_batch,
y_: val_labels_batch,
keep_prob: 1.0})
print('training_accuracy / validation_accuracy => %.2f / %.2f for step %d'%(train_accuracy, validation_accuracy, i))
train_accuracies.append(train_accuracy)
validation_accuracies.append(validation_accuracy)
x_range.append(i)
if validation_accuracy > previous_best:
previous_best = validation_accuracy
if i%(display_step*10) == 0 and i:
display_step = min(MAX_DISPLAY_STEP, display_step * 10)
sess.run(train_step, feed_dict={x: batch_xs, y_: batch_ys, keep_prob: DROPOUT})
print("Finished training, best batch validation model accuracy: %.5f"%(previous_best))
Determine validation accuracy for the trained model, and produce a confusion matrix to visualize the effectiveness of training for the task of classification.
pred = sess.run(predict, feed_dict={x: validation_images, keep_prob: 1.0})
full_validation_accuracy = accuracy.eval(feed_dict={x: validation_images,
y_: validation_labels,
keep_prob: 1.0})
print "Validation accuracy: %.5f" % (full_validation_accuracy)
from sklearn.metrics import confusion_matrix
conf = confusion_matrix(validation_labels.argmax(axis=1), pred)
from helpers import plot_confusion_matrix
plot_confusion_matrix(conf, labels)
sess.close()


--- layout: default --- Hi! I'm Rinesch Murugathas I'm an aspiring UX Designer and Coder About Portfolio Contact


{% extends "base.html" %} {% block title %}
Medieval catalogues > REGISTRUM ANGLIE > Union catalogue by author and title, early 14th cent.
{% endif %}23 identified entries found.
All data was derived from the List of Identifications by Professor Richard Sharpe.
{% if not printing %}
A key to codes used in the List is available (opens in new tab).{% endif %}


You are joyfully invited
to the marriage ceremony of
Greg Opperman
&
Amanda Kidd Schall
On Saturday, September the 16th, 2017 at 2PM
At the
Mill Street Yacht Club
(our Home)
514 Mill Street
Worcester, Massachussetts


Hillary Clinton 'dumbfounded' UK won't release report on Russian influence - video
by BBC Radio 4 TodayHillary Clinton has said she is 'dumbfounded' as to why the UK government has not yet published a report on alleged Russian interference in British politics. Speaking to BBC's Radio 4 Today programme, the former US presidential candidate said: 'Every person who votes in this country deserves to see that report before your election happens.'


We have a Software Development Lifecycle (SDLC) Handbook along with many templates for each of the six stages.
SDLC Handbook
Help your organization achieve a sounder, better-documented, more secure software development process.
SDLC Templates
Over 15 SDLC templates to choose from to cater all your needs.
Templates
Choose from over 15 SDLC templates below.
Planning and Initiation
4 templates available
Requirements
2 templates available
Design
1 template available
Development
1 template available
Testing
4 templates available
Deployment
5 templates available
Services
A-Tek can provide you with the following services.
Agile Consulting
Mobile App Development
Website Development
Contact Us
We would love to hear from you!
Agile Consulting
A-Tek can guide your organization throughout all phases of the Agile methodology to build the software your organization desires. In addition, we can build an Agile/SDLC process that fits your organizations needs.
Mobile App Development
A-Tek can design and build mobile apps that will help enhance and grow your business.
Website Development
A-Tek can design and build your organizations website.


?IIIIIIIIIIIH
JL
1
MB
????
????
Ñ
0
cm
1
2
>3
4
5
6
7
cop
r
£
yrigh
\
9
1
t
reserved
0
I
msis®
York
X
Garden
HERBARIUM
OF
IOWA
STATE
UNIVERSITY
REVISION
OF
THE
GENUS
CENCHRUS
GenchPua
brownil
R*
&
S.
DETERMINED
BY
D.G.
DELISLE
<£*Vo^
BOTANICAL
[ƒ5
R
o
PLANTS
OF
HAITI
^0**-
SlsL-Vicinity
of
La
VallŽe,
Tortue
Island
No
//r/
EMERY
C.
LEONARD
f
,
Dec.
28
tQa8
No.
/
y
GENEVIEVE
M.
LEONARD)tollectors
to
Jan.
9,
9.
Ç9*9
01530209
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


| Content |
data class Content
Email message with separate body, header of the quote and citation itself. |
| QuoteHeader |
data class QuoteHeader
Represent header of the quote. |
| QuoteParser |
class QuoteParser
A parser to separate a quote from useful email content. |
| containInReplyToHeader |
fun containInReplyToHeader(msg: MimeMessage): Boolean
Check weather given message contains |
| getEmailText |
fun getEmailText(emlFile: File): String
Construct MimeMessage and then get the content of the text/plain part of this message. So if you already have MimeMessage object it is better to call getEmailText(MimePart) function in order to avoid additional costs. fun getEmailText(part: MimePart): String
Get the content of the text/plain part of the message. |
| getMimeMessage |
fun getMimeMessage(emlFile: File): MimeMessage
Construct |


Who's a star witness? Diplomat, Republican spar at Trump impeachment hearing
by Jan WolfeWASHINGTON (Reuters) - A U.S. diplomat testifying in a congressional impeachment inquiry into President Donald Trump rejected Republicans’ efforts to label him a “star witness” for Democrats, adding that he was not pushing for a particular outcome.
“I don’t consider myself a star witness for anything,” said Bill Taylor, the top U.S. diplomat in Ukraine, during the first public hearing in the impeachment probe.
“I’m not here to take one side or the other or to advocate any particular outcome,” Taylor added.
The remarks came in response to questioning by Republican U.S. Representative Jim Jordan, who sought to portray Taylor as lacking firsthand knowledge of Trump’s dealings with Ukraine, which are at the focus of the House of Representatives’ impeachment investigation.
Under questioning by Jordan, Taylor said he had never met Trump and was not on the July 25 phone call in which the American president asked his Ukrainian counterpart to open a corruption investigation into a political rival, Democratic former Vice President Joe Biden, and his son Hunter Biden.
“That’s what I can’t believe: You’re their star witness,” Jordan said. “I’ve seen church prayer chains that are easier to understand than this.”


Lost Cows
问题描述 :
Regrettably, FJ does not have a way to sort them. Furthermore, he’s not very good at observing problems. Instead of writing down each cow’s brand, he determined a rather silly statistic: For each cow in line, he knows the number of cows that precede that cow in line that do, in fact, have smaller brands than that cow.
Given this data, tell FJ the exact ordering of the cows.
输入:
* Lines 2..N: These N-1 lines describe the number of cows that precede a given cow in line and have brands smaller than that cow. Of course, no cows precede the first cow in line, so she is not listed. Line 2 of the input describes the number of preceding cows whose brands are smaller than the cow in slot #2; line 3 describes the number of preceding cows whose brands are smaller than the cow in slot #3; and so on.
输出:
样例输入:
5 1 2 1 0
样例输出:
2 4 5 3 1
解题代码:
/* @author: */ import java.util.Scanner; public class Main{ public static void main(String args[]) { int p[]=new int[8010]; int q[]=new int[8080]; int n,k; Scanner sc=new Scanner(System.in); n=sc.nextInt(); p[0]=0; for(int i=1;i< n;i++) { k=sc.nextInt(); for(int j=i;j>k;j--) p[j]=p[j-1]; p[k]=i; } for(int i=0;i< n;i++) q[p[i]]=i; for(int i=0;i< n;i++) System.out.printf("%d\n",q[i]+1); } }
3，求得所有的为的总和sum—->所有数的总和
printf( "Not Possible" );—->printf("impossible");
对吗？
这个还不错
即为打印出的组合的个数C(n,r)，假设print函数复杂度为O(1)
多谢支持！
通不过。
厉害，支持
能不能说一下tmp数组和solve都是干嘛的？
有意思，有难度
不错的网站，建议添加些比赛信息
真考人啊
很高兴你会喜欢这个网站。目前还没有一个开发团队，网站是我一个人在维护，都是用的开源系统，也没有太多需要开发的部分，主要是内容整理。非常感谢你的关注。
还是有些难度的！
Thanks for using the time to examine this, I truly feel strongly about it and enjoy finding out far more on this subject matter. If achievable, as you achieve knowledge


Franchising in Anime
Anime franchises often grow to be quite large, with various games, mangas, and/or light novels within one franchise. An anime is rarely the source for a franchise--most animes are adapted from mangas, the Japanese term for what we would consider comic books. Some of the most notable franchises include:
- Dragon Ball
- Pokemon (though whether or not this is an anime is debated upon by otakus and weebs alike)
- Naruto
- One Piece
- Gundam
- Fate/
...and many more. Notably, a large percentage current successdul franchises are from shonen anime.


Our device allows you to connect to all your several devices in order to remotely control/monitor from anywhere. These devices include most lights, music players, speakers. A door mechanism provides additional home security (see below)
See all the features that our device and software support below!
Our device uses a door mechanism that allows you to remotely view your door status
Using our app, you can remotely monitor/control your devices on your home network
Using our website, you can remotely monitor/control your devices on your home network
You can add a multitude of devices that connect over WiFi (bluetooth coming soon!)
""
""
""
""


I’ve been reading James Paul Gee’s book, The Anti-Education Era: Creating Smarter Students through Digital Learning. Without diving too deep into how I feel about it, let’s just say it hasn’t been an enjoyable read for me. I find myself disagreeing with Gee a lot and struggling to find his point in the narrative. I haven’t finished yet, so I’m holding out hope that it will eventually improve. Time will tell.
The middle of the book is about institutions of thought and their tendency to become “frozen” in practice. Legal systems, city planning, and the QWERTY keyboard are all discussed, but Gee points to the stagnation of universities as his main point. Originally, they were places of religious training, then secular training, and now, research with schooling on the side. Yet, we talk about them as if they are still mainly places of education.
I’m in marginal agreement with Gee’s assessment, but I differ on the way to improve the situation. Local connections are absolutely essential to growth, and the Internet can help us create and maintain those connections.
Rather than posting the full text here, I’ve written it in a Google Doc which will allow anyone to comment in context rather than at the end of this post. Please jump over to get the big picture.
Written on March 23rd , 2014 by Brian Bennett Categorized in: MAET
Leave a comment


Junsu confirmed as a judge on trot singing competition program 'Mister Trot'
by beansssSinger/musical actor Junsu has been confirmed as a judge on TV Chosun's 'Mister Trot'!
According to TV Chosun's side, Junsu came to the decision to appear as a judge on the singing competition program after hearing that many contestants in their twenties named Junsu as their role model. Junsu will be keeping an eye out for hidden talents with potential for growth among the younger contestants.
Meanwhile, 'Mister Trot' is the male counterpart of TV Chosun's 'Miss Trot', which came to an end at the center of massive attention back in May of this year. Other judges of 'Mister Trot' include Jang Yoon Jung, Park Hyun Bin, Jin Sung, Noh Sa Yeon, Lee Moo Song, and Shinji.
'Mister Trot' is set to premiere on January 2, 2020.


{% extends 'base_layout.html' %} {% block title %}Home{% endblock %} {% block content %}
This service allows users to easily and quickly test randomness of their binary data. The data are analysed with following statistical software.
RTT was developed at Centre for Research on Cryptography and Security, Faculty of Informatics, Masaryk University.
You can use our tool and servers to analyse your data. You don't have to install anything, you only need to provide data for analysis. The service is available only for authorized users, please write us to<EMAIL_ADDRESS>and we will create an account for you.
We do not store analysed data.
After the analysis, you can inspect the results and their interpretation on this page.