instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have been trying to put a back button progress bar in a webview and keep the url loading within my app instead of using the android default web browser. If I manage to keep to browsing within the app and keep the back button the progress bar never shows up if I manage to get the progress bar to show up the code at th...
stackexchange/codereview
I've a CollectionViewSource as ItemsSource of my DataGrid. In Window.Resources I have this definition: <CollectionViewSource x:Key="ItemsPoolCollectionView" Source="{Binding Path=MyObservableCollection, Mode=OneWay}" /> now, I would like to produce the same definition from code, so I've done this: Dim _cvs as C...
stackexchange/codereview
I need to guarantee that my Android application won't be launched twice. How to do it? I mean in ideal I would need in case of second launch just switch to primary copy.
stackexchange/codereview
I'm trying to make a recursive function to get the transpose of a list of lists, n x p to p x n. But i'm unable to do so. I've been able to make a function to transpose a 3 x n list of lists to an n x 3 one: let rec drop1 list= [(match (List.nth list 0) with [] -> [] | a::b -> b); (match (List.nth list 1) with...
stackexchange/codereview
I have setup Database mirroring for SQL Server 2005 for my database on two different SQL Server machines. There is no witness server used here. I also see the status "Principal/Synchronized" and "Mirror,Synchronized/Restoring" respectively on Primary and Mirror servers for my database. Now I wanted to test whether the ...
stackexchange/codereview
Basically I have two classes Inventory and Character. During the construct of the inventory I am trying to determine the characters gender however this just doesn't seem to be working for me at all... I haven't really used static functions before so if somebody could point out what I'm doing wrong it would be much appr...
stackexchange/codereview
I'm currently using the flexigrid.js plugin and there is a button that I wish to enable/disable depending on whether a certain cell in the currently selected row is equal to a certain value. Here is where I am currently at: I thought to add the following to the list of callback functions but am stuck as to what to pu...
stackexchange/codereview
this is my first post here. I have Code for displaying the scrollbar on the left side of the div: body { direction:ltr; } and <div style="direction:rtl;"> and the text is still left to right everything works great in IE but in firefox and safari it displays still on right side
stackexchange/codereview
I need some help from you guys. Let me explain you what we were doing, first: We were working on a Windows Application and all of us are integrated with Team Foundation Server. We are done with all application features so now what we are working on is the list of defects that are reported from QA. QA list all their iss...
stackexchange/codereview
Is it actually common practice to extend all methods of a Gem into the application controller in Rails? Because it seems that Facebooker gem doesn't that, and there is no telling whether the method is from the facebooker gem, or from our internal code. So when we need to upgrade to Facebooker2, it is hard to find all m...
stackexchange/codereview
i have a spinner with an arrayadapter that is dynamically managed. when it gets displayed, the spinner text also displays the radio button. how do i get rid of this radio button? the drop down arrow is all strecthed and yucky... thats my problem. NOTE: i'm not talking about the radio buttons that appear in the list ...
stackexchange/codereview
It might sound a little odd but I am in the final phases of finishing up my app that would pay users. There is an activity in the app where as and when the users use the app, money keeps accruing. I have a button in that activity called Cash Out which when the user reaches a certain amount can be clicked and is suppos...
stackexchange/codereview
How to write a script to download all videos from the links in a webpage Hey Guys, I want to write a script to download all rails screen casts from this location http://railscasts.com/episodes/archive Any ideas on how this can be automated?
stackexchange/codereview
I am using ASP.NET MVC framework and accessing DB records with Entities. I am doing some joins like this: public IQueryable<...> GetThem() { var ords = from o in db.Orders join c in db.Categories on o.CategoryID equals c.ID select new {Order=o, Category=c}; return ords; } I need ...
stackexchange/codereview
I have a problem when removing elements from a list mapped as described above. Here is the mapping: @Entity @Table( name = "foo") class Foo { private List bars; @OneToMany @OrderColumn( name = "order_index" ) @JoinTable( name = "foo_bar_map", joinColumns = @JoinColumn( name = "foo_id" ), inverseJoinC...
stackexchange/codereview
Possible Duplicate: Is it possible to solve the “A generic array of T is created for a varargs parameter” compiler warning? Consider this is given: interface A<T> { /*...*/ } interface B<T> extends A<T> { /*...*/ } class C { /*...*/ } void foo(A<T>... a) { /*...*/ } Now, some other code wants to use foo: B<C> b1 /*...
stackexchange/codereview
I've got transactional data from a SQL query which I turn into a data frame. The first column of the df contains UNIX timestamps (format="%Y/%d/%m %H:%M") which I would like to use to create a graphics plot using par to display 1 unique lineplot per date. At the moment I am fumbling around with splitting column 1 and c...
stackexchange/codereview
I have a legacy C++ code which is ported to Android. When calling free on strings, a random crash is occurring. Crash is observed in random places. Is there a tool which can be used to check the memory overruns?
stackexchange/codereview
Currently I have a grid set up with the search enabled. When I run a search everything works fine and I can return good data back to the grid. I see that the "_search" parameter on the URL is set to "true" and all is well. However, when finished with the search and the data is no longer relevant, I would like to reload...
stackexchange/codereview
This is a K&R exercise (1-13)... "Write a program to print a histogram of the length of words in its input. It is easy to draw the histogram with bars horizontal; a vertical orientation is more challenging." The section was about arrays, and to be honest, I'm not sure I fully understood it. Everything up to t...
stackexchange/codereview
I got a similar question as: Shorten path of REST service in JBoss Seam application But couldn't comment on the shipmaster answer because of my initial rep. His comment Jul 19 at 18:10 misunderstood the situation: Faces servlet is mapped by url-pattern *.xhtml and Seam Resource Servlet is mapped to /*. The /* now gets ...
stackexchange/codereview
I have two databases with THE SAME schema. I need to copy the contents of all the tables from one database into the other database. What is the best way to do this? There are about 200 tables. I have ssms.
stackexchange/codereview
I am putting together a recommended architecture with two web servers (for redundnacy) and two search servers (for redundancy)... what about the application server (for service applications- profile service, managed metadata service etc...?) Can those even have a redundant server? Thanks for any info...
stackexchange/codereview
I have a system that relies on other models but want to make it a little more open-ended as my users demand a bit more sometimes. currently for arguments sake I have 2 authors in an Author model. john, james When a user adds a book, and the Author is not available, how do I add a other field in the form, that if selec...
stackexchange/codereview
I have a grid view control with Template Field containing Item Template as Checkbox control and the Header Template is containing the label with column header name. I want to click the coulmn header label and all the check boxes must be checked once. Please provide me some examples or ideas how i can achieve this <asp...
stackexchange/codereview
Possible Duplicate: How can I avoid running ActiveRecord callbacks? In rails 2 there was a private method on active_records called create_without_callbacks which you could call to save a record into the database without triggering the callbacks associated with that object. This method has disappeared in rails 3, is ...
stackexchange/codereview
Today I finally started to write some unit tests for my new ASP.net MVC project seriously. Some unit tests, however, kept returning for every action in a each controller: Perform a test whether the returned ActionResult is not null. Perform a test whether the action returns a valid ActionResult if the ModelState is in...
stackexchange/codereview
I am working on a SVG application and now want to let a user resize an object using draggable corners, very much like in SVG-edit (http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html). The functionality should work as follows: The user selects an SVG object, drags it to the main ‘canvas’ and once on the ‘ca...
stackexchange/codereview
require 'eventmachine' module EchoServer def post_init puts "-- someone connected to the echo server!" end def receive_data data send_data ">>>you sent: #{data}" close_connection if data =~ /quit/i end def unbind puts "-- someone disconnected from the echo server!" ...
stackexchange/codereview
Exporting a project as a runnable jar takes approx 30sec to build, the (auto created) Ant script that does the same takes about 10 minutes to build. What am I missing?
stackexchange/codereview
Does anyone have an idea on how to hide a grid row at runtime?
stackexchange/codereview
this has been bugging me, lets say i have two model, category and product class Category { static hasMany = [products : Product] String name } .. class Product { String name } now, i want to delete product, which happens to exist in many category. i came up with these lines in my product beforeDelete methods def...
stackexchange/codereview
I've got a thread that currently updates a DataGridView on one tab (STATUS) of a TabControl. This thread currently functions quite well. What I would like to do is be able to update a small collection of controls on a different tab (SYNCH.) if the button to run the thread is clicked while on the SYNCH. tab. I consid...
stackexchange/codereview
Here is the scenario, I have a set of input values say 2000, and the corresponding out put values, the sampling rate was 2000 samples/sec, and a sinusoidal wave of 50hz was used, so how do I calculate the frequency response from this varaiables, what I did in matlab was, I called all the input values and took the fft o...
stackexchange/codereview
Sorry, it's a long one, but I'm just explaining my train of thought as I analyze this. Questions at the end. I have an understanding of what goes into measuring running times of code. It's run multiple times to get an average running time to account for differences per run and also to get times when the cache was uti...
stackexchange/codereview
I have WCF web service that I use to send images from my Windows Mobile client app to my server. When I try to send the images I can't load all of them from my database at the same time or I will get an out of memory exception. So I am thinking I will call my web service with batches of 10 or so. What I want to know i...
stackexchange/codereview
I have a model similar to this: (simplified) Question: public class Question { public string QuestionID { get; set; } public string Title { get; set; } public string Body { get; set; } public List<Answer> Answers { get; set; } } Answer: public class Answer { public string QuestionID { get; set; }...
stackexchange/codereview
I'm trying to query the set of forums (fora?) for the user's clubs to get the latest topics and replies in those forums. This is the code I'm using: RoomCollectionCriterion userClubRoomsCollection = new RoomCollectionCriterion(); foreach (Club userClub in userClubCollection) { RoomCriterion userClubRoomCriterion =...
stackexchange/codereview
I have a Spring controller which is putting a variable in the session: public class LoginFormController extends SimpleFormController { public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command) throws Exception { request.getSession().setAttribut...
stackexchange/codereview
I have the following tables: Users Organizations Email_Addresses Email_Address_Relations Both Users and Organizations may have email addresses, which are stored in the Email_Addresses table and related to via the Email_Address_Relations table. Structure of Email_Address_Relations id char(36) NOT NULL module varchar(6...
stackexchange/codereview
Is there a way to implement this pattern in a generic way? A dispatcher object and a bunch of worker objects all derive from the same interface. Any method call into the dispatcher object needs to be dispatched (forwarded) to one of the worker objects (with all the arguments). Each method would need to discover it's ow...
stackexchange/codereview
ArrayList list_of_employees = new ArrayList(); @Action public void reportAllEmployeesClicked(java.awt.event.ActionEvent evt) { this.outputText.setText(""); int i=0; //JOptionPane.showMessageDialog(null,"test Employee list print"); ListIterator list_ir = list_of_employees.listIterator(); //list_of_employ...
stackexchange/codereview
I'm trying to write a ROM file patcher and I came to this in the documentation: The next three bytes are the place in the destination file (the file to be patched) where a change is to be made. The two bytes following that are the length of the amount of data to be changed. How would I turn those three and two bytes ...
stackexchange/codereview
I'm working on a really big order form with a bunch of multi-part data that's submitted all at once. I'm using that trick where you render 30-40 item rows in the HTML and allow the user to "show" or "hide" more or less using jQuery. The problem is that while the user may have, say, three rows "showing" and they happen ...
stackexchange/codereview
Where can I learn more about simple programming conventions and design patterns? When I say simple I mean which is the preferred way of writing the following equivalent functions: function() { if (condition) { # condition wraps the entire function } } or function() { if (!condition) { return; } # re...
stackexchange/codereview
I have a UITableViewController that is presented with a list of choices. After the user taps one, I'd like to return to the previous view. The return seems too quick with the code I'm using though. I'd like to pause for 0.2 seconds or so to give the user time to see their selection become checked. Here's the code I'm u...
stackexchange/codereview
I am wondering if MySQL's stored procedures can work with two different databases on the same machine? How about if they are on different servers?
stackexchange/codereview
Currently I'm mixing explicit attributes (layout_width, height, alignment) on my various XML layouts with coded styles in styles.xml, plus outsourcing colors from colors.xml. From your experience, what's the recommended way to organize an android app's layouts?
stackexchange/codereview
How to create thead and tbody in ASP.NET Table? I need those tags because of jquery and asp.net gives me only tr, th and td.
stackexchange/codereview
Hallo, I have 3 Different function in Javascript, the first one replaces HTML Selectboxs width custom selectbox created with ULs. and the other 2 replace Checkbox and Radio buttons respectivly. Now I want to derive classes out of these functions, and need your suggestions, what will be the best way to organize these fu...
stackexchange/codereview
I am trying to connect 2 or more computers running a c# application. All TCP examples I find only show how to connect them if they are running on the same network. My question is how to connect them over the internet? I want to create a service like MSN but with direct connection (like a torrent software does), any h...
stackexchange/codereview
I am trying to add a <div> using JavaScript and then change its width/height/top/left attributes. But when I use the XHTML 1 Transitional doctype, it stops working. This is how I am creating the <div>: var div=document.createElement("div"); document.body.appendChild(div); div.innerHTML='<div id="myID" style="z-index:99...
stackexchange/codereview
I've created a few templates on our WIKI and I have a basic understanding of how they work. I have one template I'm working on right now that refuses to behave, at least not the way I expect it to. The purpose of the template is to format a external link in a consistent way. The name of the template is "NSURL" Here ...
stackexchange/codereview
On analysis of the core of a process (terminated by signal 6), on LINUX, stack bt shows: Core was generated by `/opt/namsam/pac_rrc_qx_e1/bin/rrcprb'. Program terminated with signal 6, Aborted. #0 0x0000005555ffb004 in epoll_wait () from /lib64/libc.so.6 (gdb) bt #0 0x0000005555ffb004 in epoll_wait () from /lib64...
stackexchange/codereview
Need to send a POST request to a Service provider using HTTPS protocol, response from the service provider will be an xml file, need to read that also.
stackexchange/codereview
I've been tasked with helping some accountants solve a common problem they have - given a list of transactions and a total deposit, which transactions are part of the deposit? For example, say I have this list of numbers: 1.00 2.50 3.75 8.00 And I know that my total deposit is 10.50, I can easily see that it's made up...
stackexchange/codereview
I have tried to implement the searchable dictionary sample app. Everything seems to be working except when I try to pull the results from global search. I have tried to follow everything that has been described in the docs too. My searchable.xml <searchable xmlns:android="http://schemas.android.com/apk/res/android" ...
stackexchange/codereview
I have the following code which is not working I create this div over a popup , normally there will be 20 divs like this on a popup. i am trying mouseover its not working , if i give mousover event in the div itself its working. any mistake. <div dataindex="0" class="clstImages" id="dlstImages0"><img alt="Almond Branc...
stackexchange/codereview
INSTALLING CAKEPHP FOR DUMMIES If you are like me, you are frustrated with these frameworks like Ruby on Rails and CakePHP, which promise rapid development, despite sluggish start - simply spending hours on install. To get CakePHP running, throw out the tutorials and don't even bother buying the books or reading the do...
stackexchange/codereview
I want to know best practices for creation of features. Normally Visual studio extension creates feature for each web part. Or it good practice or we should create 1 feature for multiple web parts in one WSP?
stackexchange/codereview
I know, I know, it's a venial aesthetic question, but I want to insert an info button in my navigation bar not as the default info UIButton (UIButtonTypeInfoLight), but inside a rounded rect so that it appears in a uniform manner to the other UIBarButtonItem buttons. Is it possible that there is no way? Using custom UI...
stackexchange/codereview
I am working on a website that has access data from a database (sql server). It will also be adding, updating deleting records in the database. It seems like there is an MDF file that gets created containing the database schema and all the records I guess? Once development is complete and I want to move this database t...
stackexchange/codereview
I'm being overly simplistic here, but say I have a WinForm with several controls on it (for example: a textbox, a treeview and a listview). To ensure the smoothest possible experience for the future (for instance, that listview may one day hold a lot of data), what should be done at the start? My knowledge of this kind...
stackexchange/codereview
I have a php application using NuSOAP on a RHEL5/CentOS dedicated system. I'm runing into the following error: 2010-10-21 06:23:43.374471 soap_transport_http: entered send() with data of length: 1693 2010-10-21 06:23:43.374510 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host www...
stackexchange/codereview
This is my current query: Using Java+mongoDB { BasicDBObject select = new BasicDBObject(); select.put("info.name.fn", 1); DBCursor cursor = collection.find(new BasicDBObject(), select); while (cursor.hasNext()) { System.out.println(cursor.next()); } It gives an output as: { "_id" : { "...
stackexchange/codereview
Hello I am curious what would be the best way to keep HTML data that won't be displayed at the initial render however will be used for the future. For instance for tabbed navigation, I need to keep all HTML but not sure what would be the way to achieve it. I can think of: Keep them at some javascript array. Keep them ...
stackexchange/codereview
If I have two images which are both the left side view of a the same shoe in different styles, how can I determine by which color(s) they differ? Perhaps it's a shoe in two styles, one style has pink laces and a white side, the other has white laces and a yellow side. I want: Image One Colors: C1=Pink, C2=White Image...
stackexchange/codereview
#include<stdio.h> int main(void) { char c = 0x80; printf("%d\n", c << 1); return 0; } The output is -256 in this case. If I write c << 0 then the output is -128. I don't understand the logic behind this code.
stackexchange/codereview
I'm creating a series of video tutorials and would like to prevent users from seeking forward and skipping sections. I'll be using an HTML5 video player that will be used for desktop and iPad browsers. Ideally, I'd like this to work on the iPhone as well, but I realize you have no control over the video on the phone ...
stackexchange/codereview
I really like elmah for logging errors but how about just the opposite? I want to use elmah to log successfull http requests (status code 200) for the purpose of web analytics. Anyone know where in the source code I may be able to do this?
stackexchange/codereview
Sometimes when I try to send some packets continuously( I am using the send() API ) I receive this error. Now I am not sure what should I do than. I have these questions: 1) Can I re-send again ? If yes then after how much time should I try again. Is there any particular strategy to be followed 2) Is buffer size has e...
stackexchange/codereview
I'm using jetty6 with SLF4J and java logging and have been trying to add a custom log Formatter, but no matter what I try I can't seem to get it to work. I have a Formatter, like this: package mycode.logging; public class DeadSimpleFormatter extends SimpleFormatter { // Nothing here at all - just an empty subclass of...
stackexchange/codereview
I'm trying to use eclipse 3.6 with Google Web Toolkit and I don't see there an option to run the app on the server. When I click on Run, there is automatically the hosted mode, when I click the Run as... there is option 1. Run as application , 2. Run as applet - which is useless, 3. Run as Web application - which leads...
stackexchange/codereview
I'm working on an application that will use .NET as the application platform. Originally, we were going to use SQL Server as the database, but after some research, MySQL came up as a popular database that is used by some high transaction based applications(i.e. Facebook, Craigslist, etc...). The app we're working on wi...
stackexchange/codereview
I had a class Display with 2 utility functions getDate and getTime like below. class Display { public: void getDate(char *pDate); //Utility functions for converting to custom format void getTime(char *pTime); }; Later, In other class called Retriever also, i needed the same Utility functions getDate and getTime. I...
stackexchange/codereview
I’d like to run a very simple script command through the command line, and the -mxs switch appears to do exactly that. However, everytime I use it 3DSMax 2011 automatically shuts down afterwards. Whether I use the quitMax call or not. Is there anyway to get around this?
stackexchange/codereview
I am trying to add transaction support to an existing webapp via spring transactions. I recently changed my session factory class from LocalSessionFactoryBean to AnnotationSessionFactoryBean. now I get the following error when the webapp starts: org.springframework.beans.factory.BeanCreationException: Error creating be...
stackexchange/codereview
I have a model with 100 or so entries - the client would like these entries to appear in a 'random' order, but would also like paging in there. def my_view(request): object_list = Object.objects.all().order_by('?') paginator = Paginator(object_list, 10) page = 1 # or whatever page we have display_list = paginat...
stackexchange/codereview
For years I have done something like this: config.php <?php $db = array("user" => "username", "pass" => "password"); functions.php <?php require_once('config.php'); function connectToDatabase() { $dbc = new PDO($dsn, $db['user'], $db['pass']); // Do some stuff ... } I've just read the PHP m...
stackexchange/codereview
I was reading through the Flask doc - and came across this: ... For web applications it’s crucial to react to the data a client sent to the server. In Flask this information is provided by the global request object. If you have some experience with Python you might be wondering how that object can be globa...
stackexchange/codereview
Possible Duplicate: Easiest way to split a string on newlines in .net? I'm trying to read out and interpret a string line per line. I took a look at the StringReader class, but I need to find out when I'm on the last line. Here's some pseudocode of what I'm trying to accomplish: while (!stringReaderObject.atEndOfStr...
stackexchange/codereview
I have a groupbox that contains nested stack panels that aren't filling in the groupbox entirely. I would like to have all the stackpanels evenly spaced out filling in the entire groupbox. I have attempted changing the VerticalContentAlignment to Stretch for the groupbox, but that does not work. <GroupBox> <S...
stackexchange/codereview
(Windows 7 x86) If I run netstat -ab, I get a list of active connections, along with the names of the applications which have opened the connections. However, some connections (including the one opened by my app) are listed as: Can not obtain ownership information Why? Thanks, Darren.
stackexchange/codereview
The first version of my app runs on all iOS devices. I'm considering releasing an upgrade which will only work on devices which support OpenGL ES 2.0. Is that as simple as changing the UIRequiredDeviceCapabilities in info.plist? If I do this, what will users on the old devices see when they try to upgrade? Or will they...
stackexchange/codereview
I have a problem. Need a component for mix text, links and clickable text. In Facebook App can see a example. http://img193.imageshack.us/img193/1355/example1t.jpg Someone know a than can do this. For example, UITextView can detect links in text, but can't insert clickable text. Thanks for your help.
stackexchange/codereview
If you return IList(T) from your repository ... How could you efficiently create SQL queries when you join the data together? Is it REQUIRED to expose IQueryable / IEnumerable data structures for those methods? This to me is bad. Or Am I missing some basic concept? Right now I have a repository methods like: IList<T> ...
stackexchange/codereview
We have started using a third party platform (GigaSpaces) that helps us with distributed computing. One of the major problems we are trying to solve now is how to manage our log files in this distributed environment. We have the following setup currently. Our platform is distributed over 8 machines. On each machine we ...
stackexchange/codereview
I am working with a database which unfortunately has a lot of unused tables and I am trying to clean it up. I'm trying to find a way where I can be 100% confident that a particular table is no longer being used. After some googling, I still cannot find a good way to do so. I am only able to tell the last writes to a ta...
stackexchange/codereview
Can someone provide a comparison of the middleware difference (pros/cons) of .NET vs Java EE. If not, at least provide a useful link for me to read to is concise.
stackexchange/codereview
I'm using PHP, I wanted to know if a user lands on a certain page, and they have to login or signup to be able to do actions like commenting or rating etc. I wanted to able to take the user back to that same page after they login. I was thinking to use the PHP get function and pass the URL, I'm not sure that's the best...
stackexchange/codereview
I am looking to parse mp4 for my .net application. I couldn't find any mp4 parser in .net. Found mp4parser which is in java. Please let me know is there any C# version available? if no, is it possible to use mp4parser with .net?
stackexchange/codereview
Hi while i cross compile an startup.s file (arm-none-eabi-as file.s) (*-gcc) I am getting in each commentary line some errors - junk at end of line, first unrecognized character is / when i delete the // some comment lines i get errors about undefined symbols even i defined them at beginning of the file. anyone know wh...
stackexchange/codereview
I'm currently trying to create a gallery of pictures loaded from Internet. I'm using a standard Gallery object, with a custom adapter and a custom ImageView. Everything is working quite fine, expect for the pictures downloading. I'm using an asynchronous task to do this (I have thumbnails displaying while loading). It'...
stackexchange/codereview
I am trying to emulate != with <> in Scala. implicit def conditional[A](left : A) = new { | def<>[A](right : A) = (left != right) | } What are the case in which this emulation won't work
stackexchange/codereview
I'm looking for jquery plugin that can switch content with buttons. e.g. In the page it would look like this: [Prev] some text within a div [Next] By pressing a button (next or prev) the div changes with the content to next div in the page that probably is hidden before pressing the buttom... something like that. I ho...
stackexchange/codereview
I'm trying to write a class that calls back certain functions for different browsers. What I want to do is create a switch statement that accepts either (CHROME, SAFARI, FIREFOX, MSIE, etc) that is pulled from a regular expression. I'm stumped on the regex part. I created named groups, but I can't figure out how to get...
stackexchange/codereview
I was wondering if there was any "easy" way to add through css lets say: border: 1px solid red; to all divs no matter what their id´s are. I realize this might be a very very basic question (or no possible at all) and I hope it is clear enough. Just to clarify, lets say I´ve got: HTML <div id="one"> </div> <div id="t...
stackexchange/codereview
I have two methods that are identical. one is public void ExtendFrameIntoClientArea(Window w, int amount) { if (internals.DwmIsCompositionEnabled()) { WindowInteropHelper wi = new WindowInteropHelper(w); internals.DwmExtendFrameIntoClientArea(wi.Handle, new internals.MARG...
stackexchange/codereview
I've been assigned to build a questions & answers widget for my company. Many different departments in the company will want to use this widget on various websites and they will want to filter questions based on specific and unique criteria. The battle here is scalability vs efficiency. Should I: A) Make unique mappin...
stackexchange/codereview
I am attempting to use 3D textures to texture my randomly generated terrain. I want to be able to have many different terrain textures that blend between different areas. I can't seem to figure out what part of the texture the R coordinate will pick up. If I set it to 0.0 then it gives a blend of the texture from befor...
stackexchange/codereview