when I assignAccessory to room , after enter the accessory code, it always show connection failed,please let me know why ~And I wanna know that if we can contorl an air condition by Siri, how to do it ?It will be best regard if you can send me a simple demo ~
tks
I will skip the first part of your question - please elucidate further before I attempt (see Alexander's helpful link).
The second question of whether you can control an 'air-conditioner' using Siri - the answer is yes, if the air-conditioner is a HomeKit enabled hardware (the air-conditioner manufacturer needs to be compliance certification from Apple). See more under 'MFi program' by Apple or the 'Hardware Developer' section here if you want to.
Related
When testing Adobe beacons, I used to be able to right-click the Request Payload on the Network tab and select "Copy". It's now disabled. Does anyone know why? Is there another took I can use for debugging?
Thanks!
Well, right after I asked this, my boss told me the answer. You can no longer double-click the request payload. Instead you have to select the first and last items then you can copy it. Cheers!
Can anyone explain what using GCF as a "closed container" actually means?
I understand from this link that you enable this mode of operation using the HandleTopLevelRequests registry key.
I actually stumbled onto this setting as a way to prevent the Developer Tools window from automatically closing upon postbacks/redirects. That default behavior really makes the Network tab almost useless. :(
By setting the HandleTopLevelRequests registry key as described in the link above, the Developer Tools window remains open like I want.
I just don't know if this is a setting I should leave in place because I don't really understand what it's doing.
Or I suppose another way to ask it is, why wouldn't you want the HandleTopLevelRequests setting in place?
**Another registry key named UseChromeNetworking seems to often be used in conjunction with HandleTopLevelRequests. Bonus points for any details on it as well. :)
Any info at all would be appreciated-
I keep reading tutorials of how to use it in Silverlight Apps, but I need it in XNA. All tutorials refer to the package Microsoft.Xna.Framework.GamerServices, but there is no such class...
What am I getting wrong?
You're probably not going to want to show the message box class via XNA unless you truly are displaying some type of system type message.
If you're just planning on communicating something via your game to your player, then you'll want to roll your own so you can theme it appropriately to match your game.
Otherwise, the above answer about using GamerServices is correct, that's how you display a MessageBox via XNA but again, you should really restrict your usage of that class for purely system type messages (e.g. "You must be signed in to purchase this game.")
First, check that you have a reference to the Microsoft.Xna.Framework.GamerServices assembly (in the 'Solution explorer' window, expand 'References'). If you don't, add it (right click on 'References', and click 'Add reference'). Then, you can use Microsoft.Xna.Framework.GamerServices.Guide.BeginShowMessageBox to display a message box.
If you can't get the other suggestions to work for you, I recommend checking out the Game State Management sample. It has its own message type popup windows. But more than that, it is a great starting point for any XNA game.
http://create.msdn.com/en-US/education/catalog/sample/game_state_management
Dropbox has the option of adding a button to the Finder toolbar. It even appears in the 'Customize Toolbar...' window.
I can't find any documentation on how this sort of thing is done.... Does anyone know how to do this, or can anyone point me towards some documentation or sample code?
EDIT ONE:
I guess a start would be finding the location of the existing icons, and any related code.
I noticed that Dropbox has files in Library/DropboxHelperTools/Dropbox_u501 called mach_inject_bundle_stub.bundle and FinderLoadBundle which might be doing the magic. Dropbox is also putting the 'tick' badge on Finder icons. This code might be involved: github.com/rentzsch/mach_star
EDIT TWO:
A Dropbox talk by Rian Hunter about the process is here, at around 15:30
http://blip.tv/pycon-us-videos-2009-2010-2011/pycon-2011-how-dropbox-did-it-and-how-python-helped-4896698
Looking in the DropboxBundle file in the Dropbox_u501 shows the icons and some compiled code. The code suggests that Rian Hunter is the author: http://twitter.com/timeserena
Rian has his own version of the Mach Star code on his github - https://github.com/rianhunter/mach_star - tho it seems much older
EDIT THREE
There was a 'Code Injection Workshop' at Stanford a few weeks ago - http://stanfordacm.com/past/ - hosted by Rian. If anyone has notes from this please let me know!
You can use Finder Sync app extension(Starting in OS X v10.10).
A Finder Sync extension can:
Add, remove, and update badges and labels on items in a monitored folder.
Display a contextual menu when the user Control-clicks an item inside a monitored folder.
Add a custom button to the Finder’s toolbar.
Dropbox was using undocumented magic. There's no officially supported way to do this; the closest you can get without reverse engineering is Services.
(Update: As of macOS 10.11, what Dropbox was doing is no longer possible at all. System Integrity Protection now prevents code from being injected into system processes, such as the Finder.)
Rian's talk at PyCon 2011 (on blip.tv) does not explain anything more than "We reverse-engineered Finder." Although the mach_star stuff is valuable, it still doesn't explain how to get a sidebar icon working. And the Stanford 'Code Injection Workshop' has not posted any content about this method.
I've nm'd and class-dump'd both bundles that Dropbox installs for each user under /Library/DropboxHelperTools, and the output provides good insight. If I get back to it, I'll finish my research and post it. Odds are, it won't be for some time, so here's hoping this nudge helps someone else.
An easy intermediate answer that may be adequate for some people is to simply create icons that look like buttons.
e.g. I created 'new text file here' and 'new terminal here icons' for my Finder:
The method can be found here.
The disadvantage is that they must be square and do not have animations/menus or show up in 'customize toolbar' etc.
Hy everybody,
I'm wondering if it's possible to add a new button via C++ or C# to windows 7 explorer "context strip"(don't know if this is correct name) - like on picture below.
My reason for this is because a lot of times I'm switching on&off "Show hidden files, folders and drives" functionality under Tools->Folder option->View. Therefore i want to simplify this process with a click of a button.
I was looking into ShellExecteEx function, but I am not sure I can do that. Can Anybody direct me in right direction?
thanks,
regards
I highly recommend using AutoIt for this task. Second URL comes complete with examples of how to insert buttons in various programs - however, be sure to read complete topic for misc. updates to the provided code.
See:
http://www.autoitscript.com/forum/index.php?showtopic=9517
Btw: I misread topic to begin with; gui 'context' related material in Windows is often taken to deal with right-click menus
Edit: limit on urls for new users on Stack Overflow mean I had to cut out some of less essential links - google away.
To answer part of the question, I think it is possible as for quite some time we've seen small programs to add a "New Folder" button to the explorer. I think those still works with Win 7.
Look at http://tools.tortoisesvn.net/StExBar for example
[Edit] Forgot to clarify that Source Code for StExBar is on Google Code