Linux.com

Community Blogs



Just getting started...

I'm actually very new to Linux in the sense I've been using it for years, but I haven't really developed with it too much. I'm excited to get started learning more. I'm excited to be a part of the best and the most established Open Source community.
 

Lots of focus on business computing

There seems to be a lot of focus on business computing and competing with companies like Microsoft and Apple or trying to win over businesses and companies. We shouldn't let the ideas of the computing industry dictate how free software developers should develop software.

For example, the the use of the words "open source" instead of "free software" and the constant mention of the price tag of free/open source software as a selling point is annoying. People aren't cheap...they'll shell out cash for various items. We should be more willing to charge money for things and force people to see the inherent value of the software rather than making them see only the price tag.

Another example is how we try and replicate existing proprietary software. I don't want OpenOffice to look like Word and I don't want a PowerPoint clone at all.

 We shouldn't be afraid to try out new and innovative ideas instead of following the proprietary software companies blindly and merely duplicating their efforts.

 

Linux For Life...

Hello. You might have thought about getting a new computer but finds out that you have to pay for most of the software it provides. Thats when Linux should come in! Linux is a free and open source operating system that provides many diffrent flavors and many different free software. Below here is my story of how I heard about Linux and how I got it.

 

I had an old computer that was bought at 1995 and its HDD capacity was very low. I had a hobby of 3D modeling so I downloaded Blender3D and was looking through the Yafaray website and went to the download page. There I saw Windows,Mac and a weird operating system called Ubuntu Linux. I Google-d it up and found http://www.ubuntu.com/ and saw their promise and what Ubuntu truly meant. The whole day I was muttering "FREE! An operating system. FREE!" It took me 120$ to pay for a pirated version of Windows XP and it is useless. So I bought a new Acer Aspire One and put Ubuntu 8.10 Linux and the first time we tried it, it put me into a BusyBox shell for some reason. Then we went to a coffey shop called Linux caffe. And they had supper speed internet so we got the same 8.10 again and this time it worked like a charm. There were some updates that we had to get but I made a stupid mistake and didn't install them! When I went back home I turned it on and wanted to face my book (Facebook) but found out that the network card driver was missing.

I was planing on going back to Linux cafe and install the network driver but on that same day my coffee spilled on my netbook! So I went back to Future Shop and got my very own Acer Aspire 4736Z and I put Ubuntu 9.04. It works except for the microphone and the headphone jack (Output) but other than that it was great! Now I'm upgraded to 9.10 and very happy! You also should get Linux and Ubuntu is not the only choice! There are many more such as openSUSE and Fedora and CentOS Gentoo etc. You're not alone in the world of Linux! There is community support and expert support. And there is much MUCH more.

 

–ù–µ—Ç–±—É–∫ ASUS Eee PC 1101HA Seashell

–ü—Ä–∏–∫–æ–ª—å–Ω—ã–π –Ω–µ—Ç–±—É–∫  ASUS Eee PC 1101HA Seashell , –Ω–æ 1 –≥–± –æ–ø–µ—Ä–∞—Ç–∏–≤–Ω–æ–π –ø–∞–º—è—Ç–∏ –≤—Å–µ —Ç–∞–∫ —É–∂–µ –º–∞–ª–æ–≤–∞—Ç–æ. 2-3 –æ–ø—Ç–∏–º–∞–ª—å–Ω–æ, —Ç–æ—á–Ω–µ–µ —Å–∫–∞–∑–∞—Ç—å 2–≥–± —ç—Ç–æ —Å—Ç–∞–Ω–¥–∞—Ä—Ç, –Ω–æ –ª—É—á—à–µ 3 :)

 

a Linux-Newb.

Hi all.

I have to to find my way around linux, MySQL and Python/ Perl.

And I know absolutely nothing about linux or anything related to computer sciences.I have a biological background.

