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
~24.5K People Reached
Favorite Tags
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
566
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
518
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
94
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
174
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
442
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
101
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
177
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
107
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
91
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
805
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
145
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
67
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
108
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
207
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
75
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
152
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
80
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
337
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
110
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
169
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
69
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
337
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
61
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
100
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
133
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
152
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
293