Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~25.1K People Reached
Favorite Tags

111 Posted Topics

Member Avatar for apanimesh061

Could anyone please help me out in retrieving the number of audio devices using "waveInGetNumDevs" ? I cannot make out how to do it ? Thanx :)

Member Avatar for aamitarya
0
573
Member Avatar for apanimesh061

#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <process.h> #include <string.h> #include <math.h> int count = 0; typedef struct bitmap24 { unsigned char header[54]; unsigned char* pixels; }BMP; void readBMP (char* filename) { int i; FILE* f = fopen(filename, "rb"); FILE* f1 = fopen("save.bmp", "wb"); FILE* pixelVals = fopen("vals.dat", "w"); unsigned …

Member Avatar for Adak
0
555
Member Avatar for apanimesh061

Are the crawled URLs stored in the database then they are traversed in BFS/DFS manner .... or is it something else ? Please Help!

Member Avatar for LastMitch
0
95
Member Avatar for apanimesh061

When C++ source is compiled the errors are shown in this format `cPlusPlusSource.cpp:row_number:column_number: error: Error description text` What should the regular expression for this be ? Please help!

Member Avatar for apanimesh061
0
176
Member Avatar for apanimesh061

<!DOCTYPE html> <html> <head> <script type="text/javascript"> function ShowFile(sFilePath){ var oFileSystem = new ActiveXObject("Scripting.FileSystemObject"); frmEditHTML.tarHTMLText.value = oFileSystem.OpenTextFile(sFilePath.value).ReadAll(); } function SaveAfterEditing(sFilePath){ var oFileSystem = new ActiveXObject("Scripting.FileSystemObject"); var oFile = oFileSystem.CreateTextFile(frmEditHTML.filPath.value,1); oFile.WriteLine(sFilePath.value); oFile.Close(); } </script> </head> <body> <form name="frmEditHTML"> Select the HTML File you want to Edit <input type=file name="filPath" onchange="ShowFile(this)"> <textarea name="tarHTMLText" …

Member Avatar for diafol
0
472
Member Avatar for apanimesh061

I sent a C++ code snippet from textarea to another page using php. Evenything got printed but the as the header file was <iostream>, it did not get printed. Any piece of text that is enclosed by <> is not printed. What should I do ? Please help!

Member Avatar for deceptikon
0
103
Member Avatar for apanimesh061

I want a button which when clicked opens a windows explorer window then the content of the file that I choose should get copied to the text area on that page... I have extensively searched but could not find anything ...

Member Avatar for LastMitch
0
180
Member Avatar for apanimesh061

