instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm using xhtmlrenderer + iText in Java to generate PDFs for some pages in my application. I've managed to convert some pages already. However, I came across a limitation to this approach where it can't convert pages dynamically created using JavaScript scripts (some by JQuery). Are there other available tools for this... | stackexchange/codereview |
I am trying to use install4j's auto-update feature, using the "Updater with silent version check". I have the auto-update working fine if I force the schedule to be Always, or every launch. The problem I am having is with the update schedule.
I have added a Configurable Form just before my installation action. On this ... | stackexchange/codereview |
I have the following code:
<p class="expand">Click to expand</p>
<div class="expand-box">
<p>Some content here</p>
</div>
with this jquery:
$('.expander-box').hide();
$('.expand').toggle(function() {
$(this).next('.expander-box').slideDown();
}, function() {
$(this).next('.expander-box').slideUp();
});
My qu... | stackexchange/codereview |
I have a DataView which displays a list of images loaded from a JsonStore. However, the label required for each image is not an available attribute within the JsonStore - in other words, for each record in the store, I need to fetch (via an AJAX request) the label from another service.
Is is possible to call a custom f... | stackexchange/codereview |
Android function View.setPadding(int left, int top, int right, int bottom) only accepts values in px but I want to set padding in dp. Is there any way around it?
| stackexchange/codereview |
I am looking to find out from the community which you think is best?
Django running with the following.
Django, mod_wsgi and MySQL
Django, mod_wsgi and Postgres
Django, nginx and MySQL
OR
Django, nginx and Postgres
?
| stackexchange/codereview |
I'm working with a bit of old VB6 code that goes thus...
Dim STATUS As Integer
STATUS = -1
If (Not STATUS) Then
' do something
Else
' do something else
End If
so I was, naturally, wondering which branch of this code is executed. So does anyone know what the numeric values of True and False are in VB6?
| stackexchange/codereview |
Instruments point to this line saying there is a leak here
- (void) loadFavoriteData {
TradePortMobileAppDelegate *delegate = [[UIApplication sharedApplication] delegate];
NSManagedObjectContext *context = [delegate managedObjectContext];
NSManagedObjectModel *objectModel = [[context persistentStoreCoordi... | stackexchange/codereview |
If, on purpose, I create an application that crunches data while suffering from memory-leaks, I can notice that the memory as reported by, say:
Runtime.getRuntime().freeMemory()
starts oscillating between 1 and 2 MB of free memory.
The application then enters a loop that goes like this: GC, processing some data, GC, e... | stackexchange/codereview |
I hope the answer to this question isn't too simple or obvious. I've been trying to get used to using a text editor and MinGW to compile some C code but I've found that I can't quite tear myself away from Visual C++ (mostly because of the IDE). The thing is, I've never used Visual C++ to just compile C/C++ into an exec... | stackexchange/codereview |
I have an application running on IIS that i'm testing. Everything was fine until i publish it to the server. Server's ip address is 10.0.0.19 (this is a local application). Connection strings etc. everything is properly configured. Every other query in other pages are working fine but in some pages result sets aren't c... | stackexchange/codereview |
I have an sql table as below
+---+-------+
|Sl | Name |
+---+-------+
| 1 | Name1 |
| 2 | Name2 |
| 3 | Name3 |
| 4 | Name4 |
| 5 | Name5 |
+---+-------+
I have a php array with values (Name1, Name4)
The query result should return the Name values along with their corresponding Sl valu... | stackexchange/codereview |
I have a file that contains emails.
The format is
< email: sender1@hotmail.com >
1111 2222 3333 aaaa
</email>
< email: sender2@gov.gr>
aaabbbbb cccccc
</email>
and I want to save in variables some info (senders , message and number of emails)
my code is like that
FILE *fp;
char line[150];
fp= fopen("a.txt"... | stackexchange/codereview |
I'm publishing an API for my Rails app, and I'm trying to be as good and RESTful as possible, while being realistic at the same time. I know that Flash and some other clients have problems doing anything other than GET and POST, but I'd still like to offer the more RESTful interface to clients that can be that expressi... | stackexchange/codereview |
I am going to look for a job as a software tester (a SDET maybe), especially for website test. I have some vague impression of this area and got a couple of specific questions as below:
Among so many documents, such as functional spec, design spec, which should I pay more attention to? How to view them in a tester's v... | stackexchange/codereview |
I'm getting access denied whenever I try to delete a file after finishing reading it at C:\inetpub\wwwroot\Project\temp\. I Close() and Dispose() the StreamReader properly already? I also gave full permission for NETWORK SERVICE account? Can anyone help me?
reader = new StreamReader(path + fileName);
DataTable dt = new... | stackexchange/codereview |
I have a problem retrieving the information of printer ports. I already use XcvData function to add, configure and delete ports, but I can not get the following to run as I expect it to:
public PrinterNativeMethods.PORT_DATA_1 GetPortData1FromPort(string serverName, string portName)
{
IntPtr printerHandle;
Prin... | stackexchange/codereview |
The setup is MOSS2007. I iterate the links in the QuickLaunch, and update the URL:
$siteUrl = "http://myserver/"
$spSite = new-object Microsoft.SharePoint.SPSite($siteurl)
for($i=0; $i -lt $spSite.AllWebs.Count;$i++)
{
$spWeb = $spSite.AllWebs[$i]
$nodes = $spWeb.Navigation.QuickLaunch
for($j=0; $j -lt $no... | stackexchange/codereview |
Here is my JavaScript:
<script type="text/javascript">
function onholdev(index) {
var chk = document.getElementById('<%=grdCons.Rows[' + index + '].FindControl("chkHold").ClientID %>');
var txt = document.getElementById('<%=grdCons.Rows[' + index + '].FindControl("txtReason").ClientID %>');
if (chk.checke... | stackexchange/codereview |
How its possible?
ls -la|grep java
-rwxr-xr-x 1 root root 47308 Сен 15 11:41 java
-rwxr-xr-x 1 root root 47936 Сен 15 11:41 javac
-rwxr-xr-x 1 root root 47896 Сен 15 11:41 javadoc
-rwxr-xr-x 1 root root 47892 Сен 15 11:41 javah
-rwxr-xr-x 1 root root 47928 Сен 15 11:41 javap
-rwxr-xr-x 1 root root 1779 ... | stackexchange/codereview |
I am trying to see the IMAGE_DOS_HEADER structure using the 'dt' command in windbg:
0:001> dt ntdll!IMAGE_DOS_HEADER
**Symbol ntdll!IMAGE_DOS_HEADER not found**
I searched and found that others have been able to do this:
MSDN Blogs > Junyoung's Blog > Portable Executable File Format on Memory Dump
0:00... | stackexchange/codereview |
I have an InfoPath 2007 form that is behaving quite oddly.
I created it, published to a Sharepoint document library, running smoothly. Now, if I make changes to the form, I don't see them reflected after publishing. If I rename the xsn file to a cab and open the xsl, I can't also see the changes there, but in the Infop... | stackexchange/codereview |
I'm developing a library using a number of glib datastructures (GHashTable, GSList etc.). I've been checking my code frequently for memory leaks using valgrind. Most of the issues valgrind points out are quite easy to fix, however there's a few that I can't figure out.
All of these are reported as 'possibly lost'.
At ... | stackexchange/codereview |
I'm stuck and it's probably fundamentally obvious. I don't know much about the SWF player, I've just been provided with it and am trying to drop it into some existing code.
<script type="text/javascript">
var SD = window.parent;
var flashvars = {
videoPath: "<?php echo($movie_url); ?>",
ccPath: "<?php ... | stackexchange/codereview |
In JPA2.0 specification is written:
Persistent relationships defined by a
mapped superclass must be
unidirectional.
Why can't be used bidirectional relationship in @MappedSuperclass class? I tried it in Hibernate and it looks that it works, can be there some problem with it?
We're generating our model so we need ... | stackexchange/codereview |
I am using eXist Xquery. I am stuck with this issue.
I have a collection of 20 xml with content as per like below:
1.123.15.200.xml
<element name="userID">P111</element>
<element name="folderUID">A1</element>
<element name="imageUID">IMG15234</element>
1.123.15.205.xml
<element name="userID">P115</element>
<element n... | stackexchange/codereview |
I am working on an Android application that parses one or more XML feeds based on user preferences. Is it possible to parse (using SAX Parser) more than one XML feed at once by providing the parser with an array of URLs of my XML feeds?
If no, what would be an alternative way of listing the parsed items from different ... | stackexchange/codereview |
Have two bean definitions:
file a.xml
<bean id="A" class="com.A">
<property name="bClass" ref="B"/>
</bean>
file b.xml
<bean id="B" class="com.B"/>
In some cases file b.xml does not contain definition of bean B.
And from other side,file a.xml always contains link to B definition.
How to define reference to B bean to... | stackexchange/codereview |
I have a buffer like this:
vector<unsigned char> buf
How can I cast it to char*?
If I do:
(char *)buf
I get this error:
/home/richard/Desktop/richard/client/src/main.cc:102: error: invalid cast from type ‘std::vector<unsigned char, std::allocator<unsigned char> >’ to type ‘char*’
For those wondering why I am trying ... | stackexchange/codereview |
I am using response header to make sure that the page is not cached on the browser end, i have used the following code to do that.
Can some one please let me know following,
How to to test if its working ? or not working?
Does it also stops the caching for CSS and JS fils.
Can some one please elaborate how this cachi... | stackexchange/codereview |
How to Delete file created in a specific date??
ls -ltr | grep "Nov 22" | rm -- why this is not wrking??
| stackexchange/codereview |
I have div element with left and top defined, without absolute position, and I want to read the left and top values using jQuery.
Using $("#MyId").css("left") gave the expected result in IE browser (IE8) but in Chrome it returned "auto" instead, although the values are explicitly written in the element style.
Here is t... | stackexchange/codereview |
I am on linux using gdb version 6.8-debian. I have been curious about how the main function in a c-program gets executed and playing around and looking in different places, I learned that the function __libc_start_main is responsiple for this. The arguments to __libc_start_main are, among others: The address of main (l... | stackexchange/codereview |
I have a date in string format as 25 November 2010 and I am trying to fetch the milliseconds of that date, for that I have written the below code:
strDateSelcted = "25 November 2010" // Actually I am receiving date in this format
SimpleDateFormat curFormater = new SimpleDateFormat("dd MMM yyyy");
try {
Date dateO... | stackexchange/codereview |
Is it possible to generate a SQLite database from the model with entity framework? I created a SQLite connection and created a model, but when I click "Generate database from model" I get the following, which looks like MS SQL and makes errors if executed with SQLite (Just the beginning of the file):
-- ---------------... | stackexchange/codereview |
I am currently using an imap stream to get emails from an inbox.
Everything is working fine except I am unsure how to get the body text and title of the email. If I do imap_body($connection,$message) the base 64 equivalent of the email attachment is included in the text.
I am currently using this function to get the a... | stackexchange/codereview |
So here is my situation:
A client of mine has a site based on CodeIgniter hosted at some shared host on domainA.com. They wanted to move the site to a new domain and new host which i have done. I created a new database, and exported the old database and imported it into the new one and i changed the baseurl in the conf... | stackexchange/codereview |
I have a database that is about 200MB. It has about 140 tables and its completely MyISAM based. I'm planning to perform a fulltext search almost 100,000 a day. Should I make any improvements so that MySQL does not give me any problems?
| stackexchange/codereview |
Occasionally I get reports of layout quirks from people using my sites, and the answer tends to be, refresh your browser with Ctrl-F5/clear your cache.
The easiest way I can think to handle this is to append the SVN revision to paths to resources like this styles.css?1234, but I wonder if this is a bit heavy-handed (e.... | stackexchange/codereview |
I have recently started developing applets.
I want to know if it is possible to:
package multiple applets in one jar file
if yes, how do I do this ?
if no, why not ? (i.e. technical reason)
use multiple applets on the same page
if yes, how do I reference a particular applet from an archive, in my page?
if no, why not ... | stackexchange/codereview |
I am writing an album viewing program, which is able to view photos just like in 3d space.
The underlying graphic toolkit is AntiGrain. It implements a trans_perspective transformer to do 2d perspective transformation. Generally, trans_perspective transforms 2D planar onto a square "in space". I've also added methods ... | stackexchange/codereview |
I am a newbee into ksh programming. I have a stuff to do.
I have a file like a.txt
105b /vol/na5b_vol001/lore_000 hdisk478 fcs0 FCP 512.0g (549782028288)
105a /vol/an5a_vol001/aj_001 hdisk479 fcs0 FCP 512.0g (549782028288)
105b /vol/an5b_vol002/a... | stackexchange/codereview |
Lets say I have a table like this
USER_ID USERNAME PASSWORD DATE_CREATED DATE_LAST_LOGIN
1 'user1' 'password1' '12-Jun-2010' '12-Nov-2010'
2 'user2' 'password2' '14-Jun-2010' '12-Nov-2010'
Which is mapped to a POJO class using hibernate like this
@Entity
@Table( name=... | stackexchange/codereview |
Could any body give a short example for binding a value from list array to listbox in c#.net
| stackexchange/codereview |
we're using Delphi 2009's TRibbon control with the ScreenTipsManager. in the footer of the tip it says "Press F1 for more help". how can we show help for the tip currently shown? eg: your mouse is over a button and a tip is shown for the button...how can we determine which hint is being shown so we can find the hel... | stackexchange/codereview |
I am using datediff("h",TimeFormat(stamp), TimeFormat(now)) and checking for a difference gt than 7. If the time is greater than 7 it will update the stamp. It only checks every now and then so its possible for a day to go by with no check. Will the datediff understand that 5AM tuesday is 24 hrs different than 5AM w... | stackexchange/codereview |
I got three breakout boards form spark fun.
and i wanted to test them out.
something that i can visualize like a moving graph.
do you have any suggested links or anything I can reference?
suggestions are greatly appreciated!
. i just want to have something simple like a line just going across on a graph
similar to this... | stackexchange/codereview |
I have used a webservice to populate a Rad Combo Box, when the page is loaded, I need the ability to display the DataTextField, based on the returned DataValueField item
| stackexchange/codereview |
I'm trying to create a custom DataGridViewColumn and DataGridViewCell, and have found this article to be a great resource. I'm done creating the DataGridViewColumn class and the DataGridViewCell class, however, when I try to edit the type of the column, my new custom classes don't show up as one of the options. My Data... | stackexchange/codereview |
Notice: Undefined variable: db_host in C:\wamp\www\cbmall\index.php on line 7
Notice: Undefined variable: db_user in C:\wamp\www\cbmall\index.php on line 7
Notice: Undefined variable: db_pass in C:\wamp\www\cbmall\index.php on line 7
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'loca... | stackexchange/codereview |
i'm almost a newbie to database stuffs.
we are using oracle 10g standard edition as our datastore.
+30m new rows are being inserted to a single table daily.(it's the hugest amount among what we've been managing so far)
the rows will be displayed in a web page as a grid which supports ordering and paging.
we were going... | stackexchange/codereview |
First of all, Git sucks. I know, I know, it's supposed to be the best thing since sliced bread, but it sucks. It's like trying to shave with a chainsaw: one slight mistake and there are blood and teeth everywhere. Perhaps, if I could actually make an exact distinction between a head, a ref, a commit, a branch, a ste... | stackexchange/codereview |
I am writing a Firefox extension which creates a Java applet in the page.
function addApplet(aDocument,url,classfile,archive) {
if (navigator.javaEnabled()) {
var anApplet,body;
body = aDocument.getElementsByTagName('body')[0];
anApplet = aDocument.createElement('applet');
anApplet.setAttribute('COD... | stackexchange/codereview |
Hi I'm using GigaSpaces XAP which basically uses Spring and ApplicationContext to do all it's init and config etc... At some point in time during the loading of the web application a "cache" or what they call a space proxy is instantiated and is made available through the ServletContext. This space proxy is what allows... | stackexchange/codereview |
I am using OpenProcess function. The code works perfectly fine in windows XP but fails on win 7 X32 bit.
My code is as follows
void SetDebugPrivileges()
{
void* tokenHandle;
TOKEN_PRIVILEGES privilegeToken;
LookupPrivilegeValue(0, SE_DEBUG_NAME, &privilegeToken.Privileges[0].Luid);
privilegeToken.Privi... | stackexchange/codereview |
I wanna create a new folder named log and inside that folder i want to create
a textfile named log.txt and this is the path i want to create D:\New Folder
i have tried this to create a new folder named log
string FilePathSave = Folder.ToString() + System.IO.Directory.CreateDirectory(@"D:\New Folder\Log");
And i have ... | stackexchange/codereview |
hi i want to use tcp connection to send/recv messages. The question is i want to send many messages and measure the latencies. Thus, I don't want to receive after every message sent. However, if i don't handle incoming messages in time, the program alway get unexpected result. Is there any way that I can handle recv() ... | stackexchange/codereview |
How to track unique users' stats per day with MongoDB?
My first idea was to use upsert with $addToSet (adding ip to ips array and then count array.length), but this method has restrictions (f.e. collection's size).
| stackexchange/codereview |
I have the next simple html: <td id="comment_td"> </td>. There are two spaces in td. I check the td html like this:
if (!$('#comment_td').html()) {
$('#comment_td').html('No Comments');
}
But it works only in IE))) In Firefox this condition is not perform. Can you help me?
| stackexchange/codereview |
MS Visual Studio includes the resource editor to create icons, cursors, windows, etc. Is there anything similar for Eclipse?
How do developers create Windows with Eclipse? They can be done programmatically, but that's not very convenient, trying to figure out all the coordinates, position of buttons, etc. Designing in ... | stackexchange/codereview |
Here is my code :
NSString *_date = @"Tue, 23 Nov 2010 16:14:14 +0000";
NSDateFormatter *parser = [[NSDateFormatter alloc] init];
[parser setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss '+0000'"];
[parser setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]];
NSDate *date = [parser dateFromString:_date];
This doesn't run : 'dat... | stackexchange/codereview |
what's the best way to parse the geoRss coming from Goggle MyMaps?
I tried jFeed but i have cross-domain issues, i tried the Google's Feed Api but it doesnt give you the lat/lon but the title, author etc...
there is any way to choose the elements you want back in the Feed API?
or anyone knows a better way to parse a ge... | stackexchange/codereview |
I'm want to build web site in asp.net(because I know this language) in server side, and js (probably jquery) in client side, with Ajax technology.
I heard that ASP.NET AJAX is too slow, if it's true (is it?) - what are the other options (to combine ASP.NET and Ajax) for me?
Which tool combine all that technologies?
... | stackexchange/codereview |
I am using custom based uiview controller with uitabbar contains uitableview. I am using image for cell background. I want to do orientation from portrait to landscape but the issue is it is not changing on orientation. I just want to know is there are any special thing for custom uiviewcontroller for orientation?
Than... | stackexchange/codereview |
I am drawing a PIE char in Iphone, with OPENGL ES. Now I need to check the color of the pie where user clicked. When I click any pie, it sometimes returns correct values, and sometimes not correct, and sometimes just returning 0,0,0.
'(void) handleTap:(UITapGestureRecognizer *) recognizer{
CGPoint lPoint = [recognizer ... | stackexchange/codereview |
I need to be able to have groups and unlimited number of subgroups under that group, and subgroups under that subgroup, etc...
I am trying to figure out the right way to do it.
Here is what I am thinking (with some flaws already)
I will create a group model that has id, group_name, and parent_id.
In another table I w... | stackexchange/codereview |
I'm working on project where we are trying to adopt and resize template images to the various resolutions. For example if the website is viewed in 800px width (800x600) and 1024px width or larger the image size should be viewed in same quality.
I've had in mind to use sprite with 3 types of images for each range of th... | stackexchange/codereview |
The following snippet does work for what I need. I believe though that there must be a better practice? A more optimal way of doing this query?
What is needed is to get a list of employee objects that are the direct reports for employee/mgr x. The direct reports are listed in a history table that has multiple records ... | stackexchange/codereview |
Hi
I need to check whether the http_referer is the same site as the current site.
I have the following code
Dim strReferer As String
strReferer = Request.ServerVariables("HTTP_REFERER")
If strReferer.Contains(Request.ServerVariables("HTTP_HOST")) then
'do task
End If
This is throwing up an error saying - "Object r... | stackexchange/codereview |
EDIT: This question title originally was: How does Doctrine know last inserted id in MySQL? and was related to Doctrine ORM mapper. After some digging I found out that this question is not related to Doctrine but to PDO_MySQL, MySQL C API and finally - to MySQL client-server communication. I have decided to change the ... | stackexchange/codereview |
Im given a task which i am a little confused to understand. Here is the question statement:
The following program should read a file and store all its tokens in a member variable.
Your task is to write a single method that returns the number of items in tokenMap, the average length (as double value) of the elements in... | stackexchange/codereview |
I have implemented android's searchmanager using onSearchRequested(). This works fine but it shows itself on top of the page. How can I adjust the layout to just around 60dip from top?
many thanks,
| stackexchange/codereview |
I have a weird issue...
I have an image (a small thumbnail) included in the project AND as a file in the documents directory (both files are IDENTICAL)... when I load it into an image view using [UIImage imageNamed:xxx] it is perfect however when I load it into an image using [UIImage imageWithContentsOfFile:xxx] then ... | stackexchange/codereview |
I have just started working with C++ code compiled in Visual Studio 2008. The default warning level on the project was set to 3 and there were no warnings. I turned this up to level 4, and it turns out that there are about 35000 warnings in our code. The majority of these warnings are unreferenced formal parameters, wh... | stackexchange/codereview |
We are developing an iOS Application that connects to a server over https using nsurlconnection sendsynchronousrequest
We are getting the following error in the iPod Touch 3.2. However, the exact same code does not give any error on iPhone 3.1
Error message:
The certificate for this server is invalid. You might be conn... | stackexchange/codereview |
Well, this is not actually a question..
I have just occasionally found out that there's an interesting way to declare local variables inside a switch/case block. Instead of using braces inside every case block, you can write:
switch (action) {
int res;
int value;
case ACTION_OPEN:
res = open(...);
...
break;
... | stackexchange/codereview |
If I have a 32 character string (an MD5 hash) and I encode it using Base64, what's the maximun length of the encoded string?
| stackexchange/codereview |
I just made a Virtual host using latest apache in ubuntu.
It finds my index.html and serves it correctly, however when trying to download myfile.jar (also in /var/www) from a remote host it returns 404. Doing this locally works fine...
After lots of googling a mime type was added with the addtype directive however this... | stackexchange/codereview |
How does python's multiprocessing.Process's start() method work. In particular, is there any documentation for Process._bootstrap() & if so where?
| stackexchange/codereview |
In my application pressing a list row or a button means executing the same commands. My problem is that the list and the button have different listeners (AdapterView.OnItemClickListener vs. View.OnClickListener). How can I add the code for the 2 views (as a listener) without having duplicate code.
Best Regards
| stackexchange/codereview |
i want to show one database field in a dropdownlist at form load. can anyone tell me how to do it.
please help
| stackexchange/codereview |
From what I understood from all the documentations of select(), it seems that select()ing on a write fd_set could be used to check for socket (descriptor) availibility for send()ing so that could be used to detect a successful non-blocking connect() attempt, but what I don't get is when does a socket ever become unava... | stackexchange/codereview |
Let's say i have three tables: users, quizzes and questions. Each has an id (integer) field and a created_at (datetime) field. I want to be able to put all of these tables together, sort by created_at desc, and then get a 'page' of records (ie by manipulating offset) where a page is ten records for example. Ie, i wan... | stackexchange/codereview |
I am not able to solve this error:
CODE:
class myClass
{
public:
void callMain() ;
void (*callme)(int a , int b);
}
void myClass::callMain()
{
callSomeApi(callme, <some arguments>); //callme function pointer is passed as argument
}
void (myClass :: *callme) (int a, int b) // it this... | stackexchange/codereview |
To my knowledge, in the ZXing Android source code, there is a custom layout to display key points in the QR code image (ViewfinderView). It then displays analysis of the byte stream of the image.
Can I detach from this design and use the Android ZXing source code to develop an approach which can be used in both the An... | stackexchange/codereview |
I am running a rails app, which needs to have a continuous process in the background. The idea is that users are transactionally added to a list, which is inside the process, and then paired together according to an algorithm that runs continuously.
I can't make the algorithm simply run after each user is added becaus... | stackexchange/codereview |
I have the following XML structure so that I can add my configuration details to lastconnected element:
<?xml version="1.0" encoding="utf-8" ?>
<lastconnectedServers>
</lastconnectedServers >
Now I want to do some XML operation like adding elements and attributes.For Example I want to add the elements to xml above:(In... | stackexchange/codereview |
I'm about to implement a server-client protocol over TCP with the following features:
Request and response functionality
Authentication
Server side initiated messages
All over one single TCP connection.
Each request and response will contain multiple variables such as in a HTTP POST request but there might be a need ... | stackexchange/codereview |
Say I have multiple panels, some of them showing data from DB, and some others allowing to add/delete/update rows in DB.
I also have another program (on another computer) able to write in DB at the same time.
I don't have any middleware server between each program, which I found overkill given the small size of my proj... | stackexchange/codereview |
I need to call CPython code from Java. What tools/APIs/libraries exist out there to help me do this?
Jython is not an option since the Python code is heavily dependent upon numpy.
edit 1: The main() function should be Java, not Python (i.e. I need to embed CPython into Java, not vice versa.)
edit 2: I should also menti... | stackexchange/codereview |
I want to use an approach, when most of application commands hold in QActions, so that I could drag actions easily into menu, or toolbar, or button, or anything.
So, I need to implement such a button.
It is easy to write some class, that will hold it, take icon, text, shortcut and tooltip from it and connect clicked() ... | stackexchange/codereview |
I'm facing strange problem. Namely, Qt somehow turns off exception handling in my program. I can't catch any exception, and when I throw an exception application crashes.
I'm using Qt 4.7.0 (32 bit) from Qt SDK v2010.05 on Windows 7 (64 bit), g++ (GCC) 4.5.1 from MinGW, NetBeans 6.9.1.
But I also cheked this with g++ ... | stackexchange/codereview |
I have Excel 2003 files which are imported through SSIS into SQL 2008 R2. With one of the columns I hit a big problem. The column is defined as TEXT in the Excel sheet. Out of 36 rows 32 are having values like XTZ23, they get import correctly. The last 4 rows however
are just numbers like 2646672. They are imported as ... | stackexchange/codereview |
I have the following code:
$time = 60 * 60 * 24 * 3;
$usersTable = new Application_Model_Db_Users();
$where = 'active = false AND registration_time < ' . time() - $time;
$usersTable->delete($where);
But when it is run it deletes all the rows in the table, where as when I run
DELETE FROM users
WHERE active = false
A... | stackexchange/codereview |
Hey all,
I created a page with some images located at public/other_images
So in my image tag i point to '/../other_images/filename.jpg' and this works.
But when I put it online, I've put it at mydomain.com/sub and now the image in my source points to sub/../other_images/filename.jpg and ofcourse it can't be found.
Is t... | stackexchange/codereview |
I can't figure out the principles of dynamic programming and I really do want it. DP is very powerful, it can solve problems like this:
Getting the lowest possible sum from numbers' difference
So, can you suggest me good books or articles (preferably with examples with real code) which would explain me what is dynamic ... | stackexchange/codereview |
I haven't been coding anything for years, so please forgive my stupid questions, but I'd like to group items if they are close to each by timestamp. I mean that items that are for example less than 5 minutes from each other would be recursively grouped. By recursive I mean that the first and last item don't have to be ... | stackexchange/codereview |
UUID libraries generate 32-character UUIDs. How do I generate 8-character only UUIDs?
| stackexchange/codereview |
We made a script that automatically opens the Microsoft Outlook new mail window. Some things have to be filled in already. This works so far:
Set Arguments = WScript.Arguments
If Arguments.Count > 4 Then
Set Outlook = CreateObject("Outlook.Application")
Set BodyObject = CreateObject("Scripting.FileSystemObject"... | stackexchange/codereview |
I have an application with a UINavigationController that contains a root UIViewController subclass (PagingViewController) which manages and acts as the delegate for a horizontally paging UIScrollView. On each of the pages of this UIScrollView, there is a vertically scrolling UITableView, each managed by its own UIViewC... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.