This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dataSource = “.\SQLEXPRESS” | |
$user = “user” | |
$pwd = “1234″ | |
$database = “Test” | |
$connectionString = “Server=$dataSource;uid=$user; pwd=$pwd;Database=$database;Integrated Security=False;” | |
$query = “SELECT * FROM Person” | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void SetCanvas(UIElement image, Point point, bool allowkill) | |
{ | |
Dispatcher.BeginInvoke( | |
new Action( | |
delegate | |
{ | |
Canvas.SetTop(image, point.Y - (finger.ActualHeight/2)); | |
Canvas.SetLeft(image, point.X - (finger.ActualWidth/2)); | |
if (allowkill) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> combase.dll!RoFailFastWithErrorContextInternal(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V1 * * aStowedExceptionPointers) Line 955 C++ | |
Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ReportUnhandledError(HRESULT hrError) Line 586 C++ | |
Windows.UI.Xaml.dll!CTypefaceCollection::AddRef(void) C++ | |
Windows.UI.Xaml.dll!AgCoreCallbacks::FireEvent(CDependencyObject * pListener, unsigned int eventId, CDependencyObject * pSender, CDependencyObject * pArgs, int argsTypeIndex, int actualArgsTypeIndex, unsigned int flags) C++ | |
Windows.UI.Xaml.dll!CCoreServices::CLR_FireEvent(IDependencyObject * pListener, CDependencyProperty * pEvent, IDependencyObject * pSender, IDependencyObject * pArgs, unsigned int flags) Line 4738 C++ | |
Windows.UI.Xaml.dll!CommonBrowserHost::CLR_FireEvent(IDependencyObject * pListener, CDependencyProperty * pEvent, IDependencyObject * pSender, IDependencyObject * pArgs, unsigned int flags) Line 861 C++ | |
Windows.UI.Xaml.dll!CControlBase::ScriptCallback(void * pC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Its minor part of a feature, but I’ve been obsessing about the best way to solve this for a while. | |
To the point where I’m starting to wonder if I’ll ever get this done. It’s not a big problem, not life or death. Might be the tiniest little performance effect (I’m debating with myself the best way to handle references and communication between two viewmodels, and whether or not to use a strong or a weak reference, eager or lazy loading of objects, and whether or not to cache), and of course architectural effect. | |
I certainly don’t want to mess things up and add a tiny clog, but honestly I’m probably more worried about checking in code that isn’t fantastic as I want to show that I can do a good job. I’ve coded up 5 ways to solve achieve the desired result, and I’ve had two code reviews and three discussions with in total five developers. | |
At what point do I move on? And how do you know when to move and just pick something? | |
I feel like I’m analyzing this thing to death. | |
Would love some advice on this :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<phone:PhoneApplicationPage x:Class="Temp2SL.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | |
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
SupportedOrientations="Portrait" | |
Orientation="Portrait" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context: Questions asked to verify how proficient I was in JavaScript | |
What was added in ecmascript 5? | |
My reply: | |
I cannot remember exactly what was added or when, and probaly would struggle answering for older versions for other languages or platforms as well. I can however share a few things about ecmascript 6 as I'm keeping an eye on that. | |
No follow up question |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x,z,y | |
-0.512959122657776,-0.765274167060852,0.0158241484314203 | |
-0.541565537452698,-0.845370471477509,0.0565546043217182 | |
-0.542794704437256,-0.833370923995972,0.0641243681311607 | |
-0.568359196186066,-0.805352687835693,0.109916366636753 | |
-0.504087030887604,-0.656051754951477,0.081193283200264 | |
-0.456098020076752,-0.58470618724823,0.165669649839401 | |
-0.535461485385895,-0.460652321577072,0.26782488822937 | |
-0.63933140039444,-0.472751468420029,0.45855176448822 | |
-0.722131967544556,-0.434757977724075,0.711878180503845 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"MainMuscles": | |
[ | |
{"Id": "8ee5a29d-b676-41d1-8513-c06c5990e120", "Name": "Chest"}, | |
{"Id": "b73d4d5d-f8f1-4a1b-a080-3648d7e56e8e", "Name": "Legs"}, | |
{"Id": "a973fe1a-bf2a-46d0-899e-1b2d9a2b777f", "Name": "Back"}, | |
{"Id": "0c52f10e-4c01-46e2-9bf7-96de16b69e15", "Name": "Shoulders"}, | |
{"Id": "0f51832b-8f03-49b8-b18e-abbad5ecfee9", "Name": "Biceps"}, | |
{"Id": "a8a8b5e2-b8d5-4d7b-acee-362042416bfe", "Name": "Triceps"}, | |
{"Id": "9950ccff-4109-423f-a7d0-e9574e7ece6f", "Name": "Abs"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"LiftId": "e98b5a99-05ac-44a4-834f-506f1f9aa6cd", | |
"MainMuscleId": "8ee5a29d-b676-41d1-8513-c06c5990e120", | |
"Reps": 14, | |
"Weight": 89, | |
"EntryDateTime": "2024-09-15T10:31:20.912390" | |
}, | |
{ | |
"LiftId": "44caabd9-b1ef-4827-85d2-472a8c4c3097", |