Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Restore mocked variables in GoLang unit test

One of the guarding principles of writing unit test is that there should be no real external calls for dependant services. Unit test should run by its own and can run without issues on any environment including local, build, test environment. This indicates there should be some mock responses whenever an external call is needed so that different unit test scenarios can be covered.How can this be done in GoLang? In GoLang, anything can be assigned to a variable even including functions. A variable can be created to reference a function and it can be called just like a normal function when neede...

6,381 0       UNIT TEST GOLANG MOCK FUNCTION RESTORE MOCK


  What to Know About Windows 11

Windows 11 launched in October, with Microsoft bringing some changes to the operating system. It was the first name change in six years, and the rollout began on October 5. The rollout is being phased on eligible devices. You can download it if you don’t want to wait for it to be your device’s turn. Some businesses are opting to defer upgrades to Windows 11, as are some individuals. Others are excited to take advantage.The following are some things to know about implementing changes to the operating system. What is Windows 11?The operating system was officially unvei...

1,158 0       WINDOWS 11 MICROSOFT


  Currency list with symbols

For those who want to find out a currency code, name, symbol, numeric code and decimal numbers, below is a simple JSON structure for easy use.[{ "code": "AED", "numeric": "784", "name": "UAE Dirham", "symbol": "د.إ", "decimal": 2 }, { "code": "AFN", "numeric": "971", "name": "Afghani", "symbol": "؋", "decimal": 2 }, { "code": "ALL", "numeric": "008", "name": "Lek", "symbol": "L", "decimal": 2 }, { "code": "AMD", "numeric": "051", "name": "Armenian Dram", "symbol": "դր.", "decimal": 2 }, { "code": "ANG", "numeric": "532", "name": "Netherlands Antillean Gu...

1,165 0       REFERENCE JSON CURRENCY SYMBOL NUMERIC CODE


  combining dwarf failed: unknown load command 0x80000034 solution in GoLang

In case there is below error encountered while running some go program:combining dwarf failed: unknown load command 0x80000034This may be due to that you are running go 1.16 on a Mac M! machine. If you go to check go version, it may tell you that you are running an arm version of go.go version go1.16.10 darwin/arm64In such cases, you can try below methods to workaround the issue.Try to upgrade the go version to 1.17 and run the code again. If this is not an option for you because you have to stick to go 1.16 for some reason, you may try to install an amd version of go 1.16. This should work pe...

8,191 1       GO 1.16 0X80000034


  A Brief Guide to Voice Navigation and the Future of UX Design

Voice devices are now everywhere, whether you like them or not. Amazon's Alexa, Google's Assistant, and Apple's Siri have proved that voice interactions are not from science fiction films but part of our new reality.Just as touch screens, voice interaction with devices will completely revolutionize how we interact with our computers, smartphones, and watches (and even cars and houses) in the coming years. But you might ask yourself, why is it evolving at such a fast speed? Well, there are many reasons.Artificial intelligence is fast advancing, allowing machines to understand a wider variety of...

3,756 0       UX DESIGN


  What’s Custom Software Development in 2021?

Each year, custom software development shows us its new angles — those shaped by the technology trends and changes in customer behavior and preferences. Considering the highly impactful nature of 2020 with the outbreak of COVID-19, 2021 custom software development was formed around the technologies that have contributed to the minimization of the pandemic’s harmful impact. So what are these technologies?In this article, you will find out info about the top trends in software development that are on the rise right now — all provided with explanations of their value given by Em...

920 0       CLOUD SOFTWARE DEVELOPMENT


  Does My Online Business Need Log Aggregation?

Logs crop up all over the place. They are generated by everything from web servers and databases to the firewalls which protect them from breaches.Because logs accumulate in large volumes from all of these different sources, log aggregation is an important process which works to organize and impose order over otherwise disparate log files.That sounds good, but should your online business be eager to jump on the log aggregation bandwagon? Here is a look at the main benefits and considerations to help you decide.Image Source: PixabayThe importance of log aggregationAs mentioned, a laundry list o...

2,679 0       SOFTWARE DESIGN LOG AGGREGATION


  Go Error Best Practice

Being indulged in Go for quite a while and having implemented web-related programs, grpc interfaces and Operators, I seem to be an advanced beginner now.However, I am still a raw hand in production-environmental debugging, which is cumbersome if done by querying logs or error messages. Imagine the scenario that a full-text search is called when the specific location of the error log is missing. Then what happens when those error logs are not only in one place? Yes, my error logs can no longer help me locate the errors quickly and accurately.Apparently, the lack of the try {…} catch...

2,278 0       GO ERROR ERROR HANDLING