This entry is about how I solved a problem in my AnyLogic model with the Time settings.
A few weeks ago, I went to "Simulation: Main", then clicked the "Presentation" tab, and changed Execution mode to "Virtual time (as fast as possible)". I did this because I wanted to speed up the execution time of my model because I was in the middle of the testing and development process. This worked.
However, some weeks later, I needed to change back to "Real time". When I did that, I wasn't seeing my usual "System.out.println" messages that I print out for myself so I can keep tabs on what's going on in the Console. What was going on?? Obviously, I had changed something during the time that I had it set to "Virtual time", and I couldn't remember what it was. I had done way to much work to simply re-load an earlier version of my model.
After a bit of poking around, I figured it out. After setting the model to "Real time with scale" = 1, click on the main project title, and under the "General" tab, check the Time units. I had mine set to "days". So, naturally, in the few seconds that I was watching my console, obviously days were not passing, so, my code was not executing. I changed this to "seconds" and that fixed it.
Another setting to watch out for is under "Simulation: Main" (or whatever yours is called), also under the "Presentation" tab, check out your "CPU ration (Presentation: Simulation)". I had mine at 1:2 but wasn't seeing my Console outputs. So I changed it to "1:1" and that fixed it.
I just LOVE this stuff. I like growing in expertise and learning the subtleties of these tools. I also love sharing what I learn with those who are interested in the same thing. :) :) :)
*hearts*
A Computer Scientist's personal research notes Technology, Research, Spirituality
Drag Race
Some of my friends at work are watching a reality TV show, RuPaul's Drag Race. Now, I am hooked, too! The show is kind of like "American Idol" or "So You Think You Can Dance", except that the contestants are all drag queens. Every episode has a "mini challenge" where they have to do something like style a wig or other small game. In the main challenge, the contestants participate in a larger activity such as doing a celebrity impersonation or dressing up someone else in drag. In one episode, they invited women who usually do not wear dresses and makeup (ex. boxers, martial arts instructor, cage fighter), and the contestants had to dress them up.
In season 1, my favourite queen was Nina Flowers. On the first episode, the queens are introduced as their female versions. Later, the contestants remove their costumes and you can see what they look like "as a guy". With Nina, her transformation was quite drastic. She became a guy with tattoos and a shaved head. I think I picked her because I enjoyed the surprise! In season 2, I think my favourite is Jujubee. At first, I liked her because she can be competitive without being too abrasive. But the main reason I like her is because of her "failure" in one episode. She was built up as being the person who was going to win the main challenge because she had background experience in that area. The challenge was to perform one of RuPaul's songs, and Jujubee had singing experience. However, when the time came, she "froze" and did not perform up to expectation. I can really relate to that. I have a lot of skill and experience with technical things, i.e. developing web applications, programming skills, etc.. However, when I went away for my maternity leave, I became "separated" from this skillset because I no longer had time or opportunity to do anything "deep" at the computer. I forgot so much. I became rusty. I felt like a failure in an area where I once could shine. So I really related to Jujubee on that aspect.
You can buy the first season on iTunes. (Well, I'm in Canada, so you can on Canadian iTunes, anyway!) I'm pretty sure it's an American show.
In season 1, my favourite queen was Nina Flowers. On the first episode, the queens are introduced as their female versions. Later, the contestants remove their costumes and you can see what they look like "as a guy". With Nina, her transformation was quite drastic. She became a guy with tattoos and a shaved head. I think I picked her because I enjoyed the surprise! In season 2, I think my favourite is Jujubee. At first, I liked her because she can be competitive without being too abrasive. But the main reason I like her is because of her "failure" in one episode. She was built up as being the person who was going to win the main challenge because she had background experience in that area. The challenge was to perform one of RuPaul's songs, and Jujubee had singing experience. However, when the time came, she "froze" and did not perform up to expectation. I can really relate to that. I have a lot of skill and experience with technical things, i.e. developing web applications, programming skills, etc.. However, when I went away for my maternity leave, I became "separated" from this skillset because I no longer had time or opportunity to do anything "deep" at the computer. I forgot so much. I became rusty. I felt like a failure in an area where I once could shine. So I really related to Jujubee on that aspect.
You can buy the first season on iTunes. (Well, I'm in Canada, so you can on Canadian iTunes, anyway!) I'm pretty sure it's an American show.
How to make a Windows machine join a Domain
Although I think of my blog as primarily a place for my research thoughts and meanderings, lately I noticed I've mostly been posting about technical hurdles I have overcome. Guesswhat, here's another one! ;) With added bonus of some life reflection mixed in.
Say you have a Windows machine on a network, (such as a campus, like, I don't know, say the University of Saskatchewan), and you want your machine to be part of the USASK domain, but it isn't. Here's what you do.
0. Your user may need to be granted permissions to add new machines to the domain. In addition, your machine may also have to be "pre-added" to the domain so it goes to the right spot when it joins. So, before going any further, you should contact your Active Directory administrator to make sure they are expecting you & your machine to be added.
1. Right-click on My Computer, choose Properties
2. Look for the heading "Computer name, domain and workgroup settings". In here there should be a link that reads "Change settings", click that.
3. Near the bottom, there's a button that reads "Change", with the label, "To rname the computer or change its domain or workgroup, click Change."
4. Look at the "Computer name". Is that what you want your machine to be known as on the network? If not, change it and then restart your computer. (if it's a server, have fun organizing downtime!)
5. Beneath that, it says "Member of" Domain or Workgroup. Change the domain to be "usask.ca" and restart again.
6. Type in your username and password to confirm adding the machine to the domain. Possibly restart again. Restarting again might be a good idea anyway, because after you have joined a domain, your machine may inherit new policies it never had before.
7. If something doesn't work anymore, then review the new policies. In my case, some of the policies shut down some ports I needed open on the firewall, so I had to re-open them.
Why did I bother to type out these simple and obvious steps? Well, 20 years ago I might have thought it would be unnecessary, because the computer is just so obvious there's no need for directions. right? (I actually believe this in many cases.) However, in my life, I have learned that "obvious" is relative. Of course it's obvious to a young kid who doesn't have any experience with anything EXCEPT Windows, and they are totally familliar with it, there's like no other option of where it could be! But, operating systems change. Windows 95 turns into 98 and then XP and then you have a kid and fall of the face of the technical world for a number of years, and maybe you switch and re-learn everything on Mac or Linux, and then you come back and you get all rusty, and, and, ....
well, sometimes it is just nice to have the friggin' directions in front of you. It is NOT obvious to people who come from a different universe. And believe me, life has a way of pushing you into different universes.
Say you have a Windows machine on a network, (such as a campus, like, I don't know, say the University of Saskatchewan), and you want your machine to be part of the USASK domain, but it isn't. Here's what you do.
0. Your user may need to be granted permissions to add new machines to the domain. In addition, your machine may also have to be "pre-added" to the domain so it goes to the right spot when it joins. So, before going any further, you should contact your Active Directory administrator to make sure they are expecting you & your machine to be added.
1. Right-click on My Computer, choose Properties
2. Look for the heading "Computer name, domain and workgroup settings". In here there should be a link that reads "Change settings", click that.
3. Near the bottom, there's a button that reads "Change", with the label, "To rname the computer or change its domain or workgroup, click Change."
4. Look at the "Computer name". Is that what you want your machine to be known as on the network? If not, change it and then restart your computer. (if it's a server, have fun organizing downtime!)
5. Beneath that, it says "Member of" Domain or Workgroup. Change the domain to be "usask.ca" and restart again.
6. Type in your username and password to confirm adding the machine to the domain. Possibly restart again. Restarting again might be a good idea anyway, because after you have joined a domain, your machine may inherit new policies it never had before.
7. If something doesn't work anymore, then review the new policies. In my case, some of the policies shut down some ports I needed open on the firewall, so I had to re-open them.
Why did I bother to type out these simple and obvious steps? Well, 20 years ago I might have thought it would be unnecessary, because the computer is just so obvious there's no need for directions. right? (I actually believe this in many cases.) However, in my life, I have learned that "obvious" is relative. Of course it's obvious to a young kid who doesn't have any experience with anything EXCEPT Windows, and they are totally familliar with it, there's like no other option of where it could be! But, operating systems change. Windows 95 turns into 98 and then XP and then you have a kid and fall of the face of the technical world for a number of years, and maybe you switch and re-learn everything on Mac or Linux, and then you come back and you get all rusty, and, and, ....
well, sometimes it is just nice to have the friggin' directions in front of you. It is NOT obvious to people who come from a different universe. And believe me, life has a way of pushing you into different universes.
Subscribe to:
Posts (Atom)