Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,388,706 | 1 | 6,388,790 | null | 0 | 807 |
I have a directory that needs to show my company's favicon when you see the directory index that looks like this:

as you can see, favicon.ico is in the folder, but the favicon of the company this is hosted with is displaying in the browser. I searched online for an answer but i found nothing. I really don't have any idea how to do this, and i'm sure there's a way... is it apache?
|
favicon not showing up in directory
|
CC BY-SA 3.0
| null |
2011-06-17T16:20:35.453
|
2011-06-17T16:28:11.633
| null | null | 798,173 |
[
"directory",
"favicon"
] |
6,388,708 | 1 | 7,253,516 | null | 6 | 5,791 |
Is there a way to get Xcode 4 to indent text so that pressing tab on selected text would indent it, shift + tab would unindent like in many editors?
The default and do not seem to work, probably because I have a Finnish keyboard layout. Pressing the key combination for (alt + 8) and additionally holding down does not indent.
In Xcode preferences I found "Key Bindings" and "Shift Right", "Shift Left", but it does not seem to understand shift + tab. If I try to press shift + tab I get .

|
Xcode indentation key bindings
|
CC BY-SA 3.0
| 0 |
2011-06-17T16:20:59.047
|
2014-06-20T04:49:59.900
| null | null | 8,005 |
[
"xcode",
"xcode4",
"editor"
] |
6,388,873 | 1 | 6,388,903 | null | -2 | 886 |
I am basically creating an app that looks like a power point presentation. every time the user clicks on a button I add another view controller. So here is what I have:
This is the ViewController that I want to add when the user want's to go to the next slide:

I have a button that when clicked it shows this view controller. In this example it will show nothing because the view controller is empty.

so when that code get's fired this is what happens with my iPad:

It loads that view controller perfectly fine but with the navigation bar at the top. How could I get rid of that navigation bar? I think the problem is the code because the view controller is empty. I know just the basics of objective-c so I have not been able to fix it with code.
|
get rid of navigation bar in view controller iphone sdk
|
CC BY-SA 3.0
| null |
2011-06-17T16:34:35.673
|
2011-06-17T16:37:20.543
| null | null | 637,142 |
[
"iphone",
"xcode",
"ios4",
"xcode4"
] |
6,389,008 | 1 | 6,389,150 | null | 2 | 1,909 |
I want to manage sales, there was many to many relationship between sale and product, so i broke it by adding an entity sales description among them now the relationship among these three entities is as follows.

"Sales descrition" entity have composite primary key consisting upon customerId, customerName,date,time attribute which should go as foreign key in "Product" table. Now i am confused that whenever i will add product i will have to add customerId,customerName,date,time which does not seems logically true.
Any idea please that how should i handle relationship between sale and product?
|
How to handle relationship between sale and product
|
CC BY-SA 3.0
| null |
2011-06-17T16:44:50.433
|
2011-06-17T16:57:51.817
| null | null | 644,013 |
[
"erd"
] |
6,389,120 | 1 | 6,389,151 | null | 4 | 2,699 |
I was experimenting with malloc in C and I have observed that malloc is wasting some space after some memory has been allocated. Below is the piece of code I used to test malloc
```
#include <stdlib.h>
#include <string.h>
int main(){
char* a;
char* b;
a=malloc(2*sizeof(char));
b=malloc(2*sizeof(char));
memset(a,9,2);
memset(b,9,2);
return 0;
}
```
In the right-middle of the following picture(open the image in a new tab for clarity) you can see the memory contents;0x804b008 is the address pointed by variable 'a' and 0x804b018 is the memory pointed by variable 'b'. what is happening to memory between from 0x804b00a 0x804b017? The thing is even if I try to allocate `3*sizeof(char)` instead of `2*sizeof(char)` bytes of memory the memory layout is the same! So, is there something I am missing?

