2,452 Topics

Member Avatar for
Member Avatar for vivek.vivek

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

Member Avatar for 2teez
0
810
Member Avatar for sugumarclick

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 …

Member Avatar for Igor_3
0
759
Member Avatar for G_S

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 …

Member Avatar for JamesCherrill
0
282
Member Avatar for Richard_24

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

0
171
Member Avatar for newprogramming

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 …

Member Avatar for rubberman
0
407
Member Avatar for jephthah

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 …

Member Avatar for David_50
0
6K
Member Avatar for Thevenin

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 …

Member Avatar for chrishea
0
137
Member Avatar for Da_Noles

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?

0
91
Member Avatar for Sudhakar_1

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

Member Avatar for Aeonix
0
246
Member Avatar for vikcyrao

i want to copy data from one VM(windows) to another VM(windows) using perl script. plesae guide

Member Avatar for laosland_1
0
105
Member Avatar for CattleOfRa

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

Member Avatar for sepp2k
0
190
Member Avatar for Wendy_3

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 …

Member Avatar for rch1231
0
341
Member Avatar for UK-1991

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 …

Member Avatar for UK-1991
0
259
Member Avatar for bolfescu

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 …

Member Avatar for broj1
0
642
Member Avatar for Hong_1

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

Member Avatar for DaveAmour
0
248
Member Avatar for showman13

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

Member Avatar for 2teez
0
325
Member Avatar for Anna123

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 …

Member Avatar for Anna123
0
149
Member Avatar for balmurali

Take pattern from one file and search for that pattern in second file if doesnt present copy that pattern into the another file

Member Avatar for 2teez
0
127
Member Avatar for kayleigh0411

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 …

Member Avatar for rubberman
0
301
Member Avatar for Amaina

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 …

Member Avatar for DaveAmour
0
160
Member Avatar for Gribouillis

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

0
129
Member Avatar for titas.datta

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 …

Member Avatar for titas.datta
0
14K
Member Avatar for dm198180

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

Member Avatar for 2teez
0
115
Member Avatar for sathish_nadu

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 …

Member Avatar for class11a
0
203
Member Avatar for coder91

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 …

Member Avatar for coder91
0
829
Member Avatar for Chris920

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 …

Member Avatar for Chris920
0
188
Member Avatar for krishkommireddy

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 …

0
58
Member Avatar for divinity02

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 …

Member Avatar for JamesCherrill
0
255
Member Avatar for Jfredry

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

Member Avatar for 2teez
-2
83
Member Avatar for RikTelner

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

Member Avatar for pixelsoul
0
211

The End.