instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm creating a product listing for an online store. It's pretty standard stuff, a page of product thumbnails with brief details, price and a link through to full details.
I'm using a repository pattern, so I have a central data repository which gives me back tables from a SQL server. I've cut a lot of the code out for... | stackexchange/codereview |
I currently have a windows media player embedded into my winform on c# and i am now trying to make a button to control the speed of the video play. I currently can use controls to play, pasue and stop, found in ctlcontrols but can't find a way to change the speed of video play through using a button on my form?
An exam... | stackexchange/codereview |
Actually i have a div i am rotating it using
-moz-transform: rotate(270deg);
-webkit-transform: rotate(270deg);
-khtml-transform: rotate(270deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
in firefox chrome and opera it is fine in case of there is a slight problem when the page loads th... | stackexchange/codereview |
How can I enable a folder to be accessable using a browser with tomcat 6 ?
I think I need to add a context to web.xml ?
I'm trying -
So when I navigate to http://localhost:8080/myfiles I expect to see the contents of c:\temp
Thanks
| stackexchange/codereview |
I have a MSSQL procedure with the following code in it:
SELECT Id, Role, JurisdictionType, JurisdictionKey
FROM
dbo.SecurityAssignment WITH(UPDLOCK, ROWLOCK)
WHERE Id = @UserIdentity
I'm trying to move that same behavior into a component that uses OleDb connections, commands, and transactions to achieve the same ... | stackexchange/codereview |
I am using BinaryFormatter to serialize an array of class instances to a file. I can deserialize this fine within the same application. When I try the same deserialization in a different application (that pulls in a common file that does the work) then I get the following error:
{"Could not load file or assembly 'pmlsc... | stackexchange/codereview |
I'm trying to get some information from a web... with the code above...
URL url = new URL(webpage);
URLConnection connection;
connection = url.openConnection();
BufferedReader in;
InputStreamReader inputStreamReader;
inputStreamReader = new InputStreamReader(connection.getInputStream(), "iso-8859-1");
in = new Buffere... | stackexchange/codereview |
i wrote one app it consist of tens of classes, after some time while i am looking into my code i faced a problem, i am looking calling function but i am unable to find called function where exactly called method is???.....is there any method to find called method when we know the calling method.
| stackexchange/codereview |
Synopsis
I have Hudson set up on our Mac OS Server (Snow Leopard 10.6.5), running under the standard Tomcat (so, Tomcat 6) which is enabled using Server Admin application.
I'd like to be able to run my Hudson scripts as a Unix user/login which is not the Tomcat login.
Details
My Hudson job is a freestyle project that r... | stackexchange/codereview |
I have a MySQL server as a linked server in Microsoft SQL Server 2008. For the link I use MySQL ODBC Connector version 5.1.8. When invoking queries using OPENQUERY (the only way I found of performing queries), problems occur. Simple queries, such as
SELECT * FROM OPENQUERY(MYSQL, 'SHOW TABLES')
work fine. Selection ... | stackexchange/codereview |
I need to create a chart that shows Key Performance Indicator.
(total of issues / issues resolved)
I'm using this query to return count of total issues and unresolved issues:
JqlQueryBuilder.newBuilder();
final JqlClauseBuilder jqlClauseBuilder = JqlQueryBuilder.newBuilder().where().defaultAnd().unresolved();
... | stackexchange/codereview |
My script is this:
var emailmask = /^[a-z0-9.]/g;
function restrictCharacters(myfield, e, restrictionType) {
if (!e) var e = window.event
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
var character = String.fromCharCode(code);
if (code==27) { this.blur(); return false; }
if (!e.ctrlKey && code!=9 ... | stackexchange/codereview |
Is there a 'standard' way to convert something like this into a set of C# classes?
<!DOCTYPE MESSAGES [
<!ELEMENT MESSAGES (MSG*)>
<!ELEMENT MSG (TO+,BODY,MSG_ID,BILLING)>
<!ATTLIST MSG TYPE (CONTENT|LOGO|RINGTONE|PICTURE|OTAPUSH|BINFWD|LONGSMS|2DCODE) #REQUIRED>
<!ELEMENT TO (#PCDATA)>
<!ATTLIST TO PROVID (1|2|3|5|6|7... | stackexchange/codereview |
I would appreciate it if some one could explain why this query is returning null values. This query works fine when I use the fetchRow() method.
public function getCustomerRowWithAddress($customer_id)
{
$select = $this->select()->setIntegrityCheck(false);
$select->from('irh_TV.irh_site_location AS SL', array(... | stackexchange/codereview |
I am atempting to draw text to a textured mesh object. The mesh is basically a cube which has been pasted up to the front of the screen. (overall I'm aiming for a menu system). After a bit of googling I've found surprisingly little information on how to draw a text to a texture. I've read that it should be as simple as... | stackexchange/codereview |
I have an XML file like this:
<Root>
This is beginning of list of children.
<Children>
<Child Name="a">A</Child>
<Child Name="b">B</Child>
<Child Name="c">C</Child>
</Children>
This is end of list of children.
</Root>
I am using LINQ to XML (XDocument) to read this file. What I need ... | stackexchange/codereview |
Hai anyone please provide me a code or say the perl module for parsing a ruby file.
Like it has to count the number of lines having comments. Number of lines having source code.
Extract the source code and extract the comment lines.
Thanks in Advance
| stackexchange/codereview |
I have overloaded << operator such that it write to file and also on the console. I have created 8 threads to the same function, and I want to output
hello
hi
If I run this thread routine in an infinite loop the o/p in the file is
hello
hi
hello
hi
hello
hi
ello
i
hello
hi
hello
hi
llo
i
hello
hi
This has no patte... | stackexchange/codereview |
To keep my data payloads as agnostic as possible I want to use objects and arrays or objects (the objects are just containers for a bunch of primitive type ie: Customer. Store. etc)
Does this make sense?
I don't want to use something datasets which aren't as portable, make sense?
What is the typical model most asp.... | stackexchange/codereview |
I have a asp.net panel that is initially hidden and is shown when a button is clicked. There is javascript inside that panel and it doesn't execute after the panel is set to be visible. I can see that javascript function gets outputted on page but it is not called. What can I do to make it so that function gets calle... | stackexchange/codereview |
I am looking into the code written by other members and I came across the code shown below:
struct myType
{
int myInt : 1;
int reserved : 31;
};
What is 1 and 31 stands above and when above notation is used?
| stackexchange/codereview |
how to find checked events in choice mode multiple.
I am using ontemselected method it is not working for me
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_multiple_choice,getIntent().getStringArrayExtra("agents"));
ListView list = (ListView)findViewById(R.id... | stackexchange/codereview |
I am wondering if there is a better way to manage relation tables in Nhibernate. Currently when the user first creates A I can just call .Save and everything is fine. But when they load it and make changes, I don't simply want to delete all the corresponding records and recreate them. I want it to deletes the records t... | stackexchange/codereview |
The common pattern in AJAX-based UIs is that when user performs an action, it is reflected in the UI instantly, but is marked as unfinished until the arrival AJAX response confirming that everything is OK. This is how e.g. adding an event in Google Calendar works. And when there is an error, that temporary UI change is... | stackexchange/codereview |
I have two Dijit NumberSpinners which I am using to select hours and minutes, however, when I reach the min and max constraints it just stops spinning, is there a way to get it to wrap around and start at zero if someone is at the maximum and clicks the up arrow, and the same at the down arrow? Thanks.
| stackexchange/codereview |
I have game application (cocos2d) in which, a ball is to be shooted from a cannon, this ball travels through a trajectory path and land on a building. Now the problem is that according to the requirement I have to increase the size of the background image due to which my building image is not visible on first view and ... | stackexchange/codereview |
Is it possible to inject Loggin behaviour to the marked classes or/and methods like this:
Log("Method {0} started",GetMethodNameTroughReflection)
Call method body
Log("Method {0} Finished",GetMethodNameTroughReflection)
I want to create my own Attribute class, which will realize loging behaviour for method call.
I wan... | stackexchange/codereview |
I am having a problem with the following script, it only writes in the database the first PID number but it executes both commands:
<?php
error_reporting(0);
include_once "config/mysql.php";
// the path
$path = "PATH=$PATH:/share/MD0_DATA/.qpkg/Optware/bin:";
//random number for the log file name
$random = rand(1,50... | stackexchange/codereview |
I've got a div with an inline background color (style attribute) in which I've got a header, a noscript tag and a form with a drop-down menu (select tag).
If the header and the noscript are found before the drop-down-menu, then they are hidden behind the background color, only coming in focus again if the text is selec... | stackexchange/codereview |
Basically I need to be able to have a few tables for sales of specific categories e.g. pc and laptop. I also need to have a main table that displays all sales.
For input i'm using input boxes and a dropdown to select which category (pc or laptop), this input is then just put in to one large table along with the sale in... | stackexchange/codereview |
I am using the following code and it works fine.
protected void Button2_Click(object sender, EventArgs e)
{
String a = DropDownList1.SelectedItem.Value;
String b = DropDownList3.SelectedItem.Value.PadLeft(3, '0');
String c = TextBox2.Text.PadLeft(5,'0').ToString();
String d = T... | stackexchange/codereview |
I have the free version of Soap UI and several different workspaces. I would like to set up several shortcuts to Soap UI with each shortcut including a start-up parameter indicating which workspace to load, but I can't find what the actual parameters are to do that. I looked over the documentation, and I saw a referenc... | stackexchange/codereview |
I have a class 'Collection', which has an add method. The add method should only accept objects. So this is the desired behaviour:
$x=5;//arbitrary non-object
$obj=new Foo; //arbitrary object
$collection=new Collection;
$collection->add($obj); //should be acceptable arg, no matter the actual class
$collection->add($x... | stackexchange/codereview |
I've got a dot.net 3.5 app that builds fine within visual studio, but when I manually build via MSbuild, it throws the following error:
error MSB3021: Unable to copy file "obj\Debug\TempPE\My Project.Resources.Designer.vb.dll
Can someone explain why this is happening?
I found this in my project file
<Content Include... | stackexchange/codereview |
is there an easy way to add more fileds to the CreateUserWizard control?
I'd like to add 5 more fields to the existing fields.
| stackexchange/codereview |
I'm new to CodeIgniter, MVC, and OOP. I'm trying to make two image galleries that rely on different content, but are the same setup and functionality. What's the best way to set this up? Should I create a library containing all the functionality and call it in my controllers?
| stackexchange/codereview |
I'm tracking a mysterious problem in my code. This "bug" happens within an event handler that was bound via jQuery's .delegate():
my.$table_body.delegate('.wf-dropdown', 'change', function(e){
parent_row_element = $(e.target).closest('tr')[0];
if( typeof $.data(parent_row_element, 'changed') == 'undefined' )
... | stackexchange/codereview |
I'm trying to build an URL-alias app which allows the user create aliases for existing url in his website.
I'm trying to do this via middleware, where the request.META['PATH_INFO'] is checked against database records of aliases:
try:
src: request.META['PATH_INFO']
alias = Alias.objects.get(src=src)
view = g... | stackexchange/codereview |
I read about bitwise operators today and they seem rather handy to me. I also noticed Apple uses them too, for example with UIViewAutoresizing.
In my app I need to keep track of the seven days of the week. Each day can be either enabled or disabled. I used to have seven BOOL's, but now I'm trying to use a single intege... | stackexchange/codereview |
I want to create a subset of my list based on its values. For example:
List (AA AB BA DC AD)
I want a list which has all values of atoms in it starting from 'A'
So Answer should be:
(AA AB AD)
I can do this currently by traversing through the whole list and converting each value to another list and reading the first... | stackexchange/codereview |
How would you do that in C? (Example: 10110001 becomes 10001101 if we had to mirror 8 bits). Are there any instructions on certain processors that would simplify this task?
| stackexchange/codereview |
I'm using DevExpree XtraTreeList Control, I want to randomly Set one of the first levels nodes to be the first node in the Tree, nothing helpful shown in the TreeList Control's Methods nor in the TreeListNode Methods,
Please Advice.
Edit: My Code
private void btnSetMaster_ButtonClick(object sender, DevExpress.XtraEdit... | stackexchange/codereview |
This is basically just to help me understand pointers better, so if you guys can confirm/deny/explain anything it looks like I don't understand properly I would be most appreciative. The examples of using mailboxes, and aunts, and streets, and all that crap is just confusing.
int a = 5;
int b = &a; // b will be the me... | stackexchange/codereview |
i am doing work on an app like MS Outlook Calender where user can put events etc.
i am having problem with event object layout according to size etc. as user can drag and re size the event object in MS outlook calender and the size of event objects sets automatically.
i need the algorithm for doing so i have write my o... | stackexchange/codereview |
Say I have 2 classes, class A and class B. Class A creates an instance of Class B. Class A has a function that I would like to pass into a method from Class B.
class A {
void Main(string[] args) {
B classB=new B();
DelegateCaller(new delFunction(classB.TheFunction()); // <-- Won't compile (method name expe... | stackexchange/codereview |
I'm new to C# and I want to know how to bind a FormView from the code behind with a datatable.
| stackexchange/codereview |
I am going to be writing some software in PHP to parse log files and aggregate the data then display them in graphs (like bar graphs, not vertices and edges).
Yeah, it's basically business intelligence software which my company has an entire team for but apparently they don't do a great job (10 minutes to load a page j... | stackexchange/codereview |
I am trying to copy some files out of ClearCase using PowerShell. I don't need to actually check them out - it's part of a build process, so I just want to be able to grab copies of them.
My guess is that I need to use cleartool, perhaps with "find", but I'm having trouble actually getting to the files that I want. No ... | stackexchange/codereview |
In order to gwt compile permutation, i need to use -Xmx1824m -XX:+UseParallelGC or else, i will get error out of heap memory. what is the optimum extra java parameters that you folks use for
case 1:faster compilation
case 2:lesser consume memory but slower compilation?
can share your jvm parameters?
| stackexchange/codereview |
I'm querying on my products table for all products with code between a range of codes, and the result brings a row that should't be there.
This is my SQL query:
select prdcod
from products
where prdcod between 'F-DH1' and 'F-FMS'
order by prdcod
and the results of this query are:
F-DH1
F-DH2
F-DH3
FET-RAZ <-- Wh... | stackexchange/codereview |
I have recently taken the decision of changing a vector of pointers into a vector of smart pointers, but although these smart pointers are STL-compatible, I could not convert some algorithms to use them.
Consider a
class Base
{
...
virtual bool valid();
};
How do you convert
bool is_any_valid( vector< Base*... | stackexchange/codereview |
Using AutoFac 2.3.2, I am trying to do the following:
var builder = new Autofac.ContainerBuilder();
builder.RegisterType<SomeDependency>().As<IDependency>();
RegisterType is not there. Not seeing it with intellisense, compiler doesn't know it's there. Looking in the help shows that the RegisterType method is an extens... | stackexchange/codereview |
while i am doing work on android apps i didnt find library files to read svg files and rendering those files. can any one post me some library files which supports svg.
thank you in advanced!!!
| stackexchange/codereview |
Hey, I'm quite new to Drupal and am having some issues with implementing a node form on the front page of the site.
I want to have a really simple quick post form on the users front page when they are logged in, just a few fields and a submit button, no advanced options or anything.
Is there a really simple way to do t... | stackexchange/codereview |
If I have a line containing words like: The quick brown fox jumps over the lazy dog.
Is there anyway that I could fwrite to extract out two words from within and put it in a new text file? I would like to have the two words: brown fox
How can I do that with php script?
Thanks!
| stackexchange/codereview |
I'm trying to add some custom fonts to an iPhone app through UIAppFonts in Info.plist.
I can reach both fontnames by code, i.e. MyFont-Bold and MyFont-Medium.
My problem is that the last font in UIAppFonts array overrides the other one, making both MyFont-Bold and MyFont-Medium render out MyFont-Bold if this is the l... | stackexchange/codereview |
The iter function example at python docs:
with open("mydata.txt") as fp:
for line in iter(fp.readline):
print line
gives me this:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: 'builtin_function_or_method' object is not iterable
How's that possible? (Python 2.6.4)
| stackexchange/codereview |
I am new with google maps api. I took some sample from the manual and trying to change it the way I need, so here is the what I am trying to do:
This is the example from google maps manual
var geocoder;
var map;
function initialize() {
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.La... | stackexchange/codereview |
I want to fetch the current URL which I've received as a callback during authorization from Salesforce.com. The data in the url is in the fragments portion.
| stackexchange/codereview |
I'm implementing a method Task<Result> StartSomeTask() and happen to know the result already before the method is called. How do I create a Task<T> that has already completed?
This is what I'm currently doing:
private readonly Result theResult = new Result();
public override Task<Result> StartSomeTask()
{
var tas... | stackexchange/codereview |
Is there a "go to definition" plugin in gedit?
| stackexchange/codereview |
Ok, my current code is work in progress and probably I will try to do the same thing with the Async CTP. But I will still like to understand whats happening.
I have a function like below
// In MainWindow.xaml.cs
Task.Factory.StartNew(() => helper.Send());
// In class HttpHelper
public void Send()
{
// ...
tr... | stackexchange/codereview |
This streaming audio app will play in 3.2 simulator, but not in 4.x sim or my 4.1 iPhone.
The console logs are as follows:
4.0 Sim
This GDB was configured as "x86_64-apple-darwin".Attaching to process 13237.
[Switching to process 13237]
2010-11-15 19:54:49.606 Issues[13237:1c07] AddRunningClient starting device on no... | stackexchange/codereview |
I have a client application (WPF, C#, .net4) which uses POCO entity model connected through SQLITE provider. So I want to have same entities from this project in an asp.net project (with MSSQL provider), to use there the same entities that I use in my client application. I want to create some kind of replication functi... | stackexchange/codereview |
Why would the PHP code below, delete some CAPTCHA images and allow several other images to remain on the server?
psuedo-code
//process_form.php
PHP
session_start()
$radiobutton = '';
$captcha_set = false;
IF POST SUBMIT
IF empty text1 && empty text2
echo error msg, include HTML FORM
ELSE IF empty ... | stackexchange/codereview |
When debugging a program that terminates with a segfault, electric fence, in conjunction with gdb, returns this:
"ElectricFence Exiting: mprotect() failed: Cannot allocate memory
[Thread 0xb0bd4b70 (LWP 5363) exited]
Program exited with code 0377.
I actually thought electric fence would be more helpful. What does this ... | stackexchange/codereview |
I have my UI datepicker, and tried onSelect to prepend the date you have chosen inside #viewCalender:
$(function() {
$('#rangeA').daterangepicker({
arrows: true,
onClose: function(event) {
$('#calenderView').prepend('Ok!');
},
onSelect:
function(){
... | stackexchange/codereview |
Follow on from - GPS Intermediate Driver Issues
The above was not successfully answered and feel I have new information over the issue to go for a new question.
The issue I am facing is the speed of which data is being delivered by the GPS Intermediate Driver.
I have successfully used Pocket Putty to read the serial po... | stackexchange/codereview |
I want to call a CPP function from Objective C. I have written the function in CPP. I have tried to call the CPP function from test.mm file, but I am getting following error message.
error: 'functionName' was not declared in this scope
I have written the function 'functionName' in testCPP.cpp & testCPP.h
Please help m... | stackexchange/codereview |
UPDATED: 5/08/2010
WordPress has now added an additional technique to display the items from a custom post-type if the post-type is set to Hierarchical.
What I would like to do though is make it so the post items have the .current_page_item class when selected in the navigation.
Does anyone know of a function to achiev... | stackexchange/codereview |
I have windows 7 64 Bit Computer
I have the following:
Visual Studio 2008 Professional:
Install Team Explorer 2008
Install SP for Visual Studio 2008
update Team Explorer 2008 SP1 Forward Compatibility Update
But it didn't work.
| stackexchange/codereview |
i have a image that i don't want it drag-able or selectable so that no drag to other places on the page. how is that done?
| stackexchange/codereview |
Greetings!
I'm attempting to build an iPhone application that makes use of an iOS4-only function: 'UIGraphicsBeginImageContextWithOptions'.
I'm building for iPhone device 3.1.3 in XCode 3.2.1 and getting errors about that function not being defined.
This stackoverflow page already showed me that I should link weakly ag... | stackexchange/codereview |
I have a variable in a shell script,
var=1234_number
I want to replace all other than integer of $var .. how can I do it using a perl onliner?
| stackexchange/codereview |
I'm working on a project that used ant. I had a target dist that would basically do jar first, and then install the application into a directory.
This means, it would create directories like bin/, lib/ and config/ in the installation directory, and then copy the relevant files into each of these directories.
My questio... | stackexchange/codereview |
Do you know if it's possible to remove all debugger warning-tags in the Xcode view ? I mean those on right, when we compile.
I searched on the Xcode preferences, but couldn't find something about that.
Thanks a lot
| stackexchange/codereview |
is it possible to have a callback function for the removeClass() function in jQuery? I have the following code:
var pane = $(this).attr("rel");
var current = $('.active-pane');
current.fadeOut("slow").removeClass('active-pane');
$("#pane-"+pane).addClass('active-pane');
So basically I want current to fad... | stackexchange/codereview |
I've got an SQL Server CE database in a project that I wan't to store somewhere in the %AppData% directory. However I can't find a way to make a reference to the Application Data path in the connection string (in the App.Config)
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionS... | stackexchange/codereview |
How would I get a string representation of a web page's source from URL in C?
| stackexchange/codereview |
Here is the code for Checkout.php:
<?php
//Include SimpleSanitize.
include 'simplesanitize.php';
// First attempt at PHP Sessions. Wish me luck.
// Start the session.
session_start();
$product = $_REQUEST["product"];
$qty = $_REQUEST["qty"];
$price = $_REQUEST["price"];
//var_export($product);
//var_export($qty);
... | stackexchange/codereview |
I have the following issue with my local function.
The following function:
declare function local:exp($w as node()) as element()* {
for $e in ($w/e)
let $exp:= QName ("myns", "real")
return
element {$exp}{
attribute resource {$e/@lang}
}
};
generates this xml:
<real xmlns="myns" resource="eng"/>
What rea... | stackexchange/codereview |
Hi I wonder if I could have a free or paid hosting for Racket web app? Racket looks like fun to me but if the only way to run a web-app is to have my own server - that's too bad.
Is there something like Google App Engine for Racket? that would be superb!
| stackexchange/codereview |
I have a view which needs to return type decimal for columns stored as float.
I can cast each column to decimal as follows:
, CAST(Field1 as decimal) Field1
The problem with this approach, is that decimal defaults to 18,0, which automatically rounds the float columns to 0. I would like to keep a precision of up to 12... | stackexchange/codereview |
I have this code:
fields = ['name','email']
def clean_name():
pass
def clean_email():
pass
How can I call clean_name() and clean_email() dynamically?
For example:
for field in fields:
clean_{field}()
I used the curly brackets because it's how I used to do it in PHP but obviously doesn't work.
How to do ... | stackexchange/codereview |
I have the following SQL
SELECT CNumber, MAX(FormSubmitted), Score
FROM dbo.vw_MSA
WHERE (Score IS NOT NULL)
GROUP BY CNumber, Score
Results:
CNumber FormSubmitted Score
0011509 2010-09-13 10:22:46.763 11
0016239 2010-09-28 13:53:58.557 8*
0016239 2010-10-12 11:52:33.1... | stackexchange/codereview |
I have a complex picture . It consists of several layers. Each layer is a picture .
for example , background picture -> man picture -> gun picture -> foreground picture
I want drag and use pinch gesture with complex picture .
Can i do it with UIScrollView ?
| stackexchange/codereview |
It is very very strange to me that the VC++ docs says: (at: http://msdn.microsoft.com/en-us/library/tzf8k3z8(VS.90).aspx)
"Objects of type basic_filebuf are created with an internal buffer of type char * regardless of the char_type specified by the type parameter Elem. This means that a Unicode string (containing wchar... | stackexchange/codereview |
I'm trying to make alignment points in a list environment. The following code gives me an error, but it almost compiles to what I want, just missing the bullet points. I must be misunderstanding something about align and/or tabular and how they work with linebreaks. Guidance appreciated!
\documentclass{beamer}
\begin{... | stackexchange/codereview |
Having an issue with one my scripts. The animation keeps queueing up. I have searched your forums for solutions. I tried stop(true,true) and some variations of that as well as queue:false.
Maybe I just put it in the wrong spot, I'm not a 100% comfortable with jQuery just yet.
The function looks like this at the moment;... | stackexchange/codereview |
Given several Hibernate entities in different packages of a large application, I like to make sure, that there are no naming conflicts. E.g. there could be a Person-Entity in package foo and another Person-Entity in package bar.
Now this two entities should map to table names like this:
foo.Person --> FOO_PERSON
bar.P... | stackexchange/codereview |
So I am trying to build a table of cities with their offset, DST transition dates, and DST offsets. Up until this point our program has been manually updated for each of the 300+ entries every year.
I know the data is supposed to be in the tz database, but I haven't been able to find a way in the provided APIs to query... | stackexchange/codereview |
I am trying to show video at 60fps in a QPainter (in an OpenGLwidget)
I am having an issue that sometimes the drawing takes too long and the next repaint event happens while QPainter is in use - which generates a warning and random crashes.
A couple of questions:
Is there a 'Qt way' to efficently interlock calls to rep... | stackexchange/codereview |
Is it possible to share resources across APK's? For example, can application A (in APK A) load an icon or layout view from application B (in APK B)?
| stackexchange/codereview |
I can capture packets from eth0 interface, and sniff ip packets as follows
/* IP header */
struct sniff_ip {
u_char ip_vhl; /* version << 4 | header length >> 2 */
u_char ip_tos; /* type of service */
u_short ip_len; /* total length */
u_short ip_id; ... | stackexchange/codereview |
I have a script which uploads data to my web server running Apache/PHP 5.3, the request includes some additional headers which may mean that the request should be terminated instantly as the data is not required. My question is, how do I shutdown the incoming socket with PHP?
I'm reading from php://input but calling fc... | stackexchange/codereview |
I have this code for opening file:
use Encode qw(:fallbacks);
$PerlIO::encoding::fallback = FB_PERLQQ;
open my $log,'>:encoding(cp-1251)','log.txt';
Some codes do not map to cp-1251 and I see warnings like '"\x{015f}" does not map to cp1251 at ...'. Is it possible to disable this warning for a specific filehandle?... | stackexchange/codereview |
What is the best way to get a character to show up in /dev? I have a driver that calls register_chrdev, and I see the entry in /proc/devices when I load the module. However, I still have to call mknod on the command-line in order to get it show up in /dev.
Is there a good way to do this programmatic-ally at module load... | stackexchange/codereview |
I think this is what they are talking about on this page, but I'm not sure.
What I am looking for is a bookmarklet I can add to the toolbar of my browser, like the ones on this page. This hypothetical script would work much like the Windows clipboard, except that it would copy an entire set of entries in a web form wit... | stackexchange/codereview |
Does anybody know a good text editor for Mac that supports syntax highlighting in CoffeeScript? Is it possible to do this in TextWrangler or BBEdit?
Cheers :)
| stackexchange/codereview |
Basically I am looking for a way to facilitate the tagging of friends in a pre-populated status update. On the tab users will fill out a couple details, including the friends they would like to tag, then we would like to pre-populate a status update, then prompt them if they would like to post it to their updates with ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.