instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
How can I do batch updates in CodeIgniter instead of firing query each and every time in database?
| stackexchange/codereview |
I am using SIMD to compute fast exponentiation result. I compare the timing with non-simd code. The exponentiation is implemented using square and multiply algorithm.
Ordinary(non-simd) version of code:
b = 1;
for (i=WPE-1; i>=0; --i){
ew = e[i];
for(j=0; j<BPW; ++j){
b = (b * b) % p;
... | stackexchange/codereview |
On on hand:
1. You never get time to do it.
2. "Context switching" is mentally expensive (difficult to leave what you're doing in the middle of it).
3. It usually isn't an easy task.
4. There's always the fear you'll break something that's now working.
On the other:
1. Using that code is error-prone.
2. Over time you m... | stackexchange/codereview |
I know you can right click on an individual method and find all references for a single method but is there a way to find all references where there is only the method definition returned (i.e. no external references to the method).
| stackexchange/codereview |
Here is my issue, I am selecting and doing multiple joins to get the correct items...it pulls in a fair amount of rows, above 100,000. This query takes more than 5mins when the date range is set to 1 year.
I don't know if it's possible but I am afraid that the user might extend the date range to like ten years and cra... | stackexchange/codereview |
Last week we were able to install an FBML application to a Fan Page Tab. Now the Tab will not show up. See screenshot here: http://bugs.developers.facebook.net/attachment.cgi?id=3075
FBML application: http://apps.facebook.com/alice-storefront/
Fan Page Test: http://www.facebook.com/pages/manage/#!/pages/Alice-Sandbox/1... | stackexchange/codereview |
In VB Classic, VBA and also in Visual Studio you can dbl click close to the left hand margin of a block of code and it will select the whole of the current block (sub, function etc). In Visual Studio this clickable area is adjacent to the line numbers on the left.
Is there a keyboard shortcut that will do the same job?... | stackexchange/codereview |
I've been trying to get Thrift to work with WP7, but has put it on hold preliminary.
I'm now looking for other solutions to this and would like to get some feedback on which solution to choose, if any.
Any suggestions is much appreciated, so don't hesitate :)
| stackexchange/codereview |
The above regular expression (in Java) matches a string of alpha numeric characters of length between 5 and 10.
How can I modify the above regular expression to match with the above requirements as well as matching with an empty string?
| stackexchange/codereview |
Does anybody know if there is a pluggable app that you can use to achieve url like image extraction for Django?
| stackexchange/codereview |
I have a dropdown list which contain "HR", "Test", and "DEV". I want on the basis of selection "HR", "Test", and "DEV" the second dropdown values will display.
private void additems()
{
//Controls.Add(cmbpackage);
cmbpackage.Items.Add("HR");
cmbpackage.Items.Add("Test");
cmbpackage.Items.Add("DEV");
... | stackexchange/codereview |
I know to vertically align text to the middle of a block, you set the line-height to the same height of the block.
However, if I have a sentence with a word in the middle, that is 2em. If the entire sentence has a line-height the same as the containing block, then the larger text is vertically aligned but the smaller t... | stackexchange/codereview |
Is it possible to write a regular expression to check whether all numbers of specific 10 digit number occured up to 3 times?
for example return value for Regex.IsMatch("xxxx", "4433425425") is false.
and for Regex.IsMatch("xxxx", "4463322545") is true. what is xxxx?
in the first one i have 4 occurrence of digit 4 and ... | stackexchange/codereview |
Wondering if its' possible to have solution within solution in vs 2010?
How?
thanks alot
| stackexchange/codereview |
I have heard that if you have two URL's for your site i.e. http://yoursite.com and http://www.yoursite.com, it affects your SEO and page rank. Instead, one should do a permanent redirect from http:// to http://www. Is this correct?
Now I have seen all articles showing how to do it in IIS. However I have no access to II... | stackexchange/codereview |
I want it to run three times but it actually never runs the loop and gets out.
In VB 6.0 I could do that with a similar structure but how can I achieve the same thing with C# for loop? I want to to count down but it is not ALWAYS the case, sometimes I am passing "1" and sometimes "-1" for the step , when passed with "-... | stackexchange/codereview |
How can I find if a sorted array has an element a[j]=j in O(log n) time?(no duplicates)
| stackexchange/codereview |
Typo3 - Question:
In the extensionmanager when you click on "Information" there often is a (red) error which reads like this: "No XCLASS inclusion code found in file xxxxx".
Especially when developing an extension I am looking for a way to fix this this.
Any ideas?
| stackexchange/codereview |
I have a program that does batch processing on some drawings. One of the drawings throws an exception "Error Decrypting Data" when I try to open it. This drawing in particular was generated by a third-party tool other than AutoCAD. In addition, this problem only occurs in AutoCAD 2011. In AutoCAD 2010 it prompts th... | stackexchange/codereview |
How can i explode field value of table in select query ?
for e.g. i have 1 field in table named "coordinates" which contains latitude , longitude.
Now i want to use this latitude and longitude in select query.
Can i separate this values and use it in select query ?
| stackexchange/codereview |
One of my favorite features of Eclipse is the ability to open a caller/callee hierarchy of a method.
By default, the view shows calls to/from classes that are outside of my codebase... which I don't usually care about.
There is an option to filter out specific package names I don't want, but I need to do the opposite..... | stackexchange/codereview |
We have a slow backend server that is getting crushed by load and we'd like the middle-tier Scala server to only have one outstanding request to the backend for each unique lookup.
The backend server only stores immutable data, but upon the addition of new data, the middle-tier servers will request the newest data on... | stackexchange/codereview |
function fkey(a) {
a || (a = {});
if (!a.fkey) a.fkey = $("input[name='fkey']").attr("value");
return a
}
I guess a is actually a function, but how to understand (!a.fkey) ?
| stackexchange/codereview |
I've written my first big Obj-Oriented Javascript charting application (bar charts, gantt charts, etc) and I'd like to give users the option to customize output -- things like font size, charting colors, etc.
Right now, I'm passing in a config file that contains global variables which are either A) hard-coded, or B) pu... | stackexchange/codereview |
Am in the process of creating my own set of coderush templates for MVC both on the HTML side and in the code-behind.
Am wondering if anyone has gone through the same process and has put them anywhere on the public domain where I could obtain them rather than "reinventing the wheel"?
Otherwise will put together a list o... | stackexchange/codereview |
a book I'm reading on XML says that to select all nodes in an XML file that have a specific attribute, use the syntax:
//*/@_attribute_
What I don't understand is why the asterisk is needed. As I understand it, the expression // selects all descendants of the root node. So, wouldn't //@lang, for example, select all de... | stackexchange/codereview |
I was asked to resolve an issue with shtml file and the problem is like this:
A person was asked to edit an shtml file to add a new radio button. She downloaded the file, added some content and uploaded it to the web server. To my utter shock, the img src="images/Front_Page_22.jpg is now pointing to file:///C|\path1\pa... | stackexchange/codereview |
Possible Duplicate:
SQL query multiple tables
I have these 2 tables:
ASSOCIATION_TABLE: [id, key, name, manager, office, bank, customer]
and
OFFICE_TABLE: [id, name, address, phone]
I am currently running this query to get a data set that I need:
SELECT `name`, `key`, `office`, `manager`, `id`
FROM `database`.`ASS... | stackexchange/codereview |
I am trying to implement a dynamic autocomplete widget in android. I am done with the major functionalities and the autocompletion implemented is for youtube video search.
When I start typing a letter or two, the auto-completion is not working. But when I type three letters or more it works prfect. It also works when I... | stackexchange/codereview |
I am trying to come up with the best way to get only certain properties from a type using reflection. How can I differentiate the properties from each other?
Let me add this to help clarify my question.
I understand that I can use binding flags or name. But say I want only a certain four properties. Would the best w... | stackexchange/codereview |
i'm dramatically confused with reading XML...I feel in way over my head.
currently, using the XML below as an input source, i'm able to get all of the names by using
XmlNodeList name = xDoc.GetElementsByTagName("Name");
int i;
for (i=0; i < sent.Count; i++)
{
MessageBox.Show(name[i].InnerText);
}
When I try to do... | stackexchange/codereview |
Could it be done by keeping a counter to see how many iterations an algorithm goes through, or does the time duration need to be recorded?
| stackexchange/codereview |
I have a larger image of 1024 x 768. When the image is displayed in the android device as the background image then it gets compressed. Is there any way that the image can be displayed properly in all screen resolution?
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width =... | stackexchange/codereview |
I'm trying to do some simple manipulations with variables in MySQL 5.0 but I can't quite get it to work. I've seen many (very!) different syntaxen for DECLARE/SET, I'm not sure why... in any case I'm presumably confusing them/picking the wrong one/mixing them.
Here's a minimal fragment that fails:
DECLARE FOO varchar(... | stackexchange/codereview |
In what encoding are the elements of sys.argv, in Python? are they encoded with the sys.getdefaultencoding() encoding?
sys.getdefaultencoding(): Return the name of the current default string encoding used by the Unicode implementation.
PS: As pointed out in some of the answers, sys.stdin.encoding would indeed be a b... | stackexchange/codereview |
i have created a log4j util class where i'm picking up the file using
org.apache.log4j.xml.DOMConfigurator.configure("log4j.xml");
but when testing, it throws
log4j:ERROR Could not open [log4j.xml].
java.io.FileNotFoundException: log4j.xml (The system cannot find the file specified.)
at java.io.FileInputStream.<ini... | stackexchange/codereview |
i m graduate student and as my project i have to run Erlang Chat Application, but i am confused to run 2 nodes on my single machine having windows vista. can anybody help me please to run the application.
regards
anum
| stackexchange/codereview |
I'm looking for some data on Australian boundaries - particularly the national boundary and individual state boundaries. The format I would prefer is WKT but anything simple would be good (ideally I need to use it with the JTS (Java Topological Suite) package).
Thanks,
| stackexchange/codereview |
If you've implemented the Hungarian Method exactly as given in Figure 11-2 of Combinatorial Optimization: Algorithms and Complexity, did you succeed without altering the pseudo-code in any [significant] way? To be specific, I'm referring to the corrected 1998 Dover edition, which is up-to-date with respect to the errat... | stackexchange/codereview |
i am attempting to use HttpUtility.UrlEncode to encode strings that ultimately are used in URLs.
example
/string/http://www.google.com
or
/string/my test string
where http://www.google.com is a parameter passed to a controller.
I have tried UrlEncode but it doesn't seem to work quite right
my route looks like:
routes.... | stackexchange/codereview |
What is the best way to reset a semaphore that have threads waiting on it. Right now all I can think of is just doing a while loop and releasing the semaphore until a semaphore full exception occurs. I'm not sure what is the best practice.
semaphore.Close();
semaphore = new Semaphore(0,1);
Or
while(true)
{
try
... | stackexchange/codereview |
I have a number of files in a give folder A. I want to move these files to folder B one by one. i.e., I am doing processing to every file. so after my own processing completes, I want to move the processed file to a different folder. How can I do that?
Please help!
| stackexchange/codereview |
I have a DataGridView with a DataTable set to its DataSource. The DataTable has two columns. The user has a TextBox which dynamically (after each keypress) searches for a match in the first column.
I want to jump to the matching record (if any) after each key entry, so it needs to be fast.
I use the Find() method on ... | stackexchange/codereview |
I'm writing a web app using the django framework and I was just wondering what are the pros/cons of using the built-in django.contrib.auth.models.User model over my own user model?
Please explain in terms of performance, scalability and security.
Many thanks
| stackexchange/codereview |
New to iPhone dev. I have a view which contains a UIScrollView which contains a UIImageView. I added a (double) tap gesture recognizer on the image view which makes an alert box open. For some reason, and I'm sure I'm just retarded, it opens 3 times.
Here's my code:
- (void)viewDidLoad {
scrollView.delegate = self... | stackexchange/codereview |
I have a label sitting on a frame which is updated periodically to show the status of the application. Periodically, the name of the item being processed will not fit into the window, and with the way I currently have the label configured the window expands to accomidate the label.
Ideally, I'd like way to smartly t... | stackexchange/codereview |
I have a pre-processor that I'd like to run on my .cpp/.h files before compiling them. I created a Custom Build Rule and applied it to my project. This successfully runs the pre-processor, but it does not actually compile the files afterwards. So what I'd like to do is run my custom rule first and then run the C/C++... | stackexchange/codereview |
I unfortunately have several macros left over from the original version of my library that employed some pretty crazy C. In particular, I have a series of macros that expect certain types to be passed to them. Is it possible to do something along the lines of:
static_assert(decltype(retval) == bool);
And how? Are ther... | stackexchange/codereview |
I have a multidimensional array, such as:
$array = array(
'a' => 1,
'b' => 2,
'c' => array('42'=>'foo', '43'=>'bar'),
'd' => 4
)
I'm trying to feed it into a SOAP call as follows:
$response = $client->SomeFunction($array);
The XML request produced ignores 'c'. Why?
| stackexchange/codereview |
How to find the Struts version being used in a Web Application project in Eclipse?
My struts-config.xml says
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
Thanks.
| stackexchange/codereview |
What is the most suitable hash function for file integrity checking (checksums) to detect corruption?
I need to consider the following:
Wide range of file size (1 kb to 10GB+)
Lots of different file types
Large collection of files (+/-100 TB and growing)
Do larger files require higher digest sizes (SHA-1 vs SHA 512)?
I... | stackexchange/codereview |
I am compiling some C++ programs through a perl script using:
g++ -o out `find ./ -iname "*.h" -or -iname "*.cpp"`
This seems to generate an an out file every time, regardless of whether the program compiled successfully or not.
Whenever the script tries to run programs like this, it gets permission errors (weird sinc... | stackexchange/codereview |
I'm writing a JS lib that reads chess games to turn them into re playable games, in one single web page there can be many games (one in its own div), what I'm wondering is – thinking about performance – if it's better to have one large object that holds all the moves of all the games or many smaller objects each storin... | stackexchange/codereview |
I have inherited a website which is build entirely in Flash and the main swf is 4.5MB large (ouch!). As you might guess this has caused a large hosting bill for my client. To solve the issue somewhat I want to move this monolithic swf to Amazon S3, however, this is causing security issues.
This is how the larget swf i... | stackexchange/codereview |
Hi ALL
I am working on 3D Data rendering and I am not able to find out the equivalent of following in mozilla, opera, chrome
Can anybody help me out from this problem.
for e.g:
-webkit-transform: rotateX(90deg) translateZ(200px) rotateY(90deg) rotateZ(90deg);
Thanks,
Amit
| stackexchange/codereview |
I have read this thread: J2EE/EJB + service locator: is it safe to cache EJB Home lookup result ?
I use the same approach, i.e. I obtain EJB home object for my entity bean and cache it in a servlet.
My question is: is it safe to share this object between multiple threads?
From EJB 2.1 spec I found only that concurrent ... | stackexchange/codereview |
I have been using Micah Carrick's PAYPAL IPN class till now for
web_accept
but now one of the Client wants to integrate the Recurring method into it.I tried using the same stuff but unfortunately was not so successful this time.
I am trying to connect to the Paypal recurring method.Following is the code by which I ... | stackexchange/codereview |
I can not send data to MVC controller using YAHOO connect library.
Parameters query and filter are NULL. Where is the problem?
// --- JavaScript --- //
var callbacks = {
// Successful XHR response handler
success: function (o) {
var messages = [];
// Use the JSON Utility ... | stackexchange/codereview |
I got an old application which was written in a C++. I have 0 experience with it but I am suppose to make some changes in app. One of them is to change some text. Problem is that part of updated text needs to be bold, but i have no idea how to do that. I googled but with no much success. Only think I now is to go to ne... | stackexchange/codereview |
I have a form, well its not really a form because its not wrapped in form tags because I use jQUery to grab the values of each input and pass that off to my ajax page for database processing.
My problem is that I have a <textarea></textarea> that is pimped out by TinyMCE, How on earth do I grab the content inside the e... | stackexchange/codereview |
I built a gallery. The centered image is scaled up. I did this by extending from gallery and overwriting getChildStaticTransformation. There I modified the camera. It zooms in when the image is close to the center point.
Problem: the centering item (from getSelectedItem()) changes a bit too late. sometimes the side el... | stackexchange/codereview |
Possible Duplicate:
What's the shebang (#!) in Facebook and new Twitter URLs for?
I recently saw Facebook and Twitter's URL:
http://www.facebook.com/#!
http://twitter.com/#!/username
What is #! ? Anyone?
| stackexchange/codereview |
I have been trying to apply the remove function to my html page but with no result until now. I have three rows and they all have a remove button, I would like to create an effect that when you click on the remove button the whole row block disappears. Any help would be deeply appreciated.
HTML
<div cla... | stackexchange/codereview |
I am writing an AJAX script that basically calls a PHP page and requests some information. The PHP page queries a database. I want to set the page to make the call every 5 minutes, but the only way I know how to do so is by using the settimeout function. I am wondering if this settimeout function is constantly running ... | stackexchange/codereview |
I'm working with Objective-C, but probably it doesn't matter the programming language for this. So basically I have an array, with say, the integers 12, 5, and 17, and I want to be able to pull out the largest number, or the smallest, or second smallest, etc.
Basically I want to be able to sort them into ascending or ... | stackexchange/codereview |
Given:
enum Foo
{
FIRST,
SECOND
}
What is the JNI equivalent for the following code?
Foo foo = ...;
int value;
switch (foo)
{
case FIRST:
value = 1;
break;
case SECOND:
value = 2;
break;
}
I know I can use foo.equals(Foo.FIRST) from JNI, but I'd like to get the same performance as switch(enum)... | stackexchange/codereview |
I'm currently learning Java.
I have a for loop which uses a counter to keep track of how many words are written on a line.
When the wordCount == 10, I insert a line break System.out.println()
I want to reset wordCount to zero after this line break, but redeclaring wordCount == 0 is "not a statement" in NetBeans. How do... | stackexchange/codereview |
How do I go about hooking up my validation with jquery only? I do not want to use Microsoft ajax. I saw on this blog exactly what I want, but it seems that the file MicrosoftMvcJqueryValidator.js is deprecated or canceled.
Is there an official way to do this now? Possibly using asp.net mvc 3.
| stackexchange/codereview |
I'm working on an IPad application (iOS 3.2) that plays a couple of videos using the MediaPlayer framework. After running the app for a while videos don't play anymore. The video is loaded, meaning i can buffer through it but it's started in pause mode and cannot be set to played. Each time i press play it pauses again... | stackexchange/codereview |
Are there good SWT-tutorials for developers experienced with Swing? Which, especially, explain how to do different Swing-features with SWT?
| stackexchange/codereview |
Hi
I am working in windows 7 phone based app using silverlight. I have following methods in one of my UI classes, GameScreen.xaml. I am calling startTimer method in the constructor GameScreen. Problem is that when the updateTime method is called and
timeLabel.Text = "Time left: 00 : " + time;
line is executed, the p... | stackexchange/codereview |
When processing an open xml document, colors can have various transformations applied to a base color to generate a relative color. For instance <a:satMod value="25000"> would modify the base colors saturation by 25%. There are two transforms I have been able to find very little information on and they are:
<a:gamma>
... | stackexchange/codereview |
So I've been porting some of our services to use Logback over log4j and I've been using the log4j-over-slf4j jar to spoof log4j for our legacy dependencies. The only issue is log4j-over-slf4j doesn't implement many of the classes of log4j so I'm seeing a decent few class not found exceptions from dependent jars. How ha... | stackexchange/codereview |
Even After setting the frameborder attribute in the iframe to 0 there is still some white space present around the iframe border (unlike the original url/link page). Is there any other way to get rid of the white space or some white must be presented around the iframe as it is within the webpage (or part of it) and it ... | stackexchange/codereview |
I'm trying to make a player that user can click on the slider and mark a segment. The segment should be appear at different color. Also, there should be tiny button on both sides of segment, so the user can click on them to cancel/change it's position.
Can you recommend me how to achieve this targets ?
How to place the... | stackexchange/codereview |
I want to send a user to a page on my site that prompts him to upgrade to a more recent browser if they are using ie6 or lower.
How can this be achieved in Django?
| stackexchange/codereview |
Use jqGrid, how to load the local json request directly data without url, consult ace,
JqGrid whether uncompressed version of the source
| stackexchange/codereview |
Given two IEnumerables of the same size, how can I convert it to a Dictionary using Linq?
IEnumerable<string> keys = new List<string>() { "A", "B", "C" };
IEnumerable<string> values = new List<string>() { "Val A", "Val B", "Val C" };
var dictionary = /* Linq ? */;
And the expected output is:
A: Val A
B: Val B
C: Val ... | stackexchange/codereview |
I am able to connect 2 phones through Bluetooth. But is it possible to connect through the wireless network?
Any help will be appreciated!
Thanks
Pradeep
| stackexchange/codereview |
I'm a new Apple developer and I'm struggling with the different image representations...
I would Have a CVPixelBufferRef in kCVPixelFormatType_32ARGB format, and I would like to create a new kCVPixelFormatType_24RGB CVPixelBufferRef from it (i.e. discarding the alpha bits).
Is there a simple way to do it, or do I have... | stackexchange/codereview |
What are the reasons putting a module in /helpers over the /lib folder in a RoR app?
Are /helpers more controller specific, while the /lib is more general in nature?
| stackexchange/codereview |
Inspired by a thought while looking at the question "Correct HTTP status code when resource is available but not accessible because of permissions", I will use the same scenario to illustrate my hypothetical question.
Imagine I am building a a carpooling web service.
Suppose the following
GET /api/persons/angela/locati... | stackexchange/codereview |
I am having serious issues setting up a proper tunnel in paramiko to enable a database connection. I have reviewed the example 'forward.py', but am not understanding how to then link the database connection to it. Any pointers woudl be much appreciated.
I think I need something the following:
t = paramiko.Transport((... | stackexchange/codereview |
I have some questions about the usage of the close() method when using Java InputStreams. From what I see and read from most developers, you should always explicitly call close() on an InputStream when it is no longer needed. But, today I was looking into using a Java properties file, and every example I have found h... | stackexchange/codereview |
class a(object):
def __init__(self):
self.b = 1
self.c = 2
This gives the error: NameError: name 'self' is not defined
I looked at a previous post, but the error was for a different reason. Any help with this?
| stackexchange/codereview |
i.e. - i want to return a string "yellow" using something like xpath expression "//banana/@color" and the following example xml...
<fruits>
<kiwi color="green" texture="hairy"/>
<banana color="yellow" texture="waxy"/>
</fruits>
$fruits = simplexml_load_string(
'<fruits>
<kiwi color="green" texture="hairy"/>
<bana... | stackexchange/codereview |
I have a class which initializes my log4j. This code will never print or exit, I dont understand why.
public class MyLog
{
private static Logger log;
static
{
log = Logger.getRootLogger();
try
{
PropertyConfigurator.configure("somefileNameWhichDoesNotExist");
}
catch... | stackexchange/codereview |
this code
= 5.times {|n| puts "<BR>"}
does nothing for me ...
| stackexchange/codereview |
I hope to add a row to a table in a sqlite database.
[NSString stringWithFormat:@"INSERT INTO myTable (rowid,myName ) VALUES (NULL, '%@');" , [aInfo myString]];
rowid is auto increment.
After insert the row, I hope to get the rowid that generate by sqlite automatically.
Is it possible?
welcome any comment
Thanks
| stackexchange/codereview |
Trying to write better JavaScript, woohoo!
First step for me: YUILoader dependency loader so all of my custom code is available to use at a reliable point in time.
My current environment:
YUI (2.8.1) library path: C:\wamp\www\lib\js\yui\2\build\ (http://localhost/lib/js/yui/2/build/)
All YUI min, debug and raw files l... | stackexchange/codereview |
if ( !this.labelContainer.append(label).length )
this.settings.errorPlacement
? this.settings.errorPlacement(label, $(element) )
: label.insertAfter(element);
(this code is from validate plugin, it repeats for each input)
label is <label>text</label>
element is <input />
This works good, it adds label directly af... | stackexchange/codereview |
I use the following method to playback a recorded sound, it works fine, but why it only plays once, the second time I click the play button, it does nothing, how to reset the data ?
// Write data to the OutputChannel.
public class Playback implements Runnable
{
SourceDataLine line;
Thread thread;
pub... | stackexchange/codereview |
I'm trying to get OpenCV working on Windows 7 64bit.
I tried installing the vs2008.exe installer bundle from the OpenCV website but it produced errors when trying to compile, I Google'd these and it appears that installer is no good for 64bit versions of Windows 7, bugger.
I've tried having a crack at compiling using ... | stackexchange/codereview |
I am really confused as to why sometimes vars will not work when "var" is declared in front of them when used in a namespaced object. Isn't adding "var" in front of every variable the correct thing to do to keep it outside the global namespace?
Or would creating any var without declaring "var" first in my namespaced ob... | stackexchange/codereview |
I am new to android.I need to create a Transparent Panel .
Can any one help me with same code..
Thanks in advance....
| stackexchange/codereview |
Im new to Postgres and I dont know how to translate this MySQL query to postgres:
SELECT pictures.id, MATCH (title, cached_tag_list) AGAINST ('phrase') AS score FROM pictures WHERE MATCH (title, cached_tag_list) AGAINST ('phrase') ORDER BY score DESC;
| stackexchange/codereview |
I saw this site, http://en.tackfilm2.se/, whereby a user is asked to upload an image, which is then used throughout the movie footage.
Can anyone provide some direction / guidance in how this is implemented?
Thanks in advance for any responses.
| stackexchange/codereview |
I have a list of items and wish to set one of their properties to a certain value:
applist.ForEach(Function(x) x.PrePaidTypeID = CInt(DBEnums.PrePaidType.NoPrepay))
...but we think this just does a boolean comparison. Is there a way to force VB to assign the integer value rather than compare it?
| stackexchange/codereview |
Requesting for anyones' kind help to solve a protracted problem, as described below.
I am generating XML files using C# (VS 2008). Environment is Windows Server 2003. There is no problem in generation of the XML files for any of the purposes unless when I use a specific Doctype like given below:
_fileHandler.FileHeader... | stackexchange/codereview |
For a little library project I'm using boost::tuple. Right now, I'm facing the problem of turning a "cons list" I operated on via metaprogramming back to a boost::tuple<...> type. The "dirty" solution would be to provide lots of partial specialications a la
template<class T> struct id{typedef T type;};
template<class ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.