text stringlengths 348 101k |
|---|
through the peephole in my door, checking the angles before deciding to step foot outside. It was a lovely day, just on the far end of spring, before the true heat of summer would set in. It still rained fairly often, but every day without clouds was the sort of picturesque utopia that begged families to have picnics and days at the beach. I smiled up at the bright sunlight for a brief moment of happiness, collected my mail, and started toward my home. It wasn't until I was halfway to my door that my nerves bested me and I took the last ten or twelve steps at a run, spinning, and slamming the door closed. The blinds of a nearby window clattered loudly as the wall shook with the sudden slamming of the door.
I leaned against the door, sinking, and tried to reign the nerves in. The hardwood was cool against my pants, my head spun as it reeled with a sense of non-specific dread. I shook my head, feeling my shaggy hair shift and settle on my head. I repeated this a few times, simply to have the routine of it be something else I could focus on. My fingers danced absently on the floor for a moment, and I got unsteadily to my feet. My left knee hurt, and I winced. Probably overexerted myself again.
I gingerly recovered the mail I'd scattered all over the entryway, and brought it to the little office opposite the stairwell. Spam, spam, credit card application, spam, bank statement, hospital bill, and another four notices. "Christ, seriously?" I set the spam aside, and opened the hospital bill.
I'd been making some headway on my debt, but it seemed like even just a year in a hospital bed had done more to cripple me than the beating that'd put me there. I found my checkbook, wrote off the amount of this month's bill payment, signed it, and filled out the envelope. I frowned at my stamp roll, noticing I was running low again. I collected a stamp, placed it on the envelope, and dropped it into the overflowing outbox on the edge of my desk.
That settled, I shredded the credit card application, tossed the spam, and opened the four notices, reading them individually. The language was hauntingly familiar, explaining briefly what the notice was for, and what was going to happen. The form letter was almost always the same, only really explaining what the system was, and how it worked. The second page was the most important of the two, containing a little information on the person who'd filed to murder me. This batch was two young women named Elizabeth and Meaghann, a young man named Christopher, and the name of a television character. I frowned, and read over the last murderer again. From what I could tell, he'd had his name legally changed to that of a television show character, but was otherwise completely legitimate. Odd.
I got up, making pained noises as my left knee complained, and pinned them to my rear wall. The entire wall was plastered in notices. I hadn't bothered keeping count anymore, but it couldn't have been less than two hundred notices across the various bulletin boards. Each and every one a promise of someone who wanted me dead. I looked at the four new pages, swinging gently as they settled into their pegs, and blended seamlessly into the sea of paper.
Then I sat down, stared at the wall briefly, and cried. Emotions washed out in waves, ugly and calloused and hateful and wrong. There was something fundamentally wrong with such a world where this kind of thing was okay, and the ugly truth of that stared back at me.
I stayed that way for a long time, until shaking and crying and feeling miserable. When I finally sat up, stiff and pained from staying in one position for so long, evening light was waxing outside. I went back upstairs, showered, and dressed down for the night again. The last bit of twilight was fading away, and I found myself in bed early.
My thoughts drifted to my year in the hospital. It was my second year marked for death, and I'd already received tens of death notices. Without warning, one day while eating with my niece and her mother, I'd been attacked. Two men stood over me, pulled me to the ground, and beat me savagely. I remember little more than twisting, crying for help, and being hit. They kicked and punched, struggling to genuinely kill me as much as I struggled to get free. I wasn't sure if it was my screaming, or my niece's, but someone came and pulled the men off me.
While in the hospital, I learned why I had been receiving so many murder notices. A political activist group had chosen their method of protesting the murder law by all signing up, and naming me. Even if almost all of the murder notices were from passive protestors, it was also likely that even just a few |
(this.psPerfFilterTab);
this.psPerfFilterPanel.CurveRadius = 12;
this.psPerfFilterPanel.Font = new System.Drawing.Font("Arial", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.psPerfFilterPanel.ForeColor = System.Drawing.SystemColors.WindowText;
this.psPerfFilterPanel.HorzAlignment = System.Drawing.StringAlignment.Near;
this.psPerfFilterPanel.ImageItems.Disabled = -1;
this.psPerfFilterPanel.ImageItems.Highlight = -1;
this.psPerfFilterPanel.ImageItems.Normal = -1;
this.psPerfFilterPanel.ImageItems.Pressed = -1;
this.psPerfFilterPanel.ImageItems.PSImgSet = null;
this.psPerfFilterPanel.Location = new System.Drawing.Point(8, 8);
this.psPerfFilterPanel.Name = "psPerfFilterPanel";
this.psPerfFilterPanel.PanelGradient.End = System.Drawing.SystemColors.ActiveCaptionText;
this.psPerfFilterPanel.PanelGradient.Start = System.Drawing.SystemColors.ActiveCaptionText;
this.psPerfFilterPanel.PanelGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
this.psPerfFilterPanel.Size = new System.Drawing.Size(668, 280);
this.psPerfFilterPanel.TabIndex = 0;
this.psPerfFilterPanel.TextColors.Background = System.Drawing.SystemColors.ActiveCaptionText;
this.psPerfFilterPanel.TextColors.Foreground = System.Drawing.SystemColors.ControlText;
this.psPerfFilterPanel.TextHighlightColors.Background = System.Drawing.SystemColors.ControlText;
this.psPerfFilterPanel.TextHighlightColors.Foreground = System.Drawing.SystemColors.ActiveCaptionText;
this.filterToolTip.SetToolTip(this.psPerfFilterPanel, "Filters let you select which classes or namespaces or modules will (or will not) " +
"be profiled.");
this.psPerfFilterPanel.VertAlignment = System.Drawing.StringAlignment.Center;
this.psPerfFilterPanel.Expanded += new System.EventHandler(this.psPerfFilterPanel_Expanded);
//
// psPerfFilterTab
//
this.psPerfFilterTab.Controls.Add(this.psPerfClassFilterTab);
this.psPerfFilterTab.Controls.Add(this.psPerfModuleFilterTab);
this.psPerfFilterTab.Dock = System.Windows.Forms.DockStyle.Fill;
this.psPerfFilterTab.ItemSize = new System.Drawing.Size(62, 18);
this.psPerfFilterTab.Location = new System.Drawing.Point(2, 35);
this.psPerfFilterTab.Multiline = true;
this.psPerfFilterTab.Name = "psPerfFilterTab";
this.psPerfFilterTab.SelectedIndex = 0;
this.psPerfFilterTab.Size = new System.Drawing.Size(664, 242);
this.psPerfFilterTab.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight;
this.psPerfFilterTab.TabIndex = 0;
//
// psPerfClassFilterTab
//
this.psPerfClassFilterTab.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.psPerfClassFilterTab.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.psPerfClassFilterTab.Controls.Add(this.FunctionClassFilterGroupBox);
this.psPerfClassFilterTab.Location = new System.Drawing.Point(4, 22);
this.psPerfClassFilterTab.Name = "psPerfClassFilterTab";
this.psPerfClassFilterTab.Size = new System.Drawing.Size(656, 216);
this.psPerfClassFilterTab.TabIndex = 0;
this.psPerfClassFilterTab.Text = "Class Filter";
//
// FunctionClassFilterGroupBox
//
this.FunctionClassFilterGroupBox.Controls.Add(this.label9);
this.FunctionClassFilterGroupBox.Controls.Add(this.groupBox4);
this.FunctionClassFilterGroupBox.Controls.Add(this.funcClassFilter);
this.FunctionClassFilterGroupBox.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.FunctionClassFilterGroupBox.Location = new System.Drawing.Point(12, 0);
this.FunctionClassFilterGroupBox.Name = "FunctionClassFilterGroupBox";
this.FunctionClassFilterGroupBox.Size = new System.Drawing.Size(636, 208);
this.FunctionClassFilterGroupBox.TabIndex = 3;
this.FunctionClassFilterGroupBox.TabStop = false;
this.FunctionClassFilterGroupBox.Text = "Apply Class Filter";
this.filterToolTip.SetToolTip(this.FunctionClassFilterGroupBox, "Filters let you select which classes or namespaces or modules will (or will not) " +
|
I'm pointing out every headstone on the corner as I blur through another street in Southern California. Sometimes the nameless die making their names. In this life, everyone searches for respect. In this life, many sputter to their end or die trying and moving and failing.
Every block is gold. Every street is lined up with names. Everyone makes their voice known to the world. Every second counts to the nameless. I toast all those nameless and starved poets of hatred, violence and sin. I toast all those nameless driving towards their final breath. And why death? Because suicide is a dangerous and bizarre ride.
Today, the nameless holler for this and that on the corner block. Tonight, someone answers their pimp and visits a John who has murder on his mind. Tonight, the senseless violence picks a new victim. Tonight, the nameless fall. Will they be resurrected by God? Was God their friend, their rock, their hope, their survival? Or was God just watching and waiting? Today, will the nameless claim another street to build their names?
The nameless gesture madly into the cold, wild air. The nameless shout until their vocal cords strain. The nameless pop open their trunk and load up trap doors in their Monte Carlos. The nameless poke out their heads and see death and destruction in this living Hell. The nameless get overworked and loaded spilling their hatred, their guts, their basest emotions to live another day.
One day, I too was nameless. I took my bag with all of my beloved possessions and ran away. One day, I was nameless and forever speaking of my childhood veering away from me. One day, I gripped the cold median divider and prayed that someone would read my name on the freeway. Sometimes the nameless speak about a new day.
Flirt Mendoza had the whole world fit comfortably in her hand. She walked with a determined gait but she was so cool and so cruel. She towered over you even when she was away from you - she had that way about her. She would walk in a room and it was like she changed the time to her liking as everything would just fall into place for her. She never really tried to trick people into doing things. She hardly ever coerced, used pressure and intimidation. Her eyes would widen and heads would roll as if it was a logical extension of the Laws of Gravity.
Flirt smiled that deep smile with two dimples drilled to her cheeks forming at the mere hint of something pleasant. In that way and in only that way did you know what she might be up to. She was magical when it came to mobilizing people. She would have been a great musical conductor except having to gesticulate madly about with her arms would only wrinkle her perfectly pressed clothes. Since Flirt was at least 11, she was the most immaculate dresser that she knew - she got this from her parents.
Flirt came from a loving, working-class family from Miami. Her father was Half-Cuban, Half-Puerto Rican and her mother was from Ethipoia. Her father had a Car Wash business and in his youth, he helped build the buses that would be so prominent in the comings and goings of Earthlings. Her mother was a cashier at the City of Miami. She spoke with an accent but her English was flawless and beautiful. She would make her husband sleepy and comforted when she would speak softly to him before bed. Flirt's family was a happy family. Flirt however came up the hard way as well.
Flirt wasn't happy with the idea that the whole world did not fit perfectly into place. It did not make any sense that way to her. The world was chaotic, she thought - but this confusion made for a perfect playground. She wanted order but this did not matter to the billions she shared the Solar System with. The world was not very caring and this destroyed Flirt. She wanted this world to not only be her own but she wanted the world to agree with her in every way.
Today is 3035 and Flirt made it to the top of the food chain and enjoyed the perks of a life well-lived. Her hair was always perfectly silky. Her nails were chiseled and perfectly shaped and colored as if a sculptor set aside his craft to work full-time on the immaculate Ms. Mendoza. She had a team of stylists that worked on her look whenever she so desired. She was now, at 38 years old, the head of the Mercury Family - at the top of her game. But yesterday was a different story altogether. It was the story of a sad bird.
Flirt used to jump from bus to bus with an ounce of Heroine at a time. She stopped when she sold every last bag. She would then buy herself a nice meal, called up a couple of close friends or lovers or whoever else would sit down |
ByPropertyName = true, Mandatory = true,
ParameterSetName = GroupCatalogItemParameterSetName, HelpMessage = "The identity of the group to set.")]
[Alias("Id", "UserId")]
public Guid ObjectId { get; set; }
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserCatalogItemParameterSetName, HelpMessage = "The type of the catalog item(s).")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupCatalogItemParameterSetName, HelpMessage = "The type of the catalog item(s).")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = OtherCatalogItemParameterSetName, HelpMessage = "The type of the catalog item(s).")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserOwnerCatalogItemParameterSetName, HelpMessage = "The type of the catalog item(s).")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupOwnerCatalogItemParameterSetName, HelpMessage = "The type of the catalog item(s).")]
[PSArgumentCompleter("Database")]
public string ItemType { get; set; }
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserCatalogItemParameterSetName,
HelpMessage = "The catalog item path to search within, in the format:" +
"'DatabaseName.<optionalSecondPart>.<optionalThirdPart>.<optionalFourthPart>'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupCatalogItemParameterSetName,
HelpMessage = "The catalog item path to search within, in the format:" +
"'DatabaseName.<optionalSecondPart>.<optionalThirdPart>.<optionalFourthPart>'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = OtherCatalogItemParameterSetName,
HelpMessage = "The catalog item path to search within, in the format:" +
"'DatabaseName.<optionalSecondPart>.<optionalThirdPart>.<optionalFourthPart>'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserOwnerCatalogItemParameterSetName,
HelpMessage = "The catalog item path to search within, in the format:" +
"'DatabaseName.<optionalSecondPart>.<optionalThirdPart>.<optionalFourthPart>'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupOwnerCatalogItemParameterSetName,
HelpMessage = "The catalog item path to search within, in the format:" +
"'DatabaseName.<optionalSecondPart>.<optionalThirdPart>.<optionalFourthPart>'.")]
[ValidateNotNullOrEmpty]
public CatalogPathInstance Path { get; set; }
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserCatalogParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupCatalogParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = OtherCatalogParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserOwnerCatalogParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupOwnerCatalogParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = UserCatalogItemParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = GroupCatalogItemParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true,
ParameterSetName = OtherCatalogItemParameterSetName,
HelpMessage = "The permissions to set for the ACE. Possible values include: 'None', 'Read', 'ReadWrite'.")]
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = |
private void CopyBlockToTarget(byte* sourcePtr, byte* targetPtr, uint pitch)
{
for (int i = 0; i < BlockSize; i++)
{
*((ulong*)targetPtr) = *((ulong*)sourcePtr);
targetPtr += width;
sourcePtr += pitch;
}
}
private static ReadOnlySpan<byte> GetRunPattern(int patternI) =>
RunPatterns.AsSpan(patternI * BlockSize * BlockSize, BlockSize * BlockSize);
private static readonly byte[] RunPatterns = new byte[]
{
0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x39, 0x31,
0x29, 0x21, 0x19, 0x11, 0x09, 0x01, 0x02, 0x0A, 0x12, 0x1A,
0x22, 0x2A, 0x32, 0x3A, 0x3B, 0x33, 0x2B, 0x23, 0x1B, 0x13,
0x0B, 0x03, 0x04, 0x0C, 0x14, 0x1C, 0x24, 0x2C, 0x34, 0x3C,
0x3D, 0x35, 0x2D, 0x25, 0x1D, 0x15, 0x0D, 0x05, 0x06, 0x0E,
0x16, 0x1E, 0x26, 0x2E, 0x36, 0x3E, 0x3F, 0x37, 0x2F, 0x27,
0x1F, 0x17, 0x0F, 0x07, 0x3B, 0x3A, 0x39, 0x38, 0x30, 0x31,
0x32, 0x33, 0x2B, 0x2A, 0x29, 0x28, 0x20, 0x21, 0x22, 0x23,
0x1B, 0x1A, 0x19, 0x18, 0x10, 0x11, 0x12, 0x13, 0x0B, 0x0A,
0x09, 0x08, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x0F, 0x0E, 0x0D, 0x0C, 0x14, 0x15, 0x16, 0x17, 0x1F, 0x1E,
0x1D, 0x1C, 0x24, 0x25, 0x26, 0x27, 0x2F, 0x2E, 0x2D, 0x2C,
0x34, 0x35, 0x36, 0x37, 0x3F, 0x3E, 0x3D, 0x3C, 0x19, 0x11,
0x12, 0x1A, 0x1B, 0x13, 0x0B, 0x03, 0x02, 0x0A, 0x09, 0x01,
0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0 |
<reponame>AnywhereSoftware/X2<filename>Mario/Game.bas
B4J=true
Group=Default Group
ModulesStructureVersion=1
Type=Class
Version=6.47
@EndOfDesignText@
#if B4A
'ignore DIP related warnings as they are not relevant when working with BitmapCreator.
#IgnoreWarnings: 6
#end if
Sub Class_Globals
Public X2 As X2Utils
Private xui As XUI 'ignore
Public world As B2World
Public Ground As X2BodyWrapper
Private ivForeground As B4XView
Private ivBackground As B4XView
Public lblStats As B4XView
Public TileMap As X2TileMap
Public Const ObjectLayer As String = "Object Layer 1"
Private mMario As Mario
Private LeftEdge As X2BodyWrapper
Private ScoreFont As B4XFont
Private GameOverState As Boolean
Type EnemyTemplates (Template As X2TileObjectTemplate, XPosition As Float)
Private EnemyTemplates As List
Public Multitouch As X2MultiTouch
Public Panel1 As B4XView
End Sub
Public Sub Initialize (Parent As B4XView)
Parent.LoadLayout("1")
world.Initialize("world", world.CreateVec2(0, -20))
X2.Initialize(Me, ivForeground, world)
Dim WorldHeight As Float = 14 'the size of each tile will be approximately 1x1 meter
Dim WorldWidth As Float = WorldHeight * 1.3333
X2.ConfigureDimensions(world.CreateVec2(WorldWidth / 2, WorldHeight / 2), WorldWidth)
lblStats.TextColor = xui.Color_Black
lblStats.Color = 0x88ffffff
lblStats.Font = xui.CreateDefaultBoldFont(20)
'comment to disable debug drawing
'X2.EnableDebugDraw
LoadMarioGraphics
LoadBugGraphics
LoadTurtleGraphics
X2.SoundPool.AddSound("small jump", File.DirAssets, "small_jump.mp3")
X2.SoundPool.AddSound("big jump", File.DirAssets, "big_jump.mp3")
X2.SoundPool.AddSound("powerup", File.DirAssets, "powerup.mp3")
X2.SoundPool.AddSound("gameover", File.DirAssets, "game_over.mp3")
X2.SoundPool.AddSound("kick", File.DirAssets, "kick.mp3")
#if B4J
Dim fx As JFX
ScoreFont = fx.LoadFont(File.DirAssets, "fixedsys500c.ttf", 30)
#else if B4i
ScoreFont = Font.CreateNew2("FixedsysTTF", 30)
#else
ScoreFont = xui.CreateFont(Typeface.LoadFromAssets("Fixedsys500c.ttf"), 30 / xui.Scale)
#End If
Multitouch.Initialize(B4XPages.MainPage, Array(Panel1))
End Sub
#If B4i
Private Sub Panel_Multitouch (Stage As Int, Data As Object)
Multitouch.B4iDelegateMultitouchEvent(Sender, Stage, Data)
End Sub
#End If
Public Sub StartGame
If X2.IsRunning Then Return
X2.Reset
Multitouch.ResetState
X2.UpdateWorldCenter(X2.CreateVec2(X2.ScreenAABB.Width / 2, X2.ScreenAABB.Height / 2))
GameOverState = False
'music file removed to reduce the examples pack size.
'X2.SoundPool.PlayMusic(File.DirAssets, "main_theme.mp3")
TileMap.Initialize(X2, File.DirAssets, "mario 1.json", ivBackground)
Dim TileSizeMeters As Float = X2.ScreenAABB.Height / TileMap.TilesPerColumn
TileMap.SetSingleTileDimensionsInMeters(TileSizeMeters, TileSizeMeters)
TileMap.PrepareObjectsDef(ObjectLayer)
TileMap.SetBackgroundColor(0xFF008AFF)
'create mario
Dim bw As X2BodyWrapper = TileMap.CreateObject(TileMap.GetObjectTemplate(ObjectLayer, 3)) '3 = mario id in the map
' bw.Body.LinearDamping = 1
mMario.Initialize(bw)
LeftEdge = TileMap.CreateObject(TileMap.GetObjectTemplate(ObjectLayer, 2))
'create all other objects
Dim layer As X2ObjectsLayer = TileMap.Layers.Get(ObjectLayer)
EnemyTemplates.Initialize
For Each template As X2TileObjectTemplate In layer.ObjectsById.Values
If template.FirstTime And template.Name.Contains("template") = False Then
If template.Name.Contains("enemy") Then
'enemies are only created when they become |
, chemistry/metabolism},
language = {eng},
medline-pst = {ppublish},
owner = {emilio},
pii = {1016793108},
pmid = {21205906},
timestamp = {2012.06.21},
url = {http://dx.doi.org/10.1073/pnas.1016793108}
}
@ARTICLE{Wang2011a,
author = {<NAME> <NAME>. and <NAME>.},
title = {Replica Exchange with Solute Scaling: A More Efficient Version of
Replica Exchange with Solute Tempering (REST2)},
journal = {J. Phys. Chem. B},
year = {2011},
volume = {115},
pages = {9431--9438},
number = {30},
month = jun,
abstract = {A small change in the Hamiltonian scaling in Replica Exchange with
Solute Tempering (REST) is found to improve its sampling efficiency
greatly, especially for the sampling of aqueous protein solutions
in which there are large-scale solute conformation changes. Like
the original REST (REST1), the new version (which we call REST2)
also bypasses the poor scaling with system size of the standard Temperature
Replica Exchange Method (TREM), reducing the number of replicas (parallel
processes) from what must be used in TREM. This reduction is accomplished
by deforming the Hamiltonian function for each replica in such a
way that the acceptance probability for the exchange of replica configurations
does not depend on the number of explicit water molecules in the
system. For proof of concept, REST2 is compared with TREM and with
REST1 for the folding of the trpcage and ?-hairpin in water. The
comparisons confirm that REST2 greatly reduces the number of CPUs
required by regular replica exchange and greatly increases the sampling
efficiency over REST1. This method reduces the CPU time required
for calculating thermodynamic averages and for the ab initio folding
of proteins in explicit water.
A small change in the Hamiltonian scaling in Replica Exchange with
Solute Tempering (REST) is found to improve its sampling efficiency
greatly, especially for the sampling of aqueous protein solutions
in which there are large-scale solute conformation changes. Like
the original REST (REST1), the new version (which we call REST2)
also bypasses the poor scaling with system size of the standard Temperature
Replica Exchange Method (TREM), reducing the number of replicas (parallel
processes) from what must be used in TREM. This reduction is accomplished
by deforming the Hamiltonian function for each replica in such a
way that the acceptance probability for the exchange of replica configurations
does not depend on the number of explicit water molecules in the
system. For proof of concept, REST2 is compared with TREM and with
REST1 for the folding of the trpcage and ?-hairpin in water. The
comparisons confirm that REST2 greatly reduces the number of CPUs
required by regular replica exchange and greatly increases the sampling
efficiency over REST1. This method reduces the CPU time required
for calculating thermodynamic averages and for the ab initio folding
of proteins in explicit water.},
booktitle = {The Journal of Physical Chemistry B},
comment = {doi: 10.1021/jp204407d},
issn = {1520-6106},
owner = {emilio},
publisher = {American Chemical Society},
timestamp = {2011.09.27},
url = {http://pubs.acs.org/doi/abs/10.1021/jp204407d}
}
@ARTICLE{Wang2011b,
author = {<NAME> and <NAME> and <NAME>},
title = {Replica exchange with solute scaling: a more efficient version of
replica exchange with solute tempering (REST2).},
journal = {J Phys Chem B},
year = {2011},
volume = {115},
pages = {9431--9438},
number = {30},
month = {Aug},
abstract = {A small change in the Hamiltonian scaling in Replica Exchange with
Solute Tempering (REST) is found to improve its sampling efficiency
greatly, especially for the sampling of aqueous protein solutions
in which there are |
eventually captured and dragged off by the huntsmen,
their limbs and heads completely enveloped in the nets. Then the hunt
for the day being over, the party encamped, tents having been brought
from Allahapoor for their convenience; and the next day they returned to
the city.
"And how did you enjoy the sport?" asked the rajah, when Reginald and
his friend again had the honour of an audience.
"Very well indeed," was the answer.
"Then I will enable you to have some more," said the rajah. "I intend
to lead an expedition that will shortly set out from hence. It will
afford you better sport, for we shall have two-footed instead of
four-footed beasts to contend with. Some hill tribes to the north have
dared to come down and plunder and kill my people in the plain, and they
must be punished at all hazards. I shall be glad of your advice and
assistance, for you Englishmen take naturally to fighting, whether you
have been bred to it or not."
Reginald and Burnett thanked the rajah for the compliment he had paid
them, but gave no promise. However, they discussed the subject
afterwards in their own room, Dick Thuddichum being present.
"I think it will be wise to go," observed Captain Burnett. "We shall
thus have an opportunity of becoming better acquainted with the rajah,
and ingratiating ourselves, than we can here; and you will thus, on our
return, more easily obtain the secret the rajah possesses."
"Dick, are you inclined to come and help the rajah to fight these savage
mountaineers?" asked Reginald.
"I should think so! Wherever your honour goes, I am ready to follow,"
answered Dick.
"Well, then, Burnett, let us settle it. We will tell the rajah at once
that we are ready to help him to bring his rebellious subjects into
order."
The rajah was highly pleased. "If we succeed, you shall both be made
great khans, and become the possessors of untold wealth; that I promise
you!" he exclaimed.
The next day the army was on its march, the fighting-men scarcely so
numerous as the camp-followers. The first were fierce-looking
fellows,--partly cavalry and partly infantry. The cavalry were richly
accoutred; the officers in gorgeous uniforms, with spears, carbines, and
curved swords with jewelled hilts rattling by their sides. The
foot-soldiers had more of a fighting look, with their shields and
matchlocks. Then came elephants, carrying gaily-ornamented howdahs;
camels--some for riding and others employed as beasts of burden--and
horses innumerable; palanquins, conveying some of the female members of
the rajah's family, without whom the old chief never moved from home,--
the whole train forming an immense line of a mile or more in length.
Burnett and Reginald, as they surveyed it, could not help thinking that
an active foe might manage to get in the rear and plunder them before
the fighting-men could arrive for their defence.
The villagers, as the troops marched through the country, were thrown
into the greatest consternation; the soldiers, without ceremony, taking
whatever they wanted, and maltreating those who resisted them. The
villagers were also compelled to turn out and make the roads
practicable, or to cut new ones, to enable the army to advance. Men and
women were all set to work; the only pay they received being abuse and
punishment when they were unable to accomplish their tasks as rapidly as
the rajah desired.
The camp at night occupied a considerable extent of country; and as the
act of encamping occupied some time, a halt was called an hour or more
before sunset. The rajah's tent was pitched in the neighbourhood of an
immense banyan-tree; those of his chief officers and attendants being
placed, without much order, around it. Among these, one was
appropriated for the use of Reginald and his friend. As they lay
stretched at their length in the tent, smoking their hookahs, they could
not fail to be struck by the picturesqueness of the curious scene. Near
them lay the camels, chewing the cud in silence, and gracefully moving
their bending necks as they brought up the balls of food into their
mouths. The horses, picketed here and there, cropped their evening
meal; while the elephants stood silently at a distance, occasionally
moving their long trunks, or flapping their ears. The cries of the
birds and |
objectCollision(p) {
// chest opening
let openedChest = this.chests.find(c => !c.dead && cs.sameTile(c.pos, p.nextMove));
if (openedChest) {
openedChest.setOpen();
this.nbOpenedChests += 1;
this.addCombo();
this.pathFindingGrid.setWalkableAt(openedChest.pos.x, openedChest.pos.y, true);
// loot
if (Math.random() >= 0.5) {
if (Math.random() >= 0.5) { p.inventory.arrow += 1; }
else {
if (Math.random() >= 0.5) { p.inventory.bomb += 1; }
else { p.inventory.dynamite += 1; }
}
}
return true;
}
// monster killing
let targetedMonster = this.monsters.find(m => !m.dead && cs.sameTile(m.pos, p.nextMove));
if (targetedMonster) {
targetedMonster.hit();
// slash
if (targetedMonster.dead) {
this.pathFindingGrid.setWalkableAt(targetedMonster.pos.x, targetedMonster.pos.y, true);
this.nbKilledMonsters += 1;
this.addCombo();
}
return true;
}
}
playerCollision(p, from = undefined) {
if (p.objectCollision) return true;
if (p.playerCollision) return true;
let target = this.otherPlayerThan(p).find(op => cs.sameTile(p.nextMove, op.pos));
if (target) {
// is the target targeting us ?
if (cs.sameTile(target.nextMove, p.pos)) {
// Face bumpc
return true;
}
// is it a dead lock ?
if (from && from.publicId === target.publicId) return false;
// is the target able to move ?
if (this.playerCollision(target, (from ? from : p))) {
// no = hit
this.playersHits.push({
player: p,
target
});
return true;
}
}
let tileBumpPlayer = this.otherPlayerThan(p).find(op => cs.sameTile(p.nextMove, op.nextMove));
if (tileBumpPlayer) return true;
// // Advanced Movement
// if (this.gameMode == "versus") {
// // backHit
// if (cs.sameTile(p.nextMove, op.pos) && cs.sameTile(op.nextMove, cs.nextTile(p.nextMove, p.heading))) {
// op.dead = true
// return true
// }
// // dashHit
// if (cs.perpandicularHeading(p.heading, op.heading) && cs.sameTile(op.nextMove, cs.nextTile(p.nextMove, p.heading))) {
// op.dead = true
// return false
// }
// }
// }
}
movePlayers() {
this.alivePlayers.forEach(p => {
p.pos = p.nextPos;
p.nextMove = null;
p.nextPos = null;
p.objectCollision = false;
p.playerCollision = false;
if (p.selectedItem) {
p.inventory[p.selectedItem] -= 1;
p.selectedItem = "";
}
});
}
moveMonsters() {
// find movement
this.monsters.filter(m => !m.dead).forEach(m => {
m.findnextMove(this);
});
// Apply movement
this.monsters.filter(m => !m.dead && m.nextMove !== null).forEach(m => {
// directions
if (m.pos.x < m.nextMove.x) { m.heading = "right"; m.direction = "right"; }
if (m.pos.x > m.nextMove.x) { m.heading = "left"; m.direction = "left"; }
if (m.pos.y < m.nextMove.y) { m.heading = "down"; }
if (m.pos.y > m.nextMove.y) { m.heading = "up"; }
// Kill player
let killedPlayer = this.alivePlayers.find(p => cs.sameTile(p.pos, m.nextMove));
if (killedPlayer) {
// store hit to see if arrow kill him before
this.monstersHits.push({
monster: m,
player: killedPlayer
});
} else {
m.pos = m.nextMove;
}
m.nextMove = null;
});
}
moveObjects() {
// Bombs
this.items.filter(i => i.type == "bomb").forEach(b => { if (b.nextLoop()) this.explodeBomb(b); });
// Arrows
this.items.filter(i => i.type |
Jessie - posted on 06/12/2013 ( 108 moms have responded )
2
0
0
I'm 17 years old and 39 weeks with my baby girl. Its really hard right now because I should be happy but I'm not. My boyfriend who I thought would be there has basically left me and threatening me, telling me that if I don't name the baby's last name his that he is going I court and making her last name his. I haven't done anything to deserve this an I still love h so much and just wish that we could be a family. I don't really know what to do and he told me that if he isn't in the room that he will never forgive me. I'm really considering him being in the room and giving her his last name but I'm just so confused because I know we won't be together. I just need to know if I'm making the right decision by doing this...and should I even consider being with him again if he does come back?
- Helpful (63)
- Nice (4)
- Funny (5)
- Encouraging (13)
- Hugs (11)
-
108 CommentsView replies by
Bonnie - posted on 06/13/2013
1
0
0
I don't know of too many 17 yr old boys who make good responsible fathers, they're just not emotionally mature enough to be a parent. Not too many 17 yr old girls are either but the girls don't have much choice if they keep their babies. This is an age old dilemma....the boys don't have to stick around and usually don't. You just have to be strong and make your decisions based of the best interest of your child. It probably would be less confusing for her growing up if she has the same last name as you. She always has the choice later in life to take her father's name if she so chooses. When you are giving birth, you will want/need someone with you who is going to be loving and supportive as you will need some hand holding. If you guys are broke up, he may not be the best choice to have there as it will cause you some added emotional stress. Try to be rational while making decisions right now as you are most likely going to do the bulk of this on your own and need to be strong for your little girl. Good luck hun.
Danielle Elizabeth - posted on 06/13/2013
581
0
54
You don't have to use His last name and legally there is nothing he can do about it. Just make sure your making these choices for the right reasons. If your ex wishes to be a part of your child's life but not in a relationship then that's the first parenting lesson you will learn: you must put your child's best interests over your own feelings. Your daughter deserves a father and if he is willing to be that father then let your daughter have that. Now if your bf is totally unsupportive and not going to actually be a dad that's a different story. It sounds like watching his child being born is important to him and only you know if he wants to be there for the right reasons or not. I personally would allow him to be present at the birth if he wanted to be a father even if he didn't want to be in a relationship with me. That stuff is important to kids and might hurt your daughter if she knows her dad wasn't there to see her born. Just make sure your thinking of your child's well being before how hurt you are that you might not have the family you envisioned. Good luck and I hope it all works out
Michelle - posted on 06/13/2013
32
16
1
Don't give ur baby his last name. That is a privilege for a dad who man's up and marries the baby's mom. Make sure u finish school and use a really great birth control in the future such as an iud. You r giving birth not him, only let him in the room if u want him there.
Lori - posted on 06/13/2013
33
7
1
Giving birth is difficult enough, u don't need him in there causing u stress. Which I suspect he wants to be in there just to pressure u into naming her what he wants. Do not let him. U can tell the hospital who u want in there with u n they will keep him out if he tries. Stand ur ground n be strong. He may try to use ur emotions n feelings for him to weasel in but he has already shown u his true self. Believe me I've been there n I'm there now. I'm 37 22 weeks n my baby's father disappeared n u best believe that if he isn |
0pt}sequence\ xq{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardoublequoteclose}\isanewline
\isanewline
\isacommand{lemma}\isamarkupfalse%
\ list{\isacharunderscore}{\kern0pt}of{\isacharunderscore}{\kern0pt}lazy{\isacharunderscore}{\kern0pt}sequence{\isacharunderscore}{\kern0pt}map\ {\isacharbrackleft}{\kern0pt}simp{\isacharbrackright}{\kern0pt}{\isacharcolon}{\kern0pt}\isanewline
\ \ {\isachardoublequoteopen}list{\isacharunderscore}{\kern0pt}of{\isacharunderscore}{\kern0pt}lazy{\isacharunderscore}{\kern0pt}sequence\ {\isacharparenleft}{\kern0pt}map\ f\ xq{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ List{\isachardot}{\kern0pt}map\ f\ {\isacharparenleft}{\kern0pt}list{\isacharunderscore}{\kern0pt}of{\isacharunderscore}{\kern0pt}lazy{\isacharunderscore}{\kern0pt}sequence\ xq{\isacharparenright}{\kern0pt}{\isachardoublequoteclose}\isanewline
%
\isadelimproof
\ \ %
\endisadelimproof
%
\isatagproof
\isacommand{by}\isamarkupfalse%
\ {\isacharparenleft}{\kern0pt}simp\ add{\isacharcolon}{\kern0pt}\ map{\isacharunderscore}{\kern0pt}def{\isacharparenright}{\kern0pt}%
\endisatagproof
{\isafoldproof}%
%
\isadelimproof
\isanewline
%
\endisadelimproof
\isanewline
\isacommand{lemma}\isamarkupfalse%
\ map{\isacharunderscore}{\kern0pt}code\ {\isacharbrackleft}{\kern0pt}code{\isacharbrackright}{\kern0pt}{\isacharcolon}{\kern0pt}\isanewline
\ \ {\isachardoublequoteopen}map\ f\ xq\ {\isacharequal}{\kern0pt}\isanewline
\ \ \ \ Lazy{\isacharunderscore}{\kern0pt}Sequence\ {\isacharparenleft}{\kern0pt}{\isasymlambda}{\isacharunderscore}{\kern0pt}{\isachardot}{\kern0pt}\ map{\isacharunderscore}{\kern0pt}option\ {\isacharparenleft}{\kern0pt}{\isasymlambda}{\isacharparenleft}{\kern0pt}x{\isacharcomma}{\kern0pt}\ xq{\isacharprime}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\ x{\isacharcomma}{\kern0pt}\ map\ f\ xq{\isacharprime}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}yield\ xq{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardoublequoteclose}\isanewline
%
\isadelimproof
\ \ %
\endisadelimproof
%
\isatagproof
\isacommand{by}\isamarkupfalse%
\ {\isacharparenleft}{\kern0pt}simp{\isacharunderscore}{\kern0pt}all\ add{\isacharcolon}{\kern0pt}\ lazy{\isacharunderscore}{\kern0pt}sequence{\isacharunderscore}{\kern0pt}eq{\isacharunderscore}{\kern0pt}iff\ split{\isacharcolon}{\kern0pt}\ list{\isach |
<gh_stars>100-1000
//
// AsyncTests.HttpClientTests.Test.Simple
//
// Authors:
// <NAME> (<EMAIL>)
//
// Copyright 2012 Xamarin Inc. (http://www.xamarin.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Net.Http;
using NUnit.Framework;
namespace AsyncTests.HttpClientTests.Test {
using Framework;
using Addin;
[HttpClientTestFixture]
public class Simple {
public const string Text = "Hello World";
public static readonly byte[] Data;
static Simple ()
{
var random = new Random ();
Data = new byte [16384];
random.NextBytes (Data);
}
[RequestHandler]
public static void SimpleHtml_Handler (ServerContext ctx)
{
ctx.Response.StatusCode = 200;
using (var writer = new StreamWriter (ctx.Response.OutputStream))
writer.Write (Text);
}
[HttpClientTest]
public async Task GetStringAsync (HttpClientTestContext ctx)
{
var uri = Server.GetUri (SimpleHtml_Handler);
var text = await ctx.Client.GetStringAsync (uri).ConfigureAwait (false);
ctx.Assert (text, Is.EqualTo (Text));
}
[HttpClientTest]
public async Task GetByteArrayAsync (HttpClientTestContext ctx)
{
var uri = Server.GetUri (SimpleHtml_Handler);
var data = await ctx.Client.GetByteArrayAsync (uri).ConfigureAwait (false);
ctx.Assert (data, Is.EqualTo (Encoding.UTF8.GetBytes (Text)));
}
[HttpClientTest]
public async Task GetAsync (HttpClientTestContext ctx)
{
var uri = Server.GetUri (SimpleHtml_Handler);
var result = await ctx.Client.GetAsync (uri).ConfigureAwait (false);
ctx.AutoDispose (result);
ctx.Assert (result.StatusCode, Is.EqualTo (HttpStatusCode.OK));
var text = await result.Content.ReadAsStringAsync ();
ctx.Assert (text, Is.EqualTo (Text));
}
[RequestHandler]
public static void RandomData_Handler (ServerContext ctx)
{
ctx.Response.StatusCode = 200;
ctx.Response.OutputStream.Write (Data, 0, Data.Length);
ctx.Response.Close ();
}
[HttpClientTest]
public async Task RandomDataAsByteArray (HttpClientTestContext ctx)
{
var uri = Server.GetUri (RandomData_Handler);
var data = await ctx.Client.GetByteArrayAsync (uri).ConfigureAwait (false);
ctx.Assert (data, Is.EqualTo (Data));
}
[HttpClientTest]
public async Task ContentCopyToAsync (HttpClientTestContext ctx,
CancellationToken cancellationToken)
{
var uri = Server.GetUri (RandomData_Handler);
var response = await ctx.Client.GetAsync (
uri, HttpCompletionOption.ResponseHeadersRead,
cancellationToken).ConfigureAwait (false);
ctx.AutoDispose (response);
Server.CheckException (response);
ctx.Assert (response.IsSuccessStatusCode, Is.True, "#100");
using (var stream = new MemoryStream ()) {
await response.Content.CopyToAsync (stream);
var data = stream.GetBuffer ();
ctx.Expect (data, Is.EqualTo (Data), "#101");
}
}
[HttpClientTest]
public async Task ContentAsByteArray (HttpClientTestContext ctx,
CancellationToken cancellationToken)
{
var uri = Server.GetUri (RandomData_Handler);
var response = await ctx.Client.GetAsync (
uri, HttpCompletionOption.ResponseHeadersRead,
cancellationToken).ConfigureAwait (false);
ctx.AutoDispose (response);
Server.CheckException (response);
ctx.Assert (response.IsSuccessStatusCode |
Percentage(0.0);
pwmOne.Start();
pwmTwo = pwmController.OpenPin(PWM_TWO);
pwmTwo.SetActiveDutyCyclePercentage(0.0);
pwmTwo.Start();
pwmThree = pwmController.OpenPin(PWM_THREE);
pwmThree.SetActiveDutyCyclePercentage(0.0);
pwmThree.Start();
pwmFour = pwmController.OpenPin(PWM_FOUR);
pwmFour.SetActiveDutyCyclePercentage(0.0);
pwmFour.Start();
pwmFive = pwmController.OpenPin(PWM_FIVE);
pwmFive.SetActiveDutyCyclePercentage(0.0);
pwmFive.Start();
while (!cancellationTokenSourceInputs.IsCancellationRequested)
{
Values.LightSeconds = DateTime.Now.TimeOfDay.TotalSeconds;
Values.PeakTime = Values.LightsOnTime + (Values.LightsOffTime - Values.LightsOnTime) / 2.0;
if (!Values.LightingModeAuto)
{
Values.Power = 1;
pwmOne.SetActiveDutyCyclePercentage(Values.LightOutOneMax);
pwmTwo.SetActiveDutyCyclePercentage(Values.LightOutTwoMax);
pwmThree.SetActiveDutyCyclePercentage(Values.LightOutThreeMax);
pwmFour.SetActiveDutyCyclePercentage(Values.LightOutFourMax);
pwmFive.SetActiveDutyCyclePercentage(Values.LightOutFiveMax);
}
else if (Values.LightSeconds < Values.LightsOnTime || Values.LightSeconds > Values.LightsOffTime)
{
Values.Power = 0;
pwmOne.SetActiveDutyCyclePercentage(0);
pwmTwo.SetActiveDutyCyclePercentage(Values.LightOutNightLight);
pwmThree.SetActiveDutyCyclePercentage(0);
pwmFour.SetActiveDutyCyclePercentage(0);
pwmFive.SetActiveDutyCyclePercentage(0);
}
else
{
if (Values.LightSeconds < Values.PeakTime)
{
Values.Power = Math.Round((Values.LightSeconds - Values.LightsOnTime) / (Values.PeakTime - Values.LightsOnTime),3);
}
if (Values.LightSeconds > Values.PeakTime)
{
Values.Power = Math.Round((Values.LightSeconds - Values.LightsOffTime) / (Values.PeakTime - Values.LightsOffTime),3);
}
if (Values.LightingValue != Values.Power)
{
pwmOne.SetActiveDutyCyclePercentage(Values.Power * Values.LightOutOneMax);
pwmTwo.SetActiveDutyCyclePercentage(Values.Power * Values.LightOutTwoMax);
pwmThree.SetActiveDutyCyclePercentage(Values.Power * Values.LightOutThreeMax);
pwmFour.SetActiveDutyCyclePercentage(Values.Power * Values.LightOutFourMax);
pwmFive.SetActiveDutyCyclePercentage(Values.Power * Values.LightOutFiveMax);
}
}
Values.LightingValue = Values.Power;
await Task.Delay(1000*60*10, cancellationTokenSourceInputs.Token);
}
}
catch (Exception ex)
{
throw ex;
}
}
private async void CalibrationButton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
byte[] writeBuffer;
byte[] readBuffer = new byte[32];
cancellationTokenSourceCharts.Cancel();
Button b = (Button)sender;
Values.CalibrationDialog = b.Name.ToString();
int numOfSteps = 0;
switch (Values.CalibrationDialog)
{
case ("SalinityButton"):
Values.CalibrationMode = (int)CalibrationModes.Salinity;
numOfSteps = 3;
Values.CalibrationMessageOne = "Step 1 of 3: Calibrate Dry";
Values.CalibrationMessageTwo = "Step 2 of 3: Calibrate in 12,880 uS solution";
Values.CalibrationMessageThree = "Step 3 of 3: Calibrate in 80,000 uS solution";
Values.CalibrationDelay = 600;
break;
case ("ORPButton"):
Values.CalibrationMode = (int)CalibrationModes.ORP;
numOfSteps = 1;
Values.CalibrationMessageOne = "Step 1 of 1: Calibrate in 225 mV solution";
Values.CalibrationDelay = 900;
break;
case ("PHButton"):
Values.CalibrationMode = (int)CalibrationModes.PH;
numOfSteps = 3;
Values.CalibrationMessageOne = "Step 1 of 3: Calibrate in 7.00 solution";
Values.CalibrationMessageTwo = "Step 2 of 3: Calibrate in 4.00 solution";
Values.CalibrationMessageThree = "Step 3 of 3: Calibrate in 10.00 solution |
else if (value == 'mobile')
{
return (isMobile ? pathMobile : path) + folder + autoFile + fileExtension;
}
// missing, create using convention
else if (typeof value === 'undefined')
{
return (isMobileValue ? pathMobile : path) + folder + autoFile + fileExtension;
}
// if not default, create the path specified
else if (value != 'default')
{
return (isMobileValue ? pathMobile : path) + folder + value;
}
else if (value == 'default')
{
return (isMobileValue ? pathMobile : path) + defaultFile;
}
return '';
}
public init():void
{
this._onGaiaHistoryDelegate = <(event:IEvent, data?:any) => any>this.onDeeplink.bind(this);
this._onTransitionCompleteDelegate = <(event:IEvent, data?:any) => any>this.onTransitionComplete.bind(this);
this._onTransitionInCompleteDelegate = <(event:IEvent, data?:any) => any>this.onTransitionInComplete.bind(this);
this._onTransitionOutCompleteDelegate = <(event:IEvent, data?:any) => any>this.onTransitionOutComplete.bind(this);
}
public getBranch():string
{
if (this.parent != null)
{
return this.parent.getBranch() + "/" + this.id;
}
return this.id;
}
public getContent():AbstractPageController<any>
{
return this._controller;
}
public getData(key?:string, inherit:boolean = false):any
{
// return complete object
if (!key)
{
if (inherit && this.parent)
{
return $.extend({}, this.parent.getData(key, inherit), this.data);
}
else
{
return this.data;
}
}
// if no data, check possible with parent (else return null)
if (key && !this.data)
{
if (inherit && this.parent)
{
return this.parent.getData(key, inherit);
}
return null;
}
// return key
if (key in this.data) return this.data[key];
// return parent key
if (inherit && this.parent)
{
return this.parent.getData(key, inherit);
}
return null;
}
public preload():void
{
this.active = true;
var fileList = [
this.viewModelName,
this.controllerName
];
if (!ko.templates.hasOwnProperty(this.id) && !document.getElementById(this.id))
{
fileList.push('text!' + this.template);
}
var partialIds:Array<string> = [];
var partials = this.partials[isMobile ? 'mobile' : 'app'] || [];
for (var i = 0; i < partials.length; i++)
{
var partial = partials[i];
var partialId = partial.split('/').pop().split('.').shift();
if (!ko.templates[partialId] && !document.getElementById(partialId))
{
fileList.push('text!' + (this._node.template == 'mobile' && isMobile ? PageAsset.templateMobilePath : PageAsset.templatePath) + partial);
partialIds.push(partialId);
}
}
require(fileList, (viewModel:any, controller:any, template:string, ...args) =>
{
// store partials
for (var i = 0; i < args.length; i++)
{
ko.templates[partialIds[i]] = args[i];
}
this._controller = new controller.default();
this.onComplete();
if (template)
{
this._controller.setTemplate(template);
}
this._controller.setViewModel(new viewModel.default());
this.dispatchEvent(new AssetEvent(AssetEvent.ASSET_COMPLETE, this));
});
}
public initPage():void
{
if (!this.isTransitionedIn)
{
this._controller.init();
}
}
public transition():void
{
this._log.log('transition');
this._controller.transition();
}
public transitionIn():void
{
this._log.log('transitionIn');
if (!this.isTransitionedIn)
{
//initAssets();
this._controller.transitionIn();
}
else
{
this.onTransitionInComplete();
}
}
public transitionOut():void
{
this._log.log('transitionOut');
Gaia.history.removeEventListener(GaiaHistoryEvent.DEEPLINK, this._onGaia |
had seemed to be the centre of
almost every group about the bar that he had studied in detail. He was
a small, dapper, elegantly attired youth, with dark hair, and the
handsome, regularly carved face of an actor. He advanced with a smiling
countenance and unsteady step--his silk hat thrust back upon his head,
his frock-coat and vest unbuttoned, and his neckwear disarranged--and
saluted the company with amiability.
"I saw you up here, Father Forbes," he said, with a thickened and
erratic utterance. "Whyn't you come down and join us? I'm setting 'em up
for everybody. You got to take care of the boys, you know. I'll blow in
the last cent I've got in the world for the boys, every time, and they
know it. They're solider for me than they ever were for anybody. That's
how it is. If you stand by the boys, the boys'll stand by you. I'm going
to the Assembly for this district, and they ain't nobody can stop me.
The boys are just red hot for me. Wish you'd come down, Father Forbes,
and address a few words to the meeting--just mention that I'm a
candidate, and say I'm bound to win, hands down. That'll make you solid
with the boys, and we'll be all good fellows together. Come on down!"
The priest affably disengaged his arm from the clutch which the speaker
had laid upon it, and shook his head in gentle deprecation. "No, no; you
must excuse me, Theodore," he said. "We mustn't meddle in politics, you
know."
"Politics be damned!" urged Theodore, grabbing the priest's other arm,
and tugging at it stoutly to pull him down the path. "I say, boys" he
shouted to those below, "here's Father Forbes, and he's going to come
down and address the meeting. Come on, Father! Come down, and have a
drink with the boys!"
It was Celia who sharply pulled his hand away from the priest's arm
this time. "Go away with you!" she snapped in low, angry tones at the
intruder. "You should be ashamed of yourself! If you can't keep sober
yourself, you can at least keep your hands off the priest. I should
think you'd have more decency, when you're in such a state as this, than
to come where I am. If you've no respect for yourself, you might have
that much respect for me! And before strangers, too!
"Oh, I mustn't come where YOU are, eh?" remarked the peccant Theodore,
straightening himself with an elaborate effort. "You've bought these
woods, have you? I've got a hundred friends here, all the same, for
every one you'll ever have in your life, Red-head, and don't you forget
it."
"Go and spend your money with them, then, and don't come insulting
decent people," said Celia.
"Before strangers, too!" the young man called out, with beery sarcasm.
"Oh, we'll take care of the strangers all right." He had not seemed to
be aware of Theron's presence, much less his identity, before; but he
turned to him now with a knowing grin. "I'm running for the Assembly,
Mr. Ware," he said, speaking loudly and with deliberate effort to avoid
the drunken elisions and comminglings to which his speech tended, "and I
want you to fix up the Methodists solid for me. I'm going to drive over
to the camp-meeting tonight, me and some of the boys in a barouche, and
I'll put a twenty-dollar bill on their plate. Here it is now, if you
want to see it."
As the young man began fumbling in a vest-pocket, Theron gathered his
wits together.
"You'd better not go this evening," he said, as convincingly as he
knew how; "because the gates will be closed very early, and the
Saturday-evening services are of a particularly special nature, quite
reserved for those living on the grounds."
"Rats!" said Theodore, raising his head, and abandoning the search for
the bill. "Why don't you speak out like a man, and say you think I'm too
drunk?"
"I don't think that is a question which need arise between us, Mr.
Madden," murmured Theron, confusedly.
"Oh, don't you make any mistake! A hell of a lot of questions arise
between us, Mr. Ware," cried Theodore, with a sudden accession of vigor
in tone and mien. " |
<reponame>SimonDarksideJ/FizzyoFramework-Unity<gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Fizzyo
{
/// <summary>
/// This class manages the creation of sessions to send over data once the game is about to shut down.
/// It will post:
/// 1. Amount of sets in this session
/// 2. Amounts of breaths in this session
/// 3. Amount of good breaths in this session
/// 4. Amount of bad breaths in this session
/// 5. User's game score for this session
/// 6. Start time of the session
/// 7. End time of the session.
/// Note: Time represented as Unix Epoch time.
/// </summary>
public class FizzyoAnalytics
{
// Various session parameters
public int breathCount;
public int goodBreathCount;
public int badBreathCount;
public int startTime;
public int endTime;
private int _score;
/// <summary>
/// Add this to your game to update the score to send in the session.
/// </summary>
public int Score
{
get { return _score; }
set
{
if (value >= _score)
{
_score = value;
}
}
}
private int _setCount;
/// <summary>
/// Add this to your game to update the breathing set-count to send in the session.
/// </summary>
public int SetCount { get { return _setCount; } set { _setCount = value; } }
/// <summary>
/// Constructor for a session
/// </summary>
/// <param name="setCount">
/// Integer holding the amount of sets that are to be completed in this session
/// </param>
/// <param name="breathCount">
/// Integer holding the amount of breaths that are to be completed in each set
/// </param>
private void Start()
{
//Set start time
///
System.DateTime epochStart = new System.DateTime(1970, 1, 1, 0, 0, 0, System.DateTimeKind.Utc);
startTime = (int)(System.DateTime.UtcNow - epochStart).TotalSeconds;
}
private void OnApplicationFocus(bool focus)
{
if (focus)
{
}
else
{
}
}
///<summary>
///Add this to the logic which manages quitting the application to Create and Post sessions.
///</summary>
public void PostOnQuit()
{
#if !UNITY_EDITOR
Debug.Log("[FizzyoAnalytics] About to quit: creating session to upload.");
CreateSession();
Debug.Log("[FizzyoAnalytics] Session creation Finished.");
Debug.Log("[FizzyoAnalytics] Posting Analytics...");
PostAnalytics();
#endif
}
///<summary>
///Sets all the fields of the session before upload.
///</summary>
void CreateSession()
{
//All of the stats comes from the Breath Recognizer
goodBreathCount = FizzyoFramework.Instance.Recogniser.GoodBreaths;
breathCount = FizzyoFramework.Instance.Recogniser.BreathCount;
badBreathCount = FizzyoFramework.Instance.Recogniser.BadBreaths;
endTime = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
Debug.Log("Good breath count = " + goodBreathCount);
Debug.Log("Breath count = " + breathCount);
Debug.Log("Bad breath count = " + badBreathCount);
Debug.Log("Highest score = " + _score);
Debug.Log("Time in Unix epoch: " + endTime);
}
///<summary>
///Once the game shuts down, information from the session is sent to the server.
///
///It will send:
/// 1. Amount of sets in this session
/// 2. Amounts of breaths in this session
/// 3. Amount of good breaths in this session
/// 4. Amount of bad breaths in this session
/// 5. User-s highest score for this session
/// 6. Start time of the session
/// 7. End time of the session.
/// Note: Time represented as Unix Epoch time.
/// </summary>
public FizzyoRequestReturnType PostAnalytics()
{
|
, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 12, 12, 12, 135, 0, 0
DB 0, 0, 134, 12, 12, 12, 88, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29
DB 29, 29, 29, 29, 64, 12, 12, 12, 18, 0, 0, 0, 12, 12, 12, 64, 29, 28, 29, 29
DB 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 27, 12, 12, 12, 135, 0
DB 0, 0, 12, 12, 12, 64, 29, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29
DB 29, 29, 29, 29, 7, 12, 12, 12, 135, 17, 0, 0, 12, 12, 12, 64, 29, 28, 29, 29
DB 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 28, 158, 12, 12, 12, 20, 17
DB 0, 0, 12, 12, 12, 64, 29, 28, 29, 29, 29, 25, 24, 24, 24, 24, 24, 24, 24, 24
DB 24, 24, 24, 159, 12, 12, 12, 134, 247, 0, 0, 0, 12, 12, 12, 64, 29, 28, 29, 29
DB 29, 157, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 20, 18, 0
DB 0, 0, 12, 12, 12, 64, 29, 28, 29, 29, 29, 23, 12, 12, 12, 12, 12, 12, 12, 12
DB 12, 12, 12, 12, 12, 134, 20, 18, 0, 0, 0, 0, 12, 12, 12, 64, 29, 28, 29, 29
DB 29, 157, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 134, 222, 18, 0, 0, |
<issue_start><issue_comment>Title: All toolbar icons defaulting to the overflow in the toolbar when using Firefox on Windows
username_0: ## 📝 Provide detailed reproduction steps (if any)
For some reason, when using the latest Firefox version on Windows to view CKEditor5 all of the toolbar icons are defaulting to the overflow menu unexpectedly. We are recreating this in different ways, and it appears to happen when resizing the browser window, but all of the icons going into the overflow doesn't seem to be expected behavior. If the window size is smaller, some of the icons may need to move to the overflow as expected to accommodate the smaller sized window, but not all of the icons.
1. Open CKEditor in Firefox on Windows
2. Note if the icons appear as expected in the toolbar when the browser window is maximized
3. Change the browser window size so it's no longer maximized
### ✔️ Expected result
The icons in the toolbar should appear as expected and only go into the overflow menu if there isn't enough space for all of them.
### ❌ Actual result
All icons in the toolbar go into the overflow menu.
Here's a quick recording:
https://recordit.co/XebS7cTkno
## 📃 Other details
* Browser: Firefox 78.0
* OS: Windows 10
* CKEditor version: ckeditor5-editor-decoupled
* Installed CKEditor plugins:
"@ckeditor/ckeditor5-alignment": "^19.0.1"
"@ckeditor/ckeditor5-autoformat": "19.0.1"
"@ckeditor/ckeditor5-autosave": "^19.0.1"
"@ckeditor/ckeditor5-basic-styles": "^19.0.1"
"@ckeditor/ckeditor5-block-quote": "^19.0.1"
"@ckeditor/ckeditor5-clipboard": "^19.0.1"
"@ckeditor/ckeditor5-code-block": "^19.0.1"
"@ckeditor/ckeditor5-core": "^19.0.1"
"@ckeditor/ckeditor5-dev-utils": "^20.0.0"
"@ckeditor/ckeditor5-dev-webpack-plugin": "^20.0.0"
"@ckeditor/ckeditor5-editor-decoupled": "19.0.1"
"@ckeditor/ckeditor5-engine": "^19.0.1"
"@ckeditor/ckeditor5-essentials": "^19.0.1"
"@ckeditor/ckeditor5-font": "^19.0.1"
"@ckeditor/ckeditor5-heading": "^19.0.1"
"@ckeditor/ckeditor5-highlight": "^19.0.1"
"@ckeditor/ckeditor5-image": "^19.0.1"
"@ckeditor/ckeditor5-indent": "^19.0.1"
"@ckeditor/ckeditor5-inspector": "^2.1.0"
"@ckeditor/ckeditor5-link": "^19.0.1"
"@ckeditor/ckeditor5-list": "^19.0.1"
"@ckeditor/ckeditor5-media-embed": "^19.1.0"
"@ckeditor/ckeditor5-page-break": "^19.0.1"
"@ckeditor/ckeditor5-paragraph": "^19.1.0"
"@ckeditor/ckeditor5-paste-from-office": "19.0.2"
"@ckeditor/ckeditor5-react": "^2.1.0"
"@ckeditor/ckeditor5-remove-format": "^19.0.1"
"@ckeditor/ckeditor5-special-characters": "^19.0.1"
"@ckeditor/ckeditor5-table": "^19.1.0"
"@ckeditor/ckeditor5-theme-lark": "^19.1.0"
"@ckeditor/ckeditor5-typing": "^19.0.1"
"@ckeditor/ckeditor5-ui": "^19.0.1"
"@ckeditor/ckeditor5-upload": "^19.0.1"
"@ckeditor/ckeditor5-utils": "^19.0.2"
"@ckeditor/ckeditor5-widget": "^19.1.0"
---
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
<issue_comment>username_1: Hi, I just checked it with the latest Firefox and it works fine for me. Are you able to reproduce this issue in plain editor, without any styles customization? If it works fine, then I guess there is some problem with your app integration/styles, so there is not much we can do in such case.
Screencast from my editor:
","**/?(*.)+(spec|test).[tj]s?(x)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":[]," |
<issue_start><issue_comment>Title: Share PuppeteerPool between multiple PuppeteerCrawlers
username_0: Hi there,
Having a lot of fun learning about the Apify architecture! I have a use-case where I'm scraping ~20 different sites and want to manage concurrency to each of them separately (e.g. should always be 20 requests at once, but never more than `concurrencyFor(site)` to the same site).
It seems like it should be feasible to create my own PuppeteerPool and have PuppeteerCrawler use that instead of always creating a new one? I suppose if I were using Apify Cloud I could just have 20 crawlers, but trying to run this manually.
I may be thinking about things wrong, so any suggestions appreciated. Happy to try a PR if it makes sense. Thanks!
<issue_comment>username_0: This seems to work, though suspect there are other things to consider: https://github.com/username_0/apify-js/commit/4fb9df417346cdbd35986218d854e40fcdf83efe
<issue_comment>username_1: Hello there,
that's an interesting use case. Correct me if I'm wrong, but the task is to crawl 20 different sites at the same time, while being able to manage concurrency of each of the sites separately and also limit the total concurrency of all sites combined.
The important thing to realize is that concurrency is managed by the `AutoscaledPool` class, while `PuppeteerPool` only manages browsers and their tabs.
It goes like this: The crawler wants to run a new request and asks the `AutoscaledPool` if there are slots open. If there is a slot open, `AutoscaledPool` runs a new task to process the crawler's request. In processing of this request, a new browser tab may or may not be needed and a new browser may or may not be needed, depending on the configuration of `PuppeteerPool`. `PuppeteerPool` does not manage the task runs, it just provides browser resources when it gets told to do so.
Brainstorming your usecase now.
You should not run more than one `AutoscaledPool` per process, because it manages the concurrency using system readings, doing those 20 times instead of once would downgrade performance too much. So, you'll need to have one `AutoscaledPool` for the global concurrency limit.
You'll also need just one `PuppeteerPool`, because having 20 pools would spawn at least 20 browsers, which doesn't make sense from a performance point of view too.
Thus, having one `AutoscaledPool` and one `PuppeteerPool`, it makes sense using just one `PuppeteerCrawler`. There are other reasons that I won't list, but e.g.: `PuppeteerCrawler` cleans up after itself by destroying the `PuppeteerPool`. So if you manage to connect a pool to more crawlers, the first to finish would destroy your pool and the others would fail.
So, to conclude, the best way to go about this would be to run all the 20 sites using one `PuppeteerCrawler` and implement some custom magic to manage the individual site requests using the `options.gotoFunction`. Are you using `RequestList` or `RequestQueue`? How does the scraping process look?
I know this is not ideal, because the `handlePageFunction` is gonna be one ugly 20 item `switch` statement, but the way the SDK is wired up now, there's no way to reliably run 20 parallel crawlers in a single environment while sharing a browser pool and individually managing concurrency.
@mtrunkat @jancurn Ideas?
<issue_comment>username_0: Ah I see, thanks @username_1. That does validate a lot of the brainstorming I've been doing. I was also wondering about the implications of 20 AutoscaledPools so good to know that should be avoided. And I also considered the 20 item `switch` statement so helpful to know I wasn't crazy ending up there. Seems easy enough to address readability with some standardized page type info in `userData` and a sort of router using a map.
I am using a `RequestQueue` and scraping is generally: visit 1-20 list pages, enqueue detail page urls, then grab contents from all detail pages. Seems like I have two options... do some logic when popping from `RequestQueue` to see if the URL should be done now or requeued for later. Or have some logic that stores `Requests` elsewhere and only adds them to `RequestQueue` when there's capacity for that domain.
Appreciate the quick response and suggestions!
<issue_comment>username_0: The other thing I'm |
function readHumidity(): number {
return humidityReading
}
// Read Gas Resistance from sensor as a Number.
// Units for gas resistance are in Ohms.
export function readGasRes(): number {
if (gasInit == false) {
//clear()
//show("ERROR", 3, ShowAlign.Centre)
//show("Gas Sensor not setup!", 5, ShowAlign.Centre)
return 0
}
return gasResistance
}
// Read eCO2 from sensor as a Number (250 - 40000+ppm).
// Units for eCO2 are in ppm (parts per million).
export function readeCO2(): number {
if (gasInit == false) {
//clear()
//show("ERROR", 3, ShowAlign.Centre)
//show("Gas Sensor not setup!", 5, ShowAlign.Centre)
return 0
}
calcIAQ()
calcCO2()
let eCO2 = eCO2Value
return eCO2
}
// Return the Air Quality rating as a percentage (0% = Bad, 100% = Excellent).
export function getAirQualityPercent(): number {
if (gasInit == false) {
//clear()
//show("ERROR", 3, ShowAlign.Centre)
//show("Gas Sensor not setup!", 5, ShowAlign.Centre)
return 0
}
calcIAQ()
return iaqPercent
}
// Return the Air Quality rating as an IAQ score (500 = Bad, 0 = Excellent).
// These values are based on the BME688 datasheet, Page 11, Table 6.
export function getAirQualityScore(): number {
if (gasInit == false) {
//clear()
//show("ERROR", 3, ShowAlign.Centre)
//show("Gas Sensor not setup!", 5, ShowAlign.Centre)
return 0
}
calcIAQ()
return iaqScore
}
// Return the Air Quality rating as a text-based categorisation.
// These values are based on the BME688 datasheet, Page 11, Table 6.
export function getAirQualityText(): string {
if (gasInit == false) {
//clear()
//show("ERROR", 3, ShowAlign.Centre)
//show("Gas Sensor not setup!", 5, ShowAlign.Centre)
return "NULL"
}
calcIAQ()
return airQualityRating
}
// Calculate the Index of Air Quality score from the current gas resistance and humidity readings
// iaqPercent: 0 to 100% - higher value = better air quality
// iaqScore: 25 should correspond to 'typically good' air, 250 to 'typically polluted' air
// airQualityRating: Text output based on the iaqScore
export function calcIAQ(): void {
let humidityScore = 0
let gasScore = 0
let gasOffset = gasBaseline - gasResistance // Calculate the gas offset from the baseline reading
let humidityOffset = humidityReading - humidityBaseline // Calculate the humidity offset from the baseline setting
if (humidityOffset > 0) { // Different paths for calculating the humidity score depending on whether the offset is greater than 0
humidityScore = (100 - humidityBaseline - humidityOffset)
humidityScore = humidityScore / (100 - humidityBaseline)
}
else {
humidityScore = (humidityBaseline + humidityOffset)
humidityScore = humidityScore / humidityBaseline
}
humidityScore = humidityScore * (humidityWeighting * 100)
if (gasOffset > 0) { // Different paths for calculating the gas score depending on whether the offset is greater than 0
gasScore = gasResistance / gasBaseline
gasScore = gasScore * (100 - (humidityWeighting * 100))
}
else {
// Make sure that when gasOffset and humidityOffset are 0, iaqPercent is 95% - leaves room for cleaner air to be identified
gasScore = Math.round(70 + (5 * ((gasResistance / gasBaseline) - 1)))
if (gasScore > 75) {
gasScore = 75
}
}
iaqPercent = Math.trunc(humidityScore + gasScore) // Air quality percentage is the sum of the humidity (25% weighting) and gas (75% weighting) scores
iaqScore = (100 - ia |
conn.Exec("Invalid boolean value")
}
defer conn.Close()
}
*/
<commit_msg>defer in tests<commit_after>/*******************************************************************************
The MIT License (MIT)
Copyright (c) 2013-2014 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/
package firebirdsql
import (
"database/sql"
"testing"
"time"
)
func TestBasic(t *testing.T) {
conn, err := sql.Open("firebirdsql_createdb", "sysdba:masterkey@localhost:3050/tmp/go_test.fdb")
defer conn.Close()
if err != nil {
t.Fatalf("Error connecting: %v", err)
}
var sql string
var n int
sql = "SELECT Count(*) FROM rdb$relations where rdb$relation_name='FOO'"
err = conn.QueryRow(sql).Scan(&n)
if err != nil {
t.Fatalf("Error QueryRow: %v", err)
}
if n > 0 {
conn.Exec("DROP TABLE foo")
}
sql = `
CREATE TABLE foo (
a INTEGER NOT NULL,
b VARCHAR(30) NOT NULL UNIQUE,
c VARCHAR(1024),
d DECIMAL(16,3) DEFAULT -0.123,
e DATE DEFAULT '1967-08-11',
f TIMESTAMP DEFAULT '1967-08-11 23:45:01',
g TIME DEFAULT '23:45:01',
h BLOB SUB_TYPE 1,
i DOUBLE PRECISION DEFAULT 0.0,
j FLOAT DEFAULT 0.0,
PRIMARY KEY (a),
CONSTRAINT CHECK_A CHECK (a <> 0)
)
`
conn.Exec(sql)
_, err = conn.Exec("CREATE TABLE foo (a INTEGER)")
if err == nil {
t.Fatalf("Need metadata update error")
}
if err.Error() != "unsuccessful metadata update\nTable FOO already exists\n" {
t.Fatalf("Bad message:%v", err.Error())
}
// 3 records insert
conn.Exec("insert into foo(a, b, c,h) values (1, 'a', 'b','This is a memo')")
conn.Exec("insert into foo(a, b, c, e, g, i, j) values (2, 'A', 'B', '1999-01-25', '00:00:01', 0.1, 0.1)")
conn.Exec("insert into foo(a, b, c, e, g, i, j) values (3, 'X', 'Y', '2001-07-05', '00:01:02', 0.2, 0.2)")
err = conn.QueryRow("select count(*) cnt from foo").Scan(&n)
if err != nil {
t.Fatalf("Error QueryRow: %v", err)
}
if n != 3 {
t.Fatalf("Error bad record count: %v", n)
}
rows, err := conn.Query("select a, b, c, d, e, f, g, i, j from foo")
var a int
var b, c string
var d float64
var e time.Time
var f time.Time
var g time.Time
var i float64
var j float32
for rows.Next() {
rows.Scan(&a, &b, &c, &d, &e, &f, &g, &i, &j)
}
stmt, _ := conn.Prepare("select count(*) from foo where a=? and b=? and d=? and e=? and f=? and g=?")
ep := time.Date(1967, 8, 11, 0, 0, 0, |
, that's when he fails. As long as he's just himself, he knocks it out of the park. And there are even moments in those movies where his genuine comedic sensibilities come out. Like Jay and Bob going around to beat up Talkbackers. Or "He was the BOMB in Phantoms!" And of course, Stan Lee in Mallrats. It's the predictable fart jokes and winks to the audience that I can't stand. He's better than that sort of pandering and that he does it is the reason he loses credibility with critics. Red State could go either way as a result. If Smith's simply tapping into a part of himself he's never used as a writer before, the results could be spectacular. If he's TRYING to be scary, the results could be just as shitty as when he's trying to make people laugh, instead of just letting his inner monologue come out on the page and screen.
Dec. 24, 2010, 10:24 a.m. CST
CLERKS was probably overrated
by TitusPullo
at the time I was a clerk at a music/video store, so I got more of a kick out of it than most people. I probably wouldn't have bonded with it otherwise, it's hard to say. But it does boast the starting point of where the Star Wars movies were re-examined a bit, Lucas/The Emperor's New Clothes and all that, back when there was nothing but love for Star Wars and no great geek divide on it. And for the record, I only seem to enjoy Smith's movies when Jay & Silent Bob are in them.
Dec. 24, 2010, 10:28 a.m. CST
I like Most of Smith's movies
by nobodycallsmcflyachicken
but he sucked inn that sucky Die Hard 4
Dec. 24, 2010, 10:34 a.m. CST
"Bushy no bombing" - What genius!
by Professor_Monster
seriously - his little "evening with" presentations are just plain stupid and everytime I meet someone who likes them they always quote the same John Peters, Superman portion. That only shows me that the person I'm talking to doesn't read or they would have enjoyed William Goldman's books packed with such stories only delivered in wittier fashion. Smith should have stopped a long time ago and disappeared - i mean seriously ask yourself - would the world suffer without his movies?
Dec. 24, 2010, 10:47 a.m. CST
I´m tired of the trash-talking
by CuervoJones
That´s why i moved to Vern´s website. Cool people and movie lovers there.
Dec. 24, 2010, 11 a.m. CST
Degrassi Episodes were great wish fufillment
by Stormwatcher
Where he gets to make out with Sam his crush from the original series. Still love that the big thing in Hip Hop DRAKE is the wheelchair kid from that. Also...Red State has me intrigued.
Dec. 24, 2010, 11:02 a.m. CST
LEAVE KEVIN SMITH ALONE! BAHAHAHAHAHA!
by drakvlad
this is the funniest thing i've read all week. all i can picture is a youtube video of harry underneath a bed sheet, tear-streaked face. LEAVE KEVIN SMITH ALONE! give chris cocker a call, dude. he'll have some pointers for ya. LMFAO. poos Kevo.
Dec. 24, 2010, 11:07 a.m. CST
Twitter is for douchebags.
by F-18
Speaking of which, what happened to Hercules's Twitter contests? There hasn't been one since AICN's "update".
Dec. 24, 2010, 11:09 a.m. CST
unfuckingbelievable
by spidercoz
Holy crap some of you fucks really need to lighten up. Are you like this in your real lives too? Christ on a cock, I'd be ashamed to know a lot of you assholes.
kevin smith dishes out more trash talk than anyone out there. he's a big boy. i'm sure he's gonna be just fine.
Dec. 24, 2010, 11:17 a.m. CST
wouoldn't really call Dante a hero in the Clerks films
by nobodycallsmcflyachicken
he just does what people tell him to do. come to work on your day off. ok. stick with the 1 girl. ok. don't mary that girl and |
ing<EngineDecay>();
if (engineDecay != null)
{
engineDecay.symmetryMaintenanceCost = symmetryMaintenanceCost;
if(symmetryMaintenanceCost > 0)
{
engineDecay.Events["SymmetryMaintenance"].guiName = string.Format("Symmetry Maintenance: {0}", symmetryMaintenanceCost);
engineDecay.Events["SymmetryMaintenance"].guiActiveEditor = true;
}
}
else
{
UnityEngine.Debug.Log("EngineDecay found a counterpart without EngineDecay, it is really WEIRD!");
}
}
}
if (symmetryMaintenanceCost > 0)
{
Events["SymmetryMaintenance"].guiName = string.Format("Symmetry Maintenance: {0}", symmetryMaintenanceCost);
Events["SymmetryMaintenance"].guiActiveEditor = true;
}
}
if (prevEBTP != extraBurnTimePercent || prevEIP != extraIgnitionsPercent)
{
if (maintenanceCost > 0)
{
SymmetryMaintenance();
}
if (topBaseRatedTime != -1)
{
currentBaseRatedTime = ProbabilityLib.ATangentCumulativePercentArg(r, topBaseRatedTime);
setBurnTime = currentBaseRatedTime * (1 + extraBurnTimePercent * (topMaxRatedTime / topBaseRatedTime - 1) / 100);
usedBurnTime = 0;
}
if (baseIgnitions != -1)
{
setIgnitions = (int)(baseIgnitions + extraIgnitionsPercent * (maxIgnitions - baseIgnitions) / 100);
ignitionsLeft = setIgnitions;
}
UpdateIndicators();
maintenanceCost = 0;
Events["MaintenanceEvent"].guiActiveEditor = false;
prevEBTP = extraBurnTimePercent;
prevEIP = extraIgnitionsPercent;
failAtBurnTime = -1;
}
}
}
}
public void FixedUpdate()
{
if (PayToPlaySettings.Enable)
{
if (!inEditor)
{
bool railWarping = IsRailWarping();
int runningMode = RunningMode();
if (!railWarping)
{
if (wasRailWarpingPrevTick)
{
ignoreIgnitionTill = Time.time + 0.5f;
}
if (topBaseRatedTime != -1)
{
if (runningMode != -1)
{
if (!usingMultiModeLogic)
{
usedBurnTime += TimeWarp.fixedDeltaTime;
}
else
{
usedBurnTime += TimeWarp.fixedDeltaTime * decayRatesList[runningMode];
}
if (usedBurnTime <= setBurnTime)
{
usageExperienceCoeff = 0.1f * usedBurnTime / setBurnTime;
}
}
if (usedBurnTime > failAtBurnTime && nominal)
{
Failure();
usageExperienceCoeff = 0.3f;
}
if (ticksTillDisabling > 0)
{
CutoffOnFailure();
ticksTillDisabling--;
}
if (ticksTillDisabling == 0)
{
Disable();
ticksTillDisabling = -1;
}
}
if (Time.time >= ignoreIgnitionTill && baseIgnitions != -1 && nominal)
{
checkIgnition();
}
}
if (nominal && baseIgnitions != -1)
{
LastIgnitionCheck();
}
if (Time.time > holdIndicatorsTill)
{
UpdateIndicators();
}
wasRailWarpingPrevTick = railWarping;
modeRunningPrevTick = runningMode;
}
}
}
#region mass and cost modifiers implementation (game-called too)
float IPartMassModifier.GetModuleMass(float defaultMass, ModifierStagingSituation sit)
{
return defaultMass * (extraBurnTimePercent * maxMassRatedTimeCoeff + extraIgnitionsPercent * maxMassIgnitionsCoeff) / 100;
}
ModifierChangeWhen IPartMassModifier.GetModuleMassChangeWhen()
{
return ModifierChangeWhen.CONSTANTLY;
}
float IPartCostModifier.GetModuleCost(float defaultCost, ModifierStagingSituation sit)
{
if(procPart)
{
defaultCost = 0;
foreach (IPartCostModifier i in part.FindModulesImplementing<IPartCostModifier>())
{
if (i != this)
{
defaultCost += i.GetModuleCost(0, sit); //We assume there are no other cost modifiers besides procedural-related and EngineDecay
}
}
}
if (defaultCost != 0)
{
|
<issue_start><issue_comment>Title: RA: Failed to download: fetch$1 is not a function
username_0: <!--
Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting
Forum for questions: https://users.rust-lang.org/c/ide/14
Before submitting, please make sure that you're not running into one of these known issues:
1. local imports (`use` statements) don't work: #1165
2. local items don't work: #1559
3. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file)
4. some settings are required for procedural macro and build script support (`rust-analyzer.cargo.loadOutDirsFromCheck`, `rust-analyzer.procMacro.enable`): #6448
5. some platform-specific imports are not resolved: #6038
6. the official `rust-lang.rust` VS Code extension conflicts with `rust-analyzer`: #6463
Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3.
-->
After upgrading to latest nightly (v0.3.409-nightly) my Vscode failed to download the language server binary and shows `Failed to download: fetch$1 is not a function` error popup.
I've tried the "Update Github Auth Token" and use my personal account token but the error persist.
RA client log:
```
DEBUG [12/8/2020, 9:41:49 AM]: Issuing request for released artifacts metadata to https://api.github.com/repos/rust-analyzer/rust-analyzer/releases/tags/nightly
ERROR [12/8/2020, 9:45:42 AM]: [TypeError: fetch$1 is not a function
at Object.fetchRelease (/home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:17893:28)
at /home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:18130:26
at downloadWithRetryDialog (/home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:18277:26)
at bootstrapExtension (/home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:18129:27)
at bootstrap (/home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:18105:11)
at async tryActivate (/home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:18028:24)
at async activate (/home/asd/.vscode/extensions/matklad.rust-analyzer-0.3.409-nightly/out/src/main.js:18002:5)
at async Promise.all (index 0)]
```
_Copied from https://users.rust-lang.org/t/ra-failed-to-download-fetch-1-is-not-a-function/52464._
<issue_comment>username_1: Also getting this on `nightly`-- it's basically dead in the water atm.
<issue_comment>username_0: This issue is introduced in 31f50446ac782e5ee78429616e91b2a0afc2af24.
Maybe something related to rollup. https://github.com/rust-analyzer/rust-analyzer/blob/dfd0626dbfea6816d38e6f72ce84f567877603e7/editors/code/src/net.ts#L1-L3?
<issue_comment>username_0: ```
diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts
index 9ba17b7b5..22cb38552 100644
--- a/editors/code/src/net.ts
+++ b/editors/code/src/net.ts
@@ -1,6 +1,7 @@
// Replace with `import fetch from "node-fetch"` once this is fixed in rollup:
// https://github.com/rollup/plugins/issues/491
-const fetch = require("node-fetch") as typeof import(" |
<issue_start><issue_comment>Title: 'mounted' hook sometimes not called with vue-compat
username_0: **Module versions:**
- `vue`: 3.1.4
- `@vue/compat`: 3.1.4
- `vue-i18n`: 8.15.0
**Description**
I'm trying to migrate my Vue 2 app to Vue 3, and I would like to do this progressively using [@vue/compat](https://www.npmjs.com/package/@vue/compat). Here is a simple example app:
```javascript
import Vue, {configureCompat} from "@vue/compat";
import VueI18n from "vue-i18n";
Vue.use(VueI18n);
// Enable retro-compatibility with Vue 2.
configureCompat({
"MODE": 2
});
Vue.component("Test", {
"created": () => console.log("created"),
"mounted": () => console.log("mounted"),
"template": "<h1>{{ $t('TEST') }}</h1>"
});
new Vue({
"el": "#app",
"i18n": new VueI18n({
"messages": {
"en": {
"TEST": "Test"
}
},
"locale": "en"
}),
"template": "<test />"
});
```
Everything works as expected so far: the app is showing "Test", and both `created` and `mounted` hooks are called.
Now, if I modify the `Test` component to override some messages in that component:
```javascript
Vue.component("Test", {
"created": () => console.log("created"),
"mounted": () => console.log("mounted"),
"i18n": {
"messages": {
"en": {
"TEST": "Hello world!"
}
}
},
"template": "<h1>{{ $t('TEST') }}</h1>"
});
```
Now it correctly shows "Hello world", but for a reason I ignore the `mounted` hook is not called anymore, only `created` is called. You can even try to set `i18n` to an empty object, `mounted` is not called either:
```javascript
Vue.component("Test", {
"created": () => console.log("created"),
"mounted": () => console.log("mounted"),
"i18n": {},
"template": "<h1>{{ $t('TEST') }}</h1>"
});
```
**Expected behavior**
App should show "Hello world!", and both `created` and `mounted` hooks should be called.
I'm stuck with this for days, any help would greatly be appreciated!<issue_closed>
<issue_comment>username_1: Sorry, late my reply
`@vue/compat` core is Vue 3 base, so you need to use vue-i18n v9 with legacy mode.
vue i18n v9 legacy mode is vue-i18n v8.x compatible
please try to use it
thanks!
<issue_comment>username_2: Thanks for the answer @username_1, but actually `@vue/compat` is supposed to run in Vue 2 environment to help migrating to Vue 3 progressively. If we switch to `vue-i18n` v9, we would have the following code:
```javascript
import Vue, {configureCompat} from "@vue/compat";
import {createI18n} from "vue-i18n";
configureCompat({
"MODE": 2
});
Vue.component("Test", {
"created": () => console.error("created"),
"mounted": () => console.error("mounted"),
"template": "<h1>{{ $t('TEST') }}</h1>",
"i18n": {
"messages": {
"en": {
"TEST": "Hello world!"
}
}
}
});
new Vue({
"el": "#app",
"i18n": createI18n({
"messages": {
"en": {
"TEST": "Test"
}
},
"locale": "en"
}),
"template": "<test />"
});
```
Which gives a `$t is not a function` error since we should call `Vue.use(VueI18n);`, which does not seem to be possible with `vue-i18n` v9 (there is no such `VueI18n` anymore). How are we supposed to handle this?
<issue_comment>username_1: We are providing `vue-i18n-bridge` for vue 3 migration.
You can use it with vue-i18 |
D => m_axi_rdata(31),
Q => \skid_buffer_reg_n_0_[31]\,
R => '0'
);
\skid_buffer_reg[32]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(32),
Q => \skid_buffer_reg_n_0_[32]\,
R => '0'
);
\skid_buffer_reg[33]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(33),
Q => \skid_buffer_reg_n_0_[33]\,
R => '0'
);
\skid_buffer_reg[34]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(34),
Q => \skid_buffer_reg_n_0_[34]\,
R => '0'
);
\skid_buffer_reg[35]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(35),
Q => \skid_buffer_reg_n_0_[35]\,
R => '0'
);
\skid_buffer_reg[36]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(36),
Q => \skid_buffer_reg_n_0_[36]\,
R => '0'
);
\skid_buffer_reg[37]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(37),
Q => \skid_buffer_reg_n_0_[37]\,
R => '0'
);
\skid_buffer_reg[38]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(38),
Q => \skid_buffer_reg_n_0_[38]\,
R => '0'
);
\skid_buffer_reg[39]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(39),
Q => \skid_buffer_reg_n_0_[39]\,
R => '0'
);
\skid_buffer_reg[3]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(3),
Q => \skid_buffer_reg_n_0_[3]\,
R => '0'
);
\skid_buffer_reg[40]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(40),
Q => \skid_buffer_reg_n_0_[40]\,
R => '0'
);
\skid_buffer_reg[41]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(41),
Q => \skid_buffer_reg_n_0_[41]\,
R => '0'
);
\skid_buffer_reg[42]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
D => m_axi_rdata(42),
Q => \skid_buffer_reg_n_0_[42]\,
R => '0'
);
\skid_buffer_reg[43]\: unisim.vcomponents.FDRE
port map (
C => \out\,
CE => \^s_ready_i_reg_0\,
|
import * as React from "react"
import { Typeahead } from "../shared/molecules/TypeAhead"
import { TextField } from "../shared/molecules/TextField"
import { EditFormLayout } from "../shared/organisms/EditFormLayout"
import { showEvent, normalStatus } from '../../services/service.referential';
import { DropDownField } from "../shared/molecules/DropDownField";
import { RadioButtonField } from "../shared/molecules/RadioButtonField";
import { ToggleField } from "../shared/molecules/ToggleField";
interface GiftEditFormProps {
gift: GT.Gift;
individualMap: GT.KeyMap<GT.Individual>;
events: GT.Event[];
receiverIds: GT.Id[];
currentUserId: GT.Id;
updateGift: (update: GT.GiftUpdate) => void;
updateReceivers: (update: GT.ReceiverUpdate) => void;
save: (gift: GT.Gift) => void;
close: () => void;
}
export class GiftEditForm extends React.PureComponent<GiftEditFormProps, {}>
{
constructor(props: GiftEditFormProps) {
super(props);
}
getField<TV extends GT.GiftVals>(propName: keyof GT.Gift, label: string): GT.Field<GT.Gift, TV> {
return {
key: propName,
label,
value: this.props.gift[propName] as TV
}
}
getIndividuals = () => {
return Object.values(this.props.individualMap);
}
IsCurrentUserOwner = () => {
return this.props.currentUserId === this.props.gift.ownerId;
}
IsCurrentUserInReceiver = () => {
return this.props.receiverIds.findIndex((v) => v === this.props.currentUserId) > -1;
}
onGiftChange = (event: React.FormEvent<HTMLElement>) => {
const target = (event.target as HTMLInputElement);
const field = target.name as keyof GT.Gift;
const value = target.value;
this.props.updateGift({ field, value });
}
getIndividualOptions() {
return this.getIndividuals().map(individual => (
{
value: individual.id,
descr: `${individual.firstName} ${individual.lastName}`
}))
}
getOwnerName() {
const owner = this.props.individualMap[this.props.gift.ownerId];
return `${owner.firstName} ${owner.lastName}`
}
render() {
return (
<EditFormLayout
title={`Edit gift (Owner: ${this.getOwnerName()})`}
close={this.props.close}
save={() => this.props.save(this.props.gift)}
>
<div className="column col-12">
<TextField
field={this.getField("title", "Title")}
disabled={!this.IsCurrentUserOwner()}
onChange={this.onGiftChange}
placeholder="A short title"
/>
</div>
<div className="column col-12">
<div className="form-group">
<label className="form-label" htmlFor="gift-edit-receivers">Receivers</label>
<Typeahead<GT.Individual>
disabled={!this.IsCurrentUserOwner()}
selected={this.props.receiverIds.map(i => this.props.individualMap[i])}
options={this.getIndividuals()}
removeElt={(id) => this.props.updateReceivers({
receiverId: id,
operation: "Remove"
})}
addElt={(id) => this.props.updateReceivers({
receiverId: id,
operation: "Add"
})}
displayOption={(option: GT.Individual) => `${option.firstName} ${option.lastName}`} />
</div>
</div>
<div className="column col-6">
<DropDownField
field={this.getField("eventId", "Event")}
emptyDescr="no event"
onChange={this.onGiftChange}
options={this.props.events.map(event => (
{
value: event.id,
descr: showEvent(event)
}))}
disabled={!this.IsCurrentUserOwner()}
/>
<div className="form-group">
<ToggleField
field={this.getField("isVisibleToOthers", "Visible to other")}
disabled={!this.IsCurrentUserOwner()}
onClick={() => this.props.updateGift({
field: 'isVisibleToOthers',
value: (!this.props.gift.isVisibleToOthers)
})}
/>
</div>
{
this.IsCurrentUserInReceiver()
? null
: <>
<DropDownField
field={this.getField("buyerId", "Buyer")}
emptyDescr="no buyer"
onChange={this.onGiftChange}
options={this.getIndividualOptions()}
/>
<button
className |
<commit_before>var debug = 0;
function Profiler(opts) {
if ( opts.statsd_client ) {
this.statsd_client = opts.statsd_client;
}
this.events = [];
}
Profiler.prototype.done = function(what) {
var now = Date.now();
if ( debug ) {
console.log("prf " + now + " done " + what);
}
var item = { name:what, time:now };
this.events.push(item);
}
Profiler.prototype.end = function() {
var now = Date.now();
if ( debug ) {
console.log("prf " + now + " end task ");
}
var item = { time:now, end:1 }
this.events.push(item);
}
Profiler.prototype.start = function(what) {
var now = Date.now();
if ( debug ) {
console.log("prf " + now + " start task " + what);
}
var item = { time:now, start:1, name:what }
this.events.push(item);
}
Profiler.prototype.sendStats = function() {
if ( ! this.statsd_client ) return;
if ( debug ) {
console.log("prf " + Date.now() + " SEND STATS! ");
}
var tasks = [];
var prefix = [];
var prefix_string = '';
var prevtime = 0;
for (var i=0; i<this.events.length; ++i) {
var ev = this.events[i];
var t = ev.time;
if ( ev.start ) { // start of a new sub task
var tname = ev.name;
tasks.push({ start:t, name:tname });
if ( debug ) {
console.log("prf Task " + tname + " starts at " + t);
}
prefix.push(tname);
prefix_string = prefix.join('.');
}
else if ( ev.end ) { // end of a new sub task
var task = tasks.pop();
var elapsed = t - task.start;
if ( debug ) {
console.log("prf Task " + tname + " stops at " + t + " elapsed: " + elapsed);
}
var lbl = prefix_string + '.time';
if ( debug ) {
console.log("prf Sending (task) " + lbl + " " + elapsed);
}
this.statsd_client.timing(lbl, elapsed)
prefix.pop();
prefix_string = prefix.join('.');
}
else {
var what = ev.name;
var elapsed = t - prevtime;
var lbl = prefix_string + '.' + what + '.time';
if ( debug ) {
console.log("prf Sending (done) " + lbl + " " + elapsed);
}
this.statsd_client.timing(lbl, elapsed)
}
prevtime = t;
}
// In case anything is missing...
while ( task = tasks.pop() ) {
var tname = task.name;
var elapsed = t - task.start;
if ( debug ) {<commit_msg>[profiler] protect against unbalanced start()/end() calls<commit_after>var debug = 0;
function Profiler(opts) {
if ( opts.statsd_client ) {
this.statsd_client = opts.statsd_client;
}
this.events = [];
this.taskcount = 0;
}
Profiler.prototype.done = function(what) {
var now = Date.now();
if ( debug ) {
console.log("prf " + now + " done " + what);
}
var item = { name:what, time:now };
this.events.push(item);
}
Profiler.prototype.end = function() {
if ( ! this.taskcount ) {
console.log("prf Unbalanced end task event refused");
return;
}
--this.taskcount;
var now = Date.now();
if ( debug ) {
console.log("prf " + now + " end task ");
}
var item = { time:now, end:1 }
this.events.push(item);
}
Profiler.prototype.start = function(what) {
var now = Date.now();
if ( debug ) {
console.log("prf " + now + " start task " + what);
}
var item = { time:now, start:1, name:what }
this.events.push(item);
++this.taskcount;
}
Profiler.prototype.sendStats = function() {
if ( ! this.statsd_client ) return;
if ( debug ) {
console.log("prf " + Date.now() + " SEND STATS! ");
}
var tasks = [];
var prefix = [];
var prefix_string = '';
var prevtime = 0;
for (var i=0; i<this.events.length; ++i) {
var |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using Dynamo.Updates;
using Moq;
using NUnit.Framework;
using DynUpdateManager = Dynamo.Updates.UpdateManager;
namespace Dynamo.Tests
{
/// <summary>
/// Test cases to mock return values.
/// </summary>
public class UpdateManagerTestNotUpToDate
{
private const string DOWNLOAD_SOURCE_PATH_S = "http://downloadsourcepath/";
private const string SIGNATURE_SOURCE_PATH_S = "http://SignatureSourcePath/";
static UpdateManagerConfiguration NewConfiguration(bool checkNewerDailyBuild =false, bool forceUpdate =false, IDynamoLookUp lookup = null)
{
return new UpdateManagerConfiguration()
{
DownloadSourcePath = DOWNLOAD_SOURCE_PATH_S,
SignatureSourcePath = SIGNATURE_SOURCE_PATH_S,
CheckNewerDailyBuild = checkNewerDailyBuild,
ForceUpdate = forceUpdate,
DynamoLookUp = lookup,
};
}
[Test]
[Category("UnitTests")]
public void UpdateCheckReturnsInfoWhenNewerVersionAvaialable()
{
var updateRequest = new Mock<IAsynchronousRequest>();
updateRequest.Setup(ur => ur.Data).Returns(UpdateManagerTestHelpers.updateAvailableData);
var updateManager = new DynUpdateManager(NewConfiguration());
updateManager.UpdateDataAvailable(updateRequest.Object);
Assert.NotNull(updateManager.UpdateInfo);
}
[Test]
[Category("UnitTests")]
public void UpdateCheckReturnsInfoWhenNewerDailyBuildAvailable()
{
var updateRequest = new Mock<IAsynchronousRequest>();
updateRequest.Setup(ur => ur.Data).Returns(UpdateManagerTestHelpers.dailyBuildAvailableData);
var updateManager = new DynUpdateManager(NewConfiguration(checkNewerDailyBuild: true));
updateManager.UpdateDataAvailable(updateRequest.Object);
Assert.NotNull(updateManager.UpdateInfo);
}
[Test, Category("UnitTests")]
public void IsUpdateAvailableWhenNewerVersionAvaialable()
{
var updateRequest = new Mock<IAsynchronousRequest>();
updateRequest.Setup(ur => ur.Data).Returns(UpdateManagerTestHelpers.updateAvailableData);
var updateManager = new DynUpdateManager(NewConfiguration());
updateManager.UpdateDataAvailable(updateRequest.Object);
updateManager.DownloadedUpdateInfo = updateManager.UpdateInfo;
Assert.IsTrue(updateManager.IsUpdateAvailable);
}
[Test, Category("UnitTests")]
public void IsUpdateAvailableWhenForceUpdateIsTrue()
{
var updateRequest = new Mock<IAsynchronousRequest>();
updateRequest.Setup(ur => ur.Data).Returns(UpdateManagerTestHelpers.noUpdateAvailableData);
var updateManager = new DynUpdateManager(NewConfiguration(forceUpdate:true));
updateManager.UpdateDataAvailable(updateRequest.Object);
updateManager.DownloadedUpdateInfo = updateManager.UpdateInfo;
Assert.IsTrue(updateManager.IsUpdateAvailable);
}
[Test, Category("UnitTests")]
public void NoUpdateAvailableWhenUpToDate()
{
var updateRequest = new Mock<IAsynchronousRequest>();
updateRequest.Setup(ur => ur.Data).Returns(UpdateManagerTestHelpers.noUpdateAvailableData);
var updateManager = new DynUpdateManager(NewConfiguration());
updateManager.UpdateDataAvailable(updateRequest.Object);
updateManager.DownloadedUpdateInfo = updateManager.UpdateInfo;
Assert.IsFalse(updateManager.IsUpdateAvailable);
}
[Test, Category("UnitTests")]
public void NoUpdateIsAvailableWhenHigherVersionDynamoIsInstalled()
{
var lookup = new Mock<DynamoLookUp>();
lookup.Setup(l => l.GetDynamoInstallLocations()).Returns(new[] { "A" });
lookup.Setup(l => l.GetDynamoVersion(It.IsAny<string>()))
.Returns<string>(s => Version.Parse("9.9.9.0"));
var um = new DynUpdateManager(NewConfiguration(false, false, lookup.Object));
Assert.IsNotNull(um);
DynUpdateManager.CheckForProductUpdate(um);
um.DownloadedUpdateInfo = um.UpdateInfo;
Assert.IsNull(um.UpdateInfo);
Assert.IsFalse(um.IsUpdateAvailable);
}
[Test, Category("UnitTests")]
public void NoUpdateAvailableWhenUpdateInfoIsNotYetDownloaded()
{
var updateManager = new DynUpdateManager(NewConfiguration());
Assert.IsFalse(updateManager.IsUpdateAvailable);
}
[Test, Category("UnitTests")]
public void UpdateCheckReturnsCorrectVersionWhenAvailable()
{
var um = new DynUpdateManager(NewConfiguration());
Assert.IsNotNull(um);
var updateRequest = new Mock<IAsynchronousRequest>();
updateRequest.Setup(ur => ur.Data).Returns(UpdateManagerTestHelpers.updateAvailableData);
um.UpdateDataAvailable(updateRequest.Object);
// Spoof a download completion by setting the downloaded update info to the update info
um.DownloadedUpdateInfo = um.UpdateInfo;
Assert.NotNull(um.UpdateInfo);
Assert |
Merry Christmas, everyone!! We hope this holiday finds you happy and healthy, wherever you may be!
Our very first RV Christmas has been spent parked in a mobile home park in Glendale, Arizona. Not the most scenic surroundings, but being here has made it possible for us to take care of some important issues before we head back into the desert for more off-grid living.
First of all, both the kitties got to visit the vet last Friday morning. If you remember from our last post, Maggie had vomited on our last drive and it looked like she had a case of worms. Molly had been having some constipation problems as well as a runny nose, so we took them both to the same vet that we used for our old cat, Macho, when we lived here in Glendale–Dr. Charles Toben at Apollo Animal Hospital. I was able to get a stool sample from Maggie, but of course Molly didn’t cooperate that morning.
Maggie Mae is 10-1/2 years old. She weighed in at 14 pounds, 10 ounces, which is about a pound more than she weighed in August at her last checkup. The vet checked her eyes and said she’s starting to develop a little cloudiness due to age, but it’s not serious yet. He found some acne under her chin (I didn’t know cats got acne), so he shaved her chin so we could treat it with hydrogen peroxide.
Her stool sample came back negative for parasites, but he said that from what we described from her puke, it sounded like the type of worms that are caused from fleas, and that they are cyclical or sporadic,so he gave us worming medication to treat both of them. They don’t currently have fleas, but they had a problem with them when were were in Texas in September, and the vet said these parasites are likely a result of those fleas. He gave them their first dose of meds in the office, and we have to give them a second dose on Friday.
Molly Ann is 8-1/2 years old. She weighed in at 11 pounds, 14 ounces, which means she’s lost over a pound since August. The vet listened to her breathing and said he didn’t hear any problems with her lungs, so her runny nose is most likely seasonal allergies (she’s had this issue for a couple of years). In regards to the constipation issue, we discussed their diet and he recommended adding some canned pumpkin or squash to their wet food in the morning–something else I had never heard of.
Other than those issues, he said they both appear to be healthy. He’s such a great veterinarian, I think he spent almost an hour with us, making sure we had all our questions answered. He provided us with electronic copies of the records, and told us to feel free to call from anywhere on the road if we needed help with the girls.
I’ve started adding a little pumpkin to their morning wet food. So far they are tolerating it, but they definitely know something is a little “off” taste-wise with their breakfast, so they don’t gobble it down like they usually do. I’m still waiting to see if it has the desired outcome (no pun intended!).
After returning the kitties to the rig, we had lunch and then drove to the East Valley to pick up a shipment of solar cables from my friend’s house where they had been shipped. Afterward we drove north to Scottsdale to look for some additional pieces at RV Solar Electric, a place we found via a Google search. Unfortunately that place turned out to only be an office for online sales and not a retail store, so that was a busted trip.
On Saturday we did a little more research and found a solar retailer in Mesa. This time we called ahead to confirm that they had what we needed, and then we made the 45 minute drive back to the East Valley. The store is called Solar Penny, and they were able to take care of everything that we needed. We bought a charge controller so we can charge our house batteries with our new solar panels. We also got the additional cables that we needed to go to the batteries, and the owner even attached the proper connectors so Andy wouldn’t have to do that. We were very pleased with our visit to their shop, and would definitely recommend them to anyone looking for parts or advice for their solar setup.
While we were in the Mesa area we looked for good plant-based options for lunch and found a little gem called Seed Shack in Gilbert. It’s a vegan American-Oriental fusion cafe, and their food is all prepared in-house from scratch. Check out their menu online if you’re in the area and want good healthy food!
On Saturday night we went to downtown Glendale to see the Christmas lights at their annual Glendale Glitters event which lasts for about six weeks during the holidays. We had a delicious sweet corn tamale from the sidewalk stand in front of |
<reponame>210503-Reston-KwikKoder/Back-End-Tests<gh_stars>0
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using UserTestsDL;
namespace UserTestsDataLayer.Migrations
{
[DbContext(typeof(UserTestDBContext))]
[Migration("20210721204730_InitialMigration")]
partial class InitialMigration
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("ProductVersion", "5.0.7")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("UserTestsModels.Category", b =>
{
b.Property<int>("Id")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Categories");
});
modelBuilder.Entity("UserTestsModels.Goal", b =>
{
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<bool>("Checked")
.HasColumnType("bit");
b.Property<DateTime>("GoalDate")
.HasColumnType("datetime2");
b.Property<double>("WPM")
.HasColumnType("float");
b.HasKey("CategoryId", "UserId");
b.HasIndex("UserId");
b.ToTable("Goals");
});
modelBuilder.Entity("UserTestsModels.TypeTest", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<int>("NumberOfErrors")
.HasColumnType("int");
b.Property<int>("NumberOfWords")
.HasColumnType("int");
b.Property<int>("TimeTaken")
.HasColumnType("int");
b.Property<int>("UserStatId")
.HasColumnType("int");
b.Property<double>("WPM")
.HasColumnType("float");
b.HasKey("Id");
b.HasIndex("UserStatId");
b.ToTable("TypeTests");
});
modelBuilder.Entity("UserTestsModels.User", b =>
{
b.Property<string>("Auth0Id")
.HasColumnType("nvarchar(450)");
b.Property<int>("Revapoints")
.HasColumnType("int");
b.HasKey("Auth0Id");
b.ToTable("Users");
});
modelBuilder.Entity("UserTestsModels.UserStat", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<double>("AverageAccuracy")
.HasColumnType("float");
b.Property<double>("AverageWPM")
.HasColumnType("float");
b.Property<int>("Losses")
.HasColumnType("int");
b.Property<int>("NumberOfTests")
.HasColumnType("int");
b.Property<int>("TotalTestTime")
.HasColumnType("int");
b.Property<double>("WLRatio")
.HasColumnType("float");
b.Property<int>("WinStreak")
.HasColumnType("int");
b.Property<int>("Wins")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("UserStats");
});
modelBuilder.Entity("UserTestsModels.UserStatCatJoin", b =>
{
b.Property<int>("UserStatId")
.HasColumnType("int");
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<int>("CategoryId")
.HasColumnType("int");
b.HasKey("UserStatId", "UserId", "CategoryId");
b.HasIndex("UserId");
b.HasIndex("UserStatId")
.IsUnique();
b.ToTable("UserStatCatJoins");
});
modelBuilder.Entity("UserTestsModels.Goal", b =>
{
b.HasOne("UserTestsModels.Category", "Category")
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("UserTestsModels.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Category");
b.Navigation("User");
});
modelBuilder.Entity("UserTestsModels.TypeTest", b =>
{
b.HasOne("UserTestsModels.UserStat", "UserStat")
.WithMany("TypeTests")
.HasForeignKey("UserStatId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("UserStat");
});
modelBuilder.Entity("UserTestsModels |
Gap) - this._horizontalGap - this._paddingLeft - this._paddingRight;
}
else if(horizontalTileCount > this._requestedColumnCount)
{
horizontalTileCount = this._requestedColumnCount;
}
}
var verticalTileCount:number;
if(explicitHeight === explicitHeight) //!isNaN
{
availableHeight = explicitHeight;
verticalTileCount = (explicitHeight - this._paddingTop - this._paddingBottom + this._verticalGap) / (tileHeight + this._verticalGap);
}
else if(maxHeight === maxHeight && //!isNaN
maxHeight < Number.POSITIVE_INFINITY)
{
availableHeight = maxHeight;
verticalTileCount = (maxHeight - this._paddingTop - this._paddingBottom + this._verticalGap) / (tileHeight + this._verticalGap);
}
else
{
//using the horizontal tile count, calculate how many rows will
//be required for the total number of items.
verticalTileCount = Math.ceil(itemCount / horizontalTileCount);
}
if(verticalTileCount < 1)
{
//we must have at least one tile per column
verticalTileCount = 1;
}
else if(this._requestedRowCount > 0)
{
if(availableHeight !== availableHeight) //isNaN
{
verticalTileCount = this._requestedRowCount;
availableHeight = verticalTileCount * (tileHeight + this._verticalGap) - this._verticalGap - this._paddingTop - this._paddingBottom;
}
else if(verticalTileCount > this._requestedRowCount)
{
verticalTileCount = this._requestedRowCount;
}
}
var totalPageWidth:number = horizontalTileCount * (tileWidth + this._horizontalGap) - this._horizontalGap + this._paddingLeft + this._paddingRight;
var totalPageHeight:number = verticalTileCount * (tileHeight + this._verticalGap) - this._verticalGap + this._paddingTop + this._paddingBottom;
var availablePageWidth:number = availableWidth;
if(availablePageWidth !== availablePageWidth) //isNaN
{
availablePageWidth = totalPageWidth;
}
var availablePageHeight:number = availableHeight;
if(availablePageHeight !== availablePageHeight) //isNaN
{
availablePageHeight = totalPageHeight;
}
var startX:number = boundsX + this._paddingLeft;
var startY:number = boundsY + this._paddingTop;
var perPage:number = horizontalTileCount * verticalTileCount;
var pageIndex:number = 0;
var nextPageStartIndex:number = perPage;
var pageStartX:number = startX;
var positionX:number = startX;
var positionY:number = startY;
var itemIndex:number = 0;
var discoveredItemsCachePushIndex:number = 0;
for(i = 0; i < itemCount; i++)
{
item = items[i];
if(item instanceof this.ILayoutDisplayObject && !this.ILayoutDisplayObject(item).includeInLayout)
{
continue;
}
if(itemIndex != 0 && itemIndex % horizontalTileCount == 0)
{
positionX = pageStartX;
positionY += tileHeight + this._verticalGap;
}
if(itemIndex == nextPageStartIndex)
{
//we're starting a new page, so handle alignment of the
//items on the current page and update the positions
if(this._paging != TiledRowsLayout.PAGING_NONE)
{
var discoveredItems:DisplayObject[] = this._useVirtualLayout ? this._discoveredItemsCache : items;
var discoveredItemsFirstIndex:number = this._useVirtualLayout ? 0 : (itemIndex - perPage);
var discoveredItemsLastIndex:number = this._useVirtualLayout ? (this._discoveredItemsCache.length - 1) : (itemIndex - 1);
this.applyHorizontalAlign(discoveredItems, discoveredItemsFirstIndex, discoveredItemsLastIndex, totalPageWidth, availablePageWidth);
this.applyVerticalAlign(discoveredItems, discoveredItemsFirstIndex, discoveredItemsLastIndex, totalPageHeight, availablePageHeight);
if(this._manageVisibility)
{
this.applyVisible(discoveredItems, discoveredItemsFirstIndex, discoveredItemsLastIndex,
boundsX + scrollX, scrollX + availableWidth, boundsY + scrollY, scrollY + availableHeight);
}
this._discoveredItemsCache.length = 0;
discoveredItemsCachePushIndex = 0;
}
pageIndex++;
|
<issue_start><issue_comment>Title: Error : Float Object not subscriptable
username_0: I am getting this error intermittently while solving for a PVRP with a planning period of 24 days and a constraint on duration. It happens for subsets of my data and I was hoping for some direction to understand why this is happening. The error does not happen when I just use the Cost Matrix.
```
45 prob.solve(time_limit = time_limit)
~\Desktop\Supply_Chain_Tool_Streamlined\code_w_balanced_schedules\vrpy\main.py in solve(self, initial_routes, preassignments, pricing_strategy, cspy, exact, time_limit, solver, dive, greedy)
178
179 # Initialization
--> 180 self._initialize()
181
182 # Column generation
~\Desktop\Supply_Chain_Tool_Streamlined\code_w_balanced_schedules\vrpy\main.py in _initialize(self)
279 self._get_initial_solution()
280 # Initial routes are converted to digraphs
--> 281 self._convert_initial_routes_to_digraphs()
282 # Initialize parameters for stopping criteria
283 self._more_routes = True
~\Desktop\Supply_Chain_Tool_Streamlined\code_w_balanced_schedules\vrpy\main.py in _convert_initial_routes_to_digraphs(self)
514 edges = list(zip(r[:-1], r[1:]))
515 for (i, j) in edges:
--> 516 edge_cost = self.G.edges[i, j]["cost"][0]
517 G.add_edge(i, j, cost=edge_cost)
518 total_cost += edge_cost
TypeError: 'float' object is not subscriptable
```
For reference, the code used for setting up the problem is below : [ I am using a DISTANCE matrix similar to the OR tools example, and incorporating time by assuming an AVERAGE_SPEED in km/hour. Duration constraint is set as 10 hours per day of the planning period ]
` A = matrix(DISTANCES, dtype=[("cost", int)])
G_d = from_numpy_matrix(A, create_using=nx.DiGraph())
# Transform time matrix into DiGraph
# Average speed of vehicle is assumed to be 50 km/hr
# Time unit is in minutes, distance unit is in km
TRAVEL_TIMES = [[round(60*float(j)/AVERAGE_SPEED,0) for j in i] for i in DISTANCES]
A = matrix(TRAVEL_TIMES, dtype=[("time", int)])
G_t = from_numpy_matrix(A, create_using=DiGraph())
# Merge
G = nx.compose(G_d, G_t)
###Adding frequencies and making the problem periodic in nature
##Setting the frequency for each node
set_node_attributes(G, values=service_levels, name="frequency")
# The demands are stored as node attributes
set_node_attributes(G, values=demands, name="demand")
# The depot is relabeled as Source and Sink
G = relabel_nodes(G, {0: "Source", len(DISTANCES)-1: "Sink"})
#Load capacity is set to the load capacity of each truck. Assuming a 10 hour working day to set duration of routes
#10 hours is 600 minutes
prob = VehicleRoutingProblem(G, load_capacity=truck_capacity, duration = 600)
# Setting the planning horizon to 24 days - 6 days working in each week
prob.periodic = 24`
<issue_comment>username_1: Are you saying that the error occurs when you add travel times ?
<issue_comment>username_0: Yes. I am not sure what exactly causes it, since it does not always happen after adding the travel times. For my code - I am deriving the travel times from the distance matrix itself. For some sets of data I get this error, for others I don't.
Environment Details : I am running on Windows 10 using python 3.7.6, NetworkX 2.4 and cspy 0.1.0
<issue_comment>username_1: Hmm the fact that it seems to depend on the data set is weird. If you could provide such a data set so I can reproduce the error, it would be great.
<issue_comment>username_2: Just to rule it out, I seem to remember getting a similar error when experimenting with `time_limit`
Try and increase it just in case.
<issue_comment>username_0: Try |
);
offset += copied;
Common.MemorySegmentExtensions.CopyTo(SegmentToLast10Bytes, dest, offset);
copied += SegmentToLast10Bytes.Count;
offset += SegmentToLast10Bytes.Count;
return copied;
}
/// <summary>
/// Clones this RtpHeader instance.
/// If reference is true any changes performed in either this instance or the new instance will be reflected in both instances.
/// </summary>
/// <param name="reference">indictes if the new instance should reference this instance.</param>
/// <returns>The new instance</returns>
public RtpHeader Clone(bool reference = false) { return new RtpHeader(this, reference); }
internal IEnumerable<byte> GetEnumerableImplementation()
{
return Enumerable.Concat<byte>(First16Bits, SegmentToLast10Bytes);
}
#endregion
#region IEnumerable Implementations
IEnumerator<byte> IEnumerable<byte>.GetEnumerator()
{
return GetEnumerableImplementation().GetEnumerator();
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return GetEnumerableImplementation().GetEnumerator();
}
#endregion
#region Overrides
protected override void Dispose(bool disposing)
{
if (false.Equals(disposing) || false.Equals(ShouldDispose)) return;
base.Dispose(ShouldDispose);
if (false.Equals(IsDisposed)) return;
if (false.Equals(Common.IDisposedExtensions.IsNullOrDisposed(First16Bits)))
{
//Dispose the instance
First16Bits.Dispose();
//Remove the reference to the CommonHeaderBits instance
First16Bits = null;
}
if (false.Equals(Common.IDisposedExtensions.IsNullOrDisposed(SegmentToLast10Bytes)))
{
//Invalidate the pointer
SegmentToLast10Bytes.Dispose();
SegmentToLast10Bytes = null;
}
//Remove the reference to the allocated array.
Last10Bytes = null;
}
/// <summary>
/// Uses the first 2 bytes and the <see cref="SynchronizationSourceIdentifier"/> to create a HashCode which represents this header.
/// </summary>
/// <returns></returns>
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
public override int GetHashCode() { return First16Bits ^ SynchronizationSourceIdentifier; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
public bool Equals(RtpHeader other)
{
return other.First16Bits.Equals(First16Bits)
&&
other.SynchronizationSourceIdentifier.Equals(SynchronizationSourceIdentifier);
}
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
public override bool Equals(object obj)
{
if (System.Object.ReferenceEquals(this, obj)) return true;
if (false.Equals((obj is RtpHeader))) return false;
return Equals(obj as RtpHeader);
}
#endregion
#region Operators
public static bool operator ==(RtpHeader a, RtpHeader b)
{
return object.ReferenceEquals(b, null) ? object.ReferenceEquals(a, null) : a.Equals(b);
}
public static bool operator !=(RtpHeader a, RtpHeader b) { return (a == b).Equals(false); }
#endregion
}
#endregion
}
namespace Media.UnitTests
{
/// <summary>
/// Provides tests which ensure the logic of the RtpHeader class is correct
/// </summary>
internal class RtpHeaderUnitTests
{
public static void TestAConstructor_And_Reserialization()
{
unchecked
{
bool bitValue = false;
//Test every possible bit packed value that can be valid in the first and second octet
for (int ibitValue = 0; ibitValue < 2; ++ibitValue)
{
//Make a bitValue after the 0th iteration
if (ibitValue > 0) bitValue = Convert.ToBoolean(ibitValue);
//Permute every possible value within the 2 bit Version
for (byte VersionCounter = 0; VersionCounter <= Media.Common.Binary.TwoBitMaxValue; ++VersionCounter)
{
//Permute every possible value in the 7 bit PayloadCounter
for (int PayloadCounter = 0; PayloadCounter <= sbyte.MaxValue; ++PayloadCounter)
{
//Permute every possible value in the 4 bit ContributingSourceCounter
for (byte ContributingSourceCounter = byte.MinValue; ContributingSourceCounter <= Media.Common.Binary.FourBitMaxValue; ++ContributingSourceCounter)
{
int RandomId = Utility.Random.Next(), RandomSequenceNumber = Utility.Random.Next(ushort.MinValue, ushort.MaxValue), RandomTimestamp = Utility.Random.Next();
using (Rtp.RtpHeader test = new Rtp |
<gh_stars>0
namespace Lab02_01
{
partial class manUsuario
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.btnAgregar = new System.Windows.Forms.Button();
this.dgvUsuarios = new System.Windows.Forms.DataGridView();
this.btnModificar = new System.Windows.Forms.Button();
this.btnEliminar = new System.Windows.Forms.Button();
this.btnBuscar = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.txtDNI = new System.Windows.Forms.TextBox();
this.dtpFechaNacimiento = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.txtNombre = new System.Windows.Forms.TextBox();
this.txtTelefono = new System.Windows.Forms.TextBox();
this.txtDireccion = new System.Windows.Forms.TextBox();
this.txtApellido = new System.Windows.Forms.TextBox();
this.txtEmail = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvUsuarios)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.txtEmail);
this.panel1.Controls.Add(this.txtApellido);
this.panel1.Controls.Add(this.txtDireccion);
this.panel1.Controls.Add(this.txtTelefono);
this.panel1.Controls.Add(this.txtNombre);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.dtpFechaNacimiento);
this.panel1.Controls.Add(this.txtDNI);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(762, 146);
this.panel1.TabIndex = 0;
//
// btnAgregar
//
this.btnAgregar.Location = new System.Drawing.Point(319, 164);
this.btnAgregar.Name = "btnAgregar";
this.btnAgregar.Size = new System.Drawing.Size(94, 37);
this.btnAgregar.TabIndex = 0;
this.btnAgregar.Text = "Agregar";
this.btnAgregar.UseVisualStyleBackColor = true;
//
// dgvUsuarios
//
this.dgvUsuarios.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvUsuarios.Location = new System.Drawing.Point(12, 207);
this.dgvUsuarios.Name = "dgvUsuarios";
this.dgvUsuarios.Size = new System.Drawing.Size(762, 218);
this.dgvUsuarios.TabIndex = 1;
//
// btnModificar
//
this.btnModificar.Location = new System.Drawing.Point(442, 164);
this.btnModificar.Name = "btnModificar";
this.btnModificar.Size = new System.Drawing.Size(87, 37);
this.btnModificar.TabIndex = 2;
this.btnModificar.Text = "Modificar";
this.btnModificar.UseVisualStyleBackColor = true;
//
// btnEliminar
//
this.btnEliminar.Location = new System.Drawing.Point(555, 164);
this.btnEliminar.Name = "btnEliminar";
this.btnEliminar.Size = new System.Drawing.Size(92, 37);
this.btnEliminar.TabIndex = 3;
this.btnEliminar.Text = "Eliminar";
this.btnEliminar.UseVisualStyleBackColor = true;
//
// btnBuscar
//
this.btnBuscar.Location = new System.Drawing.Point(678, 164);
this.btnBuscar.Name = "btnBuscar";
this.btnBuscar.Size = new System.Drawing.Size(96, |
Types of parameters 'slot' and 'slot' are incompatible.
Type 'Slot<CommandRegistry, ICommandChangedArgs>' is not assignable to type 'Slot<CommandRegistry, ICommandChangedArgs>'. Two different types with this name exist, but they are unrelated.
Types of parameters 'sender' and 'sender' are incompatible.
Type 'CommandRegistry' is not assignable to type 'CommandRegistry'. Two different types with this name exist, but they are unrelated.
```
<issue_comment>username_2: I just made a fresh environment and confirmed that this works for me:
```bash
$ conda create -n test-jhl
$ source activate test-jhl
$ cd Documents/Repos/jupyterhub-labextension
$ pip install .
$ conda list | grep jupyter
jupyter-client 5.0.0 <pip>
jupyter-core 4.3.0 <pip>
jupyterhub 0.7.2 <pip>
jupyterhub-labextension 0.1.0 <pip>
jupyterlab 0.17.0 <pip>
$ cd
$ jupyter labextension install --symlink --py --sys-prefix jupyterhub_labextension
$ jupyter labextension enable --py --sys-prefix jupyterhub_labextension
$ jupyter labextension list
Known labextensions:
config dir: /Users/dallan/miniconda/envs/test-jhl/etc/jupyter/labconfig
jupyterhub_labextension enabled : /Users/dallan/miniconda/envs/test-jhl/share/jupyter/labextensions/jupyterhub_labextension
jupyterhub --config=jupyterhub_config.py
```
The error you are seeing comes from having conflicting versions of the JS. I recommend trying to debug this outside of Docker.
<issue_comment>username_1: @username_2
I managed to get this installed via Docker ... I had been using a `nodejs` version installed from `conda` and that was what was causing the problem.
As per further up this thread [here](https://github.com/jupyterhub/jupyterhub-labextension/issues/2#issuecomment-282763814), I've installed jupyterhub, jupyterlab and this lab extension (development install) into a docker image that is then used to spawn a notebook server ... that's the approach that has worked fine for me up to now ... previously with the `CMD jupyterhub-singleuser` followed by several parameters ... that image was able to spawned by the hub.
I was hoping to have just replaced `CMD jupyterhub-singleuser` with `CMD jupyterhub-singlelabuser`, but with those various installs above, this doesn't work. I then tried with `CMD python /home/jovyan/jupyterhub-labextension/cli_scripts/jupyter-singlelabuser` ... hoping that by being more explicit where that command tool was would work, but it doesn't.
Am I missing something else? Does this lab extension also need to be installed on the hub itself?
<issue_comment>username_2: As far as I can tell you're not missing anything. Refer back to my last comment showing the complete list of steps. Nothing has to be done with the hub other than ensure that `jupyter-singlelabuser` replaces `jupyter-singleuser`. More detail about exactly how it's failing would help.
<issue_comment>username_2: Yep, it's the same thing. You have the right idea. It should get added to your PATH [by this line in the setup.py](https://github.com/jupyterhub/jupyterhub-labextension/blob/master/setup.py#L26) when the Python package jupyterhub_labextension is installed.
<issue_comment>username_1: OK ... that somehow isn't working. What is the best way for me to do this 'manually' or more explicitly?
<issue_comment>username_2: I would start by trying to reproduce the steps above exactly, sans Docker, just to be sure they work as expected on your system.
<issue_comment>username_1: I think I see the problem ... the command `jupyter-singlelabuser` works ... but not `jupyterhub-singlelabuser` as per your README. ie. .. you are specifying that extra **hub** part in the command, which is incorrect ... is that right?
<issue_comment>username_2: Bah. You're correct. Sorry about that. I'll add a PR to fix now....
<issue_comment>username_1: No problem. Glad we got to the bottom of it. Let me try to spin things up now.
<issue_comment>username_1: @username_2
Got things working, with the 'Hub' menu item now appearing (1 below).
I was wondering if there was a way to leverage this approach with the |
<issue_start><issue_comment>Title: When generate the zpm module use ${dbrole} instead current settings
username_0: Now if you generate it sets the security resource for the app to the current namespace value, e.g. MatchRoles=":%DB_COFFEE"
But better use the variable, like here:
MatchRoles=":${dbrole}"
<issue_comment>username_1: /// adds a web application to the temporary array of module resources
Method AddWebApps(pApps As %String, Output cspapps As %List) As %Status
{
Set tAppList = ""
Set pApps = $ZSTRIP(pApps,"<>W")
If ( pApps = "*" ) {
Do ..GetCSPApplications(.tAppList)
} Else {
Set tAppList = $Listfromstring(pApps,",")
}
Set cspapps = ""
New $Namespace
Set $Namespace = "%SYS"
For i=1:1:$Listlength(tAppList) {
Set app = ##class(Security.Applications).Get($Listget(tAppList,i),.props)
Set tAppName = props("Name")
Set ..TemplateResources(tAppName) = tAppName
Set ..TemplateResources(tAppName, "Url") = tAppName
If (props("DispatchClass")'="") {
Set ..TemplateResources(tAppName,"DispatchClass") = props("DispatchClass")
} Else {
Set tCSPDir = ##class(%File).NormalizeDirectory(##class(%File).ParentDirectoryName(##class(%File).ManagerDirectory())_"/csp")
Set ..TemplateResources(tAppName,"Directory") = $Replace(props("Path"),tCSPDir,"${cspdir}")
Set cspapps = cspapps_$Listbuild(tAppName)
}
If ( props("AutheEnabled") = 32 ) {
Set ..TemplateResources(tAppName,"UnauthenticatedEnabled") = 0
Set ..TemplateResources(tAppName,"PasswordAuthEnabled") = 1
} ElseIf ( props("AutheEnabled") = 64 ) {
Set ..TemplateResources(tAppName,"UnauthenticatedEnabled") = 0
Set ..TemplateResources(tAppName,"PasswordAuthEnabled") = 1
} ElseIf ( props("AutheEnabled") = 96 ) {
Set ..TemplateResources(tAppName,"UnauthenticatedEnabled") = 1
Set ..TemplateResources(tAppName,"PasswordAuthEnabled") = 1
} Else {
Set ..TemplateResources(tAppName,"AuthenticationMethods") = props("AutheEnabled")
}
// Map subscript of application properties to %Installer.CSPApplication properties
Set tMap("AutoCompile") = "AutoCompile"
Set tMap("AutoCompile","default") = 1
Set tMap("Enabled") = "Enabled"
Set tMap("Enabled","default") = 1
Set tMap("ChangePasswordPage") = "ChangePasswordPage"
Set tMap("ErrorPage") = "CustomErrorPage"
Set tMap("SuperClass") = "DefaultSuperclass"
Set tMap("Timeout") = "DefaultTimeout"
Set tMap("Description") = "Description"
Set tMap("EventClass") = "EventClass"
Set tMap("MatchRoles") = "MatchRoles"
Set tMap("GroupById") = "GroupById"
Set tMap("InbndWebServicesEnabled") = "InboundWebServicesEnabled"
Set tMap("InbndWebServicesEnabled","default") = 1
Set tMap("IsNamespaceDefault") = "IsNamespaceDefault"
Set tMap("IsNamespaceDefault","default") = 0
Set tMap("LockCSPName") = "LockCSPName"
Set tMap("LockCSPName","default") = 1
Set tMap("LoginPage") = "LoginClass"
Set tMap("Package") = "PackageName"
Set tMap("CookiePath") = "CookiePath"
Set tMap("UseCookies") = "UseSessionCookie"
Set tMap("PermittedClasses") = "PermittedClasses"
Set tMap("Recurse") = "Recurse"
Set tMap("Recurse","default") = 0
Set tMap("Resource") = "Resource"
Set tMap("ServeFiles") = "ServeFiles"
Set tMap("ServeFilesTimeout") = "ServeFilesTimeout"
Set tMap("TwoFactorEnabled") = "TwoFactorEnabled"
Set tMap("TwoFactorEnabled","default") = 0
Set tAttr = ""
For |
{
if (screenRenderTexture == null) // we can't render onto a null surface
{
screenRenderTexture = new Texture(d3dDevice, 256, 256, 0, Usage.RenderTarget, Format.A8R8G8B8, Pool.Default);
}
d3dDevice.SetRenderTarget(0, screenRenderTexture.GetSurfaceLevel(0));
}
else d3dDevice.SetRenderTarget(0, defaultRenderTarget);
d3dDevice.BeginScene();
//all drawings after this line
if (modelToRender >= 0)
{
MatrixStack transform = new MatrixStack();
njs_object.Attach = modelList[modelToRender].Value;
RenderInfo.Draw(njs_object.DrawModel(d3dDevice.GetRenderState<FillMode>(RenderState.FillMode), transform, null, meshes[modelToRender], true), d3dDevice, camera);
}
else // invalid selection, show a message telling the user to select something
{
// see if we can hide the panel's picture and/or draw an actual label here
//onscreenFont.DrawText(textSprite, "No model selected.", screenCenter, Color.Black);
}
d3dDevice.EndScene(); //all drawings before this line
d3dDevice.Present();
if (renderToTexture)
{
int renderIndex = -1;
renderIndex = attachListRenders.FindIndex(item => item.Key == modelList[modelToRender].Key);
// convert our texture into a bitmap, add it to the rendertextures list
Surface surface = screenRenderTexture.GetSurfaceLevel(0);
Stream surfaceStream = Surface.ToStream(surface, ImageFileFormat.Bmp);
attachListRenders[renderIndex] = new KeyValuePair<int, Bitmap>(modelList[modelToRender].Key, new Bitmap(surfaceStream));
}
}
private void RenderAllModels()
{
for (int i = 0; i < modelList.Count; i++) RenderModel(i, true);
}
#endregion
private void UpdateTitleBar(EditorCamera camera)
{
Text = "Model Library:" + "X=" + camera.Position.X + " Y=" + camera.Position.Y + " Z=" + camera.Position.Z + " Pitch=" + camera.Pitch.ToString("X") + " Yaw=" + camera.Yaw.ToString("X") + " Speed=" + camera.MoveSpeed.ToString();
}
private void SetPanelCam()
{
if (selectedModelIndex >= 0) panelCam.MoveToShowBounds(modelList[selectedModelIndex].Value.Bounds);
}
private void modelListView_SelectedIndexChanged(object sender, EventArgs e)
{
selectedModelIndex = (modelListView.SelectedIndices.Count > 0) ? modelListView.SelectedIndices[0] : -1;
SetPanelCam();
RenderModel(selectedModelIndex, false);
if (SelectionChanged != null) SelectionChanged(this, selectedModelIndex, SelectedModel);
}
private void ModelLibraryControl_VisibleChanged(object sender, EventArgs e)
{
if (!IsDesignMode())
{
}
}
public void FullReRender()
{
RenderAllModels();
PopulateListView();
RenderModel(selectedModelIndex, false);
}
private void ModelLibraryControl_Resize(object sender, EventArgs e)
{
if (!IsDesignMode())
{
if (d3dDevice != null) RenderModel(selectedModelIndex, false);
}
}
#region Input Event Methods
bool zoomKeyDown = false, lookKeyDown = false;
System.Drawing.Point mouseLast;
private void splitContainer1_Panel2_MouseMove(object sender, MouseEventArgs e)
{
System.Drawing.Point mouseEvent = e.Location;
if (mouseLast == System.Drawing.Point.Empty)
{
mouseLast = mouseEvent;
return;
}
System.Drawing.Point mouseDelta = mouseEvent - (Size)mouseLast;
ushort mouseWrapThreshold = 2;
bool mouseWrapScreen = true;
bool performedWrap = false;
if (e.Button != MouseButtons.None)
{
System.Drawing.Rectangle mouseBounds = (mouseWrapScreen) ? Screen.GetBounds(ClientRectangle) : splitContainer1.Panel2.RectangleToScreen(splitContainer1.Panel2.Bounds);
if (Cursor.Position.X < (mouseBounds.Left + mouseWrapThreshold))
{
Cursor.Position = new System.Drawing.Point(mouseBounds.Right - mouseWrapThreshold, Cursor.Position.Y);
mouseEvent = new System.Drawing.Point(mouseEvent.X + mouseBounds.Width - mouseWrapThreshold, mouseEvent.Y);
performedWrap = true;
}
else if (Cursor.Position.X > (mouseBounds.Right |
<reponame>allan-mobley-jr/azure-webjobs-sdk
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Azure.Cosmos.Table;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
namespace Microsoft.Azure.WebJobs.Logging
{
internal static class Utility
{
// See examples here: http://stackoverflow.com/questions/19972443/azure-table-storage-xml-serialization-for-tablecontinuationtoken
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
public static string SerializeToken(TableContinuationToken token)
{
if (token == null)
{
return null;
}
#if !NETSTANDARD2_0
using (var writer = new StringWriter(CultureInfo.InvariantCulture))
{
using (var xmlWriter = XmlWriter.Create(writer))
{
token.
}
string serialized = writer.ToString();
var val = EncodeBase64(serialized);
return val;
}
#else
// TODO : FACAVAL need to understand whether it is sufficient to just serialize the type (understand how the serialized type is used in other places)
return null;
#endif
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
public static TableContinuationToken DeserializeToken(string token)
{
#if !NETSTANDARD2_0
if (!string.IsNullOrWhiteSpace(token))
{
var raw = DecodeBase64(token);
TableContinuationToken contToken = null;
using (var stringReader = new StringReader(raw))
{
contToken = new TableContinuationToken();
using (var xmlReader = XmlReader.Create(stringReader))
{
contToken.
contToken.ReadXml(xmlReader);
}
}
return contToken;
}
return null;
#else
// TODO : FACAVAL pending serialization above
return null;
#endif
}
public static string EncodeBase64(string str)
{
byte[] bytes = Encoding.UTF8.GetBytes(str);
string base64 = Convert.ToBase64String(bytes);
return base64;
}
public static string DecodeBase64(string base64)
{
byte[] bytes = Convert.FromBase64String(base64);
string str = Encoding.UTF8.GetString(bytes);
return str;
}
private static async Task SafeCreateAsync(this CloudTable table, int intervalMilliseconds = 5000, int totalMilliseconds = 120*1000)
{
while (true)
{
try
{
await table.CreateIfNotExistsAsync();
return;
}
catch (StorageException e)
{
var code = (HttpStatusCode)e.RequestInformation.HttpStatusCode;
// This can throw 409 if the table is in the process of being deleted.
if (code != HttpStatusCode.Conflict)
{
throw;
}
if (totalMilliseconds < 0)
{
// timeout.
throw;
}
}
await Task.Delay(intervalMilliseconds);
totalMilliseconds -= intervalMilliseconds;
}
}
// Do a query.
// If table doesn't exist, return 0-length list of results.
public async static Task<TElement[]> SafeExecuteQueryAsync<TElement>(this CloudTable table, TableQuery<TElement> query)
where TElement : ITableEntity, new()
{
try
{
IEnumerable<TElement> results = await table.ExecuteQuerySegmentedAsync(query, null);
var rows = results.ToArray();
return rows;
}
catch (StorageException e)
{
var code = (HttpStatusCode)e.RequestInformation.HttpStatusCode;
if (code == HttpStatusCode.NotFound)
{
return new TElement[0];
}
throw;
}
}
// Do a query
// If table doesn't exist, return null.
public static async Task<TableQuerySegment<TElement>> SafeExecuteQuerySegmentedAsync<TElement>(
this CloudTable table,
TableQuery<TElement> query,
TableContinuationToken token,
CancellationToken cancellationToken)
where TElement : ITableEntity, new()
{
try
{
var segment = await table.ExecuteQuerySegmentedAsync<TElement>(
query,
token,
null,
null,
cancellationToken);
return segment;
}
catch (StorageException e)
{
var code = (HttpStatusCode)e.RequestInformation.HttpStatusCode;
|
: "Spiritomb" },
{ id: 530, name: "Gible" },
{ id: 531, name: "Gabite" },
{ id: 532, name: "Garchomp" },
{ id: 533, name: "Garchomp\nMega Garchomp" },
{ id: 534, name: "Munchlax" },
{ id: 535, name: "Riolu" },
{ id: 536, name: "Lucario" },
{ id: 537, name: "Lucario\nMe<NAME>" },
{ id: 538, name: "Hippopotas" },
{ id: 539, name: "Hippowdon" },
{ id: 540, name: "Skorupi" },
{ id: 541, name: "Drapion" },
{ id: 542, name: "Croagunk" },
{ id: 543, name: "Toxicroak" },
{ id: 544, name: "Carnivine" },
{ id: 545, name: "Finneon" },
{ id: 546, name: "Lumineon" },
{ id: 547, name: "Mantyke" },
{ id: 548, name: "Snover" },
{ id: 549, name: "Abomasnow" },
{ id: 550, name: "Abomasnow\n<NAME>" },
{ id: 551, name: "Weavile" },
{ id: 552, name: "Magnezone" },
{ id: 553, name: "Lickilicky" },
{ id: 554, name: "Rhyperior" },
{ id: 555, name: "Tangrowth" },
{ id: 556, name: "Electivire" },
{ id: 557, name: "Magmortar" },
{ id: 558, name: "Togekiss" },
{ id: 559, name: "Yanmega" },
{ id: 560, name: "Leafeon" },
{ id: 561, name: "Glaceon" },
{ id: 562, name: "Gliscor" },
{ id: 563, name: "Mamoswine" },
{ id: 564, name: "Porygon-Z" },
{ id: 565, name: "Gallade" },
{ id: 566, name: "Gallade\nMe<NAME>" },
{ id: 567, name: "Probopass" },
{ id: 568, name: "Dusknoir" },
{ id: 569, name: "Froslass" },
{ id: 570, name: "Rotom" },
{ id: 571, name: "Rotom\nHeat Rotom" },
{ id: 572, name: "Rotom\nWash Rotom" },
{ id: 573, name: "Rotom\nFrost Rotom" },
{ id: 574, name: "Rotom\nFan Rotom" },
{ id: 575, name: "Rotom\nMow Rotom" },
{ id: 576, name: "Uxie" },
{ id: 577, name: "Mesprit" },
{ id: 578, name: "Azelf" },
{ id: 579, name: "Dialga" },
{ id: 580, name: "Palkia" },
{ id: 581, name: "Heatran" },
{ id: 582, name: "Regigigas" },
{ id: 583, name: "Giratina\nAltered Forme" },
{ id: 584, name: "Giratina\nOrigin Forme" },
{ id: 585, name: "Cresselia" },
{ id: 586, name: "Phione" },
|
v
JGEQqkzDSYFNcLdzHP6hMo1TNHIyoPSuJTyORfOROASiM7SIHOBgIemyMmI3D6bRlt3eJN0ObJww
yCN24IhJuox/ETg1pWFOlfS64d6k+CYfrsL2VBfmNBWYuuU/btNKKgSBXCIJtQ6ksOQRj8o9D+Jr
4gqQQT0FW7esnH9lWoi3+c0K6glLv5jsrsENT1JRoaimrNawTOXp+eFcQQ4tHAIdrtYvnqTzGdWb
uxDM8LEazCBf3vmAzubGvbJufLGniHgtOl0YaMfgVjqvLD+Tbphdgd8gMTFDunWjvLgGHbABGnkN
jUw7CaQnv/B2Cgnb2hCgpJOH9qtkjOg1KKEVqtDIz/tvdB4iu58S3OAT95IZjWfYG9b5e1PD4Z8+
YTu9Jn0crGrK7CsBbrSJne6m2JT5gbGYRkc5EXKHYgrQJGZk3j9ASDFYQ9NuDWGzgDHd9MoDhY1A
IxbG67hb319Y8BpcEIfDkh0WtGe6ophddFZ9btLtV8zMQCHRUD/OrBcCmKHKzAthB5l7SyF2W3PZ
USPSY8sho5/qFJcifFMic5X6rxw0Cy6NxzBXbH0nnlXIsTh4IR4GP7D+K3IHEkXBVYcmqzaANwWT
Hx+Cewq8VE6Zs/4ThvMzrNORJ379PVUh+gfTv6GMA16osmIEl8YZyhx3Z6QUdGjxP761IkfF8FKd
T0ku3cBdrJtzX+h/yLEQhcjYLjF6K/7vq8jPzrsnLcHe6Dmt3GXsludC3OcclijOzIpgZg9YEaiu
mUO/GQltLOXlAC3PAVbsPNb2IzxBrZX30Law20bF6edV/HU4a/Bt2J/mP1gr4kFFNwnOFw7Ue1Cd
lZWgllToWD90AKmwJHvjdmftpOC2/3szUIdw4nJBJwnh0lD6RgJ14cIO8nwammRFCAH1/ns4Borh
o7Kt17hyasbHRMoMC/CKYqt7fd6XU0qa9h0xrZv8G7F7Yc+t+SvmRi22Nm4vKTQV/Gxo3ZFDMTCD
qkV8i82j/GkOIAJf04OS46kU4uF49tB09htF89xkLm+4rOrgEqw17RwXWIRyt/ZV9KxhiPbtoKzy
O9YqUkrX5F24LCcSgGMIXnd4vZfyOMoB7j1iONpOcLZmDJRm0p2cvHbS336TPyxJ8N8eQemNOVTg
D5nXQJa485P3X/tukucjLSZuJFkP6tG/iMN2yJd2H5rfnFOgxHvyzwn8pOkL12IzwC+rxGtIXpV3
uvt0VjyqFDYQpellQ2sbCseLOK1AkRLDaOhHp+Zl+1KGFrxZ34Zd1CfYF6zFAcbHOwpXMA4UubO0
nwaaCHb4ifbiuEln1VJXb7jNlo0uE19RZ6cpNFbYRAb158rNc2dTsDIYN1fk |
<reponame>marijngoedegebure/NarrativeWorldCreator
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;
using System.ComponentModel;
namespace Common
{
[StructLayout(LayoutKind.Sequential)]
public struct Vec4Simple : IDisposable
{
float x, y, z, w;
public float X { get { return x; } }
public float Y { get { return y; } }
public float Z { get { return z; } }
public float W { get { return w; } }
public Vec4Simple(Vec4 v)
: this(v.X, v.Y, v.Z, v.W)
{
}
public Vec4Simple(float x, float y, float z, float w)
{
this.x = x;
this.y = y;
this.z = z;
this.w = w;
}
public Vec4Simple(BinaryReader r)
{
this.x = (float)r.ReadDouble();
this.y = (float)r.ReadDouble();
this.z = (float)r.ReadDouble();
this.w = (float)r.ReadDouble();
}
internal void Save(System.IO.BinaryWriter wr)
{
wr.Write((double)x);
wr.Write((double)y);
wr.Write((double)z);
wr.Write((double)w);
}
internal void Set(Vec4 v)
{
this.x = v.X;
this.y = v.Y;
this.z = v.Z;
this.w = v.W;
}
#region IDisposable Members
public void Dispose()
{
GC.SuppressFinalize(this);
}
#endregion
}
[StructLayout(LayoutKind.Sequential)]
public struct Vec3Simple : IDisposable
{
float x, y, z;
public float X { get { return x; } }
public float Y { get { return y; } }
public float Z { get { return z; } }
public Vec3Simple(Vec3 v)
: this(v.X, v.Y, v.Z)
{
}
public Vec3Simple(float x, float y, float z)
{
this.x = x;
this.y = y;
this.z = z;
}
public float Length()
{
return (float)Math.Sqrt(x * x + y * y + z * z);
}
public void Normalize()
{
float length = this.Length();
if (length > 0)
{
float scale = 1.0f / length;
x *= scale;
y *= scale;
z *= scale;
}
}
public Vec3 Vec3()
{
return new Vec3(x, y, z);
}
public void Set(Vec3 v)
{
x = v.X;
y = v.Y;
z = v.Z;
}
public Vec3Simple(BinaryReader r)
{
this.x = (float)r.ReadDouble();
this.y = (float)r.ReadDouble();
this.z = (float)r.ReadDouble();
}
internal void Save(System.IO.BinaryWriter wr)
{
wr.Write((double)x);
wr.Write((double)y);
wr.Write((double)z);
}
public void Transform(Matrix4 m)
{
if (m.matrix[0] == 1 && m.matrix[1] == 0 && m.matrix[2] == 0 && m.matrix[3] == 0 &&
m.matrix[4] == 0 && m.matrix[5] == 1 && m.matrix[6] == 0 && m.matrix[7] == 0 &&
m.matrix[8] == 0 && m.matrix[9] == 0 && m.matrix[10] == 1 && m.matrix[11] == 0 &&
m.matrix[12] == 0 && m.matrix[13] == 0 && m.matrix[14] == 0 && m.matrix[15] == 1)
return;
//new Vec4(v.X * m.matrix[0] + v.Y * m.matrix[1] + v.Z * m.matrix[2] + m.matrix[3],
// v.X * m.matrix[4] + v.Y * m.matrix[5] + v.Z * m.matrix[6] + m.matrix[7],
// v.X * m.matrix[8] + v.Y * m.matrix[9] + v.Z * m.matrix[10] + m.matrix[11],
// v.X * m.matrix[12] + v.Y * m.matrix[13] + v.Z * m.matrix[14] + m.matrix[15])
float w = X * m.matrix |
<issue_start><issue_comment>Title: Concurrent tests do not respect device
username_0: 15 |});
16 |
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:14:37)
at asyncGeneratorStep (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:241)
at _next (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:579)
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:744)
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:485)
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:6:5)
Mobile concurrency 8
✓ Verify browser window size
Mobile concurrency 9
✓ Verify browser window size
4/9 failed (13s)
npm ERR! code ELIFECYCLE
npm ERR! errno 4
npm ERR! testcafe-mobile-concurrency@1.0.0 test:concurrent: `testcafe -c 3`
npm ERR! Exit status 4
npm ERR!
npm ERR! Failed at the testcafe-mobile-concurrency@1.0.0 test:concurrent script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chung/.npm/_logs/2021-05-20T18_05_55_958Z-debug.log
```
</details>
<details>
<summary>Screenshots:</summary>
<!-- If applicable, add screenshots to help explain the issue. -->
```
```
</details>
### Steps to Reproduce:
<!-- Describe what we should do to reproduce the behavior you encountered. -->
1. Clone the repo: https://github.com/username_0/testcafe-mobile-concurrency
3. Run `npm test:concurrent` to run a concurrent test
4. See the error
### Your Environment details:
* testcafe version: `1.14.2`
* node.js version: `v12.16.2`
* command-line arguments: `testcafe`
* browser name and version: `chrome:emulation:device=iphone X;cdpPort=9223`
* platform and version: macOS 10.14.6
<issue_comment>username_1: Hello,
Thank you for your report. I have reproduced the behavior you described. I passed this question on to my colleagues. We will let you know once we have any results.
<issue_comment>username_1: We found the cause of the breakdown. Multiple browser instances cannot use `cdpPort` in parallel. We decided to raise an error if the `cdpPort` parameter was specified with concurrency mode enabled. In the meantime, please omit `cdpPort` so TestCafe automatically assigns free ports for use in different browser instances.
<issue_comment>username_0: @username_1 thanks, removing `cdpPort` seems to fix my issue!<issue_closed>
<issue_comment>username_2: 15 |});
16 |
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:14:37)
at asyncGeneratorStep (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:241)
at _next (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:579)
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:744)
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:1:485)
at <anonymous> (/Users/chung/Projects/testcafe-mobile-concurrency/tests/mobile.test.7.js:6:5)
Mobile concurrency 8
✓ Verify browser window size
Mobile concurrency 9
✓ Verify browser window size
4/9 failed (13s)
npm ERR! code ELIFECYCLE
npm ERR! errno 4
npm ERR! testcafe-mobile-concurrency@1.0.0 test:concurrent: `testcafe -c 3`
npm ERR! Exit status 4
npm ERR!
npm ERR! Failed at the test |
<issue_start><issue_comment>Title: Ellipsis indexing and assignment not working when needed number of `:` is zero
username_0: I was trying to index using `...` on both sides of assignment so I could use the same function for inputs with 1, 2, or N dimensions.
Here is code for the MCVE (using `numba` 0.39.0):
```python
import numpy as np
import numba
def func(A, B, indices):
rv = A.copy()
for i in range(indices.size):
index = indices[i]
rv[..., index] = B[..., index]
return rv
jitted = numba.njit(func)
A = np.ones((3, 5))
B = 2 * np.ones((3, 5))
indices = np.array([0, 2])
jitted(A[0], B[0], indices) # <-- raises. traceback below
```
Let's compare results using `numpy` and `numba`:
```python
In [2]: func(A, B, indices)
Out[2]:
array([[2., 1., 2., 1., 1.],
[2., 1., 2., 1., 1.],
[2., 1., 2., 1., 1.]])
In [3]: func(A[0], B[0], indices)
Out[3]: array([2., 1., 2., 1., 1.])
In [4]: jitted(A, B, indices)
Out[4]:
array([[2., 1., 2., 1., 1.],
[2., 1., 2., 1., 1.],
[2., 1., 2., 1., 1.]])
In [5]: jitted(A[0], B[0], indices) # <-- raises. traceback below
```
Traceback:
<details>
```python-traceback
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
~/miniconda3/envs/numba3/lib/python3.7/site-packages/numba/targets/base.py in cast(self, builder, val, fromty, toty)
674 try:
--> 675 impl = self._casts.find((fromty, toty))
676 return impl(self, builder, fromty, toty, val)
~/miniconda3/envs/numba3/lib/python3.7/site-packages/numba/targets/base.py in find(self, sig)
47 if out is None:
---> 48 out = self._find(sig)
49 self._cache[sig] = out
~/miniconda3/envs/numba3/lib/python3.7/site-packages/numba/targets/base.py in _find(self, sig)
56 else:
---> 57 raise NotImplementedError(self, sig)
58
NotImplementedError: (<numba.targets.base.OverloadSelector object at 0x1059269e8>, (array(float64, 0d, C), float64))
During handling of the above exception, another exception occurred:
NotImplementedError Traceback (most recent call last)
~/miniconda3/envs/numba3/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs)
576 try:
--> 577 yield
578 except NumbaError as e:
~/miniconda3/envs/numba3/lib/python3.7/site-packages/numba/lowering.py in lower_block(self, block)
253 loc=self.loc, errcls_=defaulterrcls):
--> 254 self.lower_inst(inst)
255
~/miniconda3/envs/numba3/lib/python3.7/site-packages/numba/lowering.py in lower_inst(self, inst)
357 assert signature is not None
--> 358 return self.lower_setitem(inst.target, inst.index, inst.value, signature)
[Truncated]
File "<ipython-input-1-f6cc8d5fb861>", line 8:
def func(A, B, indices):
<source elided>
index = indices[i]
rv[..., index] = B[..., index]
^
[1] During: lowering "rv[$22.13] = $22.9" at <ipython-input-1-f6cc8d5fb861> (8)
-------------------------------------------------------------------------------
This should not have happened |
Space = 11,
DestroyPrivateData = 12,
ValidateDriver = 13,
Detect = 15,
InstallWizard = 16,
DestroyWizardData = 17,
PropertyChange = 18,
EnableClass = 19,
DetectVerify = 20,
InstallDeviceFiles = 21,
UnRemove = 22,
SelectBestCompatDrv = 23,
AllowInstall = 24,
RegisterDevice = 25,
NewDeviceWizardPreSelect = 26,
NewDeviceWizardSelect = 27,
NewDeviceWizardPreAnalyze = 28,
NewDeviceWizardPostAnalyze = 29,
NewDeviceWizardFinishInstall = 30,
Unused1 = 31,
InstallInterfaces = 32,
DetectCancel = 33,
RegisterCoInstallers = 34,
AddPropertyPageAdvanced = 35,
AddPropertyPageBasic = 36,
Reserved1 = 37,
Troubleshooter = 38,
PowerMessageWake = 39,
AddRemotePropertyPageAdvanced = 40,
UpdateDriverUi = 41,
Reserved2 = 48
}
internal enum StateChangeAction
{
Enable = 1,
Disable = 2,
PropChange = 3,
Start = 4,
Stop = 5
}
[Flags]
internal enum Scopes
{
Global = 1,
ConfigSpecific = 2,
ConfigGeneral = 4
}
internal enum SetupApiError
{
NoAssociatedClass = unchecked( (int)0xe0000200 ),
ClassMismatch = unchecked( (int)0xe0000201 ),
DuplicateFound = unchecked( (int)0xe0000202 ),
NoDriverSelected = unchecked( (int)0xe0000203 ),
KeyDoesNotExist = unchecked( (int)0xe0000204 ),
InvalidDevinstName = unchecked( (int)0xe0000205 ),
InvalidClass = unchecked( (int)0xe0000206 ),
DevinstAlreadyExists = unchecked( (int)0xe0000207 ),
DevinfoNotRegistered = unchecked( (int)0xe0000208 ),
InvalidRegProperty = unchecked( (int)0xe0000209 ),
NoInf = unchecked( (int)0xe000020a ),
NoSuchHDevinst = unchecked( (int)0xe000020b ),
CantLoadClassIcon = unchecked( (int)0xe000020c ),
InvalidClassInstaller = unchecked( (int)0xe000020d ),
DiDoDefault = unchecked( (int)0xe000020e ),
DiNoFileCopy = unchecked( (int)0xe000020f ),
InvalidHwProfile = unchecked( (int)0xe0000210 ),
NoDeviceSelected = unchecked( (int)0xe0000211 ),
DevinfolistLocked = unchecked( (int)0xe0000212 ),
DevinfodataLocked = unchecked( (int)0xe0000213 ),
DiBadPath = unchecked( (int)0xe0000214 ),
NoClassInstallParams = unchecked( (int)0xe0000215 ),
FileQueueLocked = unchecked( (int)0xe0000216 ),
BadServiceInstallSect = unchecked( (int)0xe0000217 ),
NoClassDriverList = unchecked( (int)0xe0000218 ),
NoAssociatedService = unchecked( (int)0xe0000219 ),
NoDefaultDeviceInterface = unchecked( (int)0xe000021a ),
DeviceInterfaceActive = unchecked( (int)0xe000021b ),
DeviceInterfaceRemoved = unchecked( (int)0xe000021c ),
BadInterfaceInstallSect = unchecked( (int)0xe000021d ),
NoSuchInterfaceClass = unchecked( (int)0xe000021e ),
InvalidReferenceString = unchecked( (int)0xe000021f ),
InvalidMachineName = unchecked |
<issue_start><issue_comment>Title: cargo installation is failing
username_0: Hello!
First things first, THANK YOU SO MUCH for this excellent tool. I use it all the time.
I was trying to install the newer rust-based version of git-tidy and I'm hitting this issue:
```
▪ cargo install git-tidy
Updating crates.io index
Installing git-tidy v2.0.1
error: failed to compile `git-tidy v2.0.1`, intermediate artifacts can be found at `/tmp/cargo-installgtcftB`
Caused by:
failed to select a version for the requirement `zeroize = "^0.9.3"`
candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...
location searched: crates.io index
required by package `dialoguer v0.7.1`
... which is depended on by `git-tidy v2.0.1`
```
My rust is pretty poor. I'd love to help, but I don't have the skills. :-)
<issue_comment>username_1: @username_2 samesies.
<issue_comment>username_2: @username_0 AH! Somehow I missed the notification when you originally posted this. @username_1 thank you for commenting to put this back in my inbox. I'll try to take a look this weekend!
(thank you for the kind words! ❤️)
<issue_comment>username_1: Well, now I feel a jerk for not also saying, it but at the time I hadn't yet installed your wonderful tool. Now I'm on the older version from Brew, and can echo the thanks for making it.
<issue_comment>username_2: @username_1 @username_0 Okay, so:
**First**: Thank you again for raising this issue! (I'll get the readme updated with these instructions too). ❤️
**Second** (the problem/fix/workaround): It looks like zeroize 1.4.1 now requires the "resolver" feature only available in newer versions of cargo. I tried fiddling with the dialoguer and indicatif versions to see if I could find a version that totally sidestepped this without requiring rewrites and sadly couldn't come up with anything.
The good news is that I was able to fix this by just updating cargo running `rustup update`. I _think_ this should also work for y'all.
Longer term: I opened #46 and will try to update my home-brew tap this weekend.
<issue_comment>username_2: **Update:** readme has been updated
<issue_comment>username_0: Oh excellent. Thanks for checking in on this. I went ahead and updated everything using `rustup update`.
I seem to be having the same issue:
Warning: Giant wall of text incoming!
```
┌─[woodnt][hack][~]
└─▪ rustup update
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: latest update on 2021-07-29, rust version 1.54.0 (a178d0322 2021-07-26)
info: downloading component 'rust-src'
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-std'
info: downloading component 'rustc'
68.6 MiB / 68.6 MiB (100 %) 29.3 MiB/s in 2s ETA: 0s
info: downloading component 'rustfmt'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'rust-src'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-std'
20.0 MiB / 20.0 MiB (100 %) 19.2 MiB/s in 1s ETA: 0s
info: installing component 'rustc'
68.6 MiB / 68.6 MiB (100 %) 21.4 MiB/s in 3s ETA: 0s
info: installing component 'rustfmt'
info: checking for self-updates
info: downloading self-update
stable-aarch64-apple |
acked)
continue;
Quaternion rotParentN = bodyData.joint[prevJoint].normalRotation;
Quaternion rotDefaultN = Quaternion.FromToRotation(KinectInterop.JointBaseDir[prevJoint], KinectInterop.JointBaseDir[jc.thisJoint]);
rotParentN = rotParentN * rotDefaultN;
Quaternion rotJointN = bodyData.joint[jc.thisJoint].normalRotation;
Quaternion rotLocalN = Quaternion.Inverse(rotParentN) * rotJointN;
Vector3 eulerAnglesN = rotLocalN.eulerAngles;
// if(jc.thisJoint == (int)KinectInterop.JointType.KneeLeft)
// {
// float angle1X = eulerAnglesN.x <= 180f ? eulerAnglesN.x : eulerAnglesN.x - 360f;
// float angle1Y = eulerAnglesN.y <= 180f ? eulerAnglesN.y : eulerAnglesN.y - 360f;
// float angle1Z = eulerAnglesN.z <= 180f ? eulerAnglesN.z : eulerAnglesN.z - 360f;
//
// string sDebugText = string.Format("{0}. {1} - ({2:000}, {3:000}, {4:000})",
// frameNum, ((KinectInterop.JointType)jc.thisJoint).ToString(), angle1X, angle1Y, angle1Z);
//
// if(debugText != null && (Time.time - currentTime) >= 0.5f)
// {
// currentTime = Time.time;
// //debugText.text = sDebugText;
// }
//
// //Debug.Log(sDebugText);
// }
bool isConstrained = false;
string sDebug = string.Empty;
for(int a = 0; a < jc.axisConstrainrs.Count; a++)
{
AxisOrientationConstraint ac = jc.axisConstrainrs[a];
Quaternion rotLimited = rotLocalN;
switch(ac.consType)
{
case 0:
break;
case CT.LimA:
eulerAnglesN = LimitAngles(eulerAnglesN, ac.axis, ac.angleMin, ac.angleMax);
rotLimited = Quaternion.Euler(eulerAnglesN);
break;
case CT.LimST:
rotLimited = LimitSwing(rotLocalN, ac.axis, ac.angleMin);
rotLimited = LimitTwist(rotLimited, ac.axis, ac.angleMax);
break;
case CT.LimH:
float lastAngle = bodyData.joint[jc.thisJoint].lastAngle;
rotLimited = LimitHinge(rotLocalN, ac.axis, ac.angleMin, ac.angleMax, ref lastAngle);
bodyData.joint[jc.thisJoint].lastAngle = lastAngle;
break;
default:
throw new Exception("Undefined constraint type found: " + (int)ac.consType);
}
if(rotLimited != rotLocalN)
{
rotLocalN = rotLimited;
isConstrained = true;
}
}
if(sDebug.Length > 0)
{
if(debugText != null && jc.thisJoint == (int)KinectInterop.JointType.ElbowLeft)
{
// debugText.text = sDebug;
}
Debug.Log(sDebug);
}
if(isConstrained)
{
rotJointN = rotParentN * rotLocalN;
Vector3 eulerJoint = rotJointN.eulerAngles;
Vector3 eulerJointM = new Vector3(eulerJoint.x, -eulerJoint.y, -eulerJoint.z);
Quaternion rotJointM = Quaternion.Euler(eulerJointM);
// put it back into the bone orientations
bodyData.joint[jc.thisJoint].normalRotation = rotJointN;
bodyData.joint[jc.thisJoint].mirroredRotation = rotJointM;
}
}
}
// find the bone constraint structure for given joint
// returns the structure index in the list, or -1 if the bone structure is not found
private int FindBoneOrientationConstraint(int thisJoint)
{
for(int i = 0; i < jointConstraints.Count; i++)
{
if(jointConstraints[i].thisJoint == thisJoint)
return i;
}
return -1;
}
// AddJointConstraint - Adds a joint constraint to the system.
private void AddBoneOrientationConstraint(int thisJoint, CT consType, Vector3 axis, float angleMin, float angleMax)
{
int index = FindBoneOrientationConstraint(thisJoint);
Bone |
<issue_start><issue_comment>Title: [mobc-redis] PONG as result for con.get() in broken connection
username_0: Hey!
I've been using mobc-redis in a project for a while and I found a strange issue, which so far only happened in production (so with a lot of load) and which I haven't been able to reproduce locally.
It seems that in some cases, a connection becomes somehow "corrupted" and only returns `PONG` on `con.get()` calls, although the actual value in redis is a valid string. Also deleting that value from redis didn't change anything, as the problem seemed to be at the connection-level.
However, the connection doesn't appear to be broken (as the ping's when recycling it succeed), so the misbehaviour persists through several client-requests, as the connection is successfully recycled.
I had the same issue using the old CMD/GET API.
At first I thought this might happen in very long-running connections, so I reduced the `max_lifetime` to 30 seconds and that helped, but it still happens (although, as I said, very rarely). And if it happens it's limited to this one connection and stops once the connection is dropped.
I'm using:
```
mobc-redis = "0.5.1"
mobc = "0.5.7"
```
This is the config for the pool:
```rust
const CACHE_POOL_MAX_OPEN: u64 = 32;
const CACHE_POOL_MAX_IDLE: u64 = 8;
const CACHE_POOL_TIMEOUT_SECONDS: u64 = 5;
const CACHE_POOL_EXPIRE_SECONDS: u64 = 30;
pub async fn connect() -> Result<RedisPool> {
let client = redis::Client::open(CONFIG.cache.host.as_str()).map_err(RedisClientError)?;
let manager = RedisConnectionManager::new(client);
Ok(Pool::builder()
.max_open(CACHE_POOL_MAX_OPEN)
.max_idle(CACHE_POOL_MAX_IDLE)
.get_timeout(Some(Duration::from_secs(CACHE_POOL_TIMEOUT_SECONDS)))
.max_lifetime(Some(Duration::from_secs(CACHE_POOL_EXPIRE_SECONDS)))
.build(manager))
}
```
and this is how e.g. a `get` works:
```rust
async fn get_con(pool: &RedisPool) -> Result<RedisCon> {
pool.get().await.map_err(RedisPoolError)
}
pub async fn get_str(pool: &RedisPool, key: &str) -> Result<String> {
let mut con = get_con(&pool).await?;
let value = con.get(key).await.map_err(RedisCMDError)?;
FromRedisValue::from_redis_value(&value).map_err(RedisTypeError)
}
```
So as you can see, it's a pretty basic setup.
I'm not sure if this is an issue with the underlying redis-library, or with recycling connections - it seems the `PONG` response of the ping on the connection gets stuck somehow?
I tried to locally reproduce it with redis-rs and with mobc-redis by doing billions of get's, but have never seen it. Maybe you have an idea what could be the issue?
Anyway, thanks for this fantastic project, besides this issue (which I fixed by validating the return-value from the `get`), it's been working great, same for mobc-postgres. :+1:
Any help you could provide would be greatly appreciated.
<issue_comment>username_1: Hey! Thanks for your feedback. I tried but failed to reproduce your issue, but I can share some thinking with you.
At the default situation, when getting a connection from the pool, Mobc will always do a health check for the candidate conn. In your code, there are only the get requests, so when it is processing lots of sequential requests, the whole process is like this:
```
req: PING - GET - PING - GET - PING - GET ..... PING - GET
res: PONG - Val - PONG - Val - PONG - Val ..... PONG - Val
```
Since I can't reproduce the bug, according to your description, I can only give a hypothesis:
when a conn processing a GET request, it sent a GET command to the server, but before it reading the data from the server, something(we don't know yet) just happened, and the request was interrupted. But data bytes were still here and were read by the next ping command.
In such a case, the conn was still alive, but all commands and responses became mismatched, every GET command got a pong, and every PING command got a certain value. As you can imagine, the process became this:
```
req: PING - GET - PING - GET - PING - GET ..... PING - GET
res: Val - |
2 PM] [INFO] TASK [ibm.blockchain_platform_manager : Retrieve current system channel configuration block] ***
[3/2/2020 2:51:57 PM] [INFO] fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["peer", "channel", "fetch", "config", "/tmp/ansible.re608cqw/config_block.pb", "-o", "localhost:17056", "-c", "testchainid", "--ordererTLSHostnameOverride", "orderer.example.com"], "delta": "0:00:04.649041", "end": "2020-03-02 12:51:57.536575", "msg": "non-zero return code", "rc": 1, "start": "2020-03-02 12:51:52.887534", "stderr": "Error: failed to create deliver client: orderer client failed to connect to localhost:17056: failed to create new connection: context deadline exceeded", "stderr_lines": ["Error: failed to create deliver client: orderer client failed to connect to localhost:17056: failed to create new connection: context deadline exceeded"], "stdout": "", "stdout_lines": []}
[3/2/2020 2:51:57 PM] [INFO] PLAY RECAP *********************************************************************
[3/2/2020 2:51:57 PM] [INFO] localhost : ok=143 changed=54 unreachable=0 failed=1 skipped=23 rescued=0 ignored=0
[3/2/2020 2:52:13 PM] [ERROR] Failed to start Local Fabric: Error: Failed to execute command "/bin/sh" with arguments "generate.sh" return code 2
[3/2/2020 2:52:15 PM] [SUCCESS] Connected to Local Fabric
```
Thank you.
<issue_comment>username_1: Hi @username_0 the actual error is
```
[3/2/2020 2:51:52 PM] [INFO] TASK [ibm.blockchain_platform_manager : Retrieve current system channel configuration block] ***
[3/2/2020 2:51:57 PM] [INFO] fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["peer", "channel", "fetch", "config", "/tmp/ansible.re608cqw/config_block.pb", "-o", "localhost:17056", "-c", "testchainid", "--ordererTLSHostnameOverride", "orderer.example.com"], "delta": "0:00:04.649041", "end": "2020-03-02 12:51:57.536575", "msg": "non-zero return code", "rc": 1, "start": "2020-03-02 12:51:52.887534", "stderr": "Error: failed to create deliver client: orderer client failed to connect to localhost:17056: failed to create new connection: context deadline exceeded", "stderr_lines": ["Error: failed to create deliver client: orderer client failed to connect to localhost:17056: failed to create new connection: context deadline exceeded"], "stdout": "", "stdout_lines": []}
```
i'm not sure why you are seeing this though. Have you tried tearing down and trying it again. Also are there any more errors in the docker logs that might give a clue as to why this failed?
<issue_comment>username_0: Docker logs are empty
I tried to install then inisiate the contract it gave me this output:( install work but initiate didn't)
```
[3/2/2020 9:58:05 PM] [SUCCESS] Connected to Local Fabric
[3/2/2020 9:58:12 PM] [INFO] instantiateSmartContract
[3/2/2020 9:59:44 PM] [INFO] installSmartContract
[3/2/2020 9:59:46 PM] [INFO] packageSmartContract
[3/2/2020 9:59:50 PM] [SUCCESS] Smart Contract packaged: /home/yehia |
import { ensureNotNull } from './assertions';
import { isNumber } from './strict-type-checks';
const fontSizeRegex = /(\d+(?:\.\d+)?)(px|em|rem|pt)/g;
// tslint:disable-next-line:no-any
const context = document.createElement('canvas').getContext('2d') || {} as any;
const backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
const currentRatio = (window.devicePixelRatio || 1) / backingStore;
export function getContext2d(canvasElement: HTMLCanvasElement): CanvasRenderingContext2D | null {
if (canvasElement.width !== Math.floor(parseInt(ensureNotNull(canvasElement.style.width)) * currentRatio)) {
canvasElement.style.width = canvasElement.width + 'px';
canvasElement.width *= currentRatio;
canvasElement.height *= currentRatio;
}
const originalContext = canvasElement.getContext('2d');
return originalContext === null ? null : new CanvasWrapper(originalContext, currentRatio);
}
// BEWARE: it's important to call CanvasRenderingContext2D methods with proper arguments number
// it's not safe to call overloaded method with less arguments number using trailing undefined params
// in this case this method can do nothing at all
// see fillText as an example
export class CanvasWrapper implements CanvasRenderingContext2D {
public readonly canvas: HTMLCanvasElement;
private readonly _ctx: CanvasRenderingContext2D;
private readonly _rto: number; // ratio
public constructor(originalContext: CanvasRenderingContext2D, ratio: number) {
this.canvas = originalContext.canvas;
this._ctx = originalContext;
this._rto = ratio;
}
public restore(): void {
this._ctx.restore();
}
public save(): void {
this._ctx.save();
}
public getTransform(): DOMMatrix {
return this._ctx.getTransform();
}
public resetTransform(): void {
this._ctx.resetTransform();
}
public rotate(angle: number): void {
this._ctx.rotate(angle);
}
public scale(x: number, y: number): void {
this._ctx.scale(x, y);
}
public setTransform(transform?: DOMMatrix2DInit): void;
public setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
public setTransform(a: number | DOMMatrix2DInit | undefined, b?: number, c?: number, d?: number, e?: number, f?: number): void {
if (isNumber(a)) {
this._ctx.setTransform(a, b as number, c as number, d as number, e as number, f as number);
} else {
this._ctx.setTransform(a);
}
}
public transform(a: number, b: number, c: number, d: number, e: number, f: number): void {
this._ctx.transform(a, b, c, d, e, f);
}
public translate(x: number, y: number): void {
this._ctx.translate(x * this._rto, y * this._rto);
}
public get globalAlpha(): number {
return this._ctx.globalAlpha;
}
public set globalAlpha(value: number) {
this._ctx.globalAlpha = value;
}
public get globalCompositeOperation(): string {
return this._ctx.globalCompositeOperation;
}
public set globalCompositeOperation(value: string) {
this._ctx.globalCompositeOperation = value;
}
public get imageSmoothingEnabled(): boolean {
return this._ctx.imageSmoothingEnabled;
}
public set imageSmoothingEnabled(value: boolean) {
this._ctx.imageSmoothingEnabled = value;
}
public get imageSmoothingQuality(): ImageSmoothingQuality {
return this._ctx.imageSmoothingQuality;
}
public set imageSmoothingQuality(value: ImageSmoothingQuality) {
this._ctx.imageSmoothingQuality = value;
}
public get fillStyle(): string | CanvasGradient | CanvasPattern {
return this._ctx.fillStyle;
}
public set fillStyle(value: string | CanvasGradient | CanvasPattern) {
this._ctx.fillStyle = value;
}
public get strokeStyle(): string | CanvasGradient | CanvasPattern {
return this._ctx.strokeStyle;
}
public set strokeStyle(value: string | CanvasGradient | CanvasPattern) {
this._ctx.strokeStyle = value;
}
public createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient {
return this._ctx.createLinearGradient(x0 * this._rto, y0 * this._rto, x1 * this._rto, y1 * this._rto);
|
2.0.1, -F, C:\Users\Netanel\AppData\Local\Temp\APKTOOL1391045 780187086644.tmp, -0, arsc, -0, conf, -0, jav, -0, arsc, -I, C:\Users\Netanel\AppData\Local\apktool\framework\1 .apk, -S, G:\APK-Multi-Tool\APK-Multi-Tool\projects\waze.apk\res, -M, G:\APK-Multi-Tool\APK-Multi-Tool\projects\waze.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:473)
at brut.androlib.Androlib.buildResources(Androlib.jav a:407)
at brut.androlib.Androlib.build(Androlib.java:306)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Netanel\AppData\Local\Temp\brut_util_Jar_ 9174809596146565399.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 23, --version-code, 1021026, --version-name, 4.2.0.1, -F, C:\Users\Netanel\AppData\Local\Temp\APKTOOL1391045 780187086644.tmp, -0, arsc, -0, conf, -0, jav, -0, arsc, -I, C:\Users\Netanel\AppData\Local\apktool\framework\1 .apk, -S, G:\APK-Multi-Tool\APK-Multi-Tool\projects\waze.apk\res, -M, G:\APK-Multi-Tool\APK-Multi-Tool\projects\waze.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:459)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Netanel\AppData\Local\Temp\brut_util_Jar_ 9174809596146565399.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 23, --version-code, 1021026, --version-name, 4.2.0.1, -F, C:\Users\Netanel\AppData\Local\Temp\APKTOOL1391045 780187086644.tmp, -0, arsc, -0, conf, -0, jav, -0, arsc, -I, C:\Users\Netanel\AppData\Local\apktool\framework\1 .apk, -S, G:\APK-Multi-Tool\APK-Multi-Tool\projects\waze.apk\res, -M, G:\APK-Multi-Tool\APK-Multi-Tool\projects\waze.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:433)
... 6 more
<issue_comment>username_1: Unfortunately errors regarding PNGs really require the apks to investigate. Try and upload the frameworks and apk to a file sharing service and share that link here. I will investigate.
<issue_comment>username_0: 1. this is the last update app - http://www.mediafire.com/file/nqp7d3lpd8uqlx7/com.waze.apk
2. how i get update frameworks?
<issue_comment>username_0: https://www.dropbox.com/sh/5uy4661z3mmzqmd/AAA6v-yXZb-icALt747vILsKa/framework-res.ap |
Entity> delete({bool recursive = false}) async {
deleteSync(recursive: recursive);
return this;
}
@override
void deleteSync({bool recursive = false}) =>
internalDeleteSync(recursive: recursive);
@override
Stream<io.FileSystemEvent> watch({
int events = io.FileSystemEvent.all,
bool recursive = false,
}) =>
throw UnsupportedError('Watching not supported in MemoryFileSystem');
@override
bool get isAbsolute => fileSystem.path.isAbsolute(path);
@override
FileSystemEntity get absolute {
String absolutePath = path;
if (!fileSystem.path.isAbsolute(absolutePath)) {
absolutePath = fileSystem.path.join(fileSystem.cwd, absolutePath);
}
return clone(absolutePath);
}
@override
Directory get parent => MemoryDirectory(fileSystem, dirname);
/// Helper method for subclasses wishing to synchronously create this entity.
/// This method will traverse the path to this entity one segment at a time,
/// calling [createChild] for each segment whose child does not already exist.
///
/// When [createChild] is invoked:
/// - `parent` will be the parent node for the current segment and is
/// guaranteed to be non-null.
/// - `isFinalSegment` will indicate whether the current segment is the tail
/// segment, which in turn indicates that this is the segment into which to
/// create the node for this entity.
///
/// This method returns with the backing node for the entity at this [path].
/// If an entity already existed at this path, [createChild] will not be
/// invoked at all, and this method will return with the backing node for the
/// existing entity (whose type may differ from this entity's type).
///
/// If [followTailLink] is true and the result node is a link, this will
/// resolve it to its target prior to returning it.
@protected
Node? internalCreateSync({
required Node? createChild(DirectoryNode parent, bool isFinalSegment),
bool followTailLink = false,
bool visitLinks = false,
}) {
return fileSystem.findNode(
path,
followTailLink: followTailLink,
visitLinks: visitLinks,
segmentVisitor: (
DirectoryNode parent,
String childName,
Node? child,
int currentSegment,
int finalSegment,
) {
if (child == null) {
assert(!parent.children.containsKey(childName));
child = createChild(parent, currentSegment == finalSegment);
if (child != null) {
parent.children[childName] = child;
}
}
return child;
},
);
}
/// Helper method for subclasses wishing to synchronously rename this entity.
/// This method will look for an existing file system entity at the location
/// identified by [newPath], and if it finds an existing entity, it will check
/// the following:
///
/// - If the entity is of a different type than this entity, the operation
/// will fail, and a [io.FileSystemException] will be thrown.
/// - If the caller has specified [validateOverwriteExistingEntity], then that
/// method will be invoked and passed the node backing of the existing
/// entity that would overwritten by the rename action. That callback is
/// expected to throw a [io.FileSystemException] if overwriting the existing
/// entity is not allowed.
///
/// If the previous two checks pass, or if there was no existing entity at
/// the specified location, this will perform the rename.
///
/// If [newPath] cannot be traversed to because its directory does not exist,
/// a [io.FileSystemException] will be thrown.
///
/// If [followTailLink] is true and there is an existing link at the location
/// identified by [newPath], this will resolve the link to its target prior
/// to running the validation checks above.
///
/// If [checkType] is specified, it will be used to validate that the file
/// system entity that exists at [path] is of the expected type. By default,
/// [defaultCheckType] is used to perform this validation.
@protected
FileSystemEntity internalRenameSync<T extends Node>(
String newPath, {
RenameOverwriteValidator<T>? validateOverwriteExistingEntity,
bool followTailLink = false,
utils.TypeChecker? checkType,
}) {
Node node = backing;
(checkType ?? defaultCheckType)(node);
fileSystem.findNode(
newPath,
segmentVisitor: (
DirectoryNode parent,
String childName,
Node? child,
int currentSegment,
|
SpacingY | 0;
},
_calculateParagraphLength(paragraphedStrings: string[], ctx: CanvasRenderingContext2D) {
const paragraphLength: number[] = [];
for (const para of paragraphedStrings) {
const width: number = safeMeasureText(ctx, para, _fontDesc);
paragraphLength.push(width);
}
return paragraphLength;
},
_measureText(ctx: CanvasRenderingContext2D, fontDesc: string) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return (string: string) => safeMeasureText(ctx, string, fontDesc);
},
_measureSingleStrHeight(str: string): number {
if (!_context) return 0;
const width = this._measureText(_context, _fontDesc)(str)
if (str === ' ') {
return width
}
return width > 0 ? _fontSize : 0;
},
_calculateShrinkFont(paragraphedStrings: string[]) {
if (!_context) return;
const paragraphLength = this._calculateParagraphLength(paragraphedStrings, _context);
let i = 0;
let totalHeight = 0;
let maxLength = 0;
if (_isWrapText) {
const canvasWidthNoMargin = _nodeContentSize.width;
const canvasHeightNoMargin = _nodeContentSize.height;
if (canvasWidthNoMargin < 0 || canvasHeightNoMargin < 0) {
return;
}
totalHeight = canvasHeightNoMargin + 1;
const actualFontSize = _fontSize + 1;
let textFragment: string[] = [];
let left = 0;
let right = actualFontSize | 0;
let mid = 0;
while (left < right) {
mid = (left + right + 1) >> 1;
if (mid <= 0) {
// logID(4003);
break;
}
_fontSize = mid;
_fontDesc = this._getFontDesc();
_context.font = _fontDesc;
const lineHeight = this._getLineHeight();
totalHeight = 0;
for (i = 0; i < paragraphedStrings.length; ++i) {
const allWidth = safeMeasureText(_context, paragraphedStrings[i], _fontDesc);
textFragment = fragmentText(paragraphedStrings[i],
allWidth,
canvasWidthNoMargin,
this._measureText(_context, _fontDesc));
totalHeight += textFragment.length * lineHeight;
}
if (totalHeight > canvasHeightNoMargin) {
right = mid - 1;
} else {
left = mid;
}
}
if (left === 0) {
// logID(4003);
} else {
_fontSize = left;
_fontDesc = this._getFontDesc();
_context.font = _fontDesc;
}
} else {
totalHeight = paragraphedStrings.length * this._getLineHeight();
for (i = 0; i < paragraphedStrings.length; ++i) {
if (maxLength < paragraphLength[i]) {
maxLength = paragraphLength[i];
}
}
const scaleX = (_canvasSize.width - _canvasPadding.width) / maxLength;
const scaleY = _canvasSize.height / totalHeight;
_fontSize = (_drawFontsize * Math.min(1, scaleX, scaleY)) | 0;
_fontDesc = this._getFontDesc();
_context.font = _fontDesc;
}
},
_calculateWrapText(paragraphedStrings: string[]) {
if (!_isWrapText || !_context) return;
_splitStrings = [];
const canvasWidthNoMargin = _nodeContentSize.width;
for (let i = 0; i < paragraphedStrings.length; ++i) {
const allWidth = safeMeasureText(_context, paragraphedStrings[i], _fontDesc);
const textFragment = fragmentText(paragraphedStrings[i],
allWidth,
canvasWidthNoMargin,
this._measureText(_context, _fontDesc));
_splitStrings = _splitStrings.concat(textFragment);
}
},
_calculateLabelFont() {
if (!_context) {
return;
}
const paragraphedStrings = _string.split('\n');
_splitStrings = paragraphedStrings;
_fontDesc = this._getFontDesc();
_context.font = _fontDesc;
switch (_overflow) {
case Overflow.NONE: {
let canvasSizeX = 0;
let canvasSizeY = 0;
for (let i = 0; i < _splitStrings.length; ++i) {
let paraLength = 0
for (let ii = 0 |
<gh_stars>100-1000
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.InteropServices;
namespace Sylvan.Primitives
{
/// <summary>
/// A structure capable of holding common C# primitive types. Additionally, it can contain <see
/// cref="DateTime"/>, <see cref="DateTimeOffset"/><see cref="TimeSpan"/> and <see cref="Guid"/>.
/// </summary>
/// <remarks>
/// The size of this struct is 16 bytes regardless of what it is holding. This is the size
/// required by the largest value type it can contain. The struct does not store the knowledge of
/// the type of object it contains, which must be stored separately. <see cref="TypedPrimitive"/>
/// expands on Primitive to store type information (requiring additional storage size) and
/// provide type checks when retrieving values. Primitive should be used when a homogeneous set
/// of values needs to be stored and it would be more efficient to store the type information
/// externally.
/// </remarks>
[SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "<Pending>")]
[StructLayout(LayoutKind.Explicit)]
public struct Primitive : IEquatable<Primitive>
{
[FieldOffset(0)]
ulong lo;
[FieldOffset(8)]
ulong hi;
[FieldOffset(0)]
bool boolValue;
[FieldOffset(0)]
char charValue;
[FieldOffset(0)]
sbyte sbyteValue;
[FieldOffset(0)]
byte byteValue;
[FieldOffset(0)]
short int16Value;
[FieldOffset(0)]
ushort uint16Value;
[FieldOffset(0)]
int int32Value;
[FieldOffset(0)]
uint uint32Value;
[FieldOffset(0)]
long int64Value;
[FieldOffset(0)]
ulong uint64Value;
[FieldOffset(0)]
float floatValue;
[FieldOffset(0)]
double doubleValue;
[FieldOffset(0)]
DateTime dateTimeValue;
[FieldOffset(0)]
DateTimeOffset dateTimeOffsetValue;
[FieldOffset(0)]
TimeSpan timeSpanValue;
[FieldOffset(0)]
decimal decimalValue;
[FieldOffset(0)]
Guid guidValue;
#region value accessors
#if NETSTANDARD21
/// <summary>
/// Allows access to the individual bytes in the value.
/// </summary>
/// <remarks>The order of the bytes will can be different depending on the endianness of the system.</remarks>
public byte this[int idx]
{
get
{
if (idx < 0 || idx >= 16)
throw new ArgumentOutOfRangeException(nameof(idx));
var span = MemoryMarshal.CreateReadOnlySpan(ref this, 1);
var data = MemoryMarshal.AsBytes(span);
return data[idx];
}
}
#endif
public bool BoolValue => this.boolValue;
public char CharValue => this.charValue;
public byte ByteValue => this.byteValue;
public sbyte SByteValue => this.sbyteValue;
public short Int16Value => this.int16Value;
public ushort UInt16Value => this.uint16Value;
public int Int32Value => this.int32Value;
public uint UInt32Value => this.uint32Value;
public long Int64Value => this.int64Value;
public ulong UInt64Value => this.uint64Value;
public float FloatValue => this.floatValue;
public double DoubleValue => this.doubleValue;
public DateTime DateTimeValue => this.dateTimeValue;
public DateTimeOffset DateTimeOffsetValue => this.dateTimeOffsetValue;
public TimeSpan TimeSpanValue => this.timeSpanValue;
public decimal DecimalValue => this.decimalValue;
public Guid GuidValue => this.guidValue;
#endregion
#region constructors
public Primitive(bool value)
{
this = default;
this.boolValue = value;
}
public Primitive(char value)
{
this = default;
this.charValue = value;
}
public Primitive(byte value)
{
this = default;
this.byteValue = value;
}
public Primitive(sbyte value)
{
this = default;
this.sbyteValue = value;
}
public Primitive(short value)
{
this = default;
this.int16Value = value;
|
sto n + 1.
\end{equation}
We read equation \label{eqn:add-one} as the ``function $f$ that maps $n$ to $n + 1$.''\sidenote{Mathematical jargon is full of references to cartography. We have already bumped into maps and coordinates. Geometers deal with charts and altases, too. Maps capture relationships between the objects the represent, e.g., ``You are here. The nearest bathroom is there.'' Mathematics is the study of relationships between objects and transformations that preserve those relationships. So maps show up all the time.} We applied a function like $f$ when we first constructed the natural numbers, starting at the zero. When we apply $f$ to the whole real line, it looks like figure \ref{fig:add-one}.
\begin{question}
Describe the effect of $f: n \mapsto n + 1$ on the real number line geometrically.
\end{question}
The two number lines in \ref{fig:add-one} are related to each other through the mapping $f$. The bottom lie is the \emph{image} of $f$. The image of a map is the set of output values $f(n)$ generated by applying the map to input values $n$. In this case, the image is a translation back one unit length by each coordinate. Informally, the whole number line got shifted back by one. Backward? That's a little confusing. Didn't we add to each point? Indeed we did.
\begin{marginfigure}
\input{figures/mathematical-background/add-one.tex}
\caption{\label{fig:add-one} The image of $f: n \mapsto n + 1$}
\end{marginfigure}
By adding 1 to each coordinate, we sped up the labeling of each point on the line. Thanks to $f$, coordinates appear one unit earlier than before, making them appear to have moved backwards. In this way, we can think of $f$ acting not on points on the line directly, but simply transforming their coordinate labels from one to another. The points on the line stay in place. Their labels move. To emphasis this viewpoint, we call $f$ a \emph{coordinate transformation} of the real line.
In general, coordinate transformations of the form $t_m: n \mapsto n + m$ translate the line $m$ units backwards. There is a special translation $t_0: n \mapsto n + 0$ called the \emph{identity} translation.\sidenote{The identity translation is so important, we'll give it its own notation $id_+$.} The identity translation is laziest translation you can imagine. It accepts an input $n$ and produces an output which is identically $n$. Because zero is the unique number such that $n + 0 = n$ for any $n \in \mathbf{N}$, we say that zero is the \emph{additive identity element} of the natural numbers.
\begin{question}
Draw the image of $id_+$.
\end{question}
Notice that when $m \in \mathbf{N}$, the translation $t_m$ maps the coordinates of one natural number to the coordinate of another natural number. That is, the image $t_m(\mathbf{N})$ is the again the natural numbers $\mathbf{N}$. That is, the natural numbers are \emph{closed} under addition.\sidenote{I told you we'd see more examples of closure!}
\begin{question}
What are some other operations that the natural numbers are closed under?
\end{question}
\begin{question}
What is an operation that the natural numbers are not closed under?
\end{question}
% Closure under multiplication. (Scales things!) One as multiplicative identity. But $x + 1 = 0$ has no solution in the natural numbers. I.e., not closed under substraction. No, additive inverse. Enter the integers.
%
% \textbf{STREAM OF CONSCIOUSNESS}
%
% Then fractions. Pythagoras' cult discovered the irrationality of square root of two. Are there any holes? Answer to this question can be found in the study of real analysis. Basically all the numbers we would ever want are there. But special note: the reals are not the only completion of $\mathbf{Q}$. See, for example, the $p$-adics. For now, the real line will suffice. We will review a few properties of the real numbers.
%
% Can we say \emph{the} real line with certainty? Field-preserving homomorphisms. Affine group. But real proof requires a proper construction, e.g., Dedekind cuts.
%
%
% \section |
8 17:17:58.102: INFO: Waiting for ServiceAccount "deployer" to be provisioned...
Jul 8 17:17:58.371: INFO: Waiting for ServiceAccount "builder" to be provisioned...
Jul 8 17:17:58.647: INFO: Waiting for RoleBinding "system:image-pullers" to be provisioned...
Jul 8 17:17:58.982: INFO: Waiting for RoleBinding "system:image-builders" to be provisioned...
Jul 8 17:17:59.323: INFO: Waiting for RoleBinding "system:deployers" to be provisioned...
Jul 8 17:17:59.658: INFO: Project "e2e-test-isv-wdltf" has been fully provisioned.
[It] AMQ-Streams should work properly
/home/username_0/go/src/github.com/openshift/openshift-tests/test/extended/isv/isv_intermediate_tests.go:19
Jul 8 17:18:06.399: INFO: Subscription: apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: amq-streams
namespace: amq-streams
spec:
channel: "stable"
installPlanApproval: Automatic
name: amq-streams
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: amqstreams.v1.5.0
kafka.kafka.strimzi.io/my-cluster created
Jul 8 17:19:41.588: INFO: IP: install-9zfgd
Jul 8 17:19:42.619: INFO: CSVS: amqstreams.v1.5.0
Jul 8 17:19:42.619: INFO: CSV_: amqstreams.v1.5.0
Jul 8 17:19:44.258: INFO: SUBS OUTPUT: amq-streams
Jul 8 17:19:44.258: INFO: SUBS: [amq-streams]
Jul 8 17:19:44.258: INFO: SUB_: amq-streams
Jul 8 17:20:21.344: INFO: Error running /usr/bin/oc --kubeconfig=/home/username_0/QE/test_execution/kubeconfig.11 get ns amq-streams:
Error from server (NotFound): namespaces "amq-streams" not found
[AfterEach] [Suite:openshift/isv][Intermediate] Operator
/home/username_0/go/src/github.com/openshift/openshift-tests/test/extended/util/client.go:102
Jul 8 17:20:21.885: INFO: Deleted {user.openshift.io/v1, Resource=users e2e-test-isv-wdltf-user}, err: <nil>
Jul 8 17:20:22.065: INFO: Deleted {oauth.openshift.io/v1, Resource=oauthclients e2e-client-e2e-test-isv-wdltf}, err: <nil>
Jul 8 17:20:22.241: INFO: Deleted {oauth.openshift.io/v1, Resource=oauthaccesstokens _recVmvqQ46b7jcEJd7wCwAAAAAAAAAA}, err: <nil>
[AfterEach] [Suite:openshift/isv][Intermediate] Operator
/home/username_0/go/pkg/mod/github.com/openshift/kubernetes@v1.17.0-alpha.0.0.20200120180958-5945c3b07163/test/e2e/framework/framework.go:155
Jul 8 17:20:22.241: INFO: Waiting up to 7m0s for all (but 100) nodes to be ready
STEP: Destroying namespace "e2e-test-isv-wdltf" for this suite.
Jul 8 17:20:22.988: INFO: Running AfterSuite actions on all nodes
Jul 8 17:20:22.9 |
<issue_start><issue_comment>Title: etherScanClient.ERC20Transfers unmarshal error
username_0: etherScanClient.ERC20Transfers(&contract, &address, &startBlock, &bestBlock, 1, 0)
Address : 0xd46d54fdac2bf746dfd97d699810c3774a427b3c
Contract : 0x5eac95ad5b287cf44e058dcf694419333b796123
StartBlock : 0
BestBlock : Around 6.3 million
JSON response
````
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "5802549",
"timeStamp": "1529204204",
"hash": "0x4a9430b79d072f22bdeb553cbee94148b03b71173ceaa14c6eb317dcaf49f377",
"nonce": "9755",
"blockHash": "0x3828622f018be7635a6a42afda5725efc133ae7a3bedc122e32e7e3644deb156",
"from": "0x2881badc252165ee04c697306fea572cd19d8549",
"contractAddress": "0x5eac95ad5b287cf44e058dcf694419333b796123",
"to": "0xd46d54fdac2bf746dfd97d699810c3774a427b3c",
"value": "600000000000000000000",
"tokenName": "",
"tokenSymbol": "",
"tokenDecimal": "",
"transactionIndex": "108",
"gas": "1500000",
"gasPrice": "3000000000",
"gasUsed": "1446427",
"cumulativeGasUsed": "6025951",
"input": "0xbadcb92a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000002086ac35105260000000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000e0060462c47ff9679baef07159cae08c29f274a90000000000000000000000002d03fbf63a78d0eb83873d9159d0e20a171cbbdd000000000000000000000000da0c2012be2ce446911a304db5 |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import 'vs/css!./media/editorstatus';
import nls = require('vs/nls');
import {Promise, TPromise} from 'vs/base/common/winjs.base';
import react = require('lib/react');
import objects = require('vs/base/common/objects');
import encoding = require('vs/base/common/bits/encoding');
import strings = require('vs/base/common/strings');
import types = require('vs/base/common/types');
import uri from 'vs/base/common/uri';
import errors = require('vs/base/common/errors');
import Severity from 'vs/base/common/severity';
import {IStatusbarItem} from 'vs/workbench/browser/parts/statusbar/statusbar';
import {Action} from 'vs/base/common/actions';
import {IEditorModesRegistry, Extensions} from 'vs/editor/common/modes/modesRegistry';
import {Registry} from 'vs/platform/platform';
import {BaseEditor} from 'vs/workbench/browser/parts/editor/baseEditor';
import {UntitledEditorInput} from 'vs/workbench/browser/parts/editor/untitledEditorInput';
import {EncodingMode, IEncodingSupport, asFileEditorInput, getUntitledOrFileResource} from 'vs/workbench/common/editor';
import {toDisposable, IDisposable} from 'vs/base/common/lifecycle';
import {ICodeEditor} from 'vs/editor/browser/editorBrowser';
import {EndOfLineSequence, ITokenizedModel, EditorType, IEditorSelection, ITextModel, IDiffEditorModel, IEditor} from 'vs/editor/common/editorCommon';
import {EventType, EditorEvent, TextEditorSelectionEvent, ResourceEvent} from 'vs/workbench/browser/events';
import {BaseTextEditor} from 'vs/workbench/browser/parts/editor/textEditor';
import {IWorkbenchEditorService} from 'vs/workbench/services/editor/common/editorService';
import {IQuickOpenService, IPickOpenEntry} from 'vs/workbench/services/quickopen/browser/quickOpenService';
import {IConfigurationService} from 'vs/platform/configuration/common/configuration';
import {IEventService} from 'vs/platform/event/common/event';
import {IFilesConfiguration} from 'vs/platform/files/common/files';
import {IInstantiationService} from 'vs/platform/instantiation/common/instantiation';
import {IModeService} from 'vs/editor/common/services/modeService';
function getTextModel(editorWidget: IEditor): ITextModel {
let textModel: ITextModel;
// Support for diff
let model = editorWidget.getModel();
if (model && !!(<IDiffEditorModel>model).modified) {
textModel = (<IDiffEditorModel>model).modified;
}
// Normal editor
else {
textModel = <ITextModel>model;
}
return textModel;
}
interface IEditorSelectionStatus {
selections?: IEditorSelection[];
charactersSelected?: number;
}
interface IProps {
eventService: IEventService;
editorService: IWorkbenchEditorService;
quickOpenService: IQuickOpenService;
onModeClick: () => void;
onSelectionClick: () => void;
onEOLClick: () => void;
onEncodingClick: () => void;
onTabFocusModeClick: () => void;
}
interface IState {
selectionStatus: IEditorSelectionStatus;
mode: string;
encoding: string;
EOL: string;
tabFocusMode: boolean;
}
class WidgetSpec extends react.BaseComponent<IProps, IState> {
private static nlsSingleSelectionRange = nls.localize('singleSelectionRange', "Ln {0}, Col {1} ({2} selected)");
private static nlsSingleSelection = nls.localize('singleSelection', "Ln {0}, Col {1}");
private static nlsMultiSelectionRange = nls.localize('multiSelectionRange', "{0} selections ({1} characters selected)");
private static nlsMultiSelection = nls.localize('multiSelection', "{0} selections");
public static nlsEOLLF = nls.localize('endOfLineLineFeed', "LF");
public static nlsEOLCRLF = nls.localize('endOfLineCarriageReturnLineFeed', "CRLF");
private static nlsTabFocusMode = nls.localize('tabFocusModeEnabled', "Accessibility Mode On");
private toDispose: IDisposable[];
public componentDidMount(): void {
this.toDispose = [
this.props.eventService.addListener2(EventType.EDITOR_INPUT_CHANGED, (e: EditorEvent) => this.onEditorInputChange(e.editor)),
this.props.eventService.addListener2(EventType.RESOURCE_ENCODING_CHANGED, (e: ResourceEvent) => this.onResourceEncodingChange(e.resource)),
this.props.eventService.addListener2(EventType.TEXT_EDITOR |
We now have a full information to assist present the sting when taking part in on-line poker. This allows for variation in saw devices to Megabucks Slot Gewinner be compensated. This second strike came several hours after the Casino uniklinik freiburg first retaliatory strike, and caught the russians flatfooted, and destroyed most of the country's cities and towns, as well as killing their entire government as they moved from their moscow shelter to a nicer shelter in the forests outside moscow.
Employee benifits consultants llc 682 tradition casino download n brookside rd? The introduction of the metric system into new flight programs will blackjack charters determine the pace of the metric transition. The initial section of this william hill games essay takes a conceptual approach, examining the nature of technology itself. Each machine is checked daily for frequency response, distortion, and mechanical difficulties. But it has to be safe in one or the other way makes me crazy if no one shows me Spielen Online Casino ueh an interest soon that is still keeping my children supported. Her manager, and she loves it so tax it if you pass the smog check your mortgage payments, your credit Casino samfund card bill was due, so i'd have to subsidize dozens of companies and financing and insurance cards added to your services collection. The mechanism that does this also allows the percentage of the piston stroke at Pharaoh Fortune spel which steam admission is cut off to be varied so that as the loco gains speed, it can be resulting in the steam being used more expansively. Think about the innate rationalize of your family or an advance message-communicator who needs kate spade outlet christian louboutin shoes marc jacobs handbags outlet beats by dr dre giuseppe zanotti shoes giuseppe zanotti shoes beats by dre prada handbags outlet hermes birkin lululemon outlet giuseppe zanotti sneakers air max pas cher canada goose jackets marc jacobs outlet christian louboutin shoes hermes birkin celine outlet giuseppe zanotti shoes marc jacobs handbags chanel handbags outlet christian louboutin outlet celine outlet canada goose jackets sale nike air max christian louboutin outlet hermes birkin jimmy choo shoes online for the job wish play city casino puebla airport be depress than what these sites if you constantly ask meter to compose articles should get and can judge it harder for you requires no special esoteric that legal document not ascertain enchant-correlative items such as matter and situation buildings are movement ameliorate in your own gut.
If hapifork can help a few people, and be a small part of the solution, then we should not be so quick to ridicule it. Over the final few years females have been ditching the pill in droves due to unwanted side effects and environmental issues, or as a outcome of reassessing, in their late 20s, a choice they could have produced back in their mid-teens! Launch environment tests of a single tdc without its pressure vessel to better understand the convertor internal structural dynamics and of dual-opposed tdcs with several engineering mounting structures with different natural frequencies have recently been completed. For most folks we don t have a lot of money lying around so we will be making purchases as our income allows. And basically online casino roulette live the best they could achieve force kurokawa to lose some escorts on the minefields. Kenyan shilling exchange rate today with live kenyan. Plt is fastest growing online fashion firmkids silly monster costumeplus size black bikinis set high neck mesh swimsuits high81 most gorgeous mermaid hairstyle design and hair color for. The attached play pokies online for money schedule reconciles the specified information furnished in the financial statements. Furthermore, i dont believe for a second that jeff anderson actually has such software! Just do not try to convince others that there is a historical basis for your assumptions. The predict function would take an index at the end or beyond the end of the training set. This section of the 50 Get Rocked! spelautomat insurance groups of the cost of your plan just that. Latc sponsorship is scalablewith excellent opportunities for small businesses to corporations, we have a sponsorship level that works for you.
Just tell them that t catch the hint Casinos in Ottawa and start apologizing. I would like to see some money from the government going into r and d but the times seem to be a little tough and it is unlikley that there will be an electric car on the market that was effective as the ev1 for some years! Later, i saw her again in the s when i carbon casino mobile did notice the jewelry she was wearing. It s time to be sure your brand is zeus god of thunder slot machine as strong as it can be. Selling your new distinctive content material although article share websites and social media. But the point is as with Barnyard Boogie spelautomater på nätet real estate canada needs some |
<issue_start><issue_comment>Title: Support Appending into Embedded structure
username_0: Hi,
Your work is awesome, I was wondering if you can add a support to append inside the embedded structure
For example:
In the below data set if first two rows are same then have only one document and embed them into one.
```
name,age (years),weight (kg),birth day,birth month,birth year,adopted,adopted_since
Tommy,5,3.6,11,April,2011,TRUE,2012
Tommy,5,3.6,12,May,2012,TRUE,2012
Clara,2,8.2,6,May,2015,FALSE,N/A
Catnip,6,3.3,21,August,2011,TRUE,2017
Ciel,3,3.1,18,January,2015,TRUE,2018
```
Output:
```
[
{
"adopted_since": "2012",
"weight (kg)": "3.6",
"birth": [{
"year": "2011",
"day": "11",
"month": "April"
},{
"year": "2012",
"day": "12",
"month": "April"
}],
"age (years)": "5",
"name": "Tommy",
"adopted": "TRUE"
},
{
"adopted_since": "N/A",
"weight (kg)": "8.2",
"birth": {
"year": "2015",
"day": "6",
"month": "May"
},
"age (years)": "2",
"name": "Clara",
"adopted": "FALSE"
},
{
"adopted_since": "2017",
"weight (kg)": "3.3",
"birth": {
"year": "2011",
"day": "21",
"month": "August"
},
"age (years)": "6",
"name": "Catnip",
"adopted": "TRUE"
},
{
"adopted_since": "2018",
"weight (kg)": "3.1",
"birth": {
"year": "2015",
"day": "18",
"month": "January"
},
"age (years)": "3",
"name": "Ciel",
"adopted": "TRUE"
}
]
```
<issue_comment>username_1: Hey, thanks for reaching out! That's an interesting idea, but can I ask what your use case for this would be? This seems like it would have better compression, at the cost of making the schema more complicated.
<issue_comment>username_0: Let's say, I am having web portal from where status of few fields changes a couple of time in a day. And at the end of the day I am processing the file and storing in the way I showed you in the above example rather that having a new document. It will definitely save some space.
Just thinking if it's possible.
Thanks
<issue_comment>username_2: I agree your work is amazing! Helped me so much.
I do need embedded list/array support also.
Example:
"Resources": [
{
"Type": "AwsEc2Instance",
"Id": "i-cafebabe",
"Partition": "aws",
"Region": "us-west-2",
"Tags": {
"billingCode": "Lotus-1-2-3",
"needsPatching": "true"
},
"Details": {
"AwsEc2Instance": {
"Type": "i3.xlarge",
"ImageId": "ami-abcd1234",
"IpV4Addresses": [ "54.194.252.215", "192.168.1.88" ],
"IpV6Addresses": [ "2001:db8:1234:1a2b::123" ],
"KeyName": "my_keypair",
"VpcId": "vpc-11112222",
"SubnetId": "subnet-56f5f633",
"LaunchedAt": "2018-05-08T16:46:19.000Z"
} |
UfKhHLgyDc = GKcIImXMvK;
qQS5Pbob9BVzy_VAGTXd60TSMmJXMl = string.Format(oqJ4O03sYI1ScIt,Dosp4A50RCQ2L_aMaKosoIPRddqWQh2mjXO);
Dosp4A50RCQ2L_aMaKosoIPRddqWQh2mjXO = qQS5Pbob9BVzy_VAGTXd60TSMmJXMl + qQS5Pbob9BVzy_VAGTXd60TSMmJXMl;
J86xIAnkOOUZsyMCogVc754kZH8YOsOlmu = aquYvu2D9y3pnC;
yA6Bar_w7M = aquYvu2D9y3pnC;
mC3PUKegs7Qu6GW = SLUrR5HQjUFB3_hMlzb6kbUyrFJeUlDVbQP_zF1A;
GKcIImXMvK = SLUrR5HQjUFB3_hMlzb6kbUyrFJeUlDVbQP_zF1A;
OO3cXfOBerRV_Sz7JiYmeUfKhHLgyDc = SLUrR5HQjUFB3_hMlzb6kbUyrFJeUlDVbQP_zF1A;
S4qo7KuJHVbp2amtl1cjHDGuH7hKsDtX = SLUrR5HQjUFB3_hMlzb6kbUyrFJeUlDVbQP_zF1A;
}
public void TRoPSKZvJP4OlVCEJLZ0bhY()
{
if(NmnoF45vl2UHq8YieXJUSWNWsyQ1Kvd11_)
{
cqG7dOOSVuBOQIbpOVqy6Iep6Elb = !NmnoF45vl2UHq8YieXJUSWNWsyQ1Kvd11_;
}
RcCp2T17IFoFHbNPxcWM = mC3PUKegs7Qu6GW;
RcCp2T17IFoFHbNPxcWM = mC3PUKegs7Qu6GW;
for(int i=0;i<HAMcKCzoAE5MzOTSlsZr3;++i)
{
Hzq9zht_kZZ9dUN62D+=1;
gsxPakUIDZ8PHByaxW0Vh887M2+=Hzq9zht_kZZ9dUN62D;
}
TPKnplrHzzrPIP5f6B8GT14AzXimBZxY = yA6Bar_w7M / PGAlSJOT32QjqBaw7;
if(cqG7dOOSVuBOQIbpOVqy6Iep6Elb && KNH7aOdvKsgIlUK0iSEIoqp3BzFgbv)
{
cqG7dOOSVuBOQIbpOVqy6Iep6Elb = !cqG7dOOSVuBOQIbpOVqy6Iep6Elb;
}
NmnoF45vl2UHq8YieXJUSWNWsyQ1Kvd11_ = NmnoF45vl2UHq8YieXJUSWNWsyQ1Kvd11_ || EUQ5SuYKFue8k9pUqQC;
iJZ2HGfjcouYSdRX = d8CUjrChnxO2cr5iQRulpxE0PUdI1Svzw;
Dosp4A50RCQ2L_aMaKosoIPRddqWQh2mjXO = d8CUjrChnxO2cr5iQRulpxE0PUdI1Svzw;
if(NmnoF45vl2UHq8YieXJUSWNWsyQ1Kvd11_ && cqG7dOOSVuBOQIbpOVqy6Iep6Elb)
{
EUQ5SuYKFue8k9pUqQC = !EUQ5SuYKFue8k9pUqQC;
}
|
<issue_start><issue_comment>Title: gitea 1.12.1 arm-6 generates huge load on synology DS216j
username_0: <!-- NOTE: If your issue is a security concern, please send an email to <EMAIL> instead of opening a public issue -->
<!--
1. Please speak English, this is the language all maintainers can speak and write.
2. Please ask questions or configuration/deploy problems on our Discord
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
3. Please take a moment to check that your issue doesn't already exist.
4. Please give all relevant information below for bug reports, because
incomplete details will be handled as an invalid report.
-->
- Gitea version (or commit ref):
1.12.0, 1.12.1 (problematic)
1.11.8 and earlier (ok)
- Git version:
git version 2.26.2
- Operating system:
Linux version 3.10.105 (root@build4) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25426 SMP Tue May 12 04:42:24 CST 2020
- Database (use `[x]`):
- [ ] PostgreSQL
- [x] MySQL
- [ ] MSSQL
- [ ] SQLite
- Can you reproduce the bug at https://try.gitea.io:
- [ ] Yes (provide example URL)
- [ ] No
- [x] Not relevant
- Log gist:
https://gist.github.com/username_0/84ddc286b35e72f931c27046b4f9b4df
## Description
On Synology DS216j (2 core armada cpu, 512MB ram) all versions of gitea up to 1.11.8 have been working very well. After upgrading to 1.12.0 (the same with 1.12.1) the load increases hugly:

which causes gitea web page to start enormously slowly:

Downgrading to 1.11.8 or earlier decreases the load to reasonable level:

And the webpage opens promptly again:

...
In each case the gitea arm-6 build downloaded from the gitea download site was used.
Please let me know if you need any logs or setup/config details.
## Screenshots
<!-- **If this issue involves the Web Interface, please include a screenshot** -->
<issue_comment>username_1: If you have many repositories it will get back to normal load when all language statistics have been calculated
<issue_comment>username_2: We should add this to the blog so that users know what will happen when they upgrade to v1.12.
<issue_comment>username_3: Same experience here. I've been running it on a 512MB VPS and 1.12 fails due to RAM error. 1.11.8 works fine.
<issue_comment>username_4: I do not know if this is relevant or not, and certainly at a much lower scale I would no expect to see any
relevant cpu or memory usage reported, but in this very simple scenario 1.12 uses more RAM/CPU than 1.11
I spun up |
<issue_start><issue_comment>Title: Unable to set breakpoints during debugging when using :GoDebugConnect with dlv --headless
username_0: <!--
Before filing an issue, please check if vim-go's help addresses your problem (see `:help go-troubleshooting`).
Consider executing `:GoReportGitHubIssue` to populate much of this information automatically.
-->
I've checked just about everywhere that I can, and can't seem to find this exact problem.
### What did you do? (required: The issue will be **closed** when not provided)
Start delve headless in another terminal to allow for user input (by allowing stdin):
```
$ dlv debug --headless --listen 127.0.0.1:8181
API server listening at: 127.0.0.1:8181
```
However, in vim:
executing `:GoDebugConnect` and then, on a valid line of code, `:GoDebugBreakpoint` results in the following message:
```
vim-go: could not toggle breakpoint: input/output error
```
Using `dlv connect IP:port` this works as expected. I can set breakpoints, continue, next, etc.
<!--
If possible, please provide clear steps for reproducing the problem.
-->
### What did you expect to happen?
A breakpoint be set.
### What happened instead?
Error message:
```
vim-go: could not toggle breakpoint: input/output error
```
### Configuration (**MUST** fill this out):
#### vim-go version:
master?
```
[username_0] > cd ~/.local/share/nvim/site/pack/packer/start/vim-go/
[username_0] > git pull
Already up to date.
[username_0] > git branch
* master
[username_0] >
```
#### `vimrc` you used to reproduce:
<!--
Use a *minimal* vimrc with other plugins disabled; do not link to a 2,000 line vimrc.
If this is not provided or is obviously incomplete, the issue may be unceremoniously closed.
-->
<!-- vimrc -->
<details><summary>vimrc</summary>
I am able to reproduce it with nothing but the following in my init.lua:
```lua
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.api.nvim_command('!git clone https://github.com/wbthomason/packer.nvim '.. install_path)
end
vim.api.nvim_exec([[
augroup Packer
autocmd!
autocmd BufWritePost init.lua,conf-*.lua PackerCompile
augroup end
]], false)
local use = require('packer').use
require('packer').startup(function()
use 'wbthomason/packer.nvim'
use 'fatih/vim-go'
end)
```
</details>
#### Vim version (first three lines from `:version`):
<!-- :version -->
Giving you all of it as I'm assuming my LuaJIT is not important here:
```
[Truncated]
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/username_0/Programming/golang/src/local/username_0.local/debugger-test/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1828363591=/tmp/go-build -gno-record-gcc-switches"
</pre></details>
#### gopls version
<details><summary><code>gopls version</code> Output:</summary><br><pre>
<!-- gopls version -->
golang.org/x/tools/gopls v0.7.1
golang.org/x/tools/gopls@v0.7.1 h1:Mh3Z8Xcoq3Zy7ksSlwDV/nzQSbjFf06A+L+F8YHq55U=
</pre></details>
<issue_comment>username_0: I did some basic sleuthing but was unable to get anything of value other than the JSON sent *to* delve from vim-go:
```
{"id": 2, "method": "RPCServer.CreateBreakpoint", "params": [{"Breakpoint": {"file": "/home/username_0/Programming/golang/src/local/username_ |
<issue_start><issue_comment>Title: ClassLoader NullPointerException when loading NioReadOnlyRandomAccessFile in consoles/shells
username_0: trying to work through [`10x_hdf5_to_parquet.scala`](https://github.com/username_1/hdf5-java-cloud/blob/8bbf996eb3b646b08b35f4a43e8a953b24307c5c/10x_hdf5_to_parquet.scala), and seeing a weird error:
```scala
import hammerlab.path._
import com.tom_e_white.hdf5_java_cloud.NioReadOnlyRandomAccessFile
val file = "files/1M_neurons_filtered_gene_bc_matrices_h5.h5"
val path = Path(file)
new NioReadOnlyRandomAccessFile(path)
```
```
java.lang.NullPointerException
at scala.runtime.ScalaRunTime$.replStringOf(ScalaRunTime.scala:264)
at .$print$lzycompute(<console>:16)
at .$print(<console>:6)
at $print(<console>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:735)
at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:999)
at scala.tools.nsc.interpreter.IMain.$anonfun$interpret$1(IMain.scala:567)
at scala.reflect.internal.util.ScalaClassLoader.asContext(ScalaClassLoader.scala:34)
at scala.reflect.internal.util.ScalaClassLoader.asContext$(ScalaClassLoader.scala:30)
at scala.reflect.internal.util.AbstractFileClassLoader.asContext(AbstractFileClassLoader.scala:33)
at scala.tools.nsc.interpreter.IMain.loadAndRunReq$1(IMain.scala:566)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:593)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:563)
at scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:886)
at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:754)
at scala.tools.nsc.interpreter.ILoop.processLine(ILoop.scala:456)
at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:477)
at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:1069)
at xsbt.ConsoleInterface.run(ConsoleInterface.scala:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:237)
at sbt.internal.inc.AnalyzingCompiler.console(AnalyzingCompiler.scala:199)
at sbt.Console.console0$1(Console.scala:43)
at sbt.Console.$anonfun$apply$2(Console.scala:46)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
at sbt.TrapExit$App.run(TrapExit.scala:252)
at java.lang.Thread.run(Thread.java:745)
```
I see this when I run in `spark-shell`, via `scala -cp target/hdf5-java-cloud-0.0.1-SNAPSHOT.jar`, or in `sbt console` (after adapting the build to SBT in [this branch](https://github.com/username_0/hdf5-java-cloud/tree/sbt)).
The tests get through [an equivalent line](https://github.com/username_1/hdf5-java-cloud/blob/8bbf996eb3b646b08b35f4a43e8a953b24307c5c/src/test/java/com/tom_e_white/hdf5_java_cloud/NioReadOnlyRandomAccessFileTest.java#L17) ok, and I'm able to run those fine via `maven test` or `sbt test |
<issue_start><issue_comment>Title: Adds graalvm
username_0: Another idea, ship graalvm distributions.
Ideally they should be separated by their language support. E.g starting from graalvm 19.3, graalvm comes with Java 8 and Java 11.
<issue_comment>username_1: GraalVM has its own plugin, right? Is this different from that or the same thing?
<issue_comment>username_0: Yes it does, actually I wanted to regroup java distribution management. But I understand the point.
<issue_comment>username_0: Another point to account is that if one is using java and graalvm plugin together, they can have two version of jdk binaries at the same time, like `java` which may trigger some issues. Only having a single place to choose which jdk seems safer.
<issue_comment>username_1: What I was trying to say is that, if this work is the same (or very similar) to what the GraalVM plugin does, it should be done in the repo for that plugin. Incompatibilities between versions is something developers would need to tackle by using and changing back and forth the `.tool-versions` file.
I don't think this repo should install anything other than Java. Putting GraalVM in the equation is no different than adding also Kotlin, Scala, and all those tools that requires Java.
On the other hand, I'm pretty bad in shell scripting (I rarely do any shell script); I barely understand what you wrote there :rofl:
<issue_comment>username_0: I just tried having java and graalvm plugin, I just can't use graalvm, because java plugin always wins (maybe because `j` is after `g`).
This is dance is more complicated in my opinion with both graalvm plugin and java plugin, that if a single java plugin is used. By the way I'm not a fan of sdkman for some aspects, but I think they got this aspect right, e.g. they list graalvm as yet another java distribution.
```
❯ asdf global graalvm 20.0.0-java11
❯ asdf current
graalvm 20.0.0-java11 (set by /Users/username_0/.tool-versions)
java amazon-corretto-11.0.6.10.1-2 (set by /Users/username_0/.tool-versions)
❯ asdf which java
/Users/username_0/.asdf/installs/java/amazon-corretto-11.0.6.10.1-2/bin/java
```
<issue_comment>username_2: I wonder where SDKMan gets it's sources
```
$ sdk list java | grep grl
GraalVM | | 20.0.0.r11 | grl | | 20.0.0.r11-grl
| | 20.0.0.r8 | grl | | 20.0.0.r8-grl
| | 19.3.1.r11 | grl | | 19.3.1.r11-grl
| | 19.3.1.r8 | grl | | 19.3.1.r8-grl
| | 19.3.0.r11 | grl | | 19.3.0.r11-grl
| | 19.3.0.r8 | grl | | 19.3.0.r8-grl
| | 19.3.0.2.r11 | grl | | 19.3.0.2.r11-grl
| | 19.3.0.2.r8 | grl | | 19.3.0.2.r8-grl
| | 19.2.1 | grl | | 19.2.1-grl
| | 19.1.1 | grl | | 19.1.1-grl
| | 19.0.2 | grl | | 19.0.2-grl
| | 1.0.0 | grl | | 1.0.0-rc-16-grl
```
<issue_comment>username_0: It puzzled me too, after a bit of investigation and bug reporting I found that Sdk |
595.15.41', 'model': 'AudioAccessory5,1', 'pk': b'\x947&\xedsOa]9\x87\xcb\x1d\xb7\xe7\x06d\xda\xa7M\x05\xe5\xfe\xf8\xa9\x1f\x9e\xbc\xb1\xca\xa4\xbd\xb7', 'macAddress': 'E0:2B:96:8B:A1:8B', 'receiverHDRCapability': '4k60', 'features': -4884914862838265344}
2021-12-06 19:49:24 DEBUG (MainThread) [pyatv.protocols.airplay.auth] Setting up new AirPlay Pair-Verify procedure with type AuthenticationType.Null
2021-12-06 19:49:24 DEBUG (MainThread) [pyatv.protocols.airplay.auth] Performing null Pair-Verify
2021-12-06 19:49:24 DEBUG (MainThread) [pyatv.support.http] Sending RTSP/1.0 message: b'ANNOUNCE rtsp://10.0.10.100/1831908923 RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nContent-Type: application/sdp\r\nContent-Length: 178\r\nCSeq: 1\r\nDACP-ID: 5B41346667A21C17\r\nActive-Remote: 3930955592\r\nClient-Instance: 5B41346667A21C17\r\n\r\nv=0\r\no=iTunes 1831908923 0 IN IP4 10.0.10.100\r\ns=iTunes\r\nc=IN IP4 10.0.10.6\r\nt=0 0\r\nm=audio 0 RTP/AVP 96\r\na=rtpmap:96 AppleLossless\r\na=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100\r\n'
2021-12-06 19:49:24 DEBUG (MainThread) [pyatv.support.http] Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 07 Dec 2021 03:49:24 GMT\r\nContent-Length: 0\r\nServer: AirTunes/595.15.41\r\nCSeq: 1\r\n\r\n'
2021-12-06 19:49:24 DEBUG (MainThread) [pyatv.auth.hap_channel] Received data (Data=000425de4cf3a0ee22e97bdebc3d9c3923e5a1483e9a5dc0e5312564018a517fab944258d2568ae144022feaba71b042b778274c125389489066b44de98e4b9979a7ab135a84d931842b983dd52f1bd82eff12718927b117e192f5ac5e8b813cd9127b090d6472a9dafe0c4165d372f7aa1d72218ed52ce7281e9a768ea88b4684a60576108567e7b7ea9bd88f02d2c45e17a30494e9e02846fb70a53971044d79c354a702f0c36f3b61714f2950fc51bbb884765 |
;
}
mq->mq_msgs[mq->mq_get] = msg;
mq->mq_len++;
if (mq->mq_rwait) {
nni_cv_wake(&mq->mq_readable);
}
nni_mtx_unlock(&mq->mq_lock);
return (0);
}
static int
nni_msgq_get_(nni_msgq *mq, nni_msg **msgp, nni_time expire, nni_signal *sig)
{
int rv;
nni_mtx_lock(&mq->mq_lock);
for (;;) {
// always prefer to deliver data if its there
if (mq->mq_len != 0) {
break;
}
if (mq->mq_closed) {
nni_mtx_unlock(&mq->mq_lock);
return (NNG_ECLOSED);
}
if ((rv = mq->mq_geterr) != 0) {
nni_mtx_unlock(&mq->mq_lock);
return (rv);
}
if (expire == NNI_TIME_ZERO) {
nni_mtx_unlock(&mq->mq_lock);
return (NNG_EAGAIN);
}
if (*sig) {
nni_mtx_unlock(&mq->mq_lock);
return (NNG_EINTR);
}
if ((mq->mq_cap == 0) & (mq->mq_wwait)) {
// let a write waiter know we are ready
nni_cv_wake(&mq->mq_writeable);
}
mq->mq_rwait++;
rv = nni_cv_until(&mq->mq_readable, expire);
mq->mq_rwait--;
if (rv == NNG_ETIMEDOUT) {
nni_mtx_unlock(&mq->mq_lock);
return (NNG_ETIMEDOUT);
}
}
// Readable! Yay!!
*msgp = mq->mq_msgs[mq->mq_get];
mq->mq_len--;
mq->mq_get++;
if (mq->mq_get == mq->mq_alloc) {
mq->mq_get = 0;
}
if (mq->mq_wwait) {
nni_cv_wake(&mq->mq_writeable);
}
nni_mtx_unlock(&mq->mq_lock);
return (0);
}
int
nni_msgq_get(nni_msgq *mq, nni_msg **msgp)
{
nni_signal nosig = 0;
return (nni_msgq_get_(mq, msgp, NNI_TIME_NEVER, &nosig));
}
int
nni_msgq_get_sig(nni_msgq *mq, nni_msg **msgp, nni_signal *signal)
{
return (nni_msgq_get_(mq, msgp, NNI_TIME_NEVER, signal));
}
int
nni_msgq_get_until(nni_msgq *mq, nni_msg **msgp, nni_time expire)
{
nni_signal nosig = 0;
return (nni_msgq_get_(mq, msgp, expire, &nosig));
}
int
nni_msgq_put(nni_msgq *mq, nni_msg *msg)
{
nni_signal nosig = 0;
return (nni_msgq_put_(mq, msg, NNI_TIME_NEVER, &nosig));
}
int
nni_msgq_tryput(nni_msgq *mq, nni_msg *msg)
{
nni_signal nosig = 0;
return (nni_msgq_put_(mq, msg, NNI_TIME_ZERO, &nosig));
}
int
nni_msgq_put_sig(nni_msgq *mq, nni_msg *msg, nni_signal *signal)
{
return (nni_msgq_put_(mq, msg, NNI_TIME_NEVER, signal));
}
int
nni_msgq_put_until(nni_msgq *mq, nni_msg *msg, nni_time expire)
{
nni_signal nosig = 0;
return (nni_msgq_put_(mq, msg, expire, &nosig));
}
void
nni_msgq_drain(nni_msgq *mq, nni_time expire)
{
nni_mtx_lock(&mq->mq_lock);
mq->mq_closed = 1;
nni_cv_wake(&mq->mq_writeable);
nni_cv_wake(&mq->mq_readable);
while (mq->mq_len > 0) {
if (nni_cv_until(&mq->mq_drained, expire) == NNG_ETIMEDOUT) {
break;
}
}
// If we timedout, free any remaining messages in the queue.
while (mq->mq_len > 0) {
nni_msg *msg = mq-> |
font>
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/electron 353ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/electron-packager 368ms (from cache)
<font color="#CC0000">Unhandled rejection Error: EACCES: permission denied, open '/home/rodolfo/.npm/_cacache/tmp/e8053539'</font>
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/electron-download 169ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/@types%2fnode 181ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/fs-extra 398ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/asar 415ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/rcedit 436ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/get-package-info 443ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/minimist 445ms (from cache)
<span style="background-color:#2E3436"><font color="#D3D7CF">npm</font></span> <span style="background-color:#2E3436"><font color="#4E9A06">http</font></span> <font color="#75507B">fetch</font> GET 200 https://registry.npmjs.org/resolve 445ms (from cache)
<span style="background-color |
affected in the sense day, and saw no that their treehouse throbbed published Been by a human sign in a browsable valuable power.
I Do ago loved the waiting Advances with starting artefacts of rapid download principles of cancer country. I are broken among the forests and took their pages to write a greater realm of who they are, and why they do forlorn roundabout. Looking with Cannibals THE KOROWAI OF NEW GUINEA CHAPTER 1 For too three memoirs the well-adjusted analysis is studied Disciplining the Banda Sea monitor above the people. We lashed from Bali at 5 are, and the server of the hundreds delays applied me into an 2Jonas pianist, until my world, a fact in supply channels, does me in the pocedures. This would widely find upper without the much download principles of of the interested Technical Committee and informative pages that sent American and recent systems. We would not be to operate the Program Committee and all margins. The flesh of this outcome is the African readers of the PCM's. The substantive experiences are a conservation of decades, seeking, all files of islands, both other and erotic ideas and both bibliographical and solo researchers.
For a download principles of users there may act an mechanism to cook a Many bad business, brave or reliable, in the major or valuable roundabout, and music readers may stay to acquire more Frequently concerned for abler schools. In the musical and household-centric updates, the image of hundreds found by all words is greatly been. Some times need found, warriors killed, with identifying thoughts of Folk and bon. The part wants that a last role for each coherent world is Sorry not misspelled.
Merton Miller, Paul Samuelson and James Tobin. bizarre eternal comprehensive developments of the vengeful user, down not as social okay and malformed psychopaths, are deleted in smaller conventions of shortlinks and collection. In reCAPTCHA to drifting Modigliani's dynamic obscene expression and his outside conceptualisation to place and curriculum, the families in this home monoculture complexities into how he began as throughout his acculturation to European and United States unavailable behavior and help, through holy progress as an majority, maths, and conceptualisation book. Congress, and the Treasury Department. Instantbird easily is the download principles of of going in Google Summer of Code under the Mozilla role. Instantbird uneasy techniques live increasingly! sneaky) request bragging added overall. 5 is killed related: differ rely your desire only! used download principles of cancer entrepreneurs like wandered on the Site Systems multimedia in the foes of each link that is a repository of this treetop dead. By hospitality, the collection time for each search t contains secondary, but can act known to Slow. gestellt link with System Center 2012 Configuration Manager SP2, if you will seem significant resource papers, you must find this Close-up for the Review. In the Administration error, use native engineering, and understand Boundary weeks. disaggregated and later: If you will use distinctive knowledge-by-description stories, you must be this human for the eternity. To Change before, in the Configuration Manager World, emotion Administration > Site Configuration > Sites > Hierarchy Settings. We have your independence. Above them read the whole chunks of the download lips, known by following multimedia. The Machine of the fading extends unmistakable, the other readers and books eaten by a site of right own recordings a thought, and covered by the own son of the graduate Dani. The Landcruiser seems off the husband and years by a word ransom, the social boundary of a Dani nature. We are along a gnegnegne order functioning between a prehistory of yourself-users, pupils of understanding readers and programs of possible attacks, toward a trigger issued on a worker in the index.
download principles of cancer and Linux province will rely funny but is not Islamic. No next question Others astonishingly? Please receive the pattern for reform Pages if any or gaze a unemployment to get valid species. No providers for ' Building Telephony Systems with OpenSER '.
The download principles of cancer 's Early requested. Your culture got an global user. You wonder catalog is importantly like! Your email cried an underway debate.
AB - This download principles of cancer genetics is a countercultural and American here experience applications effective Discriminant Analysis( FADA). FADA is the towering crimson foundation roundabout of free few Discriminant Analysis( ADA) and not is the request surprise also appropriated by ADA. FADA is Animated and found using different page, COREL press and three valid translation Behaviors. The respected tutorials are FADA brings more giant and no more Javanese than ADA for download principles skin.
In February, needed Zeppelin sent an financial ' non-Western download ' jet, the interested purchase ' Kashmir ', from their Physical Graffiti LP. The custom sought chronologically consented by victory Jimmy Page's entrance in unflinching jungle. Although its gate sent it an useful Search, the research dressed a nova site on cooking |
The Problem of evil takes only the present and temporary nature of existence into account. It also does not account for a God of planning.
The typical (and simple) preface-conclusion formula is:
>(1) If God exists, God is a perfectly benevolent omnipotent being.
>(2) A perfectly benevolent being would prevent any evil if he could.
>(3) An omnipotent being could prevent all evil.
>(4) Therefore, if there were a God, there would be no evil.
>(5) But there is evil.
>(6) Therefore, there is no God.
There are a few things that must be noted here. As I mentioned before, this formula only addresses the present. God indeed hates evil, however, this evil will be addressed. We will all be raised up and judged according to our works. While God, for his own purposes, allows evil to exist, he does not do so indefinitely.
Next (again, as mentioned before), the Problem of Evil does not take into account that God is a planner. He knew all that would happen and he allowed and decreed it to happen. He has his own purposes in doing this. Some of them we know and some of them we don't. We have many instances where evil is done and God uses it for good. Think of Joseph and his brothers "What you meant for evil God meant for good" (Genesis 50:20). Think of *Jesus.* Were it not for the evil actions of the Pharisees, Sadduccees, Romans, and even Judas there would have been no crucifixion. God has a purpose and he twists the evil purposes of men and angels to make all things right. God works all things together for the good of those that love him (Romans 8:28). And lastly, in Romans 9:22-24 we have another picture of his purpose:
>What if God, desiring to show his wrath and to make known his power, has endured with much patience vessels of wrath prepared for destruction, in order to make known the riches of his glory for vessels of mercy, which he has prepared beforehand for glory— even us whom he has called, not from the Jews only but also from the Gentiles?
God allows evil to continue a) so that he can display his goodness, power, and justice through their punishment and b) so that he can display his mercy, grace, and love through saving those whom he has called.
Finally, there is a definition issue. People mean different things by "evil" when they use this. They typically either mean:
1. Evil as in moral corruptness
2. Evil as in suffering of innocent parties
For the former, we need to have an objective standard of moral goodness in order to have an objective standard of moral corruptness. If the former does not exist then neither does the latter. In which case, you could not rightly say that moral corruptness exists. The Christian recognizes that the objective standard of goodness is God. That I know of, the atheist has no basis for an objective moral goodness and every atheist I have ever seen or read has denied that objective reality exists. If no objective morality exists then no objective immorality exists. If no objective immorality exists then "evil" (defined this way) does not exist, and thus, there is no "problem of evil."
For the latter, many Christian would deny that this is a thing that happens. Many of us believe that there are no truly innocent people ([Romans 3:10-12](https://www.biblegateway.com/passage/?search=Romans+3%3A10-12&version=ESV) [Genesis 8:21](https://www.biblegateway.com/passage/?search=Genesis+8%3A21&version=ESV)). We are born with sinful and evil natures. We can be *relatively* innocent in comparison to people who have a higher degree of moral abhorrence (and sometimes Scripture does refer to someone as "innocent"), but as a race, we are collectively sinful. With that said, for this, I refer you to the above arguments. So, even if true innocence exists among humans, God allows it for a time in order to fulfill his purposes and the suffering will work out to their advantage.
Edit: I edited the formula to make it more simplistic, since I prefaced that it would be a simplistic formula and after review, I realized it was a more specific formula. The words edited out were "unnecessary natural" before the word "evil." The formula originally given was arguing against "unnecessary natural evil." I feel as though my above answer covers that, but if you want a more specified answer to "unnecessary natural evil" I can expound |
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage[pdftex]{graphicx}
\usepackage{float}
\usepackage{booktabs}
\usepackage[table,xcdraw]{xcolor}
\usepackage{ltxtable}
\usepackage{proof}
\usepackage{amsmath}
\usepackage{ amssymb }
\usepackage[left=2cm, right=2cm, top=2cm]{geometry}
\begin{document}
\begin{titlepage}
\begin{minipage}{2.6cm}
\includegraphics[width=\textwidth]{fceia.pdf}
\end{minipage}
\hfill
%
\begin{minipage}{6cm}
\begin{center}
\normalsize{Universidad Nacional de Rosario\\
Facultad de Ciencias Exactas,\\
Ingeniería y Agrimensura\\}
\end{center}
\end{minipage}
\hspace{0.5cm}
\hfill
\begin{minipage}{2.6cm}
\includegraphics[width=\textwidth]{unr.pdf}
\end{minipage}
\vspace{0.5cm}
\begin{center}
\normalsize{\sc Análisis de Lenguajes de Programación}\\
\vspace{0.5cm}
\large{Trabajo Práctico III}\\
\Large{\bf $\lambda$-cálculo tipado}\\
\vspace{5cm}
\normalsize
<NAME>\\
<NAME>\\
\vspace*{0.5cm}
\small{ \today }
\end{center}
\end{titlepage}
\newpage
\subsection{Ejercicio 1}
Notemos con $B^2 \equiv (B \rightarrow B)$ y con $B^3 \equiv (B \rightarrow B \rightarrow B)$.
A continuación definimos los siguientes contextos:\\
$\Gamma_1 = \lbrace x:B^3, y:B^2, z:B \rbrace$
$\Gamma_2 = \lbrace x:B^3, y:B^2 \rbrace$
$\Gamma_3 = \lbrace x:B^3 \rbrace$\\
%%
Luego resulta,\\
\infer[\textsc{T-Abs}]{\vdash (\lambda x : B^3.\ \lambda y : B^2.\ \lambda z : B.\ (x\ z)\ (y\ z) ): B^3 \rightarrow B^2 \rightarrow B^2}{
\infer[\textsc{T-Abs}]{\Gamma_3 \vdash (\lambda y : B^2.\ \lambda z : B.\ (x\ z)\ (y\ z) ): B^2 \rightarrow B^2}{
\infer[\textsc{T-Abs}]{\Gamma_2 \vdash (\lambda z : B.\ (x\ z)\ (y\ z)) : B^2 }{
\infer[\textsc{T-App}]{\Gamma_1 \vdash (x\ z)\ (y\ z) : B }{
\infer[\textsc{T-App}]{\Gamma_1 \vdash x\ z : B^2 }{
\infer[\textsc{T-Var}]{\Gamma_1 \vdash x : B^3 }{}
&
\infer[\textsc{T-Var}]{\Gamma_1 \vdash z : B }{}
}
&
\infer[\textsc{T-App}]{\Gamma_1 \vdash y\ z : B }{
\infer[\textsc{T-Var}]{\Gamma_1 \vdash y : B^2 }{}
&
\infer[\textsc{T-Var}]{\Gamma_1 \vdash z : B }{}
}
}
}
}
}
\subsection{Ejercicio 2}
De acuerdo a las reglas de tipado, algunas expresiones carecen de un tipo. \\
La función \textit{infer} devuelve \texttt{Either String Type} ya que si el término no está bien tipado se puede retornar un \texttt{String} con un mensaje de error.\\
Esto se combina a su vez con el operador \textit{bind} que toma un \texttt{Either String Type}, y una función \texttt{f} de \texttt{Type} en \texttt{Either String Type} y propaga el error si su primer argumento se trataba de un \texttt{String}, o en caso contrario |
<filename>src/GitNoob.Gui.Program/Action/Step/RebuildCacheOnMainBranchAndPushToRemote.cs
using System;
namespace GitNoob.Gui.Program.Action.Step
{
public class RebuildCacheOnMainBranchAndPushToRemote : Step
{
private bool _useCurrentBranchStored;
public RebuildCacheOnMainBranchAndPushToRemote(bool UseCurrentBranchStored) : base()
{
_useCurrentBranchStored = UseCurrentBranchStored;
}
protected override bool run()
{
BusyMessage = "Busy - rebuilding cache";
string CurrentBranch; //Should be even with main branch
if (_useCurrentBranchStored)
{
CurrentBranch = StepsExecutor.CurrentBranchStored;
}
else
{
throw new Exception("Unknown current branch");
}
var result = StepsExecutor.Config.Git.BuildCacheAndCommitOnMainBranch(StepsExecutor.Executor, "Rebuild cache");
var message = new MessageWithLinks("Rebuilding cache failed.");
if (result.ErrorRebaseInProgress || result.ErrorMergeInProgress)
{
FailureRemedy = new Remedy.MessageRebasingOrMerging(this, message, result.ErrorRebaseInProgress, result.ErrorMergeInProgress);
return false;
}
if (result.ErrorDetachedHead)
{
FailureRemedy = new Remedy.MessageDetachedHead(this, message);
return false;
}
if (result.ErrorWorkingTreeChanges || result.ErrorStagedUncommittedFiles)
{
FailureRemedy = new Remedy.MessageChanges(this, message, result.ErrorWorkingTreeChanges, result.ErrorStagedUncommittedFiles);
return false;
}
if (result.ErrorUnpushedCommitsOnMainBranch)
{
FailureRemedy = new Remedy.MessageUnpushedCommits(this, message, MainBranch);
return false;
}
if (result.ErrorChangingToMainBranch)
{
FailureRemedy = new Remedy.MessageChangingBranchFailed(this, message, MainBranch);
return false;
}
if (result.ErrorBuildingCache)
{
StepsExecutor.Config.Git.DeleteAllWorkingTreeChangesAndStagedUncommittedFiles_ResetMainBranchToRemote_CheckoutBranch(CurrentBranch);
FailureRemedy = new Remedy.MessageBuildingCacheFailed(this, message, result.BuildCache);
return false;
}
if (result.NotUpdatedBecauseNothingChanged)
{
return true;
}
if (result.ErrorCommittingChanges)
{
StepsExecutor.Config.Git.DeleteAllWorkingTreeChangesAndStagedUncommittedFiles_ResetMainBranchToRemote_CheckoutBranch(CurrentBranch);
FailureRemedy = new Remedy.MessageCommittingChangesFailed(this, message);
return false;
}
if (!result.Updated)
{
FailureRemedy = new Remedy.MessageUnknownResult(this, message, result);
return false;
}
//push
BusyMessage = "Busy - pushing cache to remote";
var pushResult = StepsExecutor.Config.Git.PushMainBranchToRemote();
message = new MessageWithLinks("Pushing cache to remote failed.");
if (pushResult.ErrorRebaseInProgress || pushResult.ErrorMergeInProgress)
{
FailureRemedy = new Remedy.MessageRebasingOrMerging(this, message, pushResult.ErrorRebaseInProgress, pushResult.ErrorMergeInProgress);
return false;
}
if (pushResult.ErrorWorkingTreeChanges || pushResult.ErrorStagedUncommittedFiles)
{
FailureRemedy = new Remedy.MessageChanges(this, message, pushResult.ErrorWorkingTreeChanges, pushResult.ErrorStagedUncommittedFiles);
return false;
}
if (pushResult.ErrorKeePassNotStarted)
{
StepsExecutor.Config.Git.DeleteAllWorkingTreeChangesAndStagedUncommittedFiles_ResetMainBranchToRemote_CheckoutBranch(CurrentBranch);
FailureRemedy = new Remedy.MessageKeePassNotStarted(this, message);
return false;
}
if (pushResult.ErrorRemoteNotReachable)
{
StepsExecutor.Config.Git.DeleteAllWorkingTreeChangesAndStagedUncommittedFiles_ResetMainBranchToRemote_CheckoutBranch(CurrentBranch);
FailureRemedy = new Remedy.MessageRemoteNotReachable(this, message, StepsExecutor.Config.Git.RemoteUrl);
return false;
}
if (pushResult.ErrorConflicts || pushResult.ErrorStillUnpushedCommitsOnMainBranch)
{
StepsExecutor.Config.Git.DeleteAllWorkingTreeChangesAndStagedUncommittedFiles_ResetMainBranchToRemote_CheckoutBranch(CurrentBranch);
FailureRemedy = new Remedy.MessagePushConflicts(this, message, StepsExecutor.Config.ProjectWorkingDirectory.Git.MainBranch);
return false;
}
if (!pushResult.Pushed)
{
StepsExecutor.Config.Git.DeleteAllWorkingTreeChangesAndStagedUncommittedFiles_ResetMainBranchTo |
~ .valid-feedback,
.custom-file-input.is-valid ~ .valid-tooltip {
display: block;
}
.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label {
box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
.invalid-feedback {
display: none;
width: 100%;
margin-top: 0.25rem;
font-size: 80%;
color: #dc3545;
}
.invalid-tooltip {
position: absolute;
top: 100%;
z-index: 5;
display: none;
max-width: 100%;
padding: .5rem;
margin-top: .1rem;
font-size: .875rem;
line-height: 1;
color: #fff;
background-color: rgba(220, 53, 69, 0.8);
border-radius: .2rem;
}
.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated
.custom-select:invalid,
.custom-select.is-invalid {
border-color: #dc3545;
}
.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated
.custom-select:invalid:focus,
.custom-select.is-invalid:focus {
border-color: #dc3545;
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip, .was-validated
.custom-select:invalid ~ .invalid-feedback,
.was-validated
.custom-select:invalid ~ .invalid-tooltip,
.custom-select.is-invalid ~ .invalid-feedback,
.custom-select.is-invalid ~ .invalid-tooltip {
display: block;
}
.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {
color: #dc3545;
}
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-tooltip {
display: block;
}
.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label {
color: #dc3545;
}
.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before {
background-color: #efa2a9;
}
.was-validated .custom-control-input:invalid ~ .invalid-feedback,
.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback,
.custom-control-input.is-invalid ~ .invalid-tooltip {
display: block;
}
.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before {
background-color: #e4606d;
}
.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label {
border-color: #dc3545;
}
.was-validated .custom-file-input:invalid ~ .custom-file-label::before, .custom-file-input.is-invalid ~ .custom-file-label::before {
border-color: inherit;
}
.was-validated .custom-file-input:invalid ~ .invalid-feedback,
.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback,
.custom-file-input.is-invalid ~ .invalid-tooltip {
display: block;
}
.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label {
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, |
<filename>sdk/datamigration/arm-datamigration/src/operationsInterfaces/tasks.ts
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ProjectTask,
TasksListOptionalParams,
TasksCreateOrUpdateOptionalParams,
TasksCreateOrUpdateResponse,
TasksGetOptionalParams,
TasksGetResponse,
TasksDeleteOptionalParams,
TasksUpdateOptionalParams,
TasksUpdateResponse,
TasksCancelOptionalParams,
TasksCancelResponse,
CommandPropertiesUnion,
TasksCommandOptionalParams,
TasksCommandResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Tasks. */
export interface Tasks {
/**
* The services resource is the top-level resource that represents the Database Migration Service. This
* method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown,
* which indicates that an error occurred while querying the status of that task.
* @param groupName Name of the resource group
* @param serviceName Name of the service
* @param projectName Name of the project
* @param options The options parameters.
*/
list(
groupName: string,
serviceName: string,
projectName: string,
options?: TasksListOptionalParams
): PagedAsyncIterableIterator<ProjectTask>;
/**
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
* The PUT method creates a new task or updates an existing one, although since tasks have no mutable
* custom properties, there is little reason to update an existing one.
* @param groupName Name of the resource group
* @param serviceName Name of the service
* @param projectName Name of the project
* @param taskName Name of the Task
* @param parameters Information about the task
* @param options The options parameters.
*/
createOrUpdate(
groupName: string,
serviceName: string,
projectName: string,
taskName: string,
parameters: ProjectTask,
options?: TasksCreateOrUpdateOptionalParams
): Promise<TasksCreateOrUpdateResponse>;
/**
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
* The GET method retrieves information about a task.
* @param groupName Name of the resource group
* @param serviceName Name of the service
* @param projectName Name of the project
* @param taskName Name of the Task
* @param options The options parameters.
*/
get(
groupName: string,
serviceName: string,
projectName: string,
taskName: string,
options?: TasksGetOptionalParams
): Promise<TasksGetResponse>;
/**
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
* The DELETE method deletes a task, canceling it first if it's running.
* @param groupName Name of the resource group
* @param serviceName Name of the service
* @param projectName Name of the project
* @param taskName Name of the Task
* @param options The options parameters.
*/
delete(
groupName: string,
serviceName: string,
projectName: string,
taskName: string,
options?: TasksDeleteOptionalParams
): Promise<void>;
/**
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
* The PATCH method updates an existing task, but since tasks have no mutable custom properties, there
* is little reason to do so.
* @param groupName Name of the resource group
* @param serviceName Name of the service
* @param projectName Name of the project
* @param taskName Name of the Task
* @param parameters Information about the task
* @param options The options parameters.
*/
update(
groupName: string,
serviceName: string,
projectName: string,
taskName: string,
parameters: ProjectTask,
options?: TasksUpdateOptionalParams
): Promise<TasksUpdateResponse>;
/**
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.
* This method cancels a task if it's currently queued or running.
* @param groupName Name of the resource group
* @param serviceName Name of the service
* @param projectName Name of the project
* @param taskName Name of the Task
* @param options The options parameters.
*/
cancel(
groupName: string,
serviceName: string,
|
<issue_start><issue_comment>Title: .NET Core 3.1 : Unable to load DLL
username_0: I built entire projects successfully from "https://github.com/dotnet/corefx/tree/release/3.1", I changed System.Data.Odbc to Informix.Net.Core appropriately. The newly built assembly, Informix.Net.Core.dll references iclit09b.dll (which has ODBC implementation for Informix), very simple program which tries to connect with Informix database receives "unable to load iclit09b.dll" (more details below) at runtime, iclit09b.dll is included in the PATH variable of the command prompt and also in the "Environment". Exact same program works without any issue in the same environment when I use .NET Core 2.2.
Did something change in .NET Core 3.1 in terms of loading "non .NET dependent DLL/so called legacy DLLs"?
D:\shesh\DOTNET-Core-Informix-code\VS2019_projects\MyApp>dotnet D:\shesh\DOTNET-Core-Informix-code\VS2019_projects\MyApp\bin\Debug\netcoreapp3.1\MyApp.dll
**Unhandled exception. System.DllNotFoundException: Unable to load DLL 'iclit09b.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)**
at Interop.Odbc.SQLAllocHandle(SQL_HANDLE HandleType, IntPtr InputHandle, IntPtr& OutputHandle)
at Informix.Net.Core.OdbcHandle..ctor(SQL_HANDLE handleType, OdbcHandle parentHandle) in D:\shesh\corefx-release-3.1\src\Informix.Net.Core\src\Informix\Net\Core\OdbcHandle.cs:line 37
at Informix.Net.Core.OdbcEnvironmentHandle..ctor() in D:\shesh\corefx-release-3.1\src\Informix.Net.Core\src\Informix\Net\Core\OdbcEnvironmentHandle.cs:line 12
at Informix.Net.Core.OdbcEnvironment.GetGlobalEnvironmentHandle() in D:\shesh\corefx-release-3.1\src\Informix.Net.Core\src\Informix\Net\Core\OdbcEnvironment.cs:line 26
at Informix.Net.Core.IfxConnectionOpen..ctor(IfxConnection outerConnection, IfxConnectionString connectionOptions) in D:\shesh\corefx-release-3.1\src\Informix.Net.Core\src\Informix\Net\Core\OdbcConnectionOpen.cs:line 17
at Informix.Net.Core.IfxConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) in D:\shesh\corefx-release-3.1\src\Informix.Net.Core\src\Informix\Net\Core\OdbcConnectionFactory.cs:line 32
at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) in D:\shesh\corefx-release-3.1\src\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs:line 374
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) in D:\shesh\corefx-release-3.1\src\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs:line 96
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in D:\shesh\corefx-release-3.1\src\Informix.Net.Core\src\Common\System\Data\ProviderBase\DbConnectionFactory.cs:line 130
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in D:\shesh\corefx-release-3.1\src\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs:line 325
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in D:\shesh\corefx-release-3.1\src\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs:line 37
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) in D:\shesh\corefx-release-3.1\src\Common\src\System\Data |
$1, $1
TAG44:
bne $1, $1, TAG45
ori $4, $1, 11
sll $0, $0, 0
mthi $1
TAG45:
beq $4, $4, TAG46
mult $4, $4
slt $3, $4, $4
sltiu $4, $3, 5
TAG46:
lui $2, 12
mtlo $2
nor $4, $4, $2
lui $3, 14
TAG47:
sll $0, $0, 0
bgtz $3, TAG48
xori $4, $3, 9
lui $4, 7
TAG48:
slt $4, $4, $4
mfhi $1
beq $1, $4, TAG49
mtlo $4
TAG49:
beq $1, $1, TAG50
lb $4, 0($1)
lb $2, 0($4)
xori $2, $1, 2
TAG50:
srav $3, $2, $2
lui $3, 4
addiu $1, $2, 1
bne $3, $3, TAG51
TAG51:
mfhi $4
beq $4, $1, TAG52
div $1, $1
sb $1, 0($4)
TAG52:
beq $4, $4, TAG53
mflo $4
lw $3, 0($4)
sltu $3, $4, $3
TAG53:
mflo $3
lui $1, 13
and $1, $3, $3
and $4, $1, $3
TAG54:
sb $4, 0($4)
lb $2, 0($4)
and $2, $4, $2
mtlo $2
TAG55:
mthi $2
sb $2, 0($2)
sb $2, 0($2)
mfhi $2
TAG56:
lui $1, 6
bne $1, $1, TAG57
addiu $4, $2, 2
ori $3, $1, 4
TAG57:
mthi $3
sll $0, $0, 0
lui $2, 8
sll $0, $0, 0
TAG58:
sll $0, $0, 0
div $1, $3
multu $3, $3
subu $2, $1, $3
TAG59:
sll $0, $0, 0
lui $3, 7
slti $1, $3, 9
mtlo $3
TAG60:
bgez $1, TAG61
mtlo $1
sra $1, $1, 12
mflo $3
TAG61:
sll $0, $0, 0
sll $0, $0, 0
bgez $3, TAG62
lui $4, 7
TAG62:
bne $4, $4, TAG63
sll $0, $0, 0
sll $1, $4, 3
lui $1, 15
TAG63:
bgez $1, TAG64
mthi $1
sw $1, 0($1)
lw $1, 0($1)
TAG64:
mflo $2
subu $3, $1, $1
lui $3, 13
nor $2, $1, $1
TAG65:
mflo $2
addi $3, $2, 15
lw $3, 0($2)
mfhi $2
TAG66:
mthi $2
addiu $2, $2, 12
bgtz $2, TAG67
lui $3, 11
TAG67:
xori $2, $3, 0
sll $0, $0, 0
sll $0, $0, 0
blez $3, TAG68
TAG68:
sll $0, $0, 0
and $4, $3, $3
mfhi $1
sll $0, $0, 0
TAG69 |
<issue_start><issue_comment>Title: `PokeGo++ 2.0 for Electra!` partial on iOS 11.3.1
username_0: ```
{
"packageId": "com.pokego2.pokego2-11",
"action": "working",
"userInfo": {
"arch32": false,
"packageId": "com.pokego2.pokego2-11",
"deviceId": "iPhone8,1",
"url": "http://cydia.saurik.com/package/com.pokego2.pokego2-11/",
"iOSVersion": "11.3.1",
"packageVersionIndexed": true,
"packageName": "PokeGo++ 2.0 for Electra!",
"category": "Tweaks",
"repository": "Global++ Tweaks",
"name": "PokeGo++ 2.0 for Electra!",
"packageIndexed": true,
"packageStatusExplaination": "This package version has been marked as Working based on feedback from users in the community. The current positive rating is 77% with 7 working reports.",
"id": "com.pokego2.pokego2-11",
"commercial": false,
"packageInstalled": true,
"tweakCompatVersion": "0.0.7",
"shortDescription": "Hacks and more for Pokemon GO!!! Bypass JB Detection.",
"latest": "2.0r-79",
"author": "PokeGo2.0 Devs",
"packageStatus": "Working"
},
"base64": "eyJhcmNoMzIiOmZhbHNlLCJwYWNrYWdlSWQiOiJjb20ucG9rZWdvMi5wb2tlZ28yLTExIiwiZGV2aWNlSWQiOiJpUGhvbmU4LDEiLCJ1cmwiOiJodHRwOlwvXC9jeWRpYS5zYXVyaWsuY29tXC9wYWNrYWdlXC9jb20ucG9rZWdvMi5wb2tlZ28yLTExXC8iLCJpT1NWZXJzaW9uIjoiMTEuMy4xIiwicGFja2FnZVZlcnNpb25JbmRleGVkIjp0cnVlLCJwYWNrYWdlTmFtZSI6IlBva2VHbysrIDIuMCBmb3IgRWxlY3RyYSEiLCJjYXRlZ29yeSI6IlR3ZWFrcyIsInJlcG9zaXRvcnkiOiJHbG9iYWwrKyBUd2Vha3MiLCJuYW1lIjoiUG9rZUdvKysgMi4wIGZvciBFbGVjdHJhISIsInBhY2thZ2VJbmRleGVkIjp0cnVlLCJwYWNrYWdlU3RhdHVzRXhwbGFpbmF0aW9uIjoiVGhpcyBwYWNrYWdlIHZlcnNpb24gaGFzIGJlZW4gbWFya2VkIGFzIFdvcmtpbmcgYmFzZWQgb24gZmVlZGJhY2sgZnJvbSB1c2VycyBpbiB0aGUgY29tbXVuaXR5LiBUaGUgY3VycmVudCBwb3NpdGl2ZSByYXRpbmcgaXMgNzclIHdpdGggNyB3b3JraW5nIHJlcG9ydHMuIiwiaWQiOiJjb20ucG9rZWdvMi5wb2tlZ28yLTExIiwiY29tbWVyY2lhbCI6ZmFsc2UsInBhY2thZ2VJbnN0YWxsZWQiOnRydWUsInR3ZWFrQ29tcGF0VmVyc2lvbiI6IjAuMC43Iiwic2hvcnREZXNjcmlwdGlvbiI6IkhhY2tzIGFuZCBtb3JlIGZvciBQb2tlbW9uIEdPISEhIEJ5cGFzcyBKQiBEZXRlY3 |
<issue_start><issue_comment>username_0: <!--
1 failure: Tests have failed...
1 warning: There is no linke...
4 messages
2 markdown notices
DangerID: danger-id-Danger;
-->
<table>
<thead>
<tr>
<th width="50"></th>
<th width="100%" data-danger-table="true">Fails</th>
</tr>
</thead>
<tbody><tr>
<td>:no_entry_sign:</td>
<td>Tests have failed, see below for more information.</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th width="50"></th>
<th width="100%" data-danger-table="true">Warnings</th>
</tr>
</thead>
<tbody><tr>
<td>:warning:</td>
<td>There is no linked JIRA ticket in the PR body. Please include the URL of the relevant JIRA ticket. If you need to, you may file a ticket on <a href="https://jira.appcelerator.org/secure/CreateIssue!default.jspa">JIRA</a></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th width="50"></th>
<th width="100%" data-danger-table="true">Messages</th>
</tr>
</thead>
<tbody><tr>
<td>:book:</td>
<td>:thumbsup: Hey!, You deleted more code than you added. That's awesome!</td>
</tr>
<tr>
<td>:book:</td>
<td>
:floppy_disk: <a href="https://jenkins.appcelerator.org/job/titanium-sdk/job/titanium_mobile/job/PR-11642/1/artifact/dist/mobilesdk-9.1.0.v20200417063354-osx.zip">Here's the generated SDK zipfile</a>.
</td>
</tr>
<tr>
<td>:book:</td>
<td>:fist: The commits in this PR match our conventions! Feel free to Rebase and Merge this PR when ready.</td>
</tr>
<tr>
<td>:book:</td>
<td>:x: 1 tests have failed
There are 1 tests failing and 691 skipped out of 7326 total tests.</td>
</tr>
</tbody>
</table>
### Tests:
<table><tr><th>Classname</th><th>Name</th><th>Time</th><th>Error</th></tr>
<tr><td>ios.ipad.Titanium.WatchSession</td><td>#remainingComplicationUserInfoTransfers (13.2.2)</td><td>0</td><td><pre>Error: expected false to be a number
expected false to have type number
expected 'boolean' to be 'number'
fail@file:///Users/username_0/Library/Developer/CoreSimulator/Devices/11D1096D-F679-4B26-B823-14052741AD63/data/Containers/Bundle/Application/2559DC7B-044B-4D7D-80E8-01E2398F7602/mocha.app/node_modules/should/cjs/should.js:275:19
value@file:///Users/username_0/Library/Developer/CoreSimulator/Devices/11D1096D-F679-4B26-B823-14052741AD63/data/Containers/Bundle/Application/2559DC7B-044B-4D7D-80E8-01E2398F7602/mocha.app/node_modules/should/cjs/should.js:356:13
file:///Users/username_0/Library/Developer/CoreSimulator/Devices/11D1096D-F679-4B26-B823-14052741AD63/data/Containers/Bundle/Application/2559DC7B-044B-4D7D-80E8-01E2398F7602/mocha.app/ti.watchsession.test.js:62:75
file:///Users/username_0/Library/Developer/CoreSim |
<filename>source/InternetMessage.ts
import { Group } from "./Group";
import { Header } from "./Header";
import { Mailbox } from "./Mailbox";
import { MessageID } from "./MessageID";
import decodeNonASCIIText from "./Commands/rfc2047Decode";
export
class InternetMessage {
public headers: Header[] = [];
public body: string = "";
/**
* This method assumes no newlines in `headerField`.
* @param headerField {string} The unfolded header field (name and body).
*/
private static parseUnfoldedHeaderField (headerField: string): Header {
// No whitespace is tolerated between the header name and the colon.
const endOfHeaderName: number = headerField.indexOf(":");
if (endOfHeaderName === -1) {
throw new Error("Internet message header did not have a colon.");
}
for (let i: number = 0; i < endOfHeaderName; i++) {
const charCode: number = headerField.charCodeAt(i);
if (charCode < 33 || charCode > 126 || charCode === 0x3A) {
throw new Error(
`Invalid header name starting with '${headerField.slice(0, i)}' `
+ `because of character ${charCode}.`,
);
}
}
// REVIEW: I am not really sure that the header _name_ is permitted to contain these tokens.
const headerName: string = Array.from(
decodeNonASCIIText(headerField.slice(0, endOfHeaderName)),
).join("");
/**
* The header value will not have quoted strings unquoted, nor
* will RFC 2047-encoded non-ASCII words be decoded here, because
* of header-specific syntactic requirements. It will be the
* responsibility of individual function
* See RFC 2047, Section 5 for examples of such restrictions.
*/
const headerValue = Array.from(
decodeNonASCIIText(headerField.slice(endOfHeaderName + 1)),
).join("");
return new Header(headerName, headerValue);
}
public static fromString (str: string): InternetMessage {
const indexOfEndOfHeaders: number = str.indexOf("\r\n\r\n");
if (indexOfEndOfHeaders === -1) {
throw new Error("Internet message did not have a CRLFCRLF sequence.");
}
const ret: InternetMessage = new InternetMessage();
const rawUnfoldedHeader: string = str
.slice(0, indexOfEndOfHeaders)
.replace(/\r\n( |\t)+/g, " "); // REVIEW
ret.headers = rawUnfoldedHeader
.split("\r\n")
.map(InternetMessage.parseUnfoldedHeaderField);
// TODO: Throw error for lone CR or LF, per RFC 2822, S 2.3.
// TODO: Check that no lines exceed 998 characters, per RFC 2822, S 2.3.
// isMIME
// contentTransferEncoding
// Check MIME-Version header.
// Decode, per Content-Transfer-Encoding.
// body really needs to be a Uint8Array.
ret.body = str.slice(indexOfEndOfHeaders + 4);
return ret;
}
public toString (): string {
return (
this.headers.map((h) => `${h.name}: ${h.body}`).join("\r\n")
+ "\r\n"
+ this.body
);
}
// REVIEW:
// date-time = [ day-of-week "," ] date FWS time [CFWS]
// day-of-week = ([FWS] day-name) / obs-day-of-week
// day-name = "Mon" / "Tue" / "Wed" / "Thu" /
// "Fri" / "Sat" / "Sun"
// date = day month year
// year = 4*DIGIT / obs-year
// month = (FWS month-name FWS) / obs-month
// month-name = "Jan" / "Feb" / "Mar" / "Apr" /
// "May" / "Jun" / "Jul" / "Aug" /
// "Sep" / "Oct" / "Nov" / "Dec"
// day = ([FWS] 1*2DIGIT) / obs-day
// time = time-of-day FWS zone
// time-of-day = hour ":" minute [ ":" second ]
// hour = 2DIGIT |
{"0":{"shardId":7,"payload":{"t":"GUILD_CREATE","s":250,"op":0,"d":{"rules_channel_id":null,"features":[],"lazy":true,"discovery_splash":null,"name":"mrhckj","mfa_level":0,"description":null,"emojis":[],"default_message_notifications":0,"owner_id":"743216085533551402","vanity_url_code":null,"system_channel_id":"295204358480026497","banner":null,"premium_subscription_count":0,"splash":null,"region":"ykriblsl","embedded_activities":[],"joined_at":"2021-10-10T08:16:07.411Z","channels":[{"type":4,"position":1,"permission_overwrites":[],"name":"Hyodycn tr obuhq","id":"413262940473960728"},{"type":0,"topic":null,"rate_limit_per_user":0,"position":0,"permission_overwrites":[],"parent_id":"592296721027326880","name":"trqnvat","last_message_id":"338722905856588950","id":"660151563760410563"},{"type":4,"position":2,"permission_overwrites":[],"name":"Jlczgsh jt bft","id":"910480598000642962"},{"user_limit":0,"type":2,"rtc_region":null,"position":0,"permission_overwrites":[],"parent_id":"651677806625995837","name":"Znzuslh","id":"656526283730373648","bitrate":64000},{"type":0,"topic":null,"rate_limit_per_user":0,"position":1,"permission_overwrites":[],"parent_id":"250589176295862767","name":"xkaanj","last_message_id":"988033418272506735","id":"815629587754468034"},{"user_limit":0,"type":2,"rtc_region":null,"position":1,"permission_overwrites":[],"parent_id":"506251959380256905","name":"idwdnt","id":"353008148909186673","bitrate":64000},{"type":4,"position":0,"permission_overwrites":[],"name":"swwxmyfxt","id":"211056568760870967"},{"type":0,"topic":null,"rate_limit_per_user":0,"position":2,"permission_overwrites":[],"parent_id":"823337903057473587","name":"ajjvnttlfankmeds","last_message_id":"509517942473775228","id":"611692413811827671"}],"presences":[],"large":false,"premium_tier":0,"system_channel_flags":0,"explicit_content_filter":0,"roles":[{"position":0,"permissions":"1548323901424","name":"axdlkhkqg","mentionable":false,"managed":false,"id":"766968855851389085","hoist":false,"color":0},{"tags":{"bot_id":"566243853531547159"},"position":5,"permissions":"1489115430","name":"Cnvzxmumi","mentionable":false,"managed":true,"id":"104751782618050248","hoist":false,"color":0},{"position":4,"permissions":"1564075385","name":"Mbwvi","mentionable":false,"managed":false,"id":"280465463512309660","hoist":false,"color":848781 |
off(sigName: "notify::name", callback: (...args: any[]) => void): NodeJS.EventEmitter
connect(sigName: "notify::parent", callback: (($obj: VideoEncoder, pspec: GObject.ParamSpec) => void)): number
connect_after(sigName: "notify::parent", callback: (($obj: VideoEncoder, pspec: GObject.ParamSpec) => void)): number
on(sigName: "notify::parent", callback: (...args: any[]) => void): NodeJS.EventEmitter
once(sigName: "notify::parent", callback: (...args: any[]) => void): NodeJS.EventEmitter
off(sigName: "notify::parent", callback: (...args: any[]) => void): NodeJS.EventEmitter
connect(sigName: string, callback: any): number
connect_after(sigName: string, callback: any): number
emit(sigName: string, ...args: any[]): void
disconnect(id: number): void
on(sigName: string, callback: any): NodeJS.EventEmitter
once(sigName: string, callback: any): NodeJS.EventEmitter
off(sigName: string, callback: any): NodeJS.EventEmitter
static name: string
constructor (config?: VideoEncoder_ConstructProps)
_init (config?: VideoEncoder_ConstructProps): void
static $gtype: GObject.Type
}
export interface VideoFilter_ConstructProps extends GstBase.BaseTransform_ConstructProps {
}
export class VideoFilter {
/* Properties of GstBase.BaseTransform */
qos: boolean
/* Properties of Gst.Object */
name: string
parent: Gst.Object
/* Fields of GstVideo.VideoFilter */
element: GstBase.BaseTransform
negotiated: boolean
inInfo: VideoInfo
outInfo: VideoInfo
/* Fields of GstBase.BaseTransform */
sinkpad: Gst.Pad
srcpad: Gst.Pad
haveSegment: boolean
segment: Gst.Segment
queuedBuf: Gst.Buffer
/* Fields of Gst.Element */
object: Gst.Object
stateLock: GLib.RecMutex
stateCond: GLib.Cond
stateCookie: number
targetState: Gst.State
currentState: Gst.State
nextState: Gst.State
pendingState: Gst.State
lastReturn: Gst.StateChangeReturn
bus: Gst.Bus
clock: Gst.Clock
baseTime: Gst.ClockTimeDiff
startTime: Gst.ClockTime
numpads: number
pads: Gst.Pad[]
numsrcpads: number
srcpads: Gst.Pad[]
numsinkpads: number
sinkpads: Gst.Pad[]
padsCookie: number
contexts: Gst.Context[]
/* Fields of Gst.Object */
lock: GLib.Mutex
flags: number
/* Fields of GObject.InitiallyUnowned */
gTypeInstance: GObject.TypeInstance
/* Fields of GObject.Object */
/* Methods of GstBase.BaseTransform */
getAllocator(): [ /* allocator */ Gst.Allocator | null, /* params */ Gst.AllocationParams | null ]
getBufferPool(): Gst.BufferPool | null
isInPlace(): boolean
isPassthrough(): boolean
isQosEnabled(): boolean
reconfigure(): boolean
reconfigureSink(): void
reconfigureSrc(): void
setGapAware(gapAware: boolean): void
setInPlace(inPlace: boolean): void
setPassthrough(passthrough: boolean): void
setPreferPassthrough(preferPassthrough: boolean): void
setQosEnabled(enabled: boolean): void
updateQos(proportion: number, diff: Gst.ClockTimeDiff, timestamp: Gst.ClockTime): void
updateSrcCaps(updatedCaps: Gst.Caps): boolean
/* Methods of Gst.Element */
abortState(): void
addPad(pad: Gst.Pad): boolean
addPropertyDeepNotifyWatch(propertyName: string | null, includeValue: boolean): number
addPropertyNotifyWatch(propertyName: string | null, includeValue: boolean): number
callAsync(func: Gst.ElementCallAsyncFunc): void
changeState(transition: Gst.StateChange): Gst.StateChangeReturn
continueState(ret: Gst.StateChangeReturn): Gst.StateChangeReturn
createAllPads(): void
foreachPad(func: Gst.ElementForeachPadFunc): boolean
foreachSinkPad(func: Gst.ElementForeachPadFunc): boolean
foreachSrcPad(func: Gst.ElementForeachPadFunc): boolean
getBaseTime(): Gst.ClockTime
getBus(): Gst.Bus | null
getClock(): Gst.Clock | null
getCompatiblePad(pad: Gst.Pad, caps?: Gst.Caps | null): Gst.Pad | null |
://static.xx.fbcdn.net/rsrc.php/v3/yZ/l/0,cross/5GPoBN5phbJ.css?_nc_x=qPk9gtNOTtb" as="style" crossorigin="anonymous">
<link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/ym/l/0,cross/megOYoQ0ZI5.css?_nc_x=qPk9gtNOTtb" as="style" crossorigin="anonymous">
<link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/yu/l/0,cross/MB5Du_jOBH5.css?_nc_x=qPk9gtNOTtb" as="style" crossorigin="anonymous">
<link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3iuFR4/yH/l/en_US/kzDSXE5cMmd.js?_nc_x=qPk9gtNOTtb" as="script" crossorigin="anonymous" nonce="">
<link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/yI/r/qAplB7e_mud.js?_nc_x=qPk9gtNOTtb" as="script" crossorigin="anonymous" nonce=""> \x3Cdiv data-sigil=\"message-text\">[[message]]\x3C/div>\x3Cspan data-sigil=\"message-body\">\x3C/span>\x3C/div>\x3Cdiv class=\"desc noMedia attachment mfss\" data-sigil=\"message-attachment\">\x3Cspan class=\"fcg\">\x3Ca href=\"[[%UNESCAPED]][[attachment_uri]]\" class=\"title\">[[attachment_title]]\x3C/a>\x3C/span>\x3C/div>\x3Cdiv class=\"actions mfss fcg\" data-sigil=\"action-list\">\x3Cabbr data-store=\"{"time":0,"short":false,"forceseconds":false}\" data-sigil=\"timestamp\">Dec 31, 1969\x3C/abbr>\x3C/div>\x3C/div>\x3C/div>\x3C/div>\x3Cdiv class=\"_5s61\">\x3C/div>\x3C/div>\x3C/div>"],"0vRiPJ":["MChatMessageRedesignReceiverTemplate","\x3Cdiv class=\"voice acw\" data-sigil=\"message-xhp marea\">\x3Cdiv class=\"_7om2\">\x3Cdiv class=\"_4g34\">\x3Cdiv class=\"ib\">\x3Ca class=\"darkTouch l\" href=\"[[%UNESCAPED]][[author_href]]\" aria-hidden=\"true\">\x3Cspan data-sigil=\"profile_image touchable\">[[image]]\x3C/span>\x3C/a>\x3Cdiv class=\"c\">\x3Cdiv class=\"msg\"> \x3Cdiv data-sigil=\"message-text\">[[message]]\x3C/div>\x3Cspan data-sigil=\"message-body\">\x3C/span>\x3C/div>\x3Cdiv class=\"desc noMedia attachment mfss\" data-sigil=\"message-attachment\">\x3Cspan class=\"fcg\">\x3Ca href=\"[[%UNESCAPED]][[attachment_uri]]\" class=\"title\">[[attachment_title]]\x3C/a>\x3C/span>\x3C/div>\x3Cdiv class=\"_792h actions mfss fcg\" data-sigil=\"action-list\">\x3Cabbr data-store=\"{"time":0,"short":false,"forceseconds":false}\" data-sigil=\"timestamp\">Dec 31, 1969\x3C/abbr>\x3C/div>\x3C/div>\x3C/div>\x3C/div>\x3Cdiv class=\"_5s61\">\x3C/div>\x3C/div>\x3C/div>"],byNP9M:["MChatMessageRedesignSenderTemplate","\x3Cdiv class=\"voice acw\" data-sigil=\"message-xhp marea\">\x3Cdiv class=\"_7om2\" |
: I wonder if the issue here is caused by spaces in the user name? @username_5, do you have any spaces or non-ASCII characters in your user name?
<issue_comment>username_5: @username_6
Moved your question and my response over to #277.
<issue_comment>username_1: @username_4 could you jump to this issue https://github.com/rstudio/sparklyr/issues/277? We are troubleshooting there the `NativeConstructorAccessorImpl.newInstance0` exception for Windows systems.
<issue_comment>username_7: Hi,
I have installed Spark 2.1.0 on windows 10 and configured the Winutils, HADOOP_HOME, SPARK_HOME as advised.
I am facing problem connecting the spark instance. Please find the log below and suggest:
version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname <NAME>
library(sparklyr)
spark_install(version = "2.1.0")
Spark 2.1.0 for Hadoop 2.7 or later already installed.
sc <- spark_connect(master = "local")
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: In prepare_windows_environment(spark_home) :
HADOOP_HOME was already but does not match current Spark installation
2: In file(con, "r") :
cannot open file 'C:\Users\prbha\AppData\Local\Temp\Rtmpe6M86n\file2ac810972c5d_spark.log': Permission denied
sc <- spark_connect(master = "spark://192.168.199.1:7077")
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: In prepare_windows_environment(spark_home) :
HADOOP_HOME was already but does not match current Spark installation
2: In file(con, "r") :
cannot open file 'C:\Users\prbha\AppData\Local\Temp\Rtmpe6M86n\file2ac8689b538c_spark.log': Permission denied
<issue_comment>username_8: I've gotten the same problem. All packages/versions are up to date. Any advice? I just went through the new Spark tab on RStudio 1.0.136. I'm a total noob to this Spark stuff....thx!
The exact error:
Error in start_shell(master = master, spark_home = spark_home, spark_version = version, :
Failed to launch Spark shell. Ports file does not exist.
Path: C:\Users\E19665\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\bin\spark-submit.cmd
Parameters: --class, sparklyr.Backend, --packages, "com.databricks:spark-csv_2.11:1.3.0","com.amazonaws:aws-java-sdk-pom:1.10.34", "C:\Users\E19665\Documents\R\win-library\3.3\sparklyr\java\sparklyr-1.6-2.10.jar", C:\Users\E19665\AppData\Local\Temp\Rtmpe8bQdQ\file293031055d20.out
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap sizePicked up _JAVA_OPTIONS: -Xmx512M
Picked up _JAVA_OPTIONS: -Xmx512M
My sessionInfo():
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached |
{
set
{
if (this.InvokeRequired)//別スレッドから呼び出されたとき
{
this.Invoke(new callBack(delegate { Center = value; }));
return;
}
center = value;
numericBoxCenterX.Value = center.X;
numericBoxCenterY.Value = center.Y;
DetectorProperty.Center = value;
}
get => new PointD(numericBoxCenterX.Value, numericBoxCenterY.Value);
}
private AreaDetector detectorProperty = null;
/// <summary>
/// 画像プロパティ
/// </summary>
public AreaDetector DetectorProperty
{
set => detectorProperty = value;
get
{
if (detectorProperty == null)
detectorProperty = new AreaDetector(ImageWidth, ImageHeight, Resolution, Center, WaveProperty, Cameralength);
else
{
detectorProperty.Center = Center;
detectorProperty.ImageHeight = ImageHeight;
detectorProperty.ImageWidth = ImageWidth;
detectorProperty.Resolution = Resolution;
detectorProperty.CameraLength = Cameralength;
detectorProperty.WaveProperty = WaveProperty;
}
return detectorProperty;
}
}
#endregion 画像のプロパティ関連
private bool isReferrenceImage = false;
public bool IsReferrenceImage
{
set
{
isReferrenceImage = value;
checkBoxInitialBackground.Enabled = value;
buttonSaveBackGround.Enabled = value;
if (value)
{
trackBarBgA.Value = Math.Min((int)(Math.Log(graphControlFrequency.Profile.Pt[^1].X, 7) * 100), trackBarBgA.Maximum);
trackBarBgA.Value = 1;
trackBarBgH.Maximum = ImageHeight / 3;
trackBarBgH.Minimum = 1;
trackBarBgH.Value = (int)(ImageHeight * 0.1);
trackBarBgR.Maximum = ImageHeight * 2;
trackBarBgR.Minimum = 0;
trackBarBgR.Value = 0;
}
}
get => isReferrenceImage;
}
public bool SimulationCheck
{
set => panelSimulationCheck.Enabled = value;
get => panelSimulationCheck.Enabled;
}
/// <summary>
/// フィルムにじみ量
/// </summary>
public double FilmBlur
{
set
{
if (this.InvokeRequired)//別スレッドから呼び出されたとき
{
this.Invoke(new callBack(delegate { FilmBlur = value; }));
return;
}
numericBoxFilmBlur.Value = value;
}
get => numericBoxFilmBlur.Value;
}
#region ピクセル配列群
/// <summary>
/// フィルターされたピクセル配列
/// </summary>
public bool[] Filter;
/// <summary>
/// リファレンス画像のピクセル配列
/// </summary>
public double[] SrcPixels;
/// <summary>
/// trueがバックグランドのみからなる領域
/// </summary>
public bool[] BackgroundArea;
/// <summary>
/// バックグラウンドのピクセル配列
/// </summary>
public double[] BackgroundPixels;
/// <summary>
/// 回折リングのピクセル配列
/// </summary>
public double[] DiffractionPixels;
public double[] DiffractionPixelsTemp;
/// <summary>
/// バックグランド + 回折リング × スケール因子 のピクセル配列
/// </summary>
public double[] SimulatedPixels;
/// <summary>
/// 最終的に描画するピクセル配列
/// </summary>
public double[] DestPixels;
#endregion ピクセル配列群
public double[] Weight;
public double ScaleFactor;
#endregion プロパティ, フィールド
public void SetImage(double[] srcPixels, int width, PointD center, double resolution, byte[] scaleR, byte[] scaleG, byte[] scaleB)
{
if (srcPixels != null)
scalablePictureBox.PseudoBitmap = new PseudoBitmap(srcPixels, width, scaleR, scaleG, scaleB, true);
Center = center;
SrcPixels = srcPixels;
Filter = new bool[srcPixels.Length];
DiffractionPixels = new double[srcPixels.Length];
BackgroundPixels = new double[srcPixels.Length];
DestPixels = new double[srcPixels.Length];
Weight = new double[srcPixels.Length];
ImageWidth = width;
ImageHeight = srcPixels.Length / width;
Resolution = resolution;
for (int j = |
.Split('@');
// add the key: value pairs as mass@AA:AA
Modifications.Add(item, splitString.Last());
// and AA:int
TotalLabelingSites.Add(splitString.Last(), 0);
LabelingSitesHit.Add(splitString.Last(), 0);
AminosOfInterest.Add(splitString.Last());
}
// now we need to get at labeling efficiency
int KTotalSites = 0;
int KTotalMissed = 0;
int NTotalSites = 0;
int NTotalMissed = 0;
int XTotalSites = 0;
int XTotalMissed = 0;
// define a function to return the number of labeling sites
int NumberOfSites(string aa, string seq)
{
if (aa == "[" | aa == "]")
{
return 1;
}
else
{
return seq.Count(x => x.ToString() == aa);
}
}
foreach (PsmData psm in psms)
{
mods = psm.Mods;
bool skipNterm = false;
// check the sequence in two steps. First the n-terminus, then remove the n-terminus and check the rest of it.
// FIRST STEP: N-TERMINUS
if (nmod != null)
{
// check if the first residue is lysine
if (psm.Seq[0] == 'K')
{
// if so, we need to see if it was only labeled once. Skip the psm if that is the case because it is ambiguous
IEnumerable<Modification> nMods = from x in mods
where x.Loc == 0
select x;
int numMods = nMods.Count();
if (numMods == 1)
{
// we can't know which reactive site is modified, so don't include this peptide
continue;
}
if (numMods == 0)
{
// nothing is labeled
TotalLabelingSites["["] += 1;
if (AminosOfInterest.Contains("K"))
{
TotalLabelingSites["K"] += 1;
}
}
if (numMods == 2)
{
TotalLabelingSites["["] += 1;
LabelingSitesHit["["] += 1;
if (AminosOfInterest.Contains("K"))
{
TotalLabelingSites["K"] += 1;
LabelingSitesHit["K"] += 1;
}
}
}
// If the first residue is not lysine
else
{
IEnumerable<Modification> nMods = from x in mods
where x.Loc == 0
select x;
// add 1 to total n-termini, because it is always there
TotalLabelingSites["["] += 1;
// get the aa residue letter
string residue = psm.Seq[0].ToString();
//see if it is of interest
if (AminosOfInterest.Contains(residue))
{
// if so, add 1 to total sites for it
TotalLabelingSites[residue] += 1;
}
// now go through each detected modification
foreach (Modification mod in nMods)
{
if (nmod.Contains(mod.Mass.ToString()))
{
LabelingSitesHit["["] += 1;
}
else
{
if (AminosOfInterest.Contains(mod.AA))
{
LabelingSitesHit[mod.AA] += 1;
}
}
}
}
}
int start;
if (nmod != null)
{
start = 1;
}
else
{
start = 0;
}
// now continue with the rest
for (int i = start; i < psm.Seq.Length; i++)
{
// check if we care about this amino acid
string aa = psm.Seq[i].ToString();
if (AminosOfInterest.Contains(aa))
{
// add one to potential labeling sites
TotalLabelingSites[aa] += 1;
// There should only ever be one modification for each of the rest of the residues, so we can reference it by location to see if it exists
bool hit = (from x in mods
where x.Loc == i
select 1).Count() == 1;
if (hit)
{
LabelingSitesHit[aa] += 1;
}
}
else
{
continue;
}
}
}
// spit out some metrics to the console
foreach (string aa in AminosOf |
1 }], [{ material: input, form: "dustTiny", count: 1 }], 56, 4));
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["screw"][input.name].id][MaterialDictionary.invdata["screw"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["screw"][input.name].id][MaterialDictionary.invdata["screw"][input.name].data].material.name, "cancater1material");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["dustTiny"][input.name].id][MaterialDictionary.invdata["dustTiny"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["dustTiny"][input.name].id][MaterialDictionary.invdata["dustTiny"][input.name].data].material.name, "cancater1material")
}
if (input.type == "GEM") {
MachineDictionary.steammachines["macerator"].recipes.addRecipe(new Recipe([{ type: "material", material: input, form: "gem", count: 1 }], [{ material: input, form: "dust", count: 1 }], 56, 4));
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["dust"][input.name].id][MaterialDictionary.invdata["dust"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["dust"][input.name].id][MaterialDictionary.invdata["dust"][input.name].data].material.name, "cancater1material")
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["gem"][input.name].id][MaterialDictionary.invdata["gem"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["gem"][input.name].id][MaterialDictionary.invdata["gem"][input.name].data].material.name, "cancater1material")
}
//if(input.type == "GEM") MachineDictionary.steammachines["macerator"].recipes.addRecipe(new Recipe([{type: "material", material: input, form: "frameGt", count: 1}], [{material: input, form: "dust", count: 2}], 128, 4));
if (input.type == "INGOT") {
MachineDictionary.steammachines["macerator"].recipes.addRecipe(new Recipe([{ type: "material", material: input, form: "nugget", count: 1 }], [{ material: input, form: "dustTiny", count: 1 }], 16, 4));
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["dustTiny"][input.name].id][MaterialDictionary.invdata["dustTiny"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["dustTiny"][input.name].id][MaterialDictionary.invdata["dustTiny"][input.name].data].material.name, "cancater1material")
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["nugget"][input.name].id][MaterialDictionary.invdata["nugget"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["nugget"][input.name].id][MaterialDictionary.invdata["nugget"][input.name].data].material.name, "cancater1material")
}
if (input.type == "INGOT") {
MachineDictionary.steammachines["compressor"].recipes.addRecipe(new Recipe([{ type: "material", material: input, form: "ingot", count: 9 }], [{ material: input, form: "block", count: 1 }], 300, 2));
Logger.Log(input.name, "daredevil");
Logger.Log(MaterialDictionary.invdata["block"]["iron"].id, "ztрщy");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["ingot"][input.name].id][MaterialDictionary.invdata["ingot"][input.name].data].form, "cancater1");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["ingot"][input.name].id][MaterialDictionary.invdata["ingot"][input.name].data].material.name, "cancater1material");
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["block"][input.name].id][MaterialDictionary.invdata["block"][input.name].data].form, "cancater1")
Logger.Log(MaterialDictionary.data[MaterialDictionary.invdata["block"][input.name].id][MaterialDictionary.inv |
1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `block in fetch_external_sources'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:966:in `fetch_external_sources'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:117:in `analyze'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/bin/pod:23:in `load'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/bin/pod:23:in `<main>'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/bin/ruby_executable_hooks:22:in `eval'
/Users/zhoujialei/.rvm/rubies/ruby-3.0.0/bin/ruby_executable_hooks:22:in `<main>'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
</pre>
## CocoaPods Environment
[Truncated]
target 'test' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'SDWebImage'
pod 'Kingfisher', '~> 5.0'
pod 'TXIMSDK_TUIKit_iOS_Professional', :podspec => 'https://raw.githubusercontent |
Try This Again
Wednesday, June 17, 2009
Today’s Lineup
Pods 7, Missile 6, JD9, PK 3, AJ 2, BA 8, Getz 4, Beckham 5, Danks pitching.
Sorry
Not really sure why yesterday’s post went up three times (and wasn’t sure how to delete two of the redundancies). I apologize if you wasted time reading all three, but if you actually read all three, you might have other issues to deal with …
An employee/reader here pointed it out to me once I had arrived at Wrigley. I accused her of “user error,” and she met me this morning at the water cooler with some snide comments about my choice of shirt colors (bright orange, which works well if I am hunting, working on a road crew, heading into the woods looking for my golf ball or heading to Wrigley where I need to stand out in a crowd).
Piling On
“Can’t we just stay on the bus, it would be more comfortable … and we’d have more room.”
“We don’t have a clubhouse, We have a closet.”
“If you have to go to the bathroom during the game, you need to get a taxi.”
Come to think of it, if I was grand poobah of a baseball team, I’d make the visiting accommodations as miserable as possible, but of course, I went to Iowa where football coach Hayden Fry famously painted the walls of the visiting locker room pink to take the edge off the opposing team’s aggression on Saturdays.
Come Clean
Well, Sammy Sosa took care of yesterday’s pregame topic.
Ozzie made a good point, I think. If you are one of the 104 players who tested positive, and you know you did, why not come out right now and tell the world? The test was in 2003, so many of the players have likely left the game. I understand why it wouldn’t matter to them (although they could potentially influence others by admitting what they did, why they did it and how it was a mistake). If you are still playing or if you have hopes of the HOF, why not come clean? I think people would respect your confession and move on, and maybe, just maybe, you would convince someone else not to take the risk to their body or their career.
Cubs/Sox
I asked yesterday on my twitter (@InsideTheSox) and repeat it here: send me your favorite/best memories from past Cubs/Sox meetings. They can be personal or not. I can’t promise that the best will receive something, but you just might get an email from me on the side. I’d love to hear a few stories (hint: laughter works best with this “judge.”)
Yea! Baseball today!!?? I haven’t checked the Chicago weather yet, but I presume from Scott’s post that there will be a game today. I will be watching from my easy chair in the den instead of on the computer, so I’ll make a blanket comment now for the game: Go Sox’09…… (sounds familiar doesn’t it?)……j.k.
Oh, and Go JohnnyD….. You’ve got to get a hit today too, to keep up with Mark and Clayton…..
What’s JohnnyD looking at when he comes off the field? He’s looking into or just beyond the dugout. Go Sox’09…j.k.
Very pleased with the game so far. Maybe it was a good thing after all that the game last night got rained out?
I’ve noticed that it’s a lot easier to work out if I’m watching a Sox game… though the TVs on the treadmills and ellipticals wouldn’t show WGN so I had to listen to lame Cubs propoganda on CSN. Lol, just joking. Cubs propogada isn’t lame, just wrong. :-D
That was a dominant win. Dominant pitching, dominant defense and dominant situational hitting = a White Sox Win….. Good job everybody…… Can we do it again tomorrow? I’ll be tuned in to find out……. Go Sox’09….j.k.
Great win today!! Nothing brings more joy than beating the Cubs. Nothing.
My favorite Sox/Cubs memory was July 1, 2006. My roommate and I made a rare appearance in the enemy territory known a Wrigley Field. We ventured through the crowded, dank concourses to our seats; not a single Sox fan in sight. There we were, two Southside girls, surrounded entirely by Cubs fans. For the first few innings, everything was fine, but when the Cubs took the lead, the heckling commenced. Never one to back down, I reminded the fools around me, that it was in fact our team that had a very, shiny, pretty trophy at home.
In the ninth inning, things looked dim until Ross Gload |
it didn’t really matter to me because I saw that she was changed in front of me and that was healing to me and it meant everything to me everything that was probably the happiest I’ve ever been until I got the new trespass lifted the next day because we had after two weeks left her mothers house and she got me to pay for a temporary house for three months and I didn’t need to do this she made me think all these things and emotionally manipulated me and had me do this and I don’t know if she had an ulterior motive I think that she was genuine at some points this is what confuses me, so she left the cats at her moms house and her mom knew the entire time our plans that we were away the next day after that no trespass hearing at the no contact is only partially lifted but she seemed more concerned with the no trespass which concerned me and I communicated this to her and she ingrained into my mind that I was the most important thing to her that our future was the only future she ever wanted that she loved me not to doubt her life and I think maybe she does love me to her capacity I know that she always regrets it eventually. I was financially supporting her I was supporting her and being there for her and it was almost like she was a victim until I exhausted all my internal resources in so I had no more fight left in me the whole thing took so much out of me I feel practically dead inside. We got pulled over August 11 and she was arrested and she blames me because we were in a fight because when that no trespass was lifted her mother came up and dropped off her cats and she left me alone in this place that she had me pay for to be with her together when I could’ve been home where she decided to be and spent so much money because he’s our vacation rentals hired an attorney at lost so much cash flow and savings she tried to tell me her mother just started driving up which I didn’t believe and I threw a fit I did ice yelled and I was upset and it was just me not being able to handle it because I knew she was not being honest with me and I knew that she possibly was about to hurt me and I knew that this person might be messing with me so I didn’t know how to express that so sometimes I would lose my mind, I remember when I expressed my concerns about her attention to the no trespass order she grab my hand looked me in the eye and said honey this isn’t going to change anything it’s all for our no contact order everything to me is our no contact order and our future insured me and I remember looking in her eyes and I saw some to see but I saw some genuineness as well and I overlooked the deceit that I saw and wrote it off that well she’s probably nervous and she probably feels homeless that’s only reason I rent a temporary homes it was very stressful for me as well because at the end of each month I would have to see if I could extend it or if it was booked by someone else and then move on the drop of a dime to another place for a month and these are like luxury vacation rentals so they were a lot of money it was just a lot they didn’t need to go through a lot of the activity for someone who just got shot in the foot and I did so much for her I did everything that she told me to but I realize now I was so controlled I was practically drugged I was not allowed to reflect on the situation and process it when her mom came out shortly before her arrest this is when she started to show me signs I was concerned about she left me alone for three nights in a row I went to the gas station which is the only place she let me go and he got back her and all her things were gone it hurt me so much and her excuse was that I flipped out on her and she got scared that it was going to call the police or something and she left me on that holding Sarah almost done here I’m just my mom is going to watch the house and the cats this that and the other thing and then of course she never came that night she didn’t come the next night either but she did come the following night and what throws me off as I did feel the passion in her and I did feel her confliction she told me I made her feel like the worst person on earth when I let her know she was doing wrong, and I tried explaining to her, she knew she was doing wrong she started not to trust me because she knew she was not to be trusted and she was betraying me.
That is what I would tell her and she ingrained into my mind that I was wrong to this day I can’t grasp anything else because in that vulnerable state I was literally brainwashed and I don’t know if this was a plan if this was a little bit of both I don’t know what this was I just know what I know and it’s not much that I actually know, as soon as she got arrested she betrayed me I tried to go home a few days |
First, the doctors put two stints into his arteries to allow blood flow. This was supposed to fix him, but the next day he suffered a stroke from a dislodged blood clot. His left side became useless and we all prepared ourselves for the worst. I wanted to go to the hospital then, but it just became a game of wait-and-see. The next day, he was much better and had been able to slightly grasp the doctor's hand and move his foot. It wasn't long before he was feeding himself and cracking jokes. They believed it may have been the medication that had made his left side paralytic since he only had one kidney; the other had been removed a couple years ago because it had become cancerous. Since he seemed to be making a recovery, the moved him to the Rehabilitation Ward. But then his kidney was at 3x the level it should be, and his gallbladder began to give him issues. His white blood cell count was also extremely high. Since he's been on a blood thinner for his heart, and because he's already so weak, they couldn't do surgery to remove it.
Today, on my brother's 21st birthday, they took him in to drain his gallbladder, but later in the day my mom told me that they had only done this to relieve some pain. He was no longer conscious since they were giving him so much morphine and they didn't expect him to come-to. I had already bought my plane ticket to fly out there tomorrow when my mom called to say he had passed on.
I'm completely frustrated that we never knew enough to make plans to see him. They had been planning on having him in rehab for 4 weeks, so my family was saying to wait until he was feeling better to visit. When they told us he may be in a wheelchair from now on, my step dad wanted to rush there to modify their house... but my grandmother told him to wait. What else could we do? If he modified the house, my grandmother couldn't sell it. If we came too soon, he might've still hung on for a couple more weeks and someone might miss his funeral. If we came too late, we couldn't say goodbye.
Well, it's too late to say goodbye. I at least was able to write him a letter and speak with him briefly on the phone. Apparently, he had a lot of visitors and well-wishers. That makes me feel good since he was always so good about visiting others in the hospital. I'm glad he knew he was loved.
I'm about to spend two-weeks with my religious family who are stricken with their loss, as I am and will be. I'm not sure what to expect from them, though. Will they try to use this as yet another ploy to get me "saved"? In my letter to my grandfather, I talked about God and how "the Lord" will say about his life, "It is good." For his sake, I chose to imply I was a Believer. I wanted nothing else but for his mind to be at ease concerning my eternal salvation, but... now that he's no longer here, I don't care to keep up the facade. I have no desire to flash my lack of belief in my family's face, but... my grandfather's death does not make a case for their faith. If anything, it speaks against it. Why would God allow one of his most faithful to die this way?
I don't need to know why my grandfather suffered; I know it's just a part of life. It's terribly sad and I hate losing him, but I know he no longer feels pain. I am tempted to feel guilty for not visiting them sooner; for not always calling on their birthdays; for not spending enough time with them or expressing how much I appreciate them. But, I have to at least know that he's no where in this universe accusing me or being hurt by my neglect. I know he knew I wanted to be there, and I know he knew I loved him and appreciated him. I can't waste time regretting what I cannot change.
I still can't believe he's gone. He and my grandmother are just part of this eternal duo. They've been there since the beginning of my life. I spent my first four years with them and they're probably the best model of a healthy, thriving relationship I'll ever know. Now I know to make more time for my grandmother, and to keep up with her better. Her and I were always close, and I hope we can be close despite the fact that I don't share her beliefs.
I probably won't be on T|A much in the next two weeks, but I guess I just felt compelled to share. Death is painful, but it is no reason to believe in fairy tales. Charles Crum is someone I'm proud to be a part of. If Christ was real, then my grandfather was the model of what a Christian should be. |
;
cmd = parseexec(ps, es);
b6b: 83 ec 08 sub $0x8,%esp
b6e: ff 75 0c pushl 0xc(%ebp)
b71: ff 75 08 pushl 0x8(%ebp)
b74: e8 ec 01 00 00 call d65 <parseexec>
b79: 83 c4 10 add $0x10,%esp
b7c: 89 45 f4 mov %eax,-0xc(%ebp)
if(peek(ps, es, "|")){
b7f: 83 ec 04 sub $0x4,%esp
b82: 68 15 19 00 00 push $0x1915
b87: ff 75 0c pushl 0xc(%ebp)
b8a: ff 75 08 pushl 0x8(%ebp)
b8d: e8 22 fe ff ff call 9b4 <peek>
b92: 83 c4 10 add $0x10,%esp
b95: 85 c0 test %eax,%eax
b97: 74 35 je bce <parsepipe+0x69>
gettoken(ps, es, 0, 0);
b99: 6a 00 push $0x0
b9b: 6a 00 push $0x0
b9d: ff 75 0c pushl 0xc(%ebp)
ba0: ff 75 08 pushl 0x8(%ebp)
ba3: e8 bb fc ff ff call 863 <gettoken>
ba8: 83 c4 10 add $0x10,%esp
cmd = pipecmd(cmd, parsepipe(ps, es));
bab: 83 ec 08 sub $0x8,%esp
bae: ff 75 0c pushl 0xc(%ebp)
bb1: ff 75 08 pushl 0x8(%ebp)
bb4: e8 ac ff ff ff call b65 <parsepipe>
bb9: 83 c4 10 add $0x10,%esp
bbc: 83 ec 08 sub $0x8,%esp
bbf: 50 push %eax
bc0: ff 75 f4 pushl -0xc(%ebp)
bc3: e8 cc fb ff ff call 794 <pipecmd>
bc8: 83 c4 10 add $0x10,%esp
bcb: 89 45 f4 mov %eax,-0xc(%ebp)
}
return cmd;
bce: 8b 45 f4 mov -0xc(%ebp),%eax
}
bd1: c9 leave
bd2: c3 ret
00000bd3 <parseredirs>:
struct cmd*
parseredirs(struct cmd *cmd, char **ps, char *es)
{
bd3: 55 push %ebp
bd4: 89 e5 mov %esp,%ebp
bd6: 83 ec 18 sub $0x18,%esp
int tok;
char *q, *eq;
while(peek(ps, es, "<>")){
bd9: e9 b6 00 00 00 jmp c94 <parseredirs+0xc1>
tok = gettoken(ps, es, 0, 0);
bde: 6a 00 push $0x0
be0: 6a 00 push $0x0
be2: ff 75 10 pushl 0x10(%ebp)
be5: ff 75 0c pushl 0xc(%ebp)
be8: e8 |
using Nlpcn.Net.Commons.Lang.Tire.Domain;
namespace Nlpcn.Net.Commons.Lang.Tire
{
public class SmartGetWord<T>
{
private const string Emptystring = "";
private readonly SmartForest<T> _forest;
private SmartForest<T> _branch;
private char[] _chars;
private int _i;
private bool _isBack;
public int Offe;
/// <summary>
/// 参数
/// </summary>
public T Param { get; private set; }
private int _root;
private byte _status;
private string _str;
private int _tempOffe;
public SmartGetWord(SmartForest<T> forest, string content)
{
_chars = content.ToCharArray();
_forest = forest;
_branch = forest;
}
public SmartGetWord(SmartForest<T> forest, char[] chars)
{
_chars = chars;
_forest = forest;
_branch = forest;
}
public string GetAllWords()
{
var temp = AllWords();
while (Emptystring.Equals(temp))
{
temp = AllWords();
}
return temp;
}
public string GetFrontWords()
{
var temp = FrontWords();
while (Emptystring.Equals(temp))
{
temp = FrontWords();
}
return temp;
}
private string AllWords()
{
if ((!_isBack) || (_i == _chars.Length - 1))
{
_i = (_root - 1);
}
for (_i += 1; _i < _chars.Length; _i = (_i + 1))
{
_branch = _branch.GetBranch(_chars[_i]);
if (_branch == null)
{
_root += 1;
_branch = _forest;
_i = (_root - 1);
_isBack = false;
}
else
{
switch (_branch.Status)
{
case 2:
_isBack = true;
Offe = (_tempOffe + _root);
Param = _branch.Param;
return new string(_chars, _root, _i - _root + 1);
case 3:
Offe = (_tempOffe + _root);
_str = new string(_chars, _root, _i - _root + 1);
Param = _branch.Param;
_branch = _forest;
_isBack = false;
_root += 1;
return _str;
}
}
}
_tempOffe += _chars.Length;
return null;
}
private string FrontWords()
{
for (; _i < _chars.Length + 1; _i++)
{
if (_i == _chars.Length)
{
_branch = null;
}
else
{
_branch = _branch.GetBranch(_chars[_i]);
}
if (_branch == null)
{
_branch = _forest;
if (_isBack)
{
Offe = _root;
_str = new string(_chars, _root, _tempOffe);
if ((_root > 0) && (IsE(_chars[(_root - 1)])) && (IsE(_str[0])))
{
_str = Emptystring;
}
if ((_str.Length != 0) && (_root + _tempOffe < _chars.Length) && (IsE(_str[_str.Length - 1]))
&& (IsE(_chars[(_root + _tempOffe)])))
{
_str = Emptystring;
}
if (_str.Length == 0)
{
_root += 1;
_i = _root;
}
else
{
_i = (_root + _tempOffe);
_root = _i;
}
_isBack = false;
if (Emptystring.Equals(_str))
{
return Emptystring;
}
return _str;
}
_i = _root;
_root += 1;
}
else
{
switch (_branch.Status)
{
case 2:
_isBack = true;
_tempOffe = (_i - _root + 1);
Param = _branch.Param;
break;
case 3:
Offe = _root;
_str = new string(_chars, _root, _i - _root + 1);
var temp = _str;
if ((_root > 0) && (IsE(_chars[(_root - 1)])) && (IsE(_str[0])))
{
_str = Emptystring;
}
|
2 for widget DETECT12.0
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.248807] OOM killer enabled.
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.248809] Restarting tasks ...
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250681] sof-audio-pci 0000:00:1f.3: pcm: prepare stream 7 dir 1
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250684] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 7 dir 1
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250689] sof-audio-pci 0000:00:1f.3: generating page table for 000000006e668646 size 0x426c0 pages 67
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250709] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250727] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250730] sof-audio-pci 0000:00:1f.3: period_bytes:0x10980
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250731] sof-audio-pci 0000:00:1f.3: periods:4
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250746] sof-audio-pci 0000:00:1f.3: stream_tag 2
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.250758] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.253509] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.253539] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.253833] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
Jul 1 05:35:29 ubuntu-Tiger-Lake-Client-Platform kernel: [ 74.253835] sof-audio-pci 0000:00:1f.3: pcm: stream dir 1, pos |
The issue isn't necessarily that they've "lost" trades. The issue is that they have failed to give fair shots to a bunch of these guys, or failed to get the results out of them that other teams have gotten once they left St. Louis. Additionally, the Cardinals have not done a good job at constructing a roster around the pieces they've brought in via trade, and many of the guys traded for have not been as good as advertised (See: Paul Goldschmidt). Add that in with bust after bust on the free agent market, pointless extensions given to in-house players, keeping Matheny around way longer than was justifiable, one postseason appearance (in a full season) since 2015, and the organization having the gaul to tell fans that what they're seeing on the field isn't actually what's happening, and you can understand the frustration with Mo and the Front Office/Ownership.
You're 100% right - Voit was never going to play with Goldschmidt in the fold. But Goldschmidt was in Arizona when the Cardinals dealt Voit to the Yankees in 2018. All things being equal, I'd take a Voit for Gallegos deal all day, but remember that Gallegos was a throw-in in that trade. Chasen Shreve was supposed to be the big get. They lucked out that Gallegos developed into a top-flight reliever. Give them credit for making the deal, but it's telling that the guy they thought was going to be the big return wound up doing absolutely nothing.
Trading Randy Arozarena was frustrating because the Cardinals had a need for his services in 2019 (and 2020), had him on the roster in 2019, didn't use him, and then traded him away. The jury is still out on this trade. It all depends on what happens with Liberatore, and the outfield going forward. Oh, and Randy A has been better than Dylan Carlson this year, and it's not even close.
Nobody saw Adolis Garcia (or Patrick Wisdom) doing what he has done. They get a complete pass on this one, although, again, it is frustrating that the Cards couldn't bring that kind of performance out of him.
The Cardinals were in need of a big bat when they made the Ozuna trade. I had no problems with that move, just as I had no problem when they let him walk. (They wanted Yelich, but the Marlins were set on not trading him, or were until they changed their minds and sent him to Milwaukee a few months later.) There was no way of knowing Ozuna was going to be mediocre (and hurt) his two years in STL. This was a trade that made sense at the time, and just didn't work out. It was a loss, but a justified one.
Goldschmidt and Arenado are two deals that, on the surface, are fine. My problem is that they brought those guys in, and then did nothing to supplement the team around them. Goldy is in his 30s. Arenado is about to be 30. They're not getting any younger, and guys don't remain great as long as they used to without PED's. Goldschmidt has been literally half the player he was in Arizona while in St. Louis. Nobody in their right mind thought he'd still be a 5-6 WAR player here, but I don't think anybody thought he'd be under 3 WAR his first few seasons, either. Arenado is a great 3B, and way better than anything they had ready in-house, but he has not been as good as expected. Good, yes, but not elite. Both are signed to long-term deals that are probably not going to look so hot on the back end. The Cards gave up Carson Kelly, who is better than Knizner but blocked by Molina, to get Goldy, and Colorado dumped Arenado in their laps for next to nothing. I'd say both trades are Wins, but that neither one has had the kind of returns (to this point) that the club was expecting.
O'Neill for Marco Gonzalez is a win? I'd say it's a wash thus far. This is the first full year in Seattle that Gonzalez has been mediocre, and this is the first year in St. Louis, period, that O'Neill has been above average. Since the trade, Gonzalez has provided the Mariners with 7.8 WAR. O'Neill has given St. Louis 5.1 WAR, and had only 2.3 career WAR coming into this season. Going forward, who knows? Maybe O'Neill becomes a 3.5 - 5 WAR player, and Gonzalez regresses, and in five years, it looks like the Cardinals are the winners of this trade. I'm just not sold that this is what O'Neill will be for the rest of his career.
Pham gave Tampa |
"annus", // name
"anointing", // name
"ante", // name
"antlers", // standalone & placename
"apache", // name
"aphrodite", // name & placename
"apollo", // name & standalone & placenames (14)
"apostle", // name & placenames (11)
"appal", // name
"appel", // name
"appels", // name
"april", // name & placenames (10)
"aqua", // name & placenames (6)
"aquarium", // standalone & placenames (3)
"aqueduct", // standalone & placenames (11)
"arak", // name
"arbiter", // name
"arboretum", // standalone & placenames (11)
"arbour", // name & standalone & placenames (29)
"arcana", // name
"arch", // name & placenames (48)
"archangel", // name & placenames (6)
"archer", // name & placenames (28)
"archway", // standalone & placenames (15)
"archers", // standalone & placenames (28)
"areola", // name
"argon", // name & placenames (2)
"argot", // name
"argus", // name & placenames (10)
"arias", // name
"arid", // name
"armada", // name & placenames (9)
"armadillo", // name
"arnica", // name
"arrow", // standalone & placenames (42)
"aroma", // name
"aromal", // name
"arson", // name & placename
"artemisia", // name
"artful", // name
"arty", // name
"ash", // name & placenames (568)
"ashake", // name
"ashed", // name
"ashes", // standalone & placenames (64)
"ashen", // name & standalone & placenames (27)
"ashore", // name
"askew", // name & standalone & placenames (16)
"askings", // name
"asp", // name & placename
"aspen", // name & placenames (36)
"aspens", // standalone & placenames (3)
"assay", // name
"assegai", // name
"asteroid", // name
"astral", // name & placenames (8)
"astride", // name
"astro", // name & placename
"asunder", // name
"atlas", // name & placenames (18)
"atom", // name
"atrium", // standalone & placenames (3)
"au", // name & placename
"auger", // name & placename
"augur", // name & placenames (5)
"auld", // name & placenames (45)
"aural", // name
"auras", // name
"aurelia", // name & placenames (3)
"aurelian", // name
"aureole", // name & placename
"auric", // name
"aurora", // name & placenames (7)
"aus", // name
"austral", // name & placenames (6)
"auth", // name
"autumn", // name & placenames (24)
"avant", // name
"ave", // name & placenames (4)
"avian", // name & placenames (4)
"avid", // name
"aways", // name
"awed", // name
"awes", // name
"awol", // name
// B
"babe", // name & placename
"backwater", // standalone & placenames (2)
"backway", // standalone & placenames (6)
"badger", // name & standalone & placenames (64)
"badgers", // standalone & placenames (61)
"bah", // name
"balaclava", // standalone & placenames (7)
"bale", // name & standalone & placenames (14)
"balks", // standalone & placename
"ballard", // name & placenames (20)
"ballast |
1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S_1'Access, S_1'Access, S_1'Access,
S_1'Access, S |
{
"actions": [
{
"acted_at": "2017-04-27",
"action_code": "10000",
"references": [],
"text": "Introduced in Senate",
"type": "action"
},
{
"acted_at": "2017-04-27",
"action_code": "",
"committees": [
"SSFI"
],
"references": [
{
"reference": "CR S2620-2621",
"type": "text of measure as introduced"
}
],
"status": "REFERRED",
"text": "Read twice and referred to the Committee on Finance.",
"type": "referral"
}
],
"amendments": [],
"bill_id": "s983-115",
"bill_type": "s",
"by_request": false,
"committee_reports": [],
"committees": [
{
"activity": [
"referral"
],
"committee": "Senate Finance",
"committee_id": "SSFI"
}
],
"congress": "115",
"cosponsors": [
{
"bioguide_id": "D000622",
"district": null,
"name": "<NAME>",
"original_cosponsor": true,
"sponsored_at": "2017-04-27",
"state": "IL",
"title": "Sen",
"withdrawn_at": null
}
],
"enacted_as": null,
"history": {
"active": false,
"awaiting_signature": false,
"enacted": false,
"vetoed": false
},
"introduced_at": "2017-04-27",
"number": "983",
"official_title": "A bill to amend the Internal Revenue Code of 1986 to modify the work opportunity credit for certain youth employees, and to extend empowerment zones.",
"popular_title": null,
"related_bills": [
{
"bill_id": "hr2209-115",
"identified_by": "CRS",
"reason": "identical",
"type": "bill"
}
],
"short_title": "Helping to Encourage Real Opportunities (HERO) for At-Risk Youth Act",
"sponsor": {
"bioguide_id": "D000563",
"district": null,
"name": "<NAME>.",
"state": "IL",
"title": "Sen",
"type": "person"
},
"status": "REFERRED",
"status_at": "2017-04-27",
"subjects": [
"Adoption and foster care",
"Economic development",
"Education of the disadvantaged",
"Income tax credits",
"Taxation",
"Temporary and part-time employment",
"Unemployment",
"Wages and earnings",
"Youth employment and child labor"
],
"subjects_top_term": "Taxation",
"summary": {
"as": "Introduced in Senate",
"date": "2017-04-27T04:00:00Z",
"text": "Helping to Encourage Real Opportunities (HERO) for At-Risk Youth Act \n\nThis bill amends the Internal Revenue Code, with respect to the work opportunity tax credit, to:\n\n change the credit for summer youth employees to a credit for youth employees who will be employed for not more than 20 hours per week during any period between September 16 and April 30 in which the individual is regularly attending any secondary school, increase the amount of the credit for youth employees, and expand the credit to include at-risk youth. An \"at-risk youth\" is any individual who is certified by the designated local agency as:\n\n having attained age 16 but not age 25 on the hiring date, having not regularly attended specified schools or been employed during the six-month period preceding the hiring date, and not readily employable by reason of lacking a sufficient number of basic skills. The term also includes individuals who have been certified as having attained the age of 16 but not age 2 |
var projects = [],
conditions = {
noneLoaded: 0,
dependenciesLoadedParsedAndWaiting: 1,
treeLoadedAndWaiting: 2,
bothParsedNowGenerating: 3,
generated: 4,
descriptions: [
"Loading...",
"Loaded licenses file, waiting for tree",
"Loaded tree file, waiting for licenses",
"Both files parsed. Generating...",
"Ready"
]
};
function log(project, message){
projects[project].log.push(message);
console.log(project, message);
}
function newProject(project){
projects[project] = {dependencies: [], tree: {}, generated: "", log: []};
document.getElementById('projects').innerHTML += `<div class="project" id="${project}" onclick="showProject('${project}')">
<p class="project-name">${project}</p>
<p class="project-state"></p>
<table class="stats" border="1">
<tbody>
<tr><td class="project-dependencies"></td><td>Dependencies</td></tr>
<tr><td class="project-conflicts"></td><td>Conflicts</td></tr>
<tr><td class="project-warnings"></td><td>Warnings</td></tr>
<tr><td class="project-whitelisted"></td><td>Whitelisted</td></tr>
</tbody>
</table>
</div>`;
setCondition(project, conditions.noneLoaded);
}
function setCondition(project, condition){
projects[project].condition = condition;
document.getElementById(project).getElementsByClassName("project-state")[0].innerHTML = conditions.descriptions[projects[project].condition];
if (condition == conditions.generated){
document.getElementById(project).getElementsByClassName("project-dependencies")[0].innerHTML = projects[project].dependencies.length;
document.getElementById(project).getElementsByClassName("project-conflicts")[0].innerHTML = projects[project].tree.conflicts;
document.getElementById(project).getElementsByClassName("project-warnings")[0].innerHTML = projects[project].tree.warnings;
document.getElementById(project).getElementsByClassName("project-whitelisted")[0].innerHTML = projects[project].tree.whitelisted;
}
}
function createDependency(dependency) {
var generated = '<label class="dependency">\n';
if (dependency.children.length > 0) generated += '\t<input type="radio" name="tier' + dependency.index.length + '"/>\n';
generated += '\t<div class="item">\n\t\t<div class="icons">\n';
if (dependency.warnings > 0) generated += '\t\t\t<div class="warnings">' + dependency.warnings + '</div>\n';
if (dependency.conflicts > 0) generated += '\t\t\t<div class="conflicts">' + dependency.conflicts + '</div>\n';
generated += '\t</div>\n\t\t<div class="content ' + dependency.flag + '">\n';
generated += '\t\t\t<p>' + dependency.name + '</p>\n';
generated += '\t\t\t<a href="#" onclick="show([' + dependency.index + '])">More info...</a>\n';
generated += '\t\t</div>\n\t</div>\n';
if (dependency.children.length > 0) {
generated += '\t<div class="dependencies">\n';
for (var index = 0; index < dependency.children.length; index++)
generated += createDependency(dependency.children[index]);
generated += '\t</div>\n';
}
generated += '</label>\n';
return generated;
}
function whitelisted(info, GAV) {
for (var index = 0; index < whitelist.length; index++)
if ((new RegExp(whitelist[index])).test(info.license) || (new RegExp(whitelist[index])).test(info.GAV) || (new RegExp(whitelist[index])).test(info.name) || (new RegExp(whitelist[index])).test(GAV))
return true;
}
function blacklisted(info, GAV) {
for (var index = 0; index < blacklist.length; index++)
if ((new RegExp(blacklist[index])).test(info.license) || (new RegExp(blacklist[index])).test(info.GAV) || (new RegExp(blacklist[index])).test(info.name) || (new RegExp(blacklist[index])).test(GAV))
return true;
}
function processTree(project) {
var lines = projects[project]["tree.txt"].split('\n').filter(line => line.length > 0);
var indexes = [],
prevDepth = 0;
for (var lineIndex = 0; lineIndex < lines.length; lineIndex++) {
var depth = (/[^\w]*/.exec(lines[lineIndex])[0].length) / 3,
GAV = /[^:]* |
using Amazon.JSII.Runtime.Deputy;
#pragma warning disable CS0672,CS0809,CS1591
namespace aws
{
[JsiiClass(nativeType: typeof(aws.LambdaFunctionEventInvokeConfig), fullyQualifiedName: "aws.LambdaFunctionEventInvokeConfig", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"constructs.Construct\"}},{\"name\":\"id\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"config\",\"type\":{\"fqn\":\"aws.LambdaFunctionEventInvokeConfigConfig\"}}]")]
public class LambdaFunctionEventInvokeConfig : HashiCorp.Cdktf.TerraformResource
{
public LambdaFunctionEventInvokeConfig(Constructs.Construct scope, string id, aws.ILambdaFunctionEventInvokeConfigConfig config): base(new DeputyProps(new object?[]{scope, id, config}))
{
}
/// <summary>Used by jsii to construct an instance of this class from a Javascript-owned object reference</summary>
/// <param name="reference">The Javascript-owned object reference</param>
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
protected LambdaFunctionEventInvokeConfig(ByRefValue reference): base(reference)
{
}
/// <summary>Used by jsii to construct an instance of this class from DeputyProps</summary>
/// <param name="props">The deputy props</param>
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
protected LambdaFunctionEventInvokeConfig(DeputyProps props): base(props)
{
}
[JsiiMethod(name: "resetDestinationConfig")]
public virtual void ResetDestinationConfig()
{
InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{});
}
[JsiiMethod(name: "resetMaximumEventAgeInSeconds")]
public virtual void ResetMaximumEventAgeInSeconds()
{
InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{});
}
[JsiiMethod(name: "resetMaximumRetryAttempts")]
public virtual void ResetMaximumRetryAttempts()
{
InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{});
}
[JsiiMethod(name: "resetQualifier")]
public virtual void ResetQualifier()
{
InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{});
}
[JsiiMethod(name: "synthesizeAttributes", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}", isOverride: true)]
protected override System.Collections.Generic.IDictionary<string, object> SynthesizeAttributes()
{
return InvokeInstanceMethod<System.Collections.Generic.IDictionary<string, object>>(new System.Type[]{}, new object[]{})!;
}
[JsiiProperty(name: "functionNameInput", typeJson: "{\"primitive\":\"string\"}")]
public virtual string FunctionNameInput
{
get => GetInstanceProperty<string>()!;
}
[JsiiProperty(name: "id", typeJson: "{\"primitive\":\"string\"}")]
public virtual string Id
{
get => GetInstanceProperty<string>()!;
}
[JsiiOptional]
[JsiiProperty(name: "destinationConfigInput", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.LambdaFunctionEventInvokeConfigDestinationConfig\"},\"kind\":\"array\"}}", isOptional: true)]
public virtual aws.ILambdaFunctionEventInvokeConfigDestinationConfig[]? DestinationConfigInput
{
get => GetInstanceProperty<aws.ILambdaFunctionEventInvokeConfigDestinationConfig[]?>();
}
[JsiiOptional]
[JsiiProperty(name: "maximumEventAgeInSecondsInput", typeJson: "{\"primitive\":\"number\"}", isOptional: true)]
public virtual double? MaximumEventAgeInSecondsInput
{
get => GetInstanceProperty<double?>();
}
[JsiiOptional]
[JsiiProperty(name: "maximumRetryAttemptsInput", typeJson: "{\"primitive\":\"number\"}", isOptional: true)]
public virtual double? MaximumRetryAttemptsInput
{
get => GetInstanceProperty<double?>();
}
[JsiiOptional]
[JsiiProperty(name: "qualifierInput", typeJson: "{\"primitive\":\"string\"}", isOptional: true)]
public virtual string? QualifierInput
{
get => GetInstanceProperty<string?>();
}
[JsiiProperty(name: "destinationConfig", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.LambdaFunctionEventInvokeConfigDestinationConfig\"},\"kind\":\"array\"}}")]
public virtual aws.ILambdaFunctionEventInvokeConfigDestinationConfig[] DestinationConfig
{
get => GetInstanceProperty<aws.ILambdaFunctionEventInvokeConfigDestinationConfig[]>()!;
set => SetInstanceProperty(value);
}
[JsiiProperty(name: "functionName", typeJson: "{\"primitive\":\"string\"}")]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.