[Solved] How to write a pseudo Code [closed]

Pseudo code is just a way to express the intent of the program without being syntactically correct. An example could be: print “What is your name” read input from user print “Hello ” + user input Another example for withdrawing money from an ATM: if the selected account’s balance is greater than the requested amount … Read more

[Solved] Using insert with condition on laravel [closed]

Well the reason it inserts twice is you make an DB::insert() and also create a new book using $book->save() This should work better: $book = new Book; $ta = DB::table(‘book’)->selectRaw(‘MAX(ta) AS ta’)->first()->ta; if($ta == 0){ $book->ta = 1; $book->tb = 1; } else { $tb = DB::table(‘book’)->selectRaw(‘MAX(tb) AS tb’) ->where(‘ta’, $ta)->first()->tb; if($tb <= 20){ $book->ta … Read more

[Solved] Full page popup ad via HTML [closed]

You need to put the ad in an absolutely positioned DIV. HTML: <div class=”full-ad”> <!– … Ad goes here … –> </div> CSS: .full-ad { position: absolute; top: 0; bottom: 0; left: 0; right: 0; /* depending on your other code, you may need to set an appropriate a-index as well */ { solved Full … Read more

[Solved] Scraping web pages with Python vs PHP? [closed]

In my opinion, I would go with python, because of its excellent string handling capabilities compared to PHP. Also there are a lot of cool libraries that python has , that make Scraping web pages a bliss. Some libraries you should check out are : Beautiful soup Scrappy I have personally used BeautifulSoup and its … Read more

[Solved] Segfault in c program

First – find out how to run this code under a debugger. Then it’ll just stop on the line where the segfault occurs, which should make it more-obvious what the problem is. Given that you’re saying “segfault”, it’s probably safe to assume you’re running some unix-variant, in which case, “gdb” is probably your debugger. Second … Read more

[Solved] Javascript framework [closed]

Cross browser JavaScript frameworks: Browser support (from what i can discover pls update in comments) Prototype Internet Explorer (IE) 6 +, Firefix (FF) 1+, Safari 2+, Opera (o) 9.25+, Chrome (c) 1+ script.aculo.us IE 6 +, FF 1+, S 2+, O 9.25+, c 1+ jQuery IE 6 +, FF 2+, S 3+, O 9+, C … Read more

[Solved] class destructor segmentation fault

Your pop function destroys the entire stack. It deletes the tmp node (by calling the Stack destructor), which still points to the new next. And since the Stack destructor calls delete on next, you get a mess of multiple destructor calls on the same objects. JMA beat me to it by a few seconds, so … Read more

[Solved] Node Js application in client machine

There are simply too many questions here. I tried Electron Js to make application, but the problem is that, it takes extra memory in machine. While the memory consumption of electron application is usually larger than highly optimized native applications, it is comparable to running chrome standalone. So switching from electron to a node based … Read more

[Solved] UIImageView Recognizer

I would add a gestureRecognizer to each imageView. The function called by the gestureRecognizer would then change the image on the “big picker view”. There is no built-in way to get the image name that the user chose. If you really needed this, then you could sublcass UIImageView and add a fileName property. @IBOutlet var … Read more

[Solved] SQL query WHERE string LIKE field [closed]

I think the issue is that you have an extra space after the inserted text in the SQL. This means that you are effectively searching for “lblheader.text ” (with a space after it) everytime, which I doubt is what you want. In the SQL statement , change LIKE ‘%”+ lblheader.Text +” %’ “; To LIKE … Read more