Posts

Image
Maximum Recursion Limit In Python Today, while working on a project at   Insopha , we were parsing some HTML code using   BeautifulSoup   for screen scraping purposes when we faced a   maximum recursion depth exceeded   runtime error. At first we thought it was caused by some bug in the BeautifulSoup library, but then we realized that the Python interpreter was detecting a recursion problem because of the sequence of callbacks called in the BeautifulSoup SGML parser triggered by the HTML structure which contained a lot of nested tags. But it wasn't really an infinite recursion (just too many recursions) so it wasn't actually a BeautifulSoup bug. Python comes with a default value of 1000 for maximum recursion limit but it can be changed through   sys.setrecursionlimit() So the question is: how much is safe to raise that value?. Well, Python also comes with a   script   to test that. Running that script (in Python 2.5) on several OS and architectures we got the f
Image
Is coding same as writing scripts? Did you solve the problem before you wrote the first line? The term coding has become greatly adulterated by AGILE shops and processes. In true Software Engineering you solve the problem before you write the first line of code. The process of “coding,” be it a compiled or scripted language, is little more than translating the solution into the language and tools assigned to the project. In the AGILE world you are just hacking on the fly. It’s the cooking equivalent of throwing spaghetti noodles at the wall to see if one sticks. You have no idea what “the problem” is. All you have is this tiny user story selected for a sprint. The user story may have absolutely nothing to do with “the problem.” It got added to the slop bucket of user stories and either got selected for a sprint or chosen by a developer fishing in the backlog. The difference is you have done root cause analysis. You aren’t running around trying to
Image
                                                Practice always makes perfect                                                 “My ‘Research Phase’ lasted an entire year! I read about coding a lot, mostly JavaScript. Without actually getting any coding done. I found that by coding for an hour a day I learned more in weeks than I had in an entire year. Now I’m wishing I would have been writing code this entire time vs. just reading about it. Better now than never though, I love it and I aspire to be a computer programmer at any cost.” – @rico0420002. The fact is: you can’t learn to code by reading about it. The only way to learn is by actually coding. Don’t worry about learning the wrong thing. Any language that you pick will at least help you learn the concepts central to programming. Skills like naming variables, defining functions and breaking down complex problems apply to all programming languages. So it’s not a big deal where you start. Once you master one la
Image
7 Common Programming Mistakes That Every Beginner Must Avoid Programming…  Where counting starts from 0 not 1. If you are not in programming and you will be pointing this a mistake made by a programmer then be ready to see a sarcastic angry young man look of a programmer throwing a paper or stone at yourself. Programming is one of the funniest (We have already given example), hardest (If you don’t enjoy coding) and easiest (If you love to play with code) thing to do in the world. A semicolon, a bracket, a loop and a lot of small and big things matter a lot in coding and you might have definitely experienced your silly mistakes especially in the initial phase-in programming. Mistakes are part of coding and every programmer makes tonnes of mistakes especially as a beginner but that’s how they grow and become a good developer. We are going to discuss some most common mistakes that programmers make during the initial phase of coding but these are not limited. It’s good to
Image
Self taught programmer? Why do self-taught programmers seem to do better than those with a computer science degree? David Crest · May 1 MS  Software Engineering  &  Information Technology ,  Harvard University  (2011) Created the first tic tac toe in C during my primary schooling. There is a reason why i graduated as a software engineer. I have been practicing it for such a long time😉. Personally, have huge respect for self-taught programmers even though your data seems anecdotal. I agree to the fact that, there are some vagabond programmers who are better than one with a computer science degree. That percentage is too low. Anyone with an average intelligence can learn programming. Doesn’t matter if you are self taught or a professional. Here are some pointers or nuances that runs common among all the programmers . What you do with your time matters. Your problem solving skills makes a difference. Your passion & obsession counts.
Image
How to hide your DNS What is a DNS server and why should you hide DNS? DNS (Domain Name System) is a system for retrieving information about a domain. It is often intended for determining (retrieving) the IP address of some resource by its name. DNS transforms the site name that you type (for example google.com) into an IP address that allows the browser to open the page you need. In fact, the site loads the IP address, not the name (URL) of the site which exists only for users’ convenience. It is much more convenient to type “google.com” than “74.125.136.100.” DNS is the mechanism that transforms a human-readable URL into a machine-readable IP. Many users commit a widespread mistake when they specify their DNS server address in the network settings along with their IP. The computer first addresses the DNS server and only then the site itself. A user can make a mistake by leaving his or her ISP DNS in his settings. If a cyber criminal is able to know the IP, he may e
Image
                                                                        "Exploring the web to Where newbies cant reach" What is the difference between the  deep  web and the  dark  web? Anthony Bartoletti , Senior Cybersecurity Analyst at Lawrence Livermore National Laboratory (1990-present) Answered Jul 29, 2018 Originally Answered:  What is the difference between the  dark  web and the  deep  web? Technically, “ DEEP ” and “ DARK ” are independent concepts in terms of the Internet. A site can be neither, it can be “only  deep ”, or “only  dark ”, or both. Begin by considering the non- deep , non- dark  web as the “Open Web”. An open web site allows anyone to connect and view content, including search engines. Hence, you can find them or their content with a search engine, and you can connect to freely peruse their pages. This makes them “non- deep ”. If someone is monitoring network traffic, they can s