We equally welcome both specific questions as well as open-ended discussions, but if you do have a question, we connect you with likely answerers by alerting them to help

Recent Answerers
Answered 2,255 Q&As 74 Endorsements
Answered 1,264 Q&As 258 Endorsements
Answered 2,272 Q&As 138 Endorsements

Participate in, or lead your own, realtime chats about your favorite interests

Explore Group Chats

Our patented matching algorithm does more than just connect question askers with answerers …

Whether you're looking for a professional mentor or to engage in business development, our smart networking tool recommends people matches based on your professional goals

All that patented goodness is bundled into our API so you can build apps that tap into our entire people matching database

Web Development
Member Avatar

Hey guys,

I have the following code...

And what I want it to do but cant get it to do is add up all the price fields and change the …

Software Development
Member Avatar
import java.util.Scanner;
class bank{
    public void termDeposit(){
        int principle;
        double rate,years;
        Scanner sc=new Scanner(System.in);
        System.out.print("Enter Principle Amount : ");
        principle = sc.nextInt();
        System.out.print("Enter rate od interest : ");
        rate = …
Topic by sujoy98
  1. The class bank is bad defined, u need follow the code conventions; when u define a class write the first letter in Uppercase, for example Bank. If u need …
Networking
Member Avatar

Hi Guys. I knw what I want to achieve but not how to achieve it! Any hints would be gratefuly received, or, if it's not possible, tell me so I …

Member Avatar
Programming
Member Avatar

Hi. here is my code, actually what i meant is , i have created a button called button into my exe, and linked it to text file. so when user …

Search Engine Strategies
Member Avatar

As of this morning, the Speed Report (Experimental) in Google Search Console has been replaced by a more robust Core Web Vitals report.

It still is broken up into a …

Member Avatar
Software Development
Member Avatar

I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …

Computer Science
Member Avatar

I solved a problem some day ago. In that problem you had to format an integer. I found it hard to solve. So here I am sharing my problem with …

Software Development
Member Avatar
import java.util.Scanner;
class bank{
    public void termDeposit(){
        int principle;
        double rate,years;
        Scanner sc=new Scanner(System.in);
        System.out.print("Enter Principle Amount : ");
        principle = sc.nextInt();
        System.out.print("Enter rate od interest : ");
        rate = …
Topic by sujoy98

You have a single quote at the end of line 43.

For the corect syntax of a switch, with examples, see the Oracle tutorial page here

ps: You keep creating …

Member Avatar
Member Avatar
Search Engine Strategies
Member Avatar

As of this morning, the Speed Report (Experimental) in Google Search Console has been replaced by a more robust Core Web Vitals report.

It still is broken up into a …

Mobile and Wearables
Member Avatar

If the schools that my kids attend are anything to go by, it seems that high on Santa's list this Xmas just gone was an iTouch, iPhone or iPad depending …

Member Avatar
Member Avatar
Digital Marketing
Member Avatar

How can I tell how much bot traffic I'm getting in Google Analytics?

I've been doing a lot of work on improving my crawl budget and I want to see …

Software Development
Member Avatar

Hi Guys.

I'm getting bored, and so I'm looking at Python for a new challenge. I hoped to be able to use my Java NetBeans IDE to avoid an IDE …

Digital Marketing
Member Avatar

I have a memes website and I want to drive traffic from social media. I have a Facebook page with 20,000+ fans but when I post I hardly get any …

Web Development
Member Avatar

Hello! I needed a configuration file for a application I'm working on so I first used the built in ini functions in php but it wasn't easy to write the …

php
Web Development
Member Avatar

I have spent a lot of time on this question, namely, how to programatically use a PHP script to send a PDF document to the printer without launching the Adobe …

Networking
Member Avatar

Looking for an efficient way to block p2p content on a hotel network.

Databases
Member Avatar

I'm trying to create a trigger that does two things, first take an ip that's in dot notation and run inet_aton on it and put the result in another field. …

Topic by larry29936

Dear larry
You need not to have two triggers. Only before insert trigger is fine.

Networking
Member Avatar

We had a bug a little while back where we were accessing an old database for the GeoIP API.

That meant that, for users whose geolocation were mapped from their …

Web Development
Member Avatar

I'm trying to use CSS as so:

<link rel="stylesheet" media="screen and (max-width: 991.98px)" href="/files/mobile_css/daniweb.css" type="text/css">
<link rel="stylesheet" media="screen and (min-width: 992px)" href="/files/css/daniweb.css" type="text/css">

I want to load one CSS file …

Search Engine Strategies
Member Avatar

Should I be noindexing or fully blocking search result pages from my robots.txt?

Search Engine Strategies
Member Avatar

Is there an advantage to submitting my AMP pages to my Google sitemap?

I am using <link rel="amphtml" … but I was wondering if submitting them lead to faster discovery? …

amp
Digital Marketing
Member Avatar

I am using GAM as so:

<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {

        googletag.defineSlot('/86406173/ArticleLeaderboard', leader_size, 'div-gpt-ad-1321481451196-0').addService(googletag.pubads());
        // etc.

        googletag.pubads().collapseEmptyDivs();
        googletag.pubads().enableLazyLoad();        
        googletag.pubads().enableLazyLoad({
            fetchMarginPercent: 200,
            renderMarginPercent: 100, …
Web Development
Member Avatar

Do you still use reCAPTCHA or something homemade?

For us, we use jQuery to inject a hidden form field upon form submission that sends a little time sensitive and cookie …

Databases
Member Avatar

My code has a query that looks like:

INSERT INTO table
VALUES (...)
ON DUPLICATE KEY UPDATE
    id = LAST_INSERT_ID(id),
    …

id is a PRIMARY KEY.

My question is that …

Topic by Dani

As mentioned in my previous post, row-level locking allows multiple simultaneous updates to the same table. The individual rows are locked for update instead of the entire table.