instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have MEF/Prism 4 project for which I can resolve imports via the ImportingConstructor, but not via field imports in the same class. In the sample code below, myDataService is correctly resolved in the constructor. But _myDataServiceFieldImport isn't resolved, despite the Import attribute. Same result whether it's...
stackexchange/codereview
In a string, replace every occurrence of <0xYZ> with the character of hex value YZ. The < and > characters will be used only for that purpose, the string is guaranteed to be well formatted. Example ('0' = 0x30): A<0x30>B => A0B It's an easy task, but there are many solutions and I was wondering about the best way to do...
stackexchange/codereview
I had asked a question similar to this before, but I have a new problem with it so I've reposted part of the question. I have this before the interface declaration in my MainView.h header. typedef enum { UNKNOWN, CLEAR, NIGHT_CLEAR, CLOUDY, NIGHT_CLOUDY } Weather; Then I declared it (in my MainView) like this: Weathe...
stackexchange/codereview
I have a controller action like: Public ActionResult MyAction(int[] stuff){} I make a JSON request like: $.getJSON(url, { stuff: [] }) When it gets to C# it looks like an array with one element in it, which is zero (i.e. like if I did int[] stuff = {0};). Is this new with MVC 2 or .NET 4? It seems to have changed re...
stackexchange/codereview
Is there a standard way of referencing objects by identity in JSON? For example, so that graphs and other data structures with lots of (possibly circular) references can be sanely serialized/loaded? Edit: I know that it's easy to do one-off solutions (“make a list of all the nodes in the graph, then …”). I'm wondering ...
stackexchange/codereview
Is it feasible to develop extensions with mootools?
stackexchange/codereview
It's probably very lame question, but I found no references in C# specification about round brackets. Please point me to spec or msdn if answer on that question will be obvious. What is the inner difference between (MyType)SomeObj.Property1 and (MyType)(SomeObj.Property1) in C# ? AFAIK, in first case ( (x)SomeObj.Prope...
stackexchange/codereview
I have not gotten any errors with the tests up to this point so far, but I can't figure out these errors. Failures: 1) PagesController GET 'home' should have the right title Failure/Error: response.should have_selector("title", undefined method `has_selector?' for #<ActionController::TestResponse:0x0000...
stackexchange/codereview
This program is in response to the assignment: "Create a method named Sum() that accepts any number of integer parameters and displays their sum. Write a Main() method that demonstrates that the Sum() method works correctly when passed one, three, five, or an array of ten integers. Save the program as UsingSum.cs." fr...
stackexchange/codereview
I'm about to update my site to use CakePHP instead of an old homegrown framework. I need to write the HTAccess file to redirect the old PHP parameter URLs to the new CakePHP SEO friendly urls, but I can't get it to work. My htacess file (the one in app/webroot) looks like this at the moment: RewriteEngine On Rewrite...
stackexchange/codereview
I would like to share the event 'MyEvent' in the following class: [ServiceContract] public interface MyInterface { [OperationContract] void Start(); event EventHandler<MyEventArgs> MyEvent; } public class MyEventArgs:EventArgs { public string Name{set;get;} } Which ...
stackexchange/codereview
I need to apply the eol-style property recursively on an existing repository. The repository contains both text files and binaries. I want to apply this property only on the text files, and not on the binary files. How can this be done from the command line or in a script?
stackexchange/codereview
How Can I configure the SharePoint diagnostic logging to log detailed error when using visual studio to deploy solution?I am using visual studio to deploy solution in a dev enviroment.However, when I got and error shown in visual studio like add solution failed ....,nothing is logged in SharePoint log,how can I configu...
stackexchange/codereview
I have two processes running in different scripts indepdent of each other. PHP #1 script reads the filename of a file and writes it to a DB PHP #2 script uploads the file I would like to create a third script (also independent) that only executes once script #2 has fully completed uploading the file. I'm thinking of ...
stackexchange/codereview
Icons have been provided in the SDK for either "Light" or "Dark" depending on the theme set on the phone. On the application bar when the theme changes the icons automatically change with it. Also, when you press the button the image is reversed (so it's still visible) no matter which theme you're on. I can easily figu...
stackexchange/codereview
I am bulk importing CSV file into a temporary table and then inserting the rows into the target table if they do not already exists. When I start the process, my table has the following values VECH01 AAA 111 VECH01 BBB 222 VECH01 CCC 333 VECH02 AAA 111 VECH02 BBB 222 VECH02 CCC 333 When I import a CSV file with these...
stackexchange/codereview
First, note that this is just a learning exercise for me. The intent is to produce a .NET messagebox using nothing but pure C++ (not C++/CLI) and late binding as necessary. This works fine with just a title and text in the messagebox. However, when I try to specify buttons I get back 2147942487 "The parameter is incorr...
stackexchange/codereview
Why can I only upcast a generic and not downcast it? How is it not clear to the compiler that if my constraint says where T : BaseClass and U is derived from BaseClass that (U)objectOfTypeT is valid?
stackexchange/codereview
Is there any sample application or code example for uploading image to picasa using GAE python. How to insert picasa uploaded image url into datastore then. Is there any effective way to do this?
stackexchange/codereview
I'm trying to follow these instructions to configure the DataNucleus enhancer: If using Eclipse you need to edit your project properties. Go to Java Compiler -> Annotation Processing and enable the project specific settings and enable annotation processing. Then go to Java Compiler -> Annotation Processing...
stackexchange/codereview
When someone refers to a relation in a database course, what does that mean?
stackexchange/codereview
I maintain an open source program that builds with autoconf. Right now I'm having a problem with some of my users. They are using a pre-distributed VM from an organization that has an incorrect prototype for strchr in it. Their prototype is: char *strchr(char *,int c); when of course we know it should be: char *strch...
stackexchange/codereview
I'm trying to write a simple application that gathers the RSSIValue and displays it via NSLog, my code is as follows: #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> #import <IOBluetooth/objc/IOBluetoothDeviceInquiry.h> #import <IOBluetooth/objc/IOBluetoothDevice.h> #import <IOBluetooth/objc/IOBluetoothHost...
stackexchange/codereview
I'm reading a bunch of files from an FTP. Then I need to unzip those files and write them to a fileshare. I don't want to write the files first and then read them back and unzip them. I want to do it all in one go. Is that possible? This is my code FTPClient fileclient = new FTPClient(); .. ByteArrayOutputStream out ...
stackexchange/codereview
We have a linux module developed by a 3rd party, now the module runs correctly on a Fedora system but on Ubuntu the same fails. When we do an ldd for the binary the following output is received linux-gate.so.1 => (0xffffe000) libdl.so.2 => /lib32/libdl.so.2 (0xf76f5000) libc.so.6 => /lib32/libc.so.6 (0...
stackexchange/codereview
Where do you see operation scenarios for parallelism/multi-threading/PLINQ etc for a single threaded WPF desktop app with sqlite? I would like to know wether I could tune my application somehow and even when it is just for the learning effect :)
stackexchange/codereview
When I click the table row, go back to previous view without clicking back button. I try [self.navigationController dismissModalViewControllerAnimated:YES]; it's not working. How to dismiss pushViewController ?
stackexchange/codereview
I am trying opening a audio file (.wav) and retrieve the raw data. I got the below code from the link. When I am trying to implement the code DWORD is not supported in Objective c. How can I implement this? FILE *fp; fp = fopen("sound.wav","rb"); if (fp) { BYTE id[4]; //four bytes to hold 'RIFF' DWORD size; //3...
stackexchange/codereview
I am thinking to use SQLite for the newer version of my app. Is SQLite compatible with Crystal Reports? I am using VS2008.
stackexchange/codereview
I need to get the user's location even if the phone goes to sleep/screen lock mode. I've tried enabling location services in background mode by adding key to the info.plist file, but this method requires iOS >= 4.0. Is there any alternate method to get the location manager working in screen lock mode
stackexchange/codereview
Java IO implementation of unix/linux "tail -f" has a similar problem; but the solution is not viable for log files that generate about 50-100 lines per second. I have an algorithm that emulates the tail functionality in Linux. For example, File _logFile = new File("/tmp/myFile.txt"); long _filePtr = _logFile.length(); ...
stackexchange/codereview
I would need a regular expression that escapes or captures (if not already escaped) ALL the double quote characters INSIDE a single quoted string and then convert the opening single quotes to double quotes! We are refactoring files that have a lot (and i mean a lot!) of single quoted strings in either PHP and also JS f...
stackexchange/codereview
Does there exist an Xml schema that will validate other XML schemas? What I want to do is take such a meta-schema (if it exists) and run it through XSD.EXE so that I can use C# classes to read an arbitrary XML schema and analyze it.
stackexchange/codereview
I often have functions which take a parameter, set an instance variable to that parameter, and then do other things, e.g.: def updateFoo(self, foo): self.foo = foo fooProcessor1(foo) fooProcessor2(self.foo) Do you prefer to pass the parameter itself, as in fooProcessor1, or the newly-set instance variable,...
stackexchange/codereview
I have this contact list which I'm building using LINQ to SQL. The query to get a list of contacts is: return db.Contacts.ToList(); In the list I also want to display each contact's primary e-mail address. To do this I first rewrite my query: return (from db.Contacts select c).ToList(); I found this nice way ...
stackexchange/codereview
I just worked out, by trial-and-error, that IE 7 has an upper limit of 32 stylesheet includes (i.e. tags). I'm working on the front-end of a very large website, in which we wish to break our CSS into as many separate files as we wish, since this makes developing and debugging much easier. Performance isn't a concern, ...
stackexchange/codereview
I need to use geocoder to get lang and lat from address for google map.am working in android sdk 2.2 .wen using geocoder is not working it throw exception. How to use geocoder in my application.or any other methods available to get long and lat? I have android 2.1 device .is there any possible to gecoder work in andro...
stackexchange/codereview
i'm building a win App and in that, i'm having a textBox which is get filled dynamically, and i have a checkBox, when checkBox.Checked=true all the message boxes in my app will get pop'd (not all at a time, just confirmation msg's whereever i hv coded it, one by one). my problem is when checkBox is checked, my TextBox....
stackexchange/codereview
Said webpage: http://www.portugalpoker.net/ All major browsers open and render this website. I've tested it on Windows and OSX with IE, Firefox, Safari and Chrome. Chrome loads the webpage (you can see the source and it also fetches all javascript and css files), but doesn't display it. Did I code anything wrong?
stackexchange/codereview
i have submit button in the form once i click it must ask to enter the file name and once i given it it must close the particular browser tab.
stackexchange/codereview
I am aware of some third party libraries and open source libraries to extract ZIP files within iPhone application. But I would like to know whether there are any default iPhone frameworks provided in SDK itself?
stackexchange/codereview
In the chapter Filters (scroll down ~50%) in an article about the Remote Call Framework are mentioned 2 ways of compression: ZLib stateless compression ZLib stateful compression What is the difference between those? Is it ZLib-related or are these common compression methods? While searching I could only find stateful...
stackexchange/codereview
With the Rails text_field_tag --- how do you set an option for the tabindex? Thanks
stackexchange/codereview
I have the following query that is being logged as a slow query: EXPLAIN EXTENDED SELECT * FROM ( `photo_data` ) LEFT JOIN `deleted_photos` ON `deleted_photos`.`photo_id` = `photo_data`.`photo_id` WHERE `deleted_photos`.`photo_id` IS NULL ORDER BY `upload_date` DESC LIMIT 50 Here's the output of explain: id select_t...
stackexchange/codereview
I cant seem to get eval to return a boolean value for '(4 > 5)' Is this possible? If not how might I get this to work (without writing a parser) I have tried this: $v = eval('return (10 > 5)'); var_dump($v); // Result = bool(false) UPDATE Thanks to @Pekka - I added a semicolon to the above code and it works.
stackexchange/codereview
How do I check multiple URLs with PHP. The data returned by from the urls might be in text (ASCII) format or in binary. How do i distinguish which one was returned. My code has to just detect if the data is binary or text. Nothing else. Thanks
stackexchange/codereview
I am re-laying out an old asp page in order to update it with some new requirements. I am trying to put some div tags inside a td cell because a table within the td cell would not achieve what I was after. So, basically I have a div which should align to the top left, another div which should also align to the top fi...
stackexchange/codereview
I use TeamCity which in turn invokes msbuild (.NET 4). I have a strange issue in that after a build is complete (and it doesn't seem to matter if it was a successful build or not), msbuild.exe stays open, and locks one of the files, which means every time TeamCity tries to clear its work directory, it fails, and can't ...
stackexchange/codereview
used the following code to get rid of the system generated ID:- Banner.ascx.cs protected override void Render(System.Web.UI.HtmlTextWriter writer) { StringWriter Html = new StringWriter(); HtmlTextWriter Render = new HtmlTextWriter(Html); base.Render(Render); writer.Write(Html.ToString().Replace("id=\"c...
stackexchange/codereview
In Rails 3, are these the same, or different? How do they differ? o = Appointment.find(297) o.service o = Appointment.includes(:service).find(297) o.service
stackexchange/codereview
The following code outputs the screen to a JPEG. When printed on A4 , it hardly occupies half the height. Can it be made to scale up to 827 x 1169 i.e A4 size ? Thanks, Chakra. public void TakeScreenshot() { Rectangle bounds = Screen.PrimaryScreen.Bounds; using (Bitmap bmp = new Bitmap(bounds.Wi...
stackexchange/codereview
i have doing j2me app using LWUIT lib. it get nearly 600kb. then i have use net-bean default Obfuscation tool. but still it size is not less than 430kb. any idea?
stackexchange/codereview
When a text is selected in (my) gVim then is copied automaticaly into the clipboard (X11 behavior). While this has been ok under X11 it starts to anoy me in Windows and Mac OS. I am sure this can be switched off somewhere. But I just can't find the propper help page. Probably using the wrong search term for Google and ...
stackexchange/codereview
I use Ryan's method to add and remove nested model fields dynamically through JavaScript using jQuery. There are 4 models: client, c_person; project, p_person. And one-to-many associations: client has many c_people and project has many p_people (these are people from client's side but they belongs to project). So, I ...
stackexchange/codereview
I have a plugin which at present doesn't have any extension points (neither does it extend any other plugin). To resolve a certain issue I have to create an extension-point for this plugin and an appropriate extension somewhere else. When doing this eclipse forced me to set singleton:=true in the Manifest file. I kno...
stackexchange/codereview
I am moving my team over from an old CVS repository to using git. I was hoping to add in a precommit hook to ensure before a commit is done locally (and pushed) each person has an up to date repo. For instance, in CVS everyone would do a 'cvs up' before making changes, and then committing. I want to force it so people ...
stackexchange/codereview
I have Projects resource which is nested in Users resource. My Cancan Ability class is: class Ability include CanCan::Ability def initialize(user) #everyone can :read, Project if user.blank? # guest user ... else #every signed in user case user.role when User::ROLE...
stackexchange/codereview
I have css code to do layout. i have basic header panel, footer, left panel, and center panel. I want to have left panel and center panel automatically stretch to bottom(blue and gray part all the way to black footer). is there any way to do that? following are my codes. thank you, body { text-align: center; } ...
stackexchange/codereview
I need to detect if the scroll bar is visible in the UIWebView, how do I do this? My first attempt was: int scrollHeight = [[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.scrollHeight"] intValue]; if(scrollHeight > [webView frame].size.height) NSLog(@"Scrollbar is visible"); But the scr...
stackexchange/codereview
When I tried ifconfig it gives me the whole all the information regarding the Network Adapter. I tried : system( "ifconfig -a | grep inet | " "sed 's/\\([ ]*[^ ]*\\)\\([ ]*[^ ]*\\).*$/\\1 \\2/' " " > address.txt" ) ; which output two Ips : inet addr:17.24.17.229 inet addr:127.0.0.1 But I nee...
stackexchange/codereview
I am using Access to try to get some links to tables in SQL Server 2008. I've created a user name under security in SSMS for SQL Server and I've mapped it to a user that is under the database that I need. I've also given that user a default database that I need. When I try to connect through ODBC I am not seeing the co...
stackexchange/codereview
HI guys! So I've a table in html. And one of the columns has a popup in the cell to show some information. the table is also quite large so I've added an horizontal scrollbar on the top and bottom of the page with jquery, with the help of @Stanley, see question. The popup always stays at the bottom of the cell. But the...
stackexchange/codereview
now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the s...
stackexchange/codereview
I found this code to work on my Drupal site. It outputs the taxonomy terms in a comma separated list. It successfully builds my taxonomy list to look like this: Business, Entertainment, Leisure While that's great, its using the same names to link itself in the url and so I get this: www.yourdomain.com/category/Business...
stackexchange/codereview
I'm having a problem that should be stupidly easy to fix. Following this, I'm trying to access a field in a record. Here's a simplified example that exhibits my problem: -module(test). -export([test/0]). -record(rec, {f1=[], f2=[], f3=[]}). test() -> Rec = #rec{f1=[1,2,3], f3=[4,5,6]}, Fields = record_info(fi...
stackexchange/codereview
I have the following url http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured?&start-index=1&max-results=15&v=2 I am trying to load it in UIWebView and then use javascript to get its contents, and parse it with NSXMLParser. My code looks like that: -(void)startDownloading{ NSString *urlStr = [NSString...
stackexchange/codereview
I have created a simple listview and added a few items in it. I am trying to add really long text in each item. I want this text to be displayed in single line only. the text that does not fit should fade in the corners. I have seen this kind of list in samsung galaxy s but somehow I am not able to achieve this. Can an...
stackexchange/codereview
I have a php function which get the Details when passed an number .So, i have a dynamic table where each row contains insert button which performs some action on the row record .Now Here i have to call php function getdetails and pass the data-number and get the details from the function and create an array insert in ...
stackexchange/codereview
I believe what i am trying to do is very simple but I get the error. Operator '*' cannot be applied to operands of type 'method group' and 'double' I want to multiply the number of days that have been stored in dayrental by the amount 19.95 if that checkbox is checked. I get the error that says I cant because dayrenta...
stackexchange/codereview
I am using Intel Core2Duo E4500 processor. It is supposed to have SSE3, SSSE3 facilities. But if I try to use them in programs it shows the following error "SSE3 instruction set not enabled" Any ideas?
stackexchange/codereview
When I call the below in my code, after the element is loaded, the callback is being called but I get "Object does not support..." Any ideas why it can't find the tabs plugin even though I have jQuery and jQuery UI referenced. Another thing to note, is the filename for jQuery UI has two dots jquery-ui-1.8.5*..*min.js...
stackexchange/codereview
We use custom event tracking in our web application with Google Analytics to report user's behavior (for example - user clicks on key actions, client side errors, time measurements, etc.) Each time the Google Analytics code is run on the client, we set a custom variable at the Visitor session to set the actual usernam...
stackexchange/codereview
Checkstyle says: Class should define a constructor. PMD says: Avoid unnecessary constructors - the compiler will generate these for you. Who is right? Or let's put it this way - what are the pros and cons of having an empty default ctor in a class?
stackexchange/codereview
I have created an android app with a dynamic scrolling interface. When a user scrolls the first tap is not registered. Just a guess, but it seems like the first tap is considering the tap to stop the scrolling, even if the user already reached the bottom of the scrollview. Any help is greatly appreciated.
stackexchange/codereview
I've created an app that uses core data. Is there a way to view the sqlite db on the simulator? A tool perhaps that allows to query the sqlite db on the simulator? Like a data browser? Is there a way to browse the iphone simulator to the sqlite db location?
stackexchange/codereview
I have the same qustion as in the title :/ I make something like: glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glTranslatef(0.0f, 0, -zoom); glRotatef(yr*20+moveYr*20, 0.0f, 1.0f, 0.0f); glRotatef(zr*20+moveZr*20, 1.0f, 0.0f, 0.0f); //Here model render :/ And in my app camera is rotating not model :/
stackexchange/codereview
Has anyone successfully assigned a datepicker to a date field that is repeated in a grid? Surely someone has done it before? I find a problem with doing this is that the ID for each field in a row is repeated in the next row. So when I assign a date on the 4th row, I update the same field in the first row because their...
stackexchange/codereview
Possible Duplicate: Integration Testing for a Web App I've recently delved into Perl and I'd like to learn how to automate web site testing. To that end I'd appreciate answers to the following: What modules from CPAN should I look into? Is there something similar to Watir (I know there's a Windows only port of it i...
stackexchange/codereview
(some code)(jQuery); What does this mean? (function (a) { function d(g) { return typeof g == "object" ? g : { top: g, left: g } } var b = a.scrollTo = function (g, e, f) { a(window).scrollTo(g, e, f) }; b.defaults = { axis: "xy", durati...
stackexchange/codereview
I'm new to MVC and developing a basic site using the pattern. I'm trying to implement left navigation that will be consistent throughout the site... it is basically a few ul's styled with CSS and using jquery for some visual effects. I have a few questions regarding best design practices: Is it best to have the html...
stackexchange/codereview
I'm using Linq-To-SQL for a project with around 75 tables. We have to keep a cache of entire tables that we pull down because the entities are all interrelated and pulling them on demand takes way too long. So, to track all of these entities from all of these tables, we have a single class responsible for maintaining i...
stackexchange/codereview
I have a login dialog being displayed in a WPF application that has a cancel button on it that instead attempting to log into the application, closes it down. The problem is, I have a user control that appears on the mainwindow form, so if I attempt to run the Application.Current.Shutdown() or this.Close() methods, I g...
stackexchange/codereview
anyone know a great asset management/packaging library for PHP making asset (images, css, js) deployment and optimization super easy much like Jammit for Rails.
stackexchange/codereview
Just a quick question. I can get a form to show with other exceptions, but with the type I'm asking about, I get the system "application is no longer working" dialog: Program.cs: #if !DEBUG // Add the event handler for handling UI thread exceptions to the event. Application.ThreadException += ne...
stackexchange/codereview
How can I display an image from file object? The file object holds the location of the image in temp uploaded directory. I dont want to use any models. Its for previewing a form having filefield
stackexchange/codereview
I have researched online but most examples or instructions don't seem to apply to what I am trying to accomplish. In short my code should accomplish the following: A stored procedure is called from my php script which returns a dataset I want to loop through and produce rows in a table (for online display purposes). O...
stackexchange/codereview
Here is my code. //generate a id $(".slide_img_a").each(function(){ $(this).attr("id","img"+(Math.round(Math.random()*100))) }); // get id var img_id = $(".slide_img_a").attr("id"); // alert the id $(".slide_img_a img").hover(function(){ alert(img_id); }); The problem of this is I have a 5 images with the sa...
stackexchange/codereview
I'm trying to execute a command which runs a program that uses perl and python. Although both of them are already in PATH, I get this error 'perl' is not recognized as an internal or external command,operable program or batch file. 'python' is not recognized as an internal or external command,operable program or batch ...
stackexchange/codereview
I am using below function to call a function on controller: function getPartialView(actionUrl, targetDiv, ajaxMessage, callback) { showAjaxMessage(targetDiv, ajaxMessage); $.get(actionUrl, null, function (result) { $(targetDiv).html(result); callback(); }); } and ...
stackexchange/codereview
We've been investigating this issue for a week now. We have two applications deployed in two servers. domain.com.cz/app1 sub.domain.com.cz/app2 They do have the same validationKey, decryptionKey, and validation properties in machineKey section. They also have the same domain in forms authentication, also enableCrossApp...
stackexchange/codereview
I'm trying to read a file from the user, in which each line is a cmd.exe command, and run it (it's okay to assume the commands are legal), but when I give a command like echo hi, I get runtime exception error: Exception in thread "main" java.io.IOException: Cannot run program "echo": CreateProcess error=2, The system ...
stackexchange/codereview
I have this piece of code: TShape* T[256]; /* Other code ... */ for (int i = 255; i > 0; i--) { T[i]->Brush->Color = T[i - 1]->Brush->Color; T[i]->Pen->Color = T[i - 1]->Pen->Color; }; The cycle is executed by a TTimer each 100 milliseconds and the Color of the first TShape change each 100 milliseconds. Du...
stackexchange/codereview
This year me and a friend have to make a project for the final year of university. The plan is to make a proxy/sever that allows to store ontologies and RDF's, by this way this data is "chained" to a web, so you can make a request for that web and the proxy will send you the homepage with metadata. We have been thinkin...
stackexchange/codereview
I'm making a program in NS BASIC/CE that shows the user a warning, but when the user closes the MsgBox(clicking in OK), I want that the application executes AfterWarn Sub. How I can do this?
stackexchange/codereview
If all I have of a library is a *.a static library. Is there a way I can convert that to *.so dynamically linked library? Maybe using ld? I'm using SUSE Linux. ELF platform.
stackexchange/codereview
I have a listview that when scrolled and the items go off of the screen they are not redrawn when I scroll back to them (the text and checkbox). In fact, items that are off the bottom of the screen in the listview never get drawn when scrolling to them. This only happens in Froyo. Any other version it works just fin...
stackexchange/codereview
It seems that we will need 2 methods, one is CGI.escape and the other might be h (unless we hardcode &amp;. Is there a method that takes an array or hash of params, and compose it into this form? src="foo.php?href=http%3A%2F%2Fexample.com%2F&amp;layout=standard" It is for Rails 2.2.2, so if there is a method in Rails ...
stackexchange/codereview
Hi I have am using nested GridView to show Customers in the mainGrid View and CustomerDetails in the Inner GridView. for the outer GridView there is a CellPadding set of 4px. Now when i use nested gridview, I do not want the Pading to be apllied for the cell containing the InnerGridView. Please help me with this. I am ...
stackexchange/codereview
I'm using @font-face on my company's site and it works/looks great. Except Firefox and Chrome will throw a 404 error on the .woff file. IE does not throw the error. I have the fonts located at the root but I've tried with the fonts in the css folder and even giving the entire url for the font. If remove those fonts fro...
stackexchange/codereview
I'd like to add a comment box on my facebook fan page. So I added on my StaticFBML page: <fb:comments xid="159887744022306"> <fb:title>Leave a comment</fb:title> </fb:comments> Where "159887744022306" is my page ID. Now it actually posts comments on the page but: The feature "Post comment to my Facebook profile" does...
stackexchange/codereview