Showing posts with label questions. Show all posts
Showing posts with label questions. Show all posts

Monday, February 20, 2012

Time travel:Is it possible?

Hello guys, i am back... at least more frequently than before.... Sorry for any inconveniences i caused you. I was very busy - and still am - so i didn't have enough time to log in and post stuffs or answer question.
A couple of weeks(about a month or so) back i asked this same question on our face book page. I wanted to see what people thought but sadly very few people commented. Today i want to show you guys a video from howstuffwork.com explaining time travel.... Just check this month featured post and you will get all the details from there...
Enjoy....

Wednesday, December 21, 2011

What is a compiler?


A compiler is a special type of computer program that translates source code from a high-level programming language( human readable text file) into a lower level language (e.g., assembly language or machine code) that is a form that the computer can more easily understand. At its most basic level, a computer can only understand binary(  1 and  0). If a human being was to write an instruction for a computer using the language it understands(binary), that person will write very slowly and find the information contained in the long string of 1s and 0s incomprehensible, the person will also be prone to make a lot of mistakes and introduce errors in the intended instruction. A compiler is a computer program that was created to bridges this gap and make writing computer programs(instruction) more human friendly.
In the beginning when compilers were created, they were very simple programs that could only translate symbols into the bits, the 1s and 0s, the computer understood. Programs were also very simple, composed of a series of steps that were originally translated by hand into data the computer could understand. 

This method of programming was very time consuming and prone to mistakes by the writer of the computer instruction, so portions of this task were automated or programmed, and that was how the first compiler was written. This program assembled, or compiled, the steps required to execute the step by step program.
These simple compilers were used to write a more sophisticated compiler. With the newer version, more rules could be added to the compiler program to allow a more natural language structure for the human programmer to operate with. This made writing programs easier and allowed more people to begin writing programs. As more people started writing programs, more ideas about writing programs were offered and used to make more sophisticated compilers. In this way, compiler programs continue to evolve, improve and become easier to use.

If the compiled program can run on a computer whose CPU or operating system is different from the one on which the compiler runs, the compiler is known as a cross-compiler. On the other hand a decompiler is a program that translates from a low level language to a higher level one. A program that translates between high-level languages (e.g from python to JAVA for example) is usually called a language translator, language converter, or source to source translator. A language rewriter is usually a program that translates the form of expressions without a change of language.
A compiler's function include but may not be limited to the following: 
  • lexical analysis
  • pre-processing ( usually a pre-compiler built in with the compiler run through the code first)
  • parsing of the code for syntax errors
  • semantic analysis (Syntax-directed translation)
  • generation of the code
  • also to optimize the generated code
Hope you have gained some knowledge about compilers(at least the basic understanding). For a more detailed explanation you can check Wikipedia here.

Note:
The faults or errors introduced into the compiled program by an incorrect behavior of a compiler in compiling the source code can be very difficult to track down. 

Season Greetings from Giga Frequency

Wednesday, December 14, 2011

Do you think school is boring or killing creativity?

Most people go to school but don't know why, some say it is because they want to get a better Job, get riches while others don't even know why. Some that are in school don't have a good reason why they are studying their current discipline, they just choose the discipline because of their friends, parents etc...
Well, not withstanding, my personal views on the present educational system is that it has failed to equip anybody with the desperately needed   "  real  "   learning. They don't teach you to be creative or innovative they just teach you some boring old crap that someone else invented or created a long time ago (or  even recently); they don't teach you teamwork, most make you work in isolation(like as if anything good comes out of that !). Nobody really teaches you to go into uncharted waters, go into unexplored terrains and just be creative.
I have tried several time to encourage my class mates to be more creative and innovative and not just depend on only the old crap that is been thought in school. They tend to see no point in being innovative, after all when they get all the As they graduate and start looking for a job, some even think i am wasting my precious time trying to learn other stuff and trying to be more creative. They also see me as someone wasting time learning other stuffs that are not in the syllabus for the semester(even if it will be needed in my discipline after i have graduated) instead of focusing on reading to get an "  A "  in all my courses(how sad; Is school all about getting As ?)...
To buttress my point, i will post this cool video i saw on youtube.com about schools...simply put "   Schools kill creativity "  . Tell me what your views are by leaving your comment below this post.
Enjoy...