How can I extract the main classname of a java file ? I am doing this in php! I will read the whole java program as a string! Please help! <any_type/public/private/static> class **MainClass** { //Could be anything over here! public static void main(String[] args) { System.out.println("Hello World!"); } }

Member Avatar for AleMonteiro
0
112
Member Avatar for apanimesh061

<?php include 'simple_html_dom.php'; function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://rural.nic.in'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); foreach($html->find('li')as $item) { echo $item."<br>"; } //print_r($outhtml); ?> I wish to print only …

Member Avatar for adam.adamski.96155
0
97
Member Avatar for apanimesh061

<?php include_once('simple_html_dom.php'); function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://books.rediff.com/categories'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); $urlarray = array(); foreach($html->find('a') as $link) { $findme = 'http://'; if (strpos($link->href, 'http://') === …

Member Avatar for Traevel
0
813
Member Avatar for apanimesh061

There is a list urls like "http://books.rediff.com/categories/travel/general/2288" I wish to find out whether they start from "http:/" or are relative urls starting from "/", if true store them in an array ! ... if (strpos($html->href, 'http://') <= 0) { array_push($urlarray, $link->href); } ... This does not work .... How should …

Member Avatar for apanimesh061
0
157
Member Avatar for apanimesh061

<?php include_once('simple_html_dom.php'); function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://books.rediff.com/categories/fiction-genres/2180204'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); foreach($html->find('a') as $link) { echo "<a href =".$link->href.">".$link->href."</a><br>"; } ?> This gives all the …

Member Avatar for apanimesh061
0
1K
Member Avatar for apanimesh061

I need to run Mingw4.6 on my Dev C++ which already has mingw32 3.6 installed! Does this version of mingw allow us to use 'C++11' ??? Please help!

Member Avatar for triumphost
0
2K
Member Avatar for apanimesh061

if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) { $video_id = $match[1];.... How do I get all the youtube video links ona page as well as their IDs? Please help!

Member Avatar for diafol
0
68
Member Avatar for apanimesh061

Suppose I want retrieve values froma table that are greater than 10, should I first store all the values in a list and then check condition of ">10" using any language or should I just just retrieve all values directly from databse using query : `Select id from table where …

Member Avatar for ~s.o.s~
0
113
Member Avatar for apanimesh061

A way to measure internet speed through javascript is given here ... [Click Here](http://jsfiddle.net/yahavbr/tEFpC/2/) for it, it uses a big image to download and then divides the time taken by the size of the image ....! Is it possible to measure the speed using a video streaming website like Youtube …

Member Avatar for pritaeas
0
209
Member Avatar for apanimesh061

Glassfish server 3.1 does not work in Netbeans that is why I thought of using WebLogic. Could anyone give link to good tutorial on how to use weblogic in netbeans ?? Can Enterprise Java Beans modules run on weblogic ?? Please help!

0
77
Member Avatar for apanimesh061

I want to display the first or any frame of a youtube video directly as I click on its url. Can I also get the dimensions of that particular frame ? How should I do it ? Is 'ffmpeg' an option, but I have seen that it is used with …

Member Avatar for apanimesh061
0
1K
Member Avatar for apanimesh061

I checked a few websites related to this topic but I could not find anything to start with ? http://ditio.net/2008/08/06/detect-connection-speed-with-javascript/ http://www.emanueleferonato.com/2006/05/31/determine-connection-speed-with-php/ Using any of these is not giving the right result !! What should I do ? Please help!

Member Avatar for pritaeas
1
154
Member Avatar for apanimesh061

I need to extract pitch, dynamics (loudness or softness), tone color, and duration of an audio file. This is regarding some research work I am doing. How should I start ? Provide me with some links if possible! Is C++ a good option for this? Or should I try some …

Member Avatar for mrnutty
0
82
Member Avatar for apanimesh061

[CODE] import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.lang.NullPointerException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; /** * * @author Animesh Pandey */ public class anilet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter …

Member Avatar for ghul-mur
1
342
Member Avatar for apanimesh061

public static void main(String[] args) { Set<Point> points = new HashSet<Point>(); points.add(); --- how to add point of "Point" type cureAlgor(0.01, 3,points); } Point is a pre-defined class. I want to know what to wrtie in points.add(). Please help!

Member Avatar for NormR1
0
113
Member Avatar for apanimesh061

<?php error_reporting(E_ALL ^ E_NOTICE); set_time_limit(0); $hd = mysql_connect("localhost", "root", "") or die ("Unable to connect"); mysql_select_db ("movie", $hd) or die ("Unable to select database"); $res0 = mysql_query("SELECT * FROM users", $hd) or die ("Unable to run query"); $count_users = mysql_num_rows($res0); $res1 = mysql_query("SELECT * FROM movies", $hd) or die ("Unable …

Member Avatar for diafol
0
172
Member Avatar for apanimesh061

I have installed oracle10g but I cannot find any java sample programs for data mining! I could not find any download link on the internet! Please help!

0
70
Member Avatar for apanimesh061

<?php include('./phplot.php'); $graph =& new PHPlot(); $example_data = array( array('a',3), array('b',5), array('c',7), array('d',8), array('e',2), array('f',6), array('g',7) ); $graph->SetDataValues($example_data); $graph->DrawGraph(); ?> When ever I run this program I get an error ! `The image "http://localhost/test.php" cannot be displayed because it contains errors.` I also have GD library enabled! What is the …

Member Avatar for veedeoo
0
343
Member Avatar for apanimesh061

I have a database of 1000K values. How can I use PHP to parse that database in less time ? I am using a foreach loop fr comparison but it takes 15 minutes to parse all data! Should change be done in PHP or SQL ? Please help !

Member Avatar for |-|x
0
62
Member Avatar for apanimesh061

I am trying to implement ROCK algorithm in JAVA. It is used to cluster categorical data. I have like N statements that are to be clustered. This is a good example of this algorithm: faculty.ksu.edu.sa/ykhlef/mscThesis/clustering-P1.ppt I have coded till number of links for each cluster. But I cannot understand how …

Member Avatar for NormR1
0
103
Member Avatar for apanimesh061

import java.sql.*; import java.util.ArrayList; import java.util.Iterator; /** * * @author Animesh Pandey */ public class dbConnect{ jaccardIndex ji; public float calcJaccard(String s1, String s2) throws Exception { ji = new jaccardIndex(); float sim = ji.Jaccard(s1, s2); System.out.println("calcJaccard"); return sim; } @SuppressWarnings("static-access") public int getLength(String s) throws Exception { ji = …

Member Avatar for JamesCherrill
0
136
Member Avatar for apanimesh061

I want to extract unique elements from a string. import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.util.StringTokenizer; /** * * @author Animesh Pandey */ public class Main { /** * @param args the command line arguments */ public static Set getUniqueTokens(String str, String separator) { StringTokenizer tokenizer = new StringTokenizer(str, …

Member Avatar for NormR1
0
156
Member Avatar for apanimesh061

What should be the regular expression for thid code ??? `<span style="text-align:justify;">Stepping out of the Shadows:M6 Once touched... Marisa Somerville has changed. Now a confi dent, groomed, successful businesswoman, in some ways she's nothing like the scared wife of an abusive husband that Rafe Peveril survived a plane crash with …

Member Avatar for apanimesh061
0
297
Member Avatar for apanimesh061

I have a table ... Ratings (userid, movieid, ratings, time) where ... select count(*) from ratings where userid = X; (No of ratings of a particular user) Here, X ranges from 1-6040! How should I get the count of each user and then store it in another table 'Users' in …

Member Avatar for debasisdas
0
109
Member Avatar for apanimesh061

If we are given a data set which has student marks, GPA and Attendance, how can KNN be used to find the best 4 students? I admit, that this is a homework question, but I am not asking for the code ... I will do that myself.... I only need …

0
64
Member Avatar for apanimesh061

[CODE] import java.io.*; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.lang.*; import java.util.LinkedList; import java.util.List; /** * * @author Animesh Pandey */ public class Main { public static int [][] sort( int a[][]){ int i, j, t = 0, t1 = 0, t2 = 0 ; for(i = 0; i < a.length; …

Member Avatar for NormR1
0
195
Member Avatar for apanimesh061

[CODE] set ns [new Simulator] set tracefile [open out.tr w] $ns trace-all $tracefile set nf [open out.nam w] $ns namtrace-all $nf proc finish {} { global ns tracefile nf $ns flush-trace close $nf close $tracefile exec nam out.nam & exit 0 } set n0 [$ns node] set n1 [$ns node] …

0
77
Member Avatar for apanimesh061

<prjt.ctl> [CODE] LOAD DATA INFILE 'F:\DataMining\dvdlist.csv' DISCARDFILE 'F:\Datamining\Discard\dvdlist.dis' INTO TABLE dvdlist FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS( DVD_Title char, Studio char, Released date "DD-MM-YYYY" NULLIF Released=BLANKS, Status char, Sound decimal external, Versions char, Price char, Rating char, Years char, Genre char, Aspect char, UPC integer external, …

Member Avatar for debasisdas
0
141
Member Avatar for apanimesh061

I am using NetBeans 6.9 and Oracle 10g Express Database. All sql commands except insert are working fine. If I insert a value after connecting from the command line (conn HR/hr), the values are not reflected in Netbeans. The SQL Command line, Windows Command line and Oracle Home Page are …

Member Avatar for debasisdas
0
125
Member Avatar for apanimesh061

I want to make a project on Audio Fingerprinting. There will be recorded file preferably .wav, that will be matched with all the audio files present in a song database and will return the best match. First I wish to try this on my own computer, then I will try …

Member Avatar for shalshal
0
152
Member Avatar for apanimesh061

How should I use SQL loader to load a .csv file as an Oracle Database ? [CODE] CREATE TABLE products( ProductID INTEGER NOT NULL, ProductName CHAR(30) NOT NULL, SupplierID INTEGER, CategoryID INTEGER, QuantityPerUnit CHAR(30) NOT NULL, UnitPrice INTEGER NOT NULL, UnitsInStock INTEGER NOT NULL, UnitsOnOrder INTEGER NOT NULL, ReorderLevel INTEGER …

Member Avatar for apanimesh061
0
948
Member Avatar for apanimesh061

I am having problem in connecting Oracle to Netbeans. I am using Oracle 10g EE 10.2.0.3.0 and NetBeans 6.9. I have attached an image that will explain the problem. Please help! Thanx

0
61
Member Avatar for apanimesh061

[CODE] CREATE TABLE Query3Ans( dname char(20) ); CREATE VIEW deptNonPhDs(dept, numNonPhDs) AS SELECT dcode AS dept, count(*) AS numNonPhDs FROM instructor WHERE idegree != 'PhD' GROUP BY dcode; INSERT INTO Query3Ans( SELECT d.dname FROM deptNonPhDs dp1, department d WHERE dp1.numNonPhDs >= (select max(dp2.numNonPhDs) FROM deptNonPhDs dp2) AND dp1.dept=d.dcode ); select …

Member Avatar for hfx642
0
137
Member Avatar for apanimesh061

Is Optical Character Recognition a good example/application of Data Mining techniques ? or Should Data Mining be applied mainly to web research/web tools ??? Could you please give me more examples on Data Mining that could make a good project if OCR is not good ??!! Thanks ! :)

Member Avatar for sufyan2011
0
431
Member Avatar for apanimesh061

I want know the reason why this code is not running ? My Wampserver IP address is 127.0.0.1:8080 or localhost:8080 ! The username is the default "root", but I changed my password to "abcd" ! [CODE] <?php /** * @author * @copyright 2011 */ $con = mysql_connect('127.0.0.1:8080','root','abcd'); if (!$con) { …

Member Avatar for Stefano Mtangoo
0
707
Member Avatar for apanimesh061

Here is a program to create two threads in which parent thread read the count of character in inputting string and child thread reverse the string up to that count ! [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <pthread.h> struct pass { int c; char *arr; }; …

0
68
Member Avatar for apanimesh061

How can one demonstrate Multiprogramming and Idle loop in C ??? Please help !!! I can't think any way ..... :?: Thanks

Member Avatar for Narue
0
221
Member Avatar for apanimesh061

I currently have Ubuntu 10.10, but I could not find the code for USB driver.... it had only the makefiles ! I need the object files, c files or perl files for that driver ! How do I do that ? Please help ! :D

Member Avatar for JasonHippy
0
200
Member Avatar for apanimesh061

I was going through some documents and web pages on building a boot loader ! I am new to assembly programming. I want to know whether I should use NASM or MASM for assembly programming ? What is the meaning of this code snippet : [ICODE] .286 ; CPU type …

Member Avatar for camthalion95
0
244
Member Avatar for apanimesh061

Is C# recommended for Kernel Programming or Device Driver programming ??? I have to make a project on Operating Systems. I have four topics: 1. Real Time OS 2. Device driver programming 3. Kernel Programming 4. File System Programming Should one program them in C# or stick only to C/C++ …

Member Avatar for WildBamaBoy
0
212
Member Avatar for apanimesh061

[CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript"> i = 0; function changeimage() { images = new Array("1.png", "2.png", "3.png", "4.png"); if (i<images.length) { document.getElementById('myimage').src = images[i]; } else { i = 0; document.getElementById('myimage').src = images[i]; } i++; } </script> </head> <body> <script …

0
76
Member Avatar for apanimesh061

I do not know how to compile a visual C++ project using makefile ! I am trying to build a boot loader using C++ and assembly. This is the list if the constituent files in the project: start.asm //this is the beginning bootMain.cpp //main function displayScreen.cpp //clears th screen buffer …

0
57
Member Avatar for apanimesh061

Please tell me what r interfaces ..... I tried to understand them myself but could not !!!??? Please help !

Member Avatar for k.d.m
0
108

The End.