Created after the Coding Help category, this is for other serious requests for help that don't fit in there (or any other subcategories that may be created.)
Does anyone here know gRPC / protobuf?
I'm passing large-ish chunks of data between my own client and server and have implemented streaming because the overall dataset to pass is larger than the max message size (default is 4 MB, I know I could increase that but probably not to the point where it would cover all my use cases, so streaming it is in any case).
The issue I have is how to find out what size of messages to send in my streaming implementation?
Searching the interwebz I can find tons of discussions on how to set the maximum message size when starting the server, but this is not what I want. What I want is querying an existing server to find out what is that maximum size. Either my google-fu is weak, or nobody ever discusses that?
Currently I need this in two places and in one I've hard-coded a 4 MB (minus a small margin for headers etc.) limit. In the other one I've been smarter and implemented a horrible hack where I parse the string from the error message (!!!) to read the maximum size.
@Bulb said in Programming Memes Thread:
“Slowworm isn't a snake”
Just make sure you do not mistake a snake for a slowworm. I did, and I was surprised when the slowworm threatened me cobra-style. Anyway, it was a harmless small snake, and did not bite (just threaten).
I've seen plenty of do nothings in proprietary code. The main use
is to get rid of "Parameter was not used" warnings where the parameter
was added to maintain style- for example, a struct * (basicly a
this) pointer on a module where multiple instances are not supported.
The other is as previously described- as a fake to a function pointer where you don't want the null check.
And he's done it again here (only this time without the unsubtle post beforehand which put "GAY" in the middle of the page using CSS). Seriously - take a look at the HTML source to his post.
I do have to say that I listen to mostly Internet radio stations (shoutcast) w/ Winamp, and as such, I don't think my musical tastes are going to be reflected. But that's OK.
@masklinn said:@ammoQ said:@masklinn said:Is there any advantage over using sessions to manage the state on the server side?
Scalability?
Mmmm using viewstates means that you replace the memory taken
wherever you store your session data (which would be FS file, memcached
or DB) with a big bunch of extra bandwith, parsing of base64 encoded
data and reinitialisation of the various objects. Plus the fact that
your viewstate data could very well have been modified by the client
and is therefore tainted and untrusted, while session data are by
definition trusted and untainted.
I'm not sure it'd be a huge gain if a gain at all.
That's right, but it probably depends on your users and their habbits.
A well-visited forum like this can have thousands of users, which at
some (unpredictable) point decide to close the browser window. How long
do you keep sessions alive? On the other hand, an online-banking
application can be made relatively strict, dropping sessions after a
few minutes of inactivity - and of course, a online-banking app has to
be much more carefull about safety concerns, untainted data and stuff.
Bandwith is of course an issue, but on the other hand, it's much easier
to do load balancing and fail-over if there are no sessions you have to
share between the servers. Parsing is hardly a problem with todays
computers, unless you do it in PL/SQL ;-)
@versatilia said:
The upshot is you can imagine the performance hit of doing all this -
so I'm thinking there must be a way to do all this with a modern day
DB. Someone said postgres can be extended by writing your own
data types in C... any further suggestions?
Alex ranted in his blog about the new feature of MS SQL Server 2005, which can store instances of .net classes.Look for the <font size="3">"When Should I Use SQL-Server CLR User Definied Types (UDT)?"</font>blog entry. Maybe this will help you, but should also ask yourself if you are on the right track anyway.Maybe what you really want is the mystical beast called "middleware"?
@Isuwen said:Everytime someone brings this up I want to puke. Paula Brillant was not calling herself bright. Brillant is her name. Her name is not Paula Bean either, she refactored a JavaBean called HelloWorldBean into PaulaBean. Inside, she assigns the variable 'paula' her last name. Not a mispelling of brilliant, but her last name. It's not even an uncommon name! You are the WTF. Yes, that's right, you.
"refactored"???
Bwahahahahahahahahahaaaaaaa!!!!!!!!!!!
Go back to the kiddie table.
( And yes, it's getting a little tired. But AFAIK, it's only *possible* that her last name was Brillant. Since I don't know her (but apparently you do), I'll have to take your word that her last name isn't "Bean" (could be!).)
@Mike R said:
C#: 110 characters
System.Diagnostics.Debug.WriteLine(Int32.Parse("A", System.Globalization.NumberStyles.HexNumber).ToString());
Java: 44 characters
System.out.print(Integer.parseInt("A", 16);
BLOCKED SCRIPT 26 characters
alert(parseInt("A", 16));
<br>
I want to know more about this Blocked Script language.
JScript? JavaScript? VBScript?
"BLOCKED SCRIPT" is an German script language, like JavaScript, but
uppercase letters only ("Blockbuchstabe" means "uppercase letter" in
German)
Since the given example was incorrectly written in mixed case (mostly
lowercase), it doesn't work. Written correctly, it would have opened an
alert box, something that obviously doesn't happen except in some MS
browsers that try to interpret malformed BLOCKED SCRIPT anyway.
I've been wondering the same thing. There aren't any sites that I visit as much as this one. But i'm looking for coding tips from people more experienced. I like www.c-sharpcorner.com, but I don't want to be reading boring articles all day. I'd rather chat it up. The other day someone referenced www.koders.com which might be cool.
Hi! I'm that signature virus. Copy me so i can spread.
Well, since a bunch of you heard it I'd say its not a hallucination.
Though, it would be a nice explaination. Used to have those horrible
ICQ sounds jumping at me all the time at least for 6 months after I
stopped using it. In any kind of circumstance. Since then I always turn
any and all system sounds of on any computer I'm using. ;)
Son of a gun. I meant that post to be a response on the VIM vs. IDE thread. I'd appreciate it if an Administrator or Moderator would move it. But no big deal.
@endergt said:@Albatross said:Any thoughts on this:
(I also made an icon: http://www.dtscc.net/www2/download/thedailywtf.ico)
(Crosses fingers and clicks post...)
I definitely cast my cote for this icon.
Now, any ideas on how to get Firefox to update its bookmark icon?
Mine's stuck on a picture of a Gameboy and I'm not sure why... Interestingly, the current favicon for TDWTF is quite different.
Quicken is unbelievablely bugging. You keep hoping and praying they will fix it, but it never happens.Very bad database back end, frequently gets corrupted. They pretend to have Tech Support. Every answer is:" to complicated please call 1-800-India and have your credit card ready". $25/each. That's to fix bugs!
@slashkev said:sure 10k lines of code to implement features that are boiler plate in other languages, and having done it in 2 weeks may make you feel pumped.
but, if i can implement the same thing in 500 lines of code in 2 days, then who is the loser?see http://bob.pythonmac.org/archives/2006/01/06/in-development-flashticle/ for an example of what you're describing
@agrath said:The image recorder was available but not for DVD modes because the machine in question didn't have a dvd writer installed.
Upon thinking this problem through logically, I went into the
options for nerovision and discovered a "enable all supported formats
for the image writer" and low-and-behold, the DVD options appeared in
the software.
I don't know why I didn't look there earlier, but you know.. that's why this is a WTF.
Yes, Nero itself has an "image writer" virtual drive, but you can
only write to the formats which your physical writers support (or cd if
you have none) unless you enable this option which is off by default.
Makes sense for the less-technical users out there I guess.
Ah - yes I'd forgotten about that switch too. But Nero doesn't enable
DVD compilation by default when installing it on a machine even with a
DVD writer. I remember fumbling around in the settings trying to figure
out why I couldn't create a DVD compilation when there was clearly a
drive installed. doh!.
Admittedly, it was an older copy of Nero... *cough*
@JohnSmallberries said:I know .... And I feel horrible about it. When I registered, I would have sworn that you had used John Bigbootay, so I used John Smallberries to be safe ... I was wrong. Note how I haven't posted anything in a while; trying to figure out a new handle. :DNo sweat.There is a John Bigboote here also.You can try John Yaya...
@jwenting said:Most GUIs are crap no matter the language they're programmed in. You can't blame the language for the way it's abused...Correct.I was blaming the native Java GIU. I'm agnostic on the qualities of Java itself, as I've never coded anything in it.I do like the tactile experience of thos rugged purple scrollbars, though.
Actually the term or method "for-sale" cannot be a patent.
It describes common words, "for" and "sale". The word "for" indicates an object as a target or something where is aimed to. The word "sale" refers to an exchange of goods and services.
Both words, does not refer to anyhting new, or innovative, therefore, I have 100% doubts you have registered something "for-sale".
P.S.: I did not have any patent yet (takes too much time..) but I have registered several trademarks :)
@ItsAllGeekToMe said:25% of the profit for 100% of the work? Where do I sign up?thats better than my current job.i just fullfilled a 4000$ contract.i was paid one days full wage (20$/hr ish).25% sounds good.
I work for a cable ISP and we use "UltraVNC SC" for our remote assistance stuff. Basically each of our support guys runs a listener on their PC here at the office, then we have the client download an EXE from our website. That will come up and show them a list of all of the support guys, then they just double click our name and it connects them to us, but lets us control their desktop. This is a really nice piece of software and it's customizable as well.
Home - UltraVNC VNC OFFICIAL SITE, Remote Desktop Free Opensource
@dhromed said:AJAX is a kludgly technique that uses pages of code in both client-side
javascript, XML files and server-side script in order to change a tiny
thing on-page without reload.
So it only pays off in bigger projects, suh as Google does with maps and mail etc.
Spoken by someone who's never used it (or at least never used it
properly), it would seem. Unless you fall for the framework approach to
everything, Ajax code does not have to be particularly large in the
client. I use it a lot, and have yet to write anything approaching the
size of, say, Sarissa. Nor (in most cases) does it actually require any
specialised code on the server (one can parse data from returned HTML
just as easily as from XML).
And, no, Google is not a developer of Ajax, just the most visible developer of Ajax-based applications.
@Richard Nixon said:If you're drawn into pyramid schemes with such regularity and ease, perhaps you should just count yourself lucky that you were able to get an Associate's Degree. Let's realize limitations, okay?
<FONT face="Courier New" size=2>dude, he's probably albanian.</FONT>
@dhromed said:Interestingly, no, it isn't.
<FONT face="Courier New" size=2>i am legendary, like the crazy trolley operator in that die hard movie.</FONT>
Okay, here are some more.
Story # 3 - Nah'mean?
True story. This guy waltzes into the interview wearing an open shirt with a gold chain. I don't mean rapper gold chain, I mean Leisure Suit Larry style. He was exposing all sorts of grotesque hair on his chest. And he had the pimp swagger down too.
He lounges in the interview chair and fields the various questions from
the panel of interviewers. Most of his responses are along the lines of
"Nah'mean?" (know-what-I-mean?) Finally, one of the interviewers gets
the guts to ask the question we all want to know the answer to.
"You realize that this was a formal interview? You can see we are all wearing suits and ties?"
He just leans back in his chair and responds with "Man, this is what I'm used to. Nah'mean? I dress like this all the time!"
I don't have to tell you that he never made it to the second interview.
Story # 4 - The 'Whassup Dawg' Handshake
This story isn't that exciting, it's just an illustration of what not to do during an interview.
The candidate walks in, looking quite normal. He approaches the main
interviewer and he extends his hand. The candidate then proceeds to do
this "Whassup Dawg" handshake. You know, it's the one where you shake,
then grab, then kind of grab again?
However, the candidate didn't expect the interviewer's response of "Ok,
Ok! Please, that's enough." He didn't say it in a mean way, just so
that the candidate would stop. The candidate looked a little shaken by
the interviewer's reaction, so he shook my hand normally.
The interview ended up being okay, and there were no further incidents.
But because of his weird "Whassup Dawg" handshake, he didn't make it
any further in the process.
I guess the bottom line of a lot of these stories is: Hello? This is a professional interview here people! What are you thinking?!?
@gondalez said:Has anyone ever started a new job or inherited a new system and been pleasantly suprised by how well it was done?
No exactlty, but, and I really don’t want to toot my own horn, I delved into some of my own old code from a while back, thinking I was “going to clean it up,” but was pleasantly surprised to find it was much better than I remembered.
I don’t consider myself a master in the least, but clearly, I’m not quite completely clueless, either. That was a pleasant shot of ego.
You know how you hear a joke
and you know how you heard that joke 15 years ago and 571263941412 times
well what would happen if someone posted it here? I don't have to wonder.
If you're logged in you should see your forum name on the top right
side of the screen right next to "Welcome back". Click on it,
that's where all the options are. At least for me. Your
mileage may vary.
@Katja Bergman said:
Of course this is relevant. Is he gay, straight or bisexual? If he's
straight, then why would he ever have sex with young boys in the first
place? He'd be more dangerous for young girls in that case but I've
never heard any girl complain about sexual advances from Michael.
In general, where a paedophile even HAS a conventional sexual
orientation, it won't affect the gender of the kids they go after; most
paedophiles apparently also go for both genders.