w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to upload first time made project to svn server using smart svn?
Use Project|Import Into Repository: http://www.smartsvn.com/documentation/commands.create-module On the Local Directory Page, select the path of your local project which you want to add to the repository. On the Repository Page, select the repository to which the project should be imported. On the Location Page, select the directory in the repository to which the project should be imported. As your project is new, you will most likely want to create a new directory (click directory toolbar button with blue star on it).

Categories : Svn

Restricting access to one database on SQL Server 2012 when connecting with integrated security
Secure: No. The only thing you can authenticate with SSPI (ie. 'windows Authentication) is the identity of the process connecting. If the two connections connect from the same process then they are indistinguishable. If they are indistinguishable you cannot use GRANT/DENY/REVOKE. If you are looking for something that is not secure (eg. prevent accidental use of the wrong database) then you can rely on APP_NAME(). Emphasis on not-secure, the app_name is just a setting in the connection string can and be spoofed by anyone. It is somehow unusual to share test and production database host (will running test impact production result timing?) and even more so is sharing the test and production client (your Tomcat).

Categories : Sql Server

How to import an XML file into SQL Server 2012
Use SSIS. Create an SSIS package with an XML data source. If you can't use/don't have integration services, use UNC file paths to eliminate local/network standpoint issues. Edit:I failed to exercise google-fu prior to shooting off at the mouth and one of my initial ideas was incorrect.

Categories : SQL

Developing C# Winforms software using SQL Server 2012 in Visual Studio 2012 and running it on other system without installing SQL Server 2012
If you develop an application that use Sql Server 2012 as storage for your data then you need to install it in a way or another. There are numerous versions of Sql Server, like Sql Server Express and LocalDB. In every case you need the bits that supports your coding calls. This magazine article summarizes relevant infos on the various version of Sql Server I suppose that the right product for you is Sql Server LocalDB. A version of Sql Server that could be distributed easily with your application setup and doesn't require a complex installation procedure. However, if you don't foresee the need to escalate you application to a full Client-Server model and you need only a local storage for a single user, you could choose a single file database like Sql Server Compact Edition or SQLite or

Categories : C#

PhoneGap 2.7, BarcodeScanner : sharing barcodescanner.js for Android and iOS
From what I've seen, the barcodescanner.js sources looks similar but do contain some subtle differences. You can take a look at the sources here: PG Plugins I recommend that you look into rather than using the same JavaScript Source file on your server for both devices to look into PhoneGap Build. For example, in the config file, all you have to do to "inject" the Barcode Scanner plugin into your application is add <gap:plugin name="BarcodeScanner" /> to the config.xml. Then just use PhoneGap Build and it will build the application for all devices. You can read more about it here: PhoneGap Build Plugins. Update As mentioned in the comments below viable solution to the specific problem can be found here.

Categories : Android

run immediately function is disabled in sql server 2012 import wizard
I had the same issue and it seems to be to do with trying to convert fields at the same time as doing the import. I was trying to convert a datetime to a nvarchar. To solve this I changed the data in that field in Excel to text, and next time I tried to import the Run Immediately option was available again.

Categories : SQL

How to import data via post deployment script from SQL Server CE into a SQL Server DB freshly created using VS database project
1) Is it possible to reference a SQL Server Compact database (sdfDB) in T-SQL script? If you are thinking to something like this, INSERT INTO [SQL SERVER Db].Table (Values) SELECT (Values) FROM [Sql Server Compact Db].Table unfortunately no, this is not possible. 2) If not, what is the best practice to import data into a freshly created DB from an embedded datasource which can be deployed by build script in a remote machine. You can use the SQL Server Compact Toolbox, that contains features to generate scripts from a Sql server compact file, that you can use to populate the SqlServer database. Features: Script! Migrate a SQL Server Compact database directly to SQL Server (LocalDB/Express) Migrate from SQL Server Compact to SQL Server, SQL Azure and SQL

Categories : Visual Studio 2012

Deploy LocalDB project to SQL Server 2012 Host
You should be sure that you make SQL Servers TCP/IP configuration right. I had the same problem before and I solved it by changing SQL Server Protocol UDP to 1434. Open Windows Firewall with advanced security. Find in left side Inbound Rules tab and click. Then find SQL Server and right click. Click properties. In Protocols and Ports tab change protocol type to UDP and as port number give 1434. I hope it helps.

