I'm profiling an app that has a boat load of functions in many files and I'm trying to isolate functions that don't get called ever.
Any ideas before I proceed?
I'm trying to use a simple mysql database but tweak it so that every field is backed up up to an indefinite number of versions. The best way I can illustrate this is by replacing each and every field of every table with a stack of all the values this field has ever had (each of these values should be timestamped). I guess it's kind of like having customized version control for all my data..
Any ideas on how to do this?
Hi All,
I am trying to implement ScoreNinja into one of my apps. It all seems to work, but when I submit a score it replaces the current #1 score with any that I supply, even it is lower.
This means that only one score is ever displayed.
Anyone got any idea what I'm doing wrong?
I have e-mailed the dev but he/they haven't responded.
Thanks in advance for any info on this, most appreciated!
Dave B
Hi, I have a web browser in my access form. I am embedding a gif file on it. but how ever i re size it there is a white border coming in the top and left side. The adjustments take place only at the bottom and right side. So when i embed a gif file with black background i end up getting a white background on the top and left sides, how do i make this go.
thanks
tksy
So I'm brand new to rest's API and have never used an API ever before. I'm ok with Objective-C and Cocoa Touch but just have no clue where to start when accessing the API and how to in general. Can someone help me get started with some code that will access titles in rest or just how to access a REST API in general with authentication. Thanks.
I need to write a daemon that supposed to have one TCP socket and one named pipe. Usually if I need to implement a multi IO server with "pure" sockets, the select based multi-IO model is always the one I will choose. so does anyone of you have ever used named pipe in select or you
can just tell me it is impossible. thanks in advance.
Possible Duplicate:
GOTO still considered harmful?
I have read articles that advise on refraining from using the goto operator frequently, but never told why. I have googled this for ever and can't really find anything.
Why do this:
// If parameter cannot be cast to Point return false.
TwoDPoint p = obj as TwoDPoint;
if ((System.Object)p == null)
{
return false;
}
Instead of this:
// If parameter cannot be cast to Point return false.
TwoDPoint p = obj as TwoDPoint;
if (p == null)
{
return false;
}
I don't understand why you'd ever write ((System.Object)p)?
Regards,
Dan
I'm using Apache Commons Logging and SLF4J with log4j, but I also want to use the log4j.properties in a custom place like conf/log4.properties. Here is the problem:
If i use
PropertyConfigurator.configure("conf/log4j.properties");
then my app is tied to log4j and defets the purpose of having ACL and SLF4J.
What is the best way to configure it withouth the app ever knowing what the logging implementation is?
I've got a WinForms project that I've had for quite some time, and now suddenly, I can't open the designer anymore and when I try to open the designer I get an error that says
could not find type 'System.Collections.Generic.List'
All of the code builds just fine, but I can't use the designer anymore, and I don't know what happened, nor do I have any idea where to look to solve the problem. Has anyone ever run into this or have any insight?
Ever since I started programming this has been something I have been curious about. But seems too complicated for me to even attempt.
I'd love to see a solution.
1, 2, 3, 4, 5 // returns 6 (n + 1)
10, 20, 30, 40, 50 //returns 60 (n + 10)
10, 17, 31, 59, 115 //returns 227 ((n * 2) - 3)
Porting a bigger project to iPhone i have it running in the simulator, but trying to run it on a iPad device results in a EXC_BAD_INSTRUCTIONin dyld code with the following backtrace:
#0 0x2fe01088 in __dyld__ZN13dyldbootstrapL30randomizeExecutableLoadAddressEPK12macho_headerPPKcPm ()
#1 0x2fe06a72 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()
#2 0x2fe06d3c in __dyld__ZN9__gnu_cxx13new_allocatorIPFPKc17dyld_image_statesjPK15dyld_image_infoEE8allocateEmPKv ()
#3 0x2fe0b398 in __dyld__ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeIPK11ImageLoaderEE8allocateEmPKv ()
#4 0x2fe05fa6 in __dyld__ZN4dyld11removeImageEP11ImageLoader ()
#5 0x2fe06506 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()
#6 0x2fe0128c in __dyld__ZN13dyldbootstrapL30randomizeExecutableLoadAddressEPK12macho_headerPPKcPm ()
#7 0x2fe01060 in __dyld_branch_to_lookupDyldFunction ()
This is building for iPhone Device 3.2 with the architectures armv6 armv7 and happens before main() is ever entered.
I am currently at a loss for how to find the cause of this, any ideas?
Does (or did) Twitter ever have a method in their API that allowed client-side HTTP requests without producing any cross-domain issues? I have a site that used the following url:
http://search.twitter.com/search.json?q=from%3adaleyjem&rpp=3&page=1&callback=?
It once worked, but now it doesn't.
Is there something else I should be using, or do I have to make a request to my own server-side code?
I need a way to detect if this is the first time the user is ever opening the application, if so, start an activity. Then all previous application launches wouldn't start that activity. I've read in a few places about using preferences to accomplish this. Anyone got any ideas?
We have a managed COM addin for Outlook
works flawlessly on a real machine
now using VMWare 6.05 I think whe we try and install our addin OL refuses to load us
and we keeo seeing a message( when we go to the manage addins dialog) saying a runtime error occurred when loading the COM component
Nothing on event viewer
We are seeing this on images of Office 2003 and 2007
anyone ever run into something like this where VMWare images are causing issues with OL addins
I'm wondering if this kind of thing will ever be possible in PHP (and whether it already is and I'm just missing something...)
<?php
function test() {
return array(
'id'=>10,
'name'=>'John'
);
}
echo 'Your name is: '.test()['name'];
?>
I'd really like to be able to use returned arrays directly instead of first assigning them to a var... possible?
I have a text file which contains:
Cycle code
Cycle month
Cycle year
Event type ID
Event ID
Network start time
I want to change this text so that when ever there is a space, I want to replace it with a _. And after that, I want the characters to lower case letter like below:
cycle_code
cycle_month
cycle_year
event_type_id
event_id
network_start_time
How could I accomplish this?
Is there a color picker dialog for Qt like the following?
Also it needs to have a OnColorChanged signal which is called when everthe selected color changes. I want to give a live preview when they are changing the colors, that is why.
Using google I could only find this one that was a triangle in side of a circle and personally I think it looks ugly.
I'm looking for a way to specify required js files by an angular app. So that, we don't need to include an array of tag for all the files which may be required by some ng-app. The main idea behind this requirement is - we might not need to load all the resources on the browser at once. Which ever ng-app gets loaded onto the screen, will fetch its dependencies on its own from the server. Is there any existing way within angularJS to achieve this goal..?
I have a listbox (listBox) and a dropdown list(dropDown). I want to be able to select an item from the dropDown and add them to the listBox. I have looked everywhere for this but all I ever see is adding data from a datasource instead of a dropdown. I want this to be dynamic so the listBox is populated based on the a user selected in the dropDown
How common is it for coding style guidelines to include a requirement that all functions include a return statement (including functions which return void)?
To avoid being subjective or argumentative, I'd like answers which can name specific companies or open-source projects which have this requirement. If you haven't ever come across this coding style guideline, or you have a resource (book, online article) which discusses it, that would be useful as well.
Thanks!
Hello,
I want to run bmail from the command prompt to send a mail.I am using exchange sever 2003 as as the mail server,when ever i enter the script it tells me that socket closed.Plz can any one help..
I'm trying to write a ruby script which automatically downloads some files from some server ever 30-45 minutes (to prevent overload) as long as my computer is turned on. It's possible that my computer might be turned off at some point, but the download should resume (probably re-download the current file).
I already have the file list but I can't figure out how to make such a script to run autonomously.
What are some ways I can do this?
I have a website say www.mywebsite.com/demo . When ever if anyone requests this site, i want to navigate to another website www.myanotherwebsite.com . I know that this can be done in IIS by using the HTTP Redirect feature. But since i want to do this for different websites, I would like to write a bat file which would run the command to set the redirect url for a website. Can anyone please help me how to set the redirection URL through command line?