« first day (1279 days earlier)      last day (3652 days later) » 

12:00 AM
Exactly
But each pack contains several mods
I don't think you can use mods from different sets
 
Ah, ok
So kind of like the difference between creative and survival, but more extreme
 
Yeah, you should definitely try the ultimate pack
 
I doubt it
I like vanilla Minecraft
 
I do to, thing about vanilla minecraft is: the part I like the most is the beginning
and it ends quickly
 
No way
 
12:03 AM
beginning = setting up camp, going mining for those initial resources
 
The Nether, the End, the Wither...
lots of goals to go for
 
it comes to a point where you have everything, pretty much
ehm, not that difficult though
 
@RodrigoSilva There's always a new farm or something to build
 
Something me and my friends used to do (once we got bored), build somewhat of a gladiator arena: have 2 OPs spawn a bunch of mobs and the normal players fight them :P
We'd build some of those with glass, to be able to spectate
 
Yeah, I love mob arena
 
12:06 AM
ah, is it a thing then? It kinda just came to us
 
I'm actually working on something like that now
 
The idea, I mean
What is it?
 
Yeah, I played it on a couple of servers. I think it's a plugin
@RodrigoSilva It's in the line of the first person tower defense
 
@KendallFrey Sanctum is like that. FPSTD. It's great :)
 
@KendallFrey never played that, let me check it on youtube
 
12:08 AM
@Pheonixblade9 I played Orcs Must Die, and it's my inspiration here
The only thing is, I have no idea how I'm going to implement towers
 
@KendallFrey Sanctum is like that, but with more emphasis on the TD part of it. The Towers do most of the work, you largely act as a distraction.
how you're going to implement them?
 
I have Sanctum, just never played it
@Pheonixblade9 shuddup
 
typically in things like that, the simplest way is to make everything an agent. The player is an agent, the towers are agents, the enemies are agents.
 
but this is minecraft
 
oh. hahaha
good luck!
 
12:10 AM
I did leave space to put the towers, I think
I think the main problem is figuring out the placing mechanism
Because there's no good way for the player to select a block and go "here"
another thing, towers will probably damage the player
 
How come I've never heard of this lol
 
yay for SethBling
Mine is gonna involve running around in the zombies though
 
Looks pretty awesome
ah, fighting them at close range?
 
yep, it's gonna be mostly melee
I am planning awesome ranged things like bombs and maybe spells
 
You're making a new mod?
Hm, this Blocks vs Zombies would make a nice standalone game
 
12:20 AM
oh no, it's 100% vanilla
@RodrigoSilva SethBling makes some AMAZING minigames in Minecraft
 
@KendallFrey btw, have you ever tried android game development?
Or game development in general
 
I honestly don't get the fascination with Minecraft...
@RodrigoSilva I actually wrote a lab that is currently used at my uni for Android game development...
 
@Pheonixblade9 nice :O
I just started reading stuff, I'm really interested, my main concern is the actual graphics component
How about modelling, scenarios and all that... I really lack any design or modelling experience
 
How is this called in English?
Should be "cartesian" something
I guess
 
12:24 AM
well, that's rotated cartesian coordinates.
 
"cartesian coordinate system", aha. This is it
 
12:39 AM
inside a foreach, isn't there a way to assign a value to an int[] arr
 
if you're working with int[], just use for
so you can assign by index
or, if you're changing values, use LINQ to make a projection over the original
 
@RodrigoSilva I've done XNA, yeah
I love making games, but the problem is there doesn't seem to be many dead simple game engines.
I hate all the overhead of whatever I'm using.
 
@KendallFrey hm, I've never actually worked with any engine. I fired up Unity once or twice.
 
@Pheonixblade9 It's not for everyone, that much is true
@RodrigoSilva Unity is an engine
and what kind of game can you make without an engine?
 
About unity, I've also watched a video of theyr newly added 2D support. It seemed rather interesting
 
12:45 AM
I've fired up Unity 3 or 4 times, so we're mostly on the same level
 
@KendallFrey I meant I had no experience with any. I used unity, but not enough to say "I've used it" hehe
 
OH SHIT ITS KYLE
 
