Jump to content
xisto Community

k_nitin_r

Members
  • Content Count

    1,467
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by k_nitin_r

  1. I just wanted to add that using the same variable name helps in making more efficient use of allocated memory. It is not always possible to do so, and it makes the code harder to read if it is not accompanied with comments that explain the use of the variable. BTW, I have seen seasoned developers with well over a decade of experience naming their variables as query1, query2, query3 etc and that does little to help anyone else understand what those variables are supposed to relate to. Most IDEs today have a refactoring feature to rename variables wherever they appear within a given scope, so there's no reason to leave the variable names at their defaults.BTW, in the OP post, saving the shell is not the right term - it saves the script within the .py file. The Python script could just as easily have been written using Notepad or Eclipse. IDLE serves primarily as a learning tool to get people started on learning the Python syntax. Sure, people do continue to use it but the purpose is better served by other editors.I'm not quite sure of what the OP meant by restarting the shell - the script is where the code is stored and memory for the execution is allocated when the script is run. As soon as the script execution is complete, the memory is deallocated. The interactive shell is simply a means to try some code. It's a worksheet of sorts. When running in a command line, it is not uncommon for programs to clear the entire screen because sometimes it is useful to be able to see the output of the previously-run commands.
  2. My car has been doing weird stuff too. The sedan suddenly became self-aware and turned its headlamps and CD player on when I had the lights set to Auto. The battery then died, leading to a three-hour series of events to get the car running and fitting a new battery. These car batteries just aren't designed for deep cycles, so all it takes is one discharge and the battery needs to be tossed out. The SUV refuses to connect to my phone's audio and seems to have a mind of its own when it automatically shuts off all electronics if it thinks the battery might get discharged. Apart from that, I've never had a vehicle with proper working brakes that lasted more than a month - right now, my odometer still reads under 600km and the brakes haven't worked well since it clocked 500km.
  3. k_nitin_r

    More Laws

    There are laws in place to use an ultrasound device? Perhaps the licenses are to ensure that the consulting that is provided by the practitioners is accurate, rather than to serve as a safety measure for the use of the device. Having laws in place helps reduce the burden of the courts to some extent and this may be another way to avoid costs of the service going upwards from anticipating lawsuits. There's also the possibility that patients could act on the advice of the practitioners and put themselves in harm's way.It makes you wonder if there would be laws in place to control the use of WiFi access points considering that studies are still inconclusive about their effects on people. In the developing world, there aren't any restrictions on coal power plants and there are illegal generators being run to deal with the power shortage. WiFi is also uncommon so it's highly unlikely that there woul be laws for cell phone radio emissions, WiFi interference, or even chewing gum on the streets anytime soon.
  4. No, I don't live in the US. The US customer service centers have a whole lot more training than the people manning these customer care helpdesks. There is, however, a huge blackhole involved when shipping products back to the manufacturer for defects in the US. Sometimes the products are gone forever! I wonder if such incidents can be claimed through insurance for something as little as a phone.
  5. When somebody has no family or friends, it's like waking up from being cryogenically frozen. Like the experience that Philip Fry goes through in Futurama. There's always somebody connected to someone else in the world within eight degrees of separation. At least that was the theory, and I think it would be true if they narrowed it down to someone in the same nation - I'm sure the eight degrees of separation wouldn't hold true if we were to pick me and somebody from an aboriginal tribe.
  6. The whole Malaysian Airlines jet vanishing thing must be a cover for something big. Really big. From the looks of things, it seems to be the work of some organization that seeks to expose flaws in the systems that the governments have in place. For starters, there was the forged passport issue that came to light. Then, nations have gained awareness of which military satellites, apart from their own, have eyes within their territorial boundaries (and waters). Despite all the good that has come out of it, holding over two hundred people against their will and hijacking a plane would make the people involved terrorists... unless the people on the plane and the airlines had already made a deal with the group and it was all voluntary. You never really know what extent people would go to for money these days.
  7. I remember in Total Recall, the newer one from 2013, and not the classic one, the protagonist is in a futuristic car that has all kinds of safety measures in place. In the car chase, he just wants to turn off the safety so does stuff that the manufacturer would not approve of. Most modern cars have a switch that is difficult to reach if you want to disable the stability control, or ABS and EBD. If there is such a thing as too much technology, it's all these acronyms that they put into cars.
  8. Without a lot of math, you can get an approximate time that your download would take. Ignore the decimal places and do all your unit conversions with 10. For instance, if you have to download a 1MB (megabyte) file and you have a 1Mbps (megabit) connection, it would under roughly 10 seconds because of the difference in the units of measurement (think centimeters and millimeters) and a slight overhead because of the network protocols.A 700MB CD would therefore take under 7,000 seconds over a 1Mbps connection. For the conversion to minutes, take off 2 zeros and round off the number to the next half hour - 70 is over an hour but under an hour and a half so we round it off to 90 minutes.With more accurate Math, 700MB is 5600Mb (megabytes to megabits) and we divide that by 60 to get minutes for transfer over a 1Mbps connection, so it takes 93 minutes.This may be a best case when the time difference between the accurate and ballpark time is only 3 minutes. Depending on the numbers, the difference would be a bit more though it shouldn't matter unless you are setting your microwave timer.
  9. The way you describe atheists makes me picture an organized crime group, perhaps even biker gangs that collect protection payouts from local stores (remember the one that attacked a Cadillac?). Some people do believe in the goodness of human existence but don't want to state that there is a God (atheists with a belief in karma?). Some state that God is just a person like us and we can become God through meditation or some other practices (the 'Advaita' philosophy). As you've suggested, this is just another kind of religion - one that doesn't have a God.
  10. Laptop batteries last a lot longer than they used to. At the start of the millenium, the laptop batteries that I had would barely last till the warranty expired so they would send me a second battery and past that point I would be buying new batteries every year and a half. From sometime around 2005-2006, the batteries that they've been providing with the laptops have been running for about half a decade before going dead so I'm pretty sure that battery technologies aren't the same as they were in the past. Speaking of Windows 8, it's just a way for Microsoft to make additional licensing revenue. They built a really good way to build applications using HTML and Javascript, but then they locked out the developers by requiring them to pay an annual fee for listing the software in the app store or to pay for an enterprise license to use those applications through a private application repository (not really sideloading like we do with Android, but more like the private AppStore apps like Apple provides for enterprise deployment).
  11. I blame the increase in carbon dioxide on property development firms - they just don't plan for space to grow plants. Even if they were to get potted plants for the terrace, that would be a step forward. Hybrid cars and riding bicycles seems to be a way for the government to spend less on fuel subsidies and to avoid going sluuurp on our fuel sources. It's more about money and oil availability there and less about carbon dioxide. Plant more trees, get more plants, create new laws requiring property developers and owners to grow plants, require abandoned property to have some kind of vegetation (grass or weeds) or to allocate space for potted plants. Penalties for overgrown grass simply encourages people to pour a truck load of concrete over it.
  12. k_nitin_r

    Office

    SheepDog, You should consider using LibreOffice. I've been using it instead of Microsoft Office lately. I do buy Microsoft Windows by buying only laptops that have Windows pre-installed, but the prices they charge for Microsoft Office is more than what I was willing to pay when I got my last laptop (I was out-of-work at the time) - I got pretty decent hardware and most of my development tools were open source. Libre Office is available at: http://www.libreoffice.org/download/libreoffice-fresh/ Microsoft Office 365 is available with a subscription model too, if you prefer. You can pay an annual fee and they also provide you with space to store your documents and emails. There's also the one-time payment option that we've had with earlier releases of Microsoft Office.
  13. Laptops are really cheap these days. You can even find dirt cheap things that are on the border-line between laptops and PDAs but manage to do pretty much everything that average computer user would want to do. Plus, there are the outlet stores where they sell anything that has the box seal broken being sold as refurbished units - all they have is about a half hour of usage on them and there's a pretty significant price drop on those units. Unfortunately, the outlet stores only sell in the U.S. though.
  14. When you are out looking for a laptop, you can get a cheap one that has an Intel Core i3 4th generation processor and at least 4GB RAM. Every laptop has wireless Internet capability (WiFi) so you can go into coffee shops for Internet access too. The coffee shops typically have a web page shown to you as soon as you connect to their network and try to access the Internet (Eg. type Google.com, but instead of Google you get shown their website). You then have to enter a coupon number or accept their terms of service to be able to use the Internet and then it starts working. At home, the technician would set up a wireless router for you to use your existing connection and would 'pair' the router with your laptop by entering a password on both (the passwords are optional). To useyour laptop at someone else's home, you would 'pair' the laptop with their wireless router by entering their password. BTW, you ought to watch Person of Interest. They show you a good deal of what technology these days is like.
  15. Cut wood? Do you have a fire place? That would be really cool! I live in a place with an arid subtropical climate so there is hardly any provision for a fire place in any of the apartments and other houses here. If they did provide one, they would need to upgrade the chillers that they use for the air conditioning and I imagine the only use of the fire place would be to serve as an alternative to the barbecue. Some of the local residents with a lavish lifestyle have a barbecue somewhere close to the swimming pool so they can beat the heat and can fire up the barbecue for something to eat. I tried to get some plants indoor, but apparently only one was able to make it through all the years. Most usually last for anywhere between two weeks to four months. Despite being in a closed apartment (windows are always shut, door is usually closed and while it isn't airtight, there's a kind of a washer between the door and the door frame to keep the door firmly shut, one of the plants had an infestation with some tiny white insects. Perhaps they didn't fumigate the plants so the eggs of the insect came along in either the potted soil or on the branches. On the positive side, those white insects didn't spread and remained on the plant all the time so getting rid of the insects was not a bother. After the infested plant incident, I didn't get any more plants but the one I've had for about a decade continues to thrive while being watered only once a month.
  16. Apparently your husband has the German Shepherd to thank whenever you celebrate your anniversary :-) Dogs sometimes react to specific scents. It may have been the scent of another dog or a substance like tobacco-ash residue, and maybe even gun powder residue. If the thief or any of the miscreants had a gun, then that would explain it. In that case, the dog would probably even growl at James Bond, considering all of those gadgets that would have gun powder in them to create the force needed to operate them. There was a television series episode about a villain breeding a dog with the intent of using it for criminal purposes. The dog was trained to seek out a particular scent and attack individuals with that scent, so the villain would spray the victim with that scent and then let the dog loose. The criminal investigation would then reveal that the victim died from being mauled to death by a dog and there would be nothing pointing to any human intervention. However, when something occurs too often, it is human nature to think that the events are somehow connected - like all those natural disasters and the Mayan calendar ending. If anything did end, it was the misconception about the Mayan calendar. The protagonist also gets sprayed with the scent but being the hero and all, manages to fight the dog without even a scratch. A guess when the movie script writers decide to bestow the protagonist with special powers and lots of luck, nothing can stand in their way.
  17. You are right, we do need to get more activity here on the forum. I usually do not find much to reply to like I used to about a year ago. Right now, it seems like it is just the three of us here, apart from the spambots that keep dropping their spam into new threads and some old threads. I do keep reporting some of the spam in hopes that it would go away. Perhaps Invision Power Board does not have an option to hold messages for moderation based on factors such as the presence of a hyperlink or multiple hyperlinks in a message posted by a user with fewer than a certain number of posts on the forum. I set up a Christmas tree once and did not really have to look at the instructions (all the instructions said was to turn the dial on the music box to change the tunes, which was really obvious anyway). It was not a real tree but rather a synthetic one and was small enough to not get unmanageable. It looked really small when packed but as soon as the branches of the tree were unfolded, it looked almost like the real thing. After a bunch of decorations and plugging in the lights, it created a festive environment and we had some carol singers who came by after seeing the tree from the window.
  18. I think I might have some software that you could use. It's a project I thought would help pay some of my bills when I was an independent contractor and was looking for additional revenue streams. As you have noticed, most check writing software is designed to work with checks from specific banks because the software author never saw the checks of other banks. Drop me a PM and we can work something out. BTW, why do you want to have the checks printed rather than hand-written? Are mistakes in writing out checks common enough for you to need a check printing software? The selling points for most check printing software are the elimination of errors when writing checks, keeping track of the balances, and maintaining a history of issued checks. If the first two are something that you do not really need, you can use the first/last leaf of the check book, which contains a table for maintaining a history of issued checks.
  19. The ICT course is probably something that employers look for on a resume when hiring. Back in the earlier days of computing, it did not matter whether one had a college degree so I wonder where we went wrong. BTW, relational databases in particular have an interesting history. The idea of a relational database was formed by Dr. Edgar F. Codd who wrote in a journal by IBM about the System R4 Relational (I like to think of "R-4-Relational" as possibly SMS lingo for "R-for-Relational", though they didn't have such marketing gimmicky sayings and text messaging back then). This article was published in 1970 and it was not until 1977 that a firm named Software Development Laboratories (later renamed to Relational Software) build a product that came to be known as the Oracle database. You see, in the ICT courses, they fail to mention the more interesting parts of computing history. IBM decided to act on an article published in its own journal only in 1983 with the Query Management Facility, and, yes, it was for working with the IBM DB/2 database. Both Oracle and IBM DB/2 are still around today; Oracle is a leading database vendor and makes the most in licensing revenue among databases whereas IBM DB/2 is still offered by IBM.
  20. For editing photographs, most people use Adobe Photoshop. It's price is quite steep, but I think they have a free Adobe Photoshop Express edition which is very limited in its abilities but is enough for basic photo editing. For managing albums, I've seen Picasa, by Google, provides the ability to manage photographs into albums. Picasa also provides the basic photo editing that Adobe Photoshop Express edition has so you might want to take a look. Google eventually drops the desktop applications in favor of web based utilities. In the early days, high-speed Internet access was difficult to obtain and so pictures had to be scaled down to a size that can be easily transmitted over the Internet. However, now we can get access to high-speed Internet access from just about anywhere, unless you are in the country side of a third world nation. It is therefore possible to upload pictures at their full size and resolution to an image hosting provider and have the ability to edit and scale the images while the images reside on the servers of the image hosting provider. It also serves as a backup copy just in case you have a disk crash and do not have any other copies of the photographs.
  21. Microsoft's Internet Explorer may have security loopholes, but it offers greater abilities for applications to run. There has to be a trade-off between imposing fewer restrictions on software developers and shutting them out in the name of security. Microsoft decided to go with providing greater abilities to the software developers and they're managed to do it pretty well. At one point, Visual Basic 6 was the most popular development platform. There were applications that relied on cross domain scripting for providing functionality. However, their misuse has led to blocking the cross domain scripts. Browser cookies are not always a bad thing. Just like regular cookies that are delicious because of the bits of chocolate and raisins, they are sweet, but they can cause teeth to rot of proper dental hygiene isn't maintained. In the exact same way, browser cookies provide additional functionality for applications, such as to keep track of logged in users, but they can also lead to security issues if a malicious user gains access to browser cookies. However, the alternative is to send data back and forth, which is in itself a security risk, and sending the session identifier in the Uniform Resource Locator (URL) is worse because it remains in the browser history and that can be exploited in a variety of different ways from getting the browser history directly from the web browser, extracting it from the files where the browser history is stored, or capturing the uniform resource locator while in transit. I think the "on resume, display log-in screen" is the default for Microsoft Windows and the original equipment manufacturer copies of Windows that laptop manufacturers (or in this case, desktop manufacturers, which are almost always the same organizations) get is modified. These modifications often include the use of the manufacturer logo in the system properties dialog box. They also include all the drivers that are needed for Microsoft Windows to function on that hardware. At times, the manufacturer also includes the screen savers that advertise their brand and that's when they sometimes also remove the requirement of having to log in after the screen saver kicks in. You can, however, customize Windows to work as you want it to, by modifying the registry either through the Windows registry editor or through third-party tools that enable one to edit the registry without having to learn about where the settings reside and what they should be set to.
  22. In industries where there is complete privatization, the service providers are regulated as is the case with the oil and gas industry, power generation industry, and utilities. However, when providing healthcare in both government-operated and private organizations, there is less of a need to regulate the service providers. People who can afford to pay the higher bills and want to have a luxurious stay, which seems more like a hotel at some point than a hospital, at the in-patient wards of the hospital would choose the better private hospitals whereas those who cannot afford the bills would choose government-run hospitals, which people would prefer to avoid staying at as much as they can. At times, there are private hospitals that attempt to fill in the gap between the two, though these tend to be clinics rather than hospitals.
  23. 16GB of memory all used up! What do these people do with the server?

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.