Web Development
Member Avatar

hi, i have installed XAMPP, but i would like to run my localhost from another computer..

php
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 …

Meta DaniWeb
Member Avatar

I have it set to Daily Digest yet I get near instant alerts on posts I am watching. Maybe broke, or it's just me.

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 …

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 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 …

Software Development
Member Avatar

Python-wxPython Tutorial

This tutorial will take you through the basics of wxPython.

Introduction:

Let's face it. I am a dinosaur. I got my computer science degree in the mid 70s. …

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?

Digital Media
Member Avatar

To AMP or not to AMP, that is the question.

For those who have decided to implement AMP (Wordpress users, I'm looking at you!), have you noticed a difference since …

Information Security
Member Avatar

Living in California, I periodically need to log into my computer that's back in my home in New York. Not that often, typically just a couple times a year.

But …

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.