11,557 Posted Topics

Member Avatar for whizkidash

Are you sure you accidentally aren't running the cronjob from multiple users on the server? Two users might have the same crontab file accidentally. Just a thought?

Member Avatar for Dani
1
1K
Member Avatar for Vistoconsultant

Two words: **it's not**. In fact, Google has made it very clear that over-optimization of content is a great way to get a manual penalty. That means don't keyword stuff, or do anything similar to keyword stuffing, creating spun content, or anything like that. Focus on creating great content that …

Member Avatar for Trasser
0
454
Member Avatar for shraddha_patel

Sorry, I'm not quite sure what you mean by the image source. Do you mean the URI of the image? So, let's say you have: <img id="my-image" src="image.gif"> Then you can use jQuery to do something like: variable = $('#my-image').attr('src');

Member Avatar for Dani
0
172
Member Avatar for jessecasey

DaniWeb incorporated a live chat feature a couple of months ago, and I certainly don't regret it. It's a great opportunity to engage with people in a more laid-back setting, and also with a bit more instant gratification. I think you definitely learn 100X more about a person over the …

Member Avatar for Juliya15
0
202
Member Avatar for D_1

rproffitt, may I ask why you would recommend that a small business hire a digital strategist? IMHO, this should be the CEO/CMO's job until the company is *very* well established, and certainly not one of the first handful of hires. It's often much more cost effective to outsource to an …

Member Avatar for D_1
0
603
Member Avatar for queena999
Member Avatar for Dani
0
283
Member Avatar for kinzaajmal

I haven't looked at C++ in nearly two decades, but from what I can remember, it should be: cout << "enter name\n" << endl; The new line character should be \n instead of /n and also be within the quotes. However, both \n and endl jump to the next line, …

Member Avatar for Dani
0
735
Member Avatar for jParker66

Sorry, I guess I’m a little confused by what you mean by tag? HTML tag? Like `<SVG>`?

Member Avatar for gentlemedia
1
3K
Member Avatar for Rushabh Verma
Member Avatar for cameliajohn

> Digital marketing is NOT SPECIAL. It's just marketing done over the Internet or some call digital signage, digital marketing. Nothing has really changed in marketing. Just a change in having more delivery options. I cannot disagree with this more. Digital marketing is unique from marketing that has been traditionally …

Member Avatar for Nilesh_7
0
688
Member Avatar for sanjay.vaniya
Member Avatar for Dani
0
663
Member Avatar for Dani

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 blog system PrevNext plugins. More recently, Q&A platforms have been shifting to show a sidebar listing of other similar questions …

Member Avatar for Dani
2
2K
Member Avatar for samreen_4
Member Avatar for Ayush_5
Member Avatar for Dani

An oldie but a goodie, for you Canadians out there. I thought I'd make the solution provided within [this thread](https://www.daniweb.com/hardware-and-software/hardware/threads/94301/help-my-keyboard-does-french-instead-of-question-marks) a bit easier to discover for those still suffering from the problem. To switch between English and French keyboards, press `Shift+Control`.

2
2K
Member Avatar for Dani

This is the code behind the demo at https://www.daniweb.com/connect/oauth/demo

1
3K
Member Avatar for creativelions
Member Avatar for Gloak

Hi, My apologies for taking so long to reply to this. DaniWeb itself is written in CodeIgniter, and I love it. I find that it's a very lightweight PHP framework, and I used it to roll my own ORM, etc. Codeigniter has a session management library, but you would still …

Member Avatar for Dani
0
522
Member Avatar for useruno1

I think he’s trying to show the format of the links to see if there is regex or something that can be used to mass deindex them. I believe wildcard characters are included. I can’t provide more advice without seeing the format of the original links that were snipped unfortunately.

Member Avatar for useruno1
0
4K
Member Avatar for alan.davies

Yeah, traffic has been poor recently, as has activity. There was a strong uptick that lasted for a few months after our relaunch back in October, then it plateaued, and now the past few weeks have seen a decline. I'm not giving up on user matching quite yet. I'm actually …

Member Avatar for alan.davies
1
1K
Member Avatar for Dani

I'm not quite sure what happened, but at some point fairly recently, Chrome DevTools stopped showing things in the Console. As a web developer, I obviously frequently use this to debug Javascript. Now, instead, there will be a little red circle with an error count in the top right corner …

Member Avatar for rproffitt
1
2K
Member Avatar for Dani

You might be familiar with the dreaded blank page when your PHP script doesn't work. Here's how to spit out errors to the screen, instead of getting just a blank page, as well as logging errors to a file.

1
2K
Member Avatar for Dani

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 much more convenient, with the trade off being that it takes up much more memory, and is not ideal if …

0
2K
Member Avatar for DaniWebUser_1

