Posts
 
Reputation
Joined
Last Seen
Ranked #38
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
97% Quality Score
Upvotes Received
729
Posts with Upvotes
630
Upvoting Members
327
Downvotes Received
18
Posts with Downvotes
16
Downvoting Members
14
170 Commented Posts
~1.34M People Reached
Favorite Tags

1,857 Posted Topics

Member Avatar for Cheol

One thing you can do is get into the habit of assigning a default value to any object you create. Make sure that you use a modern up to date IDE that will check those situations for you and suggest corrections.

Member Avatar for AstroScriptor
1
90
Member Avatar for Dani

Personally, I was introduced to logical thinking reading Sherlock Holmes stories. Logical thinking actually doesn't have anything to do with computers or programming, though it is indispensable in those fields. It's basically a way of making a logical progression from the start to the conclusion and simplifying the data to …

Member Avatar for jkon
1
124
Member Avatar for Dani

I think it's hard to maintain a labor of love, there's usually very little or no money in it, until it gets commercialized. Then all those quirks you put in, don't make money and they get stripped out, and it's no longer recognizable as yours. It seems, also, that many …

Member Avatar for Dani
5
311
Member Avatar for Dani

For me it was the Basic that was included in the Sinclair ZX81. It was quite the challenge doing any programming in 1k of memory lol

Member Avatar for stultuske
0
40
Member Avatar for Dani

I use AI for summarizing instructional courses in pdf. And I haven't noticed any hallucinations. The same with the code suggestions I get. I'm wondering if there's a difference between a closed dataset and an unlimited dataset.

Member Avatar for trcooke
1
127
Member Avatar for Dani

I think it depends. First of all you need oop and single responsibility functions. To trust AI you must keep it simple. Now if the programmer has the training and experience, using an AI to do the rough draft for some functions can save time. But to blindly trust AI …

Member Avatar for trcooke
0
32
Member Avatar for dckumawat05

Of course there is also the fact that the API's for mobile apps are constantly changing. This requires regular and constant updates to your code.

Member Avatar for wrteam
5
2K
Member Avatar for Dani

How about constructing all the data structures by hand. Even without AI many modern languages have them built-in.

Member Avatar for rproffitt
1
59
Member Avatar for learnerya

Here's a free course that also has video transcripts in Chinese [Click Here](https://www.edx.org/learn/data-structures/ibm-data-structures-algorithms-using-c?irclickid=wHcSD31V3xyPTCjz4zwfC1-YUkH1ZVUH5RvbSQ0&utm_source=affiliate&utm_medium=Class%20Central&utm_campaign=Harvard%27s%20Computer%20Science%20for%20Python%20Programming_&utm_content=TEXT_LINK&irgwc=1)

Member Avatar for tinstaafl
1
105
Member Avatar for lam_189

I would suggest first off is examining exactly what you want to do with your programming. There are a great many areas to explore and most languages excel in only some of those areas. If your interest is as a hobby, you could do far worse than vb.net. Not only …

Member Avatar for tinstaafl
2
99
Member Avatar for JModak

