Tips to repair Sense screen detached

Sense screen detached as many user experienced.

The key point of repair by youself is find the right glue.

as a display engineer, I aware of the most suitable fix method is TPU adhesive bonding, but it’s not easy to find heating tpu dispenser equipment, so I just want find the easy way to bond the screen.

The answer is A130 structure adhesive,  you  can find it in google, you can get one for 2 dollar.

The glue  come with a needle, so you can easily apply to you frame of watch body. please make sure use a plasitic clip to apply force to body&screen for at least 3 hrs, now your screen secured!

Firstly I completely remove the residue of glue  both on screen and frame.

secondly I use fine cotton swap (with small tip) wet by 99% alcohol to clean both surface of frame and screen

After 2 weeks I glued my watch face, today my sense detached it’s wristband on its own,  the sense fall to the floor, it’s amazing the screen is still secured, that proves the fix for screen detached is successful!

Now we have to deal the second detaching problem, the wristband came off.

I carefully look into the structure of connection, find the root cause for wristband came off is due to the snap fit clearance is a bit large! so you can easly fixed it by stick a piece of paper with  a self-adhesive on the connection area, just like below photo. that’s it!

Continue reading on Fitbit community

Resources

https://www.joesge.com/blogs/fitbit-repair-guides/ho

Unordered list without bullets

You can remove bullets by setting the list-style-type to none on the CSS for the parent element (typically a <ul>), for example:

ul {
  list-style-type: none;
}

You might also want to add padding: 0 and margin: 0 to that if you want to remove indentation as well.

See Listutorial for a great walkthrough of list formatting techniques.

For more info, continue reading on Stack Overflow

For more info on CSS box model, continue reading on W3 schools

Difference between an array and an object in JavaScript

What’s the difference between “{}” and “[]” while declaring a JavaScript array? Normally I declare like

var a = [];

What is the meaning of declaring the array as var a = {}

Some of the meaning and explanation between [] and {} are;

var a = {}; is an object-key-value pairs. var a = []; is an array-values stored in sequential indexes. We are not creating array when we are using {}, we are creating object

For more info, continue reading on Stack Overflow

Dapper Transaction

Dapper provides different ways to work with transactions. The most common way is to use the BeginTransaction method available on the IDbConnection interface. That will return an instance of IDbTransaction, which you can use with Execute and Query methods to add, remove and modify data in your database tables.

// Open the connection and start a transaction: 
using (var connection = new SqlConnection(connectionString))
{ 
    connection.Open();
	
    using (var tran = connection.BeginTransaction()) 
    { 
        // Execute your queries here
		
        tran.Commit(); //Or rollback 
    }
}

You can also use the TransactionScope class, which provides a much simpler way to deal with transactions:

// Open the connection and start a transaction: 
using (var scope = new TransactionScope()) 
{ 
    // Execute your queries here
	
    scope.Complete(); //Or it will automatically rollback 
}

While using Dapper transaction, i have started getting this error;

"A TransactionScope must be disposed on the same thread that it was created."

Looking around, I figured this out;

In .NET Framework 4.5.1, there is a set of new constructors for TransactionScope that take a TransactionScopeAsyncFlowOption parameter.

According to the MSDN, it enables transaction flow across thread continuations. Here is an example;

using (var tx = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
{
    await SomeMethodInTheCallStackAsync()
        .ConfigureAwait(false);

    tx.Complete();
}

For complete detail, read this article.

Reference

https://www.learndapper.com/misc/transaction