instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a table with 2 columns, PatientID and TestNo. PatientID can be same for more than 1 records but the TestNo will be always distinct. I want to know the SQL statement which can fetch me the highest value in the TestNo field among all the records which has same PatientID basically max(TestNo) . I want to pass the ...
stackexchange/codereview
I'm trying to setup apache2 so that I can try ssl in development on my rails 3 app on ubuntu. The rails app works, except for https where in Fire Fox i get: The connection was interrupted The connection to localhost:3000 was interrupted while the page was loading. In the console i get: Thu Oct 14 15:56:28 +1100 2010:...
stackexchange/codereview
Hai i want to write a automaic pinging for my blogger when ever i update my blog , suggest me if any script already available or how to start
stackexchange/codereview
I am just starting with this, and with this code: public static void main(String[] args) { Locale[] supportedLocales = { new Locale("en", "CA"), new Locale("es", "ES") }; ResourceBundle labels = ResourceBundle.getBundle("Messages", supportedLocales[0]); System.out.println(supportedLocales[0].getDis...
stackexchange/codereview
I have a DataGridView in one of my form which at a certain point I resize an change it's position. I would like to be able to restore it to the designer's default position at runtime. I know I could save it before changing and then restoring it later, but I feel like there surely is a way in .NET to just restore a cont...
stackexchange/codereview
Why isn't it possible to assign events along with properties in object initializers in C#? It seems to be so natural to do so. var myObject = new MyClass() { Property = value, Event1 = actor, // or Event2 += actor }; Or is there some trick that I don't know of?
stackexchange/codereview
Can anyone show me a script or example of a form results being emailed with submit? Does jquery have any advantage with this? Erik
stackexchange/codereview
I'm using an asp:FileUpload control to give the user the chance to look for an image on the hard drive, once the user has chosen the image, after a button is pressed, I want to display the image in an asp:Image control. I've been trying to get the full path of the file but I can't get it, I'm using Path.GetFullPath(Fil...
stackexchange/codereview
I'm trying to do the following: //Code under test function Foo() { this.do_something_interesting = function() { var dependency = new CanYouMockMe(); if(dependency.i_want_stubbed() === true) { //do stuff based on condition } else { //do stuff if false } } } //Test Code describe("Foo", fu...
stackexchange/codereview
I have a issue with a table. I want just a border-bottom to be set and I wanted to have no gaps in between the td's, my css looks like this: #questions td { padding: 10px; border-bottom: solid thin black; } questions is the id of my table. I've tried setting the border bottom of the tr but this seems to do not...
stackexchange/codereview
I have created a form and have validated everything using PHP, but can't figure out how to validate email from database. If I have the entered username in the database, I want it to display an error. I have connect.php and just for an example - here's how i validate password - if(!empty($_POST['password'])) { if($_PO...
stackexchange/codereview
I want a Grid layout with two rows and splitter between them. Rows should have a minimum height of 80 pixels. This code works great: <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" MinHeight="80" /> <RowDefinition Height="5" /> <RowDefinition Height="*" MinHeight="80" /> </Grid.Ro...
stackexchange/codereview
Sorry about the rubbish question title. I have a table SET_DEFINITIONS like this: SETKEY NOT NULL NUMBER(38) SETENTRY NOT NULL NUMBER(38) where the idea is that the rows define sets of numbers. For example the table could contain rows: 1 2 1 4 2 1 2 2 which would mean set 1 is {2,4} and set 2 is {1,2}...
stackexchange/codereview
There is task to implement some triangle class with interface like this public interface Triangle { void moveApex(Point from, Point to); List<Point> getApexes(); void rotate(double angle); void setLocation(Point p); Point getLocation(); void setSize(Dimension d); Dimension getSize(); } Whe...
stackexchange/codereview
I have a sql DB table columns which carries data in "0000-00-0000" format. For ex: "8753-11-2010" Now i need to change this value from "8753-11-2010" to "008753-0011-2010" i.e. i need to pad "00" in front of "8753" and "11" i mean the first two strings u can call it. please advise how i can achieve this in sql server...
stackexchange/codereview
I am trying to convert my Rails 2 app to Rails 3, but I can't delete any resources using my old Rails 2 code. To be precise I am trying to delete a resource, using this link: <%= link_to image_tag("misc/delete.png"), @book, :confirm => 'Are you sure?', :method => :delete %> And yet it doesn't work at all! It just beha...
stackexchange/codereview
I want to do a simple image animation.Assume that there is small image of 100*100 pixel image at location A. I want to move the image from location A to location B and maximize the at location B. I have both the dimension images small and large. I don't want to increase the width and height of image itself. I have a se...
stackexchange/codereview
Previously, when running a Code Analysis on my project, I thought the context men used to show a link to a MS web page that explains the issue in more detail. I don't see that now and I am not sure if I am doing something differently or if I am confusing this tool with another. Does anyone know if this type of informat...
stackexchange/codereview
I am seeing weird behavior on Linux where I am seeing that remote end and local end are both showing same IP and port combination. Following is the netstat output netstat -anp | grep 6102 tcp 0 0 139.185.44.123:61020 0.0.0.0:* LISTEN 3361/a.out tcp 0 0 139.185.44.12...
stackexchange/codereview
Can you suggest any tool to re indent minified JavaScript files and compressed CSS files?
stackexchange/codereview
I have:- IEnumerable<IEnumerable<T>> items; and I'd like to create:- IEnumerable<IEnumerable<T>> results; where the first item in "results" is an IEnumerable of the first item of each of the IEnumerables of "items", the second item in "results" is an IEnumerable of the second item of each of "items", etc. The IEnumer...
stackexchange/codereview
We're working on creating a specialized graphical editor for our enterprise applications. We've looked at and rejected DSLs. Ideally I'd like to have the main interface of the editor be docked like the code windows and use WPF for drawing. Can anyone point me to some documentation to get me on the right path? Thanks. C...
stackexchange/codereview
I am trying to simply center text horizontally and vertically using DIV and display type as table-cell but it is not working in either IE8 or Firefox. Below is the CSS that I am using and that is all that is in the html page. @charset "utf-8"; /* CSS Document */ html, body { background-color:#FFFFFF; font-famil...
stackexchange/codereview
Ok, So I have a table called 'auctions' and each auction has a 'product_id' associated. The auctions table may have 500 items with repeated products. I want to order by auction_id asc (so newer auctions are shown first), but also only show distinct products. Using distinct doesn't work, and when I group by the product...
stackexchange/codereview
I have to call .net web services in android using ksoap2 api. My code is working well for passing parameter as String or int. But it showing "java.lang.RuntimeException: Cannot serialize: java.util.GregorianCalendar....." while passing Calendar object as parameter. I converted date into string and parsed it into date o...
stackexchange/codereview
Does anyone know of a tool that can help determine which unit tests should be run based on the diffs from a commit? For example, assume a developer commits something that only changes one line of code. Now, assume that I have 1000 unit tests, with code coverage data for each unit test (or maybe just for each test suit...
stackexchange/codereview
From what I understand about these two "Not only SQL" databases. They search over each record and pass it to a JavaScript function you write which calculates which results are to be returned by looking at each one. Is that actually how it works? Sounds worse than using a plain RBMS without any indexed keys. I built my ...
stackexchange/codereview
I have an eclipse plugin project which dependes on java project in my eclipse. usually what I did is export the project as jar and use it as-is in the plugin. but this requires manual work. can I have a reference from my plugin projct to a java project that will be both compile-time and run-time dependency ? I saw a si...
stackexchange/codereview
I've used the Flex HTTPService to connect to a backend blazeDS service without any problems at all. The question I have is, can I also use HTTPService to send a HTTP POST message to a server (with basic authentication)? Specifically I'd like to be able to interface Flex with Notifo (https://api.notifo.com) and to inter...
stackexchange/codereview
I have html <table> <tr><td id="cell">&lt;a href=&quot;&quot;&gt;Google.com&lt;/a&gt;</td></tr> </table> <div id="to"></div> And I have javascript $(document).ready(function() { var html = '<input type="text" value="'+$("#cell").html()+'" />' $("#to").append(html); }); I don't know why, but when executing this...
stackexchange/codereview
is it possible to remove a History item in gwt? What i want to achieve is that in a special case pressing the browsers back button will show up the second history item from back. I know i can do it by manually calling History.back();, but i don't like that because the user will see the transition for a second or so whi...
stackexchange/codereview
I would like to use AVPlayer Class' seekToTime. It takes a CMTime. I read the CMTime reference from Apple but its is very hard to understand. Can someone please give me an example on how to use... - (void)seekToTime:(CMTime)time
stackexchange/codereview
I have 1 page, 2 controls and 2 update panels. Control (A) has and update panel inside it. Control (B) doesn't. Both Control A and Control B are on the same Page and I have wrapped an update panel around Control (B) in the page. Now my question is: Given an event that causes a postback on Control(A)(the control with t...
stackexchange/codereview
I have a datagridview with 3 comboboxes. When in combobox 1 (=Rownumber = 1) AA is selected then at runtime combobox2 has to be filed with some value. This value is comming from a DataTable. When some value is selected in combobox2 (Also RowNumber = 1), then at runtime combobox3 (also RowNumber = 1) has to be filled w...
stackexchange/codereview
I have a function that returns the orders for a given period. I've create a Period object which ensures that, when specifying a date range, the start date is <= to the end date. Likewise, if dealing with a month period, the start and end dates of the period should be the first and last days of the month, respectively. ...
stackexchange/codereview
I have some code within struts.xml like: <action name="viewApplicationPDF" class="com.xxx.abc.web.action.XApplicationPDFAction"> <result name="success">/WEB-INF/templates/xApplication.jsp</result> </action> I want to be able to quickly jump to the occurrences of the action "viewApplicationPDF"...
stackexchange/codereview
Is it possible to draw a circle on a canvas in Android with a different colour border using only one drawCircle method? I have noticed the PaintStyle of FILL_AND_STROKE but cant seem to have different colours for both the fill and the border. I really don't want to have to call two drawCircle methods.
stackexchange/codereview
I would like to return a string from a model, which can be used directly in the liquid-based template. The problem is, that I would like the string to be translated using gettext. I cannot use _("string") right into model.to_liquid, because it doesn't work. As far as I understand, the model is loaded once, and it will...
stackexchange/codereview
Say I have a dropdown list like this: <select id="MyDropDown"> <option value="0">Google</option> <option value="1">Bing</option> <option value="2">Yahoo</option> </select> and I want to set the selected value based on the option text, not the value with javascript. How can I go about doing this? For exampl...
stackexchange/codereview
I'm able to create an event via the Facebook Graph API but I have yet to see a way in which to invite users to that event. My fallback is to simply use the old REST API but sooner or later that will be phased out so I wanted to see if anyone had any suggestions. -- Additional side question: While using the REST API (o...
stackexchange/codereview
I need to create a data index of HTML pages provided to a service by essentially grabbing all text on them and putting them in a string to go into a storage system. If this were GUI based, I would simply Ctrl+A on the HTML page, copy it, then go to Notepad and Ctrl+V. Simples. If I can do it via good old point n' click...
stackexchange/codereview
I have a group of people who have taken a test. I can select their IDs with this query: SELECT person_id FROM tests WHERE test_code = 1234 I'd like to pull these individuals' records from a demographics table, so I tried this subquery to do so: SELECT * FROM demographics d WHERE d.person_id IN ( SELECT t.person_i...
stackexchange/codereview
We have a largely asp.net web form team (With some Oracle developers thrown in). Question 1: Is it a good idea to start using asp.net MVC which will mean redevelopment of a number of standard controls for not much benefit. Question 2: Is it a good idea to hire developers where there most recent skills are with asp.net...
stackexchange/codereview
Is it possible to dynamically unregister an intent that was registered with an activity's intent filter in its manifest file?
stackexchange/codereview
While using AAVERIFY wihtout any arguments like AAVERIFY ?Result I am not being prompted for a passwrd, it directly throws me the result as false. Does anybody have any idea about this. It was working and suddenly now it skips the prompt of asking me the password. Thanks for all the help
stackexchange/codereview
I need to open a specific SSL secured site inside an iFrame of an Adobe-AIR application written in Javascript. For that reason I've build a small test application which opens the site in a iFrame - this works well, but the server certificate is not accepted. A Popup shows up and prompts the user to accept the untrusted...
stackexchange/codereview
How can I set the TextView properties like width, height using Java Code?
stackexchange/codereview
How can I convert an image from a URL to Base64 encoding?
stackexchange/codereview
I've added a tooltip feature to my application because parts of the ordering system can be confusing to some of our newer users, it's simple jQuery: $(document).ready(function(){ $('input, select, textarea').focus(function(){ $class = $(this).attr('title'); $('.tooltip_' + $class).fadeIn(500); }...
stackexchange/codereview
I have to extract this particular HTML using PHP. Since I haven't any class or unique ID I tried to use his bgcolor attrib but without success... <td bgcolor="#F5EC97" width="154" valign="top" align="left" height="55"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><font color="#CC6633">C...
stackexchange/codereview
I tried to create a complier on which Complile my code wriiten in c#.net. I am working on debugger i have create complier but is there is a way through which i can put a break point on my code file and when click on the Run button it will be stop where i put break point Please tell me if any body knows the code how we...
stackexchange/codereview
Hi I have an ATL based COM plugin and there is another 3rd party library that I want to use. It's not COM dll and implemented in C++. details on 3rd party dll as follows: Configuration type = Dynamic Library(.dll) Use of MFC = Use MFC in a static library Use of ATL = not using ATL Character set = use multi-btye char se...
stackexchange/codereview
I am working on languge segmentation project. I applied language segmentation for English by using regular expression breaking the string at . ("Full Stop"). Now i want to provide the support for following languages (Chinese, Arabic, Japanese, Russian, Korean, Dutch, Hindi, Greek, Urdu). I want to break the above menti...
stackexchange/codereview
I have quite a lot of code written in Erlang, which I want to include in applications written in Objective-C, eg on the iPad. Ideally I would want to have an object that encapsulates the Erlang run-time; this could then be accessed like the standard Erlang shell, something along the lines of: ErlangRT *runtime = [[Erla...
stackexchange/codereview
When using minified or generated javascript I would like to be able to see the original source an step through the original rather than the generated output. This would be in much the same way debugging symbols for compiled binary files let you see the original source. The original source might not even be javascript b...
stackexchange/codereview
The thing is that I have two values which are similar to a username and password, but are actually 2 randomly generated GUID's that users use to login to a website I made - they are not really a username and password, but with the GUIDs I try to replicate this combination. Usually browsers ask you if you want to save t...
stackexchange/codereview
when i click on #button, it's stilling doing the 'do something', even though .wrapper is animating and .wrapper span is not visible. so it's not following the rules. what's wrong? $('#button').click(function(){ if( $('.wrapper').not(':animated') && $('.wrapper span').is(':visible') ) { //do something } })...
stackexchange/codereview
My last question leads me to this one: wxTextCtrl:setValue( TcGrossProfit, io_lib:format("~.2f",[NewGrossProfit])), generates an error from wxTextCtrl, with a bad arg. I know this is the culprit NewGrossProfit = 5.45333, io_lib:format("~.2f",[NewGrossProfit]) Thanks for the last one, hope this one's easier -B EDIT ...
stackexchange/codereview
I am getting this warning but all functions working properly . what does this really means? 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
stackexchange/codereview
I have two similar tables in oracle in two different databases. For example : my table name is EMPLOYEE and primary key is employee id. The same table with same columns(say 50 columns are is avlbl in two databases and two databases are linked. I want to compare these two tables column by column and find out which reco...
stackexchange/codereview
I am lookind for a effective way that I can replace newlines with an auto-incrementing number. eg. this is line 1 this is line 2 this is line 3 this is line 4 to 1. this is line 1 2. this is line 2 3. this is line 3 4. this is line 4 Is looping through each line the only way? I guess thats the way I will implement...
stackexchange/codereview
I have an array of ids of objects that I want to get from the database, but PostGreSQL returns them sorted by ids: Users.find([4, 1, 3]) => [User 1, User 3, User 4] I know I could sort them back like this: ids = [4, 3, 1] r = Users.find(ids) users = ids.map{|id| r.detect{|each| each.id == id}} But wouldn't it be bett...
stackexchange/codereview
I have a tree (a parent could have any number of child ) and an inputText for searching nodes by name. Assume the following tree: A --A1 ----AA1 --A2 Where A has two children A1 and A2, A1 has one child AA1. When i type A1 in input text , i want to set nodes (A1,AA1) programmatically to select and if it is necessary e...
stackexchange/codereview
(gdb) info registers ds ds 0x7b 123 (gdb) disassemble Dump of assembler code for function printf@plt: 0x0804831c <+0>: jmp DWORD PTR ds:0x804a008 => 0x08048322 <+6>: push 0x10 0x08048327 <+11>: jmp 0x80482ec End of assembler dump. Can someone describe me how to map ds:0x804a008 addr...
stackexchange/codereview
I'm attempting to compile javabot on windows using maven 2. I've compiled java programs in the past ( so I know the default JDK is working correctly), and this is my first time using maven. The error I'm getting is: [INFO] Compilation failure \evanchooly-javabot-dbea131\apt-tools\src\main\java\javabot\maven\Indexer.ja...
stackexchange/codereview
NetBeans by default will not generate documentation from @author and @version tags. How do I enable this from within the IDE? Edit: There is indeed an option within NetBeans to display these tags. Run>Set Project Configuration>Customize... Expand Build and select Documenting - the checkboxes are right in the middle.
stackexchange/codereview
I'm kinda stuck. I defined three variables:var part1 = "<form><input type='button' value='Open Window' onclick='window.open('http://jsfiddle.net/ "; var part2="5Xket," var part3 = "'toolbar=no',menubar='no')></form>"; My aim is to concat those variables to create a working link when clicking on the button. This is my t...
stackexchange/codereview
I need to find all records that are exactly 3months old in Postgres My query looks as follows. SELECT * FROM adds WHERE adtype = 'CL' AND DATEDIFF(dstart,DATE(now())) = DATE_SUB(curdate(),interval 3 month); But this does not seem to work. Any advise help with this query will be helpful. I can calculate this in PHP but ...
stackexchange/codereview
Is there a way to use an image size when setting the sizes of a view? I want to create a TextView item with the exact height of a resource image, but I don't want to use the image as a background for the text view.
stackexchange/codereview
I am creating locale files for internationalization in a rails app, and have a url that I want translated with tags included , for example html.erb <%= t(foo.bar.xxxx) %> yml file foo: bar: xxxx: "xxxx" result &lt ;a href= "/info/index.html"&gt ;xxxx</a&gt ; which breaks my links. I do not have an h...
stackexchange/codereview
I've been trying to compile some F# code with Mono 2.8 in OpenSuSe 11.3. And I keep running into trouble, I'm currently getting this error thrown at me: parameter error FS0219: The referenced or default base CLI library 'mscorlib' is binary-incompatible with the referenced F# core library '/home/fredrik/Documents/ FSh...
stackexchange/codereview
I am attempting to build a gallery page for a website I am working on, Internet Explorer 8 compatibility is a must. After building the script out for the page, I take a look in internet explorer and run into this interesting issue. It seems that my background image is running fine until suddenly it just stops. I have n...
stackexchange/codereview
I have our own MIB files, and I know in many cases, I have to write snmp agent to support my own MIB. But this time, I think if I can make jboss snmp adapter(JBossSNMPAdapter) to support my MIB, it will be much easier. So that, through jboss snmp adapter, I can query by its oid. I know JBossSNMPAdapter already suppport...
stackexchange/codereview
I obviously new and have been trying to two days to figure out how to save the state of my main activity to no avail. I would appreciate any help. When I launch the ShowDetail activity and return to the main activity I have no data in the list. I have two xml files a main.xml and a item.xml file. main is just a listvie...
stackexchange/codereview
I am mining some data. I want to save time. So any method?
stackexchange/codereview
i have got 5 php pages which are question papers (MCQ's). the user is provided with 1 of the papers...which he answers and submits...it then goes to AnsCheck.php ...in AnsCheck.php i need to understand from which page i.e from which of the 5 papers the request was received so that i can proceed with the checking ...how...
stackexchange/codereview
I have 2 apps in 2 different servers - Tomcat(basically a .WAR file) and a EAR in jBoss. EAR is a reusable app where I will authenticate the user and send back the control to the app on the Tomcat. While authenticating I am creating a session object on the jBoss app. When I send back the control to the app on Tomcat I...
stackexchange/codereview
Is it possible to extract a particular line from a file knowing its line number? For example, just get the contents of line N as a string from file "text.txt"?
stackexchange/codereview
Hi i have a procedure with a cursor. Basically in the cursor i am getting a record and inserting it into DBA.header_balancing with certain values that was received in the cursor. I receive this error "Error: Correlation name 'updates_cur' not found" CREATE PROCEDURE sp_iq_bw_balancing AS BEGIN DECLARE @dat...
stackexchange/codereview
I understand when an activity closes, onDestroy() is called. But this is not done always right? Sometimes, onPause() is called. So suppose I want to clear some memory when an activity closes, where exactly do I do it? Since onDestory may not be called, I cannot keep it there either right? Elaborating: I have 2 activiti...
stackexchange/codereview
I have scrollView added in xib & i am adding an imageview to it programmatically.Now I am not able to detect touch event on this imageview though i have enabled userinteraction for imageview.Actually I want to use the location where the imageview was touched.
stackexchange/codereview
Meaning, I want to match: $10 or $ but not this: ${name} or: $image{http://wrfgadgadga.com/gadgad.png} I also want to match everything else... normal characters, symbols, numbers, etc. Matching everything but things that start with $ is easy. It's like this: def literalCharacter: Parser[String] = """[^\$]""".r I'v...
stackexchange/codereview
Now I can remember more, that whenever we get back a Facebook session or access_token, it should have a life time, and before we get back a user id, the library is supposed to have verified the user id is real by doing MD5, etc. How do session and access_token work currently? Is there infinite session any more? Do th...
stackexchange/codereview
i hav a html tags stored in string and i want to load the table with the attributes which i given dynamically through program... how to search the particular tags of the row and column of html and add the data to the attributes... any help appreciated... Thanks in advance......
stackexchange/codereview
I set the SelectionMode property to OneOrMore. How i can open all items, when conrol loaded?
stackexchange/codereview
I had Ajax calendar for birth date on registeration form and I tried to restrict user from select now date also I tried to limit user to select from calendar birth date equal 6 years or greater than6 years.I user rang validator but I couldnot .So please any one help me.
stackexchange/codereview
Hi:I want to design a structure for letting sensor data ( 3 float values at around ~40Hz) be accessible through something like an Observable. But by using the java Observable/Observer class a high overhead will affect the performance. What are the known approaches to keep it efficient and make it structured as well?
stackexchange/codereview
I want to create and display a value which is increasing by a fixed amount per second. I have the following variables in my PHP file: $AccountValue=220000; $IncreasePerSecond=15; So for example when the page loads the value would be 220000 after one second the value would be 220015 after another second 220030 ....etc t...
stackexchange/codereview
My application is using SWIG to communicate between c++ and python on windows. suppose if my interface is "example.h" swig is generating example.py, example_wrap.cxx /* File : example.i */ %module example %{ #include "example.h" %} %include "std_string.i" %include "std_wstring.i" %include "example.h" I am porting ...
stackexchange/codereview
Possible Duplicate: Facebook javascript firing on a “share” Is it possible to detect when the share button is clicked in the pop windows when using fb_share ? I used the new SDK and got it working using the response but I cannot seem to get it working when using the simple share button.
stackexchange/codereview
I learning about writing my own interfaces and came across the MSDN article "Interfaces (C# Programming Guide)". Everything seems fine, except: what does <T> mean or do? interface IEquatable<T> { bool Equals(T obj); }
stackexchange/codereview
i would just like to know if the way i am doing (parsing xml data) is correct. From web service (hosted on sharepoint 2007) i retrive xml data. Web service does not retrive any parameters, just returns data. Now I'm using jQuery .ajax() function to go throu this data and output it. XML is very deep inside (7 levels) ...
stackexchange/codereview
Can you give me a idea about the best way that can i store the data coming from the database dynamically. I know the number of columns before, so i want to create a data structure dynamically that will hold all the data, and i need to reorganize the data to show output. In one word - when we type the query "select * fr...
stackexchange/codereview
I have two tables for an online shop: one for categories: id, title one for products: id, ownerid, title, price (ownerid is the id of the parent category) I want to select all the categories and also select the minimum and maximum price in each, hence the following query: SELECT sc.*, MIN(s.price) AS minp, MAX(s.pric...
stackexchange/codereview
I have a little problem - i would can get with this query topics posts count and last post id, but i can't figure out, how to get right user id. I get first post (lowest id) user id but i want lastest post... I have tried adding "ORDER BY id DESC" but this will not help. Any ideas how to do it? SELECT COUNT(`id`) ...
stackexchange/codereview
I am creating a splash for a program that I'm making but RegisterClass keeps on failing (2: The system cannot find the file specified.) My code is this: WNDCLASS wc = {0}; wc.lpfnWndProc = DefWindowProc; wc.hInstance = g_hinstance; wc.hCursor = LoadCursor(NULL, IDC_ARROW); if (wc.hCursor == NULL) { #ifdef DEBUG log...
stackexchange/codereview
UPDATE: This seem to only be an issue with ul/li if i replace the ul with a div and remove the li and apply the relevant style to the a's instead its fine. ID' still liek to know why the ul/li structure presents a problem since margin/padding have been reset explicitly. Im having soem trouble with the children of a fi...
stackexchange/codereview
Have some way to save the REPL state of Common Lisp or Scheme? Thanks
stackexchange/codereview
I have a file foo.py with some history. I want to rename it bar.py but see the history with "hg log". I tried "hg rename". It does not seem to maintain the history. FYI. I only browsed the man page. Thanks in advance! Thanks for the answer. As an addendum, if foo.py is 500 KB, will a rename increase the size of th...
stackexchange/codereview
I've got the following code and I'm trying to use CSS2 or CSS3 to make it so the content appears below the header on each page when in print preview. Is this possible? It seems to work correctly on the first page but then every page after that the header sits on top of my content. <!DOCTYPE html> <html><head> <style> @...
stackexchange/codereview