Don't forget to check out our post for the month, click here

Sunday, December 4, 2011

How does pinging work on a blackberry ?


First and foremost, i will define what a BlackBerry Messenger is because a PIN cannot go without it, BlackBerry Messenger is an instant messenger program for BlackBerry-to-BlackBerry communication utilizing your PIN code, for a more detailed explanation click here. BlackBerry Messenger is built into some of the newer devices. If your device does not come preloaded with BlackBerry Messenger, you can download it here


Now that brings us to what a PIN is,  a PIN is an eight digit alpha-numeric sequence that is assigned to every BlackBerry device. You can find your PIN code by going to
Options>Status>PIN   your PIN will appear in the status screen.
You can also find your PIN code by typing " mypin " into an email (without the quotes), the BlackBerry will automatically insert your PIN code.


When you ping, here is what is happening; your message goes from your device through your network carrier, then it passes through a relay to the receiver's carrier network and finally into the recipient black berry phone/device.

Here are some points to note about a ping:
  • PIN messaging does not go through your corporate environment, so you are able to PIN to PIN when your BlackBerry Enterprise Server (BES) or Mail Server is down.

  • PIN to PIN messaging is NOT 3DES or AES encrypted. It is only encrypted using a hash. SMS is plain text, so PIN is more secure but a hash is a low level of encryption. It is remotely possible for anyone to intercept it, you should keep it in mind and not send sensitive information in a PIN to PIN message.

  • PIN to PIN messages, SMS message and phone call logs are now able to be logged and audited in  BlackBerry Enterprise Server (BES) 4.1. The logging is off by default but you can assign an IT policy to any user to start logging their PIN, SMS and call logs.
  • If you are on a BlackBerry Enterprise Server (BES), you should assume none of your data is private as it all goes through the BES. On the other hand, if you are on a BlackBerry Internet Service (BIS), conversations are not stored on the device, so they should be relatively private. 
click here for other related posts
OR
you can just browse through all the posts on this blog here

    Monday, November 28, 2011

    What makes lithium ion batteries to swell ?



    Well, today i will answer a very common question that people ask, probably because of their phones are powered by lithium ion batteries.
    First a quote from a professor of Materials Chemistry at MIT who is an expert in advanced battery technologies, here is what he said;
    “I’ve seen lithium-ion batteries that are so swollen you’d be tempted to prick them with a pin,” says Don Sadoway. The problem has to do with the chemistry of lithium ion batteries, that is how the batteries were manufactured, which reacts unfavorably to overcharging.
    “There are strict limits on how much current can be put through a lithium-ion cell,” explains Sadoway. “During normal charging, you never see metallic lithium, which is inherently unstable. But during overcharging, the lithium builds up faster than it can dissipate. The result is that metallic lithium plates up on the anode. At the same time, the cathode becomes an oxidizing agent and loses stability.”
    The big danger, says Sadoway, is that this chemical reaction is accompanied by heat because it is exothermic in nature and-- as every engineer knows -- warm gas occupies more space, which is what causes the battery to swell.
    The bulging battery becomes a ticking bomb because if that battery is still kept on overcharge, it will get to a stage whereby the gases become so much that they cause the batteries to explode; in some cases that has happened.
    As a safeguard, more recently manufactured batteries normally come with inbuilt  internal charging circuits, using charger ICs and vendor-supplied reference designs. Instead of controlling the charging directly like before, these internal battery pack circuits prevent an overcharge. And if they detect a limit, they shut down the battery.
    Design of these circuits can be tricky, as consumers can accidentally connect the wrong power adaptor to a device. So engineers need to plan for almost any contingency.
    And if they’ve been designing for nickel-metal-hydride batteries in the past, they need to throw the existing charger out as it will be incompatible with the new design. New phones nowadays inform the user when the battery is fully charged.....
    I hope that has answered the question so when next your battery is full, disconnect it immediately to avoid overcharging....