Community Center
Member Avatar

Hey there forum lurkers - all you people who are browsing the site but still haven't taken a minute to sign up. I just thought it would be a nice …

Mobile and Wearables
Member Avatar

An early Xmas present to myself arrived at Chez Moi last month in the shape of a rather thick credit card. It's not actually a credit card though, and while …

Databases
Member Avatar

Here is a basic question, what is the fastest way to transfer a MySQL database?

Here are the variables at play:
1) Database is just shy of 3GB
2) Transfer …

Web Development
Member Avatar

I have a search script that a user may search persons etc. I want to display a message if what he or types doesn't exist in the array. By default, …

Mobile Development
Member Avatar

Last week a group of six 'm-commerce' experts took part in a round robin discussion in Manchester, England to determine the best ways forward for developers interested in creating a …

Programming
Member Avatar
Web Development
Member Avatar

There are two ways to write to a file in PHP. You can either open a stream, and write to it in parts, or you can use file_put_contents() which is …

php
Meta DaniWeb
Member Avatar

Before anyone files a bug report, we are no longer pretty printing (using javascript to add line numbers & color coding) code snippets when on mobile browsers for performance reasons. …

Software Development
Member Avatar

how can i print 3 values(without knowing their string\number size) in same column using cout?
i'm using these code:

cout <<"\n" << "show tokens\n";
        for(unsigned int i=0;i<Tokens.size(); i++)
        {
            cout …
c++
Software Development
Member Avatar

Hi guys, I was trying to sort an arrayList using a comparator but I didn't have much luck, or at least it seems like there is something slightly wrong with …

UI / UX Design
Member Avatar

A lot of forums and blogs have links at the bottom of the article to jump to the Previous Post or the Next Post, by way of various forum and …

Programming
Member Avatar

I making an android app which need to display data analysis in Gantt Chart.
I implement this library from https://github.com/PhilJay/MPAndroidChart and it runs smoothly in my app.

But what I'm …

Web Development
Member Avatar

I'm getting Session: Error while trying to free lock for ci_session show up in the error log a couple times a minute, sometimes, and every 15 minutes other times. …

Topic by Dani

Two years later and I'm still struggling with this.

Software Development
Member Avatar

Are there any differencies between these two code ?

    if (!a.equals("")) {
                editDate.setText(a)
     }

and

  if (a!="") {
        editDate.setText(a)
    }
Search Engine Strategies
Member Avatar

I am currently working with two Social Media sites. Facebook, and Pinterest. But there seems no way around paying for traffic. I don't want to pay for traffic. I post …

Mobile Development
Member Avatar

When posting code, I get error

begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not …

Software Development
Member Avatar

Hi guys,
I am having an issue finding duplicates in an arrayList.
Here is some code

        studentRecords.add(new Student("Jo", "Pip", "JP000", LocalDate.of(1999,9,23), Sex.FEMALE));
        studentRecords.add(new Student("Tara", "Bot", "TB345", LocalDate.of(1991,9,1), Sex.FEMALE));
        studentRecords.add(new Student("Mara", …
Software Development
Member Avatar

HI everyone,

   _SBLOCK *allocateMemBlock(size_t size)
[
_SBLOCK *block = (_SBLOCK*)sbrk(0);
void *memadr = (void*)sbrk(0);
void *allocate_mem = (void*)sbrk(BLOCK_SIZE + size);
if(allocate_mem == (void*)-1)
[
return NULL;
]
else
[
block->next …
Software Development
Member Avatar

For this particular sub I type the customer id in a text box and then click the button, then I'm trying to get the relative information pertaining to that id. …

Community Center
Member Avatar

Is everyone familiar with this game? Just reply with the first word that comes to your mind when you think of the last word posted. You can't respond to the …

Software Development
Member Avatar

This simple isprime(number) function checks if the given integer number is a prime number and returns True or False. The function makes sure that the number is a positive integer, …

Community Center
Member Avatar

I think I finally understand why Trump is doing so well (he recently pulled even with Hillary Clinton). It's only after years of shows like American Idol and America's Got …

Mobile Development
Member Avatar

Hey all long time no see!! As i started Internet Marketing i quited to code but somehow everything is about coding... :D
So i am trying to come up with …

Software Development
Member Avatar

i'm creating a program using Code Blocks with GNU\GCC compiler.
i'm using Windows 10 with Windows Defender.
my program create a txt files(instead a text files, we can speak binary …

c c++
Community Center
Member Avatar

I'm hoping that people will post unusual or little known facts here. It would be proper to include a link to a source for confirmation. Here's a start.

Speedy Gonzales …

Databases
Member Avatar

DaniWeb was written in Codeigniter, and when posting to the forums, we use database transactions that look like this:

$this->db->trans_start();

... insert into the posts table …
... update the …
Search Engine Strategies
Member Avatar

PART 1

  1. INTRODUCTION: When you are starting with your first SEO project, you may feel as if you have been told to empty the ocean with a teaspoon, there …
Microsoft Windows
Member Avatar

I'm asking this question in the context of a satellite internet service with expensive download limits...

If you just accept all the recommended updates for Windows 10 (creator's update, security …

Meta DaniWeb
Member Avatar

As of today, DaniWeb offers a completely ad-free experience to sponsors!! What do you think? Is it enough to sway you to donate $5/mo for all the benefits you get?

Community Center
Member Avatar

What are your favorite hobbies on the computer outside of work and DaniWeb, of course? Personally, I'm a Quora addict.