7 November,2013

This week The festival of light came and I prayed to God that he would light up my life also. This placement pressure is immense and this week we also had the SAPIENT test. The test of SAPIENT was easy and I had more hopes to clear this test. But the number of shortlisted sutdent by the SAPIENT was too less that I couldn’t make it :( .
This week I completed the task of Archieving the post in the Vigilance Beareau website by installing the simple yearly plugin and using its short code and the posts are archieved now.

2 November 2013

This Week started with the infosys placement drive at the college and After failing the TCS test I wasjust frustrated with my self and I was thinking that I need to clear this test. I gave the test of the infosys after waiting for the whole as my turn was in the last slot. I found the test easier than the TCS test and had some hopes that this time I might get clear in this test and the result came in the evening but my name was not in the list :( . I really got dissappointed with myself.
SAPIENT technologies was going to come and then I started preparing for the test more harder this time. I started preparing for the apptitude test and also searched for the previous papers of the SAPIENT placement tests.

26 Oct,2013

this week I first Decided to start from the begining and started searching for how we make the graphics in C ,C++ and tried various program for making a Point,Making a Line , Making a Circle and tried to understand the logic behind , how they work. How just the computer program is able to light up a pixel and combining those pixels we can get a line,circle,rectangle, various shapes of the geometry on the screen . Then I wonder why do they complicated the STEP file so much as it is just made up of the basic entites such like that and Didn’t found an answer to that.

Later this week I got the task of Archiving the posts on the monthly basis in the Vigilance Beareau site of the punjab government. I started searching for the plugins and found many plugins but most of them didn’t suited my requirements. I then installed an plugin and tried to use the shortcode of that plugin in the WordPress theme when i did so that Website just crashed on my localhost and now I have to setup this again from the backup that is on the experimental server.

19 Oct 2013

This Week I fell ill and was not able to do much work ,But I tried to parse the file with the Regex-Search function but it gave me error that meant that it was not supported in the g++ , gcc compiler , I tried the same logic with some other file and pc and it worked for me with the text file.
I tried to find how the other software of CAD that support the STEP file format could interprate it. The FREECAD usees the OpenCascade for interprating the STEP files and started reading about the OPENCASCADE and came to know about EXPRESS schemas which define the various Application protocols for the STEP files such as AP214 for Automotive Design.and AP210 for Electronic Assembly Interconnect and Packaging Design.

12 Oct,2013

This Week I was First confused with the Vectors because when I changed the value of co-ordinate points given in line Attribute of STEP file, it didn’t changed its position in the drawing ,i.e. No effects on the Line being drawn, Then I came to know that the line is drawn with the use of Vectors and I started searching about the magnitude and Direction of vectors what it means ? how it is calculated.

On the other day I got to catch up with wordpress as Birpal was on leave and work on Ielec website. Ehen i tried to install wordpress on my system , it gave me errors But by the end of the day I was able to install it and work on the website’s various issues.
Next day I came back to my work of Parsing the STEP file with C++ and Started searching on it. I searched whole day and tried to match teh text within the STEP file so that i could parse it and make a line. I tried various logics through file handling function seekg , tellg but was unable to parse it.
Then I tried regex seaqrch for it to do parsing and there were some function which somehow didn’t worked for me. I tried different logics with the regex search as Regex syntax was also complicated. It took the whole to understand it.

5 Oct 2013

This Week I have done with my Script to fetch the file attributes and show these attributes in the head of the file. Though the the process includes use of more than one files but it is done. We also had a party this to celebrate the selection of the 3 students from TCC in the Google Summer of code and I really enjoyed the party. Now I am Also continuing the task of the analysing the Step format and how to convert it into a form that it could be processed by the FElt software.

28 Sept 2013

This week I have been messing with argc and argv. So what is this argc and argv is.Let gets to know about these: So far, all the programs I have written can be run with a single command. For example, if we compile an executable called myprog, we can run it from within the same directory with the following command at the GNU/Linux command line:

./myprog

However, what if you want to pass information from the command line to the program you are running? Consider a more complex program like GCC. To compile the hypothetical myprog executable, we type something like the following at the command line:

gcc -o myprog myprog.c

The character strings -o, myprog, and myprog.c are all arguments to the gcc command. (Technically gcc is an argument as well, as we shall see.)

Command-line arguments are very useful. After all, C functions wouldn’t be very useful if you couldn’t ever pass arguments to them — adding the ability to pass arguments to programs makes them that much more useful. In fact, all the arguments you pass on the command line end up as arguments to the main function in your program.

Up until now, the skeletons we have used for our C programs have looked something like this:

#include

int main()
{

return 0;
}

From now on, our examples may look a bit more like this:

#include

int main (int argc, char *argv[])
{

return 0;
}

As you can see, main now has arguments. The name of the variable argc stands for “argument count”; argc contains the number of arguments passed to the program. The name of the variable argv stands for “argument vector”. A vector is a one-dimensional array, and argv is a one-dimensional array of strings. Each string is one of the arguments that was passed to the program.

For example, the command line

gcc -o myprog myprog.c

would result in the following values internal to GCC:

argc
4
argv[0]
gcc
argv[1]
-o
argv[2]
myprog
argv[3]
myprog.c

As you can see, the first argument (argv[0]) is the name by which the program was called, in this case gcc. Thus, there will always be at least one argument to a program, and argc will always be at least 1.

The following program accepts any number of command-line arguments and prints them out:

#include

int main (int argc, char *argv[])
{
int count;

printf ("This program was called with \"%s\".\n",argv[0]);

if (argc > 1)
{
for (count = 1; count < argc; count++)
{
printf("argv[%d] = %s\n", count, argv[count]);
}
}
else
{
printf("The command had no other arguments.\n");
}

return 0;
}

If you name your executable fubar, and call it with the command ./fubar a b c, it will print out the following text:

This program was called with “./fubar”.
argv[1] = a
argv[2] = b
argv[3] = c