instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a website ongrounds.com there is a search bar on top when ever I search for word "best" it generates following error
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s) AS relevance FROM hotaru_posts WHERE (post_sta... | stackexchange/codereview |
Platform: Linux, OSX
Compiler: GCC
I've got a simple program which is currently confounding me - I know that I'm messing with a couple different kinds of arrays/pointers to produce this problem - its intentional - I'm trying to understand it.
The code as listed will compile and run as expected, but changing data4 in th... | stackexchange/codereview |
I have a class A that can be generated from two different ways.
a = A(path_to_xml_file)
a = A(listA, listB)
The first method has file path as an input to parse from XML file to get listA, and listB. The second method is given two lists.
I can think of two ways to implement multiple constructor. What do you think? Wha... | stackexchange/codereview |
using iphone SDK 4.0. I have some UIButtons in a viewcontroller which when touched should play a tone, and when released stop playing the tone. This is done so that the tone length depends on how long the button is held down.
I use the Touch down event for when i call [toneplay start] and the TouchUpInside event
for w... | stackexchange/codereview |
Yesterday I decided to start my new simulator project with Java and Java3D. Since I already programmed Java before it was a big plus and I could directly start with the simulator. Now I was a bit thinking about how I was going to approach this, and I directly stumbled and the biggest part of my program: the laser in th... | stackexchange/codereview |
I have a user-defined type vector. In another type, I have an allocatable array of vectors. I want to have a pointer to a single vector from this allocatable array. So I thought I would do this:
type another_type
type(vector),allocatable,target::my_vectors(:)
end type
and
type(vector),pointer::pointed_vec
But when ... | stackexchange/codereview |
I'm writing a project in Visual C++ 2010 Express edition. Everything was fine before I tried to add new source file in the project. Then when I tried to include one of the header files the compiler said that the class declared in this header is not found in other source file which includes the same header file.
This is... | stackexchange/codereview |
What is the advantage of using ExecutorService over running threads passing a Runnable into the Thread constructor?
| stackexchange/codereview |
Out of these not None tests.
if val != None:
if not (val is None):
if val is not None:
Which one is preferable, and why?
| stackexchange/codereview |
This is how I instantiated the modal, with 'btnModalAddGroup' as the div that acts as a button:
<div id="btnModalAddGroup" class="button">Add New Group</div>
$('#btnModalAddGroup').click(function() {
$("#addGroupModal").modal({
appendTo: 'form',
escClose: false,
persist: true,
onOp... | stackexchange/codereview |
I am getting a list of file names using the following code:
//Set up Datatable
dtUpgradeFileInfo.Columns.Add("BaseFW");
dtUpgradeFileInfo.Columns.Add("ActiveFW");
dtUpgradeFileInfo.Columns.Add("UpgradeFW");
dtUpgradeFileInfo.Columns.Add("FileName");
//Gets Upgrade infor... | stackexchange/codereview |
I'm trying to solve a really simple problem of finding object position under force {k1+k2 * y, k3*t}. Here's what I'm entering into Mathematica 7:
DSolve[{
x''[t]*m == k1 + k2*y[t],
y''[t]*m == k3*t,
y'[0] == 0,
y[0] == 0,
x'[0] == 0,
x[0] == 0
}, {x[t], y[t]}, t]
and I get this error:
DSolve::deqn: Equati... | stackexchange/codereview |
How to use array( Varray) in store procedure. Actually,i have make a stored procedure from which i retrieve a list of elements.
For example:
create or replace procedure GetTargetFields ( fileformat in varchar2,
filefields out Varray(4) )
IS
BEGIN
SELECT id
INTO fil... | stackexchange/codereview |
I’m trying to reverse engineer an old medical imaging format called Stentor for interoperability. It was designed by a company of the same name who was subsequently bought by Phillips. But Phillips has forgotten how to read Stentor files. I have a windows program which exports JPEG from Stentor files but it’s closed so... | stackexchange/codereview |
Here is how I would write a function to make an acronym in Java style:
string makeAcronym(string str)
{
string result = "";
for (int i = 0; i < str.Length; i++)
{
if (i == 0 && str[i].ToString() != " ")
{
result += str[i];
continue;... | stackexchange/codereview |
I need to accomplish the following (this is a simplified version):
enum Animals{
enum Cats{tabby("some value"), siamese("some value")},
enum Dogs{poodle("some value"), dachsund("some value")},
enum Birds{canary("some value"), parrot("some value")}
private String someValue = "";
private ShopByCategory(String som... | stackexchange/codereview |
I added a like button to my blog a few months ago and things have been working perfectly. Suddenly I added a new post this morning, and for whatever reason, the like button is now broken. Everytime I click "Like" I receive this error:
There was an internal error when updating the Page.
There is no additional informa... | stackexchange/codereview |
I want to create custom control (let's name it DesignPanel) that will allow user to design his own webpage structure that would be stored in a sitemap file. This Design Panel will have child controls inside ( SiteElement). User will build page strcture by connect Site Elements, customize them ( like change name) and ad... | stackexchange/codereview |
someText
1
2
3
4
moreText
I would like to add a prefix before each digit.
but using (\w+\R)(\d+\R)+(\w+) and \1prefix\2\3 will only prefix the last digit and erase the others.
Is there a way to do it with a single regex or should i write a script on the side?
| stackexchange/codereview |
I have data that follows this kind of patten:
ID Name1 Name2 Name3 Name4 .....
41242 MCJ5X TUAW OXVM4 Kcmev 1
93532 AVEV2 WCRB3 LPAQ 2 DVL2
.
.
.
As of now this is just format in a spreadsheet and has about 6000 lines. What I need to do is to create a new row for each Name aft... | stackexchange/codereview |
I am trying to parse to JSON object in java. I am posting json key value object using dojo.xhrPost() method as shown below:
dojo.xhrPost({
url: /esturl/,
handleAs : "text",
content : {INST1 : {"0001" : "aa"},
INST2 : {"0002" : "bb"},
INST3 : {"0003" : "cc"}},
load : load(data),
error : error
});... | stackexchange/codereview |
I have an 8-core CPU machine with 8 GB memory. Logically the following code can be done in parallel, but since the loop exposes more than enough opportunities for parallelism since I have far fewer cores available than the size of the loop. Second, every delegate expression allocates some memory to hold the free variab... | stackexchange/codereview |
Consider the following snip of java code
byte b=(byte) 0xf1;
byte c=(byte)(b>>4);
byte d=(byte) (b>>>4);
output:
c=0xff
d=0xff
expected output:
c=0x0f
how?
as b in binary 1111 0001
after unsigned right shift 0000 1111 hence 0x0f but why is it 0xff how?
| stackexchange/codereview |
I'm rails I've been building a web app.
But the web app is completely different than what the landing page (sign in, register, about, etc should look like)
How do rails developers handle this? Different layouts? Different CSS files? etc..
what's cleanest? Thanks
| stackexchange/codereview |
I'm trying to bind a List<String> to a DropDownList in a user control. I think I'm doing the right thing, but it seems that after my code executes the bindings are cleared. Here's the code for review!
User control:
<asp:DropDownList ID="subjectNameDropDown" runat="server"/>
<asp:DropDownList ID="yearLevelDropDown" runa... | stackexchange/codereview |
In VS 2010, When you use the "Add View" wizard to create an Edit view with a strongly typed view, such as Models.Person, the template generates all of Person fields for you.
If you use a view model instead, like this:
public class PersonVM
{
public Person person;
public List<Team> TeamList = new TeamServices().Te... | stackexchange/codereview |
Ok, I wouldn't be coming to You for help if I knew what to do, anyways, still having problems with my "program".
class Mark(val name: String, val style_mark: Double, val other_mark: Double) {}
object Test extends Application
{
val m1 = new Mark("Smith", 18, 16);
val m2 = new Mark("Cole", 14, 7);
val m3 = new M... | stackexchange/codereview |
Net application and from one page i have to redirect to silverlight page, i am new to silverlight so i have two question
Can i add silverlight page in asp.net app or i will have to add silverlight application in asp.net solution.
How to redirect from asp.net page to silver.(i want to pass some data from asp.net to sil... | stackexchange/codereview |
I come across a behavior in STL queue push which I don't quite understand.
Basically, I have two struct
struct A {
string a;
};
struct B {
char b[256];
};
struct A st1;
struct B st2;
/* ...assign a 256 characters string to both st1 and st2... */
queue<struct A> q1;
queue<struct B> q2;
for(int i=0; i< 10000; i++)... | stackexchange/codereview |
How can you compare against multiple possibilities in one argument?
Example:
if ((integer == 2) || (integer == 5))
if ((string == "hello") || (string == "dolly))
Would save me a lot of code if you could write that like this:
if (integer == (2 || 5))
if (string == ("hello" || "dolly"))
| stackexchange/codereview |
[Note - I asked this question on http://programmers.stackexchange.com, but the question was closed as apparently that's not the place to ask it. The community on http://answers.onstartups.com/ do not seem to be the people to help with this either, so I am asking ok Stack Overflow, hopefully the right place!]
I'm, going... | stackexchange/codereview |
here's a runnable piece of code that shows what my "problem" is.
I've got a JTextArea wrapped in a JScrollPane. When I change the text of the JTextArea, the JScrollPane scrolls automatically to the end of the text and I don't want that.
Here are my requirements:
the application should not scroll vertically automatica... | stackexchange/codereview |
I've got an Oracle 10g database which is accessed from an ASP.NET application. Although I've used SQL Server heavily in many different aspects and Oracle for querying and reporting, this is my first time using Oracle as the OLTP database for an application.
The database-level procedures in the packages are typically o... | stackexchange/codereview |
I've been experimenting with Windows Azure Blob storage using the samples using Silverlight.
I was wondering if it's possible to write a file upload component in Flash instead of Silverlight, since the former is installed almost everywere. I've never programmed in Action Script but I have a solid background in C# so t... | stackexchange/codereview |
I'm trying to use php to create a zip file (which it does - taken from this page - http://davidwalsh.name/create-zip-php), however inside the zip file are all of the folder names to the file itself.
Is it possible to just have the file inside the zip minus all the folders?
Here's my code:
function create_zip($files = ... | stackexchange/codereview |
The documentation shows 3 control styles:
MPMovieControlStyleNone,
MPMovieControlStyleEmbedded,
MPMovieControlStyleFullscreen,
MPMovieControlStyleDefault = MPMovieControlStyleFullscreen
I want the controls to mimic the kind found in Apple's "Videos" app, which do not have a fullscreen button or an aspect ratio butto... | stackexchange/codereview |
Why does the following call:
printf("%d %d", 'a', 'b');
result in the "correct" 97 98 values?
%d indicates the function has to read 4 bytes of data, and printf shouldn't be able to tell the type of the received arguments (besides the format string), so why isn't the printed number |a||b||junk||junk|?
Thanks in advance... | stackexchange/codereview |
I have a tabBar in my application. In one of the section i have two views which i toggle between using segment buttons.
In one of the view i have MapView which i use to display list of users using their pic as annotation. On the other view i have tableView which shows the same users in table format.
Now everything is ... | stackexchange/codereview |
How can i grab the current view's navigation title and store it in a variable for use in my code?
thanks
| stackexchange/codereview |
I have the following code to open a database on the SDCARD and then update a value. If I run the code as is, it will generally run through without throwing an error but nothing gets updated.
If I single step through each line, it works perfectly. I have also tried adding SystemClock.Sleep(2000) in between each statem... | stackexchange/codereview |
I just started using NLog in my asp.net application, and I need to see log messages in real time. When I run it in VS2010 I can look at VS output window, but when I run it on the test box I obviously don't have that option. What I need is when my asp.net app starts a console window should open and show log entries in r... | stackexchange/codereview |
Here is my original query...
SELECT `id`
FROM `properties`
LIMIT 10, 20
The LIMIT condition is for pagination.
Now, I have to get all like before, but I need to get only a third of rows where a condition is present.
I came up with this, just throwing LIMIT 30 in before I figured out how to do (total rows matched / ... | stackexchange/codereview |
I have a web application that configured to run using IIS , but I don't have IIS currently installed on my machine and i don't want to change it
so can any one tell me how to change the .csproj file to run on the development server
| stackexchange/codereview |
It seems like 2 million floats should be no big deal, only 8MBs of 1GB of GPU RAM. I am able to allocate that much at times and sometimes more than that with no trouble. I get CL_OUT_OF_RESOURCES when I do a clEnqueueReadBuffer, which seems odd. Am I able to sniff out where the trouble really started? OpenCL shouldn't ... | stackexchange/codereview |
when implementing/using methods that return or work with instances of objects, what is the most elegant approach to check the function parameters ?
Method to call:
someType GetSomething(object x)
{
if (x == null) {
return;
}
//
// Code...
//
}
or better:
someType GetSomething(object x)
{
... | stackexchange/codereview |
Recently I was trying to learn more about Windows Kernel. I downloaded right symbols
for my sys(win7 x64 free). I run IDA and open ntoskrnl.exe. IDA asked whether to attach pdb file. But most of functions were not resolved - sub_XXXXXX. So I ran Windbg, I unassembled randomly chosen function which has to be in ntoskrnl... | stackexchange/codereview |
I am trying to transform a string made of words starting with an uppercase letter. I want to separate each word with a space and keep only the first uppercase letter. All other letters should be lowercase.
For example, "TheQuickBrownFox" would become "The quick brown fox".
Obviously, I could use a simple foreach and bu... | stackexchange/codereview |
I'm trying to figure out how best to set up Authenticode signing at my workplace. The security implications are stressing me out.
My initial thought is that the person who controls the key should install it to the build server and secure it so that only the build account can access it.
This seems reasonably secure, bu... | stackexchange/codereview |
How can I copy a file from my project to the output directory with qmake?
I'm compiling on Linux but in the future I'll compile it on Mac and Windows.
| stackexchange/codereview |
I am using JQuery ajax in Spring MVC 3. When making the following call, I am running into a dilemma with myurl. On the local development machine, myurl would be localhost:8080/myapp/my_json_controller. On the production, my url would be domain/my_json_controller. I tried using relative url, /my_json_controller, and... | stackexchange/codereview |
Hello there
okay so this is the deal i have a folder where my mp3 files are stored for single download, and now i want a feature where you can download all the mp3s at once in a zipped folder. Is it possible to zip all the files from that folder using php ( or anything really but if not PHP then please explain thorough... | stackexchange/codereview |
By default the timeout for URLConnection is 0 which is unlimited. What is a reasonable value for XXXXX?
URL url = ...
URLConnection uCon = url.openConnection();
uCon.setConnectTimeout(XXXXXX);
| stackexchange/codereview |
I want to override an existing scope to add an extra condition to it. I've shown my attempt to do this using alias_method. Unfortunately this approach doesn't work with scopes, I get an undefined method error. How do I do it with scopes?
module Delayed
module Backend
module ActiveRecord
class Job < ::Active... | stackexchange/codereview |
What am I doing wrong in the following code?
public string ReadFromFile(string text)
{
string toReturn = "";
System.IO.FileStream stream = new System.IO.FileStream(text, System.IO.FileMode.Open);
System.IO.StreamReader reader = new System.IO.StreamReader(text);
toReturn = reader.Read... | stackexchange/codereview |
I have a small custom object defined as:
public class TimeSeriesDefinition
{
public int classID;
public DateTime startTime;
public DateTime endTime;
}
I'm passing a List classIDs, a List startTimes, and a List endTimes into an RIA Domain Service function. As a matter of organization, I was grouping these... | stackexchange/codereview |
I'm using Smarty_parser.php and it works well when when I use the parser by itself or if I run the parser then a view call. For example:
public function act() {
@$this->load->library('smarty_parser');
$data = array('Someinfo');
$this->smarty_parser->parse('contentTmpls/act.tpl', $data);
// Load Footer
... | stackexchange/codereview |
Being a noob in Iphone dev, just trying to understand.
In the code below, what is happening exaclty?
City *newCity = [[City alloc] init];
newCity.name = @"name";
NSMutableArray *array = [[NSMutableArray alloc] init];
[array addObject:newCity];
City *getCity = [array objectAtIndex:0];
[city release];
[array release]... | stackexchange/codereview |
I have a model called Company, and in the Show view have the following:
<div id = 'tags'>
<strong>Tags:</strong>
<% unless @company.tag_list.empty? %>
<%= @company.tag_list %>
<% end %>
<% form_remote_tag(:url => {:action => 'update'},
:update => 'tags') do %>
<%= text_field :comp... | stackexchange/codereview |
sos.print("{success:true}");
sos.close();
What is sos?
Whay do we close sos?
Where does it print, in the console or somewhere.
Is it something like a return statement
return "{success:true}";
Can i also pass my ajax response like this
Update... I have updated the entire code here.
protected void process(HttpServle... | stackexchange/codereview |
I have the following declaration in a file that gets generated by a perl script ( during compilation ):
struct _gamedata
{
short res_count;
struct
{
void * resptr;
short id;
short type;
} res_table[3];
}
_gamecoderes =
{
3,
{
{ &char_resource_ID_RES_welcome_object_ID,1002, 1001 },
{ &blah_resource_ID_... | stackexchange/codereview |
How can I remove an item in an array?
This is what I have, which is not OK.
// fr_watchdog.items = public array
string numToRemove = "test";
fr_watchdog.items = Array.FindAll(fr_watchdog.items,
val => val != numToRemove).ToArray();
All done.
I have found a solution for this problem (l... | stackexchange/codereview |
I have an enum like:
enum TEST {
TEST1, TEST 2;
public abstract <T> String stringify (T input);
}
I need to add a constant specific method , something like stringify.
This method will take different types of inputs (for each enum). Can I do that? Eclipse is not letting me do it ..something lik... | stackexchange/codereview |
I have data of the following form:
{
"sections" : [
{
"section" : {
"Term" : "News",
"Term ID" : "4,253"
}
},
{
"section" : {
"Term" : "Sports",
"Term ID" : "4,254"
}
},
// ...
]
}
I would like to serialize it into a collection of the follo... | stackexchange/codereview |
I have tried:
@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})
which isn't working.
| stackexchange/codereview |
I have written a simple single threaded client server application in Visual C++. When I run my server I wait for some time that it accepts some request from the client.
When I connect the client to the server. The log message on the client reports 14 bytes are send and there is no message on the server. I have written ... | stackexchange/codereview |
When rendering huge visuals in WPF, the visual gets distorted and more distorted with increasing coordinates. I assume that it has something to do with the floating point data types used in the render pipeline, but I'm not completely sure. Either way, I'm searching for a practical solution to solve the problem.
To demo... | stackexchange/codereview |
someone can suggest how I can do it?
I have a public static int _index in App.xaml.cs
I have a List < List < Person > >
foreach List < Person > I create a new button
-> foreach button, the click.event of it opens a PopUp.
Now I want to bind the Textboxes of the PopUp to the person-propertys
For examp... | stackexchange/codereview |
Is there any way to simulate rownum in postgresql ?
| stackexchange/codereview |
Is a portable version of MySQL for Linux available?
| stackexchange/codereview |
I need to execute a javascript before the page is start to load? how can i do it? Atfirst my script should execute, after completion of script, if i need i should load the page else i shouln't load it. For example if my script redirect to another page i shouldnot load the current page else i should load it.
| stackexchange/codereview |
I have to label something in a "strong monotone increasing" fashion. Be it Invoice Numbers, shipping label numbers or the like.
A number MUST NOT BE used twice
Every number SHOULD BE used when exactly all smaller numbers have been used (no holes).
Fancy way of saying: I need to count 1,2,3,4 ...
The number Space I ha... | stackexchange/codereview |
I've sort of accomplised implementing a custom slider cell that can draw over using images for the scroll bar and knob. The only obstacle that is in the way now is this, when I drag the knob quickly, the images get messed up. I've posted a screen shot.
Here is the code:
#import "customSliderCell.h"
@implementation cus... | stackexchange/codereview |
I just send some coordinates to the android emulator.
I used this commands for sending the fixes:
geo fix 8.494062000 52.038213000
This will send my emulator near the bielefeld university in the google maps app.
The next command I issued was:
geo fix 8.495543000 52.038180000
Sadly my position does not change on th... | stackexchange/codereview |
I am looking to improve my personal development process. I would like to create a batch file or similar that I can run from Windows PowerShell or the plain-old command line that does the following:
Compiles my solution (e.g. C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe /m:8 "%CD%\MySolution.sln")
If the compila... | stackexchange/codereview |
If I understand correctly, SecurityAction.RequestMinimum has been made obsolete for .NET Framework 4.0 here. Now, when I create a C++/CLR project that targets .NET Framework 4.0, this line gets added automatically in the auto-generated AssemblyInfo.cpp:
[assembly:SecurityPermission(SecurityAction::RequestMinimum, Unman... | stackexchange/codereview |
$q = "my phrase with special chars like úção!?";
while ($i < strlen($q)) {
echo '<img src="'.$q[$i].'.png" />';
$i++;
}
I also tried with switch/case but when I have chars like ç Ç ã â I can't get the image replacing to work since its more than one char (i was converting to HTML entities and then searching in the c... | stackexchange/codereview |
Let's say I have a class, which has a NameValueCollection property.
public class TestClass
{
public NameValueCollection Values { get; private set; }
public TestClass()
{
Values = new NameValueCOllection();
Values.Add("key", "value");
Values.Add("key1", "value1");
}
}
I know how... | stackexchange/codereview |
if(strlen(trim($steamid)) != 0)
{
$regex = "/^STEAM_0:(0|1):[0-9]{1}[0-9]{0,8}$/";
if(!ereg($regex, $ssteamid)){
echo "STEAM ID invalida";
}
}
My problem is that this isn't working as it should.
STEAM ID's have maximum of 18 ch... | stackexchange/codereview |
So this program is supposed to estimate hourly temperatures throughout a day after being given the daily high, low and the hour which the low is expected. I am having problems calling up my functions inside the main function. I don't really understand how I am supposed to get specific information from the functions, an... | stackexchange/codereview |
http://en.wikipedia.org/wiki/Eureka_Streams
http://www.eurekastreams.org/
Eureka Streams uses a shared nothing architecture. It uses Memcached, Apache Maven, PostgreSQL and Hibernate. It uses Shindig for OpenSocial.
It makes use of Java Message Service (JMS), Java Persistence API (JPA), Lucene and Google Web Toolkit (... | stackexchange/codereview |
I am having trouble filtering data out a relational table. The query is part of a join, but I am stuck on a basic part.
I need to remove all the results with a certain id if the condition is found.
query similar to:
select * from colors where color != 'red' group by id
id color
1 red
1 blue
1 blue
2 green
2... | stackexchange/codereview |
simple Python question:
Example list: A = [1,2,3,4,5]
I need to generate another list B which is a shallow copy of list A such that B is a new list containing the same elements in the same order (so that I can substitute one of B's elements w/o affecting A). How can I do this?
clarification: I want to do something lik... | stackexchange/codereview |
Here we have a Spring based webapp in google apps engine.
I've created a UserDetailService class to load the UserDetails from the GAE data store (assuming this is the best approach).
@Service("springUserDetailsService")
public class SpringUserDetailsService implements UserDetailsService {
@Resource(name="userDao"... | stackexchange/codereview |
Are arrays and pointers implemented differently in C and C++? I have come across this question because, in both the cases we access elements from the starting address of an element. So, there should be close relation between them. Please explain the exact relation between them. Thanks.
| stackexchange/codereview |
I have following code to accomplish prefix sum task:
#include <iostream>
#include<math.h>
using namespace std;
int Log(int n){
int count=1;
while (n!=0){
n>>=1;
count++;
}
return count;
}
int main(){
int x[16]={39,21,20,50,13,18,2,33,49,39,47,15,30,47,24,... | stackexchange/codereview |
Having my first attempt with PHP templates and i'm a bit confused separating business with presentation logic. I've choosen Dwoo as my template engine as you will see on the example below but my question is independent of Dwoo.
I see that what im doing isn't a good logic, it'll confuse the designer and it doesn't real... | stackexchange/codereview |
Why do some scenarios require both ciphering and integrity whereas some scenarios require only ciphering ? What are the factors that decide this in the case of networking domain ?
| stackexchange/codereview |
I have a rectangle on canvas. I can already moving this object using with mouse, but I can't find how can I resize it in runtime using mouse too?
And second question, how can I programatically check positions of each objects (e.g rectangles) on the canvas?
| stackexchange/codereview |
And what is it called? I don't know how to search for it; I tried calling it ellipsis with the Google. I don't mean in interactive output when dots are used to indicate that the full array is not being shown, but as in the code I'm looking at,
xTensor0[...] = xVTensor[..., 0]
From my experimentation, it appears to fu... | stackexchange/codereview |
I'm working on an IFrame apps in Facebook.
I use the PHP SDK provided in facebook. and I can login.
However, what should I use for session id in PHP?
should I use the default PHP session id (by the server)? or should I use the 'sig' that I got from the facebook SDK?
(i.e. the $session = $facebook->getSession() , $ses... | stackexchange/codereview |
Is there a quick way to spit out a directory listing for a specific folder in NSHomeDirectory? I'm playing with an example in ASIHTTPRequest that downloads an image via:
[request setDownloadDestinationPath:[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"totallyhotmilf.... | stackexchange/codereview |
I have a Flex front end and a Rails 3 back-end that I would like to establish a session to. Before you can access the page embedded with the flex front-end, you are prompted with a html login page through Devise.
I am able to login fine through the html page but cannot get access to the session with Flex using amf req... | stackexchange/codereview |
I have the following script which I am running. It loops through each table in the page and appends "Table n [Table Title]" below each table.
This script works fine in Chrome, Mozilla but not IE 6 or 7. No errors are captured. Can anyone help with explaining if I have missed something here in my script or is this a ... | stackexchange/codereview |
I have a series of PDFs (Computer Gaming World issues) and I want to remove the first page from the pdf file of each issue. There are 100 issues, so a GUI is just not gonna cut it. I used pdftk to remove the first page from one issue:
pdftk 1981_1112_issue1.pdf cat 1 output 1.pdf
My problem is that I do not want to ha... | stackexchange/codereview |
I've struggled to get a login / startup view to show before my mainWindow nav controllers and its finally working, but I'm now getting these analyzer warnings. If I release the navigation controller, the release in the dismiss button with cause an error.
what should I do here ?
| stackexchange/codereview |
This may be a basic question, but how do I go about effeciently deploying updates to currently running node.js code?
I'm coming from a PHP, JavaScript (client-side) background, where I can just overwrite files when they need updating and the changes are instantly available on the produciton site.
But in node.js I have ... | stackexchange/codereview |
I need to Call WCF REST Service from .NETCF 2.0 Smart Device Application. There us no "Add Service Reference" option for adding reference to WCF service in .NETCF 2.0 Smart Device Application.
| stackexchange/codereview |
I'm populating a Repeater Control dynamically based on a querystring value.
On Page_Load, the page executes a function that gets info from the database and loads it into a DataSet is then used to populate the repeater.
The issue is that directly after truncating the table, it still appears to be returning a row...
Here... | stackexchange/codereview |
For a small PHP app I am writing, we need to store a large number of records that have a hash key, and a few simple field values ('host', 'path'). eg:
'4420ffb32a' => array(
'host' => '127.0.0.1',
'path' => 'path/to/resource',
);
What is the best persistent storage for data like this? Would MySQL be the best choic... | stackexchange/codereview |
Hi All i am doing a test to host my WPF app on the WEB with a Databinding but when i deply the file i receive this error:
Startup URI: C:\Users\Mamma\Desktop\New folder (2)\WpfBrowserApplication1.xbap
Application Identity: file:///C:/Users/Mamma/Desktop/New%20folder%20(2)/WpfBrowserApplication1.xbap#WpfBrowserApplicat... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.