Because I find Google Apps Admin SDK Directory API PHP Quickstart
to be a bit ... spare, and because I spent far too much time searching to find proper examples, here's one more place for poor saps like myself to maybe find some of what they need.
First, the PHP Quickstart, linked above. That should at least get a person connected.
Second, this lovely bit from Michael Seiler
. The details (as of November 2016) are no longer quite the same (e.g., the line numbers he refers to in the code are no longer correct), but on the whole this worked.
Third, this thing
that a suitably-energized person can probably figure out. (I was able to see, at least somewhat, what Michael Seiler was referring to by using this. That was not the case from looking at the code I'd downloaded from the Quickstart.)
(Edit: Nov 30, 2016 -- seems like that site no longer exists. May need to rely on Wayback or search engine cache.)
A year of nothing, and now two posts in a day.
How to write to an NTFS drive on Mac OS X 10.8.4 (specifically, how to replace a troublesome ntdll.dll file on Windows 7 running in Bootcamp):
- Boot into the Mac OS.
- Start a terminal session.
- diskutil info /Volumes/BOOTCAMP | grep UUID
- Copy the UUID
- Use your favorite text editor (why would it be anything other than vi?) and sudo /etc/fstab
- Type: UUID=<UUID you copied> none ntfs,rw,auto nobrowse all on one line. The nobrowse is critical for this to work.
- Save the file
- Open the disk utility, find the BOOTCAMP volume and unmount it.
- Remount the BOOTCAMP volume.
- In the terminal window type open /Volumes/BOOTCAMP to open the windows partition in the Finder.
- Modify as needed. (This, at least, worked just fine for me to replace a balky ntdll.dll file that was crashing whenever I'd be organizing files in Windows Explorer.)
The last time I posted to this blog was one year ago today.
For future reference, this is how I got a balky HP 2035 to (finally) print from Windows 64-bit, both by USB connection on a local machine and through a network connection. Frankly, it shouldn't be so hard.
- Spend a lot of time researching. Find a lot of people saying things like "C'mon, Microsoft or HP or Adobe, fix this problem." (One common problem has to do with printing a particular sort of Adobe file on an HP 1020 in Windows 7 64-bit. That was not precisely the problem I was having.)
- Delete every HP printer from the system.
- Restart the print spooler.
- Go into the Print Server properties and delete every HP driver in its entirety.
- In the registry, go to HKLM/Software/Microsoft/Windows NT/CurrentVersion/Print/Printers. Delete every HP entry you can find.
- Go to C:\Windows\System32\DriverStore\FileRepository.
- Take ownership of the suspected troubling HP folders (in the case of the 1020 and the 2035 these were obvious). Give yourself full permissions, apply those to child objects, and don't allow inheritance.
- Delete those folders.
- Disconnect the printer and use the HP driver. I had to use the one on the CD; the latest download failed utterly. Follow the instructions in the driver install (this seems to matter).
- Install the other printers.
Repeat this on any other computer with which you want to use that printer over the network.
To be clear, this is what I did specifically for an HP 2035, in part because I got the 2035 hoping it would work more easily with Windows 7 64-bit than did the gob of HP 1020s we have where I work. I was greatly dismayed when I had exactly the same problem. I now suspect that had I gone through these steps for the 1020 it would also have worked.