Categories : Sql Server

Barcode number under generated Barcode using Barcode Rendering Framework in web application
I did it by using asp panel in which i added the barcode image that is created. Under that I added the string i.e my barcode characters. Then using the print helper function I am able to print them. Following is my code for adding image and text to panel. Code39BarcodeDraw barcode39 = BarcodeDrawFactory.Code39WithoutChecksum; // Panel pnl = new Panel(); Label str = new Label(); str.Text="SER1012308131"; // System.Drawing.Image img = barcode39.Draw("SER1012308131", 40); //string path = Server.MapPath("~/Uploads/") + img+".jpeg"; string path = @"~/Uploads/abcd.jpeg"; // img.Save(path); Image imgg = new Image(); imgg.ImageUrl=path; pnlpnl.Width = Unit.Pixel(300);

Categories : C#

Smart pointer error in Visual Studio 2012
Type of the deleter is a part of the unique_ptr's type and must be specified as a template argument: std::unique_ptr<SDL_Surface, decltype(SDL_DestroyWindow)*> srf(SDL_CreateWindow(...), SDL_DestroyWindow); By default it's a std::default_delete, and a pointer to SDL_DestroyWindow is not convertible to it.

Categories : C++

Smart Device Support in Visual Studio 2012
a) Never. Microsoft has no intention of ever supporting anything but WEC 2013 (and later if they exist) in the newer versions of Visual Studio (2012 and beyond). For WEC7 your option is, and will remain Studio 2008. b) WEC7 is not supported now is Studio 2012, so there's no "still" to be continued. So what that means is that for development you use: CE 6.0R3 --> Studio 2008 WEC 7 --> Studio 2008 WEC 2013 --> Studio 2012

Categories : Visual Studio

Visual Studio 2012 & Classic ASP indentation (Smart)
Try the hot keys for auto-formatting of code in VS2012. to format section: ctrl + e, ctrl + f to format document ctrl + e, ctrl + d also. Consider a better VBscript editor, like VBSEdit which has the "Reformat Code" option in the "Edit.." drop down and will auto-block your code.

Categories : Visual Studio

Window Server 2012 & SQL Server 2012 within single VM on Windows Azure
Arun Rana, That should be possible and AFAIK there isn't any restriction for SQL Server licence to be used in Azure, however take a look at License Mobility through Software Assurance on Windows Azure. If your licence is from MSDN, then it now absolutely legal use it on Azure. If you are unsure about the licence problem and other litigation, you may spin up a VM with SQL Server 2012 pre-installed and this will solve your licence trouble (but right now only available with the combo of SQL Server 2012 on Windows Server 2008 R2). PS / Personal Experience : SQL Server + some server component isn't performing well for a Medium instance. Either split the server roles or consider choosing a bigger instance size like xLarge or A6.

Categories : Azure

Visual studio 2010 with sql server 2008 (default with vs10) and sql 2012. How can I choose from 2008 or 2012 while adding database in server explorer?
After the project is created: Open the database project's properties. Go to the Project Settings tab. Change "Target platform" to SQL Server 2008 or whichever option you need.

Categories : Sql Server

SQL Server Express 2012 Installation fails with Could not find the Database Engine startup handle in SQL Server Express 2012
I have found the solution. It was, in fact, a r/w rights error. I have added following users to my profile folder: IUSR Local Service Network IIS_IUSRS Service I know I went overkill here but I wanted to be sure without giving everyone access rights. I will disable them one by one and find the right one(s) needed to properly run SQL Server Express 2012.

Categories : Misc

Retrieve fields from SQL Server 2012 in visualstudio 2012 (VB) result = __Page
In lblID.Text = ID where does the ID come from? It definitely does not contain anything returned by your SQL query; I would assume you're assigning the value of the ID property of your Page object here. Try lblID.Text = SchoolAddress instead.

Categories : SQL