My only training in information tech. was a couple of years back in visual basic and just a tiny bit of SQL. I have been using windows  for over a decade now, that may help a bit with understanding all this, but this is Linux.

 So you see this would be quite a challange , to learn all this stuff without  the proper background.

 And this is why i shall document my struggles with linux and everything else . And also i get to say that i have my own blog now.

-p.

 

Do Your Friends Know You Tweet?

They'd better because Twitter has become an important new tool in building relationships and getting your message across.  This post details how to get started building your followers and adding value to the Twitter community. 

I recently saw survey results from a 60 Minutes/Vanity Fair poll that stated only 15 percent of Americans believe Twitter to be an important new tool for communication and I believe it.  Not because it's true but because Twitter can be hard to understand and get the hang of at first.

I distinctly remember my first experience with Twitter when I noticed someone casually mentioning they were "putting lipstick on at a redlight".  My first thought was "this is totally worthless".  My how times have changed.  Not only has the growth of Twitter been off the charts (1382% to be exact), but I've actually started using Twitter on a regular basis and find it extremely helpful and useful in my job.

Twitter can be tough to understand at first and there's good reason for it; its a different communication model than most are used to.  How ...

 

 

Digital Differential Analyzer (DDA) Algorithm

DDA_1

 DDA_2

 DDA_3

/*************************************************
* Digital Differential Analyzer (DDA) Algorithm *
*************************************************
* Usage :- Simple and general method for rasterizing lines and triangles
* Author :- Rooparam Choudhary
* Date :- August 29, 2009
* Place :- Shri Mata Vaishno Devi University
* EntryNo :- 2006ECS20
*/

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>

#define ROUND(x) ((int)(x+0.5))

int MYCOLOR = WHITE;

inline void setpixel(int, int);
void DDA(int, int, int, int);
void unionJack(void);
void hexagon(int, int);
void randomUnionJack(int);

inline void setpixel(int x, int y){
putpixel(320+x, 240-y, MYCOLOR);
}

void randomUnionJack(int count){
void DJ(int, int, int);
int xr, yr, clr=0;
srand(time(NULL));
while(count-- > 0){
xr = -320 + rand()d1;
yr = -240 + rand()H1;
clr = 0;
if(yr > -xr){
if(xr < 0) clr = 3;
else if(yr < 0) clr = 2;
else if(yr > xr) clr = 4;
else if(yr < xr) clr = 1;
}else if(yr < -xr) {
if(xr > 0) clr = 3;
else if(yr > 0) clr = 2;
else if(yr < xr) clr = 4;
else if(yr > xr) clr = 1;
}
DJ(xr, yr, clr);
}
}

void DJ(int x, int y, int clr){
int shade = 0;
switch(clr){
case 1: shade = RED; break;
case 2: shade = BLUE; break;
case 3: shade = CYAN; break;
case 4: shade = MAGENTA; break;
default: return; break;
}
putpixel(320+x, 240-y, shade);
}

void DDA(int x0, int y0, int x1, int y1) {
int delX = x1-x0, delY = y1-y0, steps, k;
float x=x0, y=y0, incX, incY;

steps = (abs(delX) > abs(delY)) ? abs(delX) : abs(delY) ;

incX = delX / (float)steps;
incY = delY / (float)steps;

setpixel(ROUND(x), ROUND(y));
for(k=0; k<steps; ++k) {
x += incX;
y += incY;
setpixel(ROUND(x), ROUND(y));
}
}

