Thursday, December 8, 2016

China To Provide Internet service in Nepal

China Telecom today announced an agreement with Nepal Telecom to provide internet services through a new terrestrial cable route between the two countries. It runs through a gateway between Jilong county in China and Rasuwa district in Nepal.
“It is a direct route for traffic demand generated from Nepal to all over the world, and provides the highest quality service and low latency (time delay) solution for end users in Nepal,” says a statement from China Telecom.
“The China-Nepal route could provide better service to Nepal as well as a transit service from India,” points out Ou Yan, executive vice president of China Telecom, which took on the arduous task of laying cables through the Himalayas. China is also extending the Qinghai-Tibet rail line to the Jilong-Rasuwa gateway and could help Nepal extend it to Kathmandu.
“We’re looking forward to establishing Nepal as a transit hub through this route,” added Kamini Rajbhandari, MD of Nepal Telecom.

New Pokemon are comming next week !!

This could mean you can finally be able to catch legendary Mewtwo and next gen pokemon.
Pokemon genders hint that they can breed or even cross breed to generate another pokemon. Will it have a hardcore breeding functions too ? The questions remains until next week.
Customize your trainer avatar and make pokemon wear christmas suit !! Yayyy.
Watch Video

Wednesday, July 6, 2016

Electronic Telephone Exchange / Stored Program Control / Digital Telephone Exchange:

Electronic Telephone Exchange / Stored Program Control / Digital Telephone Exchange:




Switching Network:
The switching Network provides means of connection for telephone lines and trunk lines under directions provided by CPU with stored program in it’s semi-permanent memory.

Memory:
Temporary Memory
Semi- Permanent Memory
CPU stores information regarding calls in operation from scanner to temporary memory.
It consists of Operating Program and application program along with fixed data relating to telephone lines and trunk.

CPU:
It is the interface between software and hardware. It operates hardware according to instructions given by programs stored in semi-permanent memory.

Scanner:
CPU gets to know status of telephone lines and trunk by continuously scanning once in 100ms carried out by scanner.
CPU writes information about lines after each scan in temporary memory.
Each line and trunk is equipped with sensing device.

Distributer:
Signaling over lines and trunks are provided by the distributer under direction from CPU.
CPU tells distributer when to start and stop signaling.

Operator Console:
It is used by operating personal to control and observe overall process.
The operating personal can also write or erase data related to lines and trunk in semi-permanent memory.
Operator Console are used for:
 1. Alarm
 2. Line and trunk task facility            
 3. Display      
 4. Maintenance

  ⓒNotoriousGarage http://notoriousgarage.blogspot.com

  https://www.youtube.com/channel/UCyEHyFZjtwWxyPrxkUgJyeQ


Saturday, July 2, 2016

How does structure differ from array ? Q.no 9 2068 shrawan IOE

Q. How does structure differ from array ?

Array:
- Array is collection of similar data types.
- Each array element is accessed by array name followed by index with square brackets [] as:
    array_name[index];
- Array is declared with fixed size which it allocates some space in memory.
example:

