« first day (958 days earlier)      last day (3990 days later) » 

8:01 PM
whoa, dude. The official language of Stack Exchange is English, not Jive or Ebonics.
 
Speaking a language other than english while in uniform in the military is illegal and you can be arrested.
 
Really?
 
yep
 
my butthole is hurting from this.
 
8:02 PM
what if you say 'Rendezvous' but mean it in french
 
cheating on your spouse is illegal in the military and you can be charged
 
@user1580598 Did you add the event handler?
 
I'm trying to
but the entire private void InitializeComponent() is missing in Form1.Designer.cs
like was I drunk?
 
Getting a sunburn in the military is considered destruction of government property and you can be charged
 
lol
 
8:04 PM
(probably wont ever be charged for that, but you CAN be)
 
cut yourself shaving - charged with vandalism
 
@user1580598 Dude, you shouldn't be editing it anyway.
You should use the designer.
 
lol quite possible
 
I did...but I have no idea why it's completely gone
 
@Steve I seriously hope that's kidding.
 
8:04 PM
i guess explaining how to do it indesigner will be a waste of time
 
explosive diarrhea? charged.
 
@user1580598 CTRL+Z! CTRL+Z!!!
 
just add a constructor and use this.Load += Form_Load;
 
In the marines you are not allowed to walk and eat, walk and drink, or walk and talk on a cell phone, you have to stop
 
8:05 PM
hah
 
@KendallFrey nope, not at all
 
it was from about 5 months ago
 
@VytautasMackonis nope, not at all
 
can you stop, chew, swallow, then jog and catch up?
 
lol yep
 
8:05 PM
I'm going to start from scratch again
 
You are also not allowed to put your hands in your pockets while in uniform, even if its 20 degrees out (F)
 
I am never joining the military.
 
Or wear your winter hat in the winter... (its called a beanie) during daylight, only if its dark out
 
it
is called
a toque
 
8:07 PM
eh?
 
if you mean some standard issue army winter hat then fine
 
A toque ( or ) is a type of hat with a narrow brim or no brim at all. They were popular from the 13th to the 16th century in Europe, especially France. Now, it is primarily known as the traditional headgear for professional cooks. Etymology The word Toque is Arabic "طوق" for "Round" and "طاقية" "Taqia" for "Hat" originally for something "Round" that has an opening. The word has been known in English since 1505. It came through the Medieval French toque (15th century), presumably by the way of the Spanish toca "woman's headdress", from Arabic *taqaطاقة' 'Opening'. Culinary use A t...
 
but americans call toques beanies or winter hats
which is just plain incorrect
 
no, marine beanies, just brown winter hats with no ball on it
in the marines we call tennis shoes "go fasters", the wall is a "bulk head", pens are "ink sticks"
 
f-ing murcans
 
8:08 PM
In North American usage, a beanie or skully is a head-hugging brimless cap with or without a visor. In the United States, beanies are made from triangular sections of cloth joined by a button at the crown, and seamed together around the sides. They can also be made from leather or silk panels. In other English-speaking countries, a "beanie" is a knitted cap (often woollen), known in the United States as a "stocking cap" and in Canada as a "tuque". Styles One popular style of the beanie during the early half of the twentieth century was a kind of skullcap made of four or six felt pane...
 
the floor is the deck
lol
 
Are we talking about TF2 now?
 
jquery.validate.unobtrusive.js has this beast of a one liner at the end of its code:
$(function () {
        $jQval.unobtrusive.parse(document);
});
it is literally destroying my page load.
huge wtf moment
 
Do you mean Tuque?
 
@Steve Ink's what?
 
8:09 PM
A knit cap, originally of wool, though now often of synthetic fibers, is designed to provide warmth in cold weather. Many variants exist, with many names, such as bobcap (British English), and stocking cap (American English). In much of the English-speaking world, the term beanie has come to mean a knit cap as well, but North American usage often describes a completely different seamed cap design that is not knitted at all. In Canada, the knit cap is also known as a tuque (English: ; also spelled touque or toque), a word closely related to the French word toque, originally referrin...
 
ink stick, its the official name for "Pen" or "ink pen" in the marines
 
joke failed. abort abort.
Oh, crap, here comes an abortion joke.
 
