instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have created a new AMI based on an existing Fedora Core 13 AMI. When I try to launch an instance with new image, the instance gets terminated even before launching. The status of the instance changes from "pending" to "terminated." I tried to get the system log with Amazon Console, but the log is empty.
How can I fin... | stackexchange/codereview |
How to get screen resolution (height, width) in ruby script?
| stackexchange/codereview |
Is there any reason to prefer
#define MY_MACRO() ..stuff..
to
#define MY_MACRO ..stuff..
Don't use macros is not a valid answer...
| stackexchange/codereview |
Update: I've STOPPED the older mysql process which was running and causing some confusion. Now I think I have only the newer (5.1.40) version running. BUT, it's pointing to the wrong data file. It's pointing to a default install data file and I'd like it to point to the existing data file in /var/mysql. Here's a portio... | stackexchange/codereview |
please kindly advise how to fix the page footer at the bottom margin in Microsoft SQL Server Reporting Services? The default situation is that the footer will be displayed at the next line of the last row of the Body section.
Thank you.
| stackexchange/codereview |
I have 3 models that are related:
Folders
Files
Revisions
Folders have many Files. Files have many revision. Files have one folder. Revisions have one file.
I've setup all my relationships and everything is getting created right in the database. I am trying to edit the scaffolded HTML and have a really basic question: ... | stackexchange/codereview |
I have an AutoCompleteTextView control serviced by an 'OnClick' Listener. It extracts a list of items from a database and populates the array adapter attached to the control. When I enter sufficient text to isolate an entry in the adapter list (usually about 2 characters) and I select the identified item, the adaptervi... | stackexchange/codereview |
On iPad I have a UISplitViewController-based app. Has anyone figured out how to hide/show the tableViewController that is locked down on the left hand side - when in landscape orientation - stubbornly hogging precious screen real estate?
If you take a look at the iPad Dropbox app it has a nifty show/hide arrow that is ... | stackexchange/codereview |
Does any one have the constant value of IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER for use with the dll import in a C# class?
I was told the constants are in WinIoCtl.h, but they are nowhere to be found.
If someone could provide it, it would be appreciated greatly.
| stackexchange/codereview |
I'm doing a very simple implementation of the MVC pattern in C# with a WPF interface.
I have a model that's keeping the state. I want to be able to notify the view form the model whenever anything about the state changes, so that the view can update itself accordingly.
What's the simplest best practice for doing this ... | stackexchange/codereview |
Lets say I have function
void sell(Collection<? extends T> items) {
for (? e : items) {
stock.add(e);
}
}
as you can see i want to iterate through the items, but I cannot use the notation ? e, because it spits out the error "illegal start of expression".
| stackexchange/codereview |
We use "target" attribute of the tag to specify the target location of the link.
But "target" attribute cannot be used in strict doctype (I referred this at http://w3schools.com/tags/tag_a.asp). So what is the solution if we use strict doctype?
| stackexchange/codereview |
I've an input field that created on the fly. And I need to bind a plugin interaction from jQueryUI widget.
My code
$("select[name='tab_content_length']").live('click', function(){
$(this).selectmenu({ style: "dropdown"});
});
$("select[name='tab_content_length']").trigger('click');
This is crutches and second part... | stackexchange/codereview |
I want to update all fields of a table that has value of colum NAME as 'PCNAME'.
The table name which i want to update is XYZ.I want to update only some fields and not keep some unchanged.
This will affect many rows and not a single row as there will be many rows with NAME='PCNAME'
How can i do it using JPA.I have ent... | stackexchange/codereview |
I have been working on designing a multiple configuration Makefile (one that supports separate 'debug' and 'release' targets), and have come across a strange problem which appears to be a bug in GNU make.
It seems that GNU make is not expanding target-specific variables properly when those variables are referenced in a... | stackexchange/codereview |
I have a large size image. To save the memory so I don't want to load the whole picture at one time, so I divide the image into 9 pictures like an 3X3 array
036
147
258
I can scroll the smaller image pieces from one image to an adjacent image, like from(1,1) to (1,2)(1,3), or from(1,1) to (2,1)(3,1), but I can't scrol... | stackexchange/codereview |
Say I introduced <feature.c> a while ago and now notice it shouldn't have been part of my main branch but rather a branch feature. Is it possible to use e.g. git-filter-branch to automatically move all of <feature.c>'s history out of my main branch into the feature branch?
| stackexchange/codereview |
Possible Duplicate:
How do I determine what is touched in 3D space from the screen?
I'm developing an Android application. I'm also working with OpenGL graphics.
I have a square drawn on the screen and I want to let user move it when he touches over it. In other words, user should be able to move square when he puts... | stackexchange/codereview |
I'm using asp.net mvc2 for my application. I have an ajax request sent using jQuery.
$.ajax{(
url:'/home/index'
type:'post',
data:$('#myform').serialize(),
dataType:'html',
success:function(response)
{
//update relevant document portion
}
});
Here is my controller method
public ActionResult index(Book book)
{
... | stackexchange/codereview |
I have some tabs and an activity group (Contacts) with several nested activities:
Contacts Tab
|
Contact Groups -> Contact List -> Edit Contact
I used this example to manage walking through these nested activities. So, when I click on a Contact Group, I'm sending parameters about that group using intent and... | stackexchange/codereview |
I'm using windows server 2008 & IIS 7.0 to deploy the my vb.net 3.5 application.
I'm successfully able to run the URL on my server.
Same URL having IP address & port number configured is not working on client system.
It is showing IE default error message as "page cannot display"
Thanks
| stackexchange/codereview |
I am using jquery to load a partial view.
$("#policyMembers").html('<div class=loader></div>').load("<%= Url.Action("PolicyMembers", "Scheme") %>");
my partial view looks as follow:
<table class="grid">
<tr>
<th>Title</th>
<th>First Name</th>
<th>Surname</th>
<th>ID Number</th>
<th>Date Of Birth</t... | stackexchange/codereview |
i am doing FedEx integration with asp.net project. The web service works correct but, I have some doubts about the API code
Anyone know what is the use of RateRequestTypes object in FedEx API? Can you please tell what is the purpose of the following lines in the code
request.RequestedShipment.RateRequestTypes = new Rat... | stackexchange/codereview |
How can I add some parameters to all urls on all pages in WordPress? I am working on a theme development and I need to show to a potential customer different variants of using it. So, I have different color schemes. I found a tutorial about how to get parameters from url and use them in my code. Now I easily use an url... | stackexchange/codereview |
I need to simply split large (~1400mb) file into 100mb video files with the same quality (compression rate). I need it done in short time so in that case VirtualDub will not use any compression operations, but just split video into small ones. What is the right way to do that? Is there alternative free software to do t... | stackexchange/codereview |
we were trying to find the username of a mercurial url:
default = ssh://someone@acme.com//srv/hg/repo
Suppose that there's always a username, I came up with:
tmp=${a#*//}
user=${tmp%%@*}
Is there a way to do this in one line?
| stackexchange/codereview |
Does any body know if Telerik has any control that supports drawing of Organization Charts.
If Telerik does not have, can anybody advise how can I draw organization chart with SilverLight.
| stackexchange/codereview |
Given two documents:
Now is the winter of our discontent
Made glorious summer by this sun of York;
And all the clouds that lour'd upon our house
In the deep bosom of the ocean buried.
Now are our brows bound with victorious wreaths;
Our bruised arms hung up for monuments;
Our stern alarums changed to merry... | stackexchange/codereview |
Totally crazy but I need a non jquery, just pure javascript slider that can do something like http://www.smoothdivscroll.com/clickableLogoParade.htm
I would normally do this in jquery and it would be perfect, but long story I just can't, I need to do it in pure javascript... Anyone got anything, or should I wrtie some... | stackexchange/codereview |
I'm currently learning about JSF 2.0 and im so glad for the existence of this conversation scope feature, which is very helpful in opening a new tab or a new window on the same page and having separate resources, not overriding one another.
But im curious on how to implement this in a good way, about when to start the ... | stackexchange/codereview |
I came from gnu/linux world but recently I must to work on a windows system and I want to be able to compile my c/c++ console programs on it. The problem is I don't have administrative privilegies to install anything.
I looked for portable apps. I'd find gvim and mingw but I don't know how to make them work together on... | stackexchange/codereview |
I have a class, with few properties, where some of the have an XML comment (summary).
What I want to do is display the summary info for the user in the application.
So I need to access summary text in code, to be able to do : Label1.Text = .......
how do I do that ?
public class MyObject
{
public ... | stackexchange/codereview |
I have few image backgrounds (1650x1050px) and they are fading smooth only in Safari & Opera. Firefox, Chrome and IE7/8 you can see "frames" of fade like taking pictures.
I'm using jQuery 1.4.4 and Supersized 3.0 plugin modified by me (before modification animation also wasn't smooth enough)
Any ideas? Should i try oth... | stackexchange/codereview |
I Had created a ASp.net website ...
I had a share point site also..
My target is that i want to deploy my ASP.net website with my share point Site....
And 2ndly i had created a web form in my asp.net web site
it consist of 3 text box and button ....
the value from the form should be stored Sharepoint Coustom list
3rdly... | stackexchange/codereview |
I'm using the UIBarButtonSystemItemSave to get a Save button in my iPhone app. My idea was that using these system items, I should get automatic localization for these buttons. But it still says "Save" in all languages. Isn't they automatically translated? Do I need to do it myself?
My Code:
UIBarButtonItem* saveItem ... | stackexchange/codereview |
How do I return from main with an exit code as I would in C? Context: I'm checking that there is a single command line argument, I will print usage and return an an error status code if the argument count, or argument is invalid.
| stackexchange/codereview |
I'm looking at analyzing a test. It consists of four questions with ten options each. From each question, three options must be selected. That of course always yields a total of 12 answers.
Analyzing the number of possible combinations using Ruby's [].combination my Dell Workstations freezes up and fails to produce san... | stackexchange/codereview |
I am sure this problem is very common but a quick googling didn't get me any relevant results. Is there a way to remove it, db query maybe? Or is there an existing plugin that does this?
| stackexchange/codereview |
I am currently trying to integrate a java applet with an ASP.NET site i am building..
The applet is built on the thinkmap SDK framework..
The applet starts successfully however it throws an error about the data configuration file..
Fatal Error: A fatal error occurred when fetching metadata : : Remote Error: HTTP Error... | stackexchange/codereview |
I want to be able to query different models at once and get the aggregate result of the full text search. i.e. books and authors as a single list, sorted by relevance for example.
As I understand, in the documentation it mentions that it is possible but there is a huge limitation:
... The django-sphinx layer also sup... | stackexchange/codereview |
I have a game class sub class of CCLayer where i declare a int variable gameScore in .h file and initialize/update this variable in .m class.Now I need show this gameScore value in another class when game is over.But i don't know how to do it.Infact i found severarl solution but most of them didn't work for me or i can... | stackexchange/codereview |
I am re-attaching a detached object with several persistent collections to a new Hibernate session with the following snippet:
sessionFactory.getCurrentSession().lock(myDetachedObject);
This code is executed in an AspectJ pointcut that is triggered whenever a persistent collection is accessed.
The object is not modifi... | stackexchange/codereview |
Gurus - I'm stuck in a situation that I can't figure out how I can query from the following collection "users", it has 2 embedded documents "signup" and "activity":
{
"appid": 2,
"userid": 404915,
"signup": {
"dt": "2010-12-28",
"platform": 2
},
"activity": {
{
"... | stackexchange/codereview |
I've had log4cxx recommended to me as a good way of generating log messages from C++ applications. However, plain old UNIX syslog() calls do let me output to files, or over the network, and have all the usual DEBUG/INFO/WARN/ERROR levels.
log4cxx is clearly more modular/customizable, but I really just want to log to a... | stackexchange/codereview |
Hi i need to put some text over an imageview.
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical"
android:src="@drawable/bg"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
andr... | stackexchange/codereview |
I have a window with two textboxes sitting in the grid. The grid contains one trigger which fires an animation when the text in either of the textboxes changes. Problem. I want the textbox which is updated to be affected by the animation, currently I have to set StoryBoard.TargetName to the name of a textbox to make it... | stackexchange/codereview |
I am developing a class which acts as a container for another class. In the container class I must implement a method to get all elements in the collection. My container class uses a std::deque.
Should I return a reference to the deque?
Should I return a copy of the deque? (my god tell me this is not the answer... :) )... | stackexchange/codereview |
I'm displaying a list of thumbnails that can be zoomed in and out. On top of each thumbnail, I need to place text that is selectable by the user (I'm using jQuery UI Selectable for this).
Here what I have (complete code on http://jsfiddle.net/jEkaa/2/):
<ul>
<li class="selectable">
<a href="">
<... | stackexchange/codereview |
I recently received some job applicant test results in which one person claimed the the solution they gave was more efficient (I won't say which since I don't want to influence the answers). Needless to say, I was sceptical, but I don't know enough about the inner workings of RE compilers to comment intelligently.
The ... | stackexchange/codereview |
I'm trying to load a view controller with a different XIB, but for some unknown reasons it seems that it does not load it at all.
Usually my code is something like this:
WorkflowViewController *workflowViewController = [[WorkflowViewController alloc] init];
[self.navigationController pushViewController:workflowViewCon... | stackexchange/codereview |
I'm looking for an efficient way to chance a string such that all sequences of more than 2 equal characters are cut off after the first 2.
Some input->output examples are:
hellooooooooo -> helloo
woooohhooooo -> woohhoo
I'm currently looping over the characters, but it's a bit slow. Does anyone have another solution ... | stackexchange/codereview |
I have two IEnumerable<string> that represent lists of strings. I want to see if any element in the first set matches any element in the second set. At the moment I have something that looks like this:
firstSet.Intersect(secondSet).Count() > 0
However, it seems to me to be rather inefficient because it will produce a ... | stackexchange/codereview |
I am new in the iOs world and I need help to implement small feature in my application.
My question is how to download media files (i.e. mp4) and save them on the device for later use? off course the place that the files will be saved should be accessible from my app only (something similar to Context.getCacheDir() in ... | stackexchange/codereview |
I have an ant file that does the following:
<property file="project.properties" description="Project configuration properties"/>
<property file="build-defaults.properties" description="default build configuration."/>
<property file="build.properties" description="local build configuration overrides"/>
I want to have d... | stackexchange/codereview |
I have an an Access database that contains an OLE Object field. I need to extract the contents of this field as an image. It does not matter what type was originally placed in the OLE Field. I just need an image that represents what that object looks like.
The main goal of this is to move away from the OLE Object fi... | stackexchange/codereview |
I cannot add a row to the top of a jqGrid table using the line:
jQuery("#myTable").jqGrid('addRowData', 0, myData, "first");
It just adds to the bottom of the list as usual
Has anyone tried this and works for them?
In my table, previously added rows have index that goes from 0 to N
I am using jqGrid v3.8.1 and jQuery ... | stackexchange/codereview |
hi can you tell me how to execute the test cases defined in /external/opencore/engines/player/test/src in the donut code?
I have seen the PVplayer documentation , but that does not provide any information.
I am trying to run an SDP file in the PVplayer.
| stackexchange/codereview |
I read this article from D. Kalev this morning about the new c++11 feature "defaulted and deleted functions", and can't understand the part about performance, namely:
the manual definition of a special member function (even if it's trivial) is usually less efficient than an implicitly-defined one.
By googling to fin... | stackexchange/codereview |
I am trying to subtract 2 timestamp fields to give my hold out the table is in relation to the present time. I am comparing NOW() to the UPDATE_TIME field INFORMATION_SCHEMA database in MySQL.
The problem I have is I wanted to display the difference in terms of hours, months, days, years. Since the timestampdiff functi... | stackexchange/codereview |
string =
"
[title]
{snippet}
[something else in bracket]
{something else}
more text
#tags
"
I want to delete first occurrence of [] and {}
s.clean_method or regexp should return string like that
"
title
snippet
[something else in bracket]
{something else}
more text
#tags
"
Language Ruby 1.9.2
| stackexchange/codereview |
I am trying to load a model within the same module from a controller.
$this->load->model('pendingAccountModel');
but the model could not be loaded.
the module dir is accounts.
the model file path is: app/modules/accounts/models/pendingAccountModel.php
the model decleration is:
class PendingAccountModel extends M... | stackexchange/codereview |
Eclipse is givign me a syntax error along these lines but I don't see anything wrong there:
$('.addNewFolder').click(function() {
showModal('modal_div', 'Nový adresár');
var id = '<?php echo ToHtml($idFolder); ?>';
$('.folders .trow1').each(function() {
if ($(this).css('backgroundColor') == 'rgb(52,... | stackexchange/codereview |
Often people say that it's not recommended to use recursive functions in python (recursion depth restrictions, memory consumption, etc)
I took a permutation example from this question.
def all_perms(str):
if len(str) <=1:
yield str
else:
for perm in all_perms(str[1:]):
for i in range(len(perm)+1):
... | stackexchange/codereview |
I am very new at WCF. I'm creating a prototype app to learn WCF. I have the following code to create a service host, which works fine:
serviceHost = new ServiceHost(typeof(ServiceMethods), new Uri("http://localhost:8888/MyService"));
serviceHost.AddServiceEndpoint(typeof(IB.Entities.ServiceInterfaces.ILocation), WcfCon... | stackexchange/codereview |
I am writing a C app and I use malloc to create data on the heap. Now while the application is active, this data is always persistant, so I never "free" the Malloc data.
My question is: will this memory be automatically freed when the application terminates, or must I execute free() manually at the completion of my ap... | stackexchange/codereview |
I'm using mssql server 2008 and having a problem with a trigger. Now, i have this aspx page, which has a stored procedure working in a button click, and that stored procedure has an execute permission for the user, lets says "x". this procedure insert some values to a table on one db. and that table has a trigger for i... | stackexchange/codereview |
Does anyone have a recommendation for a web cam to be used on a mac with opencv?
Thank you!
| stackexchange/codereview |
I am using LINQ2SQL and its working pretty well. However depending on the value of the variable type string in C#, I need to use "Order By" in my query or not use an "order by".
If the C# string is NOT null, or empty, then I want to "order by" on the contents of the string variable. If the C# string is empty or null,... | stackexchange/codereview |
I am experimenting with creating a simple message system (PHP) page that uses a MySQL table to store the entries. The rough outline of the columns I'll use in the table are:
msg_id (primary key, auto_increment)
user_id (foreign key pointing to the user who created the message)
time (a DATETIME entry to provide msg time... | stackexchange/codereview |
Why wont this work in IE 7? Any help would be greatly appreciated!
http://www.k-e-w-l.ca/slideToggle.php
| stackexchange/codereview |
i am making a Website with c# and ASP.NET 3.5, i just made an HttpModule to handle the NHibernate Session Life (Open and close).
I added it to the web.config and everything works fine. (all the query, code, etc working fine) except that CSS file of my masterpage is not loading !!
it's so strange for me,
Do you have any... | stackexchange/codereview |
I'm trying to limit the number of managed threads permitted by an ASP.NET MVC application running under IIS7.5 on Windows Server 2008. I've attempted a number of different approaches but none seem to have worked as expected, I need to limit the number of threads as reported by
Threading.Thread.CurrentThread.ManagedTh... | stackexchange/codereview |
I use Microsoft.Office.Interop.Excel.dll COM to export excel. I distribute my application to clients. It runs well on my computer but on another computer, it cause a error.
I wonder that application package should be included Microsoft.Office.Interop.Excel.dll and the computer must be installed Microsoft Excel. Thanks.... | stackexchange/codereview |
I used to work at some place that could select a line of code, and by pressing "ALT + SHIFT + DOWN_KEY/UP_KEY", it would copy this line below or above respectively.
Now I work at some place else and this shortcut command does not work.
How can I enable it?
| stackexchange/codereview |
I am proficient in C++, I dont know Java Script and want to learn JS, What should be the way/process for me? I know basic html, CSS.
| stackexchange/codereview |
I see nothing in the documentation except a reference to include some "CssResource" and get it with ClientBundle, but how do I exactly override the tbody and th of a CellTable?
Is this possible?
| stackexchange/codereview |
I want to have some sort of custom autocomplete and I thought it makes more sense to customize jQuery's autocomplete. So I'd like to know:
How to force open the autocomplete list? $("#autocomplete").trigger('autocompleteopen'); doesn't work.
How to put your own stuff onto the list? Obviously not through source option,... | stackexchange/codereview |
Hi guys
I'm using the jQuery Validation plugin by GeekTantra link with some custom variations.
I would like to find out if there is a way to reset the error checking by clicking a certain element (i.e. a div class="reset" or a tab with a specific class).
I have 2 forms in the same page, but only one showing at any give... | stackexchange/codereview |
Good Morning,
I have a very simple question regarding ASP.NET MVC 2 View Models.
I have created the following view model:
public class ClassifiedsListingDetailsViewModel
{
public int ListingID { get; set; }
public string Title { get; set; }
public string Description { get; set; }
... | stackexchange/codereview |
I am building a planner which will be using the datepicker functionality in several different places. There is a general datepicker which controls the calendar, and then in different dialogs I want to have a button for opening a datepicker just for selecting a date for a field (e.g. the start date of an event).
The gen... | stackexchange/codereview |
I have three JPanels painted onto a JFrame. These are currently all set to use the default FlowLayout. I would like for these to be one above the other in a single column.
However, I am finding that these are floating next to each other on the same line, so long as the components within them.
Is the natural width of a ... | stackexchange/codereview |
I want to try to set some exotic resolutions on my web-camera device. like 100x1000 or some standart. I need to find out if my camera supports desired resolution. Howto get such info using OpenCV? (because it seems to me that my try-catch around cvSetCaptureProperty does not work, while that function does not return an... | stackexchange/codereview |
I need to identify a channel in my WCF service.
One way is to use Session.SessionID, but I can't seem to get the binding to work with sessions, and the session seems too much for what I'm trying to achieve. I'm just trying to write down history of a channel - what methods are being called, and to keep a hash of "channe... | stackexchange/codereview |
Is it possible to rebuild or retrieve a VB CLR dll file which you've imported into SQL some time ago?
I've gotten to the point where I was able to find the contents of this DLL by doing:
SELECT * FROM sys.assembly_files
but I don't how if it's possible to rebuild the dll with the contents found there.
Any help would be... | stackexchange/codereview |
Can anybody tell me how to embed a dll into Windows mobile Memory.
| stackexchange/codereview |
I have a TitleWindow component that I'm displaying via PopUpManager.addPopUp(). When I close the component, I'm calling the closePopUp Event which sets the object's variable to null, as follows:
// application
private var myObject:MyObject;
private function openPopUp():void
{
myObject = new MyObject();
myObjec... | stackexchange/codereview |
All,
I am studying some sample code given in my web dev class as an example of MVC (again, for the web). In this code, there's a system to navigate from the index.php page to the various controllers (which then call the Model and View modules), and then back into index.php.
I understand how the MVC works.
What I'm gra... | stackexchange/codereview |
Related:
Can I build an app that works with TFS2008 as well as TFS2010?
Can I install TE2008 on the same machine that runs TE2010? I'd like to have both the 9.0 and 10.0 versions of the TFS client assemblies available on the machine.
(Apparently when developing applications that connect to TFS, the best way to get... | stackexchange/codereview |
I want text to change once a day even if my app is not open at the time NSTimer doesn't run while your app is closed, applicationSignificantTimeChange won't get the message if my app is closed either.
What I need to do is.
(1) get the current date
(2) choose a phrase based on the current date and
(3) update your labe... | stackexchange/codereview |
For example, in one place...
//---------------a
try
{
// some network call
}
catch(WebException we)
{
throw new MyCustomException("some message ....", we);
}
...and in another place...
//--------------b
try
{
// invoke code above
}
catch(MyCustomException we)
{
Debug.Writeline(we.stacktrace); // <---... | stackexchange/codereview |
Ok. With a help of SO I have managed to put together this code. There is one more error though:
// ...
std::vector<char> jpegBuffer(lSize);
// copy the file into the buffer.
fread(&jpegBuffer[0], 1, jpegBuffer.size(), pFile);
// terminate
fclose (pFile);
Mat matrixJpeg = cv::imdecode(Mat... | stackexchange/codereview |
I've bean doing some JSP tutorials and I don't understand what the point of a bean class is. All it is, is get and set methods. why do we use them?
public class UserData {
String username;
String email;
int age;
public void setUsername( String value )
{
username = value;
}
public void setEmail( String value )
{
... | stackexchange/codereview |
How can I make use of grep in cygwin to find all files that contain BOTH words.
This is what I use to search all files in a directory recursively for one word:
grep -r "db-connect.php" .
How can I extend the above to look for files that contain both "db-connect.php" AND "version".
I tried this: grep -r "db-connect.php... | stackexchange/codereview |
iam using jquery datepicker.
i want to reduce the length of the year dropdownlist in the jquery datepicker.
iam using dropdownlist for month and year by setting the following properties
$(document).ready(
function () {
$("#<%= txt_date.ClientID %>").datepicker({ buttonImage: "../_Images/calendar1.gif", buttonIm... | stackexchange/codereview |
greetings all
i am using spring framework and hibernate to communicate with database
i have a table that contain some records suppose with ids 1,2,3,4,5
when i tried to make an HQL query to retrieve the data ordered by id asc
data is retrieved in a correct order,but when trying to loop on the data with enhanced for loo... | stackexchange/codereview |
Consider the following snippet:
$('.remove_item').click(function(e) {
var _item = $(this).closest('.cart_item');
if(confirm('Biztosan törölhetem a terméket a kosárból?')) {
_item.effect('highlight', {}, 100).stop().fadeOut('fast');
_item.remove();
...
I'd like to highlight the actual row before... | stackexchange/codereview |
I'm trying to install rb-rmagick and running into some trouble. The installation stops at "Building rb-rmagick". I know it takes a while, so I let it run overnight, but still don't see any progress. I'm running it on a brand new MacBook Pro so speed/memory shouldn't be an issue.
From http://rb-rmagick.darwinports.co... | stackexchange/codereview |
I have this strange problem. In a J2ee webapp with spring, smartgwt and hibernate, it happens that I have a class A wich has a set of class B, both of them mapped to table A and table B.
I wrote a simple test case for testing the service manager which is supposed to do insert, update, delete and everything work as expe... | stackexchange/codereview |
I just wrote a PHP Script which should connect to FTP and delete all files in a special folder.
It looks like this, but I have no clue what command I need to delete all files in the folder logs.
Any idea?
<?php
// set up the settings
$ftp_server = 'something.net';
$ftpuser = 'username';
$ftppass = 'pass';
// set up ... | stackexchange/codereview |
How to implement sending images to some application in Windows Phone 7?
In the Android it's done via Intents.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.