|
The financial market already blamed the timer problems
|
|
|
|
|
hi all ,
i want to print the values as crystel repots
Regards
Vidhish
|
|
|
|
|
I want a Tesla. clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello everybody,
before I go mad with all these error messages, I want to ask someone who knows... How can I simply shorten a path with regular expressions, just the way Windows does it in many dialogs?
Input:
C:\program files\Visual basic examples\GMTest\Pictures\pic00001.jpg
Output:
c:\program files\....\pic00001.jpg
In words: The output string contains the start input sting until the 2nd "\", then followed by "...", and the end of the new string starts with the last "\" of the input string.
re = New Regex("^(?'start'.*\\.*)\\.*\\(?'end'\w*)$")
tmpText = re.Match(Text).Result("${start}...\${end}") does quite a good part of the job but still unsatisfying.
I've been trying to figure out regular expressions for hours already, but now I'm stuck and can't get a reasonable result. Could anybody help, please?
Thank you,
Michael
|
|
|
|
|
Finally - after ages - I can answer my own question as an inspiration for anyone else with a similar problem:
re = New Regex("^(?<start>\w:\\[\w\s]+\\).*\\(?<end>.*)$")
tmpText = re.Match(Text).Result("${start}...\${end}")</end></start> returns exactly the desired output string! Very useful e.g. for indicators when looping through a directory structure.
Regards
Michael
|
|
|
|
|
Do take a look at the Expresso tool on this site. It is helpful when creating/testing regular expressions.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Thank you for the hint - just downloaded it. Even after reading the description only, I guess the tool might have helped saving many of my nerves during the last hours...
Have a nice day!
|
|
|
|
|
Michael Schäuble wrote: Thank you for the hint - just downloaded it.
No problem. I think the author has other stuff on reg expressions that are good too. Not 100%, just getting fuzzy now from
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Iam using Icomparer property to sort the list in Generic Functions
stlist--is a class and I used generic functions (like entity collections for a table)
stcomparer is a class used in stlist and i wirtten icomparer function it it
Public Class stcomparer
Implements Generic.IComparer(Of stlist)
Private m_SortProperty1 As PropertyDescriptor
Private m_SortDirection1 As ListSortDirection
Public Function Compare(ByVal x As stlist, ByVal y As stlist) As Integer _
Implements System.Collections.Generic.IComparer(Of stlist).Compare
Return x.ss_issuedate.CompareTo(y.ss_issuedate)
End Function
StiList.Sort(0, StiList.Count, New Stcomparer)
it is sorted By ss_date in ascending order..here I have hard coded it..
Is ther any way to pass the filed in Icomparer and sort according to it??
Can i change the Icomparer PEROPERTY parameters
|
|
|
|
|
cbenan wrote: Is ther any way to pass the filed in Icomparer and sort according to it??
Can i change the Icomparer PEROPERTY parameters
What are you getting at? What is it you're trying to accomplish with this?
|
|
|
|
|
How can i create a application for hiding Process from Task Manager.
If you any idea Please help.
Thanks
Anubhava Dimri
|
|
|
|
|
Asking the same question again will neither change the answer, not get you another answer any faster.
|
|
|
|
|
Dave Kreskowiak wrote: Asking the same question again will neither change the answer, not get you another answer any faster.
Very true.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
The answers haven't changed in the 3 hours that passed since you asked this the first time.
|
|
|
|
|
Why post again, when you just got some quality replies?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
How can you tell it's not because of an exception?? Your code is eating all the exceptions and not doing anything with them.
After looking at the code, you should be asking yourself what happens when the code enpties the queue and tries the dequeue an item from empty queue? Your not checking any parameters nor return values/objects to see if they really exist before using them, nor do you do anything with any exceptions that are thrown.
|
|
|
|
|
Thank you for your reply.
The program is eating all the exception to prevent it quit the procedure, but it will write some Error Log in a XML File (I did not post that part of code because it return no error before it stop, Sorry for my lazy).
And you talk about the checking of dequeue an item from empty queue, am I wrong using Do Unit ClientRequestQueue.Count = 0 ???? And I am think it will not enqueuing nothing to the equeue because I have some checking before Enqueuing the ClientRequest Object but I will try your suggestion to check it once more.
BTW, maybe I should describe more how can I seem this issue.
When I start this program, I have another testing program to send requests to it endlessly.
My testing program only send 2 Requests, suppose they are Occupy and Release. Means the testing program will keeping occupy some empty slot and release it in 2 second. (E.g. Occupy => Sleep(1000) => Release => Sleep => So On)
It is fine at the beginning about 3 mins but it stopped after it.
I hope you can read my poor english. Thank you very much for your attention and help
|
|
|
|
|
How can i create a application for hiding Process from Task Manager.
If you any idea Please help.
Thanks
Anubhava Dimri
|
|
|
|
|
Me.ShowInTaskbar = False ?
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
Me.ShowinTaskbar = False hides only Application Name from Windows Task manager.But i want to hide the Process of that application.
Anubhava Dimri
|
|
|
|
|
Ahh I see, I dont think it is possible to hide a process from the process tab of task manager.
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
Not possible. Every process the system is running, including high-security processes internal to Windows, is shown in the Task Manager.
You also couldn't have any valid reason for doing this unless your intent was malicious.
|
|
|
|
|
Dave Kreskowiak wrote: You also couldn't have any valid reason for doing this unless your intent was malicious.
When seeing this type of inquiry, that's first thing that comes to mind
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
You can hide process and you can also make unkillable.
Search in rootkit.com for rootkit code that hides process and makes them invincible.
ZwQuerySystemInformation
and
ZwTerminteProcess hook to manipulate the response, you have to make driver module.
|
|
|
|