instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
i have 4 items in tabbar controller now bydeafult 1st item is selected now how to change this so that i can show 4th item by default whenever my app start .
this is too simple but i cant figure it out and how to listen to whenevr items are pressed ??
right now i can load a view based on tap but i want that code l... | stackexchange/codereview |
I am working on a website and have embedded a Simpleviewer gallery into one of my pages. There is a blank white area under the gallery that I can't make go away. My ultimate goal is to have no need to scroll vertically on the page.
Here is a link to the page: http://www.tuckermatthewsphoto.com/a...tomotive1.html
Any he... | stackexchange/codereview |
I am writing my first ever bash script, so excuse the noobie-ness.
It's called hello.bash, and this is what it contains:
#!/bin/bash
echo Hello World
I did
chmod 700 hello.bash
to give myself permissions to execute.
Now, when I type
exec hello.bash
My putty terminal instantly shuts down. What am I doing wrong?
| stackexchange/codereview |
I have 2 arrays that i would like to loop through and combine into an associative array. I would like to use the 2 arrays as the keys for the new associative array. I am new to php so any and all help would be appreciated.
$id = array( 2, 4);
$qty = array( 5, 7);
array('id' => , 'qty' => );
Thanks in advance
I woul... | stackexchange/codereview |
I have several UIButtons, I'm trying to bulk change the font for all of them in InterfaceBuilder, but when I change the font, they auto-resize to the original image dimensions instead of what I had them set to, screwing up the layout. I would like to avoid having to resize and move everything around again any time I c... | stackexchange/codereview |
I need to perform scaling operation on UIImage and following is same code. causing a memory leak.not able to debug what is getting wrong here.
UIImage* ScaleImageWithWH(UIImage* image, CGRect aRect)
{
int kMaxResolution = 1800;
int x;
int y;
x = ( image.size.width * aRect.origin.x ) / aRect.size.wid... | stackexchange/codereview |
I have a site which is primarily for mobile users but desktop too.
On Mobile Safari, using <input type="number"> works great because it brings up the numerical keyboard on input fields which should only contain numbers.
In Chrome and Safari however, using number inputs displays spin buttons at the right side of the fie... | stackexchange/codereview |
Possible Duplicate:
removing duplicates in nsarray
Hi friends,
I am storing the value in nsarray and i have to remove the duplicate dates.i mean exactly like this (14/12/2010,paid,15/12/2010,pending,15/12/2010,pending,16/12/2010,paid) should be (14/12/2010,paid,15/12/2010,pending,16/12/2010,paid). can any one sugges... | stackexchange/codereview |
ive downloaded a treeview plugin for jquery (from http://jquery.bassistance.de/treeview/) and ive got a problem with it, because it doesnt generate anything visible.
Ive generated a json string with php:
[{"text": "RSS feed"},
{"text": "Documents", children: [{"text": "test.txt"}]},
{"text": "Todo lists"}]
The jq... | stackexchange/codereview |
I've this requirement where:
For example, a textblock has a name displayed as "Lastname, Firstname" which upon click will load two textbox controls with Firstname's value loaded into its own box and lastname's value into its own box and keep them ready for editing. While I can easily write a bunch of if conditions in m... | stackexchange/codereview |
Based on my research, I have learned the following:
TaskScheduler.UnobservedTaskException must wait for the task to be garbage collected before that task's unobserved exception will bubble up to the UnobservedTaskException event.
If you're using Task.Wait(), it'll never get called anyway, because you're blocking on an... | stackexchange/codereview |
I have installed image magick on my mac os x computer and now I want to deploy it to heroku. I've installed the the paperclip plugin on heroku but I get this error when uploading an image:
Paperclip::CommandNotFoundError
I had this error before when I didn't have imagemagick instaledl on my computer before but now tha... | stackexchange/codereview |
You see them everywhere. Like the twitter and facebook buttons that show up on blogs and websites that display a number of "tweets" or "likes".
All I need to be able to do is display a number from my MySQL database based on two variables (username and an ID). It would probably be useful to encrypt the variables somehow... | stackexchange/codereview |
I don't know PHP at all; this is more of a question of curiosity.
Following the PHP function below in the text file are a few thousand characters of text, such as:
xnEFstUhSNWGSx5zTq4X/AUw/rtism+klrBETWg0xE1uwb49rnRxrgrgY5EEp3Y0uvTcvLqhUFOP
4n7LDLQpQ9UACTyuUjGBKmUScQCYLCP08u06t0K3nWTNiM7Q6bQMk/iZBE+UK1ywbVC1Lzr9OOEK
D... | stackexchange/codereview |
I have the following problem: In my macro, I select a range and try to locate a number within this selection. The problem is that if the number I am searching is 16 and there is a 160 followed by a 16 in the list, it finds the 160. How do I solve this? Ideas?
Range("AC7:AK12").Select
Selection.Find(What:=numbe, After:=... | stackexchange/codereview |
I'm attempting to programmatically create an email with, potentially, multiple attachments but have run into some difficulty. I consulted this similar question and found that the answer was do create something like this:
ArrayList<Uri> uris = new ArrayList<Uri>();
for (String file : filePaths)
{
File fileIn = new F... | stackexchange/codereview |
If you go into the standard Note pad accessory application, the first available note menu entry is going to be...
<untitled>
My question is this: Where is "<untitled>" coming from in the code? The code is in the NotePad sample in the SDK if you want to built a project from existing source real fast. I just can't ... | stackexchange/codereview |
I have a database table that I need to import a bunch of records into. I don't want to overwrite existing records if they're already in the database, so I've set things up to do a select query first to check if there's a value, but apparently the rows are importing too quickly for the index to keep up, as I'm getting d... | stackexchange/codereview |
Problem:
The XML file I want to retrieve has a reference to a XSLT and thus the response contains only the transformed XHTML content.
For example:
URL:http://armory.wow-europe.com/arena-ladder.xml?ts=2&b=Blackout
If you open up this URL with Firefox you can actually see the original XML that is retrieved from the webse... | stackexchange/codereview |
I have a http handler that is called from a .aspx page in the form 1x1 pixel image. The handler has an extension of .jpg set up in the web.config. On all browsers apart from IE the http handler is called successfully from the body of the page when it loads.
However in IE the httphandler is not called.
If I call the ht... | stackexchange/codereview |
Suppose I have two vc++ project, proj_a and proj_b
proj_a contains a header file a.h
proj_b has dependency on proj_a. It contains file b.h that does #include <a.h>. I add a.h's directory in the "additional include directories" in its project settings to build it.
Now say, I have 100 more projects, whose files #include ... | stackexchange/codereview |
im using sql server 2008. my scenario is as follows.
there is a user table, with userid, password, ....rest of the fields
it is something related to insurance, the cases are as follows
logged-in user is insured (there is only one person here)
logged-in user is insured and there is one more insured under the same user ... | stackexchange/codereview |
Possible Duplicate:
preg_match php special characters
Hi all, I want to check if these characters exist in a string by using preg_match:
^'£$%^&*()}{@'#~?><>,@|\-=-_+-¬'
Help please!
| stackexchange/codereview |
I have 3 many-many tables: Users -< UserRoles >- Roles. I set up my model like this:
public class User
{
public int UserId {get; set;};
public IEnumerable<Role> Roles {get; set;};
}
public class Role
{
public int RoleId {get; set;};
public string RoleName {get; set};
}
public class UserDisplayModel
{
... | stackexchange/codereview |
I've been trying to figure this one out for a bit... I even downloaded MediaWiki and looked at their diff script, but I couldn't make heads or tails out of it. I am making a content management system, that will have revision history saved on it. However, revision history is pointless unless you can analyze the differen... | stackexchange/codereview |
I want to check if an event is available or not before binding a function to it.
The problem is that Google Chrome support the event "loadedmetadata" in the Video element while FireFox don't.
I did the following
$('video').bind('loadedmetadata', videoloaded);
videoloaded();
It worked well in Firefox but when I tried i... | stackexchange/codereview |
I tried to dvlp an applic for WP7. This applic must "ask" bing services to retrieve a map with pushpins (POI like train stations or metro stations). In my applic I want to get the pushpins collection and use it to do something else.
The matter is that I don't know how to get this map from Bing Maps.
Is somebody have an... | stackexchange/codereview |
I'm trying to develop a simple racing 2d game (view top-down) in C#, sdl.net.
Now, I'm trying to manage speed, acceleration and brakes of my car.
My problem is the algorithm.
I have the loop (Events_Tick) executed 50 times per seconds, where the position of my car is processed like the following:
private void Events... | stackexchange/codereview |
Shortcut-handling module of my application contains some sort of 'global' hotkeys, that are linked to their own actions in action list in TDataModule.
I did so, because it is part of shortcut persistence and editing system I have. So, any TAction I add into some form/frame/datamodule of my application will be processe... | stackexchange/codereview |
I have created in Java swing an option dialog with the JOptionPane.showOptionDialog method. This dialog includes different buttons, and among those a Cancel button. I would like to attach a listener method to this Cancel button so that once selected, the dialog is disposed.
My question is: how do I "retrieve" (or retu... | stackexchange/codereview |
Let's say I have a basic recursive function:
function recur(data) {
data = data+1;
var nothing = function() {
recur(data);
}
nothing();
}
How could I do this if I have an anonymous function such as...
(function(data){
data = data+1;
var nothing = function() {
//Something here th... | stackexchange/codereview |
why the Markup Validator says it has error in the html code below?
Line 287, Column 80: attributes construct error
…ion" value="set=1&page=2" /><ul><li><a href="http://campusfaithhub.org/vie…
http://validator.w3.org/check?uri=http%3A%2F%2Fcampusfaithhub.org%2Ffood%2Ffood-should&charset=%28detect+automatically%29&... | stackexchange/codereview |
i'm using the Apache Batik SVG Rasterizer Library in python, but when i try to convert a svg into png i get this error Gtk-WARNING **: cannot open display:
How can i do to don't use GTK to convert the SVG file
Thanks and sorry for my english!
my code is this
gij --jar batik/batik-rasterizer.jar file.svg
I use GIJ cou... | stackexchange/codereview |
Is the following code valid C++?
const int var = 10;
{
int var[var]; // why doesn't this give any error ?
}
Note : The code compiles on my g++ compiler.
| stackexchange/codereview |
I have a check box which will change the value of a textfield to 1 when checked and change it back to zero when unchecked, how can I do this? I want it in javascript.
| stackexchange/codereview |
I know maximum size of application in app store is 2GB. and we can only download 20MB apps through 3G and unlimited through wifi.
What about a application that wouldn't be put into app store, is there any limit?
Also, is there any guru know any performance issue when the application is big? what is the ideal limit if t... | stackexchange/codereview |
I have 4 fields where the user should enter values in at least one of them. So I am trying to validate that each of these 4 fields will be required just when all of them are empty otherwise it won't be required.
The rule seems to be working for the one field I picked to try first, but the required error remains even af... | stackexchange/codereview |
A lot of sample Scala code contains Strings and Collections named "xs".
Why xs?
Examples:
var xs = List(1,2,3)
val xs = "abc"
| stackexchange/codereview |
I'm using ghc 6.12.2 and the latest Data.HashMap 1.1.0 package, and while compiling with options
+RTS -prof -auto-all
it does not work, and the message said that I didn't install the profiling package
How to install it ?
Thanks to reply
| stackexchange/codereview |
There are 4 operators in C++ which can be overloaded but cannot be overloaded as freestanding (aka nonmember, standalone) functions. These operators are:
operator =
operator ()
operator ->
operator []
This thread explains perfectly well the rationale behind prohibiting operator = to be a nonmember function. Any idea... | stackexchange/codereview |
I have a simple code in Qt, as below:
#include "mainwindow.h"
#include <QWidget>
#include <QGroupBox>
#include <QLabel>
#include <QLineEdit>
#include <QGridLayout>
#include <QVBoxLayout>
class classA;
class classB;
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
classA * objA = new classA(this);... | stackexchange/codereview |
This is a simple issue but I have been unable to solve this. My problem is that I am sending email using the libmail class.
$message = htmlspecialchars(stripslashes(strip_tags($message)));
Everything is working fine but if I use the " in the text, it will be diaslayed in the mail as ". I have already tried:
mail... | stackexchange/codereview |
I am working with a console application for VB 10.
How can I replace data that I have already written with:
Console.Write
Or how can I write on a specific point: e.g. 100 lines, 100 chars left
In the same way that a program such as wget has a loading bar that does not keep getting replaced every time progress is incre... | stackexchange/codereview |
I have just upgraded my server from php 5.2 to 5.3.3 and I am having a weird error in PDO (with DBLIB).
I am connecting to an SQL Server 2005. I am having The error appears in any statement that prefixes a parameter with the "N" letter (to tell SQL Server that it's a unicode string).
The query looks like this:
INSERT I... | stackexchange/codereview |
I've looked around but I can't seem to find an API call that does the following: I need to merge all ArrayLists in an ArrayList to form one ArrayList with all the elements from all the sub-ArrayLists, if that makes sense.
Here's an example:
{"It's", "a", {"small", "world, "after"}, {"all"}} becomes {"It's", "a", "small... | stackexchange/codereview |
OK,here is my question
foe example,I create a UISwitch in the first 3 cell's accessoryView
theSwitch = [[[UISwitch alloc] initWithFrame:CGRectZero] autorelease];
[cell addSubview:theSwitch];
cell.accessoryView = theSwitch;
and add 2 slider in next 3 cells
theSlider = [[[UISlider alloc] initWithFrame:C... | stackexchange/codereview |
I like to user custom errors in my site.
The Idea is to trap errors and display friendly meaningful messages to users.
The real error details (line number, Page ...) will sent to me by e-mail.
I am programming in VB.NET.
Until now every code that i found about this say's that i must use the global.asax for it.
I do not... | stackexchange/codereview |
Server shutdown from power failure.
Mysql will not start now.
Disk is not full.
Syslog is below
Oct 11 15:03:31 joe mysqld_safe[24757]: started
Oct 11 15:03:31 joe mysqld[24760]: 101011 15:03:31 InnoDB: Operating system error number 13 in a file operation.
Oct 11 15:03:31 joe mysqld[24760]: InnoDB: The error means mys... | stackexchange/codereview |
Is it possible to use XML-RPC calls in iPhone application (what approaches are the best)?
Are there any constraints with XML-RPC?
Thank you,
Paul
| stackexchange/codereview |
When I use this:
SELECT DISTINCT id FROM table
this works! but... when I want to filter only one column I try to do this:
SELECT DISTINCT prod_id, id, prod_picture FROM products
this gives me all table... I just need 1 picture for each product, like:
1 | 1 | asd.jpg
2 | 3 | weq.jph
not
1 | 1 | asd.jpg
1 | 2 | qwe.jpg... | stackexchange/codereview |
The Url Segment in Codeigniter seems simple and easy to follow... however, I am creating a search feature which requires the Url Segment to be dynamic.
If I add a Search function within my Main Class, I would have to include the "Welcome" class to the Url Address: http://example.com/index.php/welcome/search/stuff-i-wan... | stackexchange/codereview |
I've followed the steps given in the Android Developer Blog to generate a build.xml for building releases for an Android Application. I need to do a custom compiling so I have overwritten the target compile of the ant_rules_r3.xml as it is said in the generated build.xml.
<target name="compile" depends="-resource-src,... | stackexchange/codereview |
I have an application that does some Monte Carlo simulation. For each run, a 12MB file is loaded into a std::vector<MyData>. The object which loads and stores the data is referenced by a boost::shared_ptr which is removed from the stack when the run finishes.
I see the memory usage of the application grow in Windows Ta... | stackexchange/codereview |
I am writing a small windows service using .net framework 3.5 and its exibiting a wierd behaviour. The code gets stuck on
using (OracleConnection con = new OracleConnection("Data Source=abc;Persist Security Info=True;User ID=xyz;Password=xyz;Unicode=True"))
{
. . .
however when I debug it by atta... | stackexchange/codereview |
I have managed to create a menu using the xml and a class that extends PreferenceActivity and implements OnSharedPreferenceChangeListener, now I would like to be notified everytime the user changes a value from preferences (e.g. when a user changes the username). To do that I have registered my class using the method r... | stackexchange/codereview |
Hey all, I'm trying to write a marketplace style application. Maybe E-Bay style in which the app connects buyers / sellers and then takes some commission.
I cannot use Amazon FPS as I don't have a US credit card. So my best option is probably paypal. Unfortunately, most of the material out there is all about telling m... | stackexchange/codereview |
Here's a design problem that I run into sometimes. Say I have a set of related classes, with some common features and some unique ones;
interface TableCell {
public function setContent($content);
}
interface HTMLTableCell extends TableCell {
public function setID($id);
public function setClass($class);
}
in... | stackexchange/codereview |
I need to change the href of any local link when it is clicked on.
I've worked out how to select the correct links and create the new url, but not sure how to change the location. I need to be certain that any other click events have also run, so I can't just change the location immediately.
var my_host = 'example.com'... | stackexchange/codereview |
Let's say I have methods with following signature
Object getData(int id) {
//create a entity manager
//get data frm db
//return data
}
updateData() {
Object obj = getData(id)
//get entity manager
//start transcation tx
//update
//commit tx
}
Now will it cause concurrency issue? Can data be stale in... | stackexchange/codereview |
Is there a way to make Netbeans's FTP uploads less error sensitive(reconnect and retry on error)?
It is simply unable to handle large amounts of files. If I upload 1000 files and there is some sort of failure at the 400th file, it will fail for the rest of the files, and it will not record the files that failed. So I w... | stackexchange/codereview |
How to display Bing map dynamically in an ASP.NET website based on the address provided. I do not have latitude and longitude for the address so I have to pass address directly and display the map.
| stackexchange/codereview |
I have a UserControl with a RichTextBox in it. It must be disallowed to drag/drop Text within the RichTextBox so the user can not change the visible sort order of the strings in the RichTextBox.
But... it must be allowed to the user to drag/drop Text outside the UserControl to the same kubd if the UserControl.
Is that ... | stackexchange/codereview |
I am using NSNumberFormatter to create a currency formatted string.
Everything works fine on most devices, but on some devices for example devices with Korean language, the $ sign shows up as a rectangle.
NSNumberFormatter *currencyStyle = [[NSNumberFormatter alloc] init];
[currencyStyle setFormatterBehavior:NSNumberFo... | stackexchange/codereview |
Why is this loop only running once?
noteDatabaseItem just takes a node and fills in the data. the xml has 3 notes in it.
XML:
<?xml version="1.0" encoding="utf-8"?>
<noteCollection>
<note name="Test Note 1">This is test note 1 content!</note>
<note name="Test Note 2">This is test note 2 content!</note>
<note name... | stackexchange/codereview |
i've made a little button widget which is styled with some gfx.
my css class for that button is like:
div.tButton
{
height:20px;
cursor:pointer;
background-repeat:no-repeat;
background-image:url(/button/button.png);
}
...
that .css also has classes for hover, click and disabled button-state.
what i wan... | stackexchange/codereview |
I made an aplication that shows actual wifi conection information.
cont = act.getApplicationContext();
wifiManager = (WifiManager)cont.getSystemService(Context.WIFI_SERVICE);
display.setText(cadena + "\n Rssi:" + wifiManager.getConnectionInfo().getRssi()
+ "\n BSSID: " +
wifiManager.getConnecti... | stackexchange/codereview |
I'm building an HTML5 application (with ASP.NET back-end) and i want to develop it in such a way that i can run it locally with all my resources (such js and css) not minified (so i can debug it easily). However when i build the final version i want merge and minify the resources. At the same time i want to create seve... | stackexchange/codereview |
I have this code to find all the nodes where property branches is empty.
nobranches=TreeNode.all()
for tree in nobranches:
if tree.branches==[]:
I wanted to find a better, more efficient way to do this. A meathod where I don't have to retrieve all the TreeNodes. I have tried TreeNode.all().filter(branches... | stackexchange/codereview |
I have the following loop:
for (byte i = 0 ; i < 128; i++) {
System.out.println(i + 1 + " " + name);
}
When I execute my programm it prints all numbers from -128 to 127 in an infinite loop. Why does this happen?
| stackexchange/codereview |
I have three UIView instances:
UIView *view1;
UIView *view2;
UIView *view3;
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch =[touches anyObject];
CGPoint startPoint =[touch locationInView:self.view];
}
But i want that the toch-action only go in view2. It doesnt work if i make: loc... | stackexchange/codereview |
I have a view that plays an animation and an audio clip. if the user leaves the view and then returns the audio replays from the point where they left the view.
I simply want the audio and the animation to start over as if it was their first time coming to the view.
so the audio would stop and the animation would stop.... | stackexchange/codereview |
I am trying to write a database for class in which I read all the key values in from a file (formatted keyNULL BYTEvalueNULL BYTE etc). I amt rying to use a linked list for this, but I get the error that the struct has no next value. Please help me!
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <s... | stackexchange/codereview |
I'm doing a kind of roundabout experiment thing where I'm pulling data from tables in a remote page to turn it into an ICS so that I can find out when this sports team is playing (because I can't find anywhere that the information is more readily available than in this table), but that's just to give you some context.
... | stackexchange/codereview |
I'm looking to build + run my iphone xcode project totally outside of xcode.
Currently I'm using xcodebuild to build the project - which seems to build cleanly:
https://gist.github.com/8eadfb1acca4d101624b
Unfortunately it doesn't seem to replicate the same Build as done by xcode. Rebuilding it leads to a bunch of syn... | stackexchange/codereview |
I have 3 panels:
<asp:Panel ID="ParentPanel" runat="server">
<asp:Panel ID="AnnoyingPanel" runat="server">
<asp:Panel ID="P" runat="server">
</asp:Panel>
</asp:Panel>
</asp:Panel>
How can I check if P is child of ParentPanel? Is there some LINQish way to do it?
Is there some more optimized way ... | stackexchange/codereview |
Parent-Child Hierarchy
What's the best way to represent a Parent-Child hierarchy in the Cube? I've seen the Usage that can be applied as Parent.
I've applied this, for example,
ID ParentID CompanyName Rank
1 1 AAA Excellent
2 1 BBB Good
3 1 CCC Ok
4 1 DDD None
I can li... | stackexchange/codereview |
I noticed that BT Home are sending back fake DNS results from their DNS servers and this allows sites to bypass the IP addresses i have blocked in the firewall so i was looking to create my own DNS relay/server.
So far i can receive request on UDP port 53 and send them off to the DNS server and get a valid byte[] strea... | stackexchange/codereview |
I'm developing a Python utility module to help with file downloads, archives, etc. I have a project set up in a virtual environment along with my unit tests. When I want to use this module on the same computer (essentially as "Production"), I move the files to the mymodule directory in the ~/dev/modules/mymodule
I keep... | stackexchange/codereview |
What's the "right" way to handle missing arguments in a shell script? Is there a pre-canned way to check for this and then throw an exception? I'm an absolute beginner.
| stackexchange/codereview |
I have thousands of lines of MATLAB ranging over several scripts that I have commented and broken up into cells. I would now like to publish. I have some universal formatting that I would like to apply. I would also like to be able to publish each script independently. At the moment I have written all these formats int... | stackexchange/codereview |
I have a list of sublists, such as:
[[501, 4], [501, 4], [501, 4], [501, 4]]
How can I get rid of the second element for each sublist ? (i.e. 4)
[501, 501, 501, 501]
Should I iterate the list or is there a faster way ?
thanks
| stackexchange/codereview |
I know Java Date Time is not a good way to go forward but I was just curious as to what's happening:
Why does the following line:
DateFormat df = new SimpleDateFormat("dd-MMM-yyyy", Locale.US)
not produce any errors and the following lines do:
DateFormat df = new SimpleDateFormat("DD-MMM-YYYY", Locale.US)
DateFormat df... | stackexchange/codereview |
I need to retrieve 5 objects that match a certain complex criteria, and I can't/don't want to pass that criteria to the WHERE clause(filter in django), so I need to iterate over the results, testing each record for the criteria until I get my 5 objects, after that I want to throw the query set away and never see it aga... | stackexchange/codereview |
In a script I'd like to monitor the process list in a way that, in order to continue the execution of the script, a certain process has to be started.
I came up with something like:
while ! pgrep "process_to_match"
do
sleep 10
done;
# the rest of the script
The problem with that script is that if the "process_to_ma... | stackexchange/codereview |
I'm currently writing a very small Java program to implement a one-time-pad, where the pad (or key) itself is generated as a series of bytes using a SecureRandom object, which is seeded using a simple string with the SHA-512 algorithm.
Generating the one-time-pad hasn't caused any problems, and if I supply the same se... | stackexchange/codereview |
I'm trying to do a very very simple mouseover that animates a change in background position.
js
$('li.services_w')
.css({
backgroundPosition: "0px 0px"
})
.mouseover(function () {
$(this).stop().animate({
backgroundPosition: "(0px -35px)"
}, {
duration: 500
... | stackexchange/codereview |
Hy everyone.
In c# .net VS 2008 I'm developing an N-tier CRM framework solution and when it's done I want to share it.
The architecture is based on:
Data Access Layer, Entity Framework, Bussines Logic Layer, WCF and finally the presentation layer (win forms).
Somewhere I had read, that more than 2 tier layers are prob... | stackexchange/codereview |
I'm learning my way around visual studio at the moment. If I've turned set /Wall I'll be greeted with a seemingly unhealthy amount of warning messages although my application will compile just fine.
Is this normal? Changing the error level will stop the messages. It looks as if they are all related to the C++ STL or it... | stackexchange/codereview |
my app downloads a zip with about 350 files. A mix of JPG and HTML files. The function i wrote to do it works just fine but the unzipping takes for ever.
At first i thought the reason might be that writing to the sd-card is slow. but when i unzip the same zip with an other app on my phone it works much faster. is there... | stackexchange/codereview |
I'm using Struts 1. I have a list of stores in our database. The store table contains store id, store name, url friendly store path, store address. For example, "1; Store 1; the-wonderful-store; 52 Main St.",
When a request comes in for /store/the-wonderful-store.do, I want to grab "the-wonderful-store" and query th... | stackexchange/codereview |
I recently started using the ANTS profiling tools for production work. Aside from being amazed by their awesomeness, I couldn't help but wonder how they work. For example, one of the most useful features lets you visualize the global roots of a running program complete with the number of references to values of differe... | stackexchange/codereview |
I'd like to find the longest repeating string within a string, implemented in JavaScript and using a regular-expression based approach.
I have an PHP implementation that, when directly ported to JavaScript, doesn't work.
The PHP implementation is taken from an answer to the question "Find longest repeating strings?":
p... | stackexchange/codereview |
I have class for showing custom dialog
public class Add_Category_Dialog {
public String inputed_value;
private Context context;
public Add_Category_Dialog(Context context){
this.context=context;
}
public void showDialog(){
AlertDialog.Builder alert = new AlertDialog.Builder(context);
alert.setTit... | stackexchange/codereview |
$subjt = $subject;
$message = $message;
$toinfo .= $snteadd[$i];
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: <$fromemailid>\r\n";
$headers .= "Cc: <$sendCC>\r\n";
$headers .= "Bcc: <$sendBCC>\r\n";
$headers .= "Return-Path: <$fro... | stackexchange/codereview |
Possible Duplicate:
Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc…)
What is the difference between i = ++i; and ++i; where i is an integer with value 10?
According to me both do the same job of incrementing i i.e after completion of both the expressions i =11.
| stackexchange/codereview |
My sysopen fails:
sysopen(DEV, "/dev/ttyS0", O_NONBLOCK|O_RDONLY)
returns 1, which is a success! Then, why does $! have the error "Illegal seek" in it (where it is undef before the call)
before sysopen $!:
after sysopen $!: Illegal seek
EDIT:
Here is the full script: (using the actual O_NONBLOCK|O_RDONLY value 2048)
... | stackexchange/codereview |
when i try to start the service and type net start winmgmt in the command promt, i get a response saying the service name is invalid. Is there anyway i can start this?
Thanks
| stackexchange/codereview |
Is it possible to link conditionally(like an if..else) by using the linker command file?
Suppose i am having two two conditions and i need to link two different section by checking that condition in the linker command file while linking?
I am using a custom linker (star core - a flavor of gcc) of Freescale.
__Kanu
| stackexchange/codereview |
I'm using selenium-rc with C# to test my asp.net mvc2 application. Currently all I am doing is opening the home page with selenium RC.
when I run my test I see the selenium remote control open in a browser and I see my application open correctly in a browser but selenium shows a 404 error and aborts the test.
In an att... | stackexchange/codereview |
When building a Windows Console App in C#, is it possible to update lines in the console while waiting for a readline?
My current code is:
do
{
Console.Clear();
Console.WriteLine("RA: " + scope.RightAscension);
Console.WriteLine("Dec: " + scope.Declination);
Console.WriteLine("Status: " + scope.S... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.