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

 ALL


  Accessing Reddit top posts using OAuth

Previously one can use the https://www.reddit.com/r/rprogramming/top.json API to access one subreddit's top posts. This API doesn't require any access token to fetch the data. However, this API may not work all the time. Reddit may block the API's request if it finds that you are using a script or some app which accesses the API now and then. For an app or script which needs to fetch the data routinely, what should we do?Reddit provides one method which can be used to fetch this kind of top posts data(no need to involve user data) and it requires one to access it with OAuth. In this post,...

568 0       OAUTH REDDIT TOP POSTS HOT POSTS


  In-depth Exploration of Direct and Indirect Dependency Management in GoLang

The dependency management in Golang is handled using go mod. go mod is the official dependency management tool introduced by the Golang team. It assists developers in managing project dependencies to ensure the stability and maintainability of the project code. In go mod, dependencies are categorized into two types based on how packages are imported in the code: direct dependencies and indirect dependencies. Direct dependencies are explicitly referenced in the project code, while indirect dependencies are dependencies of the direct dependencies. Below we will provide detailed explanations of t...

1,237 0       GO MODULE DIRECT DEPENDENCY INDIRECT DEPENDENCY


  How Charts Using Logarithmic Scale Provide Insight Into Your Business

In the dynamic realm of business, understanding data is as important as acquiring it. Analytical tools like charts, graphs, and tables aid in data comprehension. Among these tools, the necessary prowess of charts using logarithmic scale often goes unnoticed. Keep reading to know how this instrument can become a game-changer in your business analysis.Understanding Logarithmic ScaleBefore throwing light on its applications, it's crucial to understand the concept of a logarithmic scale. Unlike linear scales, logarithmic scales aren't intuitive; they represent multiplicative, not additive differen...

566 0       LOGARITHMIC CHARTS BUSINESS SOLUTION


  Jack Ma speaks within the company's intranet post PDD earnings report

On November 28th, PinDuoDuo(PDD) released its financial report for the third quarter of 2023, ending on September 30th. The revenue for the third quarter was 688.4 billion RMB, showing a year-on-year growth of 93.9%. The net profit, according to the U.S. General Accounting Standards, reached 15.54 billion RMB, with a net profit margin of 22.6%. PDD attributed its overall positive performance to the accelerated recovery of the consumer market and the vigorous implementation of its "high-quality development" strategy throughout the year.With that, PDD's market value is almost the same as th...

446 0       ALIBABA JACK MA PDD


  Web Security: In-Depth Explanation of X-XSS-Protection

What is X-XSS-ProtectionX-XSS-Protection is an HTTP response header designed to enable or configure built-in cross-site scripting (XSS) filters in certain versions of Internet Explorer, Chrome, and Safari. The purpose of these filters is to detect reflected XSS attacks in the response and prevent the loading of pages, thereby protecting users from such attacks.The X-XSS-Protection response header was initially introduced by Microsoft in Internet Explorer 8 to control the browser's XSS filter. Subsequently, other browser vendors also implemented this functionality to some extent.Overview of XSS...

978 0       X-XSS-PROTECTION WEB SECURITY CONTENT SECURITY POLICY XSS CSP


  Ensuring Go Interface Implementation: A Quick Guide

IntroductionGo's simplicity and power shine in its interface system, offering a clean way to define contracts between types. However, when it comes to checking whether a struct satisfies an interface, Go's static typing philosophy means there isn't a direct runtime check. In this concise guide, we'll explore practical methods, including some lesser-known tricks, to verify whether a struct implements an interface.Method 1: Type Assertion and a Dummy Methodpackage mainimport "fmt"type MyInterface interface { MyMethod()}type MyStruct struct{}func (ms MyStruct) MyMethod() { fmt.Println("MyMe...

931 0       INTERFACE GOLANG IMPLEMENTS


  Alibaba founder Jack Ma sets up a new company

On November 24th, according to TianYanCha(A Chinese website to check company registration information), Hangzhou Majia Kitchen Food Co., Ltd. was established on November 22nd. The legal representative is PAU JASON JOHN, and the registered capital is 10 million RMB.The ownership information shows that the company is wholly owned by Hangzhou Dajingtou Er Shi Er Hao Cultural Art Co., Ltd., of which Alibaba founder Jack Ma holds a 99.9% stake.The business scope of this new company includes food sales (only pre-packaged food), import and export of goods, wholesale of edible agricultural products, w...

622 0       FOOD JACK MA ALIBABA


  new() and make() in GoLang

GoLang is a modern, statically typed, compiled programming language designed for building scalable, concurrent, and efficient software. It provides various built-in functions and features that help developers write concise and efficient code. Among them are the new() and make() functions, which may appear similar at first glance but serve different purposes in GoLang and are crucial for memory allocation and data initialization.In this blog article, we will explore the differences between the new() and make() functions, and understand when and how to use them effectively.new() and make()new() ...

1,133 0       MAKE GOLANG NEW