instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have the following query:
;WITH valRules AS
( SELECT vr.valRuleID, Count(*) AS totalRows, Sum(vt.test) AS validRows
FROM (SELECT NULL AS x) AS x
JOIN #itemMap AS IM
ON IM.lngitemID = 1
JOIN tblValidationRule AS vr
ON IM.RuleID = vr.valRuleID ... | stackexchange/codereview |
I have a GridView and I want to refresh a row (not the whole grid) when it gets selected. I tried to change Text property for each of GridView.SelectedRow.Cells when Grid selected index changes. It seems to work for DataField, but not for TemplateField. For TemplateField I got strange results - the value for selected r... | stackexchange/codereview |
I've been asked to update a VB6 application that's been running on WinXP for the last 6 years. The client wants to use Windows 7. Up until now, the app stored its settings in an INI file located in the application directory. One key difference between XP and 7 is that you can't write to C:\Program Files\AppFolder any... | stackexchange/codereview |
I'm writing a ASP.net web app where users will be able to add wordy descriptions to a database table and was just wondering if there's some sort of (free) .net search plugin I could use to search through the database. I could write a simple SQL query to do it but I'd rather it be more robust and like a google search.
| stackexchange/codereview |
I am showing a grails app to some colleagues on a public domain. So far I am working in devel mode and have not deployed via war.
I need to secure the application in order to keep onybody from checking it out / playing with it. I have a user mgmt in place already, but before sb sees anything I would like to have .htpas... | stackexchange/codereview |
I have a custom attribute class derived from AuthorizationAttribute, which performs custom security on controller actions. The OnAuthorizationCore method depends on various other components (e.g. DAL) in order to ajudicate whether a user can invoke an action.
I'm using Autofac for dependency injection. The ExtensibleAc... | stackexchange/codereview |
I need to write backward matching query in SQLite. Is there any way to do it?
My example is bellow:
SELECT * FROM urls where forwordurl LIKE '%www.google.com%'
that works fine, but i need to as bellow
SELECT * FROM urls where 'www.google.com' LIKE %forwordurl%
Is there any way to do it?
| stackexchange/codereview |
I'd like to write a simple C# app to collect the output of a Zebra printer's magnetic card reader. (Model RW420) My only interface to the device is USB. The CPCL language specifies an MCR command for this purpose, but I cannot figure out how to issue this command to the printer via .NET. Neither the online documentatio... | stackexchange/codereview |
I'm looking to go through a bunch of text files in a bunch of folders. I'd like to go through each file line by line and do some basic statistics, like grabbing time stamp and count repeating values. Is there any tool or scripting solution that someone could recommend for doing this?
Another possibility is to have a sc... | stackexchange/codereview |
Is the lock retained by the thread when context switch occur.
When we invoke a wait() the locks are given up by thread, what happens when theres a context switch.
Thanks
| stackexchange/codereview |
Warning: Cannot modify header information - headers already sent by (output started at /home/content/82/6985782/html/wordpress/wp-content/themes/syntax/themeoptions.php:289) in /home/content/82/6985782/html/wordpress/wp-content/themes/syntax/themeoptions.php on line 136
Thats the error i get whenever i want to submit s... | stackexchange/codereview |
I am trying to build a continuous integration environment for php using hudson.
I am running a shell script, which generates my phpdepend output, which can be used by the jdepend plugin.
Although the xml-File is ready, the plugin throws an exception:
console output:
[JDepend] JDepend plugin is ready
[JDepend] Couldn't... | stackexchange/codereview |
I need to put some icons for font size up and font size down on a website. It has been a while since I have done this and didn't know what was the score these days. Is JQuery the preferred method to deal with this or pure CSS. Also, do I need to do anything special with my font sizes i.e use em instead of px?
Thanks in... | stackexchange/codereview |
I currently want to build up a adaptive user interface. For that I log certain actions (I call them conditions) that a user produces, when he interacts with the system. So for example, if he selects a supplier in a list this would result in a condition associated to the user, with action "select supplier" and the suppl... | stackexchange/codereview |
I am developping a cocoa application and I would like to prevent it to appear in the list when doing cmd+tab
Do you have any pointer to achiev this?
Thanks in advance for your help,
Regards,
| stackexchange/codereview |
By default AutoCAD installs a text based file called acad2010.lsp at the set location below
Dim FILE_NAME As String = "C:\Program Files\AutoCAD 2010\Support\acad2010.lsp"
However it my be that the user/ administrator/ or third party has changed the location of this file. Is it possible to then locate it using the fol... | stackexchange/codereview |
Currently i'm working on some complex web front-end and implement it using:
JSF 1.2
Facelets 1.1.15
RichFaces 3.3.3.Final
I have created a custom JSF component which enables validation of inputText fields using pure JavaScript. This component have only one attribute: type. This attribute is responsible for validation... | stackexchange/codereview |
I have a page that loads a playlist of songs. The individual songs in the playlist are capable of being dragged around the playlist with jquery. The page also incorporates server side sorting with an ajax update panel. the problem is that after i do a server side sort, the jquery methods don't work anymore.
do the j... | stackexchange/codereview |
I have a string in the following form :
"425x344"
Now I'd like to resolve first and second numbers from this string as two separate variables. How can I do this ? I've created this regex:
regex = re.compile(r"^(\d+x\d+)")
to check if the string form is proper. But what next ?
| stackexchange/codereview |
I have some code that deletes some files based on time_t comparisons with the last access date, and am looking for how to write a SetLastAccessTime method to use in my unit test.
Here's my Get:
bool GetLastAccessTime(const std::string &filename, time_t& lastAccessTime)
{
WIN32_FIND_DATA FindFileData;
HANDLE hFi... | stackexchange/codereview |
Hi
I use Navigation controllers a lot in my app but my apps starting to suffer from views calling the same views over and over and pushing them on the nav controller stack rather than reusing existing views on the stack.
For instance I have a map view thats called in various places in my app.
I should really go throug... | stackexchange/codereview |
If I use:
<%: Html.EditorForModel() %>
The texboxes get generated like this:
<input type="text" value="" name="Email" id="Email" class="text-box single-line">
ps. this method does not even do the validation.
If I use:
<%:Html.TextBoxFor(model => Model.Email)%>
Then the textbox gets generated without a class. How do ... | stackexchange/codereview |
I need to build a page that looks like Mac Mail or an Outlook Inbox. where the one page has a top panel and a bottom panel, and there is a divider in between that you can use to re-size, to either make a panel higher or shorter.
What's the standard jQuery/CSS technique for accomplishing this? I've never done this befo... | stackexchange/codereview |
Windows 7 has a new "snap" feature it applies when dragging "standard" windows. I do have a pure win32 application (not MFC or any other framework) that I use to create a non-orthodox user-drawn window.
That window does not "conform" to windows 7 snap and dragging it to screen corners will not do anything.
Do I need a... | stackexchange/codereview |
This is driving me nuts, and I can't seem to find what I need. My problem seems to be what this article addresses: http://timheuer.com/blog/archive/2009/12/10/tips-to-deploy-ria-services-troubleshoot.aspx
Which is: I have this silverlight application, and some fancy web services, and they work Grrreat! Except when I a... | stackexchange/codereview |
In my model, I have a class Condition and two subclasses, StringCondition and NumCondition. The user will view/edit/order conditions as a single list.
Is there any way to implement this with a Django modelform formset? I'm currently using two separate formsets (one for NumConditions, one for StringConditions), but it... | stackexchange/codereview |
I have 3 entities and each has a corresponding table. I have a task to search in these 3 tables so results will be shown at one page, mixing together according to sort conditions. I am looking for a proper solution. I have some ideas.
It's possible to perform 3 search queries for each table and then show the results ... | stackexchange/codereview |
As part of my constant learning curve into what you can do to make apps scale better, I am currently trying to get a direction to go with queuing, i.e. job queuing or workload processing whichever phrase you like.
In the distant past I used IBM MQ/Series - it worked for a financial app but quite heavy if I remember.
I ... | stackexchange/codereview |
I have this repository that I'd like to share but not necessarily by putting it on github or other Git hosting providers.
My website is hosted at a provider (OVH) which only gives ftp access, no ssh or shell available.
My question is: is it possible to make a read-only git repository available with this provider, only... | stackexchange/codereview |
I have just started learning asp.net with c# and want to know how to write datasets to XML using asp.net.
Can anyone provide me any example or reference so that I can move ahead.
Thanks in Advance
Anu Sharma
| stackexchange/codereview |
I want to add an indicator on a tree node icon , meaning , for example like in eclipse when there is an error the icon get a special small indicator on the regular icon.
how can i do that?
thanks.
| stackexchange/codereview |
Suppose We have a single ASPX/PHP file as a REST service that just in page load we use the switch case to direct the user to the desired function and return some values. My question is if the functions of this page exceed from 1000 say will this impact the performance and the response time?
Sample code could be somethi... | stackexchange/codereview |
I have a stored procedure that starts a transactions. Inside it, I disable some of the constraints. I modify the data. And then enable the constraints.
What I want is to rollback if the data in inconsistent in the end of the SP (prior to calling commit of course).
Currently I run DBCC CHECKCONSTRAINTS in the end to see... | stackexchange/codereview |
I tried messing with the ".NET Authorization Rules" section of IIS for a particular application (virtual directory). I tried to add a row for Deny All Users plus an additional record to Allow my individual user.
It seemed to be working for a moment, but then things went haywire. I reverted the changes back to how it wa... | stackexchange/codereview |
Visual Studio uses two different GUI layouts depending on whether or not your code is running. I understand the purpose of this (letting you only show debugging-related windows while you're actually debugging) but I find this feature annoying and would prefer the same layout be used while both debugging and not.
Is it... | stackexchange/codereview |
Say you have the following scenario:
Table: Country; Columns: CountryID, CountryName
Table: State; Columns: StateID, StateName, CountryID (foreign key)
Table: Locality; Columns: LocalityID, LocalityName, StateID (foreign key)
In MVC, it is nice that the auto-generated LINQ-TO-SQL classes map association relationships... | stackexchange/codereview |
I have a MySQL select query with a large number of left joins, but only one of the joins is causing serious performance problems. This troublesome table has 2 BLOB fields in it, and when I left join on its primary key, the query takes over 20 times as long to run. Since this is the only table causing the problem, I ass... | stackexchange/codereview |
I'm trying to map a one-to-one association.
My DB is like this:
CONTACT CONTACTPHONE
PK CONTACT_ID ---------| PK CONTACTPHONE_ID
---------FK CONTACT_ID
FK PHONETYPE_ID
As you can see, it's a one-to-many relationship, though there's a... | stackexchange/codereview |
We have a .NET plug-in mechanism, but our SDK isn't frozen yet so we make breaking changes every now and again. Sometimes these only amount to a change in casing or fixing a naming convention.
So, question; how hard is it to go into a dll before or after it's loaded and change the msil so that trivial SDK breakages can... | stackexchange/codereview |
I'm starting to work with JSF 2 so I wanted to give a try to h:outputStylesheet. It works fine but then I tried to apply the "pattern" or trick of adding a query string to the request which changes with the file version to force browsers to fetch changes.
Something like what is used here.
Unfortunately I haven't been a... | stackexchange/codereview |
I have a struct called student as such:
struct student{
char*lastName;
char*firstName;
int age;
float grade[3];
}
how would i read in a text file which should be read into an array of student records. All students' age should be randomly generated ranging from 18 to 35. each student has 3 text grades from ... | stackexchange/codereview |
I am requiring ActiveSupport in a Ruby script like so:
require 'rubygems'
require 'active_support/core_ext/hash'
to use some_hash.with_indifferent_access.
In Ruby 1.8 that worked fine but Ruby 1.9 throws the following exception:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- active_sup... | stackexchange/codereview |
I'm developing a WinForms application and on one form, I use a GroupBox to group related controls together. I would like to style the caption in a particular way (e.g. making the caption bold). By altering the styling for the GroupBox, I can customise the caption, but it also alters the styling for controls within the ... | stackexchange/codereview |
In the Google Maps API v3, the InfoWindow can be attached to an anchor using the open method. Is there any way to retrieve that anchor object?
| stackexchange/codereview |
Is there a clean and simple way to convert an instance of java.io.PrintWriter into a java.io.PrintStream?
| stackexchange/codereview |
I'm trying to build my flex 4 project using ant. In Flash Builder 4, in project properties it's possible to set the "Framework linkage" to one of "Merged into code", "Runtime Shared Library (RSL)" or "Use SDK Default (Runtime Shared library)". How can I set the equivalent as mxmlc options in build.xml?
My current build... | stackexchange/codereview |
Hey all, I need to compare a double inside an if statement. If the double has no value/is equal to zero, it should do nothing. Otherwise it should do something.
My if statement if (doubleNameHere > 0) doesn't work.
Obviously I'm missing something fundamental here, any ideas?
| stackexchange/codereview |
I'm looking for a light and portable perl release and found this one, but it seems there is no activity since 2003, which could be ok for me but I want to know if there is known issues.
So, if you can provide me some feedbacks, you're wellcome :)
| stackexchange/codereview |
I got an (old) application that calls to the winsocket function:
struct hostent* FAR gethostbyname(
__in const char *name
);
It currently imports it as ws32_dll.#52 instead the normal name calling.
My intention is just to be able to do something like opening a messagebox when a host search happens (which should be ... | stackexchange/codereview |
I have a textfield that gets text from xml. I added a function for changing font size for a selected text and it works fine until I load the text again. Then it just ignores all other sizes but the first one.
This is the html text for the tekst:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="PresentationOnline_tex... | stackexchange/codereview |
I am currently working on an IT helpdesk application (MANAGE ENGINE) which uses a SQL Server 2005 backend; I would like to dynamically produce data with a chart. How do I create a chart in Qlikview with the two (2) columns in my SELECT statement as the X and Y axes?
Anytime I try creating charts, it automatically gives... | stackexchange/codereview |
I have a site here (http://beta.ohsinsider.com/) which has a dropdown in the search bar (http://screencast.com/t/cBGeEYGroZ), but when the person hovers over it the menu extends over yet another menu and is causing a ton of UI issues with the users. Is there some way to make the menu underneath not take precendence if ... | stackexchange/codereview |
I was told there is a php cron function, but I've been looking around and I cant seem to find the name of it. Does it really exist? If so what is the name of it?
| stackexchange/codereview |
I need to display datetime values in my application according to the logged in user's local timezone. I would like my app to be able to detect the user's timezone automatically then display the adjusted server date and time accordingly.
How do you do this in Coldfusion?
I am looking for a solution that does NOT prompt... | stackexchange/codereview |
Again..
I'm trying to make an image stick to just above the footer on the bottom left hand side of the main content, under a left nav, but there needs to be a gap between the bottom of the left nav and the signpost which there currently isn't. Here's a link:
Grateful for any advice. Oh and if you could perhaps check ... | stackexchange/codereview |
I have a variable like
var column = $(this).attr('class');
I then need to add this variable as the name of a JSON object like so
obj.push({ column : anotherVar });
This outputs "column" instead of my variable. What is the easiest way to convert my variable into a usable string in JSON.
| stackexchange/codereview |
I have an ArrayList of objects and I use them as follow:
<ui:repeat value="#{BookReview.books}" var="book" >
<li>
<h:commandLink value="#{book.bookName}" action="detail" />
</li>
</ui:repeat>
in the detail page I show the book's comments, and I have a form to register a new comment:
<h:form>
Name:<... | stackexchange/codereview |
SELECT pid FROM photo WHERE me() and $otherPerson IN ( SELECT subject FROM photo_tag WHERE pid=pid ) ORDER BY created DESC LIMIT 1
I'm trying to get a photo that has both users tagged in it ($otherPerson is replaced with a user id). This query returns:
604 Your statement is not indexable. The WHERE clause must contain... | stackexchange/codereview |
This code causes my f4v file to stop playing prematurely. Time changes but roughly 8-10 seconds in.
loadSong();
function loadSong()
{
if(!songPlaying)
{
songPlaying = true;
var customClient:Object = new Object();
customClient.onCuePoint = cuePointHandler;... | stackexchange/codereview |
I want to create a string in C++ with the following format:
string + numbersWithFormatAndThousandSeparator + string
I am not sure whether std::string or snprintf() provides format like that especially the thousand separator. Could someone help me with this?
| stackexchange/codereview |
I want a minimize table button for my website so I was just messing around with some Jquery and i'm wondering why after the button is clicked (and it reduced its size)
it grows back to the default size? -Once the .animate has finished?
http://zombiewrath.com/maintest2.php
-Try it there,
Code:
<html>
<head>
<style type=... | stackexchange/codereview |
I have a question concerning best-practices for indexing in SQL Server (or any RDBMS for that matter). Take the following table:
ProfileID int
Text nvarchar(50)
ProfileID is joined to a Profile table. For each profile, each Text must be unique. Therefore I put a Primary cover key on both columns. Fine.
However, I... | stackexchange/codereview |
I am writing some code that spawns quite a few threads (about 512 at the moment, but that could get higher in the future). Each of the threads only performs a small amount of operations, so I want the overhead that the threads place on the system to be kept at a minimum.
I am setting the stack size using pthread_attr_s... | stackexchange/codereview |
I am programatically adding custom views to a vertical LinearLayout, and I would like there to be some space between the views. I have tried adding: setPadding(0, 1, 0, 1) to my CustomView constructor, but this doesn't seem to have any effect. Any advice?
*It was pointed out that I should use margins. Since I am dyn... | stackexchange/codereview |
All,
I am experiencing a problem with a standard fields_for setup. In my "_form" partial I have:
<div class="comment_list">
<%= f.fields_for :comments do |cf| %>
<%= render :partial => 'comments/comment_fields', :locals => {:f => cf, :tester => true} %>
<% end %>
<%= link_to_add_fields "Add a comment", f, :... | stackexchange/codereview |
My facebook app auth's using the php api which is great except when I need to auth on an ajax element.
When I use jquery's load to ajax an element on the page in Opera it looses authentication and then redirects to facebooks login.php and then redirects back to ajax page (which is meant to only be an element of the wh... | stackexchange/codereview |
I am working on a web application that will make extensive use of AJAX techniques for client/server communication...JSON-RPC specifically. Zend Framework is being used server-side, and it offers a nice JSON-RPC server that I would like to use.
My goal is to architect a maintainable system that exposes a large subset of... | stackexchange/codereview |
I am having a problem whereby apache is not able to find certain symbols referenced from a library (mod_wsgi) loaded within the apache process.
When i start the apache process, i get this error.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
root [zibal]% ./usr/local/apache2/bin/apache... | stackexchange/codereview |
I'm working on an ASP.NET MVC 2 project. I've been handed a few controller classes with a tight dependency on a data repository class, something like this:
public class MyController : Controller
{
MyRepository myRepository = new MyRepository();
// ...
}
Class MyRepository is concrete, not an interface.
Basically, ... | stackexchange/codereview |
If i have a page called www.testsite.com and I link to that page using a querystring in the url, is it possible to attach that same querystring to all the outgoing links/traffic somehow?
For instance, say I link to that page like this www.testsite.com?parameter1=somevalue
And then, on that page I click a link to for in... | stackexchange/codereview |
I have a Visual Studio 2008 C++ application for Windows Mobile 6.x where I'm counting the amount of free virtual memory available for a given process. (I realize it is not taking fragmentation in to account.) My code looks basically like this:
MEMORY_BASIC_INFORMATION mbi = { 0 };
/// total free memory available to th... | stackexchange/codereview |
I'm using a custom linker script to split a kernel image into two parts. The first is normal code and data, and the second is initialization code and data to be discarded when it's no longer needed. The initialization part is also not shared between address spaces the way the kernel proper is, so anything there gets co... | stackexchange/codereview |
In trying to learn about database normalization, I am confused by the following table:
Name Date Organisms
aging 1984-07-13 human
aging 1984-07-13 worm
wrinkle 1987-08-15 human
wrinkle 1987-08-15 mouse
hairy 1990-09-30 mouse
The book I am using presents this as an example ... | stackexchange/codereview |
How to read & display ID3 tags while playing shoutcast streaming with Adobe AIR + JavaScript (without using external Flex/Flash players) ?
| stackexchange/codereview |
I've been looking recently into creating a new native language. I understand the (very) basics of the PE format and I've grabbed an assembler with a fairly kind interface off the webs, which I've successfully used to implement some simple functions. But I've run into a problem using functions from a library. The only w... | stackexchange/codereview |
I have a vb6 app that uses Word interop to create a few reports. In the introduction of these reports, there are some instructions in 4 textboxes around an image.
Recently and suddenly the top two textboxes started appearing on the next page, and I can't figure out why. When I step through the code and watch the word d... | stackexchange/codereview |
I am using the Z-transform properties with the inverse Z-transform by MATLAB.
I cannot find a function that would apply the Z-tranform properties to convert the result by residuez to the time domain. Here is the image of question,
Edit
I can't believe such a powerful math language does not have functions to convert us... | stackexchange/codereview |
I would like to ask a design question about a REST HTTP API that I am exposing.
I have to sometimes access a widget with ID 3:
http://ourserver/service/widgets/3
Get widget with ID 3
But I also sometimes need to access a widget by it's SKU#.
Is it wrong to expose the same resource via 2 URLS?
BUt I need my clients to g... | stackexchange/codereview |
We have several Android apps and found that the process of uploading apps for each release via Android Developers website slow and ineffective. We like to automate the process. To be more clear, we have automation for compiling and building the apps, it's a matter of uploading them to Android Market and fill in the a... | stackexchange/codereview |
I am a beginner in javascript, can you tell me what's wrong with the below code?
I want this to invoke buttonPressed() when a button gets pressed. From buttonPressed() it should call changeColor1(), changeColor1() should change the text color of a paragraph, and start a timer to invoke changeColor2(). Similarly changeC... | stackexchange/codereview |
We have this client application running on Windows. The core of it is comprised of 2 NT services. The users have admin rights, mostly travelling laptop users. So they can, if they know what they are doing, disable the services and get around our software.
What is "standard" approach to solving this issue?
Any thoughts... | stackexchange/codereview |
Maybe I'm not good in googling but I'm seeking for a set of gold rules and recommendations in designing databases related to billing.
Lets say I have an SQL table with transactions
transactions(id int, credit float, debit float, billable_account_id int)
Based on the rule of database normalization I abandon the idea of... | stackexchange/codereview |
I want to make it so a user of my Record creating program can create their own records. what is the best way to tackle this?
can i use an array or vector for the variable name?
int RecU[100];
class Record
{...};
int main()
{
Record RecU[1];
}
i tried it, and my program is crashing, so im not sure i... | stackexchange/codereview |
Possible Duplicate:
Android - Application (apk) Maximum size
I want to install an APK file with 350 MB size in Android real devices.
Is this possible?
What is the maximum size of an APK?
| stackexchange/codereview |
I have a collection of filenames in a C# class:
private List<string> m_files
public List<string> Files
{
get
{
return m_files;
}
set
{
m_files = value;
}
}
I want to be able to display and edit this collection in a property grid, ... | stackexchange/codereview |
Suppose I need to overload global ::operator new() for storing extra data with each allocated object. So basically it would work this way:
for each call to global ::operator new() it will take the object size passed and add the size of extra data
it will allocate a memory block of size deduced at previous step
it will... | stackexchange/codereview |
In Visual Studio 2008, there's a "find" textbox in the tool bar at the top of my screen. If I type in
>of myfile.vb
into that box, it will open myfile.cs (assuming it's in my project). I find this to be about the fastest way to open a file, because I don't even have to move my hands from the keyboard. I can open a... | stackexchange/codereview |
How does one program the ability to swipe a UITableCell. I already have a subclass that I've been working with of UITableCell. Do I just handle swipes in it, like I would a view?
| stackexchange/codereview |
I have a fixed table layout with width being 425px. It is a table with 200 rows. When the user un-select the checkbox specifying the column, the column is hidden. When the column is hidden, the table is left with the space on the hidden column and the other column width is resized.
Could some one point me on the fix?
... | stackexchange/codereview |
I'm about to export a lot of data from a Lotus Notes db, and I'm wondering if anyone can shed any light on how exactly I can move forward on this point.
Notes has some views (lists with custom templates?) of some kind - are these saved in .nsf files on the Domino server, or are the .nsf files for email only?
If the .ns... | stackexchange/codereview |
I have always been slightly confused with the amount of different IO implementations in Java, and now that I am completely stuck in my project development, I was taking my time to read up on useful stuff meanwhile.
I have realized that there is no newbie-friendly comparison (apart from short explanation at API for Writ... | stackexchange/codereview |
I'm currently using HtmlUnit to attempt to grab an href out of a page and am having some trouble.
The XPath is:
/html/body/div[2]/div/div/table/tbody/tr/td[2]/div/div[5]/div/div[2]/span/a
On the webpage it looks like:
<a class="t" title="This Brush" href=http://domain.com/this/that">Brush Set</a>
In my code I am... | stackexchange/codereview |
For a stats study, I am trying to automate a process which will grab the size of the home page of a domain including css, JavaScript, images, etc. How would I do this? I am willing to use any platform/programming language/browser.
| stackexchange/codereview |
how can I make this sql with linq?
select distinct(BAIRRO),id,MUNICIPIO from LOGRADOURO
| stackexchange/codereview |
I am playing around Codeignter and was curious about the structure of the application:
I am not sure when to use the model ( apparently it isnt a hard requirement)
I have a part of the header that is dynamic, so I run conditional statements ( if () {..} else {..} ) for the sake of code cleanness and clarity. Should I ... | stackexchange/codereview |
I have a WCF service that exposes two netTcp-endpoints using same listenUri (same port number, same base address, say net.tcp://localhost:12345/myservice/ep1 and net.tcp://localhost:12345/myservice/ep2). Everything works fine until I change the maxConnections-settings in the binding configurations so that the first end... | stackexchange/codereview |
After using a keyword API to get popular keywords and phrases, I get also a lot of "dirty" terms with too much extra words ("the", "a", etc.).
I'd also like to isolate names in search terms.
Is there a Ruby library to clean up keyword lists? Does such an algorithm exist at all?
| stackexchange/codereview |
Example:
http://foo.com/generatepdf.aspx?u=http://foo.com/somepage.aspx?color=blue&size=15
I added the iis tag because I am guessing it also depends on what server technology you use?
| stackexchange/codereview |
I am using MonoDevelop on MacOS and I am having difficulty getting AjaxControlToolkit's TabContainer visible on Google Chrome. I even set the visible property to true for both the TabContainer and TabPanels but it still did not work. Here is the source HTML:
<ajaxToolkit:ToolkitScriptManager id="tsm1" runat="server" /... | stackexchange/codereview |
(let ((g (* 2 (or (gethash word good) 0)))
(b (or (gethash word bad) 0)))
(unless (< (+ g b) 5)
(max .01
(min .99 (float (/ (min 1 (/ b nbad))
(+ (min 1 (/ g ngood))
(min 1 (/ b nbad)))))))))
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.