199,114 Archived Topics
Remove Filter ![]() | |
Hello, does anybody know why below 2 echoes are providing diferent results [CODE] <?php $in ='textInputTest'; $key ='AAAABBBBAAAABBBB'; $iv ='AAAABBBB'; echo base64_encode(mcrypt_encrypt(MCRYPT_RC2, $key, $in, MCRYPT_MODE_CBC, $iv)) .":"; echo base64_encode(openssl_encrypt($in, 'rc2-cbc', $key, true, $iv)); ?> [/CODE] (results: I6twEgBKQEaNzeP0nMeLJg== : 7bJWXaOJf31WYcJn2UcDrg==) ... second result is the same that C# and some other … | |
I have a problem with my for loop. This is the code: [CODE] for(i = 1; i <= 30; i++){ var opacity = $("#h"+i).css("opacity"); if(opacity < 1){ $("#h"+i).click(function() { $("#h"+i).css({ opacity: 1 }); }); } }[/CODE] When I put a number like [CODE]$("#h1")[/CODE] instead of [CODE]$("#h"+i)[/CODE] It works but only … | |
Hi everyone! I wrote code for the progress bar but the thing is that it is just an empty bar and nothing goes on. So how can make it update? [CODE] #include <windows.h> #include <commctrl.h> #include "Resource.h" //--------------------------------------------------------------------------- RECT rcClient; HWND hWnd; HWND hProgress; HWND hDlg; HINSTANCE hInst; int pb_pos; … | |
Hi all! I'm wondering if you could look at my login code and tell me how secure it is. I know it seems to work pretty well, I'm just not very good at picking out security hazards. [B]Main login.php page:[/B] A simple form which submits to itself to check for … ![]() | |
How to increase the security of using the $_GET[ ]? Since it is easily discovered by the visitor and change the path and the edit the information? /albums.php?albums=1 /albums.php?albums=2 ![]() | |
I am facing problem in storing an image file into sql server. Following is my jsp page form tag which calls a servlet which has the storage code.. [CODE] <form name="form" action="NewServlet" method="POST" enctype="multipart/form-date"> <input type="file" name="file" size="20"> <input type="submit"> </form> [/CODE] here is my servelt code for the same … | |
I have developed a program where I do some database connections and send some queries with JDBC to MySQL database called ANU. I have used NetBeans 6.9 under Ubuntu 11.04 as platform. When I run the app from NetBeans, it works perfectly but when I try to run it from … | |
hi, i am a python beginner, at the moment just playing_with/ testing/learning the language, and i must say that i love it. i intend to use it for a new project but i have a question about ... performance. for my project cpython is absolutely ok but, still, i have … | |
Friends I need to search for some strings like 'info stat, waiting, connecting, connection pending' in the source txt file those lines which has the strings need to be extracted and saved to a new file. [CODE]import re import os import sys file = open("C:\Users\Administrator\Desktop\logs test\source.txt", 'rU') script = file.readlines() … | |
how can i get a variable inside a package example: [CODE] { package example; my $baz = "sometext"; sub new{ my $self = shift; bless \$self; } } my $foo = example->new; [/CODE] how can I get the value of $baz i tried [CODE]print $foo->{vv}; print $foo::vv[/CODE] and no luck … | |
Hi every Body , I need your help , my friend left office leaving ASP.net website uncompleted. I am facing problem with this line: 1---:> This File: GenericError.aspx 'ASP.global_asax' does not contain a definition for 'exception' D:\ICTM_PRO\ict-edu\GenericError.aspx 24 [code] <% Response.Write("<br/><div style=\"color:#C6E2FF\">" + ASP.global_asax.exception.StackTrace + "</div><br/>"); %> [/code] 2---:> This … | |
Problem looks easy. I havent issue like this in other languages, I cant find reason. PythonScript for Notepad++: non-greedy html comment removal for entity: <!-- <input id="file_upload" type="file"/> --> ass --> python script: (?P<begin> and ?P<end> group names are for clearness) [code]import re line = editor.getCurLine() p = re.compile('(?P<begin><!--+)(?P<between>.*?)(?P<end>--+>)') if … | |
hi all plz i need java code to read avi header information such as frame rate and hight and file size tks | |
Hello I am student of BSCS 4th Semester. we studied basics of java in OOP subject i want to make a 3D Paint in java simple free hand diagrams by using sphere.. drawing on different coordinates.. [CODE]/** * * @author MuDi */ import com.sun.j3d.utils.geometry.*; import com.sun.j3d.utils.universe.*; import java.util.Scanner; import javax.media.j3d.*; … | |
Hi everyone! I've worked on a shopping cart and I have a small problem. When an order is made, it doesn't send a notification email. It all seems ok but I don't know why it doesn't work. Here is the code: [code]<?php header ('Content-type: text/html; charset=utf-8'); require_once 'utf.php'; require_once 'library/config.php'; … | |
Hi I have a developer working on a gift App for me, i have seen in for instance that the app bank were you can create your own gift APP all you do is upload a gif and when it is sent to the users wall page, there is a … | |
How can I detect a palindrome as complicated as "A man, a plan, a canal, Panama!" without using erase() and just ignore the spaces and punctuations? The current version is: [CODE] #include <stdlib.h> // system pause //#inlcude <ctype.h> // for toupper() #include <iostream> // input output #include <string> //#include <algorithm> … | |
Thius script only functions in IE, In chrome and firefox you dont get the sound. How can I make it work for those browsers too? Our users are mainly IE, Chrome, Firefox, not tested in opera etc [CODE]<!-- // Sound on Mouseover javascript supplied by http://www.hypergurl.com var aySound = new … | |
Hi, I have the following code: [CODE] try { var conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Database.accdb"); var cmd = new OleDbCommand("UPDATE Resources SET Image=? WHERE ResourceName=?", conn); cmd.Parameters.Add("Image", OleDbType.VarChar).Value = listView.SelectedItems[0].Tag; cmd.Parameters.Add("ResourceName", OleDbType.VarChar).Value = _username; conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); } catch(Exception ex) { Console.WriteLine(ex.Message); } [/CODE] I keep getting the following error … | |
Hi everyone! So I'm finishing a shopping cart, and there is just one thing that annoys me - the currency is on the left side. Its like this: $10, but I want it to be like this: 10$. Is there any way that I can do this? Thanks! | |
i have written code to move a dot from on end of the lcd screen to the other end. [CODE] /*move dot across the creen with pixel increments of 10*/ for(x=10;x<120;x+=20) { Glcd_Dot(x,y,0); Glcd_Dot(x,y,1); Glcd_Fill(0); delay_ms(100); } [/CODE] i have seen examples in C, but this is on a 128x64 … | |
Hi everyone. I need a shopping cart script that uses PHP and MySQL that can be incorporated into site. I've already tried the PlainCart and seriously, that script just has too many issues that need to be solved, and I don't have the time. Also making my own is not … | |
i want to make rot13 encryption this program convert ascii code from a caracter, and work only with uppercase character (65-90) please help me [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> void rot13(const char *input); int main(void) { char *input; printf("Enter string (max. 255 characters) : "); gets(input); printf("\nConvert result %s … | |
For each of the step (even that specific as what editors and other software to use) included into building an application (for me mostly - web (php-mysql-html-javascript)) I really need tips on how to improve them so I could start working really really fast and be able to generate all … ![]() | |
hi, I am from c# field and now are doing a project using VB, I wants to ask about question as below: 1) private static DataSet ds; I wants to convert the C# codes above to VB syntax, but VB seems like don't have equivalent keywords of "static"(Correct me if … | |
![]() | Hi all, Here's the problem I have. I am designing a website in HTML and I want to include a chat system using a Java applet. I have written a small example applet that just connects to my server and gets the users that are currently online. The applet works … ![]() |
I want Picture show (image viewer)and this code is not working Please Help [CODE] PictureBox[] arrpic = new PictureBox[5]; arrpic[0] = pic1; arrpic[1] = pic2; arrpic[2] = pic3; foreach (PictureBox pb in arrpic) { picshow.Show(pb); } [/CODE] | |
Hi, I made an application that could check integers between two values (by using spinedits) and then sum the total and display it on a richedit. [U] This is my code: [/U] [CODE] var iAnswer, iBase: Integer; begin iBase := 0; for iAnswer := SpinEdit1.Value to SpinEdit2.Value do begin if … | |
Just wondering which of these functions would be faster (or if they would be the same): [CODE]class MyClass { private: bool MyVar; public: MyClass &Function1(bool MyVar); MyClass &Function2(bool MyVar); MyClass &Function3(bool var); }; MyClass &MyClass::Function1(bool MyVar) { this->MyVar=MyVar; cout<<MyVar; return *this; } MyClass &MyClass::Function2(bool MyVar) { this->MyVar=MyVar; cout<<this->MyVar; return *this; … | |
Dear All, I have a big table of poi's based on latitude and longitude. So then based on a given latitude and longitude I would like to find the nearest point in my poi table. Can I use some mysql functionality to do to be best optimize way. The problem … | |
I was reading Programming with java for Dummies 2nd Edition and came across this piece of code. I tried to read a chrachter using scannerobj.findInLine(".").charAt(0) method. But I get an exception saying theres no such method. And even nextLine, nextWord isnt working. Please help. I have pasted the exact code … | |
I have been looking for this for very long but still can't figure it out. I want a script to login to website without even typing the username and password while logging in.Its very annoying when you have to type the passwords to to login to multiple sites each time … | |
I googled how to call dll from php. I found that I should use the COM extension to do this. I followed some examples that use the COM to call the Internet Explorer application and othee applications . $browser = new COM ("InternetExplorer.Application"); and run all these examples successsfuly. **But** … | |
Hey everyone, I'm having some trouble writing this program using queues. The main issue that I'm having right now is that I have three queues, each is size=5. The user inputs a number to remove from a queue. The program will pop all the values out of the 3 queues … | |
hello, I have found a set of functions to return values from mysql queries. I have the array filled but I am not sure how I am going to display the data. Any help is greatly appreciated. [CODE] $db->select('awf_users'); print_r($db->result); [/CODE] my result is: Array ( [0] => Array ( … | |
I have this sub which performs updates in successive function call. The reader object is closed only when the operation has been completed (after the while loop has ended), yet I get this error. Any suggestions? [CODE] sub reset_slno() dim objCmd2 as new OleDBCommand() dim objReader2 as OleDBDataReader objCmd2.Connection = … | |
i am writing a vb.net program which gets a c program as an input and checks it for errors,now i want my program to skip the comments in the c program,i have written some code but its not working pls tell me where i have gone wrong,or if u have … | |
Hello World ! I have problem regarding configuration of OPenAL in Dev c++. I have included openal32.dll in system32(Windows), alut.dll in system(windows folder), included alut.h,al.h in AL directory (c:\dev cpp\include\AL) as well and linked all the files viz. -lopenal -lalut. but the source code is not getting compiled..What's the problem. … | |
Hi every body .. i got these problems with my code when ever i choose "no" as an answer .. it requires me to create an a count while i don't want to create one .. another problem occurs when i use the Acounte_Number to be the ID for the … | |
[CODE]int operator%( double a, double b ){ int aa = (int) a; int bb = (int) b; return aa%bb; }[/CODE] gives me an error message "must have an argument of class or enumerated type"! As you can see, I want a simple program which truncates doubles into their equivalent integers, … | |
Hello,software comrades! I have a task to do, and I have figured some part of it,but I have troubles with it.So i am writing and asking for some advice. The task is as it follows: You are to create a program (C++ language) in which u enter a number (preferably … | |
I recently wrote a java jar file that takes the current date and time and puts it into a text file. What i want to do is put this into a users startup folder so i know when they got on to the computer. However, if the jar is in … | |
![]() | Hey, I am not sure whether this is the right place to ask this but I figured that maybe someone here has used JFileUpload for uploading files to a server. I just downloaded the applet and tested it out on my server and uploading works as long as the files … ![]() |
![]() | Good morning/afternoon/evening, My high school Calculus teacher is requiring our class to program using VPython. Here is the link to the projects we are required to do: [URL="http://www.laquintahs.org/ourpages/auto/2007/5/15/1179207882248/math_programming%20_projects.doc"]Projects[/URL] I was able to finish Project #1 because my teacher provided the code and I just had to edit some parts, but … ![]() |
This function executes the first time correctly, but the next time the function returns an error. [CODE]function edit_div(id) { if(edit_status == 0) { document.getElementById("addnew").innerHTML = '<form><h5>Move</h5>Top Margin: <input type="text" id="topmargin"></br>Left Margin: <input type="text" id="leftmargin"></br><h5>Backgorund</h5>Background Color: <input type="text" id="backgroundcolor"></br><h5>Border</h5>Border Width: <input type="text" id="borderwidth"></br>Border Type: <input type="text" id="bordertype"></br>Border Color: <input type="text" id="bordercolor"></br><input … | |
![]() | [CODE]<script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getData(dataSource, divID, data) { if(XMLHttpRequestObject) { var obj = document.getElementById(divID); XMLHttpRequestObject.open("POST", dataSource); XMLHttpRequestObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); XMLHttpRequestObject.onreadystatechange = function() { if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status … ![]() |
So I'm trying to access the .css('height') of an element and it keeps returning 0px regardless of what it's height is. I've put a couple alerts to see what it gets in the $(document).ready() function so it should be accessible by then. The height property is being set in the … | |
Hello, I'm going to make a portfolio and am trying to use jquery for effects. Basically I have several menus and when I click on any of them the showed text in content div of page should change, using ajax. These are levels: a) SlideUp the #Content div b) Change … | |
Something similar to it is cross-posted here : [url]http://stackoverflow.com/questions/6275685/problem-getting-shared-status-of-gtalk-using-xml[/url] I am not getting replies there so posting it here again. I'm using smack 3.2 I have two queries: 1) How can we get the nick name or the name actual name of the user not the JID that is logging … | |
OK, I looked for a noob section to the forum, but didn't find one. So here's my issue. I'm doing an exercise from a text book for a class I took two years ago. Back then, this wouldn't have been an issue. Now, having not looked at C++ for all … |
The End.