instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
(Android) Some days ago I saw a way to register a broadcast receiver to understand when the screen goes black or the inverse.
Now i'd like to find a way to understand when the users is speaking at the phone but i don't find a broadcast for this case, so how can i understand if the user is at the phone? (Possibly withou... | stackexchange/codereview |
Given these routes:
routes.MapRoute("Test", "test", new { controller = "Test", action = "Index" });
routes.MapRoute("Default", "{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
If I call RedirectToRoute("Default") from the Index action of the TestController i... | stackexchange/codereview |
I am trying to create div elements dynamically, and at the time of creation i am using onClick = 'showDimension();'. It shows the correct html on alert box but when DIV is created you can see that div is not having any onClick method attached [ firebug ]. Instead of that it is having a stray string 'showDimension();'. ... | stackexchange/codereview |
Possible Duplicate:
Java - C-Like Fork?
I wanted to know how is it possible to fork a child JVM from a JDK or even is it possible to do so?
Some frameworks like hadoop fork a child JVM for specific tasks thus Please throw some light on the subject.
Thanks!
| stackexchange/codereview |
I am using php 5.2.9 as a part of xampp installation. I am using codeigniter framework for my webapp. When I call upon DateTime::add, the Call to undefined method error is displayed. My code is...
$date_now = new DateTime();
$formatted_date = $date_now->format('Y-m-d H:i:s');
$expiry_date = $date_now->add(new DateInter... | stackexchange/codereview |
a="aaaa#b:c:"
>>> for i in a.split(":"):
... print i
... if ("#" in i): //i=aaaa#b
... print only b
In the if loop if i=aaaa#b how to get the value after the hash.should we use rsplit to get the value?
| stackexchange/codereview |
I'm trying to find a way to to property overloading like it's done in PHP: http://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members
i.e.
var myobj = function () {}
myobj.prototype.getProperty = function (propertyName) { console.log('Property Requested: ', propertyName); }
var otherO... | stackexchange/codereview |
We use git to manage our project, we have a branch for each:
dev
staging
production
I want to use git tags to manage versions of the software. As far as I can see if I am on a branch and add a few commits, I then have to run:
git tag 1.0
Repacing 1.0 with whatever version number we are up to, then I can push the tag us... | stackexchange/codereview |
When Notification receive os show an alert , is it possible to play sound instead of this alert?
and when notification receive os add a red circle on the top of app's icon , is it possible to disable it(means not show this red circle)?
| stackexchange/codereview |
I have once again forgotten how to get $_ to represent an array when it is in a loop of a two dimensional array.
foreach(@TWO_DIM_ARRAY){
my @ARRAY = $_;
}
That's the intention, but that doesn't work. What's the correct way to do this?
| stackexchange/codereview |
in how many languages /* ........... */ work as a comment? other than CSS
| stackexchange/codereview |
I managed to install a Python script as a service using this recipe at ActiveState: win-services-helper.
In order to get much use out of it, I included the business end of my program by replacing lines 99 - 100:
95 class Test(Service):
96 def start(self):
97 self.runflag=True
98 while se... | stackexchange/codereview |
I'm trying to display a shopping cart in my application (Seam/RichFaces), and have included a "remove from cart" <a4j:commandLink /> next to each item to remove the item from the cart. When I click the link it is supposed to rerender the cart contents to show that the item has been removed. However, when I click the ... | stackexchange/codereview |
When learning (or relearning) a language, a significant amount of time goes into learning the functions for doing basic operations. For example, suppose I want to reverse a String. In one language, it may be simple as myString.reverse(). In Python, it is myString[::-1]. In other languages, you may have to create an arr... | stackexchange/codereview |
In a class which inherits from TTViewController, I create an UITabBarController :
- (void)loadView
{
[super loadView];
YoutubeFeedViewController *y = [[YoutubeFeedViewController alloc] init];
SourcesController *s = [[SourcesController alloc] init];
tabBarController = [[UITabBarController alloc] init];
... | stackexchange/codereview |
when I run my programs from within Eclipse IDE the following piece of code works perfectly:
address_name = self.text_ctrl_address.GetValue().encode('utf-8')
self.address_list = [i for i in data if address_name.upper() in i[5].upper().encode('utf-8')]
but when running the same piece of code directly with python, I get ... | stackexchange/codereview |
I have the following:
var thiscode = {
init: function(){
jQuery('#submit').bind('click',thiscode.clickListener);
},
clickListener: function(event){
setTimeout('document.myform.submit()',5000);
return false;
}
};
thiscode.init();
setTimeout is working, but when it fires, I get this: "document.myform.submi... | stackexchange/codereview |
This question is largely driven by curiosity, as I do have a working query (it just takes a little longer than I would like).
I have a table with 4 million rows. The only index on this table is an auto-increment BigInt ID. The query is looking for distinct values in one of the columns, but only going back 1 day. Unf... | stackexchange/codereview |
I work a lot in PHP but I never really understand the namespace method in PHP. Can somebody help me here? I have read on php.net's website its not explained good enough, and I can't find examples on it.
I need to know how I can make code in sample version.
namespace: sample
class: sample_class_1
function: test_func_... | stackexchange/codereview |
I know that we shuld do
ssh user@target
but where do we specify the password ?
Hmm thanks for all your replies.
My requirement is I have to start up some servers on different machines. All servers should be started with one shell script. Well, entering password every time seems little bad but I guess I will have to re... | stackexchange/codereview |
i have this script which i will post absolutely unmodified:
<?
chdir("data");
$files = glob("*");
shuffle($files);
var_dump($files);
$i=0;
$finfo = finfo_open(FILEINFO_MIME_TYPE); // return mime type ala mimetype extension
foreach($files as $file) {
$i++;
$k = $i;
$mime = finfo_file($finfo, $file);
if(strpos($m... | stackexchange/codereview |
How would I check for descending digits in an integer? For instance, if the user entered 98765, I would need to verify this and say the digits are descending and vice versa. I cannot convert the integer to a string, and there is no limit on the length. Oh, the numbers have to be >= 0.
I know I need to split the inte... | stackexchange/codereview |
Trying to get the div with class sbox to slide up and down based on the stoggle that has been clicked. Can't figure this out. (I have hundreds of these so I'd like to set up something generic instead of multiple different classes.)
$(".stoggle").click(function () {
$(this).slideToggle("fast");
});
<div class="wra... | stackexchange/codereview |
In a Xul app, is there a high-level way to list the installed extensions?
Is the "Add-ons" window available for easy use?
I'm trying to search in the firefox source, but it's a long way... if someone could give a shortcut I would be thankful... :)
Maybe something related to RDF? (not sure..)
| stackexchange/codereview |
I have the following 3 tables
Teams (TeamID int, TeamName varchar(200)) - TeamID is identity col
Users (UserID int, Username varchar(200)) - UserID is identity col
UsersTeams (ID int, UserID int, TeamID int) - Table has FK references to the 2 tables above
The table UsersTeams is used to keep a record of all teams a us... | stackexchange/codereview |
Are there any best practices that dictate the maximum time between an asynchronous call and its corresponding response.
Basically I have a process that takes a long time to run (eg: 5 minutes). Option 1: I could expose the process as an asynchronous call. In which case the user calls my service and then at some later t... | stackexchange/codereview |
Let's say I have two tables: one stores links and contains a link_id column, and the other stores info on how many times a particular link has been clicked and it contains a count column and the link_id column. What would be the query to the table in order to retrieve all the links along with the info?
| stackexchange/codereview |
I have an application that requires the down arrow, or the letter s for a specific function (both down arrow and the letter "s" trigger the function in the application).
The user cannot use the keyboard so I have to make a button on screen for the user to click. The application is displayed in an HTML page and I have ... | stackexchange/codereview |
A language is decidable If a TM recognises the language and goes into an Accept or Reject state. As a dev. I think this is important as it would mean we could determine if a program contains buffer overflows or deadlocks. Also, the following problems are Un-Decidable:
Does a program ever access an uninitialized vari... | stackexchange/codereview |
I have a site constructed using the TinyButStrong template system, so consisting of pairs of .php pages with .html templates.
What rules should I use in a .htaccess file such that any call to a .html page is redirected to the .php?
| stackexchange/codereview |
I am writing my thesis right now and I have fallowing problem, I have couple of lists. List of figures, list of algorithms, list of listings... etc. Most of them are very short, but each of them takes whole page. So I have couple of lists which only list few things on one page, and the rest of the page is blank.
How ca... | stackexchange/codereview |
The elements aren't positioning themselves as I want them to. I want the picture to be 20px away from the left, why is the logos div so thin? :S Also why is the topuserbar div going under? There seems to be no reason.
Here is the CSS and HTML. It's not rocket science, so that's extra frustrating because it shouldn't b... | stackexchange/codereview |
In [20]: print None or False
-------> print(None or False)
False
In [21]: print False or None
-------> print(False or None)
None
This behaviour confuses me. Could someone explain to me why is this happening like this? I expected them to both behave the same.
| stackexchange/codereview |
I need to programmatically check a radio button given its value. The form has an id and the input type obviously has a name (but no id). The only code I managed to get working so far is:
$('input[name=my_name]:eq(1)').attr('checked', 'checked');
But I'd like to be able to check it by explicitly providing the value.
| stackexchange/codereview |
I'm trying to write a class for this (forEach) tag.
Here's the class:
public class BookList implements Iterable<Book>
{
public ArrayList<Book> book_list;
public BookList()
{
book_list = new ArrayList<Book>(2);
book_list.add(new Book("BookTitle_01","book_01.html"));
book_list.add(new Book("BookTitle_02","b... | stackexchange/codereview |
I have a sql query fired in my model class which returns a table of user data. Now i need to display the result on my view page (JSP). I don't want to fire the sql from JSP page. How do i pass of the result set to JSP? do i need to construct a collection set and pass it on to the JSP or is there any better way to do it... | stackexchange/codereview |
It's the first time I'm trying to use typedef. Admittedly I don't have a very clear idea of what's going on but my understanding was that the values inside typedef get assigned integers starting with 0. I've tried to use them as integers but I get various warnings and errors. One of them is "[NSCFNumber objectForKey:]:... | stackexchange/codereview |
I along with some friends are trying to do an anti cheats for a game, we chose python because it is multiplatform.
The problem is we're trying to make a screenshot of what is shown on the screen, not just the game (with OpenGL) but any windows that are open to detect programs that are superimposed on the image of the g... | stackexchange/codereview |
At first glance, there obvious distinctions between the two kinds of "class". However, I believe there are more similarities:
Both have different kinds of constructors.
Both define a group of operations that could be applied to a particular type of data, in other words, they both define an Interface.
I can see that ... | stackexchange/codereview |
I have a bunch of urls that toggle user settings I would like to add some unobtrusive jQuery so the page doesn't have to reload every time. Everything I've found so far deals with forms, where as this is just a URL submit via js.
How do I add ajax url submit to the a attribute.
Ex:
<a class="user_attrs" href="/users/t... | stackexchange/codereview |
How do I kill a windows form application other than clicking the x button. More specifically, I need to close the program from a menu option. I am coding this in c# 2010.
| stackexchange/codereview |
As part of learning ruby/rails, I'm trying to implement http://github.com/professionalnerd/simple-private-messages into my application from scratch, instead of just installing the plugin. (I know, causing myself trouble but it's a good learning experience.)
I created the model, and the associations seem ok and I can cr... | stackexchange/codereview |
i use ubuntu 9.04 for testing platform. I have created a webapp that log a hardcoded string whenever someone visit index.jsp. I have enable SECURITY_MANAGER in /etc/init.d/tomcat6. And I have grant permission for the webapp named w1 with
grant codeBase "file:${catalina.base}/webapps/w1/-" {
permission java.securit... | stackexchange/codereview |
I am trying out the record outgoing call using mic written this code but not working, I tested the code for simple audio record it works fine, I am not sure when to start media record I putted start in broadcast receiver may be problem is there.
Here Audiorecoder is another class is created where I have implemented Med... | stackexchange/codereview |
I'm trying to save a multiple masked image to disk.
The code below explains How I do it. The maskImagewithStroke masks 2 times a picture : first time to provide an irregular stroke to a texture then I'm remasking it with a bigger mask to get a stroke from it. It's the bast way I found to get an irregular stroke around ... | stackexchange/codereview |
I wrote what I thought was a straightforward Python script to traverse a given directory and tabulate all the file suffixes it finds. The output looks like this:
OTUS-ASIO:face fish$ sufs
>>> /Users/fish/Dropbox/ost2/face (total 194)
=== 1 1 -
=== css 16 ... | stackexchange/codereview |
I have two identical (but differently named) C structures:
typedef struct {
double x;
double y;
double z;
} CMAcceleration;
typedef struct {
double x;
double y;
double z;
} Vector3d;
Now I want to assign a CMAcceleration variable to a Vector3d variable (copying the whole struct). How... | stackexchange/codereview |
The FC++ library provides an interesting approach to supporting functional programming concepts in C++.
A short example from the FAQ:
take (5, map (odd, enumFrom(1)))
FC++ seems to take a lot of inspiration from Haskell, to the extent of reusing many function names from the Haskell prelude.
I've seen a recent article ... | stackexchange/codereview |
The vb.net "WithEvents" syntax is very useful, but if a WithEvents field which references a long-lived object is not nulled out, it will often constitute a memory leak.
Is there any easy way for a Dispose routine to have vb.net automatically clear out all WithEvents fields and unsubscribe them?
I've figured out a nice ... | stackexchange/codereview |
I'm sorry if I'm asking a basic question, but I can't find it anywhere and I don't understand too much from the provided documentation. Basically, I want to make a *.SWF in which the user inserts an address in the first frame, then in the second frame Google Maps shows that place. The problem is that I don't know how t... | stackexchange/codereview |
I want to have a a reference that reads as "whatever variable of name 'x' is pointing to" with ints so that it behaves as:
>>> a = 1
>>> b = 2
>>> c = (a, b)
>>> c
(1, 2)
>>> a = 3
>>> c
(3, 2)
I know I could do something similar with lists by doing:
>>> a = [1]
>>> b = [2]
>>> c = (a, b)
>>> c
([1], [2])
>>> a[0] = 3... | stackexchange/codereview |
What does the | mean?
m_pD3DDevice->SetFVF(D3DFVF_XYZ | D3DFVF_DIFFUSE);
| stackexchange/codereview |
Anyone has any experience with GameKit GKErrorDomain Code 3? I receive the error message when I try to upload a score to a leaderboard in the Sandbox. The iOS reference library just says that Indicates that an error occurred when communicating with Game Centre The Here is the full error message:
Error Domain=GKErrorDom... | stackexchange/codereview |
I'm writing a custom module for one of my projects and I'm having a bit of an issue. What I'm trying to do is get a piece of data from uc_cart_get_contents() into a variable so that I can use it in a calculation:
Here's my var_export:
array ( )array ( 0 => stdClass::__set_state(array( 'cart_item_id' => '5', 'cart_id... | stackexchange/codereview |
I would like to plot how the amplitude and orientation of a 2D vector evolves over time. To do this I would like to create a graph reminiscent of the canonical E & B field graphs you may recall from an introductory electricity and magnetism class.
Specifically, I would like to connect my 2D vector points with a ribbon... | stackexchange/codereview |
what does the relation between a Web frontend and a smartphone App with identical feature sets look like regarding the development effort? Are there any specific differences regarding the development effort between Apps of different smartphone platforms (iOS, symbian OS, Android, etc.) ignoring training time? A general... | stackexchange/codereview |
i want to use somthing like http://www.example.com/domain.com instead of http://www.example.com/index.php?url=domain.com.
how can I do this using .htaccess?
update: i finally figured it out. :)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1
http://www.pagerankcheckertool.com/f... | stackexchange/codereview |
My app has a bunch of dialogs where a caller is asked to pick and choose from a list:
"Which would you like? Account Information, Account Changes, Request Documents, Speak to a Representative."
In pseudocode, here's how it would appear:
<prompt>
Which would you like? Account Information, Account Changes, Request Doc... | stackexchange/codereview |
So I have a .htaccess file which is performing a rewrite from /testscript1.php/testvar1/testvar2 to
/testscript2.php/testvar3/testvar4
(this is an over simplification but you get the idea).
Now though in my testscript2.php script when i access the $_SERVER['REQUEST_URI'] variable i see /testscript1.php/testvar1/testv... | stackexchange/codereview |
I want to allow HTML in a comment box (eventually use tinymce or something like that), store it in an MSSQL database, and then read it back to a page where the field is rendered in a tabl cell.
It all works fine with the storing of the HTML after I fixed the validation problem on the action method. But when read back f... | stackexchange/codereview |
I am working on PHPunit tests and so far everything is great. There is one issue, however, and it is with the following setup. Ideally I'd like to select the next value in the sequence (postgreSQL) and pass that into the function so I can validate it against the array returned from my class being tested (new row in dat... | stackexchange/codereview |
Possible Duplicate:
How to start an Activity from a Service?
Could some one please tell me how to invoke an activity from a service when the service receives some content from a server. the service keeps getting the data and the activity needs to update itself.
I am unable to find a good tutorial for broadcast inten... | stackexchange/codereview |
I'm using Rack middleware that accepts some configuration that I need to change at run time. So I need the instance of its class that's currently in memory. Is there a way to do obtain it?
| stackexchange/codereview |
I just tried to deploy to Heroku and got a 500 server error.
heroku logs:
Started GET "/" for ##.##.###.### at 2010-10-14 17:59:34 -0700
Processing by WelcomeController#index as HTML
Rendered welcome/index.html.erb within layouts/index (2.3ms)
Completed in 3ms
ActionView::Template::Error (can't convert nil into ... | stackexchange/codereview |
I have a string. It looks like s = 'e6b693e6a0abe699ab'.
I want to put a percent sign in front of every pair of characters, so percentEncode(s) == '%e6%b6%93%e6%a0%ab%e6%99%ab'.
What's a good way of writing percentEncode(s)?
(Note, I don't care that unreserved characters aren't converted into ASCII.)
I can think of big... | stackexchange/codereview |
I have the following XML:
<links>
<item>
<title>Title 1</title>
<url>http://www.example.com/url-1</url>
</item>
<item>
<title>Title 2</title>
<url>http://www.example.com/url-2</url>
</item>
<item>
<title>Title 3</title>
<url>http://www.example.com/url-3</url>
</item>
</links>
And,... | stackexchange/codereview |
I have a file called config.php with contents that looks like this:
$setting_1 = "value1";
$setting_2 = "value2";
$setting_3 = "value3";
$setting_4 = "value4";
How can I use a form to edit/save these values from a webpage? Any help would be appreciated.
| stackexchange/codereview |
How to get all unique words from a webpage in an array? (without all attributes and javascript etc.)?
Could anybody help me with this?
| stackexchange/codereview |
Is there a real reason to hide exceptions on a webpage? I can understand hiding to not scare users but on the site i am developing theres no concern for scaring users. I imagine if you have SQL injection holes hiding the exception wont actually matter.
So what reasons might one have to hide exceptions on a webpage from... | stackexchange/codereview |
please can anyone help me with the port scanner program to scan ports on the IP address provided,for ACK. i want to know the technique used to scan for ACK & use multi-threading so please help me in that perspective.
Thank you
| stackexchange/codereview |
I am trying to find the long and lat of a city on the iphone. Say the user is searching for London, I would call some function that would retrieve the long and lat of London. I have looked on the web and found you can use a Google API but there must be an Apple function somewhere to handle this?
I have come accross the... | stackexchange/codereview |
Testing my app on the device it returns a leak whe i call the copy of a custom object ande i can't understand why.
this is the call:
NSMutableArray *arr = [[NSMutableArray alloc] initWithCapacity:5];
for (SinglePart *sp in [copyFrom partList]) {
[arr addObject:[sp copy]];
}
self.partList = arr;
[arr release];
thi... | stackexchange/codereview |
I have some xml data in the format below -
<xyz:reqResponse
xmlns:xyz="http://www.test.com/xyz/"
xmlns:akt="http://www.exmple.com/akt/">
<xyz:version>1.2</xyz:version>
<xyz:totalRecords>659</xyz:totalRecords>
<xyz:records>
<xyz:record>
<doc>
<str name="icon_url">http://www.icons.... | stackexchange/codereview |
I want to evaluate AgileZen, but I was wondering if I could upload my existing backlog from TFS into their system.
I planned to export my backlog into Excel, and then save as a CSV or something.
Is there a way for Agile Zen to upload a CSV or other format?
| stackexchange/codereview |
I was using Background worker at the user control level and it was working fine.But then I pushed the worker in one of the Helper function.My question is that it works fine until i try to cancel the task. In the DoWork function there is loop calling the web service each time and before calling the service it check canc... | stackexchange/codereview |
I am reading the book The Art of Assembly Language. I came across these two lines.
the three byte encoding for mov ax, [1000] would be 0C6h, 00h,
10h and the three byte encoding for mov ax, [2000] would be 0C6h, 00h, 20h.
Can anybody show me how mov ax, [1000] converted to oc6h, ooh, 10h and mov ax, [2000] converted... | stackexchange/codereview |
I want to write an Oracle PL/SQL stored procedure that takes as a parameter a list of pairs of some other type, say varchar2(32). Is this possible? What's the best way to do it?
| stackexchange/codereview |
I have a form where I've got multiple text inputs for various timefields, each with a unique ID set for some other code that I'm using. I'm also trying to use a time entry script that has a simple single line bit of code to implement, but as I have 28 different fields all with different IDs, this is going to get repeti... | stackexchange/codereview |
I have two questions (does that violate etiquette?) surrounding Twitter authentication.
The first question is this. I'd like to store the access token that I receive but it is a dictionary object. Do I store the whole dictionary object or just some of the pertinent parts.
Secondly I'd like to know how to log the user o... | stackexchange/codereview |
not sure if it matters that I run the code from haml
this line works nicely
- files = Dir['*']
but here I suspect the spaces in the path....
- files = Dir["C:\Program Files\TestPro\TestPro Automation Framework410\Output Files\builds\*.xml"]
| stackexchange/codereview |
I'm going over some design pattern questions and I looked at the definition and examples of the Decorator Pattern in GoF. It says
Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
It gives examples of Decorators which us... | stackexchange/codereview |
Can someone help me with a code snippet in C# to search(linq preferably) for either XML element or attribute in a XML loaded using treeview control? The user has a search string tab in a WinForm UI and on a successful search the given node containing the element or attribute string is highlighted.
| stackexchange/codereview |
With respect to Code Igniter And MySql:
How to hide index.php from Url by htaccess?
| stackexchange/codereview |
Are there any .Net libraries that provide a way of exporting sql database data to plain text files (i.e. csv\tsv)? SqlBulkCopy only applies to the import part of the solution and I prefer not to be calling any Process.Start calls to open up command prompts to call bcp.exe.
| stackexchange/codereview |
I have to tell to the user in a web application(using struts) the download speed.
What is the best way?
For the moment I simply have a .jsp filled with java scripts and I calculate the time it takes to the user to load this .jsp(I make this action 3 times and take the average speed). It worked ok when I had slow connec... | stackexchange/codereview |
Well, I am not alone who is being sick of magical strings which are constantly used just to do data binding -- see:
How to make Databinding type safe and support refactoring
However I am concerned with performance of this solution and much more typing -- each time you would like to use nameof you have to type a lambda.... | stackexchange/codereview |
I have a string in the form $string = 'London,Paris,Birmingham' and I want to search multiple columns for occurences of these values.
For example WHERE events.name, events.cities, events.counties IN (".($string).")
Can someone recommend me a simple and short way of doing something like this.
| stackexchange/codereview |
I have a window filled with a DockPanel containing 3 elements, a MenuBar docked at the top, a StatusBar docked at the bottom and a TabControl filling the body.
At least, I would like the TabControl to fill the body. In the visual designer, the TabControl and StatusBar are laid out side by side instead of top & botto... | stackexchange/codereview |
I've been searching high and low for a satisfactory answer to this and failed. I hope StackOverflow can deliver for me!
I am using SharePoint Foundation 2010 (my first real attempt to deep dive into SharePoint), with (among other things) a custom web part; the master page for the site uses a CSS file supplied by the cl... | stackexchange/codereview |
I have both positive and negative numbers (money) in a column and need to:
SUM the total ie. SUM(myColumn) based on if the numbers are +/-
Present the result as an absolute ie. even though the result is -1234 it should be presented as 1234
SQL is not my trade as you probably notice but we've solved most other issues ... | stackexchange/codereview |
This is still related with my previous questions, VBA: How to display an error message just like the standard error message which has a “Debug” button?
Now, I successfully make the current cursor in VBE jump to a particular procedure in VBE. I used Application.Goto to achieve this. However, what actually I want is to m... | stackexchange/codereview |
I'm working on a countdown timer for my website, but can't get the script to work. The creator of the script, PHP F1, hasn't been able to help with it.
Question is: Why is the year in the target date ($targetDate) variable not making it through to the HTML/JavaScript implement?
I'm using the mktime() function. No matte... | stackexchange/codereview |
I have a page with file upload form.
<form enctype="multipart/form-data" method="post" action="uploaded.php">
<input type="file" name="my_file">
<input type="submit">
</form>
I need to post results into a modal window created with colorbox jQuery plugin.
http://colorpowered.com/colorbox/
Does anyone know how do ... | stackexchange/codereview |
I am using google maps API V3 to create a styled map where I am using custom colors. I am wondering if it is possible to use the satellite image of the water while using a custom style on the land. I.e. I'd like the water to be the satellite image while the land will be a custom solid color. Right now I can give the ... | stackexchange/codereview |
I have a page where there are multiple records. Each record has a button to open a dialog box to create a name. The name then creates a related record in the database and updates the source record.
There is a single dialog box instantiated and I want to show the dialog box, get the result and return it to the correct r... | stackexchange/codereview |
I have a appengine webapp where i need to set HTTP Location variable to redirect to another page in the same webapp. For that i need to produce a absolute link. for portability reason i cannot use directly the domain name which i am currently using.
Is it possible to produce the domain name on which the webapp is hoste... | stackexchange/codereview |
I need to pass DateTime value in C++. (Creating a plugin for AmiBroker)
I have to pass it to AmiDate .
I have date in long variable. (seconds from midnight January 1, 1980 )
The target structure is defined as below.
// 8 byte (64 bit) date time stamp
union AmiDate
{
DATE_TIME_INT Date;
struct Packed... | stackexchange/codereview |
I have problem with gdb, it wasn't stop in one function. Can you explain why and how to stop program after calling strcpy?
grzes@trampek:~/poligon$ gdb ./char_array2
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is... | stackexchange/codereview |
I am trying to implement a binary search using objective-c blocks. I am using the function indexOfObject:inSortedRange:options:usingComparator:. Here is an example.
// A pile of data.
NSUInteger amount = 900000;
// A number to search for.
NSNumber* number = [NSNumber numberWithInt:724242];
// Create some array.
NSMuta... | stackexchange/codereview |
I want to render the <fb:multi-friend-selector> on my website. I have already registered my website for Application ID and Application Secret, and have successfully implemented the single-signon using the Facebook PHP SDK and javascript SDK. Since it has been written the javascript library must be intialized for xfbml ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.