instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
$objDOM = new SimpleXMLElement(XML_FILE_NAME, null, true); // load SimpleXML
$current = $objDOM->xpath('picture');
function sort_current($t1, $t2) {
return strcmp($t2['id'], $t1['id']); // to sort high > low
}
usort($current, 'sort_current');
How come I am getting an output like this:
Array ( [0] => SimpleXMLElemen... | stackexchange/codereview |
I am using this sample Spring MVC project with AJAX / JSON support:
https://src.springframework.org/svn/spring-samples/mvc-ajax/
There is a json.min.js file and I want to know what file this is. So where can I get a newer version of it? Where is this originally hosted?
Link to json.min.js
https://src.springframework.or... | stackexchange/codereview |
My css looks like this
* {
margin: 0;
padding: 0;
}
body {
background-color: #FFFFFF;
}
div#header {
background-color: #969696;
height: 80px;
}
div#mid-bar {
background: url(images/home.jpg) left no-repeat #6f6565;
height: 200px;
}
#searchbox {
background-color: #c1c1c1;
width: 20... | stackexchange/codereview |
I have a list view holding text views and when the text gets too big, it wraps and the item takes up two spaces. I am wondering if there is a way to turn off line wrap in this case, and if it should be done in the textview or the listview.
| stackexchange/codereview |
How can I localize my application to support some Right to Left languages?
How can I localize my application to support Hebrew? Arabic? and other languages?
Thanks,
Eyal.
| stackexchange/codereview |
I'm learning OpenGL-ES with 3D programming for the iPhone (O'Reilly). Its first tutorial involves drawing the background of the screen grey. I've entered in all the code to the letter and it runs without error, but I get no color...just black. Since it runs fine, there is no bug message.
There are a few very small sour... | stackexchange/codereview |
Currently I create a program, which shall automated-tests. To allow for this problem-free I must deactivate Silverlight (because my scripts don´t work in windows7 otherwise).
Is there a chance to do this, without the user must admin-permissions have?
If yes: what chance is it?
If no: Can I create the program only for ... | stackexchange/codereview |
I am trying to resize an image using only CSS, the problem is I don't know it's dimensions.
What I have tried so far is putting the into a and then making the image have 105% width. The idea was that the containing div would have no size other than it's contents, but this is only make the image the size of the next a... | stackexchange/codereview |
Shall we reuse an Static SqlConnection in a class,or its better create a instance of it?
FactoryDB factory =
FactoryDB.GetInstance("sp_select_regional", TipoExecucao.StoredProcedure,
"portal_sadiaConnectionString");
factory.AutoReset = true;
using (FactoryDB.Conn)
{
factory.ParametersCount = 1;
f... | stackexchange/codereview |
Is possible to create a routine or procedure that can automatic everyday check a date in a table.
To be simpler : I want to check if the date on a user have permitions to enter a site and when the date pass want to make the user field activated false.
routine daily
check if (todaydate < dateclient) then
cli... | stackexchange/codereview |
I'm trying to call a function via a SOAP webservice. The following code is run:
$return_soap = $this->soap->__soapCall($soap_function, $params);
I have also tryed:
$return_soap = call_user_func_array(array($this->soap,$soap_function),$params);
The headers are good, and i'm sending the following parameters:
$params ... | stackexchange/codereview |
I understand how to use javascript to change the cursor to busy while the page is making and ajax call.
However I have a page that does not use ajax, it uses a postback to reload the page. However the load is rather data intensive and it takes a few seconds. During this time the user can still click on the page. I wan... | stackexchange/codereview |
this may be a general question on sharing variables but here goes.
I'm using a GridView on a webpage to edit each job, and I need to hook up to each 'rowbound' event to get some data from the jobDataMap.
Anyway, the scheduler starts in the Page_Load method (creating the variable sched I can use to access the info), bu... | stackexchange/codereview |
I am calling a remote CFC in ajax using Coldfusion 7. The CFC is set to return a value of 0 when all is successfully done. I have appended the URL to the CFC with "&returnformat=plain" and I have also set the returnformat attribute of the cfc to "plain".
But everytime I do the cfc call, I get the response back as a WD... | stackexchange/codereview |
I have this class that will help me with animated meshes.
class CAllocateHierarchy: public ID3DXAllocateHierarchy
{
public:
STDMETHOD(CreateFrame)(THIS_ LPCTSTR Name, LPD3DXFRAME *ppNewFrame);
STDMETHOD(CreateMeshContainer)(THIS_ LPCTSTR Name, LPD3DXMESHDATA pMeshData,
LPD3DXMATERI... | stackexchange/codereview |
this is the rough idea of what I am trying to do:
I want the pointer in main to point to the word I just in my function.
my actual code is very long so please excuse this format.
main()
{
char *word;
int lim 256;
*word = function(word,lim)//I am not returning the address back only the first letter
}
function(word,lim... | stackexchange/codereview |
I'm trying to empty an array containing my drawn coordinates when a button "clear" is pressed.
When I call drawnDivs.clear(), I get an error that it is not a function. drawnDivs is certainly an array, and I have Firebug console.logs printing things out. It's hosted here.
| stackexchange/codereview |
I have a page where I have a dropdownlist which controls a grid. For this grid I use MVCContrib.
When I change the value of my dropdownlist, the Controller's HttpPost method is called and this works fine.
However when I page or sort the grid, the HttpGet method is called, always. Why? This is surely not how it should b... | stackexchange/codereview |
Hello I have problem with EventLogAppender on the Windows7.
Code for config EventLogAppender is:
var elAppender = new EventLogAppender
{
ApplicationName = "MyLog",
LogName = "MyLog",
Layout = new PatternLayout(default_format),
Threshold ... | stackexchange/codereview |
Suppose I construct a RAII object, and that object may fail to construct. How do I handle this?
try {
std::vector<int> v(LOTS);
// try scope ends here because that's what the catch is for
} catch( const std::bad_alloc& ) {
// ...
}
// v? what v?
Granted, the default constructor of std::vector won't throw a... | stackexchange/codereview |
I try to compile simple linux kernel module:
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
printk("Hello world 1.\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_ALERT "Goodbye world 1.\n");
}
My makefile:
obj-m = testmodule.o
KVERSION = $(she... | stackexchange/codereview |
I can't figure out how to implement this in a performing way, so I decided to ask you guys.
I have a list of rectangles - actually atm only squares, but I might have to migrate to rectangles later, so let's stick to them and keep it a bit more general - in a 2 dimensional space. Each rectangle is specified by two point... | stackexchange/codereview |
As I understand there is no way I can get dynamic server time in IE with settimeout() in script.. I found this example:
function timeExam(){
$.ajax({
url : "inc/clock.php",
success : function (data) {
$("#clock_time").html(data);
}
});
var func = function()
{
... | stackexchange/codereview |
I have a slider in my WP7 app that I would like to restyle. Im having a problem with default template
I made something like this but I cannot "bind" the thumb to the value.
<Style x:Key="ThumbStyle1" TargetType="Thumb">
<Setter Property="Template">
<Setter.Value>
<ControlTempla... | stackexchange/codereview |
Let's say that I have some widgets, and each widget has events. Each event has a unique timestamp and a non-unique value.
Since the timestamp is rather large to use as an index (hashing?) I am adding events like this:
$_SESSION['widgets']['datasets'][$i][] =
array('timestamp' => $ts... | stackexchange/codereview |
My organisation is preparing to release an open-source version of our software using github, however I'm not sure the best way to approach this:
We have two branches master and release, master contains some proprietary components that we have decided not to release, and release contains the cleaned-up version that we w... | stackexchange/codereview |
I have a little complex Database model on which i am not able to make a proper find
user(id, name...)
1 Harsha
2 Jasmine
modules (id, name )
1 Users
2 Restaurants
3 Dishes
restaurant (id, name.... )
1 KFC
2 Pizza Hut
dishes (id, name, restaurant_id .. )
1 Cheese Pizza 2
items (id, module_id, item_id)
1 1 1 (re... | stackexchange/codereview |
Hy all.
I need to get the content of multiple pages from a single domain.
Now for each page I use an fsockopen connection, and I get the content of the page this way:
<?php
$fp = fsockopen("www.example.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET /page1.html ... | stackexchange/codereview |
I hope to sue codes to load all audios into a MPMediaItemCollection object without using mediapicker manual action.
Is it possible?
| stackexchange/codereview |
I have a view page with model validations and client side validation enabled. I have a submit button which on click I have called a javascript function which uses jQuery for an AJAX call to the server..but I want to stop the AJAX action when client side validations fails. Any idea how to?
<% Html.EnableClientValidatio... | stackexchange/codereview |
String fileLocator here is actually a file URL. I define a file URL to 'file:///D:/images/pic1.jpg' but selenium for some reason i don't get tries to load it from c:\Temp (where the TEMP variable defined dir is located for my user) adding this sequence to the original location, so java returns an exception.
com.thought... | stackexchange/codereview |
I am using XML Data Mapping and having a problem with generating complex types while using it.
If i am having an XML like below its working fine
<?xml version="1.0" standalone="yes" ?>
<Sample>
<connection>
<item Name="ABC">123</item>
<item Name="XYZ">123</item>
<item Name="MNO">123</it... | stackexchange/codereview |
What I am doing might be really stupid, if so, please correct me, but I am trying to do the following thing:
I want to have a list with (for example) the following items:
List Addresses
-Name
-Address
-City
-Country
But, based on their Country, I want to display different columns that I want to record in a List. For ... | stackexchange/codereview |
I have a slow function that does an AJAX request:
function X(param1,param2){
var params={
type: "POST",
url: "./ajax/useful.php",
data: "param1="+param1+"¶m2="+param2,
success: function(msg){
//do something
}
};
var result=$.ajax(params).responseText;
}
Everything works fine when I ca... | stackexchange/codereview |
I am trying to find the location of user using corelocation framework in my app ,
but
it doesn't showing good results , can anyone please tell me how can i get location accurately in indoors ?
thanks in advance
regards
| stackexchange/codereview |
I get this strange problem....
All the page has this code only.
global $currentPage; is null and i dont know why...
<?php
$pager = $_PARAMS["this"];
$pages = 5;
$currentPage = 1;
$tst="ap";
$nearPages = 5;
//Prologic
?>
<div class="pager">
<?php
$nearPagesHalf = ($nearPages - 1) / 2;
drawNumbers(1, 1);
if ($currentPag... | stackexchange/codereview |
my app lives on heroku, and I have recently made some changes to the architecture. specifically the size of the images in users profiles has changed. like so:
//images.rb
has_attached_file :photo, :styles => {:full =>"800x800>"},
:storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => ':id/:style'... | stackexchange/codereview |
I have a form that is being submitted via jQuery AJAX...
The model has a validates_presence_of for a field, if that field is blank, rails spits back over XHR :role_idNot Defined.
I learned how to customize that by doing:
validates_presence_of(:role_id, :message=> "Select a role to continue.")
But that spits back :rol... | stackexchange/codereview |
In the TestNG documentation, there is a section describing how to tell TestNG to invoke test methods using multiple threads:
You can also specify that a @Test
method should be invoked from
different threads. You can use the
attribute threadPoolSize to achieve
this result:
@Test(threadPoolSize = 3, invocationC... | stackexchange/codereview |
I am making an inline comment reply system
It's mostly working except that I cannot seem to apply a .remove() to the DIV's created by my reply link - to "cancel" the reply
My jQuery code is:
<script type="text/javascript">
$(function() {
<!-- jQuery inline replies -->
$("a.reply_link").click(fun... | stackexchange/codereview |
I need to work on XML files using Delphi.
I want to present the xml data in a DBGrid to the user and save the changes done by user in the XML file.
For example in the below xml (which was presented to the user), if user changed City of ABC under client and added a new customer with NickName as "AAA" those changes shou... | stackexchange/codereview |
I try to watch the registry events via WMI. I use the below query to watch any events inside HKLM\softwares
WqlEventQuery query = new WqlEventQuery(
"SELECT * FROM RegistryTreeChangeEvent WHERE " +
"(Hive = 'HKEY_LOCAL_MACHINE')" +
"AND Rootpath = 'Softwar... | stackexchange/codereview |
I've used XCode and Netbeans, and I've noticed that they have a feature to automatically complete quotation marks or parentheses (and I assume that other IDEs often do this also). I don't know what the name of this feature is, but is there any way to do this in Emacs?
For example, when I type
printf("
I would like it ... | stackexchange/codereview |
I use the following code to listen for the key presses of 0 - 9 from the soft input keyboard on Android:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if(keyCode == KeyEvent.KEYCODE_0)
{
return super.onKeyDown(keyCode, event);
}
... | stackexchange/codereview |
I have a web form in asp.net. I load the data on the page using EF4 and a foreach. Now it is time to save that data. What is the best way to do that using a postback?
| stackexchange/codereview |
Let's say you are building a multilingual web application in which all interface text should be moved to language-dependent resources and loaded when needed. The string resource may be huge: say you have several thousands of strings translated. In windowed environments (Windows, OS X, X11) you usually have a mechanism ... | stackexchange/codereview |
I have made an Application in Java that transmits video (JMF= "JAVA MEDIA FRAMEWORK").
Now I want an Android client for receiving video. What steps do i follow to make such client. I have seen that JMF doesnt work on Android. I want to know best way of doing it in Android platform .
| stackexchange/codereview |
We're running Ruby workers across a large number of machines using Resque. Every once in a while, we see segmentation faults in our Resque worker processes. It's hard to debug these, because they're fairly rare, and we must run tens of thousands of distributed jobs to trigger a crash.
Ideally, we'd like to capture back... | stackexchange/codereview |
final BufferedImage img = new BufferedImage(3500, 2480, BufferedImage.TYPE_BYTE_INDEXED);
final Graphics2D g2D = img.createGraphics();
g2D.setBackground(Color.white);
g2D.clearRect(0, 0, width, height);
(full code in this question).
This code results in a Java Heap Space exception although I've set the jvm attribute t... | stackexchange/codereview |
I'm pulling photos from albums on a facebook business page through the api and displaying them on a tabbed app on the same page - everything works as expected, I get urls to the photos that look like this:
http://photos-f.ak.fbcdn.net/hphotos-ak-snc4/hs689.snc4/
62916_492131547984_50574932984_6933281_3552549_a.jpg
Now... | stackexchange/codereview |
As in:
public class MyClass {
private static var MyProp = new {item1 = "a", item2 = "b"};
}
Note: The above doesn't compile nor work (the var cannot be used there), it's only to show my point.
Update: Just to clarify the question, I had already tried using
private static dynamic MyProp = new {item1 = "a", item2 = ... | stackexchange/codereview |
When I try to load my page that uses jquery, when the following line is hit:
if ($.cookie('compare') != null)
I get the error $.cookie is not a function. Has anybody seen this before?
| stackexchange/codereview |
I have a WCF client that needs to generate a request containing this XML fragment :
<reason xsi:nil="true" nullFlavor="NA" typeCode="RSON" />
The schema is determined by the server and isn't under my control. The generated proxy code has a class for the reason element containing (among other things) properties nullFla... | stackexchange/codereview |
I have an ASP.NET page that contain a form that search the page.
Is there any solution so that I can have the search text in the URL?
I want to give the posibility to my clients to copy/paste the search results URL.
| stackexchange/codereview |
i have a SQL query as follows
String S = Editor1.Content.ToString();
Response.Write(S);
string sql = "insert into testcase.ishan(nmae,orders) VALUES ('9',@S)";
OdbcCommand cmd = new OdbcCommand(sql, myConn);
cmd.Parameters.AddWithValue("@S", S);
cmd.ExecuteNonQuery();
Error: C... | stackexchange/codereview |
Good morning,
At the moment I am needing some help from someone more experienced with database issues than me. I need to work with two sets of (String, Int32) pairs. The first one has about 160,000 pairs, and the second one has about 1,620,000 pairs. The question is that every part of this last collection's strings is ... | stackexchange/codereview |
Hi everyone I am trying to read some json and do 2 things.
Insert some of the json data into a UL. Second thing is create a function that can be called from a anchor tag and displays the other data.Let me try explain with my code.
My json looks like this
[{lakeName:"Lake 1",lakeCode:"111",Readings[["24-Oct-10",12.5],["... | stackexchange/codereview |
I have two databases in CouchDB - DB1's documents are user data - name, email address, username, password but within one field that I store a list of the ID's saved in DB2 where user projects are saved (containing a username field and some Textfields.
Example DB1 Document (Users)
{
"_id": "bobsmith1000"... | stackexchange/codereview |
public Form1()
{
InitializeComponent();
comboBox1.DisplayMember = "Name";
comboBox1.ValueMember = "ID";
LoadUsersToComboBox();
}
PersonRepository peopleRepo = new PersonRepository();
private void LoadUsersToComboBox()
{
comboBox1.DataSource = peopleRep... | stackexchange/codereview |
I've often found myself in front of that kind of code :
if(Something > 0)
{
btnOne.Enabled = true;
btnTwo.Enabled = true;
btnThree.Enabled = false:
}
else
{
btnOne.Enabled = false;
btnTwo.Enabled = false;
btnThree.Enabled = true:
}
And I've always wondered if it was better to let it like that, ... | stackexchange/codereview |
I have a contentEditable div on which if a cursor is placed it's displayed as a huge cursor!
Here's the code:
<html>
<head></head>
<body >
<div style="position:absolute; top:2px; left:30px; right:0px; bottom: 0px; height:100%;">
<div contentEditable="true" style=" color:#333333; height:100%;... | stackexchange/codereview |
So what this problem in the book is asking me to do is to write a method with a parameter N and what it should print is
1 when I call printFractionSum(1)
and when I call printFractionSum(5) it does
1+(1/2)+(1/3)+(1/4)+(1/5)
public static void main(String[] args) {
printfractionSums(5);
}
public static void printfr... | stackexchange/codereview |
I have to compare two files which are like
A B
--- ---
110-01 110-01
120-02 110-02
... 120-02
....
and have to print what are the extra elements present in the B file..
| stackexchange/codereview |
I am using DotnetNuke 5.4 Community and I have met with a specific requirement.
I need to make it possible a configurable footer area (i.e a DNN admin should be able to manage the content & image to be displayed in footer area) on a portal basis.
As now I can change the header logo on portal basis, the same functionali... | stackexchange/codereview |
If I create setup package using Inno Setup, will the setup program have administrator privileges allowing it to register DLLs etc. ?
Also, if the setup package executes a program as part of its operations, will that program be run with the administrator rights ?
| stackexchange/codereview |
I´m using django to generate a pdf and return the response as an attachment in the view.
response = HttpResponse(mimetype='application/pdf')
response['Content-Disposition'] = 'attachment; filename=somefilename.pdf'
Similar to the way described in the doc (http://docs.djangoproject.com/en/dev/howto/outputting-pdf/#writ... | stackexchange/codereview |
I construct a QDateTime from a string like this:
QDateTime date = QDateTime::fromString("2010-10-25T10:28:58.570Z", "yyyy-MM-ddTHH:mm:ss.zzzZ");
I know that date is in UTC because that is the way it's stored. But when I want to display this date to the user, it should be in the user's local time zone. date.toLocalTime... | stackexchange/codereview |
I want to validate a node before dropping it on tree.
I used beforenodedrop event for this purpose but validation is occured on server side so as response does not come in time and function always return true so node is dropped. i want to know which method/event should be used for this purpose
Here is my code for befor... | stackexchange/codereview |
I am inserting content to a div using jquery like:
$('#divItem').append("<a href='abcd.aspx' class="toolTip" target='_blank'>Go to abcd</a>")
and I am using a jquery plugin to show tooltip on mouse hover the links(that uses class "tooTip").The tooltip works fine for all the links present in the page except the links t... | stackexchange/codereview |
I have a winapp running with a DLL referenced to it. all the major operations are done in the DLL.
I have like 1000 xml files stored in a location which i have to read and store data into another format.
From the UI, i click on an import button, the call is passed to the DLL layer which converts one xml after another s... | stackexchange/codereview |
I have a Deployment Project for my VS2008 C# application. When installing a new version of my application I want to make sure that files are updated with the files contained in the installer.
I want my installer to automatically remove any old version of the installed application. To do that I follow this procedure (al... | stackexchange/codereview |
I read all documentation about thread-safe types and the "lock" statement, but I am still not getting it 100%.
When exactly do I need to use the "lock" statement? How it relates to (non) thread-safe types? Thank you.
| stackexchange/codereview |
is the only way to debug a rails app is to use the 'debugger' keyword and then start the server with the debugger switch?
are there any IDE's that make this more traditional where you can trace line by line?
| stackexchange/codereview |
First of all im relatively new to the Database world, Im graduating with my B.S. in Comp Science this semester and Database Technologies have really caught my eye so ive been studying alot of T-SQL because I want to in the end get a SQL Development job (MS SQL server seemed like the best choice right now because it's o... | stackexchange/codereview |
I am using mod_rewrite, to convert subdomains into directory urls. (solution from here). When I explicity write a rule for one subdomain, it works perfectly:
RewriteCond %{HTTP_HOST} ^[www\.]*sub-domain-name.domain-name.com [NC]
RewriteCond %{REQUEST_URI} !^/sub-domain-directory/.*
RewriteRule ^(.*) /sub-domain-di... | stackexchange/codereview |
I need to append a string to a text file which has double quotation marks throughout it. How do I do that cause VBA is very confused at the moment
What the string should say/append the text file to (load "c:\test.lsp")?
| stackexchange/codereview |
I need a way to force the orientation back to portrait on rotate.
The problem is that I have a Tab bar controller, but only want one of the tabs to autorotate.
So I have allowed rotation on all tabs and now I need a way to intercept a rotation on a tab where I don't want to allow rotation.
I'm guessing I can do this on... | stackexchange/codereview |
I am using Spring MVC with JSON as specified in Ajax Simplification Spring 3.0 article.
After so many attempts and variations of my code depending on advice found on various forums, my code still doesn't work.
I keep on getting the following error: (406) The resource identified by this request is only capable of genera... | stackexchange/codereview |
I created a class that implements the IModelBinder interface. Within a method of that class I basically retrieve some values and try to validate them. If the validation fails, I add update the model state with necessary information like below:
DateTime mydate;
if (!DateTime.TryParse(convValue,out mydate... | stackexchange/codereview |
When I try to compile a simple boost application with
#include <boost/interprocess/allocators/allocator.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
headers in VS 2010, I get the this error message.
c:\program files\boost\boost_1_44_0\boost\interprocess\detail\move.hpp(342): error C2440: 'return' : ca... | stackexchange/codereview |
I have a table with varbinary(max) column and nvarchar(max) column. One of them is null and the other has a value.
I would like to return the column that has the value as a varbinary(max) column. So far I have tried this, that does not work:
SELECT
A =
CASE A
WHEN NULL THEN B
ELSE A
... | stackexchange/codereview |
Basically, I'm querying a database and I need to convert the resultant array to a hash.
I query the database as follows
my $sth = $dbw->prepare($sql);
while (@rows = $sth->fetchrow_array()) {
...
...
}
Now, I need to create a hash such that rows[0] is the key and rows[1],rows[2],rows[3] are the values. For each reco... | stackexchange/codereview |
VS2008 SP1
I have a bunch of windows (output, call browser, error list, Find Results 1) docked in the lower pane of VS.
If I simply undock those windows, then go to File->Exit, VS crashes with
"microsoft visual studio has encountered a problem and needs to close"
I attach a debugger, it takes me to line 75 of atlcomcl... | stackexchange/codereview |
I am making a cocoa app where i have a menu - you can see the picture below - but the problem is when i click on any other option e.g; subtract, multiply or division, it don't get selected. What can be the issue?
Note: When i made the menu, i checked the state option of add to ON and rest of them were OFF.
| stackexchange/codereview |
Is it possible to have a function that returns an array of variable size? My plan is to have the size of the returned array as the first member of the array (so ret_val[0] = # of members in ret_val).
The problem then becomes with initializing an array to the return value of that function. int moves[] = target_funct... | stackexchange/codereview |
In my personal of Iphone development project I need to retrieve data from plain txt file, afterwards using delimiter to separate data in the way I want.
It's my sample data:
100 100, 200 200, 300 300, 400 400
So how to retrieve data from myfile.txt and later retrieve the string "100 100" from this chunk of data?
| stackexchange/codereview |
I have a little problem with the current format of my negative currency number.
Here's a screenshot resuming my situation.
This is how I'm using the StringFormat in my binding. (BTW, I tried only {0:C})
As expected
The current settings of my computer for the negative currency number
4.
The result when I'm running my a... | stackexchange/codereview |
give me code, in which i can enter a word in a textbox and a listbox appear with a item that has same string in which i enter in a textbox.
Please Help me...
| stackexchange/codereview |
I am using Java and Hibernate as ORM tool. Is there any way i can implement sequence in Java using Hibernate?
Currently I am using Oracle sequences to achieve this, but that is a very costly way as interaction with database increases.
| stackexchange/codereview |
First off let me say I am running on SQL Server 2005 so I don't have access to MERGE.
I have a table with ~150k rows that I am updating daily from a text file. As rows fall out of the text file I need to delete them from the database and if they change or are new I need to update/insert accordingly.
After some testing... | stackexchange/codereview |
Yes, I have an issue.
I have my upload profile picture.
1) A popup comes up
2) you upload a image
3) you crop it
4) you press finish, and you get it as your new profile photo (the original uploaded image will be replaced with the cropped one, so the original image will be removed, and will not take any space)
Now if ... | stackexchange/codereview |
// ClassA.m
NSString *strA = [[NSstring alloc] initWithString:@"test string"];
ClassB *classB = [[ClassB alloc] init];
[classB setStrB:strA];
[strA release];
// classB will be released later
// ClassB.h
@property (nonatomic, retain) NSString *strB;
// ClassB.m
// custom setter
-(void) setStrB:(NSString *)newStr {
... | stackexchange/codereview |
i created a widget, say MyBox, which has many other widgets. i have to use that widget on different page, however on different page, the size of the widget is different, on some page it's smaller, on other page it's bigger. Just wonder is there any way in GWT to zoom in & out the widget? Thanks
| stackexchange/codereview |
how to find the records which are present in the second from the first table in sql server 2005.
| stackexchange/codereview |
In this case, the MAX is only 5, so I could check the duplicates one by one, but how could I do this in a simpler way? For example, what if the MAX has a value of 20?
Thanks.
int MAX = 5;
for (i = 1 , i <= MAX; i++)
{
drawNum[1] = (int)(Math.random()*MAX)+1;
while (drawNum[2] == drawNum[1])
{
... | stackexchange/codereview |
Well, heres what I mean.
Go to site.
Where it says latest news, there are some problems.
What i'm trying to do is:
Load site, see the loading bar.(image is in the HTML) The loading bar goes away, theres one paragraph that fades in.
That is what this is for.
// Hides the loading image and fadesin content
var $latest =... | stackexchange/codereview |
I have seen graphs in Flash & stuff that basically adapt nicely to whatever the size of the browser or flexible element they are inside of.... I'm not really too well versed with raphaelJS but can you do this, and if so, how?
| stackexchange/codereview |
I have about 40 tables and users should edit data in this tables in browser.
I believe than it's possible to create one page with dropdown, user select table name in this dropdown and get a grid with "Edit" button.
Does anybody know if such possible? Is it ready projects on Codeplex for such task?
Thanks,
asp.net deve... | stackexchange/codereview |
I have an array of objects, containing lists of times. I have to stick this in a Matrix-alike array, in order to put it in a table. This is a part of my earlier SO question on how to build calendar tables
$node->sessions = array(
1286452800, // '2010-10-07 14:00:00'
1286460000, // '2010-10-07 16:00:00'
);
$node->ti... | stackexchange/codereview |
I use imagecreatefromjpeg, imagecreatefromgif, and imagecreatefrompng functions to create thumbnails of image/jpeg, image/gif, and image/png mimes.
I would like also to create thumbnails of .BMP files.
I checked one file and found out that its mime is image/x-ms-bmp.
However, I cannot find an appropriate imagecreatefro... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.