|
Quote: their our currency FTFY
...as it's been plastic for a few years, I don't see why it would do any harm.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
Old starship captains never die. They just become hookers.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
And when they retire they become lawyers
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
// No comment
|
|
|
|
|
Yesterday I was once again reminded that it's often easier to solve a problem if you remove yourself from your work environment, as that forces you to think in a clear and unbiased manner.
For the past couple of days I've been stymied by a code smell re: the need to include Interop.Shell32.dll with a custom installer I'm writing for one of my freeware apps. The emphasis is on ease of use by a complete novice, and I wanted the user to be able to run a single standalone .exe that had no dependencies, other than the presence of .NET. Anyway, I figured I'd come up with a solution (that honestly seemed hackish at best).
Last night, I walked to the kitchen to turn out the light and found myself (involuntarily) drawn to a container of chocolate icecream. Several minutes and several more spoonfuls later, a ridiculously simple (and much more elegant) solution hit me. All this while I was no nowhere near my PC or Google.
Moral of the story: eat more icecream.
/ravi
|
|
|
|
|
What was the solution?
I've made a .Net WPF app a single exe by embedding the required dlls as resources in a post build event and then using OnAssemblyResolve (or something like that) to load them when needed.
|
|
|
|
|
Jacquers wrote: What was the solution? Ice cream man. Don't you read?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Jacquers wrote: embedding the required dlls as resources in a post build event and then using OnAssemblyResolve That was the smell.
I decided to instead keep the installer brain-dead simple (i.e. it just downloads the app and deposits it in a user-specified folder). After downloading, the app is started and instructed to delete the installer and create a shortcut in the Startup folder. That way, the interop .dll is one of the app's components and lives with it. The .dll is also required at run-time, because the app has a "Start with Windows" preference that can be toggled at any time.
/ravi
|
|
|
|
|
That's nothing new. Chocolate Driven Development.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
|
|
|
|
|
CDP1802 wrote: Chocolate Driven Development.
/ravi
|
|
|
|
|
Glad you found your solution.
I had a similar deal (sans the ice cream) go on with a need for shell functionality.
I found a way to add what I wanted simply by adding a registry key so that the menu item shows up in File Explorer and user can select my functionality from File Explorer. At first I thought I had to have shell interop, but no. I was very happy.
YOu can see details in my CP article.
FileDestroyer: Annihilate Files (overwrite multiple times, then delete) With This Utility[^]
Don't focus on the destroy files thing, but just the way I call the functionality via the shell menu. Very easy to implement.
Thanks for sharing.
|
|
|
|
|
My apps are (now) exclusively portable with no impact on the OS. In fact, a requirement is that they be able to run entirely off a USB stick. The OS just provides the host execution environment.
/ravi
|
|
|
|
|
Ravi Bhavnani wrote: no impact on the OS
Very good. However, you mean a self-contained exe, right? They're still dependent upon the OS as in they will only run on windows, right? I mean they're not cross-platform are they?
Just curious.
Self-contained exes are always best. Great stuff.
|
|
|
|
|
Yes, sorry I didn't mean x-platform. They're Windows apps that are simply xcopy "installed" and can run entirely off a USB stick without writing any data to the host PC.
/ravi
|
|
|
|
|
Some version of Serendipity.
Don't want to provide a link. Search, and you'll find ... Chocolate.
|
|
|
|
|
Is there nothing chocolate can't do?
|
|
|
|
|
Chocolate is all powerful. Chocolate can even whup Chuck Norris.
/ravi
|
|
|
|
|
Only because Chuck would be like.... "I'm gonna kick your... Oh! you have chocolate! well then
that's different now..."
|
|
|
|
|
*OR* take up smoking. That's removes you in a similar way, but also makes you look cool in front of your friends.
Regards,
Rob Philpott.
|
|
|
|
|
Quote: makes you look cool in front of your [too dumb to know any better] friends [with death wishes] FTFY
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Thank goodness you pointed that out. People might have taken it seriously, otherwise.
Regards,
Rob Philpott.
|
|
|
|
|
The surgeon general has determined that you need a surgeon general message included.
|
|
|
|
|
I like it Ice Cream driven development.
New version: WinHeist Version 2.1.0
My goal in life is to have a psychiatric disorder named after me.
I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.
|
|
|
|
|
Ice cream cools the brain down after all that thinkin' heating up the brain. And the ice cream tastes really good.
That was one of the things I liked about VB6, create the exe and throw the necessary dll's in the same folder (if you used any external ones that is) and the darn thing would run. No JIT!
It was broke, so I fixed it.
|
|
|
|
|
Been waiting for this name to become available for some time now.
|
|
|
|
|
Why do I get the feeling that we'll have a P0mpey4, any time now?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|