Skip to main content

Posts

Showing posts from March, 2016

Explain computer aided writing.

Computer are widely used by the majority of writers for their writing. Use of computer does not change the principles of good writing, but it does help to make writing task easier in many ways. Word processors like Microsoft’s Word makes tasks of writing, revising and editing a document easier. Clean copy of documented can be printed once it is revised and is error free. Unlike traditional type writers, several drafts of same document need not to be produced. The typed document can be previewed on the screen before printing on a paper. In fact computer assisted writing is more convent way to write than traditional type writers or pen and paper. Moreover, use of computer for writing can save time and labour.

Count files on your server (000webhost file counter)

000webhost provide 1.5 GB of free hosting space which is great for people who want to get started with their own website. But as all free hosting it has some other limitations like number of files on one account. To find out the number of file on your account 000webhost does not provide anything on their control panel. So we have to create a file counter to keep track of the number of files on 000webhost’s account. A simple file counter can be created like.

Easy way to remove category form your WordPress site URL.

Short Answer: 1.       Go to WordPress settings 2.       Select Permalinks 3.       Select Custom Structure and enter: /%category%/%postname%.html 4.       Set Category base to: /. I have three main category for my posts in WordPress website viz. Blog, BSc CSIT and Portfolio. These category are on my main menu, so that people can click it and see the corresponding posts that falls under each category. WordPress by default makes the URL of each category look like www.yourdomain.com/category/category_name , i.e. in my case, www.shirishkoirala.com.np/category/blog. I don’t want that category to show up, every time I share my blog post I just want to tell people to go to www.shirishkoirala.com.np/blogs and you will find all my blog post there. This URL will be easy to share and remember. So I searched the internet and found many solution. But many of them broke my pages and redirected to 404 page, other solution actually want me to edit some php files and I didn’t want that ei

In what case relational calculus differ from relational algebra, and in what sense are they similar?

Relational algebra is a procedural language and Relational calculus is non-procedural language. In relational algebra user has to specify, what is required, and what the steps to obtain the required output are whereas in relational calculus user has to specify what is needed but does not have to specify how to obtain the result. Both, relational calculus and relational algebra are formal language. They are the basis on which other, higher level data manipulation languages for relational calculus. Relational algebra have operators like join, union, intersection, division, projection, selection etc. but relation calculus has tuples and domain oriented expressions. Expressive power of both relational algebra and relational calculus is equivalent i.e. any query that can be expressed in relational algebra can also be expressed in relational calculus. Relational algebra is relatively easier to manipulate than relational calculus. Relational algebra are more powerful than the relational c

Explain different type of data attributes.

Different types of data attributes are: a.       Key & Non-Key Attribute: Key attributes are those attributes which uniquely identifies an entity. Non-Key are all those attributes which are not a key. For example: in entity student , student_roll_number can be primary key as it uniquely identify the entity student, other all attributes like first_name, middle_name, last_name, address, date_of_birth etc. are non-key attributes. b.       Single & Composite Attribute: Composite attributes are the attributes having many parts to them whereas Single attributes are those which does not. Composite attributes can be sub-divided into other single attributes, which will still have its meaning. Single attributes are simple an attribute which cannot be sub divided. For example: consider an entity student having an attribute: name , which can be divided: first_name , middle_name and last_name . Here, the attribute, name can be considered as composite attribute and first_name

Different between logical data independence and physical data independence.

Logical Data Independence Physical Data Independence Ability to change the logical (conceptual) schema without changing the external schema(user view) Ability to change the physical schema without changing the logical schema Modification is necessary whenever the logical structure of the database is altered Modification are rarely done, as it is done to improve the performance of the database It means we will be able to change the logical schema of the database without effecting the view level. It means we will be able change the physical storage without affecting the logical level or view level. It is more difficult to achieve. It is relatively easy to achieve. For example: Consider two users A & B, both are selecting the fields “employee_number”. If user B adds new column “salary” to the same table, it will not affect the user view level. For example: Changing the storage

Define finite state automata.

Finite state automata is a mathematical (model) abstract machine that has set of “States” and its “control” moves from state to state in response to external “inputs”. The control may be either “deterministic” meaning that the automation cannot be in more than one state at any one time, or “non-deterministic” meaning that the automation can be in more than one state at once. This distinguishes two class of finite state automata. They are: -   The Deterministic Finite Automata -   Non-Deterministic Finite Automata Applications of Finite State Automata: Basis for programs line spell checking, grammar checking, indexing, searching large body of text, recognizing speech, transforming text using markup languages line XML and HTML and network protocols that specify how computers communicate.

What is Simulation?

Simulation is the imitation of the expression of a real world process or system overtime. Simulation involves the generation of an artificial history of a system and the observation of that artificial history to draw inferences concerning the operating characteristics of the real system.