instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
i've updated my MACOSX 10.6 and since then, i've not been able to use the PHP console version from MAMP.
php -v returns me 5.3.3 which is the PHP i've compiled and i want to use the one from MAMP
I've already done :
export PATH=$PATH:/Applications/MAMP/bin/php5.3/bin
and creating a .bash_profile and a .profile filean... | stackexchange/codereview |
I have implemented master pages using this example How to implement a status bar in an ASP.NET application?. I have a property on my SiteMaster.cs inherited MasterPage called Environment. On my MasterPage.master I have this code:
<body>
<form id="frmMaster" runat="server">
<.. some content removed for brevi... | stackexchange/codereview |
While doing a front-end javacript performance test on a site I'm developing, I'm finding on IE8 standards mode everything runs ridiculously slow. But if I flip compatibility view on, it runs very well - the animations are much smoother.
Unfortunately I cannot upload a link to show, but one of the plugins I'm using is a... | stackexchange/codereview |
I have a vbscript that works in development but not the server.
I want to debug this, but I don't want to install visual studio on the server.
What is the most lightweight way to debug this using a debugger?
| stackexchange/codereview |
Apologies if the question is a little imprecise, but I'll describe my problem below.
I'm setting up some models in a Rails project, and one thing I've noticed I'm running into more than a few times is dealing with attributes that meet the following criteria:
They can be set to one of a small, predefined set of values
... | stackexchange/codereview |
I'm querying a ContentProvider, looping thru the rows in the cursor, creating an object for each row and adding that object to a list. I'm registering each object as a ContentObserver of its own uri. That's working fine, the objects are getting notified when their DB row is updated and/or deleted. My problem is that... | stackexchange/codereview |
I have a basic HTML page with some JavaScript code on it, and when I try to put any PHP code in the body, it reads it as a comment.
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script... | stackexchange/codereview |
My friend and I are starting a Rails project together and hosting the repo up on Github.
What should I/we be doing with our database credentials to make sure we are not posting them publicly or clobbering each others database.yml settings?
| stackexchange/codereview |
If I have a one SWF movie imported inside of another, how do I make the inner one have a transparent background?
| stackexchange/codereview |
I'm trying to implement a very simple strategy class in Objective-C that allows for strategies to be defined inline instead of being defined through inheritance. Currently my code looks like this:
@interface SSTaskStrategy : NSObject {
(NSArray *)(^strategy)(void);
}
@end
I thought this would work, but I'm gettin... | stackexchange/codereview |
Any idea how I can get a category menu that expand when you click on a category?
Here you can see an example at the left menu (not magento) http://www.rijwielcashencarry.nl
Is this possible with css only?
Or is there a module that can do this?
| stackexchange/codereview |
My view changed sizes, the relative graphical elements i have tooltips for have changed location. Do I really have to remove each tooltip and add again with the new rect? or is there some "modifyToolTipRect" somewhere. I couldn't find one.
| stackexchange/codereview |
I want to know how can I control the rate of my network interface, In fact, I want to receive with a rate of 32 Kbits/s and send the received data to the network with a rate of 1 Mbits/s....do you have any ideas on how to control the interface's rate?....or do you know any tricks that could help?...
Thanks in advance..... | stackexchange/codereview |
I want to write an extension (a session manager which has more features and eye candy than the ones already in the gallery) for google chrome / chromium.
But I can't get the following code to work:
function list_session() {
var list = [];
chrome.windows.getAll(
{"populate" : true},
function (window_list) {
fo... | stackexchange/codereview |
This is a near identical problem I am having to that of this query, albeit mine is a Web Forms scenario (using routing in .NET 4) as opposed to MVC.
Add a trailing slash at the end of each url?
The solution that someone mentions there is only half provided unfortunately as the link to the complete solution is broken.
A... | stackexchange/codereview |
I would like to have different URLs pointing into different segments of a single audio/video file.
Player will be browser based. So if the URL based solution is not possible, I am willing to explore the possibility of scripting the player.
| stackexchange/codereview |
In the ever increasingly epic failure that are my Create and Edit forms, I'm still having problems generating checkboxes via Html.Checkbox(). I'm not sure if I should just manually write the HTML at this point.
I have a view model:
public class AdminGameReviewViewModel
{
public Game GameData { get; set; }
publ... | stackexchange/codereview |
A question purely for curiosity's sake. This is obviously invalid syntax:
foo = {}
foo['bar': 'baz']
It's obvious what happened, the developer moved a line out of the dictionary definition but didn't change it from the literal dictionary declaration to the assignment syntax (and has been suitably mocked as a result).
... | stackexchange/codereview |
<div id="test">
<input type="text" value="10" size="3">
<input type="text" value="0" size="3">
<input type="text" value="25" size="3">
<input type="text" value="0" size="3">
</div>
I want a function to get all the values of the inputs. I was trying with this:
var inputs = $("test :input");
But I don't... | stackexchange/codereview |
I cant get x10 mini to show up in "adb devices", (only emulators show up). Phone is in usb-debugging-mode, thethering-applications are disabled and on OSX I shouldn't need to download any USB drivers for the phone, so whats wrong here?
/Developer/Utilities/usb probe reports phone as:
Descriptor Version Number: 0x... | stackexchange/codereview |
May be anybody know XNA 2D physic engine with objects looks like objects from "World Of Goo" game? not only hard objects but objects with deformation.
Thanks in advise...
| stackexchange/codereview |
Possible Duplicate:
Lightweight servlet engine for serving java application via IIS
It is possible to run JSP files, let's say Struts 1, on IIS Server?
Thanks
| stackexchange/codereview |
I'm blocked with a very simple Query that it's not working as I think it should do.
What I want to retrieve is all the rows that:
have status = 4(it could be 1 too) and/or end is less than current time()
user_id = $id (exclusively)
segundamano = '1' (exclusively)
What I'm getting:
rows with end greater and less th... | stackexchange/codereview |
I found this information on a blog which talks about invalid product ids.
http://troybrant.net/blog/2010/01/invalid-product-ids/
I tried everything suggested in the
Apple forums and here, and still
couldn’t get it to work. Found the
solution – your app needs to be
transferred by Xcode for the sandbox
to be e... | stackexchange/codereview |
I have searched and searched and I just can't get this code to work.I have a main.xml layout and a setting.xml.I have some values I would like the Settings.class to change in my main apps class.Three string to be exact.
I have tried this simple test code in my main app class
settings.setOnClickListener(new OnClickListe... | stackexchange/codereview |
is it possible to retrieve the username of a google account that i have succesfully authenticated using OAuth?
i have retrieved the users Access tokens but i am wondering if their is a API call i can make such has https://google.api/getUserName and pass the access tokens to that call and succesfully retrieve the users ... | stackexchange/codereview |
I was wondering what does the xml:space attribute do and what are it's values in XHTML5. and does the xml:space attribute have any restrictions?
| stackexchange/codereview |
Similar to this question:
C# Constructor Design but this question is slight different.
I have a class Customer and a class CustomerManager. When an instance is created of the CustomerManager class I want to load all the customers. And this is where I got stuck. I can do this several ways:
Load all the customers in the... | stackexchange/codereview |
In my android application, I would like to shift from 2G or 3G depending on the bitrate available.
Is there any method that I can get the bitrate in Android?
| stackexchange/codereview |
I am having a problem programmatically exporting Excel sheets that contain sparklines to PDF format.
When I manually export the Excel sheet to PDF format using Excel 2010's native PDF Exporting facility then everything works fine, but the moment I do it using simple COM automation then everything is exported to PDF wit... | stackexchange/codereview |
I hope someone reading this might be able to shed some light on this problem.
I have a plain UITableView containing custom UITableViewCells, each cell is a different height provided by tableView:heightForRowAtIndexPath: and the table does not scroll. The cells themselves are really containers for one or two UILabels no... | stackexchange/codereview |
I have used jquery to create a simple slideup/down effect when user clicks on the title of the article, the article slides down.
I want to style the article to make it visually appealing(because its text after text). I am just finding my feet with new css3 concepts.
I appreciate any help.
Thanks.
| stackexchange/codereview |
All my unit test classes have been created by Visual Studio 2008 from a built-in unit test template that includes a "TestContext" property. So far I have not used a test context and this field is upsetting Resharper and code coverage.
Is it ok to remove TestContext or would doing that indicate my unit tests are poorly ... | stackexchange/codereview |
I have a Delphi 2006 app that can minimize to a tray icon, and displays various alert messages via a balloon hint over the tray icon.
Under some circumstances - I don't know when - a previously displayed balloon hint keeps popping up and won't go away. It displays for the length of time programmed, closes, then immedi... | stackexchange/codereview |
I am using this code for add Persian words to a csv file via OpenCSV:
String[] entries="\u0645 \u062E\u062F\u0627".split("#");
try{
CSVWriter writer=new CSVWriter(new OutputStreamWriter(new FileOutputStream("C:\\test.csv"), "UTF-8"));
writer.writeNext(entries);
writer.close();
}
catch(IOException ioe){
... | stackexchange/codereview |
I have 2 classes one includes methodA and the other include methodB. So in a new class I need to override the methods methodA and methodB. So how do I achieve multiple inheritance in objective C? I am little bit confused with the syntax.
| stackexchange/codereview |
I'm adding a custom view to a tableHeaderView with the following code:
imageButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
imageButton.frame = CGRectMake(120, 12, 64, 64);
imageButton.titleLabel.font = [UIFont systemFontOfSize:10];
imageButton.titleLabel.lineBreakMode = UILineBreakModeWordWrap;... | stackexchange/codereview |
When using a custom dialog in an Android App how is it then possible to let the user know, that he/she has entered a wrong argument, e.g. a wrong password or username?
Possible an AlertDialog or just a Toast_Message?
Thank you
| stackexchange/codereview |
How do I reference the assets from phone memory? I need it to write the absolute path into a html file to load some images which are in assets folder. This html is saved in the phone memory but I can't to save these images in the memory phone because these are very big.
| stackexchange/codereview |
I'm trying to logout of my page but session_destroy and setting cookies does not work. Here's my code:
$page = $_GET["page"];
if ($page == "logout") {
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000,
$params["path"], $para... | stackexchange/codereview |
I'm doing massive import in SQL Server using my Java application with Spring Framework and SimpleJdbcInsert class. The results are not good and I'm trying to optimize it.
I support every SimpleJdbcInsert does implicit transaction so I wish to make it explicit transaction with 'begin' at the start and 'commit' at the e... | stackexchange/codereview |
I want to make my input field to have jquery autocomplete where I fetch company names from the database and display it to the user. Below is a snippet I found on jquery.com. I want to rewrite it to fit my needs and I need some help.
$(function() {
function log( message ) {
$( "<div/>" ).text( message ).prependTo( ... | stackexchange/codereview |
From what I observe filecmp.dircmp is recursive, but inadequate for my needs, at least in py2. I want to compare two directories and all their contained files. Does this exist, or do I need to build (using os.walk, for example). I prefer pre-built, where someone else has already done the unit-testing :)
The actual '... | stackexchange/codereview |
In that simple case:
public class Person
{
public int Id {get;set;}
public int Name {get;set;}
}
I need generate a Grid with paging and ordering
My database has about 100k persons
What option has better performance :
1) Get all elemtents in the first time and after take advantage of NHibernate First Level ... | stackexchange/codereview |
I have my project in the following path: ~/work/my-proj. Inside the project folder I created a .proj-ctags folder and issued the following command to create the tag file:
ctags -a -R -f .proj-ctags/.tags --exclude=@./.proj-ctags/ctags-exclude-list *
In my ~/.vimrc I also added the path to the tags file. When I open a ... | stackexchange/codereview |
I have a site with several subdomains, all subdomains are logged to the same access_log file. Since the file can be so huge, I have a script that greps out each subdomain into its own file.
I have a custom log file format in Apache like so:
"\"%{Host}i\" %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
A ... | stackexchange/codereview |
In a rails application how do you efficiently display the total number of users and current number of users online?
| stackexchange/codereview |
I'm looking for some help on a macro to reduce a cells value based on what was entered in another cell. I have 5 columns that I will be entering values into along with 2 columns that already have data. When I enter a number into one of the 5 columns, I want a window to pup up that says "Blah Blah", if I click yes, I wo... | stackexchange/codereview |
I am trying to remove jquery and prototype and Scriptaculous from my RichFaces project. I dont want those libs in there because i want to use the latest version of jQuery in this project, and having 3 old versions of these libs makes it difficult.
I cant find any docs online that say which parts of RichFaces require th... | stackexchange/codereview |
I have an application that I know uses libstdc++, but even as the super user, I cannot see /usr/lib/libstdc++.6.0.9.dylib on my Mac OS X 10.6 Snow Leopard system?
lsof | grep libstdc++
If I use DYLD_LIBRARY_PATH to use my own copy of libstdc++ it shows up in the full path while my app is running:
fooo 1701 foooo txt ... | stackexchange/codereview |
Pls give me any suggestion.
Now I cannot create new web applicaion at sharepoint 2007 from central administration ... error shows that "unknow error" ... so any possible reasons?? ... that i need to check for this error ...
I also cannot create new web application with extendvs stsadm command ... because my database se... | stackexchange/codereview |
In C# 4.0, we have Task in the System.Threading.Tasks namespace. What is the true difference between Thread and Task. I did some sample program(help taken from MSDN) for my own sake of learning with
Parallel.Invoke
Parallel.For
Parallel.ForEach
but have many doubts as the idea is not so clear.
I have initially s... | stackexchange/codereview |
I wish to manually code VLOOKUP in python, so is it possible to see the VBA code behind VLOOKUP?
I remember a presentation in my school by a guest speaker showing that the Excel Functions are just macro/vba codes. Can someone please show me the way to view the code for Excel Worksheet functions?
| stackexchange/codereview |
$7.3.3/14 (C++03)
struct A { int x(); };
struct B : A { };
struct C : A {
using A::x;
int x(int);
};
struct D : B, C {
using C::x;
int x(double);
};
int f(D* d) {
return d->x(); // ambiguous: B::x or C::x
}
The comment in the code in 'f' indicates that one can expect ambiguity between 'B::x' or 'C::x'.
... | stackexchange/codereview |
I'm trying to install ClamAV on Windows but I can't find how to.
What I want actually is to scan for malwares uploaded files and return a value like "safe" or "Infected by: X"
Do you think it's possible on Windows using a free library?
Do you know if there is a paid software that can do this (even using command-line)?
| stackexchange/codereview |
For example, my src.tex is
SectionType *p = NULL;
and I want it change to
section_type *p = NULL;
what I want to do is just change the SectionType, but remains the NULL unchanged, I used y/[A-Z]/[a-z], but this will change all the line.
My sed do not support \L,\l,\U and \u functions, it version is 3.* and distributed ... | stackexchange/codereview |
Here is my code.
When false is returned only ACTION_DOWN can be called and when true is returned all actions are okay, why?
aView = findViewById(R.id.a1);
aView.setOnTouchListener(new OnTouchListener(){
//@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method... | stackexchange/codereview |
As PHP borrows most of its object oriented features from java. I would like to know whether PHP and java both uses the same concept of pass by value?
I know Java is not pass by reference.Its just that object references are passed by value. How about PHP? Does PHP support pass by reference?
| stackexchange/codereview |
A php custom function returns record set from a mysql query.
I need to populate a two column table having equal quantity or balanced between two.
I know we can split by number of columns the row count then use a loop to populate each td accordingly.
Any suggestions or most practical way to display record sets onto tabl... | stackexchange/codereview |
For the last couple of days, I have been on a jQuery frenzy literally designing everything using this wonderful library. I am planning to design a web-based social game (for deployment on social networks like Facebook) from scratch and would like some pointers on understanding how to divide the tasks i.e. to what exten... | stackexchange/codereview |
I know it is possible to answer a call on a mobile phone with the AT command set. But how can I see which number is calling?
After the call is answered I would like the dialer to enter a pin code. How can I retrieve this pin code at the opposite side? Is there an AT command to show what the dialer has entered?
| stackexchange/codereview |
I am using a function to process values spreaded across workbooks. I understand a subroutine is handy to go with. But Can anybody give a clear cut answer as to whether I can process another workbook using an excel custom function called from current workbook?
Mine brings errors!!
| stackexchange/codereview |
I have a Qt Designer Class called MainWindow which is a QMainWindow. This class creates an MDI Area and has children windows, as MDI should.
One of these MDI children, we'll call wndChild which is also a QMainWindow, needs to spawn a "sibling" (that is, an MDI child of its parent, not an MDI child of its own). I figu... | stackexchange/codereview |
This was working but has suddenly stopped for some reason. I can't see what's wrong. Can someone tell me what I am doing wrong here? I'm using an onclick event in a span tag then calling this function.
Firefox reports: Error: document.forms[0].submit is not a function
function submitlogin() {
document.forms[0].su... | stackexchange/codereview |
Running Python 2.5 on Windows XP SP2.
When I run a Python script that calls a user-defined module called Zipper.py (basically a wrapper for a zipfile) using a Windows scheduledTask I get this exception:
Traceback (most recent call last):
File "C:\PythonScripts\ZipAndSendEOD-Reports.py", line 78, in main
... | stackexchange/codereview |
I've searched SO and this question seems to have been asked multiple times, but I can't seem to get it to work in my example.
Here's some code to play with:
http://jsfiddle.net/vol7ron/w8QsZ/2/
What I'm looking for is something similar to the to the flowplayer tooltip, where:
there's a trigger that causes the menu to ... | stackexchange/codereview |
Is there a way to determine if my checkedlistbox's items contain data coming from a string/array?
My textbox contains the following:
txtActivities.Text = "ABC, DEF";
My checklistbox (contains the following)
ABC
DEF
GHI
JKL
What I want to do is:
(1) Split the 'activities' into array:
string[] tokens = txtActivities.T... | stackexchange/codereview |
Does using then instead of semicolon or linebreak have only decorative purpose (to make code more readable)?
| stackexchange/codereview |
So I have the following code to create an NSButton, and put it on the screen. However, when I run this code, nothing happens. What is wrong with this?
NSButton *newbutton = [[NSButton alloc] initWithFrame:NSMakeRect(100, 100, 109, 151)];
[newbutton setImage:[NSImage imageNamed:@"4Diamonds.png"]];
| stackexchange/codereview |
When I try to connect to the ALSA sound system as another user on one of our machines I get the following message- "ALSA lib pcm_dmix.c:975:(snd_pcm_dmix_open) unable to create IPC semaphore". The machine has been logged in as another user in our system. It doesn't matter if I use aplay or my application I get the same... | stackexchange/codereview |
I have a document with the following markup:
<li style="background-color: #{background_color}; color: black;">
<a href="#{url}" title="#{action_name}" style="color: black;"
<span style='color: black;'>action_name</span>
</a>
</li>
However, whenever I set the background_color to anything at all, it causes the l... | stackexchange/codereview |
Possible Duplicate:
How can I test if I can write to a filehandle?
Now that I found how to check in Perl if given scalar variable holds a filehandle, is it possible to check if the filehandle was opened for reading, or was opened for writing? And if it is, then how to check it?
The -r and -w operators works, from w... | stackexchange/codereview |
In my report there is a Purchasing Group number with values like 100,101,102....201,202,203..301,302,303... etc.
There is a formula to identify the Purchasing group department -
If {PURGRP} startswith '1'
then 'Purchasing Dept.'
else
if {PURGRP} startswith '2'
then 'Construction Agreements Office'
else
if {PUR... | stackexchange/codereview |
I want to realize IDEA algorithm in Python. In Python we have no limits for variable size, but I need limit bit number in the integer number, for example, to do cyclic left shift. What do you advise?
| stackexchange/codereview |
I was looking for some current opinions on WPF based on their 4.0 release.
We are trying to decide if we want a Desktop application with a WCF server, or if we want an ASP.Net web app. I would really like to do it in WPF, however some major concerns have come up that I am not sure if WPF can handle. I have looked aroun... | stackexchange/codereview |
I am using VB.NET's TextFieldParser (Microsoft.VisualBasic.FileIO.TextFieldParser) to read a delimited file. However, when I try to read in a field with consecutive newlines within the field, the consecutive newlines are turned into a single new line. I would like the consecutive newlines to be preserved, but am unsu... | stackexchange/codereview |
How do I set the TextWrapping of every cell in a WPF DataGrid to "NoWrap"? I understand the Cell itself does not have a "TextWrapping" property, but I'd like to set the property on the control within the cell.
The DataGrid I am working with does not have columns defined explicitly, the result set it is displaying is d... | stackexchange/codereview |
I'd like to display a crosshair/reticule that's fixed in the center of a Google Map, just as Wikimapia.org do. Unfortunately they are using v2 of the API and I'm using v3.
The crosshair should remain fixed in the center as the user pans the map around.
There's no CENTER option for the ControlPosition enum, so I imagin... | stackexchange/codereview |
I am trying to parse inbound mail to my app by following the JavaMail-example in the GAE-docs.
It works great on the local debug-server, but does not after I deploy it to GAE.
The log in GAE reads:
#
1.
11-10 04:41PM 34.887 /_ah/mail/testing@myappid.appspotmail.com 403 7ms 23cpu_ms 0kb
- - [10/No... | stackexchange/codereview |
I've been using config transforms in VS2010 quite a bit lately but am confused as to why some transforms are applied directly to the Web.config in the package but others are stored against a token in SetParameters.xml then applied on publish.
For example, take a Web.config with the following connection string and app s... | stackexchange/codereview |
I'm trying to put a element to the left of a element, however I can't seem to make them the same height and align with each other. The span always seems to be positioned a little higher.
Anyone got any ideas?
Sparkles*
Edit: HTML section
<label for="name">Username: </label>
<input type="text" name="name" id="name" v... | stackexchange/codereview |
Why won't this work in Safari?
<script language="javascript" type="text/javascript">
function changeUrl(url) {
window.location.href='http://google.com';
return false;
}
</script>
<form action="#" onsubmit="changeUrl(this)" />
<input type="Submit" value="Go" />
</form>
| stackexchange/codereview |
I am not sure where to start, but I want to add in a symbol or change the css for the comments for registered users. Show a difference between non registered user comments and registered user comments.
How would I go about adding this to my wordpress website?
<div class="commentdetails">
<p class="commentauthor"><?php... | stackexchange/codereview |
Gonna need some advice for my work.
In my computer I have installed VS2010 and SQL Server 2008 Developer with a customized instance name named MYCOMPUTER. If I need to transfer the project work, that is created with ASP.NET MVC 2 and of course I also have create a database via VS2010:s interface, from my computer into ... | stackexchange/codereview |
I've got a simple CSS animation that looks like the following:
@-webkit-keyframes 'move-domo' {
0% { bottom: 0px; left: 24px; }
5% { bottom: 5px; }
10% { bottom: 0px; }
15% { bottom: 5px; }
20% { bottom: 0px; }
25% { bottom: 5px; }
30% { bottom: 0px; }
35% { bottom: 5px; }
40% { bottom: 0p... | stackexchange/codereview |
This is my code
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT title,text,date FROM news limit 5");
is there any way to extract title,text,date from $result and put them into 3 dimensional array?
| stackexchange/codereview |
There's this repeater...
<asp:Repeater ID="myRepeater" OnItemCommand="rpt1_ItemCommand" runat="server" OnItemDataBound="rpt1_OnItemDataBound">
<HeaderTemplate>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr class="lgrey">
<td>Default</td>
</tr... | stackexchange/codereview |
I'm having big problems with a git repository on my local machine.
I modified a file, ran git status and the file appeared as modified. I added the file using git add . and it worked as usual. But when i was about to commit the changes, i got the following error:
error: garbage at end of loose object 'e91ce852822d32e38... | stackexchange/codereview |
I have a 2D double precision space with regions (arbitrarily defined, mostly circles) that are "not valid", so to say, and I'd like to get the nearest valid point, given a desired destination (that doesn't have to be valid). Now so far I've tried going from a case-by-case basis in avoiding those regions but when there ... | stackexchange/codereview |
i searched, i found, but it all didn't work. my problem is that the NumberFormatException is thrown while I want to cast from String to double.
The string array atomized contains many strings and I tried to make an output before to make them visible so I could be sure there is data. the only problem is the double value... | stackexchange/codereview |
I have markup that looks like this
<div>
<h1 style="text-align:center;" >Heading 1</h1>
<img style="float:left;" src="logo.gif"/>
<h1 style="text-align:center;" >Heading 2</h1>
</div>
<div>
Content goes here
</div>
The problem is that heading 2 is centered relative to the remainder of space after the image, an... | stackexchange/codereview |
I currently have a nxn array of ints. I plan to initialize all the cells within the array with infinity and later change it if a value being compared to the cell is lower than the value inside the cell. Here is the pseudo-code of what I came up with so far, using -1 to represent infinity. What do you think? Is this the... | stackexchange/codereview |
I could have also phrased this as What constitutes observable behavior?
The C++ Standard talks a lot about observable behavior, but I am not really sure if program termination is part of observable behavior.
That is, given a program such as:
int main() {
for(;;) {}
return 0;
}
is a conforming implementation allowe... | stackexchange/codereview |
i have these procedure
#include <iostream>
using namespace std;
int parent(int i ){
return i/2;
}
int left(int i ){
return 2*i;
}
int right(int i){
return 2*i+1;
}
int a[]={ 27,17,3,16,10,1,5,7,12,4,8,9,10};
int n=sizeof(a)/sizeof(int);
void max_Heapify(int i){
int largest=0;
int l=left(... | stackexchange/codereview |
I read somewhere a while ago that one can configure external jabber components (XEP-0114) to send XMPP stanza's on behalf on any user. For instance say i have a component bind to (component.localhost) and i want it to send a message stanza with "from" attribute set to "user@localhost".
I am trying to achieve this with ... | stackexchange/codereview |
I am doing an Ajax call from site.com/users/{username}
i wanna access the url site.com/account/deleteComment but when i check in fireBug it is trying to access site.com/users/account/deleteComment
here is my code
$.ajax({
url: "../account/deleteComment/" + deleteID,
success: function () {
... | stackexchange/codereview |
Is is possible to intercept browser messages such as:
Firefox:
A script on this page may be busy, or
it may have stopped responding. You
can stop the script now, open the
script in the debugger, or let the
script continue.
I.E.
A script on this page is causing your
web browser to run slowly. If it
contin... | stackexchange/codereview |
How do I install Eclipse Web Developer Tools using the dropin folder?
What do I need to download?
This is for Eclipse 3.6 Helios.
| stackexchange/codereview |
I'm having some trouble writing a query using variables. Here's my code
Dim bondnumber as String = "69836"
Dim PasswordCheck As String = "DECLARE @investor varchar(10),
@thepassword varchar(20), @linkedserver2 varchar(25), @sql varchar(1000) "
PasswordCheck += "SELECT @investor = '" & bondnumber & "',
@linkedserver2... | stackexchange/codereview |
I'd like to offer my .Net library (which I'm developing in the SharpDevelop IDE) as a single dll. I've been manually using ILMerge to merge my compiled library and all its reference libraries together, but would like this done automatically.
I'd ideally like to have this automatic merge happen from within SharpDevelop... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.