I have a file at lib directory in my rails project. like this
a (directory)
a1
a2
a.rb
when I in a.rb require a1.
require 'a/a1'
it will warn me /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- a/a1 (MissingSourceFile)
but use dirname(FILE), it work.
require File.dirname(__FILE__) + '/a/a1
why?
Hello, I am developing a new Java Desktop app. Something like a media player. I want to load most of the resources in the background when the computer starts up. But the users can turn this option off form within the app or using some other utility. So, what I want to do is if a ban instance of the app is already running and the user starts the app again then I can communicate with the already running instance so that it can launch a new window?
I am grabbing data through a jQuery Ajax call, and displaying it on the page. I need to wait for both the DOM to load and for the Ajax call to complete before I can use the data to display it on the page. Can an Ajax call ever complete before the DOM has loaded? I'm just trying to determine where I need to put my method that will manipulate the DOM and use the data I'm getting back.
I am using reccomended app. structure ( http://framework.zend.com/manual/1.10/en/project-structure.filesystem.html ) in Zend Framework but I cant get each module config working.
It just doesn't load modules/mymodule/configs/application.ini file into configuration.
The Apache Module mod_status allows you to view the current average requests per second being served. It measures this average over a fairly long period of time however (I don't know exactly how long). Is it possible to modify this length to something shorter so that I can get a more accurate idea of the current load on the server?
Hi,
I am looking for a free/cheap SQLite editor that can handle BLOB type for Mac OS X. Basically, I just need to create a database that contains images, then load it to an iPhone app bundle. No need for fancy queries. Could someone recommend the best editor available out there for this purpose?
Thanks a lot
I'm using a big Background image on hover which is set in css background {....}
It takes time to load first time upon mouse over so I want to preload this background image.
What is the best option to do this?
What I mean is, do animators work on an animation in say Flash (or some other kind
of key frame animation program) and then export it to the iphone somehow?
For example, say I am an animator and I want to create a person waving for an iphone
game. What type of external program would I use and then what libraries on the iphone
sdk would I use to load them in?
$('tr').click(function() {
$("#showgrid").load('/Products/List/Items/');
});
Using this I am handling click event on the row of the table.
How can I handle only on the first column? that is, giving click action to only first column not on entire row?
thanks
I am making websites I refer to from my site load up in a frame (similar to google images). But I also want to give users the ability to break out of that frame. Like with google image's "Remove Frame" link at the bottom right corner of their frame. How can I do this possiblyusing Javascript?
I am new to iphone development.i want to check whether the image is loaded in the image view and if the image view is nil then load the image.i want to implement this in cell for row at index path so that i can increase the scrolling performance of the table , How can i do that ? please help me out.Thanks.
I'm an html noob and I just wanted to know if it's possible to make a text box in which you could type a website and when you click submit it will load the website in the iframe of your choice.
I am fetching a db zip on initial startup of an AIR app (after 1st install), which I then unpack via FZip.
After this operation I immediately need to load data from the generated sqlite db, which fails since I seem not able to determine when the zip is completely unpacked and/or the sqlite has been created.
Any suggestions? Thx!
Hello,
I'm trying to get the dojo tree widget working. It works with a small json object, but when i try it with a large json object it goes wrong. There is no error, just the root node. Is this a normal behavior? Is there a maximum of objects you can load? My json object contains around 800 entries.
Thanks,
Ewout
Hi all,
I am doing some improvements to an application in vs2008 in c++.
When i try to edit resources (for example add an entry in the string table), the vs2008 editor changes the rc file language from LANG_ENGLISH to LANG_NEUTRAL and a non english text is replaced with question marks.
If i edit the rc file externally (in notepad), and then load it to the vs2008 it works fine.
can anybody help me solve this?
thanks
Shimon
I have two frames I need to a load the second frame based on the button click event which is there in the first frame, and need to hide the first frame once the second frame is loaded.
Hi,
I want to load a single XML file of 1.2Mb in android through assets folder as raw file. I heard that there is a limitation in android of 1Mb for a single xml file. How can i get rid of it? Is there any option to overcome this issue? please provide me some help UrGently!!!!!!!!!!!!.
Thanks in advance.
Praween
Currently my tableview looks like this: as you can see, cell.textLabel and cell.detailTextLable both load this background, and i can't work out how to get them to stop loading the background, and for it only to be the backing on the cell.
Here's my current code to change the cell:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
[cell setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"tableCell.png"]]];
}
How can i get round this problem?
Thanks in advance.
http://stackoverflow.com/questions/840213/how-do-i-load-a-mov-file-into-flash-9
I checked this post out and it looks like the normal way for adding a flv, but it tried it on some sample .movs from apple and doesnt seem to work.
Do movs have to be encoded specially for playback in flash?
It is possible to load a class given a String and its name? ie "MyClass.class"
Further, is it possible to pass parameters to the constructor using this method?
Show image very slowly ... after page is completely loaded....
That is ,
fade in Effect for the image, but this image should show very slowly page load is completed....
I want to load a pdf file on the click of a button.
In the OnClickButton() implementation I am writing the function which open the PDF file
ShellExecute(0,
"Open",
"%s\\HELP\\RiverCADPro_User_Manual.pdf",
NULL,
NULL,
SW_MAXIMIZE);
The above code is not working.What else is to be needed so as to run the above code
I want to display a login view to my users if they are not logged in and the main view if they are.
In my header file I define a variable to hold the logged in status
#define loggedIn 0
I figure I should then reference this in the initWithNibName method and then decide which nib to load.
Is the right way of doing it?
If so can someone help me out with the exact code?
Thanks for any help
Hey all, this is my first post. I recently upgraded a wordpress site, all things load but on the top of the page and bottom of the page I get this error.
Warning: session_start() [function.session-start]: open(/tmp/sess_6v2kul3t823ah9074g3cl2lrt6, O_RDWR) failed: Permission denied (13) in /home/admin_m3/incommunion.org/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121
How can I remove it from the page? I believe the server automatically upgraded the version of Wordpress.
Any idea?
Newbie A