|
And what possible legitimate use would this be for. The only uses I can think of are nefarious and no one here will help you. If there is a legitimate case you would be better off creating a C# text editor.
only two letters away from being an asset
|
|
|
|
|
Hi,
On webpage when i click on pdf it's gives "too many arguments".I tried to to paste the pdf then it's working for first time.But again same problem.So what to do this.I am using C# and Oracle.
Thanks
|
|
|
|
|
Apparently, your code, whatever it is, sends too many arguments to Acrobat Reader. Since we know nothing of the code that generates the web page or what the link to your PDF looks like, it's impossible to tell you what you did wrong.
|
|
|
|
|
Hi,
After i paste time it works but after that it won't work.It gives "too many arguments"
A helpful guide that answers important questions, including how COUMADIN® (Warfarin Sodium Tablets, USP) works, diet and drug interactions, and the importance of therapy. Also available in Spanish.
Click here for a printer-friendly version
|
|
|
|
|
Uhhh... you might want to try reposting that, and before you click "Post Message", find and enable the little checkbox that says "Ignore HTML tags in this message..."
|
|
|
|
|
<td width="30%" class="resources termText">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<a href="pdf/293US08WA03001_v7_UnderstandTherapyBro_WEB.pdf" target="_blank"><img src="img/resources/Understanding-your-COUMADIN-therapy-2008.jpg" alt="Coumadin: Patient Guide" width="52" height="85" border="0" /></a> </td>
<td align="left" valign="top" class="termTextHeader">Understanding Your COUMADIN (Warfarin Sodium Tablets, USP) Therapy Brochure</td>
</tr>
</table>
<p>A helpful guide that answers important questions, including how COUMADIN<sup>®</sup> (Warfarin Sodium Tablets, USP) works, diet and drug interactions, and the importance of therapy. Also available in Spanish.</p>
<p><a href="pdf/293US08WA03001_v7_UnderstandTherapyBro_WEB.pdf" target="_blank">Click here for a printer-friendly version</a></p>
</td>
|
|
|
|
|
Received: from [76.13.13.25] by t3.bullet.mud.yahoo.com with NNFMP; 16 Dec 2008 09:55:16 -0000
Received: from [76.13.10.167] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 16 Dec 2008 09:55:16 -0000
Received: from [127.0.0.1] by omp108.mail.ac4.yahoo.com with NNFMP; 16 Dec 2008 09:55:16 -0000
How can you get say the second ip address or the third from the block above when it's always the only
thing enclosed [within square brackets] and the whole block consist of one long wrapped line..
Please help guys!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
If you don't care for the correctness of the IP then you can simply use this pattern:
\[\d+\.\d+\.\d+\.\d+\]
Otherwise you find a lot of IP validation patterns at www.regexlib.com[^]
You can use Regex.Matches to loop over all IPs found.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks looks like a good answer and I've already rated it so, but can you please tell me more and guide me how can I use this bloody Regex and read what it caught?? Please advise.
Many thanks Greeeeeeeeeeeeg
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Well, it's christmas, so here it goes
string str = "Received: from [76.13.13.25] (... rest of the string)"
string pattern = @"\[\d+\.\d+\.\d+\.\d+\]";
foreach (Match m in Regex.Matches(str, pattern))
{
Console.WriteLine(m.Value);
}
will output:
[76.13.13.25]
[76.13.10.167]
[127.0.0.1]
If you only need the IP then use this pattern: \[(\d+\.\d+\.\d+\.\d+)\] and use m.Groups[1].Value in the inner loop. Results in:
76.13.13.25
76.13.10.167
127.0.0.1
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
It works! Thanks mate
And Merry Christmas!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
You can use the NextMatch member of the Match class.
Regex re = new Regex();
Match m = re.Match();
while (m.Success())
{
m = m.NextMatch();
}
|
|
|
|
|
Thanks mate And Merry Christmas!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Ho ho ho fellow coders....
is there a way to convert the following recursion code to read this string value??
String Value = "Section1:Section2\\Section3\\Section4\\Section5\\Section6\\Section7\\Section8\\Section9\\etc";
Sample recursion code =
private void btnFillTree_Click(object sender, EventArgs e)
{
directoryTreeView.Nodes.Clear();
String path = "c:\\Temp";
directoryTreeView.Nodes.Add( path );
PopulateTreeView(path, directoryTreeView.Nodes[ 0 ] );
}
public void PopulateTreeView(string directoryValue, TreeNode parentNode )
{
string[] directoryArray =
Directory.GetDirectories( directoryValue );
try
{
if ( directoryArray.Length != 0 )
{
foreach ( string directory in directoryArray )
{
substringDirectory = directory.Substring(
directory.LastIndexOf( '\\' ) + 1,
directory.Length - directory.LastIndexOf( '\\' ) - 1 );
TreeNode myNode = new TreeNode( substringDirectory );
parentNode.Nodes.Add( myNode );
PopulateTreeView( directory, myNode );
}
}
} catch ( UnauthorizedAccessException ) {
parentNode.Nodes.Add( "Access denied" );
} // end catch
}
thanks in advance for any information
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
What do you want to do? Do you want to fill your tree view with node parsed from the string?
I'd use a regex for this task and loop over the matches.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Yes I want to fill the tree with the nodes passed from the string.
The string is in the same format as a directory string but I dont know of a way to perform the task that
string[] directoryArray =
Directory.GetDirectories( directoryValue );
is doing?
any thoughts or an example of what you stated?
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
I'd need a better example string, so I can write a proper regex for it.
Do you have one available?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
String Value = "Section1:Section2\\Section3\\Section4\\Section5\\Section6\\Section7\\Section8\\Section9\\etc";
This is a typical example.
the only thing that is constant is Section 1 and Section 2, the rest of the sections vary as far a node levels beneath them etc.
thx again for taking the time to look at this!!
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
I don't see any recursion in the string, but you may try this pattern:
[^\\]*
To loop over the results please take a look at the topic above yours
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
This is a cool trick...not sure how it helps me for this but I got it working this way
String strValue = "Section1\\Section2\\Section3\\Section4\\Section5\\Section6\\Section7\\Section8\\Section9";
// [^\\]*
string str = strValue;
string pattern = @"[^\\]*";
foreach (Match m in Regex.Matches(str, pattern))
{
Console.WriteLine(m.Value);
}
much more elegent way of breaking up the string into its pieces.
As far as the recursion is concerned the section values in the above string were just an example.
How would you populate the treeview with this??
tia
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
<div class="ForumMod">modified on Wednesday, December 24, 2008 1:01 PM</div>
|
|
|
|
|
Rafone wrote:
How would you populate the treeview with this??
Instead of doing a Console.WriteLine you could add the nodes to the treeview inside the loop, for example.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
i am developing an application for my office and i want to see others desktops and what are they doing and also sometimes take control over their mouse and of course key boards, i have searched the web alot and just find some vnc or RDP solutions but i am still need help how to do that
(i am coding c# )
|
|
|
|
|
RealVNC AFAIK is free and will do the job, this is a pretty big project to start from scratch.
|
|
|
|
|
thanks and where i can find it? never mind i will digg the web again
|
|
|
|