In Android, I have a Path object which I happen to know defines a closed path, and I need to figure out if a given point is contained within the path. What I was hoping for was something along the lines of
path.contains(int x, int y)
but that doesn't seem to exist.
The specific reason I'm looking for this is because I have a collection of…
We are looking for some tools to help us with our web development speed.
The two main areas that we have pinpointed as parts of the problem are "Framework/Flow Management" and "Visual/Layout Development"
Ideally we would find a tool that handles both rather well. However, it seems like there are few tools that handle the middle ground…
Hi, im able to hook registry accesses, file accesses etc- because i know which Win32 method is responsible and i can 'hook' the behaviour of this.
However, i wish to be able to 'hook'/stop packets being received when ive detected an intrusion but im not sure which Win32 function i need to 'hook'.
Does anyone know? I was getting…
Hi Guys,
I have the following HTML structure
<div id="test-1-yay"></div>
... bunch of code ...
<div id="test-2-yay"></div>
... bunch of code ...
<div id="test-3-yay"></div>
I was wondering how I can use jQuery to basically identify each of these "id's" and then apply some jQuery to them ?…
From a script I sent a query like this thousands of times to my local database:
update some_table set some_column = some_value
I forgot to add the where part, so the same column was set to the same a value for all the rows in the table and this was done thousands of times and the column was indexed, so the corresponding…
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\atseit\irankiai.php:3) in C:\xampp\htdocs\atseit\irankiai.php on line 211
Is there any way to remove this warning and make cookies work? My 3rd line defines title and 211 line sets cookie.
Hello
I have a table : tags(tagname,entryid,stamp) and i want to make a section for the most trending tags today, the tagname column has no unique value, because many entries has the same tag, so the php code that i want should display the most attached tags today.
Note: the "stamp" column is the date of adding the tag…
I think this will be some obvious problem, but I cannot figure it out. I hope someone can help me.
So I have a slider with 3 slides - Intro, Question, Submit
Now I want to make sure that if the question is answered wrong people cannot slide to Submit.
The function to move slide is like this:
function…
I've seen some code in a project recently where some fields in a couple classes have been using the default access modifier without good reason to. It almost looks like a case of "oops, forgot to make these private". Since the classes are used almost exclusively outside of the package they are defined…
I've been working through Practical Common Lisp and as an exercise decided to write a macro to determine if a number is a multiple of another number:
(defmacro multp (value factor)
`(= (rem ,value ,factor) 0))
so that :
(multp 40 10)
evaluates to true whilst
(multp 40 13)
does not
The question…
Hi,
I've been trying to figure out why the following script's success function isn't running. Everything in my form works perfectly, and the form contents are being emailed correctly, but the success function isn't being called.
If anyone could review my code and let me know why my success function…
Given these two models:
class Profile(models.Model):
user = models.ForeignKey(User, unique=True, verbose_name=_('user'))
about = models.TextField(_('about'), blank=True)
zip = models.CharField(max_length=10, verbose_name='zip code', blank=True)
website = models.URLField(_('website'),…
Hello SO;
I have an issue with .Net reflection. The concept is fairly new to me and I'm exploring it with some test cases to see what works and what doesn't. I'm constructing an example wherein I populate a set of menus dynamically by scanning through my Types' attributes.
Basically, I want to find…
I am trying to add a list of linked lables to a listview. I amd doing so like this
foreach (String s in values)
{
LinkLabel label = new LinkLabel();
label.Text = s;
txtBox.Controls.Add(label);
}
}
It keeps adding just one item to the…
I have a table, tblTags which works in much the same way as StackOverflows tagging system.
When I view a tags page, let's say the tag Tutorial I want to display the 10 tags before and after it in alphabetical order.
So if we are given the tag Tutorial of ID 30 how can we return a record set in the…
Hello there SO'ers,
I got a quite simple problem but cant find a solution for it.
I have a logger with a file handler added, but it still spams to hell out of my console.
How could I get the logger to solely route all output to a file, with NO console outputs?
Thanks a lot,
cru
Hi all,
I'm pretty new to stata...
I have a set of observations of the form "Country GDP Year". I want to create a new variable GDP1960, which gives the GDP in 1960 of each country for each year:
USA $100m 1960 USA $100m 1960 $100m
USA $200m 1965 --> USA $200m …
I'm trying to include script and style references that will not break on deployment, however I can not even get the references to work locally. I have tried using Url.Content() and MVCContrib's <%=Html.ScriptInclude("")%>.
My scripts are in a Scripts folder on the root of the site; my styles…
I've been looking into some of the WYSIWYG editors (TinyMCE, FCKEditor, etc.) and they all seem to offer a lot of options.
However, one vital feature that seems to lack is a simple "add custom html" option which would allow the user to input any of these embed-snippets you find all around the web…
I'm trying to attach a div from a voting plugin before the content is generated on both the excerpt and the content of a post. Here's what I have in my plugin:
if (get_option('ilt_onPage') == '1') {
function putILikeThis($content) {
if(!is_feed() && !is_single() &&…