310 Topics

Member Avatar for
Member Avatar for Ketsuekiame

Hello, I got a message this morning from a mod that had deleted a duplicate post. Which is all fair enough....Except I never saw the duplicate post in question. When I went to check the thread this morning, sure enough my original post was still there so sat bemused that …

Member Avatar for Ketsuekiame
0
306
Member Avatar for vick4523zf

Hye, I have started to read and implement Cache Oblivious Btree on RAM. Starting with the Weight Balanced BTree by Arge and Vitter. The Deletion algorithm explained says that after deletion of a leaf an ancestor will get unbalanced so to merge the ancestor with neighbor and split if the …

Member Avatar for vick4523zf
0
318
Member Avatar for mike_2000_17

# Introduction # The subject of this tutorial is a bit more advanced than the subjects I have tackled in the past, but I hope this will find some interested readers. From time to time in C++, programmers find themselves torn apart between using a *Generic Programming* style which primarily …

2
2K
Member Avatar for Prithiv_1

I have a code which add extra memcache instance at run time, but this makes my keys lost. I know there are several libraries available like consistent_hash, hash_ring but I am unable to use them in my code. I know there is ketama available but couldn't find python code sample …

Member Avatar for Prithiv_1
0
337
Member Avatar for mmcdonald

ello ello, I'm currently calling a file using JQuery but every so often (very randomly) Google Chrome would crash (Just the tab, not the browser). Soooo I began investigating and discovered that browsers cache AJAX calls? This would mean that the tab would be using a stupid amount of memory …

Member Avatar for mmcdonald
0
188
Member Avatar for cmps

Hey all, I would like to know why when having big data in mysql table, executing a query for the first time takes 0.1.. sec, but if executing again the same query later, it will take only 0.0006 sec ? Exemple: SELECT name FROM `users` where id > 310000 limit …

Member Avatar for cereal
0
230
Member Avatar for jelly46

Hello I have got a small piece of code from thefacebook developers page. It does not work inIE, it sends back an error, I have cleared the caching and loggin into facebook and nothing. Here is the code: <a href="#" id="fb-btn-2013" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=1028,height=768'); return false;"><img src="../../Content/Images/facebook-button.png" alt="Share …

Member Avatar for jelly46
0
323
Member Avatar for bavenbabu

I cant install cakephp.I had wamp installed me.But when i try to install cakephp i got the following errors CakePHP: the rapid development php framework Release Notes for CakePHP 2.1.1. Read the changelog Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your …

Member Avatar for kevinpatel
0
2K
Member Avatar for Austinlanger

I want to know from your end will these tips help to maintain website loading time Allow CSS files to top and JavaScript at the bottom Remove unwanted Plugins Expend browser caching Imperfect Rendering Make use of CDNs Gzip Compression Size does matter

Member Avatar for Amol555
0
166
Member Avatar for aish1108

Any recommendations for implementing caching in ASP Classic. Server is Windows 2008 with IIS 7.5

Member Avatar for dom246
0
477
Member Avatar for CimmerianX

I've been experimenting with OpenVPN lately and now would like to generate a package with certain features enabled that require a recompile. I.e. enabling the password caching feature and packaging it with specific certs and profiles. Basically, is it possible to compile a windows-version/windows-package of the client from linux? If …

Member Avatar for rubberman
0
331
Member Avatar for Dani

