PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11,715,460 | 07/30/2012 04:37:13 | 1,561,885 | 07/30/2012 04:08:49 | 1 | 0 | How to remove vibration from individual apk? | I am far from a developer/programmer but I understand how a few things work. I am trying to remove the vibration from the stock gallery2.apk when you long press on the individual photos as well as when you long press on the album itself. I don't have access to the source code as the wifi service I get here is garbage and it would take me 10 years to repo sync in order to more easily accomplish my goal.
I've decompiled said .apk and have determined that the vibration occurs in AlbumPage.smali as well as AlbumSetPage.smali both located in com\android\gallery3d\app.
Here in lies my question, obviously it's NOT as simple as removing the lines located below:
.field private mVibrator:Landroid/os/Vibrator;
const-string v1, "vibrator"
check-cast v1, Landroid/os/Vibrator;
iput-object v1, p0, Lcom/android/gallery3d/app/AlbumPage;->mVibrator:Landroid/os/Vibrator;
iget-object v0, p0, Lcom/android/gallery3d/app/AlbumPage;->mVibrator:Landroid/os/Vibrator;
invoke-virtual {v0, v1, v2}, Landroid/os/Vibrator;->vibrate(J)V
Is there some way I can drop in a pub void or mvibrator = null somewhere to basically fake it into thinking it vibrated when in actuality it hasn't? I can't stand vibration and think it's a waste of battery, only useful for when a call or sms is received.
Another question, does this go beyond the individual apk, is it tied into android.policy.jar or framework jar? The reason I ask I was able to remove the ICS lockscreen vibration by modifying framework.jar simply by removing
invoke-virtual {p0, v11}, Lcom/android/internal/widget/multiwaveview/MultiWaveView;->setVibrateEnabled(Z)V from multiwaveview.smali
Thanks for your help. If you're willing to help off I can email you the individual smali files so you can understand where I am coming from. | android | android-vibration | smali | null | null | 08/01/2012 18:52:26 | too localized | How to remove vibration from individual apk?
===
I am far from a developer/programmer but I understand how a few things work. I am trying to remove the vibration from the stock gallery2.apk when you long press on the individual photos as well as when you long press on the album itself. I don't have access to the source code as the wifi service I get here is garbage and it would take me 10 years to repo sync in order to more easily accomplish my goal.
I've decompiled said .apk and have determined that the vibration occurs in AlbumPage.smali as well as AlbumSetPage.smali both located in com\android\gallery3d\app.
Here in lies my question, obviously it's NOT as simple as removing the lines located below:
.field private mVibrator:Landroid/os/Vibrator;
const-string v1, "vibrator"
check-cast v1, Landroid/os/Vibrator;
iput-object v1, p0, Lcom/android/gallery3d/app/AlbumPage;->mVibrator:Landroid/os/Vibrator;
iget-object v0, p0, Lcom/android/gallery3d/app/AlbumPage;->mVibrator:Landroid/os/Vibrator;
invoke-virtual {v0, v1, v2}, Landroid/os/Vibrator;->vibrate(J)V
Is there some way I can drop in a pub void or mvibrator = null somewhere to basically fake it into thinking it vibrated when in actuality it hasn't? I can't stand vibration and think it's a waste of battery, only useful for when a call or sms is received.
Another question, does this go beyond the individual apk, is it tied into android.policy.jar or framework jar? The reason I ask I was able to remove the ICS lockscreen vibration by modifying framework.jar simply by removing
invoke-virtual {p0, v11}, Lcom/android/internal/widget/multiwaveview/MultiWaveView;->setVibrateEnabled(Z)V from multiwaveview.smali
Thanks for your help. If you're willing to help off I can email you the individual smali files so you can understand where I am coming from. | 3 |
10,101,545 | 04/11/2012 07:18:44 | 1,042,781 | 11/12/2011 03:51:29 | 17 | 0 | Apache, "Memory Could Not Be Read" | i wanna ask why my Xampp 1.7.0 crashing like this picture below after i tried to install drupal 7.12?
anyone ever experience it before?
![Apache error description][1]
[1]: http://i.stack.imgur.com/Jm0YK.jpg
| apache | drupal | xampp | null | null | 04/12/2012 13:53:08 | off topic | Apache, "Memory Could Not Be Read"
===
i wanna ask why my Xampp 1.7.0 crashing like this picture below after i tried to install drupal 7.12?
anyone ever experience it before?
![Apache error description][1]
[1]: http://i.stack.imgur.com/Jm0YK.jpg
| 2 |
11,555,069 | 07/19/2012 06:26:46 | 1,536,823 | 07/19/2012 05:16:22 | 1 | 0 | Is there any plugins for SCREEN LOCK PATTERN IN PHONEGAP(HTML,CSS,JAVASCRIPT,JQUERY)? | Can anyone help me in finding the plugins for SCREEN LOCK PATTERN IN PHONEGAP(HTML,CSS,JAVASCRIPT,JQUERY) in android ....
Is there any source code available in net for the implementation of "SCREEN LOCK PATTERN IN PHONEGAP(HTML,CSS,JAVASCRIPT,JQUERY) in android...."?
Thanks in Advance
Natarajan | javascript | android | jquery | html5 | phonegap | 07/19/2012 06:34:04 | not a real question | Is there any plugins for SCREEN LOCK PATTERN IN PHONEGAP(HTML,CSS,JAVASCRIPT,JQUERY)?
===
Can anyone help me in finding the plugins for SCREEN LOCK PATTERN IN PHONEGAP(HTML,CSS,JAVASCRIPT,JQUERY) in android ....
Is there any source code available in net for the implementation of "SCREEN LOCK PATTERN IN PHONEGAP(HTML,CSS,JAVASCRIPT,JQUERY) in android...."?
Thanks in Advance
Natarajan | 1 |
331,667 | 12/01/2008 18:02:21 | 27,474 | 10/13/2008 15:26:37 | 490 | 31 | Design of Reporting Services for Java webapp | A design question.
I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm.
One big missing feature in the application is that it provides no reporting. The initial design of the application did not consider reporting as part of the core because of various constraints, not necessarily technical. Reporting services as needed now should enable users to get their reports online anytime as well as download them in predefined formats.
The application has grown into a stage where I would not like to put in more code into it and want to isolate the core modules and develop future needs around this core. I would like to hear a few ideas as to how to go on developing this reporting service around the core app.
Also what reporting tools can I use? I have used Jasper in the past but heard BIRT is good too. Throw your suggestions.
| java | reporting | web-applications | design | null | null | open | Design of Reporting Services for Java webapp
===
A design question.
I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm.
One big missing feature in the application is that it provides no reporting. The initial design of the application did not consider reporting as part of the core because of various constraints, not necessarily technical. Reporting services as needed now should enable users to get their reports online anytime as well as download them in predefined formats.
The application has grown into a stage where I would not like to put in more code into it and want to isolate the core modules and develop future needs around this core. I would like to hear a few ideas as to how to go on developing this reporting service around the core app.
Also what reporting tools can I use? I have used Jasper in the past but heard BIRT is good too. Throw your suggestions.
| 0 |
11,172,683 | 06/23/2012 20:19:54 | 887,385 | 08/10/2011 07:26:54 | 151 | 78 | How to update shipping address using customer_save_after event? | I am trying to create or update default shipping address for a customer using `customer_save_after` event (based on some custom registration fields) when customer tries to create new account or edit his account.
Here goes the portion of the Observer model code:
...
$customer = $observer->getEvent()->getCustomer();
if ($customer->getId() && $otherConditionIsValid){
$dataShipping = array(
'firstname' => $someFixedFirstName,
'lastname' => $someFixedLastName,
'street' => array($someFixedStreetLine),
'city' => $someFixedCity,
'region' => $someFixedState,
'region_id' => '',
'postcode' => $someFixedZipcode,
'country_id' => $someFixedCountry,
'telephone' => $someFixedTelephone,
);
$customerAddress = Mage::getModel('customer/address');
if($defaultShippingId = $customer->getDefaultShipping()){ //if customer already has default shipping address
$customerAddress->load($defaultShippingId);
}
$customerAddress->setData($dataShipping)
->setCustomerId($customer->getId())
->setIsDefaultShipping('1')
->setSaveInAddressBook('1');
$customer->addAddress($customerAddress); #setting Shipping Address to be added/updated
//When i try to use below commented code, script gets called for infinite times, finally running out of memory
/*try{
$customerAddress->save();
}catch(Exception $e){
Mage::log('Address Save Error::' . $e->getMessage());
}*/
}
...
Above code works fine when customer creates a new account. However default shipping address don't get updated when customer tries to edit the custom registration field from `My Account > Account Information`
So my main concern is how to update the shipping address using `$customer` object or any other code using `customer_save_after` event. | magento | null | null | null | null | null | open | How to update shipping address using customer_save_after event?
===
I am trying to create or update default shipping address for a customer using `customer_save_after` event (based on some custom registration fields) when customer tries to create new account or edit his account.
Here goes the portion of the Observer model code:
...
$customer = $observer->getEvent()->getCustomer();
if ($customer->getId() && $otherConditionIsValid){
$dataShipping = array(
'firstname' => $someFixedFirstName,
'lastname' => $someFixedLastName,
'street' => array($someFixedStreetLine),
'city' => $someFixedCity,
'region' => $someFixedState,
'region_id' => '',
'postcode' => $someFixedZipcode,
'country_id' => $someFixedCountry,
'telephone' => $someFixedTelephone,
);
$customerAddress = Mage::getModel('customer/address');
if($defaultShippingId = $customer->getDefaultShipping()){ //if customer already has default shipping address
$customerAddress->load($defaultShippingId);
}
$customerAddress->setData($dataShipping)
->setCustomerId($customer->getId())
->setIsDefaultShipping('1')
->setSaveInAddressBook('1');
$customer->addAddress($customerAddress); #setting Shipping Address to be added/updated
//When i try to use below commented code, script gets called for infinite times, finally running out of memory
/*try{
$customerAddress->save();
}catch(Exception $e){
Mage::log('Address Save Error::' . $e->getMessage());
}*/
}
...
Above code works fine when customer creates a new account. However default shipping address don't get updated when customer tries to edit the custom registration field from `My Account > Account Information`
So my main concern is how to update the shipping address using `$customer` object or any other code using `customer_save_after` event. | 0 |
5,099,629 | 02/24/2011 02:11:44 | 247,706 | 01/11/2010 00:27:49 | 472 | 15 | MonoTouch - Running in Debug results in "Could not insert pending Breakpoint" | I've done a CLEAN ALL, I've reset the simulator, but I can't explain why I get the following: (see the 'Resolved pending breakpoint' line, and the 'Could not insert')
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll [External]
Loaded assembly: /Users/drisszouak/Projects/ZenVelopes/ZenVelopes/bin/iPhoneSimulator/Debug/ZenVelopes.exe
Resolved pending breakpoint at 'EnvelopeViewController.xib.cs:76' to Void ZenVelopes.EnvelopeViewController:HandleBtnNewEnvelopeClicked ():0.
Could not insert pending breakpoint at 'EnvelopeViewController.xib.cs:69'. Perhaps the source line does not contain any statements, or the source does not correspond to the current binary.
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Data.Sqlite.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Transactions.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll [External]
The code on line 69 and 76 are valid code, and are event handlers for toolbar buttons. Then when I click on one of the buttons, I get a null reference exception. | monotouch | null | null | null | null | null | open | MonoTouch - Running in Debug results in "Could not insert pending Breakpoint"
===
I've done a CLEAN ALL, I've reset the simulator, but I can't explain why I get the following: (see the 'Resolved pending breakpoint' line, and the 'Could not insert')
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll [External]
Loaded assembly: /Users/drisszouak/Projects/ZenVelopes/ZenVelopes/bin/iPhoneSimulator/Debug/ZenVelopes.exe
Resolved pending breakpoint at 'EnvelopeViewController.xib.cs:76' to Void ZenVelopes.EnvelopeViewController:HandleBtnNewEnvelopeClicked ():0.
Could not insert pending breakpoint at 'EnvelopeViewController.xib.cs:69'. Perhaps the source line does not contain any statements, or the source does not correspond to the current binary.
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Data.Sqlite.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Transactions.dll [External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll [External]
The code on line 69 and 76 are valid code, and are event handlers for toolbar buttons. Then when I click on one of the buttons, I get a null reference exception. | 0 |
11,294,088 | 07/02/2012 12:53:19 | 478,520 | 10/17/2010 12:59:42 | 1,373 | 29 | PHP PDO mySQL return null | The following code returns me people with similar telephone numbers. It works perfectly but when there are no numbers the function still returns information meaning that I cannot check hide a certain box if there are no other people with similar numbers.
THE FUNCTION
function getothers($tid,$criteria,$telephone,$telephone2,$elector){
global $dbh;
$tid = '-TID'.$tid;
$sql = "SELECT * FROM electors WHERE ((telephone > 0 AND telephone IN ('$telephone','$telephone2')) OR (telephone2 > 0 AND telephone2 IN ('$telephone','$telephone2'))) $criteria AND records NOT RLIKE '$tid' AND ID != '$elector' LIMIT 10";
$result = $dbh->query($sql);
return $result;
}
THE CALL
<?php $others = getothers($post['TID'],$post['criteria'],$elector['telephone'],$elector['telephone2'],$elector['ID']); ?>
THE LINE THAT DOES NOT WORK
<?php if(!$others){?>
`$others` still has something in it despite no results. I think I might be missing a line in y PDO. Any ideas?
The print_r
PDOStatement Object ( [queryString] => SELECT * FROM electors WHERE ((telephone > 0 AND telephone IN ('02085414023 ','')) OR (telephone2 > 0 AND telephone2 IN ('02085414023 ',''))) AND (this_vi_street = '' AND this_vi_telephone = '') AND (mosaic IN ('A01','A02','A03','A04','A05','A07','B11','C15','C16','C17','C18','H46','J52','K57','K58','K60') OR last_vi IN ('C','P')) AND postal_vote != 1 AND records NOT RLIKE '-TID1' AND ID != '13' LIMIT 10 ) | php | query | pdo | results | null | null | open | PHP PDO mySQL return null
===
The following code returns me people with similar telephone numbers. It works perfectly but when there are no numbers the function still returns information meaning that I cannot check hide a certain box if there are no other people with similar numbers.
THE FUNCTION
function getothers($tid,$criteria,$telephone,$telephone2,$elector){
global $dbh;
$tid = '-TID'.$tid;
$sql = "SELECT * FROM electors WHERE ((telephone > 0 AND telephone IN ('$telephone','$telephone2')) OR (telephone2 > 0 AND telephone2 IN ('$telephone','$telephone2'))) $criteria AND records NOT RLIKE '$tid' AND ID != '$elector' LIMIT 10";
$result = $dbh->query($sql);
return $result;
}
THE CALL
<?php $others = getothers($post['TID'],$post['criteria'],$elector['telephone'],$elector['telephone2'],$elector['ID']); ?>
THE LINE THAT DOES NOT WORK
<?php if(!$others){?>
`$others` still has something in it despite no results. I think I might be missing a line in y PDO. Any ideas?
The print_r
PDOStatement Object ( [queryString] => SELECT * FROM electors WHERE ((telephone > 0 AND telephone IN ('02085414023 ','')) OR (telephone2 > 0 AND telephone2 IN ('02085414023 ',''))) AND (this_vi_street = '' AND this_vi_telephone = '') AND (mosaic IN ('A01','A02','A03','A04','A05','A07','B11','C15','C16','C17','C18','H46','J52','K57','K58','K60') OR last_vi IN ('C','P')) AND postal_vote != 1 AND records NOT RLIKE '-TID1' AND ID != '13' LIMIT 10 ) | 0 |
1,456,405 | 09/21/2009 19:34:56 | 65,670 | 02/12/2009 17:48:09 | 115 | 7 | Setting Access permissions on Semaphore?? | I am assuming that once a semaphore is created by a process, it will be accessible by any process/user.
Is it possible to put access restrictions on a particular semaphore so that it can be accessible by only certain processes/users or only certain processes can release the semaphore.
I see some problems if we make a semaphore accessible by all processes.Eg: a dummy process can read the semaphore and release the lock at wish making a false signal to the actual process that is really waiting for the semaphore lock.
All these questions are arising as I am getting very wierd output with the following code snippet:
> use Win32::Semaphore; <br/>$sem =
> Win32::Semaphore->new(0,
> 1,"reliance2692") or print "Can't
> create semaphore\n";<br/> $sem =
> Win32::Semaphore->open("reliance2692")
> or print "Can't open semaphore\n";<br/>
> print "Semaphore:" . $sem . "\n";
By running the above program, I am getting the following output
Can't create semaphore
Can't open semaphore
The output shows that its failed to create a semaphore and even failed to open semaphore.
creating a semaphore might have failed if a semaphore already exists with the given name.
I don't understand why opening a semaphore failed.
Can some clarify the scenario where both creating semaphore & opening semaphore fails.
Thanks in advance,
Naga Kiran
| perl | semaphore | null | null | null | null | open | Setting Access permissions on Semaphore??
===
I am assuming that once a semaphore is created by a process, it will be accessible by any process/user.
Is it possible to put access restrictions on a particular semaphore so that it can be accessible by only certain processes/users or only certain processes can release the semaphore.
I see some problems if we make a semaphore accessible by all processes.Eg: a dummy process can read the semaphore and release the lock at wish making a false signal to the actual process that is really waiting for the semaphore lock.
All these questions are arising as I am getting very wierd output with the following code snippet:
> use Win32::Semaphore; <br/>$sem =
> Win32::Semaphore->new(0,
> 1,"reliance2692") or print "Can't
> create semaphore\n";<br/> $sem =
> Win32::Semaphore->open("reliance2692")
> or print "Can't open semaphore\n";<br/>
> print "Semaphore:" . $sem . "\n";
By running the above program, I am getting the following output
Can't create semaphore
Can't open semaphore
The output shows that its failed to create a semaphore and even failed to open semaphore.
creating a semaphore might have failed if a semaphore already exists with the given name.
I don't understand why opening a semaphore failed.
Can some clarify the scenario where both creating semaphore & opening semaphore fails.
Thanks in advance,
Naga Kiran
| 0 |
1,606,952 | 10/22/2009 12:41:59 | 172,783 | 09/13/2009 16:38:53 | 342 | 17 | Viewing data in a circular buffer in real-time | I have an incoming stream of messages, and want a window that allows the user to scroll through the messages.
This is my current thinking:
- Incoming messages go into single producer single consumer queue
- A thread reads them out and places them into a circular buffer with a sequential id
- This way I could have multiple incoming streams safely placed in the circular buffer and it decouples the input
- Mutex to coordinate circular buffer access between the UI and the thread
- Two notifications from thread to UI one for the first id and one for the last id in the buffer when ever either changes.
- This allows the UI to figure out what it can display, which parts of the circular buffer it needs access, delete overwritten messages. It only accesses the messages required to fill the window at its current size and scroll position.
I'm not happy about the notification into the UI. It would be generated with high frequency. These could be queued or otherwise throttled; latency should not affect the first id but delays in handling the last id could cause problems in corner cases such as viewing the very end of a full buffer *unless* the UI makes a copy of the messages it displays, which I would like to avoid.
Does this sound like the right approach? Any tweaks that could make it a bit more palatable?
| c++ | c | stl | mvc | null | null | open | Viewing data in a circular buffer in real-time
===
I have an incoming stream of messages, and want a window that allows the user to scroll through the messages.
This is my current thinking:
- Incoming messages go into single producer single consumer queue
- A thread reads them out and places them into a circular buffer with a sequential id
- This way I could have multiple incoming streams safely placed in the circular buffer and it decouples the input
- Mutex to coordinate circular buffer access between the UI and the thread
- Two notifications from thread to UI one for the first id and one for the last id in the buffer when ever either changes.
- This allows the UI to figure out what it can display, which parts of the circular buffer it needs access, delete overwritten messages. It only accesses the messages required to fill the window at its current size and scroll position.
I'm not happy about the notification into the UI. It would be generated with high frequency. These could be queued or otherwise throttled; latency should not affect the first id but delays in handling the last id could cause problems in corner cases such as viewing the very end of a full buffer *unless* the UI makes a copy of the messages it displays, which I would like to avoid.
Does this sound like the right approach? Any tweaks that could make it a bit more palatable?
| 0 |
3,097,128 | 06/22/2010 21:03:55 | 373,633 | 06/22/2010 21:03:55 | 1 | 0 | C# .net Excel Interop leaves Excel process hanging | We use Excel interop in numerous places in our code, however I have one function which doesn't ever seem to close down the Excel process it uses.. I've simplified the code down, and it just seems like whenever I open a workbook in this function it stays hanging around. I've included the code below, I've made sure every object is defined, released and nulled, and yet Excel stays running.
System.Data.DataTable dtExcelSheet = new System.Data.DataTable();
Microsoft.Office.Interop.Excel.Application excelObject = new Microsoft.Office.Interop.Excel.Application();
dtExcelSheet.Columns.Add("SheetName", typeof(string));
dtExcelSheet.Columns["SheetName"].ReadOnly = false;
dtExcelSheet.Columns["SheetName"].Caption = "Sheet Name";
Workbooks wbs = excelObject.Workbooks;
Workbook excelWorkbook = wbs.Add(excelFile);
excelWorkbook.Close(false, System.Reflection.Missing.Value, System.Reflection.Missing.Value);
wbs.Close();
excelObject.Quit();
int i1 = Marshal.FinalReleaseComObject(excelWorkbook);
int i2 = Marshal.FinalReleaseComObject(wbs);
int i3 = Marshal.FinalReleaseComObject(excelObject);
excelWorkbook = null;
wbs = null;
excelObject = null;
GC.GetTotalMemory(false);
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
GC.GetTotalMemory(true); | c# | excel | interop | null | null | null | open | C# .net Excel Interop leaves Excel process hanging
===
We use Excel interop in numerous places in our code, however I have one function which doesn't ever seem to close down the Excel process it uses.. I've simplified the code down, and it just seems like whenever I open a workbook in this function it stays hanging around. I've included the code below, I've made sure every object is defined, released and nulled, and yet Excel stays running.
System.Data.DataTable dtExcelSheet = new System.Data.DataTable();
Microsoft.Office.Interop.Excel.Application excelObject = new Microsoft.Office.Interop.Excel.Application();
dtExcelSheet.Columns.Add("SheetName", typeof(string));
dtExcelSheet.Columns["SheetName"].ReadOnly = false;
dtExcelSheet.Columns["SheetName"].Caption = "Sheet Name";
Workbooks wbs = excelObject.Workbooks;
Workbook excelWorkbook = wbs.Add(excelFile);
excelWorkbook.Close(false, System.Reflection.Missing.Value, System.Reflection.Missing.Value);
wbs.Close();
excelObject.Quit();
int i1 = Marshal.FinalReleaseComObject(excelWorkbook);
int i2 = Marshal.FinalReleaseComObject(wbs);
int i3 = Marshal.FinalReleaseComObject(excelObject);
excelWorkbook = null;
wbs = null;
excelObject = null;
GC.GetTotalMemory(false);
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
GC.GetTotalMemory(true); | 0 |
11,165,315 | 06/22/2012 23:15:12 | 327,229 | 04/27/2010 20:07:22 | 131 | 7 | Ember.js routing: how do you set a default route to render immediately? | I'm sure this will become clear as I dig in deeper, but for now it's not obvious how to make this happen.
I was following the info on [this helpful SO article about routing](http://stackoverflow.com/questions/11050956/ember-js-router-action-to-controller) but there is an important piece missing from the example, i.e. how do you get the 'home' view to render right away without having to click the 'home' link?
I've started digging into the docs to try to make sense of this, but meanwhile it seems like a useful question to have answered for posterity.
I've been playing with the working jsfiddle example from the above question [here](http://jsfiddle.net/rzNuZ/15/) and comparing with this other example I found that [seems to have the default routing working](http://jsfiddle.net/zdfs/qsAxZ/5/)
So far it's still a mystery.
Thanks! | emberjs | null | null | null | null | null | open | Ember.js routing: how do you set a default route to render immediately?
===
I'm sure this will become clear as I dig in deeper, but for now it's not obvious how to make this happen.
I was following the info on [this helpful SO article about routing](http://stackoverflow.com/questions/11050956/ember-js-router-action-to-controller) but there is an important piece missing from the example, i.e. how do you get the 'home' view to render right away without having to click the 'home' link?
I've started digging into the docs to try to make sense of this, but meanwhile it seems like a useful question to have answered for posterity.
I've been playing with the working jsfiddle example from the above question [here](http://jsfiddle.net/rzNuZ/15/) and comparing with this other example I found that [seems to have the default routing working](http://jsfiddle.net/zdfs/qsAxZ/5/)
So far it's still a mystery.
Thanks! | 0 |
5,871,292 | 05/03/2011 14:46:13 | 700,663 | 04/10/2011 07:56:33 | 87 | 0 | What are the commands at gdb console? | Xcode 4. So I can do p something to print a variable. What else I can do?
| objective-c | xcode | null | null | null | 05/03/2011 17:59:49 | not a real question | What are the commands at gdb console?
===
Xcode 4. So I can do p something to print a variable. What else I can do?
| 1 |
6,967,050 | 08/06/2011 13:18:34 | 269,931 | 02/10/2010 00:17:34 | 484 | 14 | OpenSource Marketplace Platform | I see that there are many e-commerce open source platforms around, but very few can handle a marketplace, with support for multiple vendors, seller personal page, feedbacks, ....
I've just found a plugin for UberCart, but it doesn't suit my needs.
Before starting to reinvent the wheel, anyone else know an already existing solution? | e-commerce | marketplace | null | null | null | 08/07/2011 09:04:58 | not constructive | OpenSource Marketplace Platform
===
I see that there are many e-commerce open source platforms around, but very few can handle a marketplace, with support for multiple vendors, seller personal page, feedbacks, ....
I've just found a plugin for UberCart, but it doesn't suit my needs.
Before starting to reinvent the wheel, anyone else know an already existing solution? | 4 |
3,618,928 | 09/01/2010 14:09:04 | 68,717 | 02/20/2009 02:05:28 | 108 | 0 | Need help with Backgroundworker | Need help on how to use .Net's Backgroundworker thread for the following purpose to increase UI responsiveness and performance in my .Net winforms application.Since am new to .Net/C#, any code would be helpful.
When user clicks "Calculate" button in UI form,
1.Get a list of categories C from database[this is typically around 10]
2.For each category C, do the following:
a.Call a third-party library, do some processing and calculate category price.
b.Get a list of products[This is typically around 800].
c.Calculate product price using its category price from above.Update this price of each product back in the database using a stored proc.
3.Update the progress back[or report any error message] to a form in UI.
Thanks for reading. | c# | multithreading | backgroundworker | null | null | 09/01/2010 14:27:27 | not a real question | Need help with Backgroundworker
===
Need help on how to use .Net's Backgroundworker thread for the following purpose to increase UI responsiveness and performance in my .Net winforms application.Since am new to .Net/C#, any code would be helpful.
When user clicks "Calculate" button in UI form,
1.Get a list of categories C from database[this is typically around 10]
2.For each category C, do the following:
a.Call a third-party library, do some processing and calculate category price.
b.Get a list of products[This is typically around 800].
c.Calculate product price using its category price from above.Update this price of each product back in the database using a stored proc.
3.Update the progress back[or report any error message] to a form in UI.
Thanks for reading. | 1 |
5,995,884 | 05/13/2011 17:57:14 | 678,342 | 03/26/2011 19:54:07 | 21 | 0 | Usage of function putc | I am working on a C program that I did not write and integrating it with my C++ code. This C program has a character array and usage putc function to print the content of it. Like this:
printf("%c\n","01"[b[i]]);
This is a bit array and can have either ASCII 0 or ASCII 1 (NOT ASCII 48 and 49 PLEASE NOTE). This command prints "0" and "1" perfectly. However, I did not understand the use of "01" in the putc command. I can also print the contents like this:
printf("%d\n",b[i]);
Hence I was just curious. Thanks.
Newbie | c | null | null | null | null | null | open | Usage of function putc
===
I am working on a C program that I did not write and integrating it with my C++ code. This C program has a character array and usage putc function to print the content of it. Like this:
printf("%c\n","01"[b[i]]);
This is a bit array and can have either ASCII 0 or ASCII 1 (NOT ASCII 48 and 49 PLEASE NOTE). This command prints "0" and "1" perfectly. However, I did not understand the use of "01" in the putc command. I can also print the contents like this:
printf("%d\n",b[i]);
Hence I was just curious. Thanks.
Newbie | 0 |
8,453,724 | 12/10/2011 01:40:53 | 1,064,733 | 11/24/2011 22:35:35 | 20 | 0 | How do you make a website with Apache? | Has anyone reading this actually made a site successfully using Apache and has or knows of a step by step tutorial? I know there's a lot that take you up to the "run it on your computer" but nothing about making it public | apache | null | null | null | null | 12/10/2011 01:44:54 | not a real question | How do you make a website with Apache?
===
Has anyone reading this actually made a site successfully using Apache and has or knows of a step by step tutorial? I know there's a lot that take you up to the "run it on your computer" but nothing about making it public | 1 |
5,514,195 | 04/01/2011 13:40:20 | 687,681 | 04/01/2011 13:40:20 | 1 | 0 | Regex help: My regex pattern will match invalid Dictionary | I hope you guys can help me out.
I'm using C# .Net 4.0
I want validate file structure like
<pre><code>
const string dataFileScr = @"
Start 0
{
Next = 1
Author = rk
Date = 2011-03-10
/* Description = simple */
}
PZ 11
{
IA_return()
}
GDC 7
{
Message = 6
Message = 7
Message = 8
Message = 8
RepeatCount = 2
ErrorMessage = 10
ErrorMessage = 11
onKey[5] = 6
onKey[6] = 4
onKey[9] = 11
}
";
</code></pre>
So far I managed to build this regex pattern
<pre>
<code>
const string patternFileScr = @"
^
((?:\[|\s)*
(?<Section>[^\]\r\n]*)
(?:\])*
(?:[\r\n]{0,}|\Z))
(
(?:\{) ### !! improve for .ini file, dont take "{"
(?:[\r\n]{0,}|\Z)
( # Begin capture groups (Key Value Pairs)
(?!\}|\[) # Stop capture groups if a } is found; new section
(?:\s)* # Line with space
(?<Key>[^=]*?) # Any text before the =, matched few as possible
(?:[\s]*=[\s]*) # Get the = now
(?<Value>[^\r\n]*) # Get everything that is not an Line Changes
(?:[\r\n]{0,})
)* # End Capture groups
(?:[\r\n]{0,})
(?:\})?
(?:[\r\n\s]{0,}|\Z)
)*
";
</code></pre>
and c#
<pre>
<code>
Dictionary<string, Dictionary<string, string>> DictDataFileScr
= (from Match m in Regex.Matches(dataFileScr,
patternFileScr,
RegexOptions.IgnorePatternWhitespace | RegexOptions.Multiline)
select new
{
Section = m.Groups["Section"].Value,
kvps = (from cpKey in m.Groups["Key"].Captures.Cast<Capture>().Select((a, i) => new { a.Value, i })
join cpValue in m.Groups["Value"].Captures.Cast<Capture>().Select((b, i) => new { b.Value, i }) on cpKey.i equals cpValue.i
select new KeyValuePair<string, string>(cpKey.Value, cpValue.Value)).OrderBy(_ => _.Key)
.ToDictionary(kvp => kvp.Key, kvp => kvp.Value)
}).ToDictionary(itm => itm.Section, itm => itm.kvps);
</code></pre>
It works, but
1. not for multiple <KEY> = <VALUE> i want group by key and output
<pre><code>
DictDataFileScr["GDC 7"]["Message"] = "6|7|8|8"
</code></pre>
2. not work for .ini file like
<pre><code>
....
[Section]
key = value
...
</code></pre>
3. dont see next section after
<pre><code>
....
PZ 11
{
IA_return()
}
.....
</code></pre>
| c# | .net | regex | linq | dictionary | null | open | Regex help: My regex pattern will match invalid Dictionary
===
I hope you guys can help me out.
I'm using C# .Net 4.0
I want validate file structure like
<pre><code>
const string dataFileScr = @"
Start 0
{
Next = 1
Author = rk
Date = 2011-03-10
/* Description = simple */
}
PZ 11
{
IA_return()
}
GDC 7
{
Message = 6
Message = 7
Message = 8
Message = 8
RepeatCount = 2
ErrorMessage = 10
ErrorMessage = 11
onKey[5] = 6
onKey[6] = 4
onKey[9] = 11
}
";
</code></pre>
So far I managed to build this regex pattern
<pre>
<code>
const string patternFileScr = @"
^
((?:\[|\s)*
(?<Section>[^\]\r\n]*)
(?:\])*
(?:[\r\n]{0,}|\Z))
(
(?:\{) ### !! improve for .ini file, dont take "{"
(?:[\r\n]{0,}|\Z)
( # Begin capture groups (Key Value Pairs)
(?!\}|\[) # Stop capture groups if a } is found; new section
(?:\s)* # Line with space
(?<Key>[^=]*?) # Any text before the =, matched few as possible
(?:[\s]*=[\s]*) # Get the = now
(?<Value>[^\r\n]*) # Get everything that is not an Line Changes
(?:[\r\n]{0,})
)* # End Capture groups
(?:[\r\n]{0,})
(?:\})?
(?:[\r\n\s]{0,}|\Z)
)*
";
</code></pre>
and c#
<pre>
<code>
Dictionary<string, Dictionary<string, string>> DictDataFileScr
= (from Match m in Regex.Matches(dataFileScr,
patternFileScr,
RegexOptions.IgnorePatternWhitespace | RegexOptions.Multiline)
select new
{
Section = m.Groups["Section"].Value,
kvps = (from cpKey in m.Groups["Key"].Captures.Cast<Capture>().Select((a, i) => new { a.Value, i })
join cpValue in m.Groups["Value"].Captures.Cast<Capture>().Select((b, i) => new { b.Value, i }) on cpKey.i equals cpValue.i
select new KeyValuePair<string, string>(cpKey.Value, cpValue.Value)).OrderBy(_ => _.Key)
.ToDictionary(kvp => kvp.Key, kvp => kvp.Value)
}).ToDictionary(itm => itm.Section, itm => itm.kvps);
</code></pre>
It works, but
1. not for multiple <KEY> = <VALUE> i want group by key and output
<pre><code>
DictDataFileScr["GDC 7"]["Message"] = "6|7|8|8"
</code></pre>
2. not work for .ini file like
<pre><code>
....
[Section]
key = value
...
</code></pre>
3. dont see next section after
<pre><code>
....
PZ 11
{
IA_return()
}
.....
</code></pre>
| 0 |
2,514,549 | 03/25/2010 10:08:25 | 292,473 | 03/12/2010 16:12:43 | 43 | 2 | Problem with dropdownbox length | I'm creating a javascript method that populates lists depending on a radio button selected previously. As it depends on animals or plants to populate it, my problem comes when I have to populate it after it's already been populated. I mean, the plants dropdownlist has 88 elements, and the animals is 888, when I try to come back from animals to plants, I get some of the animals. I know that my controller method is working properly because it returns the values I select, so the problem is the javascript method. Here is the code:
if(selector == "sOrder")
alert(document.getElementById(selector).options.length);
for (i = 0; i < document.getElementById(selector).options.length; i++) {
document.getElementById(selector).remove(i);
}
if (selector == "sOrder")
alert(document.getElementById(selector).options.length);
document.getElementById(selector).options[0] = new Option("-select-", "0", true, true);
for (i = 1; i <= data.length; i++) {
document.getElementById(selector).options[i] = new Option(data[i - 1].taxName, data[i - 1].taxRecID);}
Here is the strange thing, when I enter the method I try to erase all the elements of the dropdownlist in order to populate it afterwards. As sOrder is the same selector I had previously selected, I get the elements, the thing is that the first alert I get the proper result, 888, but in the second alert, I should get a 0 right? It shows 444, so when I populate it again it just overrides the first 88 plants and then animals till 444. What am I doing wrong?
Thank you all in advance,
Victor | javascript | null | null | null | null | null | open | Problem with dropdownbox length
===
I'm creating a javascript method that populates lists depending on a radio button selected previously. As it depends on animals or plants to populate it, my problem comes when I have to populate it after it's already been populated. I mean, the plants dropdownlist has 88 elements, and the animals is 888, when I try to come back from animals to plants, I get some of the animals. I know that my controller method is working properly because it returns the values I select, so the problem is the javascript method. Here is the code:
if(selector == "sOrder")
alert(document.getElementById(selector).options.length);
for (i = 0; i < document.getElementById(selector).options.length; i++) {
document.getElementById(selector).remove(i);
}
if (selector == "sOrder")
alert(document.getElementById(selector).options.length);
document.getElementById(selector).options[0] = new Option("-select-", "0", true, true);
for (i = 1; i <= data.length; i++) {
document.getElementById(selector).options[i] = new Option(data[i - 1].taxName, data[i - 1].taxRecID);}
Here is the strange thing, when I enter the method I try to erase all the elements of the dropdownlist in order to populate it afterwards. As sOrder is the same selector I had previously selected, I get the elements, the thing is that the first alert I get the proper result, 888, but in the second alert, I should get a 0 right? It shows 444, so when I populate it again it just overrides the first 88 plants and then animals till 444. What am I doing wrong?
Thank you all in advance,
Victor | 0 |
9,330,172 | 02/17/2012 14:40:26 | 727,071 | 04/27/2011 10:48:30 | 1 | 2 | Books about Mono C# compiler? | Is there any books about Mono C# compiler for basic level understanding? Thanks in advance. | c# | compiler | books | mono | null | 02/17/2012 15:25:44 | not constructive | Books about Mono C# compiler?
===
Is there any books about Mono C# compiler for basic level understanding? Thanks in advance. | 4 |
6,992,455 | 08/09/2011 06:55:50 | 576,372 | 01/14/2011 23:56:19 | 6 | 1 | What's the best approach/tool to create static, multilanguage websites? | The goal is to create a webiste with circa 50 pages. Content will be static (no editing, no changes, what so ever) there will be pictures, paragraphs of text, unordered lists. And... three languages (probably more in the future). I want urls to be translated as well.
I was thinking about Zend Framework, defining routes, creating as many index/actions as I have pages, putting content per action in controller acion files, and $this->translating them in phmtl views. This would allow me to build navigation easy, ang translate urls.
Any other ideas/suggestions? Maybe ZF is not the best choice for the job? | zend-framework | null | null | null | null | 08/09/2011 08:45:31 | not constructive | What's the best approach/tool to create static, multilanguage websites?
===
The goal is to create a webiste with circa 50 pages. Content will be static (no editing, no changes, what so ever) there will be pictures, paragraphs of text, unordered lists. And... three languages (probably more in the future). I want urls to be translated as well.
I was thinking about Zend Framework, defining routes, creating as many index/actions as I have pages, putting content per action in controller acion files, and $this->translating them in phmtl views. This would allow me to build navigation easy, ang translate urls.
Any other ideas/suggestions? Maybe ZF is not the best choice for the job? | 4 |
10,129,422 | 04/12/2012 18:18:51 | 817,527 | 06/27/2011 14:05:26 | 398 | 3 | Some questions on iOS development | I am about to build my first iPhone app.
I have some general questions about the way things should work, and I hope someone could help me out with some information and where I should look.
1. Regarding Push notifications. I understand that the UUID is no more allowed in apple store, and should not be used in apps anymore ? How can I send a specific user a Push notification if I don't have his or her UUID ?
2. Regarding Terms of Use of my app, is there anything covered by apple agreement that should already cover things that I should not worry about once I am on the AppStore?
3. When the app is "Minimized" to the background, How can I still exchange data with my server
and send a push notification if something seems important on the server side ? (seen on apps like Viber, WhatsApp)
Thanks alot in advance, every piece of information/your own wisdom/link to relevant info would be great help.
| iphone | ios | null | null | null | 04/12/2012 18:56:46 | not a real question | Some questions on iOS development
===
I am about to build my first iPhone app.
I have some general questions about the way things should work, and I hope someone could help me out with some information and where I should look.
1. Regarding Push notifications. I understand that the UUID is no more allowed in apple store, and should not be used in apps anymore ? How can I send a specific user a Push notification if I don't have his or her UUID ?
2. Regarding Terms of Use of my app, is there anything covered by apple agreement that should already cover things that I should not worry about once I am on the AppStore?
3. When the app is "Minimized" to the background, How can I still exchange data with my server
and send a push notification if something seems important on the server side ? (seen on apps like Viber, WhatsApp)
Thanks alot in advance, every piece of information/your own wisdom/link to relevant info would be great help.
| 1 |
11,056,816 | 06/15/2012 19:12:11 | 1,382,231 | 05/08/2012 13:49:33 | 1 | 0 | Dynamic Jquery attr() href | I have got a image slider. Each image has its own link.
The slider is generate in PHP with a for loop.
I would like to associate dynamically the image's link from the slider with a link elsewhere on my webpage.
I made this in the php for loop :
[code]
$(document).ready(function()
{ $("#ProgrammeImmobilierNeuf").attr("href", "<?php echo URL.'p-'.$picturesSlider[$i]['id_programme_ws'].'/Programme-immobilier-neuf-'.strtolower($urlVille).'/'.rewriteProgramme($picturesSlider[$i]['nom']).'.html'; ?>");
});
[/code]
This does not update the link.
Can someone help me please ? | jquery | dynamic | for-loop | href | attr | 06/22/2012 04:45:44 | not a real question | Dynamic Jquery attr() href
===
I have got a image slider. Each image has its own link.
The slider is generate in PHP with a for loop.
I would like to associate dynamically the image's link from the slider with a link elsewhere on my webpage.
I made this in the php for loop :
[code]
$(document).ready(function()
{ $("#ProgrammeImmobilierNeuf").attr("href", "<?php echo URL.'p-'.$picturesSlider[$i]['id_programme_ws'].'/Programme-immobilier-neuf-'.strtolower($urlVille).'/'.rewriteProgramme($picturesSlider[$i]['nom']).'.html'; ?>");
});
[/code]
This does not update the link.
Can someone help me please ? | 1 |
3,797,117 | 09/26/2010 08:50:45 | 6,678 | 09/15/2008 12:28:52 | 801 | 47 | How long does it take for GMail to unban an IP blocked for spam? | My site's SMTP had been exploited by spammers. Since then, all mail to GMail addresses is being bounced with the following message:
550-5.7.1 Our system has detected an unusual rate of
550-5.7.1 unsolicited mail originating from your IP address. To protect our
550-5.7.1 users from spam, mail sent from your IP address has been blocked.
550-5.7.1 Please visit http://www.google.com/mail/help/bulk_mail.html to review
550 5.7.1 our Bulk Email Senders Guidelines.
The situation with spammers has been resolved about three months ago, but the IP is still blocked and I have to resort to an external SMTP.
Could anyone give me an estimate (or evidence) on how long does it take for GMail to unblock such an IP? And should I do something else about it? | smtp | gmail | spam | null | null | 09/26/2010 08:52:27 | off topic | How long does it take for GMail to unban an IP blocked for spam?
===
My site's SMTP had been exploited by spammers. Since then, all mail to GMail addresses is being bounced with the following message:
550-5.7.1 Our system has detected an unusual rate of
550-5.7.1 unsolicited mail originating from your IP address. To protect our
550-5.7.1 users from spam, mail sent from your IP address has been blocked.
550-5.7.1 Please visit http://www.google.com/mail/help/bulk_mail.html to review
550 5.7.1 our Bulk Email Senders Guidelines.
The situation with spammers has been resolved about three months ago, but the IP is still blocked and I have to resort to an external SMTP.
Could anyone give me an estimate (or evidence) on how long does it take for GMail to unblock such an IP? And should I do something else about it? | 2 |
9,608,391 | 03/07/2012 20:14:40 | 451,885 | 09/19/2010 11:42:00 | 160 | 18 | writing text file in pipline | i have multiple spider in a single scrapy project, what i need is
i want to write a separate output text file for each spider with sipder name and time stamp.
when i had single spider i was creating file in __init method but now i am trying like this, **upromise** will generate two output files while other will only one.
class MallCrawlerPipeline(object):
def spider_opened(self, spider):
self.aWriter = csv.writer(open('../%s_%s.txt' % (spider.name, datetime.now().strftime("%Y%m%d_%H%M%S")), 'wb'),
delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.aWriter.writerow(['mall', 'store', 'bonus', 'per_action', 'more_than','up_to', 'deal_url', 'category'])
if 'upromise' in spider.name:
self.cWriter = csv.writer(
open('../%s_coupons_%s.txt' % (spider.name, datetime.now().strftime("%Y%m%d_%H%M%S")), 'wb'),
delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.cWriter.writerow(['mall', 'store', 'bonus', 'per_action', 'more_than','up_to', 'deal_url', 'category'])
def process_item(self, item, spider):
self.aWriter.writerow([item['mall'], item['store'], item['bonus'], item['per_action'],
item['more_than'], item['up_to'], item['deal_url'], item['category']])
return item
but i am facing this bug.
File "C:\Users\akhter\Dropbox\akhter\mall_crawler\mall_crawler\pipelines.py", line 24, in process_item
self.aWriter.writerow([item['mall'], item['store'], item['bonus'], item['per_action'],
exceptions.AttributeError: 'MallCrawlerPipeline' object has no attribute 'aWriter'
any help would be appreciated, thanks in advance | python | web-crawler | scrapy | null | null | null | open | writing text file in pipline
===
i have multiple spider in a single scrapy project, what i need is
i want to write a separate output text file for each spider with sipder name and time stamp.
when i had single spider i was creating file in __init method but now i am trying like this, **upromise** will generate two output files while other will only one.
class MallCrawlerPipeline(object):
def spider_opened(self, spider):
self.aWriter = csv.writer(open('../%s_%s.txt' % (spider.name, datetime.now().strftime("%Y%m%d_%H%M%S")), 'wb'),
delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.aWriter.writerow(['mall', 'store', 'bonus', 'per_action', 'more_than','up_to', 'deal_url', 'category'])
if 'upromise' in spider.name:
self.cWriter = csv.writer(
open('../%s_coupons_%s.txt' % (spider.name, datetime.now().strftime("%Y%m%d_%H%M%S")), 'wb'),
delimiter=',', quoting=csv.QUOTE_MINIMAL)
self.cWriter.writerow(['mall', 'store', 'bonus', 'per_action', 'more_than','up_to', 'deal_url', 'category'])
def process_item(self, item, spider):
self.aWriter.writerow([item['mall'], item['store'], item['bonus'], item['per_action'],
item['more_than'], item['up_to'], item['deal_url'], item['category']])
return item
but i am facing this bug.
File "C:\Users\akhter\Dropbox\akhter\mall_crawler\mall_crawler\pipelines.py", line 24, in process_item
self.aWriter.writerow([item['mall'], item['store'], item['bonus'], item['per_action'],
exceptions.AttributeError: 'MallCrawlerPipeline' object has no attribute 'aWriter'
any help would be appreciated, thanks in advance | 0 |
312,922 | 11/23/2008 20:33:55 | 23,571 | 09/29/2008 19:02:10 | 1 | 0 | Pressing Enter on TextBox in Silverlight | I am working on a silverlight app that you need to enter information into a textbox and then just hit enter. Well there is no onclick event, that I could find, so what I did was use the onkeypressup event and check if it was the enter key that was pressed if so do "blah".
It just feels like there is a better way to do this. So the question is, is there? | silverlight | silverlight-2.0 | c# | null | null | null | open | Pressing Enter on TextBox in Silverlight
===
I am working on a silverlight app that you need to enter information into a textbox and then just hit enter. Well there is no onclick event, that I could find, so what I did was use the onkeypressup event and check if it was the enter key that was pressed if so do "blah".
It just feels like there is a better way to do this. So the question is, is there? | 0 |
7,294,238 | 09/03/2011 16:10:27 | 573,082 | 12/29/2010 11:31:34 | 419 | 5 | How to write simple parser for if and while statements? | I need to write a simple parser that will convert the tokens to parser tree.
I've already wrote LexicalAnalyzer that returns the tokens. Now, I want
to write rules for "if and while" statements(for the beginning), so I could pass this rules to parser and it will create a tree.
So i need to write the parser in the way, so I could write new rules.
Can you advise me how I can implement it in C#? Can you give me some example?
Thank you
| c# | parsing | lexical-analysis | lexical-scanner | null | 09/03/2011 16:31:08 | not a real question | How to write simple parser for if and while statements?
===
I need to write a simple parser that will convert the tokens to parser tree.
I've already wrote LexicalAnalyzer that returns the tokens. Now, I want
to write rules for "if and while" statements(for the beginning), so I could pass this rules to parser and it will create a tree.
So i need to write the parser in the way, so I could write new rules.
Can you advise me how I can implement it in C#? Can you give me some example?
Thank you
| 1 |
10,543,622 | 05/10/2012 23:45:38 | 1,388,323 | 05/10/2012 23:39:30 | 1 | 0 | Run program script bash | Hay guys i am running a dedicated server, i am running ammong other things a terraria server.
for the program to run i have to keep a ssh connection open to the dedicated server this, this is not the best option because putty can freeze up a lot. so i want to be able to launch the program and put in the options for it in the bash script e.g
once launched the program will print this to screen.
please choose world
1.XXXXX
2.YYYYY
and i have to chose 1 or 2 i want to be able to do all this in the bash script so it can run in the background without me needing a terminal window open.
This is what i have so far i can launch the program
#!/bin/sh
/usr/bin/mono /etc/tshockter/TerrariaServer.exe "$@"
im a networker not a scripter so this is kinda hard for me.
thanks
Ben | bash | null | null | null | null | 05/11/2012 09:54:22 | not a real question | Run program script bash
===
Hay guys i am running a dedicated server, i am running ammong other things a terraria server.
for the program to run i have to keep a ssh connection open to the dedicated server this, this is not the best option because putty can freeze up a lot. so i want to be able to launch the program and put in the options for it in the bash script e.g
once launched the program will print this to screen.
please choose world
1.XXXXX
2.YYYYY
and i have to chose 1 or 2 i want to be able to do all this in the bash script so it can run in the background without me needing a terminal window open.
This is what i have so far i can launch the program
#!/bin/sh
/usr/bin/mono /etc/tshockter/TerrariaServer.exe "$@"
im a networker not a scripter so this is kinda hard for me.
thanks
Ben | 1 |
7,625,142 | 10/02/2011 07:39:50 | 974,229 | 10/01/2011 07:05:05 | 1 | 0 | how to use iPhone private framework | Can anyone help in using Private Frameworks in XCode 4.1 for ios 4.0 or later.
<br>
any link for download, article and tutorial will be useful.
<br>
Thanks, | iphone | ios | xcode | frameworks | private | 10/14/2011 23:39:29 | not constructive | how to use iPhone private framework
===
Can anyone help in using Private Frameworks in XCode 4.1 for ios 4.0 or later.
<br>
any link for download, article and tutorial will be useful.
<br>
Thanks, | 4 |
7,102,577 | 08/18/2011 04:57:31 | 899,907 | 08/18/2011 04:50:58 | 1 | 1 | Releated to jquery | I want to parse the data which in remote server using URL and this URL contains the xml file
Please give me the sample code for this using jquery and in advance thank you | jquery-ui | null | null | null | null | 08/19/2011 13:03:56 | not a real question | Releated to jquery
===
I want to parse the data which in remote server using URL and this URL contains the xml file
Please give me the sample code for this using jquery and in advance thank you | 1 |
9,029,500 | 01/27/2012 05:54:40 | 1,150,119 | 01/15/2012 06:33:19 | 1 | 1 | Android chat application | I'm am very new to android and learning it.I am creating android chat application using eclipse and i'm not getting "how to display chat messages of the sender and receiver on the screen. Which widget i must use to implement this". | java | android | eclipse | null | null | 01/27/2012 06:34:18 | not a real question | Android chat application
===
I'm am very new to android and learning it.I am creating android chat application using eclipse and i'm not getting "how to display chat messages of the sender and receiver on the screen. Which widget i must use to implement this". | 1 |
7,549,816 | 09/26/2011 01:19:24 | 895,174 | 08/15/2011 15:24:25 | 191 | 2 | push empty array as value of an array key | I need to push a new array as the value of a parent array key.
this is my array.
asd[
[hey],
[hi]
]
i would like to return.
asd[
[hey]=>[],
[hi]
]
i do:
var asd = new Array();
asd.push(hey);
asd.push(hi);
asd[hi].push(new Array());
so obviously is not ok my code | javascript | jquery | arrays | null | null | 09/26/2011 04:42:00 | not a real question | push empty array as value of an array key
===
I need to push a new array as the value of a parent array key.
this is my array.
asd[
[hey],
[hi]
]
i would like to return.
asd[
[hey]=>[],
[hi]
]
i do:
var asd = new Array();
asd.push(hey);
asd.push(hi);
asd[hi].push(new Array());
so obviously is not ok my code | 1 |
11,600,493 | 07/22/2012 13:00:50 | 807,089 | 06/20/2011 17:22:10 | 128 | 1 | Is it possible to reset an Apple developer account? | I find Apple developer accounts extremely confusing. I got mine a few months ago and struggled with almost everything I tried to do. As a consequence, I ended up with a ton of unused certificates and app IDs and provisioning profiles, etc. Today, I decided that I wanted to start from a clean slate so I started deleting everything that I could find that was related to my account. However, I now have some provisioning profiles and app IDs left over that I can't even delete.
Is there any way that I can reset the entire account so I can start out with a completely clean slate? | apple | account | null | null | null | 07/23/2012 12:27:31 | off topic | Is it possible to reset an Apple developer account?
===
I find Apple developer accounts extremely confusing. I got mine a few months ago and struggled with almost everything I tried to do. As a consequence, I ended up with a ton of unused certificates and app IDs and provisioning profiles, etc. Today, I decided that I wanted to start from a clean slate so I started deleting everything that I could find that was related to my account. However, I now have some provisioning profiles and app IDs left over that I can't even delete.
Is there any way that I can reset the entire account so I can start out with a completely clean slate? | 2 |
113,195 | 09/22/2008 04:33:54 | 20,165 | 09/22/2008 02:12:28 | 1 | 0 | What special 'trick' do you use to keep focus on your current task amoung the mass distractions of the net? | I find it quite challenging to keep myself focused continuously on the current task while continuously being distracted by some random email, chat, blog, rss feed... etc.
Several time I think of unplugging my net connection and concentrate on the task at hand. It works, till I feel that I should search up something and few moments later I find myself stocking around those distractions again.
What special 'trick' do you use to keep yourself focused for a continuous block of time?
| self-improvement | null | null | null | null | 03/01/2012 19:48:10 | not constructive | What special 'trick' do you use to keep focus on your current task amoung the mass distractions of the net?
===
I find it quite challenging to keep myself focused continuously on the current task while continuously being distracted by some random email, chat, blog, rss feed... etc.
Several time I think of unplugging my net connection and concentrate on the task at hand. It works, till I feel that I should search up something and few moments later I find myself stocking around those distractions again.
What special 'trick' do you use to keep yourself focused for a continuous block of time?
| 4 |
1,875,863 | 12/09/2009 18:32:29 | 79,439 | 03/18/2009 11:04:29 | 3,182 | 127 | Should you include a much-requested feature that is fundamentally wrong? | In our main product, we've got a feature request that's been around for a couple of years now that's been requested quite a few times. It's technically easy to implement, the problem is that it will fundamentally change the concept of what the tool does, and will likely cause more bug reports as people mis-use the new feature to match the new concept (which we won't be able to work around). We've got a separate feature that works around the issue quite well, but we still get requests to implement the new one.
Should we
- listen to our users, and implement the new feature, even though it changes the concept of what the product does and what we want it to do, and will increase support costs
- add some more support articles explaining how to use the workaround
- make the workaround more obvious in the UI so the users find it more often
- something else | product-management | features | null | null | null | 12/10/2009 16:59:26 | off topic | Should you include a much-requested feature that is fundamentally wrong?
===
In our main product, we've got a feature request that's been around for a couple of years now that's been requested quite a few times. It's technically easy to implement, the problem is that it will fundamentally change the concept of what the tool does, and will likely cause more bug reports as people mis-use the new feature to match the new concept (which we won't be able to work around). We've got a separate feature that works around the issue quite well, but we still get requests to implement the new one.
Should we
- listen to our users, and implement the new feature, even though it changes the concept of what the product does and what we want it to do, and will increase support costs
- add some more support articles explaining how to use the workaround
- make the workaround more obvious in the UI so the users find it more often
- something else | 2 |
6,069,658 | 05/20/2011 09:01:41 | 44,086 | 12/07/2008 12:27:01 | 2,590 | 109 | Set an constructor-arg of type XmlElement from XML Spring.NET IoC config. | Imagine the following:
class Foo {
public Foo(XmlElement xml) { ... }
}
I want to instantiate this class using Spring.NET and XmlApplicationContext.
The XML the XmlElement is generated from should be contained in the XmlApplicationContext configuration file so it can be edited easily.
So it should look somethign like this:
<objects>
<object id="foo" type="Foo, Foo">
<constructor-arg name="xml" ???>
<???>
<element1 attr="bla" />
<element2 xyz="abc>
<... />
</element2>
</???>
</constructor-arg>
</object>
</objects>
The element <???\> should be the XmlElement injected.
Is there any way to achieve this?
I know I could pass a filename and load the inner XML by hand. This will be the solution if there is no way to do other. But for convenience to the user I most like the "embedded XML" solution :-) | xml | inversion-of-control | spring.net | null | null | null | open | Set an constructor-arg of type XmlElement from XML Spring.NET IoC config.
===
Imagine the following:
class Foo {
public Foo(XmlElement xml) { ... }
}
I want to instantiate this class using Spring.NET and XmlApplicationContext.
The XML the XmlElement is generated from should be contained in the XmlApplicationContext configuration file so it can be edited easily.
So it should look somethign like this:
<objects>
<object id="foo" type="Foo, Foo">
<constructor-arg name="xml" ???>
<???>
<element1 attr="bla" />
<element2 xyz="abc>
<... />
</element2>
</???>
</constructor-arg>
</object>
</objects>
The element <???\> should be the XmlElement injected.
Is there any way to achieve this?
I know I could pass a filename and load the inner XML by hand. This will be the solution if there is no way to do other. But for convenience to the user I most like the "embedded XML" solution :-) | 0 |
8,923,218 | 01/19/2012 08:47:07 | 688,596 | 04/02/2011 04:19:41 | 271 | 0 | how to implement code for barcode and assigning details to textview? | hi all how to implement code for barcode after captured the barcode image? and how to assign the barcode details to the textview? help me to solve the problem in android | android | android-layout | null | null | null | 01/19/2012 09:52:15 | not a real question | how to implement code for barcode and assigning details to textview?
===
hi all how to implement code for barcode after captured the barcode image? and how to assign the barcode details to the textview? help me to solve the problem in android | 1 |
5,135,841 | 02/27/2011 20:47:53 | 342,279 | 05/16/2010 08:28:06 | 155 | 4 | syncronise simple html list with a drop down list in a form | i want to synchronise a simple html list, like the one below with a drop down list in a form
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
#navlist li
{
display: inline;
list-style-type: none;
padding-right: 20px;
}
meaning that, for any selected element from the list, using a javascript, i want to be able on one side to memorise the selected item, and on the other part to update the elements in a drop down list. is it possbile?
thank you! | javascript | jquery | html | list | select | null | open | syncronise simple html list with a drop down list in a form
===
i want to synchronise a simple html list, like the one below with a drop down list in a form
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
#navlist li
{
display: inline;
list-style-type: none;
padding-right: 20px;
}
meaning that, for any selected element from the list, using a javascript, i want to be able on one side to memorise the selected item, and on the other part to update the elements in a drop down list. is it possbile?
thank you! | 0 |
10,732,538 | 05/24/2012 06:51:58 | 1,414,299 | 05/24/2012 06:49:01 | 1 | 0 | Visual Studio Standalone applications | I want to make a windows standalone application using a database using triggers and procedures.
I want to install it in multiple machines ,so is it possible that I make only one installer and just run it on other machine and all the database configuration is done using the installer.
Is it possible to run an application on another pc without pre-installing .net framework on it ? | c# | visual-studio | null | null | null | 05/24/2012 22:05:06 | off topic | Visual Studio Standalone applications
===
I want to make a windows standalone application using a database using triggers and procedures.
I want to install it in multiple machines ,so is it possible that I make only one installer and just run it on other machine and all the database configuration is done using the installer.
Is it possible to run an application on another pc without pre-installing .net framework on it ? | 2 |
5,497,210 | 03/31/2011 08:39:52 | 685,327 | 03/31/2011 08:22:29 | 1 | 0 | Parsing JAVA Source Code | I am asked to develop a software which should be able to create Flow chart/ Control Flow of the input JAVA source code. So I started researching on it and arrived at following solutions:
To create flow chart/control flow I have to recognize controlling statements and function calls made in the given source code Now I have two ways of recognizing:
1. Parse the Source code by writing my own grammars (A complex solution I think). I am thinking to use Antlr for this.
2. Read input source code files as text and search for the specific patterns (May become inefficient)
Am I write here??? or I am missing something very fundamental and simple?? which approach would take less time and do the work efficiently?? any other suggestions in this regard will be welcome too....Any other efficient approach would help cause the input source code may span multiple files and can be fairly complex.
I am good in .NET languages but this is my first big project in JAVA...I have basic knowledge of Compiler Design so writing grammars should not be impossible for me....
Sorry If I am being unclear....plz ask for any clarifications..... | java | algorithm | parsing | compiler | logic | null | open | Parsing JAVA Source Code
===
I am asked to develop a software which should be able to create Flow chart/ Control Flow of the input JAVA source code. So I started researching on it and arrived at following solutions:
To create flow chart/control flow I have to recognize controlling statements and function calls made in the given source code Now I have two ways of recognizing:
1. Parse the Source code by writing my own grammars (A complex solution I think). I am thinking to use Antlr for this.
2. Read input source code files as text and search for the specific patterns (May become inefficient)
Am I write here??? or I am missing something very fundamental and simple?? which approach would take less time and do the work efficiently?? any other suggestions in this regard will be welcome too....Any other efficient approach would help cause the input source code may span multiple files and can be fairly complex.
I am good in .NET languages but this is my first big project in JAVA...I have basic knowledge of Compiler Design so writing grammars should not be impossible for me....
Sorry If I am being unclear....plz ask for any clarifications..... | 0 |
851,980 | 05/12/2009 09:41:46 | 82,865 | 03/25/2009 23:10:38 | 1,104 | 63 | Linux Programming Book | <p>I'm looking for a good book on Linux system programming and wondered whether anybody could recommend an up-to-date appropriate book that covers the subject well. Things like:</p>
<ul>
<li>I/O and fileystems </li>
<li>Thread and processes</li>
<li>etc...</li>
</ul>
<p>Can anybody suggest an appropriate book that they've read/used, not just something that they've seen on Amazon : ) many thanks...</p>
| linux | development | operating-system | null | null | 09/18/2011 13:47:04 | not constructive | Linux Programming Book
===
<p>I'm looking for a good book on Linux system programming and wondered whether anybody could recommend an up-to-date appropriate book that covers the subject well. Things like:</p>
<ul>
<li>I/O and fileystems </li>
<li>Thread and processes</li>
<li>etc...</li>
</ul>
<p>Can anybody suggest an appropriate book that they've read/used, not just something that they've seen on Amazon : ) many thanks...</p>
| 4 |
1,208,372 | 07/30/2009 18:19:20 | 22,996 | 09/27/2008 15:12:31 | 795 | 22 | Where to learn right skills for selling software product/service? | Stackoverflow is really amazing. Last year when I joined the community was a little sceptical because there were already a lot of sites with similar content (although the concept wiki-forum is new to me) but it outpassed almost all (or just all) similar pages and the investment for the development in financial and technical sense probably wasn't as big as in some other business attempts which in the end fail inspite of great ideas behind.
Most of engineers focus on technology and look at the product from technical perspective. Recently I heard about some iPhone app (don't want to name it and offend anyone) which I would not invest a single minute for the development as I consider it useless and unethical but the guy who developed it made a fortune.
To make it short there are a lot of great ideas which fail and there are a lot of useless products which make big money (by the way don't get me wrong... I don't consider this site useless). Obviously there is a gap between the idea (or finished product) and selling and it would be really useful for engineers to achieve at least a bit of skills to promote their products.
I would be really thankful if anyone of you could suggest any good material to learn about business which would be useful to people who spend most of the time in research and development. | non-technical | non-programming-related | business | null | null | 02/09/2012 14:16:30 | off topic | Where to learn right skills for selling software product/service?
===
Stackoverflow is really amazing. Last year when I joined the community was a little sceptical because there were already a lot of sites with similar content (although the concept wiki-forum is new to me) but it outpassed almost all (or just all) similar pages and the investment for the development in financial and technical sense probably wasn't as big as in some other business attempts which in the end fail inspite of great ideas behind.
Most of engineers focus on technology and look at the product from technical perspective. Recently I heard about some iPhone app (don't want to name it and offend anyone) which I would not invest a single minute for the development as I consider it useless and unethical but the guy who developed it made a fortune.
To make it short there are a lot of great ideas which fail and there are a lot of useless products which make big money (by the way don't get me wrong... I don't consider this site useless). Obviously there is a gap between the idea (or finished product) and selling and it would be really useful for engineers to achieve at least a bit of skills to promote their products.
I would be really thankful if anyone of you could suggest any good material to learn about business which would be useful to people who spend most of the time in research and development. | 2 |
6,553,767 | 07/01/2011 22:23:23 | 331,000 | 05/02/2010 21:44:58 | 96 | 4 | Javascript browser MMORPG | How do you think - is it possible to make (in HTML5 canvas) MMORPG game ?
If yes - what technologies on server-side whould you use?
How would you manage high loads? | html5 | canvas | mmorpg | null | null | 07/03/2011 12:43:26 | not constructive | Javascript browser MMORPG
===
How do you think - is it possible to make (in HTML5 canvas) MMORPG game ?
If yes - what technologies on server-side whould you use?
How would you manage high loads? | 4 |
7,455,241 | 09/17/2011 13:51:22 | 950,295 | 09/17/2011 13:46:05 | 1 | 0 | MIPS and embedded systems | Why is MIPS usually used on embedded systems? Is it because most embedded systems use RISC? Why would they prefer RISC over CISC? | embedded | mips | null | null | null | 09/17/2011 19:43:58 | off topic | MIPS and embedded systems
===
Why is MIPS usually used on embedded systems? Is it because most embedded systems use RISC? Why would they prefer RISC over CISC? | 2 |
9,032,826 | 01/27/2012 11:46:51 | 820,181 | 06/29/2011 00:23:14 | 12 | 2 | Google Analytics: I'm tracking Like button clicks, but how can I track clicks on the Page link? | I use [ga_social_tracking.js][1] to track Likes done via the Facebook Fan Box (HTML5).
That works fine, but I also want to track clicks on the link to the Page itself. I think many go to the Page and [i]then[/i] like the Page, instead of liking directly using the box...
How can I achieve this?
[1]: http://code.google.com/p/analytics-api-samples/source/browse/trunk/src/tracking/javascript/v5/social/ga_social_tracking.js | facebook | analytics | facebook-social-plugins | null | null | null | open | Google Analytics: I'm tracking Like button clicks, but how can I track clicks on the Page link?
===
I use [ga_social_tracking.js][1] to track Likes done via the Facebook Fan Box (HTML5).
That works fine, but I also want to track clicks on the link to the Page itself. I think many go to the Page and [i]then[/i] like the Page, instead of liking directly using the box...
How can I achieve this?
[1]: http://code.google.com/p/analytics-api-samples/source/browse/trunk/src/tracking/javascript/v5/social/ga_social_tracking.js | 0 |
8,441,425 | 12/09/2011 05:22:10 | 1,069,270 | 11/28/2011 11:56:55 | 1 | 0 | PHP - Differences between those functions | what's the differences between :
array_diff_assoc() & array_diff_uassoc() ?
and how I benefit from using those functions (need an example) ? | php | arrays | null | null | null | 06/07/2012 13:09:06 | not constructive | PHP - Differences between those functions
===
what's the differences between :
array_diff_assoc() & array_diff_uassoc() ?
and how I benefit from using those functions (need an example) ? | 4 |
5,905,762 | 05/06/2011 00:58:43 | 708,678 | 04/14/2011 20:00:45 | 37 | 0 | php problem not sure what is wrong | I am learning PHP and copied this piece of code from the book.
<?php
require_once('bookmark_fns.php');
do_html_header('');
display_site_info();
display_login_form();
do_html_footer();
?>
I am running it in IE and I get The website cannot display the page message.
I tried echo"hello"; and that worked fine. Any ideas of why this would not work. I wish I could give more detail, but am still unfamilair with PHP | php | null | null | null | null | null | open | php problem not sure what is wrong
===
I am learning PHP and copied this piece of code from the book.
<?php
require_once('bookmark_fns.php');
do_html_header('');
display_site_info();
display_login_form();
do_html_footer();
?>
I am running it in IE and I get The website cannot display the page message.
I tried echo"hello"; and that worked fine. Any ideas of why this would not work. I wish I could give more detail, but am still unfamilair with PHP | 0 |
5,205,507 | 03/05/2011 17:34:12 | 643,954 | 03/04/2011 01:30:41 | 3 | 0 | Count only null values in two different columns and show in one select statement | I want to count just the null values in a specific column and all the null values in another
specific column, however i want my result to have both of these results shown in one table.
Here is what i have so far:
Select Count(*) as 'Column1Count', Count(*) as 'Column2Count'
from table1
Where column1 is null
and column2 is null
please help | mysql | sql | database | select | count | null | open | Count only null values in two different columns and show in one select statement
===
I want to count just the null values in a specific column and all the null values in another
specific column, however i want my result to have both of these results shown in one table.
Here is what i have so far:
Select Count(*) as 'Column1Count', Count(*) as 'Column2Count'
from table1
Where column1 is null
and column2 is null
please help | 0 |
1,049,027 | 06/26/2009 13:07:08 | 82,062 | 03/24/2009 15:01:30 | 790 | 88 | ASP.NET MVC, strongly typed views, partial view parameters glitch. | If i got view which inherits from:
System.Web.Mvc.ViewPage<Foo>
Where Foo has a property Bar with a type string
And view wants to render strongly typed partial view which inherits from:
System.Web.Mvc.ViewUserControl<string>
like this:
Html.RenderPartial("_Bar", Model.Bar);%>
Then why it will throw this:
>The model item passed into the dictionary is of type 'Foo'
but this dictionary requires a model item of type 'System.String'.
when bar is not initialized?
More specific: why it passes Foo, where it should pass null? | asp.net-mvc | foobar | parameters | null | strongly-typed-view | null | open | ASP.NET MVC, strongly typed views, partial view parameters glitch.
===
If i got view which inherits from:
System.Web.Mvc.ViewPage<Foo>
Where Foo has a property Bar with a type string
And view wants to render strongly typed partial view which inherits from:
System.Web.Mvc.ViewUserControl<string>
like this:
Html.RenderPartial("_Bar", Model.Bar);%>
Then why it will throw this:
>The model item passed into the dictionary is of type 'Foo'
but this dictionary requires a model item of type 'System.String'.
when bar is not initialized?
More specific: why it passes Foo, where it should pass null? | 0 |
3,220,140 | 07/10/2010 17:23:19 | 167,586 | 09/03/2009 00:30:51 | 950 | 89 | Allow specific number of NSWindow copies to be visible | I have a button in my application, when you click it it opens a new NSWindow. However, if you keep on clicking it it will open another NSWindow. How can I limit the number of visible windows? | cocoa | count | nswindow | null | null | null | open | Allow specific number of NSWindow copies to be visible
===
I have a button in my application, when you click it it opens a new NSWindow. However, if you keep on clicking it it will open another NSWindow. How can I limit the number of visible windows? | 0 |
10,619,670 | 05/16/2012 13:32:22 | 799,622 | 06/15/2011 13:02:15 | 136 | 19 | Send url in php mail | I send a mp3 file download url which was taken from database and mailed to an user in php.
When the links are triggerd to users,
- some links contain "!" marks and No hyperlink is generated.
- In some of the links, download.php file is downloaded.
Note:
When i print the message sent to mail, all the links are working fine. Only the problem in mail. i checked with Yahoo, and Gmail. Both have the same problem in same files.
`$this->_res['Song_Info']` contains the information of all mp3 files such as name , links and so on...
$emailto = "xxxx@yahoo.com";
$user_name = $this->_res['User_Info']['Name'];
$header = "MIME-Version: 1.0" . "\r\n";
$header.= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$header.= "From:no-reply@example.com\r\n";
header.= "Bcc: yyy@gmail.com\r\n";
$message = "<table>";
$message = $message. "<tr><th align='left' colspan='3'>Dear user</th><tr>";
$message = $message."<tr><td colspan='3'>Here is the Download links</td></tr>";
$message = $message."<tr><td colspan='3'></td></tr>";
foreach ($this->_res['Song_Info'] as $key => $value) {
$message = $message."<tr><td colspan='3'><a href='www.example.com/download.php?dlink='.trim($value['Song_Url'])."'>".trim($value['Song_Name'])."<a></td></tr>";
}
$message = $message."<tr><td colspan='3'></td></tr>";
$subject = "Download Links";
mail($emailto,$subject,$message,$header);
Thanks
| php | url | phpmailer | phpmail | null | null | open | Send url in php mail
===
I send a mp3 file download url which was taken from database and mailed to an user in php.
When the links are triggerd to users,
- some links contain "!" marks and No hyperlink is generated.
- In some of the links, download.php file is downloaded.
Note:
When i print the message sent to mail, all the links are working fine. Only the problem in mail. i checked with Yahoo, and Gmail. Both have the same problem in same files.
`$this->_res['Song_Info']` contains the information of all mp3 files such as name , links and so on...
$emailto = "xxxx@yahoo.com";
$user_name = $this->_res['User_Info']['Name'];
$header = "MIME-Version: 1.0" . "\r\n";
$header.= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$header.= "From:no-reply@example.com\r\n";
header.= "Bcc: yyy@gmail.com\r\n";
$message = "<table>";
$message = $message. "<tr><th align='left' colspan='3'>Dear user</th><tr>";
$message = $message."<tr><td colspan='3'>Here is the Download links</td></tr>";
$message = $message."<tr><td colspan='3'></td></tr>";
foreach ($this->_res['Song_Info'] as $key => $value) {
$message = $message."<tr><td colspan='3'><a href='www.example.com/download.php?dlink='.trim($value['Song_Url'])."'>".trim($value['Song_Name'])."<a></td></tr>";
}
$message = $message."<tr><td colspan='3'></td></tr>";
$subject = "Download Links";
mail($emailto,$subject,$message,$header);
Thanks
| 0 |
7,221,500 | 08/28/2011 14:15:36 | 381,416 | 07/01/2010 18:46:42 | 26 | 2 | iOS application crashes when trying to insert new row in UITableView | [self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:YES];
[self.tableView endUpdates];
This piece of code crashes my iOS application and returns the following error:
**Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (0) must be equal to the number of rows contained in that section before the update (0), plus or minus the number of rows inserted or deleted from that section (1 inserted, 0 deleted).**
Can someone tell me why? And how come it says that the number of rows after the update is zero, when it at the same time says _**1 inserted**, 0 deleted_? | ios | uitableview | null | null | null | null | open | iOS application crashes when trying to insert new row in UITableView
===
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:YES];
[self.tableView endUpdates];
This piece of code crashes my iOS application and returns the following error:
**Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (0) must be equal to the number of rows contained in that section before the update (0), plus or minus the number of rows inserted or deleted from that section (1 inserted, 0 deleted).**
Can someone tell me why? And how come it says that the number of rows after the update is zero, when it at the same time says _**1 inserted**, 0 deleted_? | 0 |
11,669,942 | 07/26/2012 13:04:23 | 1,554,652 | 07/26/2012 12:25:42 | 1 | 0 | Which Encryption is this source | can every one help me to say, how i can encrypt these code?
<?php $GLOBALS[' Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø'] = $_FILES; ?>
<?php
<?php
require_once chr(65).chr(100).chr(109).chr(105).chr(110).chr(67).chr(111).chr(110).chr(116).chr(114).chr(111).chr(108).chr(108).chr(101).chr(114).chr(46).chr(112).chr(104).chr(112);class WP_Amazonimportproducts_SyncController extends WP_Amazonimportproducts_AdminController{protected function _isAllowed(){return Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x69\x73\x41\x6c\x6c\x6f\x77\x65\x64"}(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(115).chr(121).chr(110).chr(99));}private function _initSync(){$this->{"\x5f\x74\x69\x74\x6c\x65"}($this->{"\x5f\x5f"}(chr(67).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103)))->{"\x5f\x74\x69\x74\x6c\x65"}($this->{"\x5f\x5f"}(chr(87).chr(80).chr(58).chr(32).chr(65).chr(109).chr(97).chr(122).chr(111).chr(110).chr(32).chr(73).chr(109).chr(112).chr(111).chr(114).chr(116)))->{"\x5f\x74\x69\x74\x6c\x65"}($this->{"\x5f\x5f"}(chr(83).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(97).chr(116).chr(105).chr(111).chr(110)));return $this;}public function indexAction(){$this->{"\x5f\x69\x6e\x69\x74\x53\x79\x6e\x63"}();$this->{"\x6c\x6f\x61\x64\x4c\x61\x79\x6f\x75\x74"}();$this->{"\x5f\x73\x65\x74\x41\x63\x74\x69\x76\x65\x4d\x65\x6e\x75"}(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(115).chr(121).chr(110).chr(99));$this->{"\x72\x65\x6e\x64\x65\x72\x4c\x61\x79\x6f\x75\x74"}();}public function resetparkingAction(){$ =Mage::getModel(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116))->{"\x67\x65\x74\x43\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e"}()->{"\x61\x64\x64\x41\x74\x74\x72\x69\x62\x75\x74\x65\x54\x6f\x46\x69\x6c\x74\x65\x72"}(chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(97).chr(115).chr(105).chr(110),array (chr(110).chr(101).chr(113)=>''))->{"\x6c\x6f\x61\x64"}();$ =array ();foreach ($ as $ ){$ []=$ ->{"\x67\x65\x74\x45\x6e\x74\x69\x74\x79\x49\x64"}();}$ =(int) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(115).chr(116).chr(111).chr(114).chr(101),0);$ =date(chr(89).chr(45).chr(109).chr(45).chr(100).chr(32).chr(72).chr(58).chr(105).chr(58).chr(115));try {Mage::getSingleton(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(95).chr(97).chr(99).chr(116).chr(105).chr(111).chr(110))->{"\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73"}($ ,array (chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(108).chr(97).chr(115).chr(116).chr(95).chr(116).chr(111).chr(117).chr(99).chr(104)=>$ ,chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(108).chr(97).chr(115).chr(116).chr(95).chr(117).chr(112).chr(100).chr(97).chr(116).chr(101)=>$ ),$ );$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x53\x75\x63\x63\x65\x73\x73"}($this->{"\x5f\x5f"}(chr(84).chr(111).chr(116).chr(97).chr(108).chr(32).chr(111).chr(102).chr(32).chr(37).chr(100).chr(32).chr(114).chr(101).chr(99).chr(111).chr(114).chr(100).chr(40).chr(115).chr(41).chr(32).chr(104).chr(97).chr(118).chr(101).chr(32).chr(98).chr(101).chr(101).chr(110).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(101).chr(100).chr(46),count($ )));}catch (Mage_Core_Model_Exception$ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($ ->{"\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65"}());}catch (Exception $ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x78\x63\x65\x70\x74\x69\x6f\x6e"}($ ,$this->{"\x5f\x5f"}(chr(65).chr(110).chr(32).chr(101).chr(114).chr(114).chr(111).chr(114).chr(32).chr(111).chr(99).chr(99).chr(117).chr(114).chr(114).chr(101).chr(100).chr(32).chr(119).chr(104).chr(105).chr(108).chr(101).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(105).chr(110).chr(103).chr(32).chr(116).chr(104).chr(101).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(40).chr(115).chr(41).chr(32).chr(112).chr(97).chr(114).chr(107).chr(105).chr(110).chr(103).chr(32).chr(116).chr(105).chr(109).chr(101).chr(46)));}$this->{"\x5f\x72\x65\x64\x69\x72\x65\x63\x74"}(chr(42).chr(47).chr(42).chr(47),array (chr(115).chr(116).chr(111).chr(114).chr(101)=>$ ));}public function reloadAction(){$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d\x73"}();Mage::getModel(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(111).chr(98).chr(115).chr(101).chr(114).chr(118).chr(101).chr(114))->{"\x72\x65\x6c\x6f\x61\x64"}($ [chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(73).chr(100)]);$ =Mage::registry(chr(99).chr(111).chr(117).chr(110).chr(116).chr(83).chr(121).chr(110).chr(99));if ($ )$ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(85).chr(112).chr(100).chr(97).chr(116).chr(101).chr(100).chr(32).chr(115).chr(117).chr(99).chr(99).chr(101).chr(115).chr(115).chr(102).chr(117).chr(108).chr(108).chr(121));else $ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(85).chr(112).chr(100).chr(97).chr(116).chr(101).chr(32).chr(102).chr(97).chr(105).chr(108).chr(101).chr(100));$ [chr(102).chr(105).chr(110).chr(105).chr(115).chr(104)]=true;$ =Mage::registry(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(83).chr(121).chr(110).chr(99).chr(69).chr(114).chr(114).chr(111).chr(114).chr(77).chr(101).chr(115).chr(115).chr(97).chr(103).chr(101));$ [chr(101).chr(114).chr(114).chr(111).chr(114)]=$ ?$ :'';$this->{"\x67\x65\x74\x52\x65\x73\x70\x6f\x6e\x73\x65"}()->{"\x73\x65\x74\x42\x6f\x64\x79"}(Zend_Json::encode($ ));}public function processAction(){$ =array ();$ =(int) Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}();$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(115).chr(116).chr(97).chr(114).chr(116).chr(80).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115))?1:0;if ($ )$ =0;if (!$ ){Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}(1);$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d\x73"}();if (isset ($ [chr(115).chr(116).chr(97).chr(114).chr(116).chr(80).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115)])&& $ [chr(115).chr(116).chr(97).chr(114).chr(116).chr(80).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115)]){$ =0;$ =0;$ =array ();$ =0;}else {$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x53\x79\x6e\x63\x50\x72\x6f\x64\x75\x63\x74\x73\x43\x6f\x75\x6e\x74"}();$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x53\x79\x6e\x63\x43\x69\x72\x63\x6c\x65"}();$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x53\x79\x6e\x63\x53\x74\x61\x72\x74\x49\x64\x73"}();$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x45\x6d\x70\x74\x79\x43\x79\x63\x6c\x65\x73"}();}Mage::getModel(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(111).chr(98).chr(115).chr(101).chr(114).chr(118).chr(101).chr(114))->{"\x73\x79\x6e\x63"}(true);$ =Mage::registry(chr(99).chr(111).chr(117).chr(110).chr(116).chr(83).chr(121).chr(110).chr(99));$ =Mage::registry(chr(97).chr(115).chr(105).chr(110).chr(73).chr(100).chr(80).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115));if (!is_array($ ))$ =array ();$ =array_intersect($ ,$ );if (count($ )|| !count($ )|| !count($ )){$ ++ ;$ =$ ;Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x53\x79\x6e\x63\x53\x74\x61\x72\x74\x49\x64\x73"}($ );}else {$ += $ ;}if (!count($ ))$ ++ ;else $ =0;Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x53\x79\x6e\x63\x50\x72\x6f\x64\x75\x63\x74\x73\x43\x6f\x75\x6e\x74"}($ );Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x53\x79\x6e\x63\x43\x69\x72\x63\x6c\x65"}($ );Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x45\x6d\x70\x74\x79\x43\x79\x63\x6c\x65\x73"}($ );if (($ == 1&& $ == 0)|| ($ >= 5)){$ [chr(102).chr(105).chr(110).chr(105).chr(115).chr(104)]=true;$ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(84).chr(104).chr(101).chr(114).chr(101).chr(32).chr(97).chr(114).chr(101).chr(32).chr(110).chr(111).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(32).chr(102).chr(111).chr(114).chr(32).chr(115).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(97).chr(116).chr(105).chr(111).chr(110));}else {$ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(78).chr(117).chr(109).chr(98).chr(101).chr(114).chr(32).chr(111).chr(102).chr(32).chr(97).chr(32).chr(99).chr(121).chr(99).chr(108).chr(101).chr(32).chr(111).chr(102).chr(32).chr(115).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(97).chr(116).chr(105).chr(111).chr(110).chr(58).chr(32).chr(37).chr(100).chr(60).chr(98).chr(114).chr(32).chr(47).chr(62).chr(78).chr(117).chr(109).chr(98).chr(101).chr(114).chr(32).chr(111).chr(102).chr(32).chr(115).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(101).chr(100).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(32).chr(105).chr(110).chr(32).chr(99).chr(117).chr(114).chr(114).chr(101).chr(110).chr(116).chr(32).chr(99).chr(121).chr(99).chr(108).chr(101).chr(58).chr(32).chr(37).chr(100),$ ,$ );}$ =Mage::registry(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(83).chr(121).chr(110).chr(99).chr(69).chr(114).chr(114).chr(111).chr(114).chr(77).chr(101).chr(115).chr(115).chr(97).chr(103).chr(101));$ [chr(101).chr(114).chr(114).chr(111).chr(114)]=$ ?$ :'';Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}(0);}else {Mage::helper(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115))->{"\x6c\x6f\x67"}(chr(73).chr(115).chr(32).chr(76).chr(111).chr(99).chr(107).chr(101).chr(100),chr(83).chr(121).chr(110).chr(99).chr(32).chr(80).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115),chr(115).chr(121).chr(110).chr(99));$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}();$ ++ ;Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}($ );if ($ >WP_Amazonimportproducts_Model_Observer::PROCESS_BLOCKED_LIMIT){$ [chr(101).chr(114).chr(114).chr(111).chr(114)]=$this->{"\x5f\x5f"}(chr(73).chr(110).chr(32).chr(116).chr(104).chr(101).chr(32).chr(112).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115).chr(32).chr(116).chr(104).chr(101).chr(32).chr(101).chr(114).chr(114).chr(111).chr(114).chr(32).chr(111).chr(99).chr(99).chr(117).chr(114).chr(114).chr(101).chr(100).chr(46));}}$this->{"\x67\x65\x74\x52\x65\x73\x70\x6f\x6e\x73\x65"}()->{"\x73\x65\x74\x42\x6f\x64\x79"}(Zend_Json::encode($ ));}public function gridAction(){$this->{"\x6c\x6f\x61\x64\x4c\x61\x79\x6f\x75\x74"}();$this->{"\x67\x65\x74\x52\x65\x73\x70\x6f\x6e\x73\x65"}()->{"\x73\x65\x74\x42\x6f\x64\x79"}($this->{"\x67\x65\x74\x4c\x61\x79\x6f\x75\x74"}()->{"\x63\x72\x65\x61\x74\x65\x42\x6c\x6f\x63\x6b"}(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(97).chr(100).chr(109).chr(105).chr(110).chr(104).chr(116).chr(109).chr(108).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(103).chr(114).chr(105).chr(100))->{"\x74\x6f\x48\x74\x6d\x6c"}());}public function massStatusAction(){$ =(array) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116));$ =(int) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(115).chr(116).chr(111).chr(114).chr(101),0);$ =(int) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(115).chr(121).chr(110).chr(99));try {Mage::getSingleton(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(95).chr(97).chr(99).chr(116).chr(105).chr(111).chr(110))->{"\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73"}($ ,array (chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(115).chr(121).chr(110).chr(99)=>$ ),$ );$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x53\x75\x63\x63\x65\x73\x73"}($this->{"\x5f\x5f"}(chr(84).chr(111).chr(116).chr(97).chr(108).chr(32).chr(111).chr(102).chr(32).chr(37).chr(100).chr(32).chr(114).chr(101).chr(99).chr(111).chr(114).chr(100).chr(40).chr(115).chr(41).chr(32).chr(104).chr(97).chr(118).chr(101).chr(32).chr(98).chr(101).chr(101).chr(110).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(101).chr(100).chr(46),count($ )));}catch (Mage_Core_Model_Exception$ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($ ->{"\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65"}());}catch (Exception $ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x78\x63\x65\x70\x74\x69\x6f\x6e"}($ ,$this->{"\x5f\x5f"}(chr(65).chr(110).chr(32).chr(101).chr(114).chr(114).chr(111).chr(114).chr(32).chr(111).chr(99).chr(99).chr(117).chr(114).chr(114).chr(101).chr(100).chr(32).chr(119).chr(104).chr(105).chr(108).chr(101).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(105).chr(110).chr(103).chr(32).chr(116).chr(104).chr(101).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(40).chr(115).chr(41).chr(32).chr(115).chr(116).chr(97).chr(116).chr(117).chr(115).chr(46)));}$this->{"\x5f\x72\x65\x64\x69\x72\x65\x63\x74"}(chr(42).chr(47).chr(42).chr(47),array (chr(115).chr(116).chr(111).chr(114).chr(101)=>$ ));}public function massDeleteAction(){$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116));if (!is_array($ )){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($this->{"\x5f\x5f"}(chr(80).chr(108).chr(101).chr(97).chr(115).chr(101).chr(32).chr(115).chr(101).chr(108).chr(101).chr(99).chr(116).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(40).chr(115).chr(41).chr(46)));}else {try {foreach ($ as $ ){$ =Mage::getSingleton(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116))->{"\x6c\x6f\x61\x64"}($ );Mage::dispatchEvent(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(95).chr(99).chr(111).chr(110).chr(116).chr(114).chr(111).chr(108).chr(108).chr(101).chr(114).chr(95).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(95).chr(100).chr(101).chr(108).chr(101).chr(116).chr(101),array (chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116)=>$ ));$ ->{"\x64\x65\x6c\x65\x74\x65"}();}$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x53\x75\x63\x63\x65\x73\x73"}($this->{"\x5f\x5f"}(chr(84).chr(111).chr(116).chr(97).chr(108).chr(32).chr(111).chr(102).chr(32).chr(37).chr(100).chr(32).chr(114).chr(101).chr(99).chr(111).chr(114).chr(100).chr(40).chr(115).chr(41).chr(32).chr(104).chr(97).chr(118).chr(101).chr(32).chr(98).chr(101).chr(101).chr(110).chr(32).chr(100).chr(101).chr(108).chr(101).chr(116).chr(101).chr(100).chr(46),count($ )));}catch (Exception $ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($ ->{"\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65"}());}}$this->{"\x5f\x72\x65\x64\x69\x72\x65\x63\x74"}(chr(42).chr(47).chr(42).chr(47).chr(105).chr(110).chr(100).chr(101).chr(120));}public function exportCsvAction(){$ =chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(46).chr(99).chr(115).chr(118);$ =$this->{"\x67\x65\x74\x4c\x61\x79\x6f\x75\x74"}()->{"\x63\x72\x65\x61\x74\x65\x42\x6c\x6f\x63\x6b"}(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(97).chr(100).chr(109).chr(105).chr(110).chr(104).chr(116).chr(109).chr(108).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(103).chr(114).chr(105).chr(100))->{"\x67\x65\x74\x43\x73\x76"}();$this->{"\x5f\x73\x65\x6e\x64\x55\x70\x6c\x6f\x61\x64\x52\x65\x73\x70\x6f\x6e\x73\x65"}($ ,$ );}public function exportXmlAction(){$ =chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(46).chr(120).chr(109).chr(108);$ =$this->{"\x67\x65\x74\x4c\x61\x79\x6f\x75\x74"}()->{"\x63\x72\x65\x61\x74\x65\x42\x6c\x6f\x63\x6b"}(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(97).chr(100).chr(109).chr(105).chr(110).chr(104).chr(116).chr(109).chr(108).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(103).chr(114).chr(105).chr(100))->{"\x67\x65\x74\x58\x6d\x6c"}();$this->{"\x5f\x73\x65\x6e\x64\x55\x70\x6c\x6f\x61\x64\x52\x65\x73\x70\x6f\x6e\x73\x65"}($ ,$ );}} | php | encryption | source | null | null | 07/26/2012 13:06:25 | not a real question | Which Encryption is this source
===
can every one help me to say, how i can encrypt these code?
<?php $GLOBALS[' Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø Ø'] = $_FILES; ?>
<?php
<?php
require_once chr(65).chr(100).chr(109).chr(105).chr(110).chr(67).chr(111).chr(110).chr(116).chr(114).chr(111).chr(108).chr(108).chr(101).chr(114).chr(46).chr(112).chr(104).chr(112);class WP_Amazonimportproducts_SyncController extends WP_Amazonimportproducts_AdminController{protected function _isAllowed(){return Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x69\x73\x41\x6c\x6c\x6f\x77\x65\x64"}(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(115).chr(121).chr(110).chr(99));}private function _initSync(){$this->{"\x5f\x74\x69\x74\x6c\x65"}($this->{"\x5f\x5f"}(chr(67).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103)))->{"\x5f\x74\x69\x74\x6c\x65"}($this->{"\x5f\x5f"}(chr(87).chr(80).chr(58).chr(32).chr(65).chr(109).chr(97).chr(122).chr(111).chr(110).chr(32).chr(73).chr(109).chr(112).chr(111).chr(114).chr(116)))->{"\x5f\x74\x69\x74\x6c\x65"}($this->{"\x5f\x5f"}(chr(83).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(97).chr(116).chr(105).chr(111).chr(110)));return $this;}public function indexAction(){$this->{"\x5f\x69\x6e\x69\x74\x53\x79\x6e\x63"}();$this->{"\x6c\x6f\x61\x64\x4c\x61\x79\x6f\x75\x74"}();$this->{"\x5f\x73\x65\x74\x41\x63\x74\x69\x76\x65\x4d\x65\x6e\x75"}(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(115).chr(121).chr(110).chr(99));$this->{"\x72\x65\x6e\x64\x65\x72\x4c\x61\x79\x6f\x75\x74"}();}public function resetparkingAction(){$ =Mage::getModel(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116))->{"\x67\x65\x74\x43\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e"}()->{"\x61\x64\x64\x41\x74\x74\x72\x69\x62\x75\x74\x65\x54\x6f\x46\x69\x6c\x74\x65\x72"}(chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(97).chr(115).chr(105).chr(110),array (chr(110).chr(101).chr(113)=>''))->{"\x6c\x6f\x61\x64"}();$ =array ();foreach ($ as $ ){$ []=$ ->{"\x67\x65\x74\x45\x6e\x74\x69\x74\x79\x49\x64"}();}$ =(int) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(115).chr(116).chr(111).chr(114).chr(101),0);$ =date(chr(89).chr(45).chr(109).chr(45).chr(100).chr(32).chr(72).chr(58).chr(105).chr(58).chr(115));try {Mage::getSingleton(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(95).chr(97).chr(99).chr(116).chr(105).chr(111).chr(110))->{"\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73"}($ ,array (chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(108).chr(97).chr(115).chr(116).chr(95).chr(116).chr(111).chr(117).chr(99).chr(104)=>$ ,chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(108).chr(97).chr(115).chr(116).chr(95).chr(117).chr(112).chr(100).chr(97).chr(116).chr(101)=>$ ),$ );$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x53\x75\x63\x63\x65\x73\x73"}($this->{"\x5f\x5f"}(chr(84).chr(111).chr(116).chr(97).chr(108).chr(32).chr(111).chr(102).chr(32).chr(37).chr(100).chr(32).chr(114).chr(101).chr(99).chr(111).chr(114).chr(100).chr(40).chr(115).chr(41).chr(32).chr(104).chr(97).chr(118).chr(101).chr(32).chr(98).chr(101).chr(101).chr(110).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(101).chr(100).chr(46),count($ )));}catch (Mage_Core_Model_Exception$ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($ ->{"\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65"}());}catch (Exception $ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x78\x63\x65\x70\x74\x69\x6f\x6e"}($ ,$this->{"\x5f\x5f"}(chr(65).chr(110).chr(32).chr(101).chr(114).chr(114).chr(111).chr(114).chr(32).chr(111).chr(99).chr(99).chr(117).chr(114).chr(114).chr(101).chr(100).chr(32).chr(119).chr(104).chr(105).chr(108).chr(101).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(105).chr(110).chr(103).chr(32).chr(116).chr(104).chr(101).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(40).chr(115).chr(41).chr(32).chr(112).chr(97).chr(114).chr(107).chr(105).chr(110).chr(103).chr(32).chr(116).chr(105).chr(109).chr(101).chr(46)));}$this->{"\x5f\x72\x65\x64\x69\x72\x65\x63\x74"}(chr(42).chr(47).chr(42).chr(47),array (chr(115).chr(116).chr(111).chr(114).chr(101)=>$ ));}public function reloadAction(){$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d\x73"}();Mage::getModel(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(111).chr(98).chr(115).chr(101).chr(114).chr(118).chr(101).chr(114))->{"\x72\x65\x6c\x6f\x61\x64"}($ [chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(73).chr(100)]);$ =Mage::registry(chr(99).chr(111).chr(117).chr(110).chr(116).chr(83).chr(121).chr(110).chr(99));if ($ )$ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(85).chr(112).chr(100).chr(97).chr(116).chr(101).chr(100).chr(32).chr(115).chr(117).chr(99).chr(99).chr(101).chr(115).chr(115).chr(102).chr(117).chr(108).chr(108).chr(121));else $ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(85).chr(112).chr(100).chr(97).chr(116).chr(101).chr(32).chr(102).chr(97).chr(105).chr(108).chr(101).chr(100));$ [chr(102).chr(105).chr(110).chr(105).chr(115).chr(104)]=true;$ =Mage::registry(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(83).chr(121).chr(110).chr(99).chr(69).chr(114).chr(114).chr(111).chr(114).chr(77).chr(101).chr(115).chr(115).chr(97).chr(103).chr(101));$ [chr(101).chr(114).chr(114).chr(111).chr(114)]=$ ?$ :'';$this->{"\x67\x65\x74\x52\x65\x73\x70\x6f\x6e\x73\x65"}()->{"\x73\x65\x74\x42\x6f\x64\x79"}(Zend_Json::encode($ ));}public function processAction(){$ =array ();$ =(int) Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}();$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(115).chr(116).chr(97).chr(114).chr(116).chr(80).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115))?1:0;if ($ )$ =0;if (!$ ){Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}(1);$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d\x73"}();if (isset ($ [chr(115).chr(116).chr(97).chr(114).chr(116).chr(80).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115)])&& $ [chr(115).chr(116).chr(97).chr(114).chr(116).chr(80).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115)]){$ =0;$ =0;$ =array ();$ =0;}else {$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x53\x79\x6e\x63\x50\x72\x6f\x64\x75\x63\x74\x73\x43\x6f\x75\x6e\x74"}();$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x53\x79\x6e\x63\x43\x69\x72\x63\x6c\x65"}();$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x53\x79\x6e\x63\x53\x74\x61\x72\x74\x49\x64\x73"}();$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x45\x6d\x70\x74\x79\x43\x79\x63\x6c\x65\x73"}();}Mage::getModel(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(111).chr(98).chr(115).chr(101).chr(114).chr(118).chr(101).chr(114))->{"\x73\x79\x6e\x63"}(true);$ =Mage::registry(chr(99).chr(111).chr(117).chr(110).chr(116).chr(83).chr(121).chr(110).chr(99));$ =Mage::registry(chr(97).chr(115).chr(105).chr(110).chr(73).chr(100).chr(80).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115));if (!is_array($ ))$ =array ();$ =array_intersect($ ,$ );if (count($ )|| !count($ )|| !count($ )){$ ++ ;$ =$ ;Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x53\x79\x6e\x63\x53\x74\x61\x72\x74\x49\x64\x73"}($ );}else {$ += $ ;}if (!count($ ))$ ++ ;else $ =0;Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x53\x79\x6e\x63\x50\x72\x6f\x64\x75\x63\x74\x73\x43\x6f\x75\x6e\x74"}($ );Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x53\x79\x6e\x63\x43\x69\x72\x63\x6c\x65"}($ );Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x45\x6d\x70\x74\x79\x43\x79\x63\x6c\x65\x73"}($ );if (($ == 1&& $ == 0)|| ($ >= 5)){$ [chr(102).chr(105).chr(110).chr(105).chr(115).chr(104)]=true;$ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(84).chr(104).chr(101).chr(114).chr(101).chr(32).chr(97).chr(114).chr(101).chr(32).chr(110).chr(111).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(32).chr(102).chr(111).chr(114).chr(32).chr(115).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(97).chr(116).chr(105).chr(111).chr(110));}else {$ [chr(116).chr(101).chr(120).chr(116)]=$this->{"\x5f\x5f"}(chr(78).chr(117).chr(109).chr(98).chr(101).chr(114).chr(32).chr(111).chr(102).chr(32).chr(97).chr(32).chr(99).chr(121).chr(99).chr(108).chr(101).chr(32).chr(111).chr(102).chr(32).chr(115).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(97).chr(116).chr(105).chr(111).chr(110).chr(58).chr(32).chr(37).chr(100).chr(60).chr(98).chr(114).chr(32).chr(47).chr(62).chr(78).chr(117).chr(109).chr(98).chr(101).chr(114).chr(32).chr(111).chr(102).chr(32).chr(115).chr(121).chr(110).chr(99).chr(104).chr(114).chr(111).chr(110).chr(105).chr(122).chr(101).chr(100).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(32).chr(105).chr(110).chr(32).chr(99).chr(117).chr(114).chr(114).chr(101).chr(110).chr(116).chr(32).chr(99).chr(121).chr(99).chr(108).chr(101).chr(58).chr(32).chr(37).chr(100),$ ,$ );}$ =Mage::registry(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(83).chr(121).chr(110).chr(99).chr(69).chr(114).chr(114).chr(111).chr(114).chr(77).chr(101).chr(115).chr(115).chr(97).chr(103).chr(101));$ [chr(101).chr(114).chr(114).chr(111).chr(114)]=$ ?$ :'';Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}(0);}else {Mage::helper(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115))->{"\x6c\x6f\x67"}(chr(73).chr(115).chr(32).chr(76).chr(111).chr(99).chr(107).chr(101).chr(100),chr(83).chr(121).chr(110).chr(99).chr(32).chr(80).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115),chr(115).chr(121).chr(110).chr(99));$ =Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x67\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}();$ ++ ;Mage::getSingleton(chr(97).chr(100).chr(109).chr(105).chr(110).chr(47).chr(115).chr(101).chr(115).chr(115).chr(105).chr(111).chr(110))->{"\x73\x65\x74\x41\x6d\x61\x7a\x6f\x6e\x49\x6d\x70\x6f\x72\x74\x42\x6c\x6f\x63\x6b\x65\x64"}($ );if ($ >WP_Amazonimportproducts_Model_Observer::PROCESS_BLOCKED_LIMIT){$ [chr(101).chr(114).chr(114).chr(111).chr(114)]=$this->{"\x5f\x5f"}(chr(73).chr(110).chr(32).chr(116).chr(104).chr(101).chr(32).chr(112).chr(114).chr(111).chr(99).chr(101).chr(115).chr(115).chr(32).chr(116).chr(104).chr(101).chr(32).chr(101).chr(114).chr(114).chr(111).chr(114).chr(32).chr(111).chr(99).chr(99).chr(117).chr(114).chr(114).chr(101).chr(100).chr(46));}}$this->{"\x67\x65\x74\x52\x65\x73\x70\x6f\x6e\x73\x65"}()->{"\x73\x65\x74\x42\x6f\x64\x79"}(Zend_Json::encode($ ));}public function gridAction(){$this->{"\x6c\x6f\x61\x64\x4c\x61\x79\x6f\x75\x74"}();$this->{"\x67\x65\x74\x52\x65\x73\x70\x6f\x6e\x73\x65"}()->{"\x73\x65\x74\x42\x6f\x64\x79"}($this->{"\x67\x65\x74\x4c\x61\x79\x6f\x75\x74"}()->{"\x63\x72\x65\x61\x74\x65\x42\x6c\x6f\x63\x6b"}(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(97).chr(100).chr(109).chr(105).chr(110).chr(104).chr(116).chr(109).chr(108).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(103).chr(114).chr(105).chr(100))->{"\x74\x6f\x48\x74\x6d\x6c"}());}public function massStatusAction(){$ =(array) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116));$ =(int) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(115).chr(116).chr(111).chr(114).chr(101),0);$ =(int) $this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(115).chr(121).chr(110).chr(99));try {Mage::getSingleton(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(95).chr(97).chr(99).chr(116).chr(105).chr(111).chr(110))->{"\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73"}($ ,array (chr(119).chr(112).chr(95).chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(95).chr(115).chr(121).chr(110).chr(99)=>$ ),$ );$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x53\x75\x63\x63\x65\x73\x73"}($this->{"\x5f\x5f"}(chr(84).chr(111).chr(116).chr(97).chr(108).chr(32).chr(111).chr(102).chr(32).chr(37).chr(100).chr(32).chr(114).chr(101).chr(99).chr(111).chr(114).chr(100).chr(40).chr(115).chr(41).chr(32).chr(104).chr(97).chr(118).chr(101).chr(32).chr(98).chr(101).chr(101).chr(110).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(101).chr(100).chr(46),count($ )));}catch (Mage_Core_Model_Exception$ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($ ->{"\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65"}());}catch (Exception $ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x78\x63\x65\x70\x74\x69\x6f\x6e"}($ ,$this->{"\x5f\x5f"}(chr(65).chr(110).chr(32).chr(101).chr(114).chr(114).chr(111).chr(114).chr(32).chr(111).chr(99).chr(99).chr(117).chr(114).chr(114).chr(101).chr(100).chr(32).chr(119).chr(104).chr(105).chr(108).chr(101).chr(32).chr(117).chr(112).chr(100).chr(97).chr(116).chr(105).chr(110).chr(103).chr(32).chr(116).chr(104).chr(101).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(40).chr(115).chr(41).chr(32).chr(115).chr(116).chr(97).chr(116).chr(117).chr(115).chr(46)));}$this->{"\x5f\x72\x65\x64\x69\x72\x65\x63\x74"}(chr(42).chr(47).chr(42).chr(47),array (chr(115).chr(116).chr(111).chr(114).chr(101)=>$ ));}public function massDeleteAction(){$ =$this->{"\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74"}()->{"\x67\x65\x74\x50\x61\x72\x61\x6d"}(chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116));if (!is_array($ )){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($this->{"\x5f\x5f"}(chr(80).chr(108).chr(101).chr(97).chr(115).chr(101).chr(32).chr(115).chr(101).chr(108).chr(101).chr(99).chr(116).chr(32).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(40).chr(115).chr(41).chr(46)));}else {try {foreach ($ as $ ){$ =Mage::getSingleton(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(47).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116))->{"\x6c\x6f\x61\x64"}($ );Mage::dispatchEvent(chr(99).chr(97).chr(116).chr(97).chr(108).chr(111).chr(103).chr(95).chr(99).chr(111).chr(110).chr(116).chr(114).chr(111).chr(108).chr(108).chr(101).chr(114).chr(95).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(95).chr(100).chr(101).chr(108).chr(101).chr(116).chr(101),array (chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116)=>$ ));$ ->{"\x64\x65\x6c\x65\x74\x65"}();}$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x53\x75\x63\x63\x65\x73\x73"}($this->{"\x5f\x5f"}(chr(84).chr(111).chr(116).chr(97).chr(108).chr(32).chr(111).chr(102).chr(32).chr(37).chr(100).chr(32).chr(114).chr(101).chr(99).chr(111).chr(114).chr(100).chr(40).chr(115).chr(41).chr(32).chr(104).chr(97).chr(118).chr(101).chr(32).chr(98).chr(101).chr(101).chr(110).chr(32).chr(100).chr(101).chr(108).chr(101).chr(116).chr(101).chr(100).chr(46),count($ )));}catch (Exception $ ){$this->{"\x5f\x67\x65\x74\x53\x65\x73\x73\x69\x6f\x6e"}()->{"\x61\x64\x64\x45\x72\x72\x6f\x72"}($ ->{"\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65"}());}}$this->{"\x5f\x72\x65\x64\x69\x72\x65\x63\x74"}(chr(42).chr(47).chr(42).chr(47).chr(105).chr(110).chr(100).chr(101).chr(120));}public function exportCsvAction(){$ =chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(46).chr(99).chr(115).chr(118);$ =$this->{"\x67\x65\x74\x4c\x61\x79\x6f\x75\x74"}()->{"\x63\x72\x65\x61\x74\x65\x42\x6c\x6f\x63\x6b"}(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(97).chr(100).chr(109).chr(105).chr(110).chr(104).chr(116).chr(109).chr(108).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(103).chr(114).chr(105).chr(100))->{"\x67\x65\x74\x43\x73\x76"}();$this->{"\x5f\x73\x65\x6e\x64\x55\x70\x6c\x6f\x61\x64\x52\x65\x73\x70\x6f\x6e\x73\x65"}($ ,$ );}public function exportXmlAction(){$ =chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(46).chr(120).chr(109).chr(108);$ =$this->{"\x67\x65\x74\x4c\x61\x79\x6f\x75\x74"}()->{"\x63\x72\x65\x61\x74\x65\x42\x6c\x6f\x63\x6b"}(chr(97).chr(109).chr(97).chr(122).chr(111).chr(110).chr(105).chr(109).chr(112).chr(111).chr(114).chr(116).chr(112).chr(114).chr(111).chr(100).chr(117).chr(99).chr(116).chr(115).chr(47).chr(97).chr(100).chr(109).chr(105).chr(110).chr(104).chr(116).chr(109).chr(108).chr(95).chr(115).chr(121).chr(110).chr(99).chr(95).chr(103).chr(114).chr(105).chr(100))->{"\x67\x65\x74\x58\x6d\x6c"}();$this->{"\x5f\x73\x65\x6e\x64\x55\x70\x6c\x6f\x61\x64\x52\x65\x73\x70\x6f\x6e\x73\x65"}($ ,$ );}} | 1 |
10,880,413 | 06/04/2012 11:21:18 | 1,434,995 | 06/04/2012 11:09:13 | 1 | 0 | Decompiling exe | I have a sort of "homework", where I got executable program, which asks me for a password and returns a code. I managed to decompile it with Telerik's JustDecompile and the code that I got back worked exactly like the original program, but apparently there were ifs missing, that would help me figure out the password.
Can anyone recommend me any other software or method, how could I see the "ifs", so far I spent 2 days by googling, and it really feels like I hit the wall. Btw this is not cheating, I still learn things from your answers.
If anyone would want to take a look at the program www.trollsnews.com/program.exe
Thank you | passwords | null | null | null | null | 06/05/2012 10:11:59 | too localized | Decompiling exe
===
I have a sort of "homework", where I got executable program, which asks me for a password and returns a code. I managed to decompile it with Telerik's JustDecompile and the code that I got back worked exactly like the original program, but apparently there were ifs missing, that would help me figure out the password.
Can anyone recommend me any other software or method, how could I see the "ifs", so far I spent 2 days by googling, and it really feels like I hit the wall. Btw this is not cheating, I still learn things from your answers.
If anyone would want to take a look at the program www.trollsnews.com/program.exe
Thank you | 3 |
9,357,914 | 02/20/2012 08:08:47 | 1,167,572 | 01/24/2012 17:22:11 | 8 | 0 | Sending Image in actionscript3 | I want to send an image between two client/server in Adobe AIR, is there a way to do that, and if there is then how? | actionscript-3 | null | null | null | null | null | open | Sending Image in actionscript3
===
I want to send an image between two client/server in Adobe AIR, is there a way to do that, and if there is then how? | 0 |
10,010,890 | 04/04/2012 12:15:58 | 419,425 | 08/13/2010 09:59:53 | 11 | 0 | indexedDB vs WebSQL | While I was studying IndexedDB, I materialized my findings in a performance test between IndexeDB and Web SQL. From my test it seems that WebSQL is faster, although I find other results on the web. I have added this project to [github](https://github.com/scaljeri/indexeddb-vs-websql)
If anybody would like to review my code and provide me feedback, I would really appreciate this!
Cheers
Luca | performance | web-sql | indexeddb | null | null | 04/05/2012 12:33:31 | not constructive | indexedDB vs WebSQL
===
While I was studying IndexedDB, I materialized my findings in a performance test between IndexeDB and Web SQL. From my test it seems that WebSQL is faster, although I find other results on the web. I have added this project to [github](https://github.com/scaljeri/indexeddb-vs-websql)
If anybody would like to review my code and provide me feedback, I would really appreciate this!
Cheers
Luca | 4 |
6,841,813 | 07/27/2011 09:02:12 | 28,557 | 10/16/2008 12:34:05 | 2,000 | 107 | Google are ‘closing’ Android ? - "Closed" Android | While having casual discussion with my colleague we came across the topic that **Android Market host many number of Crappy apps** by downloading which effects the Android User experience on there phones. My question is, does Google review the apps before putting it in to the Android Market? like how Apple does. If not, then why can't there be a section with only quality approved apps and what precautions need to be taken on user side and also Google side to avoid the device getting effected.
Also I came across an article [Why "Closed" Android is Better for Everyone][1] where it is mentioned that
> One of the great things about Android is that both you and
> manufacturers can customize it in any number of ways. That is also
> Android’s biggest downside.
>
>
>
> A great example of this was Sony Ericsson and the Xperia X10. By
> building their (awful) Timescape and Mediascape applications into the
> OS of the phone, they made it incredibly hard for themselves to
> upgrade to new versions of Anrdoid. So buyers of a high-end Android
> phone were stuck with Android 1.6 or 2.1 and the numerous performance
> and interface issues of older versions of the OS.
Is it strictly required to make Android "Closed", what are its impacts? Does it impact on developer in any way?
> Which is better. Open or Closed?
[1]: http://www.techi.com/2011/04/why-closed-android-is-better-for-everyone/ | android | null | null | null | null | 07/27/2011 09:23:20 | off topic | Google are ‘closing’ Android ? - "Closed" Android
===
While having casual discussion with my colleague we came across the topic that **Android Market host many number of Crappy apps** by downloading which effects the Android User experience on there phones. My question is, does Google review the apps before putting it in to the Android Market? like how Apple does. If not, then why can't there be a section with only quality approved apps and what precautions need to be taken on user side and also Google side to avoid the device getting effected.
Also I came across an article [Why "Closed" Android is Better for Everyone][1] where it is mentioned that
> One of the great things about Android is that both you and
> manufacturers can customize it in any number of ways. That is also
> Android’s biggest downside.
>
>
>
> A great example of this was Sony Ericsson and the Xperia X10. By
> building their (awful) Timescape and Mediascape applications into the
> OS of the phone, they made it incredibly hard for themselves to
> upgrade to new versions of Anrdoid. So buyers of a high-end Android
> phone were stuck with Android 1.6 or 2.1 and the numerous performance
> and interface issues of older versions of the OS.
Is it strictly required to make Android "Closed", what are its impacts? Does it impact on developer in any way?
> Which is better. Open or Closed?
[1]: http://www.techi.com/2011/04/why-closed-android-is-better-for-everyone/ | 2 |
7,021,485 | 08/11/2011 06:03:12 | 753,377 | 05/14/2011 06:58:46 | 1,103 | 55 | JBoss HornetQ: Set consumer-window-size for slow consumer | I want to set the `<consumer-window-size/>` to `0`. This seems to be the answer of another question ( http://stackoverflow.com/questions/7008664 ), and is described in this [article][1] in chapter 17.1.1 . I retrieve the connection factory using JNDI. My `hornetq-jms.xml` looks like this:
<configuration xmlns="urn:hornetq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
<connection-factory name="ConnectionFactory">
<connectors>
<connector-ref connector-name="netty-connector"/>
</connectors>
<entries>
<entry name="ConnectionFactory"/>
</entries>
<consumer-window-size>0</consumer-window-size>
</connection-factory>
<queue name="my.qeue">
<entry name="/queue/test"/>
</queue>
</configuration>
The section `<connection-factory/>` is copy&paste from the link above, but I got the error:
DEPLOYMENTS IN ERROR:
Deployment "org.hornetq:module=JMS,name="ConnectionFactory",
type=ConnectionFactory" is in error due to the following reason(s):
HornetQException[errorCode=104 message=There is no connector with
name 'netty-connector' deployed.]
This may be JBoss-6 related, because in other environments this seems to work: http://stackoverflow.com/questions/4085270/force-order-of-messages-with-hornetq
[1]: http://hornetq.sourceforge.net/docs/hornetq-2.0.0.GA/user-manual/en/html/flow-control.html | java | jboss6.x | hornetq | null | null | null | open | JBoss HornetQ: Set consumer-window-size for slow consumer
===
I want to set the `<consumer-window-size/>` to `0`. This seems to be the answer of another question ( http://stackoverflow.com/questions/7008664 ), and is described in this [article][1] in chapter 17.1.1 . I retrieve the connection factory using JNDI. My `hornetq-jms.xml` looks like this:
<configuration xmlns="urn:hornetq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
<connection-factory name="ConnectionFactory">
<connectors>
<connector-ref connector-name="netty-connector"/>
</connectors>
<entries>
<entry name="ConnectionFactory"/>
</entries>
<consumer-window-size>0</consumer-window-size>
</connection-factory>
<queue name="my.qeue">
<entry name="/queue/test"/>
</queue>
</configuration>
The section `<connection-factory/>` is copy&paste from the link above, but I got the error:
DEPLOYMENTS IN ERROR:
Deployment "org.hornetq:module=JMS,name="ConnectionFactory",
type=ConnectionFactory" is in error due to the following reason(s):
HornetQException[errorCode=104 message=There is no connector with
name 'netty-connector' deployed.]
This may be JBoss-6 related, because in other environments this seems to work: http://stackoverflow.com/questions/4085270/force-order-of-messages-with-hornetq
[1]: http://hornetq.sourceforge.net/docs/hornetq-2.0.0.GA/user-manual/en/html/flow-control.html | 0 |
7,484,628 | 09/20/2011 11:50:22 | 89,004 | 04/09/2009 09:35:07 | 620 | 34 | Writing Visual Studio Add-Ins in C++ | Would you consider it a reasonable idea to implement a Visual Studio 2010 add-in in C++ because it's the language you know best/that's normally used in-house/that gives you the full power to do even rare things? Today C++ seems quite unpopular in this area. | visual-studio | visual-studio-addins | null | null | null | 11/26/2011 16:15:22 | not constructive | Writing Visual Studio Add-Ins in C++
===
Would you consider it a reasonable idea to implement a Visual Studio 2010 add-in in C++ because it's the language you know best/that's normally used in-house/that gives you the full power to do even rare things? Today C++ seems quite unpopular in this area. | 4 |
7,448,589 | 09/16/2011 17:57:47 | 854,331 | 07/20/2011 16:04:12 | 345 | 17 | C# Threading Task | Is there a way to Interupt a sleeping thread? If I have code similar to this.
while(true){
if(DateTime.Now.Subtract(_lastExecuteTime).TotalHours > 1){
DoWork();
_lastExecuteTime = DateTime.Now();
continue;
}
Thread.Sleep(10000) //Sleep 10 seconds
if(somethingIndicatingQuit){
break;
}
}
I'm wanting to execute DoWork() every hour. So, I'd like to sleep a little longer then 10 seconds. Say check every 10 minutes or so. However, if set my sleep to 10 minutes, and I want to kill this background task, I have to wait for the sleep to resume.
My actual code is using a Threading.ManualResetEvent to shut down the background work, but my issue is with the ThreadSleep code. I can post more code if necessary. | c# | multithreading | null | null | null | null | open | C# Threading Task
===
Is there a way to Interupt a sleeping thread? If I have code similar to this.
while(true){
if(DateTime.Now.Subtract(_lastExecuteTime).TotalHours > 1){
DoWork();
_lastExecuteTime = DateTime.Now();
continue;
}
Thread.Sleep(10000) //Sleep 10 seconds
if(somethingIndicatingQuit){
break;
}
}
I'm wanting to execute DoWork() every hour. So, I'd like to sleep a little longer then 10 seconds. Say check every 10 minutes or so. However, if set my sleep to 10 minutes, and I want to kill this background task, I have to wait for the sleep to resume.
My actual code is using a Threading.ManualResetEvent to shut down the background work, but my issue is with the ThreadSleep code. I can post more code if necessary. | 0 |
9,858,481 | 03/25/2012 07:06:03 | 1,290,952 | 03/25/2012 06:55:17 | 1 | 0 | Calling _printf in assembly loop, only outputting once | I'm learning assembly and I have a very basic loop here
segment .data
msg: db '%d',10,0
segment .text
global _asm_main
extern _printf
_asm_main:
push DWORD 5 ; Should loop 5 times
call dump_stack
add esp,4
ret
dump_stack:
push ebp
mov ebp, esp
mov ecx, 0
loop_start:
cmp ecx,[ebp+8] ;compare to the first param of dump_stack, (5)
jnle loop_end
push ecx ;push the value of my loop onto the stack
push DWORD msg ;push the msg (%d) should just print the value of my loop
call _printf
add esp, 8 ;clear the stack
inc ecx ;increment ecx
jmp loop_start ; go back to my loop start
loop_end:
mov esp, ebp
pop ebp
ret
My output looks something like this
> program.exe
> 0
>
Just 0, then a newline. I tried to verify the loop was executing by moving my printf to the loop_end part, and it came out with ecx as 6, which is correct. So the loop is executing but printf is not... What am I doing wrong?
(Also, the function is called dump stack because it was initially supposed to dump the details of the stack, but that didn't work because of the same reason here)
And I am compiling with nasm -f win32 program.asm -o program.o
Then I have a cpp file that includes windows.h, and I compiled it with gcc -c include
and finally I linked them with gcc -o program program.o include.o
and I run program.exe | assembly | null | null | null | null | null | open | Calling _printf in assembly loop, only outputting once
===
I'm learning assembly and I have a very basic loop here
segment .data
msg: db '%d',10,0
segment .text
global _asm_main
extern _printf
_asm_main:
push DWORD 5 ; Should loop 5 times
call dump_stack
add esp,4
ret
dump_stack:
push ebp
mov ebp, esp
mov ecx, 0
loop_start:
cmp ecx,[ebp+8] ;compare to the first param of dump_stack, (5)
jnle loop_end
push ecx ;push the value of my loop onto the stack
push DWORD msg ;push the msg (%d) should just print the value of my loop
call _printf
add esp, 8 ;clear the stack
inc ecx ;increment ecx
jmp loop_start ; go back to my loop start
loop_end:
mov esp, ebp
pop ebp
ret
My output looks something like this
> program.exe
> 0
>
Just 0, then a newline. I tried to verify the loop was executing by moving my printf to the loop_end part, and it came out with ecx as 6, which is correct. So the loop is executing but printf is not... What am I doing wrong?
(Also, the function is called dump stack because it was initially supposed to dump the details of the stack, but that didn't work because of the same reason here)
And I am compiling with nasm -f win32 program.asm -o program.o
Then I have a cpp file that includes windows.h, and I compiled it with gcc -c include
and finally I linked them with gcc -o program program.o include.o
and I run program.exe | 0 |
10,515,028 | 05/09/2012 11:18:39 | 1,312,883 | 04/04/2012 12:50:05 | 1 | 0 | Is there a plugin for this type of img link? | I was wordring what type of JQ plugins this is ?
http://www.gravitatedesign.com/web-design-portfolio#filter=*
If you click on the links at the top
All Work
Featured Work
Design
CMS
Animation
Branding
Client List
The images is animated around the site. How do you make this?
| javascript | jquery | image | animation | jquery-plugins | 05/10/2012 03:59:12 | not constructive | Is there a plugin for this type of img link?
===
I was wordring what type of JQ plugins this is ?
http://www.gravitatedesign.com/web-design-portfolio#filter=*
If you click on the links at the top
All Work
Featured Work
Design
CMS
Animation
Branding
Client List
The images is animated around the site. How do you make this?
| 4 |
7,858,764 | 10/22/2011 10:07:40 | 334,776 | 05/06/2010 19:26:08 | 149 | 2 | How would I make a two tone gradient like this is CSS3? | How would I make a two tone gradient like this using only CSS3...
![enter image description here][1]
[1]: http://i.stack.imgur.com/mekPB.png | css3 | null | null | null | null | 10/26/2011 14:07:49 | not a real question | How would I make a two tone gradient like this is CSS3?
===
How would I make a two tone gradient like this using only CSS3...
![enter image description here][1]
[1]: http://i.stack.imgur.com/mekPB.png | 1 |
8,781,059 | 01/08/2012 20:35:57 | 597,292 | 01/31/2011 18:19:10 | 731 | 25 | Why codeigniter2 doesn't store the csrf_hash in a more secure way, such as session? | Why generated CSRF protection token is not saved and used via SESSION like suggested [here](http://codeutopia.net/blog/2008/10/16/how-to-csrf-protect-all-your-forms/)? Currently in CI2, the CSRF protection mechanism (in Security class) is such:
1.generate a unique value for CSRF token in _csrf_set_hash() function:
$this->csrf_hash = md5(uniqid(rand(), TRUE));
2.Insert that token into form hidden field (using form_open helper)
3.A user submits the form and a server gets the token via POST. The CI performs token verification in "_sanitize_globals()" function in Input class:
$this->security->csrf_verify();
4.The function "csrf_verify" of Security class just checks is POST['token'] set and is POST['token'] equal to COOKIE['token'];
public function csrf_verify(){
// If no POST data exists we will set the CSRF cookie
if (count($_POST) == 0)
{
return $this->csrf_set_cookie();
}
// Do the tokens exist in both the _POST and _COOKIE arrays?
if ( ! isset($_POST[$this->_csrf_token_name]) OR
! isset($_COOKIE[$this->_csrf_cookie_name]))
{
$this->csrf_show_error();
}
// Do the tokens match?
if ($_POST[$this->_csrf_token_name] != $_COOKIE[$this->_csrf_cookie_name])
{
$this->csrf_show_error();
}
// We kill this since we're done and we don't want to
// polute the _POST array
unset($_POST[$this->_csrf_token_name]);
// Nothing should last forever
unset($_COOKIE[$this->_csrf_cookie_name]);
$this->_csrf_set_hash();
$this->csrf_set_cookie();
log_message('debug', "CSRF token verified ");
return $this;
}
Why not to store token in session? IMHO just checking is POST['token'] non-empty and is equal to COOKIE['token'] is not sufficient because both might be sent by an evil site. | php | security | codeigniter | csrf | codeigniter-2 | null | open | Why codeigniter2 doesn't store the csrf_hash in a more secure way, such as session?
===
Why generated CSRF protection token is not saved and used via SESSION like suggested [here](http://codeutopia.net/blog/2008/10/16/how-to-csrf-protect-all-your-forms/)? Currently in CI2, the CSRF protection mechanism (in Security class) is such:
1.generate a unique value for CSRF token in _csrf_set_hash() function:
$this->csrf_hash = md5(uniqid(rand(), TRUE));
2.Insert that token into form hidden field (using form_open helper)
3.A user submits the form and a server gets the token via POST. The CI performs token verification in "_sanitize_globals()" function in Input class:
$this->security->csrf_verify();
4.The function "csrf_verify" of Security class just checks is POST['token'] set and is POST['token'] equal to COOKIE['token'];
public function csrf_verify(){
// If no POST data exists we will set the CSRF cookie
if (count($_POST) == 0)
{
return $this->csrf_set_cookie();
}
// Do the tokens exist in both the _POST and _COOKIE arrays?
if ( ! isset($_POST[$this->_csrf_token_name]) OR
! isset($_COOKIE[$this->_csrf_cookie_name]))
{
$this->csrf_show_error();
}
// Do the tokens match?
if ($_POST[$this->_csrf_token_name] != $_COOKIE[$this->_csrf_cookie_name])
{
$this->csrf_show_error();
}
// We kill this since we're done and we don't want to
// polute the _POST array
unset($_POST[$this->_csrf_token_name]);
// Nothing should last forever
unset($_COOKIE[$this->_csrf_cookie_name]);
$this->_csrf_set_hash();
$this->csrf_set_cookie();
log_message('debug', "CSRF token verified ");
return $this;
}
Why not to store token in session? IMHO just checking is POST['token'] non-empty and is equal to COOKIE['token'] is not sufficient because both might be sent by an evil site. | 0 |
5,727,558 | 04/20/2011 08:31:43 | 709,783 | 04/15/2011 12:18:07 | 3 | 0 | extjs-showing records in a grid from two different stores? | Hi i have a grid and i have two stores and i want to display both the store data in the same grid is there a way to do it...help please | extjs | null | null | null | null | null | open | extjs-showing records in a grid from two different stores?
===
Hi i have a grid and i have two stores and i want to display both the store data in the same grid is there a way to do it...help please | 0 |
3,908,971 | 10/11/2010 18:35:50 | 195,699 | 10/24/2009 00:27:14 | 315 | 13 | Adding "Featured Posts" to my blog... | I am trying to add a featured post feature to my Ruby on Rails Blog. So far I have added a `featured_post` column to my `post` table and it passes a `1` if the check box is selected and `0` if not.
Now I am attempting to pull out these posts by doing the following:
/views/posts/index.html.erb
<% @featured_post.each do |post| %>
<%= post.title %>
<% end %>
And in the posts_controller.rb I am doing the following in the `index` action:
@featured_post = Post.all
Obviously this brings in all the post titles which is not what I want. I am assuming I have to add something to the controller to all for this but not sure what that is. | ruby-on-rails | controller | blogs | null | null | null | open | Adding "Featured Posts" to my blog...
===
I am trying to add a featured post feature to my Ruby on Rails Blog. So far I have added a `featured_post` column to my `post` table and it passes a `1` if the check box is selected and `0` if not.
Now I am attempting to pull out these posts by doing the following:
/views/posts/index.html.erb
<% @featured_post.each do |post| %>
<%= post.title %>
<% end %>
And in the posts_controller.rb I am doing the following in the `index` action:
@featured_post = Post.all
Obviously this brings in all the post titles which is not what I want. I am assuming I have to add something to the controller to all for this but not sure what that is. | 0 |
11,630,846 | 07/24/2012 12:26:25 | 1,439,245 | 06/06/2012 08:39:32 | 16 | 2 | Dynamic Data Filter: Foreign key doent map to ForeignKey template | i have a 2 sqltable `EmpInf` with EmpId, EmpName, Salary and `Foreign key DeptNumber` and a 2nd table `Dept` with `primary key DeptNo` and `DeptName`
i have a Dynamic Data Control : `Data Manager`, `Linqtosql` and a gridview, such as
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" >
<DataControls>
<asp:DataControlReference ControlID="GridView1" />
</DataControls>
</asp:DynamicDataManager>
<asp:LinqDataSource ID="LinqDataSource1" runat="server"
ContextTypeName="filtercontrol1.DataClasses1DataContext" TableName="EmpInfs"
EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName="">
</asp:LinqDataSource>
<asp:GridView ID="GridView1" runat="server" DataSourceID="LinqDataSource1"
AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"
DataKeyNames="EmpId">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True"
ShowSelectButton="True" />
<asp:BoundField DataField="EmpId" HeaderText="EmpId" ReadOnly="True"
SortExpression="EmpId" />
<asp:BoundField DataField="EmpName" HeaderText="EmpName"
SortExpression="EmpName" />
<asp:BoundField DataField="Salary" HeaderText="Salary"
SortExpression="Salary" />
<asp:BoundField DataField="DeptNumber" HeaderText="DeptNumber"
SortExpression="DeptNumber" />
</Columns>
</asp:GridView>
<br />
i am trying to filter the `gridview` using a `Dynamic data filter` such as
<asp:DynamicFilter ID="DynamicFilter1" runat="server" DataField="DeptNUmber" FilterUIHint="ForeignKey">
</asp:DynamicFilter>
<asp:QueryExtender ID="QueryExtender1"
TargetControlID="LinqDataSource1" runat="server">
<asp:DynamicFilterExpression ControlID="DynamicFilter1" />
</asp:QueryExtender>
basically i have assigned a `foreign key DeptNumber` in a DynamicfilterTemplate and assigned a `FilterUinhint as Foreign`. but during runtime it throws an exception
Unable to cast object of type 'System.Web.DynamicData.MetaColumn' to type 'System.Web.DynamicData.MetaForeignKeyColumn'.
namespace filtercontrol1
{
public partial class ForeignKeyFilter : System.Web.DynamicData.QueryableFilterUserControl
{
private const string NullValueString = "[null]";
private new MetaForeignKeyColumn Column
{
get
{
return (MetaForeignKeyColumn)base.Column; // it throws an exception here.
}
}
thanks for any assistance.
| visual-studio-2010 | sql-server-2008 | asp.net-4.0 | dynamic-data | asp.net-4.5 | null | open | Dynamic Data Filter: Foreign key doent map to ForeignKey template
===
i have a 2 sqltable `EmpInf` with EmpId, EmpName, Salary and `Foreign key DeptNumber` and a 2nd table `Dept` with `primary key DeptNo` and `DeptName`
i have a Dynamic Data Control : `Data Manager`, `Linqtosql` and a gridview, such as
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" >
<DataControls>
<asp:DataControlReference ControlID="GridView1" />
</DataControls>
</asp:DynamicDataManager>
<asp:LinqDataSource ID="LinqDataSource1" runat="server"
ContextTypeName="filtercontrol1.DataClasses1DataContext" TableName="EmpInfs"
EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName="">
</asp:LinqDataSource>
<asp:GridView ID="GridView1" runat="server" DataSourceID="LinqDataSource1"
AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"
DataKeyNames="EmpId">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True"
ShowSelectButton="True" />
<asp:BoundField DataField="EmpId" HeaderText="EmpId" ReadOnly="True"
SortExpression="EmpId" />
<asp:BoundField DataField="EmpName" HeaderText="EmpName"
SortExpression="EmpName" />
<asp:BoundField DataField="Salary" HeaderText="Salary"
SortExpression="Salary" />
<asp:BoundField DataField="DeptNumber" HeaderText="DeptNumber"
SortExpression="DeptNumber" />
</Columns>
</asp:GridView>
<br />
i am trying to filter the `gridview` using a `Dynamic data filter` such as
<asp:DynamicFilter ID="DynamicFilter1" runat="server" DataField="DeptNUmber" FilterUIHint="ForeignKey">
</asp:DynamicFilter>
<asp:QueryExtender ID="QueryExtender1"
TargetControlID="LinqDataSource1" runat="server">
<asp:DynamicFilterExpression ControlID="DynamicFilter1" />
</asp:QueryExtender>
basically i have assigned a `foreign key DeptNumber` in a DynamicfilterTemplate and assigned a `FilterUinhint as Foreign`. but during runtime it throws an exception
Unable to cast object of type 'System.Web.DynamicData.MetaColumn' to type 'System.Web.DynamicData.MetaForeignKeyColumn'.
namespace filtercontrol1
{
public partial class ForeignKeyFilter : System.Web.DynamicData.QueryableFilterUserControl
{
private const string NullValueString = "[null]";
private new MetaForeignKeyColumn Column
{
get
{
return (MetaForeignKeyColumn)base.Column; // it throws an exception here.
}
}
thanks for any assistance.
| 0 |
245,721 | 10/29/2008 03:38:56 | 32,265 | 10/29/2008 03:31:03 | 1 | 0 | What will it take to add Objective-C support to the .NET common language runtime? | Is it possible for the .NET CLR to support Objective-C? Are there any reasons (either from a legal or implementational) standpoint why this wouldn't be possible?
In the spirit of cross-platform application development, it would be nice to be able to write and run Objective-c applications on Windows machines. At least i think it would.
| objectivec | clr | .net | null | null | null | open | What will it take to add Objective-C support to the .NET common language runtime?
===
Is it possible for the .NET CLR to support Objective-C? Are there any reasons (either from a legal or implementational) standpoint why this wouldn't be possible?
In the spirit of cross-platform application development, it would be nice to be able to write and run Objective-c applications on Windows machines. At least i think it would.
| 0 |
11,628,332 | 07/24/2012 09:52:13 | 1,298,587 | 03/28/2012 15:24:34 | 4 | 0 | First response time of ticket from OTRS? | How to write a MYSQL query to retrieve first response time of ticket from OTRS ? | php | otrs | null | null | null | 07/24/2012 09:59:56 | not a real question | First response time of ticket from OTRS?
===
How to write a MYSQL query to retrieve first response time of ticket from OTRS ? | 1 |
1,722,137 | 11/12/2009 13:21:31 | 16,853 | 09/17/2008 21:33:16 | 11,796 | 342 | scala 2.8 collections design tutorial | Following on from [my breathless confusion][1], what are some good resources which explain how the new scala **2.8** collections library has been structured. I'm interested to find some information on how the following fit together:
- The collection classes/traits themselves (e.g. `List`, `Iterable`)
- Why the *Like* classes exist (e.g. `TraversableLike`)
- What the companion methods are for (e.g. `List.companion`)
- How I know what `implicit` objects are in scope at a given point
[1]: http://stackoverflow.com/questions/1721356/scala-2-8-canbuildfrom | scala | scala-2.8 | collections | tutorials | null | 06/14/2012 16:48:27 | not constructive | scala 2.8 collections design tutorial
===
Following on from [my breathless confusion][1], what are some good resources which explain how the new scala **2.8** collections library has been structured. I'm interested to find some information on how the following fit together:
- The collection classes/traits themselves (e.g. `List`, `Iterable`)
- Why the *Like* classes exist (e.g. `TraversableLike`)
- What the companion methods are for (e.g. `List.companion`)
- How I know what `implicit` objects are in scope at a given point
[1]: http://stackoverflow.com/questions/1721356/scala-2-8-canbuildfrom | 4 |
10,206,012 | 04/18/2012 08:53:52 | 879,063 | 08/04/2011 16:36:34 | 121 | 20 | csv files broken | /* generate csv content */
while($res = mysql_fetch_assoc($query)) {
/* If two or more columns of the result have the same field names, the last column will take precedence. */
for($i=0; $i<mysql_num_fields($query);$i++) {
$data = $res[mysql_field_name($query,$i)];
$data = trim( preg_replace( '/\s+/', ' ', $data ) );
echo "\"".$data."\";";
}
echo "\r\n";
}
The following code intends to remove extra whitespace or newline characters and generate a csv file. My problem is that on some workstations the csv file is displayed correctly and on other stations it is displayed incorrectly although all stations have the same Regional and Language Settings.
Is there something else I should check out or use a different code for generating proper csv files that cleans hidden spaces or new lines? | php | excel | csv | null | null | null | open | csv files broken
===
/* generate csv content */
while($res = mysql_fetch_assoc($query)) {
/* If two or more columns of the result have the same field names, the last column will take precedence. */
for($i=0; $i<mysql_num_fields($query);$i++) {
$data = $res[mysql_field_name($query,$i)];
$data = trim( preg_replace( '/\s+/', ' ', $data ) );
echo "\"".$data."\";";
}
echo "\r\n";
}
The following code intends to remove extra whitespace or newline characters and generate a csv file. My problem is that on some workstations the csv file is displayed correctly and on other stations it is displayed incorrectly although all stations have the same Regional and Language Settings.
Is there something else I should check out or use a different code for generating proper csv files that cleans hidden spaces or new lines? | 0 |
57,576 | 09/11/2008 20:43:18 | 5,008 | 09/07/2008 10:42:10 | 101 | 11 | Secure-Wave and click once applications | I have users who are using "secure-wave" security. Evidently it is some sort of white-listing application monitor.
With my click-once application, the name of the folders that are used are runtime generated, so the administrators are not able to properly whitelist the application and its files.
Any suggestions? | click-once | secure-wave | null | null | null | null | open | Secure-Wave and click once applications
===
I have users who are using "secure-wave" security. Evidently it is some sort of white-listing application monitor.
With my click-once application, the name of the folders that are used are runtime generated, so the administrators are not able to properly whitelist the application and its files.
Any suggestions? | 0 |
7,550,692 | 09/26/2011 04:34:53 | 554,865 | 12/27/2010 10:13:05 | 118 | 2 | Instant messaging in iPhone app | I have to integrate IM in my app can anyone tell me what is the best way to so that.
I am very much unknown to IM .
Please help.
Please provide any tutorials if possible. | iphone | instant-messaging | null | null | null | 09/26/2011 04:41:56 | not a real question | Instant messaging in iPhone app
===
I have to integrate IM in my app can anyone tell me what is the best way to so that.
I am very much unknown to IM .
Please help.
Please provide any tutorials if possible. | 1 |
3,806,910 | 09/27/2010 18:59:41 | 171,546 | 09/10/2009 16:13:36 | 784 | 8 | Are you able to close your eyes and focus/think just on your code? | I have some colleagues at work, they arrive at the morning, switch off email, phone, close the door, etc. Then they close their eyes and during 30 minutes try to focus on their programming (C++, C, etc) and remember what they did yesterday. Then and somehow the process or imagine the code on they mind, with closed eyes. And some time later they just grab pencil and dump code on a sheet of paper or on their IDE (Kdevelop, Visual Studio, Eclipse, etc). Some of these guys are really effective and develop very complicated code. Me, I can not do this and I wonder if some of you can do something similar, and in case, if you could give some advice on how to be able to focus so deep in a codde or problem.
Thanks
P.D. Please do not close this question. I consider it is directly related to the craft of programming | design | focus | metaprogramming | concentration | null | 09/27/2010 19:02:28 | off topic | Are you able to close your eyes and focus/think just on your code?
===
I have some colleagues at work, they arrive at the morning, switch off email, phone, close the door, etc. Then they close their eyes and during 30 minutes try to focus on their programming (C++, C, etc) and remember what they did yesterday. Then and somehow the process or imagine the code on they mind, with closed eyes. And some time later they just grab pencil and dump code on a sheet of paper or on their IDE (Kdevelop, Visual Studio, Eclipse, etc). Some of these guys are really effective and develop very complicated code. Me, I can not do this and I wonder if some of you can do something similar, and in case, if you could give some advice on how to be able to focus so deep in a codde or problem.
Thanks
P.D. Please do not close this question. I consider it is directly related to the craft of programming | 2 |
10,741,432 | 05/24/2012 16:20:34 | 1,263,473 | 03/12/2012 07:00:29 | 3 | 1 | Status of Eclipse 4.2 M7 | On the [download page for Eclipse 4.2M7][1] the status is an ominous 'red cross' icon, which I presume it to mean that it's not passing unit and/or integration tests (rigth? there's no explanation anywhere that I can see - but it was a nice green 'tick' when I downloaded M6)
I also cannot find any updates anywhere googling for it or on the [Project's page][2]
Googling around for "Eclipse 4.2" leads nowhere, nor adding "M7" is of any help...
I'm currently using M6 and it looks reasonably stable and polished, but there are a few rough edges (especially in docking views in different areas of the window) which clearly look 'work in progress' and I'd really like to see what the progress may have been.
Does anyone have any info about whether the Milestone build has been abandoned, or maybe it's good to use despite the 'red cross', and/or when another build is expected? or should we just wait for the official release candidate?
[1]: http://download.eclipse.org/eclipse/downloads/drops4/S-4.2M7-201205031800/
[2]: http://www.eclipse.org/eclipse/ | java | eclipse | null | null | null | 05/24/2012 22:06:01 | too localized | Status of Eclipse 4.2 M7
===
On the [download page for Eclipse 4.2M7][1] the status is an ominous 'red cross' icon, which I presume it to mean that it's not passing unit and/or integration tests (rigth? there's no explanation anywhere that I can see - but it was a nice green 'tick' when I downloaded M6)
I also cannot find any updates anywhere googling for it or on the [Project's page][2]
Googling around for "Eclipse 4.2" leads nowhere, nor adding "M7" is of any help...
I'm currently using M6 and it looks reasonably stable and polished, but there are a few rough edges (especially in docking views in different areas of the window) which clearly look 'work in progress' and I'd really like to see what the progress may have been.
Does anyone have any info about whether the Milestone build has been abandoned, or maybe it's good to use despite the 'red cross', and/or when another build is expected? or should we just wait for the official release candidate?
[1]: http://download.eclipse.org/eclipse/downloads/drops4/S-4.2M7-201205031800/
[2]: http://www.eclipse.org/eclipse/ | 3 |
8,830,044 | 01/12/2012 04:15:52 | 1,091,608 | 12/10/2011 19:52:59 | 63 | 2 | Get query resultset into 2d String array | after executing a query in Java, say I got the result set like
allan murphy 20 10
kenny rogers 12 22
marry watson 34 5
I want this whole result set into a variable so that I can return the variable and use it in other calling functions. I want to get the whole resultset into a 2D String array, so that later I can access them through indexing.
Question is :: Is it good concept to get the whole resultset into a 2D String array ?? AND How to get it into a 2D String array ?? thankz. | java | string | query | resultset | null | null | open | Get query resultset into 2d String array
===
after executing a query in Java, say I got the result set like
allan murphy 20 10
kenny rogers 12 22
marry watson 34 5
I want this whole result set into a variable so that I can return the variable and use it in other calling functions. I want to get the whole resultset into a 2D String array, so that later I can access them through indexing.
Question is :: Is it good concept to get the whole resultset into a 2D String array ?? AND How to get it into a 2D String array ?? thankz. | 0 |
7,319,897 | 09/06/2011 12:26:24 | 846,130 | 07/15/2011 09:10:04 | 14 | 0 | How to downolad images from server in android? | I want to download more than two images download from server at the time,How to implement this..
Thanks Friends.
| android | null | null | null | null | 09/06/2011 12:45:03 | not a real question | How to downolad images from server in android?
===
I want to download more than two images download from server at the time,How to implement this..
Thanks Friends.
| 1 |
11,374,670 | 07/07/2012 11:38:35 | 1,386,328 | 05/10/2012 06:39:37 | 7 | 0 | compress binary data in sql server | I am **storing images** in my database(Sql Server 2008) **in binary formate**.
Table's Field datatype is image.
Right now i'm having rows above than millions in that table. Now i want to **compress that binary data.**
I have searched some solutions but they are on form levels means i have to write code in C# or VB.net and bring that binary data on that page. By compressing them with code i have to update that particular record.
but due to i have large number of data it is inconvenient to do this process on form side because it can take plenty of time.
So all i want some **code for SQL** so i can **create Stored Procedure** in my database, using which i can get each row at a time,**directly compress that binary data and update** that fetched column for that perticular row.
Is there any method available to do this process on **SQL server 2008**.
Thank you in Advance. | sql | sql-server | sql-server-2008 | null | null | 07/08/2012 19:56:23 | not a real question | compress binary data in sql server
===
I am **storing images** in my database(Sql Server 2008) **in binary formate**.
Table's Field datatype is image.
Right now i'm having rows above than millions in that table. Now i want to **compress that binary data.**
I have searched some solutions but they are on form levels means i have to write code in C# or VB.net and bring that binary data on that page. By compressing them with code i have to update that particular record.
but due to i have large number of data it is inconvenient to do this process on form side because it can take plenty of time.
So all i want some **code for SQL** so i can **create Stored Procedure** in my database, using which i can get each row at a time,**directly compress that binary data and update** that fetched column for that perticular row.
Is there any method available to do this process on **SQL server 2008**.
Thank you in Advance. | 1 |
2,512,598 | 03/25/2010 01:30:38 | 265,742 | 02/03/2010 22:50:04 | 10 | 0 | Maths Question: number of different permutations | This is more of a maths question than programming but I figure a lot of people here are pretty good at maths! :)
My question is: Given a 9 x 9 grid (81 cells) that must contain the numbers 1 to 9 each exactly 9 times, how many different grids can be produced. The order of the numbers doesn't matter, for example the first row could contain nine 1's etc. This is related to Sudoku and we know the number of valid Sudoku grids is 6.67×10^21, so since my problem isn't constrained like Sudoku by having to have each of the 9 numbers in each row, column and box then the answer should be greater than 6.67×10^21.
My first thought was that the answer is 81! however on further reflection this assumes that the 81 numbers possible for each cell are different, distinct number. They are not, there are 81 possible numbers for each cell but only 9 possible **different** numbers.
My next thought was then that each of the cells in the first row can be any number between 1 and 9. If by chance the first row happened to be all the same number, say all 1s, then each cell in the second row could only have 8 possibilites, 2-9. If this continued down until the last row then number of different permutations could be calculated by 9^2 * 8^2 * 7^2 ..... * 1^2. However this doesn't work if each row doesn't contain 9 of the same number.
It's been quite a while since I studied this stuff and I can't think of a way to work it out, I'd appreciate any help anyone can offer. | math | permutation | null | null | null | null | open | Maths Question: number of different permutations
===
This is more of a maths question than programming but I figure a lot of people here are pretty good at maths! :)
My question is: Given a 9 x 9 grid (81 cells) that must contain the numbers 1 to 9 each exactly 9 times, how many different grids can be produced. The order of the numbers doesn't matter, for example the first row could contain nine 1's etc. This is related to Sudoku and we know the number of valid Sudoku grids is 6.67×10^21, so since my problem isn't constrained like Sudoku by having to have each of the 9 numbers in each row, column and box then the answer should be greater than 6.67×10^21.
My first thought was that the answer is 81! however on further reflection this assumes that the 81 numbers possible for each cell are different, distinct number. They are not, there are 81 possible numbers for each cell but only 9 possible **different** numbers.
My next thought was then that each of the cells in the first row can be any number between 1 and 9. If by chance the first row happened to be all the same number, say all 1s, then each cell in the second row could only have 8 possibilites, 2-9. If this continued down until the last row then number of different permutations could be calculated by 9^2 * 8^2 * 7^2 ..... * 1^2. However this doesn't work if each row doesn't contain 9 of the same number.
It's been quite a while since I studied this stuff and I can't think of a way to work it out, I'd appreciate any help anyone can offer. | 0 |
5,666,081 | 04/14/2011 16:01:21 | 201,231 | 11/02/2009 21:28:43 | 347 | 2 | jQuery cycle plugin | So i found a little bug that seems to be valid, but i cant figure out how to correct it.
It seems as though the jQuery cycle is counting the h2 and the p tags as child elements of .slideshow, and creating a link in the mininav that is generated... so instead of just 2 child elements .slide, it is displaying 4?? both in firefox and chrome... IE displays just the 2.
So is there a way to modify the script to only count the first child element of .slideshow?
<script type="text/javascript">
$(function() {
$('.slideshow')
.before('<div id="mininav" class="mininav" />')
.cycle({
fx : 'fade',
speed : 'fast',
timeout : 5500,
pause : 1,
pager : '#mininav',
before : function() { if (window.console) console.log(this.src); }
});
});
</script>
<div class="slideshow">
<div class="slide" style="background:#fff url({iw_value name='slideshow.image'/}) no-repeat top left;">
<h2>{iw_value name='slideshow.headline'/}</h2>
<p>{iw_value name='slideshow.text'/}</p>
</div>
<div class="slide" style="background:#fff url({iw_value name='slideshow.image'/}) no-repeat top left;">
<h2>{iw_value name='slideshow.headline'/}</h2>
<p>{iw_value name='slideshow.text'/}</p>
</div>
</div><!--/slideshow--> | jquery | cycle | null | null | null | null | open | jQuery cycle plugin
===
So i found a little bug that seems to be valid, but i cant figure out how to correct it.
It seems as though the jQuery cycle is counting the h2 and the p tags as child elements of .slideshow, and creating a link in the mininav that is generated... so instead of just 2 child elements .slide, it is displaying 4?? both in firefox and chrome... IE displays just the 2.
So is there a way to modify the script to only count the first child element of .slideshow?
<script type="text/javascript">
$(function() {
$('.slideshow')
.before('<div id="mininav" class="mininav" />')
.cycle({
fx : 'fade',
speed : 'fast',
timeout : 5500,
pause : 1,
pager : '#mininav',
before : function() { if (window.console) console.log(this.src); }
});
});
</script>
<div class="slideshow">
<div class="slide" style="background:#fff url({iw_value name='slideshow.image'/}) no-repeat top left;">
<h2>{iw_value name='slideshow.headline'/}</h2>
<p>{iw_value name='slideshow.text'/}</p>
</div>
<div class="slide" style="background:#fff url({iw_value name='slideshow.image'/}) no-repeat top left;">
<h2>{iw_value name='slideshow.headline'/}</h2>
<p>{iw_value name='slideshow.text'/}</p>
</div>
</div><!--/slideshow--> | 0 |
1,273,360 | 08/13/2009 17:13:37 | 159,072 | 06/02/2009 18:25:22 | 429 | 4 | Need a Suggestion | I am working as a C# programmer for almost 1 year and still I need to go a long way I think. Recently I have applied for a scholarship. My supervisor Professor Mr. X has told me that he can offer me a scholarship if I can work in a specific graphics library written in C++ (i.e. I have to eventually migrate to the language C++).
Now, I don't know this library. It may take months to learn.
Is it wise to spend time on that library to avail that scholarship for the shake of a varsity degree when I want to buildup my carrier as a C# programmer?
Or should learn that library, avail the scholarship, get the degree and go for a job that matches that knowledge (in this case I need to start my carrier from scratch)? | wiki | null | null | null | null | 01/26/2012 13:08:59 | not constructive | Need a Suggestion
===
I am working as a C# programmer for almost 1 year and still I need to go a long way I think. Recently I have applied for a scholarship. My supervisor Professor Mr. X has told me that he can offer me a scholarship if I can work in a specific graphics library written in C++ (i.e. I have to eventually migrate to the language C++).
Now, I don't know this library. It may take months to learn.
Is it wise to spend time on that library to avail that scholarship for the shake of a varsity degree when I want to buildup my carrier as a C# programmer?
Or should learn that library, avail the scholarship, get the degree and go for a job that matches that knowledge (in this case I need to start my carrier from scratch)? | 4 |
11,662,316 | 07/26/2012 04:24:40 | 1,544,948 | 07/23/2012 04:43:09 | 9 | 0 | How can i have an option (as text/image) on right click in tridion | How can i get a option (as text/image) on right click in tridion at the HomePage level,Page view.
Very similar to a button in ribbon, how can i have it as an option on Right click (as text/image) so that on selection, i will have my own functionality.
Could anyone help me. | tridion | tridion-2011 | null | null | null | null | open | How can i have an option (as text/image) on right click in tridion
===
How can i get a option (as text/image) on right click in tridion at the HomePage level,Page view.
Very similar to a button in ribbon, how can i have it as an option on Right click (as text/image) so that on selection, i will have my own functionality.
Could anyone help me. | 0 |
4,787,103 | 01/24/2011 20:59:43 | 406,790 | 07/30/2010 13:59:35 | 268 | 32 | Creating a generic function that accepts multiple parameter types | I'm writing an Android app that makes heavy use of web services.
I'd like to write a method to add headers to my Http objects (HttpGet, HttpPost, HttpPut, HttpDelete).
I'd like to write 1 method and not 4, since the headers for all will always be the same.
I believe all 4 extend HttpRequestBase. Would the best idea be to write a method that takes an HttpRequestBase as a parameter and cast my various HttpGet, HttpPost, HttpPut, HttpDelete objects to HttpRequestBase and call the method?
Other suggestions? | java | http | null | null | null | null | open | Creating a generic function that accepts multiple parameter types
===
I'm writing an Android app that makes heavy use of web services.
I'd like to write a method to add headers to my Http objects (HttpGet, HttpPost, HttpPut, HttpDelete).
I'd like to write 1 method and not 4, since the headers for all will always be the same.
I believe all 4 extend HttpRequestBase. Would the best idea be to write a method that takes an HttpRequestBase as a parameter and cast my various HttpGet, HttpPost, HttpPut, HttpDelete objects to HttpRequestBase and call the method?
Other suggestions? | 0 |
4,067,180 | 11/01/2010 07:14:16 | 74,314 | 03/05/2009 16:17:05 | 7,344 | 496 | collect value only from the text input that have been changed | I have a html page that show a lot of data rows, in every row i have input text with different value, the user can edit this text input and then press a button to do some calculate action.
How can I collect with javascript(Juery) only this values that have been changed, and send them to php script. I search a simple way, not to save all big array of old values then compare with new values, Is there such solution ?
thanks! | jquery | forms | textinput | null | null | null | open | collect value only from the text input that have been changed
===
I have a html page that show a lot of data rows, in every row i have input text with different value, the user can edit this text input and then press a button to do some calculate action.
How can I collect with javascript(Juery) only this values that have been changed, and send them to php script. I search a simple way, not to save all big array of old values then compare with new values, Is there such solution ?
thanks! | 0 |
10,607,847 | 05/15/2012 19:54:40 | 340,947 | 05/14/2010 05:16:31 | 1,658 | 36 | How does inline Javascript (in HTML) work? | I know this is bad practice. Don't write code like this if at all possible.
Of course, we'll always find ourselves in situations where a clever snippet of inline Javascript can address an issue quickly.
I am pursuing this query in the interest of fully understanding what happens (and the potential pitfalls) when something like this is written:
<a href="#" onclick="alert('Hi')">Click Me</a>
As far as I can tell this is functionally the same as
<script type="text/javascript">
document.getElementById('click_me').onclick =
function () { alert('Hi'); };
</script>
<a href="#" id="click_me">Click Me</a>
Extrapolating from this it seems that the string assigned to attribute `onclick` is inserted within an anonymous function which is assigned to the element's click handler. Is this actually the case?
Because I'm starting to do things like this:
<a href="#" onclick="$(this).next().fadeIn(); return false;">Display my next sibling</a> <!-- Return false in handler so as not to scroll to top of page! -->
Which works. But I don't know how much of a hack this is. It looks suspicious because there is no apparent function that is being returned from!
You might ask, why are you doing this, Steve? Inline JS is bad practice!
Well to be quite honest I'm tired of editing three different sections of code just to modify one section of a page, especially when I'm just prototyping something to see if it will work at all. It is so much easier and sometimes even makes sense for the code specifically related to this HTML element to be defined *right within* the element: When I decide 2 minutes later that this was a terrible, terrible idea I can nuke the entire div (or whatever) and I don't have a bunch of mysterious JS and CSS cruft hanging around in the rest of the page, slowing down rendering ever so slightly. This is similar to the concept of locality of reference but instead of cache misses we're looking at bugs and code bloat. | javascript | html | html5 | null | null | null | open | How does inline Javascript (in HTML) work?
===
I know this is bad practice. Don't write code like this if at all possible.
Of course, we'll always find ourselves in situations where a clever snippet of inline Javascript can address an issue quickly.
I am pursuing this query in the interest of fully understanding what happens (and the potential pitfalls) when something like this is written:
<a href="#" onclick="alert('Hi')">Click Me</a>
As far as I can tell this is functionally the same as
<script type="text/javascript">
document.getElementById('click_me').onclick =
function () { alert('Hi'); };
</script>
<a href="#" id="click_me">Click Me</a>
Extrapolating from this it seems that the string assigned to attribute `onclick` is inserted within an anonymous function which is assigned to the element's click handler. Is this actually the case?
Because I'm starting to do things like this:
<a href="#" onclick="$(this).next().fadeIn(); return false;">Display my next sibling</a> <!-- Return false in handler so as not to scroll to top of page! -->
Which works. But I don't know how much of a hack this is. It looks suspicious because there is no apparent function that is being returned from!
You might ask, why are you doing this, Steve? Inline JS is bad practice!
Well to be quite honest I'm tired of editing three different sections of code just to modify one section of a page, especially when I'm just prototyping something to see if it will work at all. It is so much easier and sometimes even makes sense for the code specifically related to this HTML element to be defined *right within* the element: When I decide 2 minutes later that this was a terrible, terrible idea I can nuke the entire div (or whatever) and I don't have a bunch of mysterious JS and CSS cruft hanging around in the rest of the page, slowing down rendering ever so slightly. This is similar to the concept of locality of reference but instead of cache misses we're looking at bugs and code bloat. | 0 |
9,890,314 | 03/27/2012 13:18:07 | 860,581 | 07/24/2011 20:19:11 | 24 | 0 | Calculating the angle on a bouncing back ball | I have been working on a game and having some problem with the bouncing effect. I have searched on internet for different resources but have not find the correct way of doing it.
I wonder if there is some way to calculate the degrees or the angle that the ball will bounce back after hitting a wall.
Exampel, the ball is moving at a specific angle, i wonder how to calculate the angle when i bounce
bollX += bollspeed*Math.cos(Math.toRadians(angle));
bollY += bollspeed*Math.sin(Math.toRadians(angel));
![enter image description here][1]
Thanks for the help.
[1]: http://i.stack.imgur.com/URNXh.png | android | game-physics | sin | cos | null | null | open | Calculating the angle on a bouncing back ball
===
I have been working on a game and having some problem with the bouncing effect. I have searched on internet for different resources but have not find the correct way of doing it.
I wonder if there is some way to calculate the degrees or the angle that the ball will bounce back after hitting a wall.
Exampel, the ball is moving at a specific angle, i wonder how to calculate the angle when i bounce
bollX += bollspeed*Math.cos(Math.toRadians(angle));
bollY += bollspeed*Math.sin(Math.toRadians(angel));
![enter image description here][1]
Thanks for the help.
[1]: http://i.stack.imgur.com/URNXh.png | 0 |
11,470,981 | 07/13/2012 12:57:05 | 1,191,127 | 02/05/2012 20:47:49 | 37 | 4 | C program for display assembly in binary files | i'm trying to display the assembly instructions in a binary files but how can i do?
how can i know if an argument of MOV ( for example ) is a pointer or a number ?
this is for educational purposes, i known that there is GDB and othrer tools.
thanks in advance! | c | assembly | null | null | null | null | open | C program for display assembly in binary files
===
i'm trying to display the assembly instructions in a binary files but how can i do?
how can i know if an argument of MOV ( for example ) is a pointer or a number ?
this is for educational purposes, i known that there is GDB and othrer tools.
thanks in advance! | 0 |
2,811,667 | 05/11/2010 14:45:52 | 338,382 | 05/11/2010 14:40:48 | 1 | 0 | Apple Push Notification Service. | I am attempting to follow the instructions on this page:
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW4
To write a Java based test server that will push a payload on the sandbox push service to a test device.
I am an admin on the account, but not the owner.
I have two App IDs.
XXX.cs.* and
XXX.cs.apns
where XXX are the identical 10 character strings that Apple assigns.
Step 2 says I must locate the App ID for the sandbox. And later talks about a configuration button I do not see...
Do I have to create a third App ID for XXX.cs.apnsSandbox or similar?
Thanks in advance, | iphone | provisioning | certificates | adc | null | null | open | Apple Push Notification Service.
===
I am attempting to follow the instructions on this page:
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW4
To write a Java based test server that will push a payload on the sandbox push service to a test device.
I am an admin on the account, but not the owner.
I have two App IDs.
XXX.cs.* and
XXX.cs.apns
where XXX are the identical 10 character strings that Apple assigns.
Step 2 says I must locate the App ID for the sandbox. And later talks about a configuration button I do not see...
Do I have to create a third App ID for XXX.cs.apnsSandbox or similar?
Thanks in advance, | 0 |
596,170 | 02/27/2009 19:09:35 | 65,868 | 02/13/2009 02:38:36 | 1,986 | 100 | Suitable environment for a 7 year old | My 7 year old would like to learn how to program (his idea not mine, and he does things in the outside world so I am not too worried from that point of view). The other day we sat down and wrote a very simple number guessing game (you pick 8 and it is correct, anything else it is wrong).
It went OK but there were a number of questions he had based on the syntax of the language (I happened to pick Java as I had the IDE opened at the time...). I teach post-secondary introductory programming courses so this was a bit of an eye opener to me (most students out of high school are reluctant to ask questions) as I really had to figure out how to explain syntax to a 7 year old.
Clearly any C type language is going to have the same issues, as will most “languages”. I looked at squeak but not keep on using it for this. I looked at the Alice environment but didn't like it for this either.
From a physical point of view he is comfortable with a keyboard/mouse and can put together Lego sets with relative ease (so following directions with a fun outcome works for him). I have access to Lego NXT but he is still a bit young for that (it takes too long to see the results of the work, even with the supplied graphical environment).
Ideally I'd like the experience to help him build up confidence in math and logic (if a 7 year old has logic :-).
I remember using turtle graphics/logo as a child. I am leaning towards this but wondering if there are any other ideas or if anyone can recommend a good logo environment?
Thanks in advance.
| children | logo | turtle-graphics | null | null | 03/02/2012 17:28:08 | not constructive | Suitable environment for a 7 year old
===
My 7 year old would like to learn how to program (his idea not mine, and he does things in the outside world so I am not too worried from that point of view). The other day we sat down and wrote a very simple number guessing game (you pick 8 and it is correct, anything else it is wrong).
It went OK but there were a number of questions he had based on the syntax of the language (I happened to pick Java as I had the IDE opened at the time...). I teach post-secondary introductory programming courses so this was a bit of an eye opener to me (most students out of high school are reluctant to ask questions) as I really had to figure out how to explain syntax to a 7 year old.
Clearly any C type language is going to have the same issues, as will most “languages”. I looked at squeak but not keep on using it for this. I looked at the Alice environment but didn't like it for this either.
From a physical point of view he is comfortable with a keyboard/mouse and can put together Lego sets with relative ease (so following directions with a fun outcome works for him). I have access to Lego NXT but he is still a bit young for that (it takes too long to see the results of the work, even with the supplied graphical environment).
Ideally I'd like the experience to help him build up confidence in math and logic (if a 7 year old has logic :-).
I remember using turtle graphics/logo as a child. I am leaning towards this but wondering if there are any other ideas or if anyone can recommend a good logo environment?
Thanks in advance.
| 4 |
4,345,789 | 12/03/2010 13:06:21 | 418,507 | 08/12/2010 14:15:38 | 66 | 0 | How to add null-character to string in Perl ? | I want to create string in perl with length, for example 7, but "visible" contents, for example "a".
my $test = ...;
print $test result: "a"
print length($test) result: 7
| perl | null | null | null | null | null | open | How to add null-character to string in Perl ?
===
I want to create string in perl with length, for example 7, but "visible" contents, for example "a".
my $test = ...;
print $test result: "a"
print length($test) result: 7
| 0 |
8,977,238 | 01/23/2012 19:12:39 | 1,165,606 | 01/23/2012 19:01:39 | 1 | 0 | How do I fix this error? "InvalidCastException was unhandled" | I'm in an intro level programming class and I have to make a grade calculator. There are 2 homework grades, 2 quiz grades, and one final grade. Homeworks are worth 25%, quizzes are worth 35%, and the final is worth 40%.
I want to be able to enter the students grades and name and when I click the 'Calculate' button, have the course grade and student name at the bottom in a label.
It seems I am having some sort of problem when I convert. I have tried using integers, and I get the same problem. I could really use some help please!
Here is the code for the button click:
private void btnCalculate_Click(object sender, RoutedEventArgs e)
{
//Defining, converting, and assigning variables
string studentName = Convert.ToString(tbName);
double hw1 = Convert.ToDouble(tbHW1);
double hw2 = Convert.ToDouble(tbHW2);
double quiz1 = Convert.ToDouble(tbQuiz1);
double quiz2 = Convert.ToDouble(tbQuiz2);
double final = Convert.ToDouble(tbFinal);
const double HWWeight = 0.25;
const double quizWeight = 0.35;
const double finalWeight = 0.40;
double studentGrade;
//Grade Calculation
studentGrade = ((hw1 + hw2) * HWWeight) + ((quiz1 + quiz2) * quizWeight) + (final * finalWeight);
//Display results
lblLeftResult.Content = studentName;
lblRightResult.Content = studentGrade;
}
}
}
| c# | null | null | null | null | null | open | How do I fix this error? "InvalidCastException was unhandled"
===
I'm in an intro level programming class and I have to make a grade calculator. There are 2 homework grades, 2 quiz grades, and one final grade. Homeworks are worth 25%, quizzes are worth 35%, and the final is worth 40%.
I want to be able to enter the students grades and name and when I click the 'Calculate' button, have the course grade and student name at the bottom in a label.
It seems I am having some sort of problem when I convert. I have tried using integers, and I get the same problem. I could really use some help please!
Here is the code for the button click:
private void btnCalculate_Click(object sender, RoutedEventArgs e)
{
//Defining, converting, and assigning variables
string studentName = Convert.ToString(tbName);
double hw1 = Convert.ToDouble(tbHW1);
double hw2 = Convert.ToDouble(tbHW2);
double quiz1 = Convert.ToDouble(tbQuiz1);
double quiz2 = Convert.ToDouble(tbQuiz2);
double final = Convert.ToDouble(tbFinal);
const double HWWeight = 0.25;
const double quizWeight = 0.35;
const double finalWeight = 0.40;
double studentGrade;
//Grade Calculation
studentGrade = ((hw1 + hw2) * HWWeight) + ((quiz1 + quiz2) * quizWeight) + (final * finalWeight);
//Display results
lblLeftResult.Content = studentName;
lblRightResult.Content = studentGrade;
}
}
}
| 0 |
8,347,145 | 12/01/2011 19:29:31 | 986,275 | 10/09/2011 10:42:56 | 6 | 0 | Anyone can give me a working sample of JSF2.0+richfaces4.0? | Anyone can give me a working sample of JSF2.0 + richfaces4.0 ?
I just upgrade from JSF1.2 + richfaces3.3 and lots of problems , the major problem is the <a4j:commandButton action="#{bean.method}" /> seems not working, the page just flash once and the method is not actually called. I have been investigating this for more than 5 hours and still don't know how to solve this . :( crying...
Thank you very much | jsf | jsf-2.0 | richfaces | null | null | 12/07/2011 01:32:56 | not a real question | Anyone can give me a working sample of JSF2.0+richfaces4.0?
===
Anyone can give me a working sample of JSF2.0 + richfaces4.0 ?
I just upgrade from JSF1.2 + richfaces3.3 and lots of problems , the major problem is the <a4j:commandButton action="#{bean.method}" /> seems not working, the page just flash once and the method is not actually called. I have been investigating this for more than 5 hours and still don't know how to solve this . :( crying...
Thank you very much | 1 |
6,227,031 | 06/03/2011 12:21:13 | 779,472 | 06/01/2011 13:23:41 | 1 | 0 | Using XML-RPC Web Service in Android | I want to use "XML-RPC Web Service" in my application Android.
Help me.
Thanks | android | null | null | null | null | 06/03/2011 13:42:12 | not a real question | Using XML-RPC Web Service in Android
===
I want to use "XML-RPC Web Service" in my application Android.
Help me.
Thanks | 1 |
10,155,678 | 04/14/2012 17:22:13 | 947,301 | 09/15/2011 16:50:42 | 369 | 0 | create 10000 files with size 4k by using bash? | I want to do this.
Create 10000 files, (filename can be just combination of time and random number).
File size should be 4k.
And I want to time this. say how many seconds it will take.
How can I do this on bash?
Thank you.
| bash | null | null | null | null | 04/15/2012 00:26:33 | not a real question | create 10000 files with size 4k by using bash?
===
I want to do this.
Create 10000 files, (filename can be just combination of time and random number).
File size should be 4k.
And I want to time this. say how many seconds it will take.
How can I do this on bash?
Thank you.
| 1 |
4,027,604 | 10/26/2010 20:15:38 | 140,592 | 07/18/2009 09:05:38 | 504 | 25 | C->C++ Automatically cast void pointer into Type pointer in C++ in #define in case of type is not given (C-style) [MSVS] | **Hi!**
I've used the following **C** macro, But in **C++** it can't automatically cast `void*` to `type*`.
#define MALLOC_SAFE(var, size) { \
var = malloc(size); \
if (!var) goto error; \
}
I know, I can do something like this:
#define MALLOC_SAFE_CPP(var, type, size) { \
var = (type)malloc(size); \
if (!var) goto error; \
}
But I don't want to rewrite a big portion of code, where `MALLOC_SAFE` was used.
Is there any way to do this without giving the type to the macro? Maybe some **MSVS** `#pragma`/`__declspec`/other ?
p.s.: I can't use C compiler.
**Thank You!** | c++ | c | visual-c++ | casting | void-pointers | null | open | C->C++ Automatically cast void pointer into Type pointer in C++ in #define in case of type is not given (C-style) [MSVS]
===
**Hi!**
I've used the following **C** macro, But in **C++** it can't automatically cast `void*` to `type*`.
#define MALLOC_SAFE(var, size) { \
var = malloc(size); \
if (!var) goto error; \
}
I know, I can do something like this:
#define MALLOC_SAFE_CPP(var, type, size) { \
var = (type)malloc(size); \
if (!var) goto error; \
}
But I don't want to rewrite a big portion of code, where `MALLOC_SAFE` was used.
Is there any way to do this without giving the type to the macro? Maybe some **MSVS** `#pragma`/`__declspec`/other ?
p.s.: I can't use C compiler.
**Thank You!** | 0 |
6,070,362 | 05/20/2011 10:08:37 | 137,001 | 07/12/2009 11:34:56 | 152 | 15 | Is it possible to keep NDbUnit test data in separate XML files? | I'm looking at using NDbUnit to help with the unit testing of an application. As the question title states, I'm wondering if it is possible to keep NDbUnit test data in separate XML files. I have noticed already that my single test data XML file is quite big and could start to become unmanageable when I add a few more entities to it.
Now, having read [this][1] question it looks as if it's not possible but I would just like to be sure.
If it helps, this is sample code which illustrates the problem. The idea is that programs are associated with vendors. I have set up test data containing 3 vendors, the second one of which has 3 programs. TestData.xml contains all of the test data for all of the vendors and programs. When I use it, the unit test passes as expected. If I try to read the individual XML file in separately using multiple calls to `db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);` it seems as if the second call overwrites whatever was done in the first one.
private const string xmlSchema = @"..\..\schema.xsd";
// All of the test data in one file.
private const string xmlData = @"..\..\XML Data\TestData.xml";
// Individual test data files.
private const string vendorData = @"..\..\XML Data\Vendor_TestData.xml";
private const string programData = @"..\..\XML Data\Program_TestData.xml";
public void WorkingExampleTest()
{
INDbUnitTest db = new SqlDbUnitTest(connectionString);
db.ReadXmlSchema(xmlSchema);
db.ReadXml(xmlData);
db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);
VendorCollection vendors = VendorController.List();
Assert.IsNotNull(vendors);
ProgramCollection collection = VendorController.GetPrograms(vendors[1].VendorID);
Assert.IsNotNull(collection);
Assert.IsTrue(collection.Count == 3);
}
public void NotWorkingExampleTest()
{
INDbUnitTest db = new SqlDbUnitTest(connectionString);
db.ReadXmlSchema(xmlSchema);
db.ReadXml(vendorData);
db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);
db.ReadXml(programData);
db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);
VendorCollection vendors = VendorController.List();
Assert.IsNotNull(vendors);
// This line throws an ArgumentOutOfRangeException because there are no vendors in the collection.
ProgramCollection collection = VendorController.GetPrograms(vendors[1].VendorID);
Assert.IsNotNull(collection);
Assert.IsTrue(collection.Count == 3);
}
This does work:
[1]: http://stackoverflow.com/questions/5849873/read-load-multiple-xml-in-a-single-test-initialize-with-ndbunit | ndbunit | null | null | null | null | null | open | Is it possible to keep NDbUnit test data in separate XML files?
===
I'm looking at using NDbUnit to help with the unit testing of an application. As the question title states, I'm wondering if it is possible to keep NDbUnit test data in separate XML files. I have noticed already that my single test data XML file is quite big and could start to become unmanageable when I add a few more entities to it.
Now, having read [this][1] question it looks as if it's not possible but I would just like to be sure.
If it helps, this is sample code which illustrates the problem. The idea is that programs are associated with vendors. I have set up test data containing 3 vendors, the second one of which has 3 programs. TestData.xml contains all of the test data for all of the vendors and programs. When I use it, the unit test passes as expected. If I try to read the individual XML file in separately using multiple calls to `db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);` it seems as if the second call overwrites whatever was done in the first one.
private const string xmlSchema = @"..\..\schema.xsd";
// All of the test data in one file.
private const string xmlData = @"..\..\XML Data\TestData.xml";
// Individual test data files.
private const string vendorData = @"..\..\XML Data\Vendor_TestData.xml";
private const string programData = @"..\..\XML Data\Program_TestData.xml";
public void WorkingExampleTest()
{
INDbUnitTest db = new SqlDbUnitTest(connectionString);
db.ReadXmlSchema(xmlSchema);
db.ReadXml(xmlData);
db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);
VendorCollection vendors = VendorController.List();
Assert.IsNotNull(vendors);
ProgramCollection collection = VendorController.GetPrograms(vendors[1].VendorID);
Assert.IsNotNull(collection);
Assert.IsTrue(collection.Count == 3);
}
public void NotWorkingExampleTest()
{
INDbUnitTest db = new SqlDbUnitTest(connectionString);
db.ReadXmlSchema(xmlSchema);
db.ReadXml(vendorData);
db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);
db.ReadXml(programData);
db.PerformDbOperation(DbOperationFlag.CleanInsertIdentity);
VendorCollection vendors = VendorController.List();
Assert.IsNotNull(vendors);
// This line throws an ArgumentOutOfRangeException because there are no vendors in the collection.
ProgramCollection collection = VendorController.GetPrograms(vendors[1].VendorID);
Assert.IsNotNull(collection);
Assert.IsTrue(collection.Count == 3);
}
This does work:
[1]: http://stackoverflow.com/questions/5849873/read-load-multiple-xml-in-a-single-test-initialize-with-ndbunit | 0 |
4,238,341 | 11/21/2010 14:28:24 | 168,034 | 09/03/2009 17:13:52 | 1,013 | 47 | What is the reason for the weird syntax of the "case" statement in a bash/zsh script? | Looking from a programmer's point of view then shell script is just another programming language, where one has to learn and conform to the rules of the language. However, I have to admit that this syntax is the weirdest style I have ever seen in a rather commonly used language. Did the shell take this syntax from an older language that it descents from? Is there a special implication / meaning in the syntax?
As an example, here is a little snippet that I take from [another post][1] on SO
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
check_status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
Looking at this, firstly I can see that `case` ends with `esac`, which is its reversed form (like `if` ending in `fi`). Secondly I understand that each case is followed by a `)`. Fair enough, but why on earth do I need two `;` at the end of each statement? I would also say that the `)` without an accompanying `(` is ugly.
I'm looking for more information about the historical aspect of the language, but I'm open for technical reasons as well.
[1]: http://stackoverflow.com/questions/3989656/init-d-celery-script-for-centos/4046542#4046542 | bash | shell | case | zsh | null | null | open | What is the reason for the weird syntax of the "case" statement in a bash/zsh script?
===
Looking from a programmer's point of view then shell script is just another programming language, where one has to learn and conform to the rules of the language. However, I have to admit that this syntax is the weirdest style I have ever seen in a rather commonly used language. Did the shell take this syntax from an older language that it descents from? Is there a special implication / meaning in the syntax?
As an example, here is a little snippet that I take from [another post][1] on SO
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
check_status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
Looking at this, firstly I can see that `case` ends with `esac`, which is its reversed form (like `if` ending in `fi`). Secondly I understand that each case is followed by a `)`. Fair enough, but why on earth do I need two `;` at the end of each statement? I would also say that the `)` without an accompanying `(` is ugly.
I'm looking for more information about the historical aspect of the language, but I'm open for technical reasons as well.
[1]: http://stackoverflow.com/questions/3989656/init-d-celery-script-for-centos/4046542#4046542 | 0 |
4,778,729 | 01/24/2011 04:44:30 | 586,999 | 01/24/2011 04:39:33 | 1 | 1 | Inserting values to a database | may i ask? i also have a problem... given my dropdown list, i could not insert the data in my database.
in my model, i have something like this:
enter code here
function get_sections_dropdown()
{
$this->db->from('course');
$this->db->order_by('sec_code');
$result = $this->db->get();
$return = array();
if($result->num_rows() > 0){
$return[''] = 'Please select';
foreach($result->result_array() as $row){
$return[$row['sec_code']] = $row['sec_code'];
}
}
return $return;
}
function AddUser($userId, $userName, $userPassword, $userType, $userLname, $userFname, $userMname, $userEmail)
{
$md5_userPassword = md5($userPassword);
$data = array(
'user_id' => $userId,
'uname' => $userName,
'pwd' => md5($userPassword),
'user_type' => $userType,
'lname' => $userLname,
'fname' => $userFname
);
$this->db->insert('user', $data);
}
function AddUserSection($userId, $userCode)
{
$query = "INSERT INTO user_section (user_id, sec_code) VALUES (?, ?)";
$this->db->query($query, array($userId, $userCode));
}
In my controller, i have this:
//Create
function add()
{
$section = $this->test_model->get_sections_dropdown();
$data['section'] = $section;
//Validate Form
$this->form_validation->set_rules('userName', 'Username', 'trim|required|min_length[5]|max_length[10]|callback__check_username');
$this->form_validation->set_rules('userPassword', 'Password', 'trim|required|min_length[5]|max_length[10]');
$this->form_validation->set_rules('userType', 'Type', 'trim|required');
$this->form_validation->set_rules('userId', 'ID Number', 'trim|required|numeric|exact_length[8]|callback__check_id');
$this->form_validation->set_rules('userPasswordConf', 'Password Confirmation', 'trim|required|min_length[5]|matches[userPassword]');
$this->form_validation->set_rules('userLname', 'Last Name', 'trim|required|alpha|max_length[10]');
$this->form_validation->set_rules('userFname', 'First Name', 'trim|required|alpha|max_length[10]');
if($this->form_validation->run())
{
//The form is validated
$userId = $this->input->post('userId');
$userType = $this->input->post('userType');
$userPassword = $this->input->post('userPassword');
$userLname = $this->input->post('userLname');
$userFname = $this->input->post('userFname');
$userMname = $this->input->post('userMname');
$userCode = $this->input->post('userCode');
$this->user_model->AddUser($userId, $userName, $userPassword, $userType, $userLname, $userFname, $userMname, $userEmail);
{
$this->user_model->AddUserSection($userId, $userCode);
}
$this->session->set_flashdata('flashConfirm', 'The user has been successfully added.');
redirect('test');
}
else
{
$this->load->view('test_add_sec', $data);
}
}
//Retrieve
function index()
{
$this->add();
}
in my view i have this:
<h2>Add a User</h2>
<?php echo form_open('test/add')?>
<?php if($this->session->flashdata('flashError')):?>
<div class='flashError'>
Error! <?php echo $this->session->flashdata('flashErrorU')?>
</div>
<?php endif?>
<?php if($this->session->flashdata('flashConfirm')):?>
<div class='flashConfirm'>
Success! <?php echo $this->session->flashdata('flashConfirmU')?>
</div>
<?php endif?>
<fieldset>
<legend><span>*</span>Required Field</legend>
<ul>
<li><label>*ID Number : </label>
<?php echo form_input('userId')?>
<?php echo form_error('userId')?>
</li>
<li>
<label>*Username :</label>
<?php echo form_input('userName')?>
<?php echo form_error('userName')?>
</li>
<li>
<label>*First Name :</label>
<?php echo form_input('userFname')?>
<?php echo form_error('userFname')?>
</li>
<li>
<label>*Last Name :</label>
<?php echo form_input('userLname')?>
<?php echo form_error('userLname')?>
</li>
<li>
<label>*Password :</label>
<?php echo form_input('userPassword')?>
<?php echo form_error('userPassword')?>
</li>
<li>
<label>Type<span>*</span></label>
<?php echo form_dropdown('userType', array('Student' => 'Student', 'Faculty' => 'Faculty'), set_value('userType'))?>
<?php echo form_error('userType')?>
</li>
<li><?php $userCode = $this->input->post('userCode');?>
<label>Section<span>*</span></label>
<?php echo form_dropdown('userCode', $section, $userCode);?>
<?php echo form_error('userCode')?>
</li>
<li>
<?php echo form_submit('', 'Add User')?>
</li>
</ul>
</fieldset>
<?php echo form_close()?> | codeigniter | insert-update | null | null | null | 03/04/2011 05:40:01 | too localized | Inserting values to a database
===
may i ask? i also have a problem... given my dropdown list, i could not insert the data in my database.
in my model, i have something like this:
enter code here
function get_sections_dropdown()
{
$this->db->from('course');
$this->db->order_by('sec_code');
$result = $this->db->get();
$return = array();
if($result->num_rows() > 0){
$return[''] = 'Please select';
foreach($result->result_array() as $row){
$return[$row['sec_code']] = $row['sec_code'];
}
}
return $return;
}
function AddUser($userId, $userName, $userPassword, $userType, $userLname, $userFname, $userMname, $userEmail)
{
$md5_userPassword = md5($userPassword);
$data = array(
'user_id' => $userId,
'uname' => $userName,
'pwd' => md5($userPassword),
'user_type' => $userType,
'lname' => $userLname,
'fname' => $userFname
);
$this->db->insert('user', $data);
}
function AddUserSection($userId, $userCode)
{
$query = "INSERT INTO user_section (user_id, sec_code) VALUES (?, ?)";
$this->db->query($query, array($userId, $userCode));
}
In my controller, i have this:
//Create
function add()
{
$section = $this->test_model->get_sections_dropdown();
$data['section'] = $section;
//Validate Form
$this->form_validation->set_rules('userName', 'Username', 'trim|required|min_length[5]|max_length[10]|callback__check_username');
$this->form_validation->set_rules('userPassword', 'Password', 'trim|required|min_length[5]|max_length[10]');
$this->form_validation->set_rules('userType', 'Type', 'trim|required');
$this->form_validation->set_rules('userId', 'ID Number', 'trim|required|numeric|exact_length[8]|callback__check_id');
$this->form_validation->set_rules('userPasswordConf', 'Password Confirmation', 'trim|required|min_length[5]|matches[userPassword]');
$this->form_validation->set_rules('userLname', 'Last Name', 'trim|required|alpha|max_length[10]');
$this->form_validation->set_rules('userFname', 'First Name', 'trim|required|alpha|max_length[10]');
if($this->form_validation->run())
{
//The form is validated
$userId = $this->input->post('userId');
$userType = $this->input->post('userType');
$userPassword = $this->input->post('userPassword');
$userLname = $this->input->post('userLname');
$userFname = $this->input->post('userFname');
$userMname = $this->input->post('userMname');
$userCode = $this->input->post('userCode');
$this->user_model->AddUser($userId, $userName, $userPassword, $userType, $userLname, $userFname, $userMname, $userEmail);
{
$this->user_model->AddUserSection($userId, $userCode);
}
$this->session->set_flashdata('flashConfirm', 'The user has been successfully added.');
redirect('test');
}
else
{
$this->load->view('test_add_sec', $data);
}
}
//Retrieve
function index()
{
$this->add();
}
in my view i have this:
<h2>Add a User</h2>
<?php echo form_open('test/add')?>
<?php if($this->session->flashdata('flashError')):?>
<div class='flashError'>
Error! <?php echo $this->session->flashdata('flashErrorU')?>
</div>
<?php endif?>
<?php if($this->session->flashdata('flashConfirm')):?>
<div class='flashConfirm'>
Success! <?php echo $this->session->flashdata('flashConfirmU')?>
</div>
<?php endif?>
<fieldset>
<legend><span>*</span>Required Field</legend>
<ul>
<li><label>*ID Number : </label>
<?php echo form_input('userId')?>
<?php echo form_error('userId')?>
</li>
<li>
<label>*Username :</label>
<?php echo form_input('userName')?>
<?php echo form_error('userName')?>
</li>
<li>
<label>*First Name :</label>
<?php echo form_input('userFname')?>
<?php echo form_error('userFname')?>
</li>
<li>
<label>*Last Name :</label>
<?php echo form_input('userLname')?>
<?php echo form_error('userLname')?>
</li>
<li>
<label>*Password :</label>
<?php echo form_input('userPassword')?>
<?php echo form_error('userPassword')?>
</li>
<li>
<label>Type<span>*</span></label>
<?php echo form_dropdown('userType', array('Student' => 'Student', 'Faculty' => 'Faculty'), set_value('userType'))?>
<?php echo form_error('userType')?>
</li>
<li><?php $userCode = $this->input->post('userCode');?>
<label>Section<span>*</span></label>
<?php echo form_dropdown('userCode', $section, $userCode);?>
<?php echo form_error('userCode')?>
</li>
<li>
<?php echo form_submit('', 'Add User')?>
</li>
</ul>
</fieldset>
<?php echo form_close()?> | 3 |
7,305,718 | 09/05/2011 08:47:29 | 917,367 | 08/29/2011 07:28:55 | 5 | 0 | How to print the first character of a table element? | Supose you have the following table:
mytable = {"firstelement", "secondelement", "thirdelement" }
print (mytable [1])
==> firstelement
How do i make it print only the "f" from the "firstelement" ?? | table | printing | lua | element | null | null | open | How to print the first character of a table element?
===
Supose you have the following table:
mytable = {"firstelement", "secondelement", "thirdelement" }
print (mytable [1])
==> firstelement
How do i make it print only the "f" from the "firstelement" ?? | 0 |
11,570,879 | 07/19/2012 23:40:35 | 858,040 | 07/22/2011 13:46:39 | 69 | 12 | Simple and intuitive way to make visual query | This question is for UX/UI/GUI... Is there a simple and visual way to make querys?? im looking for a simple and intuitive way... I suppose that the user wish select all fields of a table, but i don't find the way to make simple the filters for this. my boss don't wish a classic query builder, example http://tinypic.com/r/2j2z6et/6
i would appreciate your help. | sql | gui | user-interface | user-experience | null | 07/20/2012 14:48:21 | not a real question | Simple and intuitive way to make visual query
===
This question is for UX/UI/GUI... Is there a simple and visual way to make querys?? im looking for a simple and intuitive way... I suppose that the user wish select all fields of a table, but i don't find the way to make simple the filters for this. my boss don't wish a classic query builder, example http://tinypic.com/r/2j2z6et/6
i would appreciate your help. | 1 |
9,022,921 | 01/26/2012 18:00:19 | 764,446 | 05/22/2011 02:48:39 | 273 | 0 | GWT:how to change row color in GWT Celltable | i have a celltable in GWT, I can change color of a specific column by this
celltable.addColumnStyleName(4, "bluetext");
but how can i change for example color of row No 3
Thanks | gwt | null | null | null | null | null | open | GWT:how to change row color in GWT Celltable
===
i have a celltable in GWT, I can change color of a specific column by this
celltable.addColumnStyleName(4, "bluetext");
but how can i change for example color of row No 3
Thanks | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.