instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
How to post data from a flex file to a php file? I am not able to create an action.
| stackexchange/codereview |
Is there a way to do a project wide search and replace in netbeans? It seems like there should be, but I can not find any information on it.
Thanks
| stackexchange/codereview |
I have data as follow
DECLARE @tmp TABLE(cid int, colspan int, rowspan int, corder int)
INSERT INTO @tmp
SELECT 1,2,null,1
UNION
SELECT 2,null,null,2
UNION
SELECT 3,null,null,3
UNION
SELECT 4,3,null,4
UNION
SELECT 5,null,null,5
UNION
SELECT 6,null,null,6
UNION
SELECT 7,null,null,7
I want to query to return
cid colsp... | stackexchange/codereview |
I'm adding a toolbaritem with a child toolbarbutton to <toolbarpalette id="BrowserToolbarPalette"> in a browser overlay for a Firefox extension which I'd like to be displayed by default when the extension is first installed.
What's the best way to do this?
| stackexchange/codereview |
Is there a reason that all of the audio javascript libraries I'm finding (jPlayer, SoundManager 2, etc.) try to use HTML 5, and if that doesn't work attempt to use Flash but then don't fall back to anything else? Why wouldn't they try to fall back to the default HTML sound tags like <embed>, <object>, or <bgsound>?
Is... | stackexchange/codereview |
I have a Django form setup using GET method. Each value corresponds to attributes of a Django model. What would be the most elegant way to generate the query? Currently this is what I do in the view:
def search_items(request):
if 'search_name' in request.GET:
query_attributes = {}
query_attributes[... | stackexchange/codereview |
I have an issue with cake's auth that I simply can't seem to get past (i've been debugging and trying different tutorials for the last two days). As far as I can see it should be very simple, the problem is whenever i try to login, it just refreshes the login page. I cannot for the life of me figure out why! My only co... | stackexchange/codereview |
$(function(){
$(".first").click(function(){
$(".first ul li").slideUp();
$(this).find("li").slideDown();
});
});
How can I make the active .first element temporary unclickable until its class siblings are referred as active and of course executing the code above is necessa... | stackexchange/codereview |
I have a static List in a class that will be accessed by different threads, each one adding, reading and removing its own unique item from the list. I would like to know if I have to worry about making this variable thread safe, as even though the same List object is shared between threads, they only modify their own u... | stackexchange/codereview |
I am building an module for an application that is based on MVVM, CAL and PRISM. I'm fairly new to these concepts, and trying to get my head around all the patterns and right now I'm struggling with the following problem:
I am in the need of creating multiple instances of the same View. Each one of the views need to b... | stackexchange/codereview |
is it possible to edit the arrow which we get in the select tag (Rails)
I want to replace the arrow which we get in the select tag(drop down element) with my own image..
Is it possible to do the same?
| stackexchange/codereview |
There's Callable<V> in JDK which is producer interface, is there consumer interface in JDK?
Question rationale: I'm writing executor which accepts 2-phase tasks: 1st phase is producing data, 2nd phase is consuming of that data. In between these 2 phases I could like to cancel task (i.e., to not performing consumption... | stackexchange/codereview |
I wrote:
a:
-b
-c
Parser understood it as:
!!map {
? !!str "a"
: !!seq [
!!str "b",
!!str "c"
]
}
But I meant:
!!map {
? !!str "a"
: !!null ""
}
!!seq [
!!str "b",
!!str "c"
]
The specification says:
The “-”, “?” and “:” characters used
to denote block collection entries are
perceive... | stackexchange/codereview |
How can I assign a variable to content attr of dojo.xhrPost dynamically ? Below is the code and some explanation for my scenario:
Code with hard coded values for content
dojo.xhrPost({
url: /esturl/,
handleAs : "text",
content : {INST1 : '{"0001" : "aa"}',
INST2 : '{"0002" : "bb"}',
INST3 : '{"... | stackexchange/codereview |
<body>
<script type="text/javascript">
function name(firstname)
{
alert("Your firstname: " + firstname);
}
</script>
<form>
<input type="button" value="Do it" onclick="name('aaron')"/>
</form>
</body>
This will not work in Chrome/IE8. IE8 states Object doesn't support this action. It has to ... | stackexchange/codereview |
I'm trying to get a Qt app compiling for Mac running Snow Leopard, using Qt Creator 2.0.1 and Qt 4.7.0 (64 bit).
The app compiles on other platforms, but on my Mac I get this warning
:: warning: directory
'/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib'
following -L not found
This is a new insta... | stackexchange/codereview |
can any one tell me the difference between vb.net web apps and c# .net webapps y most of the apps are done in c# rather than vb.net
| stackexchange/codereview |
I have a struts application being used on handheld devices running Windows CE 4.2/5.0.
We needed the functionality of another app in this one, and the solution was to pop up a window to the other app (using window.open()), run the process, and then close the window to return to the original app.
Normally our apps alway... | stackexchange/codereview |
Consider a web page with of links to files. FlashGet's normal operation is by right-clicking, and selecting from the context menu.
I want to make it easy to launch FlashGet, and make a selection of file type to my desired file type without downloading any other resources being linked to.
For example, my desired file t... | stackexchange/codereview |
I've got a set and I want to find the largest number not greater than x in it. (something like lower_bound(x) ) how should i do it? Is there any predefined functions?
set<int> myset;
myset.insert(blahblahblah);
int y;
//I want y to be greatest number in myset not greater than x
| stackexchange/codereview |
What is the best practise for storing a large number of files that are referenced in a database in the file system?
We're currently moving from a system that stores around 14,000 files (around 6GB of images and documents) in a MySQL database. This is quickly becoming unmanageable.
We currently plan to save the files by... | stackexchange/codereview |
I have a C++ program I am trying to optimize.
Since I want it to run fast, I am not using a lot of function calls. Most profiling tool I have seen can give you profiling info in a function-call resolution. However, I would like it in a line-by-line resolution. Is there some option like this?
I am using Visual Studio 2... | stackexchange/codereview |
I was thinking about the way linq computes and it made me wonder:
If I write
var count = collection.Count(o => o.Category == 3);
Will that perform any differently than:
var count = collection.Where(o => o.Category == 3).Count();
After all, IEnumerable<T>.Where() will return IEnumerable<T> which doesn't implement Coun... | stackexchange/codereview |
I have a very strange issue in my WPF project. The main window contains several wpf controls and winforms RichTextbox(don't ask me why) within WindowsFormsHost element.
Richtextbox contains text. In some cases Richtextbox is not properly rendered when loading window (the right part is white like somebody uses erase too... | stackexchange/codereview |
I have two classes representing menu items.
First one is Category, it represents the parent menu items.
@Entity
@Table(name = "category")
@NamedQueries({
@NamedQuery(name = "Category.findAll", query = "SELECT c FROM Category c"),
@NamedQuery(name = "Category.findByCateId", query = "SELECT c FROM Category c WHER... | stackexchange/codereview |
I am trying to parse some word documents in java. Some of the values are things like a date range and instead of showing up like Startdate - endDate I am getting some funky characters like so
StartDate ΓÇô EndDate
This is where word puts in a special character hypen. Can you search for these characters and replace the... | stackexchange/codereview |
public string Foo(object obj) {
return null;
}
public string Foo(string str) {
return null;
}
var x = Foo((dynamic) "abc");
Why is x dynamic, compiler not smart enough or I miss something important?
| stackexchange/codereview |
Can anyone please tell me why word-wrap: break-word will not work in IE8?
I have this working in other browsers but IE8 refuses to listen despite reading this post on their site?
http://msdn.microsoft.com/en-us/library/ms531186(VS.85).aspx
Thanks
| stackexchange/codereview |
I am creating a webApp that will download some data from Yahoo Finance into a CSV file and then (hopefully) be able to then read the created CSV data into a HTML table.
I have successfully got the program to connect to the Yahoo feed and then download that data into a CSV file and would not like to use the data from th... | stackexchange/codereview |
How would I go about selecting the data of each title from the following JSON?
I have the JSON decoded, but I'm not sure how to select the part I want.
{
"responseData": {
"results": [
{
"title": "Justin Giesbrecht 749",
"titleNoFormatting": "Justin Giesbrecht 749... | stackexchange/codereview |
A python program I created is IO bounded. The majority of the time (over 90%) is spent in a single loop which repeats ~10,000 times. In this loop, ~100KB data is generated and written to a temporary file; it is then read back out by another program and statistics about that data collected. This is the only way to pass ... | stackexchange/codereview |
I've problem regarding to UI freezing when I pressed a button that try
to change NSPredicate for Core Data fetch object it will hang for a while before
it shows all of the data. This is especially when loading a tons of retrieve data.
As other app that load a lot of processing by pressing a button.
How do I should ma... | stackexchange/codereview |
I'm trying to select a div with the id "about me". I think I am having problems because of the spaces.
alert($link.attr("title"));
I get "about me"
alert($('#'+$link.attr("title")).attr("title"));
I get undefined.
I have tried to use php and jquery methods for removing them but it doesn't work.
So how do I get aroun... | stackexchange/codereview |
I have a UILabel and a UISlider in my app and I have it hooked up in a way that when the user changes the value of the slider and then let's go, the UILabel gets updated with the new double value.
I need to know how to update the label as the user slides the slider and not only when they let go.
| stackexchange/codereview |
can any one give the demo
how to implement facebook like box( single sign - on) and twitter's tweets for a web application using .net(c#)
| stackexchange/codereview |
I am adding Linearlayout dynamically and adding 3 TextView getting the content from webservices for text view if the content of 3 text size is larger it will display in the end of next line .i want display in start line how can i do?
Thanks
| stackexchange/codereview |
My MySQL looks like this: (the name of the table is category)
'id', 'content', 'parent'
where:
id = the id of the category
content =
some-text-we-dont-care-about
parent = the id of the parent
category
this is what I'm trying right now:
function remrecurs($id) {
$qlist=mysql_query("SELECT * FROM category WHERE pa... | stackexchange/codereview |
Could someone please explain the purpose of this option and what exactly it is for.
It looks like the default is on my eclipse installation is 3.0 but it wont run on a Tomcat 5.5 server and probably not Tomcat 6.0
Is it related to the servlet spec that the Tomcat server supports? If so which version do i need to use f... | stackexchange/codereview |
In my project we use UnitTests (MsTest). We run them manually and in the build script.
But for some environments where we deploy manually.
We are in the need of having some smoke tests. At the moment I made this smoke tests "manually" (Login, create an user, create a licence, create a product, etc).
I know I can run u... | stackexchange/codereview |
The default behavior for a regular rails form that has errors is to 1) list the errors in a div, with the text coming from errors_for and 2) to place a div around the offending inputs with a red border. This question is concerning #2.
I'd like to know how rails goes about applying that div with the red border.
I'd lik... | stackexchange/codereview |
I have a set of textures which I need to draw at different vertices such that every texture is visible.I cannot define a static set of vertices since I load the textures dynamically and I dont know how many textures will be loaded everytime ( i choose them based on a condition).
This is how my code looks as of now.
for... | stackexchange/codereview |
Preparing a proposal for my team, I have the obvious ones.
Ibatis is retired, no more fixes/enhancements.
Hibernate is the de-factor standard.
Hibernate has more/better documentation.
What would add or take away from the proposal?
Thanks
| stackexchange/codereview |
I have a data set in the following pattern
1<a href="/contact/">Joe</a><br />joe.doe@somemail.com</div>
2<a href="/contact/">Tom</a><br />tom.cat@aol.com</div>
3<a href="/contact/">Jerry</a><br />jerry.mouse@yahoo.co.in</div>
So on...
I need to extract the name and email id alone from it. How do I do it?
Update:
Base... | stackexchange/codereview |
What is the best way to make a menu of options in wp7? (Not a context menu or app bar.) Currently I'm using a ListBox of strings, but I'm not sure if that's the way to go.
I'm also not entirely sure how to make make the ListBox entries respond to tapping such that they navigate to another page.
| stackexchange/codereview |
I’am starting a personal web project. Which I hope it grows fast. It will do a lot of text inserts and searches in this project. So it seems MongoDB a good option. But of course there is not a hosting of asp.net and mongoDB. Also I do not want to expend a lot of money, at the beginning.
So I have the idea of contract ... | stackexchange/codereview |
I have this:
<meta name="description" content="NEED_TO_UPDATE_THIS" />
<meta name="keywords" content="" />
and i need to update the content of meta tag that has the name="description" using jQuery. How can i use the selectors to choose that content atribute of that tag?
thanks
| stackexchange/codereview |
I've started learning enfinity suite and wonder if it's a good e-commerce solution. So far I've noticed that it's extremely heavyweight (as to me, who never worked with any ecommerce soft) and lacks qualified support.
P.S.: Answers of those who tried Enfinity before are greatly appreciated.
| stackexchange/codereview |
I'm attaching a PNG image to an e-mail with the following code:
ContentValues values = new ContentValues();
values.put(MediaStore.Images.Media.TITLE, title);
values.put(MediaStore.Images.Media.DESCRIPTION, title);
values.put(MediaStore.Images.Media.MIME_TYPE, "image/png");
Uri uri = activity.getContentResolver().insert... | stackexchange/codereview |
Could anyone point me towards a method of cycling a binary file in Python? I have a file full of 4 byte integers basically and when the file reaches a certain size, i.e. a certain number of values have been written, I want to start removing one from the start and adding one at the end.
I'm still reasonably new to Pytho... | stackexchange/codereview |
I've been looking around for a while and haven't quite found what I've been looking for.
My web page stores reports, and the user has the ability to save these reports.
I'm looking for a method, using jquery or the javascript onunload/onbeforeunload to ask the user if they wish to save the report or continue without sa... | stackexchange/codereview |
I have a dot net windows service project which contains multiple services. This has now reached our deployment engineer who installs all his services using an automated script. The script uses SC.exe to create the services, he doesn’t use intallUtil. Unfortunately, from what I can see, SC.exe only ever creates a regist... | stackexchange/codereview |
Does anyone know a simple way to check if two polygons, especially rectangles, are colliding? I found a simple way to see if two are touching by just checking if any lines on the two rectangles are colliding, but this will not work if one polygon is in another. Does anyone know a more efficient way to do this or just... | stackexchange/codereview |
On iphone - how can you tell if you can send a txt - ie if you are in cellphone range
[MFMessageComposeViewController canSendText] actually seems to mean "Could I send a txt if I was in range"
and
CTTelephonyNetworkInfo *carrierInfo = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = carrierInfo.subscribe... | stackexchange/codereview |
It is gone now, but for a long time the "advanced problems" page at the hibernate website was:
http://www.hibernate.org/117.html
Why was it 117.html? Was there some sort of significance to this particular number?
| stackexchange/codereview |
I have been looking for weeks for a way to do this:
Screenshot http://img229.imageshack.us/img229/2430/screenshoteor.png
I am working on a music player, and would like something like this:
Library >
Music (6)
Videos (2)
Playlists >
new playlist...
And so on. I am using m... | stackexchange/codereview |
Given a decimal x, I want to test if x is within 10^-12 of a rational number with denominator 9999 or less. Obviously I could do it by looking at x, 2x, 3x, and so on, and seeing if any of these is sufficiently close to an integer. But is there a more efficient algorithm?
| stackexchange/codereview |
I have some data which represents a sizes of particles. I want to plot the frequency of each binned-size of particles as a histogram, but scale the frequency but the size of the particle (so it represents total mass at that size.)
I can plot a histogram fine, but I am unsure how to scale the Y-axis by the X-value of ea... | stackexchange/codereview |
When I make some P/Invoke or COM InterOP, I often bump into the IntPtr. So here is a couple of questions:
Everyone said that IntPtr is a struct, so what's in it? I can only think of an 32bit/64bit integer which is the address it points to. Anything else?
Where is the IntPtr located? If it is a struct, I believe it sho... | stackexchange/codereview |
My webserver returns an json response to any ajax request no matter what. If the response was a success, it returns the json with the status code of 200. If there was something wrong, it'll return the json with a status code of 400 or 500. I need to get that information, even if the request is a 400 or 500 because the ... | stackexchange/codereview |
Introduction
When clicking on the css tab on Firebug, there is an option available called "Expand Shorthand Properties"!
A typical css rule like the following:
border-left:2px solid #7FA100;
..is converted into the "Expanded" version like so:
border-left-color-ltr-source:physical;
border-left-color-rtl-source:physical... | stackexchange/codereview |
I am looking for an efficient way to determine if a set is a subset of another set in Matlab or Mathematica.
Example:
Set A = [1 2 3 4]
Set B = [4 3]
Set C = [3 4 1]
Set D = [4 3 2 1]
The output should be: Set A
Sets B and C belong to set A because A contains all of their elements, therefore, they can be deleted (the o... | stackexchange/codereview |
I have a program that shows a lot of data, and I am wondering what the best way would be to get and set the values of the labels in windows from other classes.
Update: I am basically wondering about this:
private string _name;
public string Name
{
get
{
return _name;
}
set
{
_name = ... | stackexchange/codereview |
Hei, I have a method from a class in a custom library which I would like to restrict to be called only on a specific page, somehow using conditional methods. The problem is that I need a return value and conditional methods do not allow return other than void or 'out' parameters.
Using a void method it works fine, but ... | stackexchange/codereview |
I created a lightbox script. One javascript issue remains and it is driving me crazy.
The source is to be found at http://github.com/Wolfr/Wolf-lightbox
In IE6, when you click the image, the modal box position is wrong the first time you click the modal. If you close it and click it again, the modal is positioned corr... | stackexchange/codereview |
Can Hudson CI tool solve project dependencies others than trivial ones?
For example, how can I set up scenario in which there are two independent modules (A, B) and module C dependent on A and B?
There's no way in my opinion:
"Build others project" doesn't guarantee that A, B are built before C
"Build after other proj... | stackexchange/codereview |
I am using the following SQL to select records from MySQL database:
SELECT * FROM cms_product WHERE id IN (3,22,1);
The results order equals "ORDER BY id ASC", so as in example records 1,3,22 are returned. How can I get them ordered in the exact way as typed in IN clause? So ordered as 3,22,1 ? Thank you.
| stackexchange/codereview |
In my Redis DB I have a number of prefix:<numeric_id> hashes.
Sometimes I want to purge them all automatically. How do I do this without using some distributed locking mechanism?
| stackexchange/codereview |
I have used Auth component in my cakephp site. I want to check whether auth session is there or not from controller.
Please help.
| stackexchange/codereview |
I am planning on creating a tip page that pops up with directions on how to use the app, and can be turned off with a checkbox. I imagine that in order to save the state of the checkbox's selection, I need top store it as a boolean somewhere on the system. Would this be done in something like a txt file stored locall... | stackexchange/codereview |
I have the following code in a word 2007 macro where I populate a dropdown with customer names from an excel spreadsheet
Private Sub UserForm_Initialize()
Dim i As Integer
Dim cn As ADODB.Connection
Dim rsT As New ADODB.Recordset
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionStr... | stackexchange/codereview |
I am just starting php. I am just curious if there is a better way to do this. This displays all of my scripts in the same folder as this script.
I am not sure if it is standard to use the exec command. It does not seem very portable.
<html>
<head>
<title>My PHP Practice Scripts</title>
</head>
<body>
<cen... | stackexchange/codereview |
I'm part of a team that operates a portal for our company. There are ~200 small, what we call applications, inside of the portal. One may be to submit receipts, another to submit a timesheet, another to see activities going on, etc.
Each of these applications is fairly separate from the others, so we've created indiv... | stackexchange/codereview |
I want to play a recorded movie as my webcam? How can i do this , i am a Delphi programmer it's necessary to write a device driver ?
I am waiting for ideas on getting this task done.Thank you!
| stackexchange/codereview |
I have a client that wants to insert videos, images, form elements, etc. into his text while also keeping html elements that tinymce generates.
One thing thing that came to mind is to create special tags that lets him do this, and then use a transformation engine that takes the input -> output.
So for a video tag, it c... | stackexchange/codereview |
I'm using Sortable jQuery UI to allow users to drag and drop table rows. This allows users to rank items in a table based on their preference. Once a user has finished ordering his list, they press a save button which executes an Ajax call. The new rank is saved into the database and the table highlights briefly.
I hav... | stackexchange/codereview |
I am relatively new to the Mate framework, but so far really like what I see. My application makes a lot of use of the <RemoteObjectInvoker> tag to call my BlazeDS/Java service methods on the back-end.
However, it is bothering me that I must enter the string name of hundreds of remote methods into my EventMap because... | stackexchange/codereview |
I'm trying to put a Google map in my page and make it so that when the page loads the map will display exactly the location of the user. In order to do so, I've taken the google maps API code and inserted it into my HTML5 page. At first the browser did ask for permission to share my location but it isn't actually showi... | stackexchange/codereview |
I'm trying to build an invitation system with CakePHP. I have Invitation model which hasMany People, and Person hasOne and belongsTo Invitation. I believe the relationships are working, since my Invitation index view can properly access and display its associated People through the Invitation model. But heres what the ... | stackexchange/codereview |
How to check whether the id from one table is in another table in the same database. If it is then the row should not be returned.
table1:
id int(11) unsigned primary key,
data varchar(25) default ''
table2:
id int(11) unsigned primary key,
tableone_id int(11) unsigned,
another_data varchar(11) default''
the query chec... | stackexchange/codereview |
I'm writing a Groovy script (as part of a Grails plugin) and I want to get a list of properties for a GrailsDomainClass that a user of my plugin might define. I can do this using domainClass.properties (where domainClass is a GrailsDomainClass).
However, suppose a user has the grails domain class:
class Example {
... | stackexchange/codereview |
I am currently trying to setup our complete development process (from dev to production).
We will be using Microsoft Team Foundation Server and I was wondering if there was way to put what version of programs you want in a build.
Let's say we are 20 programmers working on the same project and we only want to deploy cha... | stackexchange/codereview |
Due to my company's policy of using Eclipse and using Eclipse's code-autofix, the following code pattern appears excessively in the codebase:
InputStream is = null;
try {
is = url.openConnection().getInputStream();
// .....
} catch (IOException e) {
// handle error
} finally {
if (is != null) {
... | stackexchange/codereview |
Tried thus query with "SELECT *" instead of "DELETE FROM" and it worked perfectly.
DELETE FROM `80dage_garmin_track` t1 WHERE EXISTS (
SELECT 1
FROM `80dage_garmin_track` t2
WHERE t1.Length = t2.Length
AND t1.Time = t2.Time
AND t1.idgarmin_track > t2.idgarmin_track
)
MySQL Error:
.#1064 - You have an error in your... | stackexchange/codereview |
I'd like to supply my own background to a movie playing on the iPhone, for example a single-color background, a picture, the images from the camera.
Is it possible to play a movie with a transparent background on the iPhone, and if yes, how?
| stackexchange/codereview |
I have an entity with several Many to One relationships and I've found I can eagerly fetch them in one query like such:
public Accommodation GetEager(int id)
{
IList<Accommodation> query = NHibernateSession.CurrentFor(NHibernateSession.DefaultFactoryKey)
.CreateQuery(@"
select a from Accommodation a... | stackexchange/codereview |
I want to translate the default form validation messages in symfony, like
'required' => 'my own text'
Is there a way to do this? I searched in google, but haven't find anything useful. The XLIFF files are not working for me. :(
OR
Is there a way, to set default validation messages for like 'required' fields?
| stackexchange/codereview |
According to the Moose best practices doc, my Moose classes should look like this:
package Person;
use Moose;
use namespace::autoclean;
# extends, roles, attributes, etc.
# methods
__PACKAGE__->meta->make_immutable;
1;
See Moose::Manual::BestPractices.
And 99% of the time this is what I want, so is there some way... | stackexchange/codereview |
Is there any advantage defining an array's size to be a multiple of 8, if using 64 bit UNIX OS? I am intended to use this array for loading data from shared memory. So dependencies may exist on the operating system and the page size.
| stackexchange/codereview |
How can I check if the return type of a function is IEnumerable<T>? In other words, I don't want to match List<T>, even though it implements IEnumerable<T>. Or put even another way, how can I detect if a function has deferred execution?
| stackexchange/codereview |
So Im reading a csv file and splitting the string with "," as the deliminator
but some of them have quotes as to not split the specific field because it has a comma in it.
1530,Pasadena CA,"2008, 05/01","2005, 12/14"
with just comma it would be:
1530
Pasadena CA
"2008
05/01"
"2005
12/14"
I need it to take commas into c... | stackexchange/codereview |
im trying to create a generic gallery application that uses a database, with the abilitiy to upload images from the website, using microsoft's visual web developer.
-- im fairly new with databases and asp.net but am getting the hang of it i think ><
most of the examples i see are one mdf file with several tables. but i... | stackexchange/codereview |
I've tried to import a csv file into a database by tweaking the modelform inside the admin doing this:
models.py:
class Data(models.Model):
place = models.ForeignKey(Places)
time = models.DateTimeField()
data_1 = models.DecimalField(max_digits=3, decimal_places=1)
data_2 = models.DecimalField(max_digits... | stackexchange/codereview |
What I need to do is open a text file with 0s and 1s to find patterns between the columns in the file.
So my first thought was to parse each column into a big array of bools, and then do the logic between the columns (now in arrays). Until I found that the size of bools is actually a byte not a bit, so i would be wast... | stackexchange/codereview |
For practice, I've been working on a compressor which does the find-repeated-parts, make-dictionary, compress-with-huffman codes thing.
It's not really working.
One of the problems is, for some reason my sorting algorithm drops keywords from the dictionary. I think the problem is in the swap routine, but I'm not sure... | stackexchange/codereview |
Does Googe Guava for Java have a Function inner class with a void return value, like C#'s action? I'm tired of making a bunch of Function<Float, Integer> with meaningless return values.
| stackexchange/codereview |
In my table I have firstname and last name. Few names are upper case ( ABRAHAM ), few names are lower case (abraham), few names are character starting with ucword (Abraham).
So when i am doing the where condition using REGEXP '^[abc]', I am not getting proper records. How to change the names to lower case and use SEL... | stackexchange/codereview |
Possible Duplicate:
90 days range using SQL server
I am trying to get the counts 90 days prior to the operational date and the counts 90 days after the operational date. For example, my operational date is 4/1/2004. So,90 days prior to 4/1/2004 is (1/2/2004 to 3/31/2004) and 90 days after (including 4/1/2004) is 6/2... | stackexchange/codereview |
Just wondering what is the best way to display a barcode given a string on the iPhone. I have looked over stackoverflow and google and a few people have different ways each requiring a decent amount of work (I think) and also slightly old so I wanted to get it right first time.
One way I've read is using a custom font ... | stackexchange/codereview |
I'm attempting to get values from a webservice.
The responce is formated as..
<campaign Id="200"> <name> test </name> </campaign>
PHP Code
SoapClient( "WSDL");
$return = $client->GetCampaigns('Username', 'Password' );
Yet when I attempt to access the return, I get just a stdClass with the name attribute..
public ... | stackexchange/codereview |
I have a ListView with custom items - 3 ImageViews and a TextView. I have a call to setItemsCanFocus(true), so I can make the ImageViews clickable. I'm currently using SimpleAdapter to populate the View.
I'd like to trigger the AdapterView's onItemClick event when one of those subviews is clicked. The onItemClickListen... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.