I Searched on internet for any library done by c++ for scan image but cannot found any library for c++ as open source free can any one help me to give me any source code or links by c++ for scan image by scanner then get direct to computer
ahmed_sa
Posts
-
How i get any scan image source library ? -
What layers required for make asp.net core 2 project for prevent repeat data ? -
Are this database design (ERD) IS true for the following tableI have table for instructor in university This center give courses for programming language specialized to Microsoft product this interface as following in image . Simple File Sharing and Storage.[^] SQL,c#,access,c++ courses that given by center D(4),G(2),G(5),G(6),G(3) is sections B.A ,I.S is departments of year in university university consist from 4 year as following department as (INFORMATION SYSTEM (I.S) OR BUSINESS ADMIN(B.A)OR TRADE ENGLISH (T.E) I make ERD design as following : This ERD for interface above Can you tell me are this design is true for table above . Simple File Sharing and Storage.[^]
-
add data to more table relation in same timecan you help me what i need actually insert Save the following data Name,Email,Salary,DistrictId in table Employee EmployeeId,CourseId in table EmployeeCourse EmployeeId,LanaguageId,LevelId in table EmployeeLangage and write it in Create http post [HttpPost] public ActionResult Create(Customemployee cemp) { return View(); }
-
add data to more table relation in same timeI need to make multiple insert to multiple table have relation with each other all id in all table is identity and already do model relation ef to it in visual studio 2015 what i need actually when user click submit Save the following data Name,Email,Salary,DistrictId in table Employee EmployeeId,CourseId in table EmployeeCourse EmployeeId,LanaguageId,LevelId in table EmployeeLangage what i write in create function in empcourse controller my custom model as following [code] public class Customemployee { public string Name { get; set; } public string Salary { get; set; } public string Email { get; set; } public int DistrictId { get; set; } public List Courses { get; set; } public List Langs { get; set; } } public class Empcourse { public int Id { get; set; } public int EmployeeId { get; set; } public int CourseId { get; set; } } public class Emplangauge { public int Id { get; set; } public int LevelId { get; set; } public int LanguageId { get; set; } } } [/code] my controller empcourse is [code] public class empcourseController : Controller { mycourseEntities db = new mycourseEntities(); // GET: empcourse public ActionResult Index() { return View(); } public ActionResult Create() { ViewBag.CountryId = new SelectList(db.Countries.ToList(), "Id", "CountryName"); ViewBag.LanaguageId = new SelectList(db.Languages.ToList(), "Id", "LnaguageName"); ViewBag.LevelId = new SelectList(db.Levels.ToList(), "Id", "LevelName"); ViewBag.CourseId = new SelectList(db.Courses.ToList(), "Id", "CourseName"); return View(); } [HttpPost] public ActionResult Create(Customemployee cemp) { return View(); } public JsonResult getcitybyid(int id) { db.Configuration.ProxyCreationEnabled = false; return Json(db.Cities.Where(a => a.CountryId == id), JsonRequestBehavior.AllowGet); } public JsonResult getdistrictbyid(int id) { d
-
how to make delete row from table using linqIn my Relation i have two tables relation (one to many) table country Id (primary key) Countryname table City Id (primary key) Cityname Countryid (forign key) I have controller City have the following function
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LinqProject.Models;
namespace LinqProject.Controllers
{
public class CityController : Controller
{
mytaskdbEntities db = new mytaskdbEntities();// GET: City
public ActionResult List()
{
return View(db.Cities.ToList());
}and in view of List as following
<body>
@foreach (var item in Model)
{}
@item.Cityname
@item.Country.Countryname
</body>
What i need actually adding delete button to view of list of city and i can delete city when click button delete how to do deleting record by linq the final result as following USA NEWYORK DELETEBUTTON USA WASHINTON DELETEBUTTON FRANCE PARIS DELETEBUTTON when click delete button for row USA NEWYORK it will delete and remaining two record USA WASHINTON DELETEBUTTON FRANCE PARIS DELETEBUTTON
-
change in cell content of salary or bonus or deduction in table cells automatically affect in totalHi i have table have 5 comnun Name Salary Bonus Deduction Total Ahmed 500 500 100 900 calculation of total is Total=Salary+Bonus-Deduction and total in red color according to my code what i need actually if i changed in Salary cell or Bonus cell or Deduction cell affect in total cell suppose i added row above then edit salary from 500 to 2000 meaning in this time row will be as bellow Ahmed 2000 500 100 2400 total will be 2400 with green color i can do by button but how to do by changing cell in table affect in total @{ Layout = null; } <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jquery-1.10.2.js"></script> <script> $(function () { $("#btn").click(function () { var x = $("#txt1").val(); var y = $("#txt2").val(); var z = $("#txt3").val(); var M = $("#txt4").val(); var L = parseInt(y) + parseInt(z) - parseInt(M); $("#tb").append(" " + x + " " + y + " " + z + "" + M + "" + L + ""); $("#tb tr").each(function () { var total = $(this).find("td:nth-child(5)").html(); if(parseInt(total)>1000) { $(this).find("td:nth-child(5)").css("background-color", "green"); } if (parseInt(total) < 1000) { $(this).find("td:nth-child(5)").css("background-color", "red"); } if (parseInt(total) == 1000) { $(this).find("td:nth-child(5)").css("background-color", "yellow"); } }); }); $("#tb").on("click", "tr", function () { $(this).find("td").slice(0, 4).prop("contenteditable", true); }); }); </script> .red{ color:#ff0000; font-weight:bold; } </head> <body>
Name<input type="text" id="txt1" />
Salary<input type="text" id="txt2" />
Bonus<input type="text" id="txt3" />
Deduction<input t -
get the value of row before changing in table if cancel clickin my code below i can edit row success without any error but if i need to cancel value edited in row OR get value before changed what i write to cancel edit in row in table by using jquery my code as following
@{ Layout = null; } Index $(function () { $("#btn").click(function () { var x = $("#txt1").val(); var y = $("#txt2").val(); var z = $("#mycountry").val(); $("#tb").append("<tr> <td>" + x + "</td> <td>" + y + "</td> <td>" + z + "</td><td> <input type='button'class='c' value='Delete'/></td><td> <input type='button' class='d' value='Edit'/></td><td><input type='button' class='e' value='Cancel'/></td></tr>"); }); $("#tb").on("click", ".c", function () { //$(this).parent().parent().remove(); $(this).closest('tr').remove(); }); $("#tb").on("click", ".d", function () { var row = $(this).closest('tr').toggleClass("editing"); row.find("td").slice(0, 2).prop("contenteditable", row.hasClass("editing")); var myselect = '<select id="mycountr1" name="mycountry1">' + '<option>---select---</option>' + '<option>Egypt</option>' + '<option>qatar</option>' + '<option>saudia</option>' + '<option>emarates</option>' '</select>'; var dropcountry = $(this).parent().prev().prev().text; $(this).parent().prev().prev().html(myselect); //$('#tb').append(myselect); // $("#tb").children().children().eq(3).children().eq(3).append("myselect"); }); $("#btndis").on('click', function () { $("body").append("<ul id='listNames''></ul>"); $('#tb td:nth-child(2)').each(function () { $("#listNames").append("<li>" + $(this).text() + "</li>") }); }); }); .editing { background: yellow; } ID Name Country:
-
Delete button no responding and not remove recordI try more time to delete record by jquery but no responding meaning nothing happen my code as following <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jquery-1.10.2.js"></script> <script> $(function () { $("#btn").click(function () { var x = $("#txt1").val(); var y = $("#txt2").val(); var z = $("#txt3").val(); $("#tb").append(" " + x + " " + y + " " + z + " <input type='button'value='Delete'/> <input type='button'value='Edit'/>"); }); $("#tb").on("click", ".c", function () { $(this).parent().parent().remove(); }); }); </script> </head> <body>
ID<input type="text" id="txt1" />
Name<input type="text" id="txt2" />
Country<input type="text" id="txt3" />
<input type="button" value="add" id="btn" />ID
Name
Country
<input type="button" class="c" value="Delete" />
Edit
</body> what remaining in my code or wrong to button delete work
-
Null Pointer Exception In Method Boolean.Org.Json.Jsonobject Do in background async taskto remove error what i make
-
Null Pointer Exception In Method Boolean.Org.Json.Jsonobject Do in background async taskI designed app to make order for pizza food restaurant I show userid,menu id ,address,longtiude,latitude then press on button make order Error show after I press button and found in async task doin background It give me fatal exception error An error occurred while executing doInBackground() and it show to me two lines have proplem AddNewOrder.doInBackground(Summary.java:113) AddNewOrder.doInBackground(Summary.java:77) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.json.JSONObject.getBoolean(java.lang.String)' on a null object reference package com.pizza_final_project_app.pizza_final_project; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; public class Summary extends Activity { SharedPreferences preferences; private ProgressDialog pDialog; //JSONParser jsonParser = new JSONParser(); boolean errorFound; TextView textaddress; TextView textlongtiude; TextView textlatitude; TextView text2; TextView textuser; Button btnorder; private static final String TAG_SUCCESS = "success"; private static final String TAG = Summary.class.getSimpleName(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_summary); text2=(TextView)findViewById(R.id.textView3); textaddress=(TextView)findViewById(R.id.textaddress); textuser=(TextView)findViewById(R.id.textView4); textlongtiude=(TextView)findViewById(R.id.textlongtiude); textlatitude=(TextView)findViewById(R.id.textlatitude); Intent i = getIntent(); String id = i.getStringExtra("Data4"); String address = i.getStringExtra("Data8"); String longtiude = i.getStringExtra("Data9"); String latitude = i.getStringExtra("Data10"); text2.setText(id); textaddress.setText(address); textlongtiude.setText(longtiude); textlatitude.setText(latitude); preferences= PreferenceMana
-
How to get only one restaurant when I press click button one clickI modify my code above as following I storage the parsed ArrayList, make a global variable for counting the number of times that the button has been clicked. public class MainActivity extends ListActivity { ArrayList venuesList; Button btn; int clickCount; // ArrayList allResults; List shownResults = new ArrayList(); final String CLIENT_ID = "SVIBXYYXOEARXHDI4FWAHXGO5ZXOY204TCF1QJFXQLY5FPV4"; final String CLIENT_SECRET = "BAAJO1KXRWESGTJJGVON4W3WUFHAQDAJPLRIYJJ5OPHFQ5VI"; final String latitude = "30.435665153239377"; final String longtitude = "31.3280148"; ArrayAdapter myAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); new fourquare().execute(); btn=(Button) findViewById(R.id.button); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String name = venuesList.get(clickCount).getName(); String cat = venuesList.get(clickCount).getCategory(); String city = venuesList.get(clickCount).getCity(); shownResults.add(name + "," + "cat" + "" + city); clickCount++; myAdapter.notifyDataSetChanged(); new fourquare().execute(); } }); } what is wrong in my code
-
How to get only one restaurant when I press click button one clickYes but im beginner for development in android
-
How to get only one restaurant when I press click button one clickWho can help me in customize that please tell me site or forum i will try to ask him
-
How to get only one restaurant when I press click button one clickso that How to customize or modify this code to Read the JSON file once into a container of some sort.by code
-
How to get only one restaurant when I press click button one clickI have app in side it only one activity (main activity) and layout XML of main activity have only list view .this app get restaurants near from my location and display it in list view What i need to do is add button to the main activity layout when i press on button get to me list of restaurant item by item from json file and display it in list view but not display all restaurants in one click but show item by item every click get restaurant suppose i have 3 restaurant in json file when i click on button for first click get me first restaurant when i click on button for second click get me second restaurant when i click on button for third click get me third restaurant How to customize this code to accept get item by item restaurant from json file My code include class and activity and code is working success my class is FoursquareVenue package com.foodsmap_project_app.foodsmap_project_app; public class FoursquareVenue { private String name; private String city; private String category; public FoursquareVenue() { this.name = ""; this.city = ""; this.setCategory(""); } public String getCity() { if (city.length() > 0) { return city; } return city; } public void setCity(String city) { if (city != null) { this.city = city.replaceAll("\\(", "").replaceAll("\\)", ""); ; } } public void setName(String name) { this.name = name; } public String getName() { return name; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } } MainActivity.java public class MainActivity extends ListActivity { ArrayList venuesList; final String CLIENT_ID = "SVIBXYYXOEARXHDI4FWAHXGO5ZXOY204TCF1QJFXQLY5FPV4"; final String CLIENT_SECRET = "BAAJO1KXRWESGTJJGVON4W3WUFHAQDAJPLRIYJJ5OPHFQ5VI"; final String latitude = "30.435665153239377"; final String longtitude = "31.3280148"; ArrayAdapter myAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); new fourquare().execute(); } private class fourquare extends AsyncTask { String temp;
-
how to retrieve or get next item from json file when press click button listnerThank you for reply i will post my code full in another thread and what i need to do
-
how to retrieve or get next item from json file when press click button listnerThank you for reply OK i will try with list view but i need when click fab button retrieve me item by item like scenario i will show I will click fab button to first time it give me first item when click fab to second time it give me second item not show all item when press button what i need actually press button get me item when i press again give me next item until i get all items from json file
-
how to retrieve or get next item from json file when press click button listnerWhat i need is when click fab button on first time show first item on second time click show second item until it get all items in json file meaning i need to customize code above to show all items not three items but based on fab click every click show item
-
how to retrieve or get next item from json file when press click button listnerMy code is
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_eating);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);card1 = (LinearLayout) findViewById(R.id.card\_one); card2 = (LinearLayout) findViewById(R.id.card\_two); card3 = (LinearLayout) findViewById(R.id.card\_three); tvTitle1 = (TextView) findViewById(R.id.tv\_title1); tvTitle2 = (TextView) findViewById(R.id.tv\_title2); tvTitle3 = (TextView) findViewById(R.id.tv\_title3); tvDetails1 = (TextView) findViewById(R.id.tv\_details1); tvDetails2 = (TextView) findViewById(R.id.tv\_details2); tvDetails3 = (TextView) findViewById(R.id.tv\_details3); //adding listeners card1.setonclickListener(this); card2.setonclickListener(this); card3.setonclickListener(this); // type = getIntent().getIntExtra("type", 1); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setonclickListener(new View.onclickListener() { @Override public void onclick(View view) { if (count < 3) { new GetPlace().execute(); } } }); } class GetPlace extends AsyncTask<Void, Void, Void> { /\*\* \* Before starting background thread Show Progress Dialog \*/ @Override protected void onPreExecute() { super.onPreExecute(); pDialog = new ProgressDialog(EatingActivity.this); pDialog.setMessage("Picking an Item..."); pDialog.setIndeterminate(false); pDialog.setCancelable(true);
// pDialog.show();
}/\*\* \* Getting product details in background thread \*/ protected Void doInBackground(Void... args) { // updating UI from Background Thread try { // Building Parameters List<NameValuePair> dataList = new ArrayList<NameValuePair>(); //dataList.add(new BasicNameValuePair("id", '"' + args\[0\] + '"')); // getting product details by making HTTP request // Note that product details url will use GET request JSONObject json = json