newcoder1010

Members
  • Content count

    306
  • Joined

  • Last visited

  • Days Won

    2

newcoder1010 last won the day on September 3 2016

newcoder1010 had the most liked content!

Community Reputation

3 Neutral

About newcoder1010

  • Rank
    Member

Recent Profile Visitors

14,009 profile views
  1. It did not give me the line no. https://drive.google.com/open?id=1FtMZVH2qm8zFAsONqFRWjvB6QRFlqZ8iXd2EbCRd-Tc
  2. This block of the code causing it. Please advise. //System.out.println("column names " + row1.getCell(col).toString() ); // if("result".equalsIgnoreCase(row1.getCell(col).toString().trim())) // { // resultcol = col; // System.out.println("result column number " + resultcol ); // // }
  3. I am not a good debugger. I need to learn how to debug in eclipse. First, I commented all code. Then I un-commented one line at a time and ran it. I dont have any error until I reach this line: System.out.println("column names " + row1.getCell(col).toString() ); Even though I get the error, it still printed all the messages from the above code.
  4. Hello, Hello, I am a beginner of java. I wrote this code. When I run it in eclipse, I get an error: java lang null point exception. It does not tell me which line I have wrong code. Please advise on how to fix it. // Open the Excel file FileInputStream fis = new FileInputStream(file); // Access the required test data sheet HSSFWorkbook wb = new HSSFWorkbook(fis); HSSFSheet sheet = wb.getSheet("Sheet1"); int TotalCol; int TotalRow; // TotalCol = 0; TotalRow = sheet.getLastRowNum(); TotalCol = sheet.getRow(0).getLastCellNum(); System.out.println("row " + TotalRow + " col " + TotalCol); int resultcol; resultcol = 0; for(int col = 0;col<=TotalCol;col++){ HSSFRow row1 = sheet.getRow(0); System.out.println("column names " + row1.getCell(col).toString() ); if("result".equalsIgnoreCase(row1.getCell(col).toString().trim())) { resultcol = col; System.out.println("result column number " + resultcol ); } }
  5. .service::after { background: rgba(0, 0, 0, 0) url(https://www.w3schools.com/html/html5.gif) no-repeat scroll center center / 100px auto; content: ""; height: 50px; left: 50%; margin-left: -30px; position: absolute; top: -30px; width: 50px; opacity: .3; background-color: blanchedalmond;//? } Can I put a background color on the above image as well?
  6. Previously I only had html then applied css in a css file. Did not work. <h1>This is a Blue Heading</h1> Now, I had to put the style within the template file. It worked. <h1 style="color:blue;">This is a Blue Heading</h1> Thanks.
  7. Hello, I have this html from a pop up window: https://drive.google.com/open?id=1Uk1U1_CaGw-DuoHeLBT8rziXrWgEFEaQseUfc2f4rDg I am trying to color the fonts. I tried the below css. None of them worked. Please advise. #colorbox { color: wheat; } #cboxWrapper .popup p{ color: wheat; } #cboxWrapper body { color: wheat; padding: 20px; } Thanks.
  8. Thank you so much. It worked out perfect. This is the output. https://drive.google.com/open?id=1AjmH_e1qRmcJYTALE-Ch76cuHRmBWGmrKm5vMRR49RQ
  9. HTML: <div class ="col-md-4 service"> <br> <h2> Service title </h2> <p class = "mytext"> Service descriptionn test test test test test test test test test test test test test test test test test test te test test test test test test test test test test test test test test test test test test test test test test test test test test test test st test </p> </div> CSS: .service { border: 1px solid red; position: relative; } .service::after { background: rgba(0, 0, 0, 0) url(https://www.w3schools.com/html/html5.gif) no-repeat scroll center center / 100px auto; content: ""; height: 50px; left: 50%; margin-left: -50px; margin-top: -100px; position: absolute; width: 100px; } If I give padding to .services class, image relocates to inside the services class. Also, image relocates as I am adding the texts to p class "mytext". Definitely I made progress but I am confused how to place the image in the same place regardless of padding to services class or length of texts in mytext class. Please advise.
  10. Sounds complicated. I will let you know. Thanks.
  11. Hello, I would like to place a border with an image around an element similar to this one. Please advise or refer me to some resources. So I can try it out. https://drive.google.com/open?id=0B7xIEuVi005yX29uNC1hMDhmZU0 Thanks.
  12. I applied line height only to desktop version. For other devices, it will be two lines. Thank you.
  13. Hello, I have h1 tag. I would like to place it in center and then vertical align to middle. I was able to place it in center but I am not able to place it vertically in the middle. This is the css I have. I used padding top as workaround which works somewhat. I also placed vertical-align to middle but it did not do anything. Please advise. .node-type-properties h1 { display: block; /* background: blue; */ background-image: url(/rincon/sites/default/files/bg-blue.png); height: 200px; background-repeat: no-repeat; width: 100%; text-align: center; /* vertical-align: middle; */ padding-top: 7%; font-size: 55px; color: white; }
  14. I updated my google doc if that helps. Removed the top region. Still same issue. .row.topregion { display: none; background: #2f2d2d; }
  15. Hello, When I visit the my site in mobile phone, I am not sure why it is forcing me to scroll right. Everything should fit into mobile screen size. I thought callus block creating the issue. I display:none; to the callus block and I still have issue. I have gone thru every row to see if I have hard code width by mistake and I did not see it. I am just confused. Please advise. https://drive.google.com/open?id=1IZFTADisQPmG3bFqEtpnRJzBS6KUHHI9VmEtkK3TG3w