instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I need to extract requests from a log file that look like this :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vehicleRegistration>
.... XML in between ....
.... XML in between ....
.... XML in between ....
.... XML in between ....
... at nth line there is line like this <vehicle id="2312313"></vehicle>
....... | stackexchange/codereview |
I have a function defined in SQL Server (that takes a string and a int) how do I call it with ADO.NET?
(If it is 100% same as calling a stored proc, please just say so, as there a lot of examples on calling stored procs about)
| stackexchange/codereview |
Possible Duplicate:
How to Login twitter using Oauth from my android application?
I would like to know how can I tweet using oAuth in Android.
What should be the callback url??? Please help!!!
| stackexchange/codereview |
In my project, there are a number of images having back and forward images and all images having a common layout. On clicking back and next buttons new images should be displayed.
private int imageCounter = 0;
private ImageView imageView;
private int[] imageArray = {R.drawable.image_w_lbl_0, R.drawable.image_w_lbl_1,};... | stackexchange/codereview |
I have an nsarraycontroller * ctrlr1 fetching its data from core data entity obj1 witch has a relationship one to one to obj2 also fetched by nsarraycontroller * ctrlr2
in ctrlr i have set via IB a fetch predicate like this
inactive == 0 && obj2.active ==1
I have a view with bound properties for obj1 attributes and if... | stackexchange/codereview |
I have a Wpf Form with a tabControl with 2 tabs "Customers" and CustomerDetail"
First Tab is a list of all Customers populated in a datagrid and delete Button as a dataTemplate on each line of the grid.
Selecting a customer it gets the customer details and moves to the second tab.
This all in MVVM and the delete button... | stackexchange/codereview |
When the time return from ajax,
I should return as json encode, and use jquery.parseJSON
and use document.createElement and append the data inside the Element that just created.
or it is better to return as html text?
example,
<div id="contentcontainer"></div>
$.ajax({
type: "POST",
url: "some.php",
data: "... | stackexchange/codereview |
I have an issue in getting a string that has been converted from a float to display in a label in a custom cell in a UITableView.
The program will crash if I try to assign the value of the float to the label. If I leave "strAIAreaIncrease = @"6.5%";" uncommented, the program works fine - but without the calculated val... | stackexchange/codereview |
Excuse me. I'm a beginner of spring. Now, there's some question in it.
I'm reading Spring in action and try the code in MyEclipse. But when I try the code of replaced-method, there's a error.
<bean id="harry" class="com.springinaction.sprintidol.Magician">
<property name="magicBox" ref="magicBox" />
<proper... | stackexchange/codereview |
I am working in cakephp, and I have the following two lines in my /app/config/routes.php file:
/**
* ...and setup admin routing
*/
Router::connect('/admin/:controller/:action/*', array('action' => null, 'prefix' => 'admin', 'admin' => true, 'layout' => 'admin' ));
/**
* ...and set the admin default page
*/
Router... | stackexchange/codereview |
What is the easiest way to print out a tree in it's tree-structure? Such as...
some root
/ | \
child1 child2 child 3
/
anotherchild / \
yup another
Even formatting it by hand is hard. How can y... | stackexchange/codereview |
In JUnit4 you can write parameterized unit tests by providing parameters collection in one method, which will be passed to the constructor of the test and testing in another method. If I have a parameter for which I expect an exception to be thrown, how do I specify that?
| stackexchange/codereview |
I cannot find out what I am doing wrong. So far, I have tested this only in Internet Explorer, so it could be that Firefox and Chrome aren't parsing the code properly.
http://ontwikkelomgeving.wijzijnblits.nl/ginkelbemmelen/luuk/
My problem is that the bxSlider on the page will start approximately 20px to the right. I ... | stackexchange/codereview |
I know of several tools/libraries that can do this but I want to know if this is possible with just opening up the file as a text file and looking for a keyword.
| stackexchange/codereview |
I'm using solr 1.4 and using QueryElevation Component for guaranteed search position. I have around 700,000 documents with 1 Mb elevation file. It turns out it is quite slow on the newrelic monitoring website:
Slowest Components Count Exclusive Total
QueryElevationC... | stackexchange/codereview |
I have a ListView in details view so it has 2 columns - but with the text which populates the list, it is more important to see the end of the text instead of the beginning. Is there any way to set the listview to show the right-side of the text by default (ie have the ... at the beginning instead of the end if the te... | stackexchange/codereview |
I'm practising with C, writing simple programs. The little program below should just get 3 numbers from the user and multiplicate them. My problem is that i'm a bit confused about the variable type i must use. I want the program to take any number such as 5, 5.673434, 99.123 and so, calculate with them and print ou... | stackexchange/codereview |
I'd to read a file, e.g. test.test which contains
#test:testdescription\n
#cmd:binary\n
#return:0\n
#stdin:|\n
echo"toto"\n
echo"tata"\n
#stdout:|\n
toto\n
tata\n
#stderr:\n
I succeeded in taking which are after #test: ; #cmd: etc...
but for stdin or stdout, I want to take all the line before the next # to a... | stackexchange/codereview |
i have an image which width is 213 and height is 200 when i echo the image from my database and i resize it (echo "<img src='company/$present' width='70' height='68'/>";) the image was not as clear as when it was 213 * 200. how can i make the image smooth like the original after i have resize it to 70 * 68 or rather wh... | stackexchange/codereview |
I am wondering what my best option is to delay the loading/playing of a movie that is set to autoplay?
The videos are all external if that matters; is there any kind of code I can fire within a javascript function once I want it to start? That would be ideal.
| stackexchange/codereview |
I have a constructor
public Track(string path)
{
if (!File.Exists(path))
throw new FileNotFoundException("File not found", path);
if (!IsAudioFile(path))
throw new Exception("Illegal Audio Format");
_path = path;
_id = Guid.NewGuid();
_rate = 0;
_... | stackexchange/codereview |
We are building a database of scientific papers and performing analysis on the abstracts. The goal is to be able to say "Interest in this topic has gone up 20% from last year". I've already tried key word analysis and haven't really liked the results. So now I am trying to move onto phrases and proximity of words to ea... | stackexchange/codereview |
Why does this work:
<?php include "includes/top_nav.php"; ?>
and why does this not work for me?
<?php include "http://localhost/includes/top_nav.php"; ?>
| stackexchange/codereview |
I'm writing a basic writing app in C# and I wanted to have the program make typewriter sounds as you typed. I've hooked the KeyPress event on my RichTextBox to a function that uses a SoundPlayer to play a short wav file every time a key is pressed, however I've noticed after a while my computer slows to a crawl and che... | stackexchange/codereview |
Is it possible to add a property to the existing asp:BoundField control without creating a brand new instance to which I'd have to declare <tst:BoundField></tst:BoundField>?
If so, can someone provide an example?
| stackexchange/codereview |
Preamble
As a part of a project I'm working on I am trying to provide a convenient way to search for images in our system. We currently provide searching by various types of user added metadata (e.g. title, description, keywords) and by various metadata which we extract (e.g. EXIF, IPTC, XMP, etc). I would also like ... | stackexchange/codereview |
I am implementing a graphic based application. I am very new to graphics, I need to display a dotted circle in my view. Is it possible to draw a dotted circle using graphics?
| stackexchange/codereview |
If I create a PNG image in Photoshop and lower the opacity so it's 85% opaque, how can I maintain that same level of transparency when I add it to my iOS app?
I'm trying to set the background image of a UILabel to be this image, but the background image for the UILabel is fully opaque in my iOS app. Here's my code...
... | stackexchange/codereview |
Does anyone know the location of the V4.master for Sharepoint 2010?
| stackexchange/codereview |
I'm using delphi 2009 and have created a popup menu.
object PopupMenu1: TPopupMenu
object lmm1: TMenuItem
Caption = 'lm/m'#178
end
end
as soon as i have a "²" in a popup menu, it'll appear as "lm/m²(L)". using maManual for AutoHotKeys doesn't help...it still appears the same way. it's like hotkeys because ea... | stackexchange/codereview |
Sometimes interviewers ask how to sort million/billion 32-bit integers (e.g. here and here). I guess they expect the candidates to compare O(NLog(N)) sort with radix sort. For million integers O(NLog(N)) sort is probably better but for billion they are probably the same. Does it make sense ?
| stackexchange/codereview |
Can the form-login tag make use of URLs to external resources?
I have two Web services running in separate application contexts [Case #1]. They could be on separate machines as well [Case #2].
I want the first service to use Spring Security to enforce authentication for certain methods. I want the second service to be ... | stackexchange/codereview |
What would be the best way to simulate bullets in bulletphysics?
Small capsule bodies?
Some sort of ray tracing?
Something else?
Some example code would be nice, if possible.
| stackexchange/codereview |
Hey,
I'm using MediaPlayer to play a regular ShoutCast stream. The code is straightforward with prepareAsync() and a handler to start the playback. While it works flawlessly with some streams like DI.FM or ETN.FM (http://u10.di.fm:80/di_progressive), with others (http://mp3.wpsu.org:8000/) it won't go past the prepare ... | stackexchange/codereview |
I have a issue with a Jquery DatePicker popup dialog being clipped by an iFrame as shown in this image. Each tab is an iFrame and the DatePicker dialog gets clipped. Ive set the DatePicker z-index to 9999999 without effect. So I thought I'd add CSS padding to the ui-datepicker-div element like this;
$("#actiondate").da... | stackexchange/codereview |
Is it possible to fade out a Javascript embedded Youtube video using Javascript/jQuery? At the moment I have embedded a video and when I try to fade it out using jQuery's fadeOut() function, it just disappears instead of fading. Is it possible to have a fade out effect on it using Javascript/jQuery or any other Javascr... | stackexchange/codereview |
I need to write a server in C++/Obj-C that can receive streamed data from several clients built in Java and C++. The challenge: I need to serialize and deserialize the data structures efficiently. One C++ client will be generating 128x96x2-dimensional float arrays, plus some metadata, about 30 times per second (video... | stackexchange/codereview |
if every web page has a user new message notice(new message count, like message(1)), how can i pass variable '{ new_message_count: 1}' to every view
i want to using middleware:
class page_variable():
def process_request(self, request):
# put the variable to the request or response so can used in template variable
... | stackexchange/codereview |
Hi
I want to get x and y position of screen where the user has touched. How can I do that?
| stackexchange/codereview |
I am writing a real-time, interactive 3D visualization program and at each point in the program, I can compute 2 images (bitmaps) that are meant to look 3D together by means of stereoscopy.
How do I get my program to display the image pairs such that they look 3D on a 3D TV? Is there a platform independent way of ac... | stackexchange/codereview |
I am currently working on PHP sites (80% work is on heavy database queries) and also working with Zend Framework.
In my 2 yr development experience I never worked on any CMS like Wordpress, Magento but I have idea how they work.
Shall I continue with what I am doing or shall I switch myself towards CMS.
Guide me which... | stackexchange/codereview |
I want to know how can I add a delay (ex:200ms) to some received raw data before send it again through the network.
Is it possible to use memory to store bits(8000) in memory before send it.
| stackexchange/codereview |
I have a desktop application that on first execution prompts for the connection details to the database and then I want to retain them for future use (as an encrypted string) so that the next time the user starts up the app they can be re-used. Now the client runs a citrix environment which I haven't really had any ex... | stackexchange/codereview |
Im trying to convert XML to HTML, here part of the XML im trying to parse
<entry morerows="1">data 1</entry>
<entry morerows="2">data 2</entry>
<entry morerows="3">data 3</entry>
<entry morerows="4">data 4</entry>
This is supposed to turn into
<td rowspan="2">data 1</td>
<td rowspan="3">data 2</td>
<td rowspan="4">dat... | stackexchange/codereview |
How would you go about describing the architecture of a "system" that splits a sensitive file into smaller pieces on different servers in order to protect the file?
Would we translate the file into bytes, and then distribute those bytes onto different servers? How would you even go about getting all the pieces back t... | stackexchange/codereview |
I wonder if is possible to animate the fill color of a path I have drawn using CoreGraphics?
I am drawing this:
Simple drawing with Quartz - Core Graphics
and I want to change its fill color from white to let's say gray.
Is this possible?
I know the existence of view.layer.content property but Is this useful here? Th... | stackexchange/codereview |
I am trying to get my head round Objective-C Protocols. I have looked at the Apple docs and also relevant chapters in a couple of books that I own, but nearly always protocols seem to be defined in terms of using them as in interface to delegate objects. I understand the concept of creating the protocol definition:
@pr... | stackexchange/codereview |
I have a table with cells of variable-length text-content. I want to find the height of the tallest cell and then make all the cells that height. How can I do this?
| stackexchange/codereview |
On MSDN, for the WM_KEYDOWN defition it says the bits of lparam contain:
Bits Meaning
0-15 The repeat count for the current message. The value is the number of times the keystroke is autorepeated as a result of the user holding down the key. If the keystroke is held long enough, multiple messages are sent. Howev... | stackexchange/codereview |
I am trying to do a demo on a android device, but the screen is too small so is kinda hard to do a demo let say in a meeting room with 12 people. Although I can pass the device around the table or just simple borrow or get more devices for the demo purposes.
I understand there are devies where you can buy special USB c... | stackexchange/codereview |
Ok, I have a renderer class which has all kinds of special functions called by the rest of the program:
DrawBoxFilled
DrawText
DrawLine
About 30 more...
Each of these functions calls glBegin/glEnd separably, which I know can be very inefficiently(its even deprecated). So anyways, I am planning a total rewrite of the... | stackexchange/codereview |
I see that javascript is becoming more and more practical as a server side language with the advent of node.js and v8. As far as frameworks go, most of what I've seen are minimalistic frameworks. Even express.js, one of the more promising ones, is a little bare.
Are there any full stack server-side frameworks out there... | stackexchange/codereview |
I am practicing writing an app which use MySQL to manipulating data.
My concern is if my client machine doesn't have have MySQL pre-installed, it's not be able to run my app, is it?. So is there anyway to embed the database server right into the app, or to run the app without the data server. I wonder how all the soft... | stackexchange/codereview |
How do I get a node.js server to redirect users to a 404.html page when they enter an invalid url?
I did some searching, and it looks like most results are for Express, but I want to write my server in pure node.js.
| stackexchange/codereview |
On my localhost, if I do echo $a->b where $a is not an object, it shows nothing. But on another server, it gives me an error of "Trying to get property of non-object". How to ignore this error? I just want a quick and easy way to make the code running, and I know what I am doing.
| stackexchange/codereview |
I have 2 xml files 1 with 115mb size and another with 34mb size.
Wiile reading file A there is 1 field called desc that relations it with file B where I retrieve the field id from file B where desc.file A is iqual to name.file B.
file A is already too big then I have to search inside file B and it takes a very long ti... | stackexchange/codereview |
I have small program which just creating intial context in unmanaged environment i.e. outside the container.I have been using Websphere 7.0.
I have written following program to do the connection with application which is running on WAS 7 using corba url,
package snippet;
import java.util.Hashtable;
import javax.namin... | stackexchange/codereview |
I'm taking a class on Finite Automata. I'm preparing for a midterm and am having trouble creating Grammars for specific languages. While I find the simple ones very intuitive, when they become more complex, I don't seem to know where to start. For example:
L = { w E { a,b,c}* : nb(w) != na(w) + nc(w) }
The answer is:
... | stackexchange/codereview |
i would like to create a simple charting system in .NET considering the portability in Linux and OsX.
How to approach ?
Is enough to study the System.Drawing component ?
I would like to create chart like "line", "bars", "candlestick" for an home made stock charting software...
Thanks in advance
UPDATE: I would like t... | stackexchange/codereview |
I have been trying to figure out how to properly use scopes for the following example.
Have a table Notes which has a Polymorphic Association to Items. But I also allow there to be "Global" Notes, so When I do a scope on Notes, I would like it to return the Polymorphic Association to Items and the NULL Polymorphic fi... | stackexchange/codereview |
I have a PNG watermark image with transparent background. But randomly it generates a white background instead of staying transparent.
// Watermark
$watermark = imagecreatefrompng($docRoot . '/images/misc/watermark.png');
list($mwidth, $mheight) = getimagesize($docRoot . '/images/misc/watermark.png');
// Combinde wate... | stackexchange/codereview |
In a Java .properties file we can do single line comments with #.
Is there any way by which we can do multi-line comments?
| stackexchange/codereview |
It is a very simple multithread program. It will create two threads and run.
In the thread, it will copy the argv0 to origname.
At the first time, the origname is correct.
But after entering into the while loop, the origname will be corrupted by the sprintf.
It will print like:
Hello World! It's me, thread #0 ./mul... | stackexchange/codereview |
I am tring to call the cmd command "move" from python.
cmd1 = ["move", spath , npath]
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
p = subprocess.Popen(cmd1, startupinfo=startupinfo)
While the comammand works in the cmd. I can move files. With this python code ... | stackexchange/codereview |
I'm giving a try to Aptana Studio 2 IDE, but before changing my current IDE (which is NetBeans 6.9) I'd like to know if it does a good integration with Zend Framework. Can I use Zend_Tool for example?
What do you guys think about Aptana + Zend Framework coding?
| stackexchange/codereview |
I want to use some of Google Guava methods and classes in my client-side GWT code, but I'm concerned about client code size. For example, if I use Strings.nullToEmpty method, does the entire Strings class get compiled or only the nullToEmpty method?
| stackexchange/codereview |
I've developed a WP7 app that uses the MediaElement to progressively download and play mp3 files from external URIs. I've been testing this on the emulator regularly and it works like a charm... But after getting my actual WP7 today, loading the external MP3 gives me a "AG_E_NETWORK_ERROR"
After searching around, I've... | stackexchange/codereview |
I have a Bool that I am using in an if statement. The variable starts out as NO, then I enter the if statement, which executes if the bool's value is NO. Then I change the value to YES at the end of the if statement so it won't execute again, standard stuff.
What I want to do is somehow change that variable YES at the... | stackexchange/codereview |
How i can use Intellisense for Razor in Visual studio.
| stackexchange/codereview |
I have one misunderstanding of cache level 1. So far I've seen that cache level 1 is used only to put off sql invocations until a transaction is flushed.
But what about objects? For instance, I use only cache level 1. If I were to load the same object several times within 1 transaction, what would happen? Does hibernat... | stackexchange/codereview |
Here is the problem. I am using MVVM on a WPF project and using MVVM light. I have a grid in a user control that returns results from a search. I want the users to be able to click on the grid and have the row available for the parent view to use (from a menu) and have it so users can double click on the row and open i... | stackexchange/codereview |
My current working code:
EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("TT-SpringMVCPU");
EntityManager em = emf.createEntityManager();
I would like to replace that with something like this:
@PersistenceContext(unitName = "TT-SpringMVCPU")
private EntityManager _entityManager;
Wh... | stackexchange/codereview |
I have a variable
var fval = 4;
now I want out put as 4.00
| stackexchange/codereview |
I have set up a cdn for my site and I use it for css, js, and images.
The site serves only those files
My problem is that with the page speed plugin in firefox
for my image requests I see a cookie
Cookie fc=fcVal=7985951017741594560
does any one know where it comes from ?
Thanks
| stackexchange/codereview |
I'm running a long batch on my Grails app. The service contacts a web service and download xml that is store locally in the grails app (in the db).
The objects downloaded are quite big and complex, and the app processes them and create local domain objects.
I'm using Grails 1.2.2 because I couldn't upgrade my app to th... | stackexchange/codereview |
I have a Maven project with two Maven modules - a Restlet API (com.letsjoin.api) and a GWT web client (com.letsjoin.web). Restlet allows for GWT serialization but the GWT client has to (as far as I know) have knowledge of the Restlet models.
However I cant see the API from the GWT client even though they are both part ... | stackexchange/codereview |
I am trying to create a function that generates a random integer out of the bytes I get from /dev/urandom. I am doing this in PHP and it currently looks like:
public static function getRandomInteger($min, $max)
{
// First we need to determine how many bytes we need to construct $min-$max range.
... | stackexchange/codereview |
what's the best method to return a variable length string array
| stackexchange/codereview |
i have no idea to fix this issues , any idea?
Incident Identifier: 778B453C-111C-4575-919E-0C73BDD679B4
CrashReporter Key: cc6fa311f4d178cd2a1c946ced641fab87e0181d
Hardware Model: iPhone2,1
Process: PantipCafe [792]
Path: /var/mobile/Applications/DBFF211E-F7F2-439A-91FF-E118F476567A/PantipCafe... | stackexchange/codereview |
I have a UITableView and I would like it ho have the same effect when scrolling as the picture. (Shadow below UINavigationBar and above of UITableView)
How can I do this?:
| stackexchange/codereview |
I have made one application in iOS 4.0.In that application using Photo Library i am getting image in ImageView and from the Button Click I want to set that image as a iPhone Background so how can I do this using iOS 4.0?
| stackexchange/codereview |
I am trying to use a rewirte rule in .htaccss so when a user enters "/page/my-name", it will direct him to "file.php?name=my-name"
I use the following:
RewriteRule ^page/?$ file.php?name=1 [NC,L]
However, it redirects me only when I go to "/page" and not when i'm going to "/page/my-name".
| stackexchange/codereview |
I'm working on some code I would like to integrated in a library. I would like it to have no outside dependencies and be standards compliant. I want to use a template to create a unique type to allow compile time type checking.
Update:
The code below is from msdn, it is not what I try to do. What I try to do is use a t... | stackexchange/codereview |
I am running into a peculiar issue with an app which has multiple Activities. I have a screen manager class that is bound to a service. The service polls a server for data. The screen manager starts Activity A, B, or C, based on the data. It will also allow the user to select to display the other Activities or it ma... | stackexchange/codereview |
I have just started using maven and have question.
My pom.xml contains tag "developer" with the full details of the team. What should I do to make this list visible on my project site? I know how to add a menu item to site.xml. But where this item should refer?
I found only one project in Jakarata that does it: the ma... | stackexchange/codereview |
I've noticed that if my audio files are in caf 11250Hz mono they perform worse than 44.1Khz mono. Tracing it with profiler I can see that for the low sample rate files one of the longest traces ends with LinearConverterInt32. This isn't present in the 44.1KHz trace.
I want to use the lower sample rate files to keep fil... | stackexchange/codereview |
While I'm having no problems parsing incoming XML, I can't seem to construct valid outgoing xml. This is my code:
myXML =
<INFO>
<imgname>testimage.jpg</imgname>
<totalCols>{totalCols}</totalCols>
</INFO>;
//The XML up to this point traces the desired output, it's when I try to append with the for loop ... | stackexchange/codereview |
Also are there any randomized algorithms for that. I need to find a single cycle as fast as possible, not all cycles.
| stackexchange/codereview |
So there is great chat server example, but how to create multyile rooms on same chat server with boost asio?
| stackexchange/codereview |
I'm building a Flex project with a lot of embedded bitmaps and such. The usual method for getting to the bitmaps in Actionscript seems to be to do something like
[Bindable] [Embed(source = '../lib/WhiteFencePost.png')]
private static var clsObstacleFencePost : Class;
var bitmap : BitmapAsset = new clsObstacle... | stackexchange/codereview |
hey.
I'm reading an image from Isolated Storage when the user clicks on an item like this:
using (IsolatedStorageFile currentIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var img = currentIsolatedStorage.OpenFile(fileName, FileMode.Open))
{
byte[] buffer = new byte[img.... | stackexchange/codereview |
I have a pretty simple MVC 2 form. It has two dropdowns, user and role. The employee dropdown passes validation, and the role dropdown does not, regardless of what I select. There is no default "empty" option although I plan to implement one, which is why I need the validation to work. It fails both client and server... | stackexchange/codereview |
I've recently started trying to use Hibernate, but am doing so in Netbeans. This has left me having to use this example project to try and get me up and running.
Unfortunately, at the step "Enumerating Film Titles and Retrieving Actors Using an HQL Query" my HQL queries do not give results and instead fail, with the e... | stackexchange/codereview |
I'm finding myself with a bit of anarchitectural problem: I'm working on a smallish project that, among other things, involves data entry and persistance, with a DAL using a webservice with a custom JSON protocol. So far, so good, and it would be a relatively simple matter slapping together some quick&dirty DataTable ... | stackexchange/codereview |
I'm trying to find out if it's possible to create custom point markers (from some image files) in Matlab with Mapping Toolbox.
So far, I didn't find anything about this in their documentation. Online searches only yielded:
No. The marker shapes are hard-coded and you cannot add new ones. If you want a custom
mark... | stackexchange/codereview |
Given 2 2x2 Numpy arrays, each element having a value between 0 and 1, I would like to find the one array of the 2 that has the maximum value, and do that comparison element-wise. For example, given:
A = [[.6 .2] [.3 .4]] and B = [[.4 .5] [.7 .1]], I would like something like: [[A B] [A B]] back. Ideally, the output wi... | stackexchange/codereview |
I have a desktop with Windows server 2008 and I want to be able to remote in to my desktop from my laptop and control it, but still display on the desktop monitor (as well as laptop monitor). I know I can accomplish this with some VNC, but is there some way to accomplish this using remote desktop connection or any othe... | stackexchange/codereview |
I am developing an android application where i need to determine the free space available on the sdcard. Can anyone give me some suggestion regarding this please.
thanks
kaisar
| stackexchange/codereview |
I have a factorial code
class FactorialTest {
public static void main(String args[]){
System.out.println(factorial(10));
}
public static int factorial(int N){
if (N <= 1) return 1;
return N*factorial(N-1);
}
}
It was traced using Trace, and this is the output:
Does that mean ... | stackexchange/codereview |
I tried writing this small trigger in MySQL,
CREATE TRIGGER `leg` BEFORE INSERT ON `bckoff`
FOR EACH ROW BEGIN
INSERT INTO `bckoff` SET `step`=1;
END;
after which I get this error.. I'm a newbie to MySQL.. so please help me out here..
#1064 - You have an error in your SQL syntax; check the manual that corresponds t... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.