While using ubercart I need to insert some javascript tracking codes to the order complete/thank you page the user sees after checking out an order. Problem is, there is no .tpl file for this so I'd like to know if there's a way of redirecting users to a custom page I would like to build with all my js inside.
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'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
{
}
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 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?
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?
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;
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
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
I have:
a video which has mono audio inside
a audio (mono)
I'd like to merge those two to a single video file containing:
video from #1
audio from #1 full left pan + audio #2 full right pan
Is this possible in ffmpeg using 1 command?
I've tried the following which almost does this but the video/audio gets out of sync:
ffmpeg -i video.mp4 -filter_complex "amovie=audio.wav [r] ; [r] amerge" output.mp4 -y
I've managed to do it with multiple commands:
#1 create right panned audio
ffmpeg -i audio.wav -ac 2 -vbr 5 audio-stereo.mp3 -y
ffmpeg -i audio-stereo.mp3 -af pan=stereo:c1=c1 audio-right.mp3 -y
#2 create left panned video
ffmpeg -i video.mp4 -af pan=stereo:c0=c0 video-left.mp4 -y
#3 merge the two
ffmpeg -i video-left.mp4 -i audio-right.mp3 -filter_complex "amix=inputs=2" video-mixed.mp4 -y
It does the job, but is it possible with 1 command?
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
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.
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.
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.
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
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 trying to block everyone but 1 IP address from my site on a server running apache & centos. My setup is follows the example below.
My server:
`http://www.myserver.com/`
My .htaccess file
<limit GET>
order deny,allow
deny from all
allow from 176.219.192.141
</limit>
ErrorDocument 403 http://www.google.com
ErrorDocument 404 http://www.google.com
When I visit http://www.myserver.com/ from an invalid IP, it gives me a generic 403 error. When I visit http://www.myserver.com/page-does-not-exist/ it redirects me correctly to http://www.google.com but I can't figure out why the 403 error doesn't redirect me too. Anyone have any ideas?
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
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