15 minutes early is on time. On time is late. So when the COmmanding Officer says be outside at 5am, the First Sergeant tells the gunny to have everybody outside at 4:45, the gunny tells the platoon sergeants to have us out there at 4:30, the platoon sergeants tell the squad leaders to have us out there at 4:15, the squad leaders tell the team leaders to be out there at 4:00, the team leaders tell the low guys to be out there at 3:45, the lower guys have to be 15 minutes early...
so they go out there at 3:30, all so we can stand around until 5:00
welcome to the military gents
lmao
 
More reasons to get promoted or join the Air Force.
 
air force is definitely the way to go
 
8:13 PM
Air Force is the military for engineers.
 
or be an officer, that way you don't have to wake up until 9am
 
(excusing the garbage that is the Army Corps of Engineers)
 
@ShotgunNinja lmao, my bro is in the army corps of engineers
 
@Steve Oh yeah? What's his degree in?
 
masters in bio
he uses his fake military ID to get veterans benefits like free food on veterans and memorial day, it pisses me off
 
8:14 PM
@Steve lol, couldn't find a job elsewhere?
 
@ShotgunNinja government jobs are awesome man, you get stuff like the thrift savings plan, and its hard as hell to get fired
 
My roommate's a Biomedical Engineer. He's working for a Jewish telemarketing group.
 
the only thing that sucks is the furlough's lmao (not sure if i spelled that right)
 
@Steve No doubt, dude. My uncle was an electrical engineer for the government, did factory installations for early mainframe computers.
 
Yes, you spelled lmao right
 
8:16 PM
In the United States, a furlough (; from Dutch: "verlof") is a temporary unpaid leave of some employees due to special needs of a company, which may be due to economic conditions at the specific employer or in the economy as a whole. These involuntary furloughs may be short or long term, and many of those affected may seek other temporary employment during that time. Federal government In the United States, involuntary furloughs concerning federal government employees may be of a sudden and immediate nature. Such was the case in February 2010, when a single Senate objection prevented ...
 
@KendallFrey whew, thanks for the backup, that was a hard akroonimn
 
#gotem
@Steve You mean abreviateion?
;3
 
No, it's an ackronim
 
@ShotgunNinja no akroonimn
 
Oh right
 
8:17 PM
lmao
i should have left work 3 minutes ago, what the hell am i still doing talking to you
kbye
 
@Steve adios
jerk
 
you should have left 15 minutes ago to be on time
 
But now you're late.
 
No, he's on time for 4:30
 
Because time works in 15 minute intervals.
 
8:21 PM
Or, rather, would have been
 
Hi Dale

Would like to c u I think it might b too much out of ur way to come to Austin So maybe we could meet somewhere in between Wimberley and Austin or maybe I could drive over to Wimberley on Saturday

Let me know

Rick

Sent from my iPhone
is that a booty calll?
 
What the hell.
 
people need to get their email addresses right
 
Is Dale a male or female?
 
apparently its me
 
8:25 PM
oh shit, wrong number text?
 
the halfway point between wimberly and austin is 'Dripping Springs'
 
Whenever you get a wrong number call, save the number and call back later.
If only I had call display.
 
@drch shudder
Dripping Springs sounds like the name of a town in a porno.
 
s/a town in//
 
@ShotgunNinja hence the booty call
 
8:27 PM
I think I saw an 8 tonight, damn.
 
a swedish 8 is like a 12.5
 
it was pretty intense
 
The lump in your pants?
 
@TravisJ Source on meta?
 
Oh yeah
is there a way to use an image from a website in PictureBox?
like the url?
because I don't play that bitmap shit
 
8:35 PM
I doubt it, but maybe.
 
How about avoiding the compression to bitmap?
 
The what
 
I've tried putting images in the resources, but they are recompressed to bitmap.
 
recompressed?
 
so the image quality is shit on
 
8:39 PM
What kind of images?
 
yeah, from png to bitmap, even though recompressed isn't a word
but doing it as a bitmap or jpeg doesn't help either.
so I was like "Yeah, let me just put the images on a website so they wont be compressed!"
 
converting from png to bmp is decompression, and it keeps the original quality
 
:x not on my end
it changes majority of the colors
 
I don't know what you're doing, but it probably involves jpg
 
