on-internet

Posting XML to Web service in .NET C# and recieving response

I am posting XML file to Web services using C# , but I am getting error when I am requesting the response 'Server Error - 500 - You are not allowed to access the system . Any help will be appreciated. protected void Page_Load(object sender, EventArgs e) { WebRequest req = null; WebResponse rsp = null; try { string fileName = Server.MapPath("~\\test.xml"); string uri = "http://212.170.239.71/appservices/http/FrontendService"; req = WebRequest.Create(uri); //req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy req.Credentials = new NetworkCredential("myusername", "mypassword"); req.M

Join the discussion →

How to get transaction details in notify_url page in paypal

In paypal notify_url page I am not getting any values when I use cmd value as _cart.How can I get the transaction details in notify_url page <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST" name="_xclick" id="paypal_form"> <input type="hidden" name="upload" value="1" /> <input type="hidden" name="cmd" value="_xclick" /> <!-- The business email address, where you want to receive the payment --> <!--<input type="hidden" name="business" value="[email protected]" />--> <input type="hidden" name="business" value="[email protected]" /> <!-- The c

Join the discussion →

Sending file attachments along with Google Forms submission, having them emailed?

I'm building a form using Google Forms, and then taking the form out into my web page so I can directly edit the form (so I do have complete control over the form code). Right now I'm able to submit the results send to Google Docs (published on 2012), and then have the results emailed me to me (published on 2012). I want to add a file attachment to these submissions, using: <input type="file" name="datafile" id="filedata" size="40"> I know I can use mailApp.sendEmail's advanced arguments, specifically the attachments argument, or the inlineImages argument. But how do I access the file values i

Join the discussion →

WPF DataGrid RowStyle for selected row not changing the background and foreground color

I am using Visual Studio 2012 on windows 7. I need to know why the following style for Grid's selected row does not work for background and foreground colors but works perfectly fine for other properties like BorderBrush and BorderThickness etc? Though I can see them changing while mouse over grid rows. <Style x:Key="gridRowStyle" TargetType="{x:Type DataGridRow}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="PeachPuff"/> <Setter Property="Foreground" Value="BlueViolet"/> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter Prop

Join the discussion →

Finding the modules where changes were checked with svn

I have a multi module maven project. Project -Module1 -Module2 -Module3 -Module4 -Module5 I want to find the modules to which files were checked in based on the revision number. I know svn log -v -r12345 -r12346 svn://repo-path.com/project will get the log for the changed paths but I want only the module names. For eg: from the following log I want ------------------------------------------------------------------------ r12345 | [email protected] | 2013-02-06 01:40:23 -0800 (Wed, 06 Feb 2013) | 1 line Changed paths: M /PROJECT/SHARED/branches/DEV_Branch/extensibility/src/main/java/com/co

Join the discussion →

Can I compile any high level language for use with eeprom?

I need to know if it is possible to compile any high level programming language for use with an eeprom. I know it is possible to strip a header from a compiled binary, but I am unsure how addresses will be effected. Can I compile any high level language for use with eeprom? I have a Winbond 27C512 EEPROM in my sights.

Join the discussion →

win batch regexp search and replace