|
malloc memory allocation scheme in C
|
CC BY-SA 3.0
| 0 |
2011-06-17T16:55:01.303
|
2015-09-19T15:22:22.453
| null | null | null |
[
"c",
"malloc"
] |
6,389,131 | 1 | 6,390,376 | null | 1 | 374 |
When following these [instructions](http://techscienceinterest.blogspot.com/2010/02/how-to-install-aspectj-in-eclipse-35.html), I get the following error dialog

If you cannot read the message, it reads as follows
> An error occurred while collecting
items to be installed session context
was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,
operand=, action=). Unable to read
repository at
[http://download.eclipse.org/tools/ajdt/36/update/plugins/org.aspectj.ajde_1.6.11.20110304135300.jar](http://download.eclipse.org/tools/ajdt/36/update/plugins/org.aspectj.ajde_1.6.11.20110304135300.jar).
Read timed out
Has anyone else encountered this? And if so, is there a workaround?
Well it appears that someone else has -- [link](http://www.eclipse.org/forums/index.php/m/675752/).
|
Trouble installing AspectJ on Eclipse 3.6.1
|
CC BY-SA 3.0
| null |
2011-06-17T16:56:13.910
|
2011-06-17T18:56:50.403
|
2011-06-17T17:15:09.977
| 584,862 | 584,862 |
[
"java",
"eclipse",
"eclipse-plugin",
"aspectj"
] |
6,389,081 | 1 | 6,389,474 | null | 3 | 12,007 |
I'm working on a module for the admin area of Magento. I'm trying to follow Alan Storm's tutorial on [Magento admin controllers](http://alanstorm.com/magento_admin_controllers) but can't seem to get my controller to do anything. I think it may have something to do with routing, but I'm not sure. It shows me the frontend template with a 404 error.
(Note: )
The module is called Mynamespace_Donor and lives in app/code/local/Mynamespace/Donor/.
My etc/config.xml looks like this:
```
<?xml version="1.0"?>
<config>
<modules>
<Mynamespace_Donor>
<version>0.1.0</version>
</Mynamespace_Donor>
</modules>
<global>
<helpers>
<donor>
<class>Mynamespace_Donor_Helper</class>
</donor>
</helpers>
<resources>
<donor_setup>
<setup>
<module>Mynamespace_Donor</module>
</setup>
</donor_setup>
</resources>
</global>
<admin>
<routers>
<donor>
<use>admin</use>
<args>
<module>Mynamespace_Donor</module>
<frontname>donor</frontname>
</args>
</donor>
</routers>
</admin>
<adminhtml>
<menu>
<donor translate="title" module="donor">
<title>Donor</title>
<sort_order>42</sort_order>
<children>
<manage_donors module="donor">
<title>Manage Donors</title>
<action>donor/index/index</action>
</manage_donors>
</children>
</donor>
</menu>
</adminhtml>
</config>
```
And my controllers/IndexController.php looks like this:
```
<?php
class Mynamespace_Donor_IndexController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
$this->loadLayout();
//create a text block with the name of "example-block"
$block = $this->getLayout()
->createBlock('core/text', 'example-block')
->setText('<h1>This is a text block</h1>');
$this->_addContent($block);
$this->renderLayout();
}
}
```
The menu item points me to `/index.php/donor/index/index/key/e98a...` which shows a 404 page. When I try to go directly to `/donor`, `/index.php/donor`, `/index.php/donor/index`, etc I still get 404 errors.
If I remove the `<helpers>` from the config, Magento complains that it can't find it. If I remove the `<adminhtml>` section, it stops complaining, even though I still have my `<admin><routers>` section in there (don't know if the routing stuff needs a helper or if this is even relevant).
I've also tried adding this block under `<adminhtml>`, but it when I try editing role permissions I get a white page with this error: `Fatal error: Class 'Mage_Mynamespace_Donor_Helper_Data' not found in /home/mysite/public_html/magento_dev_1_10/app/Mage.php on line 520`
```
<acl>
<resources>
<admin>
<children>
<donor translate="title" module="Mynamespace_Donor">
<title>Donors</title>
<sort_order>60</sort_order>
<children>
<manage_donors>
<title>Manage Donors</title>
</manage_donors>
</children>
</donor>
</children>
</admin>
</resources>
</acl>
```
What am I doing wrong here? Why can I not access this controller?
And lastly, in Alan's sample code, the URL began with the module name, but I would like mine to start with `/admin/donor` instead of `/donor`. What changes do I need to make for this?
---
The ultimate goal is to have a new tab in the admin area for managing Donors and related data in the system. When you click on some menu item, I'd like to show a grid and have sub-tabs and stuff like that. I'm looking to override the adminhtml controller - although I am extending it per [Alan's suggestion](http://alanstorm.com/magento_admin_controllers):
> The only difference from a standard
controller here is that we’re
extending
Mage_Adminhtml_Controller_Action
instead of
Mage_Core_Controller_Varien_Action.
Mage_Adminhtml_Controller_Action
contains important code for validating
the admin session, as well as several
methods that are useful in an Admin
Console context.
So in this picture, clicking that first sub-menu item should call the Index action of my controller and show a grid or something to manage the Donors.

|
Magento admin routing isn't working
|
CC BY-SA 3.0
| 0 |
2011-06-17T16:51:14.150
|
2012-08-28T23:13:30.480
|
2012-08-28T23:13:30.480
| 158,766 | 158,766 |
[
"php",
"magento"
] |
6,389,454 | 1 | 6,389,498 | null | -4 | 406 |
I have a button that when clicked shows a view controller. The code for that event is:

and my view controller looks like this:

note the segmented control and background image.
Here is my h and m files of my view controller in case you need them:

when I run my app here is how that view control looks on my iPad:

why do the background image and segmented control do not appear? why are contents not being loaded? It looks like another view controller is being loaded but I have already make sure that I am placing the correct name in the string for the view controller.
---
```
- (IBAction) vaClick
{
imgVa.image = [UIImage imageNamed:@"bt-valores.png"];
UIViewController *control = [[NuestrosValoresViewController alloc] initWithNibName:@"NuestrosValoresViewController"
bundle:nil];
UINavigationController *navControl = [[UINavigationController alloc]
initWithRootViewController:control];
[self presentModalViewController:navControl animated:NO];
[navControl setNavigationBarHidden:YES];
[control release];
[navControl release];
//UINavigationController *navControl = [[UINavigationController alloc]
//initWithRootViewController:control];
//[self presentModalViewController:navControl animated:NO];
```
}
should I release it like this? sorry I basically have to translate a power point presentation to an app therefore I know very little about objective-c. thanks for the help and sorry for the dumb question.
|
view controller does not load with content
|
CC BY-SA 3.0
| null |
2011-06-17T17:27:34.110
|
2011-06-18T01:26:11.787
|
2011-06-18T01:26:11.787
| 10,936 | 637,142 |
[
"iphone",
"objective-c",
"xcode",
"ios4",
"iphone-sdk-3.0"
] |
6,389,966 | 1 | 6,391,068 | null | 1 | 93 |
Does VIM (or macvim) have a way to show a code-folding boxtree/circletree like Notepad++?

|
Boxtree/circletree in VIM?
|
CC BY-SA 3.0
| null |
2011-06-17T18:12:40.063
|
2011-06-19T05:31:56.667
|
2011-06-19T05:31:56.667
| null | 230,473 |
[
"vim"
] |
6,390,206 | 1 | 6,459,830 | null | 2 | 2,047 |
I have two web servers with public IPs, for example Server1 with IP `111.111.111.111` and Server2 with IP `222.222.222.222`. Please see the picture:

There is an asp.net webform at . My is:
1. For every http request to that webform in Server1, the Server1 just pass the request's information to Server2 for logic processing and subsequently Server2 sends the response back to client (i.e. normal browser)
My questions are:
1. What information that Server1 needs to pass to Server2, so that Server2 able to send response back to client? Please note that at Server2, there is a TcpListener instance. This TcpListener instance acting as receiver for that webform request information from Server1.
2. What is the suitable object (i.e. the class in System.Net or related namespace such as System.Net.Sockets) at Server2 for sending response back to client? Suitable here means able to meet my intention.
|
How to send response to asp.net webform request via other server
|
CC BY-SA 3.0
| 0 |
2011-06-17T18:34:22.463
|
2011-06-23T20:01:59.197
|
2011-06-23T20:01:59.197
| 76,337 | 774,411 |
[
".net",
"asp.net",
"vb.net",
"http",
"networking"
] |
6,390,415 | 1 | 6,390,633 | null | 2 | 2,925 |
The latest game by Gameloft called Order&Chaos starts with a screen, which indicates that they're able to update certain data without updating the entire binary.

I'm quite certain that they're using some kind of scripting language like Lua in their app and updating these scripts to e.g. change certain values (like buying price of items).
What's your experience with side-loading or updating scripts in your iOS application?
I don't mean loading new graphics or other contents, but game logic like my path finding implementation in Lua.
Apple cleary states that this isn't allowed
> 3.3.2 An Application may not download or install executable code.
Interpreted code may only be used in
an Application if all scripts, code
and interpreters are packaged in the
Application and not downloaded. The
only exception to the foregoing is
scripts and code downloaded and run by
Apple's built-in WebKit framework.
|
Lua in iOS and side-loading scripts
|
CC BY-SA 3.0
| 0 |
2011-06-17T18:51:07.113
|
2011-07-19T10:17:12.913
|
2011-06-17T19:13:57.320
| 107,004 | 107,004 |
[
"ios",
"lua"
] |
6,390,442 | 1 | 6,390,910 | null | 0 | 2,660 |
I feel like a 4-year old who has a slice of bread with pb and a slice with jelly and is asking how to make a sandwich..
I've been given the responsibility of maintaining a javaEE website that was done by our parent company that no loner supports us. I'm relatively new to JavaEE and I'm trying to figure out how to recompile the files that need to be modified from within the root folder of the site.
I downloaded NetBeans to help me with this, but still can't figure it out. My problem is that the java files can't find any of the packages and resources they are dependent on. As far as I know, the resources are there.. although, I do see some packages starting with "com.", and I don't see a 'com' or 'javax' folder anywhere.. I believe my problem has something to do with setting the class path in the project properties in NetBeans.. I tried that but either I'm not doing it right, or its not working. This whole Java compilation is so foreign to me, it'd be really great if someone could lead me in the right direction of getting this website compiled.
I posted a pick of the folder hierarchy of the website to help:

I'm trying to compile the RecordAdd.java file here specifically at the moment. Some of the packages it is trying to import come from its parent folder, asp, of the folder it is in, easp. The file is also trying to `import com.icesoft.faces.component.*;` where '*' consists of several different imports of the parent packages. I don't see a `com` folder like I mentioned, but I do see icefaces.jar files in the `lib` folder in `WEB-INF` folder. I've tried putting these folders in NetBeans Library-Compile category classpath, but that didn't do anything.
I'm not doing something right, that is probably a basic knowledge of compiling java projects, but I'm just not getting it. I really appreciate any help, just please don't be too harsh. Thanks!
|
JavaEE compiling files
|
CC BY-SA 3.0
| null |
2011-06-17T18:53:05.210
|
2011-06-20T16:51:50.270
|
2011-06-17T19:08:21.697
| 550,309 | 550,309 |
[
"java",
"netbeans",
"jakarta-ee",
"compilation",
"icefaces"
] |
6,390,564 | 1 | 6,390,814 | null | 1 | 386 |
I want to draw a circle on the iPhone screen with Shadow and glossy effect.I am new to coreGraphics and OpenGL and dont really know the difference between the two.And which library is to be used when.
How can I draw following image in iPhone? any reference point to learn the appropriate library would be great.

have 3 of those images [[1](https://i.stack.imgur.com/up1Jq.png)] [2] [3]
and a slider to control the glow.when you slide to change the glow it should go across all these, and furthermore some levels could have upto 50 circles.
|
What is the best way to draw a glossy circle in iPhone OpenGL or Coregraphics?
|
CC BY-SA 3.0
| null |
2011-06-17T19:04:25.270
|
2011-06-22T12:15:00.190
|
2011-06-22T12:15:00.190
| 459,147 | 459,147 |
[
"iphone",
"opengl-es",
"core-graphics"
] |
6,390,573 | 1 | 6,395,048 | null | 4 | 1,658 |
I have published my website to a server but I'm tearing off my hair due to character problems. Locally it all works fine despite any dumbness of mine (unclear or mismatched charsets). Let's take just one table as example because it satisfies our conditions:
- - - - - - - - `<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />`-

- - - - - - - - `<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />`-

I've read a few stuff, including this [very good article](http://www.joelonsoftware.com/articles/Unicode.html) stablishing a common ground for developers.
:
- [this mate states it](https://stackoverflow.com/questions/5935117/mysql-collation-and-php-charset-conflict)- -
anyone offering some help? I can offer some brazilian portuguese lessons, some advice on spiritual life or just a little chat about anything, but I must solve this problem and may be able to help me.
thanks in advance,
|
Charset problem upon publishing PHP + MySQL website
|
CC BY-SA 3.0
| null |
2011-06-17T19:05:11.617
|
2011-06-21T11:46:15.647
|
2017-05-23T11:48:23.740
| -1 | 461,076 |
[
"php",
"mysql",
"iis",
"character-encoding"
] |
6,390,593 | 1 | 6,390,638 | null | 5 | 3,720 |
# Update.. moved to a new question.
```
#dump1
var_dump('two identical strings' | 'two identical strings'); // mind the |
// string(21) "two identical strings"
#dump2
var_dump('two identical strings' ^ 'two identical strings'); // mind the ^
// string(21) ""
```
`#dump2` When copied in Notepad++ there are no signs of characters inside the string, so, how come `strlen > 0`? - this confuses me, because Notepad++ can show some kind of bit-level (at least I think that those are bit-level, correct me if I'm wrong) characters, see picture:
This is actually result from:```
$string = 'i want you to compare me with an even longer string, that contains even more data and some HTML characters, like € ' ^ 'And I am going to add some HTML characters, like € again to this side and see what happens'; // mind the ^
var_dump(htmlentities($string)); // had to add htmlentities, otherwise > (<) characters are added in this case, therefore messing up the output - Chrome force closes `<body>` then
// string(101) "(NA'TAOOGCP MI<<m-NC C IRLIHYRSAGTNHEI RNAEAAOP81#?"
```
## i'd love to see this #dump2 related question answered, thanks in advance!
---
While experimenting, I found out this:
```
echo 'one' | 'two';
// returns 'o'
echo 'one' | 'twoe';
// returns 'oe'
```
So, seeing that in those two lines it returns only letters which are in both strings, I was thinking it does some comparison or something:
```
echo 'i want you to compare me' | 'compare me with this';
#crazy-line // returns 'koqoveyou wotko}xise me'
```
While writing this, even stranger stuff happened. I copied that returned value, and after pasting it into post textarea, when pointer is positioned at the end of `crazy-line`, it is actually one "space" to the right not where it should be. When backspacing, it clears last character, but pointer is still one "space" to the right.
That lead me to copy this value inside Notepad++:

And, huh, as you can see there is a 'boxy' character within this string that doesn't show up inside browser (at least on mine, Chrome, latest). And yes, when this character is removed from that string (by backspacing), it returns back to normal - no more "space" to the right.
`|`
I'm pretty damn curious why this is happening, so here is one more test with longer strings containing HTML entities:
```
$string = 'i want you to compare me with an even longer string, that contains even more data and some HTML characters, like € ' | 'And I am going to add some HTML characters, like € again to this side and see what happens';
var_dump($string);
// returns string(120) "inwaota}owo}ogcopave omwi||mmncmwwoc|o~wmrl{wing}r{augcontuonwhmweimorendaweealawomepxuo characters, like € "
```
Last value contains 7 of those 'boxy' characters.
|
PHP strange bitwise operator impact on strings
|
CC BY-SA 3.0
| 0 |
2011-06-17T19:06:50.180
|
2011-06-19T03:37:40.333
|
2017-05-23T10:30:21.980
| -1 | 393,406 |
[
"php",
"bitwise-operators"
] |
6,390,989 | 1 | 6,391,050 | null | 2 | 230 |
Not a programming question as such, but..
..Is there a way from the Delphi IDE to define information that will be applied to newly created Units?
For example, suppose I wanted each new Unit to add some commented information to the top, like so:

I like to add such information to Units so that anyone else who may need access to it has some brief information. Obviously I am not expecting the IDE to fill in the Overview information.
I noticed some OpenSource Components include the License Information at the top of Units, I assume they were just Copy and Pasted in there, but wouldnt it be handy if there was a way to Automate such IDE behaviour?
Additionally, I have a few external Units added to my Library Path, which I add to the Uses Clause of a Form/Unit when needed. There is one paticular Unit I always find myself using, It would also be handy to Automatically include X Unit to the Uses Clause of New Units.
Is there a trick to doing something like this, or should Copy and Paste be enough?
Thanks.
|
Setting Unit Defaults?
|
CC BY-SA 3.0
| 0 |
2011-06-17T19:45:07.420
|
2011-06-17T22:42:00.020
| null | null | null |
[
"delphi",
"ide"
] |
6,391,053 | 1 | 6,394,105 | null | 4 | 1,753 |
I am developing an application in Qt that rebuilds its menus very often. However, when we call clear(), and re-add the actions that we want in the menu, "Special Characters..." appears to remain in the menu. Is there any way to remove, or move this action to the bottom of the QMenu?
Here is the code that rebuilds the menu:
```
void MainWindow::initMenus(Tab* tab)
{
menuBar()->clear();
menuFile->clear();
menuEdit->clear();
menuSettings->clear();
menuHelp->clear();
ui_toolBar->clear();
menuBar()->addMenu(menuFile);
menuBar()->addMenu(menuEdit);
menuFile->addAction(actionNew);
menuFile->addAction(actionOpen);
if(tab) tab->addActionsFile(menuFile);
menuFile->addSeparator();
menuFile->addAction(actionNext);
menuFile->addAction(actionPrevious);
menuFile->addAction(actionClose);
menuFile->addSeparator();
menuFile->addAction(actionQuit);
if(tab) {
tab->addActionsEdit(menuEdit);
menuEdit->addSeparator();
tab->addActionsHelp(menuHelp);
menuHelp->addSeparator();
}
menuEdit->addAction(actionEditor_Settings);
menuHelp->addSeparator();
menuHelp->addAction(actionAbout);
if(tab) tab->addOtherActions(menuBar());
menuBar()->addMenu(menuHelp);
ui_toolBar->addAction(actionNew);
ui_toolBar->addAction(actionOpen);
if(tab) tab->addToolbarActions(ui_toolBar);
}
```
It is supplied a tab, which can add its own actions to the menu as well using those functions.

|
Qt Mac (Re)move "Special Characters..." action in Edit menu
|
CC BY-SA 3.0
| 0 |
2011-06-17T19:50:47.333
|
2015-01-19T22:08:41.643
|
2011-06-17T21:56:42.500
| 183,604 | 183,604 |
[
"qt",
"macos",
"menu",
"special-characters",
"edit"
] |
6,391,069 | 1 | null | null | 3 | 718 |
I have a filmstrip of images in png format like this:

I'd like to know how to clip each of the images and put these images in a TImageList control, always preserving the transparency.
[EDIT]
Yes, at designtime the trick mentioned by RRUZ works fine, but I wanted to clip the images at runtime, i.e. by loading the filmstrip from resource or file
|
Clipping a filmstrip in png format (Delphi 2010)
|
CC BY-SA 3.0
| 0 |
2011-06-17T19:52:37.287
|
2014-08-26T10:02:52.220
|
2011-06-18T00:48:54.350
| 800,354 | 800,354 |
[
"delphi",
"png",
"transparency",
"timagelist"
] |
6,392,266 | 1 | 6,409,141 | null | 3 | 923 |
I'm using xYplot to plot my regressions results with error bars. However, xYplot only plots horizontal error bars, and I need vertical error bars. Looking around for a solution, I found [this thread](http://r.789695.n4.nabble.com/R-Hmisc-or-Lattice-plot-with-error-bars-Depth-independent-variable-on-Y-axis-td811365.html) where someone asked roughly the same question. After some messages, the user who asked the question says that "I just discovered that using the xYplot (Hmisc) and rotating the grid
viewport (and the labels etc) given me exactly what I need".
So I looked around on how to rotate the grid and found that using grid library and pushviewport etc. you can rotate the grid. However, my code isn't working. Here is what I tryed so far:
```
estimate=structure(list(coefi = c(-5.08608456607495, -4.17906898422091,
-2.85696514398422, -3.06968196245069, -2.73660002514793, -1.0017403629931,
-1.66291850690335, 0.431265159072978, -0.472895611533531, 0.845421348865878,
-0.437434919008876, 0.269041451577909, -0.233066564595661, 0.0137190330621302,
-2.94808159763314, 1.9166875739645), lower = c(-8.1895, -6.8485,
-5.214125, -5.532875, -5.106625, -3.271625, -3.97375, -0.09773,
-1.340625, 0.415125, -0.86615, 0.02665125, -0.5861, -2.079, -5.626625,
0.8115125), upper = c(-2.11475, -1.611125, -0.5602375, -0.7309625,
-0.3721375, 1.259875, 0.7167875, 0.9672875, 0.39035, 1.30025,
-0.05634125, 0.5115, 0.07237875, 2.14275, -0.3653, 4.202625),
x = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16)), .Names = c("coefi", "lower", "upper", "x"), row.names = c("alpha.1.",
"alpha.2.", "alpha.3.", "alpha.4.", "alpha.5.", "alpha.6.", "alpha.7.",
"b.income", "b.democracy", "b.ginete", "b.educ", "b.patent",
"b.fdi", "b.0", "mu.alpha", "sigma.alpha"), class = "data.frame")
legenda=c(as.character(seq(1970,2000,5)),"PIB_pc", "democ", "legis", "educ", "patent", "FDI", "b.0", "mu.ano", "var.ano" )
grid.newpage()
pushViewport(viewport(angle = 90, name = "VP"))
upViewport()
xYplot(Cbind(coefi,lower, upper) ~x, data=estimate, , varwidth = TRUE, ylab="Betas",
xlab="Inclinação das Covariáveis com respectivos 95% intervalos de credibilidade \n N=409",
ylim=with(estimate,c(min(lower)-.5, max(upper)+.5)), scales=list(cex=1.2, x = list(at=seq(1,16, by=1), labels = legenda)) ,abline=c(list(h=0), lty="dotted", col= "grey69"), xlab.top="Adesão ao Tratado de Cooperação de Patentes, 1970-2000", draw.in = "VP")
```
I'd apreciate any help.
Update: there were comments pointing that the code was right. So I'm wondering if I'm not being able to communicate what I want or if it's a bug... So I'll post an imagem of the output of my code right now and you tell me if the code in you computer is giving the same output or another one:

|
rotating the grid to plot horizontal errors bars with Hmisc::xYplot in R
|
CC BY-SA 3.0
| null |
2011-06-17T21:58:15.770
|
2011-06-20T09:21:49.570
|
2011-06-18T18:48:33.787
| 242,673 | 242,673 |
[
"r",
"lattice"
] |
6,392,286 | 1 | 6,392,299 | null | 1 | 3,257 |

I am having problems overlaping two boxes. Should I use absolute positioning? z-index or what techniques are out there? By the way I want them to overlap is just that I want to make sure it works cross modern browsers. IE8 or +
I cant push the black box to the center why?

```
<!DOCTYPE HTML>
<html>
<head>
<title>Metropolitan State Hospital Intranet</title>
<link rel="stylesheet" type="text/css" href="Home.css">
</head>
<body>
<div id="masthead">
<div id="logo">
Logo here
</div><!--end logo-->
<div id="header">
<div id="horizontalMainMenu">
<ul>
<li><a href="#">About Us |</a></li>
<li><a href="#">Contact Us |</a></li>
<li><a href="#">Metro Link |</a></li>
<li><a href="#">WaRMSS Login </a></li>
</ul>
<br style="clear:left;"><!--I used float:left in the css to stack the list items now I need to clear it-->
</div>
</div>
<!--end header-->
</div><!--end masthead-->
<div id="container">
<div id="left_col">
<div id="verticalMainMenu">
<ul>
<li><a href="#">Air Quality Control</a></li>
<li><a href="#">CalATERS</a></li>
<li><a href="#">Email Encryption</a></li>
<li><a href="#">Employee Guide</a></li>
<li><a href="#">Patient Special Function Requests</a></li>
<li><a href="#">Request Home Address <br> Confidentiality Form</a></li>
<li><a href="#">Travel Store</a></li>
</ul>
</div><!--verticalMainMenu ends here-->
</div><!--left_col ends here-->
<div id="page_content">
<div id="horizontalBodyMenu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Clinical</a></li>
<li><a href="#">Administrative</a></li>
<li><a href="#">Service</a></li>
<li><a href="#">Search</a></li>
</ul>
<br style="clear:left">
</div>
</div><!--page_content ends here-->
</div>
<div id="footer">
Footer
</div><!--end footer-->
</body>
</html>
```
CSS:
```
/* CSS layout */
*{
padding:0;
margin:0;
}
body {
margin: 0;
padding: 0;
}
#masthead {
min-width: 600px;
}
#logo {
float: left;
width: 200px;
background-color:yellow;/*I dont know what color this is in the template*/
}
#header {
background-color:yellow;/*I dont know what color this is in the template*/
height:300px;
}
#container {
clear: both;
min-width: 600px;
}
#left_col {
float: left;
width: 200px;
background-color:red; /*I dont know what color this is in the template*/
}
#page_content {
background-color:black;
margin:-50px 0 0 0;
width:95%;
}
#footer {
clear: both;
}
/* CSS common layout ends here*/
/* horizontalMainMenu starts here*/
#horizontalMainMenu{
width:100%;
background-color:transparent;
}
#horizontalMainMenu ul{
margin:0;
padding:0;
float:left;
}
#horizontalMainMenu ul li{
display:inline;
}
#horizontalMainMenu ul li a{
float:left;
text-decoration:none;
color:white;
padding:5px 9px;
}
/*horizontalMainMenu ends here*/
/*Body Menu Starts here*/
#horizontalBodyMenu ul{
list-style:none;
}
#horizontalBodyMenu ul li{
display:inline;
}
/* horizontalBodyMenu ends here*/
#horizontalMainMenu ul li a:visited{
color:white;
}
#horizontalMainMenu ul li a:hover,#mainMenu ul li .current{
color:#fff;
background-color:#0b75b2;
}
#verticalMainMenu ul{
margin:0;
padding:0;
list-style:none;/*removes the default bulltets*/
}
#verticalMainMenu li{
padding:0 0 0 10px;
background-image:url('');
background-repeat:no-repeat;
background-position:.5em;
line-height:200%;
}
#verticalMainMenu li a:hover{
color:#fff;
background-color:#0b75b2;
}
```
|
Overlapping box
|
CC BY-SA 3.0
| null |
2011-06-17T22:01:27.857
|
2011-06-17T23:40:44.800
|
2011-06-17T23:40:44.800
| 405,015 | 475,337 |
[
"html",
"css"
] |
6,392,443 | 1 | 6,392,463 | null | 2 | 1,202 |
1. The image below represents the footer
2. The black arrow represents the expandable content

Div snippet looks as the following:
```
<div id="footer_wrap">
<div id="footer-left"></div>
<div id="footer-middle"></div>
<div id="footer-right"></div>
</div>
```
The width of the whole footer is 980px
The height of the footer is 124px
I'm using Firefox.
|
Set a Footer at the Bottom of the Browser Regardless of Page Height
|
CC BY-SA 3.0
| null |
2011-06-17T22:27:09.960
|
2011-06-18T04:00:55.763
| null | null | 311,509 |
[
"html",
"css",
"web"
] |
6,392,449 | 1 | null | null | 0 | 155 |
I have a website that had a flv file embedded on the home page. All of a sudden the flv does not appear on the page. It shows in the source file, and appears in the dreamweaver page that I use, but does not appear on the site anymore. I have the most current flash player so that does not seem to be the issue. I have tried it on both pc and mac and the video no longer loads.
[http://www.leadershiprockland.org/](http://www.leadershiprockland.org/)
The file shows that it is on the server and in the proper location. Here are screenshots from the web page and from Dreamweaver.


```
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="342" height="291" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=LeadershipRocklandFinal&autoPlay=true&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=LeadershipRocklandFinal&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="342" height="291" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
```
|
FLV Disappeared from Site
|
CC BY-SA 3.0
| null |
2011-06-17T22:27:33.003
|
2011-06-18T21:03:12.943
|
2011-06-18T21:03:12.943
| 714,790 | 714,790 |
[
"flash",
"video",
"flv"
] |
6,392,534 | 1 | 6,399,100 | null | 3 | 6,516 |
I'm attempting to load the libjnigraphics.so prebuilt library to my project, however when I deploy the application, I am receiving this error:
```
06-17 22:35:28.741: INFO/dalvikvm(298): Unable to dlopen(/data/data/com.foo/lib/libndkfoo.so): Cannot load library: link_image[1721]: 29 could not load needed library 'libjnigraphics.so' for 'libndkfoo.so' (load_library[1051]: Library 'libjnigraphics.so' not found)
```

It compiles perfectly, fine.
Here's my Android.mk as well:
```
LOCAL_PATH := $(call my-dir)
# Add prebuilt libjnigraphics
include $(CLEAR_VARS)
LOCAL_MODULE := libjnigraphics
LOCAL_SRC_FILES := libjnigraphics.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
# Here we give our module name and source file(s)
LOCAL_MODULE := ndkfoo
LOCAL_SRC_FILES := ndkfoo.c
LOCAL_SHARED_LIBRARY := libjnigraphics
#LOCAL_LDLIBS += -libjnigraphics
LOCAL_LDLIBS += -llog
include $(BUILD_SHARED_LIBRARY)
```
Is there a special place I need to put the libjnigraphics.so? Right now I have it in the jni folder, however I've tried it in multiple other places and it still fails. Any help?
|
Unsatisfied Link Error - Could not find Library
|
CC BY-SA 3.0
| 0 |
2011-06-17T22:40:26.057
|
2014-08-08T10:24:51.293
| null | null | 118,241 |
[
"android",
"c",
"android-ndk"
] |
6,392,525 | 1 | 6,776,839 | null | 2 | 850 |
I have a strange problem with a UITextField - I am setting the value of it to @"" (or anything else still causes it) and then shrinking the field with to zero. Next time I unshrink it, it displays the same value it had before I shrunk it, regardless of my having changed the text in the view. Typing in the field causes the glitch to go away, but it looks bad.

Complete code to reproduce:
throwaway_testViewController.h:
```
#import <UIKit/UIKit.h>
@interface throwaway_testViewController : UIViewController <UITextFieldDelegate>{
UITextField * unitField;
}
@property (nonatomic, assign) IBOutlet UITextField * unitField;
-(IBAction)setEditingSectionUnits;
-(void)setEditingSectionValue;
-(IBAction)equalsPress;
@end
```
throwaway_testViewController.m
```
#import "throwaway_testViewController.h"
@implementation throwaway_testViewController
@synthesize unitField;
#pragma mark - Inputs
-(IBAction)equalsPress{
[UIView animateWithDuration:0.5 animations:^(void){
[unitField setText:@""];
[self setEditingSectionValue];
}];
}
#pragma mark Input Control
-(void)setEditingSectionUnits{
[UIView animateWithDuration:0.5 animations:^(void){
CGRect newRect = unitField.frame;
newRect.size.width = 160;
unitField.frame = newRect;
}completion:^(BOOL completed){
completed ? [unitField setNeedsDisplay] : nil;
}];
[unitField becomeFirstResponder];
}
-(void)setEditingSectionValue{
[UIView animateWithDuration:0.5 animations:^(void){
CGRect newRect = unitField.frame;
newRect.size.width = [unitField.text sizeWithFont:unitField.font constrainedToSize:CGSizeMake(80, 250)].width;;
unitField.frame = newRect;
}completion:^(BOOL completed){
completed ? [unitField setNeedsDisplay] : nil;
}];
[unitField resignFirstResponder];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField{
[self setEditingSectionValue];
return TRUE;
}
-(void)textFieldDidBeginEditing:(UITextField *)textField{
[self setEditingSectionUnits];
}
@end
```
In the `xib`, place a `UITextField` tied to `unitField`, and set the delegate of the text field to be file's owner.
Place a `UIButton` labeled `equalsPress` and tie it to that `IBAction`, and another called edit, tied to `setEditingSectionUnits`. To see the bug reproduced:
- - - - - - - - -
|
How can I get rid of "ghost" text that appears in UITextField after clearing the field programmatically?
|
CC BY-SA 3.0
| 0 |
2011-06-17T22:38:28.043
|
2013-12-06T05:11:01.053
|
2013-12-06T05:11:01.053
| 881,229 | 240,655 |
[
"iphone",
"uikit",
"uitextfield",
"uiviewanimation"
] |
6,392,630 | 1 | null | null | 1 | 2,097 |
On my LOCALHOST, I have a form that creates and FDF file... Also in that file it includes a 'full-path' -> '[http://localhost/example/example.pdf](http://localhost/example/example.pdf)'.... So when I 'click the link' to open the FDF file within the browser, it loads the PDF with the FDF data inserted in the proper locations.
When I do this on my Linux Server (not local), when I click the FDF file to open it, it just OPENS the file, and renders text (fdf file) to the screen instead of 'opening' the fdf file.
Wondering if anyone can help me out with this process... I want to open the FDF file and so it opens the PDF file as well.
This is some code that I have done, but i have commented out the 'headers'... as I didn't think I needed headers when 'opening' a file, rather than rendering one to screen?
```
$fdf = new fdf();
//$response = $fdf->fdfMerge(APP_ROOT."/forms/test/FormTest.pdf", $_POST);
$response = $fdf->renderFDF(DOMAIN."forms/test/FormTest.pdf", $_POST, $_POST['userId'], $_POST['contactId']);
//var_dump($response);
// Link DIRECTLY to the FDF file...
echo "Internal: <a href='". $response['internalPath'] ."'>". $response['internalPath'] ."</a><br />";
echo "External: <a href='". $response['externalPath'] ."'>". $response['externalPath'] ."</a><br />";
/*
if(ini_get('zlib.output_compression'))
ini_set('zlib.output_compression', 'Off');
header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false); // required for certain browsers
header("Content-Type: application/x-download");
header("Content-Disposition: attachment; filename=".$response['fdfFile'].";" );
header("Content-Length: ".$filesize($response['fdfFile'])."");
header("Content-Transfer-Encoding: binary");
ob_clean();
flush();
fopen($response['fullPath']);
*/
```
--- BROWSER RESPONSE FROM LINUX BOX ---
```
%FDF-1.2
%âãÃÓ
1 0 obj
<<
/FDF << /Fields [ <</T(formId)/V(111)>><</T(userId)/V(23)>><</T(contactId)/V(2950)>><</T(firstName)/V(Justin)>><</T(lastName)/V(Geezer)>><</T(email)/V([email protected])>>]
/F (https://www.example.com/forms/test/FormTest.pdf) /ID [ <bd71513804f75900e899f3be924b69ef>
] >>
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF
```
Here is a ScreenShot, when I use the "HEADER" responses.

---
If I download the FDF file from the server, and 'double-click' to open the file, it downloads the PDF file from the web and opens it fine.
|
Opening FDF local works, but not on server
|
CC BY-SA 3.0
| null |
2011-06-17T22:58:31.240
|
2012-12-20T10:45:07.950
|
2012-12-20T10:45:07.950
| 367,456 | 679,601 |
[
"php",
"pdf",
"fdf",
"xfdf"
] |
6,393,119 | 1 | 6,393,130 | null | 1 | 2,113 |
i am working on asp.net mvc3. i am using database designed in sql server. i have added my database in App_Data using Ado.connection.
This is my table:

I want to access Code where ID=2
I am using this query:
```
ViewBag.pc = db.Product.Where(r => r.ID == p);
```
but this returns whole row. So what should i do to select particular column(here code). Please help me.
|
How can select a particular field of table stored in SQL server
|
CC BY-SA 3.0
| 0 |
2011-06-18T00:39:53.243
|
2011-06-18T01:50:54.680
|
2011-06-18T01:50:54.680
| 293,076 | 887,872 |
[
"asp.net-mvc",
"linq-to-sql"
] |
6,393,216 | 1 | 6,393,460 | null | 2 | 1,079 |
I want to get rid of the empty space to the left of the jsplitpanes:

Here's my code:
```
getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
splitPane.add(downloadsPanel);
splitPane.add(filesPanel);
JSplitPane splitPane2 = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
splitPane2.add(processingPanel);
splitPane2.add(messagePanel);
JSplitPane splitPane3 = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
splitPane3.add(splitPane);
splitPane3.add(splitPane2);
getContentPane().add(addPanel);
getContentPane().add(splitPane3);
```
|
Java: Issue with jsplitpane and boxlayout
|
CC BY-SA 3.0
| null |
2011-06-18T01:06:38.630
|
2011-06-18T02:29:31.533
| null | null | 549,226 |
[
"java",
"swing",
"jsplitpane",
"boxlayout"
] |
6,393,570 | 1 | 6,393,841 | null | 0 | 1,373 |
It might be very simple but I think I am missing something. I have a self joined table `Units`, every unit has a main unit:

So that I could query for something like this:

The table `units` is mapped to the following class:
```
public class Units
{
public virtual int Unit_Id { get; private set; }
public virtual string Unit { get; set; }
public virtual decimal Unit_Value { get; set; }
public virtual Units Main_Unit { get; set; }
}
```
With .hbm mapping file as follows:
```
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NewA.Domain" namespace="NewA.Domain">
<class name="NewA.Domain.Entities.Units,NewA.Domain" table="Units">
<id name="Unit_Id" column="Unit_Id" type="Int32" length="4" unsaved-value="0">
<generator class="native">
</generator>
</id>
<property name="Unit" column="Unit" type="string" length="50" not-null="true"/>
<one-to-one name="Main_Unit" class="NewA.Domain.Entities.Units,NewA.Domain"/>
</class>
</hibernate-mapping>
```
When testing these entity with the following code:
```
Units unit = _UnitsRepository.GetById(2);
string parent_unitname = unit.Main_Unit.Unit;
Assert.AreEqual("pack",parent_unitname);
```
I got the following excpetion:
> ```
Expected values to be equal.
Expected Value : "pack"
Actual Value : "kg"
```
The problem is that the `Main_Unit` property of the `Unit` entity is referencing itself, so what I am missing here??, and how can I write something like recursive SQL CTE to apply ranks and so on, because I have the same problem with other more complex self joined tables with more complex queries.
|
NHibernate mapping self joined table?
|
CC BY-SA 3.0
| 0 |
2011-06-18T03:00:31.097
|
2012-10-01T14:24:26.097
|
2012-10-01T14:24:26.097
| 722,783 | 722,783 |
[
"c#",
"nhibernate",
"nhibernate-mapping",
"self-join"
] |
6,393,713 | 1 | 6,393,754 | null | 0 | 600 |
i am designing a project in asp.net mvc3, i have designed database in sql server, and i added this in App_Data using ADO.net connection.
this is my ProductFormulation Table

and this is my RawMaterial table

now i want to get from RawMaterial table where ProductID=1 in ProductFormulation.
please tell me what query should i write. I am using Razor view engine.
|
how to write combined query to access data in asp.net mvc3
|
CC BY-SA 3.0
| 0 |
2011-06-18T03:42:47.773
|
2012-03-07T11:31:27.157
|
2011-06-18T03:52:49.880
| 355,785 | 887,872 |
[
"tsql",
"ado.net"
] |
6,393,751 | 1 | null | null | 1 | 602 |
Forgive me if I may come as ignorant but I would like to ask some questions regarding using Filter Algorithms for Note Onset Detection.
1. Is 'Detection Function' the same as using Filters on the audio signal? Or generally, what is the difference between Detection Function, Filtering (pre-processing the signal), and Peak-Picking?
2. I've constantly heard about the Low-Pass (or High-Pass) filter, but I am confused. I read that it works on cancelling out certain frequencies that are below (or above) a certain threshold. However, I am using the Time-Domain for calculating Note Onsets (that is, using the change in signal amplitude/energy). So I am not sure on how I can apply low-pass filtering to the time-domain. Any other good filters for note-onset detection?
3. What is the difference between, Spectral and Phase energy? (I have an idea that spectral refers to the spectogram or frequencies, but I do not know what Phase is)
4. I am having difficulties with working with dynamic thresholding. Any suggestions for a good algorithm? For example, I have the following signal:

As shown in the image above, there are note onsets that I have missed. A brief description of my algorithm, I calculate and take note of the energy/amplitude changes that occur in the audio signal. Then I get the maximum 'energy change' and based on the sensitivity, I take a percentage of it and set it as the threshold. So this is where the problem of dealing with varying degrees of amplitude/energy comes in. If I set the sensitivity too low, I come up with 'ghost' onsets and if I set the sensitivity too high, I miss out on some onsets. Any suggestions to improve the algorithm (or suggest a new algorithm) that I am using?
I am sure that it is difficult to have 100% accuracy but I need to have a better algorithm for note onset detection compared with what I have now. I would appreciate all the help I can get. Thank you very much!
|
Questions about Filters for Note Onset Detection?
|
CC BY-SA 3.0
| null |
2011-06-18T03:54:47.723
|
2019-01-31T16:11:52.977
|
2019-01-31T16:11:52.977
| 189,247 | 488,792 |
[
"audio",
"filter",
"signal-processing",
"onset-detection"
] |
6,393,953 | 1 | 6,394,016 | null | 1 | 603 |
I am having a Custom List view with Section Header.
Note: this is not ordinary list. It's a Section Header.
Custom List is as follows:


Before clicking the like image it looks like Image 1 and after click it should changed like Image 2.
My problem is that:
1. It looks very strange if I click on the like image of particular row Like image in others rows get changed.
2. Some times it throws Null Pointer exception if i click 1st row of the list.
What I need is that if I click on the Like image of particular list it state or color only change, others should keep unchanged.
[Main Activty link](http://pastie.org/2085800)
[List_Data](http://pastie.org/2085802)
[Custom List](http://pastie.org/2085803)
I tried with [this link](https://stackoverflow.com/questions/4583349/change-listview-background-strage-behaviour/4583479#4583479) but it doesn't help me.
Since it is Sectioned header, Adapter calculates the Header also as row so the size of list includes the Header also. Make a notes in this also.
|
Strange behavior of in List View click with Section Header
|
CC BY-SA 4.0
| null |
2011-06-18T04:47:19.557
|
2019-03-02T18:08:29.700
|
2019-03-02T18:08:29.700
| 472,495 | 555,221 |
[
"android",
"list",
"onclick",
"sectionheader"
] |
6,394,109 | 1 | 6,394,592 | null | 3 | 612 |
This project is still in planning stages. I'm trying to understand what is the best way to go about it.
If I have a plot area, kind of like on a picture. And then add jQuery UI draggable/droppable functionality to drag objects around the chart, how can I then record position of each object in relation to each other? Immediate answer is to get coordinate points, but the screen sizes could be different.
1. Is it possible to do it somehow in percentages?
2. If I save these results how would I display the list of the items in the order highest to lowest?

|
XY chart coordinates
|
CC BY-SA 3.0
| 0 |
2011-06-18T05:34:02.307
|
2011-06-18T18:20:37.170
|
2011-06-18T07:25:09.553
| 479,863 | 434,218 |
[
"jquery",
"jquery-ui"
] |
6,394,236 | 1 | 6,424,614 | null | 0 | 623 |
I'm now developing a component for Joomla 1.5. I want to update the header part in the component menu for specfic actions like New/Edit/Add/Save, etc. How can I do that?
I'm attaching screenshots to make things more clear.
Component header part I want to change/update

This is exactly the updating I meant

|
How to update header in Joomla component admin menu
|
CC BY-SA 3.0
| null |
2011-06-18T06:09:01.853
|
2012-10-11T14:52:34.290
|
2012-10-11T14:52:34.290
| 488,657 | 749,232 |
[
"joomla",
"components"
] |
6,394,288 | 1 | null | null | -1 | 76 |

I'm trying to connection the actions to specific object in IB tree. When I drag the action from the circle on the right side of each action name, no object accepts the line except `NSScroller` instance.
`NSWIndow`, `NSResponder` or any other kind of objects doesn't accept the dragged action. What's required to accept the action listed here?
|
How can I receive actions listed in here? (Cocoa)
|
CC BY-SA 3.0
| null |
2011-06-18T06:22:09.960
|
2011-06-20T00:00:48.960
|
2011-06-18T08:50:43.210
| 246,776 | 246,776 |
[
"cocoa",
"action"
] |
6,394,372 | 1 | 6,394,393 | null | 1 | 135 |
I used the following to display message on clicking `HREF`
```
<td align="center" style="background-color: #99ccff; border: 1px solid #000;" class="style22">
<a href="" onclick="return confirm('Select This Opton for qualifying asylee/refuge status students who require');">?</a>
</td>
```
This works fine. But my question is on IE it is displaying the pop up with a question mark where as in other browsers it doesn't how can i have that as per in IE

On IE i am getting as mentioned and also i would like to display the title as per my own instead of `Message from webpage` i would like to write a custom one how can i can any one help
|
Question on using Href
|
CC BY-SA 3.0
| null |
2011-06-18T06:42:53.863
|
2011-08-08T07:52:03.413
|
2011-08-08T07:52:03.413
| 388,388 | 388,388 |
[
"javascript",
"asp.net",
"href"
] |
6,394,494 | 1 | 6,394,571 | null | 2 | 1,004 |
I want to tag at various points using images/icons of varying sizes on a HTML5 Meter. Now I can use a span tag to do that by placing it at various parts of the meter.
Is there another alternative to this? I was wondering if I could use the canvas element to do so.
|
Marking on HTML5 Meter/ProgressBar Tag Using Canvas
|
CC BY-SA 3.0
| null |
2011-06-18T07:16:49.020
|
2011-06-20T06:23:03.583
|
2011-06-18T07:18:27.953
| null | 798,076 |
[
"javascript",
"html",
"canvas"
] |
6,394,612 | 1 | 6,462,221 | null | 4 | 778 |
I want to be able to create UML diagrams from source code - and I found [UMMF - UML Meta-Model Framework](http://search.cpan.org/dist/UMMF/). However, I could not find any tutorial to get me started on creating a diagram with two classes and a simple relationship between them.
Basically what I am trying to achieve for now, is to create a simple in a relation of 1..n:

The XMI output for this diagram, is pretty verbose, because I created the diagram with Enterprise Architect - you can find this XMI file [here](http://pastebin.com/50daLe0a) (I could not embed the text here because is too big)
I want to use UMMF because it creates XMI files, based on perl object hierarchies that are related to [OMG UML](http://www.omg.org/spec/UML/) standards and those files can be imported in any modelling tool that implement those standard.
So the question is, how can I create this diagram using ? - it is not necessary to be that complex.
I need the diagram to have:
- - - - - -
Also if you know of the existence of any good , please show us their links
|
Perl UMMF Tutorial?
|
CC BY-SA 3.0
| 0 |
2011-06-18T07:42:20.563
|
2012-01-10T23:09:15.563
| null | null | 459,233 |
[
"perl",
"uml",
"diagram",
"xmi"
] |
6,394,702 | 1 | null | null | 1 | 1,643 |
This is in Safari and Chrome:

```
TABLE {
width: 100%;
clear: both;
border: 0px;
border-collapse: collapse;
}
TABLE TH,
TABLE TD {
padding: 10px;
text-align: center;
border: 1px dotted #898989;
}
```
|
Safari bug in table with border dotted
|
CC BY-SA 3.0
| 0 |
2011-06-18T08:04:26.840
|
2011-06-18T08:28:03.917
|
2011-06-18T08:08:43.463
| 451,969 | 598,810 |
[
"html",
"css",
"safari"
] |
6,394,768 | 1 | 12,475,182 | null | 3 | 18,010 |
i want to add badge to tab in my app as in iPhone.
Screen shot of badge used in iPhone is in the following link:

i have done some image like badge in android app ,its screen shot is in the following link:

this is not the exactly badge i want, i want badge on tab like in iPhone
can anybody suggest me to add badge to tab in android? Please help me.
thanks in advance.
|
Adding badge to tab in android
|
CC BY-SA 3.0
| 0 |
2011-06-18T08:18:36.320
|
2016-10-04T20:50:53.063
|
2011-06-18T08:41:34.337
| 209,574 | 792,232 |
[
"android"
] |
6,394,908 | 1 | 6,395,597 | null | 0 | 129 |
I am targeting my application to be able run across Android 1.5 till 2.3. I create 2 AVDs
```
Android 2.3.3 (API Level 10)
Android 1.5 (API Level 3)
```
I found out my application able to launch in Android 2.3, but not 1.5. It crashes even before the application able to show up. I try to find out the root cause using the following way. Here is what I did.


The crash breakpoint is pointing to Android code, and not my application code.


What is the correct way, for me to figure out, why the same project can crash under certain target, but run well under another target.
|
Figure out crash reason for a same project which crashes under certain target
|
CC BY-SA 3.0
| null |
2011-06-18T08:49:24.177
|
2011-06-18T11:16:29.817
| null | null | 72,437 |
[
"android"
] |
6,395,188 | 1 | 6,405,182 | null | 1 | 1,551 |
I am having strange issue while using tag.The opening quotes getting mess as in image .

wordpress version : 3.2
Editor :tinyMCE 3.3.9.3
present page url : [http://cratecreative.com/goldburdmccone/free-case-evaluation/](http://cratecreative.com/goldburdmccone/free-case-evaluation/)
Thanks
|
wordpress double quotes issue in editor
|
CC BY-SA 3.0
| 0 |
2011-06-18T09:51:52.137
|
2011-06-19T21:30:33.720
|
2011-06-19T21:30:33.720
| null | 430,112 |
[
"javascript",
"css",
"wordpress",
"html"
] |
6,395,208 | 1 | 6,395,244 | null | 0 | 2,003 |

Above is the image, where left side is an accordion, and right side is content part (inside a table) I am concerned about the content part(right side) why is the table not 100% width? while the heading on top of it is expanded to full page width. Given below is my code for the `content`.
```
var i=0;
var filesystem=[];
$(xml).find('file').each(function(){
//console.info($(this).attr('total')+", "+$(this).attr('free')+", "+$(this).attr('used')+", "+$(this).attr('percentage'));
var row={};
row.id=i++;
row.total=$(this).attr('total');
row.free=$(this).attr('free');
row.used=$(this).attr('used');
row.percentage=$(this).attr('percentage');
filesystem.push(row);
});
$('#detailTable').empty();
$('<div width="100%">')
.attr('id','diskUsageSpan')
.html('<div class="titleBlue">Configuration>System>Disk Usage</div>'+
'<table id="list1" width="100%"></table>'+
'<div id="gridpager"></div>'+
'</div>')
.appendTo('#detailTable');
jQuery("#list1").jqGrid({
datatype: "clientSide",
height: 250,
colNames:['id','Total Space','Free Space', 'Used Space', 'Used Percentage'],
colModel:[
{name:'id',index:'id', width:90, align:"right"},
{name:'total',index:'total', width:90, align:"right"},
{name:'free',index:'free', width:90, align:"right"},
{name:'used',index:'used', width:90, align:"right"},
{name:'percentage',index:'percentage', width:120, align:"right"}
],
pagination:true,
pager : '#gridpager',
rowNum:10,
viewrecords: true,
gridview: true,
edit:false,
add:false,
del:false
});
for(var i=0;i<filesystem.length;i++)
jQuery("#list1").jqGrid('addRowData',i+1,filesystem[i]);
jQuery("#list1").setGridParam({rowNum:10}).trigger("reloadGrid");
```
|
Why does the table not stretches to 100% width
|
CC BY-SA 4.0
| 0 |
2011-06-18T09:56:10.027
|
2018-08-29T04:45:35.027
|
2018-08-29T04:45:35.027
| 1,033,581 | null |
[
"javascript",
"jquery",
"html",
"css",
"jqgrid"
] |
6,395,318 | 1 | 6,395,330 | null | 0 | 753 |
So when the user comments on some link, I want a picture of that link to show up on his feed alongside the link itself. Right now only the comment text and the link shows up on the feed, no pic is shown. Any ideas how to do that? Something like this:

|
How to show a picture of the link in user's feed when commenting on some URL on Facebook?
|
CC BY-SA 3.0
| null |
2011-06-18T10:19:41.530
|
2011-06-18T10:22:07.063
| null | null | 124,504 |
[
"facebook",
"feed",
"image",
"comments"
] |
6,395,665 | 1 | 6,409,340 | null | 0 | 535 |
I've got a simple UIWebView loading an NSURLRequest every time a button is clicked. Using Instruments and analyzing heapshots, I'm noticing that my heap is continuously growing. However, none of the objects seem to be my own, as they are all < non-object > WebCore glyph stuff.
I'm seeing an increase of roughly 40kB heap growth each time the UIWebView is allocated/deallocated, even after 10+ heap shots.
Why do these objects still exist in memory, and what can I do about it?

|
Loading NSURLRequest in a UIWebView - heap keeps growing
|
CC BY-SA 3.0
| null |
2011-06-18T11:30:40.243
|
2011-06-20T09:38:43.990
| null | null | 254,422 |
[
"ios",
"uiwebview",
"memory-management",
"instruments"
] |
6,395,689 | 1 | 6,396,947 | null | 0 | 1,171 |
In mysql db I have a field named with type which store total time spend in a day and that table contain records for every month. Now I want to find total time spend by a user in each week of a selected month. I searched for that but I found an excellent query to find total time spend in whole month which is:
```
SELECT Sec_to_Time(Sum(Time_to_Sec(time_utilize))) FROM attendance WHERE staff_id = 'sajid'
```
Now who can I find the sum of total time utilize in each week of a month?

|
How to sum total time utilize in each week of a month?
|
CC BY-SA 3.0
| null |
2011-06-18T11:35:29.347
|
2012-12-20T22:14:46.317
|
2012-12-20T22:14:46.317
| 367,456 | 233,679 |
[
"php",
"mysql"
] |
6,395,608 | 1 | 6,395,713 | null | 0 | 5,700 |
Here is my code, please help me hide the `id` column in jqGrid, I am assuming in order to select current row i will be needing this `id` column but dont want it to be flashing in my table

```
var ospatches=[];
$(xml).find('patch').each(function(){
var row={};
row.name=$(this).attr('name');
ospatches.push(row);
});
$('#detailTable').empty();
$('<div width="100%">')
.attr('id','ospatchesSpan')
.html('<div class="titleBlue">Configuration>System>Os Patches</div>'+
'<table id="list1" width="100%"></table>'+
'<div id="gridpager"></div>'+
'</div>')
.appendTo('#detailTable');
jQuery("#list1").jqGrid({
datatype: "clientSide",
height: 250,
colNames:['Name'],
colModel:[
{name:'name',index:'name', align:"right"},
],
pagination:true,
pager : '#gridpager',
rowNum:10,
scrollOffset:0,
height: 'auto',
autowidth:true,
viewrecords: true,
gridview: true,
edit:false,
add:false,
del:false
});
for(var i=0;i<ospatches.length;i++)
jQuery("#list1").jqGrid('addRowData',i+1,ospatches[i]);
jQuery("#list1").setGridParam({rowNum:10}).trigger("reloadGrid");
```
Here is my data that takes too long.. i am posting only half of it, same location as `filesystem`
```
<ospatches>
<patch name='gnome-kerberos-0.3.3-1' />
<patch name='cdecl-2.5-30' />
<patch name='sr_mod-Dell_RHEL4a-4dkms' />
<patch name='gsk7bas-7.0-3.18' />
<patch name='pdksh-5.2.14-30.3' />
<patch name='IBM_db2chen81-8.1.3-136' />
<patch name='IBM_db2icms81-8.1.3-136' />
<patch name='perl-String-CRC32-1.4-2.fc6' />
<patch name='nc-1.84-10.fc6' />
<patch name='libdv-0.104-4.fc6.1' />
<patch name='specspo-13-1.el5' />
<patch name='system-config-services-0.9.4-1.el5' />
<patch name='rp-pppoe-3.5-32.1' />
<patch name='cyrus-sasl-2.1.22-4' />
<patch name='xmlsec1-1.2.9-8.1' />
<patch name='libXvMC-1.0.2-2.1' />
<patch name='automake15-1.5-16' />
<patch name='swig-1.3.29-2.el5' />
<patch name='automake-1.9.6-2.1' />
<patch name='curl-devel-7.15.5-2.el5' />
<patch name='cvs-1.11.22-5.el5' />
<patch name='xorg-x11-fonts-misc-7.1-2.1.el5' />
<patch name='xorg-x11-drv-tek4957-1.1.0-1.1' />
<patch name='gtk+-1.2.10-56.el5' />
<patch name='xorg-x11-resutils-7.1-2.fc6' />
<patch name='scim-qtimm-0.9.4-5' />
<patch name='kde-i18n-French-3.5.4-1' />
<patch name='setup-2.5.58-4.el5' />
<patch name='words-3.0-9.1' />
<patch name='bash-3.2-24.el5' />
<patch name='libICE-1.0.1-2.1' />
<patch name='libgpg-error-1.4-2' />
<patch name='pkgconfig-0.21-2.el5' />
<patch name='slang-2.0.6-4.el5' />
<patch name='libogg-1.1.3-3.el5' />
<patch name='desktop-file-utils-0.10-7' />
<patch name='ORBit2-2.14.3-5.el5' />
<patch name='flac-1.1.2-28.el5_0.1' />
<patch name='crash-4.0-7.2.3' />
<patch name='traceroute-2.0.1-5.el5' />
<patch name='libvorbis-1.1.2-3.el5_1.2' />
<patch name='libidn-0.6.5-1.1' />
<patch name='libXinerama-1.0.1-2.1' />
<patch name='libXfontcache-1.0.2-3.1' />
<patch name='perl-libwww-perl-5.805-1.1.1' />
<patch name='startup-notification-0.8-4.1' />
<patch name='e2fsprogs-libs-1.39-20.el5' />
<patch name='module-init-tools-3.3-0.pre3.1.42.el5' />
<patch name='dmraid-1.0.0.rc13-33.el5' />
<patch name='m2crypto-0.16-6.el5.3' />
<patch name='nss_ldap-253-17.el5' />
<patch name='pycairo-1.2.0-1.1' />
<patch name='xorg-x11-xinit-1.0.2-15.el5' />
<patch name='newt-0.52.2-12.el5' />
<patch name='util-linux-2.13-0.50.el5' />
<patch name='gtk2-2.10.4-20.el5' />
<patch name='fipscheck-1.0.3-1.el5' />
<patch name='smartmontools-5.38-2.el5' />
<patch name='dbus-glib-0.73-8.el5' />
<patch name='kudzu-1.2.57.1.21-1' />
<patch name='pciutils-devel-2.2.3-5' />
<patch name='strace-4.5.18-2.el5' />
<patch name='perl-IO-Socket-INET6-2.51-2.fc6' />
<patch name='mysql-5.0.45-7.el5' />
<patch name='php-ldap-5.1.6-23.el5' />
<patch name='perl-IO-Socket-SSL-1.01-1.fc6' />
<patch name='redhat-artwork-5.0.9-1.el5' />
<patch name='vsftpd-2.0.5-12.el5' />
<patch name='openssl-devel-0.9.8e-7.el5' />
<patch name='sane-backends-1.0.18-5.el5' />
<patch name='libgnome-2.16.0-6.el5' />
<patch name='nautilus-extensions-2.16.2-7.el5' />
<patch name='librsvg2-2.16.1-1.el5' />
<patch name='xorg-x11-drv-mouse-1.1.1-1.1' />
<patch name='system-config-httpd-1.3.3.3-1.el5' />
<patch name='scim-doc-1.4.4-41.el5' />
<patch name='libgcj-devel-4.1.2-44.el5' />
<patch name='kdebase-3.5.4-19.el5' />
<patch name='scim-libs-1.4.4-41.el5' />
<patch name='dhcdbd-2.2-2.el5' />
<patch name='aex-inventory-7.0-6061' />
<patch name='krbafs-1.2.2-6' />
<patch name='perl-XML-Encoding-1.01-26' />
<patch name='pwlib-1.6.5-11' />
<patch name='kdemultimedia-3.3.1-2' />
<patch name='megaraid-v2.20.4.4-2dkms' />
<patch name='MQSeriesJava-6.0.1-0' />
<patch name='HelixPlayer-1.0.6-0.EL4.1' />
<patch name='gtk-engines-0.12-6.el4' />
<patch name='openmotif21-2.1.30-11.RHEL4.6' />
<patch name='IBM_db2icut81-8.1.3-136' />
<patch name='IBM_db2ca81-8.1.3-136' />
<patch name='pexp_x8664_c000-12.00.00.00-1' />
<patch name='cyrus-sasl-plain-2.1.22-4' />
<patch name='pam_passwdqc-1.0.2-1.2.2' />
<patch name='rdist-6.1.5-44' />
<patch name='pinfo-0.6.9-1.fc6' />
<patch name='libwnck-2.16.0-4.fc6' />
<patch name='libtermcap-devel-2.0.8-46.1' />
<patch name='indent-2.2.9-14.fc6' />
<patch name='webalizer-2.01_10-30.1' />
<patch name='sound-juicer-2.16.0-3.el5' />
<patch name='xorg-x11-drv-cirrus-1.1.0-2.fc6' />
<patch name='xorg-x11-drv-magictouch-1.0.0.5-2.1' />
<patch name='xorg-x11-drivers-7.1-4.1.el5' />
<patch name='gdk-pixbuf-0.22.0-25.el5' />
<patch name='bluez-hcidump-1.32-1' />
<patch name='perl-XML-Twig-3.26-1.fc6' />
<patch name='screen-4.0.3-1.el5' />
<patch name='kde-i18n-German-3.5.4-1' />
<patch name='termcap-5.5-1.20060701.1' />
<patch name='glibc-2.5-34' />
<patch name='readline-5.1-1.1' />
<patch name='nspr-4.7.3-2.el5' />
<patch name='binutils-2.17.50.0.6-9.el5' />
<patch name='iptables-1.3.5-4.el5' />
<patch name='mailx-8.1.1-44.2.2' />
<patch name='libvorbis-1.1.2-3.el5_1.2' />
<patch name='libusb-0.1.12-5.1' />
<patch name='libmng-1.0.9-5.1' />
<patch name='enscript-1.6.4-4.1.1.el5_2' />
<patch name='procmail-3.22-17.1' />
<patch name='libacl-2.2.39-3.el5' />
<patch name='aspell-0.60.3-7.1' />
<patch name='libXmu-1.0.2-5' />
<patch name='libXv-1.0.1-4.1' />
<patch name='libXevie-1.0.1-3.1' />
<patch name='libXxf86vm-1.0.1-3.1' />
<patch name='mesa-libGLU-6.5.1-7.7.el5' />
<patch name='tar-1.15.1-23.0.1.el5' />
<patch name='libXft-2.1.10-1.1' />
<patch name='python-elementtree-1.2.6-5' />
<patch name='device-mapper-event-1.02.28-2.el5' />
<patch name='pygobject2-2.12.1-5.el5' />
<patch name='hwdata-0.213.11-1.el5' />
<patch name='libXft-2.1.10-1.1' />
<patch name='passwd-0.73-1' />
<patch name='alsa-lib-1.0.17-1.el5' />
<patch name='libutempter-1.1.4-4.el5' />
<patch name='emacs-common-21.4-20.el5' />
<patch name='wpa_supplicant-0.5.10-8.el5' />
<patch name='cups-1.3.7-8.el5' />
<patch name='perl-DBI-1.52-2.el5' />
<patch name='libicu-3.6-5.11.1' />
<patch name='libacl-devel-2.2.39-3.el5' />
<patch name='apr-1.2.7-11' />
<patch name='squid-2.6.STABLE21-3.el5' />
<patch name='xml-common-0.6.3-18' />
<patch name='zenity-2.16.0-2.el5' />
<patch name='openssh-askpass-4.3p2-29.el5' />
<patch name='httpd-manual-2.2.3-22.el5' />
<patch name='dbus-glib-devel-0.73-8.el5' />
<patch name='vnc-server-4.1.2-14.el5' />
<patch name='libbonoboui-2.16.0-1.fc6' />
<patch name='gnome-utils-2.16.0-5.el5' />
<patch name='gnome-python2-2.16.0-1.fc6' />
<patch name='gnome-python2-applet-2.16.0-2.el5' />
<patch name='firstboot-1.4.27.7-1.el5' />
<patch name='dovecot-1.0.7-7.el5' />
<patch name='kdebase-3.5.4-19.el5' />
<patch name='isdn4k-utils-3.2-51.el5' />
<patch name='gimp-print-4.2.7-22.2.el5' />
<patch name='tcl-8.4.13-3.fc6' />
<patch name='aex-nsclt-7.0-8641' />
<patch name='system-config-mouse-1.2.9-1' />
<patch name='openjade-1.3.2-14' />
<patch name='imlib-1.9.13-23' />
<patch name='seamonkey-nspr-1.0.3-0.el4.1' />
<patch name='gaim-1.5.0-12.el4' />
<patch name='kdeaddons-3.3.1-2' />
<patch name='mysqlclient10-3.23.58-4.RHEL4.1' />
<patch name='ominstall-links-5.1.0-354' />
<patch name='bnx2-1.4.36b-5dkms' />
<patch name='IBM_db2icw81-8.1.3-136' />
<patch name='IBM_db2dc81-8.1.3-136' />
<patch name='tdicu-12.00.00.00-1' />
<patch name='cliv2_64-12.00.00.00-1' />
<patch name='libXfontcache-1.0.2-3.1' />
<patch name='nano-1.3.12-1.1' />
<patch name='gail-1.9.2-1.fc6' />
<patch name='readahead-1.3-7.el5' />
<patch name='boost-1.33.1-10.el5' />
<patch name='hesiod-devel-3.1.0-8' />
<patch name='ctags-5.6-1.1' />
<patch name='gnome-system-monitor-2.16.0-3.el5' />
<patch name='xorg-x11-drv-fpit-1.1.0-1.1' />
<patch name='xorg-x11-drv-aiptek-1.0.1-2' />
<patch name='xorg-x11-drv-calcomp-1.1.0-1.1' />
<patch name='compat-db-4.2.52-5.1' />
<patch name='compat-libstdc++-33-3.2.3-61' />
<patch name='statserial-1.1-38.2.2' />
<patch name='cyrus-sasl-md5-2.1.22-4' />
<patch name='zsh-4.2.6-1' />
<patch name='gnome-keyring-manager-2.16.0-3.el5' />
<patch name='xkeyboard-config-0.8-7.fc6' />
<patch name='popt-1.10.2.3-9.el5' />
<patch name='gawk-3.1.5-14.el5' />
<patch name='libjpeg-6b-37' />
<patch name='popt-1.10.2.3-9.el5' />
<patch name='ed-0.2-39.el5_2' />
<patch name='libfontenc-1.0.2-2.2.el5' />
<patch name='libvolume_id-095-14.19.el5' />
<patch name='libdrm-2.0.2-1.1' />
<patch name='aspell-0.60.3-7.1' />
<patch name='libiec61883-1.0.0-11.fc6' />
<patch name='cdrecord-2.01-10.7.el5' />
<patch name='libFS-1.0.0-3.1' />
<patch name='tcp_wrappers-7.6-40.6.el5' />
<patch name='libXext-1.0.1-2.1' />
<patch name='redhat-logos-4.9.16-1' />
<patch name='xorg-x11-xkb-utils-1.0.2-2.1' />
<patch name='libXfixes-4.0.1-2.1' />
<patch name='coreutils-5.97-19.el5' />
<patch name='newt-0.52.2-12.el5' />
<patch name='libgssapi-0.10-2' />
<patch name='MAKEDEV-3.23-1.2' />
<patch name='lockdev-1.0.1-10' />
<patch name='python-numeric-23.7-2.2.2' />
<patch name='fontconfig-2.4.1-7.el5' />
<patch name='libpcap-0.9.4-14.el5' />
<patch name='portmap-4.0-65.2.2.1' />
<patch name='dnsmasq-2.45-1.el5_2.1' />
<patch name='openssh-server-4.3p2-29.el5' />
<patch name='kernel-2.6.18-128.el5' />
<patch name='libnotify-0.4.2-6.el5' />
<patch name='redhat-lsb-3.1-12.3.EL' />
<patch name='libgomp-4.3.2-7.el5' />
<patch name='glibc-headers-2.5-34' />
<patch name='keyutils-libs-devel-1.2-1.el5' />
<patch name='gcc-gfortran-4.1.2-44.el5' />
<patch name='perl-DBD-MySQL-3.0007-2.el5' />
<patch name='gnome-doc-utils-0.8.0-2.fc6' />
<patch name='pygtk2-libglade-2.10.1-12.el5' />
<patch name='samba-3.0.33-3.7.el5' />
<patch name='system-config-language-1.1.18-2.el5' />
<patch name='bind-chroot-9.3.4-10.P1.el5' />
<patch name='xorg-x11-fonts-base-7.1-2.1.el5' />
<patch name='libbonoboui-2.16.0-1.fc6' />
<patch name='gthumb-2.7.8-8.el5' />
<patch name='nautilus-2.16.2-7.el5' />
<patch name='system-config-network-1.3.99.12-1.el5' />
<patch name='xorg-x11-drv-mutouch-1.1.0-3' />
<patch name='libobjc-4.1.2-44.el5' />
<patch name='rpm-build-4.4.2.3-9.el5' />
<patch name='pyparted-1.8.1-4.el5' />
<patch name='scim-anthy-1.2.0-6.el5' />
<patch name='aex-serverinventory-7.0-6022' />
<patch name='Omni-0.9.1-7.1' />
<patch name='Omni-foomatic-0.9.1-7.1' />
<patch name='pilot-link-0.11.8-8' />
<patch name='gnomemeeting-1.0.2-8' />
<patch name='w3c-libwww-5.4.0-10' />
<patch name='kdepim-3.3.1-2.1' />
<patch name='kdegraphics-3.3.1-3.9' />
<patch name='ipv6-1.1-1dkms' />
<patch name='xorg-x11-rhel4_radeon_dell_server-6.8.1-23.DELL.6.EL' />
<patch name='IBMJava2-AMD64-142-SDK-1.4.2-0.0' />
<patch name='elfutils-0.97.1-3' />
<patch name='openssl096b-0.9.6b-22.42' />
<patch name='IBM_db2secl81-8.1.3-136' />
<patch name='IBM_db2adts81-8.1.3-136' />
<patch name='IBM_db2xml81-8.1.3-136' />
<patch name='TeraGSS_redhatlinux-i386-06.02.00.00-1' />
<patch name='npaxsmod-01.05.00.00-1' />
<patch name='plod_x8664_c000-12.00.00.00-1' />
<patch name='fastexp-12.00.00.00-1' />
<patch name='rmt-0.4b41-2.fc6' />
<patch name='libXevie-1.0.1-3.1' />
<patch name='cdparanoia-alpha9.8-27.2' />
<patch name='fbset-2.1-22' />
<patch name='jwhois-3.2.3-8.el5' />
<patch name='libgtop2-2.14.4-3.el5' />
<patch name='netpbm-10.35-6.fc6' />
<patch name='dos2unix-3.1-27.1' />
<patch name='finger-0.17-32.2.1.1' />
<patch name='cyrus-sasl-2.1.22-4' />
<patch name='boost-1.33.1-10.el5' />
<patch name='libXvMC-1.0.2-2.1' />
<patch name='patchutils-0.2.31-2.2.2' />
<patch name='cscope-15.5-15.fc6.1' />
<patch name='libdbi-0.8.1-2.1' />
<patch name='system-config-rootpassword-1.1.9.1-1' />
<patch name='sendmail-cf-8.13.8-2.el5' />
<patch name='valgrind-3.2.1-6.el5' />
<patch name='libtool-1.5.22-6.1' />
<patch name='gnome-netstatus-2.12.0-5.el5' />
<patch name='eog-2.16.0.1-6.el5' />
<patch name='orca-1.0.0-5.el5' />
<patch name='file-roller-2.16.0-2.fc6' />
<patch name='xorg-x11-drv-penmount-1.1.0-2.1' />
<patch name='xorg-x11-drv-elographics-1.1.0-1.1' />
<patch name='xorg-x11-drv-joystick-1.1.0-1.1' />
<patch name='xorg-x11-drv-hyperpen-1.1.0-2' />
<patch name='gtk+-1.2.10-56.el5' />
<patch name='compat-gcc-34-g77-3.4.6-4' />
<patch name='aspell-de-0.50-11.2.2' />
<patch name='anthy-7900-4.el5' />
<patch name='man-pages-de-0.4-11' />
<patch name='xmlsec1-openssl-1.2.9-8.1' />
<patch name='gtkspell-2.0.11-2.1' />
<patch name='kdeutils-3.5.4-5.fc6' />
<patch name='perl-XML-Parser-2.34-6.1.2.2.1' />
<patch name='perl-XML-LibXML-1.58-5' />
<patch name='xchat-2.6.6-8.el5' />
<patch name='cyrus-sasl-md5-2.1.22-4' />
<patch name='unixODBC-kde-2.2.11-7.1' />
<patch name='nash-5.1.19.6-44' />
<patch name='emacs-leim-21.4-20.el5' />
<patch name='zlib-1.2.3-3' />
<patch name='bzip2-libs-1.0.3-4.el5_2' />
<patch name='ncurses-5.5-24.20060715' />
<patch name='libpng-1.2.10-7.1.el5_0.1' />
<patch name='libxml2-2.6.26-2.1.2.7' />
<patch name='tcp_wrappers-7.6-40.6.el5' />
<patch name='libpng-1.2.10-7.1.el5_0.1' />
<patch name='db4-4.3.29-9.fc6' />
<patch name='libvolume_id-095-14.19.el5' />
<patch name='patch-2.5.4-29.2.3.el5' />
<patch name='gzip-1.3.5-10.el5' />
<patch name='libICE-1.0.1-2.1' />
<patch name='slang-2.0.6-4.el5' />
<patch name='iputils-20020927-45.el5' />
<patch name='libXdmcp-1.0.1-2.1' />
<patch name='libIDL-0.8.7-1.fc6' />
<patch name='keyutils-libs-1.2-1.el5' />
<patch name='speex-1.0.5-4.el5_1.1' />
<patch name='mkisofs-2.01-10.7.el5' />
<patch name='acl-2.2.39-3.el5' />
<patch name='ttmkfdir-3.0.9-23.el5' />
<patch name='cdrdao-1.2.1-2' />
<patch name='libart_lgpl-2.3.17-4' />
<patch name='flac-1.1.2-28.el5_0.1' />
<patch name='audiofile-0.2.6-5' />
<patch name='gamin-0.1.7-8.el5' />
<patch name='redhat-menus-6.7.8-3.el5' />
<patch name='libXrandr-1.1.1-3.1' />
<patch name='libXxf86misc-1.0.1-3.1' />
<patch name='libXres-1.0.1-3.1' />
<patch name='perl-HTML-Parser-3.55-1.fc6' />
<patch name='xorg-x11-font-utils-7.1-2' />
<patch name='libXrandr-1.1.1-3.1' />
<patch name='libXpm-3.5.5-3' />
<patch name='cryptsetup-luks-1.0.3-4.el5' />
<patch name='e2fsprogs-libs-1.39-20.el5' />
<patch name='cairo-1.2.4-5.el5' />
<patch name='mesa-libGL-6.5.1-7.7.el5' />
<patch name='libuser-0.54.7-2.el5.5' />
<patch name='bind-libs-9.3.4-10.P1.el5' />
<patch name='yum-metadata-parser-1.1.2-2.el5' />
<patch name='qt-3.3.6-23.el5' />
<patch name='cryptsetup-luks-1.0.3-4.el5' />
<patch name='gphoto2-2.2.0-3.el5' />
<patch name='autofs-5.0.1-0.rc2.102' />
<patch name='fetchmail-6.3.6-1.1.el5' />
<patch name='Xaw3d-1.5E-10.1' />
<patch name='python-urlgrabber-3.1.0-5.el5' />
<patch name='cairo-1.2.4-5.el5' />
<patch name='GConf2-2.14.0-9.el5' />
<patch name='SysVinit-2.86-15.el5' />
<patch name='kbd-1.12-21.el5' />
<patch name='GConf2-2.14.0-9.el5' />
<patch name='samba-common-3.0.33-3.7.el5' />
<patch name='nss_ldap-253-17.el5' />
<patch name='mkinitrd-5.1.19.6-44' />
<patch name='prelink-0.4.0-2.el5' />
<patch name='rpm-libs-4.4.2.3-9.el5' />
<patch name='dbus-libs-1.1.2-12.el5' />
<patch name='dbus-1.1.2-12.el5' />
<patch name='avahi-0.6.16-1.el5' />
<patch name='NetworkManager-glib-0.7.0-3.el5' />
<patch name='kudzu-devel-1.2.57.1.21-1' />
<patch name='perl-BSD-Resource-1.28-1.fc6.1' />
<patch name='diffstat-1.41-1.2.3.el5' />
<patch name='slang-devel-2.0.6-4.el5' />
<patch name='libogg-devel-1.1.3-3.el5' />
<patch name='nss-devel-3.12.2.0-2.el5' />
<patch name='jpackage-utils-1.7.3-1jpp.2.el5' />
<patch name='elfutils-libelf-devel-0.137-3.el5' />
<patch name='mx-2.0.6-2.2.2' />
<patch name='xterm-215-8.el5' />
<patch name='kexec-tools-1.102pre-56.el5' />
<patch name='openjade-1.3.2-27' />
<patch name='libglade2-2.6.0-2' />
<patch name='postgresql-libs-8.1.11-1.el5_1.1' />
<patch name='php-cli-5.1.6-23.el5' />
<patch name='mysql-5.0.45-7.el5' />
<patch name='arts-1.5.4-1' />
<patch name='system-config-samba-1.2.41-3.el5' />
<patch name='bind-9.3.4-10.P1.el5' />
<patch name='avahi-glib-0.6.16-1.el5' />
<patch name='ghostscript-8.15.2-9.4.el5' />
<patch name='gnome-vfs2-2.16.2-4.el5' />
<patch name='libgnomeprint22-2.12.1-10.el5' />
<patch name='gnome-vfs2-2.16.2-4.el5' />
<patch name='gnome-panel-2.16.1-7.el5' />
</ospatches>
```
|
How to hide a id column from displaying in jqGrid table?
|
CC BY-SA 3.0
| 0 |
2011-06-18T11:19:43.267
|
2011-06-20T05:05:26.403
|
2011-06-20T05:05:26.403
| null | null |
[
"jquery",
"jqgrid"
] |
6,395,770 | 1 | 6,395,831 | null | 1 | 2,399 |
I want to upload images from the client to the server. I already managed to do it using gadgets like primefaces. But this time, i want to try to do it on my own i found information on the web on how to do it, but i am kind of stuck.
My current problem is that the browser says to me that the tag that i created for doing the upload, is not bound. I would like to understand, why the application does not find it and how should i fix it.
I will paste all i did till now so you can help me find the mistake:

```
<?xml version="1.0" encoding="UTF-8"?>
<facelet-taglib version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd">
<namespace>http://corejsf.com</namespace>
<tag>
<tag-name>upload</tag-name>
<component>
<component-type>javax.faces.Input</component-type>
<renderer-type>com.corejsf.Upload</renderer-type>
</component>
</tag>
</facelet-taglib>
```

Here is the source:
```
package com.corejsf;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import javax.el.ValueExpression;
import javax.faces.FacesException;
import javax.faces.component.EditableValueHolder;
import javax.faces.component.UIComponent;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
import javax.faces.render.Renderer;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.fileupload.FileItem;
@FacesRenderer(componentFamily="javax.faces.Input",
rendererType="com.corejsf.Upload")
public class UploadRenderer extends Renderer {
public void encodeBegin(FacesContext context, UIComponent component)
throws IOException {
if (!component.isRendered()) return;
ResponseWriter writer = context.getResponseWriter();
String clientId = component.getClientId(context);
writer.startElement("input", component);
writer.writeAttribute("type", "file", "type");
writer.writeAttribute("name", clientId, "clientId");
writer.endElement("input");
writer.flush();
}
public void decode(FacesContext context, UIComponent component) {
ExternalContext external = context.getExternalContext();
HttpServletRequest request = (HttpServletRequest) external.getRequest();
String clientId = component.getClientId(context);
FileItem item = (FileItem) request.getAttribute(clientId);
Object newValue;
ValueExpression valueExpr = component.getValueExpression("value");
if (valueExpr != null) {
Class<?> valueType = valueExpr.getType(context.getELContext());
if (valueType == byte[].class) {
newValue = item.get();
}
else if (valueType == InputStream.class) {
try {
newValue = item.getInputStream();
} catch (IOException ex) {
throw new FacesException(ex);
}
}
else {
String encoding = request.getCharacterEncoding();
if (encoding != null)
try {
newValue = item.getString(encoding);
} catch (UnsupportedEncodingException ex) {
newValue = item.getString();
}
else
newValue = item.getString();
}
((EditableValueHolder) component).setSubmittedValue(newValue);
((EditableValueHolder) component).setValid(true);
}
Object target = component.getAttributes().get("target");
if (target != null) {
File file;
if (target instanceof File)
file = (File) target;
else {
ServletContext servletContext
= (ServletContext) external.getContext();
String realPath = servletContext.getRealPath(target.toString());
file = new File(realPath);
}
try { // ugh--write is declared with "throws Exception"
item.write(file);
} catch (Exception ex) {
throw new FacesException(ex);
}
}
}
}
```

This is its source:
```
package com.corejsf;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
public class UploadFilter implements Filter {
private int sizeThreshold = -1;
private String repositoryPath;
public void init(FilterConfig config) throws ServletException {
repositoryPath = config.getInitParameter(
"com.corejsf.UploadFilter.repositoryPath");
try {
String paramValue = config.getInitParameter(
"com.corejsf.UploadFilter.sizeThreshold");
if (paramValue != null)
sizeThreshold = Integer.parseInt(paramValue);
}
catch (NumberFormatException ex) {
ServletException servletEx = new ServletException();
servletEx.initCause(ex);
throw servletEx;
}
}
public void destroy() {
}
public void doFilter(ServletRequest request,
ServletResponse response, FilterChain chain)
throws IOException, ServletException {
if (!(request instanceof HttpServletRequest)) {
chain.doFilter(request, response);
return;
}
HttpServletRequest httpRequest = (HttpServletRequest) request;
boolean isMultipartContent
= ServletFileUpload.isMultipartContent(httpRequest);
if (!isMultipartContent) {
chain.doFilter(request, response);
return;
}
DiskFileItemFactory factory = new DiskFileItemFactory();
if (sizeThreshold >= 0)
factory.setSizeThreshold(sizeThreshold);
if (repositoryPath != null)
factory.setRepository(new File(repositoryPath));
ServletFileUpload upload = new ServletFileUpload(factory);
try {
@SuppressWarnings("unchecked") List<FileItem> items
= (List<FileItem>) upload.parseRequest(httpRequest);
final Map<String, String[]> map = new HashMap<String, String[]>();
for (FileItem item : items) {
String str = item.getString();
if (item.isFormField())
map.put(item.getFieldName(), new String[] { str });
else
httpRequest.setAttribute(item.getFieldName(), item);
}
chain.doFilter(new
HttpServletRequestWrapper(httpRequest) {
public Map<String, String[]> getParameterMap() {
return map;
}
// busywork follows ... should have been part of the wrapper
public String[] getParameterValues(String name) {
Map<String, String[]> map = getParameterMap();
return (String[]) map.get(name);
}
public String getParameter(String name) {
String[] params = getParameterValues(name);
if (params == null) return null;
return params[0];
}
public Enumeration<String> getParameterNames() {
Map<String, String[]> map = getParameterMap();
return Collections.enumeration(map.keySet());
}
}, response);
} catch (FileUploadException ex) {
ServletException servletEx = new ServletException();
servletEx.initCause(ex);
throw servletEx;
}
}
}
```
```
<!-- NEEDED FOR FILE UPLOAD -->
<filter>
<filter-name>Upload Filter</filter-name>
<filter-class>com.corejsf.UploadFilter</filter-class>
<init-param>
<param-name>sizeThreshold</param-name>
<param-value>1024</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Upload Filter</filter-name>
<url-pattern>/faces/upload/*</url-pattern>
</filter-mapping>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/corejsf.taglib.xml</param-value>
</context-param>
```

```
....
<corejsf:upload target="upload/#{placeAddController.prepareUniqueIdentifier}" />
....
<h:commandButton value="Dalje" style=" font-weight: bold; font-size:150%; action="/submittedImage" />
```
And the java managedbean:
```
@ManagedBean
@RequestScoped
public class PlaceAddControler {
…
public String prepareUniqueIdentifier() {
return UUID.randomUUID().toString()+"png";
}
```
The error i see is when navigating to the page where the new tag is added is this:
```
javax.faces.view.facelets.FaceletException: Error Parsing /oglas.xhtml: Error Traced[line: 183] The prefix "corejsf" for element "corejsf:upload" is not bound.
at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:387)
at com.sun.faces.facelets.compiler.SAXCompiler.doMetadataCompile(SAXCompiler.java:370)
at com.sun.faces.facelets.compiler.Compiler.metadataCompile(Compiler.java:123)
at com.sun.faces.facelets.impl.DefaultFaceletFactory.createMetadataFacelet(DefaultFaceletFactory.java:353)
at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:231)
at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:164)
at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:102)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:239)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:662)
```
-What i am missing?
-What else do i need to do to transfer a file from the client to the serverfile system with an unique fileName, inside the upload folder.
My final goal is not to add this images into the database, just leave them in the file system.
I hope someone can help me.
I added the xmlns, to my page and that fixed the exception:
> xmlns:corejsf="http://corejsf.com"
But why when i click on the button, the file is not uploaded???
|
Trying to create my own image uploader (JSF)
|
CC BY-SA 3.0
| 0 |
2011-06-18T11:47:40.590
|
2015-02-09T10:50:48.133
|
2015-02-09T10:50:48.133
| 157,882 | 614,141 |
[
"jsf",
"file-upload",
"jsf-2",
"facelets",
"tagfile"
] |
6,396,000 | 1 | 6,396,027 | null | 0 | 321 |
the Form
```
<article id="signup-form">
<form id="signupform" method="post" action="signup.php" accept-charset="utf-8">
<label for="email">Email Address</label>
<input type="text" id="email" name="email"/>
<input type="image" src="images/btn_signup.png" value="Sign up" alt="Sign up"/>
</form>
<br />
</article>
```
the Javascript
```
$(document).ready(function () {
$('#signupform').submit(function () {
var email = $('#email').val();
if (email != 0) {
if (isValidEmailAddress(email)) {
$(this).ajaxSubmit(options);
} else {
alert("Please Enter a Valid Email Address");
}
} else {
alert("Please Enter a an Email Address");
}
return false;
});
var options = {
success: showResponse,
dataType: 'json',
resetForm: true
};
function showResponse(responseText, statusText, xhr, $form) {
if (responseText == 'false') {
alert("Please try again. We could not sign you up.");
}
if (responseText == 'true') {
alert("Success");
}
}
});
function isValidEmailAddress(emailAddress) {
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
return pattern.test(emailAddress);
}
```
i get the folowing error and the form submits and goes to the signup.php

|
jQuery Ajax Submit issues
|
CC BY-SA 3.0
| null |
2011-06-18T12:28:37.033
|
2011-06-18T12:33:45.970
| null | null | 155,196 |
[
"forms",
"jquery-plugins",
"jquery"
] |
6,396,005 | 1 | null | null | 0 | 750 |
I have this form:

I managed to search IDs and text, and combobox, now I don't know how to search date?
```
if (txtIDGosta.Text.Length > 0)
{
long id;
if (Int64.TryParse(txtIDGosta.Text, out id))
{
filter = "IDGosta = " + id.ToString();
}
}
```
This is how I search IDs(number)
```
if (txtRacunIzdao.Text.Length > 0)
{
if (!string.IsNullOrEmpty(filter))
filter += " AND ";
filter += "Izdao = " + txtRacunIzdao.Text;
}
```
This is simple txtbox.
```
if (!string.IsNullOrEmpty(cmbTipRacuna.Text))
{
if (filter.Length > 0)
filter += " AND ";
filter += "IDTipRacuna = " + cmbTipRacuna.SelectedValue.ToString();
}
```
This combobox.
How do I code to search date? (look at picture) to write in textbox '1.6.2011.' and to return me all fields with that date?
---
Ok, I tried this and it works:
```
if (txtDatIzd1.Text.Length > 0)
{
filter += " AND ";
filter = "DatumIzdavanja = '1.6.2011'";
}
```
Now I need to change it to read date from txtbox1, but it can't be txtbox1.text, won't read it, because its datatime type in ms access base.
|
c# search date in datagrid thru txtbox
|
CC BY-SA 4.0
| null |
2011-06-18T12:29:02.683
|
2018-06-14T16:07:59.243
|
2018-06-14T16:07:59.243
| 214,143 | 804,491 |
[
"c#"
] |
6,396,016 | 1 | 6,396,032 | null | 6 | 2,503 |
From what I understand:
Add the current node to the closed list.
Find adjacent nodes to the current node, and if they are not unwalkable nodes and not on the closed list, add that node to the open list with the parent being the current node and calculate the F, G and H values. If the node already exists on the open list, check if going to that node through the current node will result in a lower G value - if yes, make the parent node of that node the current node.
Find the node on the open list with the highest F value, and make the current node that node.
Repeat until you end up in your destination, then go through the parents of the destination node, and you will come back to your start node. That will be the best path.
So, this makes sense to my brain, but when I actually try it out on a diagram, I think I'm not understanding it correctly.
(From the picture below) Go down from the starting green tile, the one with a F value of 60. That is on the open list, and has a lower F value than bottom-right 74 one. Why is the 74 one picked instead of the 60?

|
I don't understand A* Pathfinding
|
CC BY-SA 3.0
| 0 |
2011-06-18T12:31:15.973
|
2011-06-18T12:50:17.083
|
2011-06-18T12:33:58.043
| 142,162 | 804,495 |
[
"algorithm",
"path-finding",
"a-star"
] |
6,396,147 | 1 | 6,400,718 | null | 0 | 382 |
I have created a query that uses a decimal as a paramater in SSRS. Code below (`@TrueDemand`) when running this on my local PC, via the Data page the query throws an error of `trying to convert nvarchar to int`.
However when running it in Preview or even publishing the report to the web it runs fine :(

Its very frustrating. Any ideas?
```
SELECT AD.LogDate,
AD.Location,
AD.FunctionDescription as Func,
AD.Offered,
AD.Handled,
AD.Handled + ((AD.Offered - AD.Handled) * @TrueDemand) as TrueDemand,
AD.Handled30,
AG.SignedIn,
AG.Available,
AG.WorkloadSecs,
AG.FullAHTSecs
FROM dbo.vw_ApplicationDetail_Minus15mins AD
INNER JOIN dbo.vw_AgentGroupDetail AG ON
AD.Logdate = AG.Logdate AND
AD.Location = AG.Location AND
AD.FunctionDescription = AG.FunctionDescription
WHERE AD.Logdate between @Logdate AND dateadd(d,1,@Logdate) AND
AD.Location = @Location AND
AD.FunctionDescription = @Function
ORDER BY AD.Logdate
```
|
SSRS reading date type as nvarchar
|
CC BY-SA 3.0
| null |
2011-06-18T12:53:39.227
|
2011-06-19T05:16:17.800
|
2011-06-18T13:00:27.167
| 549,007 | 104,460 |
[
"reporting-services"
] |
6,396,240 | 1 | 6,442,894 | null | 13 | 3,972 |
I am trying to learn about CPU cache performance in the world of .NET. Specifically I am working through Igor Ostovsky's [article about Processor Cache Effects](http://igoro.com/archive/gallery-of-processor-cache-effects/).
I have gone through the first three examples in his article and have recorded results that widely differ from his. I think I must be doing something wrong because the performance on my machine is showing almost the exact opposite results of what he shows in his article. I am not seeing the large effects from cache misses that I would expect.
What am I doing wrong? (bad code, compiler setting, etc.)
Here are the performance results on my machine:



If it helps, the processor on my machine is an Intel Core i7-2630QM. Here is info on my processor's cache:

I have compiled in x64 Release mode.
Below is my source code:
```
class Program
{
static Stopwatch watch = new Stopwatch();
static int[] arr = new int[64 * 1024 * 1024];
static void Main(string[] args)
{
Example1();
Example2();
Example3();
Console.ReadLine();
}
static void Example1()
{
Console.WriteLine("Example 1:");
// Loop 1
watch.Restart();
for (int i = 0; i < arr.Length; i++) arr[i] *= 3;
watch.Stop();
Console.WriteLine(" Loop 1: " + watch.ElapsedMilliseconds.ToString() + " ms");
// Loop 2
watch.Restart();
for (int i = 0; i < arr.Length; i += 32) arr[i] *= 3;
watch.Stop();
Console.WriteLine(" Loop 2: " + watch.ElapsedMilliseconds.ToString() + " ms");
Console.WriteLine();
}
static void Example2()
{
Console.WriteLine("Example 2:");
for (int k = 1; k <= 1024; k *= 2)
{
watch.Restart();
for (int i = 0; i < arr.Length; i += k) arr[i] *= 3;
watch.Stop();
Console.WriteLine(" K = "+ k + ": " + watch.ElapsedMilliseconds.ToString() + " ms");
}
Console.WriteLine();
}
static void Example3()
{
Console.WriteLine("Example 3:");
for (int k = 1; k <= 1024*1024; k *= 2)
{
//256* 4bytes per 32 bit int * k = k Kilobytes
arr = new int[256*k];
int steps = 64 * 1024 * 1024; // Arbitrary number of steps
int lengthMod = arr.Length - 1;
watch.Restart();
for (int i = 0; i < steps; i++)
{
arr[(i * 16) & lengthMod]++; // (x & lengthMod) is equal to (x % arr.Length)
}
watch.Stop();
Console.WriteLine(" Array size = " + arr.Length * 4 + " bytes: " + (int)(watch.Elapsed.TotalMilliseconds * 1000000.0 / arr.Length) + " nanoseconds per element");
}
Console.WriteLine();
}
}
```
|
Performance when Generating CPU Cache Misses
|
CC BY-SA 3.0
| 0 |
2011-06-18T13:11:40.560
|
2011-06-22T15:57:17.530
| null | null | 716,285 |
[
"c#",
".net",
"arrays",
"performance",
"cpu-cache"
] |
6,396,196 | 1 | 6,397,159 | null | 2 | 5,140 |
I would like to upload images onto a folder inside the server.
For some reason i cant. I don't understand why my filter is not being triggered.And why the file does not get uploaded. Could someone have a look at my code and help me find the reason why the files don't get uploaded?
I will paste all i did till now so you can help me find the mistake:

```
<?xml version="1.0" encoding="UTF-8"?>
<facelet-taglib version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd">
<namespace>http://corejsf.com</namespace>
<tag>
<tag-name>upload</tag-name>
<component>
<component-type>javax.faces.Input</component-type>
<renderer-type>com.corejsf.Upload</renderer-type>
</component>
</tag>
</facelet-taglib>
```

Here is the source:
```
package com.corejsf;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import javax.el.ValueExpression;
import javax.faces.FacesException;
import javax.faces.component.EditableValueHolder;
import javax.faces.component.UIComponent;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
import javax.faces.render.Renderer;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.fileupload.FileItem;
@FacesRenderer(componentFamily="javax.faces.Input",
rendererType="com.corejsf.Upload")
public class UploadRenderer extends Renderer {
public void encodeBegin(FacesContext context, UIComponent component)
throws IOException {
if (!component.isRendered()) return;
ResponseWriter writer = context.getResponseWriter();
String clientId = component.getClientId(context);
writer.startElement("input", component);
writer.writeAttribute("type", "file", "type");
writer.writeAttribute("name", clientId, "clientId");
writer.endElement("input");
writer.flush();
}
public void decode(FacesContext context, UIComponent component) {
ExternalContext external = context.getExternalContext();
HttpServletRequest request = (HttpServletRequest) external.getRequest();
String clientId = component.getClientId(context);
FileItem item = (FileItem) request.getAttribute(clientId);
Object newValue;
ValueExpression valueExpr = component.getValueExpression("value");
if (valueExpr != null) {
Class<?> valueType = valueExpr.getType(context.getELContext());
if (valueType == byte[].class) {
newValue = item.get();
}
else if (valueType == InputStream.class) {
try {
newValue = item.getInputStream();
} catch (IOException ex) {
throw new FacesException(ex);
}
}
else {
String encoding = request.getCharacterEncoding();
if (encoding != null)
try {
newValue = item.getString(encoding);
} catch (UnsupportedEncodingException ex) {
newValue = item.getString();
}
else
newValue = item.getString();
}
((EditableValueHolder) component).setSubmittedValue(newValue);
((EditableValueHolder) component).setValid(true);
}
Object target = component.getAttributes().get("target");
if (target != null) {
File file;
if (target instanceof File)
file = (File) target;
else {
ServletContext servletContext
= (ServletContext) external.getContext();
String realPath = servletContext.getRealPath(target.toString());
file = new File(realPath);
}
try { // ugh--write is declared with "throws Exception"
item.write(file);
} catch (Exception ex) {
throw new FacesException(ex);
}
}
}
}
```

This is its source:
```
package com.corejsf;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
public class UploadFilter implements Filter {
private int sizeThreshold = -1;
private String repositoryPath;
public void init(FilterConfig config) throws ServletException {
repositoryPath = config.getInitParameter(
"com.corejsf.UploadFilter.repositoryPath");
try {
String paramValue = config.getInitParameter(
"com.corejsf.UploadFilter.sizeThreshold");
if (paramValue != null)
sizeThreshold = Integer.parseInt(paramValue);
}
catch (NumberFormatException ex) {
ServletException servletEx = new ServletException();
servletEx.initCause(ex);
throw servletEx;
}
}
public void destroy() {
}
public void doFilter(ServletRequest request,
ServletResponse response, FilterChain chain)
throws IOException, ServletException {
if (!(request instanceof HttpServletRequest)) {
chain.doFilter(request, response);
return;
}
HttpServletRequest httpRequest = (HttpServletRequest) request;
boolean isMultipartContent
= ServletFileUpload.isMultipartContent(httpRequest);
if (!isMultipartContent) {
chain.doFilter(request, response);
return;
}
DiskFileItemFactory factory = new DiskFileItemFactory();
if (sizeThreshold >= 0)
factory.setSizeThreshold(sizeThreshold);
if (repositoryPath != null)
factory.setRepository(new File(repositoryPath));
ServletFileUpload upload = new ServletFileUpload(factory);
try {
@SuppressWarnings("unchecked") List<FileItem> items
= (List<FileItem>) upload.parseRequest(httpRequest);
final Map<String, String[]> map = new HashMap<String, String[]>();
for (FileItem item : items) {
String str = item.getString();
if (item.isFormField())
map.put(item.getFieldName(), new String[] { str });
else
httpRequest.setAttribute(item.getFieldName(), item);
}
chain.doFilter(new
HttpServletRequestWrapper(httpRequest) {
public Map<String, String[]> getParameterMap() {
return map;
}
// busywork follows ... should have been part of the wrapper
public String[] getParameterValues(String name) {
Map<String, String[]> map = getParameterMap();
return (String[]) map.get(name);
}
public String getParameter(String name) {
String[] params = getParameterValues(name);
if (params == null) return null;
return params[0];
}
public Enumeration<String> getParameterNames() {
Map<String, String[]> map = getParameterMap();
return Collections.enumeration(map.keySet());
}
}, response);
} catch (FileUploadException ex) {
ServletException servletEx = new ServletException();
servletEx.initCause(ex);
throw servletEx;
}
}
}
```
```
<!-- NEEDED FOR FILE UPLOAD -->
<filter>
<filter-name>Upload Filter</filter-name>
<filter-class>com.corejsf.UploadFilter</filter-class>
<init-param>
<param-name>sizeThreshold</param-name>
<param-value>1024</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Upload Filter</filter-name>
<url-pattern>/faces/upload/*</url-pattern>
</filter-mapping>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/corejsf.taglib.xml</param-value>
</context-param>
```

```
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:corejsf="http://corejsf.com">
....
<h:form enctype="multipart/form-data">
<corejsf:upload target="upload/#{placeAddController.prepareUniqueIdentifier}" />
....
<h:commandButton value="Dalje" style=" font-weight: bold; font-size:150%; action="/submittedImage" />
...
</h:form>
```
And the java managedbean:
```
@ManagedBean
@RequestScoped
public class PlaceAddControler {
…
public String prepareUniqueIdentifier() {
return UUID.randomUUID().toString()+"png";
}
```
-All seems ok, but something is missing or wrong.
What do you think, why is not uploading?
|
Uploading images from client to server ussing a JSF custom tag
|
CC BY-SA 3.0
| 0 |
2011-06-18T13:02:32.733
|
2015-02-09T10:48:34.300
|
2015-02-09T10:48:34.300
| 157,882 | 614,141 |
[
"jsf",
"file-upload",
"jsf-2",
"facelets",
"tagfile"
] |
6,396,396 | 1 | 6,402,077 | null | 3 | 722 |
I have installed Node.js on Windows (binary here [http://node-js.prcn.co.cc/](http://node-js.prcn.co.cc/) ) and can successfully create an HTTP server in console.
Now I have put same instructions in helloworld.js script in bin directory and run with dos prompt
```
node helloworld.js
```
and it cannot find in /usr/bin. So I put it under Node.js install directory in usr/bin but same message. I finally tried c:/usr/bin but still failed.
So where should I put my script it on windows ?
screencopy of error

|
Node.js cannot find /usr/bin/helloworld.js on windows
|
CC BY-SA 3.0
| null |
2011-06-18T13:36:49.627
|
2011-06-19T11:25:13.517
|
2011-06-18T21:36:20.140
| 310,291 | 310,291 |
[
"javascript",
"windows",
"node.js"
] |
6,396,477 | 1 | 6,396,608 | null | 7 | 8,221 |
Can anyone advise me on how I can add a "plus" button in a UITableView Cell like what you see in the screen shot below?

|
Objective C: How to add "plus" button in cell
|
CC BY-SA 3.0
| 0 |
2011-06-18T13:49:06.320
|
2011-11-17T13:25:54.660
| null | null | 683,898 |
[
"objective-c",
"ios",
"uitableview",
"uibutton"
] |
6,396,486 | 1 | 6,405,969 | null | 3 | 1,747 |
I have some hebrew text stored in database. When I fetch & render it in UIWebview after applying some css (setting the background color and margin for the page) the text comes up fine but the problem is that If I right align the content in webview then the Hebrew content gets right aligned but actually it is not the way it is supposed to be. I mean the way RTL text should have shown. The as shown in image below. I know that right aligning the text will not show it the way RTL text should be
Its not a [duplicate](https://stackoverflow.com/questions/3856158/uiwebview-localization) and I have gone through the steps mentioned there but still no go.

I hope if someone can help me to shown the text in correct way . I can add the CSS snippet if required. Please comment if any supporting code or image is required
|
Problem in rendering Hebrew text in UIWebview
|
CC BY-SA 3.0
| 0 |
2011-06-18T13:51:12.077
|
2014-01-03T09:29:32.363
|
2017-05-23T11:46:12.973
| -1 | 438,658 |
[
"iphone",
"html",
"css",
"uiwebview",
"hebrew"
] |
6,396,491 | 1 | null | null | 0 | 93 |
My table is centering its contents right in the vertical-middle of it. I didn't apply any stylesheets to it, but: `border="0" cellspacing="0" cellpadding="0"`.
At this moment it's like this:

Though I want it like this:

The X's do not represent simple text! In my case they're other tables inside one single table: The black box is a table. The blue and green boxes are table cells and the red Xes are also tables. One table in the blue - and one table in the green cell.
Do you have any advice for me?
|
Table centers content in cell - I want the opposite
|
CC BY-SA 3.0
| null |
2011-06-18T13:52:23.440
|
2017-07-10T17:42:18.487
|
2017-07-10T17:42:18.487
| 4,370,109 | 715,888 |
[
"html",
"cell",
"center",
"css-tables"
] |
6,396,554 | 1 | 6,396,596 | null | 5 | 4,742 |
Can anyone advise me on how I can create a border around photos (like what you see in the screen shot below)? It seems like there is a thin grey border and a drop shadow at the back.
Appreciate any advise here.

|
Objective C: How to create border effect around photos
|
CC BY-SA 3.0
| 0 |
2011-06-18T14:02:38.320
|
2011-06-18T14:14:11.570
| null | null | 683,898 |
[
"objective-c",
"ios",
"uiimage"
] |
6,396,567 | 1 | 6,396,638 | null | 5 | 10,596 |
In my application, I require a loading screen for many of my pages.
How can I create a similar loading effect as seen in the screenshot below?

|
Objective C: Adding Loading View to View Controllers
|
CC BY-SA 3.0
| 0 |
2011-06-18T14:05:40.410
|
2015-10-05T13:37:24.633
| null | null | 683,898 |
[
"objective-c",
"ios",
"uiview",
"load"
] |
6,396,579 | 1 | 6,397,867 | null | 0 | 367 |
I'm trying to do something very simple:
1) Draw a UIImage into a CG bitmap context
2) Get a pointer to the data of the image
3) iterate over all pixels and just set all R G B components to 0 and alpha to 255. The result should appear pure black.
---

---

---
But the for-loops went over EVERY single pixel. The counter proves it: Console reports modifiedPixels = 8000 which is exactly 200 x 40 pixels. It looks always exactly the same.

Note: The PNG image I use has no alpha < 255. So no transparent pixels.
---
```
int bitmapBytesPerRow = (width * 4);
int bitmapByteCount = (bitmapBytesPerRow * imageHeight);
colorSpace = CGColorSpaceCreateDeviceRGB();
bitmapData = malloc(bitmapByteCount);
bitmapContext = CGBitmapContextCreate(bitmapData,
width,
height,
8, // bits per component
bitmapBytesPerRow,
colorSpace,
CGImageAlphaPremultipliedFirst);
```
---
`bitmapContext`
```
void *data = CGBitmapContextGetData(bitmapContext);
```
---
```
size_t bytesPerRow = CGImageGetBytesPerRow(img);
NSInteger modifiedPixels = 0;
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
long int offset = bytesPerRow * y + 4 * x;
// ARGB
unsigned char alpha = data[offset];
unsigned char red = data[offset+1];
unsigned char green = data[offset+2];
unsigned char blue = data[offset+3];
data[offset] = 255;
data[offset+1] = 0;
data[offset+2] = 0;
data[offset+3] = 0;
modifiedPixels++;
}
}
```
---
```
CGImageRef imageRef = CGBitmapContextCreateImage(bitmapContext);
UIImage *img = [[UIImage alloc] initWithCGImage:imageRef];
```
---
# Question:
What am I doing wrong?
Is this happening because I modify the data while iterating over it? Must I duplicate it?
|
Why am I getting these weird results when editing the image?
|
CC BY-SA 3.0
| null |
2011-06-18T14:08:49.073
|
2011-06-18T18:01:02.700
|
2011-06-18T17:01:11.167
| 472,300 | 472,300 |
[
"iphone",
"ios",
"ipad",
"memory-management",
"core-graphics"
] |
6,396,571 | 1 | 10,438,954 | null | 5 | 2,584 |
- This character - `’` - seems to be breaking it. If I use a 'regular' apostrophe (`'`) it appears to work fine, if I replace every snazzy apostrophe in it with a regular one, it submits just fine. So, next question: does that fancy apostrophe break CodeIgniter or PHP? I will presume this is a CI bug, but please correct me if I'm wrong. Anyway, here's the question I originally posted, I would still appreciate some insight into why this is happening and if there's much I can do about it:
---
I'm tearing my hair out over this one. This is completely bizarre and I simply cannot work it out.
Firstly, I have a basic form:
```
<?php $attributes = array('class' => 'form1'); $selected="";
echo form_open('admin/edit_page/'.$page->row('id'), $attributes); ?>
<div>
<?php echo form_error('title'); ?>
<label>Page Title:</label><input type="text" maxlength="100" name="title" value="<?php echo $page->row('title');?>" />
</div>
<div class="textarea">
<?php echo form_error('content'); ?>
<label>Page Content:</label><textarea name="content"><?php echo $page->row('content');?></textarea>
</div>
<div class="no">
<input type="submit" value="Submit"/>
</div>
</form>
```
Next, I have the corresponding CI function:
```
function edit_page($id)
{
$this->form_validation->set_rules('title', 'Title', 'trim|required|max_length[50]');
$this->form_validation->set_rules('content', 'Content', 'trim|required');
// If validation has failed...
if ($this->form_validation->run() == FALSE)
{
$data['page'] = $this->gallery_model->get_page($id);
$this->load->view('admin/header');
$this->load->view('admin/editpage', $data);
$this->load->view('admin/footer');
}
else // Validation successful
{
$title = $this->input->post('title');
$content = $this->input->post('content');
$this->gallery_model->edit_page($id, $title, $content);
redirect('admin');
}
}
```
All OK so far, yes? Here's where the crazy problem begins.
- - - [http://jeremywebbphotography.com/biog.php](http://jeremywebbphotography.com/biog.php)- - `edit_page``die("Content is ".$_POST['content']);`- `title`-
WTF is going on?!
Things I have confirmed it is not:
- - - - - `htmlspecialchars``htmlentities`
Thanks for your help. To clarify, here's a screenshot of how I'm copy-pasting it:

(Nothing complex there, right?) - and finally, a quick screenshot of the actual page output after submission (sorry about the CSS wonks, I'm working on it):

|
PHP/CodeIgniter - $_POST data totally disappears on form submission in bizarre circumstances
|
CC BY-SA 3.0
| 0 |
2011-06-18T14:06:06.197
|
2012-05-03T20:35:45.300
|
2012-05-03T20:21:25.113
| 21,234 | 257,796 |
[
"php",
"codeigniter",
"post"
] |
6,396,880 | 1 | 6,396,978 | null | 11 | 1,463 |

Let's say I type
```
a = [1, 2]
```
in a .py file in vim and when I type "a." and hit TAB, I would like to get suggestion menu that is related to lists.
Edit 1 in response to Robin's comment:
I think it's possible in vim, because there is a plugin that checks if a given python code is a valid code (I don't know what the plugin is called). Take a look:

|
How do I get auto-suggestions for array options when typing in Vim?
|
CC BY-SA 3.0
| 0 |
2011-06-18T15:05:32.143
|
2011-06-18T17:41:01.137
|
2011-06-18T15:26:21.650
| null | null |
[
"python",
"vim",
"autocomplete",
"intellisense"
] |
6,397,234 | 1 | 6,397,305 | null | 18 | 44,823 |
I want to obtain a Matlab figure using the `bar` function but when the actual figure is plotted instead of displaying the numbers underneath each bar I want to display which represents that actual value plotted.
For example I am having the vector `x = [1 2 3]` and instead of showing 1, 2 and 3 beneath each plotted bar, I want to display a string corresponding to one of these values `y = {'sam'; 'alan'; 'ellie'}`

Could you please explain how could I obtain this?
|
Matlab - How to use strings instead of numbers in bar figure
|
CC BY-SA 3.0
| 0 |
2011-06-18T16:08:32.393
|
2014-06-18T14:56:01.373
|
2014-06-18T14:56:01.373
| 2,982,225 | 442,124 |
[
"matlab",
"plot",
"label",
"bar-chart"
] |
6,397,298 | 1 | 6,397,322 | null | 4 | 21,392 |
What is Activity base class: java.lang.Object or android.content.Context?
The class overview is not clear to me (see the image please).

|
Activity base class?
|
CC BY-SA 3.0
| 0 |
2011-06-18T16:21:00.580
|
2022-01-12T01:30:22.633
| null | null | 437,039 |
[
"android"
] |
6,397,342 | 1 | 6,397,676 | null | 3 | 9,798 |
I have a requirement to write a daemon based java process (Not web based) that will connect to an Oracle 10G database, read some data from it and then connect to a SQL Server database and write the data to a table.
Sounds simple enough but i have a couple of queries about this.
- i will need to have two jdbc drivers, i.e. one for connecting to the Oracle database and the other for connecting to the sql server database. The sql server jdbc driver is the jtds jdbc driver ([http://jtds.sourceforge.net/](http://jtds.sourceforge.net/)) and for Oracle i will be using the standard oracle jdbc driver. Am i likely to come across any problems with both drivers available in the classpath together? - My guess is that all i need is a ConnectionManager class to manage the connections and a client DAO class that would call the relevant method to get the connection it needs depending on whether it is reading from Oracle or writing to SQL Server. Is this a reasonable approach or is there a better design/pattern for this?
## EDIT
Ok i have tried to put together a quick design solution. See image below

The problem i think i am having is how to commit. Here is the flow of processing
- - -
InvoiceBD commits the Oracle connection.
InvoiceBD commits the SQL Server connection.
Or if something goes wrong both connection objects are rolled back.
Does that sound about right?
Thanks
|
connecting to multiple databases using different jdbc drivers
|
CC BY-SA 3.0
| 0 |
2011-06-18T16:28:01.417
|
2011-06-18T21:29:34.053
|
2017-02-08T14:32:30.647
| -1 | 273,657 |
[
"java",
"sql-server",
"oracle",
"jdbc",
"jtds"
] |
6,397,441 | 1 | null | null | 0 | 146 |
I have SegmentedController and box. i use core animation layer (View Effects Inspector) for change color user interface and set shadow for some objects...Sometimes when i build and ran my app i have a trouble like this

How i may fix order SegmentedController and Box?
|
Order objects in window with core-animation
|
CC BY-SA 3.0
| null |
2011-06-18T16:46:54.713
|
2011-06-25T10:58:39.790
| null | null | 775,083 |
[
"xcode",
"cocoa",
"core-animation"
] |
6,397,469 | 1 | 6,397,588 | null | 0 | 504 |
How can i access google my maps of respective users ( using google account ) from android using API ,
just like the goole map application on android is doing by clicking
example

|
access My Maps in android using apis
|
CC BY-SA 3.0
| null |
2011-06-18T16:50:45.677
|
2011-06-18T17:12:57.327
| null | null | 405,383 |
[
"android",
"google-maps",
"google-maps-api-3"
] |
6,397,641 | 1 | 6,486,793 | null | 13 | 7,653 |
I'm trying to implement algoritm to convert Directed Acyclic Graph to Tree (for fun, learining, kata, name it). So I come up with the data structure Node:

```
/// <summary>
/// Represeting a node in DAG or Tree
/// </summary>
/// <typeparam name="T">Value of the node</typeparam>
public class Node<T>
{
/// <summary>
/// creats a node with no child nodes
/// </summary>
/// <param name="value">Value of the node</param>
public Node(T value)
{
Value = value;
ChildNodes = new List<Node<T>>();
}
/// <summary>
/// Creates a node with given value and copy the collection of child nodes
/// </summary>
/// <param name="value">value of the node</param>
/// <param name="childNodes">collection of child nodes</param>
public Node(T value, IEnumerable<Node<T>> childNodes)
{
if (childNodes == null)
{
throw new ArgumentNullException("childNodes");
}
ChildNodes = new List<Node<T>>(childNodes);
Value = value;
}
/// <summary>
/// Determines if the node has any child node
/// </summary>
/// <returns>true if has any</returns>
public bool HasChildNodes
{
get { return this.ChildNodes.Count != 0; }
}
/// <summary>
/// Travearse the Graph recursively
/// </summary>
/// <param name="root">root node</param>
/// <param name="visitor">visitor for each node</param>
public void Traverse(Node<T> root, Action<Node<T>> visitor)
{
if (root == null)
{
throw new ArgumentNullException("root");
}
if (visitor == null)
{
throw new ArgumentNullException("visitor");
}
visitor(root);
foreach (var node in root.ChildNodes)
{
Traverse(node, visitor);
}
}
/// <summary>
/// Value of the node
/// </summary>
public T Value { get; private set; }
/// <summary>
/// List of all child nodes
/// </summary>
public List<Node<T>> ChildNodes { get; private set; }
}
```
It's pretty straightforward. Methods:
```
/// <summary>
/// Helper class for Node
/// </summary>
/// <typeparam name="T">Value of a node</typeparam>
public static class NodeHelper
{
/// <summary>
/// Converts Directed Acyclic Graph to Tree data structure using recursion.
/// </summary>
/// <param name="root">root of DAG</param>
/// <param name="seenNodes">keep track of child elements to find multiple connections (f.e. A connects with B and C and B also connects with C)</param>
/// <returns>root node of the tree</returns>
public static Node<T> DAG2TreeRec<T>(this Node<T> root, HashSet<Node<T>> seenNodes)
{
if (root == null)
{
throw new ArgumentNullException("root");
}
if (seenNodes == null)
{
throw new ArgumentNullException("seenNodes");
}
var length = root.ChildNodes.Count;
for (int i = 0; i < length; ++i)
{
var node = root.ChildNodes[i];
if (seenNodes.Contains(node))
{
var nodeClone = new Node<T>(node.Value, node.ChildNodes);
node = nodeClone;
}
else
{
seenNodes.Add(node);
}
DAG2TreeRec(node, seenNodes);
}
return root;
}
/// <summary>
/// Converts Directed Acyclic Graph to Tree data structure using explicite stack.
/// </summary>
/// <param name="root">root of DAG</param>
/// <param name="seenNodes">keep track of child elements to find multiple connections (f.e. A connects with B and C and B also connects with C)</param>
/// <returns>root node of the tree</returns>
public static Node<T> DAG2Tree<T>(this Node<T> root, HashSet<Node<T>> seenNodes)
{
if (root == null)
{
throw new ArgumentNullException("root");
}
if (seenNodes == null)
{
throw new ArgumentNullException("seenNodes");
}
var stack = new Stack<Node<T>>();
stack.Push(root);
while (stack.Count > 0)
{
var tempNode = stack.Pop();
var length = tempNode.ChildNodes.Count;
for (int i = 0; i < length; ++i)
{
var node = tempNode.ChildNodes[i];
if (seenNodes.Contains(node))
{
var nodeClone = new Node<T>(node.Value, node.ChildNodes);
node = nodeClone;
}
else
{
seenNodes.Add(node);
}
stack.Push(node);
}
}
return root;
}
}
```
and test:
```
static void Main(string[] args)
{
// Jitter preheat
Dag2TreeTest();
Dag2TreeRecTest();
Console.WriteLine("Running time ");
Dag2TreeTest();
Dag2TreeRecTest();
Console.ReadKey();
}
public static void Dag2TreeTest()
{
HashSet<Node<int>> hashSet = new HashSet<Node<int>>();
Node<int> root = BulidDummyDAG();
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
var treeNode = root.DAG2Tree<int>(hashSet);
stopwatch.Stop();
Console.WriteLine(string.Format("Dag 2 Tree = {0}ms",stopwatch.ElapsedMilliseconds));
}
private static Node<int> BulidDummyDAG()
{
Node<int> node2 = new Node<int>(2);
Node<int> node4 = new Node<int>(4);
Node<int> node3 = new Node<int>(3);
Node<int> node5 = new Node<int>(5);
Node<int> node6 = new Node<int>(6);
Node<int> node7 = new Node<int>(7);
Node<int> node8 = new Node<int>(8);
Node<int> node9 = new Node<int>(9);
Node<int> node10 = new Node<int>(10);
Node<int> root = new Node<int>(1);
//making DAG
root.ChildNodes.Add(node2);
root.ChildNodes.Add(node3);
node3.ChildNodes.Add(node2);
node3.ChildNodes.Add(node4);
root.ChildNodes.Add(node5);
node4.ChildNodes.Add(node6);
node4.ChildNodes.Add(node7);
node5.ChildNodes.Add(node8);
node2.ChildNodes.Add(node9);
node9.ChildNodes.Add(node8);
node9.ChildNodes.Add(node10);
var length = 10000;
Node<int> tempRoot = node10;
for (int i = 0; i < length; i++)
{
var nextChildNode = new Node<int>(11 + i);
tempRoot.ChildNodes.Add(nextChildNode);
tempRoot = nextChildNode;
}
return root;
}
public static void Dag2TreeRecTest()
{
HashSet<Node<int>> hashSet = new HashSet<Node<int>>();
Node<int> root = BulidDummyDAG();
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
var treeNode = root.DAG2TreeRec<int>(hashSet);
stopwatch.Stop();
Console.WriteLine(string.Format("Dag 2 Tree Rec = {0}ms",stopwatch.ElapsedMilliseconds));
}
```
What is more, data structure need some improvment:
- - -
Also, before the conversion there are certian thigs that need to be checked:
- - - -
All in all, it narrows down to a few questions:
Since this is a recurion it's possible to blow up the stack. I can add stack to memorize it. If I do continuation-passing style, will I be more efficient?
I feel that immutable data structure in this case would be better. Is it correct?
Is Childs the right name ? :)
|
Converting Directed Acyclic Graph (DAG) to tree
|
CC BY-SA 3.0
| 0 |
2011-06-18T17:23:43.073
|
2013-06-16T15:47:19.017
|
2013-06-16T15:47:19.017
| 336,186 | 336,186 |
[
"c#",
"data-structures",
"recursion",
"tree",
"directed-acyclic-graphs"
] |
6,397,756 | 1 | null | null | -1 | 171 |
I mean the round expansion button that is used for example in the Task Dialog on Vista.
See this image from the MFC documentation of CTaskDialog.

|
How can i create an Vista like expansion button with MFC?
|
CC BY-SA 3.0
| null |
2011-06-18T17:42:31.340
|
2011-06-21T15:20:41.393
|
2011-06-18T17:52:32.997
| 155,082 | 155,082 |
[
"user-interface",
"mfc",
"windows-vista"
] |
6,397,903 | 1 | 6,402,419 | null | 2 | 1,002 |
We are selling ready made packs ( total weight 18 kg ) which is include several food products. But we want to make a special thing to our customers which they should make their packs by selecting our product range.
So that, they should make first a base pack with selected products then they can multiply this package in the checkout section.
What I want to do, modify the checkout section of magento to multiply selected products with a text field and calculate total amount by button.
Like in image...

Does anybody help me to make such a thing?
|
Increase product amount in shopping cart
|
CC BY-SA 3.0
| null |
2011-06-18T18:06:42.643
|
2011-06-19T12:43:31.370
| null | null | 147,437 |
[
"magento"
] |
6,397,906 | 1 | 6,397,942 | null | 3 | 10,326 |
I'm trying to write some sort of forum homepage, based off work someone else did. Here's what I've got so far:
# Forums
```
<?php
$crumbs = explode(",", $user['data']['depts']);
foreach ($crumbs as &$value) {
$data = $db->query("SELECT * FROM tbl_depts WHERE id = '" . $value . "'");
$crumb = $data->fetch_assoc();
$data = $db->query("SELECT * FROM tbl_forums WHERE deptid = '" . $value . "'");
$forumcount = $data->num_rows;
$forum = $data->fetch_assoc();
?>
<div class="h3top"><?php echo $crumb['name']; ?></div>
<div class="info2alt">
<?php
while (($row = $data->fetch_array()) !== FALSE) {
$forum[] = $row;
}
foreach ($forum as $row) {
if ($forumcount >= 1) {
if ($forum['lastpost'] == "") {
$forum['lastpost'] = "--";
}
?>
<div class="info4">
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td width="55%" align="left" valign="middle" class="zebraodd"><a href="/forums/viewforum?id=<?php echo $forum['fid']; ?>"><?php echo $row['name']; ?></a></td>
<td width="10%">Threads: <?php echo $forum['threadcount']; ?><br />Posts: <?php echo $forum['postcount']; ?></td>
<td width="35%">Last Post: <?php echo $forum['lastpost']; ?></td>
</tr>
</table>
</div>
<?php
}
?>
<?php if ($forumcount >= 1) { ?>
<div class="info3bottom"></div>
<?php
}
}
?>
</div>
<?php
}
?>
```
This is the current data in the table:

Now, when I try to use this code, I get this:, such that the first one is shown so many times, however, the next one does not appear.
How do I fix this?
|
Using foreach to display results
|
CC BY-SA 3.0
| null |
2011-06-18T18:07:08.150
|
2011-06-18T18:51:52.783
|
2011-06-18T18:47:00.750
| 114,865 | 114,865 |
[
"php",
"mysql",
"foreach"
] |
6,397,915 | 1 | 6,397,985 | null | 0 | 3,885 |
This is slide from class at my University, it about Pattern-Matching Algotithm..

And I try to code it in Java below;
```
// Get values for both the text T1,T2 ... Tn and the pattern P1 P2 ... Pm
String[] T = {"Java", "is", "too", "delicious", ", Dr.Java", "is", "confrim!"};
String[] P = { "is", "too"};
// Get values for n and m, the size of the text and the pattern, respectively
int n = T.length;
int m = P.length;
// Set k1 the starting location for the attempted match, to 1
int k = 0;
// While(k<=(n-m+1))do
while (k <= (n - m + 1) - 1) {
// Set the value of i to 1
int i = 0;
// Set the value of Mismatch NO
boolean Mismatch = true; // Not found (true - NO)
// While both (i<=m) and (Mismatch = NO) do
while ((i <= m - 1) && (Mismatch)) { // if Not found (true - NO)
// if Pi != Tk+(i-1) then
if (P[i].equals(T[k])) { // if Found(true)
// Set Mismatch to YES
Mismatch = false; // Found (false - YES)
// Else
} else {
// Increment i by 1 (to move to the next character)
i = i + 1;
}
// End of the loop
}
// If mismatch = NO then
if (!Mismatch) { // if Found (false - YES)
// Print the message 'There is a match at position'
System.out.print("There is a match at position ");
// Print the value of k
System.out.println(k);
}
// Increment k by 1
k = k + 1;
// Enf of the loop
}
// Stop, we are finished
```
But I have a question! why in pseudo code version, check if P not equal T ? I think it would rather to be check if P equal T (How it difference with my version? , sorry for my terrible English)
|
Pattern-Matching Algorithm
|
CC BY-SA 3.0
| null |
2011-06-18T18:08:31.927
|
2011-06-18T18:49:58.090
|
2011-06-18T18:49:58.090
| 634,025 | 513,295 |
[
"java",
"algorithm"
] |
6,398,152 | 1 | 6,398,165 | null | 5 | 382 |
What does it mean by the suggestion give by the IDE? (using VS 2010)

There is no constructor of baseClass_2 which takes the suggested parameter(). So, why this is showing up?
|
Why does IntelliSense show a constructor I didn't write?
|
CC BY-SA 3.0
| null |
2011-06-18T18:49:03.683
|
2011-06-18T19:09:22.867
|
2011-06-18T19:09:22.867
| 500,104 | 689,991 |
[
"c++",
"visual-studio-2010",
"intellisense"
] |
6,398,166 | 1 | 6,398,868 | null | 0 | 367 |
I'm trying to use a custom `::selection` effect in Chrome but getting this bad blue coloration on highlighted text:

Here's my CSS:
```
::selection {
color:#ffffff;
background: #000000;
}
::-moz-selection {
color:#ffffff;
background: #000000;
}
::-webkit-selection {
color:#ffffff;
background: #000000;
}
```
I can't replicate the error in Firefox - is there anything I can do, or is it just a feature of the browser?
|
Ugly ::selection two-color background
|
CC BY-SA 3.0
| null |
2011-06-18T18:51:04.220
|
2011-06-18T20:57:45.120
|
2011-06-18T20:54:29.740
| 329,700 | 329,700 |
[
"google-chrome",
"css",
"selection"
] |
6,398,344 | 1 | 6,398,378 | null | 1 | 933 |
I am trying to create a jQuery powered popup block which users can compose a new message. I can most likely figure out the HTML/CSS to design and scale it... but does anybody have a solution for actually creating the popup?
Below is a Dribbble shot which is very close to what I'm trying to create:

|
How to Create a jQuery New Message Popup Dialog
|
CC BY-SA 3.0
| null |
2011-06-18T19:22:26.607
|
2011-06-18T19:28:15.313
| null | null | 477,958 |
[
"jquery",
"css",
"popup",
"modal-dialog",
"frontend"
] |
6,398,475 | 1 | null | null | 1 | 549 |
I wanna make the editText to look like this:

what else should I do after I set the editText's background how can I make the text start inside the edittext via code.
|
Android EditText look
|
CC BY-SA 3.0
| null |
2011-06-18T19:45:42.143
|
2012-02-14T18:10:49.847
| null | null | 760,538 |
[
"android",
"android-edittext"
] |
6,398,519 | 1 | 6,398,788 | null | 24 | 87,338 |
>
[How to create a multiline UITextfield?](https://stackoverflow.com/questions/1345561/how-to-create-a-multiline-uitextfield)
How can I implement a multiple line textfield like what I see in the iPhone messaging app?

It seems like the once the length of input exceeds the length, a second line will be auto created.
EDIT: Updated to clarify my challenges in using a UITextView
For me, I would like to model the feel and look of the UITextView to that as shown below. I am not sure how I can do it with UITextView as suggested. For example
1) How to expand the box dynamically if my text needs to overflow to next line
2) How to add the border and styling as shown below
3) How to attach the text box right above the keyboard (instead of in the view)
I know that Instagram have this as well, if someone can point me to the correct direction, that will be great. Thanks in advnce

|
Objective C: How to create a multi-line UITextField?
|
CC BY-SA 3.0
| 0 |
2011-06-18T19:54:47.103
|
2013-08-22T18:53:38.170
|
2017-05-23T11:53:50.157
| -1 | 683,898 |
[
"objective-c",
"ios",
"uitextfield"
] |
6,399,052 | 1 | 6,399,282 | null | 0 | 2,179 |
HTML (3x times):
```
<div class="scream">
<div class="author">
<img src="avatars/dagrevis.png" alt="" title="daGrevis" />
</div>
<div class="data">
<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry...</span>
</div>
<div class="clearer"></div>
</div>
```
CSS:
```
.scream {
background: #F4F4F4;
width: 944px; height: 48px;
}
.scream .author {
float: left;
}
.scream .data {
float: left;
}
.clearer { clear: both; }
```
This is how it looks on my browser:

As you can see, `height` is set to 48px. Images size is 48px as well. How it comes that I don't see each `div.scream` in separate line? If I set `height` to 50px, for example, all works! In my opinion, it's because there are some-kind of border/outline/margin/padding that ruin my life. Unfortunately, with FireBug I don't see anything like that...
|
Weird Bug with Border/Outline/Margin/Padding
|
CC BY-SA 3.0
| 0 |
2011-06-18T21:40:22.783
|
2011-06-18T22:38:10.087
| null | null | 458,610 |
[
"css",
"border",
"padding",
"margin",
"outline"
] |
6,399,207 | 1 | 6,399,256 | null | 23 | 24,881 |
In my solution with several projects I am trying to change the `Platform` from Any CPU to x86. But x86 is not in the drop down. What do I need to do to be able to choose x86?
I need to change to x86 because of an `System.BadImageFormatException` error, as per this question: [What causes System.BadImageFormatException when constructing System.Data.SQLite.SQLiteConnection](https://stackoverflow.com/questions/2048914/what-causes-system-badimageformatexception-when-constructing-system-data-sqlite-s)

And, in a possibly related problem, the newest project in the solution is missing one of the configurations from the configuration drop down:

It should have a "Staging" configuration like all of the other projects, but does not. How do I add it?
If I choose the "New ..." option, then it asks me to copy from "Any CPU". If I copy from "Any CPU", isnt that just the same as using "Any CPU" in the first place?

|
How to set a project output platform to x86 in Visual Studio 2010
|
CC BY-SA 3.0
| 0 |
2011-06-18T22:13:21.270
|
2014-08-27T09:31:17.363
|
2017-05-23T12:30:37.427
| -1 | 325,727 |
[
"c#",
"visual-studio-2010",
"configurationmanager"
] |
6,399,255 | 1 | 6,402,332 | null | 1 | 733 |
I'm pretty good with MySQL, but this is something I have never done. What I want to do is make an SQL code to select 6 rows, each with their own WHERE clause.
What I am trying to do is get 6 rows, and each will be the most recent "video" that was posted. there are 6 categories, so that's why I have 6 rows. I want it to pull the most recent by it 'id' number.
I'd do it with 6 different SQL queries, but I assume that would be slower (unless this is the only way to do this?)

From that small snippet, I would like to end up with is this:
2 --> 21
6 --> 16
8 --> 14 (Picks 14 since it's largest.)
---
```
$sql="SELECT video_category, MAX(video_id) AS video_id FROM videos GROUP BY video_category";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)) {
echo $rows['video_category'] . " --> " . $rows['video_id'] . "<br>";
}
```
|
MySQL & PHP - Select 6 rows, each with a different 'WHERE' clause
|
CC BY-SA 3.0
| 0 |
2011-06-18T22:23:56.550
|
2011-06-19T12:31:58.127
|
2011-06-19T12:30:51.423
| 118,342 | 118,342 |
[
"php",
"mysql",
"sql",
"greatest-n-per-group"
] |
6,399,275 | 1 | 6,399,445 | null | 1 | 299 |
Does anyone have suggestions how to do this?
I have an array in my view with the image URLs, like
```
Array
(
[0] => http://i2.cdn.turner.com/cnn/2011/CRIME/06/18/florida.casey.anthony.trial/t1main.anthony.os.jpg
[1] => http://i2.cdn.turner.com/cnn/2011/images/06/18/c1main.black.hole.nasa.cxc.jpg
[2] => http://i2.cdn.turner.com/cnn/2011/LIVING/06/16/texas.veterans.legacy/tzvids.price.courtesy.jpg
[3] => http://i2.cdn.turner.com/cnn/2011/LIVING/06/18/pet.road.trips.rs/tzvids.pet.road.trip.jpg
[4] => http://i2.cdn.turner.com/cnn/2011/SHOWBIZ/06/17/photos.reynolds.auction/tzvids.monroe.dress.nca.jpg
[5] => http://i2.cdn.turner.com/cnn/2011/images/06/18/tzvids.grill.cnn.jpg
)
```
I wonder if there is a jQuery plugin that would allow me to mimic FB's functionality in which one can page through the thumbnails, and when submitting the currently active image is saved with the post.
Any suggestions -- even a partial solution or roadmap -- are greatly appreciated.
_

|
jQuery solution for paging through thumbnails before posting ~ to Facebook
|
CC BY-SA 3.0
| null |
2011-06-18T22:27:45.607
|
2011-06-19T17:16:53.917
| null | null | 445,142 |
[
"javascript",
"jquery",
"facebook",
"thumbnails"
] |
6,399,941 | 1 | 6,400,451 | null | 1 | 1,773 |
EDIT: Working, see code below.
Working on an application, where right now I have the `AppDelegate` class, and a custom `UINavigationController` class. The code i have right now is pretty simple, and I feel like I've setup the `XIB` correctly. The build succeeds with no errors. But when the app launches, the navigationcontroller isnt displayed. I do not see the nav bar nor the table view. All I see is a blank screen. Here's the bulk of my code:
```
//
// FTPPhotosAppDelegate.h
// FTPPhotos
//
// Created by Aaron McLeod on 11-05-30.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RootViewController.h"
@interface FTPPhotosAppDelegate : NSObject <UIApplicationDelegate> {
UINavigationController *navigationController;
RootViewController *rootViewController;
}
@property (nonatomic, retain) UINavigationController *navigationController;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) RootViewController *rootViewController;
@end
//
// FTPPhotosAppDelegate.m
// FTPPhotos
//
// Created by Aaron McLeod on 11-05-30.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "FTPPhotosAppDelegate.h"
@implementation FTPPhotosAppDelegate
@synthesize window=_window;
@synthesize navigationController, rootViewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
navigationController = [[UINavigationController alloc] init];
rootViewController = [[RootViewController alloc] init];
[self.navigationController pushViewController:rootViewController animated:NO];
[self.window addSubview:[self.navigationController view]];
[self.window makeKeyAndVisible];
return YES;
}
@interface RootViewController : UITableViewController<UIImagePickerControllerDelegate> {
NSMutableArray *photos;
UIImagePickerController *picker;
UIBarButtonItem *addPhotoButton;
}
@property (nonatomic, retain) NSMutableArray *photos;
@property (nonatomic, retain) UIImagePickerController *picker;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *addPhotoButton;
- (void) loadPhotos;
- (IBAction) addPhoto;
- (UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize;
@end
#import "RootViewController.h"
@implementation RootViewController
@synthesize photos, picker, addPhotoButton;
- (void)viewDidLoad
{
self.photos = [[NSMutableArray alloc] initWithCapacity:50];
[self loadPhotos];
[super viewDidLoad];
}
```
Any ideas? Here's a screenshot of the `XIB`,
.
Let me know if you need more info.
|
UINavigationController not showing up when running build
|
CC BY-SA 3.0
| null |
2011-06-19T01:11:57.157
|
2013-06-11T10:08:49.023
|
2013-05-31T10:49:07.327
| 1,571,232 | 645,132 |
[
"iphone",
"objective-c",
"uinavigationcontroller"
] |
6,400,361 | 1 | 6,400,376 | null | 1 | 676 |
It looks like my [previous question](https://stackoverflow.com/questions/6390593/php-strange-bitwise-operator-impact-on-strings) update haven't been noticed, therefore a new question.
```
#dump1
var_dump('two identical strings' | 'two identical strings'); # mind the |
// string(21) "two identical strings"
#dump2
var_dump('two identical strings' ^ 'two identical strings'); # mind the ^
// string(21) ""
```
`#dump2`
Plus, when pasted in Notepad++ there are no signs of 21 symbols inside that string either, well actually, not even 1 symbol, as opposed to this output from different operation with unequal strings. 
Those `(DC3)`, `(DC4)` etc. didn't show up in browser, but shows up in Notepad++.
Oh, and actually, what are those blackish values inside that string? `guess !== true`
### Thanks in advance!
|
Bitwise operation result, strange behavior when outputted
|
CC BY-SA 3.0
| 0 |
2011-06-19T03:36:15.783
|
2011-12-19T18:48:39.977
|
2020-06-20T09:12:55.060
| -1 | 393,406 |
[
"php",
"bitwise-operators"
] |
6,400,486 | 1 | 6,400,526 | null | 0 | 497 |
In my program I have several activities. When I run the program, I have the name of application in Title bar (top of the screen).
How can I change this title with any text that I wish? I want to change the text of it for each activity.
Thanks

|
Changing the Title bar
|
CC BY-SA 3.0
| 0 |
2011-06-19T04:10:10.277
|
2012-01-28T17:27:37.380
|
2012-01-28T17:27:37.380
| 508,666 | 513,413 |
[
"android",
"android-activity",
"titlebar"
] |
6,400,524 | 1 | 6,400,819 | null | 3 | 1,702 |
How do you obtain graphic primitives and directives from a `Graphics` object? Leonid Shifrin showed how to remove them in the post [Mathematica: Removing graphics primitives](https://stackoverflow.com/questions/6317253/mathematica-removing-graphics-primitives). I tried applying something similar but I can't get what I want. Consider this example:
```
g1 = ListPlot3D[
{{0, -1, 0}, {0, 1, 0}, {-1, 0, 1}, {1, 0, 1}, {-1, 1, 1}},
Mesh -> {2, 2},
Boxed -> False,
Axes -> False,
ViewPoint -> {2, -2, 1},
ViewVertical -> {0, 0, 1},
MeshStyle -> RGBColor[0, 0.5, 0],
BoundaryStyle -> RGBColor[1, 0.5, 0]
];
g2 = ImportString[ExportString[g1, "PDF", Background -> None], "PDF"][[1]]
```

`g2` is now a graphics object. If you look at the `InputForm` of `g2` you will see that this graphics object is composed of `Polygon`s and `JoinedCurve`s. What I would like to do is able to iterate through all of the primitive objects of `g2`. If we try to iterate as follows
```
objs = First[g2];
Table[Head[objs[[i]]], {i, 1, Length@objs}]
```
we obtain
```
{Thickness, Polygon, Polygon, Polygon, Polygon, Style, Style, Style, Style,
Style, Style, Style, Style, Style, Style, Style, Style, Style, Style, Style,
Style, Style, Style, Style, Style, Style, Style, Style, Style, Style, Style,
Style, Style, Style, Style, Style, Style, Style, Style, Style, Style, Style,
Style, Style, Style}
```
What I would like to obtain instead is a list of simple primitives, I do not want them inside `Styles`. Here is one attempt obtaining only the lines and colors:
```
tmp1 = Cases[objs, (_JoinedCurve | _RGBColor), Infinity];
tmp2 = DeleteCases[objs, (_Polygon | _Thickness), Infinity];
GraphicsRow[{Graphics[tmp1], Graphics[tmp2]}]
```

Notice that the image on the left is drawn incorrectly. This image was generated using only `JoinedCurve`s and `RGBColor`s. It somehow managed to miss one color, that is why we have a black line and then the rest of lines have the other color. The other image is drawn correctly, all we did was delete all the `Polygons` and `Thickness` that appeared in there. What am I doing differently here? Shouldn't we obtain the same plots?
|
Mathematica: Obtaining graphics primitives and directives
|
CC BY-SA 3.0
| 0 |
2011-06-19T04:21:06.277
|
2011-06-22T23:26:43.013
|
2017-05-23T12:19:48.617
| -1 | 788,553 |
[
"wolfram-mathematica",
"mathematica-8"
] |
6,400,591 | 1 | null | null | 0 | 1,229 |
I created a simple line chart in Extjs4 for one of my projects, and the chart is not plotting the right data.

The chart uses the same store as the grid, but not showing the same data. Is there any way to trace the source of the problem, if not fixing it altogether?
The following is the code I use to generate the chart.
```
{
xtype: 'chart',
animate: true,
shadow: true,
store: 'Dataalls',
legend: {
position: 'top'
},
axes: [{
type: 'Numeric',
position: 'left',
title: 'Wind Speed',
fields: ['windspeed'],
grid: true
}, {
type: 'Category',
position: 'bottom',
title: 'Time',
fields: ['time']
}],
series: [{
type: 'line',
axis: 'left',
xField: ['time'],
yField: ['windspeed']
}]
}
```
(I tried using type: 'Time' for the x axis but gets the error "date.getFullYear is not a function" )
|
Extjs4 chart not plotting correct data
|
CC BY-SA 3.0
| null |
2011-06-19T04:39:28.493
|
2011-07-14T07:22:40.217
| null | null | 520,074 |
[
"javascript",
"extjs",
"extjs4",
"extjs-mvc"
] |
6,400,636 | 1 | 6,416,039 | null | 2 | 1,048 |
I have the following XAML inside a 4 Row by 2 column grid. The Grid.ColumnDefinitions have both ColumnDefinition Width's set to *.
```
<FlowDocumentScrollViewer Style="{StaticResource myFlowDoc}"
Grid.Row="4"
Grid.Column="1" >
<FlowDocument >
<Paragraph LineHeight="12" >
<ItemsControl ItemsSource="{Binding ReceivedData, Mode=OneWay}" />
<TextBlock TextWrapping="Wrap" Text="{Binding /, Mode=OneWay}" />
</Paragraph>
</FlowDocument>
</FlowDocumentScrollViewer>
```
The data comes from an ObservaleCollection<string> and looks fine and scrolls vertically correctly. However, when one item doesn't fit horizontally in a TextBlock, the text block will not wrap and the FlowDocumentScrollViewer will not show scroll bars. The only way to see the text is to expand the window Horizontally. Does anyone know what I'm doing wrong and why the TextWrapping setting isn't honored?
In case it matters here is the style myFlowDoc
```
<Style x:Key="myFlowDoc">
<Setter Property="Control.Padding"
Value="0" />
<Setter Property="FlowDocumentScrollViewer.IsToolBarVisible"
Value="True" />
<Setter Property="Control.MinHeight"
Value="150" />
<Setter Property="Control.BorderBrush"
Value="SteelBlue" />
<Setter Property="Control.BorderThickness"
Value="2" />
<Setter Property="Control.VerticalAlignment"
Value="Stretch" />
</Style>
```
[EDIT 1]
Here is the full screen with an error message that should wrap. Below this image I have one showing just the message detail area with the window wider so you can see the entire message. I also put the entire xaml for the user control at [https://gist.github.com/1036178#](https://gist.github.com/1036178#)
[EDIT 2.1]
@Navid's suggestion led me to the answer indirectly. Removing the "/" and wrapping things in a data template seemed to do the trick. Here's the new XAML
```
<DataTemplate x:Key="StringCollection">
<TextBlock TextWrapping="Wrap" Text="{Binding}" TextAlignment="Left"/>
</DataTemplate>
<!--... now down in the ItemsControl-->
<ItemsControl ItemsSource="{Binding ReceivedData, Mode=OneWay}"
ItemTemplate="{StaticResource StringCollection}" />
```


|
How to get TextBlock to Wrap or scroll inside FlowDocumentScrollViewer
|
CC BY-SA 3.0
| null |
2011-06-19T04:55:47.043
|
2020-07-24T10:11:12.773
|
2011-06-21T00:47:43.553
| 633,267 | 633,267 |
[
"wpf",
"flowdocument",
"textblock",
"flowdocumentscrollviewer"
] |
6,400,765 | 1 | 6,400,791 | null | 0 | 453 |
So, I have a UITableView set up to display all the system languages, where the user can select one. Upon selection, the cell sets its accessory view to a check mark and sets all the other cells' accessory views to none. But for some reason, when one cell is selected, another cell will randomly get selected as well.
For example: Here I select English UK.

But then when I scroll down (here showing the bottom of the list), English US seems to have automatically selected itself.

And then when I scroll back up to the top, English UK has magically deselected itself, but Spanish has been checked somehow.

Here is the entire source of the ViewController subclass: [http://pastebin.com/EYNS9ahk](http://pastebin.com/EYNS9ahk)
I also tried implementing a delegate method to check if the tableview is inadvertently selected at any point, but that's not the problem. Any ideas as to what is going on here?
|
Weird UITableViewCell bug: accessory views change at random?
|
CC BY-SA 3.0
| null |
2011-06-19T05:32:44.243
|
2011-06-19T06:07:59.990
| null | null | 701,621 |
[
"iphone",
"objective-c",
"uitableview"
] |
6,400,821 | 1 | 6,400,841 | null | 0 | 510 |
I am working on asp .net mvc3. My database is SQL Server and I'm using the ado.net database access mechanism.
this is my action in controller:
```
public ViewResult ProductIndex()
{
return View(db.Product.ToList());
}
```
and this is my ProductIndex.cshtml:
```
@model IEnumerable<CalcoWOMS.Models.Product>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.ProductCategoryID)
</td>
<td>
@Html.DisplayFor(modelItem => item.ProductUsageID)
</td>
<td>
@Html.DisplayFor(modelItem => item.ProductRangeID)
</td>
<td>
@Html.DisplayFor(modelItem => item.Code)
</td>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
}
```
My problem is that I want to display the value of the "Description" field in the "ProductCategory" Table, not the ProductCategoryID field, in the first line of my ProductIndex.cshtml. How should I modify the controller and view (.cshtml file)?
this is my product table:

this is my productCategory table from which I want to access code

|
how can print value of other table in a model
|
CC BY-SA 3.0
| 0 |
2011-06-19T05:49:30.657
|
2011-06-19T06:17:15.197
|
2011-06-19T06:04:12.370
| 446,591 | 887,872 |
[
"asp.net-mvc",
"asp.net-mvc-2",
"asp.net-mvc-3"
] |
6,400,886 | 1 | 6,400,891 | null | 2 | 1,104 |
I have a query that I'm running that is returning always 10 results.
i.e:
```
SELECT
*
FROM
table
LIMIT 10
```
I'm then looping through the results. On each of them, I'm resizing them into thumbnails (10 thumbnails). Before displaying the 10 thumbnails, for the very first result, I want to resize it to make it larger. The resizing is no issue. It's trying to figure out how to isolate the very first one before outputting the 10 thumbnails.
I'm doing something like below:
```
if($stmt->rowCount() != 0) {
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$id = $row['id'];
$filename = $row['filename'];
// take the first $filename result and resize it to make it larger
// resize $filename into thumbnails and output 10 thumbnails
}
}
```
Essentially, it's a leaderboard and all top 10 entries are displayed, but the first one is resized to be bigger to show who is currently dominating the top 10 slot.
Any suggestions on where/how I can isolate that very first result so I can resize it?
Below is an example of what I'm conceptually trying to explain:

|
How to isolate first result row from MySQL query in PHP?
|
CC BY-SA 3.0
| null |
2011-06-19T06:10:13.167
|
2011-06-19T09:04:21.970
| null | null | 634,877 |
[
"php",
"mysql",
"sql"
] |
6,400,987 | 1 | 6,401,279 | null | 0 | 1,843 |

I need to add background to a textview, the background has two parts: top half is a gradent from color A to B, bottom part is a gradient from color C to D and B does not equal to C, it is actually a semi-transparent shadow, I intentionally put an orange layer underneath it to make it clear to see.
I am looking for the best way to do it, using shape/gradient only allows me setting startColor, centerColor and endColor but I need for color points. Using 9 patch is a bit complicated. Or can I merge two gradients together so each has two colors and together give me four colors?
Thanks!
|
Android: best way(9 patch or gradient shape in xml) to draw two gradients(see screenshot)
|
CC BY-SA 3.0
| null |
2011-06-19T06:33:21.563
|
2011-12-07T15:38:10.647
| null | null | 734,036 |
[
"android",
"gradient"
] |
6,401,002 | 1 | 6,401,080 | null | 8 | 17,556 |
I have a problem with a `junit` ant build, i'm getting a `java.lang.OutOfMemoryError: PermGen space` error.
I'm trying to set `ANT_OPTS` to be `ANT_OPTS='-Xmx512m -XX:MaxPermSize=256m'` in the build `Java Options` to increase the heap size ant build tool.

But i get an error each time i run:
```
Exception in thread "main" java.lang.NoClassDefFoundError: ANT_OPTS=-Xmx512m -XX:MaxPermSize=256m
Caused by: java.lang.ClassNotFoundException: ANT_OPTS=-Xmx512m -XX:MaxPermSize=256m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: ANT_OPTS=-Xmx512m -XX:MaxPermSize=256m. Program will exit.
```
A syntax error ?
Thanks.
|
How to use the `Java Options` in jenkins ant build tool to set ANT_OPTS
|
CC BY-SA 3.0
| null |
2011-06-19T06:36:29.043
|
2011-06-19T07:08:59.880
| null | null | 599,912 |
[
"java",
"ant",
"hudson",
"jenkins"
] |
6,401,594 | 1 | null | null | 6 | 996 |
I can't add few values to the same field. I can select only one value, and after I input `,`, `;` or other delimiter character, I can't select another one. I want it to work similar to autocomplete.
I have a textbox with jQuery bound:
```
<div class="editor-field">
@Html.EditorFor(model => model.Name) @Html.ValidationMessageFor(model => model.Name)
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#Name").autocomplete('@Url.Action("TagName", "Tag")', {
minChars: 1,
delimiter: /(,|;)\s*/,
onSelect: function(value, data){
alert('You selected: ' + value + ', ' + data);
}
});
});
</script>
```
It uses data from my controller:
```
public ActionResult TagName(string q)
{
var tags = new List<TagModel>
{
new TagModel {Name = "aaaa", NumberOfUse = "0"},
new TagModel {Name = "mkoh", NumberOfUse = "1"},
new TagModel {Name = "asdf", NumberOfUse = "2"},
new TagModel {Name = "zxcv", NumberOfUse = "3"},
new TagModel {Name = "qwer", NumberOfUse = "4"},
new TagModel {Name = "tyui", NumberOfUse = "5"},
new TagModel {Name = "asdf[", NumberOfUse = "6"},
new TagModel {Name = "mnbv", NumberOfUse = "7"}
};
var tagNames = (from p in tags where p.Name.Contains(q) select p.Name).Distinct().Take(3);
string content = string.Join<string>("\n", tagNames);
return Content(content);
}
```
I'm using these scripts:
```
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.autocomplete.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Scripts/jquery.autocomplete.css")" rel="stylesheet" type="text/css" />
```
There is no error in firebug. What is wrong with my code?

|
Problem with delimitir using jquery and mvc razor
|
CC BY-SA 3.0
| 0 |
2011-06-19T09:21:22.790
|
2011-07-06T13:34:18.460
|
2011-06-27T19:52:34.250
| 713,396 | 278,618 |
[
"jquery",
"asp.net-mvc-3",
"razor"
] |
6,401,971 | 1 | null | null | 2 | 5,340 |
I have a Mercurial repo on a central server (`mercurial-server` package on Ubuntu; repo URLs are of the form `ssh://host/repo`), and a local working copy. I'm using IntelliJ IDEA 10.5 and its Mercurial plugin (hg4idea).
I'm trying to do something simple: a colleague has checked in changes (commit & push to server), and I want to get those. In other words, I want to update the project (in Subversion lingo?).
IDEA's (Ctrl-T / Cmd-T) only produces this message:
> Error: Skipped
"/path/to/working-copy". No default
update path.
Here's the simplest (and only) way I found so far: choose Mercurial -> which brings up this dialog:

...where you copy-paste the repo URL (something like `ssh://host/project`).
Next choose Mercurial ->

...and click OK.
Is there a quicker way to do this? By somehow defining the "default update path" perhaps?
I wouldn't want to always fall back to command-line (`hg pull && hg update`) for such simple operation, but it seems like I have to if it really is so clumsy in IDEA.
(I'm new to Mercurial, so forgive me if I'm doing everything wrong.)
|
Simple way to "Update Project" with IntelliJ IDEA & Mercurial?
|
CC BY-SA 3.0
| 0 |
2011-06-19T10:58:42.897
|
2011-06-19T15:57:34.787
|
2011-06-19T15:57:34.787
| 56,285 | 56,285 |
[
"mercurial",
"intellij-idea"
] |
6,402,048 | 1 | 6,402,091 | null | 3 | 5,535 |
I had created a dropdown using `<select>` tag and now i want to show the options in `<select>` without clicking the dropdown(i mean when we open that html, we should be able to see all options instead of clicking on the select ). Is this possible using jQuery or is there any other way to do it.
Below is my code in jsfiddle
[http://jsfiddle.net/sukumar/xtTcZ/](http://jsfiddle.net/sukumar/xtTcZ/)
I want the options to be shown like below by default

|
how to make select tag show options by default without clicking
|
CC BY-SA 3.0
| null |
2011-06-19T11:18:35.817
|
2011-06-19T11:31:12.470
| null | null | 413,816 |
[
"jquery"
] |
6,402,180 | 1 | null | null | 0 | 144 |
Generally it only shows two lines of text in the Activity Chooser menu, rest is shown as "some text...". How to show 4-5 lines of text in the title?

.
.
|
showing more text in activity chooser menu title
|
CC BY-SA 3.0
| null |
2011-06-19T11:51:52.113
|
2011-06-19T12:20:03.480
|
2011-06-19T12:10:35.590
| 474,986 | 474,986 |
[
"android",
"user-interface",
"android-activity"
] |
6,402,231 | 1 | 6,402,258 | null | 1 | 166 |
There are many applications like the one below where the detail description text is editable. How can one implement this look? And how can one retrieve the text that was entered?

|
How to make the detail description text in a table view editable?
|
CC BY-SA 3.0
| null |
2011-06-19T12:02:15.077
|
2011-06-19T12:08:58.707
| null | null | 558,423 |
[
"iphone",
"ios",
"ipad",
"uitableview"
] |
6,402,396 | 1 | null | null | 1 | 4,476 |
it is easy to create a form that will allow a user to select multiple values and then get the data that was entered. What I want to know is how to recreate that form based on the information in the database? ie Edit the data.
```
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="test[]" multiple="multiple">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
<option value="four">four</option>
<option value="five">five</option>
</select>
<input type="submit" value="Send" />
</form>
<?php
$test=$_POST['test'];
if ($test){
foreach ($test as $t){echo 'You selected ',$t,'<br />';}
}
?>
```
Say values two and foru were seleted in the original data. How would I recreate the form to edit the data like the code below:
```
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="test[]" multiple="multiple">
<option value="one">one</option>
<option selected value="two">two</option>
<option value="three">three</option>
<option selected value="four">four</option>
<option value="five">five</option>
</select>
<input type="submit" value="Send" />
</form>
```
Initially I want the code for add and edit to work. Eventually I want to be able to enter various multiple select options in a form and to edit them.

|
Multiple Select in PHP - How to edit data?
|
CC BY-SA 3.0
| 0 |
2011-06-19T12:38:01.963
|
2011-06-19T13:15:04.860
| null | null | 178,882 |
[
"php",
"forms",
"select"
] |
6,402,441 | 1 | 6,402,466 | null | -1 | 267 |
Ok so I am trying to check for internet connectivity as my app requires it, I have included the reachability.h files as a solution suggested here [Easiest way to determine whether iPhone internet connection is available?](https://stackoverflow.com/questions/784582/easiest-way-to-determine-whether-iphone-internet-connection-is-available) but I am getting 12 errors from that class. Any suggestions

|
Network connectivity iPhone Reachability class buggy
|
CC BY-SA 3.0
| null |
2011-06-19T12:48:34.690
|
2011-06-19T13:24:50.923
|
2017-05-23T12:19:48.617
| -1 | 1,228,006 |
[
"iphone",
"objective-c",
"cocoa-touch",
"networking"
] |
6,402,491 | 1 | 6,402,504 | null | 35 | 2,546 |
What is this Type in .NET? I am using reflection to get a list of all the classes and this one turns up.
What is it? where does it come from? How is the name DisplayClass1 chosen? I search the sources and didnt see anything. What does the `<>` mean? what does the `c__` mean? is there reference?

|
What is this Type in .NET (Reflection)
|
CC BY-SA 3.0
| 0 |
2011-06-19T13:00:14.920
|
2011-06-19T15:49:21.383
| null | null | null |
[
"c#",
".net",
"reflection"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.