I've tried both :'[
 
8:41 PM
@KendallFrey It wasn't like that, more peaceful and pure, then she smiled and I went home.
 
both what?
 
well all three
jpeg, png and bitmap
I've tried including all of those in the resources
 
Tried what with them?
 
@Johan - There is a slight bug in the code, not sure what is causing it.
 
If you import a PNG into resources, you should get a lossless png in resources
 
8:42 PM
guys... a quick questions..
 
:'[ that's not happening for me
I quit Visual Studio
 
is destructors in c# a good place to unregister events?
 
like this.Event -= blah blah..
 
Don't use destructors
 
8:43 PM
because in the constructor I added a handler to a static Event.. where do I remove that handle?
the close event?
 
What kind of event are you thinking of?
 
oh man
 
You're handling a static event in an instance?
 
yes.. this is a logoff event...
it is easier this way.. I know it is not the best..
 
Ignoring the fact that sounds like horrible design.
 
8:44 PM
every form or class has something to do when user logged off...
I know it is horrible.. but it is there..
 
You should have some sort of Close method to deregister the event
 
implement IDisposable
and put it in dispose
 
form already implements it...
 
IDisposable is for unmanaged resources
 
8:46 PM
no
 
my thought that it is much easier to use a weak event pattern to fix this
 
destructor is for unmanaged resources
idisposable is for managed
 
yes dude
 
what is a weak event pattern @VytautasMackonis
 
8:46 PM
I quote MSDN. The Dispose method is for:
> Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 
in essence this means you dont have to explicitly deregister event handlers
 
The destructor should only be used for making sure IDisposable has been called.
 
and avoid memory leaks
 
How long have you guys been into programming? :x
 
wrong wrong wrong
 
8:48 PM
To put it simply, your design is so bad right now, there is no good way to solve the problem.
@user1580598 About 5 years
 
what is your major?
 
A high school diploma
I'm only 18
 
I've never made destructors, only IDisposables. What's a use case for destructors?
 
:x where did you learn to program?
 
@user1580598 In my parents' basement (literally)
 
8:49 PM
So, @KendallFrey all forms must react to a logoff.. the easiest way was to make a static logoff event and then refister all concerned forms.. what is a good design would look like?
 
:x hm
I'm currently going to college, but you guys outclass me so badly
I only need 10 classes to graduate and I feel like I don't know as much as I should.
 
@KendallFrey: the point is thats MUST release unmanaged resources there because the GC can't release them on its own
 
I am not a programmer... I did not get classes or anything.. I am something totally else! but I learned it to help me at work...
 
@MikeF Typically, destructors call Dispose. Dispose should call some method that prevents the destructor from running (i forget the name), so the end result is, if you have not called Dispose manually when the object is about to be collected, it will get disposed.
@drch Right, that's what Dispose does.
@HaLaBi Everything you mentioned is bad design. Even the fact that every form must react to a log off
 
the reaction is simple... close the form... or in some cases.. disable few buttons..
 
8:52 PM
@MikeF IDisposable + unmanaged resource + destructor correct implementation: msdn.microsoft.com/en-us/library/ms244737(v=vs.80).aspx
3
 
reacting to logoff is usually not a design, but a requirement
 
if a user logged off... I can't keep the forms open.. whats the point of logging off then..
 
design problem has to do with the code being in the form itself
 
actually the code here is better documented: msdn.microsoft.com/en-us/library/…
 
@HaLaBi In our system, the user cannot log off until he closes all his open windows.
@drch Star, because everyone that implements IDisposable should know.
 
8:54 PM
@KendallFrey that is nice.. but not the only way..
 
also you should implement disposable if you contain any resources that are IDisposable
 
why would you impose such a restriction on the user? imagine you have 7 windows open, thats 7 clicks before you log off :)
a not-so-good user experience
 
So the user doesn't lose any information, I guess
 
you can avoid this by using a single confirmation
 
8:55 PM
the forms I am talking about are inquiry forms.. not data to be lost..
 
I hate how Sql Management Studio always asks "do you want to save this 1-line throwaway SQL snippet?" on windows logoff
 
@VytautasMackonis and then loop through open forms and close them?
 
well i'd personally do that using a mediator pattern that employs weak references
 
So I added a scheduled task triggered by the logoff event that runs taskkill /F /IM ssms.exe
 
but that is a big change for you
 
8:57 PM
@MikeF would you like to recover these 100 ~temp.sql files?
 
@drch mwahaha
 
theoretically you could keep a list of forms somewhere globally but this would mean you have to clean this list after close to prevent memory leaks
 
mike i like the cut of your jib
 
@VytautasMackonis I thought of that.. but the problem is I don't have only forms subscribed to the static event.. I have some other classes..
 
SAY 'WHAT?` AGAIN, SMSS.EXE
I DARE YOU
 
9:00 PM
easiest escape out of this would be to keep using the static event but change to weak event pattern
then you dont have to unsubscribe at all
 
