11,530 Posted Topics
For those of you who remember, the old DaniWeb API went away over the summer when we switched to the Dazah platform. We have a new little API launched now to access articles/posts. However, you can now use Dazah to connect with the entire DaniWeb community. https://www.daniweb.com/welcome/api | |
Re: This function tells if characters exist in a string: http://php.net/manual/en/function.strspn.php ![]() | |
Re: Can you please include the full files so that we can see what is on the specific lines that are having the issues? | |
Re: I'm not near my computer right now (just on my phone being an insomniac in bed) but I would guess fb_share? Isn't there documentation next to each endpoint saying what scope is required for it? | |
Re: Haha ... I guess it's a proper name? | |
Re: CodrIgniter's pagination library just builds the links you can use to navigate the page. You still need to feed the page number and rows per page into the method you use to do the actual database query and limit it from only retrieving the desired rows, based on the current … | |
The other day I tweeted that MySQL unions are my new best friend. I just want to take that back. I just spent the past six hours (it's now 5 am) overhauling a MySQL query and removing one of the unions actually sped up performance. Dazah is really my first … | |
| |
Re: The very best place to submit a bug report is here. You can tag the thread with bug if you'd like, but please always submit one bug per thread :) That being said, I'm so super sorry this happened to you. Are you able to reproduce it? What does the … | |
What is FIND_IN_SET() performance like? It it something that should be avoided at all costs? I want to search a column that consists of comma-delimited numbers for rows that contain a specific number. | |
Re: It has nothing to do with how you're posting the link and everything to do with our link checker not being able to retrieve it. Let me know if this happens again, as it might just be a problem with the HTTP response that databasejournal is throwing to our DaniBot. | |
Re: > Can Daniweb (or any other forum or anyone who knows about account2@gmail.com) figure out that account1@gmail.com exists and is controlled by the same person who controls account2@gmail.com? If you log into Dazah or another app by using the "Login with Google+" button, then it pulls in all of your … | |
Re: Are you meaning to ask a question or just share the definition from [Tutorials Point](https://www.tutorialspoint.com/java/java_arraylist_class.htm)? | |
Re: I don't mean to troll or spam, but why not just use [Dazah](https://www.dazah.com/developers) to create a chat? It handles all the database stuff. ![]() | |
Any entrepreneurs in India out there in Internet land? I just stumbled upon this article https://developers.google.com/startups/ called the Google Launchpad Accelerator where Google is bringing startups from India all expenses paid for a 2 week accelerator program in Silicon Valley. Obviously the goal is so that startups will have more … | |
Does anyone have any experience with Google's PageSpeed Module? https://developers.google.com/speed/pagespeed/module/ How often does it break things? | |
Re: Hi Dave!!!!! Super welcome back. Of course I remember you ... you were originally from JustLinux, right? Looks like you were last active back in 2006. Wow, was it really that long ago?! We were going super duper strong between 2007 - 2013 or so, and then things started on … | |
Re: It sounds to me like a cookie issue, but I only have access to an iPhone and I can't reproduce this on Chrome for iOS. Can someone who has an Android please test it out? | |
Re: I haven't used internet explorer in more years than I can count. In fact, didn't Microsoft kill it and replace it with Microsoft Edge or something in Windows 10? | |
Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control … | |
Re: I'm sorry, can you clarify? It's disconnecting randomly when plugged in via Ethernet and it's not giving off a wifi signal at all and the IP address just times out? But it works for a limited amount of time when hardwired? Did I understand that correctly or am I just … | |
I am currently living in California and I periodically RDP to my home computer in NY. I'm not quite sure how this happened, but from the last time I logged in a few days ago, to today, my user account has been mysteriously deleted?! Perhaps Windows Update did something flaky? … | |
Re: If you're using bootstrap, you should be able to just add the `clearfix` class to the page-header, as so: <div class="page-header clearfix" style="background-color:#A0C9E0;"> If you're not using bootstrap, or as an alternative, you will want to manually add the clearfix right before closing the header, as so: <!-- <div id="header"> … | |
Re: Hi, We use both memcached and redis, which are both key-value storage. We use them to cache data that is significantly more expensive to retrieve from the database. Basically the logic would be something like this: Attempt to retrieve data from cache If data exists in cache: Show it If … | |
Re: This isn't really something I have any experience with, but are you talking about something like this?? http://dev.mysql.com/doc/refman/5.7/en/user-variables.html | |
Re: With that amount of traffic, VPS should be fine. Is there a reason you want to be on a dedicated server? Are there any limitations with your existing hosting provider? | |
How on earth do I get Google Analytics to filter out the tremendous amount of referral spam that is showing up in my reports?! For those of you who are unaware of what I'm talking about, do a google search for "google analytics referral spam" to see what I mean. … | |
I'm having a little brain fart and I just want to double check something ... // Array of [a,b,c,d] $array = array('a', 'b', 'c', 'd'); // Loop through array foreach ($array AS $letter) { // Break out of the loop on a specific condition if ($letter == 'c') { break; … | |
Re: We discovered there has been a problem with cron jobs. | |
Re: Correct me if I'm wrong, but my *understanding* is that you can use most inline asynchronous javascript (even if it's from a third party source) as long as it is non-blocking. | |
Re: Super strange ... I just tested a copy and forwarded it to you. Seemed to work fine from my desktop, but on my iPhone, it landed in 'Clutter' (Use MS Exchange) and the body message was blank. I think it's because you have some weird characters in the email where … | |
I'm working on building a Swagger JSON file for my API and I'm looking for a free tool online to test and validate it. Perhaps even an online tool that lets me upload my swagger JSON and builds out documentation from it where I can test it out ... as … | |
Re: Git is designed for teams to work on the same codebase, so it's designed to be checked out from multiple places. In cases where the code is modified from multiple sources, you can merge when doing a commit. | |
Hi, Unfortunately all of the Dazah integration stuff with DaniWeb is taking *much* longer than anticipated. I'm still working to try to get it out for you guys, but it's just taking a really long time. That being said, now that the concept of a Dazah login has kind of … | |
Re: Without referer headers, we think you're a bot. Glad you were able to get it working on your own. For those web developers out there, do you agree that having valid referer headers is one part of testing for not status? | |
Re: OK, will check it out! | |
Re: You're not supposed to send the app secret when redirecting to the OAuth dialog page. Only when exchanging code for an access token. Can you please show us the requests you're making? Thanks! | |
Re: I won't pretend that I know what I'm talking about, but did you shut down the MySQL service first as in the instructions? | |
Re: There's a history of the edit that moderators can see. There's currently not a public flag saying the post was edited. We should have one, you think? I believe we used to. | |
Re: What does the HTML code look like in your document head where you link to jQuery? Are you using a jQuery CDN such as Google's hosted version of it? Perhaps the file you're using is corrupt? | |
Re: You say it isn't working, but is it writing any errors to the error log or output on the page? | |
Re: Is this the complete file? It doesn't look like you have a close curly brackets on the If statement that should be st the end of the file. Additionally, youbshpuld reallllly escape your strings before inserting them into the database so they won't be prone to SQL injection attacks. | |
Re: I would recommend using any of the many CSS frameworks out there such as twitter bootstrap. These types of functions are pretty much expected and built into just about all css frameworks nowadays. | |
Re: As diafol stated, a single equals sign is an assignment and a double equals is a comparison. You are resetting the value to zero inside the If statement and THEN checking to make sure it doesn't equal false. For example, your while statement has an assignment operator in which you … | |
Re: While I'm certainly not disagreeing about this particular instance, personally I don't think that it's always best practice to never duplicate data in a database. There are many instances in which it's beneficial to denormalize your data, being that CPU resources are much more expensive than hdd space. Sometimes it's … | |
![]() | Re: Unfortunately I don't know the answer to your question but I'd like to make two points. Firstly, I've gone ahead and tagged this thread with SVN. Secondly, why not switch to git? I finally took the plunge and I couldn't be happier. That being said, I use an IDE with … ![]() |
The End.