hey hey hey
 
But now that you mention it, have you ever played the game "Slime"?
 
nope
 
12:47 AM
You should, it's impressively addictive
 
what genre?
 
You need to play with someone though and it doesn't support online matchmaking, it's the oldschool 2 on the same machine :P
 
link?
 
It's like a field (2D), 1 slime at each side, you have to score goals
Let me search, wait a bit
slimegames.eu This is the original
I used to play an enhanced version (idk the author's name)
The original isn't that great. The version I played support different slimes (each one with is power), different scenarios, etc
 
1:09 AM
Any windows phone dev's on?
 
@KendallFrey Unity is a pretty simple game engine (I use it ;) )
 
I agree ^
 
 
5 hours later…
6:26 AM
Why would updating a WPF element still cause a cross thread access violation exception even when called with Dispatcher.BeginInvoke ?
 
Did you touch the element in any way before going into the dispatcher?
 
Not that I know. If I remove the BeginInvoke it's ok, just doesn't update.
It throws on the .Add of an ObservableCollection
 
6:43 AM
@BenjaminGruenbaum Oh, yeah, you need a multi-thread safe observablecollection too.
Let me dig one up.
 
@RoelvanUden I only update it from the UI thread though, I think
 
Then it should be fine, but want to give it a try anyway?
@BenjaminGruenbaum pastebin.com/Cw0LAWbb
 
Lemme try it.
 
