instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am using prawn to generate pdfs and I am having problems when setting the cell height, I set the height but nothing happens. I am using like this: mensagem_tabela = msg_nfe + "\n" + msg_numero + "\n" + msg_serie tabela = Prawn::Table tabela = [[Prawn::Table::Cell.new(:text => mensagem_tabela, :height => 5.cm)]] @data...
stackexchange/codereview
I created a custom helper, I was wondering if there was a way to access the view placehilders. class Zend_View_Helper_MyHelper { public function MyHelper { $this->view->appendScript('myscript.js'); } } I get: Call to a member function appendScript() on a non-object Thanks!
stackexchange/codereview
Using this sample table: drop table Population CREATE TABLE [dbo].[Population]( [PersonId] [int] NOT NULL, [Name] [varchar](50) NOT NULL, [MotherId] [int] NULL, [FatherId] [int] NULL ) ON [PRIMARY] insert Population (PersonId, [Name], MotherId, FatherId) values (1, 'Baby', 2, 3) insert Population (Perso...
stackexchange/codereview
I'm receiving the following error message in Firefox: Error: not well-formed Source File: http://school/courses.booking.add.php?1287657494723 Line: 1, Column: 1 Source Code: {"type":"error","message":"You have already booked this course."} As you can see, the output is valid JSON (it's created by PHP's json_encode() f...
stackexchange/codereview
I have implemented i18n on a GWT application to internationalize labels, buttons etc. Is there a way to determine the user locale on the server side of a GWT application. I have found a library called gwt_i18n_server_1.0.jar which I suspect allows me to do this but the documentation is a little thin. Is this possible?
stackexchange/codereview
We're using TIBCO EMS from our ASP.NET 3.5 app for one interface to an external system, and it appears to be working just fine - except that the guys running the other side tells us we're racking up connections like crazy and never closing them.... What I'm doing is routing all TIBCO traffic through a single class with...
stackexchange/codereview
I have a Moose object module that should accept a relatively large data structure (ds) as one of its constructor arguments. It is used to calculate some of the object's attributes. However, I do not wish to store ds itself as an attributes -- it is only needed during the construction of the object. I thought of using B...
stackexchange/codereview
Currently, if we want to get a list of records from the database, our DAL returns a DataTable to our business layer, which then returns the same DataTable to our calling interface (in this case an asp.vb page). However I don't believe we should be returning a DataTable from the BLL, I always thought it would be better ...
stackexchange/codereview
My site uses nginx. I use apache only for large file uploading to the server. I have a script upload.php which I POST the files to via a flash uploader script. Apache runs on a subdomain, so I post files to upload.domain.com/upload.php Is there any way to prevent apache from serving the actual site on that subdomain? ...
stackexchange/codereview
Hi! I've used the following C macro, But in C++ it can't automatically cast void* to type*. #define MALLOC_SAFE(var, size) { \ var = malloc(size); \ if (!var) goto error; \ } I know, I can do something like this: #define MALLOC_SAFE_CPP(var, type, size) { \ var = (type)malloc(size); \ if (!var) goto er...
stackexchange/codereview
I've worked through some of the Sinatra and Rails samples, but I'm having a hard time figuring out which features belong to which technology. What specifically do I gain by using Sinatra/Rails? Is it just ActionPack/ActionView? Correct me if I'm wrong, but I COULD just use Webrick/Mongrel and serve up my .erb files rig...
stackexchange/codereview
I am trying to get the most recent data item from the datastore. I am trying to apply the method as explained here but I am getting the object <__main__.Rep object at 0x075F1730> not the item. Can anyone explain what I am doing wrong? The Model is: class Rep(db.Model): sent = db.StringProperty() time = db.DateT...
stackexchange/codereview
I have created an HTML Autorun which run from a CD, there is a contact form in it. How can I submit it to my server? I think the common orgin problem is creating issues for me. None if the jquery ways seems to work. UPDATE: I want to submit by ajax, jquery will first check if internet is connected and then submit. The...
stackexchange/codereview
I have an error (vector iterator incompatibles) during execution in my C++ program that I do not understand. [ (Windows / Visual C++ 2008 Express) ] Here is a simplified version of my problem : #include <vector> class A { int mySuperInt; public: A(int val) : mySuperInt(val) {} }; class B { std::vector<A*> ...
stackexchange/codereview
I'm trying to figure out how http://domize.com codes their site for speed (I'm using C#). For example, if I search for [cns][vwl][cns][cns][vwl][cns] This will search for a 6 letter domain name that is in this order consonant, vowel, consonant, consonant, vowel, consonant Resulting in: babbab babbac babbad babbaf ... z...
stackexchange/codereview
I have an xml file that looks like this: <args> <sometag value="abc" /> <anothertag value="def" /> <atag value="blah" /> </args> keep in mind that tag names within args could be named anything (I don't know ahead of time) Now i have this xml file stored in a variable called $data which I loaded using a document(...
stackexchange/codereview
On Linux and Mac OS X, I can run a command from the CLI using the "time" command (not the bash shell built-in command time) and get not only the elapsed run time from start to finish, but many other statistics as well. For example on Mac OS X: % /usr/bin/time -lp /usr/bin/wc PS1-01.m4v 6166365 46283357 1532034853 P...
stackexchange/codereview
I am a final year CS student, and very interested about OCR and NLP stuffs. The problem is I don't know anything about OCR yet and my project duration is only for 5 months. I would like to know OCR & NLP stuff that is viable for my project? Is writing a (simple) OCR engine for a single language too hard for my project...
stackexchange/codereview
http://www.jsfiddle.net/Zn4BH/1/ HTML: <div id="divOutput"> <h1>Output</h1> <div id="divButtons"> <button>One</button> <button>Two</button> </div> <textarea name="tarOutput" id="tarOutput">[Text]</textarea> </div> CSS: #divOutput { border: 2px solid #000; background-color: #f9...
stackexchange/codereview
I have an issue, where by I am doing a simple form validation, that needs some custom stuff that the validation plugin could not do for me. Basically, I have a name, email and message field, all are required, but only email is really validated, the others just need to check if theyre not empty. Here is my current code:...
stackexchange/codereview
What am I missing here? Edit, because this doesn't work in a comment: The below solution results in this: ---------------------------------------------------- | | | Legend text | but what I'm going for is: ----------------------Legen...
stackexchange/codereview
I wanted to redirect this url from /main.php?page=pages&id=gettingpaidfortakingsurveys to /main/pages/getting-paid-for-taking-surveys. Thanks! [UDPATE] i tested it on my existing cakephp .htaccess and it didn't work. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/main.php?page=(.+)&id=(.+) /main/$1/$2 [NC] ...
stackexchange/codereview
I have written a small php script which uses clean urls for which mod_rewrite rules are used. that script needs to know where is located in order to run. root domain : yourdomain.com sub dir yourdomain.com/subdir/ Currently to set path for the script. I use following two, Case: root domain: define("ScriptURl",'ht...
stackexchange/codereview
I have a UITableView, which tries to look like a grid: that is I imitate four columns by adding UILabel**s as **cell.contentView subviews. Three of these "columns" have fixed width, and on rotation I want to automatically resize the leftmost column to fill all available space (width of screen minus overall width of thr...
stackexchange/codereview
A couple of days ago, I asked how you could reverse engineer a file format. While that didn't really work out, someone gave me the file format. (Click Here) Thank you Xadet. I'm still quite new to all this, and I was wondering where I should go from here. I am guessing I will have to use inline-asm in C++ to use this f...
stackexchange/codereview
I have a Django application, and I'm using a shared server hosting, so I cannot change apache's config files. The only thing that I can change is the .htaccess file in my application. I also have a standard django.wsgi python file, as an entry point. In dev environment, I'm using Django to serve the static files, but i...
stackexchange/codereview
I have a column of RTF data that looks like the following: The terms or definitions to be used in this document are: Daily Operator. Used when the user is.......etc.. Using crystal reports I would like to grab just the BOLD text using a formula or equivalent. I keep getting the RTF markup instead of standard text. Her...
stackexchange/codereview
I work as a webmaster with another guy, who is gonna moving away from our city. We're thinking of using a control version system to keep on working but we 're looking for help choosing one. We do not develop big heavily-coded sites, but small presentation sites (you can have an example here ) The most important things ...
stackexchange/codereview
My table is like ID FName LName Date(mm/dd/yy) Sequence Value 101 A B 1/10/2010 1 10 101 A B 1/10/2010 2 20 101 X Y 1/2/2010 1 15 101 Z X 1/3/2010 5 10 102 A B 1/10/2010 2 10 102 X Y 1/2/2010 ...
stackexchange/codereview
In my .m file for a class named Ad , I have 3 static strings static NSString *AdStateDisabled = @"disable"; static NSString *AdStateExpired = @"expired"; static NSString *AdStateActive = @"active"; I can simply use these static variables in the current class, but i cannot call them from any other class, is there a way...
stackexchange/codereview
I have looked around for some resources relating to Apple's StoreKit framework on the iPhone and I really like the way Urban Airship's Store Front works. It is simple to use and the UI is already set up and everything. The problem is, they charge you $0.05 per download. I have upgrades I would like to sell (basically i...
stackexchange/codereview
I'm starting to learn to use Inkscape, and I'm going through this tutorial on creating a shiny clockface. Each hour position is represented by a circle, so I want to place the circle's rotation cross mark is the absolute center of the circle, as well as put the circle at one of the 12/3/6/9 o'clock positions, as in thi...
stackexchange/codereview
I know that when a user visits your app's canvas page e.g. http://apps.facebook.com/YOUR_APP/ this counts them as a "User" and thus, your "User" counter increments. But what about if a person clicks on the Facebook's Javascript SDK Login button on your website without using the canvas page? This one: If they authorize...
stackexchange/codereview
I'm a rails and ruby noob, and Im pretty sure this something completely stupid I am missing.. Trying to build a nested form, and have found many examples online, and tried and failed to reproduce the desired result. the "seller" fields are not even displayed, and when I submit form I get: unknown attribute: item m...
stackexchange/codereview
I'm trying to get some aggregate values from different tables, but my problem is that they're being returned incorrectly, i.e. as multiplications of each other. I've got these tables: Institutes ---------- ID name Conversions ----------- ID institute_id training_id Trainings --------- ID institute_id And I want to d...
stackexchange/codereview
BitmapImage bitmapImage = new BitmapImage(new Uri("arka_projects_as_logo.png", UriKind.Relative)); Image uiElement = new Image() { Source = bitmapImage }; ScaleTransform t = new ScaleTransform() { ScaleX = 0.2, ScaleY = 0.2 }; WriteableBitmap writeableBitmap = new WriteableBitmap(uiElement,t); I want to insert the res...
stackexchange/codereview
Is there way I can combine a JSF component and a Wicket component in the same web page? I have a menu bar component created in Wicket and a form component is created in JSF. I have to combine these two components in one page, is it possible?
stackexchange/codereview
Think "Firebug", but entirely from C#. I have a WebBrowser control that I've built a DOM tree for in a TreeView. I'd like to be able to set a link between each DOM element in the TreeView and its matching HtmlElement in the WebBrowser's Document so that when the node in the tree is clicked, the matching element in the ...
stackexchange/codereview
how can I set up a domain to mirror the files hosted on a git repository (github.com/nospampleasemam/dylanstestserver and dylanstestserver.com). The repository is of a website, so I want to host the files stored in the repository, not just mirror the files for download. thanks!
stackexchange/codereview
I would like to compare to WAV audio files using an FFT. What open source libraries and / or sample code exist for performing such an operation?
stackexchange/codereview
I'm new to using ruby on rails and was looking for help with image upload/manipulation. The extend of my RoR experience is the rails tutorial blog project, but I've used Java and PHP for numerous other projects. I'm trying to create a simple app where the user uploads a file, enters some text, and the text is overlay...
stackexchange/codereview
My app has windows that are components. In my case, now I have 2 components that have a drop down list that show the current logged user lists. So when I use one component for the first time it make a request to database, save data in model, and load data from model, but when the second component opens, it will just lo...
stackexchange/codereview
Is possible delete all the records from a TClientDataset at once?
stackexchange/codereview
The question is if insertSubview is retaining the views and if I'm doing it right. I would say yes. Since I'm not using the property anymore I don't receive an EXC_BAD_ACCESS. I think when releasing the view all subviews are also released. And so mapView is over-released. I'm right or do I still have a memory managemen...
stackexchange/codereview
I have an idea of what I want the algorithm to do, but I'm looking to see if this has been implemented for me in python and I need to know the algorithm's name. I want to insert a set of values in the range [0,65535] into the container. I want to then ask the container for an arbitrary order statistic. Both insert an...
stackexchange/codereview
I'm making a small file editor and the only kicker is I don't want the people who have access to it do use dangerous functions like unlink chdir exec and I'm sure there's 100 more they shoudln't be able to use. I was thinking of just making an array of dangerous functions I don't want them to be able to use and when th...
stackexchange/codereview
Possible Duplicate: xml parsing in android i am new to android . hows can i do parsing of the url http://simplyappointments.com/businessinfoxml.php?email=sujit_jitu06@rediffmail.com can anyone help me in doing parsing. I will be very thankful to you.
stackexchange/codereview
I have a bunch of Div's on the page <div id="MainDiv"><div>sometext</div> <div>sometext</div> <div>Page 1</div> <div>Page 1</div> <div>Page 1</div> <div id="Placeholder1"></div> <div>othertext</div> <div>othertext</div> <div>Page 2</div> <div>Page 2</div><div> How do I hide all child Div's of 'MainDiv' that fall after...
stackexchange/codereview
I have developed a sitemap index and other sitemaps in cakephp on my website. Currently the sitemap index is called using the URL http://mysitename/sitemap and not http://mysitename/sitemap.xml Would it be possible for the search engines to understand the sitemap index location?
stackexchange/codereview
I have downloaded a backup copy of my cpanel webserver. I install WAMP on my local laptop.The database and php username and password have been set. Then I loaded the database into the local MySQL database. I verified the phpinfo.php is working. I setup dreamweaver manage site with the extracted website on my laptop. N...
stackexchange/codereview
I need to get the unique name from a string and concatenate with an integer in java.So I want to take first letter of the string and increment that letter with an integer. Example: tenant name: "ani,raj,rob" and i need to get the schema name like a001,r001,r002 here r value will be incremented because of repetition....
stackexchange/codereview
According to the Emacs documentation, Directory Variables apply to all files below a directory that contains an .dir-locals.el file. How can I, in that file, set a variable to the full path that contains the file? For example: ((nil . ((indent-tabs-mode . t) (my-project-path **THIS_DIRECTORY**))))
stackexchange/codereview
I'm working on some GP-GPU code on an OMAP 3530-based platform and I'm being stymied by the lack of a glGetTexImage function in openGL ES 2.0. Since the platform uses integrated memory for the GPU, I was wondering if there's any kind of hack I can do to get a pointer directly to an allocated texture in memory. This w...
stackexchange/codereview
I've been playing around with WCF and I have managed to a WCF service to generate both SOAP, POX, and JSON formats pretty easily based on this example (I added the soap config). http://www.c-sharpcorner.com/UploadFile/ashutosh.shukla1/3040/Default.aspx And I see that if you add a timestamp field to your data base table...
stackexchange/codereview
is it possible to change color of pin placed on google map creatted by it's api? or have to use custom icon to do that? it's google map api v3. tnx in adv!
stackexchange/codereview
I could have asked these 3 separately, but decided to merge them. I would like to ask for some expert opinion with examples on: how to properly validate a alphanumeric string? (only latin letters & numbers) how to properly validate a written unicode string? (like the above but any country letters allowed) how to prope...
stackexchange/codereview
I'm trying to understand the following code block and am a bit stumped.. specifically I'm confused as to what the YAHOO.example.XHR_JSON = part is about. It looks like we're creating an anonymous method that creates a named anonymous method? YAHOO.util.Event.addListener(window, "load", function() { YAHOO.example.X...
stackexchange/codereview
As of now, I have two different Jsliders in the same panel/frame. One ask for X value. and other for Y. I realize if I can have ONE slider for both the values but two pointers on same slider, it would be more interactive for the user. To distinguish the pointers from each other, it would be nice to color code the poin...
stackexchange/codereview
I'm trying to make an executable in VS2008 that will read a webpage source code using a vb.NET function into a string variable. The problem is that the page is not *.html but rather *.aspx. I need a way to execute the aspx and get the displayed html into a string. The page I want to read is any page of this type: http:...
stackexchange/codereview
I am writing an app for the iPhone using cocos2d where I have 4 Sprites that are buttons. I figured I would implement the button functionality by using 2 sprites with different .png files representing the pressed/unpressed states. I thought this would be better than using an animation. In addition to detecting when ...
stackexchange/codereview
Often I use Cache-Control: no-cache or Cache-Control: max-age=0 The spec says must-revalidate is for max-stale... (the server issue max-stale?) So if for normal web servers, Apache, or Rails with Mongrels, then I think usually there is no max-stale, so must-revalidate is not needed?
stackexchange/codereview
I'm getting a compiler error on FreeBSD: error: invalid combination of multiple type-specifiers From the C++ Code: typedef unsigned off_t uoff_t; Not sure what the gcc compiler is trying to tell me.
stackexchange/codereview
i m making a game in which animation is running perfectly on iphone simulator but when i run on the device it crawls.I m using NStimer to repeat the function in which animation is running.NSTimer repeats after 0.4 sec and animation duration is also 0.4.It is running perfectly on simulator but on device when animation d...
stackexchange/codereview
I'm writing a bitmap editor where I use the Command Pattern to represent actions that will transform the document. I keep all the commands executed so far in a list and, to implement undo, I restore the document to its initial state and then replay all but the last command. I would like my undo/redo system to have the ...
stackexchange/codereview
Does MSDeploy require .net 4? http://www.iis.net/download/webdeploy
stackexchange/codereview
Im trying to sleep for a specified amount of millisecond in C on iphone but I keep getting some complaints on the console: Detected an attempt to call a symbol in system libraries that is not present on the iPhone: nanosleep$UNIX2003 called from function ... Detected an attempt to call a symbol in system libraries t...
stackexchange/codereview
In my iPhone app, there is a setup assistant which helps users to input a lot of data. It's basically a UINavigationController with lots of UIViewControllers in it. Now, at a certain point, I want to access a variable that the user entered in the first UIViewController he saw. I could pass the variable between every UI...
stackexchange/codereview
We are looking at doing a 'version 2' of our web application that is currently written in PHP with a MySQL database. Since it has been in a constant state of development for about 5 years with numerous developers, over time you look at it as a whole and think 'we could do this so much better if we started again'. So we...
stackexchange/codereview
for examples i have this text: " cat car dog... ". Impossible that trim function delete all space: "catcardog...".
stackexchange/codereview
I have an Activity which also has t olisten to a specific broadcast from a self-made service. I have noticed though that when I add that as an action to my Androidmanifest file the app won't actually start whilst debugging. The Activity is also my MAIN activity : <intent-filter> <action android:name="android.intent...
stackexchange/codereview
Div height is not support in below code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <style type="text/css"> .Footer{ background-color:red; width:673px; height:1px; } </style> <title>Fist</title> </head> <body> <div class="Footer"></div> <...
stackexchange/codereview
How to Format a Number to a Hexicadecimal with a Prefix '0x'? Such as: int space = 32; MessageBox.Show(space.ToString("'0x'X4")); // Output 0xX4 instead of 0x0020 I followed this link: Custom Numeric Format Strings http://msdn.microsoft.com/en-us/library/0c899ak8.aspx Literal string delimiter: Indicates that the enclo...
stackexchange/codereview
I'm having trouble displaying a PictureBox in C#. I have two forms. In my main form I'm calling the other form, where the PictureBox is located. This is how I am calling the second form: frmODeck oDeck = new frmODeck(); oDeck.Show(); Now, this is my second form, where the PictureBox is located from mai...
stackexchange/codereview
i'm trying to make a program that reads two English words from the command line, then outputs all possible ways the words can cross eachother. and print an error message if they do not cross. i want to use the charAt and length methods.. not sure where to even start.. here's what i got so far: public class Cross2 { ...
stackexchange/codereview
[Edit] From the feedback/answers I have received, I gather there is some confusion regarding the original question. Consequently, I have reduced the problem to its most rudimentary form Here are the relevant facts of the problem: I have a sorted sequence: S I have an item (denoted by i) that is GUARANTEED to be contai...
stackexchange/codereview
If I attach xls files as attachment in the mailer like this attachments["1.xls"] = File.read "1.xls" If I try open the attachment from the received mail, Excel is unable to open and it says the file is corrupted. Please let me know if I am missing something? Please let me know if additional information is needed?
stackexchange/codereview
I developed a webservice in .net and I'm trying to call it in Android. To call the webservice I'm using ksoap2. The WDSL's URL is: http://localhost/Cidadaos_Cidade/Open.asmx?WSDL Here's the WSDL <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://sche...
stackexchange/codereview
I have bulid a portlet in Liferay Portal and have used Ajax. When I open the site without www everything is correct, but when I use www the Ajax request URL is without www and then the response is empty. My Liferay Portal version is 5.1.1 and I use plugins-sdk and use the Struts 2 portlet and JSR 168. I have noticed th...
stackexchange/codereview
I looked at the 2 examples on Stack, but can't get them to work. I'm simply trying to grab an image from a folder in assets and set it as in ImageView, but get a null pointer returned. What am I doing wrong? Main Activity: package com.xxx.xxx; import java.io.InputStream; import android.app.AlertDialog; import an...
stackexchange/codereview
I have TabBar app that loads several .xib files. In one of the views I am trying to load a modal view to compose an email in the app over the the view. I am using - (IBAction)buttonPressed { MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; [controller setSubject:@"Email ...
stackexchange/codereview
I want to check for special characters in a string EXCEPT spaces and delete them. Ex: input = "Oh Boy!!#$" output = "Oh Boy" Can someone help me with the regular expression to implement this in C#
stackexchange/codereview
When using an ORM (specifically NHibernate), how is refactoring of data handled? I mean, if data objects change such that the underlying relational DB schema changes, does the ORM offer any help in schema upgrades / downgrades in the DB? How about migration of existing data to the new schema? I am in the process of mak...
stackexchange/codereview
this is what my query looks like: select top 5 cast(content_html as xml) as [prodxml], prodxml.value('data(ClassTemplate[1]', 'nvarchar(max) ') as prod2 from content where end_date >= getdate() and folder_id != 71682 and i keep getting: Msg 4121, Level 16, State 1, Line 1 Cannot find either column "prodxml" or th...
stackexchange/codereview
I have an one-to-one, bidirectional entity relationship with shared keys. When I attempt to save the owner of the association I get a "null id generated" exception against the owned side of the relationship. I am utilizing hibernate-entitymanager and using spring for transaction management. Owning Entity @Entity @Table...
stackexchange/codereview
Is there a open source effort to port VCL (Delphi Lib) to .NET
stackexchange/codereview
I have a GeoExt map panel with a zoom control. I'd really like to disable some of the nodes in a tree panel when the layers on my map are "out of range" aka their setVisibility is set to false. I have my zoomend event working and I also have a checkchange event working, but the checkchange event gets evaluated more t...
stackexchange/codereview
Why does Python complain about chrome being referenced before assignment? It does not complain about the dictionary. This is with Python 2.5 if it makes a difference. def f(): google['browser'] = 'chrome' chrome += 1 google = dict() chrome = 1 f() I can make it work with global chrome of course, but I'd like to k...
stackexchange/codereview
I'm using GWT as web development framework. I need to access some REST services from my GWT client code. Also I need to parse JSON (or maybe XML) which is response format of these services. Which is the best way for this problem? Thanks in advance.
stackexchange/codereview
I have class Zones with properties and i want add data which i read with linq to this properties. example List<Zones> z = new List<Zones> z.add(new Zones(...)); var allZones = from s in db.Zones select s; How can i add allZones to z generic List?
stackexchange/codereview
I'm working on an Excel add-in and I'm using the Excel COM interface to do automate some testing. So I'll do something like (all through calls to the Excel COM interface): Create a new Excel instance Load my XLL add-in Create a workbook Set some worksheet formulae Check that I get the expected results Now I want to ...
stackexchange/codereview
select datepart(month,s1.Timeperiod) as monthofaum, datepart(YEAR,s1.Timeperiod) as Yearofaum, ISNULL(s2.endingAum,0) as Starting_Aum, s1.endingAum as Ending_Aum from #temp_1 s1 left outer join (select * from #temp_1)s2 on month(s1.Timeperiod) = dateadd(D,1,month(s2.Ti...
stackexchange/codereview
I'd like to try implementing a visual swipe for an iPhone project, like they do in some games, like Fruit Ninja. As you drag your finger around the screen, it leaves a trail that disappears after a while. I would think that you could have a fixed number of points in the "chain" and as new points are added to the fron...
stackexchange/codereview
For a school project, I need to make a simple paint application that can draw lines, ovals, and rectangles. The assignment specifies that I need toolbar buttons and menu items for each type of shape. I would like to go a little above and beyond, by making the buttons JToggleButtons in the toolbar and the menu items JRa...
stackexchange/codereview
I've tried editing android's skin layout in the emulator to be 1600x1200 and the emulator fails to bring up a window. It works fine for smaller resolutions like 1024x480 and such but not big resolutions. Although even with 1024x480, part of the emulator window is inaccessible and not visible. My question is whether any...
stackexchange/codereview
I get a textarea with a keyup function attached. When the user type something, I want this text to be rendered inside the blockquote tag. It works, but id doesn't take the newline and spaces. Can you helpe me? $('#post_body').keyup(function() { $('blockquote').find('span').text($(this).val());
stackexchange/codereview
I started using MVVM-Light with WPF yesterday and it really makes a difference when it comes to structuring the code. But now i'm trying to figure out how to handle event. Lets say I've got this view, with a TabControl. In every TabItem i have a ListBox. Now how do i handle the event SelectionChanged? And to mess thin...
stackexchange/codereview
I don't know if this is even possible in Javascript as am pretty new to it, but hopefully someone will be able to help! I want some Javascript (ideally jQuery) that will follow all the links with a certain word in on a page and then on the next page, there will be a link to an image. I want to copy that link and then ...
stackexchange/codereview
Can anyone please let me know the coding guidelines along with code samples of Unix shell scripting by using which the code can run on most of the current shells like ksh, bash, csh etc. Most of the times some of my code written for ksh would not work on normal sh. I want to make my code maximum portable. Most of my co...
stackexchange/codereview
How to invoke a webservice through pl/sql block for which we know url,username and password. And how to see the response? Give some sample code... Thanks in advance I have used the following piece of code: CREATE OR REPLACE FUNCTION READ_DATA_FROM_WS (url IN VARCHAR2, usern...
stackexchange/codereview
I'm using mpmovieplayer to play video on ios 4, and I want to keep the audio playing when my app enter background, but it doesn't work. I thing it's because video player use GPU to render video on screen and this is not allowed by apple when app enter background. So, is there any way to do that? There are some apps ha...
stackexchange/codereview