instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I know this might not sound very useful to most people, but i really like having all my code collapsed in VS and it's getting kinda annoying having to ctrl+m ctrl+o everytime i'm closing a document.
Is there some add-in that does this, or can someone give me general tips to create the add-in? thanks
| stackexchange/codereview |
Our dev team recently upgraded solution to VS2010 from VS2008 to use some of the features from VS2010 IDE. But our targeted framework is still .Net 3.5. When dev runs the MSBuild from VS 2008 command prompt to build VS2010 solution, build was successful. but on build server we are getting the below error.
MSB3086: Task... | stackexchange/codereview |
Here's my php code
$values = array(
'php' => 'php hypertext processor',
'other' => array(
'html' => 'hyper text markup language',
'css' => 'cascading style sheet',
'asp' => 'active server pages',
)
);
function show($id='php', $id2='others') {
global ... | stackexchange/codereview |
Subquestioning the answer to my other question:
"Those character literals in your queries are first converted to varchar strings under whatever collation the database is set for, and then your collation cast takes effect."
How to better compare 2 (non-N') symbols using explicitly a collation which is different fro... | stackexchange/codereview |
We hit a strange issue on one of customers servers, where Java encounters "Too many files",
Checking the descriptors via lsof produces a large list of "sock" descriptors with "can't identify protocol".
I suspect it happens due to sockets that opened for too much time, but as our thread dump contains a lot of them, I ha... | stackexchange/codereview |
Ok, this is might sound like a security hole but let's ignore that for a while. I need to allow users to upload a file to my website but I want to be in control of generating that file. I have a form where I want the user to create the new file and then that file should be the one that is uploaded. Is there anyway I ca... | stackexchange/codereview |
This is how we prevent caching of JS and CSS files by browsers. This seems slightly hacky.. is there a better way?
<%
//JSP code
long ts = (new Date()).getTime(); //Used to prevent JS/CSS caching
%>
<link rel="stylesheet" type="text/css" media="screen" href="/css/management.css?<%=ts %>" />
<script type="text/javasc... | stackexchange/codereview |
As a possible alternative to using cron jobs, I found the sleep function. I have never used this before.
If I tell my script to run inside a kind of loop, and inside that loop I have an instruction like this
# sleeps for 86400 seconds or one day
sleep(86400);
will my script be launched again after 1 day? even if don'... | stackexchange/codereview |
i have an scroll view and i am adding few views to that
when the user scrolls how to get the current visible view's tag.
then i can add some thing to that view...
its just like getting the indexpathrow in table view..
how to do that..?
Thanks
| stackexchange/codereview |
The reason why I'm asking this, is because I'm coding in C++, in putty/ssh and I like the fact that I can code from pretty much everywhere without having to install anything.
So I'd like to have something that could help me debugging (viewing LIVE value of a variable, breakpoints, etc)
If you think that there's no such... | stackexchange/codereview |
Is it possible to save large amount of data (about 1-2 mb) in Excel workbook?
Ideally, this data should be tied with a worksheet in the workbook.
CustomProperties are unlikely to support large data.
My data can be presented in following forms: binary, xml, string.
Thanks...
| stackexchange/codereview |
I'm using JQuery to parse some xml and having trouble with the line below:
$(xml).find("ACT:contains(" + selectedAct + ")>SCENE").each(function()
For example, if the selected act is 'ACT I', then the above line finds not only 'ACT I', but also 'ACT II', 'ACT IV', and so on, i.e. it is returning all acts that contain t... | stackexchange/codereview |
Bytecode enhancement seems like a very interesting Java technique, but it has the feel of a bit of "black magic" about it. Are there any disadvantages to using it (other than the fact that functionality is added to classes that is not apparent from the source code)?
Does it cause problems with security, serialization,... | stackexchange/codereview |
Is query tracing on Postgresql possible? I am using 9.0 on windows with OLEDB interface.
Also, I need it to be in real-time, not buffered like it is by default...
| stackexchange/codereview |
And both classes are same, example:
///////////////server.h//////////////
#ifndef SERVER_H
#define SERVER_H
#ifdef WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#endif
#include <boost/shared_ptr.hpp>
#include <boost/asio.hpp>
#include <map>
#include "auxiliar.h"
class ... | stackexchange/codereview |
Can i make wordpress autopost the classic "welcome post" lets say once every week. ? Maybe with a cron job? And then, change the post permalink from a few keywords which i select?
TY
| stackexchange/codereview |
I have got a website where users can post photo's, video's, links, articles and events.
But now comes the hard part (for me):
I want the users to be able to attach photo's, videos and links to events and/or articles.
What is best practice for this? Should i create another table where i link them to each other:
[media2a... | stackexchange/codereview |
is it possible to change keys of a the same HashMap instance during iteration ? Because map entry set don't have a method entry.setKey(). Now what I can think off is create another HashMap...
MultipartParsingResult parsingResult = parseRequest(request);
Map<String, String[]> mpParams = parsingResult.getMultipartParame... | stackexchange/codereview |
Here's the code:
<form method="POST" action="<? echo $PHP_SELF; ?>" enctype="multipart/form-data">
It displays as HTML:<form method="POST" action="<? echo $PHP_SELF; ?>" enctype="multipart/form-data">
PHP works on the rest of my code but this one has me itching my head
EDIT:
Here is the code to display it:
<?
$Assi... | stackexchange/codereview |
I wrote a simple app to send an email via GMail SMTP servers. However, it returns an exception at runtime.
At my workplace gmail is blocked (cannot access gmail.com). Is this error because of that?
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebExceptio
n: Unable to connect to the remo... | stackexchange/codereview |
From what I understood, FatJar is an Eclipse plugin which is based on the OSGi framework. I believe this makes it hard to use outside of an OSGi platform. Also, looking at decompiled FatJar, it seems to be requiring lots of OSGi and Eclipse classes, like org.eclipse.jdt.core.IJavaProject and org.osgi.framework.BundleCo... | stackexchange/codereview |
how can i find the min value in int arry with c#
| stackexchange/codereview |
I've got a little issue that's bugging me today!! I've created a little helper method that I want to ALWAYS return monday as the 1st day of week (i.e. monday=0) but can't seem to figure out where i'm going wrong. I'm setting what I 'feel' is an override of the prevailing culture but to no avail.
Without further ado, t... | stackexchange/codereview |
I'm working on small game in Java(using JApplet) and I want to implement highscores and achievements.
I don't have dedicated server, so I decided to use GoogleAppEngine for storage of player data and after generation of highscores and achievements. I have already found out how to create WebServices on GoogleAppEngine, ... | stackexchange/codereview |
I have a ListView with Extended SelectionMode. By default when I press a left button down it selects an item and when I move the mouse cursor (slowly) it moves the selection (as long as the button is still down).
Since I am implementing Drag and Drop on top of the list it becomes a little annoying. How can I prevent it... | stackexchange/codereview |
Hi
I have an xml like below
<Root><First><id></id></First><Second><a>a</a><b>b</b></Second></Root>
I have to format it into
<Root><First><Second><a>a</a><b>b</b></Second><id></id></First></Root>
can any one tell me how to do this in c# 2.0. ?
| stackexchange/codereview |
I am using $.ajax to post data to the server. However I want to pass an additional parameter to the 'success' callback to tell the callback function the id of the HTML element the response is for.
It is possible? Like:
success_cb(data, elementid)
{
(update the elementid with the server returned data)
}
$.ajax({
... | stackexchange/codereview |
The string-
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ebopIWPoXI0?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ebopIWPoXI0?fs=1&hl=en_US" type=... | stackexchange/codereview |
I am debugging two instances of the same process (run with different command line arguments).
Let us refer to them as agents.
Now while debugging the first instance I am starting the second one. I must add that Image Execution Flags define that the agent be started through a debugger, which is vsjitdebugger.exe.
Now, m... | stackexchange/codereview |
I want to export select * from table results to a text file from the command line in linux. How should I do this?
Thanks,
Jean
| stackexchange/codereview |
I have two projects, one is a library that uses libpq headers and the executable, that links to my library and to libpq, but no matter how I put in the makefile, it just doesn't link the libpq and aways return me an undefined reference error. It links my lib ok.
g++ -o MYAPP main.o -L../Libs -lpq -lMYLIB
both libpq.... | stackexchange/codereview |
I have a problem with criteria and relation between objects.
I present a simple scheme before:
I have 2 objects:
A is the parent
B is the child with a link at parent.
I know how to create a query to have B with A's restriction:
Criteria criteria = this.getSession().createCriteria(B.class);
criteria.add(Property.forName... | stackexchange/codereview |
I have a hopefully trivial question. Currently, my company works with a rather obscure language (SyngergyDE) and we need to call a SilverLight application inside our product. Unfortunately, this obscure 3rd party language only (currently) supports the opening of WPF screens. So with that said, I thought I'd develop ... | stackexchange/codereview |
When you have a one-to-many association in Rails 3 and accept nested attributes with delete, is it possible to know by looking at the objects (the associated object) whether it's going to be deleted or not?
For example:
group.attributes = {:member_attributes => {"0" => {:id => 1, :name => "John"},
... | stackexchange/codereview |
Need help with the following JavaScript function.
when I isolate each as if they were separate functions
(i.e. to remark out all but one at a time).
I do get the expected value alerted.
But when run as block of code only the first value is alerted.
Not able to see what I'm doing wrong
function stateChanged(){
do... | stackexchange/codereview |
Possible Duplicate:
SQL ORDER BY total within GROUP BY
SELECT *
FROM users_pm_in
WHERE uID = '1'
GROUP BY dialog_id
ORDER BY date DESC
Wont work properly. What i want to do is group in to dialog_id.. Then all with the dialog_id sort them by date, and then sort them by date for all..
So:
id | uID | bID | msg | d... | stackexchange/codereview |
i can't figure out, where is the problem
if [ $# -eq 1 ]; then
if [ "$1"=="-h" ]; then
help
else
echo "bad parameter, if you put only one parameter, you can choose only -h"
fi
no matter what i give it as first parameter, script never gets to the else part and every time it is displa... | stackexchange/codereview |
I am working on an update to one of our sites. This version will have unique behaviors based on the host name in the request. In order to test this behavior, I modified my computers host file by adding entries that point back to my computer.
127.0.0.1 newhostname.sample.com
127.0.0.1 oldhostname.sample.com
... | stackexchange/codereview |
I'm trying to load the Tokbox SDK in rails 3. I've placed the library in my /lib directory, so currently my directory structure looks like so:
/lib
opentok.rb
/OpenTok
Exceptions.rb
OpenTokSDK.rb
Session.rb
I'm loading all files in the /lib directory using the following in application.rb:
config.autoloa... | stackexchange/codereview |
Trying to emulate the rollover of a 24 hour clock by hand (with math vs. using the timespan classes). The incrementing part was easy to figure out how to roll over from 23:00 to 0:00 and from, but getting it to go the other way is turning out to be really confusing. Here's what I have so far:
static void IncrementMinut... | stackexchange/codereview |
This is quite a simple question to ask, hopefully the answer is as straight forward! Can you use a Content Query Webpart on Site Collection A to read data from Site Collection B?
If it's not supports right out of the box, are there some configuration options which you can use to make it happen?
Thanks.
| stackexchange/codereview |
I'm trying to add some user controls on a page. Thats easy, I just do it like this.
UserControl block = (categoryblock) LoadControl("categoryblock.ascx");
Panel1.Controls.Add(block);
But i want to access the label controls and more that are inside the categoryblock.ascx.
How would i do that ?
I cant do it like this,
... | stackexchange/codereview |
This is a known question but the best solution I've found is something like:
SELECT TOP N *
FROM MyTable
ORDER BY Id DESC
I've a table with lots of rows. It is not a posibility to use that query because it takes lot of time. So how can I do to select last N rows without using ORDER BY?
EDIT
Sorry duplicated question o... | stackexchange/codereview |
Possible Duplicate:
How to get the row number of ID of a sql table?
Say: i need to delete the 5th row, or the 6th or the 20th...???
| stackexchange/codereview |
Background
I admit, I don't use unit testing properly. I'm working on a monolithic Windows Forms application, and it was never written with Unit Testing in mind.
However, for the last 18 months or so, all my code has been written in a significantly more compartmentalised (read: good) manner. I have a Unit Testing class... | stackexchange/codereview |
I have seen in some applications they link directly to the Review page of their application. It also states here that developers should "Provide a way for users to buy your trial application before the end-of-trial."
Does anyone have any information how I can do either of these? I'm guessing it's just a link to the mar... | stackexchange/codereview |
I'm using .NET 3.5, C#, and WinForms.
My grid has lots of columns: SellerName, BuyerName, LoadType, LoadName, DriverName, CarSerialNumber, etc. I want to filter the BindingSource. I did this using ComboBoxes which is filled on DropDown with the grid cells' values, but it's not practical and makes for a bad-looking form... | stackexchange/codereview |
In approx 6 months when IE9 is unleashed web developers could have to support up-to 4 versions of IE.
This is very likely to increase support, development and testing for many.
I know Win7 has XP mode to run IE6. IE8 has an IE7 compatibility mode (which is not perfect), what happens when IE9 is released ?
Will there be... | stackexchange/codereview |
I'm starting a new project and the client wants to use the Entity Framework for their business layer. They are currently using .NET Framework 3.5. Would it be worth it to upgrade to 4.0 for the Entity Framework? What are the significant changes between the two versions?
| stackexchange/codereview |
I have a site running on an EC2 image I have bee updating for over a year. This week I have been busy building a new image, to move to 64bit instances. I've got everything installed, the code running, and I'm testing the site under the new setup. I start getting lots of weird problems and eventually realize it only hap... | stackexchange/codereview |
I'm currently learning to program in C. In one of the tasks in my assignment, I have to make a histogram (drawn by basic console output, like this: http://img703.imageshack.us/img703/448/histogram.jpg) to measure the number of characters in a text file (standard for this assignment is 1.3 MB). I did make a function lik... | stackexchange/codereview |
Is it possible to listen for a specific DOM element to be loaded? I have a window.onload event that is called when the whole page loads, but I'm looking for a way for it to be called for each DOM element that gets loaded. (Does onload not bubble up?)
Example:
function init() {
alert(this.id); // Should be in contex... | stackexchange/codereview |
I have a page with multiple textboxes and each has a button associated with it. This works as a search 'hub', I suppose, where the user can search by ID, name etc.
When entering a search term for e.g. name however, pressing enter 'clicks' the very first button on the page (ID search), causing an error if the associated... | stackexchange/codereview |
In windows 2003 and windows XP you could right click on an assembly (.dll) go to properties, click on the version tab and then you would see 3 different version numbers: Assembly version, file version and product version.
If you take that same file and look at its properties in windows 2008, you will only see file ver... | stackexchange/codereview |
using a method :layout_for_namespace I set my app's layout depending on whether I am in frontend or backend, as the backend is using an namespace "admin".
I could not find a pretty way to find out which namespace I am, the only way I found is by parsing the string from params[:controller]. Of course that's easy, seems ... | stackexchange/codereview |
I'm running 5.2.14 with IIS on Windows 7. Used the Windows Platform Installer.
When I write a script that uses cURL or file_get_contents() and run it via the commandline, everything works great.
If I use the same code in a web page, running in IIS, the request always fails. cURL returns a response code of 0. file-get_c... | stackexchange/codereview |
I have a TabControl with ItemsSource set to ObservableCollection<BookTab> and using ContentTemplateSelector to create different tabs.
class BookTab
{
public string Name { get; set; }
public string Type { get; set; }
public object Data { get; set; }
}
<TabControl Name="tabControl"
Conten... | stackexchange/codereview |
I have an existing MFC application which I'm trying to extend to accept command line parameters and run unattended.
I need to kick off some events after the InitInstance() has finished and the existing GUI has been fully loaded. I've looked at winmain.cpp, but it's not clear to me how to run my events as it seems to k... | stackexchange/codereview |
I'm currently doing some rescaling on data in a valueconverter whenever a panel is redrawn. I want to move some of this processing to the viewmodel as the most of the processing only occurs if the control size or a few other properties change.
To ensure the rescaled data looks acceptable I need the ActualWidth of the c... | stackexchange/codereview |
OK. I have some background in Matlab and I'm now switching to Python.
I have this bit of code under Pythnon 2.6.5 on 64-bit Linux which scrolls through directories, finds files named 'GeneralData.dat', retrieves some data from them and stitches them into a new data set:
import pylab as p
import os, re
import linecache ... | stackexchange/codereview |
Seemingly similar questions: "Finding closest number in an array" (in Java) and "find nearest match to array of doubles" (actually a geography problem).
I have a (sorted) array of doubles. Given an arbitrary number (which may or may not be an exact match for one of the array elements), how can I return the index of the... | stackexchange/codereview |
in JOption pane I have some JTextArea where user must eneter some text. Then if user click OK code execute. But i want that code will not execute if input text is not enetered.
I am using mouse listener to check OK button but i do not know how to reopen JOption if input text is not enetered and let him go to next step... | stackexchange/codereview |
Would it be possible to select a table with a specific width ?
Thanks
| stackexchange/codereview |
I'd like to make a rough framework for a BASH-script which sends me a E-Mail to my GMail account from the same account if a programm exits with non-zero result
test "script to execute"
then
//Send me a mail with the content of /worked.txt
else
//Send me a mail with the content of /failed.txt
fi
I've read it's like thi... | stackexchange/codereview |
What I have is a Windows form, in C#, with 7 text boxes. Each text box updates 2 or 3 others when its value is changed and accepted. What I want to do is somehow take those text boxes that need to be updated and make them "flash" with a light back color or something. The purpose is to show the user what is being update... | stackexchange/codereview |
When submitting a form I get the message:
com.xxx.mvc.reports.ReportController: Data binding errors: 6 {||||||| - |}
The command class inherits from an abstract base class.
When using debugging I can see that the values are set on the command class. I use spring 2.5. Somehwere after the fields are set and between th... | stackexchange/codereview |
Paypal claims that customers without paypal accounts could pay with their credit cards directly, and it looks like true with the real paypal account payment interface like this:
however, when I tested with their sandbox interface, the interface looks like:
it seems like the sandbox testing environment has not been up... | stackexchange/codereview |
I'm trying to use emacs in fullscreen mode with a decent font. I have an nvidia-based laptop running Ubuntu. When it first loads, the font is huge think 16pt font. I used the menu options to set a decent font (8pt).
Now when I run emacs in fullscreen mode, it adjusts the window sort of for the huge font then loads ... | stackexchange/codereview |
I have two simple ViewModels, NodeViewModel and LeafViewModel that can be items in a TreeView. Just like below. Templates are applied implictly because I don't want a custom template selector.
<UserControl x:Class="MyProject.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
... | stackexchange/codereview |
When does Python do automatic type conversion?
--
Update:
I asked this after reading this post: In praise of Go or : "Why I moved from Python and C++ to Go". The one of the points the poster makes is that:
It is statically typed, so it is more explicit and the code of a third
party is more readable. Also it
elimi... | stackexchange/codereview |
I opened a notepad and typed some html tags and saved it with .html extension. But to view that in a browser I need to right click and select Internet Explorer from the list. What should I do to make that change as soon as I give .html to browser format?
| stackexchange/codereview |
I have this in the generator.yml of a module:
config:
actions:
_new: { credentials: [user] }
and I've overwriten the action "new" i mention in the generator.yml
this way:
public function executeNew(sfWebRequest $request)
{
var_dump($this->getCredential());
$this->form = $this->configuration->getForm();
$this-... | stackexchange/codereview |
How should I prevent corruption in a shelve file? Should the shelve be closed most of the time and then opened only when I need to read or edit a value?
| stackexchange/codereview |
I did suppress warnings in flex compiler using "-show-binding-warnings=false". But what I am interested to achieve is to suppress run time warnings (especially binding warnings - since I am getting data in model mostly in XML structures and it is fine for me if its unable to bind to its nested child nodes) in console ... | stackexchange/codereview |
I have a SilverLight project, in the project I have a PDF document.
How to create a reference to the pdf document so it will open with a click on a HyperlinkButton? What should the build action be on the PDF document?
Thanks in advance.
| stackexchange/codereview |
I have a general state which is essentially a 3-tuple, and a number of functions which each concern themselves with parts of that state. I'm trying to work out a set of generic adapters for such functions, so that I can use them in a State monad pipeline.
This is possibly entirely wrongheaded; feel free to make that c... | stackexchange/codereview |
When I create a new page in my ASP.NET application I have This code automatically generated:
<%@ Page MasterPageFile="~/Site.master" Language="C#" AutoEventWireup="true" CodeBehind="Rh_Acceuil.aspx.cs" Inherits="PAGODE.RESSHUM.Rh_Acceuil" %>
It's really usefull! But the inherits tag is made with project's directories ... | stackexchange/codereview |
As Hans Passant wishes here is the scenario of mine. I have a mixed mode application in which the native code does all the hard work while respecting the performance and managed code is responsible for only GUI. Also users will be participating by writing their proprietary C# code. I have C++ for native classes, C# for... | stackexchange/codereview |
when trying to find the cost of a complex query (one with a sub-query in it) i get a value of 0.
mysql's manual says:
"The Last_query_cost value can be
computed accurately only for simple
“flat” queries, not complex queries
such as those with subqueries or
UNION. For the latter, the value is
set to 0."
and... | stackexchange/codereview |
I have a query something like this (no, my tables and fields are not called by these names, but the structure is the same) -
SELECT table1.id, table2.id, table1.phone1
FROM table1 LEFT OUTER JOIN
table3 ON table3.id = table1.id LEFT OUTER JOIN
table2 ON table3.id2 = table2.id
WHERE table1.phone1 IS NOT ... | stackexchange/codereview |
I am planning to develop an iPhone application to transfer files/data to/from my Windows Desktop using Bluetooth.
Please let me know whether the programming interface(SDK)is available in iPhone SDK for this purpose.
In Windows Mobile, I can transfer the file either using a FTP profile or writing application on top of S... | stackexchange/codereview |
I would like to fetch data from the "phone", "sms" and "mail" app on the iPhone. What I want to fetch is the last call made to a certain number/person, last sms and last email send/recieved.
Is this possible, and by that I mean possible on a "allowed by Apple" manor.
Best regards,
Paul Peelen
| stackexchange/codereview |
How to you simulate > 120 concurrent users using a Load Test Framework such as JMeter? Real concurrency, as far as I understand, would be possible if I would use 120 servers or 120 CPU cores.
How did/do you test your web application or service with real conditions?
| stackexchange/codereview |
I was wondering if this would be possible to implement (as an app/middleware):
I install the django-registration app. I then create my site-base app for making some generic page views. I want to put a login form and a registration form on a the front page. So I go in and I modify the /register/login.html and the regist... | stackexchange/codereview |
i have installed the ajax comments( http://drupal.org/project/ajax_comments ) module,and use d the theme http://drupal.org/project/inove . when under IE7,the ajax_comments module can't work. but under Firefox,it's ok. the annoy thing is that when i changed the theme to garland, when under IE7/FF.it's all ok. there must... | stackexchange/codereview |
I am having a aspx page and it contains aspx controls.Is there any way to use jquery ajax function to save some data.I need to get the values of the textbox.I am not prefering to pass all the values through querystring. Can u pls specify a method to implement here.Thnaks in advance.
| stackexchange/codereview |
I'm experiencing memory leaks while running the following GDI code:
HDC hdcScreen = GetDC(NULL);
HDC hdcMem = CreateCompatibleDC(hdcScreen);
HBITMAP hbmpOld = (HBITMAP) SelectObject(hdcMem, hBmp); // apparently here is the leak
// do something
SelectObject(hdcMem, hbmpOld); //placing the old object back. The return... | stackexchange/codereview |
As the title asks, Where in the database does Umbraco store its version information?
| stackexchange/codereview |
I have an input form used for a forum, where users can post messages.
I capture the comment content text using Html.TextAreaFor.
However, when the user creates newlines in the text (by pressing Enter), those newlines aren't "retained" when I redisplay the new message in the forum.
Is the only solution to replace \n w... | stackexchange/codereview |
i want when users will type http://x.x.x.x they will see the content of http://x.x.x.y/feeders/den but url will be http://x.x.x.x
can you please help
| stackexchange/codereview |
I have an app I am working on and It uses some of the hardware sensors to provide data on screen, there is a Label that updates with the number. I want a sound to play whenever the number is above 100 or something. For example, say it was reading numbers then all of the sudden it finds a good spot (or whatever), then... | stackexchange/codereview |
I am in a bit of a bind, I need to get my hands on some perl modules that are available on the any of the repos that Activestate can access. But the module is on CPAN and I got the source code but when I attempt to compile it on Windows it fails. If I run it on my Ubuntu virtual machine I run MAKE and works fine. Is th... | stackexchange/codereview |
I'm trying to provide a link to chrome://newtab (the new tab page) for my distraction-preventing page for when I need to access it, however clicking the link gives the error Failed to load resource.
I've tried:
Linking to it using <a href="chrome://newtab">
Attempting to redirect the user using window.location.
The ch... | stackexchange/codereview |
Hey, I have a question regarding multithreading. First off, how many instances of DispatcherServlet / DispatcherPorlet is there ? Is it always the only one ? Even when there are let say 10 requests per second ? What about the services that are singleton by default. If I have a validationService bean that is injected in... | stackexchange/codereview |
I'm having trouble getting a 160dpi, 480x800 emulator to display the contents of my main.xml in a layout-large folder. It seems to still be using the main.xml in my regular layout folder. Are there any common reasons it wouldn't be reading this file correctly?
To put it into context, I have a .png called "back_large" i... | stackexchange/codereview |
My java class (servlet) has been running fine, but recently, I noticed a problem.
In my database, I have a Date column called 'Full_Expiration_Date'. If one was entered it will store it like '2010-11-17'. If one wasn't entered, is stores it like '0000-00-00'.
In my class, I call the records from the db, and look at the... | stackexchange/codereview |
I am trying to achieve a random animation of from a set of images, where each frame is a random image from the image set. And for this I am using addFrame method of AnimationDrawable object but the animation is not working. I tried searching various tutorials, tried other things also but nothing helped. Below is my cod... | stackexchange/codereview |
Say I have a Statement model, which has_many :months. There are always 12 months associated with a statement, but the first month can vary (eg months = [Mar, Apr, May...Jan, Feb])
Given a certain month, what's the MVC way to find the previous month?
I find myself accessing it through the statement which feels dirty:
# ... | stackexchange/codereview |
I'm currently learning about JSF 2.0 and i dont know how to initialize something in my CDI bean everytime a jsf page is accessed ?
For example, let's say in my case, i have one CDI bean that is used in one JSF page. Somewhere inside the bean, i would like to query and initialize something, or check authorization every... | stackexchange/codereview |
i want to Encrypt and Decrypt data in J2ME using AES Algorithm with bouncy castle
can any one give me sample code for that
i want to use ECB with PKCS5Padding
Thanks in Advance.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.