instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
$sql = "SELECT * FROM table";
$result = mysql_query($sql);
while($row = mysql_fetch_row($result)){
// PRINT COLUMN NAMES WITH EMPTY VALUE
}
how can i do this?
thanks
| stackexchange/codereview |
#include <stdio.h>
#include <string.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
int main (void) {
char buff[256];
int error;
lua_State *L = lua_open(); /* opens Lua */
luaL_openlibs(L);
while (fgets(buff, sizeof(buff), stdin) != NULL) {
error = luaL_loadbuf... | stackexchange/codereview |
typedef unsigned char uChar;
typedef signed char sChar;
typedef unsigned short uShort;
typedef signed short sShort;
typedef unsigned int uInt;
typedef signed int sInt;
typedef unsigned long uLong;
typedef signed long sLong;
I have a list of typedefs so when I define variables, I can be exact. For instance, if I onl... | stackexchange/codereview |
When the Android phone is on its side (horizontal orientation), the Roll represents the tilt, so to speak. When the phone is perpendicular to the ground (looking directly at the screen), the roll says 90. However, when you start tilting it forward or backward, as if you wanted to look down or up, the angle just decre... | stackexchange/codereview |
I have the following javascript code:
<script type="text/javascript">
$(function () {
var currentDateTime = new Date();
var oneYear = new Date();
oneYear.setYear(oneYear.getYear() + 1);
alert(currentDateTime + "_" + oneYear);
});
</script>
i would expect the alert to output the ... | stackexchange/codereview |
Is it possible to have a templated class and also templating the constructor with some other type?
something like this:
template<typename T1>
class Foo{
template<typename T2>
Foo(T1 aBar, T2 dummyArgument){
bar = aBar;
bytesOfT2 = sizeof(T2);
};
int bytesOfT2;
T1 bar;
};
is this po... | stackexchange/codereview |
I'm struggling to get a simple CMS website up and running but can't get past the installation stage. I've been working on this off and on over 4 days and am getting burnt out and demotivated on the project.
To summerise my pains: I keep getting Redirect loops and FCGI timeouts no matter what I do. Unfortunatly I've nev... | stackexchange/codereview |
On the iPhone, we can simply use (void) viewDidAppear:(BOOL)animated; to perform actions when a view becomes the focus. In some events, we have a modal view with another modal view on top of it and, on the iPhone, closing the topmost modal view will fire the viewDidAppear for the lower modal view.
This is not the case ... | stackexchange/codereview |
How to declare explicit a member of a interface?.i.e:
public interface IPerfil
{
int IDPerfil
{
get;
set;
}
int IDMarca
{
get;
set;
}
int IDRegional
{
get;
set;
}
... | stackexchange/codereview |
How can you create a route that accept an undefined number of strings?
The folder browser should be able to browse the specified folder and all the sub folders. Using JQuery to get the folders back from the server. The problem is how to build the JQuery?
$.ajax({
type: "POST",
url: "http://localh... | stackexchange/codereview |
I've got Devise working in my Rails app but I can't figure out how to now lock it down so a user can only edit their own record in the users table AND in tables belonging to the user.
What am I missing here? Is this done in the controller or the model?
| stackexchange/codereview |
I have a web-app, which I deploy on Tomcat 6 and it uses Hibernate.
It receives messages on a JMS queue which trigger changes both to my DB, via Hibernate and to an Object of mine (Agent).
The web-requests also access the DB, via Hibernate, and access the shared object (there's a ConcurrentHashMap<AgentId,Agent> held b... | stackexchange/codereview |
So ECMAScript 5 introduces some incompatibilities with ECMAScript 3.
Example:
Many articles have been written stating that this === null || this === undefined is possible in ES5 strict mode:
"use strict";
(function () {
alert(this); // null
}).call(null);
But, what the standard really suggests is that ES5 engines... | stackexchange/codereview |
I want to create pkcs12 private and public key files in c# .net
I want to do this really without having to use makecert.exe or any external programs.
Does anyone know any .net library’s to do this with or any resource so i could create the files myself?
Thanks
| stackexchange/codereview |
I have created a View Model in Silverlight. This View Model has an event defined as:
public event EventHandler Data_Loaded;
I want to "Raise" this event when data from a service call has been completed. This will allow my UI to respond properly. Please note, it is not just a simple binding scenario, that is why I want... | stackexchange/codereview |
When we want to split a sting for any kind of reasons, we (at least myself) tend to split using the (pipe) | character as it is very rare to find out someone or that the application uses it on a string ... but what happens if it uses?
Well, a simple Crash will be thrown :)
I found out that a college uses non-printable ... | stackexchange/codereview |
If I use Date.ToString("D") in C# then I get Sunday, October 17, 2010.
How can I get date 17 october 2010 sunday?
| stackexchange/codereview |
I have a web page on a which does some database updates (e.g. http://www.mysite.com/updates.asp). I want this page to be called automatically each day at 09:00.
I know how to schedule a task in IIS, but the process of scheduling a task requires that I select a programme to operate the task. So I'm thinking perhaps I ... | stackexchange/codereview |
I'm trying to collect some advices on error logging in java. My log file is huge and going trough it is time consuming, currently I'm grep(ing) my log looking for error(ERROR) pattern, and then looking at line which threw exception then I search/find it and check out the error.
Is there some better way of reading log f... | stackexchange/codereview |
I want to do paging outside of my Repository, but the Repository returns IList. Since I don't want to pull data unnecessarily, and don't want to create specific Paging methods in my Repositories, Is there any way to filter records by page in the Where extension method?
I want to do something like:
var myRecords = Prod... | stackexchange/codereview |
This may be a really silly question, but I've found no answer on google/bing...
If I already use NHibernate for persistence with SQL Server, why should I then create all the table-relations on the database-schema?
I'm just wondering because it seems to create all the relations, altough I already have defined them in th... | stackexchange/codereview |
Here's what I'm trying to do...
Controller
def create
.
.
if @project.save
format.js { @project }
end
end
View
window.location = "<%= redirect_to(@project, :notice => 'Project was successfully created.') %>";
In Sum,using AJAX to create a project. When the create is done, I want to redirect the user to the pro... | stackexchange/codereview |
I have a div set to the css class float with float being:
.float {
display:block;
position:fixed;
top: 20px;
left: 0px;
z-index: 1999999999;
}
* html .float {position:absolute;}
This class causes the element to stay in a fixed position on the page (the *html part is to make it work in IE). I am using javascript to s... | stackexchange/codereview |
SELECT "2 0 Analytical (Testing Phase)"
FROM "dbo"."Lab Occurrence Form"
WHERE (("Occurrence Date" BETWEEN @P1 AND @P2 )
AND ("2 0 Analytical (Testing Phase)" LIKE ''%2.%'' ) ) ', N'@P1 datetime,@P2 datetime','2010-04-30 00:00:00','2010-04-01 00:00:00'
is this the correct format to return records between a... | stackexchange/codereview |
Why the hell would I suddenly be getting this svn error when I try to import files into my repo? What does it even have to do with notepad++?
Thanks :)
C:\xampp\htdocs\projects\lab>svn
import c:/wordpress
http://tasty.unfuddle.com/svn/tasty_lab/wordpress
'C:\Program' is not recognized as an
internal or externa... | stackexchange/codereview |
I am using Yacc and lex to parse a C type language ,
I have built the data structures using c++.
everything works fine but i am not able to read the input file using yyin in main.cpp.
the following is the code :
Please help !
#include "parse_tree.h"
#include<iostream>
#include<cstdlib>
#include<stdio.h>
#include"y.tab.... | stackexchange/codereview |
As far as I understand, an URL consists of the folowing fields:
Protocol (http, https, ftp, etc.)
User name
User Password
Host address (an IP address or a DNS FQDN)
Port (which can be implied)
Path to a document inside the server documents root
Set of arguments and values
Document part (#)
as
protocol://user:password... | stackexchange/codereview |
How do I delete multiple entities without a loop? Currently, I have:
Dim itemsToDelete As List(Of Item) = (From t In _entities.Item _
Where t.Column = columnValue).ToList
For Each item In itemsToDelete
_entities.DeleteObject(item)
Next
_entities.SaveChanges()
| stackexchange/codereview |
We are developing a CRM application. All the business logic and data access go through WCF services. We have 2 options for communication between WCF and client (at the moment: ASP.NET MVC 2)
One option is create method for each operations. Example
GetCustomers()
GetCustomersWithPaging(int take, int skip)
Ge... | stackexchange/codereview |
I can use some help with a sql INSERT.
words_table contains
productid
word
product table contains
productid
description
I'd like to create a row in words_table that contains the productid and the word "foundit"
for each row in product table WHERE description LIKE '%keyword%'.
and I'm not sure how to do it.
... | stackexchange/codereview |
Suppose I have a static complex object that gets periodically updated by a pool of threads, and read more or less continually in a long-running thread. The object itself is always immutable and reflects the most recent state of something.
class Foo() { int a, b; }
static Foo theFoo;
void updateFoo(int newA, int newB) {... | stackexchange/codereview |
I need to retrieve the ID of the AUTO_INCREMENT value of the last query.
My query looks like this:
$result = $wpdb->query( $wpdb->prepare( "
INSERT INTO $table_name
( name, season, copyright, description, path )
VALUES ( %s, %s, %s, %s, %s )",
$galleryData['name'], $galleryData['season'], $galleryDat... | stackexchange/codereview |
I have seen many examples on using javascript to resize a browser window, but for me they all fail to perform that function in IE. I include my code to see if anything is wrong with it that I just don't see. The code works great in FF but that is not used at my location.
I am no javaScript expert, but I am no slouch ... | stackexchange/codereview |
Situation overview.
We have several projects used in multifunctional system.
objectAccessLibrary.dll (multiple versions)
dispatcherHandler.dll (v.1.0) (dependency:
version independent part of objectAccessLibrary.dll)
Event handlers: handler_01.dll, handler_02.dll, handler_03.dll.
Dependencies: dispatcherHandler.dll... | stackexchange/codereview |
I have a Shell class with one region. I created a module which shows,for example, a list of offices. When I choose one of offices I want to show another module where I want to transfer information about chosen office.
Questions:
what is better: to create another module or maybe to create just another view in existing... | stackexchange/codereview |
I'm writing a script that will fold, sort and count text in a file. I need to design the program so that, if it is given multiple filenames on the command line, it processes each one separately, one after the other. I think I could write a loop but I don't know that much about those yet so if possible would like to try... | stackexchange/codereview |
If I have a simple database table of names like so:
--------------
| NAME |
--------------
| Andrew |
| Bill |
| Andrew |
| Claire |
| Claire |
| Andrew |
--------------
Is it possible to run a query that would produce a tally of the names? i.e.
-----------------------
| NAME | C... | stackexchange/codereview |
Below is my Generic Binary Search. It works okay with the integers type array (it finds all the elements in it). But the problem arises when I use a string array to find any string data. It runs okay for the first index and last index elements but I can't find the middle elements.
Stringarray = new string[] { "b", "a",... | stackexchange/codereview |
I have a small problem. I am trying to check to see if status's value already exists and make sure I do not create another instance of it, but I am having some trouble. Ex. If the project status was once "Quote" I do not want to be able make the status "Quote" again. Right now, I check to make sure if the user sele... | stackexchange/codereview |
In my application user has to create a new dial up network connection in windows but i want to do this programmatically.Is there any API present in java that can help me for creating new network connection.
| stackexchange/codereview |
I'm having an issue in my program in the part that I'm loading a serialized file. I want to fail nicely if the file can't be deserialzed, but for some reason, my program will break rather than go into the catch clause. Here's my code
using (FileStream fs = new FileStream(openFileDialog1.FileName, FileMode.Open))
... | stackexchange/codereview |
I'm having problems receiving invalid non-ascii characters coming from a Delphi 7 client sending a utf-8 encoded XML to a C# WebService in a String parameter. With a .Net client, the characters are received without a problem. I've tried a lot of stuff, and nothing seemed to work, so I decided to trace the SOAP conversa... | stackexchange/codereview |
I want my Python script to be able to copy and paste to/from the clipboard via x11 (so that it will work on Linux). Can anyone point me to specific resources I can look at, or the concepts I would have to master?
Is this possible to do with the Python X library at http://python-xlib.sourceforge.net ?
| stackexchange/codereview |
I ran into this question many times ago and have seen the terms again and didn't know their real concept in computer engineering.
What do platform and framework refer to?
I see many terms like platform-independent and development platforms, and also same for frameworks, but i can't quietly understand them. Do they refe... | stackexchange/codereview |
I am trying to retrieve the data from CRM(that is on virtual machine) using WCF Service(that is on Host computer).
I am running into the below SecurityException intermittently at Service.RetrieveMultiple while I am debugging from Host and trying to connect to CRM.
Code:
QueryExpression queryIssue = new QueryExpressio... | stackexchange/codereview |
I have a small form with "name", "email", "request", "message" fields. All I want to do is highlight the borders of the input field red if the required info is missing upon submit. I want the form results emailed. Real simple.
Can anyone suggest a fast script for me?
Erik
| stackexchange/codereview |
I'm highlighting instances of a search string within a set of text. I want to preserve the case of the original text while replacing a case-insensitive match of the query. Here's what I started with:
text.replace(new RegExp('(' + query + ')', 'ig'), '<em>$1</em>');
In this case, I'd need to escape query to prevent par... | stackexchange/codereview |
I want to create std::map in STL, but the comparer depends some dynamic value which is available only at runtime.. How can I make this? For example, I want something looks like std::map<int, int, Comp(value1, value2)>. value1 and value2 are not the compared number here, they are some kind of configuration numbers.
| stackexchange/codereview |
I have the following code:
$('#smallcart .plusone').live('click',function(){
var id = $(this).attr('id');
articlenr = id.split('_')[1];
});
this works fine in FF, safari, Chrome, however in IE (7 and 8) it throws an error on the split-function (this property or method is not supported by this object).
if I alert... | stackexchange/codereview |
Is there any way to use the ghostscript library to work with a pdf given as a byte stream, WITHOUT saving the file itself on the local machine?
I'm using C#.
| stackexchange/codereview |
In Rails, one could use:
returning Person.create do |p|
p.first_name = "Collin"
p.last_name = "VanDyck"
end
Avoiding having to do this:
person = Person.create
person.first_name = "Collin"
person.last_name = "VanDyck"
person
I think the former way is cleaner and less repetitive. I find myself creating this method... | stackexchange/codereview |
The app has a ListView with multiple-selection enabled, in the UI it works as expected. But when I read the values out using this code:
Log.i(TAG,"Entered SearchActivity.saveCategoryChoice()");
SparseBooleanArray checkedPositions = categorySelector.getCheckedItemPositions();
Log.i(TAG,"checkedPositions: " + checkedPosi... | stackexchange/codereview |
In oracle-db it is possible to insert values from table A to table B like
Insert into table_a values
Select * from table_b where ID = 10
;
If the structures are the same.
How can I do this in MYSQL? My Editor gave me an sytanx-error.
Thx 4 your answers!
Greetz
| stackexchange/codereview |
How do I rename a column in table xyz? The columns are:
Manufacurerid, name, status, AI, PK, int
I want to rename to manufacturerid
I tried using PHPMyAdmin panel, but I get this error:
MySQL said: Documentation
#1025 - Error on rename of '.\shopping\#sql-c98_26' to '.\shopping\tblmanufacturer' (errno: 150)
| stackexchange/codereview |
I'd like to have a FileWriter opened during the whole time a class instance exists. So I need to close it in a destructor. But how to specify a destructor in Scala?
| stackexchange/codereview |
There exists a Perl module that provides the perfect functionality for my Python app.
Is there any way for me to utilize it? (it is complicated, it would take me a month to port it)
I don't want to have to spawn a subprocess for every usage, as I need it several hundred thousand times (it is a specific type of data pa... | stackexchange/codereview |
ive got a email setup to forward to mx.sendgrid.new (the sendgrid mail server) then with received emails sendgrid passes them to a specified page (as shown in the 2nd image of the tutorial im following)
http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-37
SO what CODE ... | stackexchange/codereview |
I'm trying to get xml from server via https connection. If i do it with curl command
curl -k -A "Mozilla/4.0" https://username:password@server.com/test/infoxml.ashx
connection is successfull, but when i try it in java on android, it doesn't work. I'm using this code:
URL url = new URL("https://user:password@server.com... | stackexchange/codereview |
In my Eclipse runtime, I have the following three plug-ins (file names simplified for better readability):
javax.wsdl.1.4.0.jar
javax.wsdl.1.5.1.jar
eclipse.wsdl.jar, which has a version restriction on the dependency: [1.4.0, 1.5.0)
The dependencies of my own plugin look like this:
eclipse.wsdl
javax.wsdl : "1.4.0"
W... | stackexchange/codereview |
Is there a way to set focus to a PanoramaItem in Silverlight for Windows Phone 7?
I've tried:
piResults.Focus();
Where piResults is the name of a PanoramaItem.
I've also tried to give focus to one of the controls in the PanoramaItem, but that didn't work either.
If this isn't clear, I'm trying to do the following:
If ... | stackexchange/codereview |
I'm a little new to object oriented programming, and very new to Qt and GUIs in general.
I am now playing with this example in Nokia's Qt tutorial:
http://doc.qt.nokia.com/4.1/tutorial-t5.html
I tried to extend the code; this is what I have now:
#include <QApplication>
#include <QFont>
#include <QLCDNumber>
#include <Q... | stackexchange/codereview |
I've done countless Google searches on this.
Despite all the promises, I simply can't find one straight-forward peice of documentation on how to automate Chrome with WatiN.
Can anyone help?
| stackexchange/codereview |
What I need is to have a simple screen in this Mac app that just prints a string as the iPhone is transmitting strings through the WiFi network.
This string is simply a string value from a slider being adjusted up and down by the user on the iPhone. The data will be sent to the Mac app and then the Mac app will receiv... | stackexchange/codereview |
i used this code and I am having problem in the very basic step of how to use operator. Moreover I am even having problem taking more then 1 digit. If you please just add up the missing statements which would help me out. In the given code I have removed those steps that created problems in actionPerformed function
imp... | stackexchange/codereview |
I am about to start a project in visual image-processing and have no had experience with Matlab, Aforge, OpenCV and was wondering if anyone had any experiences with these different software packages.
I was also wondering which of the three packages were most efficient I assume OpenCV but has anyone had any experience?... | stackexchange/codereview |
I have an Mp3 models which looks like this.
class Mp3(models.Model):
title=models.CharField(max_length=30)
artist=models.ForeignKey('Artist')
and here is how the Artist models looks like:
class Artist(models.Model):
name=models.CharField(max_length=100,default="Unknown")
I have created Artist with id 1. H... | stackexchange/codereview |
Is it possible to get width of text inside a textarea element?
I don't want $('textarea').val().length per se, as it doesn't depend on font-size.
I would prefer the absolute width of the text inside.
| stackexchange/codereview |
I want the message box to appear immediately after the user changes the value in the textfield. Currently, I need to hit the enter key to get the message box to pop out. Is there anything wrong with my code?
textField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event... | stackexchange/codereview |
I find myself foreach-ing over IEnumerables a lot just so that I can return each result. Is there a way to compress something like this
foreach (var subSelector in subSelectors)
{
foreach (var node in FindSingle(context, subSelector))
yield return node;
}
To remove the inner foreach?
| stackexchange/codereview |
I have a new MVC 2 project using ninject 2 for IOC. I have the following global.asax which sets up both NHibernate and Ninject. The code runs fine, ninject pulls out the controllers from the assembly (it does convert them to lowe case strings when it does this - inside the Ninject source).
All my controller URL's are n... | stackexchange/codereview |
I am just looking for a really easy way to clean up some HTML (possibly with embedded JavaScript code). I tried two different HTML Tidy .NET ports and both are throwing exceptions...
Sorry, by "clean" I mean "indent". The HTML is not malformed, at all. It's XHTML strict.
I finally got something working with SGML, but ... | stackexchange/codereview |
We have WCF with wsHttpBinding now want to convert it on remoting how to do ?
| stackexchange/codereview |
I'm building an app that allows a user to stream a video from their home computer.
Where can I find more information about how I can make this stream accessible to users outside of the broadcaster's local network?
Let's say I'm broadcasting the video from 192.168.0.1:8080/video.mpg
I know that if I setup port forwardin... | stackexchange/codereview |
I've just installed SQL Server 2005 Express and I'm trying to login to Management Studio but I don't know what the "Server Name" is to be able to login.
I've tried:
localhost\SQLEXPRESS
127.0.0.1\SQLEXPRESS
SQLEXPRESS
<computer name>\SQLEXPRESS
<username>\SQLEXPRESS
The authentication mode is Windows Authentication.
T... | stackexchange/codereview |
Is this possible to take delimeter other than comma for converting into CSV file....because in my scenario my gridview cell contains data with commas.
| stackexchange/codereview |
I want to make JMeter distributed testing. It was said in the manual that first I should start jmeter-server on remote nodes, and then I should update jmeter.config and run jmeter on a master node.
I did all these steps. My test plan includes working with CSV-config files. If I test just from 1 (master) node - then e... | stackexchange/codereview |
here is code snippet
void F (int a, int *b)
{
a = 7 ;
*b = a ;
b = &a ;
*b = 4 ;
printf("%d, %d\n", a, *b) ;
}
int main()
{
int m = 3, n = 5;
F(m, &n) ;
printf("%d, %d\n", m, n) ;
return 0;
}
answer
4 4
3 7
I see how 4 4 was computed, I don't get how they got 3 7 (I do understand how 3 is computed, it is n... | stackexchange/codereview |
Is there any way to test a Windows Phone 7 Class library? Usually (for WinForms or WPF applications) I create separate class library and add reference to nunit.framework.dll and to a class library which I want to test.
Here, if I create new Windows Phone class library it doesn’t allow me to add reference to NUnit fram... | stackexchange/codereview |
How can I add arrays into an existing array item?
For instance:
$user[$user->id] = array(//values);
But if that user needs another array added, I want all data to fall under that user ID in the array.
I want to store orders a user has made, so I can look up all orders on the fly by user ID in the $user array above.
| stackexchange/codereview |
I've just begun to study qt using qt-creator, I found some tutorials int which the author doesn't use d'tors at all? is it good practice? or it will be better to manage my objects destruction, thanks in advance
| stackexchange/codereview |
I want to make a windows application in which I want to send ,receive and process SMS using GSM Modem( this one ), It would be very helpful If you provide me link to any opensource library or application which do the same. I am good in MFC and Qt, so any C++ or C library or app reference would be much better.
It would... | stackexchange/codereview |
I have this weird problem.
Whenever i try to increase the post_max_size & upload_max_filesize to 2500M, my website seems to hang on me. Pages will continue to load, but any attempt to login or submit forms will not work. It simply ignores the POST as if it never was sent.
But, when i change post_max_size & upload_max_f... | stackexchange/codereview |
I'm new to programming and I need help on my code. I want my page to prompt me if there will be available rooms left. I'm using the onload function on the admin page.
so far here is my code
function prompt()
{
< ?php
include("dbconfig.php");
$sql = "SELECT COUNT(*) FROM rooms WHERE status = 'available'";
$result = ... | stackexchange/codereview |
I am getting this error in .js file as
d.style.visibility='hidden';
What is d here I dont know,I have used a ckeditor replaced with the textbox as txtEditorAnswer.
Can anybody help me??
| stackexchange/codereview |
I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.
Please suggest.
| stackexchange/codereview |
I'm developing a game, and in this game I have to move an image on a Canvas from one point to another in any direction, not just vertical or horizontal.
How can I move that image in this manner?
| stackexchange/codereview |
How do you execute nosetest from pycharm to run all unit tests?
I know that pycharm supports python's unittest and py.test and that they will properly support nosetests in pycharm 1.1 but I was wondering if there was a work around.
| stackexchange/codereview |
I'm working on an Android program for my research.
It needs to find out the angle while user using my mobile phone.
The angle here is like a rotation angle of entire mobile phone, not the widgets in layout.
I've tried keyword "angle" on http://developer.android.com/reference/packages.html
And I found a method "onSenso... | stackexchange/codereview |
I have a publisher who publishes a netstream using stratus p2p. This is then connected to by player who subscribes to the netstream.
I believe one can reject the subscriber when the stream tries to connect by using the onPeerConnect method of the netstream's client. However, I would like to boot the subscriber after th... | stackexchange/codereview |
You can go into a cell in a Jtable either by clicking on it, or by going into it using cursor keys/tabs. With defaultCellEditor and a JtextField if you go in using cursor keys the caret is put at the end of the existing text field, whereas if you double click the field it will highlight the last word.
Whereas spreadsh... | stackexchange/codereview |
The actual table is a lot larger than the mock-up one that I am going to show you but this mock-up one does explain the problem. Please go to http://www.monteandjanicechan.com/test_table.cfm
The thickness of the grid lines in the table are coming up the way I want in the HTML version. You can do a View Source to see ... | stackexchange/codereview |
Hi I am new to rails ... I am trying to make a category and subcategory tree in rails...can you please guide me..
my schema is as follows:
create_table "categories", :force => true do |t|
t.string "name", :null => false
t.string "aka", :null => false
t.integer "parent"
end
| stackexchange/codereview |
I am pulling a row from a mysql database which has a time stamp, like this: 2010-10-10 16:56:23
I need to compare this time stamp to the current time from the date object, and see if 30 minutes has passed.
thanks!
| stackexchange/codereview |
This post - http://www.ruby-forum.com/topic/51782 - seems to suggest a way of setting User.current_user in a before_filter in a controller and accessing User.current_user in models affected by that action. Is this perfectly thread-safe or are there security issues here? Seems like the correct approach would be to alwa... | stackexchange/codereview |
Whenever I add a lambda expression (in the following form) to my wpf project, I get an error. The errors are nothing to do with the expression, but they arrive every time I add one.
here is my latest:
using ( LeisureServiceClient client = ServiceFactory.Instance.GetLeisureService() )
{
client.Execute( ServiceFactor... | stackexchange/codereview |
I am using a virtual printer to print a word document into an image file in a C# program. So far everything is going fine except that I don't know when the printing process is finished so I can read the content of the generated image.
Here's my code :
using System;
using Microsoft.Office.Interop.Word;
using Word=Micros... | stackexchange/codereview |
I found several times people asking for the same question but it seems that the answer was never satisfying altough it should be pretty easy (in theory). Here is my question :
I have an entity called "Company" inside which I have an entityCollection "Employees" (one to many). I need to retrieve all Companies and for ea... | stackexchange/codereview |
I need to export private key from Windows store. What should I do if the key is marked as non-exportable? I know that it is possible, program jailbreak can export this key.
To export key I use Org.BouncyCastle.Security.DotNetUtilities.GetKeyPair() that exports key from (RSACryptoServiceProvider)cryptoProv.ExportParamet... | stackexchange/codereview |
I have a site that uses FormsAuthentication and yes, the name of the cookie is .ASPAUX :)
I can log in perfectly. The server creates a forms authentication ticket, packs it in a cookie, properly determines the expiration time (1 year ahead) and sends it to the client.
For some reason, after some time, even though the c... | stackexchange/codereview |
I've tried using the filter attribute to rotate a div, this works well until the div is comprised of an SVG element, which results in a rotated div with the SVG not being shown (with the exception of images).
e.g.
style="filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.86602540, M12=0.50000000, M21=-0.50000000,M2... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.