15,886,664 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 vishnulalr (Top 64 by date)
vishnulalr
16-Jun-15 23:22pm
View
no error but motor is not moving
vishnulalr
11-Jun-15 2:24am
View
but how can i draw a pentagon if 2 points p1 and p2 and some link length are given
vishnulalr
11-Jun-15 1:58am
View
a fixed object position (x,y) and base position of arm (x1,y1) and lenght of fixed arms
i want to move the arms to object
vishnulalr
11-Jun-15 1:46am
View
i am working on a robotic arm project it has 3 links i want to calculate the angle between each link it forms a pentagon including object
vishnulalr
26-Oct-13 10:57am
View
no there is no other elements i have only a text box and a submit button but problem arises when passing variable in file_get_html($xyz);
vishnulalr
25-Oct-13 14:16pm
View
no there is no identical names only one textbox
vishnulalr
25-Oct-13 13:56pm
View
i tried both but dont work
vishnulalr
25-Oct-13 13:52pm
View
<form action="example_extract_html.php" method="get">
<input type="text" name="t">
<input type="submit" value="search">
</form>
vishnulalr
25-Oct-13 13:43pm
View
$t=$_GET["t"];
if($t=="")
{}else{
$data= file_get_html("http://fenopy.se/?keyword=".$t);
this is teh fulll code but if i use
$data= file_get_html("http://fenopy.se/?keyword=xxx"); it will give the result
vishnulalr
25-Oct-13 13:29pm
View
$_POST["t"] value is "xx"
from the form textfield how can i remove " from the string
vishnulalr
10-Aug-13 21:14pm
View
Deleted
Thanks for the reply. but in the case of teamviewer app ( http://www.teamviewer.com/hi/index.aspx )its a plug&play like method. we dont need to configure our network both can communicate without any configuration on the router
vishnulalr
2-Jul-13 2:38am
View
thanks Prasad Khandekar for your reply :-)
vishnulalr
2-Jul-13 2:38am
View
thanks sowvin for your reply :-)
vishnulalr
2-Jul-13 2:37am
View
thanks Zoltán Zörgő for your reply :-)
vishnulalr
24-Jun-13 0:18am
View
its of 47 kb to 74 kb size please help me can show an example for this . im beginner in this field
vishnulalr
23-Jun-13 10:05am
View
thanks for you reply it help me a lot but how can i get for up down ? i have got another snipet is that good for me it almost works
float xCentroidsDifference = center.X - pointOnCircle.X;
float yCentroidsDifference = center.Y - pointOnCircle.Y;
float threshold = 50;
UpdateText5("center");
if (Math.Abs(xCentroidsDifference) > Math.Abs(yCentroidsDifference))
{
if (xCentroidsDifference > threshold)
UpdateText5( "right");
if (xCentroidsDifference < -threshold)
UpdateText5("left");
}
if (Math.Abs(xCentroidsDifference) < Math.Abs(yCentroidsDifference))
{
if (yCentroidsDifference > threshold)
UpdateText5("up");
if (yCentroidsDifference < -threshold)
UpdateText5("down");
}
vishnulalr
23-Jun-13 9:40am
View
some problem in code project reply sysytem i had copy paseted the code but it show like this $("")
here is the site http://mrjinn.net23.net/Admin/#tabs1-js please check
vishnulalr
18-Jun-13 11:09am
View
thanks for you reply it help me a lot i have done the following is there any space for optimization
<pre lang="PHP">
<script>
function accept(id)
{
var dataString = '&id='+ id;
$.ajax
({
type: "POST",
url: "approve.php",
data: dataString,
cache: false,
success: function(html)
{
$("#D"+id).fadeOut(200);
}
});
}
</script>
<script>
$("").click(function(){
accept($("").html());
});
$("").click(function(){
discard($("").html());
});
</script>
</pre>
vishnulalr
11-Mar-13 3:08am
View
can i use any network simulation software i have developed this for a college project and i dont know how to test it. it can run on live ( public ip on internet )network like a charm but Im confused to test it with a simulation software
vishnulalr
11-Mar-13 3:01am
View
is there any software instead of manual
vishnulalr
9-Mar-13 1:51am
View
for $row[0] is a list of ip stored in db as varchar
and $row[1] is a list of packets in db as varchar
vishnulalr
8-Mar-13 10:54am
View
this is a sample output
"115.114.130.49" => 10950.8067479674,"115.114.130.85" => 10950.8067479674,"115.114.85.245" => 10950.8067479674,"117.206.48.1" => 21901.6134959348,"120.29.215.29" => 10950.8067479674,"127.0.0.1" => 4504.6714634146,"173.194.36.41" => 10950.8067479674,"180.87.15.69" => 10950.8067479674,"180.87.38.5" => 10950.8067479674,"209.85.241.189" => 10950.8067479674,"209.85.243.158" => 10950.8067479674,"216.187.113.68" => 10950.8067479674,"216.187.114.146" => 10950.8067479674,"216.187.114.150" => 10950.8067479674,"216.187.114.197" => 10950.8067479674,"216.187.120.170" => 10950.8067479674,"216.6.99.13" => 10950.8067479674,"216.6.99.6" => 10950.8067479674,"218.248.168.118" => 21901.6134959348,"64.86.31.49" => 10950.8067479674,"64.86.31.6" => 10950.8067479674,"65.39.148.34" => 10950.8067479674,"66.110.8.34" => 10950.8067479674,"66.249.94.73" => 10950.8067479674,"72.14.223.201" => 10950.8067479674,"72.14.232.101" => 10950.8067479674,"80.231.200.14" => 10950.8067479674,"80.231.217.17" => 10950.8067479674,"80.231.217.2" => 10950.8067479674,"codeproject.com" => 10950.8067479674,"fe80::752c:50ea:abc8:4083" => 4504.6714634146,"google.com" => 10950.8067479674
vishnulalr
5-Mar-13 6:40am
View
can i use directly this code on qt
vishnulalr
14-Feb-13 23:27pm
View
thank you so much Mr Abhishek Pant it worked for me :-)
vishnulalr
22-Jan-13 3:48am
View
i dont know how to specify/c# code my key( a string not xml ) in c#
vishnulalr
3-Dec-12 1:43am
View
great its working thanks Mr Brajesh Kumar Singh .....:-)
vishnulalr
2-Dec-12 22:25pm
View
the above code can draw line but not perpendicular to p0,p1 the p0,p1 line may be inclined or straightline etc in any case i want to draw a perpendicular to p0,p1 but i getting sometimes inclined i want a perpendicular
vishnulalr
31-Aug-12 2:34am
View
great it works thanks Zoltán Zörgő
vishnulalr
9-Aug-12 23:42pm
View
it worked thanks.. lexwax
vishnulalr
8-Aug-12 13:07pm
View
no actually i configure on the Control Panel->Hardware and Sound\Devices and Printers->corresponding redirecterd printerdriver options such as copy temperory file to printer /copy standard out to /.etc but my program will print virtually and the physical printer shows the job and it gives a status message of printing but actually no printing is done
vishnulalr
8-Aug-12 12:21pm
View
thanks for the reply i have tried it
when i use copy temperory file to printer and i set the physical printer driver but it shows printing and but actually printing is not done pls help
vishnulalr
14-Jun-12 5:09am
View
just try it you love it . use specific tables name for provincial machines a java client with only with insert. at central machine java client use select
vishnulalr
9-Feb-12 7:05am
View
thanks for your advise but here i want to test my java app with an online database other than on localhost. xtreemhost.com is a free web hosting site
and i have an account vishnulalr.xtreemhost.com so i have a MySQL database there sql108.xtreemhost.com named _xth_10161434_pos now i think my question is clear
vishnulalr
15-Aug-11 13:09pm
View
please stop writing your comments in solution
vishnulalr
23-Jul-11 9:16am
View
thank u very much
vishnulalr
13-Jul-11 1:04am
View
yes you are wright once i run the exe it will read from the website but i have unplugged the internet connection and run it run the same video without connection.i have restarted my computer an again i run the exe file i can view the video so this is my problem
vishnulalr
12-Jul-11 3:25am
View
you are wright now its working thanks
vishnulalr
2-Jul-11 21:58pm
View
thanks you re wright please help me how can i write a resourcr url for image,video file for video here i am using directx audiovideoplayback.dll
vishnulalr
2-Jul-11 12:37pm
View
thanks Abinav but i want to open an image that stored inside the app as a resource file i cant specify the path please concentrate there
vishnulalr
2-Jul-11 11:55am
View
please help me. how should i do
vishnulalr
1-Jul-11 6:51am
View
Yes you are correct but its possible and simple in the case images but when we add movie it read as a binary file
vishnulalr
13-Jun-11 9:19am
View
thanks its a part of steganography but here just want to write and read the file size
vishnulalr
11-Jun-11 13:06pm
View
is it ordinary c++ or visual c++ in visualstudio 2008
vishnulalr
11-Jun-11 13:03pm
View
thanks for your replay sir
vishnulalr
11-Jun-11 12:15pm
View
is there any function other than setpixel(int,int,color);
vishnulalr
11-Jun-11 12:10pm
View
slowness is not my concern.please is there any possibility to give large x,y values
vishnulalr
4-Jun-11 21:53pm
View
i want to send an sms through a desktop application written in(c#.net or vb.net) and my mobile (GSM) is connected to the computer through a serial port and and the way which i communicate through the modem by make use of AT commands. so how can i send sms (with out my no or replace my no with a text\name) in this way
vishnulalr
4-Jun-11 14:27pm
View
in ordinary case when we send an sms through mobile at reciever side they can find our no. but here i want to replace the no with a name like www.xyz.com or etc
vishnulalr
26-May-11 1:16am
View
thanks SAKryukov here is the code i have used
i have tried it on jpeg but it also fails
dlg.Filter = "jpeg (*.JPEG)|*.JPEG|Bitmaps (*.bmp)|*.bmp|Tagged Image File Format(*.tif)|*.tif|PNG-24(*.png)|*.png";
if( dlg.ShowDialog() == DialogResult.OK )
System.Drawing.Imaging.ImageFormat format = System.Drawing.Imaging.ImageFormat.Jpeg;
img.Save(dlg.FileName, format);
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Text;
using System.IO;
namespace PictureKey {
public class CryptUtility {
///
Hides a message in a bitmap
/// <param name="messageStream">The message to hide</param>
/// <param name="bitmap">The carrier bitmap</param>
/// <param name="keyStream">The key to use</param>
public static void HideMessageInBitmap(Stream messageStream, Bitmap bitmap, Stream keyStream, bool useGrayscale){
HideOrExtract(ref messageStream, bitmap, keyStream, false, useGrayscale);
messageStream = null;
}
///
Extracts an hidden message from a bitmap
/// <param name="bitmap">The carrier bitmap</param>
/// <param name="keyStream">The key used for hiding the message</param>
/// <param name="messageStream">Empty stream to receive the message</param>
public static void ExtractMessageFromBitmap(Bitmap bitmap, Stream keyStream, ref Stream messageStream){
HideOrExtract(ref messageStream, bitmap, keyStream, true, false);
}
///
Stepts through the pixels of a bitmap using a key pattern and hides or extracts a message
/// <param name="messageStream">If exctract is false, the message to hide - otherwise an empty stream to receive the extracted message</param>
/// <param name="bitmap">The carrier bitmap</param>
/// <param name="keyStream">The key specifying the unchanged pixels between two hidden bytes</param>
/// <param name="extract">Extract a hidden message (true), or hide a message in a clean carrier bitmap (false)</param>
private static void HideOrExtract(ref Stream messageStream, Bitmap bitmap, Stream keyStream, bool extract, bool useGrayscale){
//Current count of pixels between two hidden message-bytes
//Changes with every hidden byte according to the key
int currentStepWidth = 0;
//Current byte in the key stream - normal direction
byte currentKeyByte;
//Current byte in the key stream - reverse direction
byte currentReverseKeyByte;
//current position in the key stream
long keyPosition;
//maximum X and Y position
int bitmapWidth = bitmap.Width-1;
int bitmapHeight = bitmap.Height-1;
//Color component to hide the next byte in (0-R, 1-G, 2-B)
//Rotates with every hidden byte
int currentColorComponent = 0;
//Stores the color of a pixel
Color pixelColor;
//Length of the message
Int32 messageLength;
if(extract){
//Read the length of the hidden message from the first pixel
pixelColor = bitmap.GetPixel(0,0);
messageLength = (pixelColor.R << 2) + (pixelColor.G << 1) + pixelColor.B;
messageStream = new MemoryStream(messageLength);
}else{
messageLength = (Int32)messageStream.Length;
if(messageStream.Length >= 16777215){ //The message is too long
String exceptionMessage = "Themessage is too long, only 16777215 bytes are allowed.";
throw new Exception(exceptionMessage);
}
//Check size of the carrier image
//Pixels available
long countPixels = (bitmapWidth*bitmapHeight) -1;
//Pixels required - start with one pixel for length of message
long countRequiredPixels = 1;
//add up the gaps between used pixels (sum up all the bytes of the key)
while((keyStream.Position < keyStream.Length)&&(keyStream.Position < messageLength)){
countRequiredPixels += keyStream.ReadByte();
}
vishnulalr
25-May-11 14:56pm
View
yes in .bmp,.tif there output is exact what we given as input but .jpg due to its lossy compression i want to overcome this
vishnulalr
25-May-11 14:45pm
View
thanks but actually it not about jpg
vishnulalr
24-Mar-11 22:18pm
View
Good Question
vishnulalr
23-Mar-11 13:43pm
View
here i want to connect the DB file from the resource folder from the project itself.In ordinary case DB file is put in a local folder and reference it using its path
and i want to avoid that
so how can i modify my above code
vishnulalr
23-Mar-11 13:42pm
View
error is already existing same DB file
vishnulalr
19-Mar-11 13:28pm
View
thank you
vishnulalr
19-Mar-11 6:27am
View
the above code work properly for first time after that it will not
vishnulalr
19-Mar-11 4:11am
View
bool np1 = (((ushort)GetKeyState(VirtualKeyStates.VK_NUMPAD1)) & 0xffff) != 0;
bool np3 = (((ushort)GetKeyState(VirtualKeyStates.VK_NUMPAD3)) & 0xffff) != 0;
if (np1 && np3)
{
MessageBox.Show("The device is not yet connected");
// do whatever you want to do if they are both pressed
}
vishnulalr
19-Mar-11 4:10am
View
here is a small modification
vishnulalr
19-Mar-11 3:30am
View
thanks henry its working thanks very much
vishnulalr
19-Mar-11 1:23am
View
Deleted
thanks henry
vishnulalr
18-Mar-11 13:37pm
View
yes you are right but he explained why my code is not working and i am looking for the solution for what you have commented
vishnulalr
18-Mar-11 12:46pm
View
super
vishnulalr
13-Mar-11 10:08am
View
thank u very much for the answer .yes its true
vishnulalr
18-Jan-11 6:48am
View
Sir i have a created a c# program and i want to sell my product through several websites.So i want to add a donate button on my c# program. so i can collect money from several users to my account
Show More