instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Just started using this technique and am having strange results on the PC side. Virtually every browser I preview this site in on a PC makes the font look totally horsey. Example: On the Mac: http://dropbox.smallparade.com/howto-mac.png On a PC: http://dropbox.smallparade.com/howto-pc.png Anyone have experience with th...
stackexchange/codereview
Okay, this question is just getting more and more complex, so I'm going to scratch it completely and start over. I managed to create a very basic Cocoa app that demonstrates my issue. So here's the problem: Inside of a thread, I'm setting the title of a menu item in my application's status bar menu. When the applicatio...
stackexchange/codereview
i have an array of custom objects. i'd like to be able to reference this array by a particular data member, for instance myArrary["Item1"] "Item1" is actually the value stored in the Name property of this custom type and I can write a predicate to mark the appropriate array item. However I am unclear as to how to let t...
stackexchange/codereview
I have a gridview with several ItemTemplates. The first contains a checkbox the rest contain textboxes. I then added dynamically some bound controls like this: BoundField bdfPrivName = new BoundField(); clsUtilities.SetBoundFieldCenter(ref bdfPrivName, "PrivName", "Priv Name"); BoundField bdfDescription = new Bound...
stackexchange/codereview
First off, I'm sorry if the title doesn't explain this very well. I'm looking for an asp.net control that works similarly to the Visual Studio toolbox's auto-hide. In other words, when not needed, it can be "unpinned" and will slide off to the side of the screen. When needed, it can be opened and pinned to stay in pla...
stackexchange/codereview
Is there a way to create an event that will fire when an object's attributes/field values change? For instance, if the object has a field called private int number; And the user performs an action that would update that number, an event would fire that would update all of the text boxes on the form to display current ...
stackexchange/codereview
i am using a actionlink in master page of user module.i want to pass the eventid of the current url(in all views) to the actionlink as a route value.But i use the following code, <%=Html.ActionLink("Create Account", "UserRegistration", new { eventid = ViewContext.RouteData.Values["id"] })%> But it doesnot retrie...
stackexchange/codereview
Hi I am implementing an IM-server-like application in Erlang. I used one agent process for each client connecting to the server, and the agent process is responsible for sending the messages to a message gateway, which in turn sends the message to another agent process. It seems that erlang inter-process messaging is i...
stackexchange/codereview
Possible Duplicate: Check if a String Ends with a Number in PHP I'm trying to implement the function below. Would it be best to use some type of regex here? I need to capture the number too. function startsWithNumber($string) { $startsWithNumber = false; // Logic return $startsWithNumber; }
stackexchange/codereview
my website includes a mysql db with two tables. one table has a field called 'id_array', and it contains a string look like this: '1,3,7,78,89,102'. it represents an array of id's in the second table. what is the best strategy for retrieving the id's in the second table? i want the fastest way. currently i am using 'SE...
stackexchange/codereview
In flex the width can be set to 100%,but in flash it seems I can only set the width/height in unit of px. Is there a way to set the stage to 100% instead of xxx px in flash? I'm using Flash Professional CS5 if that matters.
stackexchange/codereview
I have a "box" made out of two three-dimensional vectors. One for the front-lower-left corner and one for the back-upper-right corner. Are there any simple way to check if a third three-dimensional vector is anywhere inside this "box"? First i wrote simething like (psuedo): p = pointToCompare; a = frontLowerLeft; b = b...
stackexchange/codereview
I have a question that is driving me crazy. I have a large number of buttons (10, more or less) on my screen, inside a TableRow. I need to access them, and I had planned to perform through a loop. Access to one, is very easy, adding this: boton7 = (Button) findViewById (R.id.Btn7) My question is, if you can dynamicall...
stackexchange/codereview
I get a grey bar on left side in vim for one file. This does not happen for any other file. What is this? And how to get rid of it? EDIT: This is what it looks like: This goes on for the full height of the file. It does not appear in any other files. The file is a *.C which is correctly identified as of cpp file type b...
stackexchange/codereview
I'm learning Hibernate Validator. I see that I can add an error message text to any annotation. But this seems like a bad way to handle error messages. It would be cleaner to return an error message ID and look up the message text in some resource file like a Properties file. In this way I can later extend to other lan...
stackexchange/codereview
I want to load some jQuery code before the DOM is ready. I want to make a flash file transparant as the DOM loads. I was going to use something like this but Flash is initilized before the DOM loads. jQuery(document).ready(function(){ jQuery('object:not(:has(wmode))').each(function(){ jQuery(this).attr('wmo...
stackexchange/codereview
Is there readily available functionality for Java to create a folder hierarchy on a remote FTP server. Apache Commons does provide an FTP client, but I can't find a method for creating a directory hierarchy. It does allow for creating a single directory (makeDirectory), but creating an entire path does not seem to be i...
stackexchange/codereview
I'm having this problem with my AJAX, where it's not working in IE, but it is working in FF. I got a majority of the following code off the w3schools website, so I don't see why it would be wrong. Can anyone help me out? <script type="text/javascript"> function checkRefresh(str) { if (str=="") { ...
stackexchange/codereview
I am reading the Users Service to learn about the Users API before I deploy my app. I would like to have users try the app without logging in first. Is this possible? I need to store the input from a given user to Datastore and then fetch it. Thanks.
stackexchange/codereview
I'm attempting to profile a Java web search program called Nutch from source. As far as I understand, to profile, I need to enable profiling in the compiler in order to generate a profile file to be opened in a program such as GProf. How do I do this if all I do to compile the software is run ANT withing the source r...
stackexchange/codereview
I have TabActivity: public class timetable extends TabActivity { ... @Override public boolean onTouchEvent(MotionEvent event) { Toast.makeText(this, "!", Toast.LENGTH_SHORT).show(); return true; } ... } but anything not happend when I move my finger on screen (push, fling, ..) Help...
stackexchange/codereview
here is the page on which the problem lies: www.hodaradesign.com/vis-vertical2.html I tried to enter code here but the site wouldn't let me. So go to the page and view source. There is a list of 10 inputs. three dont work even though all 10 inputs use the same code. can anyone help me out? Thank you
stackexchange/codereview
I have an installer (Visual Studio setup project) which uses DIFxApp and an Orca transform to install drivers. The problem is that there are two DIFxApp merge modules - one for x86 and one for x64. If I reference both of them, the installation only works on 64-bit machines, whereas referencing only the x86 version allo...
stackexchange/codereview
I know little about C#. I am trying to display a progressbar with the status of the background command line program. After google examples of progressbar and run process in c#, so I'm trying to start a BackgroundWorker in the Windows Form, and run the command line program in the BackgroundWorker. I want to parse the co...
stackexchange/codereview
For whatever reason, this little piece of dojo isn't working. I have to admit though, I am fairly new to dojo. dojo.query("#addIngredient").onclick(function(){ var ingredients = dojo.query(".ingredients"); var cloned = dojo.clone(ingredients); dojo.place( cloned, dojo.query("#placeBefore"), "bef...
stackexchange/codereview
HI, i'm trying to draw a circle in my iphone app that just draws a circle with no fill. Any tips on how to do this? I was trying to use CGContextSetStrokePattern but I have no idea how to define a pattern?
stackexchange/codereview
We just redesigned one of our sites at work with our new CMS and are having issues with the DHTML flydown menu in IE7 and IE6. http://www.ohiomagazine.com/Main/Home.aspx If you test it in IE7, you will see that the flydown is hidden behind the content below it. My coworker seems to think that there is something wrong w...
stackexchange/codereview
I've gotten a long way with manipulating PDFs in Coldfusion via DDX. The one thing I can't seem to find is actual document manipulation, such as size, etc. I currently have 8.5x11 PDFs that I am appending Footers to. However, most of the docs fill up the area. I want to add 3" to put my Footer info. Affectively mak...
stackexchange/codereview
I am pushing several messages form my server to the iPhone. When I am pushing I'm setting the badge value as 1. As there are several independent tasks in the server there may be situational where server pushes messages to same phone but the badge will be 1 cos as those are independent tasks I cannot increment the badge...
stackexchange/codereview
So I was reading in a book of a certain paradox: Say you are in a room with a door opposite of you. In order to leave though, you must travel half the distance there each time. So the first stride you make half the distance, and the second stride you take half again, and so on (1/2 + 1/4 + 1/8) etc. The claim is if you...
stackexchange/codereview
This is going to sound weird. A site that has been around approx 2 yrs without a problem, suddenly the Jquery is not showing up properly. The site uses a jquery calendar, corners, slideshow and lightbox. This week, they randomly stopped working in Firefox only. The pages show properly in IE (which is amazing in itse...
stackexchange/codereview
I'm trying to experiment with SVG on Firefox. Since I'm using jQuery, I'd like to at least try out jQuery SVG. I'm currently using Firefox 3.6.12 on Windows 7 Home Premium. When I access http://keith-wood.name/svgBasics.html, the demo works fine for me. However, when I download by clicking the "Download now" button on ...
stackexchange/codereview
I want to restrict the possible types N can take-on using a constraint. I wish to restrict N to be either a int or a decimal. public static Chart PopulateInto<T, N>(List<T> yAxis, List<N> xAxis) where N : int, decimal { // Do stuff here } Any help appreciated...
stackexchange/codereview
I have JFrame, and I added my JPanel class with paintComponent() method. For example I drawed red rectangle, and after some action I want to draw green oval. I tried to call repaint() method in JPanel but nothing happens. Help me please! UPDATE: It's just example code public class Test extends JFrame implements ActionL...
stackexchange/codereview
I am having this SQL query in page2.php: SELECT * FROM events WHERE event id=? In page1.php, I am have the calendar. How can I pass the id from page1 to page2 and display the output in page1?
stackexchange/codereview
I'm currently creating a Symfony project 1.4 and I want to add SEO (Search Engine Optimization). I already know that my URL should contain the title of the page instead of the ID but what about other things: meta, images, titles? Does anybody have good ideas, tips, hints or references? Also hints that are not specific ...
stackexchange/codereview
So my current code: $path = 'C:\\movies'; $d = dir($path); $movies = array(); $movietimes = array(); while (false !== ($entry = $d->read())) { if($entry !== '.' AND $entry !== '..') { $stat = stat($path.'\\'.$entry); $movietimes[] = $stat['ctime']; $movies[] = $entry; } } $d->close()...
stackexchange/codereview
I'm working on a database. On most of the tables, the column order is not what I would expect, and I would like to change it (I have the permission). For example, the primary_key's id columns are rarely the first column! Is there an easy method of moving columns with phpMyAdmin?
stackexchange/codereview
I'm attempting to design a system that will allow the processing of multiple types of file. The idea being that there's a single application to handle the actual manipulation of the files on disk, while developers can write custom libraries that will be able to do whatever they want with the files once loaded. I curren...
stackexchange/codereview
I have a form: <form action="/processform"> <input name="firstname" value="john" /> <input name="lastname" value="doe" /> </form> I have a Person object: public class Person { private String firstname; private String lastname; // ... getters & setters ... } I want to receive this data, perform validati...
stackexchange/codereview
I'm fairly new to Linux (CentOS in this case). I have a folder with about 2000 files in it. I'd like to ideally execute a command at the command prompt that would write out the name of all the files into a single txt file. If I have to, I could write an actual program to do it too, I was just thinking there might be ...
stackexchange/codereview
I currently have iAds working in my app... but, since I'm looking to support iPhone 3.x as well... is it worth it to implement and set up AdWhirl? Or is the market share for 3.x vs 4.x not worth much? Anyone have any stats around this? Thanks!
stackexchange/codereview
Does someone know a fast way to add the ability to rotate and move a 3D model using Qt? Obviously, I have to make changes to the world matrix based on the mouse and keyboard movements, and hence I should somehow handle the appropriate mouseEvents and keyboardEvens. For a 3d camera this seems a bit tricky and although I...
stackexchange/codereview
To see an example: load up a example.com, click on a link that's linking to /test and instead of going to http:// example.com/test/ it goes to http:// www.example.net//test/ Or if you login, the login form for the auto-generated django admin section posts to //admin instead of admin. Seems like this is a django issue, ...
stackexchange/codereview
I arrived at work to today to discover one of our SQL 2005 servers had run out of disk space. On examination the database causing the problem was tempdb. It seems to have grown from around 8mb to 16gb, causing me some concern. After kicking everyone out of the server and restarting the problem the tempdb is now back t...
stackexchange/codereview
I have a silverlight navigation application, and I thought it would be no problem to add a page that's not part of the "navigation" app. What I would like to do is move the user from the application to a new "fullscreen" page where there's only a text covering the page saying, thanks for using....... click here to logi...
stackexchange/codereview
hey guys, what am i doing wrong. i have kind of folders on my website that work with a doubleclick. However somehow my window.location.replace doesn't kind of trigger the browser history. if i use normal click without prevent default, i can use the browser back button. however as soon as i use the script underneath an...
stackexchange/codereview
I have a function say formula(f), where f is a TERM and TERM is a structure pointer. This function prints a formula like forall([U,V],implies(U,V)].These U and V are variable. I need to pass the values in these variable and have to generate the forumula according the combination of the values of the variable.Suppose th...
stackexchange/codereview
This is a very very beginner question regarding Android Development I am trying to create and run the Hello world example from the Android SDK website, but I can't see anything appearing on the screen. It appears to me that Eclipse just hangs at this point: [2010-11-05 09:55:47 - HelloAndroid] -------------------------...
stackexchange/codereview
Based on this http://sourcemaking.com/design_patterns/command/cpp/1, I think the posted code has memory leak b/c the allocated memory stored in the array is never released. I made one modification as follows, #include "stdafx.h" #include <iostream> using namespace std; class Giant { public: Giant() { m...
stackexchange/codereview
Silverlight 4, but I'm not sure if this applys to WPF also. This is some code I have to cycle through controls, and animate them. The first one works perfectly, but the second time around I get System.InvalidOperationException: 2218 An Error has occurred. ... at MS.Internal.XcpImports.SetValue(... It doesn't seem to...
stackexchange/codereview
I added an external Data Source to my C# app (I've placed it on the root directory in a folder named 'data') but when I run the program I get an error at con.Open(): An attempt to attach an auto-named database for file C:\Users\alex\documents\visual studio 2010\Projects\Network_Remote_Monitoring\Network_Remote_Monitor...
stackexchange/codereview
Here is the test code for Ruby. class Me puts "i am me" end who = Me.new myself = who.capitalize I would expect that the string "I am me" would return, but I am mistaken. Ruby doesn't recognize the .capitalize method for a newly created object from a unique class. It's fine with returning who as the "i am me" st...
stackexchange/codereview
I have a very simple Objective-J webapp that is a label and a button. The label text changes when the button is pressed. I want to make the title of the button change as well. If I put the change statement in the swap function below (function that runs when the button is pressed) then the webapp does not launch properl...
stackexchange/codereview
I need to create an XML with the following content: * Two TextViews with varying text (1- 3 rows), one TextView below the other. * One ImageView to the right of the 2 TextViews, centered vertically, 30x30 px. One major limitation is that it can't take the whole screen when inflated into a PopupWindow, which means that ...
stackexchange/codereview
i want to deny some access to some objects in a database for a particular user; but anything not specifically denied i want to, by default, be granted. Normally i make a user a member of the db_owner role, in order to give them all access (this is because the public roll doesn't by default have all access). But if i th...
stackexchange/codereview
does anybody know what this error in VS2010 means (i did try google but not much came up for this case on ATI stream) Error 9 error MSB3491: Could not write lines to file "\\samples\\opencl\\bin\\debug\\x86_64\\MatrixMulDoubleVS10.exe.embed.manifest". The network path was not found. C:\Program Files (x86)\MSBuild...
stackexchange/codereview
Just trying a simple bind. No values are populated into the GridView however. protected void Page_Load(object sender, EventArgs e) { List<string> list = new List<string>(); list.Add("Bread"); list.Add("Cheeze"); list.Add("Wine"); list.Add("Beer"); list.Add("Waffles")...
stackexchange/codereview
If I try to use the shell I get this API conflict. /home/username/.python-eggs/MySQL_python-1.2.3c1-py2.6-linux-i686.egg-tmp/_mysql.so:6: RuntimeWarning: Python C API version mismatch for module _mysql: This Python has API version 1012, module _mysql has version 1013. I'm running: Python 2.6 MySQL Server version: 5....
stackexchange/codereview
This is nested about 10 functions deep, so I'll just paste the relevant bits: This line is really slow: var nodes = Filter_Chunk(Traverse(), chunks.First()); Specifically, this chunk inside Filter_Chunk (pun not intended): private static IEnumerable<HtmlNode> Filter_Chunk(IEnumerable<HtmlNode> nodes, string selectorCh...
stackexchange/codereview
i am new to php, and i am trying to do a script that reads an CSV file(file1.csv) and compare the words in the file with words in a html file (file2.html), if word in file2.html match with the key part in file1.csv it should change the file2.html contents with the value of the key matched .. what i have done so far is...
stackexchange/codereview
I have an INSERT statement that looks like this: INSERT INTO officer (officer_number, name, bank_id) VALUES ('', '', 8) ON DUPLICATE KEY UPDATE officer_number = '', name = '', bank_id = 8, ...
stackexchange/codereview
This is perhaps an, inelegant way of doing this but... I am making my own lightbox window script with jQuery--for learning purposes more then anything else. Using this script: $(document).ready(function() { $(".popout").hide(); $(".modal-links a").each(function(i){ $(this).click(function(){ $("body"...
stackexchange/codereview
Please see object array which i print here: SimpleXMLElement Object ( [@attributes] => Array ( [generator-info-name] => www.ontv.dk/xmltv ) [channel] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( ...
stackexchange/codereview
I'm using paperclip which has a /config/s3.yml file with the following: common: &common access_key_id: XXXXXXXXXX secret_access_key: XXXXXXXXXXXXXXXXXXXX development: <<: *common bucket: myapp-local-dev test: <<: *common bucket: myapp-123-test production: <<: *common bucket: myappname...
stackexchange/codereview
I have a table named Table1 which contains an ID and TimeStamp. Table structure ID TimeStamp 1 0x0000000000047509 But when I compare the combination of these fields, it always shows false. What is the reason for this? My Query is : DECLARE @ID int DECLARE @TimeStamp timestamp SET @ID = 1 SET @TimeStamp ...
stackexchange/codereview
not sure why this is so difficult for me. I have an array and I store its count like so: int index = myarray.count; then I have a for loop like so and I simply want to add index and my i counter below: for (int i=0; i < anotherarray.count ; i++) { int newIndex = index + i; } this gives me the error: assignment mak...
stackexchange/codereview
Lets say I have one schema that defines a complex type named "MyType" in the namespace "general" Then in another schema, that complex type is used. For instance: <xsd:schema targetNamespace="http://www.example.com/otherschema" xmlns:general="http://www.example.com/genschema"> <xsd:import namespace="http://ww...
stackexchange/codereview
i dont want the xslt to decode xml like chngeing html sequence and other things is there any thing i can add to the template to seect it words as it is like select="node() some code" thank you,
stackexchange/codereview
can someone explain to the problem of hidden station problem and exposed station problem and how to solve them using MACA and MACAW?? thanks
stackexchange/codereview
sometimes when running tests on WebDriver with Javascript turned off, WebDriver crashes due to an ElementNotFound Error when it finds an element, and attempts to click it. However, the element is clearly there ! After reading this : http://code.google.com/p/selenium/wiki/FrequentlyAskedQuestions#Q:_My_XPath_finds_eleme...
stackexchange/codereview
There must be many other developers looking for a "good" method of deploying a .NET desktop application, where "good" means: Ease of installation for a trial user Reasonable download size (Not a 350 MB monstrosity) Low cost of any purchased tool Targets Windows XP SP3, Windows Vista, Windows 7, etc. If a user has t...
stackexchange/codereview
Is it safe to send unencrypted, sensitive data such as a password via POST?
stackexchange/codereview
Can anyone give (or point me to) a high-level overview of how MySQL implements transactions, rollbacks, and retries? I'm staring at some code but before diving in for the weekend I figured it'd be useful if someone could give me a birds-eye view so that I'd know where to start. EDIT: Maybe I was a little less than clea...
stackexchange/codereview
Does anyone know where I can find a good starting point to code a function that would take a string and convert it to leet speak? function stringToLeetSpeak($string) { // Logic return $leetString; }
stackexchange/codereview
Is there a way to evaluate a JavaScript function on a webpage in QTP, assigning the result to a QTP variable. I'm using QTP version 9.0.
stackexchange/codereview
The version of diff in my cygwin has a number of advanced options which allow me to print out one difference per line. Given two files one.txt and two.txt. one.txt: one two three four five six two.txt one two2 three four five5 six And running diff in cygwin with the following options/parameters: diff -y --suppress-co...
stackexchange/codereview
It has been a while since I did something in tiles. I am trying to build a simple website with some "bread crumb" feature. I would use static bread crumbs as my page navigation is pretty limited. Here is my tiles-defs.xml file: <tiles-definitions> <definition name=".template" path="/pages/template.jsp"> <pu...
stackexchange/codereview
I have searched around online about feed images to your rss feed. it seems not very popular. is it correct to use to feed images? for instance, <enclosure url="http://images.productserve.com/thumb/547/680654.jpg" type="image/jpeg" length="3241"/> what is the length in the enclosure elementy?
stackexchange/codereview
From this thread : http://geekswithblogs.net/kaju/archive/2005/12/05/62266.aspx someone asked (in the comments) this question: is there any way to do something like this: public FooBar(string fooBar) { string[] s = fooBar.split(new char[] { ':' }); this(s[0], s[1]); } public Foo(string foo, string bar) { ... } W...
stackexchange/codereview
I have a bunch of hidden divs with a single table inside them. Users need to search for a name (can contain spaces) within the first th cell, and then return the div ID. I looked into the jQueryUI autocomplete plugin, but having problems getting it to work with multiple values. Plugin docs and demos. I use "Custom data...
stackexchange/codereview
I created a banner, and when opnening on my browser, I get this error, Error #1033: Cpool entry 18 is wrong type. and tha after that I get ReferenceError: Error #1065: Variable MainTimeline is not defined.
stackexchange/codereview
I was wondering if i can track the unique visitors on my facebook app (inside a fanpage tab). FB doens't allow any kind of cookies do they? Are there any other workarounds?
stackexchange/codereview
I am pretty new to C# (and Visual Studio) and I've run into a problem. I have an Access database that I'm using, and I have need to fill a DataGridView using a SELECT statement. Here's what I've done so far: Opened up my DataSet.xsd file. Created a new DataTable (called MyNewTable) and TableAdapter based on the SELECT...
stackexchange/codereview
Is there a way in PHP or Perl to find all symbolic links to the current file?
stackexchange/codereview
I am trying to sort a query using ORDER BY where I need to sort 3 columns one by one. And the third column is value specific. Eg: If i have 3 columns a,b and c I need to use ORDER BY a, b desc, c='3' asc, c What I want to do is first sort order is a, then b in desc order then I want the values of which has 3 to be sort...
stackexchange/codereview
Strange issue. I've got the following code: // remove template row from DOM and store in variable var $addDegreeRow = $('.addDegreeRow').remove(); $('#addDegreeLink').click(function (ev) { ev.preventDefault(); $('.degreeSection').append($addDegreeRow); }); I'm selecting an element from the DOM, removing it, a...
stackexchange/codereview
In my last question (Qt/C++: Icons not showing up when program is run) I asked how to get an icon to show up on a toolbar and was told I needed a Qt Resource, which I added and that fixed my problem, the icon did show up on the toolbar. Now I'm trying to set the title icon of a window, using the same resource file, and...
stackexchange/codereview
I have a file where each line is a set of results collected in specific replicate of an experiment. The number of results in each experiment (i.e. number of columns in each row) may differ. There's also no importance to the order of the results in each row (the first result in row 1 and the first result 2 are not more ...
stackexchange/codereview
In Sql Server 2008 r2, I have a table called Emp, and I'm trying to update some values in a transaction (outer tran), now after the update and before the commit, I began another transaction, in witch i tried to select data from the same table (Emp) but via a loopback linked server. the tsql look like this: USE MASTER ...
stackexchange/codereview
I am trying to play around with WCF and I think I've hit a block. My issue is that I am able to call Add(double,double) and getPerson() from the "Client". However, I am not able to call any methods of Person object. I've stripped down the classes with bare methods. Here are my code snippets, please let me know what I a...
stackexchange/codereview
How would I change http://website.com/file.php to http://website.com/file/ thanks.
stackexchange/codereview
I have several complex queries (using subqueries, etc...) and want to glue them together with OR or AND statement. For example: where1=table.where(...) where2=table.where(...) I would like something like where3=where1.or where2 Next example doesn't work for me: users.where(users[:name].eq('bob').or(users[:age].lt(25)...
stackexchange/codereview
We are using state_machine ( https://github.com/pluginaweek/state_machine ) in a project and would like to offer a form with a select that lets us choose a state. (this is for searching, not for setting). I can't seem to find a way to list out all the possible states? Surely there should be an automatic way of doing th...
stackexchange/codereview
Hi I have a problem, in my program I have several QLabel and QTextbrowser, at times, I want each of them to display something, but I want to do this through another function called NewMessage. So NewMessage will receive message from QLabel or QTextbrowser, and process them, then display it. But the problem is I don't w...
stackexchange/codereview
NSString * aString; What I don't understand is the *, what exactly does that operator do and what else can go there if anything? Sorry I know this is a rather novice question but I am self taught; whenever I see "*" I think wildcard and I don't see why you would cast an object NSString ;
stackexchange/codereview
I have created a custom UITableView cell and it has 4-5 various components. Some times I create UIViews from CGRectMake and some times based on some x, y coordinate calculations I position some UIImages. Everthing works fine cos cellForRowAtIndexPath every time creates a new cell. But when Im going to reuse the cell ba...
stackexchange/codereview
What would be an efficient and the right way to implement this expression? {'a': 1, 'b': 2 ... 'z': 26} I have tried: x = dict(zip(chr(range(ASCII of A, ASCII of Z))) Something like this? But I can't figure out the correct expression.
stackexchange/codereview
I've read in several places that if you are using Java 1.6 then you should use type 4 JDBC drivers. Does that mean that you should not use type 3 drivers?
stackexchange/codereview
I want to create a completely dynamic data matrix. For eg, Column1 Column2 Column3.... id1 id11 id12 id13... id2 id21 id22 id23... . . . . . . . . Can anybody help me with the code in XAML that will display the data in the above manner? I mean ...
stackexchange/codereview