That code basically ensures that the collection events fire on the UI thread
So if you had some code that didn't, it will work after this, and you can scratch your head to find the responsible code :P
(And no, the code isn't perfect)
 
Can't find DispatcherObject
Or DispatcherPriority
Gonna use the RootVisual dispatcher instead
Lemme try
nope, thanks anyway
It works when I only add up to three items, it fails for more :S
Always fails on the fourth item.
wait no, it worked for 4 now.
 
 
3 hours later…
9:35 AM
does anyone know something about C# VSTO?
 
9:46 AM
hello guys, sorry for disturbing you
i need some help
i wrote this
string[] allProc = allProcess.Split('|');
for (int j = 0; j <= allProc.Length - 2; j++)
{
ListViewItem itm = new ListViewItem();
itm.Text = allProc[j];
itm.SubItems.Add(allProc[j + 1]);
itm.SubItems.Add(allProc[j + 2]);
itm.SubItems.Add(allProc[j + 3]);
cp.listView1.Items.Add(itm);
j += 3;
}
and when i hover over string[] allProc it says null
and of course it doesn't put the processes in the listview
 
hi
 
@Leon hi Leon, can you help me?
 
@RoelvanUden you here?
 
@RaZor yus
 
cool, heb je verstand van C# VSTO??
heb je even een uitnodiging gestuurd voor een prive chat.. is makkelijker
 
9:52 AM
@RaZor I've never even heard of it :)
 
damn...
VSTO is a developing a plugin for Office applications :p
 
@user3313264 I sorry I'm biginner I know very little about c#
 
@Leon it's oke :)
 
@user3313264 is the object allProcess filled?
 
this is the whole code
delegate void _GetProcesses(Info i, string allProcess);
void GetProcesses(Info i, string allProcess)
{
foreach (ListViewItem item in listView1.SelectedItems)
{
if (isCP)
{
cp.listView1.Items.Clear();
if ((Info)item.Tag == i)
{
string[] allProc = allProcess.Split('|');
for (int j = 0; j <= allProc.Length - 2; j++)
{
ListViewItem itm = new ListViewItem();
itm.Text = allProc[j];
itm.SubItems.Add(allProc[j + 1]);
itm.SubItems.Add(allProc[j + 2]);
itm.SubItems.Add(allProc[j + 3]);
cp.listView1.Items.Add(itm);
 
10:02 AM
I want to Print all the day name of the week starting from today. I wrote the following code but it only showing todays name. Would anyone like to point the error?? DateTime now = DateTime.Now;
for (int i = 0; i < 7; i++)
{

Console.WriteLine(now.DayOfWeek);
now.AddDays(1);

}
        DateTime now = DateTime.Now;
        for (int i = 0; i < 7; i++)
        {

            Console.WriteLine(now.DayOfWeek);
            now.AddDays(1);

        }
 
@RaZor and it goes from here
void Merge()
{
string[] cmd = received.Split('|');
switch (cmd[0])
{
case "GETPROC":
Invoke(new _GetProcesses(GetProcesses), i, cmd[1]);
break;
}
}
 
@user3313264 why would you put all processes in a string.... if you retreive the processes then put it into a list..... much easier...
 
@RaZor but it's a split char between them
 
@Leon Save the result, since its pure.. now = now.AddDays(1);
 
still... put it into a list when retreiving the processes
 
10:06 AM
but it says that allProc is null
 
@user3313264 then the processes aren't retreived and put into the string allProc properly
 
@RaZor but that string has process name, pid, window title, see? more things, so i splittet with a char
 
you're making it more difficult than it is....
 
@RaZor but if i hover the mouse over cmd[1] it shows me all
just to the list view doesn't add it
 
@RoelvanUden Thanks. I always found you guys helpful. Stackoverflow always helped me no matter how silly the question is... :)
2
 
10:08 AM
create a class Process which has the members: process name, pid, window title etc. when retreiving the processes 1 by 1 create a new object Process and then add the object to a list...
 
@RaZor oke i''l try
 
=]
@user3313264 the reason why I advice you to make a class for the Processes is simple. You can obtain the Process you need when you need to perform some sort of action. For instance: kill the process.
 
@RaZor hab verstanden, danke ^^
 
I don't speak German @user3313264, well I can, but I don't unless I need too lol
 
@RaZor np :p
 
10:12 AM
hehe
but your welcome :)
 
10:58 AM
anyone??
0
Q: Obtain value from mergefield C# Word VSTO

RaZorThe title says all, but I'll explain more in detail. Here is the thing. I'm currently developing extra code in a Word VSTO add-in which uses mergefields in a template. The mergefields in the template are filled using data from an external file. What I need is to read the value from a Merge Field...

 
no9
hello razor
is this not working?
@RaZor :)
 
hello guys, i can't do it on myself the following:
So i have a string:

string ALT = "GET|" + "str1|" + "str2|" + "str3|" + "mmr1|" + "mmr2|" + "mmr3|" + "ppc1|" + "pcc2|" + "pcc3";

but there is more then 1, 2, 3 for each those 3 strings

so how can i get it into a listview with 4 columns:
in the 1st column all "str"
in the 2nd column all "mmr"
in the 3rd column all "ppc"

If someone can help me, tell me :)
"|" is for splitting
 
sorry my mistake, the ALT string contains this: ALT = "GET|" + "name1|" + "str1|" + "mmr1|" + "pcc1" + "name2|" + "str2|" + "mmr2|" + "pcc3" + .... and so on, please someone help me
 
well, if they're in order.... 1,2,3,4 1,2,3,4 .... you already said split it on |... the rest of it is so simple i'm not sure why you're asking... every ... what fourth element is the start of a new row?
 
11:12 AM
yes but it doesn't added it tot eh listview, and im stucked at this..
@Steve can you show me an example of code?
 
@no9 don't want to use third party software
 
@Steve if is 1|,2|,3|,4|,1|,2|,3|,4|,1|,2|,3|,4| how i get them in the columns?
 
Quick XNA question:
How can I get a bullet to travel along a Ray?
I'm wondering this because I can only achieve to make the bullet travel along the X, Y and Z(if it's there) and in a specific ratio by adjusting the X Y and Z velocities but I can't get every one of those 360 degrees. Anyone know how to do it?
@user3313264 You put it all in a string, make a new string array like this
string[] word=ALT.Split('|');
You'll end up with an array
and then you can
for(int i=0;i<word.Length;i++) Console.WriteLine(word[i]);
Explanation: (string name).Split('character(like a b c d . , (space) etc.)'); creates an array and you need to declare one to store information
That's it
 
11:33 AM
@TheGeniusDev okey i'll try it now
 
Are you working in console?
 
win forms but its more complicate then you wrote but i'll try
 
ahhh
you can't use Console.WriteLine()
 