I have a set of data like this 7859 10000:00 7859 10000:00 (xfer#1, to-check=1033/1035) 32768 000:17 22174479 10000:00 (xfer#2, to-check=1032/1035) They are read from a file and passed line by line to a method inside my batch script What I want to do in that method is to extract only 7859 22174479 from this lines, basically whatever is after "\d+:\d\d\s+", then what follows are the numbers that I need and then another "\d\d.*" Is this possible using only batch script regular expression and search and replace? I tried and read a bunch of articles but could not find a solution In the and I want

Join the discussion →

Odbc Error The specified DSN contains an architecture mismatch?

I have a 64bit Progress OpenEdge 10.2A driver installed. The connection works fine when I set it up in the Data Sources (ODBC) administrator and test it. When I try to connect to it using VB.NET (System.Data.Odbc), I get an error: ERROR [IM014][Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application. I have tried manually configuring the registry keys to allow access using SysWOW6432. But all this does is cause another error when I try to set up a DSN. I get error #193 from Progress. What else could be causing this issue? From what

Join the discussion →

Why doesn't simulating keystrokes with ControlSend work?

Simulating keystrokes with ControlSend() doesn't work: While 1 ControlSend("PokeMMO", "", "", "{DOWN}") Sleep(900) ControlSend("PokeMMO", "", "", "{DOWN}") Sleep(900) ControlSend("PokeMMO", "", "", "{DOWN}") Sleep(900) ControlSend("PokeMMO", "", "", "a") Sleep(Random(750, 2000, 1)) ControlSend("PokeMMO", "", "", "a") Sleep(Random(750, 2000, 1)) ControlSend("PokeMMO", "", "", "a") Sleep(Random(750, 2000, 1)) ControlSend("PokeMMO", "", "", "a") Sleep(3000) WEnd Au3Info: Title: РokеММO, Class: LWJGL Global $sProcess = "javaw.exe" ;PokeMMO Process ControlSend(_Process2Win($sProcess), "", "", "{DOW

Join the discussion →

Can't load custom library in controller class extended from MY_Controller in CodeIgniter

Library class getLang { public function getText($en, $ar) { $CI =& get_instance(); $lang = $CI->session->userdata('language'); if ($lang == 'en') { $string = $en; } elseif ($lang == 'ar') { if (!empty($ar)) { $string = $ar; } elseif (empty ($ar)) { $string = $en; } } return $string; } } Controller class Home extends MY_Controller { public function test() { $this->load->library('getLang'); return $this->getLang->getText('text', ''); } } When I run home/test I get this error: A PHP Error was encountered Severity: Notice Message: Undefined property: Home::$getLang Filename: controllers/home.php L

Join the discussion →

PIC Interrupt driven UART with circular buffer at high baud rate

I am trying to read from a sensor with PIC 18f4550 at baud rate=38400. With a FIFO Circular buffer, I am able to store data from the sensor to an array. The sensor will respond to a request command and return a measurement of 15 bytes (the same as the circular buffer I created). I have to grab all 15 bytes and put \r\n at the end to separate each measurement since there is no deliminator. So I used two pointers, inputpointer and outputpointer to store bytes and transmit byte out. Because 18f4550 only has one hard UART, I use it to read data and send commands to sensor and at the same time use

Join the discussion →

SQL insert into with Hsqldb Script

I am trying to initialise my hsqldb with some default data but seem to be having a problem with identity and timestamp columns. To clarify what I meant when I said "script". I am meaning the command line argument that you pass to hsqldb to generate your database at startup. I can successfully run the query inside DbVisualiser or some other database management tool. I have a table with the following definition: create table TableBob ( ID int NOT NULL identity , FieldA varchar(10) NULL, FieldB varchar(50) NOT NULL, INITIAL_DT timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL); I can successfully crea

Join the discussion →

How to Get True Size of MySQL Database?

I would like to know how much space does my MySQL database use, in order to select a web host. I found the command SHOW TABLE STATUS LIKE 'table_name' so when I do the query, I get something like this: Name | Rows | Avg. Row Length | Data_Length | Index Length ---------- ---- --------------- ----------- ------------ table_name 400 55 362000 66560 numbers are rounded. So do I have 362000 or 400*362000 = 144800000 bytes of data for this table? And what does Index Length mean? Thanks !

Join the discussion →

How to prevent a monitor from sleeping while watching html 5 animation

Is there a way to prevent a monitor from sleeping while on a web page? I have a page with an animation in html that doesn't require user interaction. The monitor can sleep during this and I want to prevent this. When watching a video on Hulu, I notice that the monitor doesn't sleep so there must be some way to prevent this.

Join the discussion →

Category Import in Magento without products

I want to import data related to categories first and then products. But when i am going to upload only category csv file it is showing error "sku not found" and when i am trying to import merged data of category and products csv it is importing products but not showing any category and in products showing 0 record found and in import showing upload success message. Can anyone please help me.

Join the discussion →

Conversion between NVARCHAR to VARCHAR

I've got an Oracle DB with ALL the character columns defined as NVARCHAR or NCHAR or NCLOB, using charset UTF-16. Now I want to migrate to a new DB that has charset UTF-8. Since it can store unicode characters, I'm wandering if I will be able to import data converting column types. The reason I'm doubtful is I know that I cannot convert a NVARCHAR2 column in a VARCHAR2 if not empty. What is the best option to perform the import. Will datapump complain if I import the schema, modify the column types and after that I'll import the data? Thank

Join the discussion →

PivotTable duplicates

I have some data that I need to find an average day rate for a certain company. The data consists of 1000's of names, some duplicates with a day rate against them. If I insert a PivotTable and filter on the company, the Average day rate will show, however, I know it is wrong as it is including the duplicate names. I have got round this by double clicking on the average value and bringing up the data for that company in a new tab. Then I can insert another pivot table to remove the duplicates and then from that, find the average day rate. Is there a way to by pass having to insert another pivot

Join the discussion →

What is the difference between ARIA and data-*

To add more meaning to the HTML tag i am using data - *. Actually i have learned this approach from jquery mobile. But recently i came across WAI-ARIA. It seems like it is almost similar to data - *. Can anyone explain me,how these are different and their browser dependency? Useful Links about WAI-ARIA about data-* UPDATE: Finally.. they both are different. They have some how similar syntax. That made me confused. I am accepting @Gajotres answer. And see this you tube video for ARIA live. Match this video with @Gajotres's answer.

Join the discussion →

how to clear all data and layout of a ultragrid without its summerize layout

Is there any way to set the datasource of an UltraGrid without removing its summary row? I have an ultragrid gvResult in my Windows Form application. The user can select the columns and sort them in another form and then apply these changes to gvResult by pressing the "Apply" button. In addition, gvResult must show a row counter summary. I cleared gvResult before applying user's changes to it, otherwise the sorting algorithm does not change to what the user set it to. gvResult.DataSource = new DataTable(); gvResult.DataSource = dataTable_With_New_Set_And_Sort_of_Columns; Therein lies another p

Join the discussion →

SEO Strategies: Directory, separate domain, or sub-domain?

What is the optimal SEO strategy for storing a blog? 1) In a directory: www.example.com/blog 2) In a separate domain: www.exampleblog.com 3) In a sub-domain: www.blog.example.com With a directory, the repetitions earned by the blog are directly transferred to the main domain (www.example.com). With a separate domain, any links to my site would count as backlinks. I'm leaning towards option 1. What other pros and cons should I consider?

