instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am attempting to save financial transactions to a database using NHibernate and have come across a number of blog posts suggesting the use of a Money Type whereby the amount is stored as a double and the currency is stored as a string - i.e. there will be two fields in the database.
For my purposes, I will have mult... | stackexchange/codereview |
I want to redirect after a successful ajax request (which I know how to do) but I want to pass along the returned data which will be used to load an iframe on the page I just redirected to.
What's the best way to pass such data along and use it to open and populate an iframe in the page I just redirected to?
EDIT:
I a... | stackexchange/codereview |
It loads every other gifs, but not this particular one. It displays a box instead. If I right click on the file and go to properties, the file type = Not available.
But the gif opens in image editors. It works well with Opera. Trying to specify alpha does not resolve.
EDIT: You can download the file here: http://www.... | stackexchange/codereview |
How do I locate the coordinates and size of a DirectX game?
My current code uses window sizes (user32.dll, GetWindowRect), which includes window chrome, but I want it to work accurately even if chrome is customized or if there is no chrome (e.g. fullscreen).
As an example, Fraps can create an overlay of the FPS of a ga... | stackexchange/codereview |
I have a WCF service exposed (.net 3.5).
I am using diagnostics to log messages and activities when required. Here is my code:
The following defines which messages to log:
<system.serviceModel>
<diagnostics>
<messageLogging
logEntireMessage="true"
logMalformedMessages="true"
logMess... | stackexchange/codereview |
I've read an excellent article on MSDN regarding Generics in C#.
The question that popped in my head was - why should i be using generic constraints?
For example, if I use code like this:
public class MyClass<T> where T : ISomething
{
}
can't I switch ALL references of T in this class with ISomething?
What's the benef... | stackexchange/codereview |
I have a ASP.NET program that works just fine but takes 10 seconds to load the default.aspx page, if I close the browser and quickly reopen the browser and enter the same URL then the page loads almost instantly. I have compiled my code and published the site so it contains dlls so it shouldn't need to compile. This de... | stackexchange/codereview |
I have a class ConstData:
class ConstData
US_CITIES = ['miami', 'new york']
EUROPERN_CITIES = ['madrid', 'london']
end
Its stored under /lib/const_data.rb
The idea is that inside a model, controller or view I can do:
ConstData::US_CITIES to get the US_CITIES etc
Rails should load this class automatically, I got... | stackexchange/codereview |
I am creating a JSP page, I get data from database this data is divided into groups and has to be displayed in division tags according to its group.
My question is how to display divs in sequantial order from right to left, up to bottom with same style dynamically? so I don't hava to specify the position of each div m... | stackexchange/codereview |
Isn't OnDeserialized redundant with IDeserializationCallback.OnDeserialization
| stackexchange/codereview |
Zend debugger uses cookie as debugging flag,how can I make it the same for xdebug?
| stackexchange/codereview |
How would you generate all the possible permutations of list b(1,6,8,3,9,5) including ones of different length? Example:
List a = [1,2,3]
generateperms(a)
1,2,3
3,1,2
3,2,1
1,3,2
2,1,3
2,3,1
2,3
1,2
1,3
2,1
3,2
3,1
And so forth and getting all the permutarions of each length?
EDIT:
I'm just going to use this, written ... | stackexchange/codereview |
Let's say you have a .NET system that needs to send out email notifications to a system administrator when there's an error. Example:
try
{
//do something mission critical
}
catch(Exception ex)
{
//send ex to the system administrator
//give the customer a user-friendly explanation
}
This block of code ge... | stackexchange/codereview |
Does either of these methods use more memory than the other or put a larger load on GC?
Option #1
LargeObject GetObject()
{
return new LargeObject();
}
Option #2
LargeObject GetObject()
{
LargeObject result = new LargeObject();
return result;
}
| stackexchange/codereview |
Let's say I have a Person record in a database, and there's an Age field for the person.
Now I have a page that allows me to filter for people in certain age ranges.
For example, I can choose multiple range selections, such as "0-10", "11-20", "31-40".
So in this case, I'd get back a list of people between 0 and 20, as... | stackexchange/codereview |
Anyone have any idea why my lazy load does not seem to be working?
I copied exactly from the lazy load page even using their images as a test, they just load in normal rather than fade...?
lazy link example
I then put a no conflict script in as i have drop down as well, nothing there either which fixed it...
Just loose... | stackexchange/codereview |
I'm sitting reading on some REST with my fellow teammates, we are writing a RoR application that is going to expose some of its functionality to the rest of the world.
My task on this team is to make a ressource that exposes journal reports. If you call
http://root.com/journalreports
You should get all the journalre... | stackexchange/codereview |
Brain totally not working today.
So, I have a few columns in a table that basically designate whether a certain piece of information WAS or WAS NOT provided by the user.
For example, I have a table with:
| ID | USER | crit1 | crit2 | crit3 | crit4 | etc. |
Now, the record could have a 1 or yes for any of the "critX" f... | stackexchange/codereview |
I would like to know how to check if a ref cursor returns data.
Let's say I have the following code in a PL/SQL package:
type refcursor is ref cursor;
procedure Foo(cursorresult out refcursor) is
begin
open cursorresult for
select *
from table t
inner join t2 on t.id = t2.id
where t.column1 is n... | stackexchange/codereview |
I'm working on a migration project in which a database actually stores display sizes in twips.
Since I can't use twips to assign sizes to WPF or Winforms controls, I was wondering if .NET has a conversion method usable at runtime?
| stackexchange/codereview |
Is it possible to merge two wix libraries into one?
Regards,
Martin
| stackexchange/codereview |
I am trying to get to grips with LINQ. The thing that bothers me most is that even as I understand the syntax better, I don't want to unwittingly sacrifice performance for expressiveness.
Are they any good centralized repositories of information or books for 'Effective LINQ' ? Failing that, what is your own persona... | stackexchange/codereview |
I am running a shell script in the background and redirecting the output to a log file in php. I want to display the contents from the log file on the page. I am able to do that using the code below.
<?php
$logfile = "hello";
?>
function displayOutput()
{
var html = <?php
echo filesize($logfile)
... | stackexchange/codereview |
Actually we have freemarker files (ftl) under Eclipse + Freemarker plugin (from JBoss).
Do you know a way to format ftl files ?
Thanks
| stackexchange/codereview |
I'd like to strip a URL of it's query string using mod_rewrite but retain the values of the querystring, for example, id like to change:
http://new.app/index.php?lorem=1&ipsum=2
to a nice clean:
http://new.app/
but retain the values of lorem and ipsum, so inside index.php:
$_GET["lorem"]
would still return 1 etc.
T... | stackexchange/codereview |
I think I have something like "programmer's OCD". I like my code to be aesthetical and clean, and I want it to be "perfect" (as in handling all possible situations correctly and prettily). Often I find myself spending a lot of time just going over the same areas again and again to see where I can optimize and where I c... | stackexchange/codereview |
I know that some will reply things such as <LineBreak/> this is not what I'm looking for.
I want to know if I store textblock's string in a resource file, can I do some thing about it to make the text in textblock to go to a new line.
tried "< ; LineBreak/ > ;" (w/o space),
tried /r/n
tried
None of the... | stackexchange/codereview |
Usually I write my dealloc to look like this:
- (void)dealloc {
[coffeeList release];
[super dealloc];
}
But today I typed (see below) and was a little puzzled why I got an error running the code through the CLANG static analyser. As I say I don't usually add self to iVars in dealloc, but was just a little cur... | stackexchange/codereview |
I started a new dynamic web project in eclipse helios. I integrated glassfish into eclipse and it works fine so far. Except one thing:
I place my libraries (jdbc, log4j etc.) in WEB-INF/lib. Eclipse deploys that files correctly to glassfish, but glassfish does not include that directory in its classpath, so my app won'... | stackexchange/codereview |
In .Net, I'm trying to get a XmlSchema object from Xml file with an embedded Xsd and can not find out how to do it? anybody know?
For example if it just an Xml file I can Infer Schema using the XmlSchemaInference class or if its a Xsd I can use XmlSchema class, but can not find away with inlined Xsd.
example file is at... | stackexchange/codereview |
i have been following some online screencasts and tutorials about zend_auth.
i have a basic zend application created by the zf tool.
within the index controller index action i place a little code to test if a user is authenticated.
if(!Zend_Auth::getInstance()->hasIdentity())
{
$this->_redirect('login');
... | stackexchange/codereview |
When I start my server locally, I get the following notice:
please set config.active_support.deprecation to :log at config/environments/development.rb
When I add in config/environments/development.rb
config.active_support.deprecation = :log
I get:
undefined local variable or method `config' for main:Object (NameErr... | stackexchange/codereview |
How can I append hours and minutes get_selectedDate?
var date = picker.get_selectedDate() //append here
The reason I want to do this is because I have a procedure that allows filtering between dates in a RadGrid, but If you select to filter between one day it isn't allowed. Therefore I need to append 23:59 to the End... | stackexchange/codereview |
Parameters can't be passed when starting a new thread, so what is the best way to access UI element values in another class which is running on another thread?
Best Regards!
| stackexchange/codereview |
HI
I have a dynamic link library writting in Delphi 2006 that has forms.pas in its uses clause.
If I load the dll and then immediately unload it in a for loop, say 10000 times, the memory slowly climbs. However if I take Forms.pas out of the uses clause of the dll then the problem goes away.
The code is very simple
He... | stackexchange/codereview |
I'm pretty new to javascript / ajaax / jquery, but I was able to figure out the following ajax script. Unfortunately it doesn't work cross browser... as far as I can tell, not in any IE versions... I'm wondering if anyone can help me out with how to convert it to jquery? I heard that is way better than using ajax.
<sc... | stackexchange/codereview |
We have a .NET e-commerce application with a SQL Server 2005 back-end. A new order requires certain "post-processing". These tasks include sending emails, creating files, uploading files to an FTP server, and performing CRUD operations against a WCF data service. The code to perform all these tasks is already in place ... | stackexchange/codereview |
I have been reading the Android documentation and I am wondering if anyone can shed some light on what happens to a service instance when a service started with START_STICKY has it's process killed. I am assuming that the local state data (instance variables) are also lost. Does Android do anything to help re-populat... | stackexchange/codereview |
I want to develop a project which has shopping cart and in this user can design his own product and add that product to shop.And also please send me links of php oops based books which are free of cost.Because im a beginner.
Thanks in advance,
Bhavyasri
| stackexchange/codereview |
On executing a Windows Forms application in C# the view of the form looks the same as the theme of Windows.
How can I give my own theme to my application which doesn't depend upon the Windows theme?
| stackexchange/codereview |
I am developing an app using phonegap for android. It consists of around 25 images and similar number of mp3 files. Each mp3 file has duration not more than 10 seconds. The requirement of app is whenever a image is shown on screen its related mp3 file should be played. I am using jqtouch swipe action to move from one p... | stackexchange/codereview |
Why can we not use any special characters (?, <..) in a Windows filename?
| stackexchange/codereview |
I have the following code, but I'm getting incorrect output.
Can anybody tell me why output is 10 B only and why I'm not getting A in output??
#include<stdio.h>
#include<conio.h>
void main()
{
int *p;
char c,d;
int i;
clrscr();
p=&i;
*p=10;
(char *)p=&c;
*p=65;
(char *)p=&d;
*p=... | stackexchange/codereview |
I have been making several improvements on code snippets that are typically built into VS2010. Is there any way to either "prefer" certain snippet directories over others, or to overwrite the defaults without manually removing the references from the Code Snippets window? I would like to keep the same shortcuts.
This i... | stackexchange/codereview |
My domain classes that have one-to-many mappings generally take the following form (untested code):
public Customer Customer
{
// Public methods.
public Order AddOrder(Order order)
{
_orders.Add(order);
}
public Order GetOrder(long id)
{
return _orders.Where(x => x.Id).Single()... | stackexchange/codereview |
How can I auto-generate class hierarchy diagrams and documentation from function/class headers in eclipse.
| stackexchange/codereview |
I want to search for an element in an array. What I want to get from this search is the all the indices of the array where I find a match.
So, for example the word I want to search is :
$myWord = cat
@allMyWords = my whole file with multiple occurrences of cat in random positions in file
So, if cat occurs at 3rd, 19t... | stackexchange/codereview |
I'm drawing a simple cube using 8 vertices and 36 indices. No problem as long as I don't try to texture it.
However I want to texture it. Can I do that with only 8 vertices? It seems like I get some strange texture behaviour. Do I need to set up the cube with 24 vertices and 36 indices to be able to texture the cub... | stackexchange/codereview |
I'm fairly new to multiplayer games. I have made a few for my own fun, but nothing profound.
Anyway, I want to make a game that is very cross-platform. The clients would be connected with their facebook accounts on the devices I release the game for (most likely computers (via flash), iPhone, and android). I am a solo ... | stackexchange/codereview |
Perhaps I'm doing something stupid here, but why would IE6 die here? All other browsers have no issue with this code, but IE6 is choking:
jQuery( function( $ ) {
jQuery("[name='myform']").ajaxForm({
target: '#form_quotes_highlights_part',
beforeSerialize: function(form, options) {
if (somefunc()) {
... | stackexchange/codereview |
sorry this is probably an embarassing noob question for c#, but I came across the following syntax and wasn't exactly sure what it was doing...
what does the & symbol do in a c# expression with numbers?
for instance, 1 & 1 returns 1?
| stackexchange/codereview |
Since this post has gotten a lot of attention over the years, I've listed the top solutions per platform at the bottom of this post.
Original post:
I want my node.js server to run in the background, i.e.: when I close my terminal I want my server to keep running. I've googled this and came up with this tutorial, howev... | stackexchange/codereview |
I've recently updated to Ruby 1.9.2 (RVM), Sinatra 1.1 and Passenger 3.0.0. I have a simple application composed of:
# config.ru
require 'rubygems'
require 'sinatra'
require 'app.rb'
run Sinatra::Application
# app.rb
require 'rubygems'
require 'sinatra'
get '/' do
erb :index
end
If I run the application from th... | stackexchange/codereview |
very simple question. Lol i am embarassed to ask this cause i am usually very good with php but what are the ways to display html inside of php? for example:
<? if($flag): ?>
<div>This will show is $flag is true </div>
<? endif; ?>
OR
<?
if($flag)
echo '<div>This will show is $flag is true </div>';
?>
I... | stackexchange/codereview |
I need to bind a textblock.text property to a single element in an observable collection, or array element, and have the text update using the INotifyPropertyChanged or INotifyCollectionChanged, whichever is best.
Most examples describe ways to bind listboxes or other list views to entire collections, but my applicatio... | stackexchange/codereview |
I've try to use ckeditor in my apps. I followed instruction how to install it, but when I came to this step
$ rails generate ckeditor:base
I got this error message, uninitialized constant Ckeditor::PLUGIN_CONTROLLER_PATH, and I didn't know to solve it. Does any body know how to solve it? please.
| stackexchange/codereview |
I have jagged array which I need to pass to external method.
[DllImport(...)]
private static extern int NativeMethod(IntPtr[] ptrArray);
...
fixed (ulong* ptr = array[0])
{
for (int i = 0; i < array.Length; i++)
{
fixed (ulong* p = &array[i][0])
{
ptrArray[i] = new IntPtr(p);
... | stackexchange/codereview |
I am converting a project from using linq2sql to use an odata source. I am trying to lookup a user like this...
FrameworkEntities db = new FrameworkEntities(
new Uri("http://localhost/odata/FrameworkService.svc"));
User user = db.Users.Where(
u => SqlMethods.Like(u.UserName, UserName)).FirstOrDefault();
but am... | stackexchange/codereview |
I don't know if this is programming-related (much) but I've recently started playing around with writing my own applications.
My phone is running cupcake/1.5. There is no "unknown sources" option, anywhere, at all. Carrier is AT&T.
Does anyone know how I can overcome this issue?
| stackexchange/codereview |
I have both dark and light versions of my application icon; the dark version works best on gray surfaces such as Windows XP taskbar, where the light version works best as an icon in the titlebar.
Is there a way I can set the icon in the taskbar to a different icon than the one used in my form in C# (P/Invoke is fine)?
| stackexchange/codereview |
I have this code:
$("#boxId ul li a:eq(0)").click();
Works ok in IE8 and FF, but I'm getting error in IE6 and IE7.
"Object doesn't support this property or method"
Someone knows why?
Obs:
$("#boxFoto ul li a:eq(0)").size(); // returns '1'
| stackexchange/codereview |
In octave the output of float point numbers is limited by default to 4 digits (%.4f). Is there a way to set this behavior using IPython?
| stackexchange/codereview |
I'm looking for the simplest way to connect a WWSAPI client to a WCF server that satisfies a couple of requirements:
No certificate management required.
Is secure.
WWSAPI obviously doesn't support message level security so standard WSHttpBinding is out, so I was hoping for people more conversant with the technology w... | stackexchange/codereview |
My question is about throw and exception bubbling. I was searching around about file locking and C# and I tried messing around with someone's code which made me question how much I understood about throw and exception bubbling.
Here is the link to the thread.
public class FileManager
{
private string _fileName;
private... | stackexchange/codereview |
I'm coming from a dotnet land, but recently have been looking at the possibilities of alternative programming languages. Nothing really serious, just some bits here and there. Recently I've discovered Scala and I'm pretty fascinated with it. Despite non-deterministic tinkering, I've done some intermediate checks of stu... | stackexchange/codereview |
How do I change all the keys of a hash by a new set of given keys?
Is there a way to do that elegantly?
| stackexchange/codereview |
I am looking for the file WebResource.axd (to see its source code) but I can't find it.
Where is it?
| stackexchange/codereview |
The spec library in Minitest is great. I've been able to use it within Rails unit tests no problem. However, Rails functional test inherit from ActionController::TestCase which provides instance variables like @controller in it's setup.
Has anyone been using the Minitest::Spec lib for their Rails functional tests?
If... | stackexchange/codereview |
I have a very simple user control with 5 radio buttons on it, and 3 properties (ID, RatingSetID, and Rating). On the initial load of the page they are on, the code acquires data and places the data into the 3 properties. However, when the submit button is clicked the page reloads and the 3 properties get reset to 0, th... | stackexchange/codereview |
If you frequently use in your program a collection which path would you prefer:
Type List<T> everywhere.
Define class:
class TT:List<T>
{
}
Define class:
class TT
{
private List<T> _tt;
// ...
}
I think it's not very important, but after last project I started to think about it very often.
| stackexchange/codereview |
Our application is a Windows client (C++/MFC migrating to C#) that uses SQL Server Express as its data store. We release regular updates to the data the application works with. (Our users use the content data we provide as a basis for their own projects built using the client; the database stores their projects as wel... | stackexchange/codereview |
Can I use x on both sides of a boolean expression when I post-increment it on the left side?
The line in question is:
if(x-- > 0 && array[x]) { /* … use x … */ }
Is that defined through the standard? Will array[x] use the new value of x or the old one?
| stackexchange/codereview |
My team have been working on implementing reports using Crystal Reports 2008. We are faced with the following problem:
We need to be able to organize the reports into groups (representing the various departments in our workplace). The groups will have access to only the reports which they are authorized to. Is there a... | stackexchange/codereview |
On my website, I display uploaded PDF files in a flash player for my users to read.
I already use various tools to extract the text and produce a serious of high quality images from the file and the system works well.
The last piece of the puzzle is to be able to highlight specific parts of the document to help users w... | stackexchange/codereview |
My need is to move the MYSQL 5.0 database from my development m/c to actual production m/c,
How I can do this ???
On production m/c MYSQL is not installed, MY SQL 3.5 drivers are present.
but on my m/c MYSQL 5.0 and MYSQLDrivers 5.0 are resent so will on production server 3.5 driver will support 5.0 vertion...If I crea... | stackexchange/codereview |
we are developing an Adobe AIR app using Flex4. We are facing lot of bugs that didn't show up when we run the application inside Flash Builder (both debug mode and run mode), but when we install the app and run it, the app shows a different behaviour. Any idea ? what does it change between running the installed applica... | stackexchange/codereview |
I am using CF-8,windows-XP and IE 5.5.
I am using simple tag namely . but the output i am getting is pure gibberih along witht the text of the file(word document)
upld.cfm
<cffile action="read" file="C:\ColdFusion8\wwwroot\Proj\updl\fileDisk\SOL.doc" variable="fileDisk" >
<cfoutput>#fileDisk#
</... | stackexchange/codereview |
I am new to c# and am trying to run a cmd line utility called mediainfo from a c# script. I am trying to redirect the execution results output to a text file (file1out.txt) and when running straight from the cmd console the following works:
C:\programs\mediainfo_cli\mediainfo.exe --Inform=file://C:\temp\template.txt "... | stackexchange/codereview |
Good night,
I have a method in which I need to select from an SQLite database a value obtained by querying the database with two strings. The strings are passed to the method and inside the method I make some string concatenation to build SQLiteCommand.CommandText. What surprises me is that even with string concatenati... | stackexchange/codereview |
I am trying to configure SSL on my Jetty.
I read this:
http://docs.codehaus.org/display/JETTY/How+to+configure+SSL
and created a key store.
Then, I jumped directly to section 4. But where is this configuration file I should configure Jetty?
I tried to serach for jetty.xml, but there is no such on my computer...
| stackexchange/codereview |
I read that you can put a 'debugging' symbol in your RoR code, and then execution will Halt at that point and then you can then spit out anything into console to see the state of variables etc.
Is there a way to step though each line and follow the execution path?
| stackexchange/codereview |
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
if(window.addEventListener){
window.addEventListener('load',setDay,false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',setDay);
}
}
function setDay(){
document.forms[0].elements['mes'].onchange=func... | stackexchange/codereview |
i am a newbie android developer. I am using scrollView in my application. The application will take some profile information from user and will save it in database. There are 2 EditText fields which are broken in scrollView. I have tried my best to solve it but failed. Please help me if anyone knows what is the problem... | stackexchange/codereview |
I'm having trouble figuring out how to select data using a compound XPath query so that I can essentially find the 5th column of row in my data. Here is my example XML:
<sample>
<OBX>
<field position="1">1</field>
<field position="2">My Value</field>
</OBX>
<OBX>
<field position="1">2</field>
<field pos... | stackexchange/codereview |
LANGUAGE_CODE = 'ru-RU'
USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = False
{{ post.date_added|date:"b" }} gives "окт" in templates.
If I set USE_I18N = False then it gives oct as it should be.
Is this a bug ? How can I so... | stackexchange/codereview |
I test of multithreaded program. But i dont want to use unit testing method. I want to use blackbox method in my testing work.
I know that for testing of multithreaded application I have to use multicore processor, and give load for application and testing synchronization and locks between interfaces my program, but t... | stackexchange/codereview |
Which is the best third party tool available for wpf application localization.
| stackexchange/codereview |
Is is possible to list the members of a Facebook group using the Facebook API? If yes, how?
| stackexchange/codereview |
I am developing an application that involves a web browser object in a tab item of a tab control.
example:
<Window x:Class="TabControl.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="5... | stackexchange/codereview |
hope someone can help me. I have code a pyqt4 program. That is using a lot of packages, like Qt4, HDF5, qimage2ndarray, and, and, and. Now I want to create a .dmg file that contains everything you need to run that program. If you have a clean installation of Mac OS X, you only need to run this .dmg and you have everyth... | stackexchange/codereview |
jQuery plugins use a pattern like this to hide private functions of a plugin:
(function ($) {
var a_private_function = function (opts) {
opts.onStart();
}
$.fn.name_of_plugin = function (options) {
a_private_function(opts);
}
})(jQuery);
jQuery then makes those fn functions available l... | stackexchange/codereview |
I have started using Xcode as my main code editor. How might I make Xcode do things like using # instead of // for comments, and otherwise making the IDE friendlier?
| stackexchange/codereview |
I have defined a datagrid like this ::
<cc:PEDataGrid AutoGenerateColumns="False"
ItemsSource="{Binding Rows}"
Width="Auto"
PreviewMouseRightButtonDown="PEGrid_PreviewMouseRightButtonDown"
Loaded="CommonPEGrid_Loaded">
<wpfk... | stackexchange/codereview |
I am running Eclipse in windows for doing my homeworks. I have to submit a makefile so that my code (singlefile.java) can be compiled. How can I do this.
I found this. Can it be tested on windows.
EDIT:
As per the suggestions, I installed gnu make for windows:
My make file is as follows:
JFLAGS = -g
JC = javac
#
.SUFFI... | stackexchange/codereview |
I want my application to open only one process, i.e. if the one process is already opened and the user want to open the exe again - it won't open another process.
how can I do it in Qt - linux?
10x!
| stackexchange/codereview |
Greetings,
Under django 1.2 and Postgresql via psycopg2, I have a custom command that does heavy database actions (via Django ORM). I wrote it with threat pool via using the code here
Now my problem is, I get:
File "/usr/lib/python2.5/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 136, in _cursor... | stackexchange/codereview |
Well given a C code , is there a way that i can use other languages like python to execute the C code . What i am trying to say is , there are soo many modules which are built using a language , but also offer access via different languages , is there any way to do that ?
| stackexchange/codereview |
i have a application for listing student mark and name that is stored in raw resources ..res/raw
Can i change it from the code
any idea
regards,
Kariyachan
| stackexchange/codereview |
I want to remove the following specified characters from a string:
<
&
"
#
%
So something like:
Test%#"&<value
should become:
Testvalue
The order of characters is immaterial.
There's something weird about the string type.
A test string looks like this:
var_dump($test): string(25) "A BCDEFG/<&"#%/HI"
The number of... | stackexchange/codereview |
I need to use the address of a member of a template class in g++ inline assembly (as a compile-time constant value). Is it possible to express this? (I think that I need the mangled name of T<U>::x).
template < typename U >
struct T {
static int x;
};
template < typename U >
void f () {
asm ("somecommand T<U>::x")... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.