instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm using AMFPHP, and wrote a small function in php to post in facebook whenever it's called: function postear($pregunta,$winoption,$loseoption) { require_once("../../facebook.php"); Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false; $facebook = new Facebook(array( 'appId' => 'xxxxxxxxxxxxx', ...
stackexchange/codereview
Is there a way to if else tables in mysql? Example: select * from tableA A, if(tableA.find=1,TableBA B,TableBB B) where A.id = B.aid Real Example: tables are: location_order, order_contract, order_gm, order_gm_hh: select * from location order lo, order_contract oc, if(lo.hh=0,order_gm,order_gm_hh) as og where lo....
stackexchange/codereview
I have List which has 150K elements. Average time of work IndexOf() is 4 times lower than Contains(). I tried to use List of int. For List of strings IndexOf is a bit faster. I found only one main difference, it's attribute TargetedPatchingOptOut. MSDN tells: Indicates that the .NET Framework class library method to w...
stackexchange/codereview
I have a byte array (say, UInt8 *somebuffer) with data in an unknown format. I have tried casting to several datatypes and have not been successful in getting any meaningful data out. What I am trying to do is something like: float *floatArray = somebuffer; and then work with the contents as a float, and I have also tr...
stackexchange/codereview
Dear Experts, I need a coding to block downloads and uploads for all browser like firefox,googlechrome,ie etc. on system in VB.NET Thanks for your cosideration Pardeep
stackexchange/codereview
Person | p_id | n_name | l_name | address | city | state | zip | Customer | p_id | reward_points| balance | Person_PhoneNum | ppn_id | p_id | number | Main issue is that I want to attempt making a Retrieve Stored Procedure that can search by any of Person's fields as well as phone number or p_id BUT I want it to be abl...
stackexchange/codereview
We all know that jagged array performs better than multi-dimensional array, but what about jagged array and flatten array? My intuition is that they should perform about the same. This is because both are direct access, unlike multi-dimensional array where you have to do some manipulation before you get to the element....
stackexchange/codereview
I need to find all the zipcodes with a certain range from a zipcode. I have all the zipcode lat/lon in a DB. I have found two formulas online that vary slightly from each other. Which one is correct? Formula 1: def latRange = range/69.172 def lonRange = Math.abs(range/(Math.cos(Math.toRadians(zip.latitude)) * 69.172)...
stackexchange/codereview
According to Wikipedia, The height of a tree is the length of the path from the root to the deepest node in the tree. A (rooted) tree with only one node (the root) has a height of zero (or one). I dont get it - is it zero or one (or both)?
stackexchange/codereview
I'd like to show a form (the form has a box where you type in what you were doing to make the error occur, etc. and a send button to report the error to my website) when an unhandled exception occurs. As it is now, the form shows up but none of the controls draw (they are all white boxes) and then I get the "Yaya.exe h...
stackexchange/codereview
Using jQueryUI's dialog boxes, I want to popup information. My problem is I want to set the height of the dialog to however high the content is. If I don't specify a height, this works perfect. The height is automatically calculated based on the height of the content. Problem then is if the content is very tall, th...
stackexchange/codereview
The following code sounds very sluggish. What's wrong? AudioStreamBasicDescription audioFormat; audioFormat.mSampleRate = 22050.0; audioFormat.mFormatID = kAudioFormatLinearPCM; audioFormat.mFramesPerPacket = 1; audioFormat.mChannelsPerFrame = 1; audioFormat.mBytesPerFrame = 2; audioFormat.mBytesPerPacket = 2; audioFor...
stackexchange/codereview
I've developed a chat application using WCF/ASp.net. I want to asynchronously transfer a file from one chat user to another chat user. What is best approach for this? here are my insights/doubts Do i need a central server between two users to assist the file transfer? Can i create a direct channel without a central se...
stackexchange/codereview
On loading a page I would like it to go to #content without changing the url. I thought I would be able to use window.location.hash = "content"; window.location.replace("#content", ""); but #content still exists on the url. Any better method? Edit: Also tried window.location.hash = "content"; window.location.replace(...
stackexchange/codereview
public class SimpleOptionMenu extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override public boolean onCreateOptionsMenu(Menu menu) {...
stackexchange/codereview
Why I get "implicit declaration of function 'PerformXMLXPathQuery'" warning? NSString *response = [request responseString]; NSString* xPathQuery = [NSString stringWithFormat:@"//ExtendedData"]; NSArray* myArray = PerformXMLXPathQuery([response dataUsingEncoding:NSUTF8StringEncoding ],xPathQuery);
stackexchange/codereview
I have the following code factory = new Configuration().Configure().BuildSessionFactory(); session = factory.OpenSession(); var query = session.Linq<Root>(); var data = query.ToList<Root>(); var data2 = query.ToList<Root>(); This one generate 2 SQL queries, so i understand that first level cache isn't working. Does LI...
stackexchange/codereview
I'm working on an open source project for android and am wondering whether there are any best practices (or at least well-argued hints) on how to manage the private key for signing the APKs. On the one hand, the key should be secured, on the other hand, at least the members of the core team should be able to create "of...
stackexchange/codereview
I want ot execute the following commands using batch file: 1.ftp 127.0.0.1 2.USERNAME 3.PASSWORD 4.put 5.D:\\zz.xml 6.mmm.xml Each command is a sequence of the prev command I want to move file from local to ftp server I googled for that and I found that insert ; between commands is the solution but itsn't correct ...
stackexchange/codereview
Is it possible to get spelling/search suggestions (i.e. "Did you mean") via the RESTful interface to Google's AJAX search API? I'm trying to access this from Python, though the URL query syntax is all I really need. Thanks!
stackexchange/codereview
I'm using code to configure a simple robot. I'm using WinAVR, and the code used there is similar to C, but without stdio.h libraries and such, so code for simple stuff should be entered manually (for example, converting decimal numbers to hexadecimal numbers is a multiple-step procedure involving ASCII character manipu...
stackexchange/codereview
I would like to traverse a collection resulting from the Scala JSON toolkit at github. The problem is that the JsonParser returns "Any" so I am wondering how I can avoid the following error: "Value foreach is not a member of Any". val json = Json.parse(urls) for(l <- json) {...} object Json { def parse(s: String):...
stackexchange/codereview
I'm using AsyncSocket to write a TCP client on iPhone and need to set the Urgent Flag of TCP segments. How to do it? I can't find relative APIs in CFSocket. Thanks.
stackexchange/codereview
Does anyone have any suggestions for doing this? At the moment, a new row gets added to the database and I call requery(). I'd like any new rows to animate when they show up for the first time. Many row additions will happen in the middle of the list, and not at the top or bottom. I'd like these to animate somehow ...
stackexchange/codereview
In using javascript i noticed this thing. You can use var i=0; var startingTime=new Date().getTime(); setInterval("foo()",1); function foo() { i+=1; if ($("#foodiv").text()==i) { //we detected a doubled value (parallel execution) $("#repdiv").append("[repetition on "+i+"]"); } $("#foodi...
stackexchange/codereview
i has the following code which suppose to convert file to data but the problem is the byte size is not the size after the conversion can someone help me on this one? i'm suppose to send the NSdata using NSStream to a server. NSString *file = [[NSString alloc] initWithContentsOfFile:filepath; NSLog(@"length = %d",[fil...
stackexchange/codereview
Is there any way I can convert the value of a [NSData bytes] to a float so that I can add it to a progress bar? Thanks, Kevin
stackexchange/codereview
I am using the ValidatesOnExceptions=true method of WPF validation. This involves throwing an exception in the source's property setter method. It works but the debugger always breaks when the exception is thrown. I am guessing that this is because the exception is not caught directly in my user code but it is caught i...
stackexchange/codereview
I'm building an Authentication Package for Windows and I'm now just trying to make a skeleton for the package that I'm going to build. The Package at some point in time will need to call MSV1_0 but the workflow of my authentication is forbidding me from implementing it as a SubAuthentication Package for MSV1_0. Now, pl...
stackexchange/codereview
I'm using PIL to load in various fonts and draw text to images. At the basic level, it all works. However, I am running into a number of problems such as letters being clipped (mainly cursive or stylistic fonts with lots of tails and such). textsize() does return width/height values, yet letters are still clipped. Ther...
stackexchange/codereview
How can you go from (5 . 2) to (5 2) ??
stackexchange/codereview
I want to set the JRE autodownload option found on the advanced tab of the Java Control Panel in Windows XP to 'Always Auto-Download' on a very large number of machines. What is the windows registry key name for this option and the value for 'Always Auto-Download' ? Thanks!
stackexchange/codereview
I'm a little stumped with an issue that I think goes back to my design. I'm constructing a TableViewController based on a mainly static set of rows (4) - using that as a basis for a UITableView. Each row will kick off varying different views (detail, and UITableViews)... In my managed object context for the top view ...
stackexchange/codereview
I have some ActionScript code that splits a string using Regular Expression and lets me add content at the split location. // AS3 Code function formatTweetText(tweet:String ):String { var regUrl:RegExp = /http:\/\/\S+/g; var _text:String = " "+ tweet + " "; _text ...
stackexchange/codereview
I'm having a problem with the AsyncTask class. It seems like my task stops working after creating 4 or 5 tasks. Im having 2 activities. MainActivity which only holds a button that starts a second activity called ImageActivity. ImageActivity is very simple. it got an onCreate that sets the layout, and then it starts a...
stackexchange/codereview
I'm implementing touchesMoved, touchesBegan, and touchesEnded on a few UIButtons, so that I can slide my fingers over them and have them call the appropriate actions. It seems to be working almost as intended, however, if I press two fingers outside of the two buttons' frames, and then slide them into the buttons' fram...
stackexchange/codereview
I have few SQL Server Agent Jobs running in my project. The jobs run perfectly as scheduled, no issues. But now I need to be able to start these jobs from the front end (Like on a click of button or so). How can I do it ? Do these jobs behave just like a functions ?
stackexchange/codereview
ok my slideshow is my body background and the imgs are in img tags like this <img name="pic" src="../../Content/images/bg.jpg" style=" width: 100%; position: absolute; top: 0; left: 0; z-index: -1;width: expression(document.body.clientWidth + 'px'); " alt=""/> my problem is it plays but then stops on the last ima...
stackexchange/codereview
What command can I use to analyse Apache's log file that tells me between 11am of day x and 13pm of day x the average request per second was..? The os is linux (red hat) Thanks
stackexchange/codereview
I'm trying read an array that was post from a html form <input name="test[]" id="1" type="checkbox" value="1" /> <input name="test[]" id="2" type="checkbox" value="2" /> <input name="test[]" id="3" type="checkbox" value="3" /> <input name="test[]" id="4" type="checkbox" value="4" /> In php I know you can just access t...
stackexchange/codereview
I attempted to do this below, with mind blanks as it got complicated. I need to build a predicate to pass to my Product Repository from a client string: "fieldname .startsWith. 'fieldvalue'" "fieldname .contains. 'fieldvalue'" "fieldname .equals. 3" "fieldname .greaterThan. 3" "fieldname .lessThan. 3" The field names ...
stackexchange/codereview
I have a JPanel which contains a lot of child components. While updating\adding new components to the parent JPanel I'd like to prevent it from repainting, how can this achieved?
stackexchange/codereview
Ok, so I'm putting a list of 25 tuples, with each tuple containing 5 items, into an sqlite database. Each time I try the main code to write, I get "apsw.SQLError: SQLError: near "?": syntax error" Here's the code I'm running. Be aware that this is part of a much, much larger server project for a game, so some of the fu...
stackexchange/codereview
Given the following code: typedef struct IntElement { struct IntElement *next; // use struct IntElement int data; } IntElement; typedef struct IntElement { IntElement *next; // Use IntElement int data; } IntElement; // why I can re-use IntElement here? I use above data structure to def...
stackexchange/codereview
I've thought about this for awhile but what is maybe a good way to go about randomly generating a 2-d or possibly 3-d array. Im not looking for specific code per se, but more just a general idea or way one might think of doing it. edit: Sorry I mistyped, What I meant is say you have an array (2d or 3d) filled with empt...
stackexchange/codereview
I've heard that app development on the new windows phone 7 is C# only. Is that true? I haven't been able to verify that on my own. Can you please provide a link to this? If true, is there any rumors about allowing VB.Net to create apps as well?
stackexchange/codereview
I would like to deny web robots to access a url like this: http://www.example.com/export allowing this kind of url instead: http://www.example.com/export?foo=value1 A spider bot is calling /export without query string causing a lot of errors on my log. Is there a way to manage this filter on robots.txt?
stackexchange/codereview
I have an Activity I would like to automate testing on. The start up of the Activity is like this: Get data from Intent Bind to service and obtain some objects specific to that Activity's intent data Query these objects and print information to screen I have a basic grasp of testing Activities but given how this Acti...
stackexchange/codereview
I have an AWT canvas which I cannot convert to a Swing component (it comes from VTK). I wish to display a few of these canvases inside of a JSplitPane. I've read about mixing heavy and light weight components in Java and know that it's a pain in the butt, but I don't have a choice. If I wrap the AWT canvas inside of...
stackexchange/codereview
For example if i have to type something like that multiple time, is there any way to put this loop in the method with parameters like LoopMethod(Code lines, int count) for (int i = 0; i <= 1000; i++) { code line 1; code line 2; ... code line N; } ...
stackexchange/codereview
Nicklas, thanks for the answer to my previous question.... Forgive me for my ignorance and for asking what may turn out to be rather simple questions, but databases are not my area of expertise. The select statement that gives me the number of crashes in each percinct: SELECT P.precinct, count(C) FROM nycpp P, nyccr...
stackexchange/codereview
I have a c++ code developed with Visual C++ 2008, which creates a .exe file in the dubug subfolder of the application. The program runs properly on the development machine, a Windows Vista PC, but does not run when installed on another machine, a Windows XP PC on which Visual c++ 2008 is not installed. (I used InstalSh...
stackexchange/codereview
I've run into a lot of issues whilst attempting to install RVM on Ubuntu 9.10. Here's the steps I've tried doing: install ruby (via ruby site, no package manager) download rvm install rvm (make edit to .bashrc) use rvm to install ruby version & gems Is there any crucial step that I seem to be missing?
stackexchange/codereview
Sample Link I am using jQuery cycle to slide through these images I am having issues in iOS webkit getting the #imagegallery img to scale 100% width. Any Ideas?
stackexchange/codereview
I am currently looking for a Select statement which will do this.. |------Apples------| |--id--| - 1 - 16 - 23 - 42 |------Oranges------| |--id--| - a - b - c *SELECT STATEMENT* |------Fruit Cocktail------| |--AppleID--|--OrangeID--| 1 a 1 b 1 c 1...
stackexchange/codereview
I have a regular expression in my RewriteRule, which is currently working fine. Secondly I'd like to test wheter the file (where the request is rewritten at) exists. Therefore I placed a RewriteCond before my rule, but it validates always to false, unfortunately. This is my regex: assets/img(.*)/([a-zA-Z0-9-_\.]*)\.([^...
stackexchange/codereview
I am making a download and installing application that must run multiple times at the same time. However, is it smart to do so? My application uses the /tmp directory to save temporary downloads. Each instance of the application needs its own dock icon, that's the reason I use multiple instances. Is it dangerous to hav...
stackexchange/codereview
I'm sure I'm not the only one that this has plagued, but I can't seem to find a solution. @font-face works wonderfully in Firefox, Chrome, Safari with TTF fonts. as so: @font-face{ font-family: "Apple-Chancery" ; src: url(images/Apple-Chancery.ttf ) format("truetype"); } However, I understand that to be used in M...
stackexchange/codereview
Hey, sorry for my bad english... Using EF4 code-only, I have created some POCO classes and my database was generated from that. All worked fine, I inserted some data on the tables but now I need to create a new property on one of my classes. If i just create it, the application give me the exception: {"The model backi...
stackexchange/codereview
I have an MP3 on a hosted server. I have to views - each require a different action. View A : MP3 should Play via Stream from Server (Stream each time) View B: MP3 should Download - then play locally (Download once) (I've got View A working - Streams fine) View B will not download. Can someone show me an example?
stackexchange/codereview
So this has been making me go bonkers for the last half hour. Is there any way for me to grab an array slice to the end of an anonymous array? I've tried: (split(' ',$test_line))[1..$#_] and I've tried: (split(' ',$test_line))[1..-1] but aggravatingly, neither of those work. I really don't want to have an extra temp va...
stackexchange/codereview
I have a table like this: Name Tree Iron Clay Added I want to map it to a model like this: Name Resources Tree Iron Clay Added In makes sense to map it like this, when working with it in my program, but doing it that way in the databse would just make it more complex ... not would not add any useful things. Is it...
stackexchange/codereview
I have a stored procedure that will query and return records based on if items are available or not. That part is easy, Im simply passing in a variable to check where available is yes or no. But what I want to know is how do I throw a everything clause in there (i.e available, not available, or everything)? The where ...
stackexchange/codereview
new to ruby, and rails... but not to the amp stack. my preferred method for local development has always been to use MAMP Pro for it's ease of use and speed. but, i seem to have some more configuration to do if i want it to work with ROR. i've got my server name setup (rails.dev) to use port 3000 and the disk location ...
stackexchange/codereview
i basically just want to pick a random value in a string split by '|'. I can't find a good example does anybody have an idea? string[] mystrings = ("apple|orange|mayo|fruit|dog"): string blah = "here i am "+resultsofrandom+" result chosen from mystring was " resultofrandom obviously string blah is just an example, i...
stackexchange/codereview
I am trying to create a PKCS#12 keystore with more than one certificate. this option does seem to be documented well - everyone talks about creating a .p12 file from a single certicate in a .pem file, like this: openssl pkcs12 -export -in my_single_signed_cert.pem -out keystore.p12 -name "Alias1" this creates a new .p...
stackexchange/codereview
Does anyone know of a good example (on the net) of how to use the @collectrionOfElements annotations in Hibernate. I have existing model objects and I need to internationalize a few fields on each of them ie: Name, Description . . . Does this mean I do not have to change/add new tables and model objects as Hibernate wi...
stackexchange/codereview
On my site I have simple form (by the way I'm using razor view engine): <form method="post" action="Mail/SendMailMessage" id="mailForm"> @Html.LabelFor(m => m.UserFirstAndSecondName)<br /> @Html.TextBoxFor(m => m.UserFirstAndSecondName)<br /> @Html.LabelFor(m => m.Email)<br /> @Html.TextBoxFor(m => m.Email)...
stackexchange/codereview
I am trying to setup at ServerSocket on my Android phone, and send a char or int or anything from my computer. The code on the phone creates a ServerSocket and then blocks whilst waiting for a connection: ServerSocket serverSocket = ServerSocketFactory.getDefault() .createServerSocket(4444);...
stackexchange/codereview
where can I find a version of LockBox for Delphi-XE
stackexchange/codereview
I'm using yuicompressor to minify and obfuscate some javscript files. I'm trying to dynamically build the file path and pass it to the minifier from powershell. Here's what works: $results = java -jar c:\yui\yuicompressor-2.4.2.jar c:\MyFile.js -v --charset utf-8 Here's what doesn't work: $yuiPath = "c:\yui\yuicompres...
stackexchange/codereview
Hi friends i have set my layout thru TabLayout within LinearLayout but still my button in the end couldn't be set properly as TabLayout divides all the fields in number of columns so can anyone help how to set 2 Layouts in one XML file means all the fields in TabLayout and remaining both Login and Register buttons in L...
stackexchange/codereview
We have a bunch junit tests in our current project. Essentially we are looking for a way to run all the test in a given package. Currently in Netbeans I see you can run all the tests or a single test, but no way to run a a sub-set of tests. Is this built into Netbeans? Or is there another way we can do this?
stackexchange/codereview
I'm getting this: "Exclusive access could not be obtained because the database is in use. RESTORE DATABASE is terminating abnormally." First the message told me I must connect to master db to execute the restore but I change it and I got the message above. The parametrized sql statement I'm using is: cmd.CommandText = ...
stackexchange/codereview
I tried to order csv file but the rank() function acting weird on number with -E notation. > comparison = read.csv("e:/thesis/comparison/output.csv", header=TRUE) > comparison$proxygeneld_full.txt[0:20] [1] 9.34E-07 4.04E-06 4.16E-06 7.17E-06 2.08E-05 3.00E-05 [7] 3.59E-05 4.16E-05 7.75E-05 ...
stackexchange/codereview
What is the purpose of the Parse::CPAN::Authors module? use Parse::CPAN::Authors; # must have downloaded my $p = Parse::CPAN::Authors->new("01mailrc.txt.gz"); # either a filename as above or pass in the contents of the file my $p = Parse::CPAN::Authors->new($mailrc_contents); my $author = $p->author('LBRO...
stackexchange/codereview
I am interested in seeing the code where gcc has actually optimized the code. Is there a way I could do? I have gone through few other similar questoins, I have tried following few things, -Wa,ahl=filename.lst :- this option is really good, you can browse the code and corresponding machine code, but it is not good whe...
stackexchange/codereview
I am trying to put the result of a find command to a text file on a unix bash shell Using: find ~/* -name "*.txt" -print > list_of_txt_files.list However the list_of_txt_files.list stays empty and I have to kill the find to have it return the command prompt. I do have many txt files in my home directory Alternatively ...
stackexchange/codereview
Please can you take a look at this query and point out what I'm doing wrong: update @output set fromdate = o.fromdate, todate = o.todate from ( select fromdate, max(todate) from @output as o left join status as es on o.number = es.empid and o.ccode = es.compcode and @status = es....
stackexchange/codereview
I have a web site project where I need to use the System.Security.Cryptography.Xml.SignedXml class. I added the Dll System.Security as a reference and imported the namespace into my project. It compiles successfully but when I debug the project I get a compilation error: Compiler Error Message: BC30002: Type 'System.S...
stackexchange/codereview
Hi I want to pass an Arraylist from one activity to another. I use putStringArrayListExtra(), but there shows an error : "The method putStringArrayListExtra(String,ArrayList is undefined for the type bundle." Is there any other method available for passing ArrayList? String test[]=new String[3]; ArrayList<String[]...
stackexchange/codereview
Possible Duplicate: Common Uses For Pointers? I am still learning the basics of C++ but I already know enough to do useful little programs. I understand the concept of pointers and the examples I see in tutorials make sense to me. However, on the practical level, and being a (former) PHP developer, I am not yet con...
stackexchange/codereview
I'm working to do the following in my Rails App: if record.updated_at > 15.minutes.ago do some stuff end Meaning... If the record.updated_at was over 15 minutes ago, do some stuff... This doesn't seem to be working. Ideas?
stackexchange/codereview
I have created <input type="checkbox" id="test" > using literal. Now i want to get this control so i can check if its checked or not. How do I find this control in the aspx.cs page?
stackexchange/codereview
I am using this query: public IEnumerable.....{ var query = from d in Context.Documentos where d.CodigoEquipamento == documentoDTO.CodigoEquipamento && d.Codigo == tipoEquipamentoDTO.Codigo select new DocumentoDTO { Codigo = d.Codigo, CodigoEquipam...
stackexchange/codereview
I have a view that displays object information when the correct URL is provided however I would like to create a similar view that returns url information from the record that is located next. So in essence take the info from my first view, list/order it in some way preferably by date and return the records located nex...
stackexchange/codereview
I'm trying to integrate a screenshot grabbing feature in my WPF app and I'd like it to look like snipping tool. So far I've managed accomplish something similar by creating a fullscreen window (with a canvas) with opacity set to 0.5 and dark background. When I click somewhere and start dragging, a white rectangle is dr...
stackexchange/codereview
i'm quite new with php. i think this is quite straight forward but i'm confused. i have a form which asks users for a date of their choice, the format they enter is dd/mm/yyyy the linked mysql database is formatted yyyy/mm/dd, from what i understand you can't change this. i'm just trying to figure out where i can chang...
stackexchange/codereview
I have a project in PHP that uses multiple tabs on a single page, implementing the plugin found on this page: http://www.web-delicious.com/jquery-plugins-demo/wdScrollTab/sample.htm I require various users to log in to the system. I've implemented a server-side check within each tab's iframe to see if a certain session...
stackexchange/codereview
Are there any tutorials/examples on how to create an asp.net mvc app without the model being managed by a database (through linq2sql or entity framework). I've to create a frontend for a server which has a json based api. I would like to use mvc 3 or 2 and have most of the features of mvc still in place (like data anno...
stackexchange/codereview
.NET for added new concurrency features under System.Collection.Concurrent and some synchronization classes. Is there any good sample for single producer - single consumer pattern using these feature ? (Actually I will add a circular buffer pattern to it if it already doesn't implement it as the shared buffer)
stackexchange/codereview
So I have a List, which contains items. Right now they are thumbnails of pictures. I wanted this list to be bound to a changing list in code behind, so I used a Listbox. However, I needed this box to flow horizontally. So it is styled as a StackPanel. Lastly, I want buttons to control the scrolling, not scrollbars. Tha...
stackexchange/codereview
General: I have a standards compliant C++ API that uses Boost libraries that I would like to support as a native, statically linkable library on Windows, OS X, and Linux, and that I'd like to wrap for .NET on Windows and Mono on OS X and Linux. Specifics: Currently I have it compiling natively for all platforms - this ...
stackexchange/codereview
Is it possible to write custom metadata to an JPG image using Android SDK or some 3rd party lib , and extracting it afterwards? If it is, is there any simple solution? Thank you very much in advance
stackexchange/codereview
if by any means I happen to have public class DoorsModel { public DoorsModel() { } public HttpPostedFileBase Image { get; set; } public String DoorLayout { get; set; } public bool ReplicateSettings { get; set; } public List<DoorDesignModel> Doors { get; set; } } public class DoorDesignModel { ...
stackexchange/codereview
When building webapps with MVC web framworks like Django, Kohana, Rails and the like, I put together the application without JS-driven components initially, and then add them afterwards as "improvements" to the UI. This approach leads to non-intrusive JS, but I don't have a good "standard" way of how to go about organi...
stackexchange/codereview
We need to implement a Java desktop application that allows us (initially) to create / edit / resize / polygons on (initially) images. Then these polygons would be mapped to objects in our domain model. So we basically need a toolbar with the options describe above and the possibility for the example to create a polygo...
stackexchange/codereview
I'm trying to have an EditText and the possibility to display a keyboard at the bottom of the screen when the user taps the EditText. I'm aware of the InputMethodService and the SoftKeyboard example, but I can't use it in that fashion as my keyboard should only be available to this very EditText. Furthermore, there sho...
stackexchange/codereview
I need to load dlls at runtime for 32 bit and 64 bit. how do i determine 32bit and 64bit. Thanks, kam
stackexchange/codereview
I want to declare a variable to hold the query result from LINQ to SQL like to the following: Dim query As IQueryable(Of Student) If isNoUserName Then query = From st In db.Students _ Order By st.AssignedId Ascending _ Where (st.studentId = studentId _ S...
stackexchange/codereview