2,452 Topics
| |
Hello, I have a file like below that contains datewise value for every hour for 2 locations. I need to add the value for the same hours for ServerA and ServerB. Using Hashes, I am able to add the server value per hour. But cannot pass it to a table. … | |
Hi Daniwebbers, can someone help me How to figure out the depth of a dynamic hash (hash of hashes) in perl. If it has consistent structure, we can traverse through while/foreach and find out the depth. Could anyone point me the right and best way to figure it out. my … | |
Hello everyone. I am modeling a simple dictionary application using the presentation-business logic-data layer pattern. I already have the design but am not sure it is correct: My presentatioon layer is a simple GUI where users insert their queries. They have a form for entering new words and their definitiom … | |
Basically I have made this site: http://8animetv.co.vu/onepiece Here is a description of what is happening, with all of the code that has to do with it. jquery: `$('.episodeLink').click(function() { $(".episodeTitle").html($(this).clone()); document.getElementById('ifrm').src = $(this).attr("href"); $(".epChange").css('display', 'inherit') $('#youtube_iframe iframe').eq(0).attr('style','width: 728px;height: 420px;float: left;margin-left: 92px;margin-top: 30px;-ms-zoom: 0.833;-moz-transform: scale(0.8333);-moz-transform-origin: 0 0;-o-transform: scale(0.8333);-o-transform-origin: 0 0;-webkit-transform: scale(0.8333);-webkit-transform-origin: … | |
I wrote a program for converting a file from PPM format to ASCII art. Every pixel of the input image is converted to greyscale by calculating the average of red green and blue values ((red + green +blue)/3). The upgrade of the basic version is that I calculate the average … | |
too many new and intermediate users of C attempt to use the command [icode]fflush(stdin)[/icode] to "flush the input buffer". this is patently wrong. the rule is (and click if you don't believe me) : [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351"]NEVER [/URL][URL="http://answers.yahoo.com/question/index?qid=20071013052534AAuxWmW"]USE [/URL][URL="http://www.gidnetwork.com/b-57.html"]"FFLUSH()"[/URL] [URL="http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html"]ON [/URL][URL="http://www.it.usyd.edu.au/~dasymond/mirror/c-faq/stdio/gets_flush2.html"]INPUT [/URL][URL="http://www.cplusplus.com/forum/general/6554/"]STREAMS [/URL][URL="http://c-faq.com/stdio/stdinflush.html"]SUCH [/URL][URL="http://gcc.gnu.org/ml/gcc-help/2009-01/msg00287.html"]AS [/URL][URL="http://www.dreamincode.net/forums/showtopic45833.htm"]"STDIN" [/URL] here is one method of properly … | |
Hi all, I have a problem, I need to automatically get the user latitude and longitude, on page load (no user interaction), is there a way? In my PHP script, I want to populate automatically $lat and $long, everything on page load, so no user intereaction, but I do not … | |
Hi all, I am trying to create a script that I can run and edit a user's settings on their excel. IE: the script will edit the user's options by enabling macros and adding in the add-on. Anyone ever work on something like this? | |
![IE_11.PNG](/attachments/large/4/7521fb4c6a3b7e95866eef0417e01efe.PNG "align-center") ![Mozilla_Firefox.PNG](/attachments/large/4/8866491155367c5642bc17b36488fbf0.PNG "align-center") Hi. In my project UI Table is not displaying properly (not working) in **Internet** **Explorer 11**, where as in **Mozilla Firefox** it's working properly. please see below pictures. ![enter image description here][1] This is with Mozilla Firefox![enter image description here][2] This is with Internet Explorer 11 … | |
i want to copy data from one VM(windows) to another VM(windows) using perl script. plesae guide | |
I've just started learning C++ on Linux. I have written a very small program which compiles but I get run time errors everytime I run it. The code is shown below: #include<iostream> int DoubleOf(int n); int main() { std::cout << "Double of 5 is " << DoubleOf(5); return 0; } … | |
I am having trouble with my code. The conversion for both Fahrenheit and Celsius will not display, and when I select "Celsius to Fahrenheit", it gives me the conversion for Fahrenheit to Celsius. I'm not sure what I'm doing wrong. I've already searched for help and have gotten nowhere. So … | |
Hello, I created a user login form with a crietaria fixed that if the user type is admin then it should be redirected to admin page and if it is an agent it should be redirected to home.php The admin type is working properly but when i enter agent id … | |
Hy, i'm having a problem with php excell, i have in my db a row that its have a full url, when i export it its not make it HYperlink, i've see the docs on the internet but unft its for only one cell not for entire column this is … | |
Following is the javascript that will change the images in a specific time function startTime() { var timerid = 0; var images = new Array("CSS/Images/shy-baby.jpeg", "CSS/Images/yao-ming.png", "CSS/Images/success.jpg"); var countimages = 0; if (timerid) { timerid = 0; } var tDate = new Date(); if (countimages == images.length) { countimages = … | |
Good Morning all, Hopefully someone can head me in the right direction. I know nothing about perl or cgi but have a script that I purchased and had modified by a programmer half way around the world. He uploaded it to my development domain and the script works just fine... … | |
Dear All, Can aynyone help me with a script which could scan the regions of one file to the regions with second file, for example file 1 looks like this, chr5 88013976 88018740 file 2 : chr5 88013975 88018742 ENST00000340208.5 chr5 88024310 88024445 ENST00000340208.5 chr5 88025035 88025164 ENST00000340208.5 I want … | |
Take pattern from one file and search for that pattern in second file if doesnt present copy that pattern into the another file | |
I am trying to implement a test program to describe what this function does: int mystery( const char *s1, const char *s2 ) { for( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ) { if( *s1 != *s2 ) { return 0; }//end if }//end for return … | |
I'm trying to parse a few references from a file and load them to mysql table but keep on getting this error everytim,e i run the script: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the … | |
Some unicode characters such as dice symbols or chess symbols (see https://en.wikipedia.org/wiki/Miscellaneous_Symbols) dont display properly anymore in the forums. What's going on ? there are examples here [Click Here](https://www.daniweb.com/software-development/python/code/492854/another-visit-to-string-formatting-python#post2155656) and here [Click Here](https://www.daniweb.com/software-development/python/code/423640/unicode-chessboard-in-a-terminal#post1814200). | |
Hi, I am trying to add some values retrieved from database, into a HTML table which I've already created using jQuery & AJAX. My data is getting retrieved properly, but its not getting displayed when I am loading the HTML page. Could anybody help ASAP?? Here's the code I'm using … | |
Plz can anyone help me with a program below: Need to check how much money the company is paying to 'smart employee' department wise. Smart means : attendence should be good and rating should be avergae and good compute salary such that salary is increasd bonus wise for each employee. … | |
i tried to upload some data from csv to MySql data base. but it not working someone help me on this. the below one is my code #!/usr/bin/perl -w use DBI; use strict; use TEXT::CSV; use warnings; my $driver = "mysql"; my $database = "test"; my $host = "localhost" my … | |
Hi, so I have to create a dynamic menu which is created using <ul><li><a href /></li></ul> etc. The menu has to be dynamic based on the user who is viewing the page. So far when the page loads I send the name of the user logged in, to a stored … | |
I wasnt sure where to put this. Its a PHP script but i am running CentOS on a VPS. I have a feeling it could be an encoding problem which is why i put it here. On the website the videos look great, and plays perfect but when i view … | |
Hi here i am writing this code in config.php file for our sandbox testing(moodle) but i got the error in our browser **Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting. ** may i know how i can solve this problem ,can any … | |
trying for the longest while to get this program to run at least properly, havent finished entering all of the codes as, just testing each part of the statement before i add in the rest of the codes the program is not working properly dont know where I have gone … | |
HI, I am looking for perl script to copy a file froms source to destination(partition) Key: 1.Having Docs files in Folder C:/ as a source and copy the Folder to destionation user preferred. Could somebody help me with this scenario. Reagards, John | |
I manage to copy/write/edit this code, but it doesn't seem to work, not even `alert();` is executed, it does exactly nothing. <?php // include "from_db.php"; ?> <!DOCTYPE html> <html> <head> <script src="http://maps.googleapis.com/maps/api/js"></script> <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="styles.css" media="screen" /> <script> function initialize() { var mapProp = { center: new google.maps.LatLng(51.509, … |
The End.