i will give it a look
 
but yes, such global use of the event just invites spaghetti code
 
but if i want to subscribe... is unsubscribing in the close event will do?
 
Eh, it will be fine
 
generally, yes
 
9:01 PM
Once you have bad code, it's not worth trying anymore.
 
cant think of a situation when it is wrong
 
@VytautasMackonis well.. it is already spaghetti with sauces and all... i am not a prof. programmer...
 
Have you heard of lasagna code? It's like spaghetti code, but with lots of layers.
 
anti patterns should be called spaghetti sauce
 
you can be positive, and make a new pattern, lets call it spaghetti pattern. It will be added in the new edition of GoF's book...
 
9:05 PM
Baklava code is also used to describe code with lots of thin layers
 
matryoshka code is the worst
 
are those the onion dolls?
 
oh man thats a good explanation of the code im working on
theres an api controller -> service -> repository -> dal -> another dal -> entity framework -> stored proc .tt template -> stored proc -> database
and their team doesn't know the difference between a service and a repository so sometimes you get viewmodels and sometimes you get database records
 
9:08 PM
...and the green grass grew all around and around and the green grass grew all around
 
@TravisJ children ~6 find them interesting ime.
 
haha mike
 
a good layered code is very nice to work with
 
@VytautasMackonis Yeah, except when you want to trace a path of execution through the system...
It violates the KISS law.
 
write unit tests!
then you wont need to trace
 
9:15 PM
Unit tests don't test integration issues!
 
integration / end to end
 
i fucking hate the tendency of people make a zillion class libraries for each projecct
 
For the umpteen millionth time, you need unit tests, integration tests, and acceptance tests.
iff you want a full test suite.
 
actually
so whats the story on acceptance tests
 
Have users use the software, see if they don't hate it.
 
9:16 PM
dont they test the system end to end?
we had this big debate at one of the places i was working at
 
Acceptance tests are also called "hallway tests"
 
they were adding BDD on top of everything else
im a huge fan of unit tests but felt like we had huge duplication with these acceptance tests
is BDD a replacement or an addition to unit testing
i really have disliked specflow but i think thats mostly cause i havent worked at a place where they understood the process
 
I played with specflow briefly a while ago
I think it's clever, but I can't see myself actually being able to use it comprehensively
I've heard people make the statement that the tool isn't the point; its purpose is to get you to talk about behaviour
If you've had the discussion required to be able to write step definitions, you don't need to actually write them; you've already done the hard part
 
in theory
in practice it was a bitch
and it can be really hard to sort out when something fails as opposed to a arrange/act/asssert all in one tight little package
 
then again, I struggle to use basic unit tests comprehensively
there's always some bitch of a class that's like, "How the hell do I test this?"
 
9:25 PM
@TomW Mock objects!
 
means the design is not good
 
@VytautasMackonis exactly.
 
True on both counts
 
ideally tests should be 3-4 liners
 
^^ hahahahahahahahahhahahahahahahahhaha
 
9:26 PM
Oh, has anyone done mutation testing?
 
<cough cough> hahahahahahahahahahahahhaha
3-4 line tests?!@?!
 
@RyanTernier well yeah, duh
 
about 70% of my unit tests are 3-4 lines
 
Each test should be extremely simple in its design.
Do one thing.
Did it work? Okay.
 
9:27 PM
Oh, that's funny. I wish it was that simple.
 
@RyanTernier sigh me too.
 
every XML message that gets sent to our servers is over 400 lines long
 
Pretty soon, my company is going to start integrating Selenium web testing into our process.
 
I'm counting a theoretical minimum of 4 lines here
 
i have about 500 tests in my system. Unit and System tests
 
9:28 PM
instantiate the mock - unlikely to be just one of them
 
some system tests get up into (including functions) 5000 lines
 
@TomW 1 line for act, 1 line for assert
 
@RyanTernier Is your application heavy on long sequences of commands?
 
perform at least one setup on the mock
instantiate the SUT
perform at least one assertion
 
setup can be massive
 
9:29 PM
then if you use AutoFixture with xUnit theories you get 2 lines for mock setup
 
I remember having to write unit and system tests for an avionics test verification program. That was an absolute bitch.
 
the other objects are just created by AF
 
@ShotgunNinja Looooooong sequence. 1 "update" person will do 15 "gets" against a database, 10 inserts, interact with 5 mainframes, couple billing systems, then start 5 asynchronous procceses against other vendor machines, wait for the response then finish...
in under 3 seconds
 
