Sunday 9 February 2014

About ttylinux and strategy

                              ttylinux and strategy


Pascal Schmidt created ttylinux in 2001. The distribution was command-line only and specifically supported dial-up networking, PPP and ISDN, via serial interfaces. This orientation towards hard-wire serial interfaces lends itself to the "tty" part of thettylinux name. In 2008 Pascal began looking for a new project maintainer. 

Douglas Jerome took over the project in November 2008 and broke the dial-up networking; lacking hardware and access to dial-up networking, now the project is waiting for someone to take on the testing tasks of re-integrating the dial-up capabilities. No matter any moves away from the hard-wire serial interface orientation, the name ttylinux remains. 

A interesting result of the project goal, to make one of the smallest up-to-date Linux systems, is the ttylinux build system; it is very flexible and the simplicity of (re)configuring its Linux kernel and other packages makes it a very useful embedded or small Linux system development tool. The various bootable ttylinux architecture variants available for download are example distributions created by the ttylinuxbuild system. 

See the download pages for descriptions of kernel and component packages and versions. 


Strategy

i486 ttylinux is the smallest "normal" Linux distribution. That is all it has. If it grows too much ttylinux will lose itself. The ttylinux build system; however, can make smaller and larger distributions. 

The strategy for ttylinux is to remain very small yet be similar to larger Linux systems is put into effect by a few things that make ttylinux be what ttylinuxis. The following are fundamental to ttylinux; without which it would be some other project, regardless of name. 

§ bash
ttylinux is a very small system with few programming resources, bash is a verycapable scripting language that makes up the difference. 

§ glibc
ttylinux can be small enough to use as an embedded system, but it usually is glibc-based, not eglibc nor uClibc. This retains capability similar to larger Linux distributions. And because ttylinux is glibc-based, a careful person can copy libraries and programs from other typical Linux distributions into a ttylinux system. 

§ ramdisk
As distributed, ttylinux mounts a root file system on a RAM disk, not an initramfs; the RAM disk root file system is a true file system. Although it can be installed to run from a hard drive, and more interestingly a USB memory stick, the distributedttylinux must be small enough to have the root file system quickly mounted on a RAM disk as a true file system


Wednesday 5 February 2014

CODE ZONE

                                     The Indian Connection(SPOJ)

here is the my code :-

//siddharth prasad

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <cstring>
#include <functional>
#include <algorithm>
#include <cmath>
using namespace std;

#define ALL(c) c.begin(), c.end()
#define FOR(i,c) for(typeof(c.begin())i=c.begin();i!=c.end();++i)
#define REP(i,n) for(int i=0;i<n;++i)
#define fst first
#define snd second
#define max(a,b)(a>b?a:b)

int main()
{
 int t;
 cin>>t;
 while(t--)
 {
  unsigned long long int n,k,c=0;
  cin>>n>>k;
  k--;
  while(k!=0)
  {
      if(k%2==1)
        c++;
      k/=2;
  }
  if(c%2==0)
    cout<<"Male"<<endl;
  else
    cout<<"Female"<<endl;
 }
 return 0;
}

CODE ZONE

                                 

GENIE SEQUENCE(SPOJ)


Here is the my solution :-

//siddharth prasad

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <cstring>
#include <functional>
#include <algorithm>
#include <cmath>
using namespace std;

#define ALL(c) c.begin(), c.end()
#define FOR(i,c) for(typeof(c.begin())i=c.begin();i!=c.end();++i)
#define REP(i,n) for(int i=0;i<n;++i)
#define fst first
#define snd second
#define max(a,b)(a>b?a:b)

int main()
{
 int t;
 cin>>t;
 while(t--)
 {
  int n,i,flag=0,x;
  cin>>n;
  int a[1000]={0};
  for(i=0;i<n;i++)
  {
  cin>>x;

  if(a[x+1]==0)
  {
   a[x+1]=1;
   flag++;
  }
  else if(a[n-x]==0)
  {
   a[n-x]=1;
   flag++;
  }
  }
  if(flag==n)
  {
  cout<<"YES"<<endl;
  }
  else
  {
  cout<<"NO"<<endl;
  }
 }
 return 0;
}

Friday 18 October 2013

Welcome to Linux.org's "Getting Started with Linux: Beginner Level Course". If you're new to Linux and want to find out how to use the fastest growing operating system today, all you have to do is follow these lessons and you'll be using Linux efficiently in no time.

Getting Started with Linux: Beginner Level Course is designed as a self-study course. One of the things that makes this course unique is that at any point during a course, you can add a note, or comment. This is done in the comments bar on the right hand side of the screen. These comments can be made public or private, and can take any form that you like. Feel free to use them to ask questions, answer other users questions, post code updates, or suggest different methodologies for solving problems.

Linux is a very popular operating system, and this course is followed by thousands of people each day. Due to this, there are a lot of people online who are also in the process of learning it. So please feel free to ask any questions that you have and someone in the Linux Community will probably answer you! Also, this whole site, including the courses are regularly moderated. If you don't get an answer to a question, we will do our best to answer it for you. In addition, please send us your suggestions for how we can improve the courses, any typos that you have noticed, or any errors that you have encountered.

If you're ready to start learning about Linux, you may start at our table of contents or you may want to jump right into lesson one What Is Linux?
check this out :-http://www.linux.org/forums/beginner-tutorials.53/