From [this page](https://www.daniweb.com/connect/profile/community)

Member Avatar for Dani
0
2K
Member Avatar for rproffitt
Member Avatar for rproffitt
0
3K
Member Avatar for Zainab_7

It would help if you gave us some more information about what it is about Big O notation that you find confusing. Where are you stuck? What, specifically, is confusing you that we can help with?

Member Avatar for Dani
0
377
Member Avatar for Dani

We have a Swagger file for our API, but in our API documentation, we want to show valid responses for each endpoint. I coded up this little recursive function in PHP which takes our Swagger file and spits out a valid response. I use it as follows, for each individual …

0
2K
Member Avatar for Dani
0
2K
Member Avatar for kesavankani

Sorry I'm confused by your question. You created four select boxes: one asking to select state, one district, one city, one town. You want to change the other three each time you change the state select box, is this correct? I think what you're asking is similar to what we …

Member Avatar for Dani
0
397
Member Avatar for Dani

I'm looking for some alternatives to Swagger UI that I can use with my API's swagger file to generate our official documentation. So far I've been looking at Apiary and ReDoc. Does anyone have any favorites? Which are the most intuitive for api documentation? Ideally I'd be looking for one …

Member Avatar for pankaj_patel
0
3K
Member Avatar for happygeek

I'll make this more clear in the future. Currently on vacation for Thanksgiving break.

Member Avatar for happygeek
4
4K
Member Avatar for John_165

Yes, the 2 points should be deducted if the comment is removed. I'll look into fixing this tomorrow. Thanks for the catch.

Member Avatar for Dani
2
4K
Member Avatar for Todd_Gordon

I’ve found press release websites don’t perform as well as they used to. 1 good quality backlink can be worth 100 poor backlinks. For top tier (e.g. editorial backlinks from sites like the Huffington Post) then look into responding to HARO queries on a daily basis.

Member Avatar for Dani
-1
427
Member Avatar for rproffitt

Those are notifications about incoming instant messages, hence new *message* notifications, as opposed to *forum post* notifications. Post notifications are always instant.

Member Avatar for rproffitt
0
2K
Member Avatar for duweihan

It looks like there are rows in the database in which the value of the class field is empty or null. You can adjust your query to be `SELECT DISTINCT class FROM classname WHERE class <> '' AND class IS NOT NULL`

Member Avatar for RuhiAngel
0
420
Member Avatar for tun712

I use https://github.com/lightningtgc/MProgress.js and I find it works great. Sometimes there's no benefit to reinventing the wheel.

Member Avatar for RuhiAngel
0
448
Member Avatar for erankita

What database? If you're using MySQL, for example, you could do something like the following: UPDATE records SET status = 1 WHERE timestamp < NOW() - 24 HOUR In this case, the `timestamp` column is a MySQL timestamp. We are setting status = 1 if the value of the column …

Member Avatar for Dani
0
283
Member Avatar for Dani

Member profiles now have a new statistic that measures impact. It counts how many people the user has reached. It should be noted that we just started calculating this number earlier this year, so at this time, the highest number is roughly one million.

Member Avatar for rproffitt
2
2K
Member Avatar for Jeff-Bennett

Check out DaniWeb Connect, which is designed to connect people one-on-one who are within a geographical area to discuss specific topics. Go to https://www.daniweb.com/connect and then type the desired keywords (e.g. amazon, alexa, etc.) in the Skills and Interests field.

Member Avatar for rproffitt
0
308
Member Avatar for ajay@7838

I'm not sure what you mean, rproffitt? It looks like he's looping through each row in the result set generated from query $q, and saving the row in an array $r for the iteration of the loop. That's what I do as well.

Member Avatar for alan.davies
0
362
Member Avatar for Purva_1

Please upload the file C_workOrder.php It says the error is on line 83, but the PHP code you are showing us only has 21 lines, so we can't investigate line 83 for you.

Member Avatar for Dani
0
400
Member Avatar for John_165

We have had a problem with Hotmail delaying email we send out because it gets flagged as fraud. It should arrive in about 24 hours. Otherwise, please use a non-Hotmail email. Sorry for the inconvenience.

Member Avatar for John_165
1
4K
Member Avatar for Reverend Jim

I'm not Canadian, but I am of the belief that this goes completely against religious freedom, at least as the U.S. defines freedom of religion. For many people, yarmulkes, hijabs, turbans, etc. are a required item for their personal level of comfort and/or modesty. I don't know anyone who wears …

Member Avatar for Reverend Jim
0
14K
Member Avatar for umer_12

It depends what you have to offer and what industry you're in. If you're a programmer, having a Github account with open source projects or contributions is vital.

Member Avatar for Dani
0
358
Member Avatar for TemplateTrip

A 5xx error means that the web server is configured incorrectly. When I tried to load your website, it took a *very* long time to load, but it finally did, without any 5xx errors. It's possibly that your website was temporarily down while Googlebot crawled it. However, this problem is …

Member Avatar for Dani
0
302
Member Avatar for SpottyBlue

Sorry, I'm not understanding what you're trying to do. It looks like you're checking to see if an email is the same as a staff's email address, and if it is, don't use your own email?

Member Avatar for Dani
0
396
Member Avatar for nesma_1

I don't see `if (isset($_POST['add_submit']))` anywhere in your code. Please show the code that includes that and then I can let you know if there are any typos that might be causing issues. However, I do notice that on both lines 6 and 12 you are inserting $brand into the …

Member Avatar for Dani
0
315
Member Avatar for duweihan

Sorry, I'm a little confused by what you mean. What do you mean by retain the selected value? When do you want it to retain the value? After submitting the form? A dropdown will default to the option that has `selected` specified. So, for example, when iterating through the while …

Member Avatar for Dani
0
2K
Member Avatar for Dee_2_dee

It’s hard for anyone to help you because you’re not really describing what your problem is. Is the code you provided not working? Are you getting any error messages? Your topic title says to write an algorithm and then you just posted a bunch of code. We are confused how …

Member Avatar for rproffitt
0
1K
Member Avatar for dongtrien
Member Avatar for dongtrien
0
429

The End.