instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Suppose I have two classes A and B. Both are identical (same atributes, methods, etc), but they are named different. There's some safe way, in Java, to cast a B object as an A object?
stackexchange/codereview
I am looking for APIs that allow hotel operators to update room information and other hotel info programatically, so far I have only found Expedia QuickConnect but I cannot find anything else. Anyone know of other APIs? Just to reiterate these are APIs to manage a hotel (rooms, prices etc) not to search for hotel rooms...
stackexchange/codereview
I currently have something of the form abc=`find ~/$folder .. etc I'd like to know how to get the number of items in abc: abc_length = ? Thanks
stackexchange/codereview
What is the best Maven2 plugin for IntelliJ? There are a lot of them now, and I don't have the time to play with them all. It would be very helpful to get opinions and a feature synopsis on existing plugins. Here is what I am looking for: a) it keeps my paths and repositories synched to change in the pom file; and b...
stackexchange/codereview
At the moment I'm developing a site and this is my first project using jquery. I'm using jquery to handle the calling of the images, but at the moment I'm not really liking how it is handling the transition from one image to another, the previous image which is about to be replaced is moved shifted due to the change of...
stackexchange/codereview
Hey all, Sorry its me again. This time I have a question that I think is fairly general. I am using code that is almost exactly the same over and over again within a controller to set up a viewModel. My question was, is there a way to store this code somewhere within the MVC project, possibly have it return a vie...
stackexchange/codereview
If I am within a nested stored procedure, I would like to be able to get the procedure ID of the procedure that is one level up. Example: create proc procedure1 as print 'Current proc id: ' + @@PROCID print 'Parent proc id: ' + @@PROCID_PARENT --or something? go create proc procedure2 as exec procedure1 g...
stackexchange/codereview
i am trying to add a constraint to a datatype of char(1) i would like the user to only be able to enter Y or N or n or Y i clicked on check constraint in the CHECK CONSTRAINT EXPRESSION window what am i supposed to enter?
stackexchange/codereview
I came across the solution I need in PHP but I need one that I can use that's just as simple in an ASP.NET environment. I am combining 4 transparent png images to create a single image (Lets say its a custom certificate) with one of 4 background images, one of 4 header logos, one of 18 category titles and another varia...
stackexchange/codereview
I'm storing configuration variables for different environments in the production.rb and development.rb production.rb ENV['my_variable'] = 'val1' development.rb ENV['my_variable'] = 'val2' Maybe exists another way to store variables for different environments. What is the best way?
stackexchange/codereview
How to write a function to implement an integer division algorithm without using the division operator. Floating point values and remainders may be discarded. Error conditions may be ignored. For example: f(10, 3) is 3 f(10, 5) is 2 f(55, 5) is 11
stackexchange/codereview
In iPhone development, I have come across these terms named event loop, run loop . Can some one explain explain what they are?
stackexchange/codereview
The instructions say: Create an equals method that takes an object reference and returns true if the given object equals this object. * Hint: You'll need 'instanceof' and cast to a (Position) I have: class Position { private double x,y; private int id; public boolean instanceOf(Object a) { boolea...
stackexchange/codereview
My app uses many libraries and I'm using java.util.logging for logging. I'd like to be able to set different logging levels for each library by doing something like: org.datanucleus.*.level = WARNING com.google.apphosting.*.level = WARNING com.myapp.*.level = FINE Is is possible?
stackexchange/codereview
Hey guys, I am making an application using C# in Visual Studio that minifies CSS code. Now I came across a piece of code that strips all prefixes for the # ID selector. strCSS = Regex.Replace(strCSS, @"[a-zA-Z]+#", "#"); However, this would also remove any class names in front the ID selector. For example, #interior ....
stackexchange/codereview
I have array of strings in following format 5_5_a, 10_10_a, 0_0_a 1_1_a etc. I want to sort them in ascending/descending order. When I use sortedArrayUsingSelector:@selector(compare:) I get 0_0_a,10_10_a,1_1_a,5_5_a. I tried to parse each string into 5 5 a chunks and cast to a int then put that first element into array...
stackexchange/codereview
I have a table in ms-sql obm_FeeTable FeeId int, FranchieId int, Amount Money, ChequeNo int, BankName nvarchar(200), PaymentDate DateTime when I want to display all collection in crystal report it don't show Amount / PaymentDate when creating report, don't know why its doing like this. Please help why is it doing li...
stackexchange/codereview
I'm writing a create CGImageRef from a Path method. This is: - (CGImageRef)createImage:(NSString*)path { // Create NSURL NSURL *url = [NSURL fileURLWithPath:path]; CFURLRef cfURL = (CFURLRef)url; // Create image from source CGImageRef image = NULL; CGImageSourceRef imageSource = NULL; image...
stackexchange/codereview
I am using AjaxFallbackDefaultDataTable for table creation. For sortable columns, currently wicket creates ajax link under each column name to make it as clickable. But I want to make the complete column header as clickable. Is it possible?
stackexchange/codereview
So I have a cascading dropdown of sorts, but using List Boxes. When an item is selected in the first ListBox, the second ListBox is populated with items based on the first selection (this is done using a jQuery AJAX call). Here's what I got: $('#<%= lbEvents.ClientID %>').change(function() { var selectedValues = $(...
stackexchange/codereview
Inside of fullCalendar(), a jQuery plugin, I can get the value of view.visStart. Outside of the function view.visStart is not available. How can I either get view.visStart out (and is this bad because it is Global?) or how do I insert a click function within the plugin call? thanks. $('#calendar').fullCalendar({ ev...
stackexchange/codereview
Suppose I've got a ton (a continuous stream) of requests to process, and each request has several stages. For example: "connecting to data source", "reading data from data source", "validating data", "processing data", "connecting to data sink", "writing result to data sink". Which visualization methods or even tools f...
stackexchange/codereview
In the IB under Identity tab you can find an attribute called "Object ID". I can not find a way to get hold of this ID from code. Oh, and I know about the tag attribute but it's not what I need. I essentially would like to get the unique object ID for a UIComponent that was touched on the sceen. I already have the UI...
stackexchange/codereview
I have the following class definition and for some reason I cannot define the threadpool inside the class definition itself. It says: syntax error: identifier 'numberofpoolthreads' I tried directly defining it in the class, but it gives me same syntax error, does anyone know why this is? #include "stdafx.h" #include ...
stackexchange/codereview
I'm trying to create an array of JLabels, all of them should go invisible when clicked. The problem comes when trying to set up the mouse listener through an inner class that needs access to the iteration variable of the loop used to declare the labels. Code is self-explanatory: for(int i=1; i<label.length; i++) { ...
stackexchange/codereview
How do I loop through the results of a SELECT statement in SQL? My SELECT statement will return just 1 column but n results. I have created a fictional scenario below complete with the Pseudo code of what I'm trying to do. Scenario: Students are registering for their classes. They submit a form with multiple course s...
stackexchange/codereview
I am using Hostek.com, shared hosting, and can't seem to get a recursive function to run.
stackexchange/codereview
I'm pretty new to ASP.Net MVC. I've created a model that fills a List<> with multiple custom objects called "Result". Then, in my controller, I get this List and put it into the ViewData. I am at a bit of a loss as to how to utilize this List in my view (aspx page). My first try was just to put ViewData["Results"] b...
stackexchange/codereview
Why is it that every time when I load my site it is not opening as every page, but in the middle, so I have to scroll up to see top of this page. I know it's because Ajax-based chatbox, but I cannot spot where it's wrong. JavaScript is included at the bottom of the page, before </body>. Any ideas?
stackexchange/codereview
I've bound an ObservableCollection to a DataGrid. When I change values in the DataGrid, the RowEditEnding event is raised. But the e.Row.Item is the object before editing, so you don't see the new values. I understand that because of the EditEnding. In Silverlight you have an EditEnded event, how can I get the object w...
stackexchange/codereview
I'm programming an iPhone application. This application contains a home page, which I would like to be almost the same as the one in facebook for iPhone : rows of icons, each icon corresponding to a category of my application. I'm a newbie in iPhone development, and I can't find which control is used to show this view....
stackexchange/codereview
hi am new and hibernate is driving me crazy full time. i hv 2 tables one-2-one mapping. when i join only these 2 these two then hibernate is not mapping and when i join table1 with some other table3 then its giving me fine mapped results. Bean1 private int id ; private BlessUser blessUser ; private SnsAuthenticator sn...
stackexchange/codereview
I use Hakyll to generate some documentation and I noticed that it has a weird way of closing the HTML tags in the code it generates. There was a page where they said that you must generate the markup as they do, or the layout of your page will be broken under some conditions, but I can't find it now. I created a small ...
stackexchange/codereview
Is anybody aware of a way to enable OpenGL stereo while using a layered window in Windows 7?
stackexchange/codereview
I need a method that would allow me to read all the HTTP traffic on a local machine, and to change this traffic on-the-fly. Basically, I need to change the content on any web page opened in any browser at the machine. Any thoughts?
stackexchange/codereview
Here is the problem: namespace Program1 { public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) {....} private: RunnableThread^ peerThread; private: System::Void loginButton_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e) { String^ i...
stackexchange/codereview
Taken from this SO thread, this piece of code calculates the number of CPU cycles elapsed running code between lines //1 and //2. $ cat cyc.c #include<stdio.h> static __inline__ unsigned long long rdtsc(void) { unsigned long long int x; __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); return x; } int ma...
stackexchange/codereview
How can I print (echo) the days of an unknown month if month and year are parameters? Thank you.
stackexchange/codereview
I'm trying to make Latex usable, by introducing some timesavers, but I'm having trouble with defining new commands that terminate environments, completely at random. This works: \newcommand{\bcv}{\ensuremath{\begin{smallmatrix}}} \newcommand{\ecv}{\ensuremath{\end{smallmatrix}}} \newcommand{\be}{\begin{enumerate}} \ne...
stackexchange/codereview
I'm trying to copy a PBO into a Texture with automipmapping enabled, but it seems only the top level texture is generated (in other words, no mipmapping is occuring). I'm building a PBO using //Generate a buffer ID called a PBO (Pixel Buffer Object) glGenBuffers(1, pbo); //Make this the current UNPACK buffer glBindBuf...
stackexchange/codereview
Im using Jboss5.0 with mysql in my application. and there will be lot of concurrent actions and DB contains considerably lot of records. this error is coming frequently.. every now and then. com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Can't call rollback when autocommit=true at com.mysql.jdb...
stackexchange/codereview
I created an error-handler using On Error Goto statement, and I put a few lines of cleaning code and display the error message, but now I don't want to lose the comfortableness of the default handler which also points me to the exact line where the error has occured. How can I do that?
stackexchange/codereview
I need circular progress indicator. How should I implement this? What I'm looking for is what jQuery UI has in their planning page, but its not yet implemented. I'm just curious if anyone has implemented this before. See item 6 in following image. http://wiki.jqueryui.com/ProgressIndicator
stackexchange/codereview
I'm trying to setup a Spring MVC project. I posted my configuration files below. I'll be really glad if someone helps me. Thanks in advance, With regards, Talha. web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" ...
stackexchange/codereview
I'm using #pragma once, not #include guards on all my h files. What do I do if a.h needs to #include b.h and b.h needs to #include a.h? I'm getting all sorts if errors because by doing this, the pragma once takes effect and one of them is missing each other. How should I do this. Thanks
stackexchange/codereview
I'm trying to set bounds where you can drag the map using Google Maps API V3 Here is the solution for V2 http://econym.org.uk/gmap/example_range.htm that works pretty well. However with API V3 it isn't so good: when you use the same checkbounds() function, the map is twitching when you reach the bound while map.setCent...
stackexchange/codereview
On my server, a website resides within a directory similar to /domains/domain.com/public_html. I wish to keep the domain at this path, as all the main files are there, but is there any way to source some files from another location in my server, eg. /global/script.js? In short, I hope to write a mod-rewrite than can so...
stackexchange/codereview
i have a textarea with ckeditor customized toolbar which user can only select smiley now i want users can only use smilys and new line function so if $comment is my raw text output with html tags and i want only smiley and text with new lines appeared in output not other html tags sample raw data : <p> this is a s...
stackexchange/codereview
I'm trying to write a little program that will add mDNS CNAME aliases to my Linux device, so that it can be accessed via more than one "something.local." domain name. This program's intended function is the same as the avahi-aliases Python script, but in order to avoid a Python dependency, I'm trying to implement it in...
stackexchange/codereview
I hope you can help solving my problems. Any help is much appreciated. Thank you in advance. HTML&CSS: I tried creating a 'linklist' with HTML and CSS which you can find in this fiddle. Unfortunately and logically the 'linklist' displays by hovering over the link 'Linklist', by leaving the link there won't be any displ...
stackexchange/codereview
I want to provide different resource files to users. But I don't know how to load strings from a resource file other than strings.xml?
stackexchange/codereview
I have created the below object: public class GameProperties : ModelBase { private int _gameSpeed; public virtual int GameSpeed { get { return _gameSpeed; } set { _gameSpeed = value; OnPropertyChanged("GameSpeed"); } } public void SetGameSpeed...
stackexchange/codereview
Is there a way to build keyboard accessible dropdown menus on web sites? Our current web application has standard hover menus, but this really slows down our data entry clerks (who are accustomed to desktop apps where there's a keyboard accessible menu and no need to use a mouse). We figured out how to show the menu...
stackexchange/codereview
I know subversion but sometimes I want something simpler like plain old files with just file stamping automatically. http://www.filehamster.com/ does this, but I'd prefer something opensource. Anyone knows anything like this ?
stackexchange/codereview
I'd really appreciate some help or ideas on a very frustrating issue. In my experience it seems that any time I need to organize or update my solutions/projects, I realize how buggy and poor the program actually is. I always end up having to find a hack or run into a nasty trial by failure that forces me start from s...
stackexchange/codereview
I have a pretty simple question. What is the best (highest-performance/lowest memory-usage, etc.) way to compile a regular expression in AS3? For instance, is this: private var expression:RegExp = new RegExp(".*a$"); private function modify():void { /* uses "expression" to chop up string */ } Faster than this: p...
stackexchange/codereview
Does anyone know of an easy to use Ruby XML writer out there? I just need to write some simple XML and I'm having trouble finding one that's straightforward.
stackexchange/codereview
Is there any way to craft an Excel hyperlink formula that would send an HTTP POST on click and parse the response to populate another cell?
stackexchange/codereview
I am designing a database system for a web CMS. I have added the "status" column in the "Content" table which shows the status of each content in a time. I know there are only some special values which status can accept like : 'draft', 'comment waiting', authorizing pending' and... I want to create a check constraint t...
stackexchange/codereview
I have follow an example of an opengl application and I don't know why is this thing happening... I have a GLSurfaceView with it's corresponding renderer drawing a triangle. But, instead of getting the whole view on screen, I have just the upper half, and it's also duplicated as you can see on the picture. I'm using a ...
stackexchange/codereview
I have a simple COM add-in for office that I am developing (for access specifically). I have added a custom commandbarbutton item to the context menu that pops up when you right click on an object in the navigation pane. This works fine. The debug code I added runs (currently just a msgbox command). The one thing I c...
stackexchange/codereview
What would be end of source in this case when getting a string input from console? int main() { std::vector<std::string> str; copy (istream_iterator<std::string>(std::cin), istream_iterator<std::string>(), std::back_inserter(str)); }
stackexchange/codereview
I was advised to ask this as a separate question, so that I will do. I have a tree of people, like in genealogy. It starts with a person and branches off into parents, grandparents, etc. I want to be able to insert a person into a spot on the tree (basically replacing whoever is there). These datatypes are important: d...
stackexchange/codereview
the user needs to provide a list of field/values through a form class FieldForm(forms.Form): field_name = forms.CharField() field_value = forms.CharField() The problem is how do I get a user to pass multiple of these with one submit? Also as a side question... any tips on implementing editing too? Any ideas...
stackexchange/codereview
Im using codeigniter validation class when submit forms. Also Im using set_value() to re-populate fields on form fails. If I have $this->form_validation->set_rules('name', 'Name', 'required') set_value() works and field is re-populated. But what if I dont wont the field to be required ? If I do not add $this->form_v...
stackexchange/codereview
I'm trying to compile a project with the NyARToolkit library following the instructions here. It provides almost all the source code that you need, but not the EAGLView class that he is using. It gives a link that is redirected to a newer version of the GLSprite sample code, which no longer works with this example. H...
stackexchange/codereview
My question is regarding GPS. Is there a way to locate a phone number using gps? Without installing any apps to their cell phone. I am interested in both Windows Mobile and iPhone. But please do include generic replies also.
stackexchange/codereview
I hope, my issue would be clear for you from my question title. I have three linear layouts in each row of the list view. One linear layout contains an Imageview and the other two linear layout contains text views. These three linear layouts comprise my list view row. But, to my surprise, the listview default selection...
stackexchange/codereview
starting point is example showed on next link: http://gmaps-samples-v3.googlecode.com/svn/trunk/sidebar/random-markers.html i added new (second) div panel, and i would like that when end user clicks on one of items showed on left panel, it shows more information about it on new div panel. so, how can i "read" on which ...
stackexchange/codereview
I have an ASP.Net application that has some data driven elements powered by XML with some very basic XPath queries. How big can an XML file become e.g. 10MB, 50MB before the application should start to see a dip in performance when reading from the file.
stackexchange/codereview
Hello: I have an app where in a thread hierarchy (persisted entity) is modelled as follows (note that this could be a deeply nested hierarchy): Thread { private key; private rootKey; private parentKey; .. getters .. .. setters .. } I have a DTO which has the following structure ThreadDTO { private ke...
stackexchange/codereview
I want to check in client side(jQuery) whether return data from a PHP function is Json object or String to assign different function.
stackexchange/codereview
How do i get the tabs to stop in the order I want across usercontrol contained elements to local elements in a view, the view is static xaml, not composed ( like with prism ), should this involve code, or can i do this in xaml only? also if you know how to do this in blend that would be very helpful.
stackexchange/codereview
If I have a table on my DB called product_tags with 2 fields: tag_id and tag_name Here is the schema: CREATE TABLE `product_tags` ( `tag_id` int(11) NOT NULL auto_increment, `tag_name` varchar(255) NOT NULL, PRIMARY KEY (`tag_id`), UNIQUE KEY `tag_name` (`tag_name`) ) ENGINE=MyISAM AUTO_INCREMENT=84 DEFAULT CHARSE...
stackexchange/codereview
Is there a way to adjust the dimension of an <input type="checkbox" /> I already tried it using style="width:30px; height:50px;" approach, but it didn't work. Any ideas? Is this even possible?
stackexchange/codereview
I come to an API getStock designed, where I have no good judgment, on how I should deal with failure of operation. The API will enable me to pass a stock code, and return a stock if success. Shall I use null returned value to indicate failure of operation, or throwing checked exception to indicate failure of operation?...
stackexchange/codereview
I have written the following code to place the image path into sql server 2005 but its not working is their any alternate way to place images into sql server from clientside application. example.html <form id="addresslistingform"> <fieldset id="fieldset1"><legend>Address for listing</legend> ...
stackexchange/codereview
In UNIX systems we know malloc() is a non-reentrant function (system call). Why is that? Similarly, printf() also is said to be non-reentrant; why? I know the definition of re-entrancy, but I wanted to know why it applies to these functions. What prevents them being guaranteed reentrant?
stackexchange/codereview
Ever since JQuery came along a few years ago I've been using it in all my client-side scripts. Initially I used the '$() syntax to grab and manipulate objects this, to me, is the 'old skool' paradigm of explicitly wiring up button events to functions: <button onClick='myFunction(this);' ... /> with a related function...
stackexchange/codereview
How to check the array true_or_false containing a value of false? bool[] true_or_false = new bool[10]; for (int i = 0; i < txtbox_and_message.Length; i++) { bool bStatus = true; if (txtbox_and_message[i] == "") { bStatus = false; } true_or_false[i] = bStatus; }
stackexchange/codereview
I'm using robocopy to do backups with a PowerShell script, and it's pretty awesome, except that I'd like it to only show the progress percentage while it copies and not all of the other information. The other information clutters the command window, which I'd clean and simple so that it's easy to see the overall progre...
stackexchange/codereview
Is there any library to help me instantiate a dhcp server in python?
stackexchange/codereview
i am using jquery validation as follow var validator=$("#myform") .validate({ rules: { field1: { required: true }, field2: { required: true }, field3: { required: true }, field4: { required: true } } }); field1, field2...
stackexchange/codereview
Am a newbie to rails , please let me know the way to comment out a single line and also to comment out a block of lines in *.html.erb files.
stackexchange/codereview
What is the better way to remove and dispose one MVCObject including unbinds and clearing all events and markers ?. I have tried clearing markers and unbindAll() but the object is not removed of the map. Try with this sample Thanks.
stackexchange/codereview
How would I make an ajax call if a page detects a cookie is present? The code below fires the alert but not the ajax call. Any help greatly appreciated. EDIT: Updated and fully working code below. Simply had to change $(this) to $('.more') when the cookie is found. Many thanks for help/advice. $(document).ready(funct...
stackexchange/codereview
I would like to know if this looks correct : while((next !=NULL) && (strcmp(next->name, some_string) < 0) { //some process } I mean, if next is NULL, then the second part of the expression won't be ever tested by the compiler? I have heard that in C++ it's the case (but I'm not even sure of it). Can someone confir...
stackexchange/codereview
I am writing a small DB utility. I would like to give the user the ability to open an instance of Oracle sqldeveloper directly from this utility. Is it possible to open Oracle sqldeveloper IDE that already connected to a specific DB? Something like sqldeveloper USERID/PASSWORD@DATABASE
stackexchange/codereview
I am getting a tool ready to make the source public. I would like to have it well documented for people who would use it as well as potential contributors. I am already using some rudimentary docblocks and some line comments for class variables. Currently I am using doxygen because it integrates into eclipse, but I ...
stackexchange/codereview
I have create a project with one main form window and also i have to use a number of other forms as well. now i want to open these other forms inside the main window and not outside. I'm using Visual Studio .NET 2010 as developing environment. is there anyone who can assist me on this? Thanks
stackexchange/codereview
MailMessage message = new MailMessage(email.From, email.To, email.Subject, email.Body); but i can not see name when i get email. I want that instead of "nore...
stackexchange/codereview
In Excel, COUPNCD returns the date of the next coupon and COUPDAYSNC returns the number of days until the next coupon. However, COUPNCD(settlement, maturity, freq, basis) - settlement is not always equal to COUPDAYSNC (settlement, maturity, freq, basis) Why is this?
stackexchange/codereview
I have created a windows application, which gets a xml file from the URL and save it on my local machine.In this application a Timer control is set for get the updated XML file from the URL and show the update into label. I have created a setup project and Installed it on another system. Problem is that, The installed ...
stackexchange/codereview
I am trying to populate a jqGrid with data from a web service. I have looked at the jqGrid code and documentation thoroughly. I need another set of eyes to look at the code below and tell me if I'm missing something. As you'll see in the code, I have the grid set up to load when the page loads or during a refresh. A...
stackexchange/codereview
What is the equivalent for Datamodule in Delphi Prism XE? How data binding is supported in Winform applications using Delphi Prism XE?
stackexchange/codereview
I have a mediaplayer object inside an activity that plays from mp3 files situated in the res/raw folder. The MediaPlayer.create(Context context, int resid) method is used to create and return a mediaPlayer object to play this track. What I have noticed is that when the activity is obscured by another activity and hen...
stackexchange/codereview
I have a Stream running at this URL: http://localhost:8000/admin I want to connect to it via a TcpClient, but don't know where I can specify the directory. currently I do this: tcpClient.Connect(IPAddress.Parse("127.0.0.1"), 8000);
stackexchange/codereview
Hello all I am having a problem and this is the first time I am setting up Mutial SSL for a payment portal the code below is what I am using and the error I am getting is: System.Web.Services.Protocols.SoapException: No credentials found by which to authorize the user Missing authentication credentials [cert] at Syste...
stackexchange/codereview
I know there are ways to view an image full screen in Flash, but I was wondering if there's a way to do it in Javascript. It would be really great if anyone knew of a jQuery library that could handle it for me. UPDATE: Since its impossible to do true full screen w/out Flash let's just say to fill up the browser window....
stackexchange/codereview
I'm trying to use jQuery's $(this) inside of Fancybox's onComplete event, but I'm running into trouble. Here's my javascript code: $('a.iframe').fancybox({ centerOnScroll: true, onComplete: function(){ var self = $(this); var title = self.title; alert(title.text()); } }); I have simpli...
stackexchange/codereview