instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have knowledge on C++ and C#, but COM is an Alien to me. I have a VC++ COM DLL in which all the methods of the interface ISAXContentHandler (of msxml6.DLL) like startElement(), endElement,processingInstructions(), characters(), etc.. are implemented. i.e these interface methods are given an implentation in the VC+...
stackexchange/codereview
I am interested in how others have done Prism and Click Once. Specifically, if you have a module/dll that is used in several applications, how do you handle deployment of an update to that module/dll? Do you have to open up each application and hit Publish? Also, sometimes, my Prism app does not have references to all...
stackexchange/codereview
We are developing an identification tool for a data processing business. Our team located in three cities, and some people where the work is not fixed. Therefore, we hope to find a web-based OCR API.
stackexchange/codereview
If a function has 2 arguments and both produce exceptions, what order would you have them raised in and where would you define it? This came up when I was writing a test for a function that would take a directory on disk and compress it into a file. For instance: void Compress(string dirPath, string filePath); I haven...
stackexchange/codereview
UIAccessibilityIsVoiceOverRunning() tells me if VoiceOver is active, but if it were not I wish I could turn it on. Is there a way?
stackexchange/codereview
I have successfully build Jq GRid with Asp.Net with all the required features except the one to "Avoid Spl Characters in Tool Bar Search" . I tried to find the ID of the toolbar but with no success. Can any one tell me how can we use Regular Expression like stuff to deny entering of Some Spl Char like "/,:,',\" and few...
stackexchange/codereview
I found there are some special chars ',%.... not compatible to sqlite enquiry string. Is there a common conversion command to change NSString to sqlite compatible NSString in objective-c? Welcome any comment Thanks interdev
stackexchange/codereview
I am unable to connect to the Internet through android emulator 2.2 which is behind a proxy that requires proxy authentication. Searched a lot over the Internet to find a proper solution but none of them are working for me. I am running the emulator on a Ubuntu machine. Situation: I have an application which is desig...
stackexchange/codereview
Is there any enum in c# which holds c# datatypes. So that I can define a property in a class which accepts datatype (int,string) from the user.
stackexchange/codereview
what would be the easiest method to display only specific elements on a website? For example, on a news site only the headlines and nothing else. I'd like to select elements via CSS so only those should be displayed. I tried to use the :not pseudoclass: :not(.myClass) { display: none; } But obviously, the parents of t...
stackexchange/codereview
I would like to simulate a call in an iPhone app. Is it possible to play a sound in the speaker where you put your ear ?
stackexchange/codereview
I try to set up devise and omniauth by follow https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview and deploy to heroku. There is no error in localhost , but when I push to heroku , the app crash. In heroku logs , i found the 'uninitialized constant Users' error in omniauth_callbacks_controller.rb . How do I...
stackexchange/codereview
I have implemented Lucene on my website. About once every 4 days my search index breaks. I get an error saying that the index is unreadable and the site shows a 500 error to users. I SSH in, rebuild my index and eveything goes back to normal. The only part of this project which is slightly different to normal is the hi...
stackexchange/codereview
Subject says it all... I see no advantage of people declaring annotations on the getters and/or setters so far. For me this only has the disadvantage of spreading the annotations over the class, which can make the class more unreadable. Putting the annotations on the fields clearly reduces the amount of code to post wh...
stackexchange/codereview
The following code is how I'm trying to create a recursive binary method.. public static int binarySearch(Comparable[] objArray, Comparable item) { int lower=0; int upper=objArray.length -1; int i = -1; int compareResult; boolean found = false; while ((lower<=upper) && (!found)) { i...
stackexchange/codereview
I have a website which is pretty good but with very less information. So i felt like adding informtion like news regarding particular sector(for eg politics, hollywood etc). I believe crawlers are best approach to do so? Is my understanding correct, please suggest if you feel any other way to get information without u...
stackexchange/codereview
I have a Rails 3 app with PaperClip/S3... Is it possible to allow a user to upload a PDF, convert the PDF to images, and then upload? Thanks!
stackexchange/codereview
Is this even possible? Since ive noticed v-sync doesnt work on my laptop at all, so i am building FPS limiter "manually" and now i would like to use the FPS limit the user has set to his screen. Edit: i mean the monitor hz rate. Edit3: heres the code i got working (i think... anything wrong there?): DEVMODE lpDevMode; ...
stackexchange/codereview
So, I've been programming in python and I've run into this really annoying issue. I wrote a small matrix library and started using it in another module (eg, import matrixlib). I'd find a bug, fix it and run the program again. Bug still there. I'd throw in a few print statements to see what's going on, but they wou...
stackexchange/codereview
I was trying to execute the following commands. de="hello world" if [ $de -eq "hi" ]; then .... .... because of the space between hello and the world, it out put an error. but if I define de="helloworld" it works fine. can you please tell me if there is a way I can use if statement with sentences that have spaces in ...
stackexchange/codereview
These are the steps that i do: Save excel file. Run program that reads the excel file. When i do those steps i get this error immediately: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInsta...
stackexchange/codereview
I would like to achieve a following communication between two threads: Thread Alpha does something, and then suspends itself. Next the second thread(Beta) raises and event which resumes the Alpha thread. The cycle goes on... I did something like below but I am not sure if it is a proper design. Also I've notice that Th...
stackexchange/codereview
In my application I retrieve binding from one object and assign it to another. And some objects has MultiBinding instead. And I want to retrieve a specific binding. How do I do that? For non multi-bindings I use the following code: Label lbl = (Label)sender; BindingExpression bindingExpression = lbl.GetBindingExpressi...
stackexchange/codereview
There are multiple related questions, but I'm looking for a solution specific to my case. There is an array of (usually) 14 integers. How can I quickly tell if each int appears exactly twice (i.e. there are 7 pairs)? The value range is from 1 to 35. The main aspect here is performance. For reference, this is my current...
stackexchange/codereview
I have a xml file of one schema, i want to convert this xml file to another xml file with different naming convention (the element tag names would be changed in the new xml file) for ex: xml file which i have is of following type '<Parent> <Child Name = "C1" attribute1 = "true"> <Sibbling Name ="one" /> <Sibblin...
stackexchange/codereview
I'm uploading multiple Excel files to a server. For files, I use the CommonsMultiPartFile class. My problem is that when I try to handle file uploaded like File KUStiedosto = new File(form.getKUS().getOriginalFilename()); form.getKUS().transferTo(KUStiedosto); Workbook KUStk = Workbook.getWork...
stackexchange/codereview
I am trying to get file attributes present in a Unix server and when I type this url in my IE it displays the files in the file-folder-directory architecture. I am planning to write a code for a tool such that I can automate the process of getting the file attributes like file modified date,size of file etc. Are there ...
stackexchange/codereview
I am working on a firewall project. So far I succeed to block packets by ip basis which is I done by windows filtering platform. But my customer does not want to block the whole ip. He wants to block specific url. So now I need to capture each packet and read it. So far I can do that by C# raw socket. But I dont know h...
stackexchange/codereview
I want to a take the substring of a value in a column " 2010-11-10 11:59:00" to "2010-11-10": SELECT CONVERT(DATETIME, SUBSTRING(CONVERT(VARCHAR(15), CONVERT(DATETIME, export_date, 105)),0,15),101) FROM TABLE I have written the following query, but it is not resulting this error: The conversion of a char data typ...
stackexchange/codereview
Hey, I am trying to make my datagrid printable. To do this, I am trying to hide the final 4 columns. I have a printable button that I would like to when clicked, make those last 4 columns disappear. I have so far failed to make this work. I have tried: ProductsGrid.Columns[6].ControlStyle.Width = -1; and ProductsGri...
stackexchange/codereview
Does anyone have some WP7 code for the animations within the ListItem descriptions that animate for each ListItem when using the Pivot control (there is an example within the default WP7 settings app)? You will see as you flick between each pivot there is a subtle animation on each description that describes what the ...
stackexchange/codereview
I have an application with a JPanel and buttons that users click on to draw shapes on the panel. You can color and resize the shapes as well as move them around in the panel. How would I go about implementing undo and redo for such an application? I have an Actions class where all the actions are actually implemented. ...
stackexchange/codereview
Does a custom PreferenceActivity need to define a List? If I do not define a list as part of my content associated with my custom PreferenceActivity, I get the following RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' I am trying to create a custom PreferenceActivity...
stackexchange/codereview
If I have a function that takes int *&, what does it means? How can I pass just an int or a pointer int to that function? function(int *& mynumber); Whenever I try to pass a pointer to that function it says: error: no matching function for call to 'function(int *)' note: candidate is 'function(int *&)'
stackexchange/codereview
I have an anchor tag in my HTML that is used for a javascript event. The code looks something like this <a href="#" onclick="myScript()">run</a> However, when I click the script, the first time the links is clicked it reloads the page. The second and subsequent clicks, it executes the javascript. My first thought was ...
stackexchange/codereview
Block is blinking on .hover() Here is a full example - http://jsfiddle.net/xBEjQ/ How to fix this? UPD: popup should be removed after the mouse leaved the smaller block (.image), not .popup block.
stackexchange/codereview
If you call the Facebook Graph API to get your News Feed (e.g. https://graph.facebook.com/me/home) how do you get the list of photos for a post of "type": "photo"? Example of data returned for this post type: "picture": "http://photos-d.ak.fbcdn.net/hphotos-ak-ash2/hs476.ash2/74934_488508013245942_500295932442_75036...
stackexchange/codereview
In particular, I just want to ensure that two lists have the same elements, ignoring order
stackexchange/codereview
When I pass HTML elementals as strings in my object then they are not converted to elements upon rendering, so my template gets filled like this <tr><td>"<img src="path/pic.png" />"</td></tr> If I pass DOM elementals then I get <tr><td>[Object HTMLImageElement]</td></tr> How can I get the actual image rendered as a D...
stackexchange/codereview
I'm currently building an MVC application and using a JQuery UI Datepicker http://jqueryui.com/demos/datepicker/ to book events. I would like to display all available eventdates in the Datepicker. Is there any way to rerender the datepicker to make only eventdates being selectable(clickable) or may be just highlight th...
stackexchange/codereview
I need help in building a dynamic chart. i have the following code but need to change it to a vertical bar graph instead of the horizontal one here is the sample http://chart.apis.google.com/chart?cht=bhs&chs=200x50&chco=4d89f9,c6d9fd&chxt=x,y&chxs=0|0&chd=t:80|20
stackexchange/codereview
I am trying to migrate from Access Database to SQL server database. Do I need to make changes (for saving, reading, deleting etc. data) to my code as well? I understand I need to change connection but what about code? Thanks Furqan
stackexchange/codereview
I don't know how to do this (yes sorry, should be a must to know maybe). It would be easy to explain with an example : public class PageMenuLogin extends Container { public PageMenuLogin() { final ITextField login_user = this.createTextField(); login_user.setName(""); final ITextField login...
stackexchange/codereview
So I never got into detailed error processing too much when I played in VBA/VB6 a lot. Mostly then, if you ran into a user error (such as some input of theirs failing a validation test of some kind), you popped a MsgBox() with some error information and the critical (or warning) icon, and safely aborted out of the cod...
stackexchange/codereview
I personally don't have my entities implement interfaces. For a Task class I wouldn't have ITask that just had the same properties defined on it. I've seen it done a few times though, so I'm wondering where that advice comes from, and what benefits you get from it. If you're using an ORM then the argument that says "I...
stackexchange/codereview
I'm trying to upload file using Axis2 web service by 1024 chunk size. My server side looks like this: public void appendChunk(int count, byte[] buffer){ FileOutputStream fos = null; try { File destinationFile = new File("c:\\file1.exe"); fos = new FileOutputStream(destinationFile,true); ...
stackexchange/codereview
While trying to start Apache Tomcat from eclipse, I encounter the following error: 18 Nov, 2010 5:23:03 PM org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.lang.NoSuchFieldError: IS_DIR at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java...
stackexchange/codereview
I'm lost a bit. Let's say I have a dynmic footer-siderbar. Easy so far. <footer> <?php get_sidebar("name") ?> </footer> Displys it in the footer. But here we are. I want EACH widget inside of my grid: <footer> <div style="width: 100px:"> <div style="width: 25%">First widget here</div> ...
stackexchange/codereview
class SomeClass { private DateTime fieldA; private DateTime fieldB; } Using SODA, what is the proper way to select all objects whose fieldA is greater than fieldB? Something like this? var query = this.ObjectContainer.Query(); query.Constrain(typeof(SomeClass)); query.Descend("fieldA").Constrain(query.Descend("f...
stackexchange/codereview
I have few tabs with same form inside of them, only difference is location of work in hidden element. I'm loading my tabs with ajax a href="blah.htm" I want to bind onClick to element in form, but problem is that since form is the same on all tabs jquery only operates on first instance, i.e. first tab. Question is ..h...
stackexchange/codereview
The question might be simple, but I realize the answer may not be. To keep it as clear as possible. Can you explain the basic idea for the Volume Ray Casting technique in 3d volume rendering. Cheers, Timo
stackexchange/codereview
I am trying to do a Linq group by on just the date part of a datetime field. This linq statement works but it groups by the date and the time. var myQuery = from p in dbContext.Trends group p by p.UpdateDateTime into g select new { k = g.Key, ud = g.Max(p => p.Amount) }; When I run this statement t...
stackexchange/codereview
how to focus an element created on the fly?
stackexchange/codereview
The scenario is as follows I create a file test.txt in /home/raveen with the contents below FRUITS = apple guava banana VEGETABLES = turnip onion spinach I write a script test.sh with the contents below echo "FLOWERS = dahlia rose jasmine" >> /home/raveen/test.txt After executing this "bash" script the file gets trun...
stackexchange/codereview
I have an excel sheet that has say, 10 different columns, with a few hundred records. e.g. column1|column2|column3|column4 data data data data I have another sheet, a template, which has the headings arranged in a certain way, e.g. column1|column2 data data column3 column 4 data da...
stackexchange/codereview
I'm migrating some data from DNN to another platform, and need a way to extract database tables one by one in some useful format like XML, CSV etc. Is there a way to dump and export the whole database or just a few tables at a time? cheers
stackexchange/codereview
The issue is that no post back occurs. I noticed that if I returned true this would not be the be case .. however there were non-deterministic results so I am at a loss. Any help appreciated! <DropDownList ID="ddlS1" runat="server" onclick = "checkHighDegreeCompliance(this, 1);" SelectedIndexChanged = "ddlS1_...
stackexchange/codereview
i am trying to play a media file(mp4) using android mediaplayer but getting error as "error(1, -2147483648)" ,i am able to play the same file from a url
stackexchange/codereview
Zend_Paginator returns results as a standard array but I need to make my results come back as an instance of a class, how do I do this? For example, I want all news articles so would need my items to come back as an instance of News_Model_Article
stackexchange/codereview
Is it possible in Windows Forms to constrain input to is data type. For instance if i want to insert a Date in a Textbox, i be limited to use only this chars [0-9,/] Is there a easy and fast way to do this? Regards
stackexchange/codereview
I'm generating HTML from a database and then sending it to PrinceXML for conversion to PDF. The code I use to do this is: string _htmlTemplate = @"<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd""><html lang=""en-GB"" xml:lang=""en-GB"" xmlns=""...
stackexchange/codereview
I have this mysql which works, but I can't help thinking there's a better way of doing it? SELECT u.username, count( c.username ) AS intImageCount FROM users u JOIN content c ON c.username = u.username WHERE (SELECT count( username )FROM content WHERE username = c.username) > 0 GROUP BY u.username Any suggestions?
stackexchange/codereview
I'm currently working on a site where I'm trying to make use of the session variables. I have a controller script (index.php) that begins with session_start(); and has two different HTML files included within if statements. Everything works all groovy when I go to /quote/index.php, the session variables that I've set ...
stackexchange/codereview
How does it work? I see no tags defined for example to add a CellTable in a UiBinder.ui.xml file, like The documentation is sparse on this. So if it doesnt work, where should I put the cell widgets, in the uiBinder class or the presenter?
stackexchange/codereview
I have the following EF4 Code First classes: [Serializable] public class WOChangeLogHeader { [Key] public int WOChangeLogHeaderId { get; set; } public DateTime tadded { get; set; } public virtual WorkOrderHeader WO { get; set; } public int WorkOrderHeaderId { get; set; } [MaxLength(50)] pu...
stackexchange/codereview
How would I go abouts playing an 'audio in' through the dock connector in an iOS app? I'm making an app just for myself and have no plans of putting it into the apple store. I have the 30pin breakout board, and on it there are pins for L/R audio in, but I can not find any info on how to use them? Thanks
stackexchange/codereview
I'm looking for a way to get n++'s find in files dialog to exclude certain files... the only reference I've found so far is this http://sourceforge.net/project/shownotes.php?release_id=536795&group_id=189927 , but, unfortunately, it doesn't work. I'm using *[^*.dll] to, I think, search for everything BUT dll files. ...
stackexchange/codereview
I have suggested that we Enable dynamic content compression on IIS7 to improve user experience. The QA department wants me to demonstrate that it is in fact faster. I've been using Firebug to view the load time waterfall chart generated under the Net setting and it is inconsistent with the overall (total) page load tim...
stackexchange/codereview
I'm a noob in Oracle, is it possible to partition a table to remote server using db link? is it possible at all? I'm trying something like this: CREATE TABLE Test ( TestID integer not null, Name varchar2(20) not null ) PARTITION BY LIST (TestID) (PARTITION testPart1 VALUES (1) TABLESPACE...
stackexchange/codereview
Im trying to run the following stored procedure, however it is not giving any output.. If i select the values out without using the OUT parameters it works fine.. SELECT PWORD, REPLYATTR; -- This works fine But doing it 'correctly' doesn't for some reason, any ideas guys? DROP PROCEDURE `uuu`// CREATE DEFINER=`au...
stackexchange/codereview
We are currently using SQL Server 2005. We don't need the new features in SQL Server 2008 R2, but should we upgrade anyway just to get it over with?
stackexchange/codereview
What's wrong with this code ? Only first add and remove link is working... <html> <head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <style type="text/css"> div{ padding:8px; } </style> </head> <body> <script type="text/javascript"> $(document).ready(function(){ var counter = 2; ...
stackexchange/codereview
I have a windows forms app built with .NET 3.5 and a relatively old version of Infragistics controls. It turns out some of the forms/controls look quite poor when viewed in Windows7 and Medium or Large Fonts. What are my options to resolve this? I have some tens of forms and would like a short-term solution rather than...
stackexchange/codereview
is it possible to write firefox addon with perl and if yes could some one point to some articles materials about this subject ?
stackexchange/codereview
Is there any algorithm for arranging a lot of small images with different dimensions and group them into a larger one? Anyone have any idea from where should i start investigating? EDIT: Basically i want to make something like this http://www.google.ro/images/srpr/nav_logo27.png in PHP. I'm not really expecting such c...
stackexchange/codereview
This is the code: @Entity public class Dept { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; @OneToMany( mappedBy = "dept", cascade = CascadeType.ALL ) private List<Employee> employees = new ArrayList<Employee>(); public void addEmployee(Employee emp) { this.employees...
stackexchange/codereview
Got a small question that ruins my day. I've got the Grails application that I want to import to IntelliJ. The problem is that IntelliJ can't find the springsecurity plugin, and doesn't see the @Secured annotation. The plugin is present in the "Tools->Grails plugins" window. I'm using Idea 9.0 and grails 1.3.5.
stackexchange/codereview
Newbie question. Pylons 1 + SQLA using declarative style. New to Python. I have a "master" class called Entity, which "child" classes must belong to for them to be valid. My link to the master class is on the child object level. My issue is that I can't seem to figure out how one creates a child object and create a mas...
stackexchange/codereview
I set IsTabStop to False, but Tab still navigates to the expander. Any ideas what am I doing wrong? <Expander Header="Data" IsTabStop="False"> <Border Background="White" BorderThickness="0"/> </Expander>
stackexchange/codereview
I am thinking about creating a persistent collection (lists or other) in C#, but I can't figure out a good API. I use 'persistent' in the Clojure sense: a persistent list is a list that behaves as if it has value semantics instead of reference semantics, but does not incur the overhead of copying large value types. Pe...
stackexchange/codereview
Could anyone let me know how to read a text file from Azure Blob Storage?
stackexchange/codereview
I am trying to use the jpa2 feature @ElementCollection for a List of Strings in my Entity. I am using the hibernate3-maven-plugin to carry out the hbm2ddl task. However it seems the version of hibernate tools used by the plugin does not know how to deal with the @ElementCollection annotation can anyone give me pointers...
stackexchange/codereview
Google chrome doesn't seem to bother to display an <img> with cross origin src attribute. Firefox does. So for Firefox one would need to use an iframe which works fine for .png images. But it turns out that Firefox doesn't handle well iframes with an .ico src attribute: Firefox simply doesn't seem to create the appropr...
stackexchange/codereview
I'd like to run a rake task (apn:notifications:deliver from the apn_on_rails gem) from a delayed_job. In other words, I'd like enqueue a delayed job which will call the apn:notifications:deliver rake task. I found this code http://pastie.org/157390 from http://geminstallthat.wordpress.com/2008/02/25/run-rake-tasks-wit...
stackexchange/codereview
When developing an Eclipse Plugin, what is the best way to set a ProblemMarker for empty IFolders? What I am trying to achieve is the following: Im using an own project type, and I want certain Folders in the Package Explorer to be marked and decorated with a warning when they are empty. What I can do is to add marker...
stackexchange/codereview
i have a java beginner question: Parent.print() prints "hallo" in the console, but also Child.print() prints "hallo". I thought it has to print "child". How can i solve this? public class Parent { private String output = "hallo"; public void print() { System.out.println(output); } } public class...
stackexchange/codereview
How can I assign values to struct member character by character. I would like to do something like #include <stdio.h> #include <stdlib.h> #include <string.h> struct s { char *z; }; int main () { struct s *ss; ss = malloc(2 * sizeof *ss); char *str = "Hello World-Bye Foo Bar"; char *a = str; int...
stackexchange/codereview
I'm using m2eclipse and trying to learn some tapestry. I'm trying to update my project to pull some different resources from maven. (Or at least, I think that's what I'm trying to do). Here's part of my pom.xml: <dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-hibernate...
stackexchange/codereview
I've been trying to setup codeswarm for kicks at work using the activity log generated by our perforce depot. I am however running into some troubles following the guide/wiki on the google-code site and was wondering if maybe anyone had experiences with setting it up for a perforce server they could share? I am running...
stackexchange/codereview
I am in a need for someone to help me out on switching custom cells when selected using didSelectRowAtIndexPath, so the idea is to have custom cell1 set as a state and when the user selects it this will disappear and cell2 will fade in which shows the capital of that state but other cells will remain as cell1 (or state...
stackexchange/codereview
According to the specification of Number.longValue() the method should... Returns the value of the specified number as a long. This may involve rounding or truncation. However, the BigInteger (and BigDecimal) overrides this method and returns the 64 low bits of the integer part of the number it represents. From the d...
stackexchange/codereview
I want to use the wordpress search function but I want it to only search my blog posts and exclude my static pages from the query. How to do this? I am not opposed to using a plugin.
stackexchange/codereview
Here is the code I am using to create my slider: $(".slider").slider({ steps: 10, animate: true, range: true, min: 0, max: 500, values: [range[0],range[1]], change: function() { range = $( ".slider" ).slider("option", "values"); $("#low-price").text("Min: $"+range[0...
stackexchange/codereview
code : mysql_connect('localhost','root','root'); mysql_select_db('share_counter'); $sql_insert = "UPDATE wpshare SET '$social_name'='45' where post_title = '$post_title' "; mysql_query($sql_insert) or die(mysql_error()); error : You have an error in your SQL syntax; check the manual that corresponds to your M...
stackexchange/codereview
I created a set of programs to calculate the area under a graph using various methods of approximation (midpoint, trapezoidal, simpson) for my Calculus class. Here is an example of one of my programs (midpoint): Prompt A,B,N (A-B)/N->D Input "Y1=", Y1 0->X 0->E For(X,A+D/2,b-D/2,D) Y1(x)+E->E End Disp E*D Instead of a...
stackexchange/codereview
I'm trying to add an action link to an active scaffold controller using if current_user.can? :update, Post config.action_links.add 'export', :label => 'Export', :page => true end but whatever controller I try to use, I always get undefined method current_user So, how can I check if the logged user can/cannot do some...
stackexchange/codereview
I'm trying to make something like this: I have a mapactivity and when the user taps the map it shows the coordinates of that location. I already overrided the onclick method but it isn't even called. Any Idea? public class MapPoint extends MapActivity implements OnClickListener { @Override public void onCreate(Bundle ...
stackexchange/codereview
Is there some way to set the DefaultDirName by code depending on some decission a user did on installtion? Let me comment: I have some code which is build for two different systems (using different interops/ocx's and such stuff). My input files are stored in two directories input\A and input\B. I want to have only on...
stackexchange/codereview
I need to create web service (.NET) which will be used by other system. In order for them to implement logic which will use my web service, I need to send them wsdl and XSD files for my web service. WSDL file is not a problem, I will obtain it from .asmx page by passing wsdl parameter. But how can I generate appropriat...
stackexchange/codereview
Is there a regular expression that matches JavaScript functions? Like function abc(var1, var2){ .. } // and abc : function(var1, var2){ ... },
stackexchange/codereview