« first day (607 days earlier)      last day (3409 days later) » 

10:00 PM
ha!
:)
 
@Edward About labels again.... So global labels are subroutines and local labels are subroutines that exist is global labels? Correct me if I'm wrong.
 
Labels in general can be code or data. The only difference between global and local is that a global name is recognized everywhere, but a local name is local.
So if somebody in the room said "Hey, Edward" I would assume they're talking to me.
 
Global, as in, across multiple files?
 
OK, I'll write up some Assembly and post it here sometime.
 
But globally, "Edward" is not unique.
 
10:03 PM
So "Edward" is a local label?
 
Yes.
Here's some code from my website: beroset.com/asm/rawread.asm
In that, labels that begin with @@ are local labels.
 
Apparently, VS can open Assembly.
 
Is this MASM?
 
That'll help.
 
@SirPython Yes, that particular one is either MASM or TASM. Can't remember which.
It may work with either.
 
10:06 PM
So what are the different versions for?
Just different versions that different compilers know?
 
Assemblers*
 
Or is it processor based?
 
Different assemblers, all for the same family of processors -- Intel x86.
 
@Edward Thanks for the help - I'm off to go code for a bit.
 
A NASM-flavored example with local and global labels is here: beroset.com/asm/fibo-linux.asm
 
10:07 PM
But I have an Intel x64 processor.
 
Note that there are several lines labeled .done which is a local label.
 
What Assembly version should I use?
 
@Hosch250 Which OS are you using?
 
Windows 8.1 fully updated.
 
OH! I get it now! I see how you are using the labels differently!
 
10:08 PM
I have VS 2013 installed, and that can apparently open .asm files.
 
@Hosch250 If you have a compiler as well (e.g. VC or VC++) you probably already have MASM.
 
I have VC++ in VS.
 
VC?
 
Visual C.
 
@SirPython Yes, it's an aid to laziness. I didn't want to come up with 4 different labels for .done.
 
10:09 PM
Oh
 
Visual C++.
 
@Hosch250 Then yes, you probably already have MASM.
 
What if I wanted to do NASM?
What is the difference?
Not that I really care, but I'm curious.
 
@Hosch250 There are some syntax differences but they both do essentially the same thing. NASM is open source, MASM is not. MASM is well integrated into VS, and NASM is not.
You can use either, though.
 
OK, I want MASM then.
OS is nice sometimes, but I don't always trust it.
 
10:12 PM
I <3 open source
 
Backing up now, so I don't lose anything when my computer crashes.
Remembering what you said before about being easy to crash with Assembly.
 
"When is crashes"?
Oh
 
@Hosch250 You might also investigate using a virtual machine. bochs is one option: bochs.sourceforge.net
 
I don't care too much - I need to wipe my computer soon to get it in good shape for when college starts.
Just as long as I don't brick it.
I have a boot disk.
 
There is nothing more fun than formatting your hard drive....
 
10:15 PM
Nope, I love it.
I do it every few months.
About 3 times a year, anyway.
Before each semester, and after the spring semester.
 
I've only had to format once - when I switched from Windows 8 to Linux Mint
 
What'd you do that for?
 
I don't really like Windows
 
8 was bad, but 8.1 is better.
 
I had 8.1
 
10:17 PM
I want Win10.
 
Why did they skip 9?
 
That sounds really good.
I don't know.
That is everyone's question.
 
Is almost as mysterious as tootsie pops.
 
Probably publicity.
 
Knowing Microsoft, probably.
 
10:18 PM
They aren't any worse than the others.
 
I use Linux more than Windows these days. I like being able to tinker with the innards.
 
The physical innards? Or the software innards?
 
Both.
Although I have dedicated machines for "potentially dangerous hardware experiments."
 
I've tried opening up my computer before, but it just resulted in me crushing my grapes and getting juice all over my screen.
Now, the left half of my screen is all distorted.
All right. I'm leaving for real this time. Thanks for all your help, Edward.
 
Any time. See you later.
 
10:28 PM
-- Select all the data from the Persons table
SELECT *
FROM Persons
-- For a record for a specific person
WHERE Name = 'Bobby Tables';
Just saw the convo about comments :)
 
@Phrancis SQL uses = as equality?
How does it assign?
 
Strangely enough, it does
 
Is assignment ==?
 
No
 
Oh.
Too bad.
 
