instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I created a "Hello World" Sharepoint 2010 solution using VS2010. It contains just a feature, and a webpart containing a label. I registered the webpart as a safe control in the "Properties" window of the webpart, in VS2010.
When I deploy my solution to my local server, everything works great! I can add the webpart to ... | stackexchange/codereview |
My customer needs a more organized inventory of all 3rd-party libraries (such as JAR files) that are used in production for their projects. I am involved with a number of their Java-based projects. Their inventory has not been consistently maintained in the past and the time has come to account for all the libraries th... | stackexchange/codereview |
Our organization has started a project hoping to use sharepoint to create Electronic Records for Clients rather than the paper method which tends to have documents get lost etc.
I have been tasked with interfacing with sharepoint to find documents associated with a given client. Each document has sharepoint metadata t... | stackexchange/codereview |
I'm really new too Json and I'm trying to call a Web Service.
When the service return an array of one element de json string for this array is without the
[ ]. This cause a Exception in the serializer I use. (I use this one http://james.newtonking.com/)
My question is simple can I add something too tell to the deserial... | stackexchange/codereview |
Can an OTP event manager process (e.g. a logger) have some state of its own (e.g. logging level) and filter/transform events based on it?
| stackexchange/codereview |
How does one begin writing drivers for Windows? Is there some sort of official DDK "Hello World" example out there?
While I'm sure it will be way above my head at first, eventually I would like to create a simple MIDI driver, much like the Maple Virtual MIDI Cable where the MIDI messages come from a user application r... | stackexchange/codereview |
I need a schema for fitness class.
The booking system needs to store max-number of students it can take, number of students who booked to join the class, students ids, datetime etc.
A student table needs to store classes which he/she booked. But this may not need if I store students ids in class tables.
I am hoping to... | stackexchange/codereview |
I enumerate all threads in a process through the CreateToolhelp32Snapshot function. I would like to get some basic stack information for each thread. More specifically I would like to get stack bottom address and if possible I would like to get current stack top address. Basically this is the information displayed with... | stackexchange/codereview |
I have a small JavaScript function that (among other things) retrieves the ID of the last element with a certain class name.
var lastRowID = $(".sectionRow:last").attr('id');
It should find elements in a table that looks similar to the following:
<table>
<tr id="courseSection[0]" class="sectionRow"><td>stuff</td><... | stackexchange/codereview |
i have some code to test if the proxy server and port is working ,some of the code like this:
System.getProperties().put("proxySet", "true");
System.getProperties().put("https.proxyHost", "localhost");
System.getProperties().put("https.proxyPort", "1234");
System.getProperties().put("http.proxyHost", "localhost");
Syst... | stackexchange/codereview |
I have problem with LDAP Spring Security, I'm trying to authorise against the LDAP server. I have the spring configuration xml file (security-config.xml) like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xm... | stackexchange/codereview |
I have a NetBeans project with quite a few classes in it.
I've been working on this project for the past 3 weeks, and just started having this issue today. When clicking the "Run Main Project" button in NetBeans, I see the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: stockscreener/Stock
... | stackexchange/codereview |
I have a class that inherits from an abstract base class. I am trying to verify that a specified protected method in the base class is called twice and I'd like to verify that the parameters passed are specific values (different for each call).
I was hoping that I'd be able to use Protected with either Expect or Verify... | stackexchange/codereview |
I've got to the section on operators in The Ruby Programming Language, and it's made me think about operator associativity. This isn't a Ruby question by the way - it applies to all languages.
I know that operators have to associate one way or the other, and I can see why in some cases one way would be preferable to th... | stackexchange/codereview |
I've made on my website a search.php file that produce a JSON string, helping me to use real-time ajax for my apps.
But now, I'd like to open it as an API to others, but I discovered that $.get $.getJSON $.ajax doesn't allow to use my search.php file from other servers/domains.
How can I do to transform my php search i... | stackexchange/codereview |
I've created a ListPreference in PreferenceActivity and it works good:
user clicks on the Preference item
a list dialog opens (retrieves listItems and their values from array.xml)
if the user selects one of the list items it saves his selection (which I can later retrieve).
My question is: how can I preform a method ... | stackexchange/codereview |
Is there a way to change python2.x source code to python 3.x manually. I guess using lib2to3 this can be done but I don't know exactly how to do this ?
| stackexchange/codereview |
I have created a View controller with some methods I need to use often in different aplications. It works like a charm if I use it directly but when I try to create another UIViewController that extend my class I cannot access self.view anymore. This is the init method of the original class:
- (id)initWithNibName:(NSS... | stackexchange/codereview |
I have a form with a TableLayoutPanel docked to it, and with a TextBox, Image, TreeView and ListView within that Panel.
When the user resizes the form, these controls resize with it, but there is a noticeable delay if the user resizes quickly or if the user maximizes the entire form; the delay is so considerable that I... | stackexchange/codereview |
I was wondering why you would still use ASP over Silverlight, since with silverlight there is a lot you can do already. And you dont have to use css, jquery, js, html, etc.
Also with silverlight you can do a call to the database via ria service.
I can only think of 1 reason which is, that not every one has the plugin ... | stackexchange/codereview |
I'm trying to setup data annotation validation for an object in my model and it has a special need. I have to essentially take some extra properties that I'm adding and combine them to get the value of a real property. For example I have a base object:
Task {
public DateTime? Due
}
But my form has the fields of:
T... | stackexchange/codereview |
does all resource (all in res folder if on eclipse IDE), specially drawable image, is loaded to memory during runtime? or it is just like a file which is available when the application need it?
| stackexchange/codereview |
I've googled this topic up and down for a couple hours and found nothing... er... less than nothing...
I need a simple C# script to code a UPnP Spy like the Intel Device Spy... I cannot use the intel app because in our company we're providing power meters with network abilities which are mounted as upnp devices. Some o... | stackexchange/codereview |
I am dealing with a project, in wich I have written one Exception for each possible exception situation. The point is that I find it more "readable", but I am getting an insane amount of different exceptions.
Is it considered a good practice to do it like that? Or should I write just exceptions a bit more abstract, in ... | stackexchange/codereview |
I've created a new WPF project, and threw in a DataGrid. Now I'm trying to figure out the easiest way to bind a collection of data to it.
The example I downloaded seems to do it in the window c'tor:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DataConte... | stackexchange/codereview |
I was wondering about when does a static variable(in a class) come into picture(initialized)? Is it after the instance constructor called for the first time or after the class loads?
When does a class loading occur?
| stackexchange/codereview |
Here is my plist:
<dict>
<key>ehindi</key>
<string>ankamaal</string>
<key>part</key>
<string>n</string>
<key>meaning</key>
<string>hug</string>
<key>hindi</key>
<string>अंकमाल </string>
</dict>
Here is my code:
- (void)viewDidLoad {
[super viewDidLoad];
NSString *path = [[NSBundle mainBundle] bundlePat... | stackexchange/codereview |
I about to take some courses in Pattern Recognition.
As i have no prior knowledge in either C or C++, my professors told me to learn a bit of one of them before the course, and learn more when doing the course.
Which one should i pick?
The prior knowledge in programming i have is limited to mostly C# but some PHP, SQL ... | stackexchange/codereview |
I have an application with 4 threads working the same code. However, when I step it jumps between the different threads. How can I lock it to one thread so the other threads are ignored for debugging?
| stackexchange/codereview |
I have this code to load an NSView from a NIB and add it to another NSView:
// INIT
- (void)awakeFromNib {
// Load nib
DNListViewController *listViewController = [[DNListViewController alloc] initWithNibName:@"ListView" bundle:nil];
// Add view to window
[listViewController.view setFrame:detailView.frame];
[... | stackexchange/codereview |
I want to copy an installer file from a location where one of the folder names changes as per the build number
This works for defining the path where the last folder name changes
import glob
import os
dirname = "z:\\zzinstall\\*.install"
filespec = "setup.exe"
print glob.glob (os.path.join (dirname, filespec))
#... | stackexchange/codereview |
I have python code below that will loop through a table and print out values within a particular column. What is not shown is the form in which the user selects a Feature Layer. Once the Feature Layer is selected a second Dropdown is populated with all the Column Headings for that Feature and the user chooses which C... | stackexchange/codereview |
I am trying to find out where this particular player ranks among shooting guards in the NBA. I am using this post on stackoverflow for a guide.
I get the error "Invalid use of group function".
SELECT
first,
last,
team,
pos,
SUM(points) AS scoresum,
ROUND(AVG(points), 2) AS avgpoints,
(SELECT
COU... | stackexchange/codereview |
I have a huge issue with the WPF TreeView. I have setup a tree that is similar to this.
<TreeView DataContext="{Binding Projects}">
<Style TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="True" />
</Style>
<TreeView.Resources>
<HierarchicalDataTemplate x:Key="LoadTemplate">
... | stackexchange/codereview |
this one has been puzzling me for a few days now and I feel that I have barely been able to narrow it down.
I am using Java and have a wizard for the user to step through. One of the steps allows the user to select a start time & date and an end time & date to schedule some work. I thought I had the validation on the ... | stackexchange/codereview |
I'd like to have our ASP.NET web app create a desktop shortcut to our site on the user's (windows) desktop. With their permission of course. Like a button that they click and answer 'yes its ok', and then they get a link on the desktop or start menu that takes them to our site.
This may not seem like a great idea, and ... | stackexchange/codereview |
I need to extract table objects from PDF documents preferably programmatically using Perl. I am able to cut and paste to Excel, but the table would require quite a bit of manual editing once the data is imported into Excel.
I've done some search, but so far it seems though most forums suggest that most APIs are very p... | stackexchange/codereview |
I have latitude and longitude of two places. Can i calculate the distance between them in android?
| stackexchange/codereview |
What is the established way to pass some data — more than int, boolean, String because those can be handled as marker attributes — from the class that creates an IMarker to an IMarkerResolution so that the quick fix can be "smart" about what it displays/does?
| stackexchange/codereview |
EDIT: I forgot to include the prime candidate for web applications: JSON over HTTP/REST + Comet. It combines the best features of the others (below)
Persevere basically bundles everything I need in a server
The focus for Java and such is definitely on Comet servers, but it can't be too hard to use/write a client.
I'... | stackexchange/codereview |
I'm seeing the following crash on two different devices (an iphone 3g and an ipod touch) when in adhoc mode, although it seems to be OK when building in debug mode for those devices. It also seems to be OK on iPhone 4's.
Here's the stack trace that I'm getting in ad hoc mode:
https://gist.github.com/af5ea32f2dacc79538... | stackexchange/codereview |
I develop in C++, and sometimes I wish I could say something like this:
class Heading : public float // this line won't compile
{
public:
Heading( float const value_ )
: float(value_) // this line won't compile
{
assert( value_ >= 0.0f );
assert( value_ <= 360.0f );
}
};
Instead, I hav... | stackexchange/codereview |
I have allready tryed solutions from a few posts, but no luck.
The problem is that i'm facing is probably whit time zones. Both on device and simulator UIDatePicker and NSDateFormatter are returning incorrect dates, adding or substracting the difference from GMT 0, from the selected date (according to the current time ... | stackexchange/codereview |
Suppose I have the following contrived code:
abstract class Root
{
public abstract void PrintHierarchy();
}
class Level1 : Root
{
override public void PrintHierarchy()
{
Console.WriteLine("Level1 is a child of Root");
}
}
class Level2 : Level1
{
override public void PrintHierarchy()
{
Console.Writ... | stackexchange/codereview |
Is there a way to retrieve text coordinates from PDF file on iPhone?
Thanks,
Nava.
More details: I'm trying to get words from pdf file and highlight them. While it's a pretty simple task in Mac OS X, which has a PDFKit, it's not that trivial on iPhone, which has Quartz set of functions to present and get information f... | stackexchange/codereview |
I am trying to figure out a how to forward a specific alias of a server to a specific django web app, and at the same time, keep the URL address bar in the user's browser to only show the server alias.
To be more specific:
This is for an intranet project at my company. We have a big linux server which does a lot of... | stackexchange/codereview |
Is it possible to learn an entire programming language with about a week, at most two to spare? When i say a week i mean an average full time computer science university school week. are there some specific programs you can try that will make you reach substantially above intermediate level?
Substantially above interm... | stackexchange/codereview |
I'm using C++ and need to access a USB camera's LED flash feature. I'm currently using DirectShow to interface with the camera in other ways (live preview stream, grabbing samples, etc.).
I found the CameraControl_Flash enumeration element on MSDN, but it appears to be implemented only for Windows Embedded CE 6.0 and W... | stackexchange/codereview |
my code is something like this:
function func1() {
document.getElementById("img").src="pic.jpg";
---stament2---;
}
document.getElementById("img").onerror="func2()";
In other browser, if there is no pic.jpg, func2() is executed and AFTER that, stament2 is executed; in opera if there is an error loading the... | stackexchange/codereview |
I just noticed a strange behaviour while looking at my application in the Flash Profiler. When I click a button in my TitleWindow then the TitleWindow doesn't get garbage collected after it is removed. I have no idea why that is happening.
I've created a small example application, so you can try it out yourself:
Main.m... | stackexchange/codereview |
I'm using Django / Python. After saving the model I want to make a screenshot (preview) of how it looks in the template and save it on model field. Please tell me how to do it.
| stackexchange/codereview |
I'm looking for some advice on how to go about implementing Gradient (steepest) Descent in C. I am finding the minimum of f(x)=||Ax-y||^2, with A(n,n) and y(n) given.
This is difficult in C (I think) because computing the gradient, Δf(x)=[df/dx(1), ..., df/dx(n)] requires calculating derivatives.
I just wanted to throw... | stackexchange/codereview |
I have a problem, when I try to record and then play the file that was just recorded. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound a bit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks l... | stackexchange/codereview |
i wanted to declare a very large array. i found that the max size of an array is size_t, which is defined as UINT_MAX
so i wrote the code like this
int arr[UINT_MAX];
when i compile this, it says overflow in array dimension
but when i write like this
size_t s = UINT_MAX;
int arr[s];
it compiles properly.
what's the ... | stackexchange/codereview |
I have a question about how flock() works, particularly in python. I have a module that opens a serial connection (via os.open()). I need to make this thread safe. It's easy enough making it thread safe when working in the same module using threading.Lock(), but if the module gets imported from different places, it bre... | stackexchange/codereview |
I followed this tutorial: http://blog.boxedice.com/2010/01/19/updating-python-on-rhelcentos/ because I wanted to install python2.6 on a CentOS 5.5 machine without breaking yum.
And i was successfully able install python2.6. My question is that after completing the above commands the next time I try installing packages ... | stackexchange/codereview |
I am new to network programming in C#. I have found the TCPListener class very useful for sending text between computers, but I was wondering if it is possible to directly send objects (assuming both client and server have the class definition) between machines without having to first convert them to string and then ma... | stackexchange/codereview |
Create a .net 2.0 Windows form app, add a splitContainer docked Fill, with this in its form constructor:
public Form1()
{
InitializeComponent();
for (int i = 1; i <= 300; i++)
{
FlowLayoutPanel f = new FlowLayoutPanel();
f.Dock = DockStyle.Fill;
Button b = new Button();
f.Co... | stackexchange/codereview |
I am developing a program in Python that accesses a MySQL database using MySQLdb. In certain situations, I have to run an INSERT or REPLACE command on many rows. I am currently doing it like this:
db.execute("REPLACE INTO " + table + " (" + ",".join(cols) + ") VALUES" +
",".join(["(" + ",".join(["%s"] * len(cols)) ... | stackexchange/codereview |
I'm writing some client-server-application where I have to deal with multiple threads. I've got some servers, that send alive-packets every few seconds. Those servers are maintained in a ConcurrentHashMap, that contains their EndPoints paired with the time the last alive-package arrived of the respective server.
Now I'... | stackexchange/codereview |
So the rails code I used:
<%= image_tag("logo.png", :alt => "Sample App", :class => "round") %>
produces the HTML:
<img alt="Sample App" class="round" src="/images/logo.png" />
But when I load the page, it shows the broken image symbol.
What gives?
I am loading it in the latest stable build of Chrome on Windows, fyi... | stackexchange/codereview |
Do you see a better way how I can call/contstruct a Dialog from a Controller/ViewModel return data from it and set the DocumentViewModel as DataContext of the Dialog?
The problem is I can not use View first approach in the DocumentDetailWindow and its belonging UserControl because I can not set the Model to the Documen... | stackexchange/codereview |
For a language like C++ the existence of a standard is a must. And good compilers try their best (well, most of the good compilers, at least) to comply. Many compilers have language extensions, some of which are allowed by the standard, some of which are not. Of the latter kind 2 examples:
gcc's typeof
microsoft's com... | stackexchange/codereview |
We have two tables. The first contains a name (varchar) field. The second contains a field that references the name field from the first table. This foreign key in the second table will be repeated for every row associated with that name. Is it generally discouraged to use a varchar/string field as a join between two... | stackexchange/codereview |
I have a method
private void BindGrid()
{
dataContext = new VTCEntities();
string SortExpression = "DisplayName";
string SortDirection = "ASC";
int skip = 0;
if (this.ViewState["SortExp"] != null)
{
SortExpression = this.ViewState["SortExp"].ToString();
}
if (this.ViewState["So... | stackexchange/codereview |
I set a session var at template preprocess function in a theme I use, but the first time I open the site I cant read the session var, if I refresh the page it works fine, anybody know what can be the problem??
This is the code I use in the preprocess function:
function m_preprocess(&$vars, $hook) {
$default_locati... | stackexchange/codereview |
I have a transformable attribute on one of my entities, called reminder. It's a UILocalNotification.
Now, since I want to schedule it when it's added, and cancel it when removed, I would like to override the accessors to handle the scheduling and cancelling in there.
How would that look?
Thanks!
| stackexchange/codereview |
I am writing a generic hash map in C++ which uses chaining to deal with collisions.
Say if I have a hash map with 11 buckets, and I insert 8 items. The hash function will distribute it as follows:
bucket[0] = empty
bucket[1] = 2 elements
bucket[2] = empty
bucket[3] = 1 element
bucket[4] = 1 element
bucket[5] = 3 eleme... | stackexchange/codereview |
is thier a guideline of how i can deal with playing around with audios and recording webcams, and what file formats i should use for optimisation, and plus any poplaur modules, plugins and classes that i can use to prevent re-inventing the wheel. im really looking at using this kind of stuff for user generated content.... | stackexchange/codereview |
i am trying to process an MMS message with multiple attachments. For that I'm creating a HashMap as following (this is not the complete implementation but only the relevant part):
HashMap<String, Integer> hashAttachments = new HashMap<String, Integer>();
int c = 0;
if(atts != null) {
for(Attachment ... | stackexchange/codereview |
I have an enum, that looks like this:
enum Suit {Clubs, Diamonds, Hearts, Spades};
I want to overload the increment operator, so I can easily loop over these four dudes.
When the variable is Clubs, Diamonds, or Hearts there no issue. Its the Spades condition that is giving me a little trouble.
My first instinct was to... | stackexchange/codereview |
For some reason some users produced some files that end in "@@" (...) (I think because they have in the CCRC the gui option to show the version extended pathname and i think that has somewhere a little bug).
Now... they are unable to remove or rename these files (it returns "not a object in the vob")
how can they renam... | stackexchange/codereview |
Possible Duplicate:
What do I use for a max-heap implementation in Python?
Python has a min heap implemented in the heapq module. However, if one would want a max heap, would one have to build from scratch?
| stackexchange/codereview |
Can I put text in my CSS file , and have that text be visible in the displayed HTML?
| stackexchange/codereview |
I have a template where I want to replace certain regions. In my example below, I want to extract the regions between the ... comments, manipulate it, then replace them back after the manipulation.
I do not need the logic to merge the fields, but I need to extract the regions so I can use my logic and place it back i... | stackexchange/codereview |
Is there is a simple, pythonic way of rounding to the nearest whole number without using floating point? I'd like to do the following but with integer arithmetic:
skip = int(round(1.0 * total / surplus))
==============
@John: Floating point is not reproducible across platforms. If you want your code to pass tests ac... | stackexchange/codereview |
I've got a php class that I create several instances for. I'd like to get a count of how many times I've created that object.
<?php
class myObject {
//do stuff
}
$object1 = new myObject;
$object2 = new myObject;
$object3 = new myObject;
?>
Is there a way to find that I've created 3 myOb... | stackexchange/codereview |
i'm trying to get some results from table in a controller using the limit method.
I did that on the controller:
@articles = Article.limit(5)
And i got NoMethodError exception : undefined method `limit'
But when i did it that way it worked:
@articles = Article.all(:limit => 5)
Although i saw the first method on ror g... | stackexchange/codereview |
If I have a table with huge amount of data...and If I do incremental delete instead "one time delete"..what's the benefit ?
Onetime delete
DELETE table_1
WHERE BID = @BID
AND CN = @CN
AND PD = @PD;
Incremental Delete
While (1=1)
Begin
DELETE TOP (100000) FROM table_1
WHERE BID = @BID
... | stackexchange/codereview |
I have a few queries for you Rails 3 gurus out there. How can you accomplish the following?
The following pseudocode is currently invalid. Thanks all.
@items = (@itemsA + @itemsB).order("name ASC")
@item = Item.where("type = ?" and "condition = ?", "book", "new")
@commenteditems = Item.find_all_by_type_and_condition(... | stackexchange/codereview |
In android, is it possible that I would create my own Map figure, and then use this Map with the gps location from Google Map API
Example, I draw a map for my own house, then apply Google Map API to be able to make the location of each point in the map
| stackexchange/codereview |
We are planning to start a new Sale Management System which will have about 12 subsystem.
We will use MSSQL2008 as a database.
We have got custom framework for ASP.NET that was built about 3 years ago which is not MVC type... And i am planning to move to MVC2 Framework.
My Questions are
What will be the big advantages... | stackexchange/codereview |
I'm having this weird problem. My code is simple:
#include <iostream>
using namespace std;
int main() {
int num;
cout << "number: ";
cin >> num;
for (int i=0;num>i;i++) {
cout << i <<"\n";
}
system ("Pause");
return 0;
}
If the input for example is 1000, the output contains numbe... | stackexchange/codereview |
I'd like to study webdev myself, as there is no courses like that in Russia. To say more clearly - I'd like webdev to be my profession, but i still don't how to start it. I have a lot of time, great motivation and I want to work.
So please, could you make some kind of "guide" for me (what to read, what to do) to become... | stackexchange/codereview |
Is it possible to generate script from sql server using .net framework?
For example, if I have database "Northwind". Then I wish to create/generate script insert" in form file extension .sql (ex: northwind_insert.sql).
Is something like when you using sql-server "right-click on table" > "script table as" > "Insert to" ... | stackexchange/codereview |
I have 1 php page that is doing some manipulation and store data in 2 variable, now I want to pass this data to another page and that page is in jsp. I dont want to click anywhere, mean my php will call automatically to jsp page in last.
Please tell me how can i do this.
Thanks,
Manoj Singhal
| stackexchange/codereview |
We are using google org chart API to display our org charts. This works well but we need something that supports:
One person reporting to multiple managers
Co heads of a functional areas.
Are there any competing tools that give better support for the above.
NOTE: For Gorka LLona, who suggested this solution below i... | stackexchange/codereview |
I am looking for some resources for developing .NET apps for Windows Vista/7.
What are the challenges? Are there resources on dealing with UAC? What about upgrading a large enterprise XP application?
We have a large WinForms application written in C# with the .NET 2.0 framework. We are tasked with getting this applica... | stackexchange/codereview |
OK, I know this sounds like it should be asked on math.stackoverflow.com, but this is embarrassingly simple maths that I've forgotten from high-school, rather than advanced post-graduate stuff!
I'm doing some graphics programming, and I have a triangle. Incidentally, two of this triangle's sides are equal, but I'm not ... | stackexchange/codereview |
I'm experimenting with one of the functions in the K&R C Programming Language book and using pointers to write the strindex function rather than array notation. I have a strange problem that if I include a printf() statement at either of the two points in my code below then the function returns the correct index (6 in ... | stackexchange/codereview |
I have below methods to encode videos uploaded to a web site with ffmpeg. It works fine for videos up to 8-9 MB but, if video size is larger than 8-9 MB it hangs web site. Only way to recover it is restarting iis.
When i watch the process i can see that ffmpeg encodes video and exits. Resulted video is just fine. Probl... | stackexchange/codereview |
Out of this:
$arr = array(
array('boo', 4),
array('boo', 1),
array('foo', 2),
array('foo', 6)
);
how best calculate into this?:
$arr = array(
'boo' => 5,
'foo' => 8
);
| stackexchange/codereview |
Using PHP i want to create a picture gallery, i need a few suggestion on what would be the best logical solution for this.
a) create a directory for an album and move all the related pictures into the directory and henceforth follow the same way for other albums
b) keep a record or the path using the database(MySQL) an... | stackexchange/codereview |
In the following example a reference to reason is stored in both parent and child. I'd like to avoid this and store the reference only in parent (usual use of Java exceptions).
import java.lang.{Exception, Throwable}
class FileError(message: String, reason:Throwable) extends Exception(message, reason) {
...
}
How do... | stackexchange/codereview |
I would like to know how can i transform a .NET 4.0 VS 2010 C# project intro a 3.x .NET version? I just made an app for someone and i don't think he has the .NET 4.0 platform installed . Any ideas?
| stackexchange/codereview |
I actually can't see anything because of all the formatting symbols. I have no idea what hotkey that was but I can't find any solution how to disable those symbols. Have you any idea if there is a hotkey? I can't remember what that hotkey was ...
| stackexchange/codereview |
I currently have a HTPC connected to a plasma in my living room, and I've had a few issues with image retention. While browsing the web, etc. for an extended period of time I'll run into the issue. However, it looks like it should be relatively easy to set up a script with AutoHotKey to resize the window automaticall... | stackexchange/codereview |
We are attempting to transcode some video to a format suitable for our Flash Streaming Server. In the past we have used Adobe Media Encoder (AME) CS4, but we are working with *.VOB files this time, and AME CS4 does not support them.
We are attempting to use Handbrake now, as it has great support for h.264 and MP4 files... | stackexchange/codereview |
I have a problem with a image when trying to display it.
In my project i have a Class witch have a "public String Image" atribute.
I have a web server localy wich return me a colection of Class. When i look in debug mode at the Image atribute it show me the corect url (if i paste the url in browser it show me the image... | stackexchange/codereview |
Can I write a custom confirm box in JavaScript that, instead of the default OK and CANCEL button, shows a SAVE and DELETE button?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.