Search Results

Search found 12397 results on 496 pages for 'maybe'.

Page 23/496 | < Previous Page | 19 20 21 22 23 24 25 26 27 28 29 30  | Next Page >

  • MPMoviePlayerContentPreloadDidFinishNotification does not fire [iPhone]

    - by JOKe
    I'm running into a problem with the MPMoviePlayerContentPreloadDidFinishNotification notification. I've regisered to recieve the MPMoviePlayerContentPreloadDidFinishNotification notification and MPMoviePlayerPlaybackDidFinishNotification but the first one never fires. Is this bug in Firmware OS 3.0 ? maybe fixed in 3.1 ? or ? Because my divice and similator is 3.0 maybe this is a bug ? My code : ... [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(MovieDidLoad:) name:MPMoviePlayerContentPreloadDidFinishNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(MovieDidLoad:) name:MPMoviePlayerPlaybackDidFinishNotification object:nil]; ... -(void)MovieDidLoad:(NSNotification*)notification { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Notification Listener" message:@"Notification Listener invoked" cancelButtonTitle:@"Ok dude!" otherButtonTitles:nil]; [alert show]; [alert release]; } The MPMoviePlayerPlaybackDidFinishNotification is always fired but MPMoviePlayerContentPreloadDidFinishNotification is never fired. Any ideas ?

    Read the article

  • filling Bugzilla quip list

    - by Gerhard
    "Walking on water and developing software from a specification are easy if both are frozen." At the top of the Bugzilla page it prints a humorous/insightful quip. I have a list that I have been building up over the years as I encounter good one liners To brighten up my fellow developers days. What source did you use to fill your Bugzilla quip list. Online I have found only one interesting list. So maybe you can share some of the good quips from your bugzilla quiplist or maybe point me towards a interesting source online "I have an infinite capacity to do more work as long as you don't mind that my quality approaches zero - Dilbert."

    Read the article

  • General advice and guidelines on how to properly override object.GetHashCode()

    - by Svish
    According to MSDN, a hash function must have the following properties: If two objects compare as equal, the GetHashCode method for each object must return the same value. However, if two objects do not compare as equal, the GetHashCode methods for the two object do not have to return different values. The GetHashCode method for an object must consistently return the same hash code as long as there is no modification to the object state that determines the return value of the object's Equals method. Note that this is true only for the current execution of an application, and that a different hash code can be returned if the application is run again. For the best performance, a hash function must generate a random distribution for all input. I keep finding myself in the following scenario: I have created a class, implemented IEquatable<T> and overridden object.Equals(object). MSDN states that: Types that override Equals must also override GetHashCode ; otherwise, Hashtable might not work correctly. And then it usually stops up a bit for me. Because, how do you properly override object.GetHashCode()? Never really know where to start, and it seems to be a lot of pitfalls. Here at StackOverflow, there are quite a few questions related to GetHashCode overriding, but most of them seems to be on quite particular cases and specific issues. So, therefore I would like to get a good compilation here. An overview with general advice and guidelines. What to do, what not to do, common pitfalls, where to start, etc. I would like it to be especially directed at C#, but I would think it will work kind of the same way for other .NET languages as well(?). I think maybe the best way is to create one answer per topic with a quick and short answer first (close to one-liner if at all possible), then maybe some more information and end with related questions, discussions, blog posts, etc., if there are any. I can then create one post as the accepted answer (to get it on top) with just a "table of contents". Try to keep it short and concise. And don't just link to other questions and blog posts. Try to take the essence of them and then rather link to source (especially since the source could disappear. Also, please try to edit and improve answers instead of created lots of very similar ones. I am not a very good technical writer, but I will at least try to format answers so they look alike, create the table of contents, etc. I will also try to search up some of the related questions here at SO that answers parts of these and maybe pull out the essence of the ones I can manage. But since I am not very stable on this topic, I will try to stay away for the most part :p

    Read the article

  • PHP, Codeigniter: How to Set Date/Time based on users timezone/location globally in a web app?

    - by Abs
    Hello all, I have just realised if I add a particular record to my MySQL database - it will have a date/time of the server and not the particular user and where they are located which means my search function by date is useless! As they will not be able to search by when they have added it in their timezone rather when it was added in the servers timezone. Is there a way in Codeigniter to globally set time and date specific to a users location (maybe using their IP) and every time I call date() or time() that users timezone is used. What I am actually asking for is probably how to make my application dependent on each users timezone? Maybe its better to store each users timezone in their profile and have a standard time (servers time) and then convert the time to for each user? Thanks all

    Read the article

  • Making an svg image object clickable with onclick, avoiding absolute positioning

    - by user256410
    I have tried to change the images on my site from to svg, changing img tags to embed and object tags(standard procedure, i think). But, implementing the onclick function, which previously was contained in the img tag is proving most difficult. I found onclick had no effect when placed inside the object or embed tag. So, I made a div exclusively for the svg, and placed onclick in this div tag. But, no effect unless visitor clicks on the edges/padding of the image. I have read about overlaying a div, but am trying to avoid using absolute positioning, or specifying positions at all. Maybe there's a way to do it without specifying postions? Or maybe theres another way to apply onclick to a svg. Has anyone encountered this problem? Questions and suggestions are welcome.

    Read the article

  • What are modern and old compilers written in?

    - by ulum
    As a compiler, other than an interpreter, only needs to translate the input and not run it the performance of itself should be not that problematic as with an interpreter. Therefore, you wouldn't write an interpreter in, let's say Ruby or PHP because it would be far too slow. However, what about compilers? If you would write a compiler in a scripting language maybe even featuring rapid development you could possibly cut the source code and initial development time by halv, at least I think so. To be sure: With scripting language I mean interpreted languages having typical features that make programming faster, easier and more enjoyable for the programmer, usually at least. Examples: PHP, Ruby, Python, maybe JavaScript though that may be an odd choice for a compiler What are compilers normally written in? As I suppose you will respond with something low-level like C, C++ or even Assembler, why? Are there compilers written in scripting languages? What are the (dis)advantages of using low or high level programming languages for compiler writing?

    Read the article

  • The body gets displaced (and part of the content disappears) on ie7

    - by diego
    I have been searching for a way to fix this problem for a while now. It seems something could be wrong on the javascript, or maybe it has something to do with the positioning. This page http://www.medspilates.cl/ works fine on FF, on Chrome, on Safari and on IE8, but on ie7 it doesnt, the body gets displaced to the right and the main content disappears, it's also happening on ie6 (it didnt but now it does). Sorry to post the full page but i can't pin point the exact problem except maybe the function i'm using for positioning $(document).ready(function(){var height = $(window).height(); $('#menu').css('margin-top', $(window).height() - $(window).height() /4) $('#post1').css('margin-left', $(window).width() - $(window).width() /1.125) }) any help would be apreciated since I just cant find the answer.

    Read the article

  • Technique for ensuring HTML- and URL-encoding

    - by JW
    Has anyone implemented a good template system for ensuring that output is properly HTML-encoded where it makes sense? Maybe even something that recognizes when output should be URL-encoded or JSON-encoded instead? The lazy approach — just encoding all inputs — causes problems when you want to send those inputs to a database, or to a block of JavaScript code. So something a little smarter is needed. The tedious approach — putting the proper encoding function around each piece of data on the template — works, but it's easy for developers to forget to do it. Is there a good approach that makes it easy for developers, and ensures that the right encoding is done? I was listening to one of the SO podcasts, and Joel tossed out an idea about using typed data to enforce a difference between HTML-encoded strings and non-encoded strings. Maybe that could be a starting point. I'm looking more for a strategy than for an implementation in a particular language (although I'd be happy to hear about implementations that already exist and work).

    Read the article

  • Listening to the iPhone mic with SCListener and playing music at the same time: how?

    - by Eamon Ford
    Hello, I am using Stephen Celis' SCListener class (for iPhone) to "listen" from the microphone, but I also need to be playing music at the same time using the MediaPlayer framework. However, when I start listening with SCListener, the music fades out and stops. I have set the kAudioSessionCategory_PlayAndRecord property on the audio session in SCListener, which should allow me to play audio and record audio at the same time, but as far as I can tell it has no effect. I'm confused, because according to other developers' results, this works just fine, but not for me. I'm thinking maybe the kAudioSessionCategory_PlayAndRecord property allows you to play sound and record if you're using the AVAudioPlayer framework or something to play the sound, but maybe not the MediaPlayer framework? This would be a problem for me because I need to play music from the user's iPod library, which, as far as I know is only possible to do using the MediaPlayer framework. Does anyone know how I can get around this problem? Thanks in advance!

    Read the article

  • problem FFmpeg avcodec_register_all iphone

    - by samantha
    Hi, I need to use ffmpeg for encodig. I have all *.a. My problem is tha when I use avcodec_register_all() xcode give me this error: "_deflate", referenced from: _encode_frame in libavcodec.a(pngenc.o) _encode_frame in libavcodec.a(pngenc.o) _encode_frame in libavcodec.a(pngenc.o) _encode_frame in libavcodec.a(lclenc.o) _encode_frame in libavcodec.a(lclenc.o) _encode_frame in libavcodec.a(zmbvenc.o) "_deflateEnd", referenced from: _flashsv_encode_end in libavcodec.a(flashsvenc.o) _encode_frame in libavcodec.a(pngenc.o) _encode_end in libavcodec.a(lclenc.o) _encode_end in libavcodec.a(zmbvenc.o) "_compress", referenced from: _encode_strip in libavcodec.a(tiffenc.o) (maybe you meant: _mp3_header_compress_bsf$non_lazy_ptr, _mp3_header_compress_bsf ) "_vorbis_analysis_init", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_lame_set_bWriteVbrTag", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_lame_set_VBR", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_crc32", referenced from: _png_write_chunk in libavcodec.a(pngenc.o) _png_write_chunk in libavcodec.a(pngenc.o) _png_write_chunk in libavcodec.a(pngenc.o) "_x264_encoder_headers", referenced from: _X264_init in libavcodec.a(libx264.o) "_lame_encode_buffer", referenced from: _MP3lame_encode_frame in libavcodec.a(libmp3lame.o) "_x264_encoder_encode", referenced from: _X264_frame in libavcodec.a(libx264.o) "_vorbis_comment_add_tag", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_theora_encode_tables", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_vorbis_block_init", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_x264_nal_encode", referenced from: _X264_frame in libavcodec.a(libx264.o) _X264_init in libavcodec.a(libx264.o) "_uncompress", referenced from: _decode_frame in libavcodec.a(cscd.o) _decode_frame in libavcodec.a(dxa.o) _svq3_decode_init in libavcodec.a(h264.o) _decode_frame in libavcodec.a(tiff.o) "_xvid_plugin_2pass2", referenced from: _ff_xvid_rate_control_init in libavcodec.a(libxvid_rc.o) _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o) _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o) _ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o) _xvid_plugin_2pass2$non_lazy_ptr in libavcodec.a(libxvidff.o) (maybe you meant: _xvid_plugin_2pass2$non_lazy_ptr) "_lame_set_num_channels", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_lame_set_VBR_q", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_vorbis_analysis_buffer", referenced from: _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) "_compress2", referenced from: _flashsv_encode_frame in libavcodec.a(flashsvenc.o) "_inflateEnd", referenced from: _decode_frame in libavcodec.a(pngdec.o) _flashsv_decode_end in libavcodec.a(flashsv.o) _decode_end in libavcodec.a(lcldec.o) _decode_end in libavcodec.a(tscc.o) _decode_end in libavcodec.a(zmbv.o) "_lame_encode_buffer_interleaved", referenced from: _MP3lame_encode_frame in libavcodec.a(libmp3lame.o) "_theora_comment_clear", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_x264_encoder_close", referenced from: _X264_close in libavcodec.a(libx264.o) "_inflate", referenced from: _decode_frame in libavcodec.a(pngdec.o) _flashsv_decode_frame in libavcodec.a(flashsv.o) _flashsv_decode_frame in libavcodec.a(flashsv.o) _decode_frame in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(tscc.o) _decode_frame in libavcodec.a(zmbv.o) "_theora_comment_init", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_vorbis_info_init", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "deflateInit2", referenced from: _encode_frame in libavcodec.a(pngenc.o) "_deflateReset", referenced from: _encode_frame in libavcodec.a(lclenc.o) _encode_frame in libavcodec.a(zmbvenc.o) "_theora_encode_init", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_lame_get_framesize", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_vorbis_analysis", referenced from: _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) "_inflateReset", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) _decode_frame in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(tscc.o) _decode_frame in libavcodec.a(zmbv.o) "_lame_set_disable_reservoir", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_inflateSync", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) "_vorbis_info_clear", referenced from: _oggvorbis_encode_close in libavcodec.a(libvorbis.o) "_theora_encode_header", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_theora_clear", referenced from: _encode_close in libavcodec.a(libtheoraenc.o) "_theora_info_clear", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_xvid_plugin_lumimasking", referenced from: _xvid_plugin_lumimasking$non_lazy_ptr in libavcodec.a(libxvidff.o) (maybe you meant: _xvid_plugin_lumimasking$non_lazy_ptr) "_theora_encode_comment", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_lame_set_brate", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_theora_encode_YUVin", referenced from: _encode_frame in libavcodec.a(libtheoraenc.o) "_lame_init", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_lame_set_mode", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "deflateInit", referenced from: _encode_init in libavcodec.a(lclenc.o) _encode_init in libavcodec.a(zmbvenc.o) "_vorbis_encode_setup_managed", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_lame_set_quality", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_vorbis_analysis_blockout", referenced from: _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) "_vorbis_analysis_wrote", referenced from: _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) _oggvorbis_encode_close in libavcodec.a(libvorbis.o) "inflateInit", referenced from: _decode_frame in libavcodec.a(pngdec.o) _flashsv_decode_init in libavcodec.a(flashsv.o) _decode_init in libavcodec.a(lcldec.o) _decode_init in libavcodec.a(tscc.o) _decode_init in libavcodec.a(zmbv.o) "_vorbis_comment_clear", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_vorbis_bitrate_addblock", referenced from: _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) "_lame_set_in_samplerate", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_vorbis_encode_ctl", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_x264_param_default", referenced from: _X264_init in libavcodec.a(libx264.o) "_theora_info_init", referenced from: _encode_init in libavcodec.a(libtheoraenc.o) "_vorbis_encode_setup_init", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_vorbis_comment_init", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_vorbis_bitrate_flushpacket", referenced from: _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) _oggvorbis_encode_frame in libavcodec.a(libvorbis.o) "_xvid_plugin_single", referenced from: _xvid_plugin_single$non_lazy_ptr in libavcodec.a(libxvidff.o) (maybe you meant: _xvid_plugin_single$non_lazy_ptr) "_xvid_global", referenced from: _ff_xvid_encode_init in libavcodec.a(libxvidff.o) "_xvid_encore", referenced from: _ff_xvid_encode_close in libavcodec.a(libxvidff.o) _ff_xvid_encode_init in libavcodec.a(libxvidff.o) _ff_xvid_encode_frame in libavcodec.a(libxvidff.o) "_vorbis_encode_setup_vbr", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_lame_set_out_samplerate", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_lame_init_params", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) "_vorbis_block_clear", referenced from: _oggvorbis_encode_close in libavcodec.a(libvorbis.o) "_lame_encode_flush", referenced from: _MP3lame_encode_frame in libavcodec.a(libmp3lame.o) "_x264_encoder_open", referenced from: _X264_init in libavcodec.a(libx264.o) "_lame_close", referenced from: _MP3lame_encode_init in libavcodec.a(libmp3lame.o) _MP3lame_encode_close in libavcodec.a(libmp3lame.o) "_vorbis_dsp_clear", referenced from: _oggvorbis_encode_close in libavcodec.a(libvorbis.o) "_vorbis_analysis_headerout", referenced from: _oggvorbis_encode_init in libavcodec.a(libvorbis.o) "_theora_encode_packetout", referenced from: _encode_frame in libavcodec.a(libtheoraenc.o) _encode_close in libavcodec.a(libtheoraenc.o) ld: symbol(s) not found collect2: ld returned 1 exit status Also whene i use [code] codec = avcodec_find_encoder(CODEC_ID_H264); //CODEC_ID_H264 //codec = avcodec_find_encoder_by_name("mpeg1"); if (!codec) { fprintf(stderr, "codec not found\n"); exit(1); }[/code] codec is always null where is my error? best regards

    Read the article

  • How to access MyProject.MySettings.Default.SomeSetting from xaml?

    - by Shimmy
    I have defined a StringCollection in the Project Settings. I want to use the values in a ComboBox. Is there a way to access it xamly? I tried: <CollectionViewSource Source="{x:Static src:MySettings.Default.MyCollection}" /> <CollectionViewSource x:Key="RoomSections" Source="{x:Static src:MySettings.Default.RoomSections}" /> *src is the xmlns of the project It says: "Type src:MySettings.Default was not found". The thing is that MySettings is a class that offers a Default property which is a thread-safe instance of MySettings, I really want to get the collection from the Default property and not by instantiating a new on. Is there other ways I am not aware of, maybe ObjectDataProvider can access static objects? I thought, maybe I can make in the App.xaml a global resource that return MySettings.Default which is an instance of the MySettings class, and then access all its properties, I will try that out, but I prefer the easy way.

    Read the article

  • Java Concurrency: CAS vs Locking

    - by Hugo Walker
    Im currently reading the Book Java Concurrency in Practice. In the Chapter 15 they are speaking about the Nonblocking algorithms and the compare-and-swap (CAS) Method. It is written that the CAS perform much better than the Locking Methods. I want to ask the people which already worked with both of this concepts and would like to hear when you are preferring which of these concept? Is it really so much faster? Personally for me the usage of Locks is much clearer and easier to understand and maybe even better to maintain. (Please correct me if I am wrong). Should we really focus creating our concurrent code related on CAS than Locks to get a better performance boost or is sustainability a higher thing? I know there is maybe not a strict rule, when to use what. But I just would like to hear some opinions, experiences with the new concept of CAS.

    Read the article

  • VBA: Read file from clipboard

    - by ReturningTarzan
    I'm trying to load a file in a VBA macro that has been copied from, say, an Explorer window. I can easily get the data from the clipboard using DataObject::GetFromClipboard, but the VBA interface to DataObject doesn't seem to have methods for working with any other formats than plain text. There are only GetText and SetText methods. If I can't get a file stream directly from the DataObject, the filename(s) would also do, so maybe GetText could be forced to return the name of a file placed on the clipboard? There is very little documentation to be found for VBA anywhere. :( Maybe someone could point me to an API wrapper class for VBA that has this sort of functionality?

    Read the article

  • Gecko/Firefox support for HTML5 Notifications

    - by jAndy
    Hi Folks, I'm wondering if there is any build-in support for the HTML5 Notification feature in Gecko browsers so far? Maybe some hidden developer thingy ? I'm aware of WebKits window.webkitNotifications which works great, so, is there a Firefox implementation ? update After searching and reading some w3c HTML5 specs, I'm maybe a little bit off here. I can't find any Notification feature anywhere there. Am I facing wrong facts here? Is that just a "very own webkit implementation" ?

    Read the article

  • How do you mark class with TypeConverter that is not in referenced solution?

    - by Greg McGuffey
    I have a class that I've written a TypeConverter for. I want to keep the TypeConverter separate from the main solution, as it is only needed at design time and have an extensibility project now that contains the TypeConverter. Thus, when I deploy, I don't need to deploy the extensibility assembly at all. However, I can't figure out the appropriate string to use in the attribute to actually connect the class to the converter. Note I can't use this: [TypeConverter(typeof(MyConverter)] because MyConverter is in a project that isn't referenced. I need to use the string overload, but can't figure out what to use: [TypeConverter("what the heck goes in here!")] I think I need maybe a path to the assembly, maybe a GUID, the class name...just not sure...

    Read the article

  • What useful GDB scripts have you used/written?

    - by nik
    People use gdb on and off for debugging, of course there are lots of other debugging tools across the varied OSes, with and without GUI and, maybe other fancy IDE features. I would like to know what useful gdb scripts you have written and liked. While, I do not mean a dump of commands in a something.gdb file that you source to pull out a bunch of data, if that made your day, go ahead and talk about it. Lets think conditional processing, control loops and functions written for more elegant and refined programming to debug and, maybe even for whitebox testing Things get interesting when you start debugging remote systems (say, over a serial/ethernet interface) And, what if the target is a multi-processor (and, multithreaded) system Let me put a simple case as an example... Say, A script that traversed serially over entries to locate a bad entry in a large hash-table that is implemented on an embedded platform. That helped me debug a broken hash-table once.

    Read the article

  • How do I automate navigation to a website that requires authentication?

    - by Wiz
    Here's what I'm trying to achieve. I would like to write a script that will navigate to a website that requires me to be authenticated as myself, say Facebook, Live Spaces, Twitter or any other, and then have that script search for certain information on one of the pages of the website. I've done something similar in the past with the Windows.Forms WebBrowser control, which is a full blown implementation of IE that can be controlled through code and will store whatever cookies you get once you're authenticated, but it was very unfriendly to modify and I was hoping to use a scripting language instead, maybe Powershell or something of that sort. Are there maybe some good tutorials about this out there on the web? Thanks!

    Read the article

  • How to CompareTo two Object without known about their real type

    - by Kamil
    I have to implement a one linked list but it should put object in appropriate position. Everything was OK when I use it in conjunction with specific class, but when I tried make it universal and argument of method insert was Object some problem appeared. When I want to input Object in right position I should use CompareTo method, but there isn't method in Object class! The problem is how to compare two object elements without known about their real types. Maybe I should use generic class type? But what about CompareTo? Or maybe combine with Element class and place CompareTo there? I suppose it is feasible. :) public void insert(Object o) { Element el = new Element(o); // initializing and setting iterators while(!it.isDone() && ((it.current().getValue())).CompareTo(o)<0) // it.current() returns Element of List { //move interators } //... }

    Read the article

  • UITableViewCellStyleDefault image size

    - by Rob Bonner
    Hello all, I am getting some odd behavior from stock table cells, or maybe not odd, maybe I am making some assumptions. I create the cells as follows: cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; Then I assign an image to the default imageView property. My image usually comes in from a user, so it might be larger than the default size. To take care of this I: [cell.imageView setContentMode:UIViewContentModeScaleAspectFit]; which I expected to scale the image for me within the control, but in reality, the images are all over the map. So, is there a proper way to constrain the image in stock cell types? Thanks in advance!

    Read the article

  • Google Bot information?

    - by Bub Bradlee
    Does anyone know any more details about google's web-crawler (aka GoogleBot)? I was curious about what it was written in (I've made a few crawlers myself and am about to make another) and if it parses images and such. I'm assuming it does somewhere along the line, b/c the images in images.google.com are all resized. It also wouldn't surprise me if it was all written in Python and if they used all their own libraries for most everything, including html/image/pdf parsing. Maybe they don't though. Maybe it's all written in C/C++. Thanks in advance-

    Read the article

  • Wordpress auto-generated "canonical" links - how to add a custom URL parameter?

    - by kiko
    Hello - Does anyone know how to modify the Wordpress canonical links to add a custom URL parameter? I have a Wordpress site with a page that queries a separate (non-Wordpress) database. I passed the URL parameter "pubID" to display individual books and it is working OK. Example: http://www.uglyducklingpresse.org/catalog/browse/item/?pubID=63 But the individual book pages are not showing up properly in Google - the ?pubID parameter is stripped out. I think maybe this is because all the item pages have the same auto-generated "canonical" URL link tag in the source - one with the "pubID" parameter stripped out. Example: link rel='canonical' href='http://www.uglyducklingpresse.org/catalog/browse/item/' Is there a way to perhaps edit .htaccess to add a custom URL parameter to Wordpress, so that the parameter is not stripped out by permalinks and the "canonical" links? Or maybe there's another solution ... Thank you for any ideas!

    Read the article

  • Run a PHP-script from a PHP-script without blocking

    - by Nicklas Ansman
    I'm building a spider which will traverse various sites and data mining them. Since I need to get each page separately this could take a VERY long time (maybe 100 pages). I've already set the set_time_limit to be 2 minutes per page but it seems like apache will kill the script after 5 minutes no matter. This isn't usually a problem since this will run from cron or something similar which does not have this time limit. However I would also like the admins to be able to start a fetch manually via a HTTP-interface. It is not important that apache is kept alive for the full duration, I'm, going to use AJAX to trigger a fetch and check back once in a while with AJAX. My problem is how to start the fetch from within a PHP-script without the fetch being terminated when the script calling it dies. Maybe I could use system('script.php &') but I'm not sure it will do the trick. Any other ideas?

    Read the article

  • Should we seal Singletons? Should we try to inherit from Singletons in the first place?

    - by devoured elysium
    Should a Singleton class be allowed to have children? Should we seal it? What are the pro's and con's? For being able to inherit from a Singleton class, we would have to make the constructor protected instead of private. Now, that will be fine in c#, but the protected word in java gives both child-classes and package-classes access to the constructor. Which means not only classes that inherit from our Singleton can access the constructor but other classes in the same package can do it. I'm a bit confused about all this facts. Maybe I am making a big fuss about nothing to worry about too much? Until now, I never had any necessity of trying to inherit from a Singleton, so maybe this is just an academic question! Thanks

    Read the article

< Previous Page | 19 20 21 22 23 24 25 26 27 28 29 30  | Next Page >