instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm developing a word game for iphone. Now that IOS has multitasking, do I definitely have to save the game state when the game is interrupted?
| stackexchange/codereview |
I created painting application...
Every thing drawing prefect..
Problem is when i running application in my mobile.
i am touching at point, and releasing the point... and touching another point and release another point.. while continuously doing same thing.
its get drawn line in between both point.
what to do?
Thank... | stackexchange/codereview |
I was just looking at the MSDN documentation for ConcurrentDictionary, and I saw this in the "example" code:
// We know how many items we want to insert into the ConcurrentDictionary.
// So set the initial capacity to some prime number above that, to ensure that
// the ConcurrentDictionary does not need to be resized w... | stackexchange/codereview |
For instance, 5 cards in a poker hand of 52 cards = 2598960 combinations.
How would I actually display all those combinations though?
The code to find the number is easy:
def binomial_coef(total,subset)
factorial(total) / (factorial(subset) * factorial(total - subset))
end
def factorial(n)
n.downto(1).inject(:*)
e... | stackexchange/codereview |
I have a special php script that I call from a browser. It does lots of things and it runs for about 15mins. It does stream back some results.
My question is what happens if I close the browser windows? Is the php script terminated? If yes, can I make it somehow not to be affected when the browser window is closed?
| stackexchange/codereview |
This is NOT a question about avoiding to pay apple, my boss has no problem paying the $99 enrolling fee to do the signing certificate stuff. Jailbreaking is not an option.
I have a customer that I am developing an app for, and they want to test/preview the app on their device, before traveling to the office to have a m... | stackexchange/codereview |
I'm having a really wierd problem with PHP session variables. Based on the session ID it looks like there would be double variables inside same session which naturally cannot be possible.
The problem is that 'quote' session variable should remain same when form in page is submitted which reloads the page itself. The $_... | stackexchange/codereview |
To install MySQL gem:
$ export ARCHFLAGS="-arch i386 -arch x86_64"
$ gem install mysql -- --with-mysql-config=/usr/local/bin/mysql_config
returns an error:
ERROR: While executing gem ... (NoMethodError)
undefined method `spec' for nil:NilClass
How can I fix it?
Info:
$ brew list
git
mysql
... | stackexchange/codereview |
I have the following dynamically created class that is passed into the xpath function of nokogiri:
country = nil
ret = parent.xpath(".//text()[regex(.)]", Class.new{
def regex(node_set, lead)
result = node_set.find_all do |node|
node.text =~ POST_CODE_EXPRESSION || node.text =~ ZIP_CODE_EXPRESSION
end
... | stackexchange/codereview |
fgetc() and other input functions can return when there's no data on the file descriptor. This can be simulated for console applications reading from stdin typing Ctrl-D on keyboard (at least on unix). But how to do it programmatically? For example, how to return from the fgetc() in the reader thread in the following c... | stackexchange/codereview |
I've just started working with the html5 canvas element.
I'm using the latest firefox and chromium browsers. And so far, they're
responding alike.
What I'm trying to achieve is scaling of an image without having to
specify the canvas or image drawing sizes. I'd like the canvas to fill
the browser window, and for the ... | stackexchange/codereview |
What is the difference between
<target name="target_fork" description="with fork" fork="true">
</target>
and
<target name="target_nofork" description="no fork">
</target>
I always thought it meant that the target would come back and continue execution when it calls other targets or external build files only if fork i... | stackexchange/codereview |
I have a SQL server query that I want to return all the type of orders in the system. Simple enough using:
SELECT OrderType.OrderTypeID
FROM Order
INNER JOIN OrderType ON OrderType.OrderTypeID = Order.OrderType
GROUP BY OrderType.OrderTypeID
Unfortunately with Crystal Reports, I want the ability to pass through a para... | stackexchange/codereview |
I'm using twitpic and logging in fine, but when changing accounts and trying to upload a pic within a short time frame (< 30 seconds) I get a "401 Unauthorized" back for a little while, and then it starts working after about a minute and my pictures upload.
This seems like maybe twitpic is caching something and it take... | stackexchange/codereview |
I had a column in my DataGridView which is a DataGridViewComboboxColumn, and I need to bind this column from a database table which is also has a column with values like 1,2,3. Based on these values the combo box must display different values, ie. if 1 "Manager" and so on.
| stackexchange/codereview |
Why does the zoom control show like this? It only happens on QVGA resolution smulator. It works perfectly on HVGA resolution.
This is the code that I used.
ZoomControls zoomControls = (ZoomControls) findViewById(R.id.zoomcontrols);
zoomControls.setOnZoomInClickListener(new View.OnClickListener() {
publ... | stackexchange/codereview |
This jQuery plugin has the following function attached to the stop event (which I think is initiated from the _mouseStop event):
$('#canvas').boxer({
stop: function(event, ui) {
var offset = ui.box.offset();
ui.box.css({ border: '1px solid white', background: 'orange', padding: '0.5em' })
.append('x:' +... | stackexchange/codereview |
http://www.asp.net/data-access/tutorials/adding-a-gridview-column-of-radio-buttons-cs
Please refer the above link. How to select the RadioButton programatically?
| stackexchange/codereview |
I am able to port much of my application from Flex 35 to Flex 4.0
Next is to show my current system Operating system name (XP Pro, Vista, Linux..etc) along with the service pack level of my system on which my application is running.
I am able to show uo OS name "Windows XP" using "Capabalities.os" in Flex4.0. but not "... | stackexchange/codereview |
Hi I am using the below code for create a database
public DataHelper(Context context) {
this.context = context;
OpenHelper openHelper = new OpenHelper(this.context);
this.db = openHelper.getWritableDatabase();
this.insertStmt = this.db.compileStatement(INSERT);
... | stackexchange/codereview |
I've build and installed PortAudio using this tarball: 'pa_stable_v19_20071207.tar.gz'
After this step, when I'm trying to install PyAudio via the tarball from this URL:
http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-0.2.4.tar.gz
I'm getting the following error. What might be going wrong in this case?
ente... | stackexchange/codereview |
Currently trying to create an XML system using Ogre and the STL. As a proof of concept, we are trying to get it to output the contents of the XML file to our log file. Sadly our current code won't compile, and we don't know why. Relevant code follows:
Here is a stream class that we have inherited from to simplify ma... | stackexchange/codereview |
I'm trying to redirect something like foo/bar to ?foo=bar, so I can do www.mydomain.com/hey/foo/bar to www.mydomain.com/hey/?foo=bar, but I can't seem to get the syntax right. I tried the following:
RewriteEngine on
RewriteRule ^foo/(.*)$ ?foo=bar [NC]
But this doesn't work. How would I accomplish this? I tried adding... | stackexchange/codereview |
Is it possible to format the time output of stat? I am using
stat -c '%n %A %z' $filename
in a bash script, but its time format is not what I want. Is it possible to change this format in the command, or would I have to manually do it later?
An example output follows:
/lib drwxr-xr-x 2010-11-15 04:02:38.000000000 -080... | stackexchange/codereview |
Does anyone know why this isn't working. It will always print 'unchecked'.
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function msg(x)
{
if($(x).attr('checked')){
alert('checked!!');
}
else{
alert('unchecked');
}
}
</script>
</head>
<body>
<form>
<... | stackexchange/codereview |
I'm fairly inexperienced with JavaScript and jQuery, but I need both for the ASP.Net website I'm working on. I am slowly figuring it out, but I've been relying heavily on StackOverFlow.
Does anyone know of any tool (preferably free) that makes debugging JavaScript and jQuery easier? I've been using Firebug which has ... | stackexchange/codereview |
Is it possible to read a feature like its possible to read a plugin use the eclipse PDE API? Currently I read plugins using:
Bundle[] bundles = Platform.getBundles(name, version);
if (bundles == null) {
throw new NullPointerException("No bundle found with ID: " + name
+ " and ver... | stackexchange/codereview |
I have converted a longitude and latitude on my MapView to a MKMapPoint. I then want to move an imageView to that point using the imageViews center property. It seems that I somehow need to convert the MKMapPoint to a CGPoint so that I can change the center, but the numbers seem to be way off. Here is what I am usin... | stackexchange/codereview |
I've got an image (a straight line) and am trying to rotate it in some angle from a specific point. What happens is that the image is rotated from the center point of itself. I wan't a way through which the base of the image remains the same and it rotates in the angle I want to, just as in case of a clock.
I use
Comp... | stackexchange/codereview |
I am trying to understand what should drive the choice of the access method while using a BerkeleyDB : B-Tree versus HashTable.
A Hashtable provides O(1) lookup but inserts are expensive (using Linear/Extensible hashing we get amortized O(1) for insert). But B-Trees provide log N (base B) lookup and insert times. A B... | stackexchange/codereview |
I have an activity with an EditText on top and a ScrollView with a LinearLayout inside it.
The LinearLayout is populated in the onCreate method with a set of dynamic views based on an object passed with the initiating Intent. This is typically a set of EditTexts.
The result is a list of EditTexts each corresponding to... | stackexchange/codereview |
Can someone tell me exactly where the RemovePreviousVersions property is in a Setup Project in Visual Studio 2008? I feel like I'm in the Twilight Zone.
| stackexchange/codereview |
I have a string that i would like to remove all occurrences of <br>
I tried this and it did not work.
productName = productName.replace("<br>"," ");
However this worked but only for the first <br>
productName = productName.replace("<br>"," ");
How would I get it to work for all <br> in the string.
Edit:... | stackexchange/codereview |
is there an android api that would connect an android device to a printer?
what are the possible ways to connect to a printer in android?
thank you in advance!
| stackexchange/codereview |
I am creating the wrapper POCO classes for ENUM in Entity Framework 4 as mentioned here. I have created the wrapper for the enum as follows
public class PriorityWrapper
{
private gender _t;
public int Value
{
get
{
return (int)_t;
}
... | stackexchange/codereview |
I need to know if i can use getdate() when I insert row in a table using wcf ria service. I'm developing a Silverlight application using C#.
| stackexchange/codereview |
Say we have a list of coordinates like:
(1,2)
(0,3)
(4,1)
(0,3)
(-2,3)
(6,5)
And we wanted to result in the following list, which is defined as the summation of each consecutive coordinates. (Sorry bad definition) like so:
(1,5)
(4,4)
(4,4)
(-2,6)
(4,8)
So there exists a ... | stackexchange/codereview |
I have a read only DGV on a tab of my application. I let the users sort by column and reorder columns and select a row. In another part of the application you can edit the data that is in this dgv so when I go back to the tab with the dgv I'd like to refresh the data but keep the user's settings such as column order, s... | stackexchange/codereview |
I want to specify my own custom layout for the drawer handle, but it keeps centering it, and I don't want it centered!
| stackexchange/codereview |
If I have a service running in my Android phone and I shutdown, will the service call onDestroy? I want the service to perform a task just before the phone shuts down. Although the Google Droid guide says not to put such code in onDestroy, I do not know what else can be done.
| stackexchange/codereview |
I am trying to take lines from a file and put them into a table that will be displayed on the web. I need to be able to reference these lines individually to alter the table information using an if...else statement.
Can anyone help me find a way to reference these lines when they are pulled through - this is my code so... | stackexchange/codereview |
In the event that a Makefile itself is changed, a safe bet would be to consider all targets out of date.
Is there a clever way to add this dependency? Are there any alternatives?
| stackexchange/codereview |
Disclaimer: I'm a Ruby on Rails newbie. Tried Googling and searching StackOverflow without success.
I am creating my first Ruby on Rails app and would like to take advantage of the "thumbs_up" plugin which is similar to vote_fu and acts_as_voteable and works under Rails 3.
https://github.com/brady8/thumbs_up
I have fol... | stackexchange/codereview |
how to retrieve data from table and store in notepad ?
how is it possible in jdbc?
| stackexchange/codereview |
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
$(document).ready(
function () {
$("input[id$='txt_ClientIntakeDate']").val("Text From Jquery");
$("input[id$='txt_ClientIntakeDate']").datepicker();
}
);
I added the above code in the asp.net page which contains master page. Th... | stackexchange/codereview |
i want to convert an audio input which is being given through the microphone into text. i prefer to do this with SAPI and C# any suggestions? or code samples?
Thanks !!
| stackexchange/codereview |
For a c++ arm application I need to trace the memory allocations. To this I am using the gcc memory hooks. For now I am printing the allocations and deallocations, see code below.
However, the malloc's and free's don't add up. Sometimes I see a free on a memory block that pass through didn't the malloc hook before. Or ... | stackexchange/codereview |
I am converting c++ project from 2008 to 2010, with warning level 4
the "Warning C4653: compiler option 'Optimizations (one or more of /Oawp[y])' inconsistent with precompiled header; current command-line option ignored"
warning has been thrown.
| stackexchange/codereview |
I'm looking to implement multi-user operational transform just for plain-text based changes on the server-side on a web-site.
Is there a non-javascript implementation that you can recommend?
| stackexchange/codereview |
I have data that contain 55 columns and 24 rows. What I want to do is to plot every 5 columns in 1 figure. (to be more specific... columns 1-5 figure 1, columns 6-10 figure 2....and so on)
Every time I try a for loop I get lost. Can anyone help me?
It seems simple but I'm still learning how to use matlab.
Thank you for... | stackexchange/codereview |
Friends,
I'm currently brushing up on my SQL Tuning knowledge and it appears that the V$SQLSTATS view could be a useful tool to use.
My question is, the references to this view both in the documentation and an Oracle SQL Book I'm currently reading, mention that this view is "faster".
What is meant by faster? Is it u... | stackexchange/codereview |
I'm trying to add a function in my jQuery script that constructs a complete src path for an img based on its alt attribute. The idea is to make the code as slim as possible so that the non-techies who handle it don't break anything; all they'd have to do is get the alt attribute correct and the rest of the path is cons... | stackexchange/codereview |
with the following code:
var win = new Ext.Window({
xtype: 'form',
layout: 'form',
items: [{
xtype: 'textfield',
value: 'test',
name: 'testing',
labelWidth: 200,
fieldLabel: 'This is a really, really long label here',
labelStyle: 'white-space: nowrap;'
}]... | stackexchange/codereview |
I would like to create a web application that holds a web site in the right half of the screen, and some some widgets with logic in the left half.
For example, the user might specify that they want www.somesite.com to be analysed, so that site will show in the right half of my web page. I then want the user to be able ... | stackexchange/codereview |
I need to code a Caesar cipher in C, so I'm working step by step to understand everything I'm doing.
I need to take care of special chars
example : if a user enters
"This is a déjà vù !"
it will convert this to
"This is a deja vu"
Is there a C function capable of doing this instead of doing it by hand for each speci... | stackexchange/codereview |
I'm new to stackoverflow!
I'm having problems with a piece of code for my companies website, using jquery. I'm trying to track the clicks on two button and set a variable/s which can then be used to determine a course of action. Basically its a sliding dropdown that animates one way if the variable is set to true and ... | stackexchange/codereview |
My team has a service deployed internally, and part of this service is a list of client accounts stored in a sql table. SSRS is hosted on another server and we have integration jobs which [will eventually] pull these client accounts (along with additional info) from our 3 production environments to this SSRS database. ... | stackexchange/codereview |
I am working on an application called Enchanting. The application, based on Scratch, emits Java source code and compiles it for uploading onto LEGO Mindstorms NXT Robots.
While the application is very early, users have a hard time installing it.
Right now Windows users have to:
download and install a Java Developer K... | stackexchange/codereview |
WebView webView = new WebView(this);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setUserAgentString("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7");
webView.setWebViewClient(new HelloWebViewClient());... | stackexchange/codereview |
Possible Duplicate:
Path.Combine for Urls?
I have a root directory like http://localhost/
I have a file name call sample.jpg
when I use Path.Combine(root, file), I get something like http://localhost\sample.jpg, I am wondering if I can get http://localhost/sample.jpg.
| stackexchange/codereview |
is there find and replace dialog box in C#?
| stackexchange/codereview |
I used normal addRow function and removeRow function to dynamically add and remove the row in a table.
function addRow()
{
var ptable = document.getElementById('ptableQuestion');
var lastElement = ptable.rows.length;
var index = lastElement;
var row = ptable.insertRow(lastElement);
var cellLeft = row.insertCe... | stackexchange/codereview |
I'm having trouble finding an answer for this problem. Most similar posts lean seem to be fixed by adjusting some of the maximum size settings in the web.config file. However, none of those suggestions have fixed my issue.
To give a little more background, I'm porting a asmx web service, to a WCF web service hosted i... | stackexchange/codereview |
In my code I interact with a database (not part of my solution file). The database is owned by a separate team of DBA's, and the code we developers write is only allowed to access stored procs. However we have full view of the database's procs, tables, and columns (it's definition). For my code that is dependent upon ... | stackexchange/codereview |
Hi there
I am wondering if there an inbuilt or available api to gather a list of countries and cities for an iphone app?
I am looking to add a search bar where the user can type in a part of city name and a selectable list of cities ordered by country is show. Is there any in-built way to do this?
Thanks
| stackexchange/codereview |
I'm looking for an array with US States and time zone. Something like
$arr_states_timezone = array('WA'=>"PST",...);
I did google a lot but can't find one. Please help me if you have one. Thanks much!
| stackexchange/codereview |
i am trying to build a little ASP.NET 3.5 project to explore DAL concepts. While following the steps on this walkthrough:
http://www.asp.net/data-access/tutorials/creating-a-data-access-layer-cs
I am unable to figure out how to reference the TableAdapter added in the DAL section from within the App_Code directory. I ... | stackexchange/codereview |
What I'm trying to do is this: I want my application to download an image from the Internet and save it to the phone's internal memory in a location that is private to the application. If there is no image available for the list item (i.e. it can't be found on the Internet), I want a default placeholder image to displa... | stackexchange/codereview |
we're having an issue with lock timeouts connecting from a was 6 server to an iseries v6r1 db.
We have the default table and record lock wait times on the relevant tables, however these seem to be overridden by the transaction (http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/rzakj/rzakjrecords.... | stackexchange/codereview |
I want to access some places on a remote machine.The folder i want to access have full control to EVERYONE. The code given below is used to access network path.
System.IO.DirectoryInfo locationInfo = new System.IO.DirectoryInfo(BackupLocationTxt.Text);
if (locationInfo.Exists)
{
// do s... | stackexchange/codereview |
I'm trying to create a curved line between two features using OpenLayers 2.10. I'm afraid I may have found a bug, or I simply don't understand what the curve geometry does.
The OpenLayers docs say: "A Curve is a MultiPoint, whose points are assumed to be connected. To this end, we provide a 'getLength()' function, wh... | stackexchange/codereview |
I need to do a little bit more complicated calculations with time and date values from my MySQL database with PHP.
I need to add or substract different values from a given date.
For example:
Substracting 1 Month
Substracting 30 Days
Substracting 4 Weeks
Adding 4 Month
Adding 3 Month
Adding 90 Days
Adding 2 Years
Pl... | stackexchange/codereview |
In C can you have realloc inside realloc? For example, a struct inside a struct when you need to malloc both of them and realloc both of them. If yes can someone please provide a simple example?
Thank you in advance.
| stackexchange/codereview |
Is there such a program that can open a little input box and send the input to stdout? If there isn't, any suggestions for how to do this (maybe python with TkInter)?
| stackexchange/codereview |
I wanted to know what is the current standard C compiler being used by companies. I know of the following compilers and don't understand which one to use for learning purposes.
Turbo C
Borland C
GCC
DJGPP
I am learning C right now and referring to the K&R book.
Can anyone please guide me to which compiler t... | stackexchange/codereview |
I absent mindedly mv a folder in my svn trunk instead of branching it. I could just mv it back, but I'm afraid I'd lose history. How is this best undone?
Edit: I should be clear that I did the move on the repository, not my working copy, so it was an automatic commit.
| stackexchange/codereview |
Is it possible to select all the parameters of a method and ask ReSharper to create a class from those parameters as a "method parameter object?"
| stackexchange/codereview |
How can I hide the status bar in a Monotouch application in such a way that it is backwards compatible on iOS 3.X while developing on iOS >= 4.X?
| stackexchange/codereview |
ok this may sound a little crazy but, i have class A and a function, returns an instance of A, also called A() and i have to access a static field of class A.
public class A
{
public static int Num = 1;
}
class Program
{
public A A()
{
Console.WriteLine(A.Num); // Error points here. A.Num.
... | stackexchange/codereview |
I have a question about using #undef to redefine macros.
I have a file global.h which contains a number of #define-d macros. In the code that uses these macros, I find that the values that the macros hold are not generic enough. I want to redefine the macros to make them more generic. I wrote the following code snippe... | stackexchange/codereview |
I know that android automatically uses sliding animations if you open and close activities. Then they slide from left to right and fill the screen (or from right to left).
The thing is that the animation is quite fast... it is visible on the emulator but it is barely noticeable on the phone itself. I am wondering if th... | stackexchange/codereview |
Anyone know of a workaround for Phpunit's illogical file sorting? I've got tests in a subfolder with names like "AddMin001.php", "...002.php", etc. and Phpunit insists on running 002, 003, 004, then 001.
My attempts to use Phpunit.xml always produce: "Uncaught exception 'PHPUnit_Framework_Exception' with message 'Could... | stackexchange/codereview |
I have this Jquery
$(function() {
$('.count_links').hover( function(){
$(this).addClass("highlight");
},
function(){
$(this).removeClass("highlight");
});
$('.count_links').click(function(){
$('.count_links').not(this).removeClass('highlight');
$(this).addClass("highlight");
});
});... | stackexchange/codereview |
I have two DateTime objects in C#, say birthDateTime and curDateTime.
Now, I want to calculate the year difference bewteen current datetime and someone's birthday. I want to do something like
int years = curDateTime- birthDateTime;
//If years difference is greater than 5 years, do something.
if(years > 5)
....
| stackexchange/codereview |
my javascript is
function takeListBoxValue()
{
document.frmPartnerList.submit();
var selectArray = new Array();
for (i = 0; i < partnerList.length; i++)
{
selectArray[i] = new Array();
selectArray[i][0] = partnerList.options[i].te... | stackexchange/codereview |
I'm looking for the best* method to find the primary email address for the currently logged in Active Directory user (using GetUserName to get the logged in username)
I have seen How do integrate Delphi with Active Directory? but I couldn't get this to work with Delphi 2010.
(*best method: the eventual application will... | stackexchange/codereview |
I am running an anonymous voting contest. We are using cookies as the sole deterrant of multiple voting, but also tracking IP addresses and looking for suspiciously high numbers of votes from the same IP. Is there any way to prove that someone is cheating by IP rotation?
| stackexchange/codereview |
I have some slices in my photoshop document.
How I can get their parameters (width, height, x-offset, y-offset, name, url, ...) via javascript > scripting in photoshop?
| stackexchange/codereview |
Is this Possible that write a Socket by C# in ASP.net ?
for Example Can i write a Code Like this Perl Code in C# and asp.net ? :
> use HTTP::Request::Common qw(POST);
> use LWP::UserAgent; $ua = new
> LWP::UserAgent(agent => 'Mozilla/5.0(Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5)Gecko/20060719 Firefox/1.5.0.5'); ... | stackexchange/codereview |
How can I implement small task features in my own custom windows control library like below?
| stackexchange/codereview |
in my home page I want to display user guide in two different format ( pdf and word) these documents were already created by technical writers and I want to show the download links to these documents in home page after the user successfully logged in. I can achieve this easily by putting these two documents in one fold... | stackexchange/codereview |
I have the rails application and i use postgresql for database. I use trigger functions to make some changes in the database while there is changes happens in the application data. But i dont have a good idea on how to test the trigger functions with test cases...
| stackexchange/codereview |
Is there a way in C# or .net IL to force a class that has a type initializer (static constructor) to load itself, without accessing any of its parameters?
Assuming I've got the class
public static class LogInitialization {
static LogInitialization() {
System.Console.WriteLine("Initialized");
}
}
Is the... | stackexchange/codereview |
I had a grid view populated from dataset and I have to redirect another page when user clicks on gridview header.
How can I get the gridview header's text that is clicked by the user .
I tried some code here...
protected void gv2_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == Data... | stackexchange/codereview |
Ok, so I have a function that selects certain rows in a sqlite database based on input from a plugin. I got the plugin to select and fetch rows when just one statement is involved, but since I want to add some flexibility to this, I tried making the function use executemany when encountering lists or tuples. Yet, despi... | stackexchange/codereview |
Previous, I am having a C++ string processing code which is able to do this.
input -> Hello 12
output-> Hello
input -> Hello 12 World
output-> Hello World
input -> Hello12 World
output-> Hello World
input -> Hello12World
output-> HelloWorld
The following is the C++ code.
std::string Utils::toStringWithoutNumerical(... | stackexchange/codereview |
I don't want to take any more math in college than I have to, the graph theory course is not a requirement but is "recommended" by the CS department. Is it worth learning graph theory as for a programmer?
| stackexchange/codereview |
i have create a category CMS,and add three terms to it (drupal,joomla,wordpress). when i create an article which belongs to drupal.now i want to show the rest drupal's articles(belongs to the term of drupal ) at the bottom of the article .is there a module to get this or how to write the code to get that.thank you.
| stackexchange/codereview |
Hi is there away on how to declare a link(ie:http://www.google.com) as a variable and then using the variable for an else if?Something like this?
<xsl:element name="a">
<xsl:attribute name="href">http://www.google.com</xsl:attribute>// first get the link
<xsl:choose>
<xsl:when test="http://www.google.com">
Do som... | stackexchange/codereview |
In version 1 of my product I have a DataMember that looks like this:
[DataMember]
private Dictionary< EnumType1, Class1> Class1Dictionary;
Where EnumType1 is defined as:
[Flags]
public enum EnumType1
{
EnumMember1 = 1;
EnumMember2 = 2;
EnumMember3 = 4;
}
The SOAP message looks like this (I'm paraphrasing... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.