Have you tried looking at the answers on this page? [Click Here](https://stackoverflow.com/questions/973206/what-causes-error-hresult-0x80010105-rpc-e-serverfault)

Member Avatar for tinstaafl
0
79
Member Avatar for Apoorva_K

I think perhaps you need to look at the limits of this challenge a little closer. The size of the array(N) is limited to 10⁷. It's the numbers in the array(Aᵢ) that are limited to 10¹⁰. 1 <= T <= 100 1 <= N <= 10⁷ 1 <= Aᵢ <= …

Member Avatar for Ethanbrody
1
203
Member Avatar for Surveyking

Here's a few sites that offer sms gateway api's. [Click Here](http://www.bulksms.com/int/w/eapi-sms-gateway.htm) [Click Here](http://www.textmagic.com/app/pages/en/products/bulk-sms-gateway-api) [Click Here](http://playsms.org/) Here's a blog that talks about it. [Click Here](http://cwithabhas.blogspot.com/2012/06/free-bulk-sms-gateways-service-provider.html)

Member Avatar for SEO Manager
0
807
Member Avatar for Austin_7

While that is a proper fix, for the code you have, I think that, with a bit of refactoring, you can accomplish what you want and make your code more efficient. First, instead of using a bunch of literal constants, sometimes referred to as Magic Numbers, defining some constants to …

Member Avatar for TradeLabelSoft
0
4K
Member Avatar for Member #1236512

What you have is fairly basic. I would suggest making a list of each class the fields/properties and functions, with descriptions and build the the java versions from that. Google becomes your friend here. Use it to look up code to accomplish what needs to be done(i.e. shuffle algorithm). The …

Member Avatar for JamesCherrill
0
356
Member Avatar for MagnusTheRed90

It looks like you have some confusion between bits and bytes. 32 bits is only 1 integer, or 4 bytes(on many Operating Systems). A key length of 32 bits isn't very effective.

Member Avatar for adajames
0
142
Member Avatar for kasmar45

Assuming you want the user to retry and not create a fatal error, I would suggest reading the input as a string, then passing it to a simple verification function: bool isNumeric(const std::string& input) { return std::all_of(input.begin(), input.end(), ::isdigit); } I believe you need atleast c++11 for this.

Member Avatar for john_111
4
340
Member Avatar for complete
Member Avatar for Miguel Nicholas

You've made a strong start, but you've quickly come to realize the limitations of your approach. Each step in the journey has to deliberately programmed by you. Also consider that if you need to change something, you will probably need to change many other places as well. For something like …

Member Avatar for kidspointdotin
4
3K
Member Avatar for tanatos.daniel

Assuming you have a cursor with a different colour already made, you can simply change the Cursor property of the form to your new cursor. Now every time the cursor is over the form, it will change.

Member Avatar for bir_924
2
6K
Member Avatar for sarman.boyslo

You can use PrtScrn when the form is running. Paint is capable of loading the pic from the clipboard, and if necessary resizing it.

Member Avatar for Junjie_1
0
1K
Member Avatar for sasha12

I suspect your problem is here: `for ( int i=i; i<=n/2 ; i++)`. It looks to me that what you want is: `for ( int i = 0; i <= n/2 ; i++)`

Member Avatar for tinstaafl
0
58
Member Avatar for cambalinho

Use a loop to constantly change the backcolor to the forecolor and back again. You might need an extra delay loop in there as well.

Member Avatar for Mendoza,
1
4K
Member Avatar for shannishan

You could try something like this, Dim Total As Double Dim Numbers() As String Numbers = Split(txt1.Text,"+") Total = 0 For Each Num In Numbers Total = Total + Val(Num) Next Label1.Caption = Str(Total)

Member Avatar for 23219
2
8K
Member Avatar for I_GEVO

Alternatively you can use the `Path` environment variable to hold the complete path to `dw.exe`

Member Avatar for tinstaafl
0
125
Member Avatar for Onion13

The first thing I'd suggest is, use `m.Name = "missile"`, instead of `Tag`. This allows you to get rid of that loop and access the missile picturebox directly using indexing, `PictureBox y = (PictureBox)this.Controls["missile"];` Instead of trying to calculate the trajectory of the missile, you can use the `Location` property …

Member Avatar for tinstaafl
1
287
Member Avatar for Ace_806

As this is VBA and Microsoft hasn't replaced it yet, I'll try and help. You're not getting the max ID because you're not looping through the rows. Also you're using the same variable for strings and integers. This is very bad practice and can lead to very hard to find …

Member Avatar for tinstaafl
0
84
Member Avatar for clementer

Here's a way that is in place, that uses bubble sort. public static void sortColumns(ArrayList<ArrayList<Double>> arr){ int limit = arr.size(); boolean isSwapped = false; for(int col = 0; col < limit; ++col){ do{ isSwapped = false; for(int row = 0; row < limit - 1; ++row){ if(arr.get(row).get(col) > arr.get(row+1).get(col)){ swap(arr,row,col,row+1,col); …

Member Avatar for tinstaafl
0
905
Member Avatar for TimTheCoder

Not sure if this is what you're looking for, but it seems to work: (ns Files.myfile) (require '[clojure.string :as str]) (defn hello-world [] (println "Hello World")) (hello-world) (def s (map read-string(str/split(slurp "integers.txt") #","))) (println s) the last line in your code seems to be a typo. This [post](https://stackoverflow.com/questions/4714923/convert-a-sequence-of-strings-to-integers-clojure) has more …

Member Avatar for tinstaafl
0
74
Member Avatar for Komlika_1

Consider the following tutorials: [PostGreSQL tutorial 1](https://www.postgresqltutorial.com/) [PostGreSQL tutorial 2](https://www.tutorialspoint.com/postgresql/index.htm) [More tutorials](https://www.postgresql.org/docs/online-resources/)

Member Avatar for john_111
1
2K
Member Avatar for tinstaafl

Basically this scheme uses variable offsets, but it generates the bytes on the fly. They aren't truly random, but there aren't any obvious patterns and the output passes all the NIST tests. Since a simple password can be used to do the de/encryption it is much easier to hand off …

Member Avatar for JamesCherrill
2
347
Member Avatar for ComSciNum7

The `remove` code doesn't do anything except get the `index`. The `insert` code overwrites the insertion point instead of inserting into the table.

Member Avatar for tinstaafl
0
159
Member Avatar for Muhamad_7

I think you are confused about what you are using the variable `weekday` for. First you declare it as a string. Then you try to assign a string array to it. Then you assign the user's input to it. I would suggest writing out what you want to do before …

Member Avatar for tinstaafl
0
37
Member Avatar for Nelam parveen

Yes you'll need to be a little more specific. For instance a small project could be to write "Hello World" to the console.

Member Avatar for tinstaafl
0
95
Member Avatar for Phoeboo

to validate the PIN you could try this: string mypin = ""; int myaccount = -1; int main() { while(myaccount == -1) { system("cls"); printf("Enter PIN code: "); scanf("%f",&mypin); switch(mypin) { case "1234" : myaccount=0; break; case "2345" : myaccount=1; break; case "3456" : myaccount=2; break; case "4567" : myaccount=3; …

Member Avatar for Mexxyy028
0
6K
Member Avatar for s_26

I think it would be worth your while to check out a modern IDE with syntax checking. Visual Studio Code and Netbeans come to mind. Free and cross platform.

Member Avatar for tinstaafl
0
163
Member Avatar for sanjay2012

While the code is very sparce, the error message tells you what is wrong. In the namespace AdvoDiary, DataSet is a namespace. I would suggest you look inside `DataSet` for the type that you want.

Member Avatar for tinstaafl
0
380
Member Avatar for d088814
Member Avatar for tinstaafl
0
75
Member Avatar for Member #1192547

It looks to me that you need to get back to basics. Here's a [tutorial](https://www.tutorialspoint.com/cplusplus/cpp_functions.htm) on c++ functions that should help.

Member Avatar for tinstaafl
0
192
Member Avatar for KingGold171

I think perhaps you need a little more explanation. Your code appears to do what you want and I don't see where the error you reference is being produced,

Member Avatar for KingGold171
0
979
Member Avatar for Onion13

A Form is a class pretty much the same as any other. If you look at the code(press the `<>` icon in the solution explorer) you shoud see the constructor for `form1` already made for you. It is easy to recognize because it has a call to the `InitializeComponent` method. …

Member Avatar for tinstaafl
1
74
Member Avatar for vishwas_1

When I try both sets of code with Python 3.4 in VS 2015 they seem to work without errors. Of course that's assuming that when you tried using the result variable you also changed all the instances of the y variable to result.

Member Avatar for Reverend Jim
0
741
Member Avatar for luffy_D

According to the [documentation](https://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.read_table.html), `pd.read_table` instead of `pd.read_csv` might work better.

Member Avatar for tinstaafl
0
263
Member Avatar for Dani

I work in a warehouse that distributes food. All this, panic and hysteria that's been hitting the grocery stores, means more work than we can handle.

Member Avatar for Reverend Jim
1
1K
Member Avatar for pearl.kumar1

How are you distributing your app? If you're just taking the executable and trying to run it, that won't work most of the time. This [article](http://msdn.microsoft.com/en-us/library/vstudio/e2444w33%28v=vs.100%29.aspx) might help.

Member Avatar for rproffitt
0
2K
Member Avatar for C_Oleyers

Having a textbox that only accpets numbers is actually fairly common. One way to handle this is to use the `NumericUpdown` control. This does what most people need but the up/down arrows are hard coded and as far as I know can't easily be removed. A pattern I like to …

Member Avatar for tinstaafl
0
249
Member Avatar for C_Oleyers

I think you'll have to be a little clearer on your problem. Assuming the `btnChicken_Click` event handler has already been added as a handler for `btnChicken` click event, it already has been saved. I think perhaps an explanation of what you're trying to accomplish, as opposed to what you think …

Member Avatar for tinstaafl
0
88
Member Avatar for Satish_14

Actually to me it looks like the problem is the `return` on line 27, is controlled by the `for` block. Since it's possible for the control to bypass the `for` block(i.e. if start == end) the `return` could be missed. I think what you're looking for is something like this: …

Member Avatar for DGPickett
0
296
Member Avatar for Xozz

One way to think about it. A 2D array is basically an array of arrays. In the same way that an array of integers when passed to a function doesn't need the size itemized, it just needs to know what is contained in the array, a bunch of integers,of which …

Member Avatar for JamesCherrill
1
401
Member Avatar for jliamnrich

Not sure what that pic is supposed to be, but it looks like a webpage for a different site(spam?)

Member Avatar for tinstaafl
0
95

The End.