Questions tagged [loose]
8 questions
4
votes
3 answers
Fix Corrupted Loose Git Head in Windows
My computer shut down due to a kernal panic I lost my git repo on my virtual machine which is in Windows. When I go on .net I get the following error:
corrupted loose reference file: HEAD
I have in place a folder called .git that contains a list of…

lost9123193
- 10,460
- 26
- 73
- 113
4
votes
2 answers
dependency injection with akka.net
How does one build loose coupling to akka.net? Assume I have an MVC application that uses Akka.net and that I want to be able to test the controllers in the MVC app without using a real actor system. Kind of like when you want to test a business…

cfcal
- 161
- 6
2
votes
7 answers
Conceptual question: Loose Coupling
I am building a graphic board like project where i am facing a design issue.
Main Class is Board which is a canvas responsible for handling mouse events when drawing shapes. It also has context variables such as currentShape or snapFlag to activate…

coulix
- 3,328
- 6
- 55
- 81
2
votes
1 answer
Assembly Reference in Loose XAML
I have scenario where my loose xaml file can contain the custom control from another assembly. How do i make a reference to that assembly. My Loose XAML and assembly are at the same path.
I know the embedded xaml or xaml with in a project, the…

Amod
- 106
- 2
1
vote
1 answer
VB.NET: How to maintain main form control during loops in other sub?
I have a program with only one form.
By pressing a button it starts a ffmpeg conversion.
In the main form, in textboxes, ffmpeg stats are outputted. This is possible by taking StandardError output from ffmpeg.
Public Sub Console()
Dim…

Zed Machine
- 67
- 1
- 10
1
vote
2 answers
Making OR/M loosely coupled and abstracted away from other layers
In an n-tier architecture, the best place to put an object-relational mapping (OR/M) code is in the data access layer. For example, database queries and updates can be delegated to a tool like NHibernate.
Yet, I'd like to keep all references to…

Genuine
- 11
- 1
0
votes
0 answers
Why in PHP SWITCH with case 0 behaves such stupid?
I've heard that php switch uses loose comparison. But what is the logic behind this behavior:
$var = 'default';
switch ( $var ) {
case 1:
echo '1';
break;
case 2:
echo '2';
break;
case 0:
echo 'unexpected,…

Eugeny K
- 56
- 3
0
votes
1 answer
Babel v6 - transform-es2015-classes plugin in loose mode throws SyntaxError: Unexpected identifier for async/await
I've updated to latest babel v6. However I noticed that using transform-es2015-classes plugin with loose mode on (https://github.com/bkonkle/babel-preset-es2015-loose/blob/master/index.js#L8) breaks async/await functions. For example:
function…

Kosmetika
- 20,774
- 37
- 108
- 172