@TheGeniusDev you have skype or yahoo messenger?
 
but you get the logic
Skype
 
11:35 AM
can you give it?
 
how to send private messages
?
 
write it here and in 2 seconds remove it
thank you, are you online?
 
quick enough?
sure
but not for long
 
Hi,
 
okey
 
11:37 AM
I am working on Business access layer of a windows application.
How to check the data consistency of a get set methods of a property in the BLL ?
I have similar case with the Answer of stackoverflow.com/questions/518329/…
 
Quick XNA question:
How can I get a bullet to travel along a Ray?
I'm wondering this because I can only achieve to make the bullet travel along the X, Y and Z(if it's there) and in a specific ratio by adjusting the X Y and Z velocities but I can't get every one of those 360 degrees. Anyone know how to do it?
 
string[] cmd = received.Split('|');
switch (cmd[0])
{
case "GETPROC":
Invoke(new _GetProcesses(GetProcesses), i, cmd[1]);
break;
}
here the cmd[1] have all 1,2,3,4,1,2,3,4,1,2,3,4,...
and this is how i tried to get into the listview
delegate void _GetProcesses(Info i, string allProcess);
void GetProcesses(Info i, string allProcess)
{
foreach (ListViewItem item in listView1.SelectedItems)
{
if (isCP)
{
if ((Info)item.Tag == i)
{
cp.listView1.Items.Clear();
//for (int j = 0; j <= allProcess.Length - 2; j++)
 
use the fixed font button
 
@KendallFrey hello Kendall, did you see my little problem? can you help me with it? ^^
 
@KendallFrey do you know anything about C# VSTO?
 
11:50 AM
@KendallFrey im basically trying to get intro a 4 columns listview items from the string, and that string has like: 1,2,3,4, 1,2,3,4, 1,2,3,4, ...
 
@user3313264 still working on the allProc thingie?
 
@RaZor yes, i couln't do it as you said. but trying everythin, useless
 
hmm..
 
@RaZor Yeah, I made an Excel addin once
 
@KendallFrey okay, well I have a problem with Word VSTO lolz
 
11:51 AM
I may or may not be able to help
 
I need to obtain a value of a mergefield..
 
@RaZor now that i have the string like 1,2,3,4,1,2,3,4,1,2,3,4 - 1 for item, 2 for subitem (2nd column), 3 for subitem (3rd column) and 4 for subitem (4th column), but i can't get in it
 
get in whaT?
 
i mean to add the 1 2 3 4 into the listview (1 row)
and so on
 
lolz
var lvi = new ListViewItem();
lvi.Text = 1;
lvi.Subitems.Add(2);
lvi.Subitems.Add(3);
lvi.Subitems.Add(4);
ListView.Items.Add(lvi);
 
11:53 AM
tried
 
do that for each record
 
but if is string how can i do it foreach string in string?
this is how i tried
//string[] allProc = allProcess.Split('|');
//for (int j = 0; j <= allProc.Length - 2; j++)
//{
// ListViewItem itm = new ListViewItem();
// itm.Text = allProc[j];
// itm.SubItems.Add(allProc[j + 1]);
// itm.SubItems.Add(allProc[j + 2]);
// itm.SubItems.Add(allProc[j + 3]);
// cp.listView1.Items.Add(itm);
// j += 3;
//}
 
nice comments
 
yes i comment it cus it doesn't do it
 
of course not, if it's commented
 
11:57 AM
@user3313264 you can't add it directly to a listview on another form... You need to use a method which adds the items to the listview on the form where the listview is
you need to do something like this: cp.AddItemsToListView();
 
but however, when i put a brake point at string[] allProc = allProcess.Split('|'); it shows allProc null
 
;)
 
yes but however i tried to write all into a txt file
 
allProcess might be on another thread which would be inaccessible ;)
 
and it write just the 1st item
 
11:58 AM
@Steve hey buddy, you know anything about C# Word VSTO??
 
@user3313264 That's because breakpoints stop it before it runs that line
 
@RaZor nah sorry, looked at your question an hour ago or so
 
@RaZor You haven't even tried to ask me
 
@Steve np.
@KendallFrey i did lol :P
 
8 mins ago, by RaZor
I need to obtain a value of a mergefield..
 
12:00 PM
well it wasn't a question
 
you're taking things to litteraly
lol
 
You're not asking for help :P
 
Dude, xD
 
@KendallFrey if i can o it to write the items into a txt file i could do it for listview too, but i just can't.
 
12:01 PM
Okay here comes the question Kendall
HOW can I obtain a value in a specific Merge Field?
 
What have you tried?
 
nothing because I'm not familiar with the merge fields...
I've searched on google
 
have you googled?
 
yes of course
I always google before asking here ;)
 
what did you find?
 
12:04 PM
Nothing helpfull... Just articles about how to create merge fields using word itself haha
 
@KendallFrey So i tried like this, it writes nothing to the file
string[] allProc = allProcess.Split('|');
for (int j = 0; j <= allProc.Length - 2; j++)
{
File.WriteAllText("str.txt", allProc[j]);
j += 3;
}
 
OR articles which indeed explain how to obtain that value but only using third party dll's to do it
And I'm not able to buy extra software or what so ever
 
well, congrats on your question being top google result
 
haha indeed :p
I just noticed that aswell lol
 
have you read the MSDN docs?
 
12:09 PM
some of them
 
Anyone here confident in mvc and using repositories?
0
Q: Creating new repositories with each controller

NiklasI've been reading up on Dependency Incection, UnitOfWork and IRepository patterns, and I intend to implement them all as I go along. But it's all a lot to take in at once. Right now I just want to make sure about some basic things, and that I'm not missing anything crucial that could impact my ap...

 
nope
 
I look into it :) thanks.
 
