|
Just got the bill for 42 coffee...
I ordered 4 tea, 2 coffee
I'll get my coat, was on my way out anyway.
|
|
|
|
|
lol, speaking of coffee, we had some sort of drive thru coffee shop open near us. Now, I am NOT a coffee connoisseur at all. Give me a large mug of Dunkin Donuts coffee - hot, no sugar and milk (don't get happy with the milk). I like the bitterness, it tells me I'm drinking coffee. Anyway, wife and I decided to stop by and try their ice coffee (I was sucking up to the wife). Two small iced coffees, just cream please.
That will be $7.52
Yeah, screw that
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
If you can find French Market dark Roast you woulf love it.
Ed
|
|
|
|
|
|
So this customer's customer asked me if I can send a file to an API instead of through email.
Sure I can, no problem, just send me the API definition.
The API has a few fields of which file is the most important.
The curl example they sent me shows it's form data and the file parameter is a local file path.
I don't know what curl does, so I asked this guy "how do I send the file in .NET? Do you want a byte array, a base64 string, something else? I'm pretty sure sending my local file path won't do."
He replies "I don't know how that works in .NET, but you can read the curl documentation."
"Alright, let me rephrase that. I know how .NET works, but how do you want to receive the file, as a byte array, base64 string, something else?"
Apparently, this is a very difficult question as this guy had to send it to someone else who replies (literally) "You need to tell them that, you need to send through form-data, check the postman screenshot"
The screenshot is literally the curl request, including a local file path
At this point I just want to send them "C:\My Files\My file.pdf" and be done with it
I'm going to make a wild guess and mimic an HTML input type="file" form upload and see how far that gets me because I don't think I'm ever going to get the answer I'm looking for...
|
|
|
|
|
Curl do binary transfer...
The protocol of the connection is derived from the target url...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
If my experience is anything to go on, there's a good chance the data should be sent packaged up as a literal inside an XML document (the nodenames of which will not be documented anywhere).
Good luck...
|
|
|
|
|
That's my experience too, it's never what you'd expect (even when you expect the unexpected)
|
|
|
|
|
Postman will translate a curl to C# code for you. Very handy!
|
|
|
|
|
Why did I not know this!?
|
|
|
|
|
Sander Rossel wrote: Why did I not know this!?
Tradecraft. I had to be shown this a few years ago because I didn't know either.
|
|
|
|
|
Well ... the whole sentence was "You are pretty annoying", but I like to focus on the positive elements.
"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!
|
|
|
|
|
pretty accurate?!
|
|
|
|
|
Reminds me of this[^]
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Wonderful stuff ... I need this every now and then when I drive ...
modified 7-Nov-21 12:11pm.
|
|
|
|
|
Pretty lucky it wasn't worse. Seems like everyone's a critic.
Unless it was your wife that said it. then you are probably in doo-doo land.
ed
|
|
|
|
|
|
|
There we go - that's my version of coffee.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Absolutely TRUE!
Old guy in NOLA
|
|
|
|
|
Have you ever set out to design something complicated with no idea how well it will work in the end, and no way to try it without just diving in?
And then you get the first sign of life from the thing, and it's brilliant. It makes it all worth it.
My Reggie rewrite is now generating *proper* T-SQL and proper C# for tokenizing, both table driven and compiled. That's the most complicated code generation involved. It works, and its tokenization passed my initial test for all versions.
It means csppg combined with Reggie's expando based template dispatching is actually working for what I designed it to do to wit, I can describe state machines in a code and platform independent manner and all supported targets can render it to their target language.
If it works with T-SQL it can pretty much work with anything. Something like Scheme would actually be pretty easy, if not efficient.
Anyway, I'm elated. I still have a lot to do, but I was kind of sweating bullets hoping this didn't all fall down on me. It worked at least as well as I expected, if not better.
Real programmers use butterflies
|
|
|
|
|
"Quote: You know that point when you get to a proof of concept? Then you show your boss, and next thing you know, you're fielding support requests on it for years....
Keep Calm and Carry On
|
|
|
|
|
honey the codewitch wrote: Have you ever set out to design something complicated with no idea how well it will work in the end, and no way to try it without just diving in?
I've had a few projects like that. What's particularly amusing is a couple of the notable ones were when the PhD people (I kid you not) said "it can't be done" (or it took 30 minutes to process the data) and then engineer asked me to take a look and I solved the problem. In the latter case (the 30 minutes to process the data) I ended up using a simple lookup table that resulted in "seeing" the result in real time! It was a video stream and the digitizer board supported a variety of interesting things one could do in realtime, this was like 30 years ago.
In the former "it can't be done" case, the PhD people had been working for years on the trying to figure out the analysis using their PhD skills as the only hammer they knew.
But in both cases, I really didn't know if my ideas would work - I just had to dive in, like you said, and see if it did work.
|
|
|
|
|
I have decided to get more serious with doing websites. Not mobile phones or IOT applications. I have experience with MS windows Web Forms. I have always worked in VB6, VB.Net and C#.
I'd like to know your opinion on what is the "best" language to learn to do this.
"Best" for me means :
1. Easy to learn.
2. Easy to use.
3. Final product is "secure".
4. Easy to integrate with MS SQLServer
5. Easy to maintain and modify is necessary.
6. Well documented with code examples, tips, hints, etc.
Yes, I know this is a lot to ask, and will involve compromises on my part.
I have purchased "Python for Dummies" but not yet started reading/using it.
I dont want to spend a lot on time on it if there is something out there better.
Curious in NOLA
|
|
|
|
|
Whatever language you select, you will wind up shouting "golf course words" before long.
|
|
|
|