instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm working on a multithreaded wpf application. To perform globalization i tried to set the current thread's(main thread) culture to invariant culturee in app.xaml.cs, So that all C# objects in app domain works on culture invariant info. But the problem arises when many threads comes to usage the worker threads invoked... | stackexchange/codereview |
i have a rails web app that I want to deeply integrate with facebook (create events, wall post...)
How should i choose between Facebook JavaScript SDK and the Graph API ?
When should I use client side API and when server side
| stackexchange/codereview |
I am trying to extract specific data tokens from a perl array. This is pretty much an extension of my previous question about building an array from a command output.
I tried working with an expression given to me by a user. It works! but it uses fixed length fields and after some research to find out what that meant I... | stackexchange/codereview |
So I have this board, to play a boardgame... The problem is, how do I know in which square did the user click on? I know the x and y coordinates, but how do I automate it, without the need to hunt down the specific locations of each square. (Also the size of the board is variable...so it can have lots of squares, or ve... | stackexchange/codereview |
We are having a problem. We have a complex Access 2003 application. When our main user is trying to create a particularly long report he getting a message “2004 - There isn't enough memory to perform this operation. Close unneeded programs and try the operation again”. The problem is the rest of us are able to run the ... | stackexchange/codereview |
I need to play an RTSP audio stream in an iPhone app, so I've been trying to run the the Wunderradio code (http://wunderradio.com/code.html) but I get some errors (copied below)..
Usually errors like these mean that Frameworks are not installed, but in this case they all seem present and correct.
Has anyone got the Wu... | stackexchange/codereview |
If I have this function:
min(List1, List2, Output) :-
length(List1, N),
length(List2, M),
( N < M ->
Output = 'true'
; Output = 'false'
).
but what if I wanted to also check if N == M? Maybe like this:
min(List1, List2, Output) :-
length(List1, N),
length(List2, M),
( N < M ->
... | stackexchange/codereview |
I am having a problem when attempting to host a UserControl as Tab Content within a Tab Item in a TabControl.
My code is structured as follows:
I have a view model which is supposed to be rendered into a View via a DataTemplate.
<DataTemplate x:Key="TabItemContentTemplate" DataType="{x:Type ViewModels:MyViewModel}">
... | stackexchange/codereview |
We would like to use H2 in-memory database for automated testing of our web-applications.
We use Oracle 10 for our production and development environments.
So the idea is to duplicate the table structure in H2 test-database as it is in our Oracle dev-database.
It there an easy way to extract DDLs from an Oracle 10 sche... | stackexchange/codereview |
Can I use QT Creator for C (not C++) non-GUI programming on Linux?
Or is it just for C++ + QT?
| stackexchange/codereview |
How do I use libavcodec in Qt4 to access individual video frames?
After verifying that the video stream can be decoded by libavcodec by compiling this example, I moved the source code to my C++ program. Now av_open_input_file() is suddenly unable to open my video file (returning an errorcode: -2).
The call looks like t... | stackexchange/codereview |
I'm developing an MVC-2 application with Facebook C# SDK and recently Facebook stopped to respond to my login requests. After some research, I've managed to get it working by putting 'localhost' in the 'Site Domain' field in facebook application settings.
Now, login through Facebook Javascript SDK seems to be working a... | stackexchange/codereview |
For an application prototype I'm creating a simple user login. The Password of the user will then be hashed using sha224 and transferred to the back-end. The Problem I am facing right now is the following. The password that was stored in the DB (also hashed using sha224) seems to look a little different then the hash I... | stackexchange/codereview |
My grid's item source is a datatable that has only one field ID (Primary key). I have bound this field with Datagrid template column but at runtime when I pass duplicate or null value to this ID inside datagrid column, no exception is caught and datagridtextbox doesn't show any error. My code is given below;
<UserCont... | stackexchange/codereview |
I want to have an iterator over a data structure.
For now I don't know what data structure is, mayebe it is a DAG (directed acyclic graph), but maybe it could be also a linked list.
So I want to wrap it into an iterator and don't think now at particular data structure.
I know how to visit a DAG with a recursive-like vi... | stackexchange/codereview |
I am trying to figure out how to check if a variable exists in the template context 'tmpl_context' using Pylons and Python. What I am trying to do is:
I've got a Pylons layout template. This should contain a message section if, and only if, the variable c.messages exists in the context. The message section looks like t... | stackexchange/codereview |
I have a problem with extended permissions to my app.
When i have no facebook connection session (!Facebook::getSession()) iam reloading page to Facebook::getLoginUrl(array())
This URL returned is concretly https://www.facebook.com/login.php?api_key=153862711317576&cancel_url=http://www.praguebistro.cz/facebook/chance/... | stackexchange/codereview |
A sample linq query from MSDN:
var expensiveInStockProducts =
from p in products
where p.UnitsInStock > 0 && p.UnitPrice > 3.00M
select p;
Does this query select EVERY column from the database table immediately, or does it return some sort of pointer that retieves the actual column data on demand? ie. If t... | stackexchange/codereview |
I have a MainBusinessLine type with an ObservableCollection of type Group, and a method that I call from a DomainService the returns a queryable list of MainBusinessLines. So in this method I have confirmed that all the appropriate Groups are added to the MainBusinessLines Groups collection. But when the entities are l... | stackexchange/codereview |
I need to reverse geocode based on latitude and longitude. Actually this is for my iPhone application where I get the latitude and longitude from core location api and pass that to the back end. Using those values server do the reverse geocoding and grab the address. So my concern is that the google reverse geocoding A... | stackexchange/codereview |
latest php has two methods of accessing sqlite database eigter by:
http://php.net/manual/en/book.sqlite3.php - interface specific to this database
or
http://php.net/manual/en/book.pdo.php
Commands in both situations are very similar ,but I do not know which of these method is faster.
I guess that PDO method is slower b... | stackexchange/codereview |
I have some code like this
Dim conn As SqlConnection = New SqlConnection("server='h'; user id='w'; password='w'; database='w'; pooling='false'")
conn.Open()
Dim query As New SqlCommand("DECLARE @investor varchar(10), @sql varchar(1000) Select @investor = 69836 select @sql = 'SELECT * FROM OPENQUERY(db,''SELECT * FR... | stackexchange/codereview |
I have been using Java for 2-3 years now, and I love it. Since I am switching to work/study in academia I have to use MATLAB for lots of things (because professors and everyone else is using it).
MATLAB's linear algebra operations are really powerful, useful and easy to use. But when it comes to other problems like ima... | stackexchange/codereview |
I have here problem with my tail recursion Fibonacci in Ruby.
When I run my code i have got always this error. Where did i do wrong?
1) Error:
test_fibo_rek(Test_fibo_rek):
ArgumentError: wrong number of arguments (1 for 3)
/Test_Fibonacci.rb:14:in `test_fibo_rek'
1 tests, 0 assertions, 0 failures, 1 errors, 0 s... | stackexchange/codereview |
Consider this LINQ query. It results with an error when a given blobID.Key appears more than one.
Is there any way to add distinct here to convert it to dictionary in a safe way?
var temp = (from blobID in blobIds
join blob in blobs on blobID.Value.HashKey
equals blob.HashKey
selec... | stackexchange/codereview |
table ad:
id uid name description
1 1 BMW Z5 good condition
2 1 Sell house new
table ad_values
id sid m_input m_value
1 1 car BMW
2 1 year 2010
3 1 category 1
4 2 year 2005
How can I search in table 'ad_values'... | stackexchange/codereview |
what is Func<TResult> in C#?
I have used Action<T> but dont know the usage of Func<TResult>?
explaination with good example is appreciated please.
| stackexchange/codereview |
I have $this->currentUser = $this->Auth->user(); within my app_controller and it works just fine... Except with one controller where it always returns empty, even if the user is logged in. I can't figure out why. Any suggestions?
Thanks!
| stackexchange/codereview |
In response to .. some other question somewhere, I wrote this code.
struct no_type{};
template<typename T> struct has_apply {
static decltype(T().apply<0u>(double())) func( T* ptr );
static no_type func( ... );
static const bool result = !std::is_same<no_type, decltype(func(nullptr))>::value;
};
class A {
... | stackexchange/codereview |
I have written the turtle graphics functions that define the fourteen segments, and the functions that assemble these segments to form characters, e.g.
def MethodA (width) :
top_stroke(width)
middle_stroke(width)
left_stroke
right_stroke(width)
I have all the definitions ready, but how do I let pytho... | stackexchange/codereview |
$category = get_option('category');
// checks to see if subcategory is enabled in the option page
if ( get_option('enable_subcategory') == 'y' ):
$subcategory = get_option('subcategory');
endif;
$qry = mysql_query("SELECT car,number FROM ".$table."
WHERE category = '$category' AND subcat... | stackexchange/codereview |
Yes this is an old db (we are in the process of migrating). Somehow, phpMyAdmin let a user create a table with a ' in it.
name: type_save'
But, I cannot seem to drop that table now. I have tried this from the commandline:
mysql> drop table "type_save\'";
ERROR 1064: You have an error in your SQL syntax near '"type_s... | stackexchange/codereview |
I'm developing a website with brazilian characters using Zend Framework and my navigation menu items are inside a database.
I've double checked my character encoding in the HTML meta tag, in the files itself and my database. Everything is set to UTF-8 and my whole website is rendering fine (including my menu items whic... | stackexchange/codereview |
<html><head>
<script type="text/javascript">
function addFunction(id)
{
cnt=parseInt(id.substr(7));
var row=document.getElementById('driverDetails').insertRow(cnt+1);
var c1=row.insertCell(-1);
var c2=row.insertCell(-1);
var c3=row.insertCell(-1);
c1.innerHTML="row"+(cnt+1)+"colum1";
c2.innerHTML="row"+(c... | stackexchange/codereview |
I have got python2.6 installed on my windows machine.
tried to install twisted package but unable to install it.
Also installed the zope interface
On the python interpretor I get the error as :
>>>import twisted
>>>Import Error: No Module named twisted
I installed the package twisted succesfully.
C:\Documents an... | stackexchange/codereview |
Is it possible to insert into {% url %} field from queryset record?
e. g.
{% url queryset[0].field %}
| stackexchange/codereview |
I need to develop an iPhone 3d map application similar to virtual earth or google earth. The application will have images overlay above the 3d map, like clouds or location pin. Anyone has any ideas on that?
Regards
Edit:
Try to make the phrase not vague this time:
As far as I know, google earth and microsoft virtual ea... | stackexchange/codereview |
I have a 3D transparent object in WPF. The opacity value for the brush used to create the object has been set to 0.25.
I have to rotate this 3D object about its central point using mouse movement.
At present, the object rotates against the direction of the mouse movement.
Does anyone have an idea on how to rotate a tra... | stackexchange/codereview |
How make deep copy (clone) in Entity framework 4?
I need get copy of the EntityObject with copies of all related objects.
| stackexchange/codereview |
I have a Rails app where users can follow one another. I've just discovered a bug where a user can follow a person more than once.
If a user isn't following someone, and opens the website in two different windows and clicks 'follow' in both windows, they are following the person twice.
In my controller I have a conditi... | stackexchange/codereview |
In this announce Apple says that Xcode 4 support Git. But in my SCM configuration I couldn't find Git option and see only: CVS, Perforce and Subversion.
| stackexchange/codereview |
I have worked with CSS Sprites many times before and have never come across this problem.
There is no change happening on hover and the link itself is not being recognized as link (ie on hover the cursor doesn't change and is not clickable at all)
I have a feeling that the reason they are not working is because of the... | stackexchange/codereview |
PART A:
I know there are a lot of things out there that tell you if a browser supports a certain HTML5 attribute, for example http://diveintohtml5.info/detect.html, but they don't tell you how to acquire the type from individual elements and use that info to init your plugins.
So I tried:
alert($("input:date"));
//re... | stackexchange/codereview |
I connect to some program via COM and receive System.__ComObject. I know several methods of it, so I can do like this:
object result = obj.GetType().InvokeMember("SomeMethod", BindingFlags.InvokeMethod, null, obj, new object[] { "Some string" });
and like this
dynamic dyn = obj;
dyn.SomeMethod("Some string");
Both me... | stackexchange/codereview |
here is how i call the following function:
List<decimal> numbers = new List<decimal>();
numbers.Add(210m);
numbers.Add(188.83m);
numbers.Add(67.93m);
numbers.Add(125.92m);
numbers.Add(35.92m);
numbers.Add(19.16m);
numbers.Add(98.48m);
List<decimal> listresult = FindSumSubset(9075... | stackexchange/codereview |
Is there any up-to-date bittorrent library which is written in python and can be used on windows to write client? Some time ago bitcomet was written in python and it was ok. Any alternatives?
And second question: does bittorrent protocol change? For example what may happen if I will use old bitcomet library
| stackexchange/codereview |
I have a serial port with data coming in. I implemented the serial port connection with RXTX library with a serial port event listener. So whenever there is incoming data available in the serial port, the synchronized function serialEvent(SerialPortEvent oEvent) will run. Basically the program will be in a infinite loo... | stackexchange/codereview |
i have a Java project connected to a MySQL database.
When I communicate between the two using executeQuery(query) everything seems to be fine with the encoding, BUT I have some autogenerated CRUD forms which throw exceptions when some encoding specific characters are used.
For eg. when I run INSERT INTO db (id,name) VA... | stackexchange/codereview |
I'm wondering if using autocomplete fields, like SO uses for tags in question posts, goes some way to filtering out spammers/bots.
If the field requires a user to make a selection according to some simple rules, this may mean that the bot can't proceed effectively.
Any thoughts?
| stackexchange/codereview |
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found
for the object name 'dbo.tblhm' and the index name 'New_id1'. The duplicate
key value is (45560, 44200).
i want to know how to work on unique key constraint taking 2 columns together.Such that the values previously stored in the database ... | stackexchange/codereview |
I try to save and restore the state of 3 WebViews in my activity by using onSaveInstanceState() and the restoreState() method of my WebView in onCreate(). This works just fine when I had only one WebView, but with 3 WebViews to save, it looks like it's only the last one save which counts and overrides the other saves; ... | stackexchange/codereview |
I'm trying to create an array of checkboxes dynamically and also want to put event to those checkboxes. How can I do this?
For example:
I have a array of checkboxes - Chk1, Chk2.
I want it to work this way: When I check Chk1, I want to disable Chk2, and when Chk1 is unchecked, Chk2 is enable, and vice versa.
Your input... | stackexchange/codereview |
I have exe library project. This project is brought in as a reference in my web app, which has all of the same configuration elements in it's own config. Light calls are made directly to the classes in the exe project on an in-process basis, but heavy (gigabytes of memory usage) calls are made through the command line.... | stackexchange/codereview |
I am trying to add my application to a live server. My site is in plain html. There are 2 links to go my 2 application. I to go the siteapp and another to go to the main app.
In wwwroot I have added my site with a folder name(Lets saye MyWebSite) and configured it in IIS7 with dns ip address. It works fine.
Then I adde... | stackexchange/codereview |
Good morning all,
I’m wondering, since the last WP7 sdk update there’s a new AutoCompleteBox included in the ns: Microsoft.Phone.Controls. I was basically using System.Windows.Controls.AutoCompleteBox, and I saw the new one so I told myself “Hey! A Phone oriented AutoCompleteBox ! Let’s replace the oldy one”. The thing... | stackexchange/codereview |
I want to learn Scala and do it on real project. This project needs logic to be wrapped within web server. So I made some tests with embedded Jetty and I like it. It is time for making next step to Scala. I am interesting what combination below you'll recommend me?
1) Embedded Jetty + Java Servlets + Scala;
In this com... | stackexchange/codereview |
Hi I am using camera intent like following...
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, (new File(Environment.getExternalStorageDirectory(),String.valueOf(System.currentTimeMillis()) + ".jpg")));
startActivityForResult(cameraIntent, 0);
now I don'... | stackexchange/codereview |
I have map element in my mapping -
<component name="Resources">
<map name="Inner" table="SomeTable" lazy="false" fetch="join" access="field.lowercase-underscore">
<key column="Id"/>
<index column="IndexId" type="String"/>
<composite-element class="SomeResource">
... | stackexchange/codereview |
I've JSON response from php file.
[{
"NAME": "Kiev"
}, {
"NAME": "Kiev metro"
}, {
"NAME": "Kiev-Dnepro"
}, {
"NAME": "Kiev-Dnepro"
}, {
"NAME": "Kiev-Donetsk"
}, {
"NAME": "Kiev-Donetsk"
}]
How can I use that for standard Jquery autocomplete? Autocomplete function do request but it seems it cant parse res... | stackexchange/codereview |
I want to build a dictionary iphone app for my language associated with many different languages. Thus, one word in the original language will have different translations into different languages. Do you have any recommendation for such a database design using SQL?
Thanks a bunch guys/gals.
#Database: MySQL
#Language:... | stackexchange/codereview |
In Ruby, programmers are allowed to change predefined classes. So a really bad programmer could do something like:
class String
def ==(other)
return true
end
end
Obviously, almost no one would be quite this dumb, but the idea that more subtle changes to a predefined class could cause problems in already-worki... | stackexchange/codereview |
I'm using subclassed UIAlertView window as a login prompt in my application (I know it's against Apple guidelines but it will not be submitted to the appstore so it's not a problem).
The code to add text fields and position the window on screen looks like this:
- (id)initWithTitle:(NSString *)title delegate:(id)delegat... | stackexchange/codereview |
Using the BlackBerry Java Plug-in for Eclipse me and my team mate installed the BlackBerry JDKs version 4.7, 5.0, 6.0. But when it comes to running project, I get a very serious error. If I build the project with version 4.7 then it runs alright with the existing simulators.But when I build the project with the version... | stackexchange/codereview |
I am using the webview control in android to show the html content. But I face a problem that in webview I have to fix the height so thats why if html content contains less data then it wasted the space. Is there any solution to solve this problem that how can I show only same content as html has in the webview without... | stackexchange/codereview |
I used to be able to click on a StyleCop warning and select a "Show Help Menu" which would show me more info about the warning.
Can anyone suggest why I am not seeing it now?
D:\Users\UserName\Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual C#
| stackexchange/codereview |
Hi I have the following XML structure:
<Root>
<Persons>
<PersonList Category="Employee">
<Person Name="John" Id="5" />
<Person Name="Mary" Id="10" />
</PersonList>
</Persons>
</Root>
I am looking to use LinqtoXML and in order to get a list of available Person I can simply write this query:
var persons = fr... | stackexchange/codereview |
I need to color the white part surrounded by black edges!
from PIL import Image
import sys
image=Image.open("G:/ghgh.bmp")
data=image.load()
image_width,image_height=image.size
sys.setrecursionlimit(10115)
def f(x,y):
if(x<image_width and y<image_height and x>0 and y>0):
if (data[x,y]==255):
... | stackexchange/codereview |
What is the php/magento code I can use to get the best selling products and display that name of the product.
For example, say I've sold 10 Foos, 20 Bars and 50 Bazes. I want to know how to query the Magento system and have it say "Bazes" are the high selling products (with 50).
Thanks you
| stackexchange/codereview |
I got a string like 'stackoverflow.html' and in the regular expression 'stack(.).html' I would like to have the value in (.).
I could only find NSPredicate like:
NSString *string = @"stackoverflow.html";
NSString *expression = @"stack(.*).html";
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SEL... | stackexchange/codereview |
Hello guys
I have 1675 line Code. Want to when user click button textbox.text insert into this xml spreadsheet and then create on desktop. does it possible? How can I insert text in current xml spreadsheet row?
For example:
` <Cell ss:StyleID="s38"/>
<Cell ss:StyleID="s39">
<Data ss:Type="String">ვაშლიჯვარი<... | stackexchange/codereview |
I'm trying to figure out how to use XPath to get the exceptionID and instrumentID values out of the XML snippet in the following XML document (yes having XML in the CDATA is a little odd, but that's what I get from the 3rd party service)
<?xml version="1.0"?>
<exception>
<info>
<![CDATA[
<info>
... | stackexchange/codereview |
I have a class on low-level programming which requires a final project (syllabus at the end). It is basically a piece of software that puts to use all you learned.
I had a few ideas, like designing my own Roguelike (should be kind of like NetHack, only single-player), but I'd like some suggestions on alternatives. It n... | stackexchange/codereview |
I am building a system to send bulk emails. So far, while sending emails one by one I achieve success with all the mail services i tried (microsoft exchange, gmail, yahoo) but one, hotmail.
When i send the email through any service (the 3 in parenthesis in the previous text block) the sender name looks like :
Système ... | stackexchange/codereview |
I'm trying to parse a moderately large XML file (6mb) in php using simpleXML. The script takes each record from the XML file, checks to see if it's already been imported, and, if it hasn't, updates/inserts that record into my own db.
The problem is I'm constantly getting a Fatal error about exceeding memory allocati... | stackexchange/codereview |
Are header files necessary for Objective-C unit tests?
When using OCUnit, GHUnit, or GTM Unit Tests, I don't see the point of creating the header file for the unit test. It feels like it's just another file I need to keep updated if I decide to change my unit tests.
Tests are self-contained within a file and I don't re... | stackexchange/codereview |
I'm looking to build a website that has a flash interface and allows visitors to upload vector art in a number of file formats such as SVG, EPS and AI.
I have two rather large problems...
1) I need to load the original vector art, probably convert it to FLV and display it in my flash application.
2) After the user pote... | stackexchange/codereview |
I have PHP project and I am using Zend Framework. There is a library folder with Zend Framework and Doctrine. I would like to have autocompletion for Zend Framework classes, but I don't want to have "todo" things in Tasks window and I don't want to show results from this directories when I am performing searching.
How ... | stackexchange/codereview |
I am using apache poi 3.5 for extracting data from the excel sheet.i having the date cell formatted in mm/dd/yyyy.
If i print using cell.getDateCellValue() then print the date in other format.so, i want to print the date that is in the actual format of excel sheet cell.
how i do it..Please guide me way to do it....
Sar... | stackexchange/codereview |
I want to kill a thread when something very bad happen. What's your suggestion to do thread suicide?
| stackexchange/codereview |
I have 2 tables: Employee and Person with the structure
Employee: Id, PersonId, Designation, IsActive
Person:Id, Name, Contact
Employee's PersonId column references Person's Id and can be null
I need to return an employee's Name and my join criteria is
SELECT emp.Salary, emp.Designation, emp.IsActive, p.Name from Emp... | stackexchange/codereview |
I have a very simple 2 screen android app.
Is there any downside to simply switching out the layouts via setContentView or should i be using intents?Don't want to bugger up my app if something is wrong with this.
| stackexchange/codereview |
I have a html file with content
<html>
<body>
<script language="JavaScript">
function fun1()
{
alert(document.getElementById('id1').innerHTML);
}
</script>
<div id="id1">
<ul>
<li>Here111</li>
<li>Here222</li>
<li>Here333</li>
</ul>
</div>
<a href="javascript:void(0)... | stackexchange/codereview |
What I want to know - what files are created when Java Virtual Mashine crashes on Mac, and where they can be found?
Are they are hs_err_pid* files at home directory, like on win/linux, or mac os does it the other way?
| stackexchange/codereview |
Here is my query
Declare @StartDateTime datetime, @EndDateTime datetime
Select @StartDateTime = '2010-11-15', @EndDateTime = '2010-11-16'
Select PracticeCode, AccountNo, ProcCd, Modifier , ChargeDos, Paid as Amt, CreatedDate,
case When Paid > 0 then 'P'
When Paid = 0 and WrittenOff = DueAmt then 'A'
... | stackexchange/codereview |
I have a program which is able to retrieve various registry values using C# codes which was compiled and created using VS 2010.
However the problem arises when I tried to display the results retrieved from the Windows Registry into a rich text box within a form.
The form only shows 1 line which is the last value in the... | stackexchange/codereview |
We are planning to migrate to Java EE 5 from j2EE 1.4. All of our ORM needs were fulfilled well by Hibernate 2.1.0 s0 far. Since we are moving to Java EE 5 which has support for JPA 1.0, I am wondering if it is worth to move all of my ORM stuff to JPA.
Are there any gotchas I should be concerned about?
Are there place... | stackexchange/codereview |
The Python community has published helpful reference material showing how to profile Python code, and the technical details of Python extensions in C or in Cython. I am still searching for tutorials which show, however, for non-trivial Python programs, the following:
How to identify the hotspots which will benefit fro... | stackexchange/codereview |
First of all, I have to create an array of length n, input variables to fill that array, then at array location k, I have to push all arrays location k and up by 1 and put the value of x into array location k. But if k = n, then put x in n+1.
First of all, I am having a problem making the ints for k and x work. For som... | stackexchange/codereview |
Here is a snippet of my code.
FilterText = HttpUtility.UrlDecode(FilterTxt.Value.ToString());
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
TextWriter tw = new StreamWriter("D:\\FilterTest.rdl");
tw.WriteLine(FilterTex... | stackexchange/codereview |
I'm looking for an open source audio conversion library that can convert audio files of various types to MP3. The server I'm working with is a standard LAMP with PHP. Anyone aware of something that could be the solution?
| stackexchange/codereview |
Is it possible to create transparent corners for an image on fly with PHP? I think that it would be possible, but I am missing a function that would preserve alpha values when you copy your image.
My idea was to create an image of same width and height, then apply transparent corners, but then I need to preserve the al... | stackexchange/codereview |
How to look a single SQL Server query takes how much cpu time for completion
when i run the query via sql server management studio i want to see how much cpu time did this query consumed
it will be pretty low but i need to see for comparing different query loads
and it would be even greater if it is possible to run que... | stackexchange/codereview |
I am new to Solr, doing a prototype.
I indexed 5 documents and committed. Now, if I go to http://localhost:8983/solr/admin/ , I see that 5 documents are indexed. If I search for any of the terms in the documents, I don't see any results. But, if I do :, I do see all the 5 records.
What am I doing wrong. Any ideas? Plea... | stackexchange/codereview |
In wordpress I have a page set up to pull in a random post, using jQuery I'm looking to pull in sections of this (random) page to various sections on the current (home) page at the moment the code is as below:
$('#wrongQuote').load('random/index.php #wrongSaying' + '?noCache=' + Math.floor(Math.random()*10001));
$('#sa... | stackexchange/codereview |
How can you convert an array of strings represented in JSON format and convert this to an HTML bulleted list using jQuery?
| stackexchange/codereview |
I use a LibraryBar to display some items that have a relationship. Since there are different relationships between items, I have multiple containers. As the default setting if is set AllowDrop to true for a LibraryBar, it is possible to drag all elements into the LibraryBar, and the items are added to the collection th... | stackexchange/codereview |
We have a Watin test for a page with a ajax model popup window. The test is trying to open the window, hide it then reshow it.
The test runs fine when I run it from Visual Studio or our local build scripts. The test fails when it runs on the build server.
The build server is Cruise Control.Net running as a Windows Ser... | stackexchange/codereview |
I have been trying to setup a mercurial repository on my server so that my team can work from theirs. I am running Ubuntu server 10.4 and I did the install of mercurial using apt-get. Now this all went smoothly.
I init a dir with hg just fine, I setup the hgrc as follows:
[web]
push_ssl = False
allow_push = *
[trusted... | stackexchange/codereview |
I'm coming from a scientific computation background and do have some history with some popular and non-popular (ad hoc) programming languages but I'm completely alien to client side programming and JavaScript.
I've written some trivial JavaScript for my Greasemonkey settings before but that's all.
My question concern... | stackexchange/codereview |
I neeed to write a device emulator for testing purposes that connects through a serial port. I know there are some apps out there to do this, but that doesn't really help my curiousity, lol. I would like to know how in .net I could write a sniffer to watch the traffic in and out on a serial port. I'm also interested in... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.