instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
We have most of Gnu C Library Headers in /usr/include
I'm looking for a way to open and read an include file and parse it to print all the declared functions which are located inside it.
and can any one explain or provide a link talking about this headers formatting.
I doing this because I'm trying to do an C Auto comp... | stackexchange/codereview |
From the Django shell (manage.py shell), when attempting to import a python module that uses logging I run into permission problems: the log files are owned by the web app user
IOError: [Errno 13] Permission denied: '/path/to/my.log'
Is there a way to disable / mock / otherwise work around this issue so I can use the ... | stackexchange/codereview |
As i wanted to use a Custom List Adapter so that I could style the list but the Filter functionality is not working. I got the basic filtering to work but the application crashes as soon as the list of filtered results is less than the number of listItems shown when I start filtering.
There is also a second problem I a... | stackexchange/codereview |
I been trying to upload File throught WCF using ExtJS here a snippted of my code
browseFile = new Ext.ux.form.FileUploadField({
id: 'form-file',
name: 'BrowseFile',
fieldLabel: 'Browse',
allowBlank: false,
maxLength: 8000,
emptyText: ''
});
added to the form and use the fileupload:true property too... | stackexchange/codereview |
i just want to get the result of an sql query into a string variable.how is it possible in c#
(.net) wihout using datatables.
query like this
Select Routine_name, Routine_Definition
From Information_Schema.Routines
Where Routine_Name = 'sp_sudh'
| stackexchange/codereview |
If I have Firebug console open, and return the following in a rails controller in response to an ajax call:
format.json { render :json => Appointment.find_by_id(1) }
I get an 'invalid label' error. But it works fine it Firebug is closed.
Any ideas???
| stackexchange/codereview |
I need to write a very high load UDP server. I'm using .Net. How do I use the Socket class to achieve this?
I am familiar with the winsock API, and completion ports, and what i would do there, is to use several threads to accept sockets using a completion port, and also to receive in the same manner.
My server needs to... | stackexchange/codereview |
I have a parent window for entry transaction that havs customer ID field input. User have to click find button beside it and new window will be opened and user can findout there. Whenever user choose selected customer, the parent will display some information of the customer like name, address may be, and detail of cla... | stackexchange/codereview |
I'm looking for a simple example for camera access in Linux using V4L2.
Where I can find it? As simple, as possible.
Thanks,
| stackexchange/codereview |
Hi
I am using the python-sdk (http://github.com/facebook/python-sdk.git) on google appengine.
I am runnig the "newsfeed" example.
In facebook.py i had to import urllib2
and then change
file = urllib.urlopen("https://graph.facebook.com/" + path + "?" +
urllib.urlencode(args), post_data)
to ... | stackexchange/codereview |
I am using a perl script file as a map file in RewriteMap directive.
As i read the apache load the script once at the beginning, So is it needed to reload or restart apache after any changes to this script file?
| stackexchange/codereview |
I just installed ruby on rails on my new computer ( I was using instantrails before) and I'm trying to get everything setup.
Im running Windows 7. So I followed the instructions from this tutorial.
http://blogupstairs.com/ruby-on-rails/installing-ruby-on-rails-on-windows-7/
The problem i'm guessing is step 3
"Add the n... | stackexchange/codereview |
Does anyone know a script or API I can use in my website to display search statistics (from popular search engines) for various keywords? e.g Google Tv, Black Ops..
| stackexchange/codereview |
We are working on .NET Windows Application. We were using TFS from the beginning. Now, after Assembla - an agile wiki project management and collabration tool that provides a repository for source control which is on SVN we are moving from TFS to SVN.
We didn't bother when we started how would we provide (weekly) build... | stackexchange/codereview |
JPanel panel = new JPanel();
bigbutton = new JButton("Big Button");
clearbutton = new JButton("Clear Page");
resetbutton = new JButton("Start Over");
finishbutton = new JButton("Finish");
panel.add(sometable);
return panel;
right now what happens is they sprawl horizontally. I want the f... | stackexchange/codereview |
I know this question could be similar to others but really I'm looking for reasons why VB6 developers should switch to C#.
My company recently approved project to be written in C#, so we have a lot of VB.Net programmers, however, we have some legacy app developers as well that are in VB6. We have a time frame to re-w... | stackexchange/codereview |
Is there a component to allow us previewing Outlook email messages in a custom .NET application?
| stackexchange/codereview |
I'm having problems using the DWM functionality of Windows Vista/7 on Java windows. I want to make the background of my frame use the Aero style. The Windows API to do so is provide by the function DwmExtendFrameIntoClientArea in the dwmapi library. I've managed to call the procedure properly via JNA, and it does what ... | stackexchange/codereview |
So I created a new version of my data model, and made a previously optional field non-optional (giving it a default value). According to the documentation, this should mean my migration is eligible for lightweight, automatic migration.
I also added options that allow this when I open the store, also per the documentati... | stackexchange/codereview |
I've check everywhere and can't find a solution. I have the following
Dim users as New List(of TUser)
Private Sub AddSelectedUsers()
For Each user as TUser in gridSelectedItems()
If Not users.Contains(user) Then
users.Add(user)
End If
Next
End Sub
The "Contains" is not working. I keep getting duplicates on the... | stackexchange/codereview |
I'm trying to set up a rather complex form using form_for. This form needs to be in multiple views, where some fields would be available across all actions and other fields are specific to each individual actions.
I thought that in order to save myself code duplication, I would use a layout to render the general part, ... | stackexchange/codereview |
I have an SQL table called tbl, im trying to add the columns A, B and C to it.
When i execute the command :
String addcolumns = "ALTER TABLE SqlCreatedTbl ADD A char(50) ;";
......
cmd = new SqlCommand(addcolumns, conn);
conn.Open();
cmd.ExecuteNonQuery(... | stackexchange/codereview |
Do i need to host silverlight onto a website before i can host it on the internet? For example when you first created a silverlight applciation, itll ask you to check "Host silverlight applcaition to a new website" Is that required if i want to put my aplicaion on the internet.
| stackexchange/codereview |
We are grabbing our feed at feedburner by using the jquery jGFeed plugin.
this works great until the moment our users are on a httpS:// page.
When we try to load the feed on that page the user gets the message that there is mixed conteent, protected and unprotected on the page.
A solution would be to load the feed on ... | stackexchange/codereview |
This is my while loop from my project :
<?php
$select = "SELECT * FROM nk_showcase";
$query = $db->rq($select);
while ($user = $db->fetch($query)) {
?>
<div class="index">
<a href="details.php?id=<?php echo $user['id']; ?>"><img width="200" height="171" alt="<?php echo $user['title']; ?>" src="<?p... | stackexchange/codereview |
I'm gonna set an alternate color to my ListView rows.
I saw this link but I'm using .Net Framework 3.5 SP1 , so I can't use it.
I've used the following code , but it has problem with ListView Sorting
ListViewItem newListViewItem = new ListViewItem(
new string[] { item.name.ToString(),
item.code.... | stackexchange/codereview |
Currently the entire ListItem is removed from the Doc library if the user does not have permission to view the corresponding document, but I would really like it if the user could at least see the meta data with the list item, and prevent them from accessing the corresponding document (ie they click on the document lin... | stackexchange/codereview |
Can I set dynamically within an activity the preferred/default application that's to be launched when I push the Home key? If that's not possible, can I at least reset current defaults so that the chooser window re-appears? I tried to implement the latter by calling PackageManager.clearPackagePreferredActivities("com... | stackexchange/codereview |
I'm debugging a matlab script that takes ~10 minutes to run. Towards the end of the script I do some i/o and simple calculations with my results, and I keep running into errors. Is there a way to start matlab from a certain sport in a script after it exits with an error--the data is still in the workspace so I could ju... | stackexchange/codereview |
I am a computer Engineering student and i want to choose my path as soon as possible. Will I be able to develop anything using C#?
| stackexchange/codereview |
How can one modify DomainService code without the custom code being overwritten?
Is there a way to put the custom code in a seperate class file?
Thanks.
| stackexchange/codereview |
Lets say I want to replace the following string within a textfile:
document.write(unescape("%3Cscript src='" + \ + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
I came up with this sed command, but surprisingly nothing happens at all.
sed -i "s/document.write(unescape(\"%3Cscript src=\"\' + \... | stackexchange/codereview |
I have this one gigantic complex LINQ to SQL query that I need to optimize somehow, because the background C# compiler completely hogs the CPU and I can't type or edit my .cs file normally in Visual Studio 2010 (every letter, especially if IntelliSense wants to pop up, lags horribly).
The culprit is this:
var custFVC =... | stackexchange/codereview |
I have a widget that I've developed and it runs fine on my emulator. But when I go to and run it on my device it doesn't show up in the list
Here is what my console says:
[2010-10-14 12:43:43 - MyWidget] No Launcher activity found!
[2010-10-14 12:43:43 - MyWidget] The launch will only sync the application package on th... | stackexchange/codereview |
What are some practical applications of the ROT13 algorithm? Since it can't be used for encryption, the only usages I've seen of it involve scrambling spoilers or answers to questions. Are there other more practical and useful cases where ROT13 is used?
| stackexchange/codereview |
In Is there an advantage to running JRuby if you don't know any Java?, people were suggesting using JRuby if you just want a better implementation of Ruby than "Ruby" (MRI/YARV).
What potential reasons would you have for not using JRuby?
Ones that have been mentioned by others are:
Performance for short programs. JRub... | stackexchange/codereview |
I have an object coming from .Net that has a property of type SyncHashTable that can't be viewed w/o an exception being thrown.
One-line repro:
[HashTable]::Synchronized(@{})
Multi-line easier to play with repro:
$ht = new-object hashtable
$ht.add("foo", "bar")
$hts = [Hashtable]::Synchronized($ht)
$hts
The error:
fo... | stackexchange/codereview |
$xml_file = file_get_contents(SITE_PATH . 'cms/data.php');
The problem is that a server has URL file-access disabled. I cannot enable it, its a hosting thing.
So the question is this. The data.php file generates xml code.
How can I execute this and get the xml data without doing the above method?
Is it possible?
| stackexchange/codereview |
I'm trying to render a partial ascx view within another view.
I have the following error however in my ascx file, and after some research I'm still in the dark!:
Type or namespace definition, or
end-of-file expectedend-of-file expected
Here is the code in DinnerForm.ascx
<%@ Control Language="C#" Inherits="System.... | stackexchange/codereview |
I have some Ruby code that uses protected level attr_readers to be able to implement an == method so that we can assert some resultant Calendar is equal to an expected Calendar), but those protected accessors would not be needed for any code besides assertions in test code.
Some code I have looks like this:
class Cal... | stackexchange/codereview |
Should urls have pluralized words in them or singular?
I personally like:
/user/register
Is this against the 'convention'?
| stackexchange/codereview |
I want to be able to either Press the enter key or click the mouse to submit the info in the inputbox.
Right now when you manually change focus using tab or click with mouse it will submit the info. It is using the jQuery live Click method.
I found this solution for setting focus to a button
Setting focus to a button ... | stackexchange/codereview |
Is there any way to show an image from RSS feeds in my WordPress page? Currently the default WordPress RSS feeds will only show the text of feeds from other sites. How can I make my site show a thumbnail image of RSS feeds of the other sites?
I'm using WordPress 3.01.
| stackexchange/codereview |
What's the easiest/quickest way to interleave the lines of two (or more) text files? Example:
File 1:
line1.1
line1.2
line1.3
File 2:
line2.1
line2.2
line2.3
Interleaved:
line1.1
line2.1
line1.2
line2.2
line1.3
line2.3
Sure it's easy to write a little Perl script that opens them both and does the task. But I was won... | stackexchange/codereview |
Can someone explain the following occurrence to me?
unsigned int i;
i = strlen("testData");
printf("%d\n", i);
Output:
8
5
Why is it printing the extra 5?
[Update:] After reading the comment, I stupidly realized where the 5 was coming from, sorry!
| stackexchange/codereview |
I am trying to create a simple framework with a nib that has a button on it which can be customized (selector wise and title wise.) for this, i did the following:
I added a property:
@property (nonatomic,retain) NSButton*accessoryButton;
and connected it to my outlet:
@synthesize accessoryButton = littleButton;
I the... | stackexchange/codereview |
I have a function that uses Randomized numbers to generate its output. I'd like to be able to seed these random numbers with a long string; so long as the string is the same, the random number sequence will be the same. This is mainly for test purposes, but also for repeatability.
I plan on creating a wrapper class t... | stackexchange/codereview |
It's already 18 hours that i'm playing with Spring framework. It's beautiful, really amazing. As far as i can see spring knows how to work rdbms databases .
Can anyone tell me about experience of spring + NoSQL ( cassandra , couchdb\mongodb, redis or even HBase ) ?
thanks
| stackexchange/codereview |
How can I override the type converter being used by AutoMapper for a given property?
For example, if I have:
public class Foo
{
public string Name { get; set; }
}
public class Bar
{
public string Name { get; set; }
}
Now I simply want to map Foo.Name to Bar.Name but using a specified type converter. I see how... | stackexchange/codereview |
I'm trying to submit a form using JQuery. My problem comes from the fact that the front end (html+js/jquery) and the back-end is not on the same site, but it does support JSONP.
The form contains a file input field, so I would be submitting Multi-part form data.
How would you resolve this?
| stackexchange/codereview |
what plugins do i need to install on eclipse so that .java files will show line number? how about show line number on .xml/.html as well?
| stackexchange/codereview |
It is often done by code like this:
if ( window.parent.frames.length>0 ) {} // check how many frames, if none do nothing
else {
window.location="[new destination]"; // else change the current location
}
But I want to prevent iframe content from knowing that it is on the iframe.
I am writing a php proxy and conte... | stackexchange/codereview |
In my application i have a loop that executes about 1000 times, inside it i'm creating object and saving it. This is the part of application where i populate my database with data. In common this looks like this:
foreach(...){
...
try{
$object = new Model_Whatever;
$object->whatever=$whatever;
... | stackexchange/codereview |
i need to filter a TClientDataset, actually i'am using this code.
if Value<>'' then
begin
ClientDataSet1.DisableControls;
try
ClientDataSet1.Filtered := False;
ClientDataSet1.Filter := 'Value LIKE ' + QuotedStr('%'+Value+'%');
ClientDataSet1.Filtered := True;
finally
... | stackexchange/codereview |
I had set minRequiredPasswordLength,minRequiredNonalphanumericCharacters in membership section of web.config file. but i need maximum password length also to set. how to set in web.config file?
| stackexchange/codereview |
Basically I'm reading the contents of a file using fstream then converting it to const char* type. I'm supplying this to Lua, and Lua will do something with this. This however does not work. What does work is if I do:
const char* data = "print('Hello world')";
luaL_pushstring(L, data);
luaL_setglobal(L, "z");
They ... | stackexchange/codereview |
I want to use the if statement to select specific pages that have <body class="section-category"> and output custom content for only those pages.
My PHP is not very good and I hope this is a very simple task to do. Can anyone give me a tip?
| stackexchange/codereview |
I'm looking for an evaluator for simple condition expressions.
Expressions should include variables (read only), strings, numbers and some basic operators.
E.g. expressions something like this:
${a} == "Peter" && ( ${b} == null || ${c} > 10 )
So far i implemented a rather "magical" parser that returns an AST that i ca... | stackexchange/codereview |
Starting off with a default "View based" application I create a new view (ViewToDisplay, class that inherits from UIView) and inside this view I create a layer (LayerToDisplay). The view draws something around the perimeter of the frame, and so does the layer but this time with dotted lines. This is to show / prove tha... | stackexchange/codereview |
I was wondering what would be the best configuration of view controllers and views for an app that I’ve been planning out. Conceptually, the way I would like to lay out the app is with an initial loader/browser view, likely with document thumbnails. When a user chooses to open one, a new view comes up that forms the ma... | stackexchange/codereview |
Consider the following code:
HTML:
<table>
<tr>
<td>Hello</td>
<td>Stack</td>
<td>Overflow</td>
</tr>
<tr>
<td>some</td>
<td>text</td>
<td>here</td>
</tr>
</table>
CSS:
table {
border-spacing: 40px 10px;
border-collapse: separate;
}
tr:first-child... | stackexchange/codereview |
Is there a way to tell the system to cancel all touch event sequences that are currently happening in your app?
In one part of my app, I show a new view when a user selects a particular table cell. But, I want to make sure they aren't simultaneously touching any other buttons. For example, if they are holding a toolb... | stackexchange/codereview |
I want to trigger some custom code when the client side errors are updated using ASP.NET MVC2 client side validation. I've tracked down this function which I want to hook into:
Sys.Mvc.FormContext.prototype = {
// ...
_displayError: function Sys_Mvc_FormContext$_displayError() {
if (this._validationSu... | stackexchange/codereview |
I want to setup a website that uses an SQL Express .mdf file located in the APP_DATA folder. when I create the site as a file-system website, it connects to the database file without issue...
however when I create the same site in IIS and I get to the point where it wants to attach to the SQL Express database, it says ... | stackexchange/codereview |
I have a table in MySQL that has one field defined as TEXT. The information is fed to the database by a webform using a textarea.
I'm using the following script to generate an XML with the information of the table:
#!/usr/bin/perl
use strict;
use DBI;
use XML::Generator::DBI;
use XML::Handler::YAWriter;
my $dbh = DB... | stackexchange/codereview |
I have the correct entries in the web.config file in my ASP.NET project. How do I make sure that the connection has been established successfully? I want to pull an image form my database and then display it on my aspx page. Some things to note: I am using Visual Studio 2010, SQL server 2008, .NET 4.0
Here is the relev... | stackexchange/codereview |
i am writing pl/pgsql function that does some statistics processing. using 8.2 of postgres. i want to use this handy aggregate function:
regr_slope(Y, X)
but, i have my X and Y data stored as local arrays in the pl/pgsql function:
y double precision[];
x double precision[];
trouble is when i use this as a line in t... | stackexchange/codereview |
I got question about quote. There many few quote using documentation:
'
`
‘
’
"
“
”
How to say or tell it in word?.
There few symbol quote not include in keyboard, (“, ‘, ’, ”), how could I using symbol without copy-paste from other document.
As programmer view, it really matter write quote to make different from o... | stackexchange/codereview |
Hi:
Is there anyway my SignoutServlet can sign out of Twitter too ?
I am using something like this
public void doGet(HTTPServletReq req, HTTPServletRes res) throws TwitterException,ServletException
{
request.getSession(false).invalidate();
}
My question is even when I am invalidating the session, my applicatio... | stackexchange/codereview |
I'm new to F# and am wondering how I would go about flattening a list.
Essentially in the database I store a record with a min_age and max_age range (this is a fictitious example for the sake of brevity - i am not agist!). My fields look something like the following:
id,
cost,
savings,
min_age,
max_age
I essentially ha... | stackexchange/codereview |
I show flash messages in my rails app using javascript (essentially every flash message is an overlay div).
The following partial is included in my main layout file and it takes care of displaying the flash. I notice that if I refresh a page, the same flash message keeps reappearing. Anyway to get rid of this? I know I... | stackexchange/codereview |
I'm making a C++ code editor application using VB.NET. I'd like to change the color of the keywords as the user types it. Also I'm looking for a way to highlight some lines of the code.
Is there a way to change the forecolor and backcolour of a piece of text inside a textbox or a rich textbox?
| stackexchange/codereview |
This one really has me stumped. I have not ran across this problem on any other servers I have worked on.
This is on an Ubuntu 10.04.1 LTS server with PHP 5.3.2-1ubuntu4.5.
When I have a PHP script that does not have any output for over 120 seconds, the script will not show any subsequent output; however, any non-outpu... | stackexchange/codereview |
I am happy with the standard Page and Story content types.
Still I need more control over the access control.
I would like to write my own access control.
I like the concept of the hook_access() for controlling access to the content types you build your self.
Do I have a hook_access() available when I am using my conte... | stackexchange/codereview |
message.Body = "Message: " + ex.Message +Environment.NewLine + "Data:"+ ex.Data
+ Environment.NewLine + "Stack Trace:" + ex.StackTrace;
I am using Environment.NewLine., its going to next line perfectly but I need to put two line separated with ---------------- in between each message Data StackTrac... | stackexchange/codereview |
Trying to build my project on the build server gives me the following error:
Microsoft (R) Build Engine Version 4.0.30319.1
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Impor... | stackexchange/codereview |
I made form by wizard, but when I run this, first I have in fields first record from table, and I can edit this record, but I don't want to have this. I want to have blank field and when I click add button i can add new record, not edit....
| stackexchange/codereview |
My question is how programmers create, code, and organize subforms in general. By subforms, I mean those groups of controls that make up one UI experience. I'm looking for hints to help me better organize my form codes and to speed up the process of creating such forms. I swear to God, it takes way too long.
I've iden... | stackexchange/codereview |
I'm developing an application that allows users to input into VARCHAR(255) fields in mySQL, so security is a major concern.
I am having trouble understanding quote(). If I use quote('test'), the data returns as '\'test\'' on SELECT, which is undesirable. How do I unquote this data?
If I bypass quote(), I can peek in... | stackexchange/codereview |
This website offers the "Schinke Latin stemming algorithm" for download to use it in the Snowball stemming system.
I want to use this algorithm, but I don't want to use Snowball.
The good thing: There's some pseudocode on that page which you could translate to a PHP function. This is what I've tried:
<?php
function ste... | stackexchange/codereview |
Hi
I am iphone developer, I already know iphone programming. I wrote couple of GPS based apps.
Now I want to start learning 3D graphcis and game development. I want to make very simple games. ALso I want to learn how to make a solid object in Iphone.
Any suggestions where to start from ? ANy books etc ?
| stackexchange/codereview |
Current documentation here doesn't seem to mention any parameters governing the stream's behaviour with regards to whether file is re-created every time or just gets data appended.
Is there a way to create a writeStream which appends the data?
| stackexchange/codereview |
I have these two tables:
Table Author:
ID (INTEGER),
author_name (VARCHAR),
first_name (VARCHAR),
last_name (VARCHAR),
preferred_name (VARCHAR)
Table CoAuthored:
ID (INTEGER)
author1ID (INTEGER),
author2ID (INTEGER),
paper_ID (INTEGER) // (ID of the co-authored paper referenced by this link)
As you can see, both tabl... | stackexchange/codereview |
Here is the code I am using:
NSFileManager* defaultMgr = [NSFileManager defaultManager];
if (![defaultMgr fileExistsAtPath:path]) {
return nil;
}
Where path is a url to a file on the system like: "file://localhost/private/var/mobile/Applications/blahblahblah"
This crashes with SIGABRT when the call to fileExistsAtPat... | stackexchange/codereview |
Q1.
In my university studies of object-oriented modelling and design they recommend thinking about what an object can do for its method, and what its responsibilities are for its attributes. All attempts at clarification have resulted in further confusion.
This tends to generate a class diagram with actors who have all... | stackexchange/codereview |
I am using the Shell() function to execute an external application in MS Access. Shell() returns a task ID of the specific process that was started.
I need a way to check if that process is still running or if it has closed. I'm sure that I will need to do some sort of windows API call but I can't seem to find anything... | stackexchange/codereview |
Is it possible to control the execution priority of SQL Server processes?
Suppose you have a db with some large tables, with many users executing queries, and you have to create an index on one large table. The indexing process may run with low priority and CPU usage, while interactive users may have higher priority an... | stackexchange/codereview |
I am looking for some good tips to track and understand huge codebase. I usually start at the top and end up getting lost in some nitty-gritty details of a function after a while. Since I would have already been many levels deep, the process of backing up and getting on track is tiresome and exhausting. How do you keep... | stackexchange/codereview |
is there a way that I can format a Date binded in a ListView?
I have this snippet of ListView
<ListView ID="lvView" runat="server">
<ItemTemplate>
//... some bounded data
<asp:Label ID="lblDate" runat="server" Text='<%# Bind("RequiredDate") %>' />
//... another bounded data
</ItemTemplat... | stackexchange/codereview |
I'd LOVE to know what I'm doing wrong here. I'm a bit of a newbie with CGImageRefs so any advice would help.
I'm trying to create a bitmap image that has as it's pixel values a weighted sum of the pixels from another bitmap, and both bitmaps are 16bits per channel. For some reason I had no trouble getting this to work ... | stackexchange/codereview |
Sorry if it looks stupid question but is it possible to return the response from a JavaScript confirmbox or messagebox to a ruby program as a value?
I click on confirmbox's "yes" button, this response is stored in a variable, and then this variable is returned to ruby?
| stackexchange/codereview |
When i copy paste table from word file, it doesn't allow me to add text outside the table.
I follow this procedure
1)copy paste the table from Microsoft word file using "paste word" option in fckeditor.
But after that, if i want to type some text outside the table , fckeditor doesn't allow me to do so.
the cursor doesn... | stackexchange/codereview |
i'm using the mshtml.tlb for loading/parsing html and i'd like extend it for clicking elements by code. the problem is trapping the loading-process after eg. a button was clicked.
in my specific case i'd like to perform a user-login.
here's my code:
Dim WithEvents m_doc As HTMLDocument
' load page
Set m_docNU = New HT... | stackexchange/codereview |
Here is my code:
echo "<table class='forum'>
<tr>
<td class='forum'><b>Enter Response Here:</b></td>
</tr>
<form action='a_insert.php?id=" . $answerid . " method=post>
<tr class='forum'>
<td class='forum'><textarea rows='5' cols='80' name='cBody'></textarea></td>
</tr>
<tr class='forum'>
<td><input type='submit' value=... | stackexchange/codereview |
I have a plugin system. The plugins subclass from a common ancestor... ad look like this:
-- SDK
--- basePlugin.py
-- PLUGINS
--- PluginA
---- Plugin.py
---- Config.ini
--- PluginB
---- Plugin.py
---- Config.ini
I need to read the info of Config.ini in basePlugin.py __init__. CUrrently in each plugin I do:
class Plugi... | stackexchange/codereview |
I have a form in my HTML with field.
I'd like to show the file selection window when the user clicks somewhere else (for example, an image on other part of the screen). The reason I want to do this is that I have a form with many fields, posting to some action "x", and the file selection form on other part of screen, ... | stackexchange/codereview |
How to add the checkbox field in gridview programatically, what's wrong with my code?
try
{
string Data_source=@"Data Source=A-63A9D4D7E7834\SECOND;";
string Initial_Catalog=@"Initial Catalog=replicate;";
string User=@"User ID=sa;";
string Password=@"Password=two";
string full_con=Data_source+Initial_Catalog+... | stackexchange/codereview |
I was messing around with this windows phone 7 application bar when I noticed that even setting a different application bar in XAML wouldn't make it change through different application pages (which is quite annoying I have to say). My intention is to use this bar with some buttons that change according to the page bei... | stackexchange/codereview |
Only on my machine this happens.
Basically if i run the following all is as expected:
double d = 500.22;
int i = (int)d;
Console.WriteLine(i.ToString());
Output is 500.
However if i put a breakpoint on the first line and step through, i always reverts to zero and the output is 0.
I've tested th... | stackexchange/codereview |
For instance A+B=C C+D=E E+F=G as changes are made to each node the associated nodes are recalculated.
The image below is a simplistic example of what I am trying to do.
Further clarification
The structure for each object is identical. the inputs would be prices as each price changes it would have a cascading effec... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.