11,554 Posted Topics
I have an InnoDB table called `articles_read` with fewer than 20,000 rows in it. It consists of 3 columns: member_id article_id timestamp There are two indexes: A unique index on (member_id, article_id) and a regular index on (timestamp). It is read from fairly more than it is written to, and … | |
Re: I'm not a java developer ... However, if I follow your logic correctly, you're checking to the left side. Then, if it's not 0 itself, then you check from the right side. Well, if it's not a 0 itself, then the closest we can be to it is 1. Therefore, … | |
Re: > Now there is pave ackages like 6 links,25 links package. if two user select 6 link each day and both will have same links[url] .now i when user log in then on adversitment page he visit each link one by one and as same set of link is with … | |
Re: Sorry, I don't know VBScript at all. However, is it possible that it is returning null or false or such for any index that doesn't exist, as opposed to throwing an error? | |
Re: I was not familiar with TablePress until finding out that it is a WordPress plugin. Perhaps there is a WordPress-specific forum out there that might be able to help you? I'm really sorry. Incidentally, is there a reason you need to be using this plugin? | |
Re: > I think a previous iteration of DW did have this - perhaps when it was vBulletin? Yes, vBulletin used to have this. However, considering not many people used it in the first place, and no one seemed to have missed it in the 5 years we have been off … | |
Re: Haha. Glad you got it solved so quickly! | |
Re: Use CSS to set the width. Sorry, I'm on my phone right now and it's too hard to type out the code. But basically something like style="width:200px". As far as I know, the width attribute as you have used it is not a valid property of text boxes. ![]() | |
Re: Hi there and welcome to DaniWeb!! Umm ... is this a homework assignment? What type of "item management"? It looks like you just need basic CRUD functionality (create read update delete) for item objects. If this is a homework assignment, please show us what you've done so far, and we … | |
Re: I've certainly never heard of it, but I've barely touched anything beyond PHP since starting DaniWeb. That being said, if it interests you, then give it a whirl and see what you think. If it's enjoyable to write in, then delve further. As far as the job market ... I'm … | |
Re: Hi there! Welcome to DaniWeb!! :) We will not just do your homework for you, but if you show us what you've tried so far and where you're stuck, we'll help you to learn and get it working. | |
Hey guys ... Over the last year or so that I've been hard at work with Dazah, I've received multiple requests from people offering to help. I am now in *way* over my head, and I would be eternally grateful for anyone who might be able to offer up their … | |
I'm excited I just discovered a way to remove unused MySQL indexes and I wanted to share it with you guys. I'm following the tutorial here: https://www.percona.com/blog/2012/06/30/find-unused-indexes/ We happened to have already been using a Percona-fork of MySQL. It just so happens that Percona has been our database consultants for … | |
Re: Haha! I just posted a few hours ago about adding that functionality to DaniWeb! https://www.daniweb.com/community-center/daniweb-community-feedback/threads/507257/shared-editor-window What makes you ask?? | |
Due to some complaints, the private message inbox now more closely resembles the pre-Dazah version. Archived conversations no longer show in perpetuity. | |
Re: Umm ... I don't think CURLOPT_HTTPSHEADER is a known cURL variable. Try doing something like this instead: curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded', 'Content-Length: ' . strlen($req), )); | |
Re: You need to keep track of when you're in HTML and when you're in PHP. I always only use only PHP short tags within my templates. Makes my life soooo much easier. This is html blah blah <?php foreach ($foo AS $bar): ?> Value of the element is <?= $bar … | |
Re: Hi Scott, I received your email. For everyone else, Scott is actually [Sknake](https://www.daniweb.com/members/491910/sknake), who was active on DaniWeb back in 2009/2010. > I'm on my iPhone and I have an image showing to tell me to hit alt+s to start a new discussion? Valid point. I didn't think of this, … | |
Re: Maybe the Github javascript injected `<link rel="shortcut icon" href="blah blah blah">` into your webpage, and your browser cached that (as it does with favicons). | |
Re: I guess you can use divs if you're so inclined, but why? You can use CSS to make any element look the way you want. It comes down to HTML 5 being about semantics ... the tags you use explain the purpose and greatly assist search engine bots, blind people, … | |
I have two different conversion goals set up in AdWords. Is it possible to set a CPA bid for Campaign #1 to only take into consideration one goal, and a CPA bid for Campaign #2 to only take into consideration the other goal? | |
Re: Sorry, I'm not quite understanding your question. I clicked the two links you provided and I'm not attending up at cPanel? | |
You may have noticed that messaging about earning rewards points that can be cashed out for real dollars has just now been removed from various pages. It's not that I've completely called quits on the idea. When we switched over to the new platform, it was always in the pipeline … | |
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 … |
The End.