10:29 PM
DECLARE Foo; -- this creates a new variable
SET Foo = 1; -- this assigns a value to it
Very verbose, one might say
== will likely give you a syntax error
 
OK, so you have to use SET VarName = value to assign?
 
Yes
 
That makes sense.
 
Except MySQL. Because MySQL is a PITA.
 
Anything with iJunk or MyNONSENSE is likely to be.
 
10:32 PM
^that
MySQL is free for a reason. It's junk. But so many people use it, it's good to know it.
 
Do you know how many stars it takes to outstar yourself?
 
I think 20.
 
I used them all up within about 10 minutes of UTC 12:00 last night.
And I spent a ton during the 5 minutes before too.
 
Yes, last night UTC 0:00 was quite star-happy.
2
 
3
A: How many messages can I star? Is there any rate limiting?

Tim StonePer the FAQ, you're limited to 20 stars per room, per day and there's no cumulative limit. As a history lesson, there used to not be any upper limit on the number of stars you could cast. However, after a select group of Tavernfolk proved that they couldn't control themselves, Michael Mrozek did...

120
A: The Complete Rate-Limiting Guide

Lance RobertsRate Limit Rationale Comments Voting 5 comment flags/day 30 comment upvotes or deletes/day no minimum wait time between votes for ♦ mods   Deleting (treated like voting) 5 seconds no limit for ♦ mods Creating 15 seconds 5 seconds for ♦ mods timer resets   Editing 5 seconds; co...

 
10:35 PM
Who cares if they star everything?
 
There is an abuse mechanism in there, somewhere.
Hey Phrancis ...
Hey Hosch250
 
Hey Monkey
 
00:00UTC was festive... I liked it.
For me it was the 'crux' moment for Winterbash
Nice solution! I like the performance enhancement even though I tend to avoid regex to keep the code easier to maintain (you know the old saying: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. ;) But with that said, a nice solution! My main focus in the streaming code sample I provided was simply to reduce the complexity of the original code that was very complex (4 for-loops where 3 were nested and a bunch of if-statements). — wassgren 58 secs ago
 
Hey - I didn't get pinged.
Asking another question.
I hope I don't run over the 50 Q's in 30 days limit.
I don't think I will.
 
MySQL you can only declare a variable within a stored function/procedure, from memory. You also need to change the default delimiter. So it would go something like this: DELIMITER // CREATE PROCEDURE iHaveAVariableNow; BEGIN; DECLARE Foo INT; SET Foo = 1; END// DELIMITER ;
And if you forget to set the delimiter back to ; it breaks everything in that session.
 
10:42 PM
In this room, are we allowed to post links to some-what broken code that needs review and assistance?
 
@SirPython - this room is not supposed to be a tutorial room...
 
Okay, sorry.
 
I know you and Edward had a good go, and i let it ride.... but a couple of times i was tempted to suggest you get another room.... ;-)
Having said that.....
we do occasionally digress in to all sorts of things, but, generally, when the conversation becomes specific to a couple or a few people, the conversation gets migrated somewhere else.
 
Except when there are only a couple people here.
Last night, @rolfl and I discussed books for quite a while.
 
So, in the future, should I create a specific chat room with someone if I need to address someone specifically in a conversation?
Like, one of those 2 person chat rooms that you can make on people's profiles.
 
10:46 PM
Not that simple...
How about if I put it this way....
 
You don't need to create one every time you want to ping someone.
 
This room tends to attract a lot of experts in various fields.... and that can lead to deep and educational discussions.
But,....
just because there are knowledgeable people here, does not mean that people want to solve problems all the time.
 
I see.
 
and solving problems is not why people are here.
 
That's true. Sometimes I want to create problems.
 
10:47 PM
:D
 
So, if you have a problem that needs solving, sure, the people who could help may be here, but that's not an invitation to bring your problems here to be solved.
 
@Edward Exactly my thought :D
 
So, that being said, is this chat room just for general discussion?
 
Yes, and those discussions somtimes bcome specific.
 
This chatroom has one main purpose: making Code Review a living community.
5
 
10:48 PM
when that happens, they get migrated away
 
That makes sense. Thanks for giving me the warning.
 
Let me put it more simply....
when people start 'pestering' others to help them with problems, or so on, the mods get involved ;-)
there has to be a balance.
 
Ah.
 
So, if you can present your problems in a way that works for everyone, then you're welcome to.
 
Later, all. Dinner beckons.
 
