Jump to content

  • Log In with Google      Sign In   
  • Create Account

shadowisadog

Member Since 16 Jun 2005
Offline Last Active Aug 22 2016 07:10 PM

Posts I've Made

In Topic: Looking For Book To Learn The Basics

04 August 2016 - 10:43 PM

Perhaps this list:

 

http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

 

Beyond books I really like the C++ content at pluralsight: https://www.pluralsight.com/

 

I also like the book "Game Programming Patterns" http://gameprogrammingpatterns.com/ . I know you don't want something specific to Game Programming but I still find this to be a good book.


In Topic: Tinyxml C++ Grabbing Id

03 August 2016 - 11:59 PM

I am not sure how you are processing this xml in your code, but generally you would load the xml data into an internal data structure that is easier to work with.

 

A map data structure could be used where the key is the id and the value is instance of a Dialog class.

 

I think the key idea is that your xml would get turned into an in memory data structure. For instance you could have a vector of response objects in the Dialog class.

 

http://www.cprogramming.com/tutorial/stl/stlmap.html

 

http://www.cplusplus.com/reference/map/map/


In Topic: Python-Get String Between Two Characters

03 August 2016 - 11:42 PM

I would do it something like this personally:

 

I would start off by replacing the '~' characters in the string since they do not seem to add anything. You could replace these with an empty string. Then use re.split with either the '^' or '>' characters. You have to escape '^' because it has special meaning to a regular expression. Using the pipe character creates an or condition in a regular expression.

 

Then that would give me results but they would have a lot of whitespace, so I would use a list comprehension to get rid of the extra whitespace and to omit any blank entries from the list.

 

Below is the code:

#!/usr/bin/env python

import re

def main():
    target = ' ~~~~ ABC ^ DEF ^ HGK > LMN ^ '
    target = target.replace('~', '')
    target_list = re.split('\^|>', target)
    target_list = [entry.strip() for entry in target_list if len(entry.strip()) > 0]
    print(target_list)

if __name__ == '__main__':
    main()

That gives me:

['ABC', 'DEF', 'HGK', 'LMN']

In Topic: Good places to learn Universal App development

11 April 2016 - 12:08 PM

Maybe these links help:

 

https://msdn.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide

 

https://msdn.microsoft.com/en-us/windows/uwp/get-started/whats-a-uwp

 

https://blogs.windows.com/buildingapps/2015/04/30/a-deeper-dive-into-the-universal-windows-platform/

 

There is also this (subscription based) Pluralsight course:

 

https://www.pluralsight.com/courses/windows-10-universal-apps-xaml


In Topic: C# and Java interop

11 April 2016 - 12:04 PM

Perhaps something like: http://www.prodigyproductionsllc.com/articles/programming/decompile-java-using-c/

 

or https://msdn.microsoft.com/en-us/library/y9teabc2%28VS.80%29.aspx

 

Maybe one of those potential ideas will help you.

 

Also if I remember correctly jar files are really just zip files. You can "extract" the jar file and look at the class files inside of it... I don't know if you will be able to do much with the class files but if you extract the jar file to a temp directory and then iterate through the files you should be able to determine the names of things potentially.


PARTNERS