Hi I am using EWS Managed API which abstracts formation of SOAP requests to Exchange Server, the communication occurs on HTTPs that is port 443. I want to know if that means the client I have written using EWS Managed API does also is occupying its local 443; I know I am missing some understanding here
 
12:15 PM
It may be a problem I have no idea what a merge field actually is
 
A merge field is a field inside the document that can be filled with data from an external source
 
Field.Result?
 
not sure...
 
me neither
 
hehe, well, I'm googling my a** off over here o/
 
12:19 PM
I'm not googling that
 
hi anyone clear my basics :'(
 
hehe
 
xD
u can mine
please first my query
:p
 
@Mahesha999 If you're wondering if a connection to 443 uses port 443 on the client machine, no.
@Mahesha999 Oh I can mine alright. DIAMONDS
 
12:21 PM
@Mahesha999 Your app a service?
 
nope a standalone app a WinForms app
 
and you are connecting to echange webservice
 
yess thru EWS Managed API
 
listeners on a specific port can only be one on the same ip address
clients can open multiple connections from the same address to a service
your client wont occupy a port
its not a listener
 
u talkin about push notifications? I am listening to url and specified that url in EwsService.SubscribrToPushNotification(), so I know that port since I created and started a listener to start on a port
 
12:25 PM
I am not talking about push notifications
 
so I make EWS Managed API call, a SOAP will be generated and sent to Exchange server on port : _______
the response SOAPs will be sent on port : ________
or am just getting it completely wrong?
 
well am not asking specifically about events at all, I want to know if any client port is used for SOAP traffic
 
dont think so
you can check it
with netstat
you are not hosting a service
you are connecting to a service
on 443
 
yess exactly
and the service is sending back me a response too, so definitely the EWS Managed API call is listening to something for response SOAP
is that something a port
?
 
12:33 PM
thats a innerchannel
not occupy a 443 port
 
now thats what I want to know
what is innerchannel?
 
client connection ports
socket use that also
 
any elaboration?
link?
 
do you want me to explain TCP socket structure?
how everything works?
 
ohkay nope I think I forgot basics, just a google search string :p
 
12:36 PM
the listener will move a connection from a listener port to another port to handle connection with that client
so the listener can stay listening on that main port
 
 
1 hour later…
1:49 PM
Good morning
 
yoo
 
Maybe a stupid question but what (in your opinion) is the best way to deal with x86/64-bit machines in terms of building software out? I develop in a mixed environment, until now we have been fine with 32-bit builds, but are moving to a thin client / terminal services environment so I need the applications to run properly for users on the new 64-bit machines.
 
