Programming :: Clearing Cache - Reading Data Upon Investigation
Apr 9, 2009
I have been saving an XML file wherein I shall be reading data, if and only if the XML is present on Hard Drive. If same is not present, the code shall generate first and next time it shall simply read and not jump into writing part again and again. The issue that I am facing is, I am deleting the file manually going to that location, and checking whether it is reading the data, upon investigation, I found that it is really reading the data although the file is deleted.
I suspected that there may be some cache issue from where it is picking values, hence it fired the command
"sync; echo 3 > /proc/sys/vm/drop_caches"
But it is still doing the same pattern.
a few days ago i set my FoxyProxy settings to tor. I needed it to make a few raid boards on 4chan and those can get you banned if you post.
So anyways, i go on this forum about a phone and i accidentally refreshed the page, but i haven't switched from proxy to my default settings and so all of a sudden a message appeared "Sorry, ###### you are banned from this forum."
I tried clearing cache, cookies and whatnot through firefox' options but still i get that message, i installed Midori for a quick test and it seems to work there (I'm not banned) but never on firefox, even rebooted and still nothing.
I really hate the ads with Midori as i use Adblock for firefox.
I have a folder which includes bunch of folders each having data files in them. [ Folder A has F1, F2 F3 ..... F1000 folders in it, and F1, F2, F3 ... each has about 10 different files named FILE 1, FILE2, FILE3 .... in them.
I am interested in File 1 of each Folder, because that contains the data I need in it. More specifically, that File1 s have a line "ANSWER=..." in them, and i need to get that value of the ANSWER from each file. So doing it by hand is so hard, so I need to write a script that will scan all folders and give me a list of values of eache ANSWERs.
I have two files of data with different numbers of columns and rows. I want to read this two files in two arrays and then compare for example the second column of first data file with the third column of the other text file and if the difference between of two numbers is less than a threshold then the program print the information in the rows which fulfill this condition in the third text file. I have written below program but the problem is that it does not go through all rows of second file.
declare -a a declare -a b r=` awk '{n++} END {print n}' second.txt ` echo $r awk ' {
[Code]....
Actually I have two data files one of them contains 44406 and the other one has 12066 rows and I want to check whether the difference between the components of two specific columns is less than a threshod but I have simplified it here. I had written this code and then I have realized that this code just goes through the number of rows as the same as the first.txt file and ignores the rest. I could not find the problem yet.
I have got a problem while reading from the serial port. I'm working on iMX-31 board and Eclipse IDE. Whenever I'm trying to read any data through the serial port, it's displaying I/O Possible and the application is being terminated. After reading I'm trying to write this data on a file. Here are the excerpts from the code:
I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port
I have a small program that reads stdin from a pipe using fgets. Now fgets blocks for the first line but after that it will not block.
The code, my_echo.c - int main(int argc, char **argv) { char buf [2000] ; char* pc ; printf("hello ") ; while (1) { buf[0] = (char) 0 ; pc = fgets(buf, sizeof(buf), stdin); if (pc != NULL) printf("%s ",buf); } return 0; }
How its called * In terminal window 1: ./my_echo < my_fifo * In terminal window 2: echo "1234" > my_fifo * In terminal window 1: prints hello then 1234. * Checking with ksysguard or top shows that my_echo is consuming 40% of CPU time.
Adding a few printf's shows that the gets is not blocking and returns a null pointer. * In terminal window 2: echo "qwerty" > my_fifo * In terminal window 1 qwerty prints. I want a read function that does in fact block so my program does not tie up CPU time, read does not block.
I have a simple C program that reads a 1 GB file from disk into memory.The first time I run this program, the process takes several seconds. But if I run this program again immediately after it finishes, the read happens almost instantly. What is going on here?My suspicion is that the operating system is realizing that the data I'm trying to read is still uncorrupted in memory (its been freed but not overwritten), so instead of reading it again, it just gives me the same block. I would really like to know what this process is called, or any Googleable keywords that would allow me to research it.
The reason I ask is because the size of my input data has increased. Now I need to read in a 6 GB file (my system has 12 GB of RAM), but I'm not observing the same behavior with the larger file. Each time I run the program the read takes an equally long time.
I'm having trouble reading EXIF data from TIFF files. Both 8 bit and 16 bit fail to load EXIF data via eye of gnome and GIMP and I'm not sure why. Neither files downloaded online nor rendered from Bibble 5 seem to work. Using Ubuntu 10.04 64bit and GIMP 2.7.2.
Recently changed my motherboard. The new board has the 790FX/SB750 chipset, and the old board used the 770/SB600 chipset. Prior to the change, I had never had any problems reading/writing CDs or DVDs. I now find that reading a data CD is very slow, it can take up to 30 secs before the icon appears on the desktop and a filer window appears. In my tests thus far, only data CDs written on Linux can always be read, albeit slowly. Data CDs written on Windows are variable. Some are never seen by the system, others may or may not be opened. That is I might be able to read it during one test, and next time I try I can't.
When a CD is not 'seen', there is an initial flurry of activity by the drive, but the drive icon (in "Computer' window) doesn't think a disc is in the drive. I can boot OK off a DVD, and data DVDs wrtten on Linux are opened and read quite fast. I am running Fedora 12 x86_64 with the latest Fedora kernel package (2.6.32.9-70), and the Motherboard bios is the latest available. The CD/DVD drive is a SATA Pioneer DVR-215. I have checked the bios settings, and have tried setting 'storage configuration' to IDE and to AHCI, each giving the same result.
I tried switching the SATA data cable from SATA-3 to SATA-2 and was able to open and read a Windows data CD that had previously not been seen, but subsequent attempts have failed to open and read that CD. I suspect the problem may have something to do with hardware drivers, but I really am guessing about this and have not been able to find any useful information on this.
streaming videos i sometime want to save them, after watching. generally they're saved as flash videos or mpeg-4 video, which is all fine.however periodically they're split-up and saved in smaller chunks with names like data_1, data_2, data_3 etc. these range from 14.0 - 44.0 MB. the file in question (currently i'm trying to save from the cache) was from divxden, or possibly divxstage.eu either way i think it used the totem plugin.so, my question is: does anyone know if these files can be stuck back together, or if this feature can be changed so streamed files are kept intact?
If I wanted to transfer a home folder that was encrypted to another ubuntu computer could I? If I had a separate home partition that was encrypted, but I wanted to upgrade ubuntu to the latest version by doing a clean install is there an easy way so that I can still read the data encrypted with the old version?
I installed skype and can't seem to use the webcam upon further investigation I have actually yet to find instructions on how to use my webcam on linux; i have a Creative VF 0080
i tried gstreamer-properties when changing plugin from Linux 2(v4l2) or (v4l) i get this error
Code: Video for Linux (v4l): Device "/dev/video0" does not exist.
I have High load on my server and my investigation shows nothing (so i believe that my investigations is wrong ), the load average in this moment is 10.13, 9.47, 8.24. , mentioning the below.
- The disk utilization (all the disks) is near 0, as the result of the IOSTAT - There is no blocked processes (as a result of VMSTAT). - I have two processors (dual core) , the maximum load average should be something around 4. - The server always have above 8 load average in all times interval.
btw , my OS is RHEL AS release 4 (Nahant Update 7)Kernel :Linux 2.6.9-78.ELhugemem #1 SMP i686 i686 i386 GNU/Linux
I was following this tutorial on How install the rpmfusion nvidia drivers in Fedora 13Here's the tutorial:Quote:Originally Posted by leigh123linuxF13 Howto for the rpmfusion nvidia drivers This is a Three-Step Process. If you don't follow all three steps, your install will fail!1. Install the nvidia driver. ( if you have 4Gb of RAM or more you will probably have a PAE kernel [32bit only] so follow the PAE part )For GeForce 6, 7, 8, 9, 200 & 300 series cards
Code: su rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-
I synthesized a seismogram by using Fortran codes, I need plot the synthesized seismogram and the data together, so I can verify the accuracy of code. Now I encounter a question: how to read the SAC data by Fortran code, I have searched some codes on Internet, the details as follow:the velr12a.sac is my data file.
Code: c read sac file PROGRAM RSAC PARAMETER (MAX=1000) DIMENSION YARRAY(MAX) CHARACTER*10 KNAME
I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:
I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.
How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.
upload the changed php file, but when try to reload the site same errors stay there. There is some cache that I have to clear but I don't know where it is. In wamp I clear wamp mp* directory What cache I have to clear? Edit: It is not my browser. I use firefox and clear everything with several times ctrl+shift+del I even delete index.php but the same errors stay at the page:
Code: Warning: include(inc/inc.php) [function.include]: failed to open stream: No such file or directory in /var/www/site/index.php on line 3 Warning: include() [function.include]: Failed opening 'inc/inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/site/index.php on line 3
Well, I have a web application in Linux server. All my Java codes are there. FYI, whenever user entered non-ASCII characters(e.g. ∞,�,�) in a text field in my web application, and I check the log of my Java code in Linux server, it returns weird characters.
Suppose user entered ∞ in the text field. I should get ∞ in my log too. However, I got weird characters in return.
If we have a .so library elf in linux, will it be possible to find out the APIs supported by it. Or in other words, the functions that can be used along with the argument types and return type.? Note that we dont have any other header files or documentations related to the library.
I am currently writing an engine using SDL and openGL, and while I've gotten it mostly done, I've never really learned how to read configuration files. The configuration files that I'm hoping on using will be a straight forward syntax using "#" for comments and variables will be declared using "foo=hello". I don't need a lot of items in the configuration files, but enough to change needed settings. I'm not wanting to use external libraries (how are you going to learn if you can't do it yourself? :P) and I'm hoping to write it from scratch. If someone could please point me to a tutorial on how to do this or even some working code I may be able to figure it out. I am using the C programming language also(as I like it more than C++, sorry).