instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a set of tables in SQL Server 2005 which contain timeseries data. There is hence a datetime field and a set of values.
CREATE TABLE [dbo].[raw_data](
[Time] [datetime] NULL,
[field1] [float] NULL,
[field2] [float] NULL,
[field3] [float] NULL
)
The datetime field is unfortunately not a unique key... | stackexchange/codereview |
That'd be neat. I couldn't find one using google though. Anyone heard or seen something for Pluma or wanna make a plugin?
(Pluma is the text editor for Mate Desktop. Mate Desktop is a fork of Gnome 2, so Pluma is a fork of Gnome 2's Gedit).
| stackexchange/codereview |
i am creating an application in c#.
I do want to get email id of public profile....
is it possible to get email id through search profile linkedin api or any other alternative.
thanks with regards.
plz do reply.
| stackexchange/codereview |
I have a maven project built in '/some/where' which I wish to run/execute from another directory '/foo/bar'. I am currently running commands such as:
cd /some/where
mvn exec:java -Dexec.mainClass=org.xmlcml.cml.rest.Client
with
/some/where/pom.xml
I wish to do something like:
cd /foo/bar
mvn -p /some/where/pom.xml ... | stackexchange/codereview |
I'm trying to create a jquery plugin
initially the plugin is used like
$('element').plugin;
Now, i want to extend it further to call specific operations like
$('element').plugin.create;
or
$('element').plugin.delete;
any way of doing this?
| stackexchange/codereview |
I am studying in Android programming and would like to develop an useful Android application for my project, but I still could't get any good ideas after searching on the internet.
Any suggestions that an app is useful in our dailylife even achieve the society such as about public health, education, security?
| stackexchange/codereview |
This is the case according to a thread in 2009 here,
is it still the case now?
Anyone managed to make it work with thread safe PHP?
| stackexchange/codereview |
In an embedded (Windows CE) C++ project, I have to resample an arbitrary sample-rate down (or up) to 44100 Hz.
Is there a free and portable C/C++ library for audio resampling?
| stackexchange/codereview |
From SwingLabs Forum, it seems that there is no plan to make JXTreeTable sortable.
From the thread, another alternative is
"You could use JXTable & GlazedLists TreeList to make a TreeTable"
However, I prefer to have a API which is ready with sortable feature, instead of the need of building by hand.
I was wondering, is... | stackexchange/codereview |
I have started a new ASP.NET 4 WebForm application. By default, the Site.Master file contains the following menu:
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="Hom... | stackexchange/codereview |
After carefully reading this KB article I noticed an interesting statement there. The article says that if I have an STA thread and that thread doesn't dispatch Windows messages then that thread
will be unable to receive COM events form a COM server
can cause message broadcasters to hang (and thus sometimes cause a de... | stackexchange/codereview |
Just now I received my new laptop from my office. When I open Visual studio, in the tools I am not able to see the Connect to Team Foundation Server option. Can any body help me out how to do that? in VS2008
| stackexchange/codereview |
I'm trying to create a query on a very simple table (organisations)
I have the columns
Organisation, Manager, Superior_Organisation
CEO
Leadership Team, David, CEO
Production Management, Alex, Leadership Team
Production Site 1, Francoise, Production Management
Production Site 2, Steve, Production Management
Production... | stackexchange/codereview |
I have an sql server view which I've recently added a field to the underlying table and the view itself. I can open the view just fine on the server, but when I try to run it in SQL management Studio on my PC, I get the following error:
> Msg 7352, Level 16, State 1, Line 2
> OLE DB provider 'SQLOLEDB' supplie... | stackexchange/codereview |
I have this weird bug with UITextField, sometimes there's a line (actually more of a transparent strip) through it. Does anyone know how to get rid of it?
Here's the picture
A link to xib file: http://db.tt/7l2Bq42
A link to the code: http://db.tt/DW0mlqQ
Edit: The bug is now solved. I'm creating this view programmati... | stackexchange/codereview |
I want to draw an arrow using Graphic fillpolygon. But my arrow head is in a reverse side. Any idea?
int xpoints[] = { 20, 30, 30, 35, 25, 15, 20 };
int ypoints[] = { 10, 10, 30, 30, 45, 30, 30 };
int npoints = 7;
g2D.fillPolygon(xpoints, ypoints, npoints);
| stackexchange/codereview |
I have built a Windows Service and for some reason, when I start the service it starts up and then shuts right back down. I’ve tried googling why this is happening. Nothing is appearing in any system logs. Here is my Start/Stop code for the service. I would expect that since I have created a File Listener that it s... | stackexchange/codereview |
I am currently developing a an application to allow users to search through a database of documents using various paramaters and returning a set of paged results. I am building it in PHP/MySQL, which is not my usual development platform, but its been grand so far.
The problem I am having is that in order to return a f... | stackexchange/codereview |
I want to get the Path a image of the photo albums from the iPhone device. and also i need the extension of that image with their name.
| stackexchange/codereview |
when i run rails g delayed_job,i always get the "Couldn't find generator delayed_job",i already add the "get "delayed_job"" to my gemfile...
is there someone tell me why? how can i resolve this problem,thanks...
Now the delayed_job is fully supported with rails3
| stackexchange/codereview |
I like to use Docky in my Ubuntu 10.10. i like to remove the top and bottom Ubuntu bar.
Also i like to know how to revert back (bring it back)
| stackexchange/codereview |
There is a few questions about this, but mostly lacking details and no definitive answer.
So I am using xhr long polling, my poll is pretty basic and just looks like
var poll = function() {
$.get(url, function(data) {
doStuff(data);
poll();
});
};
I start that from a script that is imported just before ,... | stackexchange/codereview |
This is for a 2D game with OpenGL:
Is it with using OpenGL possible to display a texture absolutely unfiltered, not streched or blurred?
So that when I have a BMP and convert it into an OpenGL texture, and then retrieve that texture and convert it back, I have no modifications or quality / data loss?
| stackexchange/codereview |
This is a newbie question but I hope I can express my question as clearly as possible.
I'm trying to do pattern matching in C++.
I've downloaded the Win32 version of PCRE from here and I've placed the downloaded pcre3.dll and pcreposix3.dll files into the folder of Dev-CPP's lib folder (I'm using Bloodshed Dev-C++ 4.9... | stackexchange/codereview |
I am being returned this time format from an API:
1287498792000
Can anyone advise what format that is and how I would parse it in PHP?
| stackexchange/codereview |
If I run
"Year 2010" =~ /([0-4]*)/;
print $1;
I get empty string.
But
"Year 2010" =~ /([0-4]+)/;
print $1;
outputs "2010". Why?
| stackexchange/codereview |
#include <stdio.h>
main()
{
printf("az\b\b");
printf("s\ni");
}
above program when compiled with gcc gives output
sz
i
Can someone help us out to understand the output
| stackexchange/codereview |
We use Team Foundation 2008, but we now have Macintosh machines on our network. We use Team Explorer 2008 on our Windows machines, but I can't find an installation for TE 2008 for the Macintosh. Is it advisable to install Team Explorer 2010 on the Macintosh connecting to the TFS 2008?
| stackexchange/codereview |
Using C# I need to convert an integer to it's word representation, and only go up to 5 to 10. Is there a better way to do it than this?
static string[] numberwords =
{
"zero",
"one",
"two",
"three",
"four",
"five"
};
public static string GetNumberAsString(int value)
{
return numberwor... | stackexchange/codereview |
I need to read (scan) a file sequentially and process its content.
File size can be anything from very small (some KB) to very large (some GB).
I tried two techniques using VC10/VS2010 on Windows 7 64-bit:
Win32 memory mapped files (i.e. CreateFile, CreateFileMapping, MapViewOfFile, etc.)
fopen and fread from CRT.
I ... | stackexchange/codereview |
I'm using a PHP contact form and it is sending mail to non gmail addresses, however when I set it to send to a gmail address, it doesn't get delivered (it doesn't even appear in junk mail).
I've heard of issues like this before - I'm not a web developer/expert so can anybody suggest code/configuration changes to my PHP... | stackexchange/codereview |
Here is the problem string:
$.ajax(......
,success:function(msg){
var obj = eval('['+msg.d+']');
},
....
}
msg.d contains something like:
new Person(2, 'Name Surname','This is just string came from Par'is at Sat'urday');
How can pass the javascript problem ?
| stackexchange/codereview |
I can't manage to get shown all the query when I make a research in Solr.
This is my log4j.properties.
log4j.rootLogger=INFO,CONSOLE
log4j.logger.org.springframework=INFO,CONSOLE
log4j.logger.org.apache=DEBUG,CONSOLE
#log4j.logger.CONTENT=INFO,CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.app... | stackexchange/codereview |
I am trying to profile pages in my application. I would like to ask for best practices to follow to do this job either
at an early stage by the developer using tools as Chrome Developer tool
at the staging phase by using third party tools and methods
Which are the best way to do this? What are tools available?
| stackexchange/codereview |
I come from a .Net background and recently x-training to java.
I wanted to develop an Android application that required simple functionality to communicate with a server. For example, functionality such as post a username/score to a website (or service), or request information such as top 10 scores.
What type of commun... | stackexchange/codereview |
been looking into bug tracking solutions. searched the net, other sites, as well as other replies/questions here,
i've got a project that will have multiple subprojects. each subproject will have a need to have its' own bug tracking space. ie, projectA, projectB, and projectC will be worked on by different people, and ... | stackexchange/codereview |
Is there a tool to check if a Python code conforms to the law of Demeter?
I found a mention of Demeter in pychecker, but it seems that the tool understands this law different to what I expect: http://en.wikipedia.org/wiki/Law_of_Demeter
The definition from wikipedia: the Law of Demeter for functions requires that a met... | stackexchange/codereview |
I am trying to sort an array which has properties like
it increases upto some extent then it starts decreasing, then increases and then decreases and so on. Is there any algorithm which can sort this in less then nlog(n) complexity by making use of it being partially ordered?
array example = 14,19,34,56,36,22,20,7,45,5... | stackexchange/codereview |
I want to find whether ms office is installed and version of it...
how can i do it ?
| stackexchange/codereview |
I noticed pylint doesn't handle well the case of:
@property
def foo(self):
return self._bar.foo
@foo.setter
def foo(self, foo_val):
self._bar.foo = foo_val
Though it's a perfectly valid case syntax since python2.6
It says I defined foo twice, and doesn't understand the ".setter" syntax (Gives E1101 & E0102).
Is... | stackexchange/codereview |
I'm trying to maintain someone else's code right now where that person is a WPF expert. I, on the other hand, am not. :)
The code uses the IValueConverter to convert a state enumeration into a boolean which governs whether or not a UserControl is displayed on the screen.
I've discovered a shortcoming that a single en... | stackexchange/codereview |
I've never really used the DOM parser before and now I have a question.
How would I go about extracting the URL from this markup:
<files>
<file path="http://www.thesite.com/download/eysjkss.zip" title="File Name" />
</files>
| stackexchange/codereview |
I am writing a Mac application, in Cocoa, that needs the ability to 'lock down' the computer. Basically, I am writing a small agent that will sit in the background and when prompted, throw up a window that covers the entire screen, including the status bar, and shows a message (something like "give me back my computer... | stackexchange/codereview |
I'm trying to display multiple anchor links within the same div container...specifically pdf files. I'm fairly new to jQuery and was hoping there'd be a way to do it.
| stackexchange/codereview |
got this coredump when the application started.
Core was generated by `/opt/SURGE/bin/SIM.run 0 0 1'.
Program terminated with signal 7, Bus error.
#0 0xf79d7ddb in __gxx_personality_v0 () from /opt/SURGE/lib/libTsdThreadedInput_ix86-linux-sles9-mt.so
(gdb) bt
#0 0xf79d7ddb in __gxx_personality_v0 () from /opt/SURGE/l... | stackexchange/codereview |
Some background. I currently have a class that is instantiated multiple times and inside the class resides a Bitmap member variable that is set using BitmapFactory.decodeResource on instantiation. At any time I may need to apply a matrix to the bitmap and it's currently done via:
public void applyMatrix(Matrix matrix) ... | stackexchange/codereview |
How do you troubleshoot a WCF Service consumption from the client side (silverlight)
when from the server you can tell that you service works (stepping through) and the client gets an ObservableCollection with nothing in it?
void client_GetAddressesCompleted(object sender, GetAddressesCompletedEventArgs e)
{
... | stackexchange/codereview |
I am working on a task where I should fill in some data in an excel workbook (using .NET) and the existing chart objects would draw line graphs based on the given data. Unfortunately, a macro in the workbook throws an error "Unable to set MinimumScaleIsAuto property of Axis class".
ActiveSheet.ChartObjects("Chart 1").A... | stackexchange/codereview |
Is somebody aware of a tool that lets me browse MySQL-Files without having to import them into my database system?
I'm looking for an easy way to inspect MySQL Backups quickly without having to import them - but still being nicely displayed, so viewing the SQL source is not really an option.
Maybe there's a program tha... | stackexchange/codereview |
I am currently researching the Twisted framework as a way of implementing a network-based backup application, and I would like to achieve something that I cannot find any examples of on the net.
I plan to implement the system using the Perspective Broker, but I will also need a way of transferring binary files from the... | stackexchange/codereview |
I used the layout resource editor to modify the main.xml layout file to add a second
TextView control to my app. by default, its set to something like @+id/TextView01. How do I Set the text attribute of the TextView control to my newly created String resource? I tried going into main.xml and just editing the android:te... | stackexchange/codereview |
I have a system script in perl. I need some equivalent of bash -x to determine what is going wrong with the script. Is there something equivalent?
EDIT: What bash -x does is that it prints each line as it is evaluated. This makes debugging code that is just missing some path variable or file very easy.
| stackexchange/codereview |
My android app is simple : a single activity contains a webview which shows user my website,in it I have a link which when user clicks on it ,the default sms program will be called.
That all works well,but when I return from the sms ,It restarts the program(call the onCreate() method ) instead of returning to the origi... | stackexchange/codereview |
I am writing unit test cases for my Service Class. Below is my code in controller:
TuneController
def list = {
}
def listData= {
playerId="6600AE"
def tuneInstanceList = new ArrayList<Tune>()
tuneInstanceList = tuneService.calculateId(String playerId)
def editResult = [total: tuneInstanceList.siz... | stackexchange/codereview |
I have a web application that will use a few different cultures, one of which is es-US (Spanish United States). However, Windows XP do not have any support for the culture es-US. To work around the problem, I've found out that one is supposed to be able to use the CultureAndRegionInfoBuilder. So I looked into CultureAn... | stackexchange/codereview |
I am trying to find a quick elisp fix that makes w3m under Emacs swap default behaviour of UP/DOWN arrows (moving between hyperlinks in loaded page), with C-n/C-p (moving to next and previous line in the page). These key-bindings must only apply when focus is in a w3m buffer.
Intuitively this configuration would work... | stackexchange/codereview |
The following script portion read each line in $next. But when I try to grep particular pattern i.e. "MO" in $next, the error is shown on standard output as:
grep: 40922|OPR: No such file or directory
grep: MO: No such file or directory
grep: 12345|OPR: No such file or directory
grep: MO: No such file or director... | stackexchange/codereview |
How much data can be malloced and how is the limit determined? I am writing an algorithm in C that basically utilizes repeatedly some data stored in arrays. My idea is to have this saved in dynamically allocated arrays but I am not sure if it's possible to have such amounts malloced.
I use 200 arrays of size 2046 holdi... | stackexchange/codereview |
I would like to know if and how it is possible to detect if my application have run in the past on a given android device. I would like every time the phone reboots to be able to check if my application has run on the past and retrieve some private data. If not just create those data.
| stackexchange/codereview |
I have a 1page website that is driven by jquery scrollTo plugin which, I guess, doesn´t matter in my case. The problem seems to be the 1page design. If I click the tab, the entire design is messing up because the tab jumps to whatever it can find to focus on. That includes places that are outside of the current viewpor... | stackexchange/codereview |
I have a Django project, let's say "project1".
Typical folder structure for applications is:
/project1/
/app1/
/app2/
...
__init__.py
manage.py
settings.py
urls.py
What should I do if I want to hold all of my applications in some separate folder, 'apps' f... | stackexchange/codereview |
I've been using Object as a way to have a generic associative array (map/dictionary) since AS3/Flex seems to be very limited in this regard. But I really don't like it coming from a C++/Java/C# background. Is there a better way, some standard class I've not come across... is this even considered good/bad in AS3?
| stackexchange/codereview |
I am using BASH 4. I am trying to find a way to legitimately prepend output to indicate the type of output that it is. I am able to do this with something kind of like this...
ls -l /tmp/abcdefgh 2> >(sed 's/^/stderr: /') 1> >(sed 's/^/stdout: /')
stderr: ls: cannot access /tmp/abcdefgh: No such file or directory
ls... | stackexchange/codereview |
How would I set up an index based on lower case only?
Even though the actual field contains both upper and lower case letters.
Also, can I run a query and have only the lower case index value returned?
| stackexchange/codereview |
I built a report with one parameter being a menu of names, and the default value being <ALL>
Clients wanted the default to be the person logged in.
I can easily get User!UserID the default for a text box, but if I change the menu from names to IDs, it will not pre-select it on the menu. Instead, it adds the "" thing t... | stackexchange/codereview |
I have two tables linked by a foreign key. Example:
"CREATE TABLE one (id INTEGER PRIMARY KEY, data REAL, time TEXT NOT NULL DEFAULT (datetime('now')));"
"CREATE TABLE two (id INTEGER PRIMARY KEY, parent INTEGER, CONSTRAINT fc_two FOREIGN KEY (parent) REFERENCES one(id));"
So I'd like to do an INSERT INTO with an em... | stackexchange/codereview |
I want to disable logging for one property in nhibernate.
I am logging all the nhibernate queries , but, when i insert a huge binary file, it logs all the bytes. So i want to log all the queries and params except the binary ones.
Thanks.
| stackexchange/codereview |
I understand how addListener works within the map itself, but how can I get an info window to open up when I click an element outside the map? For instance, a div with the id #test?
| stackexchange/codereview |
If I have a MultiValueField on one of my search indexes, and I want to display each value in the search results, how would I do that? It seems like something is not being formatted appropriately or I am somehow misunderstanding the MultiValueField?
class PageAttachmentIndex(indexes.SearchIndex):
# This should refer... | stackexchange/codereview |
I have to download big file (1xx MB) using PHP.
How can i download this without wasting memory (RAM) for temporary file ?
When i use
$something=file_get_contents('http://somehost.example/file.zip');
file_put_contents($something,'myfile.zip');
I need to have so much memory that size of that file.
Maybe it's possible t... | stackexchange/codereview |
I'm working on a site that will create pre-set packages of items. To start, I'm using Amazon to test the idea, pulling some affiliate sales, and then I'll fulfill orders myself if the idea deems successful.
My goal is to have a "buy now" type button, and upon clicking, the user will arrive at an Amazon checkout now pag... | stackexchange/codereview |
Consider a very large Java VM with a great many threads running a web server.
Now consider a sample of the output generated by jmap -histo that looks something like this:
4: 5989163 191653216 java.lang.ThreadLocal$ThreadLocalMap$Entry
10: 46786 49012000 [Ljava.lang.ThreadLocal$ThreadLocalM... | stackexchange/codereview |
I have a list of order objects. Each order object has 5 instance variables. Is there a way I can sort this list based on any of these instace variables? I need to implement the comparable interface. But in that case, how could I sort on a specific variable?
| stackexchange/codereview |
I am looking for a case study of companies that use Cloud message queueing.
What are the benefits of such a service over rabbitmq (if any)
I know there are several mature services like SQS of amazon, OnlineMQ and Linxter.
| stackexchange/codereview |
Below is a bit of code that I managed to get to work to hide the soft keyboard on android. It works by the user clicking anywhere on the screen (outside of a EditText input/s) to hide the IME soft keyboard. It registers a OnTouchListener to the ScrollView (id="@+id/sv_background) which when the screen is touched it hid... | stackexchange/codereview |
i see this warning
How to do fix it?
Temp += (Table[i, temp3] - (MSB[i] ^ 0x1));
warning: left-hand operand of comma expression has no effect
| stackexchange/codereview |
I have a spring web application running on JBoss which is creating a csv file containing a report. The application must provide a link to the report when it finish its generation, and the user should be able to download it.
I am thinking to write the file directly inside the war, so then we could read it from the web a... | stackexchange/codereview |
I am developing a drag and drop app. I have a DIV that is draggable along the document and there are some other divs in the document, I can drag one div to other divs, but how can I find the id of the div to which I dropped the dragging DIV,
I just want to know the id of the target DIV after placing another DIV over it... | stackexchange/codereview |
Does anyone know why the site loads in this portion of the page? I am gussing it is jQuery related. It is live here : http://littleboxcreative.com/lilboxer/
The site loads in the portfolio section instead of the home section where i would like it to load.
| stackexchange/codereview |
I'm very curious to know how this process works. These sites (http://www.sharkscope.com and http://www.pokertableratings.com) data mine thousands of hands per day from secure poker networks, such as PokerStars and Full Tilt.
Do they have a farm of servers running applications that open hundreds of tables (windows) and ... | stackexchange/codereview |
I recently profiled some code using JVisualVM, and found that one particular method was taking up a lot of execution time, both from being called often and from having a slow execution time. The method is made up of a large block of if statements, like so: (in the actual method there are about 30 of these)
EcState ... | stackexchange/codereview |
Breaking down the MS RBTree (an internal .Net abstract class), I have discovered that one method returns TreePage<K>:
private TreePage<K> AllocPage(int size)
{
...
}
Within the method, variables are declared as TreePage...but the class is not defined that way:
private sealed class TreePage
{
...
}
Yet, when I... | stackexchange/codereview |
I have a modal view controller which is crashing when it dismisses itself. The error is EXC_BAD_ACCESS (yipee). I am tryin got use NSZombie to work out the problem. I get am getting the following :
2010-10-20 17:15:58.936 [24058:207] AddRunningClient starting device on non-zero client count
2010-10-20 17:16:06.846 [240... | stackexchange/codereview |
I downloaded beautifulsoup.py for use on a little project I'm making. Do I need to import this .py file in my project?
Do I just copy and paste the code somewhere inside my current python script?
Thank you for the help.
I found this but it doesn't say anything regarding Windows.
http://mail.python.org/pipermail/tutor... | stackexchange/codereview |
$("#list").slideDown("slow"); //code to slide down the div dag when it is clicked.
It is working fine but when I clicked on the tag, the browser is suddenly scrolling up to the top.
So I have to scroll down to the tag to see its contents.
Please help me.
Thanks,
Raj
| stackexchange/codereview |
What is the uniqueness and advantage of SAS MACROs over SAS procedures? If macro's purpose is to reduce the effort to repeat tasks for different inputs, can't this be done by written as procedures too?
| stackexchange/codereview |
I am trying to let the finger drag CCSprite with the following code:
-(BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event {
CGPoint location = [touch locationInView: [touch view]];
CGPoint convertedCoordinate = [[CCDirector sharedDirector] convertToGL:location];
CGRect redCircleRect = CGRectMake... | stackexchange/codereview |
Last week I started playing around with LAMP Ubuntu and I didnt have any issues. Today some code wasn't working so I tried running this in index.php:
<?php phpinfo(); ?>
This doesn't work when I connect to localhost in my browser, but it works in testphp.php at localhost/testphp.php
Any suggestions?
Thanks
| stackexchange/codereview |
Trying to make a JSONP request to yellowapi (Yellow Pages), even specifying a callback is giving me the "invalid label" error. Here is what I have so far:
$.ajax({
dataType: 'jsonp',
cache : false,
url: "http://api.sandbox.yellowapi.com/FindBusiness/",
data : "apikey="+testingPurposes+"&what="+what+"&where="+where+... | stackexchange/codereview |
Is it possible to add noise to a gradient in CSS?
Here is my code for a radial gradient:
body {
color: #575757;
font: 14px/21px Arial, Helvetica, sans-serif;
background-color: #2f3b4b;
background: -moz-radial-gradient(center 45deg, circle closest-corner, #2f3b4b 0%, #3e4f63 100%);
background: -webki... | stackexchange/codereview |
In the past I used Sub Sonic which has the activerecord pattern baked into the framework. With Sub Sonic it was very easy to find the "dirty" fields on an update. I now have a need to create an audit table in my application that utilizes Entity Framework 4. Is there a comparable feature in EF 4 that will give me the di... | stackexchange/codereview |
I am trying to add Laplacian smoothing support to Biopython's Naive Bayes code 1 for my Bioinformatics project.
I have read many documents about Naive Bayes algorithm and Laplacian smoothing and I think I got the basic idea but I just can't integrate this with that code (actually I cannot see which part I will add 1 -... | stackexchange/codereview |
I've got some *.xml with elements like :
<app-method name="leave-accrual-status-details" kind="enquiry">
<title>...</title>
<required-roles>
<role name="authenticated"/>
</required-roles>
<asd>
<param name="..." datatype="dt:int" control="hidden" call-kind="..." data-kind="..."/>
</asd>
... | stackexchange/codereview |
I have a xml file with content
<ul>
<li><info>Some text here</info></li>
</ul>
I have parsed the xml file and show this in a page.info is a css class.In the page the text showing with css.When i am editing the content in tinymce editor how i can apply the css in the editor.In the editor the text is showing like <div... | stackexchange/codereview |
I'd like to set up my Bash in such a way that I could yank text from the previous command's stdout. The example use case I'll use is resolving conflicts during a git rebase.
$ git status
# Not currently on any branch.
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as a... | stackexchange/codereview |
What's the best or an efficient method for subtracting a bounding box from another bounding box (I.e. Creating n bounding boxes from a bounding box Boolean subtraction)?
Ideally the resulting bounding boxes are as square as possible so that there are limited 'shard' (I.e. 1width, 1height, 100depth).
| stackexchange/codereview |
Okay, here's a toughie-- I'm capturing the output of cmd.exe just fine, reading from the pipe, yadda yadda yadda, but then a line in the cmd.exe batch file has the audacity to do:
dir err.txt >zz
.. that is, it's redirecting the output of the dir command, which is an internal command inside cmd.exe.
Problem is, this... | stackexchange/codereview |
I'm trying to access command line from a simple Dashboard Widget on Snow Leopard. My intention is to fill the contents of the widget from a command-line script I call. This should be possible.
I'm calling the script every time the widget is shown using it's onshow callback:
if (window.widget) {
widget.onshow = on... | stackexchange/codereview |
I am trying to build wxWidgets 2.8.11 under Cygwin, but the wxWidgets configure step is not generating OpenGL support. Specifically, the build is not generating a library called libwx_mswd_gl-2.8.a.
I suspect that I am missing a Cygwin OpenGL package, but am not sure. I already have the following OpenGL-related packa... | stackexchange/codereview |
A NullReferenceException is thrown by the runtime when I convert XElement into XmlNode using the following function:
public static XmlNode GetXmlNode(this XElement element)
{
using (XmlReader xmlReader = element.CreateReader())
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlReader);
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.