instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have the following C# code to compile it into MyMath.dll assembly.
namespace MyMath {
public class Arith {
public Arith() {}
public int Add(int x, int y) {
return x + y;
}
}
}
And I have the following IronPython code to use this object.
import clr
clr.AddReferenceToFile("M... | stackexchange/codereview |
I have a php script that uses curl to download a remote file.
Let's say I have two servers: a and b. And the script file name is curl_download.php on the a server.
When I access curl_download.php?filename=something, it promtes browser's download window.
Am I using bandwith on server a or b? or both?
I assume both, but... | stackexchange/codereview |
I have a website that displays product information that the client wishes to offer as pdf format. I need a way to dynamically convert a particular HTML page into a PDF, does anybody know of a way to do this? I need to convert an html page into a PDF document and serve it to the end user on the fly (there are WAY too ma... | stackexchange/codereview |
Can I add an INDEX to a Common Table Expression (CTE)?
| stackexchange/codereview |
Possible Duplicate:
concurrency (stale data) problem in JPA
Sorry for duplicating, but I think I didn't get satisfactory answers so posting again
Let's say I have methods with following signature
Object getData(int id) {
//create a entity manager
//get data frm db
//return data
}
updateData() {
Object obj... | stackexchange/codereview |
I'm building a search page and I'm a bit unsure on what I should in regard to sanitizing and validating user input.
The search page has filters which are passed via querystrings. (some passed from inputs and others from links with checkbox/radio like behavior)
What should I look out for in this situation? Can I be safe... | stackexchange/codereview |
I have a nice kernel programming assignment involving a novel kernel locking method, and my group and I have chosen to implement it as a wrapper around a completion. However, the specification requires that we return the number of processes notified by our method, which involved returning the number of processes awoken... | stackexchange/codereview |
I am using tomcat5.0.28 windows installer , and it stopped in the middle of progress bar.
with the last message "using jvm: c:\java\j2sdk1.4.2_19\"
i wait for a long time, and it seems freeze, i have to kill the process.
I use process explorer to check the processes. i found a children process created by tomcat install... | stackexchange/codereview |
If you write int m[1000000]; inside the main function of C/C++, it will get a runtime error for stack overflow. Instead if you write vector<int> m; and then push_back 1000000 elements there, it will run fine.
I am very curious about why this is happening. They both are local memory, aren't they? Thanks in advance.
| stackexchange/codereview |
I have code in an ASP.NET form that needs to, depending on user entry create messages in the database. We are speaking of potentially thousands of db entries. How do I protect against deadlocks, I mean apart from using Transactions and setting IsolationLevel to Serializable, as well as using WITH(NOLOCK) statement on m... | stackexchange/codereview |
Hi I'm using the jquery ui accordion. I've been trying to figure out how to (in addition to the usual accordion function) if I click an outside link it'll act as an anchor tag and also slide the div up show the content?
<script type="text/javascript" src="http://jqueryui.com/ui/jquery.ui.core.js"></script>
<script type... | stackexchange/codereview |
I'm having some trouble running a query on a table like this:
+-----+---------------------+-------+------+
| id | paid_date | amount| type |
+-----+---------------------+-------+------+
| 204 | 2010-10-22 05:12:54 | 1000 | 0 |
| 205 | 2010-10-22 05:13:12 | 1000 | 1 |
| 206 | 2010-10-21 05:13:44 | 10... | stackexchange/codereview |
I want to populate [MyClass class] from a JSON string.
I use json-framework to get the NSDictionary, and it's dead easy to instantiate and setValue: forKey:... on my data object.
But for more complex data objects with classes as members of MyClass,
ie:
MyOtherClass *classNoTwo
I tried with
Class test = object_getCla... | stackexchange/codereview |
I'm using ADO to connect to an SQL 6.5 Server and extract data from a column storing text data (field type returns as adLongVarChar).
The column data was updated from an old legacy DOS system and contains a few extended ASCII characters like 0xFB (square-root glyph in Code Page 437).
The problem is when I read the Fie... | stackexchange/codereview |
I would like to efficiently compute the size of a filtered list, i.e., I don't want to keep the whole filtered list in memory, I just want to get its size. Is there a more "pythonic" way than computing the size using a for-loop?
For example:
my_list = [1,2,3,4]
# this loads the entire **filtered** list in memory
size_... | stackexchange/codereview |
I have five links that I want to change the content in the same separate DIV. There's different content corresponding to each link. On the mouseleave, I need the default text to return inside the separate DIV.
Has anyone already done this or can guide me? I prefer jquery.
Thanks!
| stackexchange/codereview |
If I open a file and use fscanf to read a file like this:
2 41
1 50
1 46
....
How do I tell C to read the first number and store it as a variable, then the second as another variable, run a loop, then move on to the next set?
| stackexchange/codereview |
I have a repeater that has an OnItemDataBound event on it. For some reason the repeater has three items being bound to it. But then I try the below it only writes '2' at the top of the page. The repeater itself does show the three items but this loop in the OnDataBound event doesn't see the last item. Why?
protected vo... | stackexchange/codereview |
For a mock web service I wrote a little Django app, that serves as a web API, which my android application queries. When I make requests tp the API, I am also able to hand over an offset and limit to only have the really necessary data transmitted. Anyway, I ran into the problem, that Django gives me different results ... | stackexchange/codereview |
Is it possible to show standard camera view (system camera view) using QtMobility on Symbian? I have Nokia N97. How can I show system camera view using QtMobility? Thanks in advance.
| stackexchange/codereview |
This is sort of what I want to do, but MySQL doesn't seem to accept it.
SELECT Name, Content, Lft, Rht FROM Articles WHERE
(Lft > (SELECT Lft FROM Articles WHERE idArticle = 1))
AND WHERE
(Rht < (SELECT Rht FROM Articles WHERE idArticle = 1));
I'm implementing the modified preorder tree transversal algori... | stackexchange/codereview |
Is there software which allows to hibernate (save state) of the specific application and then recreate it (maybe on other computer)?
Is it possible to write such type of application?
| stackexchange/codereview |
i'm very new to Access and VB, and im about to print a specific record.. but im getting an error with this code:
Private Sub printEksternAVR_Click()
DoCmd.OpenReport [Report_AVR Ekstern], acViewPreview, , [Report_AVR Ekstern].Rapport_nr = Forms!Form_AVR
End Sub
My reports name is AVR Ekstern, and the prime key is Ra... | stackexchange/codereview |
I want to configure BugZilla to email me whenever an issue is assigned to one particular person. For example, if anything gets assigned to the user "critical-triage@mydomain.example.com" I want to get an email telling me so.
Is it doable?
| stackexchange/codereview |
Okay, about three to four months ago, while looking for something COMPLETELY different, I was tripping over how-to's on creating Silverlight assemblies. Now that I am actually looking for that info, I can't seem to find it.
Can anyone point me to some resources for taking a UserControl I've created and making an assemb... | stackexchange/codereview |
I'm building a custom pulldown menu in jQuery.
Now I'd like to set the text of the A.select element to the text of the element that is clicked. But I can't get it to work.
This is the html:
<div class="pulldown">
<a href="javascript:;" class="select">All cats/subs</a>
<div class="options">
<a href="javascr... | stackexchange/codereview |
Description
I have a payment page that includes a form for entering bank account information. I have encapsulated the bank account information into a Model / Editor Template. The page itself has its own View Model, which happens to contain a BankAccount property to be passed in to the Editor.
[[View Models]]
public cla... | stackexchange/codereview |
Anybody knows the method to convert the numericals to english number words in rails?
I found some Ruby scripts to convert numbericals to english words for corresponding words.
Instead of writing a script in ruby, i feel that direct function is available.
Eg. 1 -> One, 2 -> Two.
| stackexchange/codereview |
I have two subscribers listening to a publisher.All th queues are on the same machine.To make subscriber power off i deleted the input queue of one of the subsriber. I am getting one exception in the generic host command output and no meesages are there in the Outgoing Queues. Is this behaviour is coz all things are in... | stackexchange/codereview |
here are my tables
topics
-id
-title
-category_id
posts
-id
-topic_id
-user_id
-date
-time
-txt
user
-id
-username
i want to list for a category every topic with the following information
the author's username (who posted first), number of replies,the name of the last reply's author, and the date of last post sorted ... | stackexchange/codereview |
I'm looking for suggestions on creating a model/scaffold for Photos
I want a user to be able to create a album that contains 1 or more photos.
Current idea:
album
id, name, user_id
photos
id, name, album_id
Thoughts?
Thanks
| stackexchange/codereview |
I got a UIViewController class named DetailViewController, its xib file is called detailViewController.xib.
In the xib file the class is set to DetailViewController class. So it should be all good.
However, when i try to add this view from main view controller, nothing showed up... Here's the code in the main view cont... | stackexchange/codereview |
What are the exact reasons that the creation of an appdomain is so expensive. They share the same heap, the same assemblies etc. What exactly needs to be done by the CLR that comsumes so much resources?
We have seen scenarios where accessing a type/instance from the other appdomain takes up 10 seconds (update: all requ... | stackexchange/codereview |
c# vs2010
hi all:
how can I bring to focus on a window all controls hidden on expander.
expander is collapsed at the bottom of the window,
when i click on it to expand it (i have to scroll down,'cause controls are not showing on the window), I would like to bring into focus the first control and be able to see the la... | stackexchange/codereview |
I cant seem to find any useful information whether constructor delegates that are proposed for C++0x are already available in Visual Studio 2008 / 2010. I tried to use them and got pretty strange errors, but I can't test this in VS2010 currently. Can anyone tell me if they are available already?
cheers,
Tom
| stackexchange/codereview |
I am trying to call a JavaScript function from my ascx control code behind in the catch block.
I have tried the below two ways but they don't seem to work.
Page.ClientScript.RegisterClientScriptBlock(typeof(string), "script", "test();", true);
ScriptManager.RegisterStartupScript(Page, GetType(), "err_msg", "alert('err... | stackexchange/codereview |
Is it possible to set the OpenFileDialog's cancel button enable = false? If so, How?
I'm using winforms
Edit
OpenFileDialog file_open_dialog = new OpenFileDialog();
| stackexchange/codereview |
Does GTK (on GNU/Linux) support Arabic localisation, if so how can it be done?
| stackexchange/codereview |
With some help from the fine folks on Stackoverflow, I built a small newsletter subscription submission form:
<div id="news-signup">
<form action="news.php" method="post">
<fieldset>
<input type="text" id="your-email" name="your-email" value="YOUR EMAIL ADDRESS" onfocus="if (this.value=='YOUR E... | stackexchange/codereview |
I have an excel 2007 worksheet with 12 columns (each column is corresponding to a month) and every column includes +/-30000 rows of daily rainfall data. What I need to do is combine these columns of data into one new column (one continuous rainfall series) as follows:
Copy the first 31 (the number of days of January) ... | stackexchange/codereview |
Basically I want to "cut the corners" of the first cell imageview and the last cell imageview to match the curved corners on the grouped tableview section.
I was given the advice to do this by setting the view's masksToBounds property to true?
Anyone know how to access this view? Doing cell.superview doesn't work. cell... | stackexchange/codereview |
I found a similar post here but I can't solve the problem anyway.
I got this
/home/fra/siti/Pensiero/db/seeds.rb:32: invalid multibyte char (US-ASCII)
/home/fra/siti/Pensiero/db/seeds.rb:32: invalid multibyte char (US-ASCII)
/home/fra/siti/Pensiero/db/seeds.rb:32: syntax error, unexpected $end, expecting ')'
... ed il ... | stackexchange/codereview |
I currently have an application which will drop pins onto various points of interest on a map, all done programmatically on the iPhone.
What I am aiming to get done now is to allow a user to navigate to that location and get turn by turn directions by calling up the built in navigation tools on the iPhone.
Is there any... | stackexchange/codereview |
i have this code to show a loading image when i run an ajax call:
$('.event').live('click', function () {
var spinner = $("<img src='/content/images/ajax-loader.gif' />").insertAfter(this);
the issue is that since its an async call, if you click a link multiple times, it will show up with multiple spinners. Obvio... | stackexchange/codereview |
I have two web servers. Server 'A' and server 'B'. Both are exact duplicate of the other and are connected to a load-balancer for serving clients.
I have a tasks (cronjob) that is executed at every hour, every day. This task is currently running only on server 'A'. The problem is that this tasks is really important and... | stackexchange/codereview |
I know that AndAlso is equivalent to && and OrElse is equivalent to ||. But what is the cleanest way to achieve the equivalent of Visual Basic's And and Or in C#?
For example, consider the following VB.NET code. The ValidateForControl method performs some validation and returns whether the state of the specified contro... | stackexchange/codereview |
Hi all
We are using SQL 2005 (MS),
I have a table that stores transactions. each time a specific event occurs 3 rows are added to for a specific transaction to that table.
Now we want to change (update) a column in row 1 called commision which in row 1 is null with the value of the same column from row 2 which has a v... | stackexchange/codereview |
How can I add an order by users_friends.date_created that governs both select queries.
Here is my MySQL code.
(SELECT A.user_id, A.friend_id, B.username, B.avatar
FROM users_friends AS A
INNER JOIN users AS B
ON A.friend_id = B.user_id
AND A.user_id = 3
AND A.friendship_status = 1)
UNION
(SELECT A.friend_id, A.use... | stackexchange/codereview |
Does anyone have the link for the sorce code of Siphon application to use SIP(VoIP) in my application.
Anyone's help will be much appreciated.
Thanks to all,
Monish.
| stackexchange/codereview |
There are several posts relating to this, but none actually gives a solution.
What actually happens is as follows:
function LoadSpinner()
{
$("#divSpinner").css('display','block'); // could have done with .show()
}
function UnloadSpinner()
{
$("#divSpinner").css('display','none'); // could have done with .hide()
}
fun... | stackexchange/codereview |
In my application I have a Tabbar and I am using ActivityGroup to load contents into each tab as shown below.
public class FirstGroup extends ActivityGroup {
// Keep this in a static variable to make it accessible for all the nesten activities, lets them manipulate the view
public static FirstGroup group;
... | stackexchange/codereview |
I want to convert all my public non-virtual methods to virtual. I'd like to do it in a by-project fashion (my solution has about 55 projects).
I'd like to add a setting in the Code Cleanup profile that does this for me. If you know any other way to do this I'd appreciate your help!
Thx!
| stackexchange/codereview |
I have a simple function that just inserts the parameter values provided to it into columns in a table.
When I run the function via the ExecuteNonQuery() method on the command object I always get -1, even if the insert took place.
If i run the same query as a Text command it gives be the correct result of 1.
I'm new to... | stackexchange/codereview |
I am working on attempting to draw some geometrical shapes using PSTricks in LaTeX. I'm pretty new to PSTricks, but I've done a few projects with LaTeX. I've discovered the package pst-eucl which has been quite helpful. It has some useful macros for dealing with triangles and such.
However, I can't figure out how to dr... | stackexchange/codereview |
Does anyone know where to start, or even if you can write add-ons for managing extras like audio books or your own collection management routines / visualizations?
| stackexchange/codereview |
I have a long history with relational databases, but I'm new to MongoDB and MapReduce, so I'm almost positive I must be doing something wrong. I'll jump right into the question. Sorry if it's long.
I have a database table in MySQL that tracks the number of member profile views for each day. For testing it has 10,000,00... | stackexchange/codereview |
In short, I want to make an application in which users can drag a file form their finder (mac), or their computer explorer (PC) to a location on my application, and then have that dragged file be loaded into the application.
I don't have any kind of access to any drag and drop events (Supposedly), as I am using a rende... | stackexchange/codereview |
When i'm running
ruby script/server webrick -e production
it gives error
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after Au... | stackexchange/codereview |
I am looking at MurmurHash (sites.google.com/site/murmurhash/)
I'm using it in a black box kind of a way and not trying to understand the maths at this stage.
However, I did have a little look at the code and got worried about how it seems to work...
Here's the code:
uint64_t MurmurHash64A ( const void * key, int len, ... | stackexchange/codereview |
This is a very simple ASP.NET master page example. The master page displays 4 hyperlinks and has two ContentPlaceholder controls. The first two links are to content pages that will display in ContentPlaceHolder1, the second two links are to content pages that will display in ContentPlaceHolder2.
<%@ Master Language="C... | stackexchange/codereview |
I need to extend Magento to allow changing the price of a product based on an attribute, such as size or color. I can't use any in-built facilities Magento might have for this - I need to write the code myself. I'm a beginning Magento developer. Can anybody help? Maybe point me to a guide or walk-through for this on th... | stackexchange/codereview |
Im using rspec and when i run rake spec, the user mailer sends email through smtp and not stores the email in the ActionMailer::Base.deliveries-array (invoked by an user-observer)...
Could you give me a hint why?
# Rails version
rails -v
=> Rails 3.0.1
# Ruby version with rvm (rvm version 1.0.16)
ruby -v
=> ruby 1.9.2... | stackexchange/codereview |
The trouble is that everything works fine on every browser except IE. I get content from xml and I am able to print it, but on IE it gives empty.
After some googling the problem might be width this header("content-type:application/xml;charset=utf-8");
Where am I suppoesed to put that? On the xml file start or?
Thanks.... | stackexchange/codereview |
System Background:
Its basically a client/server application. Server is an embedded device and Client is a windows app developed in C++.
Issue: After a runtime of about a week, communication breaks between client/server,
because of this the server is not able to connect back to the client and needs a restart to recove... | stackexchange/codereview |
is there any list which HTML5 features the WebView supports and which not? I am interested mainly in:
1) localStorage/sessionStorage
2) offline manifest
3) web sockets
4) web workers
Prior there was lack of those features (http://www.mail-archive.com/android-developers@googlegroups.com/msg60143.html), but in Android 2.... | stackexchange/codereview |
Hi I just finished coding my OAuth w/ zend framework. I retrieve my Token. The query string returned has user id,username,secret,token
I try the following
$twitter = new Zend_Service_Twitter(array(
'username' => $auth['username'],
'accessToken' => $auth['token']
));
$rsp = $twitter->status->update('My Tweet');
But I c... | stackexchange/codereview |
What event character is the return key? for example:
If I used "[event characters]" and pressed "a" and then enter, what would come up? When I check it's just "a" and a space. but how would I simulate a return press in a string value?
Thanks,
Elijah
| stackexchange/codereview |
I was just wondering if it's a good idea to do this.
For example if you want to create round-cornered tabs using CSS, you would need a structure like this:
<li> <a href="..."> <span> Tab </span> </a> </li>
...
then you put the left tab corner background on the link tag and the right one the span (maybe it's a bad exam... | stackexchange/codereview |
I'm new to ASP.NET, C# and the MVC framework but have managed to build a site that works pretty well.
Now I am trying to create a reporting section for the site to display a table of information on all users and just can't get my head around creating custom model classes for the joined table data. I have seen lots of e... | stackexchange/codereview |
I'm on a quest to see if I can figure out how to access Exif Metadata information from an image captured by my iphone. The apple documentation seems to lack the necessary information I'm looking for. I'm probably going about this stupidly, but I'm relatively new to iPhone programming and objective-c so I'm still figuri... | stackexchange/codereview |
I have a working tree on my local machine, and a remote repository as well. Let's say I want to quickly build an earlier version of my project at a known tag without disturbing the current state of the working version. My inclination is to checkout a separate tree, which seems to go like in this question:
Download a sp... | stackexchange/codereview |
This is my problem.
I have a ListView, each row is a CheckedTextView.
The list view items are "1", "2" and "3".
When a ListItem is clicked, I want to read the number and assign it to an int variable.
I did the following to read the Text of the clicked item:
onItemClick(AdapterView<?> parent, View v, int position, lo... | stackexchange/codereview |
I'm writting a multi-lingual application that uses many enums, and I'd like to achieve the following objectives:
Display Enum names as localized strings
Provide localized descriptions using attributes
Enable language sensitive parsing of enums back to int values
I'm keen to t... | stackexchange/codereview |
How would one go about creating a "custom protocol?" I know you can create a URL protocol by adding a number of registry entries to HKEY_CLASSES_ROOT, but that seems to only work in a browser. I need for it to work in Windows Explorer also.
I know that I can write a client/server sort of interface, but I think that is... | stackexchange/codereview |
I have a table of common words that are used in sentences (i.e. A, the, and, where, etc...)
What I want to do is loop through all those words and strip them out of the descriptions that people have entered to attempt to generate common keywords or tags. But I can't use replace because replace will remove any instance o... | stackexchange/codereview |
I never seen this, but is it possible to have one SQL call join data from Oracle and SQl Server?
| stackexchange/codereview |
I am trying to write JavaScript code which, on a mouse click event, sends some parameter (id) to the server-side JSP code. The JSP code then returns a string to the JavaScript.
...and the response text will be a string returned from JSP specified in out.println(substring);.
This code is not working. Sorry if I am doing... | stackexchange/codereview |
Hi I need to initialize an NSObject at a particular location that I specify(through a void* pointer, for example). For a little bit of context, I am writing a sqlite3 aggregate function. To keep temporary results from this function, I have to call a sqlite3_aggregate_context function, which allocates a block of memory ... | stackexchange/codereview |
Im trying to understanding collision detection in 2d world. I recently got this tutorials http://www.gotoandplay.it/_articles/2003/12/bezierCollision.php. I have question which puzzled me a lot - on the flash demo ball is dropping without responding if i try to swap the starting and end point.
Can someone explain me ,... | stackexchange/codereview |
Update- Thanks for all the responses. This Q is getting kind of messy, so I started a sequel if anyone's interested.
I was throwing together a quick script for a friend and stumbled across a really simple way of doing templating in PHP.
Basically, the idea is to parse the html document as a heredoc string, so variabl... | stackexchange/codereview |
My team is getting ready to start using SQL Server Analysis Services on our project but none of us have a lot of experience with it. What's a good screencast we can watch to get us started?
| stackexchange/codereview |
I have got an upload button on my webportal through which the customers can upload a csv file. After uploading the .csv file the csv data will be displayed on datagrid view on the screen, After uploading, the customer is suppose to verify data by clicking on verify button which basically checks the uploaded data have g... | stackexchange/codereview |
I need to load 101 bitmaps from the filesystem (they can't be built into the app as a resource as they will be changed for each run of the program) into a windows form application picturebox sequentially based on short duration timer events (500ms give or take) .
Essentially it should work like a slow animation but it ... | stackexchange/codereview |
I'd like to learn Struts 2. Unlike when I learned ASP.NET MVC/C# where I needed just to download VS2008 Express sp1 (Server Casini, Linq where included), I downloaded Eclipse Gallileo, but it looks like it's not enough. I'd like to know what (and how) to set up my machine environment so that I can write my first Hello ... | stackexchange/codereview |
I'm currently developing a solution for a web-to-print, poster printing application.
One of features I'd like to include is the ability to 'edit' (crop/scale/rotate) a given image, before proceeding to order a poster of said image.
To avoid the requirement of the user uploading the image to a remote server before editi... | stackexchange/codereview |
when i move the cursor upwards or downwards and it reach the first/last line of the view (the part of the file that is been showed) it "jumps" so it shows the before/next half page of the view instead of just showing the before/next line (like in vi).
So how can i just show the next line?
Regards
Javi
| stackexchange/codereview |
In example. If I have a model Person who's got a mother field, which is a foreign key.. The following is getting to me:
p = Person.object.get(id=1)
if p.mother_id:
print "I have a mother!"
In the above example, we've issued one query. I've tricked Django into not fetching the mother by using the _id field instead ... | stackexchange/codereview |
I have the following:
1 java class
1 bat file (starts the groovy script)
1 groovy file
All in the same folder.
Now I want to use Maven or Ant to run the groovy file but I can't get it to work. Is there someone who can show me how to write this pom.xml or build.xml? I don't want to use the bat file anymore.
| stackexchange/codereview |
Using vb.net 2008.
I am trying to use TransactionScope but when I put "Imports System.Transactions" at the top of my module it is not taking it. Do I need to do some setting or something?
| stackexchange/codereview |
I am hosting on a vps, ubuntu 10.04, rails 3, ruby and mysql installed correctly by following some tutorials. If I run bundle check or bundle install I get the error '-bash: bundle: command not found'. From gem list --local I see 'bundler (1.0.2, 1.0.0)' is installed.
I don't know what's going wrong...
gem environment ... | stackexchange/codereview |
I've got several custom classes. Let's call them "Character", which is supposed to import and use "Head". Then "Head" imports and uses "Hat". That works just fine...
package character
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.display.Stage;
import flash.display.Sprite;
import flas... | stackexchange/codereview |
I've heard you gotta test the release build as well, and some things can work different in that build than on the debug build. The big question is, how can I bring a release build on my device without the App Store route? Only by Ad Hoc distribution?
| stackexchange/codereview |
Hi I am trying to implement drop feature of a4j with JSF Datatable. I have a datatable and I want to drop components into that data table. How do i do it.
The code for dropping it in a tree works fine:
Here's is the code of dropping it to the tree, but when i try to drop the same into a data table it doesn't work.
... | stackexchange/codereview |
How should I define a Moose object subroutine after its initialization?
I'm writing an object module using Moose and I plan to serialize (nstore) the created objects.
Examine the following (simplified!) example:
package MyObj 0.001;
use Moose;
use namespace::autoclean;
has 'size' => (
is => 'ro',
isa => ... | stackexchange/codereview |
I have a problem with Hibernate and the LazyInitializationException. I searched and find a lot of answers, but I can not use them to solve my problem, because I have to say, I am new to Hibernate.
I run JUnit tests, in case of the error this one:
@Test
public void testAddPerson() {
Set<Person> persons = service.get... | stackexchange/codereview |
Does anyone know if there's a way to configure a jquery ui selectable element to unselect the selected element when you click it? Sort of like a toggle. If it's already selected, unselect it, otherwise do the default behavior.
Thanks.
| stackexchange/codereview |
For a blog like project, I want to get the first few paragraphs, headers, lists or whatever within a range of characters from a markdown generated html fragment to display as a summary.
So if I have
<h1>hello world</h1>
<p>Lets say these are 100 chars</p>
<ul>
<li>some bla bla, 40 chars</li>
</ul>
<p>some other tex... | stackexchange/codereview |
I'm writing a shell script with this command:
sed -e 's/OLD_ITEM/NEW_ITEM/g'
But I actually want to do something that includes a directory:
sed -e 's/FOLDER/OLD_ITEM/NEW_ITEM/g'
How do ignore the forward slash so that the entire line FOLDER/OLD_ITEM is read properly?
| stackexchange/codereview |
The application does not calculate things, but does i/o, read files, uses network. I want profiler to show it.
I expect something like something like in callgrind that calls clock_gettime each proble.
Or like oprofile that interrupts my application (while it is sleeping or waiting for socket/file/whatever) to see what ... | stackexchange/codereview |
I have the script below and on the website http://cacrochester.com, sometimes the contents of the right sidebar load and sometimes they don't. I think it's if it's your first few times on a page, it will say no events scheduled.
I'm completely stumped on why this is happening. The data in the database is not changing. ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.