int main(void) {
int gd = DETECT, gm;
char *author = "Coder:- Rooparam Choudhary";
char *algo = "Digital Differential Analyzer Algorithm";
char point[30];
std::cout << "Digital Differential Analyzer Algorithm ";
std::cout << author << std::endl;
initgraph(&gd, &gm, "C:");

setcolor(WHITE);
setbkcolor(GREEN);
outtextxy(320 - textwidth(algo)/2, 5, algo);
outtextxy(getmaxx()-4 -textwidth(author), getmaxy()-20, author);
setcolor(GREEN);
setbkcolor(BLACK);

MYCOLOR = GREEN;
// X-axis
DDA(-320, -1, 320, -1);
DDA(-320, 0, 320, 0);
DDA(-320, 1, 320, 1);
// Y-axis
DDA(-1, 240, -1, -240);
DDA( 0, 240, 0, -240);
DDA( 1, 240, 1, -240);
// Y - X = 0
DDA(-240, -240, 240, 240);
// Y + X = 0
DDA(-240, 240, 240, -240);

MYCOLOR = BROWN;
hexagon(-160, 120);
hexagon(160, 120);
hexagon(160, -120);
hexagon(-160, -120);

std::cout << "Enter samples for union jack (SHOULD BE GEATER THAN 100K): ";
int samp;
std::cin >> samp;
//unionJack();
randomUnionJack(samp);

setcolor(WHITE);
setbkcolor(GREEN);
outtextxy(320 - textwidth(algo)/2, 5, algo);
outtextxy(getmaxx()-4 -textwidth(author), getmaxy()-20, author);
setcolor(GREEN);
setbkcolor(BLACK);

int x0, y0, x1, y1;
MYCOLOR = WHITE;
std::cout << "Enter '-400' to exit ";
std::cout << "Enter the coordinates of end points: [x0 y0 x1 y1] ";

std::cin >> x0;
while(x0 != -400) {
std::cin >> y0 >> x1 >> y1;
sprintf(point, "(M, M)", x0, y0);
outtextxy(320+x0-textwidth(point)/2, 240-y0+2, point);
sprintf(point, "(M, M)", x1, y1);
outtextxy(320+x1-textwidth(point)/2, 240-y1+2, point);
DDA(x0, y0, x1, y1);

setcolor(WHITE);
setbkcolor(GREEN);
outtextxy(320 - textwidth(algo)/2, 5, algo);
outtextxy(getmaxx()-4 -textwidth(author), getmaxy()-20, author);
setcolor(GREEN);
setbkcolor(BLACK);

std::cin >> x0;
}

closegraph();
return 0;
}

void unionJack(void){
for(int y = 240; y>0; --y) {
int x = -321;

MYCOLOR = BLUE;
while(++x < -y)
{ putpixel(320+x, 240-y, MYCOLOR); }
MYCOLOR = CYAN;
while(++x < 0)
{ putpixel(320+x, 240-y, MYCOLOR); } MYCOLOR = MAGENTA;
while(++x < y)
{ putpixel(320+x, 240-y, MYCOLOR); }
MYCOLOR = RED;
while(++x < 321)
{ putpixel(320+x, 240-y, MYCOLOR); }
}
for(int y = -1; y>-241; --y) {
int x = -321;

MYCOLOR = RED;
while(++x < y)
{ putpixel(320+x, 240-y, MYCOLOR); }
MYCOLOR = MAGENTA;
while(++x < 0)
{ putpixel(320+x, 240-y, MYCOLOR); }
MYCOLOR = CYAN;
while(++x < -y)
{ putpixel(320+x, 240-y, MYCOLOR); }
MYCOLOR = BLUE;
while(++x < 321)
{ putpixel(320+x, 240-y, MYCOLOR); }
}
}

void hexagon(int xc, int yc) {
DDA(xc+60, yc+104, xc+120, yc);
DDA(xc+60, yc+104, xc+60, yc-104);
DDA(xc+60, yc+104, xc-60, yc-104);
DDA(xc+60, yc+104, xc-120, yc);
DDA(xc+60, yc+104, xc-60, yc+104);
DDA(xc+120, yc, xc+60, yc-104);
DDA(xc+120, yc, xc-60, yc-104);
DDA(xc+120, yc, xc-120, yc);
DDA(xc+120, yc, xc-60, yc+104);
DDA(xc+60, yc-104, xc-60, yc-104);
DDA(xc+60, yc-104, xc-120, yc);
DDA(xc+60, yc-104, xc-60, yc+104);
DDA(xc-60, yc-104, xc-120, yc);
DDA(xc-60, yc-104, xc-60, yc+104);
DDA(xc-120, yc, xc-60, yc+104);
}

 

 