#include<stdio.h>
int main() {
int a[10],i;
printf("\nEnter array Elements: ");
for (i=0;i<10;i++)
{
scanf("%d",&a[i];
}
printf("\nArray elements are : ");

for(i=0;i<10;i++){
printf("\n%d",a[i];
}
return 0;
}

Structure:
-Structure is collection of similar and dissimilar data types.
- Each structure element is accessed by using a dot operator(.) as :
  structure_name.structure_element
- Before declaring a structure we have to define a structure data type along with its elements to inform compiler about it.
example:

struct students {
char name [20];
int roll;
};
void main (){

struct students s;
printf("Enter name and roll number of student:");
scanf("%s%d",s.name,&s.roll);
printf("\n Name: %s \t Roll no : %d",s.name,s.roll);
}

C- Programming IOE 2067 Ashadh Q.No:7

Q 7 : WAP according to the display below :
Open a file named RECORD.txt for 'n' number of data where cost, service charge 5%, VAT 15% and total cost must be calculated by the program itself. [10 Marks]






Code Here :

// This code has been tested in Xcode 7.3 
//  main.c
//  resturentBilling
//
//  Created by Notorious MAC on 7/2/16.
//  Copyright © 2016 NotoriousMAC. All rights reserved.
//

//WAP to open a file named Record.txt for n number of data where cost, service charge 5%, VAT 15% and total cost must be calculated by program itself.

#include <stdio.h>
#include <stdlib.h> // includes standard library

// structure define here
struct record {
    char icode[10];
    char des [20];
    float rate ;
    int qty;
    float cost ;
    
}r;

int main(int argc, const char * argv[]) {
    // insert code here...
    FILE *fp;
    int n,i;
    float vat, schar, tcost, t=0;
    
    // open file in write mode
    
    fp=fopen("RECORD.txt", "w");
    
    // check for error here
    
    if (fp == NULL) {
        printf("\nFile cannot be opened");
        exit(1);
    }
    
    printf("\nEnter number of records ");
    scanf("%d",&n);
    
    for (i=0; i<n; i++) {
        printf("\nEnter itemCode, description, rate and quantity");
        scanf("%s%s%f%d",r.icode,r.des,&r.rate,&r.qty);
        r.cost = r.rate * r.qty;
        fwrite(&r, sizeof(r), 1, fp);
    }
    fclose(fp);
    
    
    // open file in read mode
    fp = fopen("RECORD.txt", "r");
    
    // check for error here
    
    if (fp == NULL) {
        printf("\nFile cannot be opened");
        exit(1);
    }
    
    printf("\n Item Code \t Description \t Rate \t Quantity \t cost");
    while (fread(&r, sizeof(r), 1, fp)==1) {
        t=t+r.cost;
    
    
    printf("\n%s \t\t\t %s \t\t\t %f \t %d \t %f",r.icode,r.des,r.rate,r.qty,r.cost);
}
    
    vat = 0.15*t;
    schar = 0.05*t;
    tcost = t+vat+schar;
    printf("\nVAT = %f",vat);
    printf("\Service Charge = %f",schar);
    printf("\nTotal cost = %f",tcost);
    fclose(fp);
    

    
    return 0;

}

Output :

Enter number of records 2

Enter itemCode, description, rate and quantitya
as
3.3
4

Enter itemCode, description, rate and quantityb
bs
4.4
5

 Item Code  Description  Rate  Quantity  cost
as  3.300000  13.200000
bs  4.400000  22.000000
VAT = 5.280000Service Charge = 1.760000
Total cost = 42.239998Program ended with exit code: 0

Thursday, April 14, 2016

Getting started with RubyOnRails For Macintosh 


STEP 1: Go to brew.sh the official website for downloading home-brew. What home-brew does is it adds files missed by apple while setting up mac.
In the website you will find a link saying copy and paste the link in terminal- do that and hit enter.
when you hit enter terminal starts to download the missing files and set it up for you.
it will say hit return key to continue or control + c to abort- hit enter(return)

then terminal asks for password simply enter the password with which you log in to your mac - while entering password dots will not appear in terminal as it usually appears while entering password so make sure that you enter the password right because entering garbage value in terminal might lead you to loss of data or so forth.

the procedure goes on . after completion you will see your mac name and dollar sign then simply enter :
  brew install rbenv (in the terminal of course )
this will take you to further installation procedure where terminal will download data from internet- it will take some time depending on your internet connection speed.

after completion following message will appear (this message is for my mac named : Notorious MAC)
To enable shims and autocompletion, run this and follow the instructions:
  rbenv init
==> Summary
🍺  /usr/local/Cellar/rbenv/1.0.0: 36 files, 61.9K
Macs-MacBook-Pro:~ Notorious$ 

then enter : brew install ruby in the terminal.
this will initiate downloading and installing process ..

now enter: ruby -v ( this will show the current version of ruby that you just installed in your mac.)

to install rails enter : gem install rails ( this will install rails and take some time.)

That's it Now you are good to go with Ruby on Rails .





Wednesday, April 13, 2016

Why not to study in Kathmandu Engineering College!!


Kec is reputed institution of Nepal with many graduates working in great companies. It produces best result among private engineering colleges and is second choice of most of the engineering students after Pulchowk Campus.
 But the students currently studying in kec are pretty upset regarding collage administration and its efforts towards overall development of collage itself.

Many students shared their experience with us and most of them were complaining following things:
  1. The collage administration operates like a typical government officials with slow and file transferring procedure. It often feels like Mary goes round and round for small projects and initiatives.
  2. Even though collage seems to pay attention towards students academic performance, students are always pushed away with fees and bills that comes every other month.
  3. Despite of. calling individual student and discussing about their academic performance so far the collage administration directly calls parents that also only after results are published. In-between the working hours things seems to be normal but it isn't so.
  4. The seed of back paper is sowed in each individual's mind by the collage itself Right on the first day in Yoga hall . Then collage nourish that seed until BackPaper fruit are ripped. It's like inception:" when i tell you don't think about an elephant what do you think?"
  5. The result are shown to parents and bills are provided to students. This doesn't match right.  It increases the tension among parents and maintains enough distance between students and collage.
  6. There is no cloud data storage. Nothing at all. The collage website contains no notes, tutorials, and academic related documents.
  7. No video tutorials. Students have to grasp all information that teacher speaks simultaneously writing notes. They could have copied foot steps of MIT and made video out of every class.
  8. No place to sit peacefully. The collage is too crowded. One cannot simply think what's going on ?!  Rush Rush Rush
  9. No collage transportation facilities.
  10. Computers in lab are broken & not working. You have to share all the time.
  11. Students are not allowed to use advanced equipment- you can only see because they cost a lot. They don't even show you how they work. Not even a video.
  12. Manuals provided are pathetic. However some are good.
  13. The collage environment is missing inspiration. No inspiration in engineering collage is like no armor in war.
  14. The collage printed its academic calendar first time in four years. This clearly shows lack of punctuality.
  15. Teachers are Good. It is the only thread binding KEC this far.
  16. You have to play football, cricket in basketball court and if you hit hard you are out. It is the only place to play. However KEC got best basketball court in town.
  17. Yoga is the best invention of Humanity. But the anchor (Shanta Sir) will frustrate you. His presentation is disliked by most of the students. 
  18. Chain Smokers are born in KEC. In quick survey we find out that kec is the leading collage with smokers and No Smoking Zone!! Doesn't match again.
  19. By the time you reach third year, you'll notice everybody likes smoking weed in outings. Good thing though!!
  20. Electronics and computer students are not introduced to google, Microsoft, apple students circle. So its very hard to get in their after graduation.
  21. If you want to do something you have to do it by yourself. People will help but no one is coming after you.
  22. Recreational visit is pokhara and chitwan not Goa and Banglore. But collage takes money for Goa and Banglore .
  23. Alternate Day Test (ADT) : every other day test is conducted which no one gives a fuck about. Be aware teachers are gonna thrash N.Q (not qualified) on the basis of ADT results and Lab reports.
  24. Welcome and Farewells programs are conducted barely. Lastly it was done after four years in 2072!!
  25. The canteen is worst to eat. So The tables are used by engineers to do tutorials and lab report.
  26. Because Library is tiny and hot.
  27. There is WiFi in collage & it works sometime. Awesome!!

Students say there are many other cons of KEC. Surely there are Pros too. Let's hear it from KEC students themselves. Write us @notoriousgarage