10:50 PM
Goodbye!
 
Cheers Edward ....
SirPython... as a mod here, I have to be somewhat careful about things. People here are generally very nice, and helpful.
 
So...... how is everyone?
 
Good, I hope.
 
@Edward Good night!
 
Good night.
 
10:52 PM
@SirPython Recuperating ;-)
 
So, @SirPython - link us to the problem, let's see if anyone is intrigued ... ;-)
 
What's everyone's favorite color?
 
But don't make a habit of it.
 
I don't want to do it if it's just creating a problem.
 
I've read you the riot act, I feel bad... ;-)
 
10:54 PM
Riot act?
Oh
;-)
 
What's everyone's favorites color?
 
Orange
 
Thank you for contributing to the conversation, @Phrancis.
 
God I hate netflix
 
10:57 PM
I don't think that is a color..
 
stupid crap website dies on me after every episode and now it's the third time in a single episode
 
Can't you just download the video and watch it without needing an internet connection?
 
@SirPython Much obliged. Keeps me entertained while I'm exporting audio files (the chat does, not the color "orange")
 
I don't think netflix allows for downloading, no
 
Blue and Green.
 
10:58 PM
It doesn't
 
Why don't you order the video then?
I thought netflix let's you get it for free for 30 days.
 
@SirPython Depends on your subscription.
 
Oh. I just use YouTube for all my movies.
 
I'll suck on my toe if they deliver videos to Belgium
 
That's interesting.
I'm not that flexible.
What is everyone's favorite food?
You guys are interesting ;-)
 
11:03 PM
Anything with Sriracha on it is good :)
 
Thank you for contributing to the conversation, @Phrancis
 
Pizza, maybe? Lasagna?
Most things Italian.
 
@Hosch250 Pasta Bolognese sounds really good!
 
I'll have to tip my sister.
 
Do you guys have a favorite or preferred programming language?
 
11:10 PM
C++ is good, C# is good.
 
I don't. I'm not very good at programming right now. Been trying to learn a little Java.
 
I need to learn operator overloading in C# - I love that.
Java doesn't have that.
 
Operator overloading?
 
Yup.
 
What is that?
 
11:12 PM
Where you can define + for a custom class, for example.
 
Ah
I like Java a lot.
 
So if you have two classes and there is only one reasonable + operation for them, you can overload the + operator.
 
Overload it so it doesn't work, or so it does something else?
 
Normally it won't work on a custom type because it doesn't know what to do.
You overload it so it knows what to do and works.
If you try to use a non-overloaded operator, your code will crash.
 
Ah.
I thought it would be more like Java's "@Override" where you define a method with the same name(and parameters, I believe) as a method of the parent/super class.
 
11:20 PM
No.
Well, Yes.
It is somewhat like that, but Java doesn't have operator overloading (at least I've been told that).
 
I don't believe it does.
 
That is partially why I don't like Java, besides the fact that it takes twice as much typing.
 
I just like the feeling of coding in Java
Also, it's portability is useful
 
Yes, I like that.
 
What was the first language you learned?
Programming language, that is
 
11:23 PM
I did copy-from-the-model Python 2.7.
Didn't understand it though.
I really started understanding when I learned C++ and had to write the entire program.
C# I am learning from the MSDN center as I need to.
 
I always thought C++ would be a hard first language.
 
I know Python 3 a bit.
Actually, it isn't bad.
I got to UI's before I had to stop for college.
This last summer I wrote an app that I am still working on.
C#/XAML.
 
What's it do?
 
OneNote tutorials.
 
Ah.
 
11:25 PM
Windows Store and Windows Phone done, working on Desktop 2013 tutorials.
It is actually a Universal app, so it can run as a Store app and on the Windows Phone.
 
I don't really work on big projects - I prefer to make little things here and there to my enjoyment.
The only useful things I've made are simple bash scripts to make compiling and moving easier.
 
This is getting kind of big, so I need to fix a ton of stuff I didn't do right at first.
 
That's the hard part - going back and doing things again, I find.
 
Yeah, I'm almost ready to start from scratch, keeping only my XAML pages.
 
That's a very nice interface
 
11:28 PM
I did everything myself.
 
Must've taken a while
 
My mom proof read it, but that is it.
Between semesters.
I work really fast once I know what I am doing, and I know OneNote inside and out.
 
I don't know much Microsoft stuff.
 
