11,563 Posted Topics

Member Avatar for DMR

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 …

Member Avatar for DMR
0
221
Member Avatar for tinstaafl

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?

Member Avatar for Dani
0
494
Member Avatar for Shyam_3
Member Avatar for pauly_1

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?

Member Avatar for DMR
0
354
Member Avatar for Dani

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 …

Member Avatar for cereal
0
769
Member Avatar for joshl_1995

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 …

Member Avatar for DMR
0
1K
Member Avatar for Dani

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

Member Avatar for Dani
0
530
Member Avatar for phphp

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

Member Avatar for Dani
0
184
Member Avatar for developer707

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 …

Member Avatar for Dani
0
650
Member Avatar for SunnySideUp

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

Member Avatar for Dani
0
388
Member Avatar for Harry_8

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?

Member Avatar for Dani
0
171
Member Avatar for Dani

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

0
174
Member Avatar for Dani

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

Member Avatar for ryantroop
0
376
Member Avatar for happygeek
Member Avatar for Dani
0
392
Member Avatar for man.chester.581

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.

Member Avatar for Dani
0
154
Member Avatar for happygeek

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 …

Member Avatar for happygeek
0
497
Member Avatar for Dani

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 …

Member Avatar for Dani
0
299
Member Avatar for Violet_82

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.

Member Avatar for Violet_82
0
554
Member Avatar for Dani

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 …

Member Avatar for Dani
0
916
Member Avatar for Gribouillis

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?

Member Avatar for Gribouillis
0
631
Member Avatar for Aeonix
Member Avatar for Alec_2

Hi there!! Welcome to DaniWeb. Thank you for joining us.

Member Avatar for Dani
0
124
Member Avatar for Aeonix
Member Avatar for SimonIoa

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!

Member Avatar for Dani
0
582
Member Avatar for lewashby

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?

Member Avatar for lewashby
0
416
Member Avatar for AssertNull

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.

Member Avatar for Dani
0
352
Member Avatar for SimonIoa

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?

Member Avatar for Dani
0
254
Member Avatar for Acu Ci Dbuggerz

You say it isn't working, but is it writing any errors to the error log or output on the page?

Member Avatar for Dani
0
536
Member Avatar for Magic8Computing

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.

Member Avatar for Dani
0
314
Member Avatar for CUZ_1

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.

Member Avatar for Dani
-2
291
Member Avatar for phphp

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 …

Member Avatar for Dani
0
258
Member Avatar for zachattack05

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 …

Member Avatar for Dani
0
662
Member Avatar for Andrew_23

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 …

Member Avatar for diafol
0
172
Member Avatar for radkowboy

Line 19 says `<?php include("/home/pi/html/password_protect.php"); ?>` but you aren't telling us what is in that file. If I understand you correctly, that file gets people to enter a username and password, and determines whether it's successful and whether they should be logged in or not?

Member Avatar for diafol
0
521
Member Avatar for Aeonix

Ooooh, we used to do this, but then we switched from Apache to Nginx, and Nginx doesn't use .htaccess files. I *think* we did something along these lines: RewriteEngine on RewriteCond %{HTTP_HOST} ^daniweb.com [NC] RewriteRule ^(.*)$ https://www.daniweb.com/$1 [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] I wish I could just …

Member Avatar for Dani
0
497
Member Avatar for diafol

That information is being pulled from Dazah. Still working on making some improvements to Dazah, and the CV information will be improved upon within the next week or so. It's not a matter of just fixing up DaniWeb's use case of it, but a bit of an overhaul to how …

Member Avatar for Dani
0
263
Member Avatar for Aeonix
Member Avatar for Dani
0
328
Member Avatar for Reverend Jim

For a long time, it's been a web design no-no to use black fonts on a white background. I don't know the specific reason, but it just looks "off" ... DaniWeb has been using grey fonts for well over a decade. I do agree, though, that the Google example linked …

Member Avatar for AssertNull
0
403
Member Avatar for lokesh_6
Member Avatar for Gribouillis
0
319
Member Avatar for janicemurby

May I ask what software you are trying to install? Perhaps we would get further by checking out the github project, etc for ourselves. At the very least, perhaps we might be able to point you to a better written alternative.

Member Avatar for Dani
0
232
Member Avatar for Cherise

Where is the second part of the assignment? I'm not seeing the attachment. I'm having a hard time understanding your logic. On line 29 you say, keep running this loop until you reach the end of the file. And then I pull in 25 characters. And then what ...?

Member Avatar for Dani
0
1K
Member Avatar for Aeonix

I didn't read the link, but I definitely agree that using IDs severely limits reusability, and therefore unnecessarily bulks up the size of the CSS file.

Member Avatar for diafol
0
309
Member Avatar for Aeonix

Something like this should do the trick ... div { text-overflow: ellipsis; overflow-x: hidden; white-space: nowrap; }

Member Avatar for Dani
0
292
Member Avatar for nancy_9
Member Avatar for Aeonix

I met up with him in person here in Silicon Valley (where I currently reside part time) earlier this year.

Member Avatar for Reverend Jim
0
527
Member Avatar for Connie_3

HI Connie. Welcome to DaniWeb! Firstly, one of the biggest differences between DaniWeb and SO is that we're an interactive community that *encourages* discussion. ;) That being said, there are a lot of OAuth libraries that exist already across a wide variety of languages. I don't use .NET, but I'm …

Member Avatar for Connie_3
2
310
Member Avatar for ELife
Member Avatar for Fola_1

I guess I'm just a bit confused. How did you code the rest of the ATM machine? Why having an issue with just this one part?

Member Avatar for JamesCherrill
0
213
Member Avatar for tinstaafl

Do you by any chance have lots of instances of DaniWeb open? Many browser tabs? Open on multiple computers? etc.

Member Avatar for Dani
1
546
Member Avatar for davy_yg

DaniWeb and Dazah are both written with CodeIgniter. I'm pretty experienced with 2.x as well as 3.x. What's up?

Member Avatar for diafol
0
181

The End.