instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I would like to do the following:
for a paper I am going to write, I want to be able to track all the changes made to the text (file) in such a way, that in the end I can tell for every sentence / word when it was written (date and time).
I haven't used any revision control system so far, but I suppose this is the easi... | stackexchange/codereview |
I am trying to allow multiple file uploads prior to a form post. What I'd like is for the user to only ever see one file upload element, and each time a file is selected, show a new <li> that contains the filename and an image/link to remove that specific file from the collection. There's a jQuery MultiFile plugin th... | stackexchange/codereview |
I'm trying to do some htaccess redirects for cleaner URL's, but I failed to do.
Here is my intend:
/kitap/blah => kitap.php?a=blah
/kitap/blah-123 => kitap.php?a=blah&b=123
This is my current code.
RewriteRule ^(kitap|yazar)/?([^/\.]+)?(-([0-9]+))?/?$ $1.php?a=$2&b=$3 [QSA,L,NC]
Currently it producing this:
/ki... | stackexchange/codereview |
I am having some issues with a segmentation fault being caused by access
to a member variable in a Qt application. My experience of segmentation
faults have shown them generally to be a result of accessing a memory
location that is out of bounds. However, I'm struggling to figure out
why this would be the case in m... | stackexchange/codereview |
I am using jQuery and tablesorter to add column sorting to my data on a page.
I want to to record which column was sorted. How can I determine which column was clicked? Is there an event that I can hook into?
| stackexchange/codereview |
I'm trying to query only the first data from the table.
Cursor img_cursor = db.query(
IMAGE_URL_TABLE_NAME,
new String[]{"small_img_url" , "large_img_url"},
null",
null, null, null, null);
Could somebody tell me how to implement a query wh... | stackexchange/codereview |
In a "has-a" class relationship does the contained class have to be implemented inside the class that contains it or can it be written entirely separately in a different file?
For example:
let's say:
class Pen
{
public:
.
.
.
private:
Ball point;
};
Can class Ball be in a separate header file or ... | stackexchange/codereview |
I have a ssrs 2005 report that has a stored procedure on sql server 2005 as its datasource.
At first, the sp had no parameters, it just returned values.
The sp changed now, a lot of parameters were added.
Now i need to add report parameters for the report, and bind them to the sp parameters
Is there a way for the repo... | stackexchange/codereview |
I want to ask a question about approaches in highload web applications development using SQL databases.
Assume we have simple CMS system providing access to different articles. Also we want to store article visits quantity in database. This visits counter increases every time when user watches the article.
In terms o... | stackexchange/codereview |
Today, with my great surprise, I discovered that
When the sizeof operator is applied to a class, struct, or union type, the result is the number of bytes in an object of that type, plus any padding added to align members on word boundaries. The result does not necessarily correspond to the size calculated by adding t... | stackexchange/codereview |
If you have limited server resources and expect a lot of traffic to a Flash site, is there a way of NOT having to serve Run-Time Shared libraries, but rely on Adobe to do this for you?
For example, if you want to make sure "framework_4.0.0.14159.swz" is always fetched from "fpdownload.adobe.com" and not from your own s... | stackexchange/codereview |
In a J2EE project, using JPA, how can I force a like query to be case insensitive and accent insensitive?
I know about changing session variables NLS_COMP and NLS_SORT but I'm wondering if there is another trick to do this in the query itself, without changing session variables
| stackexchange/codereview |
Let's say I have a business object with 5 properties and a sproc that returns 4 columns with names matching 4 of those properties. The call to ExecuteSprocAccessor will fail. Is there a way I can mark the 5th property with an attribute, for example, to tell EntLib to ignore it?
| stackexchange/codereview |
I wish to provide the users of my application the ability to keep the screen on using a WakeLock. In my main activity I have created the following function:
protected void processWakeLock(int pauseResume) {
switch (pauseResume) {
case STATE_RESUME:
if (mKeepScreenOn) {
wakeLock.acquire();
}
... | stackexchange/codereview |
I have to prepare some app that will graph the use of resources over time, but there is one day on the year that has 25 hours (the day with 23 hours is not a big problem).
How can I represent that with a Date? What would be the best way of doing it?
I would like to use Date class, (as it works, is Comparable and so on... | stackexchange/codereview |
I've got an asp.net mvc view with at the end the following javascript code
<script language="javascript" type="text/javascript">
$(document).ready(
function () {
alert("This is a test");
});
</script>
The alert doesn't show when loading the page.
I've got the following ... | stackexchange/codereview |
I observed a weird behavior when serializing and than deserializing a class that is having a member of type List<T> which was filled with default values at construction time. Unlike the array based property the property of type List<T> won't get emptied at deserialization by the XmlSerializer.
Here is my code:
public c... | stackexchange/codereview |
I'm a bit puzzled why this doesn't work. Probably overlooking something simple.
In the code I'm calling
_view.ResponseExpiresAbsolute = DateTime.Now.AddDays(-1);
In the unit test:
_mockView.SetupSet(v => v.ResponseExpiresAbsolute, It.Is<DateTime>(p => p < DateTime.Today));
The setup never matches (verifies). I've eve... | stackexchange/codereview |
I wrote some plumbing for getting an object by its identifer. Behind the scenes, it uses GetObjectByKey or TryGetObjectByKey to get an object by its EntityKey, which can be constructed. Does LINQ to SQL have something equivalent to this?
Thanks.
| stackexchange/codereview |
I building navigation menu where each button will have two images - one transited into another one using jquery mouseenter and mouseleave events. Jquery part is sorted out and is not a problem. In each anchor I have two spans and only one is visible.
HTML I decided to go ahead with is as follows :
<div>
<a href="#"... | stackexchange/codereview |
I want to get the following to display in a single line. I have tried using styles float and display.
Show this input <input type="text" name="filterOp" id="filterOp"/> inline.
<script type="text/javascript">
new Ext.form.ComboBox({
applyTo: 'filterOp',
triggerAction: 'all',
name: 'item',... | stackexchange/codereview |
if __name__=="__main__":
fname= raw_input("Please enter your file:")
mTrue=1
Salaries=''
Salarieslist={}
Employeesdept=''
Employeesdeptlist={}
try:
f1=open(fname)
except:
mTrue=0
print 'The %s does not exist!'%fname
if mTrue==1:
ss=[]
for x ... | stackexchange/codereview |
i have searched here, googling (with bing;)) and try all the things i have found but i
dont get it running.
I have a subfolder created on my webspace at discountasp.net like "MySite". Then i
made a virtual directory with the control panel. I published the Site with Visual
Studio to the path
http://blablabla.com/MySi... | stackexchange/codereview |
What possible reasons do you know for the situation, described in the title? Here's what my bt looks like:
#0 0x00a40089 in ?? ()
#1 0x09e3fac0 in ?? ()
#2 0x09e34f30 in ?? ()
#3 0xb7ef9074 in ?? ()
#4 0xb7ef9200 in ?? ()
#5 0xb7ef9028 in ?? ()
#6 0x081d45a0 in LogFile::Flush ()
#7 0x081d45a0 in LogFile::Flush ... | stackexchange/codereview |
My client has old foxpro based application in Windows and wanted to make it web based with PHP/MySQL. The only problem is the printing of their various reports/receipts. That foxpro based application facilitating fast printing on dot-matrix printers using some mode etc. (sorry I'm not sure here).
So if there's a webfo... | stackexchange/codereview |
I've never used triggers before, but this seems like a solid use case. I'd like to know if triggers are what I should be using, and if so, I could use a little hand-holding on how to go about it.
Essentially I have two heavily denormalized tables, goals and users_goals. Both have title columns (VARCHAR) that duplicate ... | stackexchange/codereview |
NHibernate auto saves any changes made to an object regardless of whether you make a session.save/update call or not when committing a transaction. EG.
session.BeginTransaction();
User user = repos.getUser("tony");
user.Age = 34
transaction.Commit();
Age is updated. This can be annoying when you want to get an obje... | stackexchange/codereview |
I've been trying to get paperclip to upload images to amazon s3, but all I get is the original file being uploaded. No thumbnails are generated. My model has this in it:
has_attached_file :screenshot, :styles => {
:thumb => "100x80>",
:medium => "195x150>",
:large => "390x300>"
},
:storage => :s3,
:... | stackexchange/codereview |
in EF1, i couldn't just update an object that was constructed (with the right id) outside the scope of the ObjectContext.
Is there a new way in EF4?
Can i just add it to the context (context.AddOrder(order)) (where context is an instance of my ObjectContext) and 'it' sees that it has an id and updates it?
It's non-poco... | stackexchange/codereview |
I have created a UISearchDisplayController which uses a separate UITableViewController as the delegate to display the results of the search. In this view controller, I have the 'didSelectRowAtIndexPath' method which allocates and initializes a detailViewController then uses:
[[self navigationController] pushViewControl... | stackexchange/codereview |
I'm building a new website and a friend suggest to me to use the asp.net membership for the authentication process (login, registration, password recovery, etc..).
I saw that everything is stored in an XML file.
I would like to know what are the pros and cons using the membership instead of to build something from scra... | stackexchange/codereview |
I want the view script of one of my controller actions to be rendered inside an iframe in my zend framework application. how it is possible?
| stackexchange/codereview |
I'm using jQuery to do a $.get request.
$.get(url, {}, function (result) {
$('#FactsheetTabs .tab_container div:visible').fadeOut(100, function () {
$('#FactsheetTabs .tab_container')
.html(result)
.fadeIn(100);
});
The response object contains (among other stuff) the follow... | stackexchange/codereview |
I'm working on a website where the homepage has a rotating banner. When the page is loaded, an AJAX request is performed to retrieve the rest of the banners (each of which has a 960-pixel wide image). I toyed with the idea of loading the page normally with all the banner HTML loaded, but the target audience of the webs... | stackexchange/codereview |
I have a question on free object memory in object c .
for example code :
@interface myCell : UITableViewCell {
IBOutlet UIView* bindView;
IBOutlet UIView* unBindView;
}
as you see, two object , first was assign and bind via Interface Builder , another is no
in my dealloc code , I try to free it to avoid me... | stackexchange/codereview |
I have an application that I am just migrating to Azure. Currently I use web.config transformation to manage changing the database connecting string dev/staging/prod environments. How is it best to manage these multiple connection strings in Azure?
| stackexchange/codereview |
I get params like s = "%u041D%u0430%u0434%u043E%u0435%u043B" with incoming request to my web server.
How to decode this to normal UTF8 string in Rails ?
thank you!
| stackexchange/codereview |
I have my windows
Wtere this AttributeError: 'NoneType' object has no attribute 'tk' ???
from Tkinter import *
root = Tk()
root.minsize(428, 285)
root.maxsize(428, 285)
root.resizable(width=NO, height=NO)
root.title("TEST")
root.wm_iconbitmap('C:\Python27\iconfile.ico')
# create the canvas, size in pixels
canvas = ... | stackexchange/codereview |
I want to generate a sine sweep in C# where I am able to define the start frequency, end frequency, and the duration of the sweep. I've looked at sound libraries such as DirectSound and ASIO that play a buffer. But I haven't been able to figure out how to control the duration of the sweep when the duration of the sweep... | stackexchange/codereview |
I have a complex page. tag b is some line on the photo. tag span is jquery animate opacity for the photo. I have set z-index:0 for the top parent of all the divs, but it still not work. where is the problem?
<div class="wrap" style="z-index:0">
<div class="content" style="z-index:1">
<div class="col1">
<div... | stackexchange/codereview |
Possible Duplicate:
In Java, when should I create a checked exception, and when should it be a runtime exception?
When should I derive an exception from RuntimeException instead of Exception?
A RuntimeException does not have to be declared in a method's throws clause, which may be good since it doesn't have to speci... | stackexchange/codereview |
I've already asked here two questions about the subject, but the answers was uninformative. May be I did not explain well, what I want. Now, I will be more specific. I know that "Composite components are a Facelets feature, not a JSF feature", I know that "Facelets is that Facelets is a view technology which is designe... | stackexchange/codereview |
i'm very new to the Android world: i have an autocompletetextview that allows me to choose from a list of cities.
How can i display the city i've selected from that list? (This list is quite big)
| stackexchange/codereview |
I am having issues with a module, which uses PHP's DOM extension via the CFPropertyList library, to a client's server. Attempting to run the module ends in a fatal error:
Fatal error: Class 'DOMImplementation' not found in /server/path/here/CFPropertyList/CFPropertyList.php on line 377
The client's server is pretty s... | stackexchange/codereview |
I have been using django-appengine and am now trying a project with django-nonrel. Before I used a bash script to start the local server and pass parameters.
Django-nonrel docs say you shouldn't run dev_appserver directly. Is there a way to pass these parameters?
/usr/bin/python2.5 ./dev_appserver.py \
-p ... | stackexchange/codereview |
I need to create a view to display all the records from each of the employee dependent tables, and also it should show the join date of every employee as well from that particular employee's table. I used the following code, but it shows an error when I try to run it.
CREATE VIEW EmpDependent
AS
SELECT JoinDate
FROM Le... | stackexchange/codereview |
I have a controller that I'd like to include some standard methods.
class Main::UsersController < Main::BaseController
include MyModule::ControllerMethods
end
uninitialized constanct MyModule::ClassMethods::InstanceMethods
My module looks like this, which is also wrong, and was originally meant for a model. What's t... | stackexchange/codereview |
I want to track exit link of a logged in user. I want to study their page navigation according to their demography. I have all the details needed in profile table.
I just need to know the exit link. I don't know how to do that. May b with PHP/Mysql/Javascript.
And the exit links can be from adsense.
Can u guys put me ... | stackexchange/codereview |
Possible Duplicate:
What is the difference between delete and delete[]?
When I was taught C++, this was a long time ago. I was told to never use delete but delete[] as performing delete[] on a single object will be equivalent to delete. Knowing not to trust teachers too much I wonder, Is this true?
Is there ever a re... | stackexchange/codereview |
I have two models App and Contact. App has a has_one relationship with Contact. I have declared the accepts_nested_attributes_for clause in the App model for Contact. Now, in the apps_controller, if I use the build method on the app object, I get an error for the the nil class, even though I had declared the relationsh... | stackexchange/codereview |
Sorry if this question has already been raised, but after hours of searching, i cant seem to find the way on how to fix this. Im trying to create a left join on 1 table but when i try to return a column on the other table, a null reference error was raised. tried some workarounds but still doesn't work.
here is my code... | stackexchange/codereview |
I have two byte arrays with the same length. I need to perform XOR operation between each byte and after this calculate sum of bits.
For example:
11110000^01010101 = 10100101 -> so 1+1+1+1 = 4
I need do the same operation for each element in byte array.
| stackexchange/codereview |
I'm developing a database that would eventually live on a shared SQL Server 2008 database on the host machine (at hosting provider). I noticed that all the tables and queries are owned by the dbo. I would like to know if this is a security issue when on a shared host. and what is the best practice for assigning owner... | stackexchange/codereview |
I made my first WPF control:
<UserControl x:Class="Dealogic.VisualStudio.UI.DatabaseManager.Controls.TargetInstance"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="300" Width="300">
<Grid>
<DataGrid ItemsSource="{Binding Customers}" /... | stackexchange/codereview |
Our development database now has 263 tables. During development we only work with a few. Is there anyway to organize all the tables into something like folders?
| stackexchange/codereview |
I have a table called Comments. with each comment I have comment Id,.
on my user screen I can add more than One Comment to each user.. so that comment id needs to store for this use as 1,2,3,.. Etc.. that means I added 1 2 3 comment Ids for the user..
How to store those comma seperated values in to the table column?
Th... | stackexchange/codereview |
I'm having some problems using multiple sliders at the same time.
In the html I have something like:
<div id="slider1"></div>
<div id="slider2"></div>
And in the javascript:
$("#slider1").slider({
slide: function(event, ui) { alert("slider 1 slided"); }
});
$("#slider2").slider({
slide: function(event, ui) { ... | stackexchange/codereview |
I'm writing a REST API in PHP and I can't find any resources explaining how to work with OPTIONS. It seems to be an important part of REST API's, that's about how much I've found.
Can anyone explain what OPTIONS should contain and how it should be formatted?
Thanks in advance.
| stackexchange/codereview |
i am having an xml main.xml,which has few layouts
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainl"
android:tag="aa"
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="fill_parent">
</LinearLayout>
Is it possible t... | stackexchange/codereview |
I'm writing a dashboard application and I need a way to figure out how long an item is "valid", i.e. when should it have been superseded by a new value (it's possible to have an error such that the next value never arrives).
Since I know the schedules for the processes producing data, I can define valid as "until the n... | stackexchange/codereview |
This is a statement inside a stored procedure which gives a table output which contains date
dt:
SELECT [Dt]
FROM dbo.fnGetDatesforWeekDays(@dafromDate, @datoDate, @WKDAYS) AS DAT
How can I take those date values one by one?
| stackexchange/codereview |
After a find, I'd like to sort the output by the basename (the number of directories is unknown). I know this can be done by splitting the basename from the dirname and sorting that, but I'm specifically looking for something where it's not necessary to modify the data before the sort. Something like sort --field-separ... | stackexchange/codereview |
Is there any way that I can hide styles from specific stylesheets in firebug style panel?
For example I use CSS reset and include reset.css in my pages but it does not look good when it displays useless information in style window.
Thank you.
| stackexchange/codereview |
On November, 11th, Moncaì has been announced.
The post describes the product as "a platform as a service(PAAS) cloud solution for .NET/Mono web applications" which would allow to "deploy your web applications with ease by using Git or Mercurial by simply issuing a push command" à la Heroku.
Beside this, very little is ... | stackexchange/codereview |
Good day, ladies and gentlemans. I'm a newbie in programming and my problem is in creating a php parser for e-mail addresses. I need to parse a whole web-site and create a .txt file with e-mails.
So, that is the question. What must I use? Should it be a proper php function *file_get_contents* with any arguments or ma... | stackexchange/codereview |
I am having a weird problem.
My game is all landscape. I have a inapp purchase button in my app. When I tap on that button I see the normal alert button in landscape mode. But when I press the home button and reopen the app, then tap on the inapp purchase, the orientation of the Alert box changes to portait.
I have no ... | stackexchange/codereview |
I have a public property on a custom control exposed like this:
public IList<KeyValuePair<ControlTypes, int>> ControlCollection {get;set;}
With ControlType as type enum like this:
public enum ControlTypes : int
{
DropDownList = 1,
TextBox = 2,
}
public ControlTypes ControlType {get;set;}
Basically I am trying to crea... | stackexchange/codereview |
In my old Visual Studio 6 I found that calling itow(), which looks basically like this:
#define INT_SIZE_LENGTH 20
wchar_t* _itow(wchar_t*bif, int i, int radix)
{
char abuf[INT_SIZE_LENGTH];
itoa(abuf, i, radix);
// convert_to_wide_char();
}
Now, notice the define INT_SIZE_LENGTH. Why is this set to 20?
Wors... | stackexchange/codereview |
I'm currently on the fence on how to implement my models. Right now I'm using polymorphic relationships, but it feels so wrong, though very convenient. I feel like I should be making use of database level integrity enforcement as an added layer of security.
Am I a grandpa for questioning the application layer? Please d... | stackexchange/codereview |
Is Firefox the only that supports the sendAsBinary method?
| stackexchange/codereview |
I have a webpage, and facebook page. I would like to have a "like" button that wouldn´t like the facebook page but the last post I made on the facebook page. Is this possible?
Greetings
| stackexchange/codereview |
This is my HTML:
<form method="POST" action="">
<?php
$skillSubCategory = $skills->showSkills(24);
for ($i = 0; $i < count($skillSubCategory); $i++) {
?>
<input type="hidden" name="skillid" value="<?php echo $skillSubCategory[$i]['skill_id']; ?>" />
<?php echo $skillSubCategory[$i]['title... | stackexchange/codereview |
I'm talking about user uploaded images. These images might be unsafe and may even contain scripts and such. I was told that as long as I don't execute the image, I should be fine. What exactly counts as executing an image? If the user uploads a .png and I need to convert it to .jpg first before displaying it, does this... | stackexchange/codereview |
I have written several applications in Delphi which use Word automation. The programs all use templates which are stored in a directory. In pre-2010 versions of Word, one would define the location of the templates in tools|options|file locations; the programs would pass the name of the template and Word would know wher... | stackexchange/codereview |
I want to be able to draw a straight arrow from one mouse click location to another, as if you were doing it in PowerPoint. It needs to be able to draw on a PictureBox as well.
| stackexchange/codereview |
I have a simple upload form with:
enctype="multipart/form-data"/>
and
input type="hidden" name="MAX_FILE_SIZE" value="5900000" />
And the following settings, that are applied (checked through phpini()) in php.ini:
upload_max_filesize = 7MB
memory_limit = 64M
post_max_size = 8MB
I try to upload a file that is s... | stackexchange/codereview |
I have a program in Linux which refuses to run if its stdin/stdout is not a TTY (terminal device). Is there an easy-to-use tool which will create a PTY, start the program with the newly created TTY, and copy all data over stdin/stdout?
The use case is not interactive, but scripting. I'm looking for the most lightweight... | stackexchange/codereview |
<style>
body{
color:red;
}
.wrapper{
width:900px;
height:auto;
padding:0px;
margin:auto;
background:#000000;
}
.header{
width:900px;
height:200px;
float:left;
padding:0px;
margin:0px;
}
.body_content{
width:900px;
height:200px;
float:left;
padding:... | stackexchange/codereview |
I have MySQL replication setup, and it replicates nicely the database data. However, I also use FileField and ImageField, and have file loaded onto the FS. I probably will just use rsync to manually replicate this, but is there a better way?
I know of key value storage. But for this project, I am looking to minimize th... | stackexchange/codereview |
I'd like to have a class that will resolve calls to static functions that don't exist.
If you have an object that subclasses the Proxy class, you can override the callProperty() method to catch calls to functions, as properties of that object, that don't exist.
How can this be done with static function calls in a class... | stackexchange/codereview |
I have a Git repository with a lot of history. I'd like to make this accessible to others, but one of the directories in it contains proprietary code that can't be distributed. Is there any way I can make a clone of the repository (with history) that excludes that directory?
Bonus: I'd also like to be able to merge c... | stackexchange/codereview |
I have a proof of concept project and as part of it I need to identify the best way to display the User Name(the person logged on the PC) on the ToolWindow.
The idea is to get this from the client and not the server or service. The package is to be VS 2008 first, then I need to do it in VS 2010 next. I am using WPF... | stackexchange/codereview |
I have a simple XML file as shown below.
<?xml version="1.0" encoding="UTF-8"?>
<myConfig>
<datasets>
<dataset name="set1">
<var name="orgName">org1</var>
</dataset>
</datasets>
</myConfig>
When I print the si... | stackexchange/codereview |
http://skfox.com/2010/01/14/jquery-ui-1-7-2-not-ready-for-jquery-1-4/
http://forum.jquery.com/topic/common-problem-jquery-ui-and-jquery-1-4-x
They all met problem when using jquery ui with jQuery 1.4,is there a release of jquery UI that's compatible with jquery 1.4 now?
| stackexchange/codereview |
I need to install a perl tool on a production server which has no compiler. I can install CPAN distributions fine via local::lib, but the lack of compiler means I have to ask the sysadmins to install further modules. Due to them having an average turnaround time of 1-2 weeks even for the most ridiculously simple tasks,... | stackexchange/codereview |
I have a one Application in .net ,
I want Auto Logout If data entry Operation rest For Five minute then !
application is auto logout !
will it only logout if nothing is done at screen !
I have tried Below Code But Session Is Expire even if work is on !
<authentication mode="Forms">
<forms loginUrl="../frmLogin.... | stackexchange/codereview |
In the recent Erlang R14, inets' file httpd.hrl has been moved from:
src/httpd.hrl
to:
src/http_server/httpd.hrl
The Erlang Web framework includes the file in several places using the following directive:
-include_lib("inets/src/httpd.hrl").
Since I'd love the Erlang Web to compile with both versions of Erlang (R13 ... | stackexchange/codereview |
I am using WCFstrom lite to find the problem with the webservice connection. It comes up with the error
"
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.RSS Feed
"
But as it is lite version... | stackexchange/codereview |
I'm running an Apache web server and was wondering what's the best way to deploy changes (from github) to the web server?
/var/www/ right now is only writable by root.
Should I have my git project directly in /var/www/? (so it creates /var/www/.git/?)
However, when I need to run commands (i.e. sudo git push) wouldn't w... | stackexchange/codereview |
I have bunch of audio stream URLs, like this one:
http://popplers5.bandcamp.com/download/track?enc=mp3-128&id=1269403107&stream=1
(which, by the way, are from the incredible bandcamp . com)
I need to know how to use these with audio streaming scripts like the wpaudio plugin (wpaudio . com)
Most of these plugins require... | stackexchange/codereview |
This is an interview question: Given the 1.14 billion population of India,what is the most effective/efficient sorting algorithm that can be used to sort them by their heights?(Heights data is available to you).
| stackexchange/codereview |
Hey,
I would like to show the title and the price of a movie in my Gridview. The title and price are properties from the class Movie and Movie is a property of the class CartItem.
Here is the Code of my gridview
<asp:GridView ID="gvShoppingCart" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField... | stackexchange/codereview |
I looked around and found some of the MySQL engines are innodb and MyISAM. Perhaps there are few more. My question is what are these database engines?
What are the differences between different MySQL engines? And more importantly, How do I decide which one to use?
| stackexchange/codereview |
I am using the NetworkStream of a TcpClient to send bytes from a .NET server to a Silverlight Client that receives them via a Socket. Sending from the client is done via Socket.SendAsync.
My question is, what is the minimum amount of bytes I can expect to be received "in one go" on both sides, without the need to send ... | stackexchange/codereview |
I want to connect a MySQL server (a gs server from mediaTemple) to a MySQL server using PHP, I cannot use the mssql_pconnect() function because they don't support it for their gs servers so I'm looking for an alternate route, I don't know if it's even possible.
What I want is to generate a connection on the MySQL serve... | stackexchange/codereview |
I heard there is limitation when using waitall on multiple threads (# of threads to wait?). Can anyone give details?
| stackexchange/codereview |
I have seen both styles used widely: #1 lambda { raise "Boom" }.should raise_error and #2 expect { raise "Boom" }.to raise_error. I like expect..to more as it reads better and hides the creation of the proc.
I looked at rspec code and it seems expect..to is suggested, however I regularly come across libraries using lam... | stackexchange/codereview |
I want to let my users upload an avatar on their profile. My first idea was to name the avatar file like this: [user_id].jpg. So even if a user updates its avatar, it keeps the same name.
The problem with that is that if I use caching on the server (or even if it's used on the client) the new avatar won't show up.
My n... | stackexchange/codereview |
I have created a method that would bind all the tables with primary keys in a drop down like this
public void PrimaryKeyTable()
{
SqlConnection sConnection = new SqlConnection("Server=192.168.10.3;DataBase=GoalPlanNew;User Id=gp;Password=gp");
//To Open the connection.
sConnection.Open... | stackexchange/codereview |
I have this code for creating an array of images to display on a view. Most of the pages in my view will have 20 images (in columns of 5, rows of 4), but i actually have 43 images and when my images array contains the final 3, i get an exception when on the 4th iteration of the inner loop, the array is empty.
- (void)d... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.