Posts

vb.net - Get content from HTML list in VB -

okay, have html list of items want use autocomplete source vb application. can't seem strip html out of string. html list follows: <option value="0001">string example 1</option> <option value="0002">string example 2</option> ... can advise way of getting content out of huge list that? thinking reading text file line line , extracting content html, i've never worked html in vb before , i'm not sure how it... figured below work, i'm not sure how ask vb content only. any appreciated. dim objfso = createobject("scripting.filesystemobject") dim objfile = objfso.opentextfile(my.computer.filesystem.specialdirectories.desktop & "\test2.txt", 1) until objfile.atendofstream txtline = objfile.readline 'get content of line here. 'add content new string. loop use htmlagilitypack library load html, traver...

Trouble using an array in a class (C++) -

i've looked through various forum posts here , other sites have not seen referring similar problem. problem i'm having is: studentinfo array not run besides when array elements 6 or below. i want able have array size of 23 , code returns: bash: line 12: 51068 segmentation fault $file.o $args the code i've provided below simplified version of actual code. have use array in program (no vectors may want suggest) because part of assignment. still little new c++ explanation answers awesome. help! #include <iostream> #include <string> using namespace std; class studentgrades { private: string studentinfo[23]; public: void setstudentinfo(string info) { (int = 0; < 23; ++i) { studentinfo[i] = info; } } string getstudentinfo() { (int = 0; < 23; ++i) { cout << studentinfo[i] << " "; } } }; int main() { studentgrades student1; studen...

SQL ORACLE Procedure to determine whether a date is between two dates -

i trying make procedure determines zodiac sign of person, given his/her date of birth. input has in format of 'dd-mon-yyyy' (eg. '16-aug-1987'). trying find proper way this. part of incorrect code follows: create or replace procedure zodiac_test(dob varchar2) begin if dob between '29-sep-%' , '19-oct-%' dbms_output.put_line('a libra'); else dbms_output.put_line('not libra'); end if; end; basically, goal here determine whether date between 2 dates, regardless year. how go problem? , suggestions? i've seen other answers in stackoverflow date format different , not asking write procedures. thought should ask here.

php - Create a table from and SQL database containing a drop down menu with a list of names from another SQL table -

Image
i need create table drop down menu , submit button in each row. drop down menu contains list of advisers sql table. when select , adviser , press submit button id of item in current row along selected adviser id or name must sent page. in case sent delete.php. my code bellow displays drop down menu , submit button each row of table, when press submit button work correctly if press submit button located @ bottom of table, if press other appears not send info drop down menu. ( know code appear messy, experimenting if unclear ask me , clarify. ) thank much! <!doctype html> <html> <body> <?php //this code qeue // connect database udinh sqli $con = get_sqli(); // results database if (!$con) { die('could not connect: ' . mysqli_error($con)); } //select whole list of students walk_in mysqli_select_db($con,"login"); $sql="select * walk_in"; $result = mysqli_query($con,$sql); if (!$result) { printf("error: %s\n...

asp.net mvc - asp identity with int as TKey - UserId not found exception -

i have implemented custom userstore , identityuser. have changed code uses int key type. the problem leave key generation database autoincrement field. now, on register, user saved db framework doesnt have id (its int default 0) since doesnt read return values db. (db did create new id autoincrement , saved framework dont have it) am doing wrong? questions: are suposed additional roundtrip db (find username, example) id? should we, on register, create 1 dummy record id , update real data? all of feels dirty. has solved problem? update: adding code it my identityuser: public class identityuser : iuser<int> { public int id { get; set; } public string username { get; set; } public string passwordhash { get; set; } public string securitystamp { get; set; } public string email { get; set; } public string phonenumber { get; set; } public bool isemailconfirmed { get; set; } public bool isphonenumberconfirmed { get; set; } publ...

In a CDI extension, what's the easiest way to tell whether an injection point will be satisfied? -

i writing cdi extension. what easiest way find out if given injection point satisfied during bean deployment, , remove if won't satisfied? processinjectionpoint -time early, because bean discovery hasn't completed yet, can't tell, of given injectionpoint , whether bean exists satisfy it. processinjectiontarget -time seems wrong place, because although injection points have been read there isn't way remove one. i need event lets me remove injection point injection target if can determine injection point won't satisfied. (background: messing programmatically translating guice's com.google.inject.inject annotation (which features optional attribute).) i don't think possible that, not way @ least. issue sounds similar discussed in cdi-45 issue , might worth describing use case there. for case, 1 thing comes me usage of @inject instance<mybeanclass> instead of classical injection. allows detect (in runtime) whether have (or more ...

Material design lite masonry layout with cards -

i'm trying create "pinterest" style layout material design lite. big issue far, i'm able create cards being same height. i have been able css , column count (without mdl), i'd use styling mdl provides. if use column-count mdl, cause weird layout. cards vary in size, , looks bad when have huge gaps inside them because gridlayout evens them out in height. hope makes sense. can paste wordpress theme code if necessary, i'm not sure if it's help. i hope can me out :-) you can use lightweight javascript http://masonry.desandro.com/ in order that. use this. <div class="mdl-grid masonry-grid"> <div class="mdl-cell mdl-cell--4-col-desktop masonry-grid-item"> </div> <div class="mdl-cell mdl-cell--4-col-desktop masonry-grid-item"> </div> </div> <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script> <script> ...