instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to fetch contents from my Drupal site and show it on another site using CURL. I already have a module that creates a URL (menu) in Drupal and outputs the requested node using node_load() method. This way, I can select which specific fields to output to the requesting site.
However, I also have a module that alte... | stackexchange/codereview |
I've been working with a userland program writeread.c (referred here), utilizing the ftdi_sio Linux driver.
I had worked with the default ftdi_sio that comes with Ubuntu Lucid that I use - and then, as a sanity check, decided to rebuild ftdi_sio from source. I did not want to download the entire kernel source, so I opt... | stackexchange/codereview |
This might be a dumb question but I have not find the answer when googling it. I think the answer is "no" but like to have it confirmed. I know Apple gets a share for each App sold in the App Store. But are they earning when the App is for free?
To make the question more clear. Suppose I develop a iPhone App and want t... | stackexchange/codereview |
In my "root" Views folder, I have a _ViewStart with the following code:
@Code
Layout = "~/Views/Shared/_Layout.vbhtml"
End COde
In my Area/Public/Views folder, I have a copy of my _ViewStart from the root Views folder.
But when I run the code, I get this error:
Unable to cast object of type 'ASP._ViewStart_vbhtml'... | stackexchange/codereview |
Disclaimer: This is a very basic question, but keep in mind I come from a Microsoft background, and I've programmed mostly in .NET with Visual Studio (this may help you help me with analogies perhaps)
I started programming a little python for the fun of it, so I downloaded eclipse, and installed PyDev.
I reached a poi... | stackexchange/codereview |
I was just reading a blog post about sanitizing user input in Ruby before sending it to the command line. The author's conclusion was: don't send user input it to the command line in the first place.
In creating a contact form, he said he learned that
What I should do instead is open a
pipe to the mail command as an... | stackexchange/codereview |
Hey guys,
I need to figure out a way to back up and also migrate our Oracle database from our production schema to the dev schema and the other way around.
We have bunch of config tables that drive how systems on our platform run, and when setting up new systems or doing maintenance, we need to update our config tables... | stackexchange/codereview |
I ran into a problem that i've been trying to solve with no luck.
Im trying to search an XML-file for a specific product id. Following is a snippet from the XML-file.
products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xxxxxx">
<product articleNo="13000">
<name>Fire Brigade... | stackexchange/codereview |
I have a drop down list on the client side. When the user makes a selection, my jquery script extracts the new value of the selection.
But the code below does not work because I cannot work out how to send the selected value back to the controller. I am not sure about the syntax of sending the parameters as I am using ... | stackexchange/codereview |
I will say that i am very weak in my knowledge of regular expressions... I am trying to match tv series file names in java, like the following:
xyz title name S01E02 bla bla
bla bla title name.S03E04
the season title name s05e03
However my solution is working, it only is matching name s01e02 or name.s03e03 Not the comp... | stackexchange/codereview |
i a looking to access the ids of fans of my page on facebook to show their profile info on my site.
How can i do it?? Do i have to create an Facebook Application for that???
| stackexchange/codereview |
I have Integrated Facebook in my Application.Take a FACEBOOK API from Github
But I don't want to display dialog box to Publish string on wall Post.
facebook.dialog(this, "stream.publish", parameters,
new WallPostDialogListener());
What should I do in palce of this ...that dialog box will not come & After login I can P... | stackexchange/codereview |
I'd like to get just the username in the url, for example www.blank.com/username
The curl script I'm using returns the full url. I just want the user name here's the script.
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PO... | stackexchange/codereview |
how can i create a qt project with none-english name.or how can i deploy the application on to device with a none-english application name,like chinese or japanese.
| stackexchange/codereview |
I am currently using FancyBox (http://fancybox.net/) to display a page on my website. It works amazing and as it should but I want it to close automatically as soon as X number of seconds pass. Is there a way I can do that?
| stackexchange/codereview |
I'm playing around with constraints in (swi) prolog using the clpfd library.
I'm trying to identify when one set of constraints encapsulates or subsumes the other, e.g. X<4 encapsulates X<7 as whenever the former is true, the latter is true. This can be easily represented using logical implication. However, I couldn't ... | stackexchange/codereview |
I have this:
$.inArray(tld, tldsArray)
I would like to check if tld is NOT on the array. How can we say this on jQuery?
| stackexchange/codereview |
I read that self-signed certificates suffer from performance issues (for example, here) but which ones exactly? I can guess this can be related to revocation checks or something but not sure.
| stackexchange/codereview |
For example, the link below triggers something in jQuery but does not go to another page, I used this method a while back ago.
<a class="trigger" href="#"> Click Me </a>
Notice theres a just a hash tag there, and usually causes the page to jump when clicked on, right? [I think]. It is only for interactive stuff, does... | stackexchange/codereview |
I've just re-installed my entire system (Win7 and VS2008 in particular) and then re-installed Team Foundation Server.
My problem is that when I open Visual Studio, I don't automatically get logged in to TFS like I used to.
And then, once I have logged in, if I right-click on my solution, projects, etc., I don't have an... | stackexchange/codereview |
I'm using the CAGradientLayer method from this answer to set a gradient on my UITableViewCells.
However, for this table, I increased the height of the cells via tableView:heightForRowAtIndexPath:. My gradient layer now does not cover the full height of cell, but instead stops at the original height (see pic).
I trie... | stackexchange/codereview |
Ok, I'm not great at explaining this as I'm new to Android so work with me.
I have tried everything I can find and I dont know how to make everything work together.
I have a Spinner to select an age group, a Radio group with Radio buttons to allow you to select Gender (male or female), I have an EditText that I will al... | stackexchange/codereview |
So I have a table that is contained within a div. The table is larger than the div. I don't want to resize the div by hand and all browsers except IE resize it to contain the whole table automatically. Without any overflow attribute changes, IE makes the last td overlap with the containing div's border. If I set overfl... | stackexchange/codereview |
I am considering the use of potentially hundreds of threads to implement tasks that manage devices over a network.
This is a C++ application running on a powerpc processor with a linux kernel.
After an initial phase when each task does synchronization to copy data from the device into the task, the task becomes idle, ... | stackexchange/codereview |
I'm trying to deploy an application to a client's server, but export to Excel (Data Only) is not working, giving me the "Operation Not Implemented" error. It isn't a problem with the report, because I have over 50 reports with standard fonts, some of them very simple, and the export fails for all of them.
I have the f... | stackexchange/codereview |
I have format strings in my resource files. I am trying to access these from the Text attribute of TextBlock using FormatString
Text="{Binding Path=Project.Name, StringFormat={Binding Path=WkStrings.DisplayProjectName, Source={StaticResource ResourceWrapper}}}"
I am getting the following error:
Provide value on 'Syst... | stackexchange/codereview |
I'm using MapView in my app. I have API key from google fore my release key store.
I'exporting signed APK with eclipse and trying to install it on devices.
On G1 device with Android 1.6 everything works well, but on HTC Desire with android 2.2 maps doesn't appear. I see just grey grid and zoom controls.
Where problem c... | stackexchange/codereview |
I'm a bit confused about timezones in rails. I want my rails app to use British Summer Time (like daylight savings in the US) for the timestamps set in updated_at and created_at in my models. I changed my environment.rb to say
config.time_zone = 'London'
The ubuntu server my app is on seems to use BST for it's ti... | stackexchange/codereview |
This is the control structure
ContentPlaceHolder
--> Wizard
--> Panel
I am using setTimeout to display the panel after x minutes.
How do I get the ClientID of the panel?
The line of javascript needed is something like:
setTimeout(displayExtendSession('<%= ExtendSession.ClientID %>', 600000);
aspx
<asp:Conte... | stackexchange/codereview |
I have a Controller Action that is trying to return plain text to an AJAX call. E.G.-
[HttpPost]
public ActionResult SubmitAttachment(int id, HttpPostedFileBase theFile){
...
...
return Content("Success");
}
In my javascript function which is doing the ajax call, I am expecting the response text to just be "Succes... | stackexchange/codereview |
JSLint reports Insecure '^' for the following line. Why is that? Or is it just going to complain any time I want to negate a character class?
// remove all non alphanumeric, comma and dash characters
"!$7s-gd,&j5d-a#".replace(/[^\w,\-]/g, '');
| stackexchange/codereview |
How do I validate a username using PHP?
On my registration page I need to validate the usernames.
Acceptable (for example) Only letters, numbers and _ :
anas fares
anasfares
AnAsFaReS
anas45 fares
35fares arty
anas_fares
Unacceptable (for example) :
anas.fares
anas #fares
57fares
@^*12sf
anas-fares
| stackexchange/codereview |
I am porting some Java code to Objective C and know enough bitwise to get a headache. Can someone point me to the objC equivalents to Double.doubleToLongBits and Float.floatToIntBits?
| stackexchange/codereview |
Possible Duplicate:
Cosmic Rays: what is the probability they will affect a program?
Is this just a tongue in cheek expression or is this really true, and if so, what precautions should we take in software (or these precautions hardware only)?
| stackexchange/codereview |
I would like to reliably auto-install my application assemblies in the GAC when I compile my application using Visual Studio. I've setup pre- and post-build events in my web application's build.
Pre build event:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\gacutil.exe" /f /ul Uninstall.Gac.t... | stackexchange/codereview |
The following code sample worked just fine in Excel 2007, but when I installed Excel 2010 (32bit) it would leave the excel.exe process open unless I added the GC.Collect(). My simple question is am I doing something wrong? It looks like to me like I am releasing everything I use.
public override void Update()
{... | stackexchange/codereview |
I'm working on a medium sized project which contains several libraries with interdependence's which I've recently converted over to build using a non-recursive makefile. My next goal is to enable building of both debug and release builds out of the same source tree at the same time (make debug;make release). My first... | stackexchange/codereview |
Let's say I have an sql server table:
NumberTaken CompanyName
2 Fred 3 Fred 4 Fred 6 Fred 7 Fred 8 Fred 11 Fred
I need an efficient way to pass in a parameter [Star... | stackexchange/codereview |
Let say I have something like this in a JSP:
<li>
<c:set var="sectionId" scope="request" value="${userSession.sect['Utilities'].id}" />
<a class="header" href="#category-2">Cat 2</a><c:import url="/resources/softwareCategoriesAccordion.jsp"/>
</li>
<li>
<c:set var="sectionId" scope="request" value="${userSe... | stackexchange/codereview |
I build wxWidgets application with DialogBlocks on Windows 7 with VS2005 installed. Build is successful, but executable doesn't run giving the message: "The program can't start because MSVCR80D.dll is missing from your computer". The same code built in Visual Studio is OK. Build log:
----------------------- Configurat... | stackexchange/codereview |
Our users need to be able to export data in CSV format, edit some of the records, and upload the data again. The data does not map to entities, you could say that the object graph is flattened to fit in the Excel-based workflow.
Right now this happens in the controllers because I thought these DTO classes were view mod... | stackexchange/codereview |
Using SQL Server 2008, I'd like to create a UDF that gives me the create date of an object. This is the code:
create function dbo.GetObjCreateDate(@objName sysname) returns datetime as
begin
declare @result datetime
select @result = create_date from sys.objects where name = @objname
return @result
end
go
... | stackexchange/codereview |
Is there an 3rd party library for parsing JSON on the iPhone?
| stackexchange/codereview |
I'm using the SQL Full-Text Search and have a stored proceedure that uses the FREETEXTTABLE function.
This all works great, however, I have noticed that if I search for something such as 'Chapter 19' the 19 seems as if it is thrown away and the search only searches on 'Chapter'.
Also if I search for just '19' I get no... | stackexchange/codereview |
I am having trouble passing my array via a $.post.
The Javascript
var privIDs = [1,2,4,5];
$.post("/Home/GrantPrivilegesToUser", { privilegeIDs: privIDs }, function (data) {
alert("Data Loaded: " + data.success);
});
The Action
public ActionResult GrantPrivilegesToUser(int[] privilegeIDs)
{
return Js... | stackexchange/codereview |
I am facing a problem that's driving my crazy for sometime. I have an asp .net mvc page(.ascx). This view has a form which can be ajax submitted to a controller action. I have an ajax submit button that posts the form.
In the view I have some if conditions as follows
If(Model.SampleID.HasValue)
{
alert('samp... | stackexchange/codereview |
Should I return from model to view an IList<T> object or a List<T>? I would iterate over the Model collection and show the results in an ASP.NET MVC 2 view.
| stackexchange/codereview |
I've got a fairly simple table which stores the records' authors in a text field as shown here:
CREATE TABLE "public"."test_tbl" (
"index" SERIAL,
"testdate" DATE,
"pfr_author" TEXT DEFAULT "current_user"(),
CONSTRAINT "test_tbl_pkey" PRIMARY KEY("index");
The user will never see the index or pfr_author fie... | stackexchange/codereview |
I pull a report from SQL Server being not a fan of cursors I process that table server side in my code behind file. So I pull this report that is an address label report and my client wants there to be X number of labels per person. So I coded this function:
Private Function ProcessX(ByVal dt As DataTable, ByVal X As ... | stackexchange/codereview |
What I am looking for is a page_id/view_id that I can use to identify and style specific pages. I would use the title or the url, but there is a chance that it could change if the a higher-up decides that the page should no longer be called Golf, but rather Tee-Time because he likes it better.
Presumably this identifie... | stackexchange/codereview |
model....
@Digits(integer=5, fraction=0, message="The value must be numeric and less than five digits")
private int value;
beans file....
<mvc:annotation-driven />
controller....
@RequestMapping(value = "/admin/save.htm", method = { RequestMethod.POST })
public ModelAndView saveSection(@Valid @ModelAttribute Section ... | stackexchange/codereview |
I have an HTML5 app that's essentially a soundboard. You click an image and it plays an mp3 file. It works fine on Chrome but not on my iPad Safari. The function looks like this:
<script type="text/javascript">
function playSound(theSound) {
soundDir = "./sounds/";
filename = soundDir + theSound;
sound = n... | stackexchange/codereview |
When I create a reference to another project (a library) thats part of the same solution in Visual Studio, is that project then compiled into my assembly, or does it link to the assembly created by the other project? I'm wondering if I need to distribute both assemblies, or if I can distribute just one.
If the latter (... | stackexchange/codereview |
I have local scripts that I would like to run on a remote server. I have already set up ssh key pairs to enable login without a password.
My current approach is to rsync the script to the server and then run it:
ssh user@remoteserver "rsync localserver:script.sh ./; ./script.sh; rm script.sh"
However, this seems like... | stackexchange/codereview |
I've started to code a 2d JRPG engine in C#/XNA and i have some questions about class structure and game events.
In a 'game maker' type environment you have a game script which runs events and so on based on user input. This is usually not OO and has no reference to classes and so on.
Now in my own engine what is the b... | stackexchange/codereview |
I am trying to implement the following display.
My html & css are like this...
<div class="label iepngfix">Nickname</div>
<div class="text">
<?php echo $nickname; ?>
</div>
.label {
float: left;
font-weight: bold;
padding: 0;
}
.text {
float: left;
margin: 0 0 0 5px;
word-wrap: break-word;... | stackexchange/codereview |
I want to write a Query to delete a row from the table. I am confused of writing the statement. I need some help in writing this. I am providing my requirement here with plain sql statement.
(Pseudo code)
delete from tablename where value =="string1" && value2 == "string2" && value3 == "string3";
I want to write this... | stackexchange/codereview |
in a DetailsView with the mode set to Insert, I had a textbox that is populated by an event, rather than allowing the user to type into it. Problem is, if I set the TextBox to either Enabled="false" or ReadOnly="true", it doesn't seem to populate the SqlDataSource parameter with the value of the textbox, which I need. ... | stackexchange/codereview |
After i publish my web.config i get null reference to all the code that uses the webconfig.
What could be happening?
I checked my web.config property and its set to Embedded Resource. Is this how its supposed to be.
Help people.
| stackexchange/codereview |
How can I be sure of the unittest methods' order? Is the alphabetical or numeric prefixes the proper way?
class TestFoo(TestCase):
def test_1(self):
...
def test_2(self):
...
or
class TestFoo(TestCase):
def test_a(self):
...
def test_b(self):
...
| stackexchange/codereview |
Lets say my javascript makes an ajax-request and in the callback-function it does eval(response_text) without checking the response_text for anything.
Something tells me this is not good, but why and how could it be epxloited? Wont it be always my server which will send it good data?
| stackexchange/codereview |
I am evaluating Stylus Studio mainly for xquery development against XML payload exchanged using SOAP.
I've inherited a complex xquery (about 1800 lines) and when I try to execute it using Saxon as engine I get this error:
XPST0003: Xquery sintax error in ##:Unexpected token " < e o f >" in path expression.
This query w... | stackexchange/codereview |
I wrote a code using c#- Visual 2008- that takes:
1- an excel sheet.
2- Opens a connection to Excel
3- Reads the Column names using the OleDbDataReader object and GetTableSchema method
4- Added the Columns names in an array
5- Created a Table that has the same Column names as the EXcel sheet ( i used CREATE table
... | stackexchange/codereview |
//Add Row with No data recorded message, when the table is empty/////////////////////////////////////////////
$("tbody").each(function () {
NoOfColumns = $(this).prev("thead").find("th").length;
if ($(this).is(":empty")) {
$(this).append("<tr><td class='trTopItem' style='border-top:1p... | stackexchange/codereview |
Hello there
I am trying to make a NSComboBox transparent but its not working. I am trying it with the following method:
[NSComboBox setTransparent:YES];
But it seems that NSComboBox doesn't implement setTransparent neither does NSComboBoxCell nor NSTextField. Looking forward to your suggestions and answers.
Regards
Um... | stackexchange/codereview |
Consider the following code:
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
template<class T>
bool IsNaN(T t)
{
return t != t;
}
int main(int argc, char**argv)
{
double d1, d2;
sscanf(argv[1], "%f", &d1);
sscanf(argv[2], "%f", &d2);
double dRes = d1/d2;
cout <... | stackexchange/codereview |
I need to encrypt data stored in web2py, more precisely passwords.
This is not about authentication, but more something in the line of a KeePass-like application.
I've seen that is included in web2py, but and M2Secret could easily do that. With M2Secret I can use this:
import m2secret
# Encrypt
secret = m2secret.Secr... | stackexchange/codereview |
I've got a template class like so:
template<class T>
class List
{
private:
struct node
{
T value;
node *next, *prev;
};
}
When creating instances of this List class with T = myClass* I have no problems, since value will be a pointer, but if it's an object, creating a node instance results ... | stackexchange/codereview |
How do to all,
This is the first time posting on the site, so i presume i have not followed all the
formats and protocols correctly.
My app has a UIView containing a list of questions, and a UISegmentedControl called "question_btn" for each question. The UISegmentedControl has 2 segments, the first for a NO answer, the... | stackexchange/codereview |
What is the name of the default delegate in C# which takes no parameters and returns void? I remember there existed such a delegate but I don't remember its name.
| stackexchange/codereview |
What are the various things that happen when I drop a column from a filled table. In all_tab_columns, does the column_id of other columns get reset?
| stackexchange/codereview |
I'm looking for some data API for my stocks application which can be parsed. I want to use it for displaying data as well as drawing graphs purpose. I have seen other posts pointing to Yahoo or Google APIs etc, but haven't really got the idea how to use them.
Can anybody please point me to any guide which can be helpfu... | stackexchange/codereview |
Is there a limit on the number of connection a .Net Remoting server can handle?
| stackexchange/codereview |
I have a DataGridView. I set its .DataSource prop to be an BindingList of my own objects: a BindingList<IChessItem>
I then created some columns for it..
DataGridViewTextBoxColumn descColumn = new DataGridViewTextBoxColumn();
descColumn.DataPropertyName = "Description";
descColumn.HeaderText = "Description";... | stackexchange/codereview |
I'm trying to select a table cell which contains specific text but couldn't find out yet how it works:
I'm having this code - but doesn't work:
var td = $("td:contains('MyCell')",tbl);
Any ideas what's wrong?
| stackexchange/codereview |
I am making a replication website ( replicating codingbat.com ), And I have been designing it all day and I have to a halt where I need to decide to go with Either a Java Backend or PHP Backend. I have a Java one done already but it just doesnt seem like it is very productive and secure:
<?php
include ("/var/www/chal... | stackexchange/codereview |
I wrote an app which draws some text on the view using my own custom fonts, and the drawing takes about 200 ms on iPad with iOS 3.2, but after I installed iOS 4.2 BETA a month ago, it took more than 2 to 3 seconds to draw (10 - 15 times more), at that time I thought it's a BETA problem so I rolled back to iOS 3.2, then... | stackexchange/codereview |
I use the following code to write some data to files:
BufferedWriter writer = null;
try {
writer = new BufferedWriter(new FileWriter(file));
writer.write(...);
writer.flush();
}
finally {
if (writer != null)
writer.close();
}
After invoking the method multiple times I got a FileNotFoundExceptio... | stackexchange/codereview |
Well , In MVVM pattern it is good practice that two models should not know or talk with each other. That means you should not create a object of one model in other and then register for event or performing similar things.
But why, what is wrong if two models know each other. I am writing the code and what will happen ... | stackexchange/codereview |
I have this select statement:
$select = $someMapper->getDbTable()
->select()
->where('someid = ?', $id)
->order(array($sort.' '.$order));
Yet, what I want to do is only search for campid IF $id is present. I am currently repeating the query without the where which I find counter p... | stackexchange/codereview |
http://jsfiddle.net/EGjc9/
I have several <button> elements on a page, and I need to associate the <input> elements nearest them to those buttons. Right now, when you hit ENTER on any input field, it fires the first <button> in the form. How do I change this?
DOM:
<form action="irrelevant">
<div>
<select><option>1</opt... | stackexchange/codereview |
There are two user controls, which are built dynamically.
In the first control, I am adding a link button, and trying to attach a click event on the same. But the event is not fired.
Actually the main goal is, when the link is clicked, based on which one is clicked, I need to show second control (the values on the new ... | stackexchange/codereview |
I have an export to excel functionality in my application. I am to write a test case for teh same.
Any Inputs??Sample Code??
Heres my action code.
When the User clicks on "Download to excel" on the page, below export action is called. I am to test this functionality.
def export={
def playerId=session["playerId"]
... | stackexchange/codereview |
I am porting a module of code from Solaris to Linux. I get this error
element ticket: Relax-NG validity error : Element ticket failed to validate attributes
I am totally struck up and have no idea of what this error could be.. but I am sure this will not involve any code change.. please guide me
| stackexchange/codereview |
Is there anything similar to getsharekit.com for Android? It allows to share URL's to social networking sites. Is there anything similar to this or do I need to code separately for facebook, Twitter and email?
| stackexchange/codereview |
I am using dig installed on my machine to search for SPF records for a particular domain. Is there a way to search a particular DNS server for the SPF records?
For example, will the following work?
dig domain.example txt host ns1.nameserver1.example
dig domain.example txt host ns2.nameserver2.example
| stackexchange/codereview |
$link = mysql_connect('localhost', $username, $password);
if (!$link)
{
die('Could not connect: ' . mysql_error());
}
I get this error:
Could not connect: Access denied for user 'www-data'@'localhost' (using password: NO)
Why?
Edit:
$username="root";
$password="root";
$database="test";
function Save($name)... | stackexchange/codereview |
Can anyone recommend a decent extension to Google Chrome that is similar to Firebug? I did see that there are a couple of similar questions here on SO, but the answers seem to be very dated.
Thanks!
| stackexchange/codereview |
We recently moved over to Visual Studio 2010 from 2005 and the environment have turned out to be highly unstable.
I experience 10-15 crashes per day at random locations , msenv.dll and vcpkg.dll to mention a few. It can be while selecting text or compiling, not found any pattern.
The plugin we got is VisualX Assist b... | stackexchange/codereview |
does someone know a tool which extracts the Extended File Information under WinXP into a file (csv,xml)?
| stackexchange/codereview |
Wonder if anyone has any experience posting image files with CURL in C..?
I am writing a program to post to a facebook Type web service, and everything is going fine, except when I attempt to post image files...
There's a special format that the server needs or it will not accept the post...
something like this:
---web... | stackexchange/codereview |
I have a file with one single line which is 800 charcters long. Whenever I use cat or view the file in vim the line is displayed to the length of the terminal and the charters after that are shown in the new line below that. How can I view the content in one long line with a scroll bar maybe?
| stackexchange/codereview |
I am trying to display the last 5 tweets in a div, that's about it. I will put a design around it to mimmick the Twitter widget you can get on the Twitter site.
The problem is I am unsure of how to do this. I went through some of the Twitter docs, searched here, found some tutorials. None really seem to cover just this... | stackexchange/codereview |
I'm trying to compare two arrays, say array a is a series of arrays like so:
((1,1), (1,2), (1,3), (1,4), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3))
and array b is a series of array like so:
((1,1), (1,2), (1,3), (1,4), (2,1), (2,2), (2,3))
How do I check if an item from array a is not within array b
for(NSString* i... | stackexchange/codereview |
Is it possible to parse protobuf in a generic fashion in Java?
I have looked into GeneratedMessage and could not find a way to parse any PB byte buffer into a GeneratedMessage.
Essentially, I am trying to parse a PB byte buffer into GeneratedMessage and then I would use reflection to detect fields inside it.
| stackexchange/codereview |
Please see my code below, I want to add data in the roomBlock collection such that for every unique names in Hotelnm, it contains all the records for that particular hotel name. So if my UI first displays hotel name as ABC then the corresponding roomBlock will have all the records from result.ResultSet that has that na... | stackexchange/codereview |
I have a small Perl-based CGI application, which I am running in the project web space provided for a SourceForge project. This application stores data in a SQLite (v. 3) database file.
When I run test scripts from a shell, I can read from and write to this SQLite file. However, when the CGI code is executed by Apa... | stackexchange/codereview |
I have three columns in my database:
a = value
b = value
c = a + b
User usually enters a and b in the form, and the value is stored in the database. c will be calculated by the model.
In my model:
class Calculate < ActiveRecord::Base
before_validation_on_create :update_c
before_validation_on_update :update_c
def... | stackexchange/codereview |
I have a UIDatePicker using UIDatePickerModeTime that I use in an iPhone app modally, works fine:
Using this same basic code for iPad, but putting the view in a UIPopoverController gives some pretty inconsistent results. My desired mode (UIDatePickerModeTime) plus the other three modes are shown below. Notice how 2 ... | stackexchange/codereview |
I have an application that reads an input file with various user settings in it. Some of these settings apply to very specific classes that are instantiated at a very low level. But the input file is read and the settings are stored at the top level of the app.
What's the design pattern here for instantiating a low-lev... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.