15,902,634 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by shankha2010 (Top 24 by date)
shankha2010
23-Nov-15 4:54am
View
Hi Thanks for your reply.
I need to do something from C++ side [idl,struct STData1 etc.] so that "[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]" get appended in the C# side autometically without myself putting it manually.
something like:
*.idl
[uuid(AA612D65-AE0E-4C51-9A35-79A76FF20747)]
struct STData2
{
long long tTimeStamp;
something here=""
struct STData1 tData[16];
};
shankha2010
28-Apr-15 5:56am
View
Absolutely awesome and spellbounding.
I was trying to figure out these all explaination from loong days..
I really have very less knowledge about the wave equation of this tanpura.
I assumes it as below: [added what I learnt from your explaination]
A*Sin(w1*T1)+A*Sin(w2*T2)+A*Sin(w2*T3)+A*Sin(w3*T4)
Where
w1 is frequency of PA [A * (S )^5]
w2 is frequency of A [SA]
w3 is frequency of A(II) [SA`]
T1,T2,T3,T4 are consicutive time interval
Please see the sample sound:
http://www.soundsnap.com/tags/tanpura
labled as "TANPUR 1 1 C"
[the waveform is consist of 3 distinct single freq. wave what I was telling [pa-SA-SA-sa] ]
I am trying to help some musical guy who have profound knowledge on music [he is a non technical guy but understands these better than me.]
let me go back to the guy and to resolve the mess.
for now What I can tell is,
Assume a 2D matrix:
I have total 48 sound files C,C♯,D,E♭,E,F,F♯,G,G♯,A,B♭,B [total 12]
for each 12 type above i have [PA,MA,NI,SA]
so 12*4=48 wav files recorded in a studio environment with perfection.
no what have to do is:
INPUT: C-PA.wav and C#-PA.wav
OUTPUT: creating C1-Pa.wav,C2-Pa.wav
So what I thought was,from the above equation I'll take T1 time interval [say from 0th milisec to 2000milisec] from both the input and do fft and get 2 in between freq and do ifft back.
As for each of those interval it behaves as mono tone [single freq] so I thought I can get that. :(
I dont wan't to "Accept Solution" I want more from you Sir :)
Below is one of the simple app I created for testing,
https://play.google.com/store/apps/details?id=com.eswar.EswarMeditation
which is having:
e_panchama_single_t.wav [means E-PA]
shankha2010
26-Apr-15 4:33am
View
Yes you are right.Sorry for messing up the question.
Example: Say I am taking input C and C#
yes you are right C and C# are semitone
As per my calculation
C frequency=262
#C frequency =277
I want to generate 3 more intermediate sound of interval (277-262)/3
262 [C]
262+ 5= 267[C1]
267+ 5= 272[C2]
272+ 5= 277[C#]
Why want to take those sound to interpolate this?
Because those are real sound recorded by someone.A sound generated completely by equation will not have that quality.[may some extra low power frequency caused by human error or intension making it different from real sound.]
Is it understandable now? actually I am from India [south] here the sounds are calculated this way.[or may be every where same.]
Regards,
Shankha
shankha2010
15-Jan-15 2:27am
View
ok thanks :)
shankha2010
23-Dec-14 0:49am
View
Hi Darren,
Thanks for the reply.My only objective is no one should steal those files and reading should be very smooth [to avoid glitch while playing the sound.]
As per your plan I shall try in following way.
1>spliting the sound files in say 10 pieces
2>encrypt and keep it as blob in sqlite.
*That way i can avoid out of memory exception
*Only Not sure if the reading from db and decrypt will be smooth enough to avoid glitches.
I'll try this.please let me know if you have any other plan.
thanks again :)
shankha2010
29-May-14 5:01am
View
nice one.Thanks :)
But doubt I have is.Will it allow to write native codes and compile? [like writing own code in native android or ios]?
shankha2010
7-Jun-13 5:35am
View
Hi,
Thanks for the link.Its providing how to get db schema [DDL].Actually I already have a code for that, I want a way to get table content.
shankha2010
10-Jul-12 1:41am
View
Thanks a lot for the reply.
It seems to be a Hardware solution by sorting some port with resistance.
My question is
With this arrangement will the Print Screen work?
Please send me if you have any reference link about "how OS send data to monitor? or where the data stores?"
I found a memory location where If I keep some character its becoming visible in Turbo C[C++ in Dos mode]
which seems to be similar as memory mapped IO.
But I don't have any idea about how Windows Display works.
Thanks in advance.
shankha2010
7-Jul-12 1:08am
View
Hi ,
Thanks for reply.yes I have tried that also and it improved a lot as you told.
Still I am searching for some other low maintenance DB which won't assume "it will run in embedded devices" or "it can't use much memory".and better if the DB not be a single flat file.May be that will make some complex query like sort,group by,join etc. more faster as memory is not a limitation for platform where it will run it.
shankha2010
19-Jun-12 2:12am
View
this is the result I found which suggests incase of more number of thread that more than number of core present multithreading is advantegious.
Task : To Find first 20000 Prime number
System config:core i7;4GB RAM;Win7 64 Bit
Language:VC++
2 thread/core
================
serial :17004ms
multicore :8689ms
multi thread :9002ms
multicore+multi thread:9002ms
4 thread/core
==============
serial :33665ms
multicore :11170ms
multi thread :11014ms
multicore+multi thread:11061ms
10 thread/core
==================
serial :84896ms
multicore :26131ms
multi thread :22464ms
multicore+multi thread:22823ms
shankha2010
23-May-12 8:32am
View
http://www.arjay.bc.ca/Modula-2/Text/Ch12/Ch12.4.html
thanks for this link :)
shankha2010
23-May-12 2:43am
View
thanks a lot.
I found that in such cases instead of coming the event to onMouseUp its coming to onMouseMove and its easy also to distinguish when its coming the onMouseMove due to the above said reason.[by switching a flag ON in onLButtonDown and checking it to onMouseMove]
However thanks a lot for this support :)
shankha2010
17-May-12 8:41am
View
Thanks for the response,
somewhere I found
put set SetCapture(); inside ON_WM_LBUTTONDOWN()
and ReleaseCapture(); inside ON_WM_LBUTTONUP()
but in my case ON_WM_LBUTTONDOWN() is occuring outside.
so is there any trick I can do with this?
like writing SetCapture(); in the OnInitialUpdate()??
if possible,then please send that code snippet.
shankha2010
29-Apr-12 12:05pm
View
here is the code of that 2nd class
======================================
package aexp.elistcbox;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.SimpleExpandableListAdapter;
import android.widget.TextView;
//http://stackoverflow.com/questions/7700223/how-to-delete-elements-from-a-list-in-android
//http://stackoverflow.com/questions/5188196/how-to-write-custom-expandablelistadapter
public class CustomExpandableListView extends SimpleExpandableListAdapter {
final LayoutInflater layoutInflater ;
List >
List > grp;
List >> child;
View v;
public CustomExpandableListView(Context context,
List> groupData, int expandedGroupLayout,
int collapsedGroupLayout, String[] groupFrom, int[] groupTo,
List>> childData,
int childLayout, String[] childFrom, int[] childTo) {
super(context, groupData, expandedGroupLayout, collapsedGroupLayout, groupFrom,
groupTo, childData, childLayout, childFrom, childTo);
grp=groupData;
child=childData;
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// TODO Auto-generated constructor stub
}
public CustomExpandableListView(Context context,
List> groupData, int groupLayout,
String[] groupFrom, int[] groupTo,
List>> childData,
int childLayout, String[] childFrom, int[] childTo) {
super(context, groupData, groupLayout, groupFrom, groupTo, childData,
childLayout, childFrom, childTo);
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// TODO Auto-generated constructor stub
}
public CustomExpandableListView(Context context,
List> groupData, int expandedGroupLayout,
int collapsedGroupLayout, String[] groupFrom, int[] groupTo,
List>> childData,
int childLayout, int lastChildLayout, String[] childFrom,
int[] childTo) {
super(context, groupData, expandedGroupLayout, collapsedGroupLayout, groupFrom,
groupTo, childData, childLayout, lastChildLayout, childFrom, childTo);
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// TODO Auto-generated constructor stub
}
@Override
public View newGroupView(boolean isExpanded, ViewGroup parent){
return layoutInflater.inflate(R.layout.group_row, null, false);
}
@Override
public View getGroupView(int groupPosition,boolean isExpanded,View convertView,ViewGroup parent)
{
// final View v = super.getGroupView(groupPosition, isExpanded, convertView, parent);
View v = null;
if( convertView != null )
v = convertView;
else
v = layoutInflater.inflate(R.layout.group_row, parent, false);
// Populate your custom view here
((TextView)v.findViewById(R.id.childname1)).setText((String) ((Map<string,object>)getGroup(groupPosition)).get("colorName") );
((ImageView)v.findViewById(R.id.test_image1)).setImageDrawable( (Drawable) ((Map<string,object>)getGroup(groupPosition)).get("img1") );
return v;
// return layoutInflater.inflate(R.layout.group_row, null, false);
}
@SuppressWarnings("unchecked")
public void removeChild(int groupPosition, int childPosition,View v,ExpandableListView parent )
{
// ((Map<string,object>)getChild(grou
shankha2010
25-Feb-12 1:59am
View
Hi enhzflep,
I have started using OpenCv there I can even take real time image and process
from my web cam.They have provided the function with same name as its in Matlab.
though its not as interactive as matlab.But in side a small package they have given so many things.ready made training models ,source code.its really awesome.
is there any example Optical Character Recognition [OCR] in OpenCv.
please let me know.
Thanks again,
shankha2010
shankha2010
25-Feb-12 1:55am
View
hi jkchan,
thanks a lot.I'll check those books for understanding them.And it would be great if I found my in a stage where I'll feel I can write a code of DTFT,FTT or efficient thinning algorithm and resizing algorithm from scratch.
Thought I have done my B.Tech in ECE my final year project is on image water marking[in Matlab simulink] still academic study have for limitation.It ends where the passion starts.
However I have some specific question questions please let me know if you can clarify my doubt.
1>the original image is said to be in spatial domain, where after DFT it transfers to Frequency domain.
My question is
I know the concept of frequency domain from wave forms point of view.[that a single frequency want means sine or cos wave represents a single spike in frequency domain parallel to Y-Axis with the amplitude at Y-Axis]
But what is the concept or idea of representing an image[or a 2-D integer matrix] in frequency domain.
2>Want a reference where I can get what is the visible effect of different math model on Image[eg. fft is used to reduce noise from image(not sure) etc.].
3>How the training model works for pattern recognition and how a self trained
model works[what is the theory and concept].
Thanks Again,
shankha2010
http://xtreamprogrammer.com/
shankha2010
24-Feb-12 2:33am
View
Thanks a lot.
Just I Saw at a glance.It looks really what I want.
And yes google and some other capcha s are unbreakable till now.
so not expecting a miracle to that extent.
However Thanks a lotttt!!!
shankha2010
15-Feb-12 23:34pm
View
Hi,
Thanks for reply.
please let me explain in more clear way.
shankha2010
15-Feb-12 23:32pm
View
Deleted
shankha2010
22-Jan-12 23:45pm
View
Hi,
First of all Thanks a lot for the response.actually I need to send a lots of
quearies to google which is prone to "google block" .So I am using embedded
Internet Explorer to execute the queary [so that atleast I can give the capcha and unblock it].
I never used google api so far so not sure how to handle such situation
there.[another problem is google can track me from any where even I am in other computer by the api-key which might increase the blocking rate.]
Any suggestion please?
shankha2010
13-Dec-11 5:44am
View
after studying this link
http://msdn.microsoft.com/en-us/library/ms775123(v=vs.85).aspx
I think ::URLDownloadToFileA(/*this is the place*/, "a.com","c:\a.html",NULL,&callback);
where I can implement
TIAuthenticate class of http://www.ureader.com/msg/1510234.aspx
and now I am getting the control but
HRESULT __stdcall TIAuthenticate::QueryInterface(const IID& iid,void ** ppv)
{
//
if(iid == IID_IUnknown)
{
*ppv = static_cast<iauthenticate*>(this);
}
else if(iid == IID_IAuthenticate)
{
*ppv = static_cast<iauthenticate*>(this);
AfxMessageBox("Authenticate interface requested.");
}
else
{
*ppv = NULL;
return E_NOINTERFACE;//it is coming here :(
}
reinterpret_cast<iunknown*>(*ppv)->AddRef();
return S_OK;
}
shankha2010
20-Jun-11 9:29am
View
Thanks a lot clearly describe all the 3 question :)
ok.. I shall try to track that Ajax response and let you know if found any progress.
shankha2010
20-Jun-11 5:40am
View
:) thanks again for such unbelievably fast response :)
Yaah! that browser handle gives proper response but too slow being a heavy weight process. :(
so what do you think is the difference between an "InternetExplorer.Application" and WinInet is this point of view?
is it
1>WinInet doesn't have any inbuilt Javascript[or AJAX] renderer engine
so it can't load any ajax content?
Is it possible if we come to know after rendering by the browser what is
the next request send to the server[how it looks like]by that AJAX[using "firebug" or "tamper data" or "network monitor" etc.] and programmaticallly
forming the same type of request and sending it?
is it possible?
One more thing ,
I tried with asynchronous WinInet Connection which sometimes gives better result.It allows me to pass the reference of a callback function.where I can monitor the response status.But still I found it is not able to download
AJAX ed content.
So why it is called Asynchronous?
The code is pasted below.[got it some where from codeproject.com]
shankha2010
20-Jun-11 2:19am
View
First of all a great thanks for the response.
if you directly search with this link http://www.twitter.com/#!/search/cts
you can find out list of some people from cts.[please past it in address bar manually]
I don't want the search result from the image page as you told above.
I tried the code you mentioned above but it is returning only the home page of twitter in google crome and in IE it is opening C directory content [as you told] .
But I want those person's name[means search result which is loading by AJAX call] in that "twatter.html" file
and last of all thanks for showing those changes in my code.As i am new in WinInet programming really this small tips helps me a lot.
Thanks again and waiting for the reply :)
[one more question: Is there any place to put delay to get the AJAX load completely to get those
content in file?]
Show More