This seems kinda random but basically I have the following member function in my caching class: public function increment($key, $expires = 0) { // Requires OPT_BINARY_PROTOCOL return $this->cache->increment($key, 1, 0, $expires); } So then I want to do flood protection like this: $cache->increment('foo', 10) > 50 90% of the time …

Member Avatar for LastMitch
0
433
Member Avatar for james.lu.75491856

def mu_cache(func,maxsize=128): "Most Used Cache decorator" cname = "__"+func.__name__+"_Cache" rname = "__"+func.__name__+"_Rankings" exec("global "+cname) exec(cname+" = {}") #here exec("global "+rname) exec(rname+" = {}") def wrap(*args,**kwargs): cache = eval(cname) rankings = eval(rname) try: res = cache[(args,kwargs)] except: res = func(*args,**kwargs) cache[(args,kwargs)] = res else: try: res = rname[(args,kwargs)] except: res=0 rname[(args,kwargs)] …

Member Avatar for sepp2k
0
349
Member Avatar for ndeniche

I'm building a website that requires some image preloading, which is handled smoothly with an overlaid splash screen and a progress bar and a spinner. The thing is, I want the preloader to know if preloading is necessary (the cache has been wiped, or is disabled in the browser), so …

Member Avatar for asmira
0
339
Member Avatar for Moderns

Hi mates, I am looking for a way to cache a PHP page that it's different for each session user. For example if the paginating is used and if I have 10 pages each page contains 25 entries extracted from database, also these entries are editable when clicking on button …

Member Avatar for LastMitch
0
350
Member Avatar for Jenelia89
Member Avatar for wonderland

Lately I've become somewhat obsessed with page speed optimization and I wanted to find out can CMS caching mechanism (For example Joomla cache), Gzip compression and Cloudflare work all together in perfect harmony? I understand how each system works by itself (more or less), but I don't understand would they …

Member Avatar for LastMitch
0
96
Member Avatar for n5555

how to improve response time and throughput of search engine with web caching? Give me practicle example of this.? Thanks in advance..

Member Avatar for ravinder yadav
0
205
Member Avatar for Dani

I was wondering if anyone had any experience with Cloudflare and what you thought of it? A *LOT* of big sites are using it, and from what I'm hearing, it's really good at caching entire webpages at the DNS server end without ever having to hit your web servers. However, …

Member Avatar for Dani
0
144
Member Avatar for probytes

It is not easy to make the choice of a PHP framework. A lot goes into choosing the proper PHP framework especially if you want to use it on a long term basis. A wrong choice of PHP framework may lead to certain disadvantages, like, increased development time, the need …

Member Avatar for LastMitch
-1
313
Member Avatar for taylorzenith
Member Avatar for chr.s

In order to make my AJAX functionality a little more efficient I've added a cache component; but this has given me a huge new headache. The AJAX related code is below. It listens for a click and checks if the user has already clicked that link. If not, it'll fetch …

Member Avatar for chr.s
0
298
Member Avatar for jessicam93xx

I have seen this in a few posts, but i still cant seem to find the problem. Im basically trying to log in to a chat page and don't know what I'm doing wrong. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php //Start a session session_start(); //Setup and use …

Member Avatar for pritaeas
0
307
Member Avatar for petrarobert002
Member Avatar for JeanPhilippe

Hi, I have kind of a weird problem and I can't figure what is wrong. This is my Ajax php page : <?php // Configure connection settings include('dbconnect.php'); include('functions.php'); // Fetch the data $timestamp=$_GET['t']; $dimanche='2013-03-03'; $samedi='2013-03-09'; $queryEvents=mysql_query("SELECT * FROM `events` WHERE `start_date`=`end_date` AND `start_date`>='$dimanche' AND `start_date`<='$samedi'"); while($resultEvents=mysql_fetch_array($queryEvents)) { echo"<div id='drag-div-".$resultEvents['id']."' …

Member Avatar for JeanPhilippe
0
216
Member Avatar for HunainHafeez

i tried reverse engineering option in Mysql workbend 5.1, 1stly i imprted DB's script and then created it, Its done :) but when i try to create ERD via Reverse Engineering option , then it doesn't show relations ships btw tbl, it only brings table to front ! why ? …

Member Avatar for LastMitch
0
368
Member Avatar for minimee120
Member Avatar for Dani

I have four memcached servers, 2 GB each. Each one averages about 1 set operation per second, and 500 get operations per second. However, the hit rate is incredibly low at only about 45%. Is this still efficient considering that, even taking into consideration only half of the get operations …

0
132
Member Avatar for Tinnin

Hi all, I am trying to create an excel file in PHP which I then want to send as an attachment via the mail() function. I am able to create the excel file using the following code: function setHeader($excel_file_name)//this function used to set the header variable { header("Content-type: application/octet-stream");//A MIME …

Member Avatar for Tinnin
0
6K
Member Avatar for freakyboard

I need to encode the sending messages/data(not MD5)and then they will be decoded on the other side. Codes have to be in android libraries not in java. Is there any code or information that may help me around internet? Thx all for your help.

Member Avatar for peter_budo
0
327
Member Avatar for servis

i want to get the alert on responce text, but getting nothing, my code is as follow, [ICODE] <?php session_start(); ?> <script type="text/javascript"> var xmlHttp function checkCAP(str) { if (str=="") { alert("plase enter the code"); return } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } …

Member Avatar for karlosdpm
0
3K
Member Avatar for cssweb

hello how are you today i have a problem with cache when i visit my site i saw the old topic of my site until i hit ctl+f5 to update the page so how ca i solve this problem is there any way to prevent browser store cache i have …

Member Avatar for LastMitch
0
545
Member Avatar for chandbasha

Hi, PHP 5.2.17 (cli) (built: Sep 1 2011 17:22:41) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies [root@ip-10-130-243-182 mnt]# yum install php-pecl-memcached-2.1.0-1.el6.remi.x86_64.rpm Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the …

Member Avatar for maba001
0
571
Member Avatar for dyingatmidnight

Okay this is strange. I'm new to AJAX and I'm trying to use it with php to check a variable from my database before a form is submitted. It works almost fine. The strange part is that it seems to be saving anything I enter into the text field. var …

Member Avatar for dyingatmidnight
0
136
Member Avatar for Rolo Tomassi

Learning php. Set-up IIS7 on my local Win 7 computer. Accessing data from an Oracle database. Dreamweaver for IDE. Created a simple form.php page, POST action to process.php, pulls data from Oracle. Works fine (for my first php project). But when I edit the process.php file to try other techniques, …

Member Avatar for cereal
0
205
Member Avatar for deepak jois

Session.Clear(); Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D); Response.Expires = -1500; Response.CacheControl = "no-cache"; //----- Second Technique : To Stop Caching of Secure Pages. Response.Cache.SetCacheability(HttpCacheability.NoCache); FormsAuthentication.SignOut(); if (Session["UserName"] == null) { Response.Redirect("login.aspx"); } Session.Clear();