64-bit machines are hardly 'new'
 
Pedantic, and noted. Meaning 'new' to our organization.
 
Can't you just compile to Any CPU?
 
1:56 PM
That doesn't seem to be working... was my first thought as well. The applications just crash upon opening, I don't believe they are even getting into Main(). It's the whole "<application> has encountered a problem and needs to close".
 
In that case the external dll's that you use aren't complilable for x64
 
That is a bug in your app then
 
I've tried the do the same thing before, and it was a problem with the DLL's. They were x86 instead of x64 so I couldn't run my app....
 
@RaZor that could definitely be possible.
 
:)
 
1:58 PM
I have a custom library (written by me a long time ago), perhaps that's the issue. Thanks!
 
You're welcome!
 
2:08 PM
Yep that was it
library was built for "Mixed Platforms", switched it to Any Cpu and it worked fine.
 
awesome!
 
Yeah, luckily it was my library
 
If you start doing p/invoke interop 64-bit to 32-bit, you'll feel pain..
if it's all managed, its really nice to have any cpu
 
@EvanL Glad I could help!
 
@RoelvanUden yeah... I have a couple programs using p/invoke that i'm dreading porting up.
 
2:38 PM
lucky me I don't have to :p
 
Is having a Connect() call in the same method of an UploadFile() call a bad idea for FTP? Trying to be concise but something feels funky about this to me:
/// <summary>
        /// Connects to the Remote FTP Server, navigates to our Working Directory and uploads the NACHA File.
        /// </summary>
        public void UploadFile()
        {
            this.UmbClient.Connect();
            this.UmbClient.ChangeDirectory(WorkingDirectory);

            using (var fileStream = new FileStream(this.FilePath, FileMode.Open))
            {
                this.UmbClient.BufferSize = 4 * 1024; // bypass Payload error large files - This would be uncommon in our case
 
it's not really considered as being bad. if you execute a SQL Query against the Sql Server then you would connect to the Sql Server in the same method as the actual code to initialize the method for adding records
I would say: You're doing it right :)
 
True, I guess the biggest issue for me is catching exceptions in the caller down the road. I would need to check for an error in the connection, then an error in the filestream conversion (IOException) and then an error during upload. That's what makes it shaky to me.
Because the handling in each case would be different.
Otherwise I would just trap general System.Exeception
 
You can use 1 try catch statement with multiple catches
1 catch for each type of Exeception type and 1 normal Exception catch statement. That's all you have to do
 
Right, here's the caller:
/// <summary>
        /// Generates and uploads the NACHA file to the specified server
        /// Moves the generated file to ARCHIVE if sucessful, ERROR if an error occured during upload
        /// </summary>
        public void UploadNachaFile()
        {
            NachaFileInfo.GenerateFile();
            var fileName = "ach_payment_" + DateTime.Now.ToString("MM_dd_yyyy_hhmmss") + ".txt";
            var path = Path.Combine(Directory.GetCurrentDirectory() + "\\TEMP", fileName);
            File.WriteAllText(path, NachaFileInfo.OurBigFile.ToString());
 
2:50 PM
hi
 
@EvanL looks good to me :)
@meranaamshahul hi
 
@RaZor cool, thanks! Just needed some affirmation I guess.
 
=]]
 
@EvanL hi
 
@meranaamshahul hi
 
2:52 PM
i have two exe in two systems. i will connect both exe into one sql
server
 
damn @EvanL I missed some reputation points today because you posted it in here hahah
@meranaamshahul you mean you want to connect both exe's with the Sql Server?
connect into = bad grammar
 
some times insertion not happened if i do save on both machine
could you tell any solution?
 
well your not being clear
Explain it again in a good way @meranaamshahul
 
@RaZor that was just a review request... wouldn't fit on SO. Maybe a codereview.stackexchange.com question.
 
@EvanL it might, but since we are here to help... He can ask, but that doesn't garantuee a solution for him haha
 
2:57 PM
@EvanL Could you tell any solution?
 

« first day (1279 days earlier)      last day (3652 days later) »