I am back!

There were a lot of things going on in my life, but everything seems to settle down.

Now I am back and expect to see more posts!

 

the first

     wow wow wow!

      this is my first time to write blog with English. actually,my first language is not English. so i have to use many time to learn English.

      Also i learn computer by myself.Just for fun!

      AND this is my really first time to use Linux(it seems that i have said it several days before!).i love Linux ,i love Ubuntu .In fact , i had tried fedora9 in my old machine last year.But it's nightmare for me .THE machine has 224RAM,AMD Sempron3000+.

     Try it!Do it!  

 

Automation security and OOPs!

Quick note for all.  I just learned that if you start a blog, get a call from Nagios that a raid array crashed, and mark a blog you just started as "unpublish" it just might get published auto magically for you at some point in the future. 

 For those who read that piece of a blog, sorry.  I'll edit locally and cut and paste going forward. As one gentleman I know once said, "Whatever automation and security do for you they also do to you."  Well it did it to me this time.

 

Ubiquity - Firefox-Addon



Ich möchte euch hier das Firefox-Addon "Ubiquity" vorstellen. Mir war das Addon bis heute nicht bekannt...es scheint aber eines der besten Addons zu sein, das ich bisher gesehen habe. Ubiquity bietet eine Art Schnittstelle zu Online-Inhalten, wie Suchmaschinen oder anderen Diensten. Über die Tastenkombination STRG + Space (kann man auch frei wählen) ruft man Ubiquity in den Vordergrund (Bild 1), welches dann in der linken oberen Ecke des Browsers erscheint. Hier hat man nun die Möglichkeit, über ein Eingabefeld bestimmte Befehle einzugeben und gewünschte Dienste, etc... aufzurufen.
Beispiele:
Google-Suche: Eingabe "google + Suchbegriff" (Bild 2)
Browser-Kommandos wie "exit firefox", "restart firefox", "close window", "close tab", "fullscreen" und vielen weiteren
E-Mail schreiben (momentan nur GMail): Eingabe "gmail + Nachricht + to Empfänger" (Bild 3) E-Mails abrufen: Eingabe "get last mail"
Google Maps: Eingabe "map + Ort" (Bild 4)
Youtube: Eingabe "youtube + Suchbegriff".....genauso funktioniert das mit Flickr, Wikipedia, Yahoo, Digg, Amazon, Ebay und vielen anderen Diensten.
Wetter: Eingabe "get weather + Ort"
Twitter: Eingabe "tweet + Nachricht + as Benutzername"
Regional ganz interessant für den VRR (Verkehrsverbund Rhein-Ruhr) eine Fahrplanauskunft: Eingabe "vrr + from Ort + to Ort"
Ich könnte diese Liste nun endlos erweitern. Ubiquity macht das Surfen im Netz jedenfalls deutlich einfacher und schneller.
Screenshots:
Bild 1

Bild 2

Bild 3

Bild 4

Weblinks:
https://addons.mozilla.org/de/firefox/addon/9527
Hier gibt es die aktuelle stabile Version. Eine Preview-Version findet ihr hier:
Mozilla Labs Ubiquity (Einfach auf "latest Beta" klicken)
Weitere Erklärung mit kurzem Video:
Der Browser versteht mich & Add-ons ohne Neustart - Firefox 3.6, 4.0 und mehr: Die Zukunft des Mozilla-Browsers - CHIP Online
 
Page 6 of 14

Upcoming Linux Foundation Courses

  1. LFS426 Linux Performance Tuning
    21 Apr » 24 Apr - Virtual
    Details
  2. LFS520 OpenStack Cloud Architecture and Deployment
    05 May » 09 May - Virtual
    Details
  3. LFD320 Linux Kernel Internals and Debugging
    12 May » 16 May - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board