Skip to main content

Posts

Showing posts with the label technology

Solution to "child margin affects parent" in CSS

The browser implementation is that when the parent has no content and the child requests for margin, the parent is brought down instead of child going down. The solution for these are listed below with their side effects. floats , You  have  to float elements border-top , This pushes the parent at least 1px downwards which should then be adjusted with introducing  -1px  margin to the parent element itself. This can create problems when parent already has  margin-top  in relative units. padding-top , same effect as using  border-top overflow: hidden , Can't be used when parent should display overflowing content, like a drop down menu overflow: auto , Introduces scrollbars for parent element that has (intentionally) overflowing content (like shadows or tool tip's triangle) See the Pen Relative with Margin by Manikanta ( @immnk ) on CodePen .

sample data for IBM Machine Data Accelerator and apache log sample

Days back when I was trying to do a tutorial on IBM Machine Data Accelerator, I was unable to download the required sample data for it. It was because that IBM server was down for maintanence. I thought maybe I can host some sample data which might be useful at times. Here are the links for the same: Code and Data for IBM Machine Data Accelerator Apache console logs

Redirection in javascript

How Page Re-direction works ? Example 1: This is very simple to do a page redirect using JavaScript at client side. To redirect your site visitors to a new page, you just need to add a line in your head section as follows: <head> <script type="text/javascript"> <!-- window.location="http://www.newlocation.com"; --> </script> </head> To understand it in better way you can  Try it yourself . Example 2: You can show an appropriate message to your site visitors before redirecting them to a new page. This would need a bit time delay to load a new page. Following is the simple example to implement the same: <head> <script type="text/javascript"> <!-- function Redirect() { window.location="http://www.newlocation.com"; } document.write("You will be redirected to main page in 10 sec."); setTimeout('Redirect()', 10000); //--> </script> </head> Here  ...

Where is my session timeout error jsp page?

It is very common to encounter the session time-out page when using IBM WebSphere portal while developing. Most times there would be a client requirement to modify the way things are done automatically. While in the last post  I have mentioned about how to change the session time-out value, I am going to talk about modifying the session time-out error page.

Implicit objects in JSP page

By default  page, request, session and application  objects are available to JSP pages. So you can access then using EL syntax. And following table shows IMPLICIT objects available to EL. Implicit object Description 1.      pageScope Scoped variables from page scope 2.      requestScope Scoped variables from request scope 3.      sessionScope Scoped variables from session scope 4.      applicationScope Scoped variables from application scope 5.      param Request parameters as strings 6.      paramValues Request parameters as collections of strings 7.      header HTTP request headers as strings 8.      headerValues HTTP request headers as collections of strings 9.      initParam Context - initialization parameters 10. ...

College to Corporate

The transition from college to corporate is drastic and expanded .  It has changed me the way I behave and the opinions I used to have. There are different corporate cultures and I would like to give only that I have experienced .

General tips for the life

Some tricks that might be helpful If you have to pay a company to work for them, it's a scam . Walk away. When composing a professional e-mail , do not put in the recipient's e-mail address until you have typed the entire e-mail. If you're dropping somebody off at their home, make sure that they are able to get in before you drive away.

General Tips for people having computer

Sometimes there might be a situation for you when you needed a shortcut but you might have not known it at that moment. So here are my few tips for doing better with PC. You can open your PDF files in your browser . There might a situation when you want to open a PDF file in a virtual machine and it doesn't have a PDF reader. Almost all operating systems will have a built-in browser or a browser of your choice, you can simply rely on it. Editing a word document is easy online . When your virtual machine or host machine itself doesn't have a word editor or any spreadsheet editor, you can simply edit it online using  Microsoft Word 2013  or  Google docs . You have to login for that to happen and an active internet connection.You have to upload a word document to  OneDrive  for editing using Microsoft Word online. In order to have better startup time when starting the PC, you should have a check on the startup programs. To get better understanding of...

How to do good programming ?

"If computer programming is to become an important part of computer research and development, a transition of programming from an art to a disciplined science must be effected." Computer scientists are taught to program properly, just like linguists are taught how to write literary texts. However, not all computer scientists are programmers , just like not all linguists are writers, although most of us program regularly. For some reason, many programmers seem to think their role is to write code that makes things work. It’s not. Your job is to solve a problem with code in the most elegant way, such that your solution is easy to adapt, modify and reuse . Just like “the grass is green and the sky blue” is not literature, although it might perfectly describe the environment, coding something that just works is not programming. It’s fiddling. Most people do the wrong thing correctly and think that it is correct. Here is the post which illuminates such things and guide ...

Can our government print as many as currency notes it wants?

Can our government print as many as currency notes it wants? No . Our government cannot print as many as currency notes to reduce its economic deficiency. Indian government is different from other governments. If you observe our currency notes, there is something as, “ I promise to pay the bearer the sum of fifty rupees ” for a fifty rupee note. This states that at any point of time if anyone doesn't want this paper note then the government is liable to pay equivalent resource.

How to burn files to a CD or DVD using windows 7/8

CD Discs can be used in any computer with a CD or DVD drive, whereas DVD discs can only be read by a computer with a DVD drive installed. Most modern computers have a dual purpose drive installed which is capable of reading and writing to both CD and DVD discs.

CodesnGears

CodesnGears Place : Avnet services / Ascendant Technologies, Chennai Time and Date : 20:30 21 st February 2014 to 09:30 23 rd February 2014 Website : http://www.codesngears.com/ Description : Okay, let me get straight to the point about how the event just went and what is the core feature of the hackathon conducted. Firstly this is a 36 hour event where everything is provided right at the office. Ascendant Tech has good space for this event within the office and we have been provided with all the amenities. I have a solid team on my side which is prepared for the battle when the event details are announced to us through HR team. The students who are selected to Ascendant have called to know their interest in participating. We all said yes and we had a couple of meeting about the kind of project that has to be selected and an abstract has to submitted so that a review will be done by the managers at Ascendant and a decision will be taken about selecting.

Solution to "Virtual router cannot be started"

Three golden rules have to be followed. Step 1: Download and install latest drivers for your laptop computer. Step 2: Click start, enter “cmd”, press “ctrl + shift + enter”. This allows you to open DOS under admin. Copy and paste the following two commands into cmd, one by one. netsh wlan set hostednetwork mode=allow ssid=Test key=password netsh wlan start hostednetwork Remember to run it in administrator mode. Otherwise you cannot perform the task. Ssid is the network name and you can set anything you want. You need to change where there is Test in our example. Set your password greater than 8 characters. You can stop broadcasting the network by this command         netsh wlan stop hostednetwork Step 3: Start your virtual router and it should work well. Tips to troubleshoot: Share your internet connection with Test (ssid of the virtual router) connection. See in that image, I have shared the BoysHostel2014 inter...