Member Avatar for hericles
0
80
Member Avatar for cali_dotcom

Hi guys, i have an application that seats on a single webserver that depends on a third party application running mssql, so i use mssql over free tds. now i have to scale this site so i have to think about how to handle the sessions. i ma basically looking …

Member Avatar for pritaeas
0
299
Member Avatar for JameB

I'm making a website where users select one of the four options - A, B, C, or D (for simplicity) and press a button to be redirected to a different page (page 2) that uses the selection to display one of the four images at the top. The selection is …

Member Avatar for JameB
0
276
Member Avatar for Venom Rush

As the title says, I need to stop a user's browser from caching the form they've submitted. Is there any way of doing this?

Member Avatar for Venom Rush
0
230
Member Avatar for patocardo

For security reasons, several articles recommend "do not cache pages". So I usually put the following at the beginning of my web pages header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); That works very …

Member Avatar for jmichae3
0
202
Member Avatar for coder389

The speed of retrieval of data on my site is very slow because it loads more than about 10 tabs at the same time. So, I want to implement caching in it. But, I don't know how to implement caching?

Member Avatar for kvprajapati
0
176
Member Avatar for cali_dotcom

hi, i am about to rewrite an application that was written in zend 1.8. the owner complains that its quite slow so his default reaction is to rewrite it in any other framework of my choosing. the application is sometimes slow because they have not implemented any caching mechanism at …

Member Avatar for mschroeder
0
139
Member Avatar for Dani

What is a reasonable number of queries to Memcached per page? We do use getMulti to try to fetch what we know we'll need in advance all at once, but we mostly use getDelayed() (which is a two-part call with fetchAll(), and we do some other processing in between them. …

Member Avatar for Dani
0
127
Member Avatar for Dani

Hi, We heavily use Memcache and I was wondering if there were any places where I could read up about good tips to improving its performance. Everytime that I try to google improving memcached performance, I just end up with pages upon pages of links to how to improve performance …

0
111
Member Avatar for surajrai

Hi, I am trying to put a dll to GAC. The assembly is signed. 1.I tried draging and droping (nothing happens) 2. I tried command gacutil /i abc.dll, from visual studio command prompt. It says Assembly successfully added to the cache but when I open windows\Assembly folder, I cant see …

Member Avatar for Momerath
0
274
Member Avatar for garyrickert

I have a bunch of scripts that get data from a number of systems to analyze / report against. Up to now I have been taking the output to the screen and just copy/pasting into a file. I am now trying to send directly to files, but when I try …

0
96
Member Avatar for Buppy

Hi, I ran a speed test for my site with Google Page Speed (and some other tools as well). The Google tool shows that i need to leverage browser caching and the expiration date for cacheable files in my site is currently set to 24h. I did a little bit …

0
76
Member Avatar for Razac

Hello, Over this last weekend I picked up a few different Trojans and BackDoor viruses, for a total of 5. They sat in my windows assembly folder and attacked my Trend Micro anti virus. My computer would lock up during a scan so I would have to restart. I started …

Member Avatar for jholland1964
0
152
Member Avatar for Teachingmyself

[b][u]Explanation of RAID and installation guide[/u][/b] [i]Thanks to [b]'Stein[/b] for the coding.[/i] Greetings, It's come to my attention, both from call volume in work and online forums, that most people do not realize the diversity of RAID controllers available, nor how to fully benefit from them. This tutorial aims to …

Member Avatar for cheaphosting
1
719
Member Avatar for Dani

Hi, I just started using the Memcached php client instead of Memcache client. It's able to connect, but now when I run a get(), I get the following error: Memcached::get(): bad type specifier while parsing parameters It worked fine with Memcache? There's just one parameter ... the key to be …

Member Avatar for Dani
0
111

The End.