Join the discussion →

Open connection to MySQL from VBA Excel 2007

I got this error when try to connect Excel and MySQL using ODBC DataSource name not found and no default driver specified Here is my VBA code: Sub test123() ' Connection variables Dim conn As New ADODB.Connection Dim server_name As String Dim database_name As String Dim user_id As String Dim password As String ' Table action variables Dim i As Long ' counter Dim sqlstr As String ' SQL to perform various actions Dim table1 As String, table2 As String Dim field1 As String, field2 As String Dim rs As ADODB.Recordset Dim vtype As Variant '-----------------------------------------------------------

Join the discussion →

Facebook login not working with facebook application

I am coding for the Login with the Facebook into my android application.I am following this STEPS. I have problem that The logout button is not showing after login, it still displayed me login button. This problem is occure when I install the facebook app into emulator, but without install facebookapp it's working. After install Facebook Application : Press on the login button(From my application) If not login then redirect to the facebook app After login into facebook app back to my app and don't show me logout button but instead of logout it show me login button Without install Facebook app

Join the discussion →

Installing qt combined with MinGW on Windows

I haven't managed to install qt properly on Windows after 2 hours of effort. I couldn't find the SDK version which is linked in some sites instructing Qt installation. So I tried the other way. You can give me a link to download full sdk if it is still available, since it seems more easy to install with that way. I installed Qt libraries for MinGW and Qt Creator from here Then I added the C:\Qt\4.8.4 to the path variable and ran configure.exe on Qt folder After that I installed the Qt Creator but there was no option to open a Qt Gui Project or quick project. Then from options I created a kit a

