I am looking to create a Custom UIButton (not subclass) progrmatically, I would like it to have a background image that will stretch as the UIButton's width increases. How would I do this?
Hi,
I want to show a custom animation when pushing a view controller: I would like to achieve something like an "expand" animation, that means the new view expands from a given rectangle, lets say [100,100 220,380] during the animation to full screen.
Any suggestions where to start, respectively any documents, tutorials, links? :)
heinrich
I want to create a video dvd ( no menus, just "plug and play" ) from a few video files. I`m doing it like this:
ffmpeg -i sample-media/hellboy-2.wmv -y -target ntsc-dvd sample-media-to-mpeg/hellboy-2.vob
dvdauthor -o sample-dvd -x dvdauthor-settings.xml
mkisofs -dvd-video -o hellboy-2-trailers.iso sample-dvd/
where "dvdauthor-settings.xml" is: link.
But when I try to play the iso file in windows it says:
Windows Media Player cannot play the DVD because the disc prohibits playback in your region of the world. You must obtain a disc that is intended for your geographic region.
When I open the *.IFO file with IfoEdit it says that all world regions are unabled.
Can someone tell me why is this happening? ( maybe the whole process of creating the *.iso file is wrong? )
I'm loading custom user controls into my form using reflection.
I would like all my user controls to have a "Start" and "End" method so they should all be like:
public interface IStartEnd
{
void Start();
void End();
}
public class AnotherControl : UserControl, IStartEnd
{
public void Start()
{ }
public void End()
{ }
}
I would like an interface to load through reflection, but the following obviously wont work as an interface cannot inherit a class:
public interface IMyUserControls : UserControl, IInit, IDispose
{
}
Hi, I'm looking for a good way to package a Python application that is going to be deployed on a Debian server.
The application itself depends on some modules which are not included in base Debian repository, although they might be in the future. This creates some problems... I depend on some patches to those modules. If the original module gets installed one day, the application will break. However if I install everything I need in a virtualenv just for that application, I lose the ability to upgrade Python itself (in case of security updates).
The third option would be to rename my fork of the upstream module and just treat it as a completely separate one. But that would mean changing the code (not much work, but it wouldn't be that clean / universal anymore).
Are there any other options that I missed? Are there any pros / cons I didn't see in the solutions above?
I'm trying to set a custom validation error with multiple params in Play!, but it seems like my validation parameters are not rendered correctly.
I have defined in messages:
validation.customerror=This is first param "%s", and this is the second "%s"
The in my code I execute:
validation.addError("","validation.customerror", "FIRST", "SECOND");
And I get:
This is first param "", and this is the second "FIRST"
Thoughts?
Let's say I am writing installation script for the program which contains executable file and shared library. By default, this script places executable to /usr/local/bin, and shared library to /usr/local/lib. In this case my program may be executed by any user by typing its name in the command line.
Suppose that user selects custom installation directory, like ~/myprogram/. Is it user's responsibility to ensure that my program may be executed, or my installation script must do this?
So, you know how the primitive of type char has the size of 1 byte? How would I make a primitive with a custom size? So like instead of an in int with the size of 4 bytes I make one with size of lets say 16.
Is there a way to do this? Is there a way around it?
Is there a way to create custom collapsable code regions in Xcode similar to how Visual Studio can fold around #region/#endregion blocks?
It would be nice to throw all autogenerated content into a region that I can fold away until I need to look at it. #pragma mark doesn't seem to do the trick.
Hi,
I'm wondering where is the ideal place to store custom permissions in my web applications.
For example I have the following permissions:
AdminPermission
ReadPermission
WritePermission
At the moment I store these in the static utilities class as the constant string type objects.
Thank you
is there any way to use custom border by css or can make by JavaScript or jquery.
i want to use a different style of border.
like we use
border-style:dashed;
Hi,
I am writing a custom installer in C#.
Can you tell me an easy way to check if the machine has .NET version installed [even 2.0].
In cases where it is not installed, my app doesn't even start.
Thanks
Hello,
I am creating an custom preference which contains an EditText.
The problem is when user clicks the EdiText for input suggestion box opens up and EditText looses focus. When EditText is clicked again for input, no problem occurs until 'blank space' is entered, which results in suggestion box and hence loss of focus.
What I mean by suggestion box is the box which pops up when entering text in EditText
Hi,
I want to use authentication web services that is exposed by my legacy client. But I cannot copy those user information in to liferay database. Can any one help me to write a custom authentication service OR a hook/plugin to reuse my own implementation for authentication?
Regards
Vishal G Pillai
Anyone know how to add a custom option select filter to a jQuery DataTable?
Basically, like this example page but instead of having min/max text fields... change them to select options.
Hi,
I'm creating a custom WinForms TextBox control, like this:
class MyTest : TextBox
{
protected override void OnEnter(EventArgs e)
{
this.BackColor = Color.Yellow;
}
protected override void OnLeave(EventArgs e)
{
this.BackColor = Color.White;
}
}
When I build the project, I cannot see the control. Can anyone explain why not?
Thanks in advance.
I have created a progress bar custom control and would like to embed this into a list which can be sorted and placed on a windows form using .Net 2.0.
What is the best approach for this?
Is it possible to just add it to a ListView as a subitem? Is there a better way to achieve this? I want it to be as lightweight as possible.
I have setup a local intranet in my office using IIS7 (Windows 7 Machine), currently it can be accessed through the PC's static IP, however I would like it so that internally it can just be accessed through an easier method, e.g typing in http://intranet (or something similar).
There are over 60 PC's int he office, so individually updating Host files on the PC's is not really ideal.
We don't need it to be accessible from the outside world (I.e, we don't care/want it to be an Extranet).
Any tips?
Is it possible to use custom view as a section indexer? I.e. make it more transparent and use images instead of characters?
Is it possible to enable/disable SectionIndexer popup on demand without disabling FastScroll feature?
Hey all,
I have a printer set up using CUPS (FujiXerox Document Center 1100), it is named DC1100.
There are capabilities of the printer that are not shows as options of the printer as listed by:
lpoptions -l -d DC1100
The output is below:
PrintoutMode/Printout Mode: Draft *Normal High Photo
InputSlot/Media Source: Upper Lower MultiPurpose LargeCapacity Manual *Standard
PageSize/Page Size: *Letter A4 C5 C6 COM10 DL Executive Legal Monarch Statement
PageRegion/PageRegion: Letter A4 C5 C6 COM10 DL Executive Legal Monarch Statement
STP_Brightness/Brightness: 0.00 0.02 0.04 [snip] 2.00
STP_Contrast/Contrast: 0.00 0.05 0.10 0.15 [snip] 4.00
STP_ColorCorrection/Color Correction: Accurate Bright Density [snip] Uncorrected
STP_DitherAlgorithm/Dither Algorithm: Adaptive EvenTone Fast [snip] VeryFast
STP_EnableDensity/Density Enable: *Disabled Enabled
STP_Density/Density Value: 0.1 0.2 0.3 0.4 [snip] 8.0
STP_EnableGamma/Composite Gamma Enable: *Disabled Enabled
STP_Gamma/Composite Gamma Value: 0.10 0.15 0.20 0.25 [snip] 4.00
STP_LinearContrast/Linear Contrast Adjustment: *False True
STP_Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble *None
Resolution/Rendering Resolution: *FromPrintoutMode 150x150dpi 300x300dpi 600x600dpi
OutputType/Output Type: *FromPrintoutMode BlackAndWhite Grayscale
STP_ImageType/Image Type: *FromPrintoutMode Photo Graphics LineArt None Text TextGraphics
STP_Resolution/Resolution: *FromPrintoutMode 150dpi 300dpi 600dpi
I am particularly looking for options for:
"secure print" (possibly by setting a mode and setting a username)
stapling
hole punching
Perhaps I need a vendor specific driver/PPD file? If so, any pointers as I have no idea where to look for one. I haven't been able to find one on the official site or on sites such as http://www.openprinting.org
Am I missing something or should my custom route work with the index.php (or nothing) instead of frontend_dev.php? I'm getting a 500 error when I go to the model, and a 404 for the show page. My route is:
project_show:
url: /project/:slug
class: sfDoctrineRoute
options: { model: Project, type: object }
param: { module: project, action: show }
Any help would be much appreciated! Thanks!
Darren.
Do you think that if I'll build my own custom analytic tool (Flurry, Pinchmedia) and I'll host that on the same server where I have my data source for the application, will Apple consider this as a thirdparty analytic tool or not? ... Problem is that Flurry and Pinch are being banned from Appstore by the newest T&C ... than I thought that I'll build an open source library that will allow anyone to have their own analytic installed on their server ...
Thanks,
Ondrej