instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have finally got my admin part of my django site working.
I am now beginning the tedious part of manually entering the initial data into the database. Obviously, I want this to be a one time affair.
Can anyone suggest to me how I can create fixtures data from my manually entered data, so that I can reload the data (a... | stackexchange/codereview |
I have a web service that's ~200 methods strong, implemented using .Net + WCF in a standalone service.
we're modelling the backing code to use different handlers for different methods,
but eventually there's still that one monolithic interface...
I used (and loved) RESTful interfaces in the past, especially for the way... | stackexchange/codereview |
I'm trying to enable UseMnemonic on a button so that the amprasand (&) will show up for me. The works fine unless I set the buttons flatStyle to System (all other flatstyles are fine).
Labels work fine with the same flatStyle, this seems to be specific to buttons.
Does any one know why this happens or a way behind i... | stackexchange/codereview |
It is possible to generate a image (php gd) with a count of visitors of my piwik tracked site.
I want Embed a flag counter in a external site. On this page iframe or flash not allow. so i can't integrate the normal piwik widgets
| stackexchange/codereview |
From an MySQL database I can extract the following utf-8 characters:
"唐犬土用家犬尨犬山桑山犬巴戦師子幻日幻月引綱忠犬愛犬戌年成犬教条教義"
I am trying to find the most frequent character in this string. I tried putting each as element into an array $arr and do array_count_values($arr); Unfortunately the array operations (or is print_r the culprit?) pr... | stackexchange/codereview |
What I would like to do is have a basic HTML form the input fields be inside PHP so that you can fill those fields with data and submit them to a database. Once that data exists in the database I want that data to fill the input fields. I want all this to be done in java/ajax/php so my page never refreshes. But I can s... | stackexchange/codereview |
I'm trying to get a list of all contacts within my Google Apps domain.
To do so I'm using the Scribe-Java library (http://github.com/fernandezpablo85/scribe-java) within my GWT application.
String resp= "";
OAuthService service= new ServiceBuilder ()
.provider (GoogleApi.class).apiKey ("my-domain.com").apiSecret ("my... | stackexchange/codereview |
I have make an iphone app and now i am converting it to universal app for ipad.
I want that interface of my looks similar in ipohne and in ipad.
If i will not using the split view controller for iPad then is apple will reject my app for iPad.
Is it compulsory to use split view in iPad?
| stackexchange/codereview |
I am playing around with django and python and have hit a bit of a roadblock here. I query my model and return the objects and then perform some simple operations on the results and return them to the view. After the 2nd request the childs for the forum category are duplicated and I have no idea why this happens.
Forum... | stackexchange/codereview |
Possible Duplicate:
concatenating string
I posted a similar question earlier and asked about using SQL server to output the result with a single quote. Could someone edcuate me please?
select ' ' + CustomerID + ','
from dbo.Customers
customerid
------------
ALFKI,
ANATR,
ANTON,
AROUT,
BERGS,
Would like to... | stackexchange/codereview |
So, when I pass a const char * to a function once, can I use it again? It appears to end up spitting out crap to me.
const char *config_file = "file.txt";
function(int x, config_file);
cout << "Number" << x;
secondfunction(int y, config_file);
Do I need to make another pointer to config_file?
If so, how do I do th... | stackexchange/codereview |
You can use templates to find the length of an array.
template<typename T, size_t N>
size_t arraylen( T(&)[N] )
{ return N; }
I'd like to take this idea one step further.
struct Foo
{
template< typename T, size_t N >
Foo( /* ??? */ ) : ptr(?), size(?) { }
char* ptr;
size_t size;
};
int main()
{
Foo fo... | stackexchange/codereview |
I'm trying to make a module in Drupal which utilizes exec(). The script runs fine if I load it manually in the browser or when I run it as su -l www-data, but when run by Drupal as a module the exec function doesn't run. I'm wondering how I can get more data out of this to better debug, or if anyone might know why Drup... | stackexchange/codereview |
I need to validate a field's value according to two different validation rules:
An object of my own which contains a regex and a range (for string it's length range).
A list of possible values.
So I can do this:
public static bool Validate(string fieldValue, string fieldType, ValidationParameters validationPara... | stackexchange/codereview |
I'm working on an iPhone app that uses NSURLConnection to down load files and then convert those files into sqlite3 tables. I would like to use core data to store these tables and to create all the applicable objects. So, do I have to build the models of the data in XCode with the graphical tool representing all the ta... | stackexchange/codereview |
I need to open a new window with a single click
of an asp.net button. My problem is that it always takes two clicks.. if i write the open window
code in the page load, then the window gets open on 1 click..
any ideas how to get around this...
Button Click Code :
btnClaim.Attributes.Add("Onclick","javascript:return Open... | stackexchange/codereview |
We're trying to parse an XSD and build a property sheet out of that (using XML Beans).
The code is as following:
XmlObject xmlObj = XmlObject.Factory.parse( schema );
sts = XmlBeans.compileXsd(new XmlObject[] { xmlObj }, XmlBeans.getBuiltinTypeSystem(), null);
Call to compileXsd throws the an exception with m... | stackexchange/codereview |
The example of this would be:
A textBox is bound to some data. There is a second text box which is not bind to anything. So I want to bind text box 2 to the same data 1st textBox is bound.
In other words I wan't to know if the DependencyObject stores some reference to it's data-bindings? If not, what is the way to find... | stackexchange/codereview |
I'm working on a wrapping library for a robot controller, that mostly relies on P/Invoke calls.
However, a lot of the functionality for the robot, such as homing, or movement, takes quite a while, and do thread locks while running.
So I'm wondering how I can wrap the functionality in a async manner, so the calls don't ... | stackexchange/codereview |
I'm trying to check a textarea to make sure it contains text phrase(s).
This is what I have so far but it's not working:
$.validator.addMethod(
"regex",
function(value, element, regexp) {
var check = false;
var re = new RegExp(regexp);
return this.optional(element) || re.test(value);
... | stackexchange/codereview |
I have made an AJAX chat using Javascript, PHP, and MySQL.
I send the chat data with JSON from a PHP page that gets the data from a MySQL database. Each chat message is inserted into an array and pulled with an AJAX call every few seconds. Each row in the database has the timestamp of when the message was posted (the... | stackexchange/codereview |
I am trying to compile something that uses Google's sparsehash include files.
libs/include/google/dense_hash_map:93:60: error: ext/hash_fun.h: No such file or directory
^Cmake: *** [all] Interrupt
I know that hash_fun.h exists in /usr/include/c++/4.3/backward/hash_fun.h.
I am just not sure how to make google sparse ha... | stackexchange/codereview |
I have the following code that reads from a QTCPSocket:
QString request;
while(pSocket->waitForReadyRead())
{
request.append(pSocket->readAll());
}
The problem with this code is that it reads all of the input and then pauses at the end for 30 seconds. (Which is the default timeout.)
What is the proper way to avoi... | stackexchange/codereview |
i have a problem during count data use this query:
SELECT A.*,
COUNT( B.Serial_number ) AS Qty_insp,
CONCAT(ROUND(A.`Reject_qty`/ COUNT(B.Serial_number)*100, 2),'%') AS NG_Ratio
FROM oqc_defect A
LEFT JOIN inspection_report B ON A.Model = B.Model
AND A.Line = B... | stackexchange/codereview |
How do I replace all numbers in a column of a table to multiply by 0.6.
Let's say the column reads:
1
2
3
I want it to become:
0.6
1.2
1.8
| stackexchange/codereview |
I have a basic handler set up to call the email application in the emulator and send an email. I've set up the email app in the emulator with my info so it's ready to go. However, when I click the button in my app to bring up a compose window I get the prompt that says:
"No applications can perform this action"
Is this... | stackexchange/codereview |
Trying to write my first generic class in C#:
public class HighScoreList<ScoreType>
where ScoreType : System.IComparable<ScoreType>
{
...
public HighScoreList(List<ScoreType> highScoreList)
{
....
}
...
}
I have run into problems writing unit tests for it. It can't for some reason m... | stackexchange/codereview |
I have to do 2 job which is on remote services not belongs to me.I have to register or upgrade a product on first remote service and i have to get payment via VPOS on second service.
Is it possible to make a kind of transaction in this case ?
| stackexchange/codereview |
I want to write a plugin to validate forms. I have made detailed research about that but I want to write it with my own way. I dont want to write so many lines of code when using the library. It should be easy to use.
I found a jQuery library for validation. It uses HTML classes. For example if you want to a field wit... | stackexchange/codereview |
A table of width 100% is not filling its parent div.
Example html:
<div style="width:100%; margin-top:20px;">
<div style="width:100%; padding:5px; background:#ccc; font-weight:900;">Table Top</div>
<table width="100%" border="0" cellspacing="0" cellpadding="5" style="border:1px solid #aaa;">
<tr style="... | stackexchange/codereview |
I have just read about this article about Code Access Security. It has such an example in it:
using System.Security.Permissions;
public class MyFileAccessor
{
public MyFileAccessor(String path, bool readOnly)
{
path = MakeFullPath(path); // helper fcn
FileIOPermissionAccess desiredAccess = readOnly
?... | stackexchange/codereview |
I have placed comments with my questions inline. The code supports making rest calls.
// (1) Is appending Base to the name of base classes useful?
public abstract class RestCallBase : IRestCall
{
// (2) Is there a good way to decide on the ordering/grouping of members?
// I have seen code t... | stackexchange/codereview |
How do we track older builds which had a triggered because of check-in happened in Hudson,
For example I made build periodically a certain build and its fine, I want to look older builds only which had scm change.
Ex: Currently I am in 200th build,I want to see older build say 76 if it had a change in SCM,i.e I should... | stackexchange/codereview |
I am almost done with this but there are 2 things that are stumping me in my code.
When I query a user for the test score, if the score is not within the 0-100 range, I want to not accept it and then tell them why and ask for another input.
I also want to print the letter grade for their average next to their average s... | stackexchange/codereview |
In Visual Studio while designing MVC views (in .aspx or .ascx files), I often use if statements. When I auto-format (Ctrl+K+D), Visual Studio wraps the braces in this really ugly and hard to read way:
<% if (Model.UserIsAuthenticated)
{ %>
(some HTML goes here...)
<% } %>
Is there any way to make Visual Stu... | stackexchange/codereview |
So I'm trying to find a way in which I can insert new generic test cases into TFS through C#. These are the same ones that you can create in Visual Studio so I was hoping there was someway to do this with the TFS API somehow. Any hints of suggestions are greatly appreciated.
Thanks!!
| stackexchange/codereview |
I am showing Custom Error in my page.. if somehting happend wrong. but if the same error occured in my subview master page I am not able to show the Custom error page on Entire page its showing me that Error page under subview master page. Please I am attaching the Screen shot.
Can any body help me out how to show the ... | stackexchange/codereview |
In ajax I am polling a django url to retrieve the latest records. I do not want to display any records I have retrieved previously and I only want to retrieve 1 record for each poll request.
What would be the best way to do this?
| stackexchange/codereview |
I am developing a web site whose HTML can vary quite a lot depending on user inputs (user input on page 1 decides which sections of page 2 are shown, etc).
Naturally, I would like to ensure that the HTML is valid, but there are a lot of permutations.
I was wondering if anyone has a code snippet which I could include ... | stackexchange/codereview |
This code is from Querying a Dataset with Scala's Pattern Matching:
object & { def unapply[A](a: A) = Some((a, a)) }
"Julie" match {
case Brothers(_) & Sisters(_) => "Julie has both brother(s) and sister(s)"
case Siblings(_) => "Julie's siblings are all the same sex"
case _ => "Julie has no siblings"
}
// => "J... | stackexchange/codereview |
I am facing a weird behavior regarding the subject.
I have a very simple layout containing only an empty RelativeLayout.
Once I have input form the user this relative layout is filled with square tiles to achieve a mosaic-like effect. Each tile is made by a FrameLayout containing two images (only one is drawn at any gi... | stackexchange/codereview |
It's often a bit of a pain to type something like MY_LOGGER_SET_CATEGORY(LOGGING_CATEGORY); That would make sense to assign a shortcut like CTRL + X + S which can easily be done in editors like VIM, for example.
I was wondering if there exists a plug-in or a feature to do similar in Eclipse?
| stackexchange/codereview |
I am trying to develop a simple menu bar application that would let me visualize the charging status of my attached iPhone/iPad without having to launch iTunes. After a long search, I am unable to conclude if this is a possibility with the Snow Leopard APIs.
My search has led me to a service running at boot time calle... | stackexchange/codereview |
I have this regex which is supposed to remove sentence delimiters(. and ?):
sentence = sentence.replaceAll("\\.|\\?$","");
It works fine it converts
"I am Java developer." to "I am Java developer"
"Am I a Java developer?" to "Am I a Java developer"
But after deployment we found that it also replaces any other dots in ... | stackexchange/codereview |
I've read about quite a few people having a problem with this and I've tried all the solutions I can find - hopefully someone can't point out where I'm making a mistake.
I'm working on this site, and as far as I can tell, I'm in standards mode. The doctype is the first thing in the file, and it's valid. I've tried usin... | stackexchange/codereview |
I've got a simple hello world example that I'm trying to compile on OS X, named hw.cpp:
#include <iostream>
#include <string>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
I'd like to compile it using gcc, but I've had no success. I'd also like to hear the other options, like using ... | stackexchange/codereview |
While examining shader examples I recently found that it's pretty often
to pass the world inverse transpose matrix with the world and world-view-projection
matrices.
float4x4 worldMatrix;
float4x4 worldViewProjectionMatrix;
float4x4 worldInverseTransposeMatrix;
Unfortunately, I couldn't understand the purpose of that ... | stackexchange/codereview |
I have installed RVM and as noted in the install http://rvm.beginrescueend.com/rvm/install/ I was able to get "rvm is a function."
A lot of what I've read recommends not to use sudo gem install bundler, but it did not work without sudo (the error said I was not able to write to var/lib/gems/1.8 with gem install bundle... | stackexchange/codereview |
This is my master page code
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteMaster.master.cs"
Inherits="ChildPage_Call_Js_in_MasterPage.SiteMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w... | stackexchange/codereview |
I have to deal with a table that has two columns and 80000 rows.I need to have a comparison on that table between the two columns which is resulting in a system.out of memory exception when I run it.
I will compare the first record value with rest of the 79,999 records i.e.(1,1),(1,2),
.....(1,79999), (2,1),(2,2),....(... | stackexchange/codereview |
When making something const in C++ what makes it that you cannot for example implicitly pass it a non-const at the lower levels of the machine? How is it determined by the machine that this is const?
(besides the fact that const means what it means...)
Is it perhaps stored in the .rdata section of memory or is there a... | stackexchange/codereview |
I'm guessing my if/else logic is skewed. Basically I have an accordion structure where, on page load, the first accordion pane is half-revealed to a height of 150px. Then when the user clicks on the accordion header it fully opens to a height of 320px. On the next click it should close and act normally like the other a... | stackexchange/codereview |
Ive seen sites where things like a login box will apprear, and the rest of the page will fade, buit the box stays the same.
How is this done?
Can someone please give me an example?
Thanks!
| stackexchange/codereview |
I’m trying to launch an application (Operating System, My Application and the application I want to launch are all 32 bits), from .NET 3.51.
The code that launches the Process is used for other applications, but there’s one that is giving us a headache. If we “double click” on the application’s icon, it works as expect... | stackexchange/codereview |
Is it ok to do this:
var myString="Hello!";
alert(myString[0]); // shows "H" in an alert window
Or should it be done with either charAt(0) or substr(0,1)?
By "is it ok" I mean will it work on most browsers, is there a best practice recommandation that says otherwise etc.
Thank you.
| stackexchange/codereview |
We have a multi-module project on which I wanted to use the release plugin.
The setup in subversion is
/svn/repo/project
-- branches
-- tags
-- trunk
-- -- project
-- -- pom.xml
-- -- module1
-- -- -- pom.xml
-- -- module2
-- -- -- pom.xml
-- -- module3
-- -- -- pom.xml
-- -- module4
-- -- -- pom.xml
Thi... | stackexchange/codereview |
Consider the following case:
Public Interface IHasDateUpdated
Property DateUpdated As DateTime
End Interface
Public Class MyClass
Implements IHasDateUpdated
Public Property MyDateUpdated As DateTime Implements IHasDateUpdated.DateUpdated
End Class
Now, assuming I was referencing an instance of MyClass... | stackexchange/codereview |
I have a .mdb file with a Customers table and an Agents table. The only thing that the Agents table does as yet is populate the Agent dropdown for each customer...
I have a DataGridView linked to the customerBindingSource. The customerBindingSource has DataMember set to Customer and DataSource set to bindingSource1. Th... | stackexchange/codereview |
I have a simple UI picker view in an iOS app (iPhone) and I'm looking to pre-populate it with a range of numbers on launch. What would be the most pragmatic/quickest/optimized way to populate it? I'm new to iOS development, so I'm just starting to test the waters. The documentation is pretty decent but I'd like to g... | stackexchange/codereview |
I'm diving into iOS development and I have a quick noob question about Core Data. As I understand it, any data that in an app's Documents folder is backed up to iTunes when the user syncs their device. Does that mean if my core data sqlite db is in the Documents folder, then that data will be synced between multiple de... | stackexchange/codereview |
I created a custom UserControl that functions much like a numbericUpDown but with various enhancements. For example, it can display fractions. However, this control does not scale as well as some of my other controls on my form, forcing my UI to look awkward.
I played around with the AutoScaleMode of both the control a... | stackexchange/codereview |
I compiled my code using Borland 5.5 and there was no errors that popped up. But it ll didn't run correctly so I decided to use Visual Studio 2010 to debug my program.
Visual studio is giving me this error :
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\user... | stackexchange/codereview |
Ho to split string for example like this:
$string ="AvsdsldsdFsdsdsvcFdfddf"
I'd like to split it on groups, which all of them will have to signs. After that, I'd like to put this groups into an array.
| stackexchange/codereview |
I am doing some research on a Motorola site and came across a ton of weird markup. I wanted to get ideas on why this is used and/or why it is a good idea?
Using this page as an example, you can view the source and see tons of tags like
<title xml:lang="en" lang="en"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en... | stackexchange/codereview |
Does anybody have experiences (good or bad) with Nokia's LGPL technical support (or even their commercial license support)? Is it worth the cost? How helpful are they/quality of responses? How responsive is Nokia?
http://shop.qt.nokia.com/us/support.html
| stackexchange/codereview |
I am having trouble dynamically adding a text box to my view. More specifically, the text-box-adder works, but the button I am trying to move below it does not. The original view is the first picture in the below hyperlink.
After the +/- button is pressed, it should add a text box between the second text box and the de... | stackexchange/codereview |
We have a java desktop application that uses JAXB to generate an XML file which is then read by a .Net application and stored in a SQL server database.
We're finding that carriage returns in Java and not coming over as carriage return/line feeds in .Net/SQL.
Is there a way to tell Java or Jaxb to include both the carri... | stackexchange/codereview |
I've tried looking for this but can't find anything:
<asp:Login id="Login1" runat="server"
TitleText=""
CreateUserText="<br />Register a new account"
CreateUserUrl="register.aspx"
PasswordRecoveryText = "Forgotten password?"
PasswordRecoveryUrl="getPass.aspx"
UserN... | stackexchange/codereview |
I really need some code examples here... What I am trying to do:
GetCollectionFromDatabase
foreach item
{
resetEvents[i] = new ManualResetEvent(false);
var makeRequest = new MakeRequest(resetEvents[i]);
ThreadPool.QueueUserWorkItem(new WaitCallback(makeRequest.ThreadPoolCallback), i);
}
db.Save();
ThreadP... | stackexchange/codereview |
Tabitem hide show in silverlight
| stackexchange/codereview |
TableCell newCell = new TableCell();
newCell.ID = "Cell" + i.ToString();
newCell.Style.Add("BORDER", "thin solid");
**newCell.Style.Add("overflow-x", "scroll");
newCell.Style.Add("overflow-y", "scroll");**
newCell.Style.Add("WIDTH", "20px");
... | stackexchange/codereview |
We have a small app with Restlet on the GAE server and GWT and Android clients. Restlet serves GWT-serialized replies to GWT clients and JSON to Android clients.
All is ok with GWT-serialization both locally and on AppEngine production servers.
All is ok with Android (JSON) clients talking to local dev server.
Android ... | stackexchange/codereview |
Why is that the object has to be serialized or be Parcelable in order to be passed to an Intent ?
| stackexchange/codereview |
I have been C/C++/VBNET programmer for a long time. Now Ruby advanced concept is attracting me. So I decided to learn how to use it.But the "Behavior" of Ruby used to confused me. I usually feel like can't completely control my Ruby program.
Can you help me get clearly about this ?
(Maybe some of your favorite guide a... | stackexchange/codereview |
We filmed a spokesperson on a green screen and have the video files ready in multiple formats.
With Flash we could use the wmode transparent within the param and embed tags, but is there something similar to this with the video and source tags in HTML5? Is it even possible to properly save .m4v or .ogv videos so that ... | stackexchange/codereview |
Does anyone know how to pass values from adynamically created gridview checkboxes to a crystal report?Is it possible? I am using asp.net, vb.net and mssql. Here's my grid minus a few boundfields:
<asp:gridview id="grid" runat="server" autogeneratecolumns="False" cellpadding="4"
forecolor="#333333" gridlines="None"... | stackexchange/codereview |
I'm not sure what would be the easiest way to do this. I need to be able to detect what users are online on my website. So when people are viewing a thread or something it will say next to the users name if they are ONLINE or OFFLINE. And at bottom of forum index it will say all the users who are online.
What would be ... | stackexchange/codereview |
In my domain Model I have a Person object that has a number of properties which I have decorated with Validation Metadata:
[Required(ErrorMessage = "First Name Required")]
public string FirstName { get; set; }
[Required(ErrorMessage = "Age Required")]
public int Age { get; set; }
My Controller returns a collection of... | stackexchange/codereview |
So, what i'm trying to do is adding a Javascript snippet in wordpress admin new post page, so that when i click a button it fills up the CONTENT textarea where the body of the post goes. Adding it is not a problem, i've already done this, but for some reason filling up the content field doesn't work.
The textarea from ... | stackexchange/codereview |
I have a problem with encoding in java applet. When I am running it in NetBeans, russian characters in applet are ok. No encoding problems. But, when I am running the same applet through browser, then my russian characters are shown as squares(encoding problem).
Where is the problem?
I have russian translations in .pr... | stackexchange/codereview |
I am trying to develop an android application (targeting versions 2.1/2.2) which requires the tracking of Path x,y coordinate points and am having a hard time. The basics of the app are similar to FingerPaint, except first a separate thread draws some lines using a Path drawable onto a canvas, then the user tries to d... | stackexchange/codereview |
Can any one tell me what would me the CAML query for the following condition
[[Col1=22 And Col2=23] OR [Col3=Yes] ] And [ [Col4=16] OR [Col5=56 ] ]
Where Col1,Col2,Col3,Col4,Col5 are the columns of my list and 22,23,Yes 16 And 56 are some mock values.
Thanks in advance!
Sachin
| stackexchange/codereview |
currently i am designing a shopping cart in Zend Framework.
I decided to write code for user/roles/product catalog from scratch which i have already done and tested. But for other things i need you guys to guide me which are the best classes/libraries to build this system system.
I need following functionality as
Orde... | stackexchange/codereview |
I am implementing a MKMapView based application. In that I am using a custom image instead of displaying a pin by using MKAnnotationView.Image property.
It is working fine. But I had a problem with pin display it is showing in the ocean. When I used default pin it works fine. I don't know what is the problem.
cityAnnot... | stackexchange/codereview |
When I 'Build and Analyze" this code in Xcode, I get a warning that I don't understand. Here's the method with the problem:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch * touch = [touches anyObject];
CGPoint location = [touch locationInView:self];
CGPoint relativePosi... | stackexchange/codereview |
I have the following structure:
public enum MyTypes
{
Type1 = 1,
Type2 = 2,
Type3 = 3
}
public abstract class class1
{
int id;
string name;
MyType type;
}
public class class2 : class1
{
}
public class class3 : class1
{
}
public class class4 : class1
{
}
now what I want to do is to make a ... | stackexchange/codereview |
Hey Friends, Please help me. See, I have created lots of sites in .net from a long time, bz i just know .net and mvc, mvc2. but every time google not support my sites, when i launch google come and got my site pages fastly but after that google just come everyday only my site homepage that's it. I don't know what the r... | stackexchange/codereview |
What is the most straightforward way to add a black button with white text in a WinForms Application? Simply setting the BackColor to black and the ForeColor to white the button border remains as before.
Do I need to subclass the System.Windows.Forms.Button class and take control of the OnPaint() drawing?
Thanks.
| stackexchange/codereview |
I have list activity with custom array adapter and I can't to get context menu when make long press on list item.
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<FrameLayout
android:id="@android:id/ta... | stackexchange/codereview |
I have a ListView which is defined in a layout XML. I have another XML whcih defines TextViews that are elements in each of the items in the ListView and in code use the 'inflator' mechanism . There are 3 TextViews named top, middle and bottom. During the runtime life of the ListView I change some text in the bott... | stackexchange/codereview |
Im writing a basic AVL tree that holds Objects, im having a Stackoverflow error (lol) in my code to recurse through the tree to get the height of the current node. I dont think my height code is actually the problem so much that my rotation causes my height code to have the problem.
So what I do is I recurse through th... | stackexchange/codereview |
I am developing a website and everywhere i have this annoying problem... I wonder how other sites dont have this problem... any suggestion?
stackoverflow has this problem as i see...
http://inath.gr/ this site for example at the top menu although it has <a> tags there is no rectangle arround it when selected somehow..
| stackexchange/codereview |
How to put image background on JPANEL?
JPanel pDraw = new JPanel(new GridLayout(ROWS,COLS,2,2));
pDraw.setPreferredSize(new Dimension(600,600)); //size of the JPanel
pDraw.setBackground(Color.RED); //How can I change the background from red color to image?
| stackexchange/codereview |
How can I get the computer's name on a Mac? I'm talking about the same name as the one you can find in System Profiler under "Software".
| stackexchange/codereview |
I need to write a command line tool that records the boot process information in Linux, and then renders it in a chart format (a textual chart would do). How do I programmatically obtain the this boot process information? Languages that I am allowed to use are C and C++.
Thanks in advance. :-)
| stackexchange/codereview |
How can the platformRequest method defined in MIDP 2.1 JSR be used to open a video on a Nokia 6212 Classic?
The Forum Nokia Library states:
In Series 40, native applications are
launched with platformRequest(localapp
method. The following opens the Photos
folder in Gallery.
platformRequest("localapp://gallery/sh... | stackexchange/codereview |
category = Category.new
This isn't persisted to DB yet, so how to distinguish form an object that is saved in the database?
| stackexchange/codereview |
When i post something with " to a php page, it gets escaped with \" ; . To get rid of this in the php file, i've tried str_ireplace, htmlspecialchars_decode and stripslashes, nothing is working. Is there a way i can strip it out after it's returned to the js file?
| stackexchange/codereview |
what i am trying to do: the user selects start and destination on a map and then from their coordinates i want to show the closest point location from a list of locations on map. i have a simple Sqlite database containing the longitude,latitude and name of the possible locations.
i did some research and this is what i ... | stackexchange/codereview |
Is there a simple way to write a kind of wrapper script or patch for updatedb (or locate) such that locate can find user defined extended attributes (tags) (suppose in an ext3 filesystem, mounted with user_xattr option), too?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.