1);
                        $month2 = date('m', $ts2);
                        
                        $day1 = date('d', $ts1);
                        $day2 = date('d', $ts2);

                        if($day2 - $day1 > 0){
                            $diff = (($year2 - $year1) * 12) + ($month2 - $month1);
                            if($diff == 0 || $diff == 1 || $diff == 2 || $diff == 3){
                                $diff = $diff + 1;
                            }
                        }

                        if($day2 - $day1 <= 0){
                            $diff = (($year2 - $year1) * 12) + ($month2 - $month1);
                            if($diff == 1 || $diff == 2 || $diff == 3 || $diff == 4){
                                $diff = $diff;
                            }
                        }

                        $t->stt_denda = $diff;

                        if($t->sel_airbersih > 0){
                            $t->den_airbersih = $diff * $airbersih->trf_denda;
                            $t->ttl_airbersih =  $t->sub_airbersih - $t->dis_airbersih + $t->den_airbersih;
                            $t->sel_airbersih = $t->ttl_airbersih - $t->rea_airbersih;
                        }

                        if($t->sel_listrik > 0){
                            if($t->daya_listrik <= 4400){
                                $t->den_listrik = $diff * $listrik->trf_denda;
                                $t->ttl_listrik =  $t->sub_listrik - $t->dis_listrik + $t->den_listrik;
                                $t->sel_listrik = $t->ttl_listrik - $t->rea_listrik;
                            }
                            else if($t->daya_listrik > 4400){
                                $t->den_listrik = $diff * (($listrik->trf_denda_lebih / 100) * $t->ttl_listrik);
                                $t->ttl_listrik =  $t->sub_listrik - $t->dis_listrik + $t->den_listrik;
                                $t->sel_listrik = $t->ttl_listrik - $t->rea_listrik;
                            }
                        }

                        $t->save();
                        
                        Tagihan::totalTagihan($t->id);

                        if($t->stt_denda == 2){
                            $tempat = TempatUsaha::where('kd_kontrol',$t->kd_kontrol)->first();
                            if($tempat!= NULL){
                                $tempat->stt_bongkar = 0;
                                $tempat->save();
                            }
                        }

                        if($t->stt_denda == 3){
                            $tempat = TempatUsaha::where('kd_kontrol',$t->kd_kontrol)->first();
                            if($tempat!= NULL){
                                $tempat->stt_bongkar = 1;
                                $tempat->save();
                            }
                        }

                        if($t->stt_denda == 4){
                            $tempat = TempatUsaha::where('kd_kontrol',$t->kd_kontrol)->first();
                            if($tempat!= NULL){
                                $tempat->stt_bongkar = 1;
                                $tempat->save();
                            }
                        }
                    }
                }
            }
            \Log::info('Denda Fine');
        }
        catch(\Exception $e){
            \Log::info($e);
        }
    }
}
In metrology, a sensor is a sensitive device placed in contact with the physical quantity. It represents the compatible element and able to collect information from the physical quantity in the measurement environment. Each sensor is generally sensitive to several physical quantities, but its change of state is definitely more significant in relation to a specific quantity for which it has been realized, the others, unfortunately, produce undesired influence variations of the quantity to be measured.
A measurement chain can also use more than one sensor, thus generating a multisensory system. The sensors can interact with the measurement system either directly or as a stimulus. In the direct mode, the sensor is sensitive to an intrinsic physical quantity of the measurement system: for example, a thermocouple is temperature-sensitive. In stimulus mode, the sensor is sensitive to the response of the measurement system when a suitable source stimulates it.Aka : Heunggong dai 1 hung chak
Year : 1998
Runtime : 90 Minutes
Country : Hong Kong
Language : Cantonese
Genre : Horror
Director : To Lai-chi
Cast : Anthony Wong Chau-Sang, Gigi Lai Chi, Helena Law Lan, Spencer Lam Seung-Yi, Shirley Cheung Yuk-Shan, James Lee Shing-Chak
Plot/Synopsis:
Gigi and her husband Fai move in to an old mansion to join her mother and sister Fan. While moving in, they meet a feng shui professor called Tin Bo Chiu, who tells them that their mansion is located in an inauspicious spot, and is likely to attract ghosts. He also warns them to leave the house within seven days or they will encounter trouble. However, Gigi and Fai ignore him.
Before long, Gigi notices strange things happening. The phone rings frequently at night but nobody is on the line. Gigi’s mother is senile, but one night she appears normal and chats with Gigi before disappearing mysteriously later. Fai and Fan also start behaving abnormally. At one point, a businessman shows up and attempts to force Gigi to sell the land to him but Gigi refuses. The businessman then sends two thugs to burn down the mansion but the thugs are scared away by ghosts. The businessman is later mysteriously strangled to death, while his wife is sexually assaulted by an unseen force.
Gigi seeks help from her colleague, Uncle Ming, who suggests that Fai and Fan may be possessed by spirits. As Gigi’s mother used to be a ghostbuster, they attempt to summon her spirit back to help them. Gigi’s mother tells them the paranormal events are actually linked to the vengeful ghost of Gigi’s aborted daughter, who has been instigating other spirits to take revenge on her mother. Gigi’s mother teaches Gigi how to restore Fai and Fan back to their original states.
Recent CommentsEthically you should act in good faith and fulfil a contract you've agreed to.

If I hire an electrician to wire a new house on a 2 year project and sign a contract I expect him to fulfil the contract.

If Arsenal want to hire him 6 months into our contract to rewire Emirates - a much more prestigious job than doing my house - they can offer to buy out the remainder of his contract so I'll release him from our agreement.

If it's easy to get another guy in and he wants to go I might be nice and let him. But if it's a very complicated job and it's going to cause all sorts of problems for me to find someone new then I don't see why it's petty of me to ask him to fulfill his contract.

He signed the contract. He agreed to finish the job. He's getting paid for it. If anything it's unethical of him to ask me to release him from his contract if it's going to be hard for me to find his replacement. 

I might be nice and let him go if it's his dream job. Or I may let him go because the compensation offered is tempting and I can replace hime easily. But I still think if you sign a contract the moral and ethical obligation is on you to fulfil it.How the new Prime Minister’s first days will unfold for Liz Truss or Rishi Sunak, as grand plans meet reality
From issuing ‘last resort’ nuclear orders to deciding where to live, new PMs quickly face a multitude of big decisions
Staff at 10 Downing Street will be welcoming their fifth new Prime Minister in 15 years on Tuesday (Photo: Leon Neal/Getty Images)
Whatever else the UK’s new prime minister does after being applauded into No 10 on Tuesday, they will have already broken one age-old convention. The appointment of either Liz Truss or Rishi Sunak as the next PM in Balmoral rather than at Buckingham Palace, because of concerns about the Queen’s mobility, means their time in office will begin differently to every other leader since Herbert Asquith, who took the reins in 1908 at the French resort of Biarritz where King Edward VII was on holiday.
Apart from the unusual location and means of transport back to Downing Street, however, the rapid mechanisms of assuming power and forming a government will follow the same intense and fascinating process as ever.
There are also lessons from their predecessors to heed or ignore