LED Calc


Nice site for figuring out parameters related to LEDs:  HERE

Standard LED voltage drops:


  • standard red: 1.7v
  • super bright red: 2.2v
  • standard green: 2.2v
  • high intensity blue: 3.0v-3.5v
  • high intensity white:  3.0v-3.5v

















LED


  • Light Emitting Diode
  • based on a semi-conductor
  • source of light, kind of a light bulb.  But, unlike a light-bulb, an LED does not generate nearly as much heat.
  • Red LED only needs about 1.7v.  If you try to run a red LED with 5v, it is too much voltage for the LED.  So, typically, you introduce a resistor to drop the voltage to the LED to a more acceptable level.
  • An LED is an example of a transducer since it can take energy in the form of electricity and convert it into energy in the form of light.
Read More..

RENDER Particles Tentacles Icosphere




Read More..

In The Mail This Nonviolent Stuffll Get You Killed How Guns Made The Civil Rights Movement Possible

The book isnt out yet; I received a galley proof from Basic Books.  It looks quite interesting. Most curious of all, it is by Charles E. Cobb. Jr. "Visiting Professor at Brown Universitys Department of Africana Studies and a former field secretary for the Student Nonviolent Coordinating Committee."  I suspect that he has first-hand experience about what he writes!

It tickles my ego a bit to think that I am important enough that they wanted me to read it and write a cover blurb for it.

I need to get a review of Stephen P. Halbrooks Gun Control in the Third Reich: Disarming the Jews and "Enemies of the State" written for PJMedia this weekend, and start reading Cobbs book.
Read More..

I am confirmed as worthy …

Read More..

Server 2003 Malayalam Tutorial

Read More..

PHOTOGRAPHY Revisiting Virtual Studio Idea With VIZAGO

I stumbled into this Vizago 3D Head Reconstruction website today that gives a demo that allow user to upload a single portrait photo (frontal shot) and then it tries to convert it into 3D mesh object.

Full of curiosity, I quickly pickup a random photo from Google and I grabbed a portrait from here:

VIZAGO 3D HEAD RECONSTRUCTION
Upload a single portrait photo into Vizago website.

Get 3D head mesh within a couple of minutes or a day (depends on the demands, I supposed)
It comes to my surprise that the result is actually quite nice. And you can preview the result in 3D on the web directly. You can rotate around the head mesh on browser as well.

In the past, I remember there are already few casual/hobby applications that does something like this, but the result was not great. Now you can do it really quickly on a website and at this demo stage, you can download the resulting OBJ complete with texture and UV. To download, you need promo code, just ask Vizago via email.

IMPORT TO BLENDER
When you bring this model into Blender, you may want to scale down the mesh x 0.0001 (or x 0.00001). The mesh was a bit too big to fit the scene.
  • As you import the OBJ, just tap S and then type 0.0001.
  • Scale down even more if still does not fit.
  • You then want to center the pivot, simply Right Click on the mesh (to select it) and CTRL+SHIFT+C and select Origin to Geometry and the pivot will now centered to the mesh geometry.
  • To freeze the Scaling, CTRL-A and Apply Scale.
This is fun for you all Blenderheads to try. Maybe create a 3D head of yourself, friends, or family and then do 3D printing, using service like Shapeways.

Or if you just like to play around with the mesh inside Blender, probably creating some facial animation using Blender Shapekeys, you can also do that. Perhaps create all kind of hair setup.

PAT DAVID VIRTUAL STUDIO FOR BLENDER
Remember my previous post on using Blender as Virtual Photography Studio? The one originally created by Patrick David?

Time to use the setup:
3D Head Model based on a single photo using the Vizago 3D Head Reconstruction

Below are some results:

Colorful lighting.

Killer mood.

Sensual mood like in a night club or inside Virgin Airplane.

Before Sunset mood.
Environment Lighting (image based lighting)

Just like when I first time use this setup, I thought this was really brilliant setup by Pat. Super useful to test all kind of lighting situations.


Yeah, unfortunately most of the models will be bald without hair. So, probably time to sculpt some hair!

Anyways, now that we have a web service like Vizago to create 3D head model automatically, you can test it on different kind of heads. Maybe even create 3D portrait (stereoscopic)?

Try all kind of head result using Martin‑Schoellers photography, just for educational purpose. See which one actually works and which one does not work.



