« first day (1519 days earlier)      last day (3655 days later) » 

haha
forgot to star it
00:45
Even at our holiday party, it’s all about the users who give so much of their time and knowledge. http://t.co/tl83Y89XhM
 
3 hours later…
03:44
stupid question time: is there a way to use the auto properties get; and set; but override set to do something like " set { base.set; FireEventAlso(); }
04:32
wow nevermind, i found something so much easier for what i'm trying to accomplish (INotifyPropertyChanged stuff for my ViewModels): github.com/Fody/PropertyChanged/blob/master/README.md
 
2 hours later…
06:03
@Sub1ime you could add {Binding PropA,
UpdateSourceTrigger=PropertyChanged} and have nothing in the code behind
user2620028
c code here, anyone know why my switch syntax is wrong? ideone.com/kz7HOM
Let me have a look at it @HatterisMad
@HatterisMad I understand that opcode is a character but can I see the whole function
Sometimes the compiler does not give you useful errors in terms of directing you to where the actual error is
user2620028
sure, but it is c code and also the methods are not self contained at all
So we nee to go a couple of lines upward
user2620028
06:16
In C, we have no methods btw. C is a procedural and structured - not object-oriented programming language. @HatterisMad this has happened before a million times. What is the function definition
ook
You have more problems
user2620028
its actually rather funny, i am expanding one homework assignment into another. And the switch is copied from one of my homework assignment, into the base starting point for the next homework assignment
user2620028
the only other thing i have added to this is the
read(loadersocket, &memory, sizeof(memory));
Why are you writing in predated C - the C that Dennis Ritchie used before C was standardised
user2620028
this is the second of two homework assignments that are written in "c" for a class that is not a programming class and has no programming instructions
user2620028
all of this code has been provided by my instructor except for the one line i attempted to write
user2620028
06:20
I work with java, javascript, c# typically lol
When was the last time you worked with C? In the early '80's?
user2620028
me? hahaha i have never worked with c before this.
user2620028
I have literally only ever written like 3 lines of c code, for the previous homework assignment :/
Learn some C before you handle another task of programming. It is really simple. But anyway, I have a question regarding the statement:
while (elements_read) {...
Do you have a symbolic constant defining TRUE?
Like a macro or something
user2620028
just above it is a declaration defining true
user2620028
06:25
uhhhh
Nothing defines TRUE in the code you posted
user2620028
in the original code
Something like
#define TRUE {something here}
You know C99 supports Boolean values
user2620028
int elements_read;

elements_read = TRUE;
No
That is not defining TRUE
user2620028
06:26
:/ lol
user2620028
#define TRUE 1
That is defining assigning elements_read to some arbitrary TRUE that is undefined
And did you include the header file that has that macro?
I don't think you did
user2620028
i do not have all of the same includes in both files :/
Which compiler are you using? Is it your choice or your professor's?
user2620028
professors
user2620028
06:28
gcc
GCC supports C99 fully
With due respect to his mastery, he has not read anything to do with C89 moving onwards
user2620028
To be fair, i have never spoke to him, seen a lecture, or even seen his response to my homework
user2620028
Zero interaction with him at all.
If this is from a textbook, when was the textbook published
and gosh
The identifiers are just horrible
int readinstructionsandwritetosocket(int loadersocket, int printersocket)
user2620028
06:31
First thing I would do
That is the standard text but which edition are you using? I hope not the one Linus Torvalds used
user2620028
the 4th edition lol
user2620028
inetcpuserver.c: In function `readinstructionsandwritetosocket':
inetcpuserver.c:153: error: `opcode_ok' undeclared (first use in this function)
inetcpuserver.c:153: error: (Each undeclared identifier is reported only once
inetcpuserver.c:153: error: for each function it appears in.)
inetcpuserver.c:170: error: `bad_instruction' undeclared (first use in this function)
inetcpuserver.c:170: error: `FALSE' undeclared (first use in this function)
inetcpuserver.c:171: error: `end_of_job' undeclared (first use in this function)
Anyway let us ignore the age of this and be more pragmatic
TRUE and FALSE are not defined
user2620028
are you shitting me? lol
At the top of the file add this
user2620028
06:34
uhhhh
user2620028
actually i dont have the variables that are missing in that error code
#define TRUE 1
#define FALSE 0
user2620028
is my first problem lol
user2620028
I have #define TRUE 1
:-|
In that same file?
user2620028
06:35
yeah
Also did you include the headers that declare and the source that defines memory_type?
I wish I was working with you in person
user2620028
to be honest i haven't had a chance to even decipher what the hell the rest of the files have in them
user2620028
here i will post this whole file in ideone lol
user2620028
user2620028
i see absolutely no need for opcode_ok
user2620028
06:37
it doesn't ever get used for anything
user2620028
in fact
user2620028
the entire switch statement appears useless in this case
user2620028
LOL
user2620028
** The following code was written by Steven Grimm ([email protected])
** on 11-26-87
user2620028
06:45
yeah lol
Prior to The C Programming Language 2nd Edition
user2620028
good call on 80's lol
user2620028
fuck my parents just graduated high school hahahaha
That was before C was standardised
That is arcane
Why is it not updated
user2620028
because this is college? We pay money to get a piece of paper that says we learned something that we didn't
user2620028
06:47
professor makes money, college makes money, student gets fucked in workplace. Everyone is happy
hockey, eh
user2620028
lol what kendall?
just got home from hockey
user2620028
participating or watching
participating
user2620028
06:49
practice or a game?
user2620028
did you guys win
user2620028
good shit man, still have all your teeth?
it's basically pickup hockey, but lots of fun
@HatterisMad I wear a cage
06:50
@KendallFrey congrats. Check out the prehistoric C code that @HatterisMad has to write for class
And it is convoluted as well
"has to write prehistoric code"?
user2620028
@kendall and i wear a helmet whenever i race, i still have tons of teeth messed up :P
prehistoric in the sense that it predates the first C standard
int readable();
I thought I knew C. The hell?
Hahahaha
The code looks like a poor version of the code I saw in a museum once
Also, TRUE and FALSE are defined (no Boolean data type assumed here) but still the compiler throws the error
06:52
wait, is it declaring a function in a function? jeebus
ahaha, return(value)
@KendallFrey this code is from Mr Tabua*'s book
And it is from 1987 back when Michael Jackson was still Bad
user2620028
oooo love that mj
user2620028
i just skimmed through the book
user2620028
there is no code included in this book at all
user2620028
06:56
To be honest i don't really know what to do. I do not know c. I certainly do not know prehistoric c.
So I withdraw my remarks regarding the book
user2620028
And we are programming a client - server - client
"normal" C isn't too hard to learn
and it's useful to know
@HatterisMad you have no excuse to not know C. It is generally assumed you know it
@MoonOwlPrince Not in the rest of the world
06:57
C is simpler than Java and C#
user2620028
:P my excuse is time moon, not desire
user2620028
I will have a lot more time soon as my last day at my job is next friday
@KendallFrey I used to think that everyone knew C because I grew up being told that but now it seems my childhood was a lie
user2620028
i plan on learning a lot of things and honing my javascript to a fine point.
@MoonOwlPrince A lot of things you were told are not true
user2620028
06:58
because right now its like trying to stab with the flat part of a mallet
Learning C in your case will take a week at most
You just have to remember we have no methods
user2620028
no objects, functions, methods?
We have no classes
We have functions
No methods
user2620028
what about properties, primitives
C is very simple
user2620028
06:59
lol jesus
C has basically structs and functions
@KendallFrey help me list what C does not have
user2620028
back to BASIC lol
Also, C has goto
structs are the simplest form of object
07:00
Yeah
user2620028
good old goto
C has for, while and NO foreach
user2620028
for another class this semester i was programming in binary and pep/8
Consider allocating arrays on the heap rather than on the stack
user2620028
so that would be a welcomed alternative lmfao
07:01
@HatterisMad good exercise
In C, macros are your friend
user2620028
Yeah it was definitely good to learn. Although solving binary recursion problems were somewhat a bitch
Also, pointer arithmetic is your friend
Implementing hashtables in C is good fun
user2620028
hahaha to be honest that kind of does sound like fun
user2620028
Undefined                       first referenced
 symbol                             in file
bind                                /var/tmp//cc66Eq76.o
accept                              /var/tmp//cc66Eq76.o
listen                              /var/tmp//cc66Eq76.o
gethostbyname                       /var/tmp//cc66Eq76.o
socket                              /var/tmp//cc66Eq76.o
ld: fatal: Symbol referencing errors. No output written to a.out
user2620028
To be honest i don't have a clue what the hell this error is trying to say
07:02
@HatterisMad C, unlike Java, like JavaScript, assumes you are a good programmer and does not insult your intelligence
user2620028
i have an undefined variable somewhere?
user2620028
yeah java is easy as sin
C stands for Control
I always think in C
You will learn why for strings this is dumb:
s == r
Unless s and r are pointing to the same object in memory
user2620028
yeah i already know it is comparing to see if the references are the same not the values
Great!
You will also know why arrays are so simple
user2620028
07:05
i have a pretty solid understanding of fundamental computer concepts
@HatterisMad good so you should spend a day on C
user2620028
just trying to work through someone elses code in a compiler and language i am not experienced with is a little daunting
Uhm only do that in JavaScript
user2620028
lol i can find my way around pretty well in JS, I may not come to the prettiest or most optimal solution (yet) but i rarely say wow i don't know whats going on
@HatterisMad My guess is your includes aren't working as they should be. Those variables are probably supposed to be defined in headers
07:06
@KendallFrey what I thought as well
user2620028
I think my compiler just decided to shit bricks on me
No GCC is good
Your code is wrong
user2620028
gcc -o inetcpuserver.c inetcpuserver.out
user2620028
that is incorrect syntax?
uh, nope
er, yes, it is
-o is your output file
switch your filenames
07:08
I prefer
yes
It is clearer
GCC is what is used to compile Linux
user2620028
so
gcc -o inetcpuserver.out inetcpuserver.c
@HatterisMad Do you know what a makefile is?
Because they are totally awesomely cool and useful
@HatterisMad looks about right
user2620028
more or less all i know about them is that they link your files together :/
They save you a lot keylogging
@HatterisMad not really
user2620028
07:10
and that it doesn't exist in gopher? lol
it specifies the build steps needed to build any specific part of your project
so, make inetcpuserver.out would automatically build everything needed for that
and just make would ideally build everything
user2620028
[asici2@~/inetloadercpuprinter]$ gcc inetcpuserver.c
Undefined                       first referenced
 symbol                             in file
bind                                /var/tmp//ccYcjeAy.o
accept                              /var/tmp//ccYcjeAy.o
listen                              /var/tmp//ccYcjeAy.o
gethostbyname                       /var/tmp//ccYcjeAy.o
socket                              /var/tmp//ccYcjeAy.o
ld: fatal: Symbol referencing errors. No output written to a.out
user2620028
that is the original file
(this is all standard makefile style, not required)
user2620028
with no changes made to it
07:14
Try gcc -E inetcpuserver.c
that should resolve all your includes, then you can see the merged code in its entirety
If it's really long, then it's probably not worth it
user2620028
probably only 500 lines or so
user2620028
lol SunOS 5.10 Generic January 2005
user2620028
Is the greeting message from the server when i ssh in
user2620028
what does the -e flag do
you mean -E
user2620028
07:19
yes i do
It runs only the preprocessor
user2620028
well i suppose it is time to delete the project and start over hahaha
user2620028
Ok i definitely do not think it is the files
user2620028
I just took the starting project from the professor again and am receiving the same compilation error
Were you instructed to use GCC?
user2620028
07:27
no choice
user2620028
this is all on the school remote server
user2620028
there is a file in this directory that is called gcccompile
user2620028
and its entire contents are
gcc -L/usr/ucblib -lsocket -lnsl $1.c -o $1.out
presumably that's a shell script. I'm not sure exactly how to use them, but try gcccompile inetcpuserver
Is it just me or do you also think that CSS's design is flawed?
But aren't they just basically frameworks that hack their way around CSS to allow you to do things that you should be able to do by default anyway?
Why don't they improve on CSS? It seems to evolve much less than HTML
08:37
CSS is beautiful
People just need to think like CSS architects
I am actually the type who likes pure CSS, and pure JavaScript. There's no need for your filthy attitude. CSS has its issues and for you to ignore them then you're basically a bad programmer. Things need to evolve. Shit needs to improve.
By the way, today Bjarne Stroustrup answered an unasked but pondered question of mine today: What does else-if even mean?
Answer: There is no such thing. "else if" is just a combination of else and if.

I just wonder how something so subtle went over my head
@jay_t55 I agree with you that the one thing not helping the web or helping it too late is the standards committee
@MoonOwlPrince that's my point. I'm not saying CSS is shit or whatever. It's just that it doesn't evolve as quickly as it needs to. But I think that's only because it was made in a time where nobody thought we'd be using it like the way we do now. But it's still annoying.
@jay_t55 the problem with the standards committees is the somewhat lack of vision that Mozilla, Microsoft, Google and friends have
Yeah lol. I wonder, does the W3C have a formal feature request type thing? Maybe people need to bitch and moan a little more?
08:44
The web is literally driven by non-standards. I have always had the perception that standards are the worst you should ever do. They are like the lowest common denominator of operation that should ever be allowed
The reason we have CSS, IIRC, is not the standards committee at all
Far too much credit is given to the standards committee IMO
09:07
Yep
 
3 hours later…
12:32
?. youtube.com/watch?v=KvW0NCFuXLg New features in C# 6.0
2
12:45
Great video. Thanks for sharing @Marek
13:44
Hi
 
1 hour later…
15:00
If anyone has ideas on this would be very grateful
0
Q: Method adding multiple items to ListView rather than one.

JamesI can't work this out at all. The following two methods are stripped down methods of something in my project which I'm using to debug an issue. I have a XAML textbox control acting as a search field and this method is intended to listen for when a user presses a return key to submit a search. W...

15:51
The answer was a bloody Microsoft bug (and not my code for once!)
 
1 hour later…
17:06
so, I've managed to write some funny things in Windows Forms with the Graphics, but when I tried to finally learn WPF I found out that my usual context.FillRectangle(brush, x, y, w, h) is not there anymore, but there is context.DrawRectangle, but I have to create a new object for every rectangle I draw, and the result doesn't seem to be stored in an image, rather as a subelement (?)... can I do something about it?
Can I bring back the good old FillRectangle in WPF?
17:40
@towc WPF doesn't have drawing like WinForms. It uses content instead, so if you want a rectangle to appear, you add it to the content
It has Canvas IIRC?
Or something like that
googles
Yes, but you don't draw on it like in HTML
ah ok yes true
yes, you still only add elements to it
Canvas is basically WinForms, but with the WPF content model
You position everything manually
18:29
In C# how would I pass an observable collection as an optional parameter?
@James Just like any optional parameter
What do you mean by 'how'?
So in the below, what would go after the "="?
public void DisplayTerms(object value, ObservableCollection<ViewModels.Term> Collection = )
        {

        }
Ah, ok.
@KendallFrey Thanks.
user2620028
19:05
whats up guys
user2620028
@kendallFrey you were right i have to compile this using that shell script. First compile successful finally.
19:28
@HatterisMad o/*\o
user2620028
i have no idea what that face is lol
high five
o/
\o
user2620028
i dont see it hahaha
user2620028
OH ok lol gotcha
user2620028
19:31
thought that was a weird way of writing /o\ lol
19:43
I find myself having to use the dynamic type for lots of my variables, is this bad practice?
@KendallFrey ok, good to know... so for games using winforms is just fine, I guess
@James it certainly can be. Depends where, I think
Why do you need them to be dynamic?
Hi @TomW. I've just been doing some thinking and I figured it's because I not yet using object-orientated patterns throughout my project. Take the example below...
string newSearchQuery = await new Models.Data().SearchDatabase(userTerm);
            dynamic resultsJsonObject = JsonConvert.DeserializeObject(newSearchQuery);
            dynamic resultsJsonArray = ((JArray)resultsJsonObject.terms);
newSearchQuery is fetched when I do a search of my databse, but outside of runtime my current code doesn't know what to expect
@TravisJ I felt the need to bring up your complaint about Benjamin and Florian in the JS meeting. chat.stackoverflow.com/transcript/message/20442426#20442426
20:01
Hello, I have a problem. It's a bit complicated to explain though.
Well, I guess that means you're screwed :)
This is my problem: ideone.com/2JxJ6n
@oldmud0 "any way b can keep the reference to a?" With b = a. If you assign a new value to a variable, it will take that new value.
I'm not sure why you'd want to do that
@KendallFrey The problem (not shown in the example) is that I want to initialize a but through b because I do not have direct access to a.
20:08
You can't change a variable directly, but you could just set the properties of the object
b.num = whatever
That's basically the closest youll come
20:22
I modified the ideone to fit my problem a bit more.
@oldmud0 You just need a ref or (out) variable
oh, wait, you're... ew
Yeah, you can't store a reference to a variable
you can only store references to objects
@KendallFrey So I added ref to the Reinitializer constructor, but it's still not changing the a object
Is this just not possible? Do I have to expose a in order for this to work properly?
20:46
@oldmud0 why do you need to do...whatever it is you're doing? I for one am really not sure what you're trying to achieve, and the comment doesn't really explain it
I can understand the words but...for what purpose?
@oldmud0 yeah, ref only works in a single method
@TomW I need to reinitialize a RenderTargetViewthrough a class that fixes the resizing problem in SlimDX. The only way I can do this is by saying TargetRenderTarget = new RenderTargetView(TargetDevice, resource); The RenderTargetView in question is already exposed statically from the main class, but I was hoping if I could get a more generic solution to the problem.
Right, so RenderTargetView doesn't expose anything that you can call or change to trigger some update, so creating a new one is the only solution?
is that what you're getting at?
Mmmh hello gentlemen
Anyone here used XAML Spy?
20:57
Correct. According to the tutorial I'm reading off, it tells me to do renderTarget.Dispose(), work with the swap chain for a bit, then reinstantiate it as stated above.
Gotcha, that makes a bit more sense now
!!google Spy++
!!What does Spy++ do?
@MoonOwlPrince Yes!
20:59
OK, bearing in mind I've never even heard of SlimDX, much less ever used it, I therefore know absolutely nothing about the API beyond what I've been able to read from the docs in ~5 minutes
Quite useful
Is this a bug in the framework or a fundamental limitation that's well known?
is it this page under the section Form Resizing?
Looks yuck.
Yeah. I felt like decoupling and making a class for each "fix" and I ended up with this problem..
@DemCodeLines Some of my coworker have, but not me
I want to embed a Skype group chat into a web page and I wonder if anyone has heard of that
21:12
How hard is working with DirectX, anyway? Does the learning curve level off pretty quickly?
I never got over the hump
No
Learning DirectX is like learning C++
Whenever I need 3D graphics, I use XNA (now MonoGame) or Three.js
okay, so 3d programming will always take 5,000+ lines of code to accomplish anything?
No
You take 5000+ lines of code. You need to get libraries
I am sure KendallFrey has a few up his wrist
So in C# we will have pseudofunctions
good development
21:18
?
string interpolation is quite welcome
???????
KendallFrey you have any OpenGL and Direct3D libraries?
5 mins ago, by Kendall Frey
Whenever I need 3D graphics, I use XNA (now MonoGame) or Three.js
C# has just gotten leaner
Cleaner
Meaner
I am excited for C#6.0
21:21
I have no idea what you're talking about
Seems to me it's mostly just fancier
hardly leaner when they're adding new features
Leaner syntactically I meAN
@KendallFrey is there any way to inspect xaml on runtime
Yeah, XAMLSpy I think
@MoonOwlPrince how is more features leaner?
You just ignore the older syntax
And you have a leaner subset you enjoy working with
21:25
After all there no conceptual changes
Await in catch and finally blocks - awesome
Can't get xaml spy to work
Quite welcome
Keeps saying no apps found
@MoonOwlPrince ಠ_ಠ
!!google When is C# 6.0 being released?
most annoying part of developing with microsoft tools: microsoft's obsession with GUIDs and XML files.
XML is a blessing
Though JSON is better for most instances
If I want to share a large chunk of code where is best o paste it and link to it?
@James ideone, pastebin, gist.github.com
21:44
@oldmud0 Thanks
Am I correct in thinking that all JSON.DeserializeObject() does is remove \ from a JSON string?
21:57
@James...what?
Er, no? It turns a string into a T
or a JObject
@tom w
depending on whether or not you use the generic version
Sorry, I was being stupid - I've been stuck trying to fix something for a couple of hours and my heads gone to jelly1
you do mean JsonConvert.DeserializeObject() right?
from Newtonsoft.Json
Yeah, the reason I mentioned it is because I'm having trouble iterating through my JSON string so I've just been staring at the different strings returned at each stage and trying to make sure I'm iterating through properly (which I'm clearly not!)
Yes, I do mean that.
Is it best practice when returning a JSON string from a web service avoid using arrays in the string?
22:02
not a big user of json APIs, I can't think of any particular reason why arrays would be bad
if you have a collection of several objects with no particular key or index then I can't see why that would be a problem
 
1 hour later…

« first day (1519 days earlier)      last day (3655 days later) »