SEARCH KEYWORD -- TECH BLOG
Why cannot compare double values directly for equality?
A question in PHP: Get some value from the database and use floatval() to convert it to floatint point value, then compare it with another value which is also converted to floating point value with floatval(). These two values are the same when using var_dump() to output, the two outputs are float(8.87), they are the same. But when comparing them for equality, the result is weird., they are not equal. Why?To analyze this question, we need to start with PHP data types. PHP uses weak types. In PHP...
PHP,floating, precision,compare,equality 2012-06-27 09:01:36
The Reality
Everyone loves to talk about benchmarks. AMD’s Andy Parma recently wrote a blog that covers the top performance scores for the AMD Opteronâ„¢ 6200 Series processors. As marketing professionals, of course that’s what we talk about. What’s important to look at is the reality as well – what customers are actually purchasing. When you drive past car dealership, you’ll always see the fancy red sports car prominently displayed. It draws people in â€...
AMD,Intel,Comparison,AMD vs Intel processor,artitecture 2011-11-15 08:33:58
What Separates Good Designers from Great Ones
Most of the design books you read, including my own, are about how to be a good, competent designer. They are about how to make strong, reasoned design decisions and about design methods and tools. But what they won’t—can’t—teach you is how to become a great designer. The only way to be a great designer is to produce great products. Everything else is…well, everything else. I’m convinced that the people who are great designers, while assure...
Designer,Feature,Great designer,Good designer,Comparison 2011-12-06 02:25:17
JavaScript: It's a Language, Not a Community
There's nothing like jsconf for bringing out the meta! Since the conference ended two blog posts have created a lot of buzz, at least within my own twitter bubble. First, Rebecca Murphey's JavaScript: It's a Language, Not a Religion. I take Rebecca's post as a cautionary tale about the dangers of hero-worship and the tendency to assume that the people we respect in one sphere share our views in other spheres. I bring it up here not because I want to discuss the content of her post but b...
JavaScript,Language,Community 2012-04-07 10:37:40
Tips to Keep in Mind When Adding Devices to WiFi
When it comes to powerful tools, it is hard to beat the Internet. We can use it to access a huge variety of news, information, entertainment, products and more. When the Internet first became a thing, people pretty much had to be sitting at their computers to use it. But now, thanks to the advent of a wireless network known as WiFi, you can connect to the Internet through your smartphones, streaming devices, laptops and more from anywhere in the house. If you are in the market for some new tech...
Check if query string variable exists ASP.NET C#/VB
One of the problems I encountered when I started programming ASP.NET websites was to do with the Request.QueryString function. The first projects I was worked on were built with VB.NET and I used the following code to check the existence of a query string variable:VB.NET Codeview plaincopy to clipboardprint?If Request.QueryString("[VARIABLE]") <> Nothing Then 'CODE HERE End If This code check...
ASP.NET,Query string,Request,Empty,NULL,Check 2011-11-05 15:29:50
Learning Is More Important Than Knowing
Although DuckDuckGo's success is based more on ideology than technology, you'd have to be a pretty arrogant technologist to not appreciate and be impressed with what this small team (for a long time, 1 person) has accomplished. And while DuckDuckGo teaches us a number of valuable lessons (about business, and privacy), to me, the most important, is that good programmers should be measured by what they can learn, not what they already know. Gabriel Weinberg, DuckDuckGo's creator, has been wo...
Learning,Knowing,Google,DuckDuckGo 2012-04-18 07:17:53
Is Shared Hosting Secure?
Shared hosting is incredibly popular with users who are looking for the cheapest hosting available – the problem is that along with the low price you get poor performance and even more concerning – questionable security. When running on a shared host dozens if not hundreds of other sites are running on the same servers – this means any single security flaw in any of those applications can compromise the entire server. This dramatically increases the odds of your ...
Shared hosting,Virtual host,Security,Data security 2012-02-14 10:48:59
A tutorial on Github Actions
Github Actions is a CI/CD service created by Github. It aims to make it easy to automate all software workflows, now with world-class CI/CD. Build, test, and deploy code right from GitHub. It was launched in October 2018 and was officially available to all users in November 2019. This post will give an introduction of Github Actions and explain how it works. What is Github Actions Normally Continuous Integration includes some steps, fetching code, running test, sshing into remote server in...
GITHUB,GITHUB ACTIONS,CI,CD 2019-12-23 05:33:39
A brief guide to tech internships
Planning to be an Intern in the Bay Area during Summer 2012? Make sure to read an Intern's Guide to the Bay Area, and join the 2012 Facebook group. (via this guy, via this guy) Joel Spolsky, from the Joel On Software blog and StackOverflow, wrote an article with Advice for Computer Science College Students back in '05. According to Joel, No matter what you do, get a good summer internship. As such: here’s everything you ever wanted to know about tech inter...
Internship,Advice,CS student 2012-02-01 04:48:31
RECENT
- EtsiosApp Release Date: All You Need to Know
- SIEM Big Data Visualization [03]:Graph-Based SIEM Log Analysis Dashboard
- How AI is Changing Web Development: A New Era of Digital Innovation
- SIEM Big Data Visualization [02]: National Cyber Threats Dashboard
- Exploring the Impact of a Loan Origination System on Financial Institutions
- Power Grid OT Simulation System
- Why is Golang's Compilation Speed So Fast?
- SIEM Big Data Visualization : Dashboard for Monitoring Scam Events in Critical Infrastructure
- Introduction to the Application of eBPF in Golang
- Flows.network: Writing an LLM Application in Rust
- more>>