Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

figuerres figuerres ???
  • phone cmd to phone in different city

    , wlab wrote

    yes like txt but i will move a slider on 1 phone for Forward, Reverse, Stop etc and send that cmd and tell the phone in different city which has a servo attached by bluetooth (separate issue).

    Cmd for Forward could be acsii "forward" or just numeric 1 meaning forward.   5 could be play a sound as you suggest.

    "register" one phone sees another phone, that sounds simple enough, simple solution is always preferred. Would you be able to point me to some code, video or tutorial using that method. 

    in that case why use a phone on the remote end ?  get like a netduino board you can get one with a an etherhernet port and have it run the servo

    then the phone sends data to the netduino board that operates the servos.

    that removes some possible issues like the phone going to sleep, and it means you do not have to have two phones.  and the board will allow you to use all kinds of IO and parts and does not need to use Bluetooth to connect to them.

    the board calls a wcf service to get commands

    the phone calls the service to send commands.

    the service acts as a gateway between them and handles the addressing.

    no I do not have an example to show you, this can be done but you will need to look for any examples or figure it out.

    look here at the coding for fun stuff to see a lot of things like this...

  • phone cmd to phone in different city

    well part of what you just wrote sounds like what texting does.

    but the commands part.... what kind of commands ? for example if I am running a copy of the app will you send a command to have my phone play a sound ?

    you might just need some way to allow phones to "register" so that I am allowing your phone to see my phone, then you send messages to my phone and can send messages to your phone

    the messages can have a format that includes options to do stuff like play sounds.

    the question is how the mapping of phones is done.

  • *sigh* :'(

    , blowdart wrote

    *snip*

    JSDL? I suggest that when I want to see people explode. One of the points of json / rest is they're not strongly type, so there's no need for a proxy. You have to remember it came out of javascript where there is no real typing. It's not so bad though, you should be marshalling it into your own domain objects after validation, and Newtonsoft's json.net

    actually the library I am using for this uses json.net inside to do some of the work.

    the problem is that in the current state of this there is no way to "know" for sure you have your code right for the service as they can send back different strings of json but they can call them all the same thing, so you hope they wrote a document that says which fragments of json are optional and which ones are required. also  the author may only give documentation using the language and tools they prefer. that means interop with another environment / platform / language can be more difficult than it needs to be.

    sure I can see that json Vs. XML json will be smaller and that's ok.

    but not everyone programs in js , some of us still use and like C# and a decent level of type's such.

    heck even if you write a client in JS it might be good to have a tool that can read a file and generate some valid code to make sure your getting things right.

    and there is productivity, I am asked to do one simple task using the web services but I have to spend hours finding the bits I need to make it work, if the tooling was right I would have done the task in say 1 or 2 hours in stead of 2 days due to all the exploring I had to do to find out how to make 2 calls work. then I found the project where the systems api had been wrapped up in a .net client and it made it super easy.

  • *sigh* :'(

    , Hometoy wrote

    @evildictaitor: Ok, my stupidity is starting to leak. Where can I learn the better way _now_, and try to plug my leaks?  Some starting point please.

    are you talking about the sql injection stuff ? if so please start with telling us what language / platform / tools you use ?

  • Google I/O: Why can't we all just live together?

    so where did that come from Ian ??

  • *sigh* :'(

    Well speaking of things to make one cry or have a fit.....

    Rest / json  web services , at least the one I just had to figure out.... AAAAHHHHH!!!!!!

    so they have like say a hundred calls that return chunks of json or ask for some but some times things in the json are not there and other times they are, and the name at the top can be the same.

    and all of the examples are snippets of curl commands.

    I found my self wondering if they ever had any idea of doing something a bit like a WSDL document to allow a client to build a proxy class to call the thing ?

    some guy made a .Net wrapper with all the stuff but it looks like he had to spend a lot of time doing something one off that if they had a WSDL file most of the code could be generated like we do with ASMX or WCF services.

    I have only had to deal with a couple of cases but to me it seems like REST / json is a step backwards to the dark ages ....

  • Create images that fly out in blend

    First I would say that you need to learn about how to create and edit a "Story Board" in Blend.

    then you can attach them to Events or to code behind.

    Storyboards are used in WPF and Silverlight to describe a set of transform steps of a visual on the screen from one state to another and use a timeline to control the speed and make sure that at runtime you get a smooth flow between states.

    for example you could make a picture appear starting as a tiny square and zoom larger while spinning around until it stops at 100% size and is upright on the screen. you can time the process to take say 2 seconds.

    if it's to slow the blend editor can allow you to adjust the timeline to run faster but still end up with the picture upright and at 100% size when it finishes.

  • How to call driver IOCTL from Windows Service?

    , milindvk wrote

    I am sure that I am passing the right path. I tried the same logic of accessing the the driver and sending an IOCTL from stand alone application (command line) and was able to open the device and issue an IOCTL. I am getting this problem when I move the logic to Windows service. And as per the discussion (link that I pasted in my previous thread) it appears that

    "The PC/SC service takes exclusive ownership of the devices, so any attempt to call 'CreateFile' will always fail."

    Is this statement true? Any other solution to this problem?

    Thanks

     

    possibly you are hitting a security issue ?

    when you run a "stand alone" program you are running as the current user or if your running as system admin then as that privileged used.

    Windows Services do not normally run as an "interactive user" and often are running as a limited rights user to keep from having the system exploited by rouge software that creates security holes.

    what user does the service run as ?

    also why do you need to talk to that driver during shutdown ?  why not use the smart card api ?

    http://msdn.microsoft.com/en-us/library/dd627646(v=vs.85).aspx

     

  • Marked as answer - by a moderator before OP

    , Charles wrote

    @davewill: Smiley

    Yes, it was rude. I think mods should wait a bit longer, but then again when is too long? When is too short? Lots of subjectivity here.

    C

    example I asked about updates to opos, they said it was not a question and marked it as answered.

    that is the stuff they do, which is why I do not go there very much at all.

    PS: they used to have a forum for OPOS.net and closed it and told us to go to the area that I did post in. in that area I was told that asking if someone from Microsoft could update us on that status of opos for .net was not a question.  real quality there.

     

  • There is no end-of-life XP problem

    , MasterPie wrote

    *snip*

    Do Operating Systems ever die? When you power a machine off, you don't SEE the OS, but for all we know, it could be having a party behind your monitor. Big Smile

    OMG, that is as bad as the bit they run in a local movie theater telling you to turn off the cell phones, it asks if phones dream when we turn them off.