instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to change the font color of text in a disabled CEdit control which is currently system gray.
As I use a gray background, I wish to change the font color of text ( currently set to rgb value of COLOR_GRAYTEXT) in order to make it easier to read.
There is a solution by using SetSysColors() but that has an ill ef... | stackexchange/codereview |
This code works:
posToXY :: Float -> Float -> Integer
posToXY a b = do
let y = a / b
round y
But this doesn't work:
posToXY :: Integer -> Integer -> Integer
posToXY a b = do
let y = a / b
round y
I understand that operation '/' doesn't define for Integer type, but I don't know how to f... | stackexchange/codereview |
Using the command "make apps", I wanna generate two executables: main_test.exe and main_app2.exe.
For some reason, the command to generate main_test.exe is more is less completley ignored when
I run the makefile. Finally, I end up with a main_app.exe and main_app2.exe file but there is no
main_test.exe file produced. A... | stackexchange/codereview |
I have a small question. I need to make a predicate that counts from a natural number to some other natural number. I have to implement a check too, that the second interval is bigger than the first one. However I got stuck during my way.
Here is my code (SWI-PROLOG)
count(O, _, O).
count(A, B, C) :- count(A, B, D), C ... | stackexchange/codereview |
I need an algorithm that automatically makes a linear programming problem feasible. Concretely, the algorithm is such that its input is a linear programming problem which potentially does not have feasible solutions, and its output is a similar programming (with parameters modified with minimum) which is bound to have ... | stackexchange/codereview |
Hi
I own a taxi and transportation business.
1.Any way i can use latitutde to bring up my drivers location on my google map(they will carry smart phones)?
2.Knowing customers pickup address(stored in database) can i make individual pickups popup on my map also?
3.How would i implement a dispatch notice to my drivers b... | stackexchange/codereview |
while I'm able to set "highlight color" for ListView items using android:listSelector
attribute and appropriate selector, I'm unable to do the same, or something similar,
for Menu items - they just keep using default system color scheme. I've read Creating Menus article and found nothing there. Any clues?
Btw: I'm re... | stackexchange/codereview |
Here's the setup:
I've got a shared library (c++ with extern "C" methods) I've compiled in linux and created a library.so file.
I've used Mono Develop on the same box (Ubuntu) and was able to DLLImport("library.so") and access my extern functions no problem.
The problem comes in when I copied that .so file to a windows... | stackexchange/codereview |
when my text autocomplete already send a request to server then i want to make a new gap when he goes to send a new request.
means when a request goes
then he not make a new request for some millisecond then it can be say that "how i can make gap between two request goes to sever"
| stackexchange/codereview |
Is it possible to "hard" restart Windows, without waiting for closing applications, etc.?
| stackexchange/codereview |
i used the code below to handel the touches in my app and i used for loop in touchesBegan to handel 2 touches in the same time but the problem is if the user make a drag with 2 fingers just one work can i make the 2 works properly ?
code:
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesM... | stackexchange/codereview |
The code is this:
Originally:(http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php)
The approach uses a combination of the UTL_TCP and UTL_FILE packages to create a simple FTP API (ftp.pks, ftp.pkb). Once the API is loaded into the appropriate schema simple FTP commands can be initiated as follows:
CREATE OR REPLA... | stackexchange/codereview |
I have a jquery dialog box that loads with an image and auto resizes to the image. This is what I want. However, the box is rendered at the center position, but the image isnt fully loaded yet, there is a delay in getting the image. So when the image is loaded into the dialog box the upper left corner is centered, but ... | stackexchange/codereview |
I am trying to create a menu system which changes the content template for a panel AFTER the panel has been closed by a Visual State change but before the panel is re-opened (think of a slide in/out filter). I was hoping to achieve this using a combination of data triggers but am having no joy :( Some code has been omm... | stackexchange/codereview |
We have a need to send a SOAP message from within a testcase and also test what is sent to our mock service at the same time. So something like this:
Send SOAP Request -> Webservice
Response <- Webservice
20 or 30 seconds later
This is a different request coming to our Mock Service on SOAPUI
Mock Service <-Webservice
... | stackexchange/codereview |
I have created a client and server program in c++ based i=on windows sockets.
I have some problem that when i execute the program no message appears on the server end and after that the program exits.Data is sending to server but it is not responding back.
i am pasting my code below
****Server code
===========****
#if... | stackexchange/codereview |
I have 2 tables like this
Table 1
id name
1 ABC
2 DEF
3 GEF
Table 2
name meal
ABC m1
ABC m2
GEF m1
Table 3
meal detail
m1 mutton
m2 beaf
How can I get output like this?
Id name meal_detail
1 ABC mutton,beaf
2 DEF
3 GEF mutton
Thanks in Advance
| stackexchange/codereview |
Ok I'm submitting a form via ajax. The result string is a bunch of html links and images which I append to the body of the DOM.
Is it possible to search with jQuery within this new code?
before ajax request:
<div id="results"></div>
after ajax request:
<div id=results">
<img src="somevalidpicture.jpg" class="image"... | stackexchange/codereview |
I'm using an asp:LinkButton. The text underlines upon hovering over it. However I want it to always have an underline. Can anyone tell me how to achieve this?
Thanks!
| stackexchange/codereview |
how can I set width to a tk.Frame (post-initialization ?)
In other words, is there a member function to do it ? Sometheing like frame.setWidth()
thanks
| stackexchange/codereview |
This seems so simple but I can't understand how do I do this query:
I have a table users like this:
user_id | name | role
1 | abc | a
2 | lol | b
3 | f | c
and a table usersprojects (with user and project PKs)
projectid | userid
1 | 1
1 | 2
2 | 2
2 | 3
How could ... | stackexchange/codereview |
I have a whole bunch of Java beans annotated like this with JPA:
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class TitleEntry extends Entry {
private Long id;
public TitleEntry() { }
public ... | stackexchange/codereview |
I have a mobile web application for my iPhone. My application is in general dynamic so all the files I am using are in php. How can I make this web app working offline? Can I still use the and include the index.php file there? Or there is another way for dynamic pages?
Thanks in advance
| stackexchange/codereview |
I have the following code wich is raising an EConvertError - "can not assign TAdoConnection to TAdoConnection"
var
wTmpADOConn : TADOConnection;
begin
//
Result := nil;
try
Result := TADOConnection.Create(nil);
wTmpADOConn := afunc(aNameConn);//aFunc-Function which returns a pointer to a TADOConn... | stackexchange/codereview |
I need to create a user preferences dialog in a Silverlight web application in a way that a user can change settings (let's say background color in main window) and see the results after clicking on an "OK" button of the dialog without closing it.
I tried a child window and was not happy because the main window is bloc... | stackexchange/codereview |
When I do an ssh connection, after a while, the connection time-out and my term freeze.
I know Enter + ~ + . to unfreeze it.
But is there another key sequence to reconnect instead ?
Thanks
| stackexchange/codereview |
Possible Duplicates:
C# compare algorithms
Any decent text diff/merge engine for .NET ?
I'm looking for a way to programmatically diff two text files.
| stackexchange/codereview |
So I have an NSArray "myArray" with NSNumbers and NSStrings. I need them in another UIView so i go like this:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
DetailViewController *details = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:nil];
details.su... | stackexchange/codereview |
official or unofficial.
I've been digging around the VS assemblies with Reflector, with no success so far.
| stackexchange/codereview |
Anyone know how to tell what mode an GWT 2.0 app is currently running at?
The idea is that i could do something like:
if(GWT.whatIsYourmode() == 'dev')
//run some code
else
//run some different code
| stackexchange/codereview |
I am downloading a JSONObject from a web site. The entries are however HTML-encoded, using
"
and
&
tags. Is there an easy way to get these to Java strings? Short of writing the converter myself, of course.
Thanks RG
PS: I am using the stuff in a ListView. Probably I can use Html.fromHTML as I can for Tex... | stackexchange/codereview |
I have some encryption code that has been written in Perl (also a code snippet in PHP) - but I just can't get a version written in VB.NET to work with the third party.
Example in Perl
package Sitemaker::API::Crypt;
use warnings;
use strict;
use base qw( Exporter );
use Crypt::CBC;
use MIME::Ba... | stackexchange/codereview |
I'm using the following method to parse URLs:
Regex.Replace(text, @"((www\.|(http|https|ftp)\://)[.a-z0-9-]+\.[a-z0-9\/_:@=.+?,##%&~-]*[^.|\'|\# |!|\(|?|,| |>|<|;|\)])",
"<a href=\"$1\" target=\"_blank\">$1</a>", RegexOptions.IgnoreCase).Replace("href=\"www.", "href=\"http://www.");
It ... | stackexchange/codereview |
Is there any way to make a RegularExpressionValidator render itself using display:block, instead of display:inline in its style attribute, when setting the Display property to "Display='Dynamic'"?
I have tried setting it in the stylesheet but this gets overwritten when it is rendered on the page.
Thanks
| stackexchange/codereview |
I need to weekly sync a large (3GB+ / 40+ tables) local MySQL database to a server database.
The two databases are exactly the same. The local DB is constantly updated and every week or so the server DB need to be updated with the local data. You can call it 'mirrored DB' or 'master/master' but I'm not sure if this is ... | stackexchange/codereview |
I have a Person javascript class like
function Person(_name, _id, _salary){
this.Name = _name;
this.Id = _id;
this.Salary = _salary;
}
First, i want to overload constructor function with:
function Person( _person ){
this.Name = _person.Name;
this.Salary = _person.Salary;
this.Id = _person.Id;
}... | stackexchange/codereview |
org.hibernate.hql.ast.QuerySyntaxException: cannot dereference scalar collection element: cspName
st.append("SELECT customers.name,sum(csp.cspValue) as TotalMoney ");
st.append("from Account as account ");
st.append("left join account.CSPFields as csp with ((account.accountID=csp.id) and (csp.c... | stackexchange/codereview |
<div style='width:500px'>
<ul>
<li> some text in 1 line</li>
<li> some text in 1 line</li>
<li> some text 2 line</li>
<li> some 2</li>
<li> 2</li>
</ul>
</div>
I don't know what is the correct css code for display of items in ie like:
first two results automatic fit in first line and rest of th... | stackexchange/codereview |
So I have an asp.net 2.0 web application and I created a web service to post some data from a web form to a database. I now want to use jQuery/AJAX to post the data to the server but since the application is 2.0 and not 3.5+ I don't have the System.Web.Script.Services.ScriptService namespace which seems to be needed (I... | stackexchange/codereview |
Note: I am not interested in using a parsing library. This is for my own entertainment.
I've been experimenting with ripping text out of PDF files for a search gizmo, but am unable to extract text from some pdf files.
Note that this is a much easier problem than straight up parsing; I don't care if I inadvertently inc... | stackexchange/codereview |
As part of a current project I've been asked to display a candle onscreen. Users should be able to tilt the device to tilt the flame, and perform an action (eg. tap) to blow out the flame. I'm at a real loss on how to achieve this. Some ideas I've had:
purchase a movie of a candle from a stock video site. This won't l... | stackexchange/codereview |
I created one aplication that have a lot of components and a height of 2500 ,in the bottom I have a navigation menu.
I need to take the focus to the top of the page after a click in the bottom.
How can this be done?
Thanks in advance for all the help.
| stackexchange/codereview |
I have two queries
I do a grep and get the line number of the input file. i want to retrieve a set of lines before and after the line number from the inputfile and redirect to a /tmp/testout file. how can i do it.
I have a line numbers 10000,20000. I want to retrieve the lines between 10000 and 20000 of the input ... | stackexchange/codereview |
If I open mentioned url in IE, it works. But if I open same url by api “InternetOpenUrl” then it returns nil.
url is
http://gisservices.datadoors.net/wmsc/__streaminguid.44d023f0-447c-4378-9624-858cd90bb045/wms-c.ashx?SERVICE=WMS&STYLES=&BBOX=-8734904.9955321327,4935096.5230968799,-8659096.1018777788,5002463.5331088305... | stackexchange/codereview |
I use following code
$this->getDb()->fetchRow($sql, $params);
Is it free from sql injection? Please guide me. How i can make it free from sql injection.
| stackexchange/codereview |
I have a file which looks like:
<QUERY name="Secondary">
<SQLStmt>select * from my_tb;
</SQLStmt>
<QUERY name="primary">
<SQLStmt>select * from my_tb;
</SQLStmt>
<QUERY name="last">
<SQLStmt>select * from my_tb;
</SQLStmt>
I need to substitute th... | stackexchange/codereview |
I have php script from where user can upload the video file. The file may be mpeg, flv and avi.
Should I need to use two player in html on flash player for flv and second embedded MediaPlayer1 for other files.
But how the embedded code will be opened at mac/linux based client side. Is the only way to convert mpeg into ... | stackexchange/codereview |
See below - the tableView cells are getting cut off. Why doesn't this work? The width of the popover is 240.
(In a subclass of UITableViewController)
- (void)viewDidLoad {
[super viewDidLoad];
self.tableView.frame = CGRectMake(0,0,200,200);
}
| stackexchange/codereview |
I just started to investigate mvc on javascript client side (JavaScript MVC). Everything looked great until I got to form submitting :) View part won't do it, that's simple. Event is attached in Controller, so Controller is good place to validate form data, but I'm not sure I want my Controller to know specific server ... | stackexchange/codereview |
I'm building a RoR site, and today I get the pagination done. Upon showing it to my coworker, his first question is "what happens if you set the querystring to "?page=-1". It died with a runtime exception (error 500). He suggested that that should definitely be fixed before this site goes anywhere near live.
I happen t... | stackexchange/codereview |
I would like to know how to call a function once the user double-clicks on any word on the page they are visiting (from a content script). Something similar to Google Dictionary extension. I have inspected the codes in the extension but it was not indented (compiled/minimized) so I've decided to ask this question here.... | stackexchange/codereview |
Today i got a idea to make an ThreadQueue for C++, for my Server Application.
unsigned int m_Actives; // Count of active threads
unsigned int m_Maximum;
std::map<HANDLE, unsigned int> m_Queue;
std::map<HANDLE, unsigned int>::iterator m_QueueIt;
In an extra Thread i would to handle these while:
while(true)
{
i... | stackexchange/codereview |
I built an application that is running as a windows service and is installed through my code.
All is fine except at logon.
When at the first windows xp/2003 server logon screen, I am not sure if the service is running at all. If it is, then it does work as it's not functional (the service IS USING WINPCAP so that ... | stackexchange/codereview |
Ok, I had VS2010 Start Page set up to display 20+ projects in the Recent Projects section, but while I was messing around with theming and importing/exporting settings I seem to have reset it back to its default of 10, and I can't locate where that setting is. Does anyone know where the setting for number of recent pr... | stackexchange/codereview |
I have one question on how to optimized my sp, actually it was a view but I decided to change to sp to make it faster, and it did work. First it took 27 seconds for a view to run and 16 sec for sp. So it is getting better but how to make it even better?
Table that I am running my sp on is 600 records and I am returning... | stackexchange/codereview |
Being a newbie with maven, I've set up a new project with the archetype "webapp" and try to build from that.
My project structure is as follow : src/main/resources for production classes, and src/main/test for unit tests. Everything is working fine but when i use the m2eclipse menu "update project configuration", the b... | stackexchange/codereview |
I put a button on view and want to call this view from another view and change size of this view but when i change size,size of button doesn't change How can i change size of view that size of all controls on view changed?
Three *second = [[Three alloc] initWithNibName:@"Three" bundle:nil];
second.view.frame=CGRectMak... | stackexchange/codereview |
Is it possible to monitor all printing acctivities from service installed locally for example save all files which are going to be printed on any printer and save them to file in any format ?
Im talking about .net solutions
thanks for any answers,
bye
| stackexchange/codereview |
I think there is a wide consent that is a good practice to separate your REST API from your main website. The main reason is that you can scale your API and website independently of each other.
Additionally, Rails has a lot of middleware that is not required for stateless services (e.g. sessions, cookies, view renderin... | stackexchange/codereview |
I'm attempting to get data from http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured?&start-index=1&max-results=15&v=2
and print the titles of the videos, but I get an exception in the line
int responseCode = httpConnection.getResponseCode();
what's the problem? Any other way to get this dat... | stackexchange/codereview |
What are the available mvvm frameworks for WP7 out there today? Which one(s) would you recommend and why? Are there other useful frameworks one should consider when starting WP7 silverlight development.
Thanks for posting your experiences so far.
Cheers,
Phil
| stackexchange/codereview |
I am developing an eshop .At products page based on category i putted some javascript based filtering. However a problem arises if a category has a lot of products.
This link has something similar i do ...
http://www.snowandrock.com/sunglasses/snowboard/fcp-category/list?resetFilters=true
How ever this page is painfull... | stackexchange/codereview |
Im trying to get to grips with writing testable ViewModels in Silverlight 4. Im currently using MVVM light.
Im using AutoFac and the IoCContainer is doing its job fine. However to inject into the constructor of ViewModels, which are bound to Views I have this constructor chaining:
public UserViewModel() : this(IoC... | stackexchange/codereview |
I'm using jQuery UI's datepicker (http://docs.jquery.com/UI/Datepicker).
It sounds like it should be possible to mark certain days by providing a beforeShowDay function (http://docs.jquery.com/UI/Datepicker#event-beforeShowDay). But I can't get the CSS right for this. I'd like to make the background green for some days... | stackexchange/codereview |
Well, there is similar question for Oracle, now, Postgres?
| stackexchange/codereview |
I am building a dynamic form builder.. And i have a problem which i can't seem to fix.
So i have a db table called "forms"
forms can have "fields"..
The problem is that when a user creates a new 'field' (click add-field) then it should ajax the new field for .. that field.
The problem is that i can't just do someth... | stackexchange/codereview |
This is my code for getting all system users:
def get_all_system_users
user_paths = Dir["#{ENV['HOME']}/../*"]
users = user_paths.map { |path| path.split("..")[-1].gsub(/\W/, '') }
users.select { |user| %x{id #{user}}.include?("uid") }
end
The problem is the id #{user} command which returns an output for inexis... | stackexchange/codereview |
How should I handle the key events for CustomItem in J2ME?
| stackexchange/codereview |
Considering the following setup, how can I restrain IConnection to only contain IPort of the same ConnectionType in Ports? Maybe I am overlooking something obvious here:
Enum ConnectionType
{
Undefined,
Type1,
Type2
}
IConnection
{
ConnectionType ConnectionType {get;set}
IEnumerable<IPort> Ports {... | stackexchange/codereview |
I have a paragraph of help information that I would like to display in a window with an "ok" button at the bottom. My issue is formatting...I want to be able to simply set the paragraph equal to a variable and then send that variable to a message box widget. By default, it formats laterally and in a very ugly manner. A... | stackexchange/codereview |
Im using glColor4f(1.0f, 1.0f, 1.0f, alpha_); to set transparency to primitives I'm drawing.
However I'd like to be able to read the current opengl alpha value. Is that possible?
e.g.
float current_alpha = glGetAlpha(); //???
glColor4f(1.0f, 1.0f, 1.0f, alpha_*current_alpha);
| stackexchange/codereview |
Does a checbox provide an alternative to using captcha on website? I am thinking i i need to use captcha for user signup. Instead if i put a checkbox for the terms like "By clicking here I agree...." can that solve the bots issues or is captcha required in addition to the checkbox?
| stackexchange/codereview |
I try to add a byte to an array as shown below:
messagedata.Add((byte)0xF0);
But then when I check the array, the item looks like 0xf0 but it since it's going to be a MIDI message I found it has to be a capital F. What can I do to keep the letters capitalized?
| stackexchange/codereview |
A simple question.
When I set up Google Analytics and use the assigned tracking code, does GA automatically filter results coming from the Domain URL I specify for that tracking code?
In other words, if I used UA-1234567-8 on mysite.com and mysite2.com, will both sites get tracked or will just the site that's entered a... | stackexchange/codereview |
What I am trying to do is on page load display either of two controls based on how many items are in a datalist.
For instance, if the datalist only contains 1 item I want it to display
Literal1.Visible = true;
If there is more than 1 item in the datalist, then show
LiteralMulti.Visible = true;
Anyone know how to d... | stackexchange/codereview |
I'm writing a Windows Phone 7 app and have a icon (both tile icon and app icon). The icon has my little logo in the middle surrounded by a transparent background. But when I see the icons on the phone emulator the background is black. It stays black regardless of what theme is chosen (light or dark).
I would expec... | stackexchange/codereview |
I have a solution file in VS 2010 and it has multiple projects in it.
Now, I have a reference to this dll call MySql.Data.Entity.dll.
As an example, I have the following projects setup in the solution:
Domain (reference to MySql.Data.Entity.dll)
Domain.Test (reference to the project "Domain")
I want that Domain.Te... | stackexchange/codereview |
Is it possible to display a belongs_to relationship in a single jqgrid?
Example:
Vehicle belongs to Person
I can display the Vehicle jqgrid listing the person_id, but I would like to display the Person's name instead of their id.
Example:
person_id|vehicle_type
1 | honda
person_name|vehicle_type
Tom ... | stackexchange/codereview |
So I have two pictures of the weirdness that is occuring
As you can see in the picture above, the scroll bar on the right hand side is being cut off a little bit by the screen, and even when you scroll to the right, you don't get the bar back, it remains cut off.
Here is the other scenario:
Here, you can see that whe... | stackexchange/codereview |
I have two activities A & b.
in A i have one button which takes me to the activity B. in Activity B i have one edit text. when user enter some values in edittext i m getting the value in some variable. and i want to pass this value back to activity A. i applied the Bundle concept bt it is force closing my app.
pls anyb... | stackexchange/codereview |
If we Host WCF in WAS then we do not need to install IIS completely. Is this really a big advantage of hosting in WAS?
| stackexchange/codereview |
I am trying to build a relationship model between users. A user can either initiate a relation, or receive a relation from another user. Therefore, the relations table in the db has the foreign keys "initiator_id" and "recipient_id".
Now, I can figure what relations the user initiated or received using the following as... | stackexchange/codereview |
I have a User control with 2 rectangles and buttons (Add, Delete, Clear). Upon clicking Add buttons I add more rectangles, Delete - I delete selected rectangles, and upon clicking Clear I want to return to the initial control with only 2 rectangles, so I just want to pretty much load my XAML code again, but I have no i... | stackexchange/codereview |
When using streams, memory consumption is supposed to be the same as the size of the buffer. However, I am not sure how a stream works when I look at the following code, which uses http request and response. (HttpWebRequest to be precise)
Stream requestStream = webRequest.GetRequestStream();
// Here write stuff to the... | stackexchange/codereview |
Since std::pair<std::string, unsigned int> is not defined for __gnu_cxx hash map, how do I create a __gnu_cxx hash map with keys of type std::pair<std::string, unsigned int> and values of type std::pair<int, CBTNODE>? (CBTNODE is typedef as typedef int CBTNODE)
If it's possible, I would really want to substitute std::... | stackexchange/codereview |
I need to export a big table to csv file and compress it.
I can export it using COPY command from postgres like -
COPY foo_table to '/tmp/foo_table.csv' delimiters',' CSV HEADER;
And then can compress it using gzip like -
gzip -c foo_table.csv > foo.gz
The problem with this approach is, I need to create this i... | stackexchange/codereview |
My python script is working now, but I'm having a little trouble:
Here is the output:
from BeautifulSoup import BeautifulSoup
import urllib
langCode={
"arabic":"ar", "bulgarian":"bg", "chinese":"zh-CN",
"croatian":"hr", "czech":"cs", "danish":"da", "dutch":"nl",
"english":"en", "finnish":"fi", "french":"fr... | stackexchange/codereview |
I am working for a client that currently has a DataAttributes table with columns Name, Type, Value, and ParentID. This table is used to store virtually everything such as US states, anatomical items, combo box selections, and system settings. I would seriously like to get rid of this table and break each section into i... | stackexchange/codereview |
I am planning to do an add-ins project for Outlook 2007. I am pro developer in C#, WPF.
Please suggest books or sites for me to learn Outlook programming with C#. Any help would be appreciated.
Thanks.
| stackexchange/codereview |
Has anyone created a .NET application that reads and parses an EDI file?
EDI file - used by shipping industries to provide information on shipment invoice.
| stackexchange/codereview |
I'm trying to use richfaces extendedDataTable with a4j:support to change a rich:panel's 'rendered' attribute's value but it's not working.
This is part of my JSF page that contains a rich:extendedDataTable and a rich:panel:
<h:form id="tabForm">
<rich:extendedDataTable id="myTable" width="500px" height="250px"
value="#... | stackexchange/codereview |
Possible Duplicates:
What is the preferred way to declare a Java array?
Difference between int[] array and int array[]
Hi!
Been learning Java for Android by reading some tutorials. And in lots of the tutorials there are used two different ways of declaring arrays - even in the same project:
public int integers[] = ... | stackexchange/codereview |
I have this php algorithm ranking function(hacker news):
function calculate_score($votes, $item_hour_age, $gravity=1.8){
return ($votes - 1) / pow(($item_hour_age+2), $gravity);
}
And I have this table in MySql:
post{id, post_text, votes, date}:
I was wondering how can I pass these MySql data parameters to that f... | stackexchange/codereview |
Lets say I retrieve an entity object that looks like this:
@Entity
public class Mother {
...
@OneToMany(mappedBy = "mother",
targetEntity = Child.class,
fetch = FetchType.LAZY)
public List<Child> getChildren() {
return children;
}
}
When retrieving the above objec... | stackexchange/codereview |
I am trying to print the contents of a structure onto a print page in Visual Basic(visual studio 2008). However my for each loop generates a conversion error? Could someone help me figure out whats wrong? Thanks
Public Class Form1
Structure IncomeRecord
Dim IDVal As Integer
Dim HouseholdNum As Integer
Dim ... | stackexchange/codereview |
i am distributing ms-access-2007 front ends. the back end is sql server. a user will click on a button and it will return a query from the sql server 2008 database.
is it possible to requery this query if the user clicks the button again?
usually the behavior of access is that if you query it again, it displays old re... | stackexchange/codereview |
I have a windows application(C#) that has the icon and manifest settings set in the project properties. The icon is set correctly. The problem I am having is when a user launches the application from his/her machine, and logs in, the icon is displayed correctly on the form window, but the icon that is displayed in the ... | stackexchange/codereview |
How can i enable my app to be moved to the sdcard?
-edited the title in order to make question more relevant to the answers given.
| stackexchange/codereview |
I have an iPhone application that initially had only English and German localizations. I just added a French localization, but when I change the user language to French it still shows the German strings.
What could be causing this odd behavior?
| stackexchange/codereview |
I implement NTLM SSO, it works well, but when I want to switch to use login form, IE doesn't work:
1.SSO into my website
2.clear session and redirect to login page
3.key in username and password
4.submit
and because the login i have bypass the SSO filter, so it works well in Firefox browser.
But in IE, it still send a ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.