Hi,
I have 4 tabs in my iphone application. When user will click a button in tab-1, I want to move/switch user to another tab suppose tab-2.
How to do that?
Thanks in advance.
-Ruchir.
I have a RESX resource file that I can retrieve the values out of using the strongly typed properties and assign to values in my Silverlight 3 app. However at runtime I need to generate the lookup key based on some values to avoid a ton of if/switch statements. I'm trying to use the ResourceManager, but it doesn't like .resx files.
Searched far and wide... is this just not possible in SL3? Does anyone have another suggestion?
I installed the latest GNU make to my windows machine.
The installer decided to setup the language as the OS language, which I did not get prompted for. I want it to be english. My OS is in swedish.
I remember I had similar problem with another GNU program (can't recall which), which was solved by adding the env var "lang" with value "c".
How can I switch the language of GNU make to english?
hello all
im making switch to the new Graph API , and i try to replace all the rest api with the new Graph api
reading the docs i saw i have some kind of real time function ( im not sure its related to getting the user
notifications ) that suppose to return me callback .
but im my case i like to invoke simple http command and get the user notification like ( like the old notification api's )
how can i do it now ?
Thanks
I'm using @font-face for some headers.
The replaced typeface is different in dimension and overall character. When the switch happens, the old typeface's rules don't look so good.
Other than writing a conditional Javascript script, is there a way to have a set of CSS rules for @font-face fonts (if the browsers supports it) and CSS rules for the unreplaced default fonts?
Hi,
I'd like to have a settings bundle behavior similar to the iPhone WiFi settings.
If you select the toggle switch and set it to on, an optional group with the specific settings appears. How is this done? I haven't found any clue by now.
I am writing a website with PHP. Since it will need to be accessed by anyone on the network to access the internet I have to create a mobile version. How do I best check if it's a mobile device? I don't want to have a switch statement with 50 devices at the end since I don't only want to support the iPhone.
Is there a PHP class I could use?
I set my editor per an SO entry: http://stackoverflow.com/questions/780425/how-do-i-setup-diffmerge-with-msysgit-gitk.
I'm wondering how to undo this because I want to switch back to the default editing program.
This isn't the best programming question but lets face it, the server fault guys aren't well versed in git, so I think its more towards this audience.
Do I have to write a script to uninstall them?
How do I get them to go away, I want to switch to tortoise git, or portablegit in my shell, but I'm left with these annoying menu options.
I am trying to convert an index of 1 to 27 into the corresponding uppercase letter. I know that in C++ I could type this:
char letter = 'A' + (char)(myIndex % 27);
This same code does not work in C#. How can I accomplish this task in C#?
EDIT: I'd rather not have to encode an enum or switch statement for this if there is a better mathematical solution like the one above.
Hi all,
Is there any possible way to do any arithmetic operations on enum values
enum Type{Zero=0,One,Two,Three,Four,Five,Six,Seven,Eight,Nine};
main()
{
enum Type Var = Zero;
for(int i=0;i<10;i++)
{
switch(Var)
{
case Zero:
/*do something*/
case One:
/*Do something*/
.....
}
Var++;(I know that this increment is not possible,But is there anyway by which we can have this variable named Var increment.
regards
maddy
I've had Django running with Sqlite for a while. I then installed WAMP, and I now want to get ready for a production run, and would like to switch to MySql. Is there a straightforward way of telling it about the MySql instance that is running with WAMP?
I have created a volume controller for iTunes but I would like this app to place an icon on the OS X system menu bar and have my slider controller drop down. I created this because I have to switch to iTunes to change the volume of the music because I am using the digital-out audio and the keyboard keys do not work in digital-out mode. Any guidance would be greatly appreciated.
The solution to a previous question (How to implement “Maintenance Mode” on already established website), was to use a modified .htaccess to deny IP addresses.
What is the best way to use a web interface to modify an .htaccess file? What I want is a way for an admin to log in to the admin area and switch Maintenance Mode on and off using a basic html form.
I'm using PHP and I'm already using an .htaccess file for a handful of ReWriting.
can anyone provide me sample code to develop a struts i18n application containing two jsp pages with two buttons(a single toggle button) to switch b/t two languages...
i am a new to struts
thnx in adv...............
Hi,
I have some projects on bzr code repositories shared with colleagues.
Problem is, I really want to switch to eclipse in some projects, but I don't want to pollute the repository with the unnecessary metadata eclipse creates in its Workspaces.
Any idea how to keep Eclipse's metadata outside my bzr repo?
Adam
I have been able to create the actionscript required to use seekToNavCuePoint with a locally hosted flv with embedded cuepoints. Once I switch to having it on our RTMP server the cuepoints are not available it seems. Lots of googleing has me coming up short.
This is using the FLVPlayback component and ActionScript 3.
What's the best way to compose layers in imagemagick with opacity? As I understand it the -compose switch doesn't take any opacity or alpha value.
For example I'd like to take two images, much like in Photoshop, blend them together with the picture on top have an opacity set.
i need to create a function in my application to set its available memory usage. What i want to do is when the application is running, and it reaches to the set memory settings, i'll have to switch from saving to the memory to saving to a file to the local drive to avoid application hang. Is this a better way to do? What things to consider when doing this in terms of memory allocation? Hope you understand :)
Thanks,
Jepe
Hi,
I created a small WPF desktop application. I am thinking about how to make my application internationalized. Is there any Language Class to research (.NET 3.5 based)?
I want to load the my application language from windows region/language configuration automatically.
OR. some method to switch language from my application menu list.( no additional language package installation, assume the windowns system language packages support Chinese/English/Japanese/Korea already).
Hi
I switch from VS 2008, to VS 2010, but in VS 2010 I don't have types in "Add version" in resource, like:
comments, legaltrademarks, privatebuild, specialbuild.
How I can add this types to version on my program in Visual Studio 2010?
(in pink I draw what have VS 2008).
image:
http://i48.tinypic.com/2mzlg5e.jpg
BarbieLie28
Hi -
I have a class located inside RAILS_ROOT/lib folder, which I use in one of my helpers, and it works great in development.
When I switch to production, the application throws a NameError (uninitialized constant SomeHelper::SomeClass), and I have to load it manually in the helper:
load "#{Rails.root}/lib/some_class.rb"
module SomeHelper
def some_method
sc = SomeClass.new
# blah
end
end
I was under the impression that everything inside RAILS_ROOT/lib/* should be available all to the app - is there anything I need to configure to make this happen in prod mode? thanks.
Is it possible to check for pressed keys without using the KeyboardEvent?
I have an ENTER_FRAME event setup called enterFrameHandler and I want to check within the function enterFrameHandler if any keys are pressed.
normally when using a KeyboardEvent I could check for keys easily using a switch that checks the KeyCode of the event, but in an ENTER_FRAME event this isn't possible for me.
Is there any other way of checking the keyboard's state within the ENTER_FRAME event?
I have an OnTouch and a setOnTouchListener that updates varibles which contain screen coord info. The problem is it doesnt seem to ever update them. On line 78, RGB.setText(test); it never changes from 0.0. If i were to move that line and the line above it into the onTouch it updates. any idea what is wrong? Thank you.
package com.evankimia.huskybus;
import com.test.huskybus.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.TextView;
public class HuskyBus extends Activity {
TextView RGB;
private CampusMap mCampusMap;
private float startX = 0; //track x from one ACTION_MOVE to the next
private float startY = 0; //track y from one ACTION_MOVE to the next
float scrollByX = 0; //x amount to scroll by
float scrollByY = 0; //y amount to scroll by
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
RGB = (TextView) findViewById(R.id.coordBox);
mCampusMap = (CampusMap) findViewById(R.id.map);
mCampusMap.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
// Remember our initial down event location.
startX = event.getRawX();
startY = event.getRawY();
break;
case MotionEvent.ACTION_MOVE:
float x = event.getRawX();
float y = event.getRawY();
// Calculate move update. This will happen many times
// during the course of a single movement gesture.
scrollByX = x - startX; //move update x increment
scrollByY = y - startY; //move update y increment
startX = x; //reset initial values to latest
startY = y;
mCampusMap.invalidate();
break;
}//end switch
return false;
}
;
}); //end onDraw?
String test = "" + scrollByX;
RGB.setText(test);
}
}
My app has a UITabBarController that loads many different UINavigationControllers. I want a UIPageControl to switch between the different UINavigationControllers. Do I place the UIPageControl in my UINavigationController or in my appDelegate? Suggestions and best practices are welcome.