instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
When would I use printf instead of echo in PHP and why? I just don't understand why it's important to understand. Thanks!
| stackexchange/codereview |
I'm a bit stuck trying to figure out how to design an Oracle query, and although there are similar questions here none of them seem to quite address the issues I'm facing.
I have two tables and I want to join them:
PROJECT table
PROJECT_ID TITLE
101 First project
102 Second project
103 ... | stackexchange/codereview |
I recently installed MacPorts and I think it might have messed up some of my libraries. Now when I try to run the Perl debugger I get this:
perl -d -e 0
Cannot do `initialize' in Term::ReadLine::Gnu at /opt/local/lib/perl5/5.8.9/perl5db.pl line 6006
at /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/Term/ReadLine... | stackexchange/codereview |
In function Determininant i keep getting an error....
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
const int maxsize = 10;
ifstream fin;
ofstream fout;
void transpose (double omatrix[][maxsize],double tmatrix [][maxsize], int array_size)
{
for(int i = 0; i < array_size; i++)
... | stackexchange/codereview |
I'm not looking for an "Vim Plugin" for Eclipse. Instead, I'd just want a keyboard-shortcut to open the current Eclipse file within a new Vim instance.
Is there a quick and easy way to do that?
| stackexchange/codereview |
What tools do you use to develop .net apps? Things that make life easier|quicker. Fiddler was just recommended to me but I'm not sure how it works yet, though it looks interesting. I also use Notepad++ as a quick text editor. Aside from that, it's just VS studio for me.
| stackexchange/codereview |
If a user navigates to a page that displays an "add item" view (#/items/add), I want to basically skip that url when they click "back" after they save the item.
How can I do this?
Here is the behavior I'm after in more detail... if the user has navigated to and is currently on this silverlight url:
#/items/list
when th... | stackexchange/codereview |
I'm looking for a way to dynamically change an elements properties.
For example I want the user of my app to be able to enter a value within my program that will change android:layout_marginTop="blabla" to whatever I want. It doesn't specifically have to be that property, I want to be able to change any property of an... | stackexchange/codereview |
I am reading Code Complete 2, and one of the points mentioned is about creating subroutines even for operations that seem too simple to have their own subroutines, and how that can be helpful.
I know I can inline functions in C and C++ using the inline keyword. But I never came across a way to inline subroutines in Per... | stackexchange/codereview |
(I am actually using Ektron CMS, and am using Widgets, which are a very simple extension of a user control).
Problem: I have a web page that contains many widgets. If an exception occurs in one of these widgets, the page stops and the user is given a server error. I would like to have unhandled exceptions in a widget t... | stackexchange/codereview |
can someone help me with the code to use only one file.
e.g.
domain.com/
domain.com/hello/world/
domain.com/help.php
all the above should load
domain.com/index.php
I have done this at home, but i cnt remember it and i dont have access to that code.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-... | stackexchange/codereview |
Whether i should should use sysout or Log.x en-order to debug an android project. I think both are writing to file. Me, commonly using sysout and use filter in LogCat to get it easily. But most of the tutorials and sample i see it is mainly using log.x
What is its basic difference? any link or tutorial for that? Wh... | stackexchange/codereview |
i have a table:
id coach1 coach2 department date
1 1 0 txt1 8/11/2010
2 3 0 txt2 1/11/2010
3 1 2 txt1 8/11/2010
4 3 1 txt1 8/11/2010
what i want to do is to get one column from both coach... | stackexchange/codereview |
I have restarted this process about 4 times over the past 3 weeks. I have not succeeded in submitting my app to the store. Please help me! I just started over again tonight, I did it in this order:
Deleted everything referring to the IPhone in my Keychain,
Redownloaded the Distribution Certificate
Created a new app id... | stackexchange/codereview |
I know there are a lot of questions similar to this one already out there but none of them seemed to be the same as my current issue (if so sorry for the repeat).
What I am trying to create here is a script that will; upon clicking of a link, take the link name and type and find it in the folder. Then once it has been ... | stackexchange/codereview |
I'm using the R table() function, it only gives me 4222 rows, is there some kind of configuration to accept more rows?
| stackexchange/codereview |
Recently I have been reading up on some of the flaws with the Java substring method - specifically relating to memory, and how java keeps a reference to the original string. Ironically I am also developing a server application that uses C# .Net's implementation of substring many tens of times in a second. That got me t... | stackexchange/codereview |
I have been trying to set a new xml layout, when a particular item on this list is clicked.
Am I missing something, because the emulator crashes when clicked?! setContentViewById(R.id.newxml file)
public class intentProject extends ListActivity
{
ListView list;
ArrayAdapter<String> aa;
List<String> data = new Arr... | stackexchange/codereview |
A project base on classic 3 layers: UI(not important in this question), business logic layer and data access layer. I have several tables: Customers Products Orders Users. The design is supposed to be:
//DAL methods
public IEnumerable<Customer> GetAllCustomers()
public IEnumerable<Product> GetAllProducts()
public IEnum... | stackexchange/codereview |
jQuery:
$(document).ready(function(){
$('#QuoteSearch').submit(function(){
alert("in jquery");
$.ajax({
url: "ajaxJQuery",
type: "POST",
data: {username: $("#username").val(), password: $("#password").val()},
dataType: "json",
error: function(){
alert('Error');
},
... | stackexchange/codereview |
I would like to reuse one installation of Sitecore every time I need to make code changes. I currently have a branch to fix a problem, but now I need to create another branch to fix another problem. The problems are in different websites so I need to keep the seperate branches. I really do not want to create another... | stackexchange/codereview |
I`m newer to SharePoint 2010 Foundation and I need to create a custom page layout to fit inside my already created master page.
I need a 2 column layout with a 20px separation between the columns. (Separation needs to be invisible to allow the background image to show through)
I’m coming from the world of .html and .cs... | stackexchange/codereview |
I've just set up TFS2010 and connected VS2010 to it, then created a New Team Project using the default Agile template. No worries to that point. Then I tried to add a Task. It wanted a value in Title, so I supplied one, no problem there. But then it reported
The field 'Changed By' contains the value 'login-name' that i... | stackexchange/codereview |
I'm having a problem moving from a situation where an Outer Join works, to where it fails.
Working (pseudo code example)
SELECT a.number, a.name, b.ref, c.ref, c.firmref
FROM jobs a, teams b LEFT OUTER JOIN teamfirms c ON b.ref = c.team
WHERE a.ref = b.job
There is a many to one relationship between jobs and teams (ma... | stackexchange/codereview |
looking to learn more about the above. Any recommendations for packages and tutorials about the above ?
| stackexchange/codereview |
So I'm working on a website where the images for a directory are listed on a separate domain than the database/website that has the directory. The way it has been set up, is the families last name plus the spouses first initials make up the image name, so that...
John and Kathy Doe
would correspond to the image:
doe-j... | stackexchange/codereview |
I seem to be having some problems installing the DirectX SDK. Everything seems to be going well during the install, but at the end I get the message:
Setup failed.
Errors were encountered during installation of redistributable packages.
Please close all open programs and try running setup again.
If problems persist, c... | stackexchange/codereview |
i read somewhere that php has threading ability called pcntl_fork(). but i still dont get what it means? whats its purpose?
software languages have multithreading abilities from what i understand, correct me if im wrong, that its the ability for a parent object to have children of somekind.
thanks
| stackexchange/codereview |
I've found AXE, it does it very well, but it's not free and I can't access the website (I would have bought it). I can't find any hex editor that is good and free, and has that feature, really.
| stackexchange/codereview |
By "in memory", I mean that the screenshot won't be written to a file.
The requirement is to generate thumbnails of a web page that will be stored in the database. I know that saving images in the database is not recommended, but we might not have write permissions in our server, so we are exploring this option.
If it... | stackexchange/codereview |
What tools are available for record and play back type testing of an Eclipse RCP application?
I'm hoping for something that the end users will be able to pick up pretty easily and record their user acceptance tests with.
| stackexchange/codereview |
How can I disable onbeforeunload for links?
var show = true;
function showWindow(){
if(show){
alert('Hi');
return "Hi Again";
}
}
$('a').click(function(){
show = false;
});
window.onbeforeunload = showWindow;
This is what I have, but it still shows when I click on an 'a' elemen... | stackexchange/codereview |
I'm having some troubles figuring out if its possible to run a GWT Application inside a Glassfish Application Server 3.0.
I was already able to run it using Tomcat, but that seemed more natural and more easy to do.
Can you point out a place where I can learn how to deploy my app to glassfish?
I'm currently using GWT P... | stackexchange/codereview |
I would like to execute a following query:
db.mycollection.find(HAS IMAGE URL)
What should be the correct syntax?
| stackexchange/codereview |
I have a UITableView that shows a list of objects stored with CoreData. I can delete an object using the following code:
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDel... | stackexchange/codereview |
I'm trying to change the colour of Text in the selected row in a WPF datagrid.
By default it changes the text colour white is there a way to change this using styles / triggers etc?
Thanks in advance!
| stackexchange/codereview |
In eclipse for a particular debug configuration I need to put "sudo" before the executable in order to gain root privileges.
Is there a way to do this rather than launching eclipse with sudo?
| stackexchange/codereview |
Please go here -- http://auspost.com.au/apps/postcode.html
when i type 314 an ajax call is fired ,when i type 5 after it then again another call is fired but when i delete the 5 then no call is fired but still showing the data.
How they are doing this ? Please help me as I am new to this concept
| stackexchange/codereview |
I am reading one Chinese text file (used PHP) with the help of below code :
$myFile = "test.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
print $theData;
test.txt file contents :
PHP是很好的语言。我喜欢这门语言。
我正在开发一个Web应用程序使用PHP。
After executing above mentioned code... | stackexchange/codereview |
Hi
When I open or create a new projects Expression Blend 4 (Premium) throws an exception and shuts down.
The log says:
System.BadImageFormatException: Index not found.
To me this sounds like a 32/64bit problem but I have no problem running Expression Blend 4 (Ultimate) on another computer.
Both computer run Windows 7 6... | stackexchange/codereview |
When I make a call with jQuery.post, the callback is not being executed, but only if the call is made in a js file loaded into the webpage. If I copy and paste the same call into the javascript console of the browser, the callback get's executed. I know that the function is being called, because if I replace the call t... | stackexchange/codereview |
I'm working on some software for children, and looking to add the ability for the software to respond to a number of non-speech sounds. For instance, clapping, barking, whistling, fart noises, etc.
I've used CMU Sphinx and the Windows Speech API in the past, however, as far as I can tell neither of these have any supp... | stackexchange/codereview |
Is it possible to add the unit testing functionality (in Visual Studio 2010 Web Developer Express) for an already existing ASP.NET MVC project?
| stackexchange/codereview |
I am injecting the following code directly into my browsers address bar. If I edit it just a bit (whilst not even changing any code) from the HTML tab in Firebug, it will work. This piece of code will change the onsubmit event of all forms on a page to call a function which retrieves the field values of that form and s... | stackexchange/codereview |
I am trying to achieve the following through mod_rewrite:
1. What is the basic directory structure?
/
main/ (folder)
a bunch of PHP files
some_folder/ (folder)
another_folder/ (folder)
... (an arbitrary number of such folders)
yet_another_folder/ (folder)
.htaccess(the magic goes here)
2. What I am trying to do... | stackexchange/codereview |
I'm trying to model a seashell using a bunch of polygons, for example as shown in: link text
But I am new to OpenGL. How would I get started modeling this, and what would the procedure be like?
| stackexchange/codereview |
My computer is in a Domain (Active Directory) and I need to get the domain name dynamically. I found the following code on the internet:
SelectQuery query = new SelectQuery("Win32_ComputerSystem");
using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(query))
{
foreach (ManagementObject mo in sear... | stackexchange/codereview |
I'm trying to validate a Uri using the Uri.TryCreate method and when I called it with an invalid string, the method returned true. Any ideas why? My code is below:
private void button1_Click(object sender, EventArgs e)
{
Uri tempValue;
if (Uri.TryCreate("NotAURL", UriKind.RelativeOrAbsolute, out... | stackexchange/codereview |
I would like to create an interactive JTable. For this, I would like to add JPanels in the cells of the table. Once the JPanels are in the cells, I can add my various components to the JPanels thus making the table interactive. Each JPanel could have different components. Would it be possible to accomplish this and onl... | stackexchange/codereview |
How can I check to see if a String contains a whitespace character, an empty space or " ". If possible, please provide a Java example.
For example: String = "test word";
| stackexchange/codereview |
The RealView ARM C Compiler supports placing a variable at a given memory address using the variable attribute at(address):
int var __attribute__((at(0x40001000)));
var = 4; // changes the memory located at 0x40001000
Does GCC have a similar variable attribute?
| stackexchange/codereview |
OO native tool seems not very comfortable.
I think it's better to store data in XML or biblatex format.
What do you use and which one is better?
| stackexchange/codereview |
I want to get the full history of my wall. But I seem to hit a limit somewhere back in June.
I do multiple calls like this:
SELECT created_time,message FROM stream WHERE source_id=MY_USER_ID LIMIT 50
SELECT created_time,message FROM stream WHERE source_id=MY_USER_ID LIMIT 51,100
and so on...
But I always end up on th... | stackexchange/codereview |
I am working on an Android app but I keep getting a Leak Found error. Here's the Call Stack:
11-01 11:26:47.087: ERROR/Database(7317): Leak found
11-01 11:26:47.087: ERROR/Database(7317): java.lang.IllegalStateException: /data/data/com.noshufou.android.su/databases/permissions.sqlite SQLiteDatabase created and never c... | stackexchange/codereview |
Wait you don't need to read the whole thing :) Just scroll down, and see what I've asked.
stdClass Object
(
[friends_count] => 54
[description] => i'TS THE digiTAL vERSiOn 0b devilZ! tECH & mUUsic fReak.
sImpLE buT.......!
[screen_name] => 2020Volt
[profile_sidebar_border_color] => 181A1E
... | stackexchange/codereview |
I need to display/edit polymorphic entities.
My abstract class is Person.
My concrete classes are PhysicalPerson and MoralPerson
Each concrete class has its own custom attributes.
How can I use the appropriate display/edit (composite) component according to entity class ?
Thanks ! :)
| stackexchange/codereview |
Ordering Java methods is probably the least important code style issue ever, but I'm trying to develop a code style as similar to what most people do as possible. It's by far the most popular approach to first declare all fields and then all methods, so I'll only ask about methods.
Now I'm wondering how to order Java m... | stackexchange/codereview |
Our business is currently looking at developing iPhone versions of applications we build for our clients. The apps are currently used internally within these businesses and are not (currently) web-facing.
A stumbling block seems to be deployment - requiring all of our clients to sign up for the iPhone enterprise progra... | stackexchange/codereview |
In the given example below I try to set the stacksize to 1kb.
Why is it now possible to allocate an array of ints on the stack with size 8kb in foo() ?
#include <stdio.h>
#include <sys/resource.h>
void foo(void);
int main() {
struct rlimit lim = {1024, 1024};
if (setrlimit(RLIMIT_STACK, &lim) == -1)
return 1;
... | stackexchange/codereview |
I have preferences where you can enable/disable what items will show up on the menu. There are 17 items. I made a string array in values/arrays.xml with titles for each of these 17 items.
I have preferences.xml which has the layout for my preferences file, and I would like to reference a single item from the string a... | stackexchange/codereview |
I have tried adding a progressbar to my Windows Phone 7 application, but it doesn't show in the emulator. Am I doing something wrong? Can you give me an example of how to implement the progressbar?
I actually put the progress bar on a grid with a Panorama control. It seems that the Panorama control sits on top of t... | stackexchange/codereview |
I use the following line of code within a single method to explicitly check and trust an SSL cert from the following host: MyTrustedCompany.com:
ServicePointManager.ServerCertificateValidationCallback = Function(obj As [Object], certificate As X509Certificate, chain As X509Chain, errors As SslPolicyErrors) (certificate... | stackexchange/codereview |
I'm very new to C so I'm sure I am doing loads wrong however this is puzzling me.
My code should get a title from the user and create a folder in the route directory with that name. It only works if I set a breakpoint on the makeFolder() implementation. For some reason that small rest before I click continue makes it w... | stackexchange/codereview |
I'm looking into using NHibernate to handle the persistence layer in my business application. Right now, I'm wondering how to handle concurrent edits/updates in NHibernate, or more specifically, how to let multiple, distributed instances of my application know that one user changed a given dataset.
I'm not looking for ... | stackexchange/codereview |
I for some JavaScript code that execute per second. However it doesn't seam to run if the tab it is loaded on isn't selected.
Is this my code or is Javascript not capable of does it?
Also, if Javascript can run when it's tab is not selected could someone help me with the code to determine with it's parent tab is select... | stackexchange/codereview |
Maybe they have a good reason, but I'm struggling to understand why a new OS would still ship with such an old compiler that was originally released in 2007. Did Apple modify it heavily and so therefore it has some features that are required? Is it possible to just download 4.5.1 and use it with XCode?
| stackexchange/codereview |
Hey All, thanks for the help in advance. I'm trying to create and remove input fields dynamically, they create just fine, but when i try to remove them it doesn't seem to find the div thats created, and removes the div above it, and hence all the inputs, instead of the just the one.
Heres my jscript:
$("#addp").live('c... | stackexchange/codereview |
If you run multiple DBs on the same SQL Server do they all fight for Procedure Cache? What I am trying to figure out is how does SQL Server determine how long to hold onto Procedure Cache? If other DBs are consuming memory will that impact the procedure cache for a given DB on that same server?
I am finding that on som... | stackexchange/codereview |
Note - I have moved the original post to the bottom because I think it is still of value to newcomers to this thread. What follows directly below is an attempt at rewriting the question based on feedback.
Completely Redacted Post
Ok, I'll try to elaborate a bit more on my specific problem. I realise I am blending domai... | stackexchange/codereview |
I would simply like to create a file that stays around after the program quits. I would like it to contain objects that I have initiated, is that possible? Or does it just have to have text in it? How can I access that file later? Also, is this done the same way on the Mac and the iPhone?
| stackexchange/codereview |
It seems that in PostgreSQL, empty_field != 1 (or some other value) is FALSE. If this is true, can somebody tell me how to compare with empty fields?
I have following query, which translates to "select all posts in users group for which one hasn't voted yet:
SELECT p.id, p.body, p.author_id, p.created_at
FROM posts p
... | stackexchange/codereview |
Recently, I program for the Android platform. I have a question about the text.
Is there any way to display the text without using the XML?
I also want the text to be able to show in each class.
| stackexchange/codereview |
I am programming in C#.NET. I have a string that contains a number with a period as a decimal. How can I correctly parse that into a a double regardless of the localization/language settings. The string value will always be the same.
I think I need to use the double.Parse(string s, IFormatProvider i) overload of parse ... | stackexchange/codereview |
Look at the following code which i am copying from javax.naming.InitialContext. An argument of HashTable type is being passed to the constructor. here is the code snippet
public InitialContext(Hashtable<?,?> environment) throws NamingException
{
if (environment != null) {
environment = (Hashtable)environmen... | stackexchange/codereview |
I wrote a query as follows:
SELECT COUNT(*) AS count, email
FROM sometable
GROUP BY email
ORDER BY count DESC
LIMIT 4
I am interested in seeing the four most duplicated email entries in the table. So far, it seems to return exactly what I want:
count email
12 very-duplicated@email.com
2 duped-t... | stackexchange/codereview |
have a static function in a header file
class Diagnostics {
public:
static void functionA(){
}
static void functionB(){
some code //works fine until enters the loop below
variable_name // works fine here.
if (condition){ //
variable_name; // after condition is met , i step in her... | stackexchange/codereview |
i will put this question in simple terms.
I have this pdf:
_____
|abcd |
| |
| |
|_____|
And this one:
_____
|1234 |
|4567 |
| |
|_____|
I want to merge them to get:
_____
|abcd |
|1234 |
|4567 |
|_____|
It is possible using iTextSharp or any other free tool?
Thanks in advance
| stackexchange/codereview |
I have a long running process that I suspect has a memory leak. I use top to monitor the memory levels of each process and nothing uses more than 15% of the total RAM. The machine has 4GB of RAM and the process starts with well over 3GB free. The process itself does very heavy, custom calculations on several MB of d... | stackexchange/codereview |
I am building an AJAX application to query an OData endpoint. I've been doing some testing with the Netflix OData feed and found something I don't get:
When I make an .ajax() request to a url (e.g. http://odata.netflix.com/v1/Catalog/Titles) I get the error: "Origin null is not allowed by Access-Control-Allow-Origin". ... | stackexchange/codereview |
I am using R, MySQL, Sweave and LaTeX to generate reports that query a database. My problem is that as the R code is embedded in a .Rnw file, where I do not seem to have control on multiline formating.
I embed the following R code:
library(RMySQL)
con <- dbConnect(MySQL(),
user='test_user',
dbname='sakila',
host='l... | stackexchange/codereview |
I have a text file , filled with pipe separated URLs, like this:
http://www.example.com|http://www.example2.com|http://www.example3.com|....
etc.
I currently have this code to read each url from the file and pass it to a function:
<?php
$urlarray = explode("|", file_get_contents('urls.txt'));
foreach ($urlarray ... | stackexchange/codereview |
I installed SQL Server 2005 Express edition on my system. I am using Windows 7 (64 Bit) OS.
While installing it said compatibility issues. Though, it got installed and showed successfully installed. But, only the configuration tools were installed.
Also, how to create a database or how can I use it.
Thanks
Vinaychall... | stackexchange/codereview |
I need to build a lightweight http server for my application
basically it's a server which listen to a port and outputs a status information on requests
no high load, https, other functionality is required
is there any C++ library which would help me to build an http server
| stackexchange/codereview |
Let's say I have a data.frame
x <- data.frame(a = c('A','A','A','A','A', 'C','C','C','C', 'B','B','B'),
b = c('a','c','a','a','c', 'd', 'e','e','d', 'b','b','b'),
c = c( 7, 3, 2, 4, 5, 3, 1, 1, 5, 5, 2, 3),
stringsAsFactors = FALSE)
> x
a b c
1 A a 7
2... | stackexchange/codereview |
In form on asp.net (C#) page I have text fields txtCity and txtStreet, I need to save in database city, street and geoLongitude and geoLatitude of that address. How to get geoLongitude and geoLatitude of that address when I have city and street ? Is there any webservice for that ?
| stackexchange/codereview |
I need to pull some data from the API. It returns the GET in XML and I have having some issues trying to figure out how to assign some of the data from the API to fields in my model in django/python.
The API for activeCollab does not allow me to create my own projectID number, it automatically generates the number for... | stackexchange/codereview |
I have a function that displays an image on top of a movie clip but when you click another image, it of course replaces the current image. I don't know how to stop it from replacing the image, that way I can make an image appear and drag it over somewhere on the stage and then make a different image appear and drag tha... | stackexchange/codereview |
This is driving me nuts!
I have a RIA Services driven dataform in silverlight which contains a datepicker control. I want to display the date in ddMMMyyyy format. Here is a sample of the xaml:
<dataFormToolkit:DataForm x:Name="dataForm" AutoGenerateFields="False">
<dataFormToolkit:DataForm.EditTemplate>... | stackexchange/codereview |
I use SQL 2008.
I have a logical entity (table) say Data with attributes (columns) (key, date, a,b,c,d).
the problem is a and b change values every day and that c and d change values at random dates and very slow. And also they change for each key individually. Say c,d for key = 1 will change today and next month and f... | stackexchange/codereview |
Currious behavior here. If I create a new HashCode, save the HashCode, then add a Transaction to the Transactions collection, the cascade is failing on Update. The Transaction object doesn't appear in the DB, and, curiously, the HashCode object's properties aren't updated either!
I have no idea what could be causing th... | stackexchange/codereview |
I'm writing an Universal App that will run natively on both iPad and iPhone. I also need it to be targeted to older devices (those that cannot run 4.0) so 3.1 is a must.
I have already set up the Base SDK to the latest available version (4.2), and the Deployment Target to 3.1. I am making lots of runtime checks in orde... | stackexchange/codereview |
I have a excel sheet with 2 columns
Contact Status Max Probability
80-Opp Closed Won
0-NC Closed Won
40-Pending 30-Connect
10-Working 20- Engagement
80-Opportunity 30-Connect
40-Pending 10- Engagement
I need to check if the no in contact status ie the numeric value before '-' ... | stackexchange/codereview |
I've been using the gprolog thingy to do some things in prolog. But now when testing some more code I discovered that it does not support "false". Which is supported by swi?
| stackexchange/codereview |
basically I have an array of dictionaries and each dictionary has a day, month and year field.
I want to be able to sort the array by year, then by month, then by day. As if sorting a date.
Is this possible. This is what I have at the moment to sort by "date" as a whole:
NSSortDescriptor *aSortDescriptor = [[NSSortDesc... | stackexchange/codereview |
I have an associative array and I generate a lot of different things with this array.
The output I need has the form
aa, ab, ac, ad, af, ak, az
So the last entry does not have a comma after it
{section name=i loop=$aColums}
{if $aColums[i].contshow eq 'y'}
{$aColums[i].Name}
{endif}
{/section}
My problem is ... | stackexchange/codereview |
I use PostegresQL 9. Is there a free tool to derive UML diagrams from my databases?
Thanks
| stackexchange/codereview |
I am taking over an existing PHP project. I noticed that the previous developer uses a one index.php page for the entire site, currently 10+ pages. This is the second project that I have seen done like this. I don't see the advantage with this approach. In fact it seems like it over complicates everything because now y... | stackexchange/codereview |
After many hours of googling I thought I would see if anyone knew the answer.
I have a large PDF file (30mb) which I was using the UIWebView to display but it is painfully slow when trying to scroll through pages and when you rotate the iPhone/iPad it doesn't draw properly on the screen till you have scrolled through a... | stackexchange/codereview |
I have a .net 4 asp.net website. There is a listview with a checkbox in each "cell" of the listview. I'd like to attach some javascript to these checkboxes in that when the check box is checked/unchecked, it changes the color of teh asp:tablecell. The listview is bound to a collection.
I don't want to do a postback ... | stackexchange/codereview |
public class Person{
private String name;
private String surname;
private int age;
private String address;
Person(String n, String s, int a, String i){
name = n;
surname = s;
age = a;
address = i;
this.name = name; this.surname= surname;
this.age = age; this.address = address;
}
pu... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.