Archive for August, 2009

addedEffect vs creationCompleteEffect

Posted in Adobe on August 31st, 2009 by Saba – Be the first to comment

The references states:

addedEffect: Played when the component is added as a child to a Container.

creationCompleteEffect: Played when the component is created.

So, I use the addedEffect if I want to do something before the child is showed and the creationCompleteEffect when I want to apply some visual effect. Is that right?

youtube.com/* -> HTTP 402

Posted in APIs on August 31st, 2009 by Saba – Be the first to comment

Hello,

Let’s take a step back for a second: could you provide an example of a web page that hosts an embed that isn’t working properly?

Cheers, -Jeff Posnick, YouTube API Team

On Aug 28, 6:00 pm, tore wrote: > Thanks for your input and testing RobertQ. Sadly, these HTTP 402 > return codes are still occurring. > > Also, for all the url’s that ended in a ‘*’, like > >    http://www.youtube.com/get_video_info?* > > I meant ‘*’ as a Kleene Star, or as a way of shortening the long, > changing urls that are produced by the embedded player. For example, a > full get_video_info? url might look like: > > http://www.youtube.com/get_video_info?&video_id=u1zgFlCw8Aw&el=embedd… > > I also did some more digging and tried some more youtube.com > urls. While all the previously tested urls still respond in the same > manner with the same response codes; when requests are made to > youtube.com/v/* urls, like > >    http://www.youtube.com/v/LWL5F5py4rI > > everything responds normally: > >    $ curl -I “http://www.youtube.com/v/LWL5F5py4rI” >    HTTP/1.1 200 OK > > So besides the index (http://www.youtube.com/), these > youtube.com/v/* urls are the only youtube.com/* urls that respond with > a 200 OK. All other youtube.com/* requests still respond with HTTP > 402. > > What could be going on? > > On Aug 26, 4:42 pm, RobertQ wrote: > > > > > Hi > > Maybe something they did at this time > > I tested your examples > > > $ Curl-I “http://www.youtube.com/watch?v=LWL5F5py4rI” > > HTTP/1.1 402 BST with me ok > > > $ Curl-I “http://www.youtube.com/user/Tiestolover” > > HTTP/1.1 402 BST with me ok > > > $ Curl-Ihttp://www.youtube.com/get_video_info?*” > > HTTP/1.1 402 BST save the file to your desktop with the information > > invalid > > > $ Curl-Ihttp://www.youtube.com/get_video?*” > > HTTP/1.1 402 BST does not show anything > > > $ Curl-I “http://www.youtube.com/” > > HTTP/1.1 200 OK with me ok > > > $ Curl-I “http://gdata.youtube.com/feeds/videos/LWL5F5py4rI” > > HTTP/1.1 200 OK with me ok > > > Maybe something changes, it is best to wait a bit until restore the > > original state. The worst start in August to improve the working > > script then it is difficult to what happened. Best to wait and to > > eliminate the confusion that could result from the YouTube servers. > > Cheers > > RobertQ from Poland > > > On 25 Sie, 07:59, tore wrote: > > > > Some embedded videos were failing yesterday on various websites and > > > after a little digging it turned out that a good chunk of all of the > > > embedded player’s calls to youtube.com/* were returning HTTP > > > 402’s. This seems a little strange, seeing that HTTP 402 is a > > > currently undefined status code: > > > >    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html > > > > Here’s an example of the responses being received, with the other > > > response headers omitted: > > > > $ curl -I “http://www.youtube.com/watch?v=LWL5F5py4rI” > > > HTTP/1.1 402 Payment Required > > > > $ curl -I “http://www.youtube.com/user/Tiestolover” > > > HTTP/1.1 402 Payment Required > > > > $ curl -I “http://www.youtube.com/get_video_info?*” > > > HTTP/1.1 402 Payment Required > > > > $ curl -I “http://www.youtube.com/get_video?*” > > > HTTP/1.1 402 Payment Required > > > > $ curl -I “http://www.youtube.com/” > > > HTTP/1.1 200 OK > > > > $ curl -I “http://gdata.youtube.com/feeds/videos/LWL5F5py4rI” > > > HTTP/1.1 200 OK > > > > So the youtube.com index and gdata.youtube.com pages both respond as > > > expected, but all other youtube.com pages seem to respond with http > > > 402’s. Also there is no mention of any errors or maintenance on the > > > youtube.com index page that loads. > > > > What would cause such behavior? > > > > Thanks so much!

aforementioned sound file

Posted in Apple on August 31st, 2009 by Saba – Be the first to comment

On 31 Aug 2009, at 18:59, Greg Guerin wrote:

> Therefore, it *may* be copyright infringement, with or without the > qualifying phrase “unless the owner of the aforementioned sound file > (in this case Apple) says you can”, which further assumes that Apple > *is* the sound’s copyright owner, and has not yet been proved.

It’s pointless arguing about this on-list. The point, on which I think we both agree, is that taking assets from other peoples’ software (including Apple’s) is potentially a legal problem and people need to be aware of that.

Kind regards,

Alastair.

Markers below baseline in NSRulerView

Posted in Apple on August 31st, 2009 by Saba – Be the first to comment

Hi,

I have some problems with the NSRulerView that I hope to solve by this request.

The NSRulerView I am using is a horizontal ruler view in a NSScrollView.

In most examples seen in the developer documentation, the markers on the ruler are located above the baseline. In my opinon, this does not look very nice. Therefore I am triying to put the markes below the baseline of the ruler view. I think this is not standard, and it gives me a lot of troubles.

In other words, I would like to make a ruler view, that is like the ruler seen in the apple program “Pages”. Here the markers are located on the ruler itself.

So far, I am able to put the markers below the baseline by offseting them and hiding the area above the baseline. This makes it looks like the ruler in “Pages”.

The problems begin, when I want to move the markers.

First the handleMouseDown function is called. This works fine:

- (void)rulerView:(NSRulerView*)aRulerView handleMouseDown: (NSEvent*)event { [ruler trackMarker:marker withMouseEvent:event]; }

Hereafter, I expect these functions to be called.

- (BOOL)rulerView:(NSRulerView *)aRulerView didMoveMarker: (NSRulerMarker *)aMarker { return YES; }

- (CGFloat)rulerView:(NSRulerView *)aRulerView willMoveMarker: (NSRulerMarker *)aMarker toLocation:(CGFloat)location { return location; }

- (BOOL)rulerView:(NSRulerView *)aRulerView shouldMoveMarker: (NSRulerMarker *)aMarker { return YES; }

BUT, this will only happens, if the mouse pointer is above the baseline of the ruler.

If the mouse pointer is below the baseline, none of these delegates are called.

Any ideas for solving this are most welcome.

Kind regard,

Anders Lassen

Core Data? -beginUndoGrouping does not always increment -groupingLevel

Posted in Apple on August 31st, 2009 by Saba – Be the first to comment

In trying to eliminate extraneous undo groupings from my Core Data document-based applications, I’ve noticed a simple paradox maybe someone could explain.

In my persistent document’s -init, I replace its undo manager, and that of its managed object context, with my own which, for now, is a subclass of NSUndoManager. On occasion, while Core Data is flipping undo groups, I see that it somehow runs -beginUndoGrouping without the -groupingLevel being incremented as I expect. This is easily observed by overriding -beginUndoGrouping to do some logging:

- (void)beginUndoGrouping { NSInteger oldGroupingLevel = [self groupingLevel] ; [super beginUndoGrouping] ; NSString* alarm = ([self groupingLevel] == oldGl + 1) ? @” ” : @” !!!!” ; NSLog(@”2399 %s gl %d->%d%@ %p”,

CCDE List & question on scheduling 352-011

Posted in Cisco on August 31st, 2009 by Saba – Be the first to comment

I don’t think that this is officially a CCDE list, but AFAIK it’s also not a CCIE Security, Voice, SP, or Wireless list! Some of us are also pursuing the CCDE, so most of your questions could be answered here. There is also the CCDE area on the Cisco Learning Network. You may want to post your question there too.

As for the December practical, hopefully it’s not full yet. I haven’t tried to register as I still have my hopes up that I may have passed last week. Your best bet is to somehow get in touch with someone at VUE that actually knows what’s going on or wait until you get an official response, so keep trying.

On Mon, Aug 31, 2009 at 3:23 PM, Hank Yeomans wrote: > Hi folks, > > First…is this list now the CCIE/CCDE list or is there a separate one that I > haven’t seen? > > Second…Anyone try scheduling the CCDE Practical (352-011) for 12/8/09 and > fail at it? Their site keeps telling me over and over than I need the promo > code (which I put in everytime so no user error there). When I call Pearson > VUE they either, dont understand the exam, meaning they tell me something like > ‘this exam can be taken in any test ceter’ or they see the exam but can’t > register me or do anything about it. > > I’m stuck waiting for Pearson VUE to allow me to register for 352-011 and > before I give up I wanted to ask. > > Thanks, > > Hank Yeomans > CCIE No. 21174 > > > > _______________________________________________________________________ > > > > > > > >

AppleScript-Studio Digest, Vol 6, Issue 147

Posted in Apple on August 31st, 2009 by Saba – Be the first to comment

For me this is critical,

Chris www.macinchem.org

On 31 Aug 2009, at 20:00, applescript-studio-request@lists.apple.com wrote:

> Finally, it would be great to see guidelines on how to gradually and > wisely > transition an existing app. Say I have one with hundreds of interface > elements and thousands of lines of code. How do I implement new > features > and bug fixes with the AppleScriptObjC approach, but not mess with > older > Studio-based code/interface that already works OK. > > Thanks, > Craig > > > — > Dr. Craig Hunter

CCDE List & question on scheduling 352-011

Posted in Cisco on August 31st, 2009 by Saba – Be the first to comment

Hi folks,

First…is this list now the CCIE/CCDE list or is there a separate one that I haven’t seen?

Second…Anyone try scheduling the CCDE Practical (352-011) for 12/8/09 and fail at it? Their site keeps telling me over and over than I need the promo code (which I put in everytime so no user error there). When I call Pearson VUE they either, dont understand the exam, meaning they tell me something like ‘this exam can be taken in any test ceter’ or they see the exam but can’t register me or do anything about it.

I’m stuck waiting for Pearson VUE to allow me to register for 352-011 and before I give up I wanted to ask.

Thanks,

Hank Yeomans CCIE No. 21174

Number of registered users and videos

Posted in APIs on August 31st, 2009 by Saba – 1 Comment

Is there any way to discover the number of registered users in Youtube? I would also like to know the total number of videos if possible. Searching the api for * returns 1million results, i doubt there is only this amount of videos.

Flavio

SWFLoader Event.COMPLETE not triggering

Posted in Adobe on August 31st, 2009 by Saba – Be the first to comment

Hi,

While trying to load a Bitmap onto a SWFLoader the Event.COMPLETE event is not being triggered. The content is from another SWFLoader which loads an image from the web.

mySWFLoader.source = new Bitmap(Bitmap(someEvent.content).bitmapData);

but if I use a URL as source the complete event is triggered:

mySWFLoader.source = “http://example.com/123.jpg”;

Is there some kind of restriction while using Bitmap as source?

Cheers,