So, maybe you can guess who are the female actress/model below:
Angelina Jolie has similar look to Miranda Kerr and Emily Browning, who would have thought. Jennifer Lopez actually has very distinct look.
Natalie Portman looks a little like Monica Belucci.
You can do interesting study of head facial using this process:
  • My quick guess is that they have template base head (one for male and one for female) that is morphed based on points you specified during the upload and reconstruction of the mesh.
  • Face features that are morphed: eyes, nose, lips and the main shape of the head (more round, more triangle). Lips and eyes are taken care mostly by textures. 
  • Nose is actually important in getting likeness. Probably they can improve if the user provides the NOSE PROFILE shape.
  • What interesting is how Vizago tries to guess the "profile" of the head.
  • The ears stay the same, probably just the position is different.

If you import some of the head mesh into Blender, noticed that the Vertex number of the mesh is the same. You can do "morphing" from one head to another. Shape Keys time!

UPDATE: The vertex number is apparently different. So you cannot quickly do Join as Shape Keys. But I think there is a way around this. Maybe Shrink Wrap Deformer and Vertex Weight Blending will do the job so that you can blend from one shape into another.

So far I only tried this using random photos that I found using Google Images, or Celebrity faces, which is really simple. Celebrity and model faces tend to be the most basic and simple. For faces that are more exotic, like islanders, probably the result will be more interesting. See if that works or not.


Doing this auto 3D head reconstruction process reminds me my previous experience on seeing this Chinese street artist doing small head sculpting from a real life model in realtime for about 30 minutes per head in Las Vegas. I thought that was really an amazing skill. Especially to get likeness to the persons face.

Eventually I think there will be lots of digital artist doing this manually in real time using Blender/Mudbox/ZBrush and print it out under 30 minutes. Right?

The applications like Vizago or perhaps the Autodesk 123DCatch that allows anyone to quickly take photos and create 3D mesh are amazing. You can use this as starting point reference, or use it right away.

Decide whether creating virtual avatar manually or automatically is more preferable? Here is another example from company in Korea "3D Avatar Generation": (probably for game figure)




Wonder if anyone like to use own figure for game or the better self?

Please show me your creations, it would be nice to see what you created with this!
Read More..

Something That I Worked On Is Now Interstellar

September 12, 2013 The Atlantic reports on Voyager 1 reaching interstellar space.  I wrote software for a very small part of this project -- but it is still one of the more long-term activities of my life.

UPDATE: A commenter asked for some detail on my involvement with this project.  It is one of the weird little parts of my life.  During my first year of college at USC, I was frantically looking for a part-time job so that I could stay in school.  Tuition was not a problem: the combination of the California State Scholarship and financial assistance from USC covered the entire $2910 annual bill.  (Yes, and pterodactyls still roamed the skies.)  Books were not too bad -- typically about $300 a year.

The problem was that I needed enough money to cover my rent, groceries, utilities, and gasoline to drive my heap of a 1964 Chevrolet Malibu station wagon back and forth to USC.  I received a modest $200 or so a month check from Social Security as a college student dependent on a disabled parent.  That was not quite enough to cover the bills.  It was close.

But unskilled jobs were in short supply.  It was 1975, and the economy was in some respects as bad as it is today.  I could not get a job flipping burgers, or any other unskilled job.  Nothing was available in the Santa Monica/West Los Angeles area where I lived.

Suddenly, a full-time job opened up with the school district.  They needed a computer geek, and I thought: Hey, the first semester was really easy: easy A in English, freshman chemistry, Introduction to Film, and a B in first semester calculus.  (This was the hard calculus sequence for physical science majors.)  So I took the full-time job...and attended school full-time second semester.  And this was not easy.  In fact, after two months of doing this, I concluded that it was not practical to define database requirements eight hours a day (and partly at night) and take classes mostly in the daytime at USC.  So I quit the day job.

And I forgot that the Social Security check would be cut off as soon as they saw that I was earning a decent wage.  But by the time that happened, it was June, and it was impossible to get it turned back on, now that I no longer had that full-time job, so the need to find some sort of job was that much more severe.  And all summer long: Jack-in-the-Box?  McDonalds?  I even applied for a job as a projectionist at an adult movie theater.  (No, I had not been in audio-visual club in high school, so I had no idea how to run a projector, but I was sure that I could learn.)

Time was getting short, but it turned out that while I lacked the skills and capabilities to flip burgers, there was one job that I could get at 18: Jet Propulsion Labs.  On Monday, I saw a newspaper ad by Telos Computing, one of the companies with a contract to supply software engineers to JPL.  I sent my resume.  Wednesday they had me come into the office in Santa Monica.   That afternoon, I drove out to JPL in my incredibly 1970s powder blue leisure suit, and Friday, they called me, and told me to start work at JPL on Monday.  I was paid $1200 a month, mostly because that is what I asked for, and I was even then a pretty articulate if nerdy and introverted sort.