Join the discussion →

Image Compression Using wavelet- MATLAB

I am working on image compression based on wavelet in MATLAB... I have constructed the below code. Everything is working fine but the compressed image is displayed as plain black and white image. If I give the decomposition level as 1, it shows compressed image as full black, for the decomposition level: 2, it gives fully white image.. For the decomposition level 3, it gives 3/4 white and 1/4 black color.. Please help. The code I have used is clear all; close all; input_image1=imread('C:\Users\Prem\Documents\MATLAB\mandrill.jpg'); input_image=imnoise(input_image1,'speckle',.01); figure; imshow

Join the discussion →

Leaflet Popup with additional information from GeoJSON

I want to bind the additional information from geojson to a leaflet marker popup. I looked up a few things from the leaflet documentation but it doesn't work. const map = L.map('map').setView([51.9, 7.6], 11); L.tileLayer('http://{s}.tile.cloudmade.com/5e4495ff4b0d454eb0443225198b7e6c/997/256/{z}/{x}/{y}.png', { maxZoom: 16 }).addTo(map); const polygon = { "type": "Feature", "properties": { "name":"City BoundingBox", "style": { "color": "#004070", "weight": 4, "opacity": 1 } }, "geometry": { "type": "Polygon", "coordinates": [[ [7.5,52.05], [7.7,51.92], [7.6,51.84], [7.4,51.94], [7.5,52.05] ]]

Join the discussion →

How do I design a generic Response builder / RESTful Web Service using Spring MVC?

Trying to build a RESTful web service using Spring MVC. The controller should return specific Java types, but the response body must be a generic envelope. How can this be done? The following sections of code are what I have so far: Controller method: @Controller @RequestMapping(value = "/mycontroller") public class MyController { public ServiceDetails getServiceDetails() { return new ServiceDetails("MyService"); } } Response envelope: public class Response<T> { private String message; private T responseBody; } ServiceDetails code: public class ServiceDetails { private String serviceName; publ

Join the discussion →

problems with siteMap in Web.config

problem with Web.config. siteMap is not working. VS2010. <siteMap defaultProvider="XmlSiteMapProvider" enabled="true"> <providers> <add name="XmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider " siteMapFile="Web.sitemap" securityTrimmingEnabled="true" /> </providers> </siteMap> i think it does not see 'Web.sitemap'. Intellisense in tag 'add' advises only-lockAllAttributesExcept, lockAllElementsExcept, lockAttributes, lockElements, lockItem - parameters. But does not advises params description, siteMapFile, securityTrimmingEnabled. What can be the re

Join the discussion →

How to set minimum and maximum characters limitation to EditText in Android?

I want to set minimum and maximum input value for EditText box. I am creating one simple validation for EditText; it takes A-Z and 0-9 values with minimum 5 and maximum 8 character. I set the maximum and other validations as follow: <EditText android:id="@+id/edittextKode_Listing" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:layout_marginLeft="5dp" android:layout_alignTop="@+id/textKode_listing" android:layout_toRightOf="@+id/textKode_listing" android:maxLength="8" android:inputType="textCapCharacters" android:digits="0,1,2,3

Join the discussion →

System.Net.WebException: The request failed with HTTP status 401: Unauthorized

Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents: Page: /CPDEPforIT/SearchResults.aspx Error: System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at CPD

Join the discussion →

Create a batch file to invoke testng.xml to run selenium scripts

I need help to create a .bat file to invoke testng.xml which has all the tests to run.According to this link, I created the .bat file. Here is what I have written in it: java -cp "C:\Program Files\Selenium Execution Engine\lib\library\testng-5.8-jdk15.jar";"C:\POM_Newdemo\EF_Progression\bin\testscripts" org.testng.TestNG "C:\POM_Newdemo\EF_Progression\testng.xml" where: -cp : is class path C:\Program Files\Selenium Execution Engine\lib\library\testng-5.8-jdk15.jar : is the path of my testng jar file C:\POM_Newdemo\EF_Progression\bin\testscripts : is the path of my .class files of my tests C:\P

Join the discussion →
Older stories