|
...there is no one to celebrate with because no one else cares about it.
It's just a thing you had to figure out to get a thing done.
I just figured out how to use JCov (Java Coverage tool which is ancient).
I could only find the source for JCov so I had to build it.
To build it I had to get Ant (build tool) installed and figure out how to use.
And I needed some additional Jars which were difficult to even know where to get.
I felt like I was downloading jars off some guys server in his garage but it was actually oracle (Index of /repositories/releases/org/ow2/asm/asm/7.0[^])
I also had to learn how to use JUnit (unit test framework).
So you have to
1) build your targets
2) build your target test classes that use the targets
3) add instrumentation to the class files using JCov cryptic commands
4) run the tests against your targets while invoking another JCov cryptic command which will watch the junit tests to see what is covered (outputs report.xml)
5) create a html report using the JCOv cryptic command which uses the result.xml
Here's a snapshot of the coverage report[^] on my very small Calculator code.
Check out the commands I had to run to get to that:
@echo off
REM ####################################################
REM Prework -- clean up old files
REM remove the report directory and all files
rmdir /S/Q report
REM remove all generated xml files
del /Q *.xml
REM Re-compile targets to insure they have all code changes
javac -cp .;junit/* Calculator.java CalculatorTest.java
REM #####################################################
@echo on
REM 1) Create instrumentation for target class -- creates template.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar Instr Calculator.class
REM 2) Run the code with instrumentation -- creates result.xml
java -cp .;C:\Users\target\DevTools\jcov_3.0\jcov_file_saver.jar;junit/* org.junit.runner.JUnitCore CalculatorTest
REM 3) generate report from result.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar RepGen result.xml
But, it's all esoteric and I'll forget it when the project is over.
|
|
|
|
|
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
Mind you, I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
But, what about my laziness...?
OriginalGriff wrote: I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
I've done that too. It's really funny. And, actually, one of the main [only] reasons I joined StackOverflow and contribute is so I can find my answers later. Yes, I'm serious.
If I just put the info in a google doc or on my local disk somewhere I'd never find it.
|
|
|
|
|
raddevus: what about my laziness...? Nothing I can do about that ... but think of it as investing in your future laziness?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
raddevus wrote: If I just put the info in a google doc or on my local disk somewhere I'd never find it. That's why so many of my "projects" include a text file howto
So as long as I can remember that I did something similar already, ...
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Peter_in_2780 wrote: That's why so many of my "projects" include a text file howto
So as long as I can remember that I did something similar already
That's actually a great idea. thx
|
|
|
|
|
find ~ -name howto or locate howto Waaay too easy!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Ah, I know that issue well. I have written in depth papers on subjects in the past, with the intention of using them as reference material at a future date. Then I either forget that a I wrote them or forget were I stored them. Either way, it is a common issue.
Now if I just had the time and the wherewithal all to write a library program to keep things organize, I would probably be good to go.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
|
|
|
|
|
I created a general purpose information database I can put anything into I want (except pictures in an easy manner). It will even generate bibliographic reference citations if I go so far as to put the book, magazine, or other reference information in. And all I've used it for lately is how to use mklink ! But since I had to look it up several times before, that's enough!
|
|
|
|
|
raddevus wrote: But, what about my laziness...?
An even better reason to write it down.
You'll thank yourself next time you need it.
|
|
|
|
|
That's what BLOGS are for! LOL
|
|
|
|
|
...there is no one to celebrate with because no one else cares about it.
sad but true
|
|
|
|
|
Pardon the awkward title. I was referring to a story I read : After two girls gossiped about a man in an elevator, his unexpected response led to the 'loudest scream'[^]. The scream was because he revealed to them he had understood everything they said.
I have heard two similar stories from the individuals directly involved. They are rather amusing, even more so when they tell them.
1. A friend was attending San Jose State and was between classes so he sat on a bench in a square between buildings. He is not Asian but he grew up in the Bay Area and picked up a fair amount of a Vietnamese language (Viet?) from his neighbors. A group of Vietnamese girls were sitting nearby and commenting about his appearance and the size of his biceps. He acted like he didn't understand a word they said until he decided to leave. He walked by them and said, "have a very nice day, girls" in Vietnamese. He said their mouths dropped open and they were very embarrassed to the point of turning pale.
2. Another friend is nearly six-feet tall and a former Marine. One time when she was still in the service she went to a grocery story to pick up something. Two Mexican guys were in line behind her and they were both barely over five-feet tall. They were talking in Spanish about how big she is and how they'd like to climb her and ... Finally, she turned around and said, in Spanish, "I may be a gringa but I'll kick both of your little asses if you keep it up." Apparently their reactions were quite similar to that of the Vietnamese girls.
Funny stuff. Have any of you heard similar stories?
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Indeed, my wife and I were at a Greek festival where my wife bought some Loukoumades[^] and hands the person $20, the cashier gives change for $10. My wife mentions the discrepancy, and the person mutters something like "you cheap, thieving American" in Greek, thinking that we are trying to rip them off. At which point my wife tells them "I'm neither cheap nor thieving nor blind" in Greek. Their expressions were priceless.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
modified 4-Feb-21 16:08pm.
|
|
|
|
|
In the mid 1980s I was based in Singapore for a couple of years and picked up a smattering of various dialects. For some reason the only Cantonese I knew (outside of ordering food and drinks) was very rude.
One day in Hong Kong I was crossing the street and a cab driver yelled at me "Go your mother", a general purpose insult. He almost drove up the nearest lamp post when I shouted back "And the same with your father", the traditional rejoinder.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Yes,
Some years ago I was out for dinner with a Norwegian colleague and his wife. They are constantly making fun of 'Fat Americans' and our excessive lifestyles. We were waiting for the pedestrian signal to cross the street and there was a very large woman waiting with us. They were laughing and making fun of her weight (in Norwegian) and for some reason her hair. When the pedestrian signal changed the large woman turned around and fluently thanked them for their kind words. The large lady was Norwegian. There are only about 5 million Norwegians in the world so for the rest of the night we discussed the probability of the encounter.
|
|
|
|
|
Not only heard... I have been involved in several of them... in several combinations.
Being the one embarrassed and being the one embarrassing others. With Spanish and with German in several lands.
It might be very funny, yes
Specially if you are a bit evil 😈
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
When I was studying in the nineties we had a guy in the student house that was half Swedish and half Czech.
He used to spend his summers in Czechia, and as a student he worked in the summers as a tourist guide in Prague.
He used to bring the tourists to various restaurants in town and helping them to order food.
After having discussed the orders, in Swedish, with the tourists and ordered the food in perfect Prague dialect, he usually got a lot of apologies from the servants for bringing him the wrong menu.
You see, in those times the prices differed between English, German and Czech menus. To make it possible for the locals to eat out more often.
|
|
|
|
|
Jörgen Andersson wrote: You see, in those times the prices differed between English, German and Czech menus. To make it possible for the locals to eat out more often. Not exactly the same..
but having some German guests in Spain before the Euro-Devise, we went out to have lunch with typical "Tapas"... when the bill came in pesetas, he looked us asking how much that would be in DM (German Marks) when my father calculated the exchange... he asked for a second round.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
My wife and I were taking a scenic ferry ride across Sydney Harbour recently. Two Japanese girls seated behind us talking about friends and many other things... some "interetsing".
As we were leaving the ferry at the destination I turned to them, greeted them in Japanese and wished them well. The looks on their faces were like what has been described in other replies.
Of course they couldn't have known that I worked in Japan for 9 months some 46 years ago.
|
|
|
|
|
I've often said that I want to learn Spanish for no other reason than to listen in on others during an elevator ride.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
The Opposite. Circa 1994, I was in Russia with 2 Friends. We did NOT speak the language, LOL.
We got in the WRONG Line for a boat around St. Petersburg. Without knowing.
And 5 minutes into the trip, we are doing a B-Line to "somewhere". We went from "relaxing and joking" to "Hair standing up on our necks"...
We simply cannot find out where we are going. OMG, I am almost crying right now, typing this.
We get CHASED off the boat (we tried to stay, but they FORCED us off). and then I heard it...
The QUEENS ENGLISH... Amazing with all of those people, my brain picked up SOMEONE speaking English.
I pushed through the line, and found an Englishman and his wife, holding a book of poetry...
I said:
"This is going to sound incredibly American... But where are we?"
They ROARED... Explained it was the Summer Palace... and it was HONESTLY one of the BEST DAYS we spent in Russia. Beautiful, Peaceful... Incredible.
They got a good laugh out of our story... As did we...
|
|
|
|
|
That is very good one.
Curiously, I studied quite a bit of Russian in high school and college. I have had a few cases of understanding bits from people talking nearby but never an embarrassing kind of thing. One time was rather funny - I was sitting in an airport waiting area before boarding and some people were speaking Russian nearby. They said something rather funny and when I chuckled along with them I got some very odd looks. I just smiled at them and when back to my surfing.
My sister went to Russia, when Gorbachev was in charge, and I still regret not joining her on that trip. I have no interest what so ever in going now.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I've not used dual displays since the early 90s (back then We would use OutputDebugString() to send debug text to a second mono monitor). I would like to try my hand at using two displays again for the extra screen real estate they would provide. I'm thinking of purchasing a new computer that has 1 HDMI port. Would it be better to install a video card that has one HDMI port for the second monitor to use, or a video card that has two HDMI ports for both monitors and just not use the one integrated in the motherboard?
Thanks.
DC
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I am using a laptop with a USB-C dock which support 2 HDMI and 1 Display Port video outputs.
With a triple mount I have lots of desk space and 4 displays (if I keep the laptop open).
One is configured for Portrait display for reading documents.
I am using a DELL dock, since I have an XPS laptop, but there are many available on Amazon and other sources.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|