I wrote software for the near-real-time telemetry processing system for what was then called the Mariner Jupiter-Saturn project (MJS), but was later renamed to Voyager.  It was a really cool experience.  When they hired me, I do not think I was qualified to do the job; by the time they fired me, almost a year later, I actually was qualified to do the job -- and it certainly opened many doors for me in later years.

Read More..

Arduino

Arduino Cookbook by Michael Margolis | Code


Read More..

I ABSOLUTELY DARE YOU!

… to watch this video and not be deeply touched …

Spelling Father from stillmotion on Vimeo.

Read More..

The Lighthouse Marina Subic Resort Review

It's another long weekend and since we didn't want to be stuck at home doing house chores, we decided to go to one of my favorite out-of-town destinations -- Subic! You might wonder why I love that place when in fact, there's nothing much to do there. Well, that's the beauty of it! If you are a first timer visiting Subic, you might want to go to those touristy places like Zoobic Safari, Ocean Adventure and a few more. Since I've visited Subic place countless times already, I am now after some R&R.
What I really like here is the environment and the city surroundings. Their beaches are nothing like the white beaches of Boracay. Their attractions aren't like the ones in Singapore or Tokyo. But this city itself is unique! Subic freeport is a very peaceful, disciplined and laid back town. It's where you can feel a little bit of America just 2 hours outside Manila. In short, Subic is the perfect getaway for an overnight or two.
Read more »
Read More..

Mongo Ryan Bubinski

Ryan Bubinski (technical co-founder codeacademy with zach?)




  • learn by doing approach
  • needed a very flexible datastore
  • was RDBMS guy prior to Mongo
  • Mongo allowed quick/rapid prototyping models
  • worries: joins on tables (collections in Mongo)
  • Code Academy
    • Ruby on server side
    • Javascript some server and all client
  • Mongo Document mapper (an ODM=object document mapper) called Mongoid




Read More..

Express Scribe Gets DS2 Support

Express Scribe Transcription Software DS2 SupportExpress Scribe users rejoice! One of your most requested features has arrived: support for .ds2 (DSS Pro Voice) audio dictation files. Express Scribe Transcription Software Version 5.30 for Windows is the first version to include support for both dss and ds2 dictation file formats, so the time of workarounds and training your clients to back-save is now a thing of the past. And ds2 support for the Mac version of Express Scribe will be on the way soon.
Read More..

Sony Xperia V Photos and Specifications

Sony Xperia V Photos

Read more »
Read More..

About

TV3D Samples is a site dedicated to tutorials, demos and code snippets for the Truevision3D engine. All samples contain the full source code.



Have a look at the Tutorials, Demos, Libraries & Tools. If you have a TV3D demo or tutorial lying around why not submit it.

Please report any broken links or errors.
Read More..

Use the Module in VB NET

Use the Module in VB NET

Is sometimes useful to have functions or variables available everywhere in a Visual Basic project. You could use a module to do so. It is not complicate. There is no class creation.  And you could easily use this technique in VBA or VB6 (Visual Basic Application, Visual Basic Enterprise VB6, …) Module could also be used to share information or objects between classes.
Start creating a project. I choose the Windows Forms Project. Here is a sample of form1.


<summary>
put a Timer without the Visual Basic form Designer
</summary>
<remarks></remarks>
Public Class Form1
    Private WithEvents oTimer As System.Windows.Forms.Timer

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        oTimer = New System.Windows.Forms.Timer
        oTimer.Interval = 1000
        oTimer.Enabled = True
        oTimer.Start()
        If oTimer Is Nothing Then
            MsgBox("oTimer is Nothing")
        End If

        Dim oForm2 As New Form2
        oForm2.Show()
    End Sub

    Private Sub timerTicks() Handles oTimer.Tick
        Me.Text = Date.Now
        Module1.sTime = Date.Now
    End Sub

End Class






Create a form2 :


Public Class Form2

    Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    End Sub
    Private Sub updateme() Handles Me.MouseDown
        Me.Text = Module1.sTime
        Me.Refresh()
    End Sub
End Class


Now create Module.vb.

Module Module1
    Public sTime As String
End Module



Here is how my solution explorer looks like this.


