instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm creating a Book store in Magento and am having trouble figuring out the best way to handle the Authors of a Book (which would be the product).
What I currently have is an Attribute called "authors" which is multi-select and a thousand [test] values. It's still manageable but does get a little slow when editing a pr... | stackexchange/codereview |
I have a following code
$(document).ready(function(){
//When mouse rolls over
$("#nav #nav_li").mouseover(function(){
$(this).stop().animate({height:'140px', width:'182px'},{queue:false, duration:600})
});
//When mouse is removed
$("#nav #nav_li").mouseout(function(){
$(this).stop(... | stackexchange/codereview |
In my company one of the applications is a classic asp based application.In this application one the .asp has a Class Definition and a function associated with the class.I want to use this class an aspx.cs page.Is it possible to do this and how
| stackexchange/codereview |
I need to set the size of array. After that I start to input numbers to dill this array. During that procedure I count sum for calculating average later.
Now I have an array and average and I need to find the element with lowest difference from average.
Like:
array size = 3
input = 1
input = 2
input = 3
average = 2
Cou... | stackexchange/codereview |
Anyone know how to do this? I would like to programatically (sp?) open a box asking my users to type in what to publish, but I want it to look like Facebook's own boxes.
Cheers!
| stackexchange/codereview |
How you manage/organize your collection of code snippets on Linux? Is there a specialized tool to do that (both in GUI and CLI environment)? Is there any convention about code snippet management in Linux? Also, I often do some work via ssh so it would be really helpful if I can access my snippet easily from command lin... | stackexchange/codereview |
I have a ListView, displaying some items, containing an ImageView filled with a standard image at first and a line of text.
What I wanna do is downloading one thumb after another with an AsyncTask and step for step change the standard image with the downloaded one. How to realise this?
The ListView contents are managed... | stackexchange/codereview |
I am using using Sencha Touch to make a web-mobile-app. I'm not extremely familiar with the way EXTJS works. I set up my list like this:
sink.Structure = [{
text: 'Name'
},
{
text: ' <?php echo $name; ?>'
},
{
text: 'Friend'
},
{
text: ' &nbs... | stackexchange/codereview |
em adjust size according to screen size,
yes but confused
does em depend upon browser settings? which settings?
or does em depend upon screen resolution?
or help what does it depend upon and from where can these elements be changed to observe the difference in sizing when "em" is used
| stackexchange/codereview |
I have a legacy application written in C , and i would like to gradually move some code to c#. But before being able to rewrite everything i will need to have just few components writen in c# first that are going to be used from C.
| stackexchange/codereview |
Is it possible to have an iframe capture the standard (single-finger) scroll on mobile safari? I have a javascript application that creates a large iframe intended for scrolling. It works great an standard web browsers, but requires the unintuitive two-finger scroll when using mobile Safari.
| stackexchange/codereview |
I am using smartxls in my asp.net project with c#. I have the following code:
var excel = new SmartXLS.WorkBook();
string projPath = AppDomain.CurrentDomain.BaseDirectory;
excel.readXLSX(projPath + @"ExcelTemplates\" + template);
excel.ImportDataTable(....)
Response.ContentType = "application/vnd.ms-excel";
excel.writ... | stackexchange/codereview |
I have added the SqlRoleProvider tables aspnet_Users, aspnet_Roles, and aspnet_UsersInRoles to my Entity Framework 1.0 model in VS 2008.
I've tried the following which intellisense won't even help me with.
private void BindFormView(string userName)
{
using (var context = new MyEntities())
{
var users ... | stackexchange/codereview |
Every single resource I'va come across on Internet always describes very well what you can do with the GET operation, how it works and so on, bu it never explains the POST/PUT/DELETE and particularly the format of the data you pass in the HTTP body (I'm using JSON). It always says "you can make a post request and pass ... | stackexchange/codereview |
I’m using a REST API which, among other things, uses the DELETE method like this:
DELETE /resources/whatever/items/123
To access this using PHP I’m using cURL like this:
self::$curl = curl_init();
curl_setopt_array(self::$curl, array(
CURLOPT_AUTOREFERER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_RET... | stackexchange/codereview |
I'm trying to change a entity property value in the PreUpdateEventListener, but the new value is not persisted, the generated sql contains the old value of the property.
The code is very simple:
public bool OnPreUpdate(PreUpdateEvent @event)
{
var p = @event.Entity.GetType().GetProperty("audit_versi... | stackexchange/codereview |
I have an ExtJS GridPanel with a store and a paging toolbar at the bottom. I can manually set the start page through the browser using:
www.someurl.com/page/7
This will load the data store with page 7 correctly. However, the paging toolbar does not update the page number from the store (it still shows 1). I was under... | stackexchange/codereview |
I want to know if there is any array method to check existence of particular column in model. I have combined query results from two tables into an array. I need to check exitence of those tables column name inj that array.
| stackexchange/codereview |
I have a situation where I'm generating my Connection String in an asp page using a functionality.This functionality I may need to completely do from scratch in .net which is redundancy.To avoid this I want to get the connection string variable from the .asp page to the .net page i.e aspx.cs. Is it possible to do this.... | stackexchange/codereview |
Based on http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/, I've changed my category hierarchy to use left and right values. This works great, except for when two categories have the same name.
CREATE TABLE `nested_category` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(80)... | stackexchange/codereview |
Here is what i have in my map.xml file:
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="0p8EoZESY... | stackexchange/codereview |
I ran the following code in PHPAdmin's terminal:
SELECT COUNT( * )
FROM User
WHERE email = 'ijp'
and got result 0.
Then part of my PHP program goes as follows:
$email = clean_input($_POST['email']);
$query = "SELECT COUNT(*) FROM user WHERE '.$email.'=email";
echo $query;
$result = mysqli_query($link, $query);
echo ... | stackexchange/codereview |
In PHP, I am creating a long string, like this:
$cmd = "scp -P 435 xxxxxxxx@xxxxxxxxxxx:/var/backups/db/xxxxxxxxxxxxx{$todayTimestamp}*.sql.gz /var/xxxx/xxxx/xxxx/xxxx/"
In order to better display the code on the monitor, I would like to break it to a new line but I dont't want the $cmd variable to contain a new line ... | stackexchange/codereview |
When i downloadin a file from Web in android, then i want to show progress bar in notification area of status bar through service, but i can not able to do this. how can i do it. I am not able to pass the file length in service. Please help me.
thanks in advace
| stackexchange/codereview |
Maybe this question has been asked a lot,
but I still can't understand how to load CSS files when using django...
Please can anyone explain to me step by step how to load it?
Can I load the CSS file without the static folder or link, so I don't need to change the urls.conf but just setting in "setting.py" file?
(Sorry ... | stackexchange/codereview |
This is kind of a special combination of tags that I want to allow in HTMLPurifier, but can't seem to get the combination to work.
I can get script tags to work, but then embed tags get removed (I enable the script tags with HTML.Trusted = true). When I get embed tags back in, script tags are stripped out (I remove HT... | stackexchange/codereview |
Since dynamic assembly loading requires appdomain loading to enable killing the assembly with unloading related appdomain, is there a "max" number appdomains in a process to be loaded? I am thinking of a server based application that each user can run his proprietary C# code dynamically. But what if, say, 2000 users lo... | stackexchange/codereview |
So web sites dont allow to open their pages in a iframe for security reasons ----
so I am looking to:
1: the more difficult bit: is there any way to bypass this "not allowed" an still open that page inside our iframe?
2: or is there any possible way to laetr our users for the impossibility to open that page? I say this... | stackexchange/codereview |
i am making a ajax request using $.get as soon as the user types a character in the input box
i want to abort the previous ajax calls and then make the new one, is there a way?
edit
solved!
i just found out that $.get is a shorthand way to $.ajax and hence it returns a XHR and so we can call abort on that variable.
| stackexchange/codereview |
Is there a fast way to remove rows and columns from a large matrix in MATLAB?
I have a very large (square) distance matrix, that I want to remove a number of rows/columns from.
Naively:
s = 12000;
D = rand(s);
cols = sort(randsample(s,2))
rows = sort(randsample(s,2))
A = D;
tic
A(rows,:) = [];
A(:,cols) = [];
toc
% E... | stackexchange/codereview |
I hope somewhere out there will be able to help me on this. I have my production evironment as follows:
Rails 2.3.5
Passenger 2.2.11
Nginx
Monit
It seems that everything is working as it's supposed to be but, 2 or 3 times a day, I get an email from Monit as follows:
monit alert -- Connection failed nginx
To: myemail@... | stackexchange/codereview |
Is it possible to call a javascript function from the URL? I am basically trying to leverage JS methods in a page I don't have access to the source.
Something like: http://www.example.com/mypage.aspx?javascript:printHelloWorld()
I suspect the answer to this is no but, just wondered if there was a way to do it.
| stackexchange/codereview |
i've developped a multilanguage site and now i'm wondering how i can best track them using Google Analytics. I want to track both languages separatly but i also want to get a general overview. The url's of my site are:
rootdomain.com/ --> which has a splash page
rootdomain.com/nl --> which is the dutch site
rootdomain.... | stackexchange/codereview |
I have a form where im asking for name, surname, phone cellphone and at the end user has to check one or more options in a checkbox and then clicks submit.
After that in the "thank you page" i want to show the exact form but this time to show only the non-checked checkboxes.
Reason for this is that i want to say "We hi... | stackexchange/codereview |
i know this question has been asked/answered several times already, but i just cant seem to get past it. so, my apologies...
while in the site dev phase, i want the browsers address bar to display: domain.com/dev/item
i would like the RewriteRule to change it to: domain.com/dev/index.php?p=item
im using the .htaccess l... | stackexchange/codereview |
I know how I'd do this using JBoss: create a *-ds.xml file, and drop it into my deploy directory.
Is there a declarative way to do the same with GlassFish (v3.1)?
Am I thinking about this the wrong way? (See next question)
Is there a more-Glassfishy way to get my Java EE application to talk to a database?
Other poten... | stackexchange/codereview |
Guys,
I have a project which I have compiled for the ARM Cortex-A8 processor. I'm making use of GCC to do this. Currently the size of my executable is 220.1 KB. Now I modify my makefile and I add the flag -mthumb, the makefile line looks somewhat like this -
gcc -mcpu=cortex-a8 -mthumb -marm -mfloat-abi=softfp -mfpu=ne... | stackexchange/codereview |
I am just trying to get my head around MVC in Objective C and IOS but am having a problem I'm hoping someone can help me with.
I have created a custom view (created as a child UIView in a XIB) that uses a simple delegate protocol for requesting information from its delegate in drawRect. I have a view Controller that im... | stackexchange/codereview |
I need to make a menu that looks like this:
The upper entries need to have a right margin of (lets say) 20px.
Problem arises, when I add the sub-menus, especially like the red one with the «large Menu-Entry». The top menu needs to stay in place and all the sub-menus need to be centered under that top menu. But either ... | stackexchange/codereview |
In my Wicket app, I have a page with radio buttons and <label for="..."> elements:
<input type="radio" wicket:id="today" id="today" />
<label for="today">Today</label>
However, while the radio button's id property gets changed automatically, the for property of the label tag stays the same and that creates an inconsis... | stackexchange/codereview |
Hopefully you will be able to help me with this.
I have been interested in developing a n-tier web app, UI - WCF Service - Entity Framework Data Layer, so that my datalayer is not directly access from the web app.
I have created my data layer, WCF service and web app all in their own projects contained within one solut... | stackexchange/codereview |
I'm developing on a site with a few hundred user controls. When debugging the web app (pressing F5 in Visual Studio 2008), it takes quite some time to compile it and start Cassini. I've noticed that every user control is compiled to a separate dll in temporary asp.net-files and it takes quite a lot of time.
Is it poss... | stackexchange/codereview |
I would like to disable the combo box which was in the first Form on clicking save on the second Form.
I am having 2 forms and my requirement is to append the 2 forms data together this was done
For my requirement i write a small code but it doesn't work for me
My code is as follows
Form1 i write my code as follows
... | stackexchange/codereview |
Is there a way (besides storing the key as part of the value and iterating through the map) of retrieving the keys from an STL map, multimap (hash_map) a la Perl keys(%hash)?
| stackexchange/codereview |
In the book "The Algorithm Design Manual" by Skiena, computing the mode (most frequent element) of a set, is said to have a Ω(n log n) lower bound (this puzzles me), but also (correctly i guess) that no faster worst-case algorithm exists for computing the mode. I'm only puzzled by the lower bound being Ω(n log n).
Se... | stackexchange/codereview |
For one reason or another I have a PATH variable which has multiple entries where my exe can be located.
I am struggling to find the order that Windows uses when resolving DLLS.
Does it scan the Path variable and the first (in the list) match is used? In my testing it looks like the final one is used.
Does anyone know... | stackexchange/codereview |
We're using aspose.word to create a report from a word template direct to PDF format. Now we're stuck at handling the TOC for the document. We need the TOC to be dynamic and make correct changes according to where the section is on the document.
Would aspose handle putting the correct page number to the correct categor... | stackexchange/codereview |
I noticed that my routine to convert between RGB888 24-bit to 16-bit RGB565 resulted in darkening of the colors progressively each time a conversion took place... The formula uses linear interpolation like so...
typedef struct _RGB24 RGB24;
struct _RGB24 {
BYTE B;
BYTE G;
BYTE R;
};
RGB24 *s; // source
WORD *... | stackexchange/codereview |
I've created very simple web site for the test purposes. Only one master page and one content page.
My content page looks like this:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" Cont... | stackexchange/codereview |
I'm developing a multi tenant app architecture that is quite complex.
.
3 completly different kind of app
Ther is no only one type of application used by many customers; ther are 3 different kind of applications.
APP A, APP B, APP C
.
Each APP is multitenant
Each app has its customers.
APP A
- customer A1
- customer A... | stackexchange/codereview |
I have the scene stored in array as collection of shapes that is represented by sequence of points. I'm drawing this scene with CGContextMoveToPoint, CGContextAddLineToPoint, CGContextSetFillColorWithColor and CGContextFillPath functions. The problem is that i need to redraw scene on timer event with short interval (0.... | stackexchange/codereview |
I have a class which needs to use an IRepository for one method in it's class.
Ideally, I would like to avoid having to resolve this dependency into the class's constructor, and so I found method level injection in Ninject and was wondering how this works?
I understand how to set it up. What I'm confused about is how ... | stackexchange/codereview |
I use this jQuery Tags Input plugin:
jQuery Tags Input
but I can't get the values on my php file.
| stackexchange/codereview |
I used to be able to do a subprocess.call(["command","-option value -option value"]) and it would work there was a change to the command to work properly with things in quotes, but now I have to change my subprocess call command to look like this:
subprocess.call(["command","-option","value","-option","value"])
is... | stackexchange/codereview |
What type of object should be thrown in JavaScript?
I see a lot of examples which throw a plain old string and there seems to be a semi-standard Error type. Should I prefer one over the other?
| stackexchange/codereview |
I'm experiencing a problem on a test-machine which is running in a quite restrictive environment.
I only have the option of running IE 7 on this machine, which is used for testing purposes. And I cannot install anything on it. I don't have access to Developer-tools in Internet Explorer, so I can debug in any way, excep... | stackexchange/codereview |
I have a table, let's call it My_Table that has a Created datetime column (in SQL Server) that I'm trying to pull a report that shows historically how many rows were to My_Table by month over a particular time. Now I know that I can show how many were added each month with:
SELECT YEAR(MT.Created), MONTH(MT.Created), ... | stackexchange/codereview |
I know of a few ways (i know there is probably more) to open a file in a browser after the user clicks on a link,
Use PHP headers to simulate a file download
Use an <a> tag to redirect the user to the path of the file
Use javascripts window.location to point to the file location
Iframe tag
Object tag
What is the most... | stackexchange/codereview |
I get a return value from a web service in minutes, for example 538 minutes. I need to break this down in hours and minutes. What is the fastest way, in .net code and also VB6 code (two apps use the service) to convert this from minutes to HH:mm?
Thanks
| stackexchange/codereview |
i want to Capture the the Text Entered by a user when the update Command is Pressed taking into Consideration that i Changed the Edit and Update Command To be named Activate
<asp:DataGrid ID="Datagrid1" runat="server" AutoGenerateColumns="False" Width="100%"
OnCancelCommand="Datagrid1_CancelCommand" OnEditCommand=... | stackexchange/codereview |
I have 2 tables
Customer
Order
2 Classes
Customer
Id-Name
Order Id-Description. CustomerName
My stored procedure returns all orders with the customerName as well.
I have used the normal mapping to a Entities =OrderTable
However my customerName is not populated even though the sp returns it.
Should I use a complex typ... | stackexchange/codereview |
I have an application that has a struts 1.1 and EJB 2 combination, but now we are introducing a new piece into it with hibernate 3.2. The hibernate DAO's run in parallel with the EJB 2 session bean DAO's with pure JDBC. I am concerned about the jdbc connections management in this case. Since EJB 2.0 has container manag... | stackexchange/codereview |
while going through video tutorials for mvc2 which i downloaded from microsoft's website, the traineer said that there is facility available in .net4 that we can map the fields of two object of different class and we need not to set there values one by one.
let say i have got a table named tblusermaster which contains ... | stackexchange/codereview |
I'd like to create slides for my presentation. My presentation will contain these: slide title, bullet points, code snippets (in a monospace font), some code lines highlighted as bold, Python code snippets (with syntax highlighting).
I need an application or tool which can generate such slides in HTML (or HTML5), so wh... | stackexchange/codereview |
I used git-svn to create a git mirror of an SVN repository. The structure inside the SVN was a little off-standard, so git created a branch that has no common commit with the master branch.
A---B---C topic
D---E---F---G master
I know that commit A is based off commit E and I'm pretty positive that I've fixed t... | stackexchange/codereview |
Is there any better to way to check if I can receive a given IP Multicast transmission. Following code works fine but there is a problem in this code - it blocks the current thread until it gets the multicast packets.
Thank you.
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSock... | stackexchange/codereview |
I'm trying to correct all Checkstyle warnings for my project, but I keep stumbling over something very annoying when I need to construct a class that takes a Generics argument. Take the following line, for example:
labels = new HashSet < String >();
Then Checkstyle complains that '">" is not followed by whitespace'. S... | stackexchange/codereview |
I started off this morning trying to work out what the 'when' statement is used for in erlang. I know the below example is wrong:
do_larger() ->
io:format("Larger~n").
do_smaller() ->
io:format("Smaller~n").
when_version(Size) ->
when Size > 10 -> do_larger(),
when Size < 10 -> do_smaller().
I decid... | stackexchange/codereview |
I have problems with redirecting user after authorization back to the app tab in facebook page. I always end up in standalone application canvas page.
Edit:
It was meant to be an app in tab
within a Fb page. I wanted to do the
authorization and then to redirect
user back to page tab. But when you do
this the... | stackexchange/codereview |
Consider the following table in SQL Server 2008:
LanguageCode varchar(10)
Language nvarchar(50)
LanguageCode participates in relationships, so I cannot create a primary key index that includes both columns (LanguageCode, Language).
If I put a primary clustered key on LanguageCode, of course I can't include Langu... | stackexchange/codereview |
I have two URLs with parameters
http://localhost:8041/Reforge.aspx?name=CyanГ
http://localhost:8041/Reforge.aspx?name=Cyanì
In first URL Firefox encodes last charecter (Г) as %D0%93 (correctly in UTF-8).
In second URL Firefox encodes last character (ì) as %EC (correctly in ISO-8859-1)
ASP.NET MVC can be configured usi... | stackexchange/codereview |
I have a problem with Nextgen gallery,after activating some plugins it doesn't show the submit buttons(insert, cancel).
Then i have deactivated all plugins, but that doesn't help.
I haven't any experience with wordpress, so any suggestions would be very useful.
Thanks much
| stackexchange/codereview |
I was convinced that there is no way to find COM dependencies of an ActiveX but to my surprise OLEVIEW shows some comments Like:
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib("stdole2.tlb");
// TLib : Visual Basic runtime objects and procedures : {EA544A21-C82D-11D1-A3E4-... | stackexchange/codereview |
I have taken over development of a website that integrates with Netsuite. The main way that it seems to use to get information from Netsuite about the current session (ie cart details, etc) is through the use of Javascripts. For example
http://shopping.netsuite.com/app/site/query/getcartitemcount.nl?c=xxxxxxx
gets t... | stackexchange/codereview |
i have created an application and would like to provide a 30 days trial period for the same using licensing dll provided by android (http://developer.android.com/guide/publishing/licensing.html#support),but i cannot find how to restrict this licensing to 30 days from date of installation.
Thanks in advance.
| stackexchange/codereview |
Can I run a JavaScript file from shell (Window\Linux) ?
I just want to show a message box to the user and based on the button selected perform some action. The buttons also need to be customized.
| stackexchange/codereview |
Is there any way to get the user's email id from my app automatically.. instead of asking the user to register with his email id or something like that....
I want to know who all bought my app, and want their email-id's to send them more info via mail..
thanks in advance...
| stackexchange/codereview |
I'm in VS2010. I have a project of type Web Application. I want to publish it (equivalent of Right-Click,Publish on the project in Solution Explorer). I don't want to use my mouse.
What's my best move?
| stackexchange/codereview |
Hey guys, I have a bit of a problem. I get values from textarea as an array, then I do a foreach loop and there it gets messy, I have 2 functions that work with the vars, but only one them works normally, the other one only works on the last objest of an array.
(I'm not much of a php specialist so the code might look m... | stackexchange/codereview |
I'm following a tutorial on this link http://www.codeproject.com/KB/aspnet/ASPNETService.aspx
Now I'm stuck at these codes
private const string DummyPageUrl =
"http://localhost/TestCacheTimeout/WebForm1.aspx";
private void HitPage()
{
WebClient client = new WebClient();
client.DownloadData(DummyPageUrl);
... | stackexchange/codereview |
I am trying to flag rows in a grid in the following order based on a date column
When 2 or more days old from today
then RED
When 1 day old then YELLOW
When 0 days old then GREEN
When the date is in the future then
BLUE
I have the following which is working fine except for the future dates which are GREEN instead of ... | stackexchange/codereview |
I had made the twitter application using the OAuth and MGTwitterEngine Library. The login phase is working fine but I am facing problem in logout. I had referred all the post of logout for OAuth but it doesn't works. So can anyone suggest the perfect method for logout from the Twitter ...? OR What changes I have to mak... | stackexchange/codereview |
I'm trying to update using mysql_query in php and it gives me this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read='1' WHERE id='14'' at line 1
I've been looking at my query for about 10 minutes now and I cant find whats... | stackexchange/codereview |
I have the following XML fragment:
...
<Setting name="HOST1">server1</Setting>
<Setting name="HOST2">server2</Setting>
<Setting name="HOST3">server4</Setting>
<Setting name="HOST4">server8n12</Setting>
...
<!-- Many more such declarations all with the attribute of the form "HOSTNN" -->
I am using LibXML to find the n... | stackexchange/codereview |
I have 3 webforms controls: 3 checkboxes and 1 textbox.
When I check checkbox1 and checkbox2, then in the textbox it should appear as 1,2.
How can this be done using ASP.NET webforms controls?
| stackexchange/codereview |
I have used visual basic about 5 years ago.
but i have started using delphi 5 years ago (when most developers jumped from delphi to visual studio) delphi is as easy as vb and at the same time it is rad and robust. Delphi is having many changes since pascal (eg : strings must be combined in a different way in pascal in... | stackexchange/codereview |
Given the following code:
container.Register(
AllTypes.FromAssemblyNamed("MyNameSpace")
.Where(component => component.Name.EndsWith("Repository"))
.WithService.FirstInterface()
.Configure(component => component.LifeStyle.Singleton)
);
... | stackexchange/codereview |
any one guide me if i am uploading an image from android phone pro grammatically
my application works fine for small images but in case of if my camera is of 3 or 5 mega pixel it takes
big size images for example 2mb which takes too much time to upload and sometimes gives me out of memory exception.
any one suggest me ... | stackexchange/codereview |
I've tested it and it looks like it does. So my question is, does it ALWAYS increment the retain count.
So everytime I do something like this:
UIView *theView = [[[UIView alloc] initWithFrame:(CGRect)aFrame] autorelease];
[self.view addSubview:theView];
Am I actually leaking memory?
I have a global property @property ... | stackexchange/codereview |
I want to call a method of a DLL via reflection (can't be sure that the other dll is loaded) but have problems with the parameters.
The method I want to call is
public void Add(DBTable table, String sField, DBValue value, SQLConditionType type)
in the MP-TVSeries project
What I tried is this:
// WindowPlugins... | stackexchange/codereview |
How can I create a thinner UIToolBar in my iOS-app? The standard size is 44px, and I would like to have it in 30 or 35px.
Is it possible?
| stackexchange/codereview |
I've just started out with android and write a simple dialog app with some random strings presented to the user. I started to think about best way to do that?
if strings.xml consist of strings like:
<string name="quote1">blaha blaha</string>
<string name="quote2">chit chat</string>
I guess there's a better way then ge... | stackexchange/codereview |
In my ASP.NET MVC application I am generating excel reports, I have a template file that I copy and alter. This template file is put in a folder in my solution. I want to use it as follows:
string templatePath = @"\Templates\report.xlsx";
using (var template = File.OpenRead(templatePath)) {
// Copy template and proc... | stackexchange/codereview |
I am trying to get the following code to work (which looks really straightforward but it does not work like it is supposed to)
Please help me out here :
function findLocationAddress(myLatLng)
{
var formattedAddress='MY HOUSE ADDRESS';
geocoder.geocode({'latLng': myLatLng},function(results, status) ... | stackexchange/codereview |
i have to pass base url value from my "abc.master.cs" page to java script function which is on "abc.master" page.
I anyone know about this, then please help me!
| stackexchange/codereview |
Let's say I have a typical unmanaged call I want to make in some DLL:
[DllImport("unmanaged.dll")]
static extern int SomeFuncion1(int parm);
Does the DllImportAttribute search for the DLL according to the SafeDllSearchMode setting in the registry? I couldn't find anything in MSDN that indicates if indeed the search or... | stackexchange/codereview |
What is a good open-source tool for blaming / praising / annotating code (or other text that has a history)?
What I mean is a tool to take code that has a history in source control and show which line came from which revision / version.
I would prefer one that detects lines that were moved, too. And it has to be open s... | stackexchange/codereview |
I'm pretty confused about this one. Given the following xml:
<sch:eventList>
<sch:event>
<sch:eventName>Event One</sch:eventName>
<sch:locationName>Location One</sch:locationName>
</sch:event>
<sch:event>
<sch:eventName>Event Two</sch:eventName>
<sch:locationName>Location Two</sch:loca... | stackexchange/codereview |
I want to know if there is a way to read the name of sub-folders and files of given path recursively in assembly x86
| stackexchange/codereview |
There are 2 models, and they are linked using a has_many :though relation.
There is the :conditions parameter, that will look for a condition in the other model table, but is there someway to create a condition in the join table?
For example, supose I have:
User
Game
GameUser
One User may have many games, as a Game ma... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.