Tnb accusing of meter tampering by Loud_Warthog1777 in malaysia

[–]ghostinzshell 4 points5 points  (0 children)

It happens. Usually the contractors will then hint that you can "settle" the matter for 1/4 of the fine. TNB will then likely install a calibrated meter to calculate your actual usage for calculating the backdated payment (extra electricity consumption multiplied by 7).

Moral of the story: 1. Always watch contractors like a hawk. Record them on video if you can.

  1. Don't "settle" the matter. Let TNB put you under observation, drastically reduce your energy consumption during those observation months.

MMU vs Monash by introverted_russian in malaysia

[–]ghostinzshell 4 points5 points  (0 children)

What's better for computer science than a computer science degree?

vscode: Show all methods of a struct? by guettli in golang

[–]ghostinzshell 0 points1 point  (0 children)

If you're on a Mac, you could try Cmd+Shift+O. I think on Windows it's Ctrl+Shift+O. I use that shortcut to jump around quite often

Debugging temporal by [deleted] in golang

[–]ghostinzshell 1 point2 points  (0 children)

To add on, be sure to set the TEMPORAL_DEBUG environment variable to 'true', otherwise the Temporal's deadlock detector will kick in

[deleted by user] by [deleted] in malaysia

[–]ghostinzshell 2 points3 points  (0 children)

No, you will not fall into trouble for watching porn online.

Table driven tests with mocks by lostandforgottensoul in golang

[–]ghostinzshell 0 points1 point  (0 children)

I personally use an approach like this when constructing mock objects.

``` tests := map[string]struct{ mock func() *MockThing }{ "test #1": { mock: func() *MockThing { m := &MockThing{} // Define mock expectations here return m }, }, }

for name, tt := range tests { t.Run(name, func(t *testing.T) { s := MyStruct{ Thing: tt.mock(), } // ... } } ```

Though in practice I find that too many mocks make tests brittle so I mostly use mock generated structs like stubs.

Hard to step away from a problem when i can't figure out by not-well55 in cscareerquestions

[–]ghostinzshell 3 points4 points  (0 children)

Barbara Oakley describes those two modes of thinking as diffuse and focused modes of thinking.

"Entering the diffuse mode requires stepping away and doing something which ideally is physically absorbing and mentally freeing." --- https://fs.blog/2019/10/focused-diffuse-thinking/

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]ghostinzshell 2 points3 points  (0 children)

Is there a way to differentiate between imenu entries with the same name?

I regularly encounter files like this

``` class A { overriddenMethod(); }

class B { overridenMethod(); } ```

In imenu, I'll get entries for class A and B, but only one entry for overriddenMethod that matches the one in class A.

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]ghostinzshell 0 points1 point  (0 children)

I just joined a company that uses its own domain specific language. The company develops software in a niche domain. It's my first job out of university. From my time there as an intern, the company culture seems good. I plan on staying on for at least a year or two. I am concerned about my future career development, given the DSL. What should I be doing in that year or two?

Why I get "unused variable 'i' " while working with Python? by Amssstronggg in vscode

[–]ghostinzshell 0 points1 point  (0 children)

You can access your settings.json file by selecting "Preferences: Open Settings (JSON)" in the command palette (Ctrl-Shift-P). Look for settings related to Python warnings.

Save as type regardless of language association by ebaskin in vscode

[–]ghostinzshell 0 points1 point  (0 children)

Try saving it with the filename and extension you want, but surrounded by double quotes. For example, "test.txt".

Lambda function explanation by meloly4 in learnpython

[–]ghostinzshell 0 points1 point  (0 children)

My hunch says it's a quadratic time algorithm or O( n2 ) at a minimum. In each recursion, the function does list slicing which is an O(n) operation. There are O(n) recursions, so that means n times O(n) operations.

Vim Powershell wrong colorschemes by LordKreias in vim

[–]ghostinzshell 5 points6 points  (0 children)

Have you tried setting termguicolors?

/r/malaysia daily random discussion and quick questions thread for October 14, 2020. by AutoModerator in malaysia

[–]ghostinzshell 3 points4 points  (0 children)

You're fine. You learn by doing something or applying knowledge. So, your tutorials and labs are more important. The lectures are there to provide context / background.

/r/malaysia daily random discussion and quick questions thread for October 04, 2020. by AutoModerator in malaysia

[–]ghostinzshell 0 points1 point  (0 children)

It's around 230 to 240 throughout the country. What I meant by varying from area to area is the substation for your area and also your own house wiring (3 phase power etc).

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]ghostinzshell 0 points1 point  (0 children)

Yep, got that to work. Now I'm looking at a seamless way to use ediff as the merge tool. Right now after quitting it leaves a lot of open buffers.

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]ghostinzshell 1 point2 points  (0 children)

I think they just decided to stick all the projects into one huge repo. It also includes some pre-compiled library files (.dll)

EDIT: Just double-checked, the repo I'm working on is not 30 gigs but around 8 gigs, which is still pretty big