Alright, my code is really stupid, I know! But I only wanted to show you something very interesting.
On form1, there is a timer running over and over. Every second, it displays the time.  In fact, is nothing more than a simple clock. But the clock saves the time in Module1.sTime
Now, imagine I have another called form2. That second form would like get the timer value but it can’t directly. There is no methods to give the information, the variable is private, no heritage, NOTHING!!!!

Is time to use the Module. The advantage is that Modules are “available everywhere” at any time the module variables, properties, methods are also accessible as long there are public. That is all. Just keep that in mind.


So run your code, when your hold down your mouse button over the form2, it reads the value inside Module1. You could pass any object from one class to another simply by using a module.

By the way, feel  free to change your code and make it suitable for you:



    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Dim oForm2 As Form2
        Try alway try to put code that might crash in a try-catch
            oTimer = New System.Windows.Forms.Timer
            With oTimer
                .Interval = 1000
                .Enabled = True
                .Start()
            End With
           If oTimer Is Nothing Then MsgBox("oTimer is Nothing")
            oForm2 = New Form2
            oForm2.Show()
        Catch ex As Exception
            MsgBox("ERRRRRROR !!!! " & vbCrLf & ex.Message) idiot! you made a error
        End Try
    End Sub





Buy the same edition I bought:

or visite my web site :




Read More..

Another Day And The Fog Rolls Back In A Little

I was feeling so good last night, as my blogging activity made clear. I actually slept past my usual time for 500 mg acetaminophen dosage this morning. This alone is an improvement for which Im quite grateful.

However, once I completed the physically demanding activity of showering and getting dressed, the anesthetic fog rolled back in, and I accomplished nothing this morning. Im feeling a little better now, but it is definitely a series of wins and loses each day to get myself back to where I was.

Update: I have noticed that I am sometimes dizzy in the mornings; perhaps because these medicines designed to keep my blood pressure low until all of the repairs have been completed are an issue, or perhaps because I belong on all four hooves.
Read More..

4 5 MPH Just Wont Do It Anymore

The last few times I have done my interval high-intensity exercise routine, the four minutes at 4.5 MPH just was not enough to build up a decent sweat, and I presume, not enough to get me the cardiovascular benefit that I want.  This evening, on the second high intensity segment, I did 4.6 MPH.  Then, because I felt so good, I added a third segment: 3.0 MPH for eight minutes, then 4.6 MPH for four minutes.  I was sweaty (although not to the point where the cat had to worry about drowning), and I felt great!
Read More..

apache2 mod proxy tomcat nexus

Running apache2 and using mod_proxy to proxy connections to nexus on a Tomcat server started getting the following message:

There was an error communicating with the server: request timed out.

The problem appears to be due to a missing part in site configuration setup:

ProxyPreserveHost On

Once that "ProxyPreserveHost On" was added the delay went away.

More can be found HERE

Sonatype Nexus™ 2.3.0-04
Read More..

3rd Philippine PyroMusical Competition Schedule and Info

Like the previous years, we've always attended the Pyromusicals and Pyrolympics. It is usually held in Mall of Asia but there was one year that it was held in Fort Bonifacio Global City. This year, it will be held in Mall of Asia again. Every year brings a different surprise to the viewers. From heart shape fireworks to Hello Kitty like figures, it never fails to amaze people of all ages!
Get ready for the Brightest show on Earth. The 3rd Philippine International Pyromusical CompetitionAt SM Mall of Asia, the sea and sky meet for the most breath-taking display of explosive colours and electrifying music, the world has ever known. 

If you are as excited as I am to watch this years Pyromusical, here's the schedule for the 3rd Annual PyroMusical Competition (February 11 to March 17, 2012)
Read more »
Read More..

Vaadin theme compilation with maven

Implemented goal vaadin:compile-theme (separate from vaadin:update-theme and vaadin:compile).

From Ticket
Read More..

VFX Sound Driven Motion Bake and Unbake

Here is a follow up to my previous experimental post (Perfume) that is more or less related to sound, motion, and animation.
The result of previous experiment. Just array of disc spawn and scaled based on Audio.

CREATIVE AUTOMATION
Recently, I am into topics where we can drive or automate or trigger certain actions.

It is not really new, but we do have more technology these days that allow us to further develop whatever ideas that we may already have in the past but stuck. Things like: Kinect Motion Capture, Augmented Reality and AR Glass, Mobile Devices, 3D Printers, 3D Scanner, Arduino, etc. They are all available.