I'm going to get my Word/PowerPoint/OneNote/Outlook certs next summer.
Probably Excel too, but I don't know that very well.
I want to actually expand this to cover the entire Office suite.
 
That would be helpful
 
11:29 PM
I'm going to do a Desktop app too, to get a wider audience.
 
Sounds like you will be doing some VBA?
 
@Phrancis Yes, I will cover some VBA, probably.
Want me to reference Rubberduck?
 
Dunno, not involved in the project
 
I am planning on including the OneTastic add-in because it is so popular.
 
The only major project I've been working on recently is a small robot that is powered by the Raspberry Pi.
 
11:34 PM
I am planning on expanding into Apple software once I have all the Microsoft apps done.
What I would really like is to be hired by MS to continue writing these apps as official helps.
 
How do they differ? Do you need to write it in a different language?
 
Yes, Apple uses Swift and Objective-C/C++.
Android uses Java.
I don't know about this at all - just the names.
Here is my latest question about redoing my app: codereview.stackexchange.com/questions/75455/…
 
Interesting.
 
I have the last four questions.
 
Heh.
What is Xaml?
 
11:37 PM
0
Q: Challenge: Determining the existence of string Intersections

LegatoProblem: Given 2 strings, consider all the substrings within them of length len. Len will be 1 or more. Returns true if there are any such substrings which appear in both strings. Compute this in linear time using a HashSet. Solution: import java.util.HashSet; public class Standford3 { pu...

0
Q: Correct MVVM format

Hosch250I have a Windows-Runtime app (very similar to WPF), and I am using (at least I think I am!) the MVVM style. I want to make sure I am doing this the proper way, and not just a working way. This is my MainPage.xaml: <Grid Background="White"> <Grid.ColumnDefinitions> <ColumnDefinition...

 
It is a subset of XML.
 
Why not just use XML?
 
Extensible Application Markup Language
XAML is Microsoft specific, I think.
It is tied into .NET, and XML isn't.
 
Oh
 
So this way, software isn't broken every time XML is changed.
And, it is tied into C# so it is easy to use.
 
11:39 PM
I don't think XML will ever change enough for it to break things.
 
And the other .NET languages.
Some things do.
 
Yes.
 
Do you know Python?
I just saw your profile.
I have a Python Chess I quit because the other collaborators quit.
I did essentially everything, and it is all done but the UI.
 
OnPropertyChanged("ItemList");
The purpose of [CallerMemberName] is so that it will inject the name into it
you can just call OnPropertyChanged();
that's why the parameter has a default value
remove some of that weak-typing
 
That OnPropertyChanged method is only the first of two items I took off the web.
 
11:44 PM
> This would prevent _menus from being modified (I think)
Nah, it won't
 
@JeroenVannevel Do I even need that call?
 
I'll write up an answer
Yeah, otherwise you won't have your updates being fired if the collection changes
 
Because it is an ObservableCollection, doesn't it get called implicitely?
 
I think I saw this, and it does work without it.
I'll check with a List and see.
 
11:45 PM
I'm not sure, you'll have to try it
I just added Fody.ImplementPropertyChanged to all the models that needed it and it injects the code automatically
I never had to fumble with the explicit calls
 
No, it doesn't even need it.
It updates perfectly.
@SirPython This is the chess, if you are interested: github.com/Hosch250/ASCII_Chess
Feel free to take over.
 
0
Q: 2D board game : good Model part?

presenterI am quite used to scientific programming but not to OOP, and even less to building GUIs. I am writing a 2D board game : the player can move on a map from tile to tile, meet Helpers and Enemies, and win a Trophy in the end. I used the MVC pattern and the Model parts consist of the followinf cla...

 
@JeroenVannevel If I create a JSON file with my menus/submenus, would that be modifiable?
 
modifiable how?
 
Where the menu text could change?
 
11:56 PM
I'm not quite sure what you're trying to accomplish. Do you just want to make it easier for the user to change the menu items?
 
No, the menus/submenus should not change at all.
I tried to make them const, but that is illegal in this context in C#.
 
ah
neither, really
They should be in a resource file
 
I'll need to look that up. Maybe you could mention that in your answer.
 
will do
 
Do you review webcode on this site too?
 
11:59 PM
@Gemtastic We review anything, so long as it works.
 
RELOAD!
[Tejpbit/CodeIT] 2 commits. 0 issues opened and 1 closed
 

« first day (607 days earlier)      last day (3409 days later) »