instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
This doesn't seem easy. Basically, I add QPushButtons through a function to a layout, and when the function executes, I want to clear the layout first (removing all QPushButtons and whatever else is in there), because more buttons just get appended to the scrollview.
header
QVBoxLayout* _layout;
cpp
void MainWindow::... | stackexchange/codereview |
I have a tableView that refreshes with data from an array via the textDidChange function for UISearchBar. The data is correct, but it does not appear in the tableView until after hitting an additional character (so, for instance, if i typed 'Boise' into the search bar, nothing happens, but 'Boise1' will load two cities... | stackexchange/codereview |
I like the way that the chart control seems to automatically determine the X axis range for me based on the data, but in this case, the data can only be whole numbers.
What is the easiest way to specify whole numbers for this axis?
| stackexchange/codereview |
I understand that we should not change children of an aggregate-root directly, but instead they should be performed via methods on the aggregate-root.
E.g. order.SetOrderLineQty(product, qty);
But what if the children of the aggregate-root are something abstract?
Imagine you have Car aggregate root, which contains a li... | stackexchange/codereview |
<s:TextInput id="bill" x="150" y="17" width="223"
borderColor="#FFFBFB" borderVisible="false"
color="#EF4315" contentBackgroundColor="#100101"
enabled="false" fontWeight="bold" restrict="0-9"
text="0.00" textAlign="right"/>
"0-9" restricts my textInput field to numeric values
and a decimal point. Is there a ... | stackexchange/codereview |
I have the following code...
- (void)textFieldDidBeginEditing:(UITextField *)textField {
//some code here...
NSInteger theTag = textField.tag; //I set the tag to 5 in IB
if (theTag == 5) {
//self.showDatePicker;
[textField resignFirstResponder];
}
}
The problem is, the keyboard never ... | stackexchange/codereview |
I've got a UIView with a NavigationBar and I'd like to add a button which looks like the style of a Back Button. I'm not using a UINavigationController and was wondering if this could be done without it?
The style of the button should look like this:
Thanks
| stackexchange/codereview |
Here is the situation. I'm upgrading my database adding a single column. The upgrade appears to go fine. I can see the new column added but the problem is when upgrading my app from the older to the new version w/ new DB I get force close. The force close seems to occur when accessing the new column. If I do a fresh in... | stackexchange/codereview |
I have a database table that stores imported information. For simplicity, its something like:
CREATE TABLE `data_import` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`amount` DECIMAL(12,2) NULL DEFAULT NULL,
`payee` VARCHAR(50) NULL DEFAULT NULL,
`posted` TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
INDEX `pa... | stackexchange/codereview |
I'm a novice programmer trying to automate some repetitive workplace tasks that should be done by a clever script instead of humans. I've done some VBA and Java, but very basic stuff.
We have some data generated by a validated online form that gets emailed to a mailbox, and then a filter in the mail client (Outlook 201... | stackexchange/codereview |
This is my code:
$(document).ready(function(){
var valid_url = new RegExp('http://[www\.]?youtube.com/watch\?v=[a-zA-Z0-9_-]*', '');
$('a').each(function(){
// Check if it's a valid Youtube URL
var link = $(this).attr('href');
if( valid_url.test( link ) ){
alert( "valid" )... | stackexchange/codereview |
I have made a simple web page using jQuery. When opening it on another PC, it seems different (bigger and some of HTML table overflows from from the body tabs).
Can you tell me why its happen? How can I make this display the same on all machines?
My css code:
<style type="text/css">
label { width: 15em; float: left; ... | stackexchange/codereview |
I want to integrate Twitter in my BlackBerry application.
Is there an api or documentation?
| stackexchange/codereview |
I have two tables one is heardt and other one is jud
In heardt i have three columns j1 ,j2 ,j3(each has one value from jcode)
In jud i have jcode and jname.
I want to display jname in 3 different Dropdown list depending on j1 ,j2 ,j3.
How do i frame my sql query.
| stackexchange/codereview |
Is there a way to retrieve the results of an SQL query in XML? If so how? can you provide a short example and/or a link to a good site?
Is it also possible the RDBMS can handle the transformation to XHTML given the XSLT? Would I want to do this anyway? Can I not send a browser XML and the XSLT and it will do the transf... | stackexchange/codereview |
All I want is that my messagebox should show my application's icon (or any other icon) in its titlebar, but it doesnt, why not?
| stackexchange/codereview |
Excuse my ignorance. I just saw Scott Hanselman's video on MVC 3 where he typed prop, which I had not seen before. I tried it but I am doing something wrong. LOL
I type prop which expands to
public TYPE Type1 { get; set; }
and highlights TYPE. I type the data type which replaces the word TYPE, hit tab to move to ... | stackexchange/codereview |
I get an exception in VS2010 designer when I use user control with code which contains
HtmlPage.RegisterScriptableObject() method. I've tried to move that code from control constructor to other methods but it doesn't help. I am using Silverliht 4.
Now I call HtmlPage.RegisterScriptableObject("MainPage", this) in UserCo... | stackexchange/codereview |
I want to parse the following XML text and save the values in the MySQL db. What is the best way to do this?
<urn:outgoing soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<pob xsi:type="out:OutgoingTransactionRqstInfo"
xmlns:out="http://www.shantanuoak.com/OutgoingService">
<messageID xsi:ty... | stackexchange/codereview |
i studied basics of c++ in college, we used the book object oriented programming in c++ by robert lafore.
i studied till pointers (almost half the book) and i still feel outdated using the console and not doing something other than that (forgive me for my ignorance) i want to do windows simple apps and knowing how to e... | stackexchange/codereview |
Let's say I have a project with a dependency on a class in JAR A, which subsequently has a dependency on a class in JAR B. To run the project, both jars need to be on the same class path. I have the source code for all three pieces - project, JAR A, and JAR B.
If I change the internals of the method in the class in J... | stackexchange/codereview |
I'm using LightOpenID, and whilst it's very light, it's not very easy to understand, and it doesn't have a wiki...
The example file they do give is below (sorry for the elongated post), what I don't understand is why does it instantiate the LightOpenID twice?
require 'openid.php';
try {
if(!isset($_GET['openid_mod... | stackexchange/codereview |
Here's a bit of fun.
If we peek at the dotnet source code, the following comment can be found at the head of the file TimeSpan.cs:
...while a year can contain 365 or 364 days
Should I be worried?
| stackexchange/codereview |
I have a domain class linked as such:
class Item{
static hasMany = [children:Item]
Item parent
}
We are dealing with existing data (not created by grails).
One important detail is that if an Item has no parent, the column "parentid" shows "0", not null.
To deal with this I had to add:
columns{
parent column: ... | stackexchange/codereview |
I have the following in my application controller:
before_filter :set_current_subdomain
protected
def set_current_subdomain
Thread.current[:current_subdomain] = current_subdomain
@account = Account.find_by_subdomain(current_subdomain)
end
def current_subdomain
request.subdomain
end... | stackexchange/codereview |
I have a website that is 1 html file and uses javascript to hide tabbed pages.
The url gets rewritten with a # for the different pages to make them bookmark-able.
Is there a way to make the different pages show in search engine results? It would be good to have them show up as different pages there.
I have read the bel... | stackexchange/codereview |
I have a custom CodeIgniter library class that I create an instance of in a controller. This controller calls a view, and I want to be able to access this instance of the library from the view. I do not want to 're-load' the library, because it would create a new instance.
More specifically, I want to access the class ... | stackexchange/codereview |
I want to call btnDisconnect_Click within btnExit_Click.
private void btnDisconnect_Click(object sender, EventArgs e)
{
//does something
}
private void btnExit_Click(object sender, EventArgs e)
{
//I want to call btnDisconnect_Click. What line of code should I use here?
}
| stackexchange/codereview |
Iam using netbeans6.9 (with scala plugin) and scala 2.8 on MacOSX.
The plugin works fine but when i refresh the scala project.
I see all the class are underlined with red line saying....
"illegal inheritance:
self-type does not conform to scala.ScalaObject's selftype ScalaObject
ScalaObject doesnot have a constructor"... | stackexchange/codereview |
I want to slice a NumPy nxn array. I want to extract an arbitrary selection of m rows and columns of that array (i.e. without any pattern in the numbers of rows/columns), making it a new, mxm array. For this example let us say the array is 4x4 and I want to extract a 2x2 array from it.
Here is our array:
from numpy imp... | stackexchange/codereview |
I just built a standard win32 applicaion but when I run it, there is a command prompt
how can I get rid of that cmd window?
I am not using an IDE
I am just using notepad++ to edit
and mingw to compile through the command prompt
I am doing the g++ command to compile
should I use a different one?
thanks
| stackexchange/codereview |
Does anyone have any real world experience with Hazelcast distributed data grid and execution product? How has it worked for you? It has an astonishingly simple API and functionality that seems almost to good to be true for such a simple to use tool. I have done some very simple apps and it seems to work as advertis... | stackexchange/codereview |
I have to redefine the ListBox class to make sure that it returns a csv string of all the selected items and also should take in a csv string and populate the listbox when needed. Lets say I have this code. What are the functions that I have to override and how do I do it?
using System;
using System.Web.UI.WebControls;... | stackexchange/codereview |
I have a UIViewController subclass that loads a bunch of images for each cell in a tableview asynchronously which is handled by a separate download class. I keep a list of all of these download requests in a dictionary which is keyed to the index of the cell that is requesting the image.
My question is i where should i... | stackexchange/codereview |
Recently the State Department has released a document saying that AES and DES are unsafe for classified material. This statement from the State Department may be alluding to an attack against these algorithms that is not publicly known.
Under no circumstances should DES- or
AES-equipped radios be used for the
t... | stackexchange/codereview |
I have installed PHP 5.3.3 on my machine without pear.
But now i want to install on my machine without removing the existing configuration.
In there any way to manually update PEAR without go-pear.bat on windows ?
THANK YOU ALL
| stackexchange/codereview |
in C#, is it possible to declare an Enum that is only visible within the function where I will be using it?
| stackexchange/codereview |
I am writing my code like this:
function updates_cb()
{
in a while loop to call append_message
}
function append_message(message)
{
append the html of message into the page
now I am using selector to add callback to newly added element
$(jmsg).hover(function(){console.log("hover");})
}
The problem is ... | stackexchange/codereview |
How to find out mobile information.for installing corresponding app on mobile.
right now i am using useragent.what i will do for useragent not supported mobile
Thanks in advance
Aswan
| stackexchange/codereview |
Is there anything like Autonumber field in SQL server CE database file, like we have in Access? I want to get it incremented automatically.
Thanks
Furqan
| stackexchange/codereview |
I am attempting to write data (mostly dates, booleans and float data types) into a CSV file format. Here is a snippet of my code:
# Write data to file
with open(OUTPUT_DIR + output_filename,'w') as outputfile:
wrtr = csv.writer(outputfile, delimiter=',', quotechar='"')
for x, y in datarows.items():
a,b... | stackexchange/codereview |
I'm precompiling all my websites and using the aspnet_merge tool to merge all the App_Web* dll files into one. The tool takes care of updating the corresponding .compiled file as well to point to the new merged assembly. BUT, for .svc files the .compiled file is not updated which gives me the following error at runtime... | stackexchange/codereview |
I want a php function which returns 55 when calling it with 52.
I've tried the round() function:
echo round(94, -1); // 90
It returns 90 but I want 95.
Thanks.
| stackexchange/codereview |
I would like to determine whether or not a variable has any text at all.
For instance, my current code is this:
if (is_numeric ($id))
{
//do stuff
}
else
{
// do other stuff
}
However, there is a problem if my variable contains both a string and a number
such as "you are 93 years old",
because it sees that num... | stackexchange/codereview |
Hey i need to have a console application (C#) which can take the screen shot of the page once it is loaded(in all the browser).How can i calculate the time taken for the page to load completely from my C# console applications.:)...the windows form control works with the ie8 only. Basically i need to be able to calculat... | stackexchange/codereview |
How can I execute an action (maybe an Intent) on every specified time (e.g. Every day on 5AM)? It has to stay after device reboots, similar to how cron works.
I am not sure if I can use AlarmManager for this, or can I?
| stackexchange/codereview |
Hi
Im working on soapui tool. It has generated a xml request code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ChangeLengthUnit>
<web:LengthValue>3</web:LengthValue>
<web:fromLen... | stackexchange/codereview |
I would like to dip into Google's protocol buffers in Qt development, but I am having trouble figuring out how to incorporate them best.
Ultimately, I want to send with QUdpSocket and QTcpSocket using protocol buffers.
What is the best method for going between a protocol buffer message to sending the data over a socket... | stackexchange/codereview |
I want to open an exe file through a link in an HTML file.
Is it possible? If so, how?
| stackexchange/codereview |
If I double-click on a word inside my NSTextField, it selects the entire word, which is good. If I then paste that word elsewhere in the document, it adds a space before it pastes, which is unwanted for the style of application I'm making. How can I turn this off?
Example:
apple->berry->cherry->banana
I double-click... | stackexchange/codereview |
in my django application, I allow users to cut and paste some json data into a textbox, to be uploaded to the database for saving.
I would like to verify the json data before saving them into my database. Do I have to write custom code to check every field or is there some form api I can use to check the data ?
| stackexchange/codereview |
In my form I have a QListWidget which contains checkable QListWidgetItems. I'm looking for a way to capture the event of a QListWidgetItem being checked/unchecked. I don't see any such signal existing for this but maybe I'm wrong. What I'm currently doing is using the QListWidget::itemClicked() signal and checking the ... | stackexchange/codereview |
How is the conditional operator (? :) used in Ruby?
For example, is this correct?
<% question = question.size > 20 ? question.question.slice(0, 20)+"..." : question.question %>
| stackexchange/codereview |
(Note: See also the related question Can browsers react to Set-Cookie specified in headers in an XSS jquery.getJSON() request?)
I can't seem to set a cookie (whose name is mwLastWriteTime) in the request header of a JSON operation. The request itself is a simple one from the Freebase MQL tutorials, and it is working f... | stackexchange/codereview |
I'm very close to being done, but can't quite figure out how to tie everything together. I have the separate methods responsible for their particular task, but i feel like my cohesion is really bad. not real sure how they tie together and what needs to be called in main. The goal here is to read a text file from the co... | stackexchange/codereview |
Hey folks,
I want to generate a constant workload on a server - so it utilizes a certain amount of CPU on my node. I tried doing this in a script by repeatedly fetching the homepage of my webapp in a loop 'n' times. However, this does not generate a constant workload, instead the workload continuously varies..Is there ... | stackexchange/codereview |
Every example I see of the cool new unobtrusive jquery validation in MVC 3 shows a custom class (usually Person). Adding the data annotations to that is simple, which really does show how cool the new validation support is.
But what about using it with the default membership system that's built into the default web tem... | stackexchange/codereview |
In ~/tools/ I have a webconfig file that contains the following:
<system.web>
<authorization>
<allow roles="admin" />
<deny users="*" />
</authorization>
</system.web>
Requests to ~/tools/mypage.aspx require the user to be in the admin role. If I use URL routing and have requests to ~/categorie... | stackexchange/codereview |
when I build my source code in linux I got an error like
qstring.cpp:(.text+0x2c01): undefined reference to `terminate(void)'
collect2: ld returned 1 exit status
How to solve this problem?
| stackexchange/codereview |
I have the following:
<input id="user_profile_pic" name="user[profile_pic]" type="file">
On the server I check to make sure it's an image, but I want to check on the clientside first.
How with jQuery can I alert the user if the file input file selected isn't a gif,jpg,png, or bmp?
Thanks
| stackexchange/codereview |
I have set of data which should be fetched out and should prepare a report in the following order
Last Name First Name Location
Blake James 101007
fusio Wiko 101008
100 Total
FAROMOJU BANKOLE 303315
Gibbs Rhonda 3033... | stackexchange/codereview |
How do I get the name of a column? What's the query for this ?
Thanks.
| stackexchange/codereview |
I have a set of mercurial clones that I created by making one clone of a master repo, then using cp -rlp to make copies of it. My expectation was that I could use them independently, since I use emacs with its default settings, so it ought to be breaking hard links. But it isn't -- when I modify one file, all of the ha... | stackexchange/codereview |
I have one function of java-script which is adding content to my HTML page. Also I have light box script added on that page. Now when i am calling light-box function after page load light box script is working fine but when I call that java script function which is appending HTML to my page then on click of the content... | stackexchange/codereview |
If I defined an object in JS with:
var j={"name":"binchen"};
How can I convert the object to JSON? The output string should be:
'{"name":"binchen"}'
| stackexchange/codereview |
I can't find any information on this but really need to know for sure if it doesn't happen, or if the documentation that proves it does happen is just too hard to find!
The background story:
When my app is running on an iPhone that has a weak 3G signal, and therefore switches backwards and forwards from a weak 3G to a ... | stackexchange/codereview |
I have this:
my(%arr) = (
monsters => ["Test","Test2"],
kills => [-1, -2 ]);
Then later I search for Test2:
if ( grep { $_ eq "Test2"} @{ $arr{monsters} } )
{
#Get parallel value of Test2 (-2)
next;
}
How can I get the parallel value without knowing the index (an actual variable is used when sear... | stackexchange/codereview |
I have an application that exists in 3 different presentation tiers...web, mobile (offline) and desktop (offline). The core business objects are the same for all three, and they share the same validation and business rules. However, they all use different databases (web - SQL Server 2008, mobile/desktop - SQL Compact).... | stackexchange/codereview |
HI,
i have extended BaseAdapter, my size of the list is 20,but it is showing only 7 records, after the 7th record it is showing again from 0.
public class ContactsAdapter extends BaseAdapter {
private List elements;
private Context c;
public ContactsAdapter(Context c, List<ContactBean> Tweets) {
this.elemen... | stackexchange/codereview |
Hello
I have a main table BASECOMPANYDATA with BaseCompanyDataID as a PK. This is inhereted by
2 other tables CUSTOMERS & PRODUCTCOMPANIES. Now I have the table CONTACTS which I
want to connect with the 2 others as the customers and the productcompanies will have 0 or
more contacts. So I made a FK(BaseCompanyID) in C... | stackexchange/codereview |
I would like to ignore all generated files from TFS. I am generating Product.Generated.cs from Classes.tt
I would like to ignore *.Generated.* and *.ignore; in TFS
in vs2010 I tried to
right click on source control explorer -> add items to folder
Automatically exclude from Source Control:
Debug;Release;ClientBin... | stackexchange/codereview |
I've created a custom uicomponent and whenever the browser or its specific container is resized, a repaint occurs but the contents of the component get drawn again and again and again...
So, if I move the container I'll end up with multiple circles drawn on top of each other but offset depending upon where the containe... | stackexchange/codereview |
I am using webservice to load the image to the imagebox from the database.
If the DB do not have any image it show the image box with no-image pic.But i want to make the image box not to visible when it do not have an image
Below is the code i used to load image
MyImg.ImageUrl = @"~/ShowImage.ashx?id=" + MyID;
Thanks ... | stackexchange/codereview |
I'm somewhat new to C++ so, I guess this is a very basic question.
Suppose I have this class:
// file Graph.h
class Graph {
public:
Graph(int N); // contructor
~Graph(); // destructor
Graph& operator=(Graph other);
private:
int * M;
int N;
};
// file Graph.cpp
Graph :: Graph(int size) {
M = new int... | stackexchange/codereview |
If I have a set F of functional dependencies on the relation schema r(A, B, C, D, E, F):
A --> BCD
BC --> DE
B --> D
D --> A
What would B+ be??
| stackexchange/codereview |
I am trying to reinitialise the jCarousel(sorgalla.com/jcarousel), after update data from server
.js
$.reloadJc = function(){
$.get('jc.html', function(data){
$('ul.myjc').htlm(data);
$t.carousel.reset(); // $t.carousel is my jcarousel instance
$t.carousel.reload();
});
}
$.reloadJc();
What I want is jcarousel... | stackexchange/codereview |
In this rails app:
https://github.com/ryanb/govsgo/blob/master/app/views/authentications/index.html.erb
There is a form that as 'new_user_path'
Where is the definition for this symbol? Is it a symbol??
Just confused as I downloaded the source, and searched for 'new_user' and couldn't find any reference to it.
| stackexchange/codereview |
I have got the following code for ... if in textbox1 the would be appear as 10:10:00 AM and in textbox2 the time will appear as in 4 hours time slots automatically as 06:10:01 AM ..if the textbox2 time will be 06:10:01 AM then MSg box will appear that "You can not registered to this site because the 4 hours time slot w... | stackexchange/codereview |
if you know, please teach me how to install.
And i will try to install it in window2000 at the same time.
thx a lot.
| stackexchange/codereview |
I would like to succinctly diff a tree of configuration files, most of which are flat (i.e. key/value pairs) but some of which are XML, bash scripts or custom formats. The configuration information is almost always not ordered, and can contain whitespace and comments.
For flat files, doing a diff without whitespace or ... | stackexchange/codereview |
I'd like to pop up a login box when a user attempts to access a protected web page rather than redirecting to a login page.
I want to do this using MVC and jquery but not the ms ajax scripts. All the pages use the same master page and I'm using formsauthentication. I have the login pop-up working when the user clicks o... | stackexchange/codereview |
Im trying to automate our build process. To do this i need to compile the app_code in a asp.Net website to a dll so i can run NUnit test against the code. Before you suggest that i just use a class library, i will say that i agree with you, my superiors however, take a different view and have vetoed the use of dlls in ... | stackexchange/codereview |
Here's my code - not sure what the issue is?
// Make the query:
$query = "SELECT template FROM pages_meta WHERE user_id=$id";
// RUN THE QUERY
$result = @mysqli_query ($dbc, $q);
$url = 'template';
echo "<link href=\"$url\" type=\"text/css\" rel=\"stylesheet\" />";
| stackexchange/codereview |
i am facing a deadlock in one of my c application(its a big code) and I was able to debug down the stage where I printed a mutex. It looks like below -
{__data =
{__lock = 2,
__count = 0,
__owner = 15805,
__nusers = 1,
__kind = 0,
... | stackexchange/codereview |
Is there a way to change the word boundaries to make it more specific to your programming language or naming convention? And then, define a new macro while keeping the basic movements like w,W,b,B etc.?
For example:
Class.method_name would would not recognize the underscore as a word break.
| stackexchange/codereview |
Well, I must admit that I'm very new to Java Programming and very hesitate to post the question here because there are lots of question similar to my question. I have viewed those question but STILL I can't understand what's the logic behind "protected" modifier. So I think it is better to post my own question here.
He... | stackexchange/codereview |
I realize this may be a very simple question but I need to know how to add ONE value to multiple arrays in PHP. (The better way)
array_push($one, "hello");
array_push($two, "hello");
I need to do something like this (just as an example)
array_push($one && $two, "hello");
I have read through this question and seen the... | stackexchange/codereview |
How can one find out the type of a file in objective c,i.e, finding out whether the file is a a pdf,xls,doc or an image or a directory?
| stackexchange/codereview |
I'm working on a Compact Framework app running on Windows Mobile. It's to be used by delivery drivers to tell them their next job and track spending etc. I have a SQL CE database on the mobile devices and SQL Server on the server. After struggling with major performance and configuration problems with the Sync Framewor... | stackexchange/codereview |
I have a method
public void MyMethod(decimal val)
{
}
I want to call this method like this
MyMethod(4.6)
and it's not happy, presumably, it's thinking 4.6 is a double, not a decimal. What is a way to get it to recognize it as a decimal without having to go Convert.ToDecimal(4.6)
| stackexchange/codereview |
I have a Silverlight 4 / C# project I'm working on in Visual Studio. I made an XML data file by right clicking on the project >> Add New Item >> Xml File. I then try to open the file:
StreamReader streamReader = new StreamReader("data.xml");
However, this gives a security exception. How can I get around this, ... | stackexchange/codereview |
I am trying to refresh a certain part of my page with AJAX and JQuery (in Django). How can I get it to redisplay only the div, rather than the whole page.
// In my template
var tag_cloud_floor = function(floor) {
$.ajax({ url: "/{{ user }}/{{ tag }}/",
data: {tag_cloud_floor: floor},
... | stackexchange/codereview |
I use SchemeExport to create database scheme. Many-to-many tables creates without primary key (only two foreign keys). Is it possible to create primary key too?
| stackexchange/codereview |
I am new to objective C. I have created an NSString array by the following way:
static NSString* fontSizeName[] =
{
@"14",
@"18",
@"22",
@"26",
@"30",
@"34",
};
Now, i have the value, "26", how can i get the index of it in fontSizeName[]?
Thanks for input.
| stackexchange/codereview |
I get a warning saying that setFont is deprecated?
[button setFont:[UIFont boldSystemFontOfSize:13]];
Any suggestions how to take it away pls..
| stackexchange/codereview |
I have a form that people can add their stuff. However, in that form, if they enter JavaScript instead of only text, they can easily inject whatever they want to do. In order to prevent it, I can set escapeXml to true, but then normal HTML would be escaped as well.
<td><c:out value="${item.textValue}" escapeXml="true" ... | stackexchange/codereview |
I have a model which throws a XMLDocument_Exception. In my controller action I want to include a try catch block which may throw this exception but for some reason it is not getting caught.
public function listissuesAction() {
$publicationPid = $this->_request->get('publicationPid');
$this->getFrontController... | stackexchange/codereview |
Hey I have code that wires up the tabs in the Ready function for Jquery UI tabs simplar to
// wireup tabs
$(".tabs").tabs({
cookie: {
expires: 30
}
});
This works great, except that the tab index is persisted across all tabs locations (since I'm using the .tabs selector to wire all my tabs at once). I... | stackexchange/codereview |
on my wev server python is by default 2.4
I also have python 2.5 which I want to make sefault via .htaccess file.
what's the directive to make /usr/bin/python2.5 the default python?
10x
| stackexchange/codereview |
I'm trying to generate a Insert method in a TableAdapter with a query like
INSERT INTO Status
(ScheduleID, StatusID, Name, Color)
VALUES (?, ?, ?, ?)
Here Name is a string and the other are integers.
The generated signature however looks like this:
InsertQuery(int Color, string Param2, string Par... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.