It is as if nowadays, we are applying more and more "Game Environment" automation into "Real World".

Those areas are really interesting to me. I just wish I know more people that actually working on such projects and I dont have to rely on my brain alone. I will look around if maybe University around here have some space where I can research and learn more about all these.

And of course, since this blog is about Blender, I want to see some kind of real-time setup using Blender happening on my own personal computer.

I remember many years ago, I researching on how to do this kind of audio-driven animation using Maya (MIDI Driven). It was a dumb effort. There was actually a clever MEL script that kind of does it, but in the end the script is discontinued or kind of limited.

And then there is Houdini. I can see that Houdini CHOPs is actually perfect of Audio Driven Animation. Andrew Lowell released a book few years ago to cover this:
http://www.andrew-lowell-productions.com/andrew-lowell-productions/resources.html

I have not get my head around Houdini to be able to confidently create anything. But I have a bit more time now, I will look into it further soon.

What I like about Blender is that Blender is somewhat open to creative projects like this. And somewhat I got to know clever artists out there to help me with my random questions.

Anyways, a bit off topic, lets get back to Blender and see how Blender handles audio-motion.

RESEARCH ON BLENDER AUDIO-MOTION
A quick browsing around the Blender Artist forum for AUDIO RELATED post, there are apparently heaps already. I really have to do a little bit more research and testing all the tools to actually write a useful post.

batFINGER Speaker Tools Script Thread
http://blenderartists.org/forum/showthread.php?236729-Speaker-Tools-(Audio-Visualiser-Driver-Lipsync-)

MIDI Driven Thread
http://blenderartists.org/forum/showthread.php?182443-MIDI-driven-animations

There are also this from Japan Blender artist/developer:
Blender Real-time Lipsync Tool from Microphone
https://vimeo.com/38157187

I did try that Real-Time Lipsync Tool, but got stuck. Well, maybe I need to spend a bit more time on it. That Real-Time Lipsync Tool requires a few 3rd party softwares outside Blender. It feels complicated, but maybe not that complicated once understood. It has interesting potential.

Not long ago, I also stumbled a few good video tutorials on Blender audio driven animations (was pointed by Pavel yesterday). I shall look into them again soon.
http://cgcookie.com/blender/2011/06/02/building-an-audio-visualizer-in-python/
http://www.blendernation.com/2012/01/17/audio-driven-animation/


MAKE SOMETHING ANYWAY
So, I guess I am a total newbie in this audio-motion area. Exactly like when I started to learn Blender, it took me a while to filter all the information and trying to make sense of things (-__-)b

Anyways, let first review things that we already know.

1. BAKING SOUND TO F-CURVES

It cannot be any easier than this. This is actually one of the feature that gives me a big surprise when I first learned Blender 2.5x.

Firstly you start with some kind of keyframe on any object. Specify what parameter you like to bake sound into and create a keyframe there (so that you can later bake sound into it).

Inside Graph Editor, all you need to do is to Bake Sound to F-Curves. Point into audio WAV file (or MP3 audio file will work as well).

On the file import panel you will see Bake Sound to F-Curves option on the left side bar:

Pay attention to the Lowest and Highest frequency.

The resulting F-Curves:



NOTE: I like to do this to an Empty so I could then set it up to drive something else. Maybe one could try on a Bone or Armature as well and let it drive something?

2. UNBAKING F-CURVES
This one awesome script comes from Liero called UNBAKE. With unbake add-on script, you can basically convert those "baked" F-Curves into:
1. 3D Curve Path

Also read:
http://blenderartists.org/forum/showthread.php?244692-waveform-data-to-3D-object

2. Editable F-Curves

And even more, this "Unbake" script from Liero has extra options, especially for "unBake to 3D", if you check Use Radius, you will get a straight curve but with Extrusion.




Do that above and apply Build Modifier on top, and you have something that similar to my previous experiment. Its all procedural.

Now, we know that Blender Curve is special. It can store Radius on each points. And if you parent a Mesh into it to Follow Path, the mesh will understand the Radius and will Scale up and down based on that radius. Therefore .... you can have something like this: (thats particle emitted).
How cool is the UnBake Script? Tell me about it, I did not even know this is possible.

WHAT CAN WE DO WITH IT
Alright, we got some interesting raw data to work on. What can we do with it? That is exactly the question I am still trying to answer while writing this....

Normalize? New Min Max?
I think we need to NORMALIZE this curve first. I dont know quite how to do that in Blender yet. But the idea is to turn this F-Curves into 0 to 1 value and map into new min and max value that is more usable.

