Search Results

Search found 4540 results on 182 pages for 'hey ho'.

Page 26/182 | < Previous Page | 22 23 24 25 26 27 28 29 30 31 32 33  | Next Page >

  • Paperclip validates_attachment_content_type for mp3 triggered when attaching mp3

    - by zoltarSpeaks
    Hey everyone, Struggling to workout when i add the following validtion to my Voice model using paperclip, it is being triggered when i try and upload an mp3: class Voice < ActiveRecord::Base has_attached_file :clip validates_attachment_presence :clip validates_attachment_content_type :clip, :content_type => [ 'application/mp3', 'application/x-mp3', 'audio/mpeg', 'audio/mp3' ], :message => 'file must be of filetype .mp3' validates_attachment_size :clip, :less_than => 10.megabytes validates_presence_of :title end I have tried a number of different mp3 files but none of them seem to upload because the validation is failing.

    Read the article

  • Converting sql query to EF query - nested query in from

    - by vdh_ant
    Hey guys Just wondering how the following sql query would look in linq for Entity Framework... SELECT KPI.* FROM KeyPerformanceIndicator KPI INNER JOIN ( SELECT SPP.SportProgramPlanId FROM SportProgramPlan PSPP INNER JOIN SportProgramPlan ASPP ON (PSPP.SportProgramPlanId = @SportProgramPlanId AND PSPP.StartDate >= ASPP.StartDate AND PSPP.EndDate <= ASPP.EndDate ) AS SPP ON KPI.SportProgramPlanId = SPP.SportProgramPlanId Cheers Anthony

    Read the article

  • MPVolumeView, avoid displaying "No Volume Available"

    - by Emil
    Hey. I have a project with a MPVolumeView in it. It is set up, and it works, the only thing is that when I mute the device, the text "No Volume Available" comes up instead of the MPVolumeView. The volumeView is initialized in the view volumeBounds, with that view's bounds. MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:volumeBounds.bounds] autorelease]; [volumeBounds addSubview:volumeView]; [volumeView sizeToFit]; Thanks :)

    Read the article

  • MPVolumeView, avoid displaying "No Volume Available"

    - by Emil
    Hey. I have a project with a MPVolumeView in it. It is set up, and it works, the only thing is that when I mute the device, the text "No Volume Available" comes up instead of the MPVolumeView. The volumeView is initialized in the view volumeBounds, with that view's bounds. MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:volumeBounds.bounds] autorelease]; [volumeBounds addSubview:volumeView]; [volumeView sizeToFit]; Thanks :)

    Read the article

  • Set textbox focus in mobile safari

    - by Morgan
    Hey, i was wondering how to set the focus to a textbox in mobile safari. I've tried document.myForm.myTextArea.focus(); which works in regular safari, but it does not seem to work in mobile safari. To clarify, i want to set focus to a text box as soon as the user loads a page, and have the iphone keyboard pop up.

    Read the article

  • How often are design patterns used in the workplace using PHP

    - by Metropolis
    Hey everyone, I read a book awhile back called PHP Design Patterns and Practice, and ever since then I have been using design patterns whenever I think they are needed. However it just occurred to me that maybe most companies do not use design patterns very often for PHP, or at all. What I was wondering is, do most companies use design patterns to help improve code flexibility? And if so, what are the best design patterns to learn for PHP? Thanks for any help on this, Metropolis

    Read the article

  • UISegmentedControl with custom prev/next buttons

    - by chacha
    Hey, I am trying to reach the following result here I know how to configure the segmented control but I was wondering how to get the same icons ... I tried to do it with photoshop but I just can't manage to achieve the same quality ! I heard there is a possibility to use the "Apple symbols font" available on Mac (which contains these icons), could you show me how to get these symbols ? Or if you have a link to these precise icons (for free) It would be nice too. Thank you, ChaCha

    Read the article

  • AppStore Rank positioning

    - by cvista
    Hey Does anyone know how apple choose the position of apps in the appstore? i have an app that has been there longer than someone who blatantly ripped my idea. mines free - theirs cost $1.19 yet theirs shows second in the list when you search for the main key word and mines not even in the first page! the rest of the apps have nothing to do with the keyword!! w://

    Read the article

  • own .NET platform hosting

    - by netmajor
    Hey, What should I do to host on my own pc .NET web application(ASP.NET, Silverlight) with support Sql Server and services(RIA, WCF) ? What should I install and configure so others can see my webs in the internet ? It's some administration API which I can install on pc and by which I can upload my app like in professional hosting? That for help ;)

    Read the article

  • BlueJ, NetBeans, Java

    - by Samuel
    Hey: I just started with Java and downloaded Netbeans, i kind of like it, but i hear a lot about BlueJ and i was wondering wether if downloading and using BlueJ would be of any use when im happy with Netbeans .. or simply tell me if i am comparing two things that aren't comparable and should coexist :D thanks, Samuel

    Read the article

  • Add jpeg image to another in C#

    - by o-logn
    Hey, I have a two jpeg files. One is 1024x768 in size and the other is 64x64. I'm creating a console application and would like to add the 64x64 image at location (X,Y) into the 1024x768 image. How can I do this in memory (since I'm not using winforms and would like this to be quite fast)? I've converted the larger image into bytes using File.ReadAllBytes, but I'm not sure how to insert the smaller image at a particular location. Thanks for any help

    Read the article

  • SSRS export to Excel UNFORMATTED

    - by mjmcloug
    Hey, I'm looking into SSRS with intention of exporting a lot of the reports to excel. The problem is that when you export it changes cell sizes and removes borders to try and keep the original report format. Is there anyway to stop this happening? So that the report exports to excel with the "usual" excel formatting? If it requires any coding that's fine as most of my reports will be run from C# code. Thanks Mat

    Read the article

  • Java Graphics2D DrawString....

    - by user69514
    Hey guys I have a little issue here. I have a panel where I am drawing a string. This is a game so I keep redrawing the score in order to update it. However when I draw it again it is drawn on top of the previous score so it looked all garbled up. Any ideas how to fix this? comp2d.drawString(GetScore(Score),ScoreX,ScoreY);

    Read the article

  • iPhone Datepicker plays 'tick' sound

    - by DecodingSand
    Hey guys, Does any of you know what event I can tap into on the DatePicker when the wheel moves. I want to play a sound (got sound code) as the wheel spin. Just like the timer set picker in Apple's clock app. All that is there is a single event for ValueChanges which only fires once, at the end of a wheel spin. Thanks in advance

    Read the article

  • Linq to SQL - Invalid attempt to call FieldCount when reader is closed

    - by Justin
    Hey, Has anyone seen this error before when making a Linq to SQL call? Invalid attempt to call FieldCount when reader is closed Here's the code: public static MM GetDeviceConfiguration(long ipAddress) { string sprocName = ConfigurationBL.ReadSproc("ReadDeviceConfiguration"); return db.ExecuteQuery<MM>("exec {0} @IPAddressNumber = {1}", sprocName, ipAddress).FirstOrDefault(); } Thanks, Justin

    Read the article

  • Hypercom P2100 pinpad programming

    - by Xience
    Hey guys, i have got a Hypercom P2100 pinpad that i need to incorporate in my POS app. I tried to access it through hyperterminal but didn't succeed. It is connected to my machine through a USB to Serial interface, could that be the source of problem. In addition, upon googling the programming samples that i could find just showed, at max, reading data on serial port but nothing on programming the pinpad itself. Any help is greatly appreciated.

    Read the article

  • Best way to get ints from a string with whitespace?

    - by befall
    Hey all, I know this is simple, I just can't recall the best way to do this. I have an input like " 5 15 " that defines the x and y of a 2D vector array. I simply need those two numbers into int col and int row. What's the best way to do this? I was attemping stringstreams, but can't figure out the correct code. Thanks for any help!

    Read the article

  • Face Recognition in AS3

    - by dontPanic
    Hey all, I have been working on a project which involves Marilena(project that ports Face Detection part of OPENCV to ActionScript3). Right now I can take the faces and keep them as byteArrays. I am working on Flash Builder 4. I want to add Face Recognition part either. I will identify the faces by connecting to a database but I couldnt figure out how to do it without OpenCV on flash.You guys have any idea???

    Read the article

< Previous Page | 22 23 24 25 26 27 28 29 30 31 32 33  | Next Page >