Hi,
How do I convert an int to a char and also back from char to int?
e.g 12345 == abcde
Right now I have it using a whole bunch of case statement, wonder if there is a smarter way of doing that?
Thanks,
Tee
Hi,
How do I bind / initialize Shadowbox to content loaded by jQuery using AJAX?
Right now shadowbox works when I first come into the site.
However, when I swap the content with a new one loaded through AJAX, these new batch of content doesn't do the shadowbox popup, instead it just redirect to the content.
I have Shadowbox.init(shadowbox_conf); in the success but it doesn't seem to do the trick.
Thanks,
Tee
Hi,
Can I control the Android TimePicker view to just show the minutes to 15 minutes interval?
Meaning if it's 12:28 now, show 12:30 and clicking the + and - button will increment and decrement by 15?
Thank you,
Tee
I'm using gvim and rails.vim and getting the following error when attempting to run :Rake from within a migration:
:!rake db:migrate VERSION=20100427002644 2>&1| tee /tmp/v436868/11
/bin/bash/: rake: command not found
I'm not sure how to troubleshoot this. What can I do to fix this?
Hi, is there anyway I can test if a method exist in Objective-C?
I'm trying to add a guard to see if my object has the method before calling it.
Thanks,
Tee
Hi,
I'm using the iPhone facebook connect package.
How do I prepopulate the "publish to feed" example or take out the message field?
Something like this one http://www.burnthebox.us/mobile/iPhone/products/disconnect/instructions/images/DisConnect_FB_Publish_Story.png
(The default in the example has an input text field)
Also what would it take to skin the popup look?
Thanks,
Tee
Hi,
I just finished setting up my Eclipse with the Android plug-in.
(i.e https://dl-ssl.google.com/android/eclipse/)
Now when I do the following
1. Eclipse Preferences Android, I see a lot of "Target Name" like Android 1.1 - Android 2.1
However, in the book that I'm reading, I'm also supposed to see a "Target Name" called "Google APIs".
I don't see that.
What am I missing? Is that a separate install?
Thank you,
Tee
Hi,
I managed to get authentication to work by following the tutorial from this page http://planetcakephp.org/aggregator/items/2604-create-simple-user-authentication-using-cakephp%E2%80%99s-auth-component
How do I make sure when I'm in the register page, and the password and confirm password the user supplied doesn't match, the password field will be repopulated with the value the user enter and not the hashed version of it?
Thanks,
Tee
Hi,
What tools can I use to debug mobile webkit sites?
Is there a better tool than "Firebug for iPhone" or is "Firebug for iPhone" pretty much the best tool out there?
Thanks,
Tee
Hi,
I'm using the iPhone facebook package.
How do I prepopulate the "publish to feed" example?
Also what would it take to skin the popup look?
Thanks,
Tee
Hi,
I'm using jqTouch. Trying to figure out why when the scene / div change, it just change abruptly without the slide animation?
Here is the setting that I have now:
var jQT = new $.jQTouch({
slideSelector: '.link',
useAnimations: true
});
Again the scene change works just fine, just that I don't see the slide animation.
What am I missing?
Thanks,
Tee
Hi,
Once I connect my iPhone to my computer, is there anyway I can look at the directory structure on the phone?
Would it work like a USB device for example and let me copy files without using iTunes but just drag and drop through the Finder on a Mac?
Thanks,
Tee
Hi,
I'm now testing GKPeerPickerController.
I have a simple app that just have a button and do GKPeerPickerController on a device.
However, all it does is "Looking for other iPhones or iPod touches..."
I do have another device nearby with bluetooth turned on BUT without the app installed.
Does that other device also need to have the app installed?
Thanks,
Tee
Hi,
How do I detect change event on textarea using javascript?
I'm trying to detect how many characters left is available as you type.
I tried using the onchange event, but that seems to only kick in when focus is out.
Thanks,
Tee
Hi,
I have a txt file with columns separated by tabs and based on that file, I want to create a new file that only contains information from some of the columns.
This is what I have now
awk '{ print $1, $5 }' filename newfilename
That works except that when column 5 contains spaces e.g 123 Street, only 123 shows up and the street is considered as another column.
How can I achieve what I'm trying to do?
Thanks,
Tee
Hi,
I notice when you go to google.com for example, the input field keyboard has a "submit" button as opposed to the original "return" button.
How do I turn on that feature?
I tried type=search but I still see the return button.
Thanks,
Tee
how to convert YUY2,YUV, RGB565 and More Video subtype into RGB24 Subtype Video in DirectShow + VC++
can u understand my question?
I have a Upstream filter its output is in YUY2 Format but i need to convert it into RGB24 Format.
Is there any inbuilt Filters in DirectShow or we have to convert it through my code.
i have already added ColorSpaceConverter But it is not Connecting with Smart Tee Input Pin.
I'm trying to redirect the output of my script and it needs to be called inside the script.
filename=uname -a
filename="$filename" date
2>&1 | tee $filename".txt"
That is what I have so far, but it's obviously wrong. I don't know too much SH scripting, so help is appreciated
-Alex
Hi,
How do I detect change event on textarea using javascript?
I'm trying to detect how many characters left is available as you type.
I tried using the onchange event, but that seems to only kick in when focus is out.
Thanks,
Tee
Hi,
I don't have an iPad yet, but is it possible to download an iPad app using iTunes and run the app in simulator?
If yes, how would I do that?
Thanks,
Tee
(Using python 3.2 currently)
I need to be able to:
Run a command using subprocess
Both stdout/stderr of that command need be printed to the terminal in real-time (it doesn't matter if they both come out on stdout or stderr or whatever
At the same time, I need a way to know if the command printed anything to stderr (and preferably what it printed).
I've played around with subprocess pipes as well as doing strange pipe redirects in bash, as well as using tee, but as of yet haven't found anything that would work. Is this something that's possible?
Hi,
I'm using this code now
echo $form-input('username');
How do I make sure the label shows up on a different line than the input field?
I managed to imitate what I'm trying to do, just want to make sure that I'm using it the right way.
echo $form-label('username', 'Username');
echo $form-input('username', array('label' = 'false'));
Thanks,
Tee
I am trying to write the entire output (errors included) of an executing script to the console and a file at the same time. I have tried several different options
.\MyScript.ps1 | tee -filePath C:\results.txt # only the output to the file
.\MyScript.ps1 2> C:\results.txt # only the errors to the file and not the console
.\MyScript.ps1 > C:\results.txt # only the output to the file and not the console
My hope was that I could use the file to review the output/errors
Any help would be greatly appreciated.
Hi,
I've a database that has a name field. (i.e Firstname M. Lastname or just Firstname Lastname).
Trying to filter by lastname.
How can I do a query to find the last space?
Something like
select * from person where name like "% a%" (but the space is the last space)
Thanks,
Tee