You could clamp the value using Limits Modifier. I am not quite sure yet with Normalize.

Further Modification of F-Curve


Since Baked Audio is now an F-Curve, you can further modify the curve using F-Curve Modifier. Lots of interesting Modifiers there, such as Stepped, which turn the curve into something that looks like a random city buildings.

Using that Unbake Curve As Motion Path
Right away, you can simple use that path as a Motion Path. Maybe parent an object and let it emit Particles or Smoke. Or perhaps parent a Brush object to paint on Dynamic Paint Canvas to create something that looks like a graph. I am sure there are many cool motion graphics music video done that way. Here is one:
https://vimeo.com/6045312

I want to do some smoke, but its just at the moment I ran out of HDD on my computer. And smoke requires some GBs and also time consuming baking and testing.

Array Modifier and Curve Modifier?
This is Lieros suggestion, I dont understand how to manipulate object so that it affects the "Scale" or "Array" objects. But I am getting something like this by using that Curve generated from Sound.


Array and Sound
Array (Copy) Counts seems to have a nice potential. Let see if we could drive the value of Counts using the data from sound wave:

Yes, it is quite easy to drive array copy with Audio Bake using Drivers.
That setup can give a very simple type of Sound Visulization without any scripting.

If you can somewhat offset and animate the Curve, you can have something that is more interesting. Kind of like a moving mountain of arrays. The long way to do this is to use Drivers.

Displace Modifier
Just connect the wave into the Strength of Displace Modifier and you get something that looks interesting.

Dynamic Paint
Sound Driven Painting.... it might be interesting.

Alright, I stop there for now. I think Sound Driven Animation/Motion is interesting but I need to do a bit more research on sound visualization and all kind of sound to visual experiments that have been done before.

I think if know Blender a little better in the future, it is possible to create Interactive Game that uses Motion to Drive or Trigger Animation using Blender Game Engine (BGE). I wish someone could point me to it.
Read More..

Get all process and thread in Visual Basic

Get all process and thread in Visual Basic


You could get all the process running on your computer in visual basic with a very simple command. Use the Process.GetProcesses method to get almost everything on process on your Windows.





Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
        Dim oAllProcess() As System.Diagnostics.Process
        Dim oProcess As System.Diagnostics.Process
        Dim str As String
        Try
            str = ""
            oAllProcess = Process.GetProcesses()
            For index1 = 0 To oAllProcess.Length - 6 Step 5
                oProcess = oAllProcess(index1)
                str = str & oAllProcess(index1).ProcessName & "     " & _
                    oAllProcess(index1 + 1).ProcessName & "     " & _
                    oAllProcess(index1 + 2).ProcessName & "     " & _
                    oAllProcess(index1 + 3).ProcessName & "     " & _
                    oAllProcess(index1 + 4).ProcessName & "     " & _
                    oAllProcess(index1 + 5).ProcessName & vbCrLf
            Next
        Catch ex As Exception
        Finally

            MsgBox(str)
        End Try
      

    End Sub



How could you get all the threads in a process?
Is very simple, use the same process method to get all the thread running under each process. Using the same loop, use the property .Threads

Here is a sample and this could give you al lot of information on threads and process on your computer:



    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim oAllProcess() As System.Diagnostics.Process
        Dim oProcess As System.Diagnostics.Process
        Dim str As String
        Try
            str = ""
            oAllProcess = Process.GetProcesses()
            For index1 = 0 To oAllProcess.Length - 6 Step 5
                oProcess = oAllProcess(index1)
                str = str & oAllProcess(index1).ProcessName & " " & oAllProcess(index1).Threads.Count & "     " & _
                    oAllProcess(index1 + 1).ProcessName & " " & oAllProcess(index1 + 1).Threads.Count & "     " & _
                    oAllProcess(index1 + 2).ProcessName & " " & oAllProcess(index1 + 2).Threads.Count & "     " & _
                    oAllProcess(index1 + 3).ProcessName & " " & oAllProcess(index1 + 3).Threads.Count & "     " & _
                    oAllProcess(index1 + 4).ProcessName & " " & oAllProcess(index1 + 4).Threads.Count & "     " & _
                    oAllProcess(index1 + 5).ProcessName & " " & oAllProcess(index1 + 5).Threads.Count & vbCrLf

                oProcess = oAllProcess(index1).Threads.Count
            Next
           
        Catch ex As Exception
        Finally

            MsgBox(str)
        End Try

    End Sub




Read More..