Filipino HJUers Kai

Status
Not open for further replies.
CA... are you going to pull out the live ones from the B-hind? :laugh:


Not for the faint of heart....

[hide]
ascaris.jpg

[/hide]

EH? L:laugh:LZ! Hindi po, mga doctors lang ang magsagawa dyan.

Poor little child. Well, that's African healthcare, poor. I have to say, UN, please help Africa as well please.

wow, microscope shot po yan o hindi?
Pero wow galing roundworm to be.

Yes! That's a microscope shot!
 
Welcome back Nanami-chan. I miss you my friend.

Anyways... Damn! Ang sakit naman yung aking na-experience kahapon,
[HIDE]Finger pricking and phlebotomy[/HIDE]. There's blood here, blood there and so I am so sore last night and that is why I DID NOT POST ANYTHING here beyond 10:00 PM. Ngayon, merong urinalysis at... DUN, DUN, DUN, DUN...
FECALYSIS
at meron pa namang consolation prize ang pasyente na little girl... Introducing,
ASCARIS LUMBRICOIDES OVA!
Ascaris_egg_fert4_decort_400x.jpg

:sick:

Poor little girl, got one.
:nono:

wala ako na intindihan :redface2: kaw lang nakaka intindi nito eh
 
wala ako na intindihan :redface2: kaw lang nakaka intindi nito eh

That's because you are not a medical student IIRC.

Here is the technical terms list:
Phlebotomy or Venipuncture:
http://en.wikipedia.org/wiki/Venipuncture
(Masakit ito sa iyong median cubital vein
MD0853_03_img_0.jpg
)

Fingerprick:
http://en.wikipedia.org/wiki/Fingerprick
(Grr! Ang sakit rin nito ah!)

Urinalysis:
http://en.wikipedia.org/wiki/Urinalysis
(The easiest of them all. Either as 24-hour urine, early morning urine or random time urine.)

Fecalysis or stool test:
http://en.wikipedia.org/wiki/Stool_test
(Ngeh! Ang BAHO NITO! :170::shakefist)

Ascaris lumbricoides:
http://en.wikipedia.org/wiki/Ascaris_lumbricoides
(taken from stool test).

Gets?
 
Hmmm... Paastigan ba ng profession?

Not for the faint of heart...

[hide]
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;

import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;

public class PomAnalysisDriver {

private static XPathFactory xpathFactory = XPathFactory.newInstance();

XPathExpression artifactIdExpr = null;

XPathExpression dependencyExpr = null;

XPathExpression depGroupIdExpr = null;

XPathExpression depArtifactIdExpr = null;

XPathExpression depVersionExpr = null;

public static void main(String[] args) throws Exception {
try {
List pomFiles = new ArrayList();

PomAnalysisDriver pad = new PomAnalysisDriver();
pad.init();
pad.searchForPomFiles("[ROOT_DIR]", pomFiles);
pad.execute(pomFiles);
} finally {
System.out.println("Done.");
}
}

public void init() throws XPathExpressionException {
XPath xpath = xpathFactory.newXPath();
artifactIdExpr = xpath.compile("/project/artifactId/text()");
dependencyExpr = xpath.compile("/project/dependencies/dependency");
depGroupIdExpr = xpath.compile("./groupId/text()");
depArtifactIdExpr = xpath.compile("./artifactId/text()");
depVersionExpr = xpath.compile("./version/text()");
}

public void searchForPomFiles(final String dir, final List pomFiles) {
File initialDir = new File(dir);
if (initialDir.isDirectory() == false) {
return;
} else {
String[] files = initialDir.list();
for (String filename : files) {
String suffix = "";
if (dir.endsWith("\\") == false && dir.endsWith("/") == false) {
suffix = "\\";
}
File childDir = new File(dir + suffix + filename);
if (childDir.isDirectory() == true) {
searchForPomFiles(dir + suffix + filename, pomFiles);
} else {
if (filename.equals("pom.xml")) {
pomFiles.add(childDir.getAbsolutePath());
}
}
}
}
}

public void execute(final List pomFiles) throws SAXException, IOException,
ParserConfigurationException, XPathExpressionException {
for (String pomFilename : pomFiles) {
File f = new File(pomFilename);
Document document;

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse(f);

// Node projectNode = document.getDocumentElement();
// NodeList children = projectNode.getChildNodes();

String projectName = (String)artifactIdExpr.evaluate(document, XPathConstants.STRING);

List dependencies = new ArrayList();

NodeList nodes = (NodeList)dependencyExpr.evaluate(document, XPathConstants.NODESET);
for (int i = 0; i < nodes.getLength(); i++) {
Node dependency = nodes.item(i);
String depGroupId = (String) depGroupIdExpr.evaluate(dependency,
XPathConstants.STRING);
String depArtifactId = (String) depArtifactIdExpr.evaluate(dependency,
XPathConstants.STRING);
String depVersion = (String) depVersionExpr.evaluate(dependency,
XPathConstants.STRING);
String depId = "/" + depGroupId + "/" + depArtifactId + "/" +
depVersion + "/" + projectName;
dependencies.add(depId);
}

for (String s : dependencies) {
System.out.println(s);
}
}
}

}
[/hide]
 
I might not be in the medical field but I can do google searches... Mushashi, your java code is missing a character field... heheheh;)
 
Status
Not open for further replies.

Latest News & Videos

Latest News

Back
Top