idk, I'm quite the fan of Discourse... I even gave some feedback on the early betas ...
Posts made by drachenstern
-
RE: Frist! And Welcome
-
RE: State mathematics standards WTF
Can you please point out which one is?
I tend to think "Parents". I learned more about stopping to look at the problem from my parents than I ever learned in school. Being naturally curious helps, but look what I'm doing now ... (ducks from Morb's flames)
Also, you still get the math wrong, but I think this is an elegant attempt at trolling, so I'm not responding to the remaining gibberish where it's obvious that the geometry of the problem AS DEFINED does not support your arguments. If there were merely ONE additional 90 degree marker on a single intersection not already marked, then your answer is splendid, superb and correct. And totally not necessary.
-
RE: State mathematics standards WTF
Nonsense, the problem is expressly designed to require that people slow down and evaluate the entire situation, rather than glancing at the problem and guessing they know what is presented.
Ya know, like the way an adult should approach every problem in life. Ya know, like how we're trying to educate children by having them goto school in the first place...
Granted, the fact that the initial answerer got the question wrong implies that we've got the wrong group responsible for training our children analytical skills.
-
RE: State mathematics standards WTF
Eh, so nice of you to sign up JUST to tell us that d||e but I think you should try again, because there's nothing in the math that shows that those ARE parallel. They just APPEAR to be.
Prepare to defend your honor, but I sense that you're missing something fundamental in the problem definition. Like the part that there are only 3 defined 90 degree angles.
-
RE: Vista's Amnesia Strikes Again
@derula said:
@bstorer said:
No you didn't. He had his soldiers kill at least 198.@Eternal Density said:
[b]FTFTFYFY[/b]@derula said:
FTFY@morbiuswilters said:
Hitler also had a few peoples killed.@derula said:
Why not? Hitler kept calling a "tausendjägriges Reich" (thousand years old Reich) what essentially only lasted for 12 years. It's in my blood.@upsidedowncreature said:
[u]It means precisely 197.[/u] Don't be a fucktard and try to redefine a well-known phrase to whatever you want it to mean.Hang on, when you say "a few" could we just clarify that please?
I think a few usually means around 200. -
RE: How religious zealots are born...
@DescentJS said:
@morbiuswilters said:
<div style="AOL">me too!</div> What're ya'll's overage rates? fucking ridiculous the overpriced anal-rapage we allow those bastards to get away with.I wish an unlimited data connection in the US was a few bucks a month. I pay $60 for 5GB /month, which is pretty standard.
It's about the same for me too (florida). -
RE: How religious zealots are born...
@derula said:
(Note to self: never use an in-house IM client without encryption)
Glad I wasn't the only one... -
RE: Why is there a TV icon in Microsoft Word?
@belgariontheking said:
Also, the tags had something to do with it. People also don't seem to grok that a DVR requires a HDD of some sort, so therefore there is a limited amount of space to store things. They think it's an artificial limitation.@drachenstern said:
@MiffTheFox said:
Wait, did I miss something?I wonder if they noticed it was the same icon as the "Save" menu item.
Three[b]1[/b] words:[b]2[/b] TiVo.[b]3[/b]Tivo is not three words.
Tivo is not even two words.
The fact that she thought the disk looked like a TV probably had nothing to do with tivo at all.
-
RE: Poor Huey... he never saw it coming
@bstorer said:
QFT.@derula said:
@bstorer said:
@OzPeter said:
wanna explain to a kid why an erection longer than 4 hours should be seen by a doctor?
An erection that lasts more than 4 hours should be seen by everybody. It should be made into a roadside attraction. There should be tickets and souveniers and everything.What sorts of souvenirs?
The usual: postcards, playing cards, little ceramic figurines, locks of actual pubi--
@derula said:
You know, on second thought, I don't really want to know the answer.
Oh. -
RE: Why is there a TV icon in Microsoft Word?
@MiffTheFox said:
I wonder if they noticed it was the same icon as the "Save" menu item.
Three words: TiVo. -
RE: Vista's Amnesia Strikes Again
@morbiuswilters said:
@tster said:
I thought it was established earlier in the thread that many meant "five", and yet when he made the comment it was only for four. Unless one assumes zero based indexing and that length then becomes 5, which today being 6 invalidates the thread again.This thread has been going on for days...
You liar! That implies "hundreds of", which clearly is not true!Either way I think I just proved that sleep is beneficial. Discuss.
-
RE: Marketing - by - Insult
@bjolling said:
Inside there are the load-bearing walls, wrapped in insulation, protected from rain by a thin wall of bricks or just by exterior plaster.
[i]pardon me for the thread-raising[/i]In a properly executed and insulated cavity wall, there is very little heat flow. In summer the heat can't enter the house, because it cannot get easily past the insulation on the outside of the loadbearing wall. The heat that does pass, is first absorbed by the masonry and only released into the house hours later. The thermal mass of the walls ensures that the peak of heat transfer is more gently distributed. Instead of having a high 1-hour peak of heating up fast to 28°C, you'll have a 4-hour peak of heating up slowly to 24°C. The amount of heat that enters the house obviously is the same in both cases, but the latter is buffered.
To reduce the amount of heat transfer, you need to increase the insulation inside the cavity. The "passive" houses that are getting popular over here, have up to 30cm of PUR in the cavity. Friends of mine with such a house pay next to nothing for heating and don't even have AC.
The type of wall you're describing above is actually used here in the US too. I know specifically that it's used for sure in the colloquially named Bible Belt. I can't say about the rest of the country. However, 30cm of insulation is quite a lot, and I doubt we use that much. Of course, I've seen a lot of people using blown insulation now, and I'm told that it's about 40% more compact than more traditional insulation, so perhaps the 6 or so inches I've seen used at the outside is comparable to ... ? 20cm ? (yeah, that's not 40%, my point is that I don't know but I'm discussing what I've seen firsthand in construction).
The house is built as per a standard stick-built house, and then a set of mortar stand-outs are used to anchor the masonry to the house, and the house is built with a gap between the internal and external walls. In retrospect, I think someone earlier in the thread was trying to indicate this concept. I won't arse myself to go back and look at who tho, that wouldn't be TDWTF behaviour. This allows for some of the thermal benefits of masonry, some of the wall-protective benefits of not using "just plywood", and still gives some of the thermal benefits of dead-air heat-buffer systems.
And as someone who lives in Houston, one of those Hurricane cities, I can promise you that temperatures of 45C in summer SUCK.
-
RE: Generic programming in C
Wouldn't this not only work for evens as well, but woudln't it have sufficed for the original in the first place?
<font color="#ffffff">(yeah yeah, refactoring anyways) </font>
-
RE: Racial diversity, realism, and Poland
Hell, to my own eye they both look faked...
I can't seem to get any other countries (using the first few that came to my mind as nearly obvious examples) but I don't know what the specific method of i18n is on these, so I'm curious what other sites they're using one or the other of these images on... anyone?
-
RE: Reading Fail
Obviously this question would never have been asked if the list admin had considered the current economic situation in this political environment. What we need is a government solution to this list-unsubscribe-problem. Not everyone can afford to unsubscribe for themselves!
-
RE: Give me strength.
@SlyEcho said:
@drachenstern said:
I think that was the original intent anyways (not that it matters). All I really did was try to cut out the redundant parts that weren't necessary. Besides, I personally would've just gone for a more highly tuned query, but ... @SlyEcho said:So without any <font color="#999999">heavy profiling or</font> actually trying to make sure this is optimal,
Dim contests As New ArrayList()Much better would be List(Of Integer). This has better performance as ArrayList would box each integer.
@drachenstern said:
Eh what's that? (sorry that my brain didn't grok "line continuation" when I was trying to explain the underscore earlier) I guess you mean something like this article here? Wow, that won't be misused and mistaken ... sure.PS: for those blessed with never using VB, the _ character means "the rest of this statement follows on the next line, nothing else comes after the _" unless it's surrounded by two ascii characters (ie a variable name)
Apparently the next version of VB does not need the _ any more.
-
RE: Incompetant IT Staff
Perhaps my sarcasm detector is wired a little too tightly this week? I did decide to work from home today so as to avoid many of those at the office, so the fault could very well be here.
-
RE: Incompetant IT Staff
@ogilmor said:
@jpaull said:
Wait, you've been here since 2006 and only have 55 posts and haven't caught on that Muphry's Law is becoming a TDWTF meme? Ok, no it isn't, but still. ALSO, I didn't find anything wrong aside from that in Tarq's comment, so ... try again.Am I the only one who finds irony in the OP's spelling of incompetent.
@TarquinWJ said:
Since two other people already mentioned it, I'd say you're not alone. Personally, I liked the use of "then" in place of "than" in the quote. Muphry's Law bites again. It probably bit me somewhere in this comment too (I hate being bitten in the comments). Feel free to search for my mistake. Don't forget to ridicule me for it.
LOL....Yeah I love it when a post with misspellings and grammar errors tells us how stupid other people are
-
RE: Give me strength.
@arty said:
@Cantabrigian said:
I feel compelled to second this sentiment. It's quite nice to have paren delimited logic so that the intent is without misunderstanding. Better something like this @contrived example of paren code said:.. also people who insist on using unnecessary parentheses in If starments in VB.
I kind of defend that in that it's harmless. Having written C and kin for so long, naked flow conditions feel spooky.( (salesTotal<>0) and ( (true>1) >0 ) )
regardless how screwed up the internal logic is. Now during code review you would immediately question the INTENT of the second half of my contrived example (which should work out to false, thus always evaluating to false for the expression...)also, am I the only one who felt like I was reading C code in VB?
RED are needless recasts, purple is he could've just put the damned read call in here.So I'm going through some reporting code and I've noticed an awful lot of this sort of thing:
Private Sub btnPrintSomeShit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintSomeShit.Click
<font color="#ff0000">Dim ws As New WS.DBWS</font>
Dim TableRead As DataTableReader = ws.ExecuteDataset(ConfigurationManager.AppSettings("api_key"), _
"select categoryID from v_categoriesWithEntriesDetail where metaclass IN _
(SELECT metaclassID from tbl_Metaclasses WHERE isAThing =0)").CreateDataReader
Dim contests As New ArrayList()
While (TableRead.Read())
<font color="#ff0000"> Dim contest As Integer</font> = TableRead.GetInt32(0)
contests.Add(<font color="#ff00ff">contest</font>)
End While
TableRead.Close()
If (contests.Count <> 0) Then
Dim contestArr(contests.Count) As Integer
Dim i As Integer = 0
For Each thing As Integer In contests.ToArray
contestArr(i) = Integer.Parse(thing.ToString)
i = i + 1
Next
Dim report As New stupidfuckingreport()
<font color="#ff0000">Dim reportWS As New WS.DBWS</font>
Dim myDataSet As DataSet = _
reportWS.ExecuteDataset(ConfigurationManager.AppSettings("api_key"), "select * from v_claimchecks")
report.Database.Tables("v_claimchecks").SetDataSource(myDataSet.Tables(0))report.SetParameterValue("categories", contestArr)
report.PrintToPrinter(1, False, 0, Integer.MaxValue)
End If
End SubTake a look and see how many you can find.
So without any heavy profiling or actually trying to make sure this is optimal, I would make the following changes...
Private Sub btnPrintSomeShit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintSomeShit.Click
<font color="#000000">Dim reportWS As New WS.DBWS</font>
Dim TableRead As DataTableReader = reportWS.ExecuteDataset(ConfigurationManager.AppSettings("api_key"), _
"select categoryID from v_categoriesWithEntriesDetail where metaclass IN _
(SELECT metaclassID from tbl_Metaclasses WHERE isAThing =0)").CreateDataReader
Dim contests As New ArrayList()
While (TableRead.Read())
contests.Add(TableRead.GetInt32(0))
End While
TableRead.Close()
If (contests.Count <> 0) Then
Dim report As New stupidfuckingreport()
Dim myDataSet As DataSet = _
reportWS.ExecuteDataset(ConfigurationManager.AppSettings("api_key"), "select * from v_claimchecks")
report.Database.Tables("v_claimchecks").SetDataSource(myDataSet.Tables(0))report.SetParameterValue("categories", contestArr)
report.PrintToPrinter(1, False, 0, Integer.MaxValue)
End If
End SubHowever, now that we've gotten it down to functional logic and the things that are extraneous being gone, it looks like a single query getting fed into a single report. Seems like there's a way to optimize the query and get this even faster, but I don't know the schema, so ....
PS: for those blessed with never using VB, the _ character means "the rest of this statement follows on the next line, nothing else comes after the _" unless it's surrounded by two ascii characters (ie a variable name)
</div> </div>
-
RE: When you REALLY want to make sure your font is 8pt...
@ComputerForumUser said:
WINIt looks like it belongs on the cover of a sci-fi novel:
Also, you have too much time on your hands. I would normally "FAIL" you for that, but since the graphic is so full of WIN, I think that trumps all... Now, do you know Gibson and can you get him to write that one? Maybe the plot can be about a guy who is tasked with making sure the font is in 9 point or something...
-
RE: Need opinions on what to get for next laptop.
Whatever you do, no matter what, check the res first. The most recent laptop I got was pretty good, except it's limited to 1280x800 - which SUCKS.
After that, my only other suggestion is to drop the $250 for a 1TB drive post purchase, and also get whatever extended battery they sell.
But those are like generic tips, so...
Modelwise I've always liked HP, but they seem to have screen issues on some models.
I like Dell's if we're talking slightly higher end, but for the low-end I've not been very impressed lately.
Otherwise, I would really have to suggest you consider an Apple. There's almost no reason not to get an Apple nowadays, except you asked for recommendations, and my preference is for HP. ;-)
-
RE: How did you guys learn to program?
For starters, don't knock the Associate's Degree, that was the first one I completed (in my second pretense of going to college), and if nothing else, you've learned the basics of thinking critically about problems (ie, you're asking here about programming, right?). That's all an Associate's was ever designed for, even once upon a long time ago.
In addition, learning to program isn't so much about being able to write a good version of hello world as it is about learning how to best structure your thoughts, and learning how to turn that structure of thought into a useful tool. Being able to say <font color="#808080">"the program should reserve some internal space for a specific set of hardcoded predetermined data to be displayed on screen, the program should request said data be displayed on screen by the operating system, the program should release any memory that it was allocated at initialization back to the operating system and then exit with a status code of 0" </font>is just as important as understanding <font color="#808080">"if y=2x and x=4, then y=8"</font>. If you think my little contrived spec of "hello world" wasn't correct or complete, try writing code off it and tell me what I'm missing.
Being able to spot the WTFs on the front page is more often about experience, no matter what the members of the board will tell you. Almost all of the posters with more than 10 posts have been writing code for much longer than they've been reading TDWTF, so they've had time to get that experience to immediately see the problem with the presented design/implementation/management flaw. So saying that you don't get that right now is like saying that I don't quite get how LHC is the inverse of science. <font color="#c0c0c0">(Really, the Scientific Method says "formulate hypothesis, then test the hypothesis, then revise the hypothesis and start over if the data from the experiment doesn't support the hypothesis" - what the folks at CERN are doing is to run the experiment, then see if the collected data matches hypotheses to be developed post collision - Hey, I've just had a two week closed door session with a lot of theoretical physicists, this is what they told me)</font>
So, having said all that, and after trying to reassure you that it's just a matter of time, I'm going to ask you a few questions, in the spirit of interaction:
When did you start programming on your own?
Why did you start programming on your own?
On what platform did you create your first game?
What sort of math did you get to in High School?
What O/S's do you boot on your computer (hopefully you carry a laptop - having a desktop is optional)?
My first program was written at the age of 12, on a Tandy (!woot) and was done in BASIC, and after that I kind of stuck with BASIC till I learned C. I probably didn't learn functions till I learned C, even though BASIC had some functionality for functions (no puns intended). I started learning C to learn how to do a flatfile database for myself, before I knew what databases were, and once I learned what they were, and how little I knew, I pretty much quit that one (it was a simple PIM, there were a lot of those at the time). My first game was written on a TI81 calculator (the model that couldn't transfer information to other calculators) - it was a basic selection based story model game, but it was the first one I did on my own and it had a plot and weapons and everything. Ok, so it was cheesy, but it was a true program.
What makes that last one really sad was the kid two years younger than me with a TI82/3(?) who wrote a mech-style game with a canopy that didn't move and other mechs that did, and laser blasts. Talk about inferiority complex, although I was never that motivated to write a graphical game for the TI series.
So, sticking with the Math theme, I was at a Calculus 1 level in HS but opted not to take it. I was also rather good at trig and geom, and those are just as much about understanding complex structures and organization as basic programming is. So I would say that having a strong math ability is a good thing, but not absolutely vital. What is vital is a dedication to the art, much the same as how artists always have a sketchpad and pencil around - therefore do you tote a laptop, and if so, how adventurous with it are you? With good backups you really can't mess them up, so ... do you dual boot? Triple boot?
I think the one thing you'll find most people doing on this site is that they play with technology obsessively. Perhaps it's for work, perhaps it's for play, perhaps it's to be benevolent, perhaps to be malicious.
Have I rambled enough yet? I should wrap this up...
-
RE: Try to figure out which kind of software this is
Wow, control arrays? How long has it been since I've seen those... Times like this you wish everyone understood that computers are really good at keeping track of lots of things, and they don't really give a shit what the identifier is, so long as it's unique, eh?
Whenever I have to trace out one of these interfaces, the first thing I try to do is see if it's reasonable to rename the defaultly named elements, such as Text1, unless there's a particularly valid reason for naming it like that... Which I doubt.
-
RE: 17-year-old Dead after Tweeting in the Bathtub
@Helix said:
Doesn't matter on the efficiency of the power supply.
A less efficient power supply is more often a cheap power supply, which is more often going to use lower quality components, which is going to more often cause line problems up-stream, which is exactly what an RCD|GFCI is supposed to stop from happening, especially a finicky one. QED, if you have 50 cheap power supplies on one circuit, the chances of one throwing the breaker are still the same, but the odds of n number of those working in concert are much higher.Hence, what the hell are you talking about man? I get that efficiency just means you have to pull more wattage, but once again, that's as important, as I've not seen many recent computers drawing less than 70A/PC. Eventually you just get past 20A and it doesn't matter about the RCD|GFCI being in the way.
-
RE: 17-year-old Dead after Tweeting in the Bathtub
@Helix said:
@Weng said:
Ok, fair enough that we both forgot the 120/60 <->240/50 conversion means about twice the amperage we're working with, that still means that you're putting more units per circuit than we are, on average. Let's ignore that for a moment, and just chalk it up to "on the internet everyone lives where you live" syndrome, since we've all done it in the past.@Helix said:
Shame that you did not really understand my post, 20A current breaker has nothing to do with the leakage current. Additionaly since I am in the UK, labs of PCs have approx half the current draw then for a same setup in the US, so this is less of an issue.This means that with 50-100 or so PC a 25mA RCDs tends to trip randomly.
Those must be some really tiny computers you're runnin' there. Most I've ever gotten onto one 20A circuit was 50 - without monitors. And that circuit's favorite activity was tripping, because in order to pull that off, each machine had to stay under 50w total draw - which is no small feat even with brand new modern equipment. Most CPUs pull down more than that, nevermind the rest of the system and the atrociously inefficient power supplies.Instead, I would prefer to discuss how Shame that you did not really understand my post, 20A current breaker has nothing to do with the leakage current has nothing to do with the efficiency of the power supplies of 50 connected PCs. With 50 fluctuating PCs on a circuit at one time, of course the leakage has some play in things, no?
Tell you what, before I try to keep going and continue to mangle an already (apparently) convoluted thought process, why don't you go back and explain how it has nothing to do with the leakage, for those of us just getting our caffeine fix for the day. Hate to be a shame on us when it might just be a shame on forgetting units of conversion.
-
RE: 17-year-old Dead after Tweeting in the Bathtub
@Weng said:
That was my same reaction to the comment, except my peak of connected units is merely 20 (damn you P4s)@Helix said:
This means that with 50-100 or so PC a 25mA RCDs tends to trip randomly.
...Those must be some really tiny computers you're runnin' there. Most I've ever gotten onto one 20A circuit was 50 - without monitors. And that circuit's favorite activity was tripping, because in order to pull that off, each machine had to stay under 50w total draw - which is no small feat even with brand new modern equipment. Most CPUs pull down more than that, nevermind the rest of the system and the atrociously inefficient power supplies.
That and I've seen PC power supplies cheap enough to trip the GFCI protection on one P/S, let alone 20....
-
RE: General Discussion needs a 1000th thread
@bstorer said:
@Lingerance said:
And now the mainpage shows 999 again, so much for my valiant effort... Is Alex playing games with the forums, or is CS just that horribly broken?See the main forum page.
I see that now, but how does that reconcile with this:
-
RE: CommunityServer... RIP!
@Alex Papadimoulis said:
@bstorer said:
I don't see any tags, nor a tag cloud...IdealBB.NET is supposedly pretty nice. It's what Bungie uses. It's not free, though.
The price looks great on this... thoughts on features, etc?
I doubt data migration will be feasible though...
I say fail... ;-)But honestly, Alex, it's your site, we just chew up your bandwidth. You decide. I'm all for starting YaBB.NET (or whatever other name sounds more fitting... WTFbb.NET sounds pretty good, but yabbdotnet seems to roll off the tongue better than whatifbeebeedotnet, and it'ld be kinda funny, but at the very least, it'll quit deleting two characters when we hit back once!!~~!~!!!eleven!111)
-
RE: General Discussion needs a 1000th thread
@morbiuswilters said:
Oh, and this entire thread is pointless, flamebait spam. Heckuva job, drachy...
Thankee :D -
General Discussion needs a 1000th thread
So here you have it. Pardon me while I don my asbestos suit to prepare for the onslaught of the regulars... Yeah, I know, this is a worthless thread, and it hasn't even begun.
-
RE: Anyone have experience with AbleDating.net?
@Rob Baker said:
<sarcasm> I was skeptical upon first reading this post, but once I read that "one little 'speck of dust' can cause the whole system lose it's stability," I'm sold. I see no reason to pass on anything that could crash for absolutely no reason whatsoever.</sarcasm>
I preferred the part where they would address all issues PROVIDED the issue was accompanyied by a Order Number...But I agree, they can account for server deficiencies in code, so long as the deficiency is not another piece of software, and they can use PHP with 650KLOC to serve over 1 terabit of traffic at any one point in time, no problem. Of course, I think that requires a helluav Zend engine, and probably a couple dozen CPUs thrown at the problem...
-
RE: CommunityServer... RIP!
@galgorah said:
@bstorer said:
Don't forget! All responses should be formatted as a mix between DIVs and TABLEs, just for good measure... CSS? Well, we'll use it somewhere...@galgorah said:
Hence why I suggested that it could be a fun project. It would either turn out as amazingly good or absolute fail. I'm not actually sure which.I also like the idea of creating one as a group effort. Would probably be a fun experiment. although It would take a lot of work just to organize, etc. Could be a fun Community project down the road.
Think of all the advantages in designing our own software:- A forum devoted entirely to WTFs in our own piece of software
- All references to XKCD could be automatically replaced with MFD
- Allow post numbers to be optionally have 0-based or 1-based indexes
- Although written in .NET, run it on Mono because M$ is a convicted monopolist
- Instead of appending one's signature to posts, have the signature automatically added as a tag. That's how they get used anyway.
-
RE: CommunityServer... RIP!
@bstorer said:
Well, even the default CS is much better than all the hideous phpBB clones. But a lot of them now are skinnable.
Maybe there was a joke here and it went "Whoosh" but...Forbidden
You don't have permission to access /screenshots/screen_46_1.png on this server.
-
RE: DO NOT click on these links!
@AndyCanfield said:
I like to compare the text of the link with the actual link. I saved this one. The text of the link, which is visible, shows:
Actually, I've seen them with similar but varied names for the actual domain, and the traces show the DNS listed here in the US. I've sent some emails for supporting evidence to some security folks I know.http://update.microsoft.com/microsoftofficeupdate/...
but the actual link (just mouse over the link text to see it in Firefox) points to
http://update.microsoft.com.1llijk.com/microsoftofficeupdate/
which is in the "1llijk.com" domain, very different. But nicely obfuscated.
To the OP, I did exactly the same thing, emailing everyone in our company, and changing the link to point to Google. Granted, I put a hair more at the top, saying DO NOT CLICK THESE LINKS, DELETE THESE EMAILS, ASK IT FOR MORE INFO, etc.
Very impressive wave otherwise, coordinated and wide-spread, with a massive amount of coverage in a very short period of time, based on my conversations with folks.
-
RE: 17-year-old Dead after Tweeting in the Bathtub
@EJ_ said:
Augh, I hate that I feel like I have to help people understand things.
You too? Doesn't it seem like so many people today just don't get it anymore?
-
RE: How to confuse an idiot
@DOA said:
Really can't be bothered to view this. Is it one of those oh so funny jokes where it's suggested that the idiot is you? If so -5 internets for posting ancient jokes that weren't funny to begin with, on the wrong forum.
It's on youtube, does it matter? Speaking of which, the tip-off is that it's not loading anything from youtube when you open the page, so ... Oh, and then there's that whole using noscript bit... -
RE: You are not authorized to view this page -
Using MS SQL and IIS you should just go through and open every box you can find, make sure they read what you want, and say OK to each of those boxes.
Not trying to bash IIS or anything here, but that's got more voodoo mojo than Apache, and it has driven me bonkers on at least four different problems (each of which has presented more than once). I've had it "correct itself" with me opening a dialog, clicking OK, and going back to the browser and hitting refresh. You can't get much more complex than that, can you? To hell with command lines and archaic commands.
Also, have you tried restarting IIS (or the machine for that matter)?
-
RE: Assignment Exception?
No offense taken or presumed, because ...@dtech said:
@drachenstern said:
All I've ever heard or read about languages says that casting two variables with the same name within the same scopeis illegal. For instance, in C, if I try:Actually, yeah, that made a lot of sense, because I didn't think you could do that...
Have you ever programmed in any static and strong typed language? (C, C++, C#, Java for example? There is no reason why you couldn't do that: You just declare a variable with the same type as the return value in the function scope and return that variable somewhere in the function.Whatever was done with it doesn't even matter, since you know that the function returns that type and thanks to the strong typing of the language you are guaranteed that that variable is a valid return value.
Why did you think it couldn't be allowed?
int main(){
int main;
return 0;
}I expect it to puke on the internal declaration. By the same notion, I expect the following to puke because of the second declaration:
int function_whatever() {
int pfX;
pfX = 0;
pfX = function_somethingelse();
int pfX;
pfX = 0;
}However, having said that, I also recognize that scoping has limits, so for instance declaring `for (int itr = 0; itr<MAX_ITR; itr++)` or whatever, the itr is supposed to fall out of scope when the for loop exits (if it does or not is a compiler idiosyncracy, but the spec says it falls out of scope). In that case, one could declare itr repeatedly, although I think we all know that declaring what the loop iterator is for in the variable name makes a lot more sense.
I just didn't realize that one could call a function like so:
public function strFunc (oper1 as Variant, oper2 as Variant) as String
Dim strFunc as String
strFunc = oper1 + oper2
End FunctionI figured it would puke on the dim internally. Something about scope of declarations and valid naming. seems like either the internal value disappears when you leave (because the scope has ended before you do something with it) or else it would cause a compiler error, thus not being acceptable grammar. And because I didn't know it was valid, I figured it couldn't be done.
Granted, I can't see that coding like that would be more or less beneficial in a strongly typed language, so I wouldn't have tried it in the first place. If you've already declared it within the scope, why declare it again and again? In case it didn't get declared?
-
RE: Assignment Exception?
@Aaron said:
Get it now?
Actually, yeah, that made a lot of sense, because I didn't think you could do that... -
RE: Assignment Exception?
@boomzilla said:
@drachenstern said:
you realize the OPs code looked virtually the same, right? Hence my point. If the original function is typed, then why declare a variable inside the function with the same name and type as the function?Exactly, except VB doesn't do what the OP said, which looks like this: (hence my repost)
You realize that the OP's code wasn't VB, right?Function FooBar()
variant FooBar
'code
'code
FooBar = someReturnValue
End Functionpublic string GetRptFileName(string pstrFileName)
{
string GetRptFileName;
return GetRptFileName;
}Hell, I would expect a compiler to burp on that one, even if it is legal (which I doubt). As to
@Ilya Ehrenburg said:
But if you wanted to write a sloppy converter, wouldn't the natural thing to do be replacing
No, I wouldn't expect to see that, because it's just too farfetched to see the interpreter grab the function type and recast the function name as the type within the function. And again, I doubt that's legal language construction according to a grammar, even if it is compilable. Which just goes to show, I don't write compilers. That and the OP code was C#, and I've never written C# code like that...Function FooBar() As Thing
With
Thing FooBar()
{
Thing FooBar;and
End Function
with
return FooBar;
}so you needn't worry about the assignments in the function body? It would even work on your simple test cases.
I would expect to see "End Function" replaced with "}", because not all functions will return a value. Or are you assuming the interpreter (which is already abhorrently designed enough that it does the first thing) will not account for the second set of behaviours? Granted, it probably would/could/does, but we don't know that, and I'm assuming a lazy interpreter (as you pointed out) so the laziest thing to do is what you described, but not the best way to write a converter.
-
RE: Assignment Exception?
@dhromed said:
Exactly, except VB doesn't do what the OP said, which looks like this: (hence my repost)@drachenstern said:
Why make a rule to declare a variable internally that mimics the type and name of the function?
Because that's how VB syntax expresses returns.
Function FooBar()
'code
'code
'code
FooBar = someReturnValue
End FunctionFunction FooBar()
variant FooBar
'code
'code
FooBar = someReturnValue
End Function
-
RE: Assignment Exception?
@boomzilla said:
That's why he said it was a sloppy conversion, possibly automated, which seems like a reasonable guess to me. I'm confused why you asked this.
Because it didn't seem like what he meant to me when I read it (lack of coffee?) and it still doesn't seem like something a converter would do. Why make a rule to declare a variable internally that mimics the type and name of the function?Or did I miss something huge in VB6(and lower)?
-
RE: Assignment Exception?
@Aaron said:
@PSWorx said:
<font face="arial,helvetica,sans-serif">That's funny, I figured you meant this:</font>@Aaron said:
Yes, that's why I thought it might be a sloppy conversion from VB.The way it uses a local variable with a name identical to the function name[...]
I may be wrong, but isn't that just VB's equivalent of a <font face="Lucida Console" size="2">return</font> statement?public string GetRptFileName(string pstrFileName)
{
string GetRptFileName;
//lots of code
return GetRptFileName;
}<font face="arial,helvetica,sans-serif">Which I've never done in VB, since VB would look like this:</font>
public function GetRptFileName(String pstrFileName) as String
<font face="arial,helvetica,sans-serif">and C# has also already declared the function name as a string, so I'm confused why you have to declare the String in the body?</font>
-
RE: Representative comment
Wow, I think I can count at least four things wrong with that one comment. Now, I guess that that comment is in the middle of a global data header file, as opposed to being in the planning documentation?
-
RE: Assignment Exception?
@jasmine2501 said:
Bonus WTF: It works on the vendor's machine!
Actually that's called SOP. If it didn't work on theirs either I might call wtfery, but then again, that too would be practically SOP. -
RE: Comcast Support: The WTFery.
@operagost said:
@drachenstern said:
No but really ...But in all seriousness,
http://www.theonion.com/content/node/28694Humorous link, thankee!
-
RE: I fucking hate macro hell!
@Kermos said:
@drachenstern said:
Well, for starters, I don't know anything about the hardware you're talking about, but as for function calls, if it's an inline function, I thought those got treated pretty much like macros by most compilers. I thought that was the whole point to an "inline" in the first place. So no overhead.What's it being compiled wit, for, and against? Seems like the macro hell, as bad as it is, might be necessary for really tiny code. Granted, I've never seen a situation where code like the posted didn't deserve it's own function, but there "could" be a reason.
It's initialization code! It's called once! At startup! Any and all function call overhead would be completely irrelevant. I mean the thing has got 32kb of flash memory for crying out loud. You really don't need to save an instruction or two in initialization code.
The entire codebase is a clusterfuck though. Spread out over several .c and .h files all in different directories. Line by line it is a search through file after file to put the puzzle together what the hell it actually does. It's like every line calls or uses something defined in a different file.
Next, I would say that "I" would think that it would just be in the manual "Make the first four lines of your code this... for initialization, or it's going to melt in your hands..." Seems like that would be saner at any point...
-
RE: Now this is surely illegal
@belgariontheking said:
I have a better solution: Don't apply for a job in Bozeman, Montana. As a matter of fact, just avoid the entire state altogether.
Or join their militia and prepare for 2012...