instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
i have the this form: <form id="segform" action="TestServlet" method="POST" > <div id="actives" class="rounded-corners"> <div class="column"> <div class="portlet"><a href="#">link1</a></div> </div> </div> <div id="inactives" class="rounded-corners"> <div class="column"> ...
stackexchange/codereview
I'm creating a file dialog that allows the user to save a file after editing it in my app. I want to add a checkbox to the dialog so the user can make some choices about what format the file is saved in. I think I need to make some new class that inherits from FileDialog and inserts a checkbox into the frame created by...
stackexchange/codereview
I have a problem in obtaining the index, if in an array there are some similar words but with a different index position and when I select one of the word, the index that I get is not from words but from which I select the same word in previous position for example I have a sentence: The Harvest is the process of gathe...
stackexchange/codereview
I am passing $router->map('Owner', 'Owner/:is_owner','null', array('controller' => 'companies', 'action' => 'index','is_owner'=>'1')); $router->map('Client', 'Client/:is_owner','null', array('controller' => 'companies', 'action' => 'index','is_owner'=>'0')); in controller I'm getting it by, $flag=$_GET['is_owner']; ...
stackexchange/codereview
Need help handling errors while running a merge statement. How do I make the merge behave as if it has a try-catch block surrounding each row processed ( If an error is encountered, catch that error and log it (or any other processing) then continue processing the next rows)? What is the default behavior of the Merg...
stackexchange/codereview
I develop a MIDI application using AIR that read MIDI code from Java and found it could not perform fast enough unless I move everything to Java. In actionscript, does Green thread can improve AIR/Flash by acting as a multithread application which can improve NativeProcess performance in reading and writing? If not, sa...
stackexchange/codereview
I need to convert an Image to a bitmap. initially a gif was read in as bytes and then converted to an Image. But when I try convert the image to a bit map, the graphic displaying in my picturebox has a black background when it used to be white. Here is the code: var image = (System.Drawing.Image)value; // W...
stackexchange/codereview
function fix_canonical() { global $paged; if (is_category()) { $catid = get_query_var('cat'); echo ' <link rel="canonical" href="'.get_category_link($catid).'" /> <meta name="description" content="'.$meta.'" />'; if ($paged > 1) echo ' <meta name="robots" content="noindex,follow" />'; ...
stackexchange/codereview
We have thousand of Data To Write In XML File & To Write Data We use XmlTextWriter. We can across one problem while Writing XML File, Error Is While Writing Attribute : Invalid high surrogate character (0xDC50). A high surrogate character must have a value from range (0xD800 - 0xDBFF). As A Error Solution : We decided ...
stackexchange/codereview
I'm learning Silverlight using Silverlight 2.0 Unleashed + Silverlight 4.0 Unleashed and, well, just messing around with it :-) As part of that, I'm trying to develop what should be a very simple content control: A label that you can edit by clicking on it. I took my inspiration from another SO question (Click-to-edit...
stackexchange/codereview
As a test I'm converting a proof-of-concept app we've written from Web Forms to Razor, simply so we can evaluate it. I've run into one problem so far that's making my head hurt..generating client-side Javascript... Web-Forms <script type="text/javascript"> var jqGridIdList = "<%: Url.Action ("getidlist", "office", ...
stackexchange/codereview
I have a enumeration class and I want to set valuse from this in a function. But I`m not abel to do this. It allways picks the fist in line, her it is Customer. $server->wsdl->addSimpleType( 'AddressType', 'xsd:string', 'SimpleType', 'struct', array( 'Customer', 'Order', 'Deli...
stackexchange/codereview
Trying to use NUnit to test a method that adds an object to a queue, and throws an exception if the object's already been queued, but it fails because Queue.Contains() can't detect that the mock object's already in the queue. The method under test is pretty simple: public void Enqueue(ISomeInterface obj) { if (myQu...
stackexchange/codereview
The relevant schema for this database is there are Jobs which have Job Phases which have DailyInfos. I wrote a function that takes the DailyInfoID and returns a bunch of data related to that Daily. The idea is that if I want Job Phase To Date values, I would call the function for every DailyInfo in that JobPhase by usi...
stackexchange/codereview
sorry for that title but it is very hard to explain in a few words. I wrote a little web proxy -not apache or any kind of common webserver- who's role is to execute some php code. There are two ways of do it: 1) fork a new php -f file.php 2) call http://localhost/file.php from within the web proxy. I think there would ...
stackexchange/codereview
I'm doing this from code but it should be equivalent to jsp.. Trying to have a header for a selectmanylistbox. (I'm looking for the same look as a header on a table column would have.) What I'm trying now is: (The relevant code) HtmlSelectManyListbox list = new HtmlSelectManyListbox(); HtmlOutputText headerText = new ...
stackexchange/codereview
Hallo experts, I've tested what's happing with my app when the iPhone is switched off while the app is active. For this purpose I logged the callback methods of the app's lifecycle in the xcode debugger console. The result was: When I press the on/off button of the device for some time applicationWillResignActive is ca...
stackexchange/codereview
I want to develop native c++ windows application using windows API. but i find it being difficult because i am unable to render the window and drag and drop components, change the location etc.. How can i view, drag and drop components like i can do in C# ? May be there is no way to do. if so, what is the fastest proc...
stackexchange/codereview
I'm having hard time figuring out why execution times of similar queries differ so much from each other. I have a simple SELECT query like this: SELECT `location_id`, `datetime`, `year`, `month`, `load` FROM load_report_rows WHERE location_id = '16583' AND load_report_id = '1' AND year = '2010'...
stackexchange/codereview
I know how to embed an image, but I want to change an image to any of the embedded images on request (a function call). [Bindable] public var icoEstado:Class; [Embed(source="src/assets/etapa.n.png")] [Bindable] private var estadoN:Class; [Embed(source="src/assets/etapa.ok.png")] [Bindable] private var estadoOk:Class;...
stackexchange/codereview
I have a 32 bit build on FreeBSD v8.1 and attempt to run it on a 64 bit FreeBSD v8.1 and it fails: [si-fbsd8x64b ~] flume --version ELF interpreter /libexec/ld-elf.so.1 not found Abort trap: 6 Can this work, if so, what change do I need to make to enable it?
stackexchange/codereview
I have an application that uses WebServices to send database records (as an array) to the client, yet even when sending only 1000 records it seems to be really slow. The server is running on an IIS 7 and the client is a WPF application. Basically, how do I speed this up. Do I have to write a custom compression class or...
stackexchange/codereview
I found this some time ago and have been using it since; however, looking at it today, I realized that I do not fully understand why it works. Can someone shed some light on it for me? ORDER BY s.type!= 'Nails', s.type!= 'Bolts', s.type!= 'Washers', s.type!= 'Screws', s.type!= ...
stackexchange/codereview
I am getting following exception when trying to load a XML Schema file in Resin 3.0.25 container. The schema file does not refer anything external besides XML Schema namespace (http://www.w3.org/2001/XMLSchema). The XML Schema file is valid and exact same code works when using a Jetty container. The machine that runs ...
stackexchange/codereview
We're using memcached from PHP. I've been trying to figure out why we're seeing some issues where memcached doesn't seem to be updating. Can you think of any reason why a call to memcache->replace() wouldn't actually update the object? We're simply calling memcache->replace() on an array type object. The array does...
stackexchange/codereview
I have some pretty important stored procs that I want to setup automated tests for. I'm using VS2010, Sql Server 2008, MSTest, TeamCity, and PSake. Are there any great tools or frameworks out there that do this?
stackexchange/codereview
I need to design a .Net Form for a C# 3.5/winforms application.This form would enable the user to manually enter data and on clicking save button on this form, an xml would be generated with the schema as shown below: <Request ID="1" Type="testType" requestedBy="admin" Date="20081128 19:30:00" date="20100122 00:00:00">...
stackexchange/codereview
I am looking to make a small application that allows a person to access files on their computer remotely. The files are served up by a daemon running on the machine and serving files to a web server on demand. What sort of protocol is ideal for this kind of purpose? I don't want to use raw sockets (or FTP) to try and ...
stackexchange/codereview
I have a question about placement of javascript. The function nqi_search works fine when it lives outside of a.js file. It fails, without errors, if it is moved into my1.js, before the jquery files, or into my2.js after the jquery files. I've had similar problems before. Are there rules about what can and cannot go i...
stackexchange/codereview
Hi I have a textbox in a RadGrid which is required only when another control which is a dropdownbox has a certain value. I think the best way to make use of a CustomValidator here but you need a RequiredFieldValidator to make the Custom one fire. However this is not going to work for me because the field is only requir...
stackexchange/codereview
I've been through answers to a few similar questions asked on SO, but could not find what I was looking for. Is there a more efficient way to generate 8 character unique IDs, base 36 (0-9A-Z), than generating a unique ID and querying the DB to see if it already exists and repeating until you get a unique ID that has no...
stackexchange/codereview
I am wondering if there is a way to programmatically clear a single DNS cache entry in both Windows and Linux. Or if there is some other way to force a gethostbyname call to not use the local cache. Clearing the entire cache would not be ideal. Thanks.
stackexchange/codereview
I need to represent the following diagram: Each X will be an image button. I was thinking of making three tables with one column each and have each cell height be half the height of the table. The problem is that the table needs to be able to stretch or shrink because I am worried about getting everything on the scr...
stackexchange/codereview
I have 2 tables UnitProd and Unit. Unit = unitproductivityid,unitid, unitnumber, fleet UnitProd = unitproductivityid, day, shipweight, stops I have multiple units in each table and I am trying to do group by functions to get counts of different things.(The tables have more fields than specified this is just example pu...
stackexchange/codereview
My existing layout is a stack of two divs - g:layers in a LayoutPanel. The top div should be as big as it needs to be to contain its contents. The bottom div should take up the rest of the space on the screen, without causing scrollbars to appear. The contents of the top div can change, so the size of the top div can...
stackexchange/codereview
My apache HTTP client is reading data from a server which is sending HTTP streaming (in form of chunked data) to us. I have a input stream and Buffered Reader to get data, and reading this data using Buffered Data readLine method. InputStream inputStream = httpEntity.getContent(); br= new BufferedReader(new InputStream...
stackexchange/codereview
Is there a way to convert a drop down menu to be a list using jquery... so: <select> <option>1</option> <option>2</option> <option>3</option> </select> to <ul> <li>1</li> <li>2</li> <li>3</li> </ul> Thanks
stackexchange/codereview
I want to compress all my js and css files for a project and bundle into one file (one js and one css file). Which one do you recommend for a Rails 3.0 out of http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html and http://synthesis.sbecker.net/pages/asset_packager and why?
stackexchange/codereview
I'm new to IBM Rational Application Developer. I'm running RAD 7.5.5 and want to use GWT as the front end for an application I'm writing. What I'm asking is basically if someone has had experience with this, and if so, explain in a few simple steps how it's done or maybe refer me to an example somewhere online where th...
stackexchange/codereview
I've read Apple don't allow you to create your own e-commerce iPhone app and integrate into Paypal, some payment gateway and you should only use/ go through the app store using the storekit. How do other companies such as Amazon do it? Any links to any extra reading would be great, Thanks in advance.
stackexchange/codereview
What is the easiest way - preferably just using SQL Server Management Studio - to insert text into a Text type column (text, ntext, varchar(max), nvarchar(max)) from a file. Say a have a table textFileContent(id, textData) and want to do insert into textFileContent(textData) values([data read from a file, complete fi...
stackexchange/codereview
There is a remote system sending data to my server via UDP and I'd like to "capture" this data, it's sent to non-specific ports. I know the sender (IP:Port) but the port they send to is variable. I have no idea which language this should be done with, but I'm open to any. The server runs CentOS. The end goal is to rec...
stackexchange/codereview
I am currently using VIM in the terminal and have perfect syntax highlighting happening. But then when I try to use gvim no matter what type of file or how many times I type: ":syntax on" I don't get any syntax highlighting. Any ideas anyone? Thank you. Here is my .vimrc for those who are interested: " Turn on pathogen...
stackexchange/codereview
I got a form with a number of buttons on it (assume 20). In the middle, I got a User Control which is completely empty. The question is: how can I make it so that when the User Control is clicked, it will get keyboard focus? Reason: I paint shapes in that User Control, with my mouse. The shapes are actually other User...
stackexchange/codereview
I am trying to automate a step of doing some things with JMX. It works for development environment. but when it comes to Production which is protected behind firewall, i need to make a SSH tunnel and then only i can access the JMX console. Earlier, i used putty or ssh to create tunnel and run my java program locally. S...
stackexchange/codereview
Good Morning Community, I have a problem, because I have implemented an CoverFlowViewController.m with an Delegate method, but the Debugger NEVER jump in this method, does anyone know why? Here is the code: - (void)viewDidLoad { [super viewDidLoad]; UIButton *weiter = [UIButton buttonWithType:UIButtonTypeRounde...
stackexchange/codereview
I have two class as trial.java and ImageWoLab0.java(Image without lable 0).When I run my application I am getting error as : The application has stopped unexpectedly!! public void onClick(View v) { switch (v.getId()) { case R.id.btnSequence: Intent intent1 = new Intent(); intent1.setClass(...
stackexchange/codereview
Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices The Scenario I have an analytics account i have set up at, say, some-name@gmail.com with password as pass123 I also know the table id,say ga:30037474 My question is can I pull data like // Load the Google data JavaScript client library. google.load('gdata',...
stackexchange/codereview
<?php class jokz { static public $val='123'; static public function xxx() { jokz2(self); } } function jokz2($obj) { echo $obj::$val; } jokz::xxx(); ?> it returns fatal error, cause the class "self" couldn't be found... so.. how can i make that work? passing a parameter by reference in func...
stackexchange/codereview
This may look complicated, but I am really just trying to select all records and their children from A where certain conditions exist in their children. Looking for the syntax I can add to the A variable that allows me to filter a bunch of conditions (like a specification pattern?) If you have a nested view like this:...
stackexchange/codereview
I'm using jQuery's autocomplete, but have found a performance-related issue - if I input 'abc', it will be scanning by 'a', by 'ab', and by 'abc', at a once, how can I stop the previous 'a', 'ab' when ajax calling is doing searching by 'abc'? The similar case is: I use jQuery DataTables, and want to do some searching l...
stackexchange/codereview
I have a control bind to an index property of an object which implements INotifyPropertyChanged. The problem is, I don't know how to notify the property changed signal for that particular index string. I was told that I can use OnPropertyChanged("") to notify the whole object need to be changed. But what I need is some...
stackexchange/codereview
I query an Oracle database using PHP but at a certain point, probably dued to the fact that the PHP code is very complex, I get a memory leak. I'm working to solve this but I ask you: if I convert all the complex PHP code to C code and I call an "exec" from PHP when needed, do I gain something in performance and memory...
stackexchange/codereview
I am trying to read from a file and match for a certain combination of strings. PFB my program: def negative_verbs_features(filename): # Open and read the file content file = open (filename, "r") text = file.read() file.close() # Create a list of negative verbs from the MPQA lexicon file_negat...
stackexchange/codereview
Basically, I'm looking for a function to perform the following generateToken(128) which will return a 128-bit string consisting of integers or alphabet characters. Clarification: From the comments, I had to change the question. Apparently, I am looking for a string that is 16 characters long if it needs to be 128 bits...
stackexchange/codereview
I'm doing an implementation for a path planning algorithm. I'd really like to be able to load in a 2d "environment" in vector graphics (svg) format, so that complex obstacles can be used. This would also make it fairly easy to overlay the path onto the environment and export another file with the result of the algori...
stackexchange/codereview
My previous impression of RequiredFieldValidator and similar have been that they show you an error label and set Page.IsValid false and that is it. Meaning they leave the rest of the task (preventing the use of wrong input data) to you. But today I have realised say if you use a DetailsView to insert a new record to a ...
stackexchange/codereview
I have a couple of pages with a rather simple design. A div contains an iframe or some basic form elements (a textbox and a select with a button). When I'm working on this via http://localhost/myapp everything works perfectly IE 8, FF, Chrome - it all works. However, when I switch to my machine name OR FQDN of the serv...
stackexchange/codereview
Using this ajax request I am returning a view fragment of populated html to insert into a particular div within the layout. my question is how do I declare #theDiv, I have the id available at the point where the view fragment is constructed (within the view_Controller). Ideally I would return some json at the same tim...
stackexchange/codereview
Trying to get adjacent characters in a string including blank spaces. the 3 characters to the left and the 3 characters to the right... maybe using regular expressions and JavaScript split() to get adjacent characters in string? var str = "one two three four five", array = str.split(""); but missing the blank...
stackexchange/codereview
I have a WCF service that exposes some methods with WebInvoke and POST method, this has been working on a Windows 2003 server machine for some time now, the thing is that I have to migrate the service to a new windows 2008 server machine and this is where I'm getting the issue, I get error 400 Bad Request when I try to...
stackexchange/codereview
<Border Name="ItemBorder" Margin="5 5 0 5" BorderBrush="Black" BorderThickness="1" Height="75" Width="75"> <Border.Background> <SolidColorBrush x:Name="ItemBorderBrush" Color="LightBlue"/> </Border.Background> <ContentPresenter/> </Border> <ControlTemplate.Triggers> <EventTrigger RoutedEvent="someEvent"> ...
stackexchange/codereview
When using the ORM NHibernate, what are the standard or best open source methods for propogating changes to the schema to application users who have an existing version of the software? If I need to add or remove properties from an existing class, how can I properly handle those changes for users who are using a previo...
stackexchange/codereview
I have a win32 app which uses DialogBox() to display its main window. I now want to start this app up with the dialog box invisible, and later set it visible with SetWindowPos(hDlg, HWND_TOPMOST, ... Unfortunately http://msdn.microsoft.com/en-us/library/ms645452(VS.85).aspx The function displays the dialog box (reg...
stackexchange/codereview
I have some code which re-arranges some items on a form, but only one SQL query. All my tables aren't locked before the code runs but for some reason I get an error when running: DoCmd.RunSQL ("Select * Into MasterTable From Year07 Where 'ClassName' = '7A'") Error: The database engine could not lock table because i...
stackexchange/codereview
Friends, I have a non-blocking TCP socket (on AIX). When I attempted connect() I got EINPROGRESS. My question is if I call recv() before connection completion, what would be the (most apprpriate) error code? I saw that, in case connection fails, and I call recv(), I got ECONNREFUSED; means I got an error corresponding ...
stackexchange/codereview
When I edit T4, the script is executed every time I switch to another file. It is OK for quick simple scripts, but some scripts take long time to execute. Is there a way to disable this behavior? I want the script to run only when I save T4 file or manually choose "Run Custom Tool" from the menu.
stackexchange/codereview
we have a a pretty large SVN repository (50 GB, Over 100000 revisions). Working with it is pretty slow and my guess is that the reason for this is the flat directory structure in db/revs and db/revprops (Where each revision is one file). We use the FSFS format with SVN 1.5 (On a linux server) but the repo was created w...
stackexchange/codereview
i have a list: IEnumerable<Person> people and i want to get this: IEnumerable<Dog> peoplesDogs where Dogs is a property of a person object and also a IEnumerable<Dog>
stackexchange/codereview
C# WinForms: When I open my form for the first time, frm1.Hanlde is Ok but when I close my form and open it again,the value for handle is throwing an exception of System.ObjectDisposedException .... what are the things I should consider for debugging and fixing it?
stackexchange/codereview
Let's say I want to first select rows which have download_link the same. Then, I want to keep the one that has lowest primary id, and throw away the rest. Is there an easy SQL statement for this? Would this work? delete from mytable where id not in (select min(id) from mytable group by download_link);
stackexchange/codereview
How can I wrap an interactive tclsh session with TclDevKit? With TclPro this: prowrap -out shell -uses tclsh -startup "" some.tcl wraps some.tcl, and when I call ./shell it launches an interactive tclsh session. When typing source some.tcl from that shell it calls the wrapped file. So -startup "" tells TclPro not to u...
stackexchange/codereview
I'm making a Deck class for a C++ program. It needs to have two methods: one to pop a card off the top of the deck, another to shuffle the deck. I'm concerned with the latter. Cards are represented as integers 1 to 52 inclusive. What is the fastest algorithm to shuffle the deck (assuming a 'good' level of randomness)?
stackexchange/codereview
I have the following DIV <div id="products"> </div> #products { height: 102px; width: 84%; padding:5px; margin-bottom:8px; border: 1px solid #EFEFEF; } Now inside the DIV, I am dynamically generating 4 links. But sometimes there could be more or less than 4 links. How can I change the CSS to dynamically ...
stackexchange/codereview
I have to get how many Saturdays and how many Sundays in a given month and pass it to for loop. My input can be like this HowmanySaturdays("Feb,2010"); or HowmanySaturdays("02,2010");
stackexchange/codereview
How can I create a CCSprite that scales the image to fit within input bounds, i.e. if I want a CCSprite that is width = 70 and height = 50 and scales the image in the file to 70,50. Is there a simple way to do this other than compute the scale factor from the image's size in comparison to the desired final size?
stackexchange/codereview
Lets say i have a form like: <select id="model"/> <input type="text" id="serial"/> <label>Packing <div id="packing" name="packing"></div></label> <br/> <input id="pack1" type="radio" class="pack" name="pack" value="OK" />OK <input id="pack2" type="radio" class="pack" name="pack" value="NG" />NG i'm using barcode scanne...
stackexchange/codereview
No matter which way i turn the iPad, the viewcontroller.interfaceOrientation always returns 1. Anyone know why this is?
stackexchange/codereview
How can I compare two images and determine if they are 100% similar, or only altered in color, or cropping?
stackexchange/codereview
I want to be able to call avrdude from SCons as a target. For example, running scons erase-device should run the avrdude command for doing so. I'm attempting to do this by creating Builder objects that call avrdude and adding them to the environment. # a string forming a base avrdude command that we can just add on to...
stackexchange/codereview
I'm pretty fresh to the Common Lisp scene and I can't seem to find an quick way to get the nth element from a list and remove it from said list at the same time. I've done it, but it ain't pretty, what I'd really like is something like "pop" but took a second parameter: (setf x '(a b c d)) (setf y (popnth 2 x)) ; x is ...
stackexchange/codereview
I am using Linux and there is a custom function of which returns an ASCII int of current key sort of like getch(). When trying to get used to it and how to store the password I came into an issue, my code is as follows: int main() { int c; char pass[20] = ""; printf("Enter password: "); while(c != (int...
stackexchange/codereview
I basically want to make an intent and pass it to a service from my BroadcastReceiver's onReceive(). So far I always used View.getContext(), but here, I'm stuck. How exactly can I get the context so I can use public Intent (Context packageContext, Class<?> cls)?
stackexchange/codereview
EDIT: SOLVED. Thank you everyone! I am building a shell script and I am stuck with comparing. I call it via ./myscript 1000, where 1000 is in a variable called y. The problem is I need to make it so if I pass any 4 digit number to my script such as 0001 it will not be modified by my if statements, but when I call my sc...
stackexchange/codereview
I have a build in TeamCity which runs against a project file names Web.csproj (inside a "Web" folder in the root) and targets "Package". It runs just fine and I get a nice Web\obj\Debug\Package folder with all the expected content. I then have a second build with an artifact dependency on the above path which is intend...
stackexchange/codereview
I'm reading a file into memory in C by copying the bytes to a dynamic array. Currently, I realloc() one byte larger each time a new byte comes in. This seems inefficient. Some suggest (I can't remember where) that doubling the memory each time more is needed is good because it's O(log n) allocation time, with the only ...
stackexchange/codereview
I've been looking for techniques on how to manage static content for a web application. From what I've found, there is the pure OO approach, packaging all specific requirements in object metadata and generating a single CSS and JS file for each request path either in real time or compile time. There is also the techn...
stackexchange/codereview
Which database is performance oriented, MySQL or MariaDB? Which storage engine is better for all of the following? databases that should be scalable fast in query processing have community support have a lot of tutorials or any other alternatives present?
stackexchange/codereview
I don't know Git all that well and for one of our repositories, I made a mistake. I committed and pushed changes to a branch named "core". But then I realised that my changes should not be there - I should've created a new branch several revisions ago, say, "core-experimental". To explain, I have: A---B---C---D---E ...
stackexchange/codereview
Say i have this: <div id="outer"> <div id="inner"> </div> </div> The outer div's dimensions are 500x500, and the inner is 100x100. I'm trying to employ the following: $('#outer').click(function() { $('#outer').fadeOut(); }); But when you click on the 100x100 area of #inner, it still fades out. How to prevent t...
stackexchange/codereview
I have a simple delete method, it gets the id from a table that lists all from the db: @RequestMapping(value = "/personagem/excluir.htm") public ModelAndView doExcluir(@RequestParam("id") int id) { logger.info("Recebendo parametro: {Id => " + id + "}"); try { Personagem p = getPersonagemService().buscar...
stackexchange/codereview
I have a text file like 11111 10001 10001 11111 I need to read this into a 2d array of integers I already have the code to read the file Dim fullpath = "Path to File" Dim objReader As StreamReader objReader = New StreamReader(fullpath) But i dont know what to do after that. I'm know this is something simple but i ...
stackexchange/codereview
The Silverlight strategy has shifted to Windows Phone, and for cross-platform web development, it's HTML 5. http://www.zdnet.com/blog/microsoft/microsoft-our-strategy-with-silverlight-has-shifted/7834 I'm just starting to get comfortable with the idea of developing desktop line-of-business apps with Silverlight out-of-...
stackexchange/codereview
I have a DetailsViewController class and an ItemsViewController class. (Both derived from UITableViewController) Selecting any of the items in the ItemsViewController brings up the DetailsViewController. In order to get it to show the new data on any but the first one, I currently have - (void)viewWillAppear:(BOOL)...
stackexchange/codereview
I have a project where it rotates 2 spindles 360 degrees both at different speeds over time. I have noticed that it runs well on simulator but when I test it on a device it is significantly slower. The timing taken to make the first 3 full rotations on the simulator and the device are: On Simulator: 7.0, 7.2, 7.2 On De...
stackexchange/codereview
I have a UL nested inside a DIV, with the DIV having padding set to "0 20px". I'd like to have this one child UL overflow over the parent DIV and extend out to the page left and right. How can I do this?
stackexchange/codereview
int i; int main() { return i; } After -static compile readelf -l shows program headers from elf: Elf file type is EXEC (Executable file) Entry point 0xxxxx30 There are 6 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD ...
stackexchange/codereview
I know I can use a combination of ant & flex ant tasks for automating builds. However, I'm unclear on how to compile all the mxml and actionscript files of an app. For example, does the build file below compile just the Main.xml file or all files in the app? <project name="flex-app-builder"> <property name="FLEX_HOME"...
stackexchange/codereview
I have set up Eclipse to run as smoothly as possible because I was having a lot of problems with it running out of memory in my last machine. One of the configurations was to have it automatically refresh the workspace every time I save. I don't know if that is the problem but I thought I's mention it. Here's a screens...
stackexchange/codereview
how can i make a Critical System Process so that it can't be ended from task manager in C#?
stackexchange/codereview