instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a few arrays of Ruby objects of class UserInfo:
class UserInfo
attr_accessor :name, :title, :age
end
How can I merge these arrays into one array? A user is identified by its name, so I want no duplicate names. If name, title, age, etc. are equal I'd like to have 1 entry in the new array. If names are the ... | stackexchange/codereview |
i have a datatable as the source of a combobox:
1
3
2
4
5
without knowing the order of the elemnts inside the datatable, and only knowing the exact text, is it possible to display a specific element like '4' ?
| stackexchange/codereview |
I have an input field which I would like to dynamically validate while user is typing... I am using Codeigniter and I believe that I have some URI problem... Let me show you the code...
HTML/PHP:
<input type="text" id="username"> <span id="validateUsername"></span>
jQuery:
$(document).ready(function() {
var vali... | stackexchange/codereview |
I have 25 table cells and I want to load all of them together, without reusing them.
Any Idea?
| stackexchange/codereview |
All,
In a bid to improve my C skills, I decided to start implementing various Java libraries/library functions to C code. This would ensure that everyone knows the functionality of my implementation at least. Here is the link to the C source code that simulates the equalsIgnoreCase() of String class in Java : C source ... | stackexchange/codereview |
I have a page with a register form.
"Username" is one of the fields filled out by users.
The form submits to another php page, which checks if the username is already taken or not.
If taken, then I need to go history.back() and at the same time set a session variable, so the previous page knows that the username exists... | stackexchange/codereview |
Hi
I am creating a simple slide show with next / prev buttons. When you get to the last one it whizzes back to the first one. However, if a user goes click crazy and clicks next before the last (ie 3rd) image has finished coming in then the animation is triggered again and things move the wrong way.
http://www.ee-web.... | stackexchange/codereview |
I have downloaded a file manager application called "AndExplorer" inside my Android emulator.
My goal is to call this application inside my current custom application. Do you know any way to do this?
| stackexchange/codereview |
background of left and right div(column) not show.but when add "height: xx px" are shown.
but my content div is flexible.how solve this problem?
tnx.
my code is :
<div style="background:url("image/l.png") repeat-y;float:left;width:3px;height:auto;" id="left"></div>
<div style="width: 613px;background:#fff;" id="center... | stackexchange/codereview |
I need a video to automatically pop up, ideally in a lightbox. It needs to automatically pop up when a user first visits the page, play the video then close. I also need a button to play again if needed. I also only want this video to play the first time a person visits the homepage, so when you navigate back to the ho... | stackexchange/codereview |
I have the notion that this is very easy and over-documented, but I have been at this for hours on end and I just don't get it! All I want to do is return the result of a $.getJSON query. It works fine if I append it to a div etc, but if I try to just get the result, I can alert it in the callback function, but not a... | stackexchange/codereview |
I am using the following code to show a "follow me" box to the left of my site.
I'd like to create a second button, right underneath this button that sent people who clicked it to an RSS link.
How could I do this?
Thanks!,
Azeem
<!-- by Twitter Follow Me Box v1.1 -->
<script type=\"text/javascript\">
//<... | stackexchange/codereview |
I am sure this must be a common question but I cannot find it anywhere so here it goes:
I have dates in this format: 09/Jul/2003:00:03:48 -0300 and I want to push them into a DATETIME field in MySQL.
What is the easiest way to do this? Pushing them in as is results in them being zeroed.
| stackexchange/codereview |
Is there an easy way to do this say i have their zipcode and i only want to charge state residents and none state residents dont get charged
| stackexchange/codereview |
Is my dataset too large for people to explore from the browser?
The size of the json_data.js is 550KB.
Dimension are 5 columns and 10,000 lines. (3 columns of words, 1 of dates, and 1 of integers)
Basically I have 10,000 of these lines "Id|Activity_Title|Location|Start|Duration"
I had initially hoped to use 2 jquery pl... | stackexchange/codereview |
Some code and my goal
My (simplified) model:
class Stop(models.Model):
EXPRESS_STOP = 0
LOCAL_STOP = 1
STOP_TYPES = (
(EXPRESS_STOP, 'Express stop'),
(LOCAL_STOP, 'Local stop'),
)
name = models.CharField(max_length=32)
type = models.PositiveSmallIntegerField(choices=STOP_TYPE... | stackexchange/codereview |
Question: I want to control cmd.exe from winforms.
I DO NOT mean every command in a single process, with startupinfo, and then stop.
I mean for example start the (My) SQL or GDB command prompt, send command, receive answer, send next command, receive next answer, stop SQL command prompt
exit process.
Basically I want ... | stackexchange/codereview |
I just realized that my LINQ methods aren't doing anything at all what I thought they were.
HighestRatedBooks = allBooks.OrderByDescending(b => b.Review.Rating).Take(5).ToList();
The above query doesn't get the top 5 highest rated books, but rather 5 seemingly random books.
What would the correct query look like?
Righ... | stackexchange/codereview |
I have two vectors representing the location of points (x,y) that I'd like to plot.
I know how to plot them, but I'd also like to label them 1, 2, 3, 4... with labels visible on the plot. The labels represent their order in the vector.
| stackexchange/codereview |
This simple test code works in all browsers except IE (tested in IE8):
#dBox {
height:100px;
width: 230px;
overflow-y:auto;
}
$(function () {
$('#s').focus(function(){
$(this).after('<ul id="dBox"></ul>');
for (i=0;i<10;i++) $('#dBox').append('<li>'+i+'</li>');
});
$... | stackexchange/codereview |
I have a validation class that uses the following CSS selector (Prototype 1.6.1):
$$('*[class*=validate]')
The idea is I have various class names for elements that start with 'validate', ie 'validate-numeric' or 'validate-url'. So, I'd like to grab any element with the word validate in the class attribute.
It works i... | stackexchange/codereview |
I created a subclass of UITextView and now I want to extend the default UIMenuController by adding some buttons. Performing the extension is no problem at all, I just need to add some UIMenuItem so the menuItems array of the shared instance of the UIMenuController.
My question is now: Where do I perform this manipulat... | stackexchange/codereview |
Possible Duplicate:
Why is Git better than Subversion?
I follow a number of different open source projects, mainly around Java technology, but this question is probably universal. I have noticed over the last 6 months or so that many projects are moving Way from subversion and moving to git.
My question is why? What... | stackexchange/codereview |
I have such a text for example:
"A01+B02+C03+D04+E05+F06+G07+H08+I09+J10+K11+L12+M13+N14+O15+P16"
I would like to add a space after each fourth '+' sign.
This is because if the text is too long in the grid's cell in my page, then it's simply cut off. So I'm thinking to simply wrap the string before binding the data to... | stackexchange/codereview |
I'm new to Jquery and Asp.Net MVC.
i am trying to pass an ID parameter
from an ActionLink on a page to jQuery function.
This Id is then passed to a controller that returns a resultset that is rendered in a modal dialog box.
what is the best way of capturing the Id parameter from the ActionLink in the Jquery Function?... | stackexchange/codereview |
I am able to successfully get lat/long and pass it to the geocoder to get an Address. However, I don't always get an address back. Seems like it takes a couple of attempts? I'm not sure why.
Is there a better way for me to obtain the address at this point?
public List<Address> getAddresses(){
Geocoder geocod... | stackexchange/codereview |
.
I use FullCalendar.
In Day View I would like to be able to specify an editable area - as shown in white in the screenshot between 13:30 and 20:00.
So I should not be able to drag a session outside this area or modify the brown session (outside of the white area)
| stackexchange/codereview |
I'm trying to find out if it is possible to disable completely all interaction - links (text or images), form inputs/buttons - for an entire DIV.
For example you have a registration form divided in 3 steps, but all displayed in the same page. Unless the first step (DIV1) requirements have been fulfilled, the whole DIV2... | stackexchange/codereview |
I've made an iOS code library in pure C++, which I intend to publish to a lot of people. As far as I know, at the time of writing, the only way to share compiled code on iOS is through a static library.
Unfortunately, there are some clever bits in the code which I'd like to hide from public view. What I'd like to do is... | stackexchange/codereview |
I am JUST starting with Dojo and am following the "Hello World" tutorial to the letter. It's here... http://www.dojotoolkit.org/reference-guide/quickstart/helloworld.html
I have an HTML page coded like this...
<html>
<head>
<title>Dojo: Hello World!</title>
<!-- SECTION 1 -->
<style type="text/css">
@import "dojoro... | stackexchange/codereview |
Possible Duplicate:
How do I parse a URL into hostname and path in javascript?
I’m trying to parse the url of the page. For example the current page is location.href.
So the main page of my blog, if I use alert(location.href); it will return “http://diaryofthedead.co.cc/” in an alert box. If I use alert(location.hre... | stackexchange/codereview |
Is it possible to expose the DataContext when extending a class in the DataContext? Consider this:
public partial class SomeClass {
public object SomeExtraProperty {
this.DataContext.ExecuteQuery<T>("{SOME_REALLY_COMPLEX_QUERY_THAT_HAS_TO_BE_IN_RAW_SQL_BECAUSE_LINQ_GENERATES_CRAP_IN_THIS INSTANCE}");
}
... | stackexchange/codereview |
I've googled tons of times but i really find flash map charts where you rollover and get a value. i already checked out anychart, anything better?
P.S. I don't want static image charts.
Thanks
| stackexchange/codereview |
When compiling using G++ GNU compiler every time I do a build, without changing source code I get a different binary object file. Is there a compile option that will give me the same binary each time.
| stackexchange/codereview |
I have been away from using Log4J for a few years. I'm now working on an application under JBoss 5, using the org.jboss.logging package. Back when I used to do this, it was a common technique to enclose the logger.info() messages inside of a check of the logging level. This avoided relatively expensive operation of ... | stackexchange/codereview |
Anyone knows if there is a cleaner/simpler way of doing the equivalent ?
Also, any side-effects I should watch out for ?
var setters = from setterBase in Style.Setters
let setter = (setterBase as Setter)
let properties = new []{ HorizontalContentAlignmentProperty, VerticalContentAlignmentPro... | stackexchange/codereview |
I've got a table with 500.000 records filled with Twitter updates. Then I've got a table with user info.
I basically need all the Twitter records of the people in my user table.
I can do it with this SELECT IN query:
SELECT *
FROM STATUS WHERE twitterUserID
IN (
SELECT twitteruserid
FROM accountLink
)
But ... | stackexchange/codereview |
I have two WPF pages open, and I want to send "textbox3.text" from Page2 to "textbox1.text" in Page1
in vb that's easy:
page1.textbox1.text = texbox3.text
but I can't find out how to do that in WPF
| stackexchange/codereview |
Attempting to upload a file to a database and was wondering if someone could help me a bit as I've gotten a bit stuck, and there are no errors. What happens is, my view displays where I go to upload my file. As soon as I hit the upload button it brings me back to the CreateCover upload page of the application, however ... | stackexchange/codereview |
num=0.5
avg=`seq 0.47 0.01 0.79`
case $num in
"$avg" )
echo "ok"
;;
1 )
echo "no"
;;
esac
Im trying to do this, if you understand.
So, im giving it a number, and it is ok if number matches sequence.
But this does not work. Is there another way to do this?
| stackexchange/codereview |
I'm trying to fix strange QtableView behaviour: if one delete row but not commit data, it stays visible in grid. So, I need to retrieve data about deleted rows and know when we discard changes.
Info I need is stored in
d->cache[row].op
of qtableview. Can I somehow get it from there in my subclass?
If no, can I someho... | stackexchange/codereview |
I'm interested in doing some initial development targeting OpenGL 3. Unfortunately, my hardware is ~6 years out of date, and it doesn't look like ATI provides any drivers for my video card which support the newer OpenGL API's.
Are there any software implementations of the OpenGL 3 API's? I'm aware the performance will ... | stackexchange/codereview |
Using BorderLayout, how would I add two components that are equal in size and alignment and will resize as such.
As an example, I will use textarea1 and textarea2
Initially the panel is 200,100: textarea1 is at 0,0 and has a size of 100, 100 & textarea2 is at 100, 0 with a size of 100,100
The pane is resized to 300,300... | stackexchange/codereview |
I have a HTML <title> element which I want to dynamically change depending on other elements. I tried using document.getElementsByTagName('title').innerHTML = dynamicContent but this did not seem to work. I have seen it done before, but I can't seem to figure out exactly how to do this.
| stackexchange/codereview |
I've been loading a lot of binary files recently using C/C++, and I'm bothered by how inelegant it can be. Either I get a lot of code that looks like this (I've since moved on):
uint32_t type, k;
uint32_t *variable;
FILE *f;
if (!fread(&type, 4, 1, f))
goto boundsError;
if (!fread(&k, 4, 1, f))
goto boundsErr... | stackexchange/codereview |
I have a delegate foo, I call BeginInvoke on it and retrieve the IAsyncResult into a var bar.
I then call EndInvoke(bar) and everything is happy.
Why do I have to pass bar to endinvoke? what exactly is going on that demands this? I realize Endinvoke is mandatory to clear possible resource leaks, but this parameter make... | stackexchange/codereview |
I have an GWT-RPC service with two methods, test and login.
I call the methods in this order, printing out the session information each time:
login()
Session Information:
ID: odl0h9578zww
isNew: true
test()
Session Information:
ID: lqv4leczh3ke
isNew: true
As can be seen here, both calls have a different session ID.
... | stackexchange/codereview |
I have a bunch of vhosts set up on a server and I want a sort of universal include folder that they can all include from. In the php.ini the include_path and open_basedir both include the path to the folder. The include is located in the same path as all the sites and I've even tried setting permissions to 777 and put ... | stackexchange/codereview |
As serial port communication is asynchronous, I figured out early on into my project involving communication with a RS 232 device that I will have to have a background thread constantly reading the port for data received. Now, I'm using IronPython (.NET 4.0) so I have access to the slick SerialPort class built into .NE... | stackexchange/codereview |
I'm trying to prevent a user from disabling style.(I HAVE A GOOD REASON TO DO THIS, so please no posts about accessibility as 99.99% of my site is totally accessible. Just tryin to prevent on .1% of my pages. and if you must know it is a paid web course that i dont want people stealing.....easily).
Im using Jquery:
fun... | stackexchange/codereview |
In my program, I have a map with string keys and list (of a user-defined class) values, defined like so:
std::map<const char*, std::list<Show>> _shows;
I have a function that adds to a specific list, like so:
void Add(Show s, const char* index) {
list<Show> lshow = _shows[index];
lshow.push_back(s); }
However, every ... | stackexchange/codereview |
Can i INSERT 2 rows or array in mysql at once ?
| stackexchange/codereview |
I have a virtual studio c# window form project. I have use a c++ class to create its object
c++ class named PushSourceDesktop.cpp
| stackexchange/codereview |
I read in a book on non-deterministic mapping there is mapping from Q*∑ to 2Q for M=(Q,∑,trans,q0,F)
where Q is a set of states.
But I am not able to understand how it's 2Q;
if there are 3 states a, b, c, how does it map to 8 states?
| stackexchange/codereview |
I am looking for a way to draw dotted lines to connect nodes in a wpf TreeView. The problem seems to be that i am using HierarchicalDataTemplate instead of populating the TreeView with TreeViewItems.
I have found this post:
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/30cb182c-9419-40bd-946e-87971515fb95/
W... | stackexchange/codereview |
I'm trying to follow a tutorial on openXML here.
I don't follow the bit where he talks about storing an XML fragment in project resources.
He can then obtain a copy of the XML fragment easily with
String content = Properties.Resources.XmlContentForEmbedImage;
I don't know how to do this, and I've googled without findin... | stackexchange/codereview |
I am trying to create backup and restore of a database to new server with new name using C# and SQL server database. I can create a backup of the database but I am not able to restore it to the new server using the new name.
My query looks something like this: it doesn't work and errors out:
RESTORE DATABASE test1 FRO... | stackexchange/codereview |
I am very new to this. Kindly advise me.Basically, I want to convert the COBOL code to Java and generate reports using Spring Batch or BIRT framework. Can you please advice how to start off with this or any underlying architecture of how it works or any references will be helpful.
Thanks a lot for your time.
| stackexchange/codereview |
I am newbie in Lucene, and I'm having some problems creating simple code to query a text file collection.
I tried this example, but is incompatible with the new version of Lucene.
UDPATE: This is my new code, but it still doesn't work yet.
| stackexchange/codereview |
Would someone explain the below code?
A{}
C{public: begin(&a); private: A *a;}
begin(&a)
{
a = &a;
}
B{private: A *a; C *c; start(); }
start(){
c->begin(&a);
}
=> In B, the object A is created and in C the object A is referenced to the object a in B.
then I got this problem:
no matching function for call to... | stackexchange/codereview |
I have an element which I am adding a class to.
the style is:
.bg{ background: url(/images/background.png) no-repeat top center #000; }
When I add the class with javascript the background image show up, and the color show up, but the positioning does not.
This works fine in everything except IE
| stackexchange/codereview |
I need to set up a launch condition in my installer to prevent the user from running the MSI file directly unless they are running an uninstall. (All other types of install should be run from the bootstrap app so that it can make sure that all of the preconditions are met.)
What conditions to I need to check for this? ... | stackexchange/codereview |
Suppose you need to perform some kind of comparison amongst 2 files. You only need to do it when it makes sense, in other words, you wouldn't want to compare JSON file with Property file or .txt file with .jar file
Additionally suppose that you have a mechanism in place to sort all of these things out and what it comes... | stackexchange/codereview |
I want to append new input to list SESSION_U without erasing its content. I try this:
...
try:
SESSION_U.append(UNIQUES)
except NameError:
SESSION_U = []
SESSION_U.append(UNIQUES)
...
I would think that at first try I would get the NameError and SESSION_U list would... | stackexchange/codereview |
I recently switched from Aptana Studio 2 to Aptana Studio 3 (both as an Eclipse [Helios] plugin), with the hope that the new version will bring HTML5/CSS3 support, but so far, the support was partial at best (no docs/auto-complete).
So I'm now looking for a good web-editor with a good support for HTML5/CSS3,
Anyone ha... | stackexchange/codereview |
I'm currently trying to configure Subversion/Apache/Trac and I've run into an error that I have never seen before and that google has not yet indexed:
2010-11-03 11:49:50,335 Trac[api] WARNING: Found no repositories matching '/path/to/repos/tests/' base.
Does anyone know what this could be about?
Thank you very much fo... | stackexchange/codereview |
Sometimes as I am debugging step-by-step, just before a FormCreate Event or just after the FromDestroy the debugger starts to open DevExpress units (cxContainer.pas, ...) and so before FormCreate my "F8" leads me to cxContainer instead of going into the next line of my code.
(this is just an example, it can happen of c... | stackexchange/codereview |
Possible reasons:
1) so the user can't figure out the code and "issue himself more licenses" or other stuff that is commercially sensitive to you
2) so the user can't "just make a tiny change" and break what he doesn't understand, then tell you he didn't change anything and expect you to fix it (sure, you can make him... | stackexchange/codereview |
I'm working on open source software and thinking of using a gettext to localize the interface. The question is: is there a way for me not to add a gettext module dependency?
Since gettext support comes as a PHP module, I need to make all users install it. Is there an alternative for that?
| stackexchange/codereview |
as I asked time ago in this question, I solved my problem using this method:
In loging.xhtm, for instance:
<f:view locale="#{languageDetails.locale}" >
<head>
.....
<f:loadBundle basename="messages.Messages" var="msg1"/>
.....
</h:form>
</body>
</f:view>
2.In java source code I also made some changes:
p... | stackexchange/codereview |
Is there a native .NET class that handles timespan like this? I haven't been able to find one.
Is there one that comes close?
Public Class Period
Property FromDate As Date
Property ToDate As Date
Public Sub New(ByVal fromDate As Date, ByVal toDate As Date)
If fromDate > toDate Then
Th... | stackexchange/codereview |
I'm starting to program in Java (with the Spring Framework) and finding myself confused about the difference between DAOs and Spring's Beans. Do they serve to the same purpose?
| stackexchange/codereview |
Basically, every button works in Firefox, Chrome, IE, but they will not work in Safari.
I'm using straightforward code:
Button1.addEventListener(MouseEvent.CLICK, ButtonClick);
function ButtonClick(event:MouseEvent):void {
gotoAndStop(3);
}
The movie starts on frame 2 - frame 1 is a preloader. Classes are set to ... | stackexchange/codereview |
I am having a problem trying to sort with an XSL file using the XslCompiledTransform in CLR4.0. Here is my sample XML file (Note: there is a space after the second <foo> element):
<?xml version="1.0" encoding="utf-8"?>
<reflection>
<apis>
<api id="A">
<foos>
<foo/>
</foos>
</api>
<api... | stackexchange/codereview |
I have a user that wants to be able to upload photo's to his website, and then be able to choose which album he wants them to appear in. I already have the albums hard coded on the site, but he wants the ability to add more.
Does anyone know of a script or cms or something that this can easily and cheaply be implement... | stackexchange/codereview |
I've got a list of objects and I've got a db table full of records. My list of objects has a title attribute and I want to remove any objects with duplicate titles from the list (leaving the original).
Then I want to check if my list of objects has any duplicates of any records in the database and if so, remove thos... | stackexchange/codereview |
How could I best send a message using the Android from an external email address to the user's email address or SMS?
For example, when the phone senses acceleration, it sends a message from youdroppedme@gmail.com to the user's gmail account.
I would prefer to use the core API, if possible. I am also considering using a... | stackexchange/codereview |
I'm not looking for any URL, and i think im close, but not close enough. I need a regex, that works with JS, and matches:
http OR https
portlandonline.com OR portlandoregon.gov
And then anything after that EXCEPT spaces.
I've come up with this so far, but it's not working, but it's close:
https?://portland+[online\.com... | stackexchange/codereview |
Once a user hits a URL the local machine does a lookup on the hosts file to see if there are any entries, if not the local machine pings some DNS (how? where?) to resolve the URL and get the associated IP address... Once it gets the IP it opens a socket channel on that IP address and interacts with the server...
Is thi... | stackexchange/codereview |
I am wanting to setup a service that allows people to send a text to my server and have the server return results of their questions.
Let's say they send a text to my server saying "movies"
and it returns the results
"Boondock Saints"
"Avatar"
"Star Trek - Spock got lost again"
what is this called?
how much would somet... | stackexchange/codereview |
I am porting a VB6 database-centric application relying on ADO to C# (relying on ADO.NET). The schema of the databases this application access are arbitrary and I'm relying on DbConnection.GetSchema to retrieve information.
As near as I can tell (And here's where I need help), GetSchema is supposed to replace the ADO... | stackexchange/codereview |
I have recently nabbed an example of reading in multiple hashtags from a url, while the first split works perfectly fine the second time I try to spilt the values a second time it seems not to be read in as seen I have tried to use the alerts to determine the problem and they stop working shot of the keyValuePair is in... | stackexchange/codereview |
Should we always use ob_start in our applications?
| stackexchange/codereview |
I am using UIScrollView and an image in it as paging one image per page. I have a problem while rotating the iPhone
When I rotate the iPhone then scrollViewDidScroll (Scroll view delegate method) is calling.
Due to this, my paging is disturbed and the page number changes.
What is the solution?
| stackexchange/codereview |
I have a WPF Frame with a web-based HTML source and though the contents are there, they aren't showing up. I know that the content is there because if I right click in just the right spot I can save images. Also, if I do print preview it shows just fine. The stuff is there, but it isn't showing up. Is there a know... | stackexchange/codereview |
I implemented a generic way to get the object by id from Entities defined in Entity Framework.
But the problem is the object I got has a very weird type like this
{System.Data.Entity.DynamicProxies.MyEntity_C71732021C3A9D6A58BDB6087D29E98CFDE09DA9D53AF0892AFB7918AEF7E61F}
And WCF will fail when serialize this objec... | stackexchange/codereview |
I'm developing an IE addon (browser hosted object), and I need to query the browser favorites to find those that match a given query string. For example, I might want to find all favorites where the title or URL contain the word "software".
I've scoured all the relevant interfaces and the only option I've found is to r... | stackexchange/codereview |
I have always used Authlogic in Rails 2.3 but now that I am using Rails 3 I think I might try out a new authentication solution.
How does Devise compare with Authlogic? What are their differences?
| stackexchange/codereview |
I am trying to validate wether a number is a decimal in Visual Basic. The results I get when the number is valid the msgBox shows. When it is not valid, I don't receive the msgBox and the program crashes with an error message that number has to be less than infinity.
I tried adding another If Not IsNumeric(txt1.text) ... | stackexchange/codereview |
How can I have the SQL transaction blocks in my Rails logger?
For example, I have the following transaction:
>> Client.transaction do
?> Client.find_by_name('Pavel').withdraw(2000)
>> Client.find_by_name('Elena').deposit(2000)
>> raise ActiveRecord::Rollback
>> end
=> nil
After it finishes its work the next lines w... | stackexchange/codereview |
Isn't freopen redundant?
| stackexchange/codereview |
I have upload control on my asp.net (C#) page, I always upload pictures. Is there any way to scale images before I upload ?
| stackexchange/codereview |
I want to implement something like what four square do when the application crashes it sends out the crash report to their developers. But I really do not know how this is achieved. Can someone please let me know how this works and the components needed to implement something like this.
I guess the iPhone stores the cr... | stackexchange/codereview |
Question about SQL View. Trying to develop a view from two tables. The two tables have same Primary Keys, execpt the 1st table has all of them, the 2nd has some, but not all. When I INNER Join them, I get a recordset but its not complete, because the 2nd table doesnt have all the records in it. Is there a way in my vie... | stackexchange/codereview |
How rails can grab headers of a curl request like:
curl -v -H 'X-Auth-Service-Provider: https://api.twitter.com/1/account/verify_credentials.json' -H 'X-Verify-Credentials-Authorization: OAuth realm="http://api.twitter.com/",
oauth_consumer_key="yTrEIQH6jhtmLUypg8T5", oauth_signature_method="HMAC-SHA1",
oauth_token="... | stackexchange/codereview |
I'm working on an iTunes-like jQuery scroll based on this script.
My version is here and is either a lot or not much different depending on how you look at it.
I'm trying to get the items on the right to scroll giving an illusion of continuity. How would you go about doing that?
| stackexchange/codereview |
I am trying haplessly to create an "IN CLause" through f# linq - but can't seem to get it. I have tried two options:
Iterating over the list of days as part of the sequence expression:
let getHistoricalQuotes (securityId:int) (days:string seq) =
let results =
Query.query <@ seq {
for day in d... | stackexchange/codereview |
What makes a given table the left table?
Is it that the table is indicated in the "From" part of the query?
Or, is it the left table because it is on the left hand side of the = operator?
Are the following equivalent
SELECT *
FROM left_table
LEFT JOIN right_table ON left_table.right_id = right_table.id
and
SELECT *
FR... | stackexchange/codereview |
I have read in an applescript document that- ‘alias’ is a keyword indicating that, after
compilation (i.e. checking of the syntax), the script should remember the ID of the file and, upon execution, should not ask the Finder for a file at the location as specified by the defined path, but based on the ID.
So I decide... | stackexchange/codereview |
I've written an App supposed to BE run both on iPad and on iPhone. I'm using AVAudioPlayer for playing back sound. Now I've run into some problems with the volume levels.
When running on the iPad, everything is fine, the volume level of the sound being played is fine, also when running in the iPad simulator.
The proble... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.