Unable to connect to local database in Visual Studio 2012 express For Web: (error 26)(C#)(SQL Server 2012)
You're getting that error because the (localDB)v11.0 is already a user instance of SQL Server. When you were using the SQLEXPRESS SQL Server instance, well, it's not. So, just get rid of the User Instance=true on the connection string.

Categories : C#

How to add test project over an existing project in Visual Studio 2012
I had the same problem with GTest framework (but I think it does not matter). So I found 2 possible solutions: Change output type of the tested project. Make tested project output as "static library" ( Project - Properties - Configuration Properties - Configuration Type - Static Library (.lib) ), then add the library file to the testing project (Project - Properties - Linker - Input - Additional Dependencies - Path to lib file from tested project) there is article to read http://leefrancis.org/2010/11/17/google-test-gtest-setup-with-microsoft-visual-studio-2008-c/ OR Add files from tested project to testing project through menu Project - Add Existing Item (choose *.h and *.cpp files you need). If someone has more convenient solution to the problem it would be great to know it.

Categories : Testing

Connecting to MySQL database with visual studio 2012
I have not written in C# but in VB the connection would be: Dim Mysqlconn as MySqlConnection Mysqlconn = New MySqlConnection Mysqlconn.ConnectionString = "server=yourservername;User Id=user;password=password;Persist Security Info=True;database=database name" I'm sure the code would be similar. Also as Prix said i would place inside a try/catch block. as for the issue with connecting via the tool menu... did you install the MySql ODBC connectors? this might be why its closing. also check the MySql issue log because not all versions of the ODBC connector are compatible with the msql extension in visual studio 2012

Categories : Mysql

Connecting to external mysql database through C#/Visual Studio 2012
I had developed one application in c# in that I had used MySQL database as back end that stored at bigrock.com. In your application their will be simple mistake in connection string. And turn off your firewall and your antivirus settings to off. This is the right format of MySQL database connection string :- string connectionString = "Server=Your_Server_Name;Uid=Your_User_Name;Database=Your_Database_Name;port=Your_Port_No;Pwd=Your_Password;Allow Zero Datetime=true";

Categories : C#

Project Euler #13 in Python, trying to find smart solution
You could save the numbers in a file (with a number on each line), and read from it: nums = [] with open('numbers.txt', 'r') as f: for num in f: nums.append(int(num)) # nums is now populated with all of the numbers, so do your actual algorithm Also, it looks like you want to store the sum as an array of digits. The cool thing about Python is that it automatically handles large integers. Here is a quote from the docs: Plain integers (also just called integers) are implemented using long in C, which gives them at least 32 bits of precision (sys.maxint is always set to the maximum plain integer value for the current platform, the minimum value is -sys.maxint - 1). Long integers have unlimited precision. So using an array of digits isn't really necessary if you are wor

Categories : Python

Get the scanned image of barcode using zxing barcode scanner?
With ZXing APIs, you can implement it yourself. About how to use Android camera, please refer to Android website. Here is the code for capturing images from preview callback, as well as how to use zxing to decode the image: private Camera.PreviewCallback mPreviewCallback = new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera camera) { // TODO Auto-generated method stub if (mDialog.isShowing()) return; LuminanceSource source = new PlanarYUVLuminanceSource(data, mWidth, mHeight, mLeft, mTop, mAreaWidth, mAreaHeight, false); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer( source)); Result result; try { result = mMult

Categories : Android

making and storing a barcode image from a barcode URL (Barcode4J)
Perhaps you should learn to think more clear about your work. Solving this issue, from what I understand, has nothing to do with bar codes. You have an image, that is available through an URL, and you must download it. That problem has been viewed many times on stack overflow and you would have found it if you did the search: "java downloading an image". It was the first result that came up for me in google.

Categories : Java

JQuery Barcode Only Generates One Barcode From Query Results
The problem is that you have more then one of the same ids bcTarget and jquery will select the first found within the DOM. Try to make your ids for the selector unique: echo ' <tr> <td>'.$odrnum.'</td> <td>'.$odrstatus.'</td> <td>'.$odrtype.'</td> <td>'.$custorder.'</td> <td> <div id="bcTarget_'.$odrnum.'"></div> </td> <script> $(function(){$("#bcTarget_'.$odrnum.'").barcode("'.$row[1].'", "code39",{barWidth:2, barHeight:30});});</script> </tr>';

Categories : PHP

Same form , Same barcode(128), Zxing reads only one Barcode( from 2 documents)
The issue simply is the fairly low image quality. Look at the working bar code at some magnification: The quality is not good but it is good enough. Now compare it to the not working bar code: It is somewhat rotated and (maybe due to the rotation) the bars are very fringed. Too fringed for zxing to recognize the bar code. I went through that with a debugger, and even making it look at every single row of the image (without manipulation it looks only at 256 evenly spaced rows), it didn't find any row it could read successfully as a bar code. Thus, you either have to improve the quality of the scans (higher resolution, making sure the document is not rotated, ...) or have to look for a bar code reader library which does not merely look at image columns or rows individually but inst

Categories : Java

Failed to import Gradle project error creating new project with Android Studio
I had same issue with the latest Android Studio () today, and I finally found that configuring a https proxy for Gradle can solve the issue. I only set a http proxy at the beginning. Gradle needs to sync some files via HTTPS. Use IP address instead if hostname of proxy can't work.

Categories : Android

Double facebook sdk import, in my android library project and in target project
I faced the same problem, this is what i did. Hope it helps you too. Remove all the libraries in your project.(Properties->javaBuildPath->library(tab)->select dependancy folder->remove) Now go to libs and remove the library.(your project will show some errors, never mind) Finally import the library that contains the sub library.

Categories : Android

Eclipse: How to import git project as library for Android Project which has to be pushed to Bitbucket
If the library is a .jar file, you can simply paste it into the libs folder of your app. Android should automatically add it to the build path. As far as pushing/pulling from BitBucket goes, as long as you add the .jar file in git the library will be committed like any other file.

Categories : Android

Import maven project error in mac: 'project was marked as readonly'
Navigate to project folder through console (cmd in windows, terminal in linux) type mvn eclipse:eclipse Press Enter. If it is web application, type mvn eclipse:eclipse -Dwtpversion=2.0 Press Enter. Delete the project (not physically) from eclipse and reimport.

Categories : Eclipse

Codeigniter + Zend barcode error at Zend/Barcode/Barcode.php
It should be use namespace ZendBarcode; //this is line 10 Parse error: syntax error, unexpected T_STRING says it found a string, although this string was not expected. It could be expecting a colon, i.e. Anyway, the require that uses ZendBarcode should be BEFORE the use. And by what I know, you should require the autoloader for BarCode, not the class directly.

Categories : PHP

Batch File Connecting to Server and execute program install on connected server
Here's a little code to help you connect to the SQL server and interrogate the SQL version. @ECHO OFF SQLCMD /? > nul 2> nul IF ERRORLEVEL 1 ECHO.SQLCMD not found on this machine & PAUSE & GOTO :eof SET SQLCmdLine=SQLCMD -b -w400 REM use something like the next line for NT authentication; second line for SQL authentication REM for NT SET SQLCmdLine=%SQLCmdLine% -E -S "YourServerName" REM for SA SET SQLCmdLine=%SQLCmdLine% -U "YourSQLUserName" -P "YourSQLPassword" -S "YourServerName" SET Database=YourDatabaseName REM I will use NT Authentication for this example SET SQLCmdLine=%SQLCmdLine% -E -S "(local)" SET TestSQLCmdLine=%SQLCmdLine% -h-1 -d "%Database%" REM this will get the SQL version %TestSQLCmdLine% -Q "SELECT @@VERSION" | FINDSTR /v "rows affected" REM this will

Categories : SQL

sqlsrv error while connecting to mssql server 2008 on windows 2003 server
Two ways to try, first to check if the Native driver has the right version - is your server really a 32bit Version and not 84bit? The other thing is, to check if the extensions are actually loaded. To check that, create a file like "phpinfo.php" and put it in you folder for .htdocs. <?php // show phpinfo file phpinfo(); ?> The easy way is to search for it in the phpinfo-Page with Ctrl+F and "extension=php_sqlsrv_53_ts_vc9.dll"

Categories : PHP

How to store (in a "smart" way) data sent periodically to my server?
Assuming that each feed is a simple hash, I think the format that is becoming popular for such purpose is the Labeled Tab-Separated Values (LTSV). That is, a hash: {"a" => "foo", "b" => "bar", "c" => "baz"} will be recorded as a single line: a:foo b:barc:baz In your case, you can add the "time" attribute to each feed like this: { "time"=>2013-07-21 02:24:01 +0900, "1"=>"A,35,text1.1,5", "2"=>"B,76,text1.2,-6", "3"=>"D,45,text1.3,-1", "4"=>"Z,48,text1.4,-10", "5"=>"G,26,text1.5,-999", "6"=>"Y,10,text1.6,-67", "7"=>"T,98,text1.7,45", "8"=>"N,04,text1.8,315", "9"=>"E,37,text1.9,90" }, ... and store that in LTSV. The code for encoding and decoding to/from LTSV is simple: class Hash def to_ltsv map{|k, v| "#{k}:#{v.to

Categories : Ruby On Rails

Only Getting Half a Barcode from TCP/IP Barcode Reader
Try something like: // responseData string will be the barcode received from reader string responseData = null; using (TcpClient client = new TcpClient("10.90.10.36", 2001)) { using (NetworkStream stream = client.GetStream()) { byte[] sentData = System.Text.Encoding.ASCII.GetBytes("getData"); stream.Write(sentData, 0, sentData.Length); byte[] buffer = new byte[32]; int bytes; while ((bytes = stream.Read(buffer, 0, buffer.Length)) != 0) { for (int i = 0; i < bytes; i++) { responseData += (char)buffer[i]; } } } } The while cycle will repeat itself while there are new characters that can be received. I have even put some using around your code (it's better to use th

Categories : C#

Connecting two java project
This will make your Eclipse project able to use other projects. Right click on your project Choose Build Path -> Configure Build Path. Under the "Projects"-tab add your other projects.

Categories : Java

Removing smart quotes from an SQL server text column
If the data type is in fact of TEXT, first cast the column to VARCHAR(MAX) like this: SELECT [COLUMN] FROM [TABLE] where CAST([COLUMN] AS VARCHAR(MAX)) like '%['+char(226)+']%' SELECT [COLUMN] FROM [TABLE] where CAST([COLUMN] AS VARCHAR(MAX)) like '%['+char(8364)+']%' SELECT [COLUMN] FROM [TABLE] where CAST([COLUMN] AS VARCHAR(MAX)) like '%['+char(381)+']%' SELECT [COLUMN] FROM [TABLE] where CAST([COLUMN] AS VARCHAR(MAX)) like '%['+char(8206)+']%'

Categories : Sql Server

how to export or import sql server database from sql server to mysql server through network
Try to use this script, which allows you to import data. You must specify the table name and run the generated code on your MySQL server. DDL: CREATE TABLE Labour.Employee ( EmployeeID INT IDENTITY (1, 1) PRIMARY KEY NOT NULL , IsMainWorkPlace BIT NOT NULL , TabelNumber VARCHAR(6) NULL , PersonID INT NOT NULL , DepartmentUID UNIQUEIDENTIFIER NOT NULL , DateIn DATETIME NOT NULL , DateOut DATETIME NULL , PositionID INT NULL , DatePension DATETIME NULL , IsLabourUnionMember BIT NOT NULL , FiringReasonID INT NULL ) Query: DECLARE @Table NVARCHAR(50) , @Schema NVARCHAR(50) , @ObjectID INT , @IsImportIdentity BIT = 1 , @IsCreateTable BIT = 1 DECLARE [tables] CURSOR READ_ONLY FAST_FORWARD LOCAL FOR SELECT t.name

Categories : Mysql

SQL server 2012 : SQL query to get list of database for which a server is secondary in high availability configuration
So, I don't have an exact query for you but it shouldn't be too hard to do, there are 2 DMVs to look at for this: sys.dm_hadr_availability_group_states - This will tell you about the availability groups and which servers are primary/secondary replicas for each sys.dm_hadr_database_replica_states - This will tell you about the databases within each availibility group and what state they are in Join the two of these together on the group_id column and you will be able to see what databases are in which availability group and which servers are acting as primary/secondary replicas. Links to the docs here: AlwaysOn Availability Groups Dynamic Management Views and Functions

Categories : Sql Server

Hyper-V Web Server in Windows Server 2012 Not Accessible Externally
I was using the wrong port. Because I have another web server running using up port 443 I had arbitrarily chose to use port 445 for the new web server and I found out that that is a reserved port. So I switched to port 8080 and opened up the port on the windows firewall and now it's working perfectly!

Categories : Iis

Create and Run MVC 5 Project in VS 2012
A new tutorial has been recently added to the ASP.NET website on how to upgrade an MVC4 project to MVC5. I migrated a VS 2012 project using this tutorial without problems, but there is no design time support for Razor 3 in VS2012 due to changes in the way VS loads the razor engine. You can edit razor pages in VS2012, but it will be a plain HTML editor.

Categories : Asp Net Mvc



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.