11,554 Posted Topics

Member Avatar for Dani

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 …

Member Avatar for pty
0
263
Member Avatar for Adm666

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

Member Avatar for JamesCherrill
0
411
Member Avatar for shany0786

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

Member Avatar for shany0786
0
726
Member Avatar for kes166

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?

Member Avatar for Reverend Jim
0
318
Member Avatar for Carlo_1

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?

Member Avatar for rproffitt
0
838
Member Avatar for pty

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

Member Avatar for Dani
2
382
Member Avatar for Adm666
Member Avatar for davy_yg

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.

Member Avatar for diafol
0
282
Member Avatar for NhejdLoise

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 …

Member Avatar for JamesCherrill
0
311
Member Avatar for DeanMSands3

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 …

Member Avatar for Dani
0
322
Member Avatar for Faith_3
Re: Mips

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.

Member Avatar for Dani
0
120
Member Avatar for Dani

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 …

Member Avatar for Dani
1
971
Member Avatar for Dani

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 …

Member Avatar for Dani
1
136
Member Avatar for Alex_60

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

Member Avatar for Dani
0
506
Member Avatar for Aleš_1
Member Avatar for Dani

Due to some complaints, the private message inbox now more closely resembles the pre-Dazah version. Archived conversations no longer show in perpetuity.

0
205
Member Avatar for Lloyd_4

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), ));

Member Avatar for Dani
0
463
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
2K
Member Avatar for Scott_15

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

Member Avatar for Dani
0
203
Member Avatar for mattyd

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

Member Avatar for rproffitt
0
336
Member Avatar for Said_4

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

Member Avatar for Dani
0
143
Member Avatar for Dani

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?

0
257
Member Avatar for davy_yg

Sorry, I'm not quite understanding your question. I clicked the two links you provided and I'm not attending up at cPanel?

Member Avatar for davy_yg
0
517
Member Avatar for Dani

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 …

Member Avatar for Matthew_17
4
388
Member Avatar for Dani

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

Member Avatar for Dani
1
666
Member Avatar for amith_ami

This function tells if characters exist in a string: http://php.net/manual/en/function.strspn.php

Member Avatar for diafol
0
237
Member Avatar for davy_yg

Can you please include the full files so that we can see what is on the specific lines that are having the issues?

Member Avatar for Reeaz
0
329
Member Avatar for SimonIoa

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?

Member Avatar for SimonIoa
0
456
Member Avatar for rproffitt
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
643
Member Avatar for Dani

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 …

Member Avatar for Lee_15
0
182
Member Avatar for Dani
Member Avatar for Dani
0
497
Member Avatar for pty

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 …

Member Avatar for Dani
0
272
Member Avatar for Dani

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.

Member Avatar for pty
0
9K
Member Avatar for tinstaafl

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.

Member Avatar for Dani
0
509
Member Avatar for AssertNull

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

Member Avatar for Dani
1
1K
Member Avatar for David_89

Are you meaning to ask a question or just share the definition from [Tutorials Point](https://www.tutorialspoint.com/java/java_arraylist_class.htm)?

Member Avatar for Dani
-2
96
Member Avatar for Lashanda
Member Avatar for Serena_2

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.

Member Avatar for diafol
1
2K
Member Avatar for Dani

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 …

1
147
Member Avatar for Dani

Does anyone have any experience with Google's PageSpeed Module? https://developers.google.com/speed/pagespeed/module/ How often does it break things?

0
119
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

The End.