@RyanTernier this is not a unit test
 
@RyanTernier not a 'unit'
 
9:30 PM
@RyanTernier so, kind of like the avionics verification system I worked on, but more complicated in a business sense.
 
That's a system test
Healthcare.
 
hello there..does anyone there know how to identify signature in an email body..
in short boilerplates
 
Some of my "unit tests" for the avionics project ended up being massive, because you had to get an internal state machine of the software to a particular state before you could trigger the behavior under test, and it had to be black-box testable, meaning you had to replicate it without an in-software unit test setup.
 
yeah, setups can be big. ideally your act and assert is very short though
 
All of our unit tests were system tests, when it came to tool qualification testing.
 
9:33 PM
I have found that sometimes the answer to 'this class is difficult to test' is 'the design sucks, change it'
well, I haven't got time.
 
There were almost a megabyte of input files to our system just to test and see if one floating-point value was greater than or "equal" to (within tolerance) another floating-point value.
 
does anyone there know how to identify signature in an email body..
in short boilerplates
 
One stupid toleranced comparison.
 
I refuse to write basically a whole application inside a unit test just to supply a self-consistent state to the SUT
 
In software engineering, don't repeat yourself (DRY) is a principle of software development aimed at reducing repetition of information of all kinds, especially useful in multi-tier architectures. The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." The principle has been formulated by Andy Hunt and Dave Thomas in their book The Pragmatic Programmer. They apply it quite broadly to include "database schemas, test plans, the build system, even documentation." When the DRY principle is applied successfully, a...
}:3
 
9:34 PM
@user1051536 signatures are not well defined
 
@VytautasMackonis My system is not tightly coupled, however it requires a lot of everything to do 1 action. Everything is audited against multiple databases, a single "select" against a database needs to be verified and validated, then audited that you selected data, who you selected, etc. So a simple unit test like "GetUser(1234)" would require 300+ lines of setup and massive confuguration files.
 
@RyanTernier and this is why I'm in web application development now.
 
lazy ass!
 
which means that getUser has too many responsibilities
 
not really
 
9:35 PM
but is there any way to extract signature
 
search for the senders name and back up a line
other than that, not really
 
Gota run to ameeting, but I know there's better ways to do this system. I got here 2 years ago, was written 10 years ago :(
 
theres no real way to tell the difference programmatically between the email body and a signature
 
if you are auditing in the same method as well as getting the user, the method is doing too much
 
ok..any idea about boilerpaltes
*boilerplates
 
9:37 PM
@user1051536 if you want an answer in here you'd better ask a clearer question. And if it's non-trivial, put it on StackOverflow. This isn't the place for asking questions that aren't one-liners
 
this chat has been really good lately
 
unless its a predictable boilerplate/signature within your own network, there's not really any way to tell
its all just included as the body of the email
 
@Tom W who said questions cannot be one liner..i like the was @drch ans
 
you may find patterns within your organization, but if you are looking for a catch all, there's nothing really to search on.
gmail i think looks for repeated text in a single email chain and will collapse that
but google engineers are much smarter than me
 
@drch thanks for the supportive ans
 
9:46 PM
np
 
does anyone know if its legal to have multiple copy's of windows 8 installed on the same machine?
 
you mean you didnt read the EULA!?!?
you just scrolled to the bottom and clicked i accept?
 
lol, yes i know... but i dont think theres any chance of me becoming a human centipad from microsoft :P
 
technically no
but who cares
 
is that a no to the multi install or a no to the centipad?
 
9:54 PM
mutli
 
I should set up dual Win 7 on my bitcoin mining machine. Bitcoin and litecoin keep switching in terms of better profitability, and they each work better with different AMD driver versions.
 
are you doing it on a VM or a separate partition?
and is this a work question or a personal question? cause really, just do it
or pirate the second version
 
or roll your own?
 
your own os?
 
9:55 PM
klinux
then sneezy os
 
ones vm and the other would be a multiboot with my primary os win 7. its partially for work and partially cos i have a win 8 phone and i cant do anything with it dev wise without win 8
 
so you wouldnt be running the same win 8 at the same time?
 
no
 
then you should be fine
youre allowed to transfer your install to another computer
 
Anyone ever try to make tabular design work with spans instead of tds where it still all lined up?
This is what I am working on today
 
9:58 PM
thanks :)